/* ==========================================================================
   GEO console — dark "limy" theme
   Pure-black canvas · violet accent · monospace data · real LLM logos.
   Same class names as before — pages cascade unchanged.
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGroteskVF.woff2") format("woff2-variations");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist Sans";
  src: url("/fonts/GeistVF.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMonoVF.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* Surfaces — near-black ladder */
  --bg:           #08080a;
  --surface:      #121214;
  --surface-2:    #17171a;
  --surface-3:    #202024;

  /* Borders */
  --border:       rgba(255,255,255,.07);
  --border-strong:rgba(255,255,255,.13);

  /* Ink */
  --ink:          #f4f4f6;
  --ink-2:        #a6a6b0;
  /* ink-3/ink-4 lightened to clear WCAG AA (4.5:1) on the dark surfaces for
     secondary text (footers, axis labels, status, muted rows). */
  --ink-3:        #8e8e9a;
  --ink-4:        #8a8a96;   /* bumped from #6d6d77 — WCAG AA contrast on the dark surfaces */

  /* Brand / accents — violet */
  --violet:       #8b5cf6;
  --violet-bright:#a78bfa;
  --violet-dark:  #7c3aed;
  --blue:         #8b5cf6;     /* legacy alias → violet */
  --blue-dark:    #a78bfa;     /* legacy alias → violet text */
  --blue-soft:    rgba(139,92,246,.16);
  --indigo:       #818cf8;

  --green:        #4ade80;
  --green-soft:   rgba(74,222,128,.14);
  --amber:        #fbbf24;
  --amber-soft:   rgba(251,191,36,.14);
  --red:          #f87171;
  --red-soft:     rgba(248,113,113,.14);

  /* LLM brand colors (data-viz) — brightened for dark bg */
  --llm-chatgpt:   #19c39c;
  --llm-claude:    #e08a63;
  --llm-gemini:    #5b9dff;
  --llm-perplexity:#2bc5da;
  --llm-copilot:   #a685e2;
  --llm-grok:      #c4c7cf;
  --llm-meta:      #3b86ff;

  /* Type */
  /* Headings: self-hosted Space Grotesk (geometric, distinctive — the "console"
     voice); body stays on Geist for reading comfort. Inter is only a fallback. */
  --font-heading: "Space Grotesk", "Geist Sans", "Inter", system-ui, sans-serif;
  --font-sans:    "Geist Sans", "Inter", system-ui, sans-serif;
  --font-mono:    "Geist Mono", ui-monospace, monospace;

  --topbar-h: 64px;
  --sidebar-w: 264px;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;

  --shadow-card: 0 1px 0 rgba(255,255,255,.02) inset, 0 6px 22px rgba(0,0,0,.5);
  --shadow-pop:  0 20px 50px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 14px;
  line-height: 1.5;
}
/* subtle violet aura at top, like limy's hero glow */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 420px at 78% -8%, rgba(139,92,246,.16), transparent 60%),
    radial-gradient(700px 380px at 8% 0%, rgba(99,102,241,.10), transparent 55%);
}

a { color: var(--violet-bright); text-decoration: none; }
a:hover { text-decoration: none; color: #c4b5fd; }

/* ===== Topbar ============================================================ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px;
  background: rgba(10,10,12,.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 60;
}
.topbar__burger {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; cursor: pointer; color: var(--ink-2);
  border: 0; background: transparent; flex: none;
}
.topbar__burger:hover { background: var(--surface-3); color: var(--ink); }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name {
  font-family: var(--font-heading); font-weight: 600; font-size: 18px;
  letter-spacing: -0.02em; color: #fff; white-space: nowrap;
}
.brand__name b { color: var(--violet-bright); font-weight: 700; }

.topbar__search {
  flex: 1; max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 11px; color: var(--ink-3);
  cursor: text; transition: border-color .15s, background .15s;
}
.topbar__search:hover { border-color: var(--border-strong); background: var(--surface-3); }
.topbar__search svg { flex: none; color: var(--ink-3); }
.topbar__search span { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__search span b { color: var(--ink-2); font-weight: 500; }

.topbar__actions { display: flex; align-items: center; gap: 4px; flex: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent;
  display: grid; place-items: center; cursor: pointer; color: var(--ink-2); position: relative;
}
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn .badge {
  position: absolute; top: 5px; right: 5px; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--violet); color: #fff; border-radius: 9px; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #0c0c0e;
}
.lang-toggle {
  display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 9px;
  overflow: hidden; height: 32px; margin-right: 6px; flex: none;
}
.lang-toggle button {
  border: 0; background: transparent; padding: 0 12px; height: 100%; cursor: pointer;
  font-family: var(--font-sans); font-size: 12px; font-weight: 600; color: var(--ink-3);
}
.lang-toggle button.active { background: var(--violet); color: #fff; }
.avatar {
  width: 34px; height: 34px; border-radius: 10px; flex: none; margin-left: 4px;
  background: var(--violet); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 13px; cursor: pointer;
}


/* ===== Motion kit — vivant, sobre, reduced-motion safe ====================
   Movement is gated on prefers-reduced-motion; pure color/state fades are not
   (they involve no motion). Solid violet only — no gradients, by design. */
.nav-item, .nav-item svg, .chip, .chip svg, .tab, .kpi, .prow, .eng-status {
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.prow:hover { background: var(--surface-2); }
/* Locked engine chip: the greyed row becomes a seller, not a dead end. */
.eng-status--lock { color: var(--violet-bright); border-color: rgba(139,92,246,.4); text-decoration: none; cursor: pointer; }
.eng-status--lock:hover { background: var(--violet); color: #fff; border-color: var(--violet); }
/* Sidebar chip on plan-gated entries (e.g. Competitors → Starter). */
.tag--plan { background: var(--blue-soft); color: var(--violet-bright); border: 1px solid rgba(139,92,246,.35); }

@media (prefers-reduced-motion: no-preference) {
  .card, .statcard, .faq-item, .price, .blog-card, .res-card {
    transition: transform .18s cubic-bezier(.2,.7,.2,1), border-color .18s ease, box-shadow .18s ease;
  }
  .card:hover, .statcard:hover, .faq-item:hover, .price:hover, .blog-card:hover {
    transform: translateY(-2px); border-color: rgba(139,92,246,.35);
  }
  .btn { transition: background .15s, border-color .15s, transform .12s ease; }
  .btn:active { transform: scale(.97); }
  /* modal + auth card entrance */
  .auth-modal:not([hidden]) { animation: gmkFade .25s ease both; }
  .auth-modal:not([hidden]) .auth-modal__card { animation: gmkCard .3s cubic-bezier(.2,.7,.2,1) both; }
  .auth-card { animation: gmkCard .35s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes gmkFade { from { opacity: 0 } to { opacity: 1 } }
  @keyframes gmkCard { from { opacity: 0; transform: translateY(10px) scale(.985) } to { opacity: 1; transform: none } }
  /* data strokes draw themselves in (dasharray > any real path length) */
  .chart-draw { stroke-dasharray: 2200; stroke-dashoffset: 2200; animation: gmkDraw 1.1s cubic-bezier(.3,.6,.2,1) .15s forwards; }
  .chart-draw + circle { opacity: 0; animation: gmkFade .4s ease 1s forwards; }
  .spark-draw { stroke-dasharray: 400; stroke-dashoffset: 400; animation: gmkDraw .8s ease-out .2s forwards; }
  @keyframes gmkDraw { to { stroke-dashoffset: 0 } }
}

/* ===== Sidebar =========================================================== */
.sidebar {
  position: fixed; top: var(--topbar-h); left: 0; bottom: 0; width: var(--sidebar-w);
  background: #0b0b0d; border-right: 1px solid var(--border);
  overflow-y: auto; z-index: 50; padding: 16px 12px 40px;
}
.property {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 12px;
  border: 1px solid var(--border-strong); border-radius: var(--radius); cursor: pointer;
  margin: 4px 4px 16px; background: var(--surface-2);
}
.property:hover { background: var(--surface-3); }
.property__icon {
  width: 24px; height: 24px; border-radius: 7px; flex: none; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--violet-bright);
}
.property__url { flex: 1; font-size: 13px; color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.property__chev { color: var(--ink-3); flex: none; }

.nav-group { margin-top: 6px; }
.nav-group__label {
  display: flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-4); padding: 14px 16px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 13px; height: 42px; padding: 0 14px;
  border-radius: 10px; color: var(--ink-2); cursor: pointer; font-size: 13.5px;
  margin: 1px 4px; position: relative; font-weight: 500;
}
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item svg { flex: none; color: var(--ink-3); }
.nav-item.active { background: var(--blue-soft); color: var(--violet-bright); font-weight: 600; }
.nav-item.active svg { color: var(--violet-bright); }
.nav-item .tag {
  margin-left: auto; font-size: 9.5px; font-weight: 700; background: var(--green-soft);
  color: var(--green); padding: 2px 7px; border-radius: 6px; letter-spacing: .03em;
  text-transform: uppercase;
}
.nav-divider { height: 1px; background: var(--border); margin: 10px 14px; }

/* ===== App shell ========================================================= */
.app-main {
  margin-left: var(--sidebar-w); padding-top: var(--topbar-h); min-height: 100vh;
  position: relative; z-index: 1;
}
.page { max-width: 1180px; margin: 0 auto; padding: 30px 40px 90px; }
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.page-title {
  font-family: var(--font-heading); font-weight: 600; font-size: 28px; letter-spacing: -0.025em;
  color: #fff; margin: 0; line-height: 1.15;
}
.page-sub { color: var(--ink-3); font-size: 13px; margin: 8px 0 0; }
.page-sub b { color: var(--ink-2); font-weight: 600; }
.page-actions { display: flex; align-items: center; gap: 10px; }

/* ===== Dashboard period (date-range) filter bar ========================== */
.filterbar { position: sticky; top: var(--topbar-h); z-index: 40;
  display: flex; align-items: center; gap: 14px; padding: 10px 40px;
  background: rgba(10,10,12,.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); }
.filterbar__label { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.filterbar__chips { display: inline-flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.fchip { border: 0; background: transparent; color: var(--ink-2); font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 7px; cursor: pointer; transition: background .12s, color .12s; }
.fchip:hover { color: var(--ink); }
.fchip.on { background: var(--violet); color: #fff; }
.fchip--compare { border: 1px solid var(--border-strong); margin-left: 4px; }
.fchip--compare.on { border-color: var(--violet); }
@media (max-width: 560px) { .filterbar { padding: 9px 14px; gap: 10px; } .filterbar__label { display: none; } }

/* ===== Buttons / pills =================================================== */
.btn {
  /* justify-content matters: a stretched/full-width .btn (mobile, form rows) must
     center its label — without it the text sits left and the button looks broken. */
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; vertical-align: middle; text-align: center;
  border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2);
  font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--ink);
  cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--surface-3); border-color: var(--border-strong); }
.btn--primary { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn--primary:hover { background: var(--violet-dark); border-color: var(--violet-dark); }
.btn--text { border-color: transparent; background: transparent; color: var(--violet-bright); padding: 0 8px; }
.btn--text:hover { background: var(--blue-soft); }
.btn svg { flex: none; }

.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px;
  border-radius: 9px; border: 1px solid var(--border); background: var(--surface-2);
  font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.chip:hover { background: var(--surface-3); color: var(--ink); }
.chip.active { background: var(--blue-soft); border-color: rgba(139,92,246,.5); color: var(--violet-bright); font-weight: 600; }
.chip svg { flex: none; color: var(--ink-3); }
.chip.active svg { color: var(--violet-bright); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ===== Cards ============================================================= */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border-bottom: 1px solid var(--border);
}
.card__title { font-family: var(--font-heading); font-weight: 600; font-size: 16px; color: #fff; margin: 0; letter-spacing: -.01em; }
.card__title-sm { display:flex; align-items:center; gap:10px; }
.card__body { padding: 20px 22px; }
.card-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--violet-bright); }
.card-link:hover { color: #c4b5fd; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Info banner */
.banner {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  background: rgba(139,92,246,.07);
  border: 1px solid rgba(139,92,246,.22); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); margin-bottom: 22px;
}
.banner__icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--blue-soft); color: var(--violet-bright); }
.banner__text { flex: 1; font-size: 14px; color: var(--ink-2); }
.banner__text b { font-weight: 600; color: var(--ink); }

/* ===== Data chip (limy mono) ============================================ */
.dchip {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px;
  border-radius: 6px; background: var(--surface-3); border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; color: var(--ink-2);
  white-space: nowrap;
}
.dchip.pos { color: var(--green); background: var(--green-soft); border-color: rgba(74,222,128,.2); }
.dchip.neg { color: var(--red); background: var(--red-soft); border-color: rgba(248,113,113,.2); }

/* ===== Stat cards ======================================================= */
.stats4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.statcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 18px 20px; position: relative; overflow: hidden; }
.statcard::after { content:""; position:absolute; left:0; right:0; top:0; height:1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); }
.statcard__label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.statcard__sub { font-size: 11px; color: var(--ink-4); margin-top: 4px; line-height: 1.35; }
.statcard__label .ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.statcard__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 14px; }
.statcard__val { font-family: var(--font-heading); font-weight: 600; font-size: 30px; letter-spacing: -.03em; color: #fff; line-height: 1; white-space: nowrap; flex: 0 0 auto; }
.statcard__spark { width: 120px; height: 36px; flex: 0 1 120px; min-width: 0; }
.statcard__foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--ink-3); }
@media (max-width: 1080px){ .stats4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .stats4 { grid-template-columns: 1fr 1fr; gap: 12px; } .statcard__spark{ display:none; } }

/* presence list rows */
.prow { display: grid; grid-template-columns: 1.5fr 64px 56px 90px 56px; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.prow:last-child { border-bottom: 0; }
.prow__name { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); font-weight: 500; }
.prow__name .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
@media (max-width: 560px){ .prow { grid-template-columns: 1.3fr 50px 48px; } .prow__spark, .prow__delta { display:none; } }

/* prompt list */
.qrow { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.qrow:last-child { border-bottom: 0; }
.qrow__q { flex: 1; font-size: 14px; color: var(--ink-2); }
.qrow__q .sub { display: block; margin-top: 3px; }
.qrow__n { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 500; font-size: 14px; color: var(--ink); white-space: nowrap; }

/* ===== KPI selector tiles =============================================== */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi {
  padding: 16px 18px; cursor: pointer; position: relative; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); transition: border-color .15s, background .15s; min-width: 0;
}
.kpi:hover { border-color: var(--border-strong); }
.kpi__top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); margin-bottom: 12px; font-weight: 500; }
.kpi__dot { width: 10px; height: 10px; border-radius: 3px; flex: none; border: 1.5px solid var(--ink-4); }
.kpi__val { font-family: var(--font-heading); font-weight: 600; font-size: 28px; letter-spacing: -.03em; color: #fff; line-height: 1; }
.kpi__delta { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; margin-top: 9px; display: inline-flex; align-items: center; gap: 3px; }
.kpi__delta.up { color: var(--green); }
.kpi__delta.down { color: var(--red); }
.kpi.is-on { border-color: rgba(139,92,246,.55); background: var(--blue-soft); }
.kpi.is-on .kpi__dot { border-color: var(--violet-bright); background: var(--violet-bright); }
.kpi.kpi--blue.is-on   { border-color: rgba(139,92,246,.6);  background: rgba(139,92,246,.13); }
.kpi.kpi--blue.is-on   .kpi__dot { border-color: var(--violet-bright); background: var(--violet-bright); }
.kpi.kpi--indigo.is-on { border-color: rgba(129,140,248,.6); background: rgba(129,140,248,.12); }
.kpi.kpi--indigo.is-on .kpi__dot { border-color: var(--indigo); background: var(--indigo); }
.kpi.kpi--teal.is-on   { border-color: rgba(25,195,156,.55); background: rgba(25,195,156,.10); }
.kpi.kpi--teal.is-on   .kpi__dot { border-color: var(--llm-chatgpt); background: var(--llm-chatgpt); }
.kpi.kpi--slate.is-on  { border-color: rgba(251,191,36,.5);  background: rgba(251,191,36,.10); }
.kpi.kpi--slate.is-on  .kpi__dot { border-color: var(--amber); background: var(--amber); }

/* ===== Tables ============================================================ */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); padding: 0 8px; overflow-x: auto; }
.tab {
  padding: 15px 16px; font-size: 13px; font-weight: 600; color: var(--ink-3); cursor: pointer;
  border-bottom: 2px solid transparent; white-space: nowrap; letter-spacing: .01em;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--violet-bright); border-bottom-color: var(--violet); }

table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: uppercase;
  letter-spacing: .05em; padding: 13px 20px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
thead th.num, td.num { text-align: right; }
tbody td { padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--ink-2); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }
td .mono { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); }
.num-strong { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 500; color: var(--ink); }
.sub { color: var(--ink-3); font-size: 12px; }
th .sorted { color: var(--ink-3); }

/* mini bar inside cells */
.cell-bar { display: flex; align-items: center; gap: 10px; }
.cell-bar__track { flex: 1; height: 7px; border-radius: 5px; background: var(--surface-3); overflow: hidden; min-width: 80px; }
.cell-bar__fill { height: 100%; border-radius: 5px; display: block; }

/* ===== LLM legend chips ================================================== */
.legend { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.legend__item { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: default; }
/* interactive legend (clickable to toggle a chart series) */
button.legend__item { background: none; border: 0; font: inherit; cursor: pointer; padding: 3px 7px; border-radius: 7px; transition: background .12s, opacity .12s; }
button.legend__item:hover { background: var(--surface-3); }
.legend__item.is-off { opacity: .42; }
.legend__item.is-off .legend__sw { filter: grayscale(1); }
.legend__sw { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.llm-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 9px;
  border-radius: 9px; border: 1px solid var(--border); background: var(--surface-2);
  font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap;
}
.llm-pill .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

/* ===== delta inline ===================================================== */
.delta { font-family: var(--font-mono); font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.delta.up { color: var(--green); }
.delta.down { color: var(--red); }
.delta.flat { color: var(--ink-3); }

/* ===== chart wrappers =================================================== */
.chart-wrap { position: relative; width: 100%; }
.axis-label { font-family: var(--font-mono); font-size: 10.5px; fill: var(--ink-3); }
.grid-line { stroke: rgba(255,255,255,.06); stroke-width: 1; }
/* hover tooltip + crosshair for the SVG line charts */
.chart-tip { position: absolute; z-index: 6; pointer-events: none; background: #26262c;
  border: 1px solid var(--border-strong); border-radius: 9px; padding: 8px 10px;
  box-shadow: var(--shadow-pop); font-size: 12px; min-width: 118px; max-width: 78%; }
.chart-tip[hidden] { display: none; }
.chart-tip__d { color: var(--ink-3); font-size: 11px; margin-bottom: 6px; font-family: var(--font-mono); }
.chart-tip__r { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.chart-tip__sw { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.chart-tip__n { color: var(--ink-2); flex: 1; white-space: nowrap; }
.chart-tip__v { color: #fff; font-weight: 600; font-family: var(--font-mono); font-variant-numeric: tabular-nums; margin-left: 10px; }
.chart-focus circle { filter: drop-shadow(0 0 3px rgba(0,0,0,.45)); }
/* loading shimmer (skeleton) shown in a chart box while its data is fetched */
@keyframes skelShimmer { 100% { background-position: -200% 0; } }
.skel { border-radius: 10px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%);
  background-size: 200% 100%; animation: skelShimmer 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }

/* dense data tables → horizontal scroll on small screens (keeps columns aligned and
   readable instead of crushing them). Only tables tagged .rtable are affected; their
   direct parent (card body / tab panel / wrapper) becomes the scroll container. */
@media (max-width: 640px) {
  div:has(> .rtable) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .rtable { min-width: max-content; }
}

/* Presence / position pills */
.pos-pill {
  display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 8px;
  border-radius: 7px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums;
  white-space: nowrap;   /* keep multi-word status pills (e.g. "Connu, non cité") on one line */
}
.pos-good { background: var(--green-soft); color: var(--green); }
.pos-mid  { background: var(--amber-soft); color: var(--amber); }
.pos-bad  { background: var(--red-soft); color: var(--red); }
.pos-none { background: var(--surface-3); color: var(--ink-3); }

.sentiment { display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:500; color: var(--ink-2); }
.sentiment .d { width:8px; height:8px; border-radius:50%; }
.sentiment.pos .d { background: var(--green); }
.sentiment.neu .d { background: var(--ink-4); }
.sentiment.neg .d { background: var(--red); }

/* live dot */
.live-dot { position: relative; display: inline-flex; width: 9px; height: 9px; }
.live-dot::before { content:""; position:absolute; inset:0; border-radius:50%; background: var(--green); opacity:.55; animation: pulsering 2s cubic-bezier(.4,0,.6,1) infinite; }
.live-dot::after { content:""; position:relative; width:9px; height:9px; border-radius:50%; background: var(--green); }
@keyframes pulsering { 0%{ transform:scale(1); opacity:.55; } 100%{ transform:scale(2.4); opacity:0; } }

/* sources favicon block */
.src-fav { width: 30px; height: 30px; border-radius: 8px; display:grid; place-items:center; flex:none; font-weight:700; font-size:12px; color:#fff; font-family: var(--font-heading); }

/* mobile drawer */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.show { opacity: 1; pointer-events: auto; }

/* utility */
.flex { display: flex; } .items-center { align-items: center; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.muted { color: var(--ink-3); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; }

/* ===== Accessibility: keyboard focus ring + reduced motion =============== */
/* :where() keeps the selector at zero specificity so it never fights component
   styles; it adds a clearly visible focus ring on keyboard nav only (mouse
   clicks don't trigger :focus-visible). Inputs keep their own box-shadow focus. */
:where(button, a, input, textarea, select, summary, [tabindex],
       .chip, .tab, .nav-item, .property, .card-link, .legend__item):focus-visible {
  outline: 2px solid var(--violet-bright);
  outline-offset: 2px;
  border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Responsive ======================================================== */
@media (max-width: 1080px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .page { padding: 24px 24px 70px; }
}
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  .sidebar {
    width: 280px; transform: translateX(-100%); box-shadow: var(--shadow-pop); transition: transform .24s ease;
  }
  body.nav-open .sidebar { transform: translateX(0); }
  .app-main { margin-left: 0; }
  .topbar__search span .full { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .lang-toggle { display: none; }
}
@media (max-width: 560px) {
  .page { padding: 18px 14px 60px; }
  .topbar { padding: 0 10px; gap: 8px; }
  .brand__name { display: none; }
  .icon-btn.opt { display: none; }
  .page-title { font-size: 23px; }
  .card__body { padding: 16px; }
  .kpis { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Real-app helpers (ported from the light sheet, dark-tuned). Token-based so
   they inherit the dark palette; tooltips · engine status · notices · account
   menu · auth modal · auth pages · multi-site property picker · anti-flash gate.
   ========================================================================== */

/* hover tooltips (the "ⓘ" + floating bubble) */
.tip { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 5px;
  color: var(--ink-4); cursor: help; vertical-align: middle; flex: none; border-radius: 50%; }
.tip:hover, .tip:focus-visible { color: var(--violet-bright); }
.tip svg { display: block; }
.geo-tip { position: fixed; z-index: 300; max-width: 280px; padding: 9px 12px;
  background: #26262c; color: #fff; border: 1px solid var(--border-strong); border-radius: 8px;
  font-size: 12.5px; line-height: 1.45; font-weight: 400; box-shadow: var(--shadow-pop); pointer-events: none; white-space: normal; }
.geo-tip[hidden] { display: none; }
.statcard__label, .kpi__top, .card__title, thead th, .prow .sub { overflow: visible; }

/* extra position pill: brand uniquely cited */
.pos-uniq { background: var(--blue-soft); color: var(--violet-bright); padding: 0 10px; }

/* engine "not configured / awaiting" status tag + muted rows */
.eng-status { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  padding: 2px 7px; border-radius: 10px; background: var(--surface-3); color: var(--ink-3); white-space: nowrap; }
.eng-status.pending { background: var(--amber-soft); color: var(--amber); }
.row-muted { opacity: .55; }

/* notice banner (dark amber) */
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; margin: 0 0 18px;
  background: var(--amber-soft); border: 1px solid rgba(251,191,36,.24); border-radius: var(--radius); color: #e7cd8c; font-size: 13px; }
.notice svg { color: var(--amber); flex: none; }
.notice a { color: var(--violet-bright); font-weight: 600; }

/* account menu (dashboard topbar) */
.acct-area { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.acct { position: relative; }
.acct__btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px;
  border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface-2);
  font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer; }
.acct__btn:hover { background: var(--surface-3); }
.acct__btn svg { color: var(--ink-3); }
.acct__plan { background: var(--blue-soft); color: var(--violet-bright); font-weight: 700; font-size: 10px;
  text-transform: uppercase; letter-spacing: .03em; padding: 2px 7px; border-radius: 6px; }
.acct__menu { position: absolute; right: 0; top: 42px; min-width: 184px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 11px; box-shadow: var(--shadow-pop); padding: 6px; display: flex; flex-direction: column; z-index: 70; }
.acct__menu[hidden] { display: none; }
.acct__menu a { padding: 9px 11px; border-radius: 7px; color: var(--ink); font-size: 13px; }
.acct__menu a:hover { background: var(--surface-3); text-decoration: none; }

/* keep gated dashboard hidden until auth resolves (anti-flash) */
body[data-page] .app-main { visibility: hidden; }
body[data-page].auth-ok .app-main { visibility: visible; }

/* auth modal */
.auth-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; }
.auth-modal[hidden] { display: none; }
.auth-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.66); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.auth-modal__card { position: relative; width: 360px; max-width: 92vw; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-pop); padding: 26px; }
.auth-modal__close { position: absolute; top: 8px; right: 12px; border: 0; background: transparent; font-size: 24px; color: var(--ink-3); cursor: pointer; line-height: 1; }
.auth-modal__brand { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.auth-modal__brand .brand__mark { width: 26px; height: 26px; }
.auth-modal__card h3 { font-family: var(--font-heading); font-weight: 600; font-size: 20px; margin: 0 0 16px; color: #fff; }
.auth-modal__card input { width: 100%; height: 42px; padding: 0 14px; margin-bottom: 10px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface-2); color: var(--ink); font-family: var(--font-sans); font-size: 14px; box-sizing: border-box; }
.auth-modal__card input::placeholder { color: var(--ink-4); }
.auth-modal__err { font-size: 13px; margin-top: 6px; min-height: 18px; color: var(--ink-3); }
.auth-modal__switch { font-size: 13px; color: var(--ink-3); margin-top: 14px; text-align: center; }

/* business onboarding modal — modern, roomy, two-column, fixed head/foot */
.auth-modal__card.biz-modal { width: 660px; max-width: 95vw; max-height: 90vh; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.biz-modal .auth-modal__close { top: 16px; right: 18px; z-index: 2; }
.biz-modal .biz-head { display: flex; gap: 15px; padding: 26px 30px 20px; border-bottom: 1px solid var(--border); }
.biz-modal .biz-head__icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--violet-bright); }
.biz-modal .biz-head h3 { margin: 2px 0 5px; font-size: 19px; }
.biz-modal .biz-sub { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); max-width: 48ch; }
.biz-modal .biz-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 24px 30px; display: flex; flex-direction: column; gap: 18px; }
.biz-modal .biz-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.biz-modal .biz-row2--single { grid-template-columns: 1fr; }
@media (max-width: 560px) { .biz-modal .biz-row2 { grid-template-columns: 1fr; } }
.biz-field { display: flex; flex-direction: column; }
.biz-field[hidden] { display: none; }   /* display:flex above would otherwise defeat [hidden] */
.biz-field label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.biz-hint { font-weight: 400; color: var(--ink-3); }
.auth-modal__card.biz-modal input,
.auth-modal__card.biz-modal textarea { width: 100%; margin: 0; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-2); color: var(--ink); font-family: var(--font-sans); font-size: 14px; box-sizing: border-box; transition: border-color .15s, background .15s, box-shadow .15s; }
.auth-modal__card.biz-modal input { height: 44px; padding: 0 14px; }
.auth-modal__card.biz-modal textarea { resize: vertical; line-height: 1.5; min-height: 72px; }
.auth-modal__card.biz-modal input:focus,
.auth-modal__card.biz-modal textarea:focus { outline: none; border-color: var(--violet); background: var(--surface-3); box-shadow: 0 0 0 3px var(--blue-soft); }
.auth-modal__card.biz-modal ::placeholder { color: var(--ink-4); }
.biz-modal .biz-foot { display: flex; align-items: center; gap: 16px; padding: 16px 30px; border-top: 1px solid var(--border); background: var(--surface); }
.biz-modal .biz-msg { flex: 1; font-size: 13px; color: var(--ink-3); min-height: 18px; line-height: 1.4; }
.biz-modal .biz-go { margin-left: auto; height: 44px; padding: 0 28px; justify-content: center; flex: none; }

/* custom dropdown (replaces the bare native <select>) */
.biz-select { position: relative; }
.biz-select__btn { width: 100%; height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-2); color: var(--ink); font-family: var(--font-sans); font-size: 14px; cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.biz-select__btn:hover { background: var(--surface-3); }
.biz-select.open .biz-select__btn { border-color: var(--violet); background: var(--surface-3); box-shadow: 0 0 0 3px var(--blue-soft); }
.biz-select__val { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.biz-select__val.ph { color: var(--ink-4); }
.biz-select__btn svg { color: var(--ink-3); flex: none; transition: transform .18s; }
.biz-select.open .biz-select__btn svg { transform: rotate(180deg); }
.biz-select__menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 6; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 6px; }
.biz-select__menu[hidden] { display: none; }
.biz-select__opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.biz-select__opt > span { font-size: 16px; line-height: 1; }
.biz-select__opt:hover { background: var(--surface-2); color: var(--ink); }
.biz-select__opt.sel { background: var(--blue-soft); color: var(--violet-bright); font-weight: 600; }

/* competitor editor (name + optional site) — shared by modal & profile page */
.comp-rows { display: flex; flex-direction: column; gap: 9px; }
.comp-row { display: flex; gap: 9px; align-items: center; }
.comp-row input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-2); color: var(--ink); font-family: var(--font-sans); font-size: 14px; box-sizing: border-box; }
.comp-row input:focus { outline: none; border-color: var(--violet); background: var(--surface-3); }
.comp-row input::placeholder { color: var(--ink-4); }
.comp-row .comp-name { flex: 1.2; }
.comp-row .comp-del { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-3); cursor: pointer; font-size: 18px; line-height: 1; }
.comp-row .comp-del:hover { background: var(--red-soft); color: var(--red); }
.comp-add { align-self: flex-start; margin-top: 10px; border: 1px dashed var(--border-strong); background: transparent; color: var(--ink-2); border-radius: 9px; padding: 9px 14px; font-size: 13px; cursor: pointer; font-family: var(--font-sans); transition: border-color .15s, color .15s, background .15s; }
.comp-add:hover { border-color: var(--violet); color: var(--violet-bright); background: var(--blue-soft); }

/* auth pages (login / signup / reset) */
.auth-page { min-height: 100vh; display: grid; place-items: center; background: var(--bg); padding: 24px; box-sizing: border-box; position: relative; z-index: 1; }
/* FR/EN switch — used on the dashboard top bar and the auth pages. (These pages
   load theme.css but not site.css, where the marketing nav defines the same rules.) */
.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 999px; overflow: hidden; height: 30px; flex: none; }
.lang-switch button { border: 0; background: transparent; color: var(--ink-3); font-family: var(--font-mono); font-size: 11px; font-weight: 600; padding: 0 9px; height: 100%; cursor: pointer; transition: color .15s, background .15s; }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.on { background: var(--violet); color: #fff; }
.topbar__lang { height: 28px; margin-right: 4px; }

/* ===== Branded loading overlay (dashboard) ============================== */
/* Shown on dashboard pages while the app authenticates + fetches; fades out the
   moment body.auth-ok is set. The logo sits inside a spinning gradient ring, with
   a soft pulse and the three chat-dots from the mark bouncing below. */
.geo-loader {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; align-content: center; gap: 22px;
  background: radial-gradient(58% 55% at 50% 42%, rgba(139,92,246,.12), transparent 70%), #0a0a0c;
}
body.auth-ok .geo-loader { opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s .45s; }
.geo-loader__core { position: relative; width: 78px; height: 78px; display: grid; place-items: center; }
.geo-loader__logo { width: 58px; height: 58px; border-radius: 15px; animation: geoPulse 1.8s ease-in-out infinite; }
.geo-loader__ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 60%, rgba(139,92,246,.35) 74%, var(--violet-bright) 92%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: geoSpin 1s linear infinite;
}
.geo-loader__word { font-family: var(--font-heading); font-weight: 600; font-size: 17px; letter-spacing: .3px; color: var(--ink-2); }
.geo-loader__word b { color: var(--violet-bright); font-weight: 600; }
.geo-loader__dots { display: flex; gap: 6px; }
.geo-loader__dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--violet-bright); opacity: .35; animation: geoDot 1.1s ease-in-out infinite; }
.geo-loader__dots span:nth-child(2) { animation-delay: .18s; }
.geo-loader__dots span:nth-child(3) { animation-delay: .36s; }
@keyframes geoSpin { to { transform: rotate(1turn); } }
@keyframes geoPulse { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(139,92,246,0)); } 50% { transform: scale(1.07); filter: drop-shadow(0 0 16px rgba(139,92,246,.55)); } }
@keyframes geoDot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) {
  .geo-loader__ring, .geo-loader__logo, .geo-loader__dots span { animation: none; }
}

.auth-card { width: 400px; max-width: 94vw; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); padding: 32px 30px; box-sizing: border-box; position: relative; }
.auth-card__lang { position: absolute; top: 16px; right: 16px; height: 26px; }
.auth-card__lang button { font-size: 10px; padding: 0 8px; }
.auth-card__brand { display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 4px; }
.auth-card__brand .brand__mark { width: 30px; height: 30px; }
.auth-card h1 { font-family: var(--font-heading); font-weight: 600; font-size: 22px; text-align: center; color: #fff; margin: 10px 0 4px; }
.auth-card__sub { text-align: center; color: var(--ink-3); font-size: 13.5px; margin: 0 0 22px; }
.auth-card label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin: 0 0 5px; }
.auth-card input { width: 100%; height: 44px; padding: 0 14px; margin-bottom: 14px; border: 1px solid var(--border-strong); border-radius: 10px; font-family: var(--font-sans); font-size: 14px; box-sizing: border-box; background: var(--surface-2); color: var(--ink); }
.auth-card input::placeholder { color: var(--ink-4); }
.auth-card input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--blue-soft); }
.auth-card .btn--primary { width: 100%; justify-content: center; height: 46px; font-size: 15px; }
.btn--oauth { width: 100%; justify-content: center; height: 46px; gap: 10px; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--ink); font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.btn--oauth:hover { background: var(--surface-3); }
.btn--oauth svg { width: 18px; height: 18px; flex: none; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--ink-3); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-card__err { font-size: 13px; margin: 4px 0 12px; min-height: 18px; text-align: center; color: var(--ink-3); }
.auth-card__foot { font-size: 13px; color: var(--ink-3); margin-top: 18px; text-align: center; }
.auth-card__foot a { color: var(--violet-bright); font-weight: 500; }
.auth-card__forgot { text-align: right; font-size: 12.5px; margin: -8px 0 14px; }
.auth-card__forgot a { color: var(--violet-bright); }
.auth-card__back { display: block; text-align: center; margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }

/* sidebar property → multi-site domain picker */
.property { position: relative; }
.property__count { font-size: 11px; color: var(--ink-3); font-weight: 600; flex: none; }
.property__menu { position: absolute; left: 4px; right: 4px; top: 52px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; box-shadow: var(--shadow-pop); padding: 6px; z-index: 80; max-height: 60vh; overflow: auto; }
.property__menu[hidden] { display: none; }
.property__item { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px; color: var(--ink); font-size: 13px; cursor: pointer; }
.property__item:hover { background: var(--surface-3); }
.property__item.active { color: var(--violet-bright); font-weight: 600; }
.property__add { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; color: var(--violet-bright); font-size: 13px; font-weight: 600; cursor: pointer; }
.property__add:hover { background: var(--blue-soft); }
.property__add.disabled { color: var(--ink-3); cursor: default; }
.property__add.disabled:hover { background: transparent; }
.property__sep { height: 1px; background: var(--border); margin: 5px 6px; }

/* topbar text-button + search shrink on mobile */
@media (max-width: 560px) {
  .topbar__actions .btn--text { display: none; }
  .topbar__search { flex: 0 1 auto; min-width: 0; }
  .acct__btn { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hide-mobile { display: none; }
}
