:root{
  /*
   * Hooterbux brand palette — sampled directly from public/img/logo.png
   * (pixel-bucketed scan, not eyeballed) so these are the real brand hex
   * values, not an approximation.
   */
  --brand-navy:  #182844;  /* wordmark + pill body */
  --brand-pink:  #D02450;  /* dot cluster + top pill segment */
  --brand-amber: #E89C28;  /* middle pill segment */
  --brand-teal:  #54C0C0;  /* bottom-left pill segment */

  --bg: #EEF0EB;
  --surface: #FFFFFF;
  --ink: var(--brand-navy);
  --ink-soft: #5B6675;
  --line: #D8D6CC;
  /* SEO/AEO/GEO keep their three-way meaning (one dial each) but now draw
     from the brand palette instead of the old green/amber/purple set. */
  --seo: var(--brand-teal);
  --seo-soft: #E7F6F6;
  --aeo: var(--brand-amber);
  --aeo-soft: #FCF1E1;
  --geo: var(--brand-pink);
  --geo-soft: #F8E0E6;
  --danger: #A6402F;
}
*{box-sizing:border-box;}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:'IBM Plex Sans', sans-serif;
  -webkit-font-smoothing:antialiased;
}

/* ---------------------------------------------------------- masthead/nav */
.masthead{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 28px; border-bottom:2px solid var(--ink); position:relative;
}
.masthead::after{
  content:''; position:absolute; left:0; right:0; bottom:-2px; height:4px;
  background:linear-gradient(90deg, var(--seo), var(--aeo), var(--geo));
}
.masthead-left{ display:flex; flex-direction:column; gap:5px; }
.masthead h1{
  font-family:'Sora', sans-serif; font-weight:800; font-size:30px; margin:0;
  letter-spacing:-0.02em; line-height:1;
}
.masthead h1 .x{ color:var(--geo); }
.masthead .dateline{ font-family:'IBM Plex Mono', monospace; font-size:11px; color:var(--ink-soft); text-align:right;}

/*
 * "by [Hooterbux logo] · Internal Tool" — a subordinate credit line, not a
 * second brand mark. BonitaX is the product people use; Hooterbux is the
 * parent company, so its logo is sized well below the product wordmark and
 * carries no more visual weight than plain caption text.
 */
.brand-by{ display:flex; align-items:center; gap:12px; }
.by-group{ display:flex; align-items:center; gap:6px; }
.by-label, .by-tool{
  font-family:'IBM Plex Mono', monospace; font-size:11px; letter-spacing:0.1em;
  text-transform:uppercase; color:var(--ink-soft);
}
.brand-logo-mini{ height:16px; width:auto; display:block; }
.by-tool{ position:relative; padding-left:12px; }
.by-tool::before{
  content:''; position:absolute; left:0; top:50%; transform:translateY(-50%);
  width:1px; height:10px; background:var(--line);
}

.mainnav{ display:flex; gap:2px; background:var(--surface); border-bottom:1px solid var(--line); padding:0 26px; }
/* These are <button>s for keyboard/a11y reasons, so the filled button styling
   further down has to be reset explicitly — otherwise they render as black pills. */
.nav-tab{ font-family:'Sora', sans-serif; font-weight:600; font-size:13.5px; padding:14px 18px;
  cursor:pointer; color:var(--ink-soft); background:transparent; border:none;
  border-bottom:3px solid transparent; border-radius:0; margin-bottom:-1px; }
.nav-tab:hover:not(.active){ color:var(--ink); background:rgba(0,0,0,.03); opacity:1; }
.nav-tab.active{ color:var(--ink); border-bottom:3px solid var(--geo); background:transparent; }
.view{ display:none; }
.view.active{ display:block; }

/* ------------------------------------------------------------- gauges */
.gauges{ display:flex; gap:0; border-bottom:1px solid var(--line); background:var(--surface); }
.gauge{ flex:1; padding:14px 22px; display:flex; align-items:center; gap:14px; border-right:1px solid var(--line); }
.gauge:last-child{border-right:none;}
.dial{ position:relative; width:44px; height:44px; flex-shrink:0;}
.dial svg{ transform:rotate(-90deg); }
.dial-track{ fill:none; stroke:var(--line); stroke-width:5;}
.dial-fill{ fill:none; stroke-width:5; stroke-linecap:round; transition:stroke-dashoffset .5s ease;}
.gauge-label{ font-family:'IBM Plex Mono', monospace; font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--ink-soft);}
.gauge-name{ font-family:'Sora', sans-serif; font-size:16px; font-weight:600; margin-top:1px;}
.gauge[data-engine="seo"] .gauge-name{color:var(--seo);}
.gauge[data-engine="aeo"] .gauge-name{color:var(--aeo);}
.gauge[data-engine="geo"] .gauge-name{color:var(--geo);}

/* -------------------------------------------------------------- layout */
.layout{ display:grid; grid-template-columns: 1fr 1.35fr; gap:0; min-height:calc(100vh - 130px); }
@media (max-width: 900px){ .layout{grid-template-columns:1fr;} }
.desk{ padding:24px 26px 60px; border-right:1px solid var(--line); }

/* --------------------------------------------------------------- forms */
label{ display:block; font-family:'IBM Plex Mono', monospace; font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-soft); margin:16px 0 6px; }
label:first-child{margin-top:0;}
input[type=text], textarea, select{
  width:100%; font-family:'IBM Plex Sans', sans-serif; font-size:14.5px; color:var(--ink);
  background:var(--surface); border:1px solid var(--line); padding:10px 12px; border-radius:2px;
}
input:focus, textarea:focus, select:focus{ outline:2px solid var(--ink); outline-offset:-1px; }
input:disabled, textarea:disabled, select:disabled{ background:#F4F4F1; color:var(--ink-soft); cursor:not-allowed; }
.field-error{ border-color:var(--danger) !important; box-shadow:0 0 0 3px rgba(166,64,47,.12); }
button:focus-visible, .press-tab:focus-visible, .nav-tab:focus-visible{ outline:2px solid var(--geo); outline-offset:2px; }
kbd{ font-family:'IBM Plex Mono', monospace; font-size:11px; background:var(--surface);
  border:1px solid var(--line); border-bottom-width:2px; border-radius:3px; padding:1px 5px; color:var(--ink-soft); }
body.is-busy{ cursor:progress; }
textarea{ resize:vertical; min-height:64px; line-height:1.45; }
.hint{ font-size:12px; color:var(--ink-soft); margin-top:4px; }
.row2{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }

.advanced{ margin-top:22px; border:1px solid var(--line); border-radius:6px; background:var(--surface); }
.advanced summary{ cursor:pointer; font-family:'Sora', sans-serif; font-weight:600; font-size:13.5px; padding:13px 16px; list-style:none; }
.advanced summary::-webkit-details-marker{ display:none; }
.advanced summary::before{ content:'+ '; color:var(--geo); font-weight:800; }
.advanced[open] summary::before{ content:'– '; }
.advanced[open] summary{ border-bottom:1px solid var(--line); }
.advanced .adv-group{ padding:16px; border-bottom:1px solid var(--line); }
.advanced .adv-group:last-child{ border-bottom:none; }
.adv-label{ font-family:'IBM Plex Mono', monospace; font-size:10px; text-transform:uppercase; letter-spacing:.1em; color:var(--geo); margin-bottom:4px; }

.stepnav{ display:flex; justify-content:space-between; margin-top:26px; }
button{ font-family:'Sora', sans-serif; font-weight:600; font-size:13.5px;
  padding:10px 18px; border:1px solid var(--ink); background:var(--ink); color:var(--bg); cursor:pointer; border-radius:3px; }
button.ghost{ background:transparent; color:var(--ink); }
button:disabled{ opacity:.35; cursor:not-allowed; }
button:hover:not(:disabled){ opacity:.85; }

.generate-bar{ margin-top:30px; padding-top:20px; border-top:2px solid var(--ink); }
.generate-bar button{ width:100%; padding:15px; font-size:15px; font-weight:700; background:linear-gradient(135deg, var(--seo), var(--geo)); border:none; letter-spacing:-0.01em; }
.status-line{ font-family:'IBM Plex Mono', monospace; font-size:11.5px; color:var(--ink-soft); margin-top:10px; min-height:16px; }
.status-line.error{ color:var(--danger); }

/* ------------------------------------------------------------- presses */
.presses{ padding:24px 26px 80px; }
.press-tabs{ display:flex; gap:2px; margin-bottom:0; border-bottom:1px solid var(--line); flex-wrap:wrap;
  position:sticky; top:0; background:var(--bg); z-index:5; }
.press-tab{ font-family:'IBM Plex Mono', monospace; font-size:11.5px; text-transform:uppercase; letter-spacing:.06em;
  padding:10px 16px; cursor:pointer; color:var(--ink-soft); border:none; border-bottom:2px solid transparent;
  margin-bottom:-1px; background:transparent; border-radius:0; font-weight:500; }
.press-tab:hover:not(.active){ color:var(--ink); background:rgba(0,0,0,.03); }
.press-tab.active{ color:var(--ink); border-bottom:2px solid var(--ink); }
.press-tab.tab-edit{ margin-left:auto; color:var(--geo); }
.press-tab.tab-edit.active{ border-bottom-color:var(--geo); }

/* --- output action bar ------------------------------------------------ */
.output-bar{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  background:var(--surface); border:1px solid var(--line); border-left:3px solid var(--seo);
  border-radius:6px; padding:12px 16px; margin-bottom:16px; }
.ob-title{ font-family:'Sora', sans-serif; font-weight:600; font-size:14.5px; line-height:1.3;
  max-width:52ch; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ob-sub{ display:flex; gap:6px; flex-wrap:wrap; font-family:'IBM Plex Mono', monospace;
  font-size:11px; color:var(--ink-soft); margin-top:4px; }
.ob-saved{ color:var(--seo); font-weight:500; }
.ob-actions{ display:flex; gap:6px; flex-wrap:wrap; }
.ob-actions button{ padding:7px 12px; font-size:12px; }
.danger-ghost{ color:var(--danger) !important; border-color:var(--line) !important; }
.danger-ghost:hover{ border-color:var(--danger) !important; }

/* --- progress --------------------------------------------------------- */
.progress-panel{ border:1px solid var(--line); background:var(--surface); border-radius:8px; padding:22px 24px; }
.progress-panel.failed{ border-left:3px solid var(--danger); }
.progress-head{ display:flex; align-items:center; gap:14px; }
.progress-title{ font-family:'Sora', sans-serif; font-weight:600; font-size:16px; }
.progress-sub{ font-size:12.5px; color:var(--ink-soft); margin-top:3px; }
.progress-error{ color:var(--danger); font-size:13.5px; margin:8px 0; line-height:1.5; }
.progress-clock{ margin-left:auto; font-family:'IBM Plex Mono', monospace; font-size:18px; color:var(--ink-soft); }
.progress-spinner{ width:26px; height:26px; border:3px solid var(--line); border-top-color:var(--geo);
  border-radius:50%; animation:spin .9s linear infinite; flex-shrink:0; }
@keyframes spin{ to{ transform:rotate(360deg); } }
.progress-bar{ height:4px; background:var(--line); border-radius:2px; margin:18px 0 16px; overflow:hidden; }
.progress-fill{ height:100%; width:0; border-radius:2px; transition:width .45s ease;
  background:linear-gradient(90deg, var(--seo), var(--geo)); }
.progress-steps{ list-style:none; margin:0; padding:0; }
.pstep{ display:flex; align-items:center; gap:10px; padding:7px 0; font-size:13.5px; color:var(--ink-soft); }
.pstep-dot{ width:8px; height:8px; border-radius:50%; background:var(--line); flex-shrink:0; }
.pstep.active{ color:var(--ink); font-weight:500; }
.pstep.active .pstep-dot{ background:var(--geo); box-shadow:0 0 0 4px var(--geo-soft); }
.pstep.done{ color:var(--ink-soft); }
.pstep.done .pstep-dot{ background:var(--seo); }
.pstep.done span:last-child{ text-decoration:line-through; opacity:.75; }
@media (prefers-reduced-motion: reduce){
  .progress-spinner{ animation:none; } .progress-fill{ transition:none; }
}

/* --- toasts ----------------------------------------------------------- */
.toast-host{ position:fixed; right:20px; bottom:20px; z-index:100; display:flex; flex-direction:column; gap:8px; max-width:min(420px, calc(100vw - 40px)); }
.toast{ display:flex; align-items:flex-start; gap:10px; background:var(--ink); color:var(--bg);
  padding:12px 14px; border-radius:6px; font-size:13.5px; line-height:1.45;
  box-shadow:0 6px 20px rgba(0,0,0,.18); animation:toast-in .18s ease-out; }
.toast-success{ background:var(--seo); }
.toast-error{ background:var(--danger); }
.toast-icon{ font-weight:700; flex-shrink:0; }
.toast-msg{ flex:1; }
.toast-x{ background:none; border:none; color:inherit; font-size:17px; line-height:1; padding:0 2px; opacity:.7; }
.toast-x:hover{ opacity:1; }
.toast.leaving{ opacity:0; transform:translateY(6px); transition:all .2s ease; }
@keyframes toast-in{ from{ opacity:0; transform:translateY(8px); } }

/* --- edit tab --------------------------------------------------------- */
.edit-intro{ border-left:3px solid var(--geo); background:var(--geo-soft); padding:14px 16px; border-radius:0 4px 4px 0; margin-bottom:6px; }
.edit-intro .k{ font-family:'IBM Plex Mono', monospace; font-size:10px; text-transform:uppercase; letter-spacing:.1em; color:var(--geo); }
.edit-target{ font-family:'Sora', sans-serif; font-weight:600; font-size:15px; margin:4px 0 8px; line-height:1.35; }
.edit-intro .hint{ margin:0; }
.preset-row{ display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.preset{ background:transparent; border:1px dashed var(--line); color:var(--ink-soft);
  font-family:'IBM Plex Sans', sans-serif; font-weight:400; font-size:12px; padding:6px 10px; border-radius:14px; }
.preset:hover{ border-color:var(--geo); border-style:solid; color:var(--geo); }
.edit-actions{ display:flex; align-items:center; gap:14px; margin-top:18px; flex-wrap:wrap; }
.edit-actions .hint{ margin:0; }
.change-summary{ margin-top:20px; border:1px solid var(--line); background:var(--surface);
  border-radius:6px; padding:14px 16px; font-size:13.5px; line-height:1.6; }
.change-summary .k{ font-family:'IBM Plex Mono', monospace; font-size:10.5px; text-transform:uppercase;
  letter-spacing:.06em; color:var(--ink-soft); margin-bottom:5px; }
.press-panel{ display:none; padding-top:22px; }
.press-panel.active{ display:block; }

.empty{ font-family:'Sora', sans-serif; font-size:17px; color:var(--ink-soft); padding:60px 10px; border:1px dashed var(--line); text-align:center; line-height:1.6; }
.empty span{ display:block; font-family:'IBM Plex Mono', monospace; font-size:11px; text-transform:uppercase; letter-spacing:.08em; margin-bottom:10px;}

/* ------------------------------------------------------------- article */
.article h1.gen{ font-family:'Sora', sans-serif; font-size:30px; font-weight:600; line-height:1.15; margin:0 0 6px; }
.article .meta-desc-preview{ color:var(--ink-soft); font-size:13.5px; margin-bottom:22px; font-style:italic; }
.article h2{ font-family:'Sora', sans-serif; font-size:20px; font-weight:600; margin:26px 0 8px; border-left:3px solid var(--seo); padding-left:10px; }
.article p{ font-size:15px; line-height:1.7; margin:0 0 14px; }
.direct-answer{ background:var(--aeo-soft); border-left:3px solid var(--aeo); padding:14px 16px; font-size:15px; line-height:1.65; margin:0 0 20px; }
.direct-answer .tag{ font-family:'IBM Plex Mono', monospace; font-size:10.5px; text-transform:uppercase; color:var(--aeo); display:block; margin-bottom:6px; }

/* --- typed content blocks: generous vertical rhythm ------------------- */
.art-section{ margin:0 0 38px; }
.article .blk-p{ font-size:15px; line-height:1.75; margin:0 0 18px; max-width:68ch; }

.article .blk-list{ margin:0 0 22px; padding-left:22px; max-width:68ch; }
.article .blk-list li{ font-size:15px; line-height:1.7; margin-bottom:10px; padding-left:4px; }
.article .blk-list li::marker{ color:var(--seo); font-weight:600; }

.blk-table-wrap{ margin:24px 0 28px; overflow-x:auto; }
.blk-table{ width:100%; border-collapse:collapse; background:var(--surface); font-size:14px; border:1px solid var(--line); border-radius:6px; }
.blk-table th{ background:var(--seo-soft); color:var(--seo); font-family:'IBM Plex Mono', monospace; font-size:11px;
  text-transform:uppercase; letter-spacing:.06em; text-align:left; padding:12px 14px; border-bottom:1px solid var(--line); }
.blk-table td{ padding:12px 14px; border-bottom:1px solid var(--line); line-height:1.55; vertical-align:top; }
.blk-table tbody tr:last-child td{ border-bottom:none; }
.blk-table tbody tr:nth-child(even){ background:rgba(0,0,0,.015); }
.blk-table-wrap figcaption{ font-family:'IBM Plex Mono', monospace; font-size:11px; color:var(--ink-soft); margin-top:8px; }

.blk-callout{ background:var(--aeo-soft); border-left:3px solid var(--aeo); padding:16px 18px; margin:24px 0 26px; border-radius:0 4px 4px 0; }
.blk-callout h4{ font-family:'Sora', sans-serif; font-size:14px; margin:0 0 6px; color:var(--aeo); }
.blk-callout p{ margin:0; font-size:14.5px; line-height:1.65; }

/* --- CTAs: mid-content reads softer than the closing one -------------- */
.cta-box{ background:linear-gradient(135deg, var(--seo-soft), var(--geo-soft)); border-left:3px solid var(--geo); padding:18px 20px; margin:32px 0 34px; border-radius:0 6px 6px 0; }
.cta-box h3{ font-family:'Sora', sans-serif; font-size:16px; margin:0 0 8px; }
.cta-box p{ margin:0 0 10px; line-height:1.65; }
.cta-box a{ color:var(--geo); font-weight:600; }
.cta-tag{ font-family:'IBM Plex Mono', monospace; font-size:10px; text-transform:uppercase; letter-spacing:.1em; color:var(--geo); margin-bottom:8px; }
.cta-action{ margin:0 !important; }
.cta-action a{ display:inline-block; background:var(--geo); color:#fff; padding:9px 16px; border-radius:3px; font-size:13.5px; text-decoration:none; }
.cta-action a:hover{ opacity:.88; }
.cta-mid{ background:var(--surface); border-left-color:var(--aeo); }
.cta-mid .cta-tag{ color:var(--aeo); }
.cta-mid .cta-action a{ background:transparent; color:var(--aeo); border:1px solid var(--aeo); }

.refs-list{ margin-top:8px; padding-left:20px; font-size:13.5px; line-height:1.9; color:var(--ink-soft); }
.refs-list li a{ color:var(--seo); }
.refs-list .placeholder{ color:var(--danger); font-family:'IBM Plex Mono', monospace; font-size:12px; }

/* --------------------------------------------------------------- cards */
.card{ border:1px solid var(--line); background:var(--surface); padding:16px 18px; margin-bottom:14px; border-radius:6px; }
.card .k{ font-family:'IBM Plex Mono', monospace; font-size:10.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-soft); margin-bottom:4px;}
.card .v{ font-size:14.5px; line-height:1.5; }
.code-block{ background:#20281F; color:#E7E9E2; font-family:'IBM Plex Mono', monospace; font-size:12.5px; padding:16px 18px; overflow-x:auto; white-space:pre-wrap; word-break:break-word; line-height:1.6; border-radius:6px; }
.copy-row{ display:flex; justify-content:flex-end; margin-bottom:8px; }
.copy-btn{ background:transparent; border:1px solid var(--line); color:var(--ink-soft); padding:6px 12px; font-size:10.5px; }
.copy-btn:hover{ border-color:var(--ink); color:var(--ink); }

.faq-item{ border-bottom:1px solid var(--line); padding:14px 0; }
.faq-item:last-child{border-bottom:none;}
.faq-q{ font-family:'Sora', sans-serif; font-weight:600; font-size:15.5px; margin-bottom:5px; }
.faq-a{ font-size:14px; line-height:1.6; color:var(--ink); }

.check-item{ display:flex; gap:10px; padding:10px 0; border-bottom:1px solid var(--line); font-size:14px; line-height:1.5;}
.check-item:last-child{border-bottom:none;}
.check-dot{ width:9px; height:9px; border-radius:50%; margin-top:5px; flex-shrink:0; }
.link-url{ font-family:'IBM Plex Mono', monospace; font-size:11px; color:var(--ink-soft); margin-top:2px; word-break:break-all; }

/* --- measured metrics ------------------------------------------------- */
.metric-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(130px, 1fr)); gap:12px; }
.metric{ border:1px solid var(--line); background:var(--surface); border-radius:6px; padding:14px 16px; border-top:3px solid var(--seo); }
.metric.warn{ border-top-color:var(--danger); }
.metric-v{ font-family:'Sora', sans-serif; font-size:24px; font-weight:700; line-height:1.1; }
.metric.warn .metric-v{ color:var(--danger); }
.metric-k{ font-family:'IBM Plex Mono', monospace; font-size:10.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-soft); margin-top:6px; }
.metric-t{ font-size:11.5px; color:var(--ink-soft); margin-top:3px; }
.revision-note{ font-family:'IBM Plex Mono', monospace; font-size:11.5px; color:var(--aeo); margin-top:12px; }
.revision-note.ok-note{ color:var(--seo); }
.target-miss{ margin-top:14px; border-left:3px solid var(--danger); background:#F9EEEC;
  padding:12px 14px; border-radius:0 4px 4px 0; font-size:13.5px; line-height:1.6; }
.linkish{ background:none; border:none; color:var(--geo); font-family:inherit; font-size:inherit;
  font-weight:600; padding:0; text-decoration:underline; cursor:pointer; }
.scope-note{ font-family:'IBM Plex Sans', sans-serif; font-weight:400; font-size:12px; color:var(--ink-soft); }

/* --- schema panel ----------------------------------------------------- */
.schema-block{ margin-bottom:24px; }
.schema-block .copy-row{ justify-content:space-between; align-items:center; }
.schema-block .k{ font-family:'IBM Plex Mono', monospace; font-size:10.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-soft); }
.len{ font-family:'IBM Plex Mono', monospace; font-size:10px; padding:1px 5px; border-radius:2px; margin-left:6px; }
.len.ok{ background:var(--seo-soft); color:var(--seo); }
.len.over{ background:#F3DEDA; color:var(--danger); }

/* ------------------------------------------------------------- clients */
.clientswrap{ display:grid; grid-template-columns: 380px 1fr; gap:0; min-height:calc(100vh - 180px); }
@media (max-width: 900px){ .clientswrap{grid-template-columns:1fr;} }
.client-form{ padding:24px 26px; border-right:1px solid var(--line); }
.client-list{ padding:24px 26px; }
.client-card{ border:1px solid var(--line); background:var(--surface); border-radius:6px; padding:16px 18px; margin-bottom:12px; }
.client-card .name{ font-family:'Sora', sans-serif; font-weight:700; font-size:16.5px; }
.client-card .meta{ font-family:'IBM Plex Mono', monospace; font-size:11px; color:var(--ink-soft); margin:3px 0 10px; }
.client-card .notes{ font-size:13.5px; color:var(--ink-soft); line-height:1.5; margin-bottom:10px; }
.client-card .actions{ display:flex; gap:8px; }
.client-card .actions button{ padding:7px 12px; font-size:12px; }
.section-title{ font-family:'Sora', sans-serif; font-weight:700; font-size:15px; margin:0 0 16px; }

/* ------------------------------------------------------------- archive */
.archive-wrap{ padding:24px 26px; }
.archive-list{ display:grid; gap:12px; margin-bottom:24px; }
.blog-row{ display:flex; justify-content:space-between; align-items:center; border:1px solid var(--line); background:var(--surface); border-radius:6px; padding:14px 18px; }
.blog-row .info .title{ font-family:'Sora', sans-serif; font-weight:600; font-size:15px; }
.blog-row{ transition:border-color .15s ease; }
.blog-row:hover{ border-color:var(--ink-soft); }
.blog-row .info{ min-width:0; padding-right:16px; }
.blog-row .info .title{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.blog-row .info .sub{ display:flex; gap:6px; flex-wrap:wrap; font-family:'IBM Plex Mono', monospace; font-size:11px; color:var(--ink-soft); margin-top:4px; }
.pill{ padding:1px 6px; border-radius:9px; font-size:10px; }
.pill.ok{ background:var(--seo-soft); color:var(--seo); }
.pill.warn{ background:#F3DEDA; color:var(--danger); }
.blog-row .actions{ display:flex; gap:8px; flex-shrink:0; }
.blog-row .actions button{ padding:7px 12px; font-size:12px; }
.archive-detail{ border-top:2px solid var(--ink); padding-top:20px; margin-top:10px; }

/* --- auth page --------------------------------------------------------- */
.auth-body{ min-height:100vh; display:grid; place-items:center; padding:24px;
  background:linear-gradient(135deg, var(--bg) 0%, #E4E8E1 100%); }
.auth-wrap{ display:grid; grid-template-columns:1fr 400px; gap:48px; max-width:960px; width:100%; align-items:center; }
.auth-brand h1{ font-family:'Sora', sans-serif; font-weight:800; font-size:44px; margin:6px 0 0; letter-spacing:-0.02em; }
.auth-brand h1 .x{ color:var(--geo); }
.auth-brand .brand-by{ margin-top:10px; }
.auth-tagline{ font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--ink-soft);
  text-transform:uppercase; letter-spacing:.1em; margin:16px 0 24px; }
.auth-points{ list-style:none; padding:0; margin:0; }
.auth-points li{ font-size:14px; color:var(--ink-soft); line-height:1.6; padding-left:20px; position:relative; margin-bottom:8px; }
.auth-points li::before{ content:'—'; position:absolute; left:0; color:var(--seo); }
.auth-card{ background:var(--surface); border:1px solid var(--line); border-radius:8px;
  box-shadow:0 8px 30px rgba(0,0,0,.07); overflow:hidden; }
.auth-tabs{ display:flex; border-bottom:1px solid var(--line); }
.auth-tab{ flex:1; background:transparent; border:none; border-radius:0; padding:15px 10px;
  font-family:'IBM Plex Mono', monospace; font-size:11.5px; text-transform:uppercase;
  letter-spacing:.06em; color:var(--ink-soft); border-bottom:2px solid transparent; }
.auth-tab.active{ color:var(--ink); border-bottom-color:var(--geo); }
.auth-tab:hover:not(.active){ background:rgba(0,0,0,.03); opacity:1; }
.auth-pane{ display:none; padding:24px; }
.auth-pane.active{ display:block; }
.auth-submit{ width:100%; margin-top:22px; padding:13px;
  background:linear-gradient(135deg, var(--seo), var(--geo)); border:none; font-size:14.5px; }
.auth-msg{ font-size:13px; line-height:1.5; margin-top:12px; min-height:18px; }
.auth-msg.error{ color:var(--danger); }
.auth-msg.ok{ color:var(--seo); }
.auth-foot{ font-size:12px; color:var(--ink-soft); line-height:1.55; margin:16px 0 0;
  padding-top:14px; border-top:1px solid var(--line); }
@media (max-width: 820px){
  .auth-wrap{ grid-template-columns:1fr; gap:26px; }
  .auth-brand h1{ font-size:34px; }
  .auth-points{ display:none; }
}

/* --- session chip ------------------------------------------------------ */
.masthead-right{ display:flex; flex-direction:column; align-items:flex-end; gap:10px; }
.session-chip{ display:flex; align-items:center; gap:8px; }
.session-chip .user-name{ font-size:13px; font-weight:500; }
.session-chip button{ padding:5px 10px; font-size:11.5px; }
.role-pill{ font-family:'IBM Plex Mono', monospace; font-size:10px; text-transform:uppercase;
  letter-spacing:.06em; padding:2px 7px; border-radius:9px; }
.role-admin{ background:var(--geo-soft); color:var(--geo); }
.role-member{ background:var(--seo-soft); color:var(--seo); }
.status-pill{ font-family:'IBM Plex Mono', monospace; font-size:10px; text-transform:uppercase;
  letter-spacing:.06em; padding:2px 7px; border-radius:9px; }
.s-active{ background:var(--seo-soft); color:var(--seo); }
.s-pending{ background:var(--aeo-soft); color:var(--aeo); }
.s-suspended{ background:#F3DEDA; color:var(--danger); }

/* --- admin dashboard --------------------------------------------------- */
.admin-head{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; flex-wrap:wrap; }
.range-picker{ display:flex; gap:4px; }
.range{ background:transparent; border:1px solid var(--line); color:var(--ink-soft);
  font-family:'IBM Plex Mono', monospace; font-size:11px; padding:6px 12px; border-radius:3px; font-weight:400; }
.range.active{ background:var(--ink); color:var(--bg); border-color:var(--ink); }
.pending-banner{ border-left:3px solid var(--aeo); background:var(--aeo-soft); padding:13px 16px;
  border-radius:0 4px 4px 0; font-size:13.5px; line-height:1.6; margin-bottom:20px; }
.table-scroll{ overflow-x:auto; border:1px solid var(--line); border-radius:6px; background:var(--surface); }
.admin-table{ width:100%; border-collapse:collapse; font-size:13.5px; }
.admin-table th{ background:var(--bg); font-family:'IBM Plex Mono', monospace; font-size:10.5px;
  text-transform:uppercase; letter-spacing:.06em; color:var(--ink-soft); text-align:left;
  padding:11px 14px; border-bottom:1px solid var(--line); white-space:nowrap; }
.admin-table td{ padding:11px 14px; border-bottom:1px solid var(--line); vertical-align:middle; }
.admin-table tbody tr:last-child td{ border-bottom:none; }
.admin-table tbody tr:hover{ background:rgba(0,0,0,.015); }
.admin-table .num{ text-align:right; font-family:'IBM Plex Mono', monospace; }
.admin-table .strong{ font-weight:600; }
.admin-table .dim{ color:var(--ink-soft); font-size:12.5px; }
.admin-table select{ padding:5px 8px; font-size:12.5px; width:auto; min-width:104px; }
.admin-table button.small{ padding:5px 10px; font-size:11.5px; }
.u-name{ font-weight:500; }
.u-mail{ font-family:'IBM Plex Mono', monospace; font-size:11px; color:var(--ink-soft); margin-top:2px; }
.fail-tag{ background:#F3DEDA; color:var(--danger); font-size:10px; padding:1px 5px; border-radius:3px; }
.new-user-form{ border:1px solid var(--line); background:var(--surface); border-radius:6px; padding:18px 20px; max-width:720px; }
.spark{ margin-top:22px; border:1px solid var(--line); background:var(--surface); border-radius:6px; padding:16px 18px; }
.spark-title{ font-family:'IBM Plex Mono', monospace; font-size:10.5px; text-transform:uppercase;
  letter-spacing:.06em; color:var(--ink-soft); margin-bottom:14px; }
.spark-bars{ display:flex; align-items:flex-end; gap:5px; height:90px; }
.spark-col{ flex:1; display:flex; flex-direction:column; justify-content:flex-end; height:100%; }
.spark-bar{ background:linear-gradient(180deg, var(--geo), var(--seo)); border-radius:2px 2px 0 0; min-height:4px; }
.spark-x{ font-family:'IBM Plex Mono', monospace; font-size:9px; color:var(--ink-soft); text-align:center; margin-top:5px; }

/* --- narrow screens ---------------------------------------------------- */
@media (max-width: 900px){
  /* The two-column dividers become horizontal once the grid collapses. */
  .desk, .client-form{ border-right:none; border-bottom:1px solid var(--line); }
  .masthead{ flex-direction:column; align-items:flex-start; gap:6px; }
  .masthead .dateline{ text-align:left; }
  .mainnav{ padding:0 14px; overflow-x:auto; }
  .desk, .presses, .client-form, .client-list, .archive-wrap{ padding-left:16px; padding-right:16px; }
  .row2{ grid-template-columns:1fr; gap:0; }
  .press-tabs{ position:static; }
  .blog-row{ flex-direction:column; align-items:flex-start; gap:12px; }
  .blog-row .info{ padding-right:0; }
  .blog-row .info .title{ white-space:normal; }
  .output-bar{ flex-direction:column; align-items:flex-start; }
  .ob-title{ white-space:normal; max-width:100%; }
  .gauges{ flex-wrap:wrap; }
  .gauge{ flex:1 1 140px; }
}
