/* LLMediation — AI Visibility Platform */
:root {
  /* A plain white page (Sarah, Oct 28, 2026: "background white, no
     gradient"); was lavender with violet light in the corners. --bg is also
     what the sticky top bar fades into. */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8f6ff;
  --line: #e6e1f8;
  --line-soft: #eeebfb;
  --ink: #17143a;
  --ink-2: #4f4c73;
  /* #767267, not the original #8a867c -- that measured ~3.6:1 against white,
     under WCAG AA's 4.5:1 for normal text, and this token is used for card
     hints and KPI footnotes on nearly every page. This shade holds ~4.8:1. */
  --ink-3: #6b6791;
  --brand: #4f46e5;
  /* Behind white text. Equal to --brand here; darker in dark mode, where --brand is a light tint for text and fails against white. */
  --brand-fill: var(--brand);
  --brand-soft: #eeebff;
  --brand-ink: #3730a3;
  /* Darkened from #0f9d58/#d64545/#b45309: each measured under 4.5:1 against
     its own -soft tag background (3.13:1 for --pos, 3.83:1 for --neg, and
     --warn was right on the line at 4.51:1) -- the same WCAG AA gap as the
     --ink-3 fix, just in the status-tag system instead. Dark mode's own
     values already clear 4.5:1 comfortably and are untouched. */
  --pos: #0c7a45;
  --pos-soft: #e8f5ee;
  --neg: #ba3c3c;
  --neg-soft: #fdecec;
  --warn: #ad5009;
  --warn-soft: #fef3c7;
  --radius: 16px;
  --radius-sm: 10px;
  /* Violet-tinted and long, so a card looks lifted off the lavender rather than outlined. */
  --shadow: 0 1px 2px rgba(60,40,160,.05), 0 14px 34px -18px rgba(79,70,229,.28);
  --page-glow: var(--bg);
  /* One typeface throughout. IBM Plex Sans is used for every role — display,
     body and data — because it has genuine tabular numerals, which is what the
     old monospace face was actually there for. Alignment is handled by
     font-variant-numeric rather than by a second family. */
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --serif: var(--sans);
  --mono: var(--sans);
}
:root[data-theme="dark"] {
  --bg: #100e22; --surface: #1a1736; --surface-2: #211e42; --line: #2f2b57; --line-soft: #26224a;
  --ink: #f4f2ff; --ink-2: #bab6dc; --ink-3: #958fc0; /* lightened for contrast, same reason as :root's --ink-3 */
  --brand: #8b83ff; --brand-fill: #6358ec; --brand-soft: #241f52; --brand-ink: #c3bdff;
  --pos: #4ade80; --pos-soft: #16301f; --neg: #f87171; --neg-soft: #331917;
  --warn: #fbbf24; --warn-soft: #33280f;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 34px -18px rgba(0,0,0,.7);
  --page-glow: var(--bg);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); background: var(--page-glow); background-attachment: fixed; color: var(--ink);
  font-family: var(--sans); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------------------------------------------------------------- shell */
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }

.sidebar {
  background: color-mix(in srgb, var(--surface) 82%, transparent); border-right: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.logo { display: flex; align-items: center; gap: 9px; padding: 18px 18px 14px; }
.logo-mark { width: 24px; height: 24px; flex: none; object-fit: contain; }
.logo-word { font-weight: 600; font-size: 17px; letter-spacing: -.012em; }
/* Desktop never sees this button -- .sidebar-body is always visible there,
   so there is nothing for it to open. */
.mobile-nav-toggle { display: none; margin-left: auto; }

.ws-switch { margin: 0 12px 14px; position: relative; }
.ws-switch select {
  width: 100%; appearance: none; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 8px 28px 8px 10px; font-size: 13px; font-weight: 550; cursor: pointer;
}
.ws-switch::after { content: '⌄'; position: absolute; right: 11px; top: 5px; color: var(--ink-3); pointer-events: none; }

.nav { padding: 0 8px; flex: 1; }
.nav-group { margin-bottom: 16px; }
.nav-label { font-size: 10.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 0 10px 6px; }
.nav a {
  display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: var(--radius-sm);
  color: var(--ink-2); font-weight: 500; font-size: 13.5px; margin-bottom: 1px;
  transition: background-color .15s ease, color .15s ease;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.active {
  background: var(--brand-fill); color: #fff; font-weight: 600;
  box-shadow: 0 4px 14px -6px color-mix(in srgb, var(--brand) 65%, transparent);
}
.nav a.active svg { opacity: 1; }
.nav a svg { width: 16px; height: 16px; flex: none; opacity: .8; }
.nav a .count { margin-left: auto; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.nav a.active .count { color: rgba(255,255,255,.85); }

.side-foot { padding: 12px 16px 16px; border-top: 1px solid var(--line-soft); font-size: 11.5px; color: var(--ink-3); }
.side-foot .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 5px; }

/* Three states, because "system" is a real choice and not the absence of one. */
.theme-toggle { display: flex; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; padding: 2px; }
.theme-toggle button {
  flex: 1; border: 0; background: none; cursor: pointer; border-radius: 5px;
  padding: 4px 0; font-size: 11px; font-weight: 550; color: var(--ink-3);
  font-family: inherit; transition: background .12s, color .12s;
}
.theme-toggle button:hover { color: var(--ink-2); }
.theme-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(23,20,58,.07); }
.theme-toggle button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.icon-btn {
  background: none; border: 1px solid var(--line); border-radius: 6px; width: 26px; height: 24px; cursor: pointer; color: var(--ink-2); position: relative;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.danger { color: var(--neg); }
.icon-btn.danger:hover { background: var(--neg-soft); border-color: var(--neg); }
/* Same invisible-hit-area technique as .info -- also covers explore.js's
   18x18 remove-view icon, which sets its own smaller width/height inline
   and would otherwise sit under this rule's base size entirely. */
.icon-btn::after { content: ''; position: absolute; inset: -4px; }

.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 62%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding: 14px 26px 12px;
}
.topbar h1 { font-family: var(--sans); font-size: 25px; font-weight: 600; margin: 0 0 2px; letter-spacing: -.022em; }
.topbar .sub { color: var(--ink-3); font-size: 13px; }
.topbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.topbar-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.filters { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; align-items: center; }

.content { padding: 22px 26px 60px; max-width: 1560px; width: 100%; }

/* --------------------------------------------------------------- pieces */
.btn {
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm);
  padding: 7px 13px; font-size: 13px; font-weight: 550; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand-fill); border-color: var(--brand-fill); color: #fff; }
/* A small lift plus a brand-tinted shadow on the one button per screen
   that's usually the recommended action -- the same "escalate on intent"
   idea .chip.on and .nav a.active already use, just as motion instead of
   color. :active cancels the lift so pressing it reads as a real press,
   not a button floating away from the cursor. */
.btn.primary:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--brand) 55%, transparent); }
.btn.primary:active { transform: translateY(0); filter: brightness(.97); box-shadow: none; }
/* A destructive action (remove a teammate, revoke an invite, delete a brief)
   reads as text/border-only rather than a solid fill -- a solid red button
   would compete with .primary for "the one thing on this row that matters,"
   and destructive actions are rarely the recommended one. Tinted red on
   hover, same escalate-on-intent pattern .btn's own hover already uses. */
.btn.danger { border-color: color-mix(in srgb, var(--neg) 40%, transparent); color: var(--neg); }
.btn.danger:hover { background: var(--neg-soft); border-color: var(--neg); }
.btn.sm { padding: 4px 9px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* A <tr>/<span>/<div> standing in for a real button (clickable table rows,
   chips, cards) via role="button" -- these don't reliably get a visible
   default focus ring the way a native <button> does, so one is set here
   explicitly rather than left to each browser's own guess. */
[role="button"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

.advanced-peek-body { max-height: 230px; overflow: hidden; position: relative; }
.advanced-peek-body::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none;
}
.advanced-peek.is-expanded .advanced-peek-body { max-height: none; }
.advanced-peek.is-expanded .advanced-peek-body::after { display: none; }
.advanced-peek.is-expanded .advanced-peek-more { display: none; }
.advanced-peek-more { display: flex; justify-content: center; margin-top: -10px; position: relative; }

.chip {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 5px 11px; font-size: 12.5px; font-weight: 500; cursor: pointer; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--ink-3); }
.chip.on { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 35%, transparent); color: var(--brand-ink); font-weight: 600; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; }
.chip select { border: none; background: none; cursor: pointer; font-size: 12.5px; font-weight: 550; outline: none; }

.card {
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 55%, transparent); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow);
}
/* Every card (data cards, KPI tiles) rises in on render instead of
   snapping into place -- the single cheapest, broadest-reaching "this
   product is alive" signal available given the app re-renders a whole
   view's markup at once rather than diffing individual nodes in. Off
   entirely for anyone who said they don't want motion, same as .tip and
   the impersonation-banner pulse already do. */
@keyframes riseIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .card { animation: riseIn .22s cubic-bezier(.16,1,.3,1) backwards; }
}
.card > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card h2 { font-size: 14px; font-weight: 650; margin: 0; letter-spacing: -.005em; }
.card .hint { font-size: 11.5px; color: var(--ink-3); }

.grid { display: grid; gap: 14px; }
.g-kpi { grid-template-columns: repeat(auto-fit, minmax(min(178px, 100%), 1fr)); }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.span-2 { grid-column: span 2; }
/*
 * A fixed 3-item list (the pricing plans), not an open-ended one -- auto-fit
 * is the wrong tool here: at a container width that fits 2 of the 3 cards
 * but not all 3, it wraps to 2+1, leaving the third alone in a half-empty
 * row. Forced to exactly 3 even columns instead, down to one column below
 * 700px rather than ever landing on the orphaned 2+1 in between.
 */
.plan-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .plan-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .span-2 { grid-column: auto; }
  /*
   * The sidebar used to render at full height above the page on a narrow
   * screen -- a phone visitor scrolled past all of navigation before
   * reaching any actual content. Collapsed to just the logo row plus a
   * toggle by default; .nav-open (set by the click handler in app.js, a
   * plain class toggle, not a render()) reveals the rest inline, pushing
   * page content down rather than overlaying it, so nothing needs its own
   * z-index or backdrop.
   */
  .mobile-nav-toggle { display: inline-flex; }
  .sidebar-body { display: none; }
  .sidebar.nav-open .sidebar-body { display: block; }
}

/* Every KPI tile app-wide, not just the AI-visibility page -- a brand-tinted
   lift instead of the flat neutral shadow every other card uses, so the
   numbers that matter most on each page read as elevated at a glance. */
.card.kpi { border-radius: 16px; box-shadow: 0 10px 28px -16px color-mix(in srgb, var(--brand) 32%, transparent), var(--shadow); }
/* min-height reserves room for a label that wraps (one carrying a
   "verified" badge, say) even when this tile's own label fits on fewer
   lines -- without it, .value sits right under whatever the label's actual
   line count happened to be, so a badged tile's number lands lower than
   its badge-less neighbour in the same .g-kpi row. 43px is the measured
   worst case today: "Verified iROAS" plus its badge wraps to 2 lines at
   178px, the narrowest tile .g-kpi's minmax(178px,1fr) ever produces --
   not just a guess. */
.kpi .label { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); line-height: 1.4; min-height: 43px; }
.kpi .value { font-size: 32px; font-weight: 600; line-height: 1.1; margin: 8px 0 4px; letter-spacing: -.028em; font-variant-numeric: tabular-nums; }
.kpi .value small { font-family: var(--sans); font-size: 14px; color: var(--ink-3); font-weight: 500; }
.kpi .foot { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }

.delta { font-weight: 650; font-size: 12px; padding: 1px 6px; border-radius: 5px; font-variant-numeric: tabular-nums; }
.delta.up { color: var(--pos); background: var(--pos-soft); }
.delta.down { color: var(--neg); background: var(--neg-soft); }
.delta.flat { color: var(--ink-3); background: var(--line-soft); }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left; font-size: 11px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-3); padding: 0 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover { background: var(--surface-2); }
.table-wrap { overflow-x: auto; margin: 0 -18px -16px; padding: 0 18px; }

/*
 * A "clickable row" table's real keyboard/screen-reader entry point -- a
 * genuine <button> inside one cell, not the <tr> itself. Overriding a row's
 * role to "button" (the previous fix here) reaches the same click handler
 * but removes the row from the table's accessibility structure, so a screen
 * reader navigating by row/column loses it as data. This keeps the row a
 * row; the mouse still gets a whole-row click via tr.clickable's own
 * delegated handler, unaffected by any of this.
 */
.row-link {
  all: unset; cursor: pointer; color: inherit; font: inherit;
  display: block; width: 100%;
}
.row-link:hover { text-decoration: underline; }
.row-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; text-decoration: underline; }

.tag {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 5px;
  background: var(--line-soft); color: var(--ink-2); white-space: nowrap;
}
.tag.owned { background: var(--brand-soft); color: var(--brand-ink); }
.tag.pos { background: var(--pos-soft); color: var(--pos); }
.tag.neg { background: var(--neg-soft); color: var(--neg); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }

.bar-track { height: 7px; border-radius: 4px; background: var(--line-soft); overflow: hidden; min-width: 60px; }
.bar-fill { height: 100%; border-radius: 4px; }
/*
 * Every bar (barsH's fill, a stackedBar segment) grows in from zero on
 * render instead of appearing at full length -- transform, not width, so
 * it works regardless of how each caller computed the bar's actual size
 * and never fights the inline width/flex-basis that sets it. Same for
 * groupedBars' SVG columns via .chart-bar, scaling on the vertical axis
 * instead; fill-box is what lets an SVG rect use a plain top/bottom/left/
 * right transform-origin keyword the way an HTML element already can.
 */
@keyframes barGrowX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes barGrowY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: no-preference) {
  .bar-fill { transform-origin: left center; animation: barGrowX .55s cubic-bezier(.16,1,.3,1) backwards; }
  .chart-bar { transform-box: fill-box; transform-origin: bottom; animation: barGrowY .5s cubic-bezier(.16,1,.3,1) backwards; }
}
/* A line chart's own data point -- larger and glowing on hover, matching
   its native <title> tooltip with a visual cue that it's the thing being
   pointed at. */
.chart-dot { transition: r .15s ease; }
.chart-dot:hover { r: 6; filter: drop-shadow(0 2px 5px rgba(0,0,0,.3)); cursor: pointer; }
.heat td.cell { transition: transform .12s ease; }
.heat td.cell:hover { transform: scale(1.08); position: relative; z-index: 1; }

.swatch { width: 9px; height: 9px; border-radius: 3px; display: inline-block; flex: none; }
.brandcell { display: flex; align-items: center; gap: 8px; }
.mono { font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: -.005em; }
.muted { color: var(--ink-3); }
/* Present to a screen reader, invisible on screen -- a real <label> for a
   control whose visible name is carried some other way (a placeholder, an
   icon, surrounding text) rather than a printed label string. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.empty { padding: 42px 20px; text-align: center; color: var(--ink-3); }
.empty h3 { font-weight: 600; font-size: 16px; color: var(--ink-2); margin: 0 0 6px; letter-spacing: -.01em; }

.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------------------------------------------------------------- modal */
.overlay {
  position: fixed; inset: 0; background: rgba(23,20,58,.5); z-index: 60;
  display: flex; align-items: flex-start; justify-content: center; padding: 5vh 20px; overflow-y: auto;
  backdrop-filter: blur(2px);
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .overlay { animation: overlayIn .15s ease-out; }
  .modal { animation: modalIn .18s cubic-bezier(.16,1,.3,1); }
}
.modal {
  background: var(--surface); border-radius: var(--radius); width: min(880px, 100%);
  box-shadow: 0 24px 64px -16px rgba(0,0,0,.4); border: 1px solid var(--line);
}
.modal header { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.modal header h2 { font-weight: 600; font-size: 19px; margin: 0; letter-spacing: -.018em; }
.modal .body { padding: 20px 22px; }
.modal footer { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }

.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
/* Same look as .field label, for a .field that introduces read-only content
   (a formula, a table) rather than an actual control -- a <label> with no
   control to point `for` at is a semantic misuse, not just an unlinked one. */
.field .field-heading { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px;
  background: var(--surface-2); font-size: 13.5px;
}
.field textarea { min-height: 100px; resize: vertical; font-family: var(--mono); font-size: 12.5px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: -1px; border-color: var(--brand); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/*
 * A checkbox is not a text input and must not inherit its full width.
 *
 * `.field input { width: 100% }` above was written for text fields and caught
 * checkboxes too, stretching the box across the row and pushing its own label
 * out of reach of it. Anything tickable opts back out here rather than each
 * one carrying an inline override.
 */
.field input[type="checkbox"], .field input[type="radio"] { width: auto; flex: none; margin: 0; }

/* Label beside the control rather than above it, which is what a tickable
   option needs and what `.field label { display: block }` prevents. */
.field label.check {
  display: flex; align-items: flex-start; gap: .55rem;
  font-weight: 400; cursor: pointer; margin-bottom: 0;
}
.field label.check input { margin-top: .2rem; }

.answer {
  background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: 13.5px; line-height: 1.65; white-space: pre-wrap; max-height: 44vh; overflow-y: auto;
}
.answer mark { background: color-mix(in srgb, var(--brand) 22%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; font-weight: 600; }
.answer mark.rival { background: color-mix(in srgb, var(--neg) 20%, transparent); }
.md h1, .md h2, .md h3 { font-weight: 600; letter-spacing: -.018em; margin: 18px 0 8px; }
.md h1 { font-size: 19px; } .md h2 { font-size: 16px; } .md h3 { font-size: 14px; }
.md p, .md li { font-size: 13.5px; line-height: 1.65; }
.md code { font-family: var(--mono); font-size: 12px; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.md ul, .md ol { padding-left: 20px; }

.progress { height: 5px; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.progress > div { height: 100%; background: var(--brand); transition: width .4s ease; }

/* ---------------------------------------------------- metric definitions */
.info {
  display: inline-flex; align-items: center; justify-content: center;
  width: 13px; height: 13px; border-radius: 50%; flex: none;
  border: 1px solid var(--ink-3); color: var(--ink-3);
  font-size: 9px; font-weight: 700; line-height: 1; font-style: normal;
  cursor: help; vertical-align: middle; margin-left: 4px;
  transition: border-color .12s, color .12s, background .12s;
  user-select: none;
  position: relative; /* anchors ::after below, the actual tap target */
}
/* The visible glyph stays a small inline marker (bulking it up would read as
   a real button sitting mid-sentence) -- this invisible pseudo-element
   extends the actual clickable/tappable area around it to roughly 25x25px,
   clearing WCAG 2.5.8's 24x24 minimum without changing how it looks. */
.info::after { content: ''; position: absolute; inset: -6px; }
.info:hover, .info:focus-visible { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); outline: none; }
.info:focus-visible { box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 30%, transparent); }
th .info { margin-left: 3px; }

.tip {
  position: fixed; z-index: 200; max-width: 310px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 9px;
  box-shadow: 0 4px 22px -6px rgba(23,20,58,.28), 0 1px 2px rgba(23,20,58,.08);
  padding: 11px 13px; font-size: 12.5px; line-height: 1.55;
  text-transform: none; letter-spacing: normal; font-weight: 400;
  pointer-events: none;
}
.tip .t-term { font-weight: 650; font-size: 12.5px; margin-bottom: 3px; }
.tip .t-formula {
  margin-top: 7px; padding: 5px 7px; border-radius: 5px;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--ink-2);
}
.tip .t-caution {
  margin-top: 7px; padding-left: 8px; border-left: 2px solid var(--warn);
  color: var(--ink-2); font-size: 11.5px;
}
@media (prefers-reduced-motion: no-preference) { .tip { animation: tipIn .1s ease-out; } }
@keyframes tipIn { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 90;
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 550; box-shadow: var(--shadow);
}
.spin { display: inline-block; width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.heat td.cell { text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 12px; color: var(--ink); border-radius: 4px; }
.split { display: flex; gap: 18px; align-items: flex-start; }
.scroll-y { max-height: 420px; overflow-y: auto; }

/* ------------------------------------------------- support access strip
 *
 * Loud on purpose, in both applications. An operator inside a customer's
 * account and a customer looking at their own screen must never be able to
 * confuse the two, and the only reliable way to guarantee that is for the
 * page to look different while it is happening.
 */
.ops-impersonating,
.impersonation-banner {
  display: flex; align-items: center; gap: .65rem; flex-wrap: wrap;
  padding: .55rem 1.1rem;
  font-size: 12.5px; line-height: 1.5;
  background: #f0803f; color: #1b1206;
  border-bottom: 1px solid rgba(0, 0, 0, .22);
}
/*
 * The customer shell is a two-column grid, so the banner has to be told to
 * span it. Without this it takes the sidebar's cell and renders as a tall
 * orange column down the left, pushing the navigation into the content area.
 */
.impersonation-banner {
  grid-column: 1 / -1;
  position: sticky; top: 0; z-index: 60;
}
/*
 * The sidebar is sticky at the top of the viewport. While the banner is there,
 * it has to start below it, or the two overlap as soon as the page scrolls.
 * The height is measured after render because the banner wraps on narrow
 * screens and a hard-coded offset would be wrong at exactly the widths where
 * being wrong is most visible.
 */
body.is-impersonated .sidebar {
  top: var(--imp-h, 0px);
  height: calc(100vh - var(--imp-h, 0px));
}
.ops-impersonating a,
.impersonation-banner a,
.impersonation-banner button {
  color: #1b1206; font-weight: 600; text-decoration: underline; text-underline-offset: 2px;
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
}
.ops-impersonating .spacer,
.impersonation-banner .spacer { flex: 1 1 auto; }
.ops-impersonating .dot,
.impersonation-banner .dot {
  width: .5rem; height: .5rem; border-radius: 50%;
  background: #1b1206; flex: none;
  animation: imp-pulse 2s ease-in-out infinite;
}
@keyframes imp-pulse { 0%, 100% { opacity: 1 } 50% { opacity: .25 } }
/* A pulsing dot is decoration for anyone who does not want motion; the words
   carry the meaning, so it simply stops. */
@media (prefers-reduced-motion: reduce) {
  .ops-impersonating .dot, .impersonation-banner .dot { animation: none; }
}
/* The whole customer app is outlined while an operator is driving it, so the
   state is visible from any scroll position rather than only at the top. */
body.is-impersonated { box-shadow: inset 0 0 0 3px #f0803f; }

/*
 * Trial countdown -- brand-tinted, not alarm-orange like
 * .impersonation-banner. That one means "someone else is in your account,"
 * this one means "your trial ends soon," and reusing the same urgent
 * styling for both would make a routine billing nudge read as a security
 * warning. Scoped to <main> rather than spanning the full grid width, so it
 * scrolls with the content instead of needing the sidebar-offset
 * coordination the sticky impersonation banner requires.
 */
.trial-banner {
  display: flex; align-items: center; gap: .65rem; flex-wrap: wrap;
  padding: .55rem 1.1rem; margin-bottom: 12px;
  font-size: 12.5px; line-height: 1.5;
  background: var(--brand-soft); color: var(--brand-ink);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  border-radius: var(--radius);
}
.trial-banner .spacer { flex: 1 1 auto; }
.trial-banner a { color: var(--brand-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* A failed action, said out loud rather than logged to a console nobody has
   open. Fixed to the bottom so it is visible wherever the page is scrolled. */
.ops-action-error {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200;
  display: flex; align-items: center; gap: 1rem;
  max-width: 46rem; margin: 0 auto;
  padding: .7rem 1rem;
  font-size: 13px; line-height: 1.5;
  background: #b3261e; color: #fff;
  border-radius: 8px; box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
.ops-action-error span { flex: 1 1 auto; }
.ops-action-error button {
  flex: none; background: rgba(255, 255, 255, .18); color: #fff;
  border: 0; border-radius: 5px; padding: .3rem .7rem; font: inherit; cursor: pointer;
}
.ops-action-error button:hover { background: rgba(255, 255, 255, .3); }

/* The server predates its own source. Loud, because the symptom is otherwise a
   button that silently does nothing, which reads as a bug in the feature. */
.ops-stale {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding: .6rem 1.1rem;
  background: #7a2e12; color: #fff;
  font-size: 12.5px; line-height: 1.5;
  border-bottom: 1px solid rgba(0, 0, 0, .3);
}
.ops-stale code {
  font-family: var(--mono, ui-monospace, Menlo, monospace);
  background: rgba(255, 255, 255, .16); padding: .12rem .45rem; border-radius: 4px;
}
.kb-link { display: inline-flex; align-items: center; gap: .38rem; }
.kb-link svg { width: 14px; height: 14px; flex: none; }

/* Simulated data, said plainly at the top of the numbers it describes. Quieter
   than an error, because nothing is wrong: a source is simply not connected. */
.provenance-notice {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .7rem .95rem; margin: 0 0 1rem;
  background: color-mix(in srgb, var(--warn, #b8860b) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--warn, #b8860b) 30%, transparent);
  border-radius: var(--radius-sm, 6px);
  font-size: 12.5px; line-height: 1.55; color: var(--ink-2);
}
.provenance-notice b { color: var(--ink); }
.provenance-notice .mark { color: var(--warn, #b8860b); font-size: 15px; line-height: 1.1; }
.provenance-notice a { color: var(--brand); }

/* The action panel at the top of Query intelligence -- a header (outside any
   card) above a grid of standalone, individually clickable cards, one per
   finding. Numbered because the items are ranked by what the data says
   matters most, not by preference. */
.action-panel > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.action-panel > header h2 { font-size: 14px; font-weight: 650; margin: 0; letter-spacing: -.005em; }
.action-panel > header .hint { font-size: 11.5px; color: var(--ink-3); }
.action-panel .action-item { display: flex; gap: .85rem; align-items: flex-start; }
.action-panel .action-item .n {
  flex: none; width: 1.55rem; height: 1.55rem; margin-top: 1px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-fill); color: #fff;
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.action-panel .action-item .item-body { min-width: 0; }
.action-panel .head { font-weight: 600; font-size: 14.5px; line-height: 1.45; }
.action-panel .why { color: var(--ink-2); font-size: 13px; line-height: 1.6; margin-top: .2rem; }
.action-panel .qs { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.action-panel .qs .chip {
  font-size: 11.5px; padding: .15rem .5rem; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-2); cursor: pointer; max-width: 34ch;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.action-panel .qs .chip:hover { color: var(--ink); border-color: var(--brand); }
.action-panel .action-item .item-body { flex: 1; }
/* Question chips wrap instead of being cut off mid-word (Oct 25, 2026). */
.action-panel .qs .chip, .modal .qs .chip { white-space: normal; max-width: 100%; text-align: left; line-height: 1.35; }
.modal .qs { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
/* "How to fix it": the three standard steps on each action item. */
.how { margin-top: .75rem; padding: .6rem .75rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.how .how-title { font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: .3rem; }
.how ol { margin: 0; padding-left: 1.15rem; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.how li + li { margin-top: .2rem; }
.action-panel .item-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.action-panel .good-news { margin: 0 0 12px; padding: .55rem .8rem; border-radius: 10px; font-size: 13px;
  background: color-mix(in srgb, var(--pos, #0c7a45) 10%, transparent); color: var(--ink); }
.done-row { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; font-size: 13px; border-top: 1px solid var(--line); }
.done-row:first-of-type { border-top: 0; }
.action-panel .caveat {
  margin: 1rem 0 0; padding-top: .8rem; border-top: 1px solid var(--line-soft);
  color: var(--ink-3); font-size: 12.5px; line-height: 1.6;
}

/* Any card meant to be clicked as a whole -- the action-item cards above and
   the brief-section cards below. Buttons/chips inside stop the click before
   it reaches the card (see the delegated handler), so their own hover states
   still apply normally. */
.card.clickable { cursor: pointer; transition: .12s; }
.card.clickable:hover { border-color: var(--ink-3); box-shadow: 0 10px 28px -18px rgba(0,0,0,.25), var(--shadow); }

/* The four-card brief summary (Why/What/Who/How) inside showBrief()'s modal. */
.brief-card-label {
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--brand);
}
.brief-card-heading { font-weight: 600; font-size: 14px; margin-top: 3px; }
.brief-card-preview { font-size: 12.5px; line-height: 1.55; margin-top: 6px; }

/* Last sampled, what is waiting, and the way to run it again. */
.sampling-bar { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.sampling-bar .when { font-size: 15px; font-weight: 600; margin-top: .1rem; }
.sampling-bar .scope { font-size: 12px; margin-top: .15rem; }
.sampling-bar .spacer { flex: 1 1 auto; }
.sampling-bar .waiting {
  font-size: 12.5px; line-height: 1.55; color: var(--ink-2);
  padding: .5rem .8rem; border-radius: var(--radius-sm, 6px);
  background: color-mix(in srgb, var(--warn, #b8860b) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--warn, #b8860b) 32%, transparent);
  max-width: 46ch;
}
.sampling-bar .waiting b { color: var(--ink); }

/* ------------------------------------------------------ AI visibility page */
.hero-mentions { display: grid; gap: 3px; }
.hero-mention-row {
  display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 11px;
  padding: 9px 4px; border-bottom: 1px solid var(--line-soft);
}
.hero-mention-row:last-child { border-bottom: none; }
.hero-mention-row .dot { width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.hero-mention-row .name { font-weight: 600; font-size: 13px; }
.hero-mention-row .sub { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.hero-mention-row .figure { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }

/* Guidance inside the log upload dialog. */
.note-block { font-size: 13px; line-height: 1.6; color: var(--ink-2); margin-bottom: 1.1rem; }
.note-block p { margin: 0 0 .7rem; }
.note-block b { color: var(--ink); }
.note-block .fmt {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm, 6px); padding: .7rem .8rem; margin: .5rem 0 .8rem;
  font-family: var(--mono, ui-monospace, Menlo, monospace);
  font-size: 11px; line-height: 1.7; overflow-x: auto; white-space: pre;
}

/* ---------------------------------------------------------------- chatbot
 * A floating launcher + panel, appended straight to <body> (see
 * chatbot.js) so it survives every route's full re-render. z-index sits
 * below the tooltip (200) and above ordinary page content, and below the
 * modal overlay (60 -- deliberately: a modal is a blocking decision, the
 * chat is not, so a modal should be able to sit on top of it). */
.cb-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 55;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--brand-fill); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px -10px rgba(79, 70, 229, .55), var(--shadow);
  transition: transform .15s ease, filter .15s ease;
}
.cb-launcher svg { width: 24px; height: 24px; }
/* A proactive message is waiting. A dot, not an open panel: see chatbot.js maybeNudge(). */
.cb-launcher.has-unread::after {
  content: ''; position: absolute; top: 3px; right: 3px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--neg); border: 2px solid var(--bg);
}
@media (prefers-reduced-motion: no-preference) {
  .cb-launcher.has-unread { animation: cbNudge 2.4s ease-in-out 3; }
}
@keyframes cbNudge { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(1); } }
.cb-launcher:hover { filter: brightness(1.08); transform: scale(1.06); }
.cb-launcher:active { transform: scale(.96); }

.cb-panel {
  position: fixed; right: 22px; bottom: 86px; z-index: 55;
  width: 360px; max-width: calc(100vw - 32px); height: 480px; max-height: calc(100vh - 130px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden;
  transform-origin: bottom right;
}
/* The [hidden] attribute has the same specificity as the class rule above,
   so without this the later, always-visible `display: flex` wins outright. */
.cb-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .cb-panel:not([hidden]) { animation: panelIn .16s cubic-bezier(.16,1,.3,1); }
}
.cb-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 12px 12px 10px 16px; border-bottom: 1px solid var(--line);
}
.cb-title { font-weight: 650; font-size: 13.5px; }
.cb-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

.cb-messages { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.cb-msg { font-size: 13px; line-height: 1.55; max-width: 88%; }
.cb-msg p { margin: 0 0 .6em; }
.cb-msg p:last-child { margin-bottom: 0; }
.cb-msg.cb-user {
  align-self: flex-end; background: var(--brand-fill); color: #fff;
  padding: 8px 12px; border-radius: 12px 12px 3px 12px;
}
.cb-msg.cb-assistant {
  align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line);
  padding: 8px 12px; border-radius: 12px 12px 12px 3px; color: var(--ink);
}
.cb-intro { font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.cb-starters { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; align-items: flex-start; }
.cb-starters .chip { text-align: left; white-space: normal; height: auto; }

.cb-inputrow { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.cb-inputrow input {
  flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
  font-size: 13px; background: var(--surface); color: var(--ink);
}
/* A border-color change alone is a weaker focus signal than the native
   outline it replaced -- kept the border tint, added a visible ring back
   next to it rather than just deleting outline:none. */
.cb-inputrow input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 30%, transparent); }

@media (max-width: 480px) {
  .cb-panel { right: 16px; bottom: 78px; }
  .cb-launcher { right: 16px; bottom: 16px; }
  /* The floating button sits over the last row of a page; leave it room. */
  .content { padding-bottom: 96px; }
}

/*
 * Phones. The desktop gutters (26px each side) left a 308px column at 375px, and
 * several grids and cards were sized to a fixed width wider than that, so whole
 * pages scrolled sideways. A narrower gutter, content that is allowed to shrink,
 * and tables that scroll inside their own card rather than stretching the page.
 */
@media (max-width: 600px) {
  .content { padding-left: 14px; padding-right: 14px; }
  .topbar { padding-left: 14px; padding-right: 14px; }
  .card { min-width: 0; }
  .grid > * { min-width: 0; }
  .card table { display: block; overflow-x: auto; max-width: 100%; }
  .modal { max-width: 100%; }
  .field-row { grid-template-columns: 1fr; }
}

/* An error beside the field it belongs to (app.js showFieldError). */
.field-error { color: var(--neg); font-size: 12px; line-height: 1.4; margin-top: 4px; font-weight: 550; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--neg); box-shadow: 0 0 0 2px color-mix(in srgb, var(--neg) 22%, transparent); }

/* Satisfaction card (app.js showFeedbackCard): a corner card, never a blocking dialog. */
.fb-card {
  position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 320px; max-width: calc(100vw - 32px);
  padding: 16px 16px 14px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(23, 20, 58, .16);
  font-size: 13px; line-height: 1.45;
}
.fb-close { position: absolute; top: 8px; right: 8px; border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 13px; padding: 4px; }
.fb-q { font-weight: 600; margin: 0 22px 10px 0; }
.fb-scale { display: flex; gap: 6px; }
.fb-n, .fb-chip {
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); border-radius: 8px; cursor: pointer; font: inherit;
}
.fb-n { flex: 1; padding: 7px 0; font-weight: 600; }
.fb-n.on, .fb-chip.on { background: var(--brand-fill); border-color: var(--brand-fill); color: #fff; }
.fb-ends { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 11.5px; margin-top: 4px; }
.fb-more { margin-top: 12px; }
.fb-label { display: block; color: var(--ink-2); font-size: 12px; margin: 0 0 6px; }
.fb-reasons { margin-bottom: 10px; }
.fb-chip { padding: 5px 9px; margin: 0 4px 6px 0; font-size: 12px; }
.fb-comment { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; font: inherit; background: var(--surface); color: var(--ink); resize: vertical; }
.fb-send { margin-top: 10px; width: 100%; }
.fb-thanks { padding: 6px 22px 4px 0; font-weight: 600; }
@media (max-width: 640px) { .fb-card { right: 16px; bottom: 16px; } }

/* "What we track" in the sidebar: a dot while no competitor is named (Oct 25, 2026). */
.setup-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warn, #b45309); margin-left: auto; flex: none; }
.setup-dot[hidden] { display: none; }

/* ---- Calm dashboard (Oct 25, 2026): numbers first, one line of status, details folded ---- */
.kpi .value .of { font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.home-pair { margin-bottom: 14px; align-items: stretch; }
.home-pair > .card { margin: 0; }
.top-brands td, .top-brands th { padding-top: 9px; padding-bottom: 9px; }
.top-brands tr.you td { background: color-mix(in srgb, var(--brand) 7%, transparent); }
.top-brands tr.you td:first-child { border-radius: 8px 0 0 8px; }
.top-brands tr.you td:last-child { border-radius: 0 8px 8px 0; }
.status-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; margin: 0 0 18px; padding: 0 2px; }
.status-line .spacer { flex: 1; }
.details-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 2px 2px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.details-head .muted { font-weight: 400; font-size: 12.5px; }
/* Action items grouped by theme, steps folded until clicked. */
.action-group { margin-bottom: 18px; }
.action-group > .group-head { display: flex; align-items: center; gap: 10px; margin: 0 2px 10px; font-size: 13.5px; font-weight: 650; }
.action-group > .group-head .progress { font-weight: 500; font-size: 12px; color: var(--ink-3); }
.tag.blocking { background: var(--neg-soft, #fde8e8); color: var(--neg, #b42318); font-weight: 600; }
.action-panel details.how-fold { margin-top: .6rem; }
.action-panel details.how-fold > summary { cursor: pointer; font-size: 12.5px; color: var(--brand-ink, var(--brand)); font-weight: 600; list-style: none; }
.action-panel details.how-fold > summary::-webkit-details-marker { display: none; }
.action-panel details.how-fold > summary::before { content: '▸ '; }
.action-panel details.how-fold[open] > summary::before { content: '▾ '; }
.action-panel .why { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- Blurred preview after a no-card trial ends (Oct 25, 2026) ---- */
.locked-preview { position: relative; }
.locked-preview > :not(.locked-overlay) { filter: blur(6px); pointer-events: none; user-select: none; }
.locked-overlay { position: sticky; top: 96px; z-index: 6; height: 0; }
.locked-overlay .lp-box { position: relative; max-width: 480px; margin: 48px auto 0; padding: 26px 28px; text-align: center;
  box-shadow: 0 18px 50px rgba(20, 16, 60, .16); }
.locked-overlay h2 { font-size: 19px; margin: 0 0 16px; letter-spacing: -.01em; }
.locked-overlay .lp-facts { display: flex; gap: 10px; justify-content: center; margin: 0 0 16px; }
.locked-overlay .lp-fact { flex: 1 1 0; padding: 12px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.locked-overlay .lp-num { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.locked-overlay .lp-of { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.locked-overlay .lp-label { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.locked-overlay p { font-size: 13px; line-height: 1.55; margin: 0 0 16px; }
@media (max-width: 600px) { .locked-overlay .lp-facts { flex-direction: column; } .locked-overlay .lp-box { margin: 24px 8px 0; } }

/* ------------------------------------------------ dark sidebar (Oct 27, 2026)
   Dark blue in both themes (indigo until Sarah's change, same day), Sarah's variant A: logo bubble, plan, AI
   readiness wheel, the pages, then the upgrade banner. */
.sidebar.dark {
  --nav: #0b1f3a; --nav-2: #142c50; --nav-ink: #cad7ea; --nav-dim: #8ea3c2; --nav-line: #223b61;
  background: var(--nav); color: var(--nav-ink); border-right: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.sidebar.dark .sb-brand { gap: 11px; padding: 18px 16px 14px; margin: 0 4px; border-bottom: 1px solid var(--nav-line); }
.sidebar.dark .bubble {
  width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #2a4a78;
  display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden;
  border: 0; padding: 0; cursor: pointer; color: var(--brand-fill); font-weight: 700;
}
.sidebar.dark .bubble img { width: 32px; height: 32px; object-fit: contain; }
.sidebar.dark .bubble .plus { font-size: 22px; line-height: 1; color: #1d4ed8; }
.sidebar.dark .bubble:hover { box-shadow: 0 0 0 3px #93c5fd; }
.sb-id { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.sb-switch { position: relative; }
.sb-switch select {
  width: 100%; appearance: none; background: none; border: 0; color: #fff; font-weight: 600; font-size: 15px;
  padding: 0 18px 0 0; cursor: pointer; text-overflow: ellipsis;
}
.sb-switch select option { color: #17143a; background: #fff; }
.sb-switch::after { content: '⌄'; position: absolute; right: 2px; top: -3px; color: var(--nav-dim); pointer-events: none; }
.sb-plan { font-size: 11.5px; color: var(--nav-dim); margin-top: 2px; }
.sb-ready {
  display: flex; align-items: center; gap: 12px; margin: 14px 12px 6px; padding: 10px 12px;
  border-radius: 12px; background: var(--nav-2); color: var(--nav-ink); text-decoration: none;
}
.sb-ready:hover, .sb-ready.active { box-shadow: inset 0 0 0 1px #34557f; }
.sb-ready .rd-ring { flex: none; }
.sb-ready > span { display: flex; flex-direction: column; }
.sb-ready .lbl { font-size: 12px; color: var(--nav-dim); }
.sb-ready .val { font-size: 15px; color: #fff; font-weight: 600; }
.sb-ready .go { font-size: 11.5px; color: #93c5fd; margin-top: 1px; }
.sidebar.dark .nav { margin-top: 10px; padding: 0 12px; flex: none; }
.sidebar.dark .nav a { color: var(--nav-ink); font-size: 14px; padding: 8px 12px; border-radius: 10px; gap: 11px; }
.sidebar.dark .nav a svg { width: 18px; height: 18px; }
.sidebar.dark .nav a:hover { background: var(--nav-2); color: #fff; }
.sidebar.dark .nav a.active { background: #fff; color: var(--nav); box-shadow: none; }
.sidebar.dark .nav a .count { color: #fff; background: #2563eb; border-radius: 999px; padding: 1px 7px; }
.sidebar.dark .nav a.active .count { color: #fff; }
.sidebar.dark .nav .sep { height: 1px; background: var(--nav-line); margin: 8px 6px; }
.sidebar.dark .setup-dot { margin-left: auto; }
.sb-up {
  position: relative; margin: 14px 12px 0; background: #fff; border-radius: 16px; padding: 16px;
  color: #17143a; overflow: hidden;
}
.sb-up::before {
  content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px;
  border-radius: 50%; border: 14px solid #eeebff; pointer-events: none;
}
.sb-up .x { position: absolute; right: 8px; top: 4px; border: 0; background: none; color: #6b6791; font-size: 17px; cursor: pointer; z-index: 1; }
.sb-up .pill {
  display: inline-block; background: linear-gradient(90deg, #6d28d9, #4f46e5); color: #fff;
  font-size: 12px; font-weight: 600; border-radius: 7px; padding: 2px 9px;
}
.sb-up .pr { font-size: 28px; font-weight: 700; margin-top: 8px; letter-spacing: -.02em; }
.sb-up .pr small { font-size: 14px; font-weight: 500; color: #6b6791; }
.sb-up .ln { font-size: 12.5px; color: #4f4c73; margin-top: 2px; }
.sb-up .ln2 { font-size: 12px; color: #6b6791; margin-top: 2px; }
.sb-up .ub {
  display: block; width: 100%; text-align: center; background: var(--nav); color: #fff; border: 0;
  border-radius: 10px; padding: 9px; margin-top: 12px; font-weight: 600; font-size: 13px; cursor: pointer;
}
.sb-up .ub:hover { background: #1e3a66; }
.sidebar.dark .side-foot { margin: auto 4px 0; padding-top: 12px; border-top: 1px solid var(--nav-line); color: var(--nav-dim); }
.sb-up { margin-top: auto !important; }
.sb-up + .side-foot { margin-top: 14px; }
@media (min-width: 901px) { .sidebar.dark .sidebar-body { display: flex; flex-direction: column; flex: 1; } }
.sidebar.dark .side-foot a { color: #93c5fd; }
.sb-user { display: block; color: #fff; overflow: hidden; text-overflow: ellipsis; }
.sidebar.dark .theme-toggle { background: var(--nav-2); border-color: var(--nav-line); }
.sidebar.dark .theme-toggle button { color: var(--nav-dim); }
.sidebar.dark .theme-toggle button[aria-pressed="true"] { background: #fff; color: var(--nav); }
.sidebar.dark .mobile-nav-toggle { color: #fff; border-color: var(--nav-line); }
.sidebar.dark :focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
/* Phones and narrow tablets: the menu folds under the brand row, opens as one column. */
@media (max-width: 900px) {
  .sidebar.dark .sb-brand { border-bottom: 0; padding: 12px 14px; }
  .sidebar.dark.nav-open .sb-brand { border-bottom: 1px solid var(--nav-line); }
  .sidebar.dark.nav-open .sidebar-body { display: flex; flex-direction: column; padding-bottom: 12px; }
  .sidebar.dark .sb-ready { margin: 12px 12px 4px; }
  .sidebar.dark .nav a { padding: 11px 12px; }
  .sidebar.dark .sb-up { margin: 12px 12px 0; }
  .sidebar.dark .side-foot { margin: 12px 4px 0; }
}

/* "From Growth": on Starter, more countries come with Growth. */
.from-growth {
  font-size: 11px; font-weight: 600; color: #fff; border-radius: 6px; padding: 1px 7px;
  background: linear-gradient(90deg, #6d28d9, #4f46e5);
}

/* All brands: one mini dashboard per brand. */
.ab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ab-tile {
  margin: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 12px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.ab-tile:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--brand), 0 14px 34px -18px rgba(79,70,229,.35); }
.ab-head { display: flex; align-items: center; gap: 11px; }
.bubble.sm {
  width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--line);
  display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden;
  font-weight: 700; font-size: 14px; color: #4f46e5;
}
.bubble.sm img { width: 26px; height: 26px; object-fit: contain; }
.ab-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ab-name b { font-size: 15px; }
.ab-name .muted { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ab-mini > span { display: flex; flex-direction: column; gap: 2px; }
.ab-mini .muted { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.ab-mini b { font-size: 20px; font-weight: 600; }
.ab-spark { width: 100%; height: 34px; }
.ab-foot { display: flex; justify-content: space-between; font-size: 12px; }
.ab-add { align-items: center; justify-content: center; min-height: 200px; border-style: dashed; color: var(--ink-2); font-weight: 600; }
.ab-plus { font-size: 30px; line-height: 1; color: var(--brand); }

.settings-theme { margin-left: auto; width: 180px; align-self: center; }
.help-chip { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.help-chip svg { width: 14px; height: 14px; }
.ab-mini .delta { align-self: flex-start; }

/* Onboarding (Oct 28, 2026): the first screens after signup sit on a plain
   white page, one question per screen, no form chrome (Sarah). */
body:has(.ob-screen) { background: var(--surface); }
/* One size for all text on these screens; only the title is larger (Sarah: "same font, same size for all text"). */
.ob-screen { --ob-text: 17px; font-size: var(--ob-text); }
.ob-screen .btn, .ob-screen .chip, .ob-screen .tag, .ob-screen .muted, .ob-screen input, .ob-screen select { font-size: var(--ob-text); }
.ob-screen .btn.sm { padding: 8px 16px; }
.ob-screen { min-height: 100vh; display: flex; flex-direction: column; }
.ob-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 28px; }
.ob-logo { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: var(--ob-text); color: var(--ink); }
.ob-logo img { width: 24px; height: 24px; }
.ob-top a { font-size: var(--ob-text); color: var(--ink-3); }
.ob-progress { height: 3px; background: var(--line-soft); }
.ob-progress i { display: block; height: 3px; background: var(--brand); transition: width .4s ease; }
.ob-body { width: 100%; max-width: 36rem; margin: 0 auto; padding: 12vh 24px 64px; box-sizing: border-box; }
.ob-body h1 { font-size: 32px; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; margin: 0 0 32px; color: var(--ink); }
.ob-label { display: block; font-size: var(--ob-text); font-weight: 500; color: var(--ink-3); margin: 0 0 8px; }
.ob-big { width: 100%; box-sizing: border-box; height: 58px; padding: 0 18px; font-size: var(--ob-text); border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); margin: 0 0 22px; }
.ob-big:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.ob-go { height: 50px; padding: 0 26px; font-size: var(--ob-text); border-radius: 12px; }
.ob-sentence { font-size: var(--ob-text); line-height: 1.8; color: var(--ink); margin: 0 0 30px; }
.ob-sentence .ob-tok { width: auto; field-sizing: content; height: auto; box-shadow: none; border-radius: 0; font: inherit; color: var(--brand); background: transparent; border: none; border-bottom: 1.5px dashed color-mix(in srgb, var(--brand) 55%, transparent); padding: 0 2px; min-width: 6ch; max-width: 100%; }
.ob-sentence .ob-tok::placeholder { color: var(--ink-3); }
.ob-sentence .ob-tok:focus { outline: none; border-bottom-style: solid; background: var(--brand-soft); border-radius: 4px 4px 0 0; }
.ob-places { display: flex; flex-wrap: wrap; gap: 14px 24px; margin: 0 0 30px; }
.ob-place { display: flex; align-items: center; gap: 10px; font-size: var(--ob-text); color: var(--ink-2); }
.ob-place select { width: auto; field-sizing: content; max-width: min(100%, 17rem); height: auto; font-size: var(--ob-text); color: var(--brand); font-weight: 500; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px; background: var(--surface); cursor: pointer; }
.ob-place select:focus { outline: none; border-color: var(--brand); }
.ob-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 30px; }
.ob-chips .chip { font-size: var(--ob-text); padding: 6px 8px 6px 14px; }
.ob-chips input { border: 1.5px dashed var(--line); border-radius: 999px; padding: 7px 14px; font-size: var(--ob-text); background: transparent; color: var(--ink); min-width: 13rem; }
.ob-chips input:focus { outline: none; border-style: solid; border-color: var(--brand); }
.ob-more { font-size: var(--ob-text); color: var(--brand); background: none; border: none; padding: 0; cursor: pointer; margin: 0 0 30px; }
.ob-details { margin: -12px 0 30px; }
.ob-details .ob-big { height: 48px; font-size: var(--ob-text); margin-bottom: 16px; }
.ob-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.ob-actions .muted { font-size: var(--ob-text); }
.ob-reading { font-size: var(--ob-text); font-weight: 400; margin: 0 0 20px; color: var(--ink); }
.ob-track { height: 4px; border-radius: 2px; background: var(--line-soft); overflow: hidden; }
.ob-track i { display: block; height: 4px; background: var(--brand); animation: ob-read 6s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes ob-read { from { width: 4%; } to { width: 92%; } }
@media (prefers-reduced-motion: reduce) { .ob-track i { animation: none; width: 60%; } }
@media (max-width: 600px) {
  .ob-body { padding-top: 8vh; }
  .ob-body h1 { font-size: 28px; }
}

/* Sign in / sign up on the same white page as the setup screens (Oct 28, 2026). */
.au-screen .au-sub { margin: -18px 0 28px; line-height: 1.55; }
.au-screen .field { margin-bottom: 20px; }
.au-screen .field label { font-size: var(--ob-text); font-weight: 500; color: var(--ink-3); margin-bottom: 8px; }
.au-screen .field input { height: 54px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); }
.au-screen .field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.au-screen .hint { font-size: var(--ob-text); margin-top: 6px; }
.au-screen #au-go, .au-screen #au-google, .au-screen a.btn.primary { height: 52px; border-radius: 12px; font-size: var(--ob-text); }
/* The footer links (API key, legal) are the one exception to the single size: small and grey (Sarah, Oct 28). */
.au-screen .au-foot { text-align: center; margin: 28px 0 0; line-height: 1.7; font-size: 13px; }
.au-screen .au-foot a { color: var(--ink-3); }
.au-screen .au-foot a:hover { color: var(--brand); }
.au-screen .au-foot + .au-foot { margin-top: 12px; }

/* Positioning map switch (Competitors page, Oct 28, 2026). */
.posmap .seg { display: flex; gap: 8px; flex-wrap: wrap; }
.posmap .btn.is-on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }

/* Integrations page (Sarah, Oct 28, 2026): one card per integration, one
   text size, no coloured bands. */
.intg-list { display: flex; flex-direction: column; gap: 14px; }
.intg, .intg h3, .intg p, .intg .btn, .intg .tag, .intg .muted { font-size: 15px; }
.intg { padding: 22px 24px; }
.intg h3 { font-weight: 600; margin: 0 0 4px; color: var(--ink); }
.intg p { margin: 0; color: var(--ink-3); line-height: 1.5; }
.intg-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.intg-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.intg-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0 0; margin-top: 12px; border-top: 1px solid var(--line-soft); }
.intg-line > span:first-child { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.intg .intg-note { margin-top: 10px; }

/* Overview metrics as one strip (Sarah, Oct 28, 2026). The 1px gap over a
   line-coloured background draws the dividers, wherever the cells wrap. */
.kpi-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.kpi-cell { background: var(--surface); padding: 16px 20px 18px; min-width: 0; }
.kpi-lab { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.kpi-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.kpi-v { font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.kpi-v .of { font-size: 15px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.kpi-strip .traceable { border-bottom: none !important; }
.kpi-d { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.kpi-d.up { color: var(--pos); }
.kpi-d.down { color: var(--neg); }
/* Two columns on a phone, the fifth cell across both, so no empty slot shows. */
@media (max-width: 760px) { .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi-cell:last-child { grid-column: span 2; } }

/* Overview header in one row (Sarah, Oct 28, 2026). */
.topbar-one { align-items: center; justify-content: flex-start; }
.topbar-one .spacer { flex: 1; }
.topbar-one h1 { margin: 0; }
.topbar-one .filters { margin-top: 0; }
.seg-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.seg-switch a { padding: 5px 14px; border-radius: 999px; font-size: 13px; color: var(--ink-2); text-decoration: none; }
.seg-switch a.on { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.btn.icon-only { width: 36px; height: 36px; padding: 0; justify-content: center; }

/* Brands by assistant (Competitors page, Oct 28, 2026). */
.by-assistant { table-layout: fixed; }
.by-assistant th { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.by-assistant th:first-child { width: 26%; }
.by-assistant td { vertical-align: middle; }
.by-assistant tr.you td { background: color-mix(in srgb, var(--brand) 5%, var(--surface)); }
.by-assistant .ba-n { font-variant-numeric: tabular-nums; }
.by-assistant .ba-n.top { font-weight: 600; }
.by-assistant .ba-top { font-size: 11.5px; color: var(--ink-3); margin-left: 5px; }
.by-assistant .ba-bar { height: 4px; border-radius: 2px; background: var(--line-soft); margin-top: 6px; max-width: 160px; }
.by-assistant .ba-bar i { display: block; height: 4px; border-radius: 2px; }

/* My Brand as a profile (Sarah, Oct 28, 2026): values edit where they sit and
   save on their own; fields look like text until hovered or focused. */
.mb-card { padding: 22px 26px; }
.mb-top { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.mb-logo { width: 56px; height: 56px; border-radius: 14px; border: 1px solid var(--line); background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; font-size: 18px; display: grid; place-items: center; overflow: hidden; padding: 0; cursor: pointer; flex: none; }
.mb-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.mb-id { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.mb-h { font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.mb-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 15px; }
.mb-k { color: var(--ink-3); }
.mb-v { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.mb-saved { font-size: 13px; color: var(--pos); min-width: 1px; }
.mb-in { font: inherit; font-size: 15px; color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; margin-left: -9px; width: 100%; max-width: 520px; box-sizing: border-box; }
select.mb-in { width: auto; field-sizing: content; max-width: 260px; cursor: pointer; }
.mb-in::placeholder { color: var(--ink-3); opacity: .8; }
.mb-in:hover { border-color: var(--line); }
.mb-in:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: var(--surface); }
.mb-name { font-size: 20px; font-weight: 600; letter-spacing: -.01em; padding: 2px 8px; }
.mb-url { color: var(--brand); padding: 2px 8px; }
.mb-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 6px 3px 12px; font-size: 14px; }
.mb-chip button { border: none; background: none; color: var(--ink-3); cursor: pointer; font-size: 15px; padding: 0 4px; }
.mb-add { border: 1px dashed var(--line); background: none; border-radius: 999px; padding: 4px 12px; font-size: 14px; color: var(--brand); cursor: pointer; }
@media (max-width: 640px) { .mb-row { grid-template-columns: 1fr; gap: 4px; } }
/* The search-term chips match the country chips. */
.mb-card [data-drop-line] { background: none !important; border: none !important; color: var(--ink-3) !important; padding: 0 4px !important; font-size: 15px; }
.mb-card span:has(> [data-drop-line]) { font-size: 14px !important; padding: 3px 6px 3px 12px !important; }
.mb-card #add-line { border: 1px dashed var(--line); background: none; border-radius: 999px; color: var(--brand); font-size: 14px; font-weight: 400; }

/* Account settings (Oct 28, 2026): one title, a segmented switch, one Team card, appearance as a quiet row. */
.set-tabs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.tm-card { padding: 22px 26px; }
.tm-card > header.tm-head { align-items: center; margin-bottom: 6px; }
.tm-head h2 { font-size: 15px; }
.tm-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 150px; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.tm-av { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; font-size: 13px; display: grid; place-items: center; }
.tm-av.pending { background: none; border: 1.5px dashed var(--line); }
.tm-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tm-who > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-role { border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.tm-act { display: flex; justify-content: flex-end; gap: 8px; align-items: center; }
.tm-link { border: none; background: none; padding: 0; font: inherit; font-size: 14px; color: var(--brand); cursor: pointer; }
.tm-link[data-remove-member], .tm-link[data-revoke-invite] { color: var(--ink-3); }
.tm-link:hover { text-decoration: underline; }
.set-foot { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 14px 26px; font-size: 14px; color: var(--ink-2); }
.set-foot .settings-theme { margin-left: 0; width: 200px; }
.set-foot .theme-toggle button { font-size: 14px; }
.set-foot .spacer { flex: 1 1 auto; }
.set-foot .help-chip { color: var(--ink-2); font-size: 14px; }
@media (max-width: 640px) {
  .tm-row { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .tm-act { grid-column: 2 / -1; justify-content: flex-start; }
}

/* A brand's own logo sits bare on the page: no white disc, no ring (Sarah, Oct 28, 2026). */
.sidebar.dark .bubble.has-img, .bubble.sm.has-img { background: none; box-shadow: none; border-radius: 10px; }
.sidebar.dark .bubble.has-img img { width: 44px; height: 44px; border-radius: 10px; }
.bubble.sm.has-img img { width: 38px; height: 38px; border-radius: 8px; }
.sidebar.dark .bubble.has-img:hover { box-shadow: none; opacity: .85; }
