/* Same tokens as rempa.ai: white, ink, one blue accent. Auth pages are a form column plus a quiet product panel. */
:root {
  --bg: #FFFFFF; --surface: #FFFFFF; --soft: #F7F8FA; --ink: #0D1220; --muted: #5F6778;
  --line: #ECEEF2; --line-2: #DDE1E8; --accent: #1A4FD6; --accent-ink: #FFFFFF; --accent-soft: #E8EEFC;
  --good: #1E8A5A; --bad: #C2453A; --bad-soft: #FDECEA;
  --f-display: Geist, sans-serif;
  --f-body: Geist, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0E14; --surface: #10141C; --soft: #141924; --ink: #E7EAF1; --muted: #949CAD;
    --line: #1D2330; --line-2: #2A3242; --accent: #7BA2FF; --accent-ink: #071433; --accent-soft: #14224A;
    --good: #4CC48B; --bad: #EE7A6E; --bad-soft: #3A1D1A;
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1 { font: 600 30px/1.15 var(--f-display); letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px/1 var(--f-display); letter-spacing: -0.02em; }
.logo svg { width: 26px; height: 26px; flex: none; }
.logo .tld { color: var(--muted); font-weight: 500; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding-inline: 18px; border-radius: 10px; font: 500 15px/1 var(--f-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: opacity .15s, border-color .15s, background .15s; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { opacity: .86; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-google { width: 100%; background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-google:hover { background: var(--soft); }
.btn-google svg { width: 18px; height: 18px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Auth layout */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100%; }
.auth-main { display: flex; flex-direction: column; padding: 28px 40px; min-height: 100vh; min-height: 100dvh; }
.auth-form { width: 100%; max-width: 380px; margin: auto; padding-block: 48px; display: grid; gap: 20px; }
.auth-form .sub { color: var(--muted); margin-top: -8px; }
.auth-form .sub b { color: var(--ink); font-weight: 500; word-break: break-all; }
.auth-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.auth-foot a { text-decoration: none; }
.auth-foot a:hover { color: var(--ink); }

.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 500; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.label-row a { font-size: 13px; color: var(--muted); text-decoration: none; }
.label-row a:hover { color: var(--accent); }
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  padding-inline: 14px; font: 15px var(--f-body); transition: border-color .15s, box-shadow .15s;
}
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder { color: var(--muted); opacity: .7; }
.pw { position: relative; }
.pw input { padding-right: 64px; }
.pw-toggle { position: absolute; right: 6px; top: 6px; height: 32px; padding-inline: 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: 500 12.5px var(--f-body); cursor: pointer; }
.pw-toggle:hover { color: var(--ink); background: var(--soft); }
.hint { font-size: 12.5px; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.notice-error { background: var(--bad-soft); color: var(--bad); }
.notice-info { background: var(--accent-soft); color: var(--ink); }

.legal { font-size: 12.5px; color: var(--muted); }
.switch { font-size: 14px; color: var(--muted); }
.switch a { color: var(--ink); font-weight: 500; text-decoration: none; }
.switch a:hover { color: var(--accent); }
.steps-mini { display: grid; gap: 12px; padding: 16px; border-radius: 12px; background: var(--soft); color: var(--muted); font-size: 14px; }
.inline-form .btn { height: 38px; font-size: 14px; }

/* Product panel */
.auth-aside { background: var(--soft); border-left: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 40px; }
.aside-in { width: 100%; max-width: 440px; display: grid; gap: 20px; }
.aside-eyebrow { font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.aside-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 22px; display: grid; gap: 18px; box-shadow: 0 24px 48px -28px rgba(13,18,32,.18); }
.aside-prompt { font: 500 15.5px/1.45 var(--f-display); display: flex; gap: 10px; align-items: flex-start; }
.aside-prompt span { flex: none; font: 500 10.5px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 7px; border-radius: 5px; background: var(--soft); color: var(--muted); margin-top: 2px; }
.aside-rows { list-style: none; margin: 0; padding: 0; display: grid; }
.aside-rows li { display: grid; grid-template-columns: 1fr auto 76px; gap: 12px; align-items: baseline; padding-block: 10px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.aside-rows b { font: 500 20px/1 var(--f-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.aside-rows b small { font-size: 12px; color: var(--muted); }
.aside-rows i { font: normal 500 12px var(--f-mono); text-align: right; }
.aside-rows i.up { color: var(--good); }
.aside-sample { font: 500 10.5px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.aside-text { color: var(--muted); font-size: 15px; max-width: 40ch; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { padding: 20px 16px; }
  .auth-form { padding-block: 32px; }
}

/* App shell */
.topbar { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 5; }
.topbar-in { max-width: 1360px; margin-inline: auto; padding-inline: 40px; height: 60px; display: flex; align-items: center; gap: 32px; }
.tabs { display: flex; gap: 4px; font-size: 14px; }
.tabs a, .tabs span { padding: 7px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); }
.tabs a[aria-current="page"] { color: var(--ink); background: var(--soft); font-weight: 500; }
.tab-soon { opacity: .55; cursor: default; }
.user-menu { margin-left: auto; position: relative; }
.user-menu summary { list-style: none; cursor: pointer; }
.user-menu summary::-webkit-details-marker { display: none; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 600 14px var(--f-display); }
.menu { position: absolute; right: 0; top: 44px; min-width: 240px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 16px 40px -16px rgba(13,18,32,.25); padding: 6px; }
.menu-who { padding: 10px 12px; display: grid; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-who span { font-size: 13px; color: var(--muted); word-break: break-all; }
.menu button { width: 100%; text-align: left; border: 0; background: transparent; color: var(--ink); font: 14px var(--f-body); padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.menu button:hover { background: var(--soft); }

.home { max-width: 1360px; margin-inline: auto; padding: 64px 40px; display: grid; gap: 16px; }
.home h1 { font-size: clamp(32px, 4vw, 44px); }
.eyebrow { font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.lede { font-size: 17px; color: var(--muted); max-width: 58ch; }
.setup { list-style: none; margin: 24px 0 0; padding: 0; display: grid; max-width: 640px; }
.setup li { display: grid; grid-template-columns: 24px 1fr; gap: 16px; padding-block: 18px; border-top: 1px solid var(--line); }
.setup li:last-child { border-bottom: 1px solid var(--line); }
.setup .dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); margin-top: 2px; }
.setup li.done .dot { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--bg); }
.setup p { color: var(--muted); font-size: 14px; }
.soon { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
@media (max-width: 700px) {
  .topbar-in, .home { padding-inline: 16px; }
  .tabs { display: none; }
  .home { padding-block: 40px; }
}

.code-input { font: 500 24px/1 var(--f-mono) !important; letter-spacing: .3em; text-align: center; height: 56px !important; }
.code-input::placeholder { letter-spacing: .3em; opacity: .35; }

.welcome-next { list-style: none; margin: 0; padding: 0; counter-reset: n; display: grid; }
.welcome-next li { counter-increment: n; display: grid; grid-template-columns: 28px 1fr; gap: 2px 12px; padding-block: 14px; border-top: 1px solid var(--line); }
.welcome-next li:last-child { border-bottom: 1px solid var(--line); }
.welcome-next li::before { content: counter(n); grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 500 12px/24px var(--f-mono); text-align: center; }
.welcome-next span { color: var(--muted); font-size: 14px; }

/* Brand setup */
.setup-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
.setup-main { display: grid; gap: 16px; max-width: 880px; }
.setup-side { position: sticky; top: 92px; padding: 24px; border-radius: 14px; background: var(--soft); }
.setup-side .setup { margin-top: 12px; }
.setup-side .setup li { padding-block: 14px; }
.side-title { font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.setup li.current .dot { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 9px var(--accent); }
.setup-side .setup li.current .dot { box-shadow: inset 0 0 0 4px var(--soft), inset 0 0 0 9px var(--accent); }
@media (max-width: 960px) { .setup-grid { grid-template-columns: 1fr; gap: 40px; } .setup-side { position: static; } }

.brand-form { display: grid; gap: 22px; margin-top: 16px; }
select {
  width: 100%; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  padding-inline: 12px; font: 15px var(--f-body);
}
select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
[aria-invalid="true"] { border-color: var(--bad) !important; }
.field-error { font-size: 13px; color: var(--bad); }
fieldset.comps { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.comps legend { font-size: 13.5px; font-weight: 500; padding: 0; margin-bottom: 8px; display: flex; gap: 8px; align-items: baseline; }
.optional { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.comp-head, .comp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr) 36px; gap: 8px; align-items: center; }
.comp-head span { font-size: 12px; color: var(--muted); }
.link-btn { justify-self: start; border: 0; background: none; padding: 6px 0; color: var(--accent); font: 500 14px var(--f-body); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
@media (max-width: 520px) { .comp-head { display: none; } .comp-row { grid-template-columns: minmax(0, 1fr) 36px; padding-bottom: 8px; border-bottom: 1px solid var(--line); } .comp-row input[name="competitor_website"] { grid-row: 2; } .comp-row input[name="competitor_aliases"] { grid-row: 3; } }

/* Brand home */
.brand-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.brand-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.brand-meta span { font: 13px var(--f-mono); padding: 5px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.brand-comps { display: grid; gap: 12px; margin-top: 16px; }
.chips-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips-list li { display: inline-flex; gap: 8px; align-items: baseline; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 14px; }
.chips-list span { font: 12px var(--f-mono); color: var(--muted); }
.muted { color: var(--muted); font-size: 14px; }
.muted a { color: var(--accent); }
.home .notice { max-width: 640px; }

.comp-remove { width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.comp-remove:hover { background: var(--soft); color: var(--ink); }
.suggest-status { min-height: 1.5em; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.suggest-status:empty { display: none; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
form[aria-busy="true"] .comp-row input { background: var(--soft); }
.brand-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

textarea {
  width: 100%; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  padding: 10px 14px; font: 15px/1.5 var(--f-body); resize: vertical; min-height: 44px;
}
textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea::placeholder { color: var(--muted); opacity: .7; }
input:disabled, textarea:disabled { background: var(--soft); color: var(--muted); }
fieldset.personas { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 12px; }
.personas legend { font-size: 13.5px; font-weight: 500; padding: 0; margin-bottom: 8px; display: flex; gap: 8px; align-items: baseline; }
.persona-row { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.persona-row input { font-weight: 500; }

/* Profile on home */
.profile-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; margin-top: 24px; padding: 24px; border-radius: 14px; background: var(--soft); max-width: 1000px; }
.profile-summary > div { display: grid; gap: 8px; align-content: start; min-width: 0; }
.profile-summary .wide { grid-column: 1 / -1; }
.profile-summary p:not(.side-title) { font-size: 14.5px; }
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list li { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); }
.persona-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.persona-list li { display: grid; gap: 4px; padding: 14px; border-radius: 12px; background: var(--surface); font-size: 14px; }
.persona-list span { color: var(--muted); font-size: 13.5px; }
@media (max-width: 700px) { .profile-summary { grid-template-columns: 1fr; padding: 18px; } }

/* Project switcher */
.topbar-in { gap: 14px; }
.topbar-sep { color: var(--line-2); font-size: 20px; font-weight: 300; }
.switcher { position: relative; }
.switcher summary { list-style: none; }
.switcher summary::-webkit-details-marker { display: none; }
.switcher-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding-inline: 10px; border-radius: 8px; font: 500 14px var(--f-body); color: var(--ink); text-decoration: none; cursor: pointer; max-width: 260px; }
.switcher-btn:hover, .switcher[open] .switcher-btn { background: var(--soft); }
.switcher-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switcher-btn svg { width: 14px; height: 14px; color: var(--muted); flex: none; }
.switcher-menu { left: 0; right: auto; min-width: 280px; }
.menu-label { padding: 8px 12px 4px; font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.menu-item { display: grid; gap: 1px; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 14px; }
.menu-item:hover { background: var(--soft); }
.menu-item b { font-weight: 500; }
.menu-item span { font: 12px var(--f-mono); color: var(--muted); }
.menu-item.active { background: var(--accent-soft); }
.menu-sep { height: 1px; background: var(--line); margin: 6px 0; }
.tabs { margin-left: 18px; }
@media (max-width: 860px) { .topbar-sep { display: none; } .tabs { display: none; } }

/* Project form & settings */
.form-section { display: grid; gap: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.settings-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.settings-links a { color: var(--accent); text-decoration: none; font-weight: 500; font-size: 14.5px; }
.settings-links a:hover { text-decoration: underline; }

/* Projects list */
.projects-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.projects-head > div { display: grid; gap: 12px; }
.project-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.project-list a { display: grid; gap: 6px; padding: 20px; border: 1px solid var(--line-2); border-radius: 14px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.project-list a:hover { border-color: var(--ink); }
.project-list b { font: 600 18px var(--f-display); letter-spacing: -0.01em; }
.project-list span { font-size: 13.5px; color: var(--muted); }
.badge { justify-self: start; font: normal 500 12px var(--f-body); padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }

/* Admin */
.table-wrap { overflow-x: auto; margin-top: 8px; border: 1px solid var(--line-2); border-radius: 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; font: 500 11.5px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; background: var(--soft); white-space: nowrap; }
.admin-table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.admin-table td b { display: block; font-weight: 500; }
.admin-table .sub { font: 12px var(--f-mono); color: var(--muted); }
.admin-table .num { font-variant-numeric: tabular-nums; color: var(--muted); }
.admin-table a { color: var(--accent); text-decoration: none; font-weight: 500; }
.admin-table tr.off td { color: var(--muted); }
.mono { font-family: var(--f-mono) !important; font-size: 13.5px; }
.pill-on, .pill-off { font-size: 12px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pill-on { background: var(--accent-soft); color: var(--accent); }
.pill-off { background: var(--soft); color: var(--muted); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.field-row { display: flex; gap: 24px; align-items: flex-end; }
.field-row .field { width: 120px; }
.eyebrow a { color: inherit; text-decoration: none; }
.test-form { display: grid; gap: 12px; margin-top: 40px; padding: 20px; border-radius: 14px; background: var(--soft); }
.test-form .btn { justify-self: start; }
.test-result { display: grid; gap: 8px; padding: 18px; border: 1px solid var(--line-2); border-radius: 14px; }
.test-prompt { font-weight: 500; }
.test-answer { white-space: pre-wrap; font-size: 14px; color: var(--muted); max-height: 320px; overflow-y: auto; }

/* Editable drop-down */
.combo { position: relative; }
.combo input { padding-right: 44px; }
.combo-toggle { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.combo-toggle:hover { background: var(--soft); color: var(--ink); }
.combo-toggle svg { width: 16px; height: 16px; transition: transform .15s; }
.combo input[aria-expanded="true"] ~ .combo-toggle svg { transform: rotate(180deg); }
.combo-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; max-height: 280px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 16px 40px -16px rgba(13,18,32,.25); }
.combo-list [role="option"] { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 14.5px; }
.combo-list [role="option"] small { font: 12px var(--f-mono); color: var(--muted); }
.combo-list [role="option"]:hover, .combo-list [role="option"].active { background: var(--accent-soft); color: var(--accent); }
.combo-list [role="option"]:hover small, .combo-list [role="option"].active small { color: var(--accent); }
.combo-list [role="option"][aria-selected="true"] { color: var(--accent); font-weight: 500; }
.combo-empty { padding: 10px 12px; font-size: 14px; color: var(--muted); }

.persona-rows { display: grid; gap: 12px; }
.persona-head { display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 8px; align-items: center; }

.comp-rows { display: grid; gap: 8px; }

.redraft { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.redraft .suggest-status:empty + .link-btn { margin-left: auto; }

/* AI models step */
.model-list { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.model-option { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.model-option:hover { border-color: var(--ink); }
.model-option input { position: absolute; opacity: 0; pointer-events: none; }
.model-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.model-text b { font-weight: 600; font-size: 15.5px; }
.model-text .mono { color: var(--muted); font-size: 12.5px !important; }
.model-check { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); flex: none; display: grid; place-items: center; }
.model-option input[type="radio"] ~ .model-check { border-radius: 50%; }
.model-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.model-option:has(input:checked) .model-check { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--accent-soft); }
.model-option:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.model-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.model-count { font-size: 13.5px; color: var(--muted); }
.model-count + .hint a { color: var(--accent); }

.test-sources { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13.5px; }
.test-sources a { color: var(--accent); }
.test-sources span { color: var(--muted); font-size: 12.5px; }

/* API page */
.api-page { max-width: 960px; }
.api-page code { font: 13px var(--f-mono); background: var(--soft); padding: 2px 6px; border-radius: 5px; }
.api-block { display: grid; gap: 14px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.api-block h2 { font: 600 20px var(--f-display); letter-spacing: -0.02em; margin: 0; }
.code-block { margin: 0; padding: 14px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font: 12.5px/1.6 var(--f-mono); overflow-x: auto; white-space: pre; }
.new-key { display: grid; gap: 10px; padding: 16px; border-radius: 12px; background: var(--accent-soft); }
.key-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.key-row code { background: var(--surface) !important; padding: 8px 10px !important; word-break: break-all; flex: 1 1 280px; }
.key-form { display: flex; flex-wrap: wrap; gap: 8px; }
.key-form input { flex: 1 1 240px; width: auto; }
.link-btn.danger { color: var(--bad); }
.endpoints { display: grid; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.endpoint + .endpoint { border-top: 1px solid var(--line); }
.endpoint summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 64px auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; }
.endpoint summary::-webkit-details-marker { display: none; }
.endpoint summary:hover { background: var(--soft); }
.endpoint .code-block { margin: 0 14px 14px; }
.ep-desc { color: var(--muted); font-size: 14px; }
.method { font: 600 11px var(--f-mono); padding: 3px 0; border-radius: 5px; text-align: center; }
.m-get { background: var(--accent-soft); color: var(--accent); }
.m-post { background: #E6F4EC; color: #1E8A5A; }
.m-put, .m-patch { background: #FDF1E3; color: #A35A12; }
@media (prefers-color-scheme: dark) { .m-post { background: #12301F; color: #4CC48B; } .m-put, .m-patch { background: #33240F; color: #E9A458; } }
.api-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14.5px; }
@media (max-width: 700px) { .endpoint summary { grid-template-columns: 56px minmax(0, 1fr); } .ep-desc { grid-column: 1 / -1; } }

/* Topics: one color per topic, by position (same order on the topics page and the project home) */
:root {
  --topic-1: #1A4FD6;
  --topic-2: #E0533D;
  --topic-3: #1F9E8C;
  --topic-4: #8A3A9E;
  --topic-5: #C77C0E;
  --topic-6: #D23F86;
  --topic-7: #2E8B3E;
  --topic-8: #5B6BD8;
  --topic-9: #B5342F;
  --topic-10: #1C8FBF;
  --topic-11: #A0522D;
  --topic-12: #7A8F12;
}
@media (prefers-color-scheme: dark) { :root { --topic-1: #4F7DF0; --topic-2: #D9584B; --topic-3: #26998A; --topic-4: #9A55C0; --topic-5: #C98226; --topic-6: #C94C88; --topic-7: #379348; --topic-8: #6F7CE0; --topic-9: #BE4038; --topic-10: #2F93C2; --topic-11: #AE6232; --topic-12: #82992A; } }
.topic-rows > .topic-card:nth-child(12n+1) { --t: var(--topic-1); }
.topic-rows > .topic-card:nth-child(12n+2) { --t: var(--topic-2); }
.topic-rows > .topic-card:nth-child(12n+3) { --t: var(--topic-3); }
.topic-rows > .topic-card:nth-child(12n+4) { --t: var(--topic-4); }
.topic-rows > .topic-card:nth-child(12n+5) { --t: var(--topic-5); }
.topic-rows > .topic-card:nth-child(12n+6) { --t: var(--topic-6); }
.topic-rows > .topic-card:nth-child(12n+7) { --t: var(--topic-7); }
.topic-rows > .topic-card:nth-child(12n+8) { --t: var(--topic-8); }
.topic-rows > .topic-card:nth-child(12n+9) { --t: var(--topic-9); }
.topic-rows > .topic-card:nth-child(12n+10) { --t: var(--topic-10); }
.topic-rows > .topic-card:nth-child(12n+11) { --t: var(--topic-11); }
.topic-rows > .topic-card:nth-child(12n+12) { --t: var(--topic-12); }
.topic-list > li:nth-child(12n+1) { --t: var(--topic-1); }
.topic-list > li:nth-child(12n+2) { --t: var(--topic-2); }
.topic-list > li:nth-child(12n+3) { --t: var(--topic-3); }
.topic-list > li:nth-child(12n+4) { --t: var(--topic-4); }
.topic-list > li:nth-child(12n+5) { --t: var(--topic-5); }
.topic-list > li:nth-child(12n+6) { --t: var(--topic-6); }
.topic-list > li:nth-child(12n+7) { --t: var(--topic-7); }
.topic-list > li:nth-child(12n+8) { --t: var(--topic-8); }
.topic-list > li:nth-child(12n+9) { --t: var(--topic-9); }
.topic-list > li:nth-child(12n+10) { --t: var(--topic-10); }
.topic-list > li:nth-child(12n+11) { --t: var(--topic-11); }
.topic-list > li:nth-child(12n+12) { --t: var(--topic-12); }
.topic-rows { display: grid; gap: 14px; counter-reset: topic; }
.topic-card { counter-increment: topic; position: relative; display: grid; gap: 8px; padding: 16px 18px 16px 22px; border: 1px solid var(--line-2); border-left: 4px solid var(--t, var(--accent)); border-radius: 14px; background: var(--surface); }
.topic-card:focus-within { border-color: var(--t, var(--accent)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--t, var(--accent)) 14%, transparent); }
.topic-num { font: 500 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--t, var(--accent)); }
.topic-num::before { content: "Topic " counter(topic, decimal-leading-zero); }
.topic-head { display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 8px; align-items: center; }
input.topic-title { height: auto; padding: 4px 8px; margin-left: -8px; border-color: transparent; background: transparent; font: 600 20px/1.3 var(--f-display); letter-spacing: -0.015em; }
input.topic-title:hover { border-color: var(--line-2); }
input.topic-title:focus { border-color: var(--t, var(--accent)); box-shadow: none; background: var(--surface); }
.topic-sub-label { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.topic-sub-label span { font-weight: 400; }
.topic-card textarea { font-size: 14px; }
.topic-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.topic-list li { display: grid; gap: 4px; padding: 12px 16px; border: 1px solid var(--line-2); border-left: 4px solid var(--t, var(--accent)); border-radius: 12px; font-size: 14px; }
.topic-list li b { font-size: 15px; }
.topic-list span { color: var(--muted); font-size: 13px; }

/* Prompts */
.prompts-main { max-width: 1000px; }
.prompts-bar { position: sticky; top: 60px; z-index: 4; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.prompt-count { font-size: 14.5px; }
.prompt-count b { font: 600 18px var(--f-mono); font-variant-numeric: tabular-nums; }
.prompt-count span { margin-left: 8px; font-size: 12.5px; color: var(--muted); }
.prompt-count.over b { color: var(--bad); }
.prompts-bar .redraft { flex: 1; justify-content: flex-end; }
.topic-name { font: 600 20px/1.3 var(--f-display); letter-spacing: -0.015em; margin: 0; }
.subtopic { display: grid; gap: 8px; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); }
.subtopic h3 { font: 600 14.5px var(--f-body); margin: 0; }
.prompt-rows { display: grid; gap: 6px; }
.prompt-row { display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 8px; align-items: center; }
.prompt-row input { height: 40px; font-size: 14.5px; }
.prompt-topics > .topic-card { gap: 10px; }

/* Engine method */
.method-choice { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.method-choice legend { font-size: 13.5px; font-weight: 500; padding: 0; margin-bottom: 8px; }
.method-option { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; }
.method-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.method-option input { margin-top: 3px; accent-color: var(--accent); }
.method-option span { display: grid; gap: 2px; font-size: 13.5px; color: var(--muted); }
.method-option b { color: var(--ink); font-size: 14.5px; }
.test-country { max-width: 200px; }
.hint code { font: 12px var(--f-mono); background: var(--soft); padding: 1px 5px; border-radius: 4px; }

/* Results */
.section-title { font-size: 18px; font-weight: 600; margin: 36px 0 6px; }
.run-line { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.run-pick { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.run-pick select { height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; padding: 0 10px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 20px 0 16px; }
.kpi { border: 1px solid var(--line-2); border-radius: 12px; padding: 16px 18px; display: grid; gap: 4px; }
.kpi span { font: 500 11.5px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kpi b { font-size: 30px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi b small { font-size: 15px; color: var(--muted); font-weight: 500; }
.kpi p { font-size: 13px; color: var(--muted); margin: 0; }
.results-table th.rp { font: 400 14px/1.45 var(--f-body); text-transform: none; letter-spacing: 0; color: var(--ink); background: transparent; white-space: normal; text-align: left; min-width: 280px; max-width: 520px; padding: 10px 14px; border-top: 1px solid var(--line); }
.results-table .topic-row th { background: var(--soft); font: 600 13px var(--f-body); text-transform: none; letter-spacing: 0; color: var(--ink); border-top: 1px solid var(--line-2); }
.results-table td.rc { text-align: center; white-space: nowrap; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.results-table td.rc a { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 10px; border-radius: 8px; }
.results-table td.rc i { font: 500 10.5px var(--f-mono); font-style: normal; text-transform: uppercase; letter-spacing: .05em; color: var(--good); }
.rc-yes a { background: var(--accent-soft); color: var(--accent) !important; font-weight: 600; }
.rc-no a { color: var(--muted) !important; font-weight: 400 !important; }
.rc-none, .rc-none a, .rc-wait { color: var(--muted) !important; font-weight: 400 !important; }
.rc-fail a { color: var(--bad) !important; font-weight: 400 !important; }
.admin-table tr.own td { background: var(--accent-soft); }
.results-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 24px; }
.answer-q { font-size: 26px; line-height: 1.3; max-width: 46ch; margin: 10px 0 6px; }
.answer-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; margin-top: 20px; align-items: start; }
.answer-text { overflow-wrap: anywhere; font-size: 15px; line-height: 1.65; border: 1px solid var(--line-2); border-radius: 12px; padding: 22px 26px; min-width: 0; }
/* The answer's markdown: headings, paragraphs, lists, tables */
.answer-text > :first-child { margin-top: 0; }
.answer-text > :last-child { margin-bottom: 0; }
.answer-text p { margin: 0 0 12px; }
.answer-text h1, .answer-text h2, .answer-text h3, .answer-text h4, .answer-text h5, .answer-text h6 { margin: 22px 0 8px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.answer-text h1 { font-size: 21px; } .answer-text h2 { font-size: 19px; } .answer-text h3 { font-size: 17px; } .answer-text h4, .answer-text h5, .answer-text h6 { font-size: 15px; }
.answer-text ul, .answer-text ol { margin: 0 0 12px; padding-left: 22px; }
.answer-text li { margin: 4px 0; }
.answer-text li > p { margin: 0 0 6px; }
.answer-text strong { font-weight: 600; }
.answer-text a { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 2px; }
.answer-text blockquote { margin: 0 0 12px; padding: 4px 14px; border-left: 3px solid var(--line-2); color: var(--muted); }
.answer-text hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.answer-text code { font: 13px var(--f-mono); background: var(--soft); padding: 1px 5px; border-radius: 5px; }
.answer-text pre { background: var(--soft); padding: 12px 14px; border-radius: 8px; overflow-x: auto; }
.answer-text pre code { padding: 0; background: none; }
.md-table { overflow-x: auto; margin: 4px 0 16px; border: 1px solid var(--line-2); border-radius: 10px; }
.md-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.45; }
.md-table th, .md-table td { padding: 9px 12px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); overflow-wrap: normal; min-width: 110px; }
.md-table thead th { border-top: 0; background: var(--soft); font-weight: 600; }
.src-chips { margin: -4px 0 12px !important; }
.src-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 20px; }
.src-chip i { font-style: normal; color: var(--muted); }
a.src-chip { text-decoration: none; }
a.src-chip:hover { border-color: var(--ink); color: var(--ink); }
.answer-text mark, .mark-legend mark { border-radius: 4px; padding: 0 3px; }
/* Your brand in blue, competitors in orange: both stand out from the text and from each other. */
:root { --comp: #B45309; --comp-soft: #FDECD3; }
@media (prefers-color-scheme: dark) { :root { --comp: #F5B25E; --comp-soft: #3B2914; } }
mark.m-brand { background: var(--accent-soft); color: var(--accent); font-weight: 600; box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--accent) 45%, transparent); }
mark.m-competitor { background: var(--comp-soft); color: var(--comp); font-weight: 600; box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--comp) 40%, transparent); }
.mark-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 14px !important; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.mark-legend mark { font-size: 12px; }
.answer-side { display: grid; gap: 22px; font-size: 14px; }
.answer-side p { margin: 4px 0 0; }
.mention-list, .source-list { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.mention-list .m-brand { color: var(--accent); font-weight: 600; }
.mention-list .m-competitor { color: var(--comp); font-weight: 500; }
.mention-list .m-competitor .sentiment-reason { color: var(--muted); font-weight: 400; }
.source-list li { overflow-wrap: anywhere; }
.source-list a { color: var(--ink); text-decoration: none; }
.source-list a:hover { color: var(--accent); }
.source-list span { display: block; font: 12px var(--f-mono); color: var(--muted); }
.source-list li.own a { color: var(--accent); font-weight: 600; }
@media (max-width: 860px) { .answer-grid { grid-template-columns: 1fr; } }

/* Platform: sidebar on the left, the page on the right */
.platform { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 14px; padding: 18px 14px; border-right: 1px solid var(--line); background: var(--soft); overflow-y: auto; }
.side-top { padding: 4px 8px 6px; }
.sidebar .switcher { width: 100%; }
.sidebar .switcher-btn { width: 100%; justify-content: space-between; background: var(--surface); border: 1px solid var(--line-2); height: 40px; }
.sidebar .switcher-menu { left: 0; right: 0; min-width: 0; }
.side-nav { display: grid; gap: 2px; align-content: start; flex: 1; }
.nav-label { margin: 14px 10px 4px; font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav-label:first-child { margin-top: 4px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: 14px; }
.nav-item:hover { background: var(--surface); color: var(--ink); }
.nav-item[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: 0 0 0 1px var(--line-2); }
.nav-item[aria-current="page"] .nav-icon { color: var(--accent); }
.nav-icon { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.side-foot { display: grid; gap: 10px; border-top: 1px solid var(--line-2); padding-top: 14px; }
.side-plan { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); font-size: 13px; margin: 0; }
.side-plan b { font-weight: 500; }
.side-plan span { color: var(--accent); font-weight: 500; }
.sidebar .user-menu { margin-left: 0; }
.sidebar .user-menu summary { display: flex; align-items: center; gap: 10px; padding: 4px; border-radius: 8px; }
.sidebar .user-menu summary:hover { background: var(--surface); }
.side-email { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu.up .menu { top: auto; bottom: 48px; left: 0; right: auto; }
.platform-main { max-width: none; width: 100%; margin: 0; padding: 40px 48px 64px; align-content: start; }

/* Dashboard */
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; }
.dash-head > div:first-child { display: grid; gap: 10px; }
.dash-models { margin: 0; }
/* "By AI model" on its own row, then "Brands named" and "Most cited websites" sharing the full width. */
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-grid > section:first-child { grid-column: 1 / -1; }
.more { margin: 12px 0 0; font-size: 14px; }
.more a:not(.btn) { color: var(--accent); text-decoration: none; font-weight: 500; }
.run-progress { display: grid; gap: 12px; padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--accent-soft); margin-top: 8px; }
.run-progress > div:first-child { display: grid; gap: 2px; }
.run-progress span { font-size: 14px; color: var(--muted); }
.run-progress .bar { appearance: none; width: 100%; height: 8px; border: 0; border-radius: 999px; background: var(--surface); overflow: hidden; }
.run-progress .bar::-webkit-progress-bar { background: var(--surface); border-radius: 999px; }
.run-progress .bar::-webkit-progress-value { background: var(--accent); border-radius: 999px; transition: width .4s; }
.run-progress .bar::-moz-progress-bar { background: var(--accent); border-radius: 999px; }

@media (max-width: 900px) {
  .platform { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; gap: 10px; }
  .side-nav { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .nav-label { display: none; }
  .nav-item { white-space: nowrap; }
  .side-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; }
  .platform-main { padding: 24px 16px 48px; }
}

/* Visibility chart (d3, public/charts.js) */
/* Your brand (0), then 9 competitors in a fixed order, checked for color-blind separation between neighbours in both
   modes; the other competitors are "Others" (10, gray). A competitor keeps its color while it stays among the 9 named the most. */
:root { --c0: #1A4FD6; --c1: #EB6834; --c2: #1BAF7A; --c3: #EDA100; --c4: #E87BA4; --c5: #008300; --c6: #6250D6; --c7: #E34948; --c8: #0B9FC7; --c9: #A3478F; --c10: #D5DAE3; }
.sw-0 { --series: var(--c0); } .sw-1 { --series: var(--c1); } .sw-2 { --series: var(--c2); } .sw-3 { --series: var(--c3); } .sw-4 { --series: var(--c4); }
.sw-5 { --series: var(--c5); } .sw-6 { --series: var(--c6); } .sw-7 { --series: var(--c7); } .sw-8 { --series: var(--c8); } .sw-9 { --series: var(--c9); } .sw-10 { --series: var(--c10); }
.legend i, .chart-tip i { background: var(--series); }
@media (prefers-color-scheme: dark) { :root { --c0: #3987E5; --c1: #D95926; --c2: #199E70; --c3: #C98500; --c4: #D55181; --c5: #008300; --c6: #9085E9; --c7: #E66767; --c8: #0B9FC7; --c9: #A3478F; --c10: #3A4253; } }
.vis-chart { margin: 0; border: 1px solid var(--line-2); border-radius: 12px; padding: 16px 18px 14px; display: grid; gap: 10px; }
.chart { position: relative; min-height: 220px; }
.chart svg { display: block; overflow: visible; font: 12px var(--f-mono); }
.chart .axis text { fill: var(--muted); }
.chart .axis.y line { stroke: var(--line); }
.chart .axis.x line, .chart .axis.x .domain { stroke: var(--line-2); }
.chart .series path { fill: none; stroke: var(--series); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .series.own path { stroke-width: 3; }
.chart .series circle { fill: var(--surface); stroke: var(--series); stroke-width: 2; }
.chart .series.own circle { fill: var(--series); }
.chart .rule { stroke: var(--line-2); stroke-dasharray: 3 3; pointer-events: none; }
.chart .hover { fill: transparent; cursor: crosshair; }
.chart-tip { position: absolute; pointer-events: none; min-width: 180px; display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 12px 28px -14px rgba(13,18,32,.3); font-size: 13px; transition: opacity .1s; }
.chart-tip span { display: flex; align-items: center; gap: 8px; }
.chart-tip span.own { font-weight: 600; }
.chart-tip i, .legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.chart-tip em { margin-left: auto; font-style: normal; font-variant-numeric: tabular-nums; }
.chart-tip small { color: var(--muted); }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend li.own { color: var(--ink); font-weight: 500; }
.legend b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-lock { margin: 0; font-size: 13.5px; color: var(--muted); }
.chart-lock a { color: var(--accent); }
.chart-filter { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 10px; background: var(--soft); justify-self: start; max-width: 100%; overflow-x: auto; }
.chart-filter button { border: 0; background: transparent; color: var(--muted); font: 500 13px var(--f-body); padding: 6px 12px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.chart-filter button:hover { color: var(--ink); }
.chart-filter button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(13,18,32,.06); }
@media (max-width: 900px) { .chart-filter { flex-wrap: nowrap; } }
.chart-filter { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 10px; background: var(--soft); justify-self: start; max-width: 100%; overflow-x: auto; }
.chart-filter button { border: 0; background: transparent; color: var(--muted); font: 500 13px var(--f-body); padding: 6px 12px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.chart-filter button:hover { color: var(--ink); }
.chart-filter button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(13,18,32,.06); }
@media (max-width: 900px) { .chart-filter { flex-wrap: nowrap; } }
.over-time { display: grid; gap: 12px; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 36px; }
.section-head .section-title { margin: 0; }
.charts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .charts-grid { grid-template-columns: 1fr; } }
.chart-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.chart-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.vis-chart.wide { grid-column: 1 / -1; }
.chart .stack { fill: var(--series); stroke: var(--surface); stroke-width: 1; }
.chart .stack.sw-0 { fill-opacity: .9; }
.chart .stack:not(.sw-0) { fill-opacity: .75; }
.chart .reference { stroke: var(--muted); stroke-opacity: .5; stroke-dasharray: 4 4; }
.chart .reference-label { fill: var(--muted); font-size: 11px; }
.sentiment { display: inline-block; min-width: 28px; text-align: center; font: 600 11.5px var(--f-mono); padding: 1px 6px; border-radius: 999px; margin-left: 6px; }
.sentiment.pos { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
.sentiment.neu { background: var(--soft); color: var(--muted); }
.sentiment.neg { background: var(--bad-soft); color: var(--bad); }
.mention-list li .mention-name { font-weight: inherit; }
.sentiment-reason { margin: 3px 0 2px; font-size: 13px; line-height: 1.45; color: var(--muted); font-weight: 400; }
.mention-list .m-brand .sentiment-reason { color: var(--muted); font-weight: 400; }

/* Brand icons (favicons served at /icons/<domain>, or an initial) */
.bicon { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 5px; object-fit: contain; vertical-align: -4px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.bicon-lg { width: 32px; height: 32px; border-radius: 8px; vertical-align: middle; }
.bicon-letter { color: #fff; font: 700 10.5px/1 var(--f-body); box-shadow: none; }
.bicon-lg.bicon-letter { font-size: 16px; }
.bicon-c0 { background: #1A4FD6; } .bicon-c1 { background: #5FA77A; } .bicon-c2 { background: #E0A458; } .bicon-c3 { background: #C46A8A; } .bicon-c4 { background: #6B7AA8; } .bicon-c5 { background: #3E9BB5; }
.with-icon { white-space: nowrap; }
td.with-icon .bicon { margin-right: 10px; }
td.with-icon b { display: inline !important; }
td.with-icon .sub { display: block; margin-left: 28px; }
.brand-title { display: flex; align-items: center; gap: 14px; }
.menu-item.with-icon { display: flex; align-items: center; gap: 10px; }
.menu-text { display: grid; gap: 1px; min-width: 0; }
.mention-name .bicon, .source-list li > .bicon { margin-right: 7px; }
.project-list a .bicon { margin-bottom: 4px; }

/* Answers page: one expandable row per prompt */
.answers-list { --n: 1; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.answers-list.cols-2 { --n: 2; } .answers-list.cols-3 { --n: 3; } .answers-list.cols-4 { --n: 4; } .answers-list.cols-5 { --n: 5; }
.answers-list.cols-6 { --n: 6; } .answers-list.cols-7 { --n: 7; } .answers-list.cols-8 { --n: 8; }
.al-head, .al-row > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; gap: 16px; padding: 12px 16px; }
.al-cells { display: grid; grid-template-columns: repeat(var(--n), 104px); gap: 8px; justify-items: center; }
.al-head { background: var(--soft); font: 500 11.5px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.al-topic { margin: 0; padding: 14px 16px 12px; background: var(--soft); border-top: 1px solid var(--line-2); font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.al-subtopic { margin: 0; padding: 8px 16px 6px; border-top: 1px solid var(--line); font: 500 13.5px var(--f-body); color: var(--muted); }
.al-topic + .al-subtopic { border-top: 0; background: var(--soft); padding-top: 0; }
.al-row { border-top: 1px solid var(--line); }
.al-row > summary { list-style: none; cursor: pointer; }
.al-row > summary::-webkit-details-marker { display: none; }
.al-row > summary:hover { background: var(--soft); }
.al-row[open] > summary { background: var(--soft); }
.al-prompt { font-size: 14px; }
.al-chev { width: 8px; height: 8px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); justify-self: center; margin-top: -4px; transition: transform .15s; }
.al-row[open] .al-chev { transform: rotate(-135deg); margin-top: 4px; }
.al-cells .rc { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 28px; padding: 3px 10px; border-radius: 8px; font-size: 13px; white-space: nowrap; color: var(--muted); }
.al-cells .rc-yes { background: var(--accent-soft); color: var(--accent); }
.al-cells .rc-yes b { font-weight: 600; }
.al-cells .rc-no b { font-weight: 400; }
.al-cells .rc-fail { color: var(--bad); }
.al-cells .rc i { font: 500 10px var(--f-mono); font-style: normal; text-transform: uppercase; letter-spacing: .05em; color: var(--good); }
.al-eng { display: none; font-style: normal; color: var(--muted); font-weight: 400; }
.al-body { display: grid; gap: 28px; padding: 18px 16px 24px; border-top: 1px solid var(--line); }
.al-answer > header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.al-answer > header b { font-size: 15px; }
.al-answer > header a { font-size: 13px; color: var(--accent); text-decoration: none; }
/* In an expanded row, the answer and its side panel share one height, so neither leaves a blank below the other. */
.al-content .answer-grid { margin-top: 12px; align-items: stretch; grid-auto-rows: minmax(0, 560px); }
.al-content .answer-text { max-height: none; overflow: auto; min-height: 0; }
.al-content .answer-side { overflow: auto; min-height: 0; align-content: start; padding-right: 4px; }
@media (max-width: 760px) {
  .al-head { display: none; }
  .al-row > summary { grid-template-columns: minmax(0, 1fr) 20px; }
  .al-row > summary .al-cells { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; justify-items: start; }
  .al-eng { display: inline; }
  .al-body { padding: 14px 12px 20px; }
}
.answers-filter { margin: 4px 0 2px; }
.chart-filter a { color: var(--muted); font: 500 13px var(--f-body); padding: 6px 12px; border-radius: 7px; text-decoration: none; white-space: nowrap; }
.chart-filter a:hover { color: var(--ink); }
.chart-filter a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(13,18,32,.06); }
.prefixed { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--surface); }
.prefixed span { display: flex; align-items: center; padding: 0 4px 0 12px; color: var(--muted); font: 14px var(--f-mono); background: var(--soft); border-right: 1px solid var(--line-2); padding-right: 10px; white-space: nowrap; }
.prefixed input { border: 0 !important; border-radius: 0; box-shadow: none !important; flex: 1; min-width: 0; font-family: var(--f-mono); }
.prefixed:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.prefixed:has(input[aria-invalid="true"]) { border-color: var(--bad); }

/* Brand page: identity and profile, each with its own form */
.brand-page { display: grid; gap: 8px; max-width: 1120px; }
.brand-section { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 640px); gap: 24px 56px; padding: 32px 0; border-top: 1px solid var(--line); align-items: start; }
.brand-section:first-of-type { margin-top: 16px; }
.brand-section-head h2 { font-size: 19px; margin: 0 0 6px; }
.brand-section-head p { margin: 0; color: var(--muted); font-size: 14px; }
.brand-section .brand-form { max-width: none; }
@media (max-width: 900px) { .brand-section { grid-template-columns: 1fr; gap: 16px; padding: 24px 0; } }

/* Perception page */
.perc-table .bar-cell { min-width: 220px; }
.senti-bar { display: block; width: 100%; height: 8px; border-radius: 999px; overflow: hidden; background: var(--soft); }
.senti-bar .pos { fill: var(--good); } .senti-bar .neu { fill: var(--line-2); } .senti-bar .neg { fill: var(--bad); }
.senti-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.senti-legend .pos { color: var(--good); } .senti-legend .neg { color: var(--bad); }
.perc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; margin-top: 24px; }
.perc-card { display: grid; gap: 16px; align-content: start; border: 1px solid var(--line-2); border-radius: 14px; padding: 20px 22px; }
.perc-card.own { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2)); box-shadow: 0 0 0 3px var(--accent-soft); }
.perc-card header { display: flex; align-items: center; gap: 12px; }
.perc-card h2 { font-size: 18px; margin: 0; }
.perc-card header p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.perc-ai { display: grid; gap: 14px; }
.perc-summary { margin: 0; font-size: 14.5px; line-height: 1.6; }
.perc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chip-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip-list li { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); line-height: 1.4; }
.chip-list.good li { background: color-mix(in srgb, var(--good) 10%, transparent); border-color: color-mix(in srgb, var(--good) 25%, transparent); color: var(--good); }
.chip-list.bad li { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 25%, transparent); color: var(--bad); }
.perc-quotes ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.perc-quotes li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 13.5px; }
.perc-quotes li .sentiment { margin: 1px 0 0; }
.perc-quotes q { color: var(--ink); }
.perc-quotes a { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); text-decoration: none; }
.perc-quotes a:hover { color: var(--accent); }
@media (max-width: 600px) { .perc-cards { grid-template-columns: 1fr; } .perc-cols { grid-template-columns: 1fr; } }

/* Sidebar: the steps of a project still being set up */
.setup-step .step-dot { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); font: 600 10.5px var(--f-body); color: var(--muted); flex: none; }
.setup-step .step-dot.done { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.setup-step[aria-current="page"] .step-dot:not(.done) { border-color: var(--accent); color: var(--accent); }
.setup-step.locked { opacity: .5; cursor: default; }
.setup-step.locked:hover { background: none; color: var(--muted); }
.switcher-menu, .user-menu .menu { z-index: 30; }
/* With the sidebar, the setup steps are in it: no "Getting started" panel next to the form. */
.platform .setup-side { display: none; }
.platform .setup-grid { grid-template-columns: minmax(0, 760px); }

/* Deleting a project */
.danger-zone { margin-top: 48px; padding: 22px 24px; border: 1px solid color-mix(in srgb, var(--bad) 35%, var(--line-2)); border-radius: 14px; display: grid; gap: 10px; max-width: 760px; }
.danger-zone h2 { margin: 0; font-size: 17px; color: var(--bad); }
.danger-zone p { margin: 0; color: var(--muted); font-size: 14px; }
.danger-zone .brand-form { margin-top: 6px; }
.btn-danger { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn-danger:hover { filter: brightness(.93); }
.chart .bubble circle { fill: var(--series); fill-opacity: .55; stroke: var(--series); stroke-width: 1.5; cursor: pointer; }
.chart .bubble.own circle { fill-opacity: .8; stroke-width: 2.5; }
.chart .bubble-label { fill: var(--ink); font: 500 12px var(--f-body); pointer-events: none; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.chart .bubble-label.own { font-weight: 700; fill: var(--accent); }
.chart .label-link { stroke: var(--muted); stroke-opacity: .5; stroke-width: 1; }
.chart .bubble-labels { pointer-events: none; }
.chart .axis-title { fill: var(--muted); font: 11.5px var(--f-mono); }
.over-time-title { margin-top: 28px; }
/* Right under the indicators: "Latest update" starts close to them. */
.kpis + .over-time > .section-head:first-child { margin-top: 4px; }

/* Tables whose rows open a page (dashboard "Brands named") */
.linked-rows tbody tr[data-href] { cursor: pointer; }
.linked-rows tbody tr[data-href]:hover td { background: var(--soft); }
.linked-rows tbody tr.own[data-href]:hover td { background: color-mix(in srgb, var(--accent-soft) 70%, var(--soft)); }
.linked-rows td a { color: inherit; text-decoration: none; }
.linked-rows td a:hover b { text-decoration: underline; }
.filter-chip { display: inline-flex; align-items: center; gap: 10px; justify-self: start; margin: 0; padding: 6px 8px 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: 14px; }
.filter-chip a { color: var(--accent); text-decoration: none; font-size: 13px; padding: 2px 8px; border-radius: 999px; background: var(--surface); }

/* Export buttons */
.btn-export { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; font-size: 13.5px; white-space: nowrap; }
.btn-export svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.dash-side { display: grid; justify-items: end; gap: 14px; }
@media (max-width: 760px) { .dash-side { justify-items: start; } }

/* The website the Answers page is filtered on, highlighted in the answers */
:root { --hl: #FFF1A8; --hl-ink: #5C4A00; }
@media (prefers-color-scheme: dark) { :root { --hl: #4A3F0B; --hl-ink: #FFE58A; } }
.source-list li.src-focus { background: var(--hl); border-radius: 8px; padding: 4px 8px; margin-left: -8px; }
.source-list li.src-focus a, .source-list li.src-focus span { color: var(--hl-ink); }
.source-list li.src-focus a { font-weight: 600; }
.answer-text a.src-focus { background: var(--hl); color: var(--hl-ink); border-radius: 4px; padding: 0 3px; text-decoration-color: var(--hl-ink); }
.src-chip.src-focus { background: var(--hl); border-color: color-mix(in srgb, var(--hl-ink) 30%, transparent); color: var(--hl-ink); font-weight: 600; }
/* Answers list: topic, then subtopic, then prompts, each a step further in. */
.answers-list .al-subtopic { padding-left: 34px; }
.answers-list .al-row > summary, .answers-list .al-head { padding-left: 52px; }
.answers-list .al-body { padding-left: 52px; }
@media (max-width: 760px) {
  .answers-list .al-subtopic { padding-left: 24px; }
  .answers-list .al-row > summary, .answers-list .al-head, .answers-list .al-body { padding-left: 32px; }
}
.filters-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.filters-row .answers-filter { margin: 0; }
.topic-pick select { max-width: 320px; }
.projects-head > .head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mcp-configs { display: grid; gap: 8px; margin: 6px 0 10px; }
.mcp-configs details { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 14px; }
.mcp-configs summary { cursor: pointer; font-weight: 600; }
.mcp-configs pre { margin: 8px 0; white-space: pre-wrap; word-break: break-all; }

/* OAuth consent (an AI assistant asks to read the account) */
.consent { display: grid; gap: 16px; }
.consent-who { margin: 0; color: var(--muted); font-size: 14px; }
.consent-list { list-style: none; margin: 0; padding: 14px 16px; display: grid; gap: 8px; border: 1px solid var(--line-2); border-radius: 12px; font-size: 14.5px; }
.consent-list li::before { content: "✓"; color: var(--good); font-weight: 700; margin-right: 8px; }
.consent-list li.no::before { content: "✕"; color: var(--muted); }
.consent-list li.no { color: var(--muted); }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.run-pick label { white-space: nowrap; }

/* AI models page: variants grouped by engine family */
.model-family { margin-bottom: 18px; }
.model-family > legend { font-weight: 600; font-size: 13px; text-transform: none; color: var(--muted); padding: 0; margin-bottom: 8px; }
.model-text span { color: var(--muted); font-size: 12.5px; }

/* Back office */
.problems { display: grid; gap: 8px; margin: 16px 0 8px; }
.problem { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 14px; }
.problem::before { content: ""; width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: var(--muted); }
.problem.error::before { background: var(--bad); }
.problem.warn::before { background: #D99A1E; }
.problem b { display: block; font-weight: 600; }
.problem p { margin: 2px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.problem a { color: var(--accent); text-decoration: none; font-weight: 500; font-size: 13px; white-space: nowrap; }
.all-good { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 14px; color: var(--good); margin: 16px 0 8px; }
.admin-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0 8px; }
.admin-filters input[type="search"] { padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; font-size: 14px; min-width: 260px; background: var(--surface); color: var(--ink); }
.admin-filters select { padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; font-size: 14px; background: var(--surface); color: var(--ink); }
.admin-table td.cost { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.admin-table th.cost { text-align: right; }
.admin-table .floor { color: #D99A1E; font-size: 11px; margin-left: 3px; }
.admin-table tr[data-href] { cursor: pointer; }
.admin-table tr[data-href]:hover td { background: var(--soft); }
.price-form { display: flex; gap: 6px; align-items: center; }
.price-form input { width: 86px; padding: 5px 8px; border: 1px solid var(--line-2); border-radius: 6px; font: 13px var(--f-mono); background: var(--surface); color: var(--ink); }
.price-form button { padding: 5px 10px; font-size: 13px; }
.account-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-start; }
.account-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.account-meta b { color: var(--ink); font-weight: 500; }
.pause-form { display: flex; gap: 8px; align-items: center; }
.plan-form { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; align-items: center; font-size: 14px; max-width: 560px; }
.plan-limits { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 4px 0 0; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 8px; }
.plan-limits legend { padding: 0 4px; font-weight: 600; }
.plan-limits label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.plan-limits input { width: 120px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; font-size: 14px; background: var(--surface); color: var(--ink); }
.plan-form select { padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; font-size: 14px; background: var(--surface); color: var(--ink); }
.period-tabs { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.period-tabs a { padding: 6px 12px; font-size: 13.5px; text-decoration: none; color: var(--muted); }
.period-tabs a[aria-current="page"] { background: var(--soft); color: var(--ink); font-weight: 500; }
.worker-line { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.worker-line b { color: var(--ink); font-weight: 500; }
.run-answers .ra-status { white-space: nowrap; }
.run-answers td.err { color: var(--bad); font: 12px var(--f-mono); overflow-wrap: anywhere; max-width: 360px; }
.run-answers details { font-size: 13px; }
.run-answers details summary { cursor: pointer; color: var(--accent); font-weight: 500; list-style: none; }
.run-answers details summary::-webkit-details-marker { display: none; }
.run-answers details pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.6 var(--f-body); margin: 10px 0 0; padding: 12px 14px; background: var(--soft); border-radius: 8px; max-height: 420px; overflow: auto; }
.run-answers .mentions { font-size: 12px; color: var(--muted); }
.run-answers .mentions b { color: var(--ink); font-weight: 500; }
.pill-bad { font-size: 12px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: var(--bad-soft); color: var(--bad); }
.pill-wait { font-size: 12px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: #FBF1DA; color: #8A5A00; }

/* Billing */
.billing-page { max-width: 1040px; }
.sub-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; padding: 24px 28px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--soft); margin-top: 20px; }
.sub-card h2 { font-size: 22px; margin: 4px 0 6px; display: flex; align-items: center; gap: 10px; }
.sub-card p { margin: 0; max-width: 60ch; }
.muted.small { font-size: 13px; margin-top: 10px; }
.billing-page .price-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-top: 28px; }
.billing-page .price-head .section-title { margin: 0; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.plan { border: 1px solid var(--line-2); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px; background: var(--surface); }
.plan.pop { border-color: var(--ink); }
.plan.current { border-color: var(--accent); background: var(--accent-soft); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan h3 { font-size: 19px; margin: 0; }
.plan .tag { font: 500 12px/1 var(--f-body); padding: 5px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.plan.current .tag { background: var(--accent); color: var(--accent-ink); }
.plan .price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan .price b { font-size: 32px; font-weight: 600; letter-spacing: -.02em; }
.plan .price span { color: var(--muted); font-size: 13.5px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--muted); flex: 1; }
.plan li::before { content: "✓ "; color: var(--accent); }
.plan form, .plan .btn { margin-top: auto; }
.plan .btn { width: 100%; justify-content: center; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
/* Both frames of the latest update share one height; the bar chart stretches to it */
.latest-grid { align-items: stretch; }
.latest-grid .vis-chart { grid-template-rows: auto minmax(0, 1fr) auto; }
.latest-grid .chart-bars { height: 100%; }
.chart-bars { min-height: 120px; }
.chart .bar { fill: var(--series); stroke: var(--surface); stroke-width: 1; fill-opacity: .8; }
.chart .bar.own { fill-opacity: 1; }
.chart .bar-label { fill: var(--ink); font: 500 12.5px var(--f-body); }
.chart .bar-value { fill: var(--surface); font: 500 11.5px var(--f-mono); pointer-events: none; }
.chart .empty { fill: var(--muted); font: 13px var(--f-body); }
@media (max-width: 1100px) { .latest-grid { grid-template-columns: 1fr; } }
.side-legal { margin: 0; font-size: 11.5px; color: var(--muted); display: flex; gap: 4px; flex-wrap: wrap; }
.side-legal a { color: var(--muted); text-decoration: none; }
.side-legal a:hover { color: var(--ink); text-decoration: underline; }
.chart .group-sep { stroke: var(--line-2); }
/* Over-time frames: extra height goes to the chart, so the legend sits right above the frame's bottom edge */
.charts-grid .vis-chart { grid-template-rows: auto minmax(0, 1fr) auto; }
.charts-grid .chart-bars { height: 100%; }

/* Search demand */
.demand-table td { vertical-align: top; }
.demand-table .sub { display: block; }
.trend { font: 11.5px var(--f-mono); margin-left: 4px; color: var(--muted); }
.trend.up { color: var(--good); } .trend.down { color: var(--bad); }
.dq summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dq summary::-webkit-details-marker { display: none; }
.qchip { display: inline-flex; gap: 6px; align-items: baseline; padding: 2px 9px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: 12.5px; }
.qchip em { font: 11px var(--f-mono); font-style: normal; color: var(--muted); }
.qchip.edited { border-color: var(--accent); }
.dq-edit { font-size: 12px; color: var(--accent); }
.dq-form { display: grid; gap: 8px; margin-top: 10px; max-width: 420px; }
.dq-form textarea { font: 13px var(--f-mono); padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); }
.demand-topic { margin-top: 18px; }
.dt-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px; margin-bottom: 8px; }
.dt-head h3 { margin: 0; font-size: 17px; }
.ai-share { margin: 0; display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--muted); padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; }
.ai-share b { color: var(--ink); font-size: 15px; }
.ai-share em { font: 11.5px var(--f-mono); font-style: normal; } .ai-share em.up { color: var(--good); } .ai-share em.down { color: var(--bad); }
.ai-share small { font-size: 11.5px; }
.inline-form { display: inline; margin-left: 8px; }
.prompts-main form:has(.prompt-demand) .prompt-row { grid-template-columns: minmax(0, 1fr) 64px 36px; }
.prompt-demand { font: 500 12.5px var(--f-mono); text-align: right; color: var(--ink); white-space: nowrap; }
.prompt-demand.none { color: var(--muted); }
.answers-list.with-demand .al-head, .answers-list.with-demand .al-row > summary { grid-template-columns: minmax(0, 1fr) 84px auto 20px; }
.al-demand { font: 500 12.5px var(--f-mono); text-align: right; color: var(--ink); white-space: nowrap; }
.al-head .al-demand { font: inherit; color: inherit; }
.al-demand.none { color: var(--muted); }
@media (max-width: 760px) { .answers-list.with-demand .al-row > summary { grid-template-columns: minmax(0, 1fr) auto 20px; } .al-row .al-demand { display: none; } }
.table-note { margin-top: 10px; max-width: 80ch; }

/* Recommendations */
.reco-list { display: grid; gap: 14px; margin-top: 16px; }
.reco { border: 1px solid var(--line-2); border-radius: 14px; padding: 18px 20px; display: grid; gap: 8px; background: var(--surface); }
.reco.doing { border-color: var(--accent); }
.reco header { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.reco h3 { margin: 0; font-size: 17px; }
.reco p { margin: 0; color: var(--muted); font-size: 14.5px; }
.reco-type { font: 500 11.5px var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.reco-impact, .reco-effort { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.reco-impact.high { background: var(--bad-soft); color: var(--bad); }
.reco-impact.medium { background: #FBF1DA; color: #8A5A00; }
.reco-steps { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14.5px; }
.reco-evidence summary { cursor: pointer; color: var(--accent); font-size: 13.5px; }
.reco-evidence ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13.5px; color: var(--muted); }
.reco-evidence a { color: var(--accent); }
.reco-prompt { display: block; color: var(--ink); }
.reco-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.reco-done { margin-top: 22px; }
.reco-done summary { cursor: pointer; font-weight: 500; }
.reco-locked { position: relative; margin-top: 16px; }
.reco-locked .reco-list { filter: grayscale(1) blur(2px); opacity: .45; pointer-events: none; user-select: none; }
.reco-upgrade { position: absolute; inset: 40px 0 auto; margin: 0 auto; max-width: 480px; padding: 26px 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 24px 48px -24px rgba(13,18,32,.3); display: grid; gap: 12px; text-align: center; justify-items: center; }
.reco-upgrade h2 { margin: 0; font-size: 20px; }
.reco-upgrade p { margin: 0; color: var(--muted); }
.reco-box { margin: 8px 0 18px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 12px; }
.reco-box .section-head { display: flex; justify-content: space-between; align-items: baseline; }
.reco-box .section-title { margin: 0 0 8px; }
.reco-box ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.reco-box li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.reco-box a { color: var(--ink); text-decoration: none; } .reco-box a:hover { color: var(--accent); }
.reco-box.locked p { margin: 0; }
.reco-box.locked a { color: var(--accent); }

/* Signup panel: the free audit */
.signup-aside .aside-in { max-width: 460px; gap: 18px; }
.aside-title { font: 600 clamp(24px, 2.4vw, 30px)/1.15 var(--f-display); letter-spacing: -.02em; margin: 0; color: var(--ink); }
.signup-aside .aside-text { margin: 0; color: var(--muted); font-size: 15px; max-width: 46ch; }
.aside-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.aside-rank li { display: grid; grid-template-columns: 18px 92px 1fr 40px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 9px; font-size: 14px; }
.aside-rank .bar { height: 8px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.aside-rank .fill { display: block; height: 100%; border-radius: 4px; background: var(--muted); opacity: .45; }
.aside-rank .w64 { width: 64%; } .aside-rank .w41 { width: 41%; } .aside-rank .w18 { width: 18%; }
.aside-rank li.you .fill { background: var(--accent); opacity: 1; }
.aside-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.aside-card-head .aside-sample { padding: 4px 8px; border-radius: 999px; background: var(--soft); }
.aside-legend { font-size: 12px; color: var(--muted); }
.aside-hint { margin: 0; font-size: 13px; color: var(--accent); }
.aside-rank i { font: normal 500 12px var(--f-mono); color: var(--muted); }
.aside-rank b { font-weight: 600; }
.aside-rank em { font: normal 500 13px var(--f-mono); color: var(--ink); text-align: right; }
.aside-rank li.you { background: var(--accent-soft); }
.aside-rank li.you b, .aside-rank li.you em { color: var(--accent); }
.aside-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 10px; }
.aside-steps li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; font-size: 14px; }
.aside-steps li::before { content: counter(s); grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 600 12px/22px var(--f-mono); text-align: center; }
.aside-steps b { font-weight: 500; color: var(--ink); }
.aside-steps span { color: var(--muted); font-size: 12.5px; }
.aside-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--muted); }
.aside-trust li { display: inline-flex; align-items: center; gap: 6px; }
.aside-trust svg { width: 14px; height: 14px; color: var(--good); }
/* Phones: the panel is hidden, so the steps and promises come under the form */
.signup-mobile { display: none; }
@media (max-width: 900px) {
  .signup-mobile { display: grid; gap: 12px; margin-top: 8px; padding: 16px; border-radius: 12px; background: var(--soft); }
  .signup-mobile .aside-steps li { font-size: 13.5px; }
}
/* Shorter screens (laptops, tablets in landscape): a tighter panel that fits without scrolling */
@media (min-width: 901px) and (max-height: 860px) {
  .signup-aside { padding-block: 24px; }
  .signup-aside .aside-in { gap: 14px; }
  .signup-aside .aside-title { font-size: 24px; }
  .signup-aside .aside-text { font-size: 14px; }
  .signup-aside .aside-card { padding: 16px 18px; gap: 12px; }
  .signup-aside .aside-hint { display: none; }
  .signup-aside .aside-steps { gap: 6px; }
  .signup-aside .aside-steps span { display: none; }
  .signup-aside .aside-steps li::before { grid-row: auto; }
}

/* Back office playground */
.pg-form { display: grid; gap: 16px; max-width: 980px; margin: 20px 0 8px; }
.pg-form textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; resize: vertical; }
.pg-country select { max-width: 280px; }
.pg-variants { border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 18px 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 24px; margin: 0; }
.pg-variants legend { padding: 0 6px; font-weight: 600; }
.pg-family .side-title { margin: 0 0 6px; }
.pg-variant { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; font-size: 14px; cursor: pointer; }
.pg-variant input { margin-top: 3px; }
.pg-variant small { display: block; color: var(--muted); font-size: 12px; }
.pg-variant.off { color: var(--muted); cursor: default; }
.pg-variant .pill-on { margin-left: 4px; }
h1.pg-prompt { font-size: 22px; line-height: 1.35; letter-spacing: -0.01em; max-width: 70ch; }
.pg-summary td a { text-decoration: none; }
.pg-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 16px; margin-top: 20px; align-items: start; }
.pg-result { border: 1px solid var(--line-2); border-radius: 12px; padding: 16px 18px; min-width: 0; scroll-margin-top: 16px; }
.pg-result header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.pg-result h2 { font-size: 16px; margin: 0 auto 0 0; }
.pg-result .err { color: var(--bad); font-size: 13px; overflow-wrap: anywhere; }
.pg-sources { margin: 0 0 12px; font-size: 13px; }
.pg-sources .side-title { margin: 0 0 6px; }
.pg-sources ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; max-height: 260px; overflow: auto; }
.pg-sources li { overflow-wrap: anywhere; line-height: 1.5; }
.pg-sources li > a:not(.src-chip) { color: var(--ink); }
/* Sources in color in the playground: the list and the chips in the answers */
.pg-result a.src-chip { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 500; }
.pg-result a.src-chip:hover { border-color: var(--accent); color: var(--accent); }
.pg-answer { max-height: 560px; overflow: auto; font-size: 14px; overflow-wrap: anywhere; }

/* Site names in the text of an answer, as chips (ChatGPT's sources) */
.answer-text a.src-inline { padding: 0 7px; line-height: 18px; vertical-align: baseline; }

/* Outbound report (/report/<token>): a public page read from an email. One column, the figures first, then the evidence. */
.rp-body { height: auto; }
.rp-wrap { max-width: 920px; margin-inline: auto; padding-inline: 24px; }
.rp-top { border-bottom: 1px solid var(--line); }
.rp-top .rp-wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.rp-home { text-decoration: none; }
.rp-tag { font: 500 12px/1 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.report { display: grid; gap: 56px; padding-block: 48px 40px; }
.report h2 { font: 600 21px/1.25 var(--f-display); letter-spacing: -0.02em; margin: 0 0 6px; }
.report .eyebrow { font: 500 13px/1.4 var(--f-mono); color: var(--muted); margin-bottom: 14px; }
.rp-hero h1 { font-size: clamp(28px, 4.2vw, 40px); max-width: 22ch; }
.rp-hero .lede { font-size: 18px; margin-top: 18px; max-width: 60ch; }
.rp-meta { color: var(--muted); margin-top: 10px; max-width: 64ch; }
.rp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 26px; font-size: 14px; }
.rp-btn { height: 48px; padding-inline: 22px; background: var(--accent); color: var(--accent-ink); }

.rp-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--line-2); }
/* The tiles share their rows (label, figure, note), so figures line up when a label wraps */
.rp-kpis { grid-template-rows: auto auto auto; }
.rp-kpi { padding: 22px 20px 22px 0; display: grid; grid-row: span 3; grid-template-rows: subgrid; gap: 4px; align-content: start; }
.rp-kpi + .rp-kpi { padding-left: 20px; border-left: 1px solid var(--line); }
.rp-kpi span { font-size: 13.5px; color: var(--muted); }
.rp-kpi b { font: 600 34px/1.1 var(--f-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rp-kpi b small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.rp-kpi p { font-size: 13.5px; color: var(--muted); }
.rp-kpi-you b { color: var(--accent); }

.rp-section > .muted { margin-bottom: 18px; }
.rp-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rp-rank li { display: grid; grid-template-columns: minmax(120px, 220px) minmax(0, 1fr) 48px; align-items: center; gap: 14px; font-size: 14.5px; }
.rp-rank li b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-rank li.you b { color: var(--accent); font-weight: 600; }
.rp-rank em { font: 500 13.5px var(--f-mono); font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
.rp-you-tag { font: 500 11px/1 var(--f-mono); padding: 2px 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); vertical-align: 2px; }
.rp-bar { width: 100%; height: 10px; display: block; }
.rp-track { fill: var(--soft); }
.rp-fill { fill: var(--comp); opacity: .8; }
.rp-fill.rp-you { fill: var(--accent); opacity: 1; }

.rp-engines { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.rp-engines th, .rp-engines td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.rp-engines thead th { font-size: 13px; font-weight: 500; color: var(--muted); }
.rp-engines tbody th { font-weight: 500; }

.rp-questions { display: grid; border-top: 1px solid var(--line); }
.rp-q { border-bottom: 1px solid var(--line); }
.rp-q summary { list-style: none; cursor: pointer; display: grid; gap: 4px; padding: 16px 28px 16px 0; position: relative; }
.rp-q summary::-webkit-details-marker { display: none; }
.rp-q summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 20px/1 var(--f-mono); color: var(--muted); }
.rp-q[open] summary::after { content: "−"; }
.rp-q-text { font-weight: 500; }
.rp-q-who { font-size: 13.5px; color: var(--comp); }
.rp-q-engine { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.rp-q .answer-text { margin-bottom: 18px; max-height: 520px; overflow-y: auto; }
.chips-list li.rp-own { border-color: var(--accent); color: var(--accent); }

.rp-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 40px; padding: 32px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); }
.rp-cta p { color: var(--muted); margin-top: 6px; max-width: 58ch; }
.rp-cta .rp-actions { margin-top: 0; flex-direction: column; align-items: stretch; text-align: center; }

.rp-foot { display: grid; gap: 14px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 24px; }
.rp-foot b { color: var(--ink); font-weight: 500; }
.rp-delete { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.rp-delete .link-btn { font-size: 13.5px; }
.rp-links a { text-decoration: none; }
.rp-links a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .report { gap: 44px; padding-block: 32px; }
  .rp-kpis { grid-template-columns: 1fr; grid-template-rows: none; }
  .rp-kpi { grid-row: auto; grid-template-rows: none; }
  .rp-kpi + .rp-kpi { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .rp-rank li { grid-template-columns: minmax(0, 1fr) 48px; }
  .rp-rank li .rp-bar { grid-column: 1 / -1; grid-row: 2; }
  .rp-cta { grid-template-columns: 1fr; padding: 24px; }
}
/* Back office: an admin viewing an account (read-only) */
.view-as-form { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.view-as-bar { position: sticky; top: 0; z-index: 20; background: var(--accent); color: var(--accent-ink); padding: 8px 16px; text-align: center; font-size: 14px; }
.view-as-bar a { color: inherit; font-weight: 600; margin-left: 8px; }
/* Teams: account switcher (account menu), team page, invitation */
.menu-accounts { border-bottom: 1px solid var(--line); margin-bottom: 6px; padding-bottom: 6px; }
.menu-label { padding: 6px 12px 2px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.menu-accounts button { display: grid; gap: 1px; }
.menu-accounts button span { font-size: 12px; color: var(--muted); }
.menu-accounts button[aria-current="true"] { background: var(--soft); }
p.side-plan { cursor: default; }
.team-table td form { display: inline-flex; gap: 8px; align-items: center; }
.team-invite { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 8px 0 24px; }
.team-invite .field { margin: 0; flex: 1 1 240px; }
.team-roles { display: grid; gap: 4px; margin: 0 0 16px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
