/* ShiftCode AI Visibility. Colour tokens copied from shiftcode.co.uk (shadcn neutral + ShiftCode blue). */
:root {
  /* shadcn neutral theme, light (themes.ts) */
  --radius: 0.625rem;
  --background: #ffffff;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --card-foreground: #0a0a0a;
  --primary: #171717;
  --primary-foreground: #fafafa;
  --secondary: #f5f5f5;
  --secondary-foreground: #171717;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --accent: #f5f5f5;
  --accent-foreground: #171717;
  --destructive: #e7000b;
  --border: #e5e5e5;
  --input: #e5e5e5;
  --ring: #a1a1a1;
  --sidebar: #fafafa;

  /* ShiftCode brand */
  --brand: #329ac9;          /* large text, decorative */
  --brand-ink: #1f6f96;      /* small text + button fill on light */
  --brand-ink-hover: #1b6185;
  --brand-soft: rgb(50 154 201 / 0.12);

  /* Inverted band (the "why choose" stats section, the dark compare card) */
  --inverse: #0a0a0a;
  --inverse-foreground: #fafafa;
  --inverse-muted: #a1a1a1;
  --inverse-border: rgb(255 255 255 / 0.12);

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-sm: calc(var(--radius) * 0.6);
  --radius-md: calc(var(--radius) * 0.8);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) * 1.4);

  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --focus-ring: color-mix(in oklab, var(--ring) 50%, transparent);

  --header-h: 64px;
  color-scheme: light;
}

/* Dark: shadcn neutral "dark" block. Written twice: once for the OS setting (unless the
   visitor picked light), once for the explicit toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: #0a0a0a;
    --foreground: #fafafa;
    --card: #171717;
    --card-foreground: #fafafa;
    --primary: #e5e5e5;
    --primary-foreground: #171717;
    --secondary: #262626;
    --secondary-foreground: #fafafa;
    --muted: #262626;
    --muted-foreground: #a1a1a1;
    --accent: #262626;
    --accent-foreground: #fafafa;
    --destructive: #ff6467;
    --border: rgb(255 255 255 / 0.1);
    --input: rgb(255 255 255 / 0.15);
    --ring: #737373;
    --sidebar: #111111;
    --brand-ink: #329ac9;
    --brand-ink-hover: #4aa8d3;
    --brand-soft: rgb(50 154 201 / 0.16);
    --inverse: #171717;
    --inverse-border: rgb(255 255 255 / 0.1);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --background: #0a0a0a;
  --foreground: #fafafa;
  --card: #171717;
  --card-foreground: #fafafa;
  --primary: #e5e5e5;
  --primary-foreground: #171717;
  --secondary: #262626;
  --secondary-foreground: #fafafa;
  --muted: #262626;
  --muted-foreground: #a1a1a1;
  --accent: #262626;
  --accent-foreground: #fafafa;
  --destructive: #ff6467;
  --border: rgb(255 255 255 / 0.1);
  --input: rgb(255 255 255 / 0.15);
  --ring: #737373;
  --sidebar: #111111;
  --brand-ink: #329ac9;
  --brand-ink-hover: #4aa8d3;
  --brand-soft: rgb(50 154 201 / 0.16);
  --inverse: #171717;
  --inverse-border: rgb(255 255 255 / 0.1);
  color-scheme: dark;
}

/* ---- App components (same shadcn look as shiftcode.co.uk) -------------------
   --brand / --brand-ink / --on-brand are overridden per client by brand_css(). */
:root { --on-brand: #ffffff; --good: #15803d; --good-soft: rgb(21 128 61 / .1); --bad: #b91c1c; --bad-soft: rgb(185 28 28 / .08); --warn: #a16207; --warn-soft: rgb(161 98 7 / .1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --good: #4ade80; --good-soft: rgb(74 222 128 / .12); --bad: #f87171; --bad-soft: rgb(248 113 113 / .12); --warn: #facc15; --warn-soft: rgb(250 204 21 / .1); } }
:root[data-theme="dark"] { --good: #4ade80; --good-soft: rgb(74 222 128 / .12); --bad: #f87171; --bad-soft: rgb(248 113 113 / .12); --warn: #facc15; --warn-soft: rgb(250 204 21 / .1); }

*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--foreground); font: 400 15px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 .9em; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: var(--background); padding: 8px 12px; border-radius: var(--radius-md); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted-foreground); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.text-bad { color: var(--bad); }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }

/* Header */
.app-header { position: sticky; top: 0; z-index: 20; background: color-mix(in oklab, var(--background) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 30px; width: auto; max-width: 180px; object-fit: contain; }
.logo-on-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-on-light { display: none; } :root:not([data-theme="light"]) .logo-on-dark { display: block; } }
:root[data-theme="dark"] .logo-on-light { display: none; }
:root[data-theme="dark"] .logo-on-dark { display: block; }
.ws-name { font-weight: 600; color: var(--muted-foreground); font-size: .9rem; }
.ws-switch select { height: 2.1rem; max-width: 240px; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border: 1px solid var(--border); background: var(--background); color: var(--foreground); border-radius: var(--radius-md); cursor: pointer; }
.icon-btn svg { width: 16px; height: 16px; }
.theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; } :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; } }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 190px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 6px; display: grid; }
.menu-list a, .menu-list button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--foreground); text-decoration: none; background: none; border: 0; font: inherit; font-size: .9rem; cursor: pointer; }
.menu-list a:hover, .menu-list button:hover { background: var(--accent); }
.menu-list form { margin: 0; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding-bottom: 0; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex-shrink: 0; padding: 10px 12px; font-size: .88rem; font-weight: 500; color: var(--muted-foreground); text-decoration: none; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--foreground); }
.tabs a[aria-current] { color: var(--foreground); border-bottom-color: var(--brand-ink); }

/* Layout */
.main { padding-top: 28px; padding-bottom: 48px; min-height: 60vh; }
.page-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-title p { margin: 0; max-width: 70ch; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }
.card { background: var(--card); color: var(--card-foreground); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 22px; box-shadow: var(--shadow-xs); margin-bottom: 20px; min-width: 0; }
.card-title { font-size: 1.05rem; margin-bottom: .7em; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: .6em; }
.card-warn { border-color: color-mix(in oklab, var(--warn) 45%, var(--border)); background: color-mix(in oklab, var(--warn-soft) 100%, var(--card)); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-2 > .card { margin-bottom: 20px; }
.grid-answer { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.stack { display: grid; gap: 14px; }
.stack > .card { margin-bottom: 0; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted-foreground); font-size: .85rem; margin: 0 0 16px; }
.notice, .flash { padding: 10px 14px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--muted); font-size: .9rem; margin: 0 0 16px; }
.flash-ok { border-color: color-mix(in oklab, var(--good) 40%, var(--border)); background: var(--good-soft); }
.flash-error { border-color: color-mix(in oklab, var(--bad) 40%, var(--border)); background: var(--bad-soft); }
.help-text { font-size: .85rem; color: var(--muted-foreground); margin: 0; }
.kicker { font: 500 .75rem var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--brand-ink); margin: 0 0 .4em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
pre.code { background: var(--muted); padding: 10px 12px; border-radius: var(--radius-md); font: .82rem var(--font-mono); overflow-x: auto; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 2.35rem; padding: 0 1rem; border-radius: var(--radius-md); border: 1px solid transparent; font: 500 .9rem var(--font-sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease; }
.btn-sm { height: 2rem; padding: 0 .75rem; font-size: .83rem; }
.btn-brand { background: var(--brand-ink); color: var(--on-brand); }
.btn-brand:hover { background: var(--brand-ink-hover); }
.btn-outline { background: var(--background); color: var(--foreground); border-color: var(--border); box-shadow: var(--shadow-xs); }
.btn-outline:hover { background: var(--accent); }
.btn[disabled] { opacity: .6; cursor: progress; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-danger { color: var(--bad); }
.row-actions { display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.row-actions form { margin: 0; }

/* Forms */
.field { display: grid; gap: 6px; font-size: .85rem; font-weight: 500; min-width: 0; }
.field em { font-style: normal; font-weight: 400; color: var(--muted-foreground); }
input:not([type=checkbox]):not([type=color]):not([type=file]), select, textarea {
  width: 100%; min-height: 2.35rem; padding: .45rem .7rem; border: 1px solid var(--input); border-radius: var(--radius-md); background: var(--background); color: var(--foreground); font: 400 .92rem var(--font-sans); box-shadow: var(--shadow-xs);
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px var(--focus-ring); }
input[disabled], select[disabled], textarea[disabled] { opacity: .7; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.field-row-end { grid-template-columns: 1fr 180px auto; align-items: end; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 400; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--brand-ink); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 16px; }
.color-pick { display: flex; gap: 8px; }
.color-pick input[type=color] { width: 2.6rem; height: 2.35rem; padding: 2px; border: 1px solid var(--input); border-radius: var(--radius-md); background: var(--background); cursor: pointer; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted-foreground); }
.swatches span { display: inline-flex; align-items: center; gap: 8px; }
.swatches i { width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--border); }
.logo-preview { max-height: 48px; max-width: 220px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #ffffff; }
.logo-preview-dark { background: #0a0a0a; }
.inline-form { margin: 0; }
.inline-form select { min-width: 110px; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; font-weight: 500; color: var(--muted-foreground); font-size: .8rem; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr.is-off td { color: var(--muted-foreground); }
.table tr.is-us td { background: var(--brand-soft); }
.table-form td input { min-width: 90px; }
.table-form th[scope=row] { color: var(--foreground); font-size: .85rem; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 9999px; font-size: .75rem; font-weight: 500; white-space: nowrap; background: var(--muted); color: var(--muted-foreground); border: 1px solid var(--border); }
.badge-good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.badge-bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.badge-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.engine-tag { font: 500 .75rem var(--font-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted-foreground); }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 16px 18px; display: grid; gap: 2px; box-shadow: var(--shadow-xs); }
.kpi-label { font-size: .8rem; color: var(--muted-foreground); font-weight: 500; }
.kpi-value { font-size: 1.9rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi-main .kpi-value { color: var(--brand-ink); }
.kpi-note { font-size: .78rem; color: var(--muted-foreground); }
.delta { font-size: .78rem; color: var(--muted-foreground); }
.delta.up { color: var(--good); }
.delta.down { color: var(--bad); }

/* Charts: one series in the client's colour, recessive grid */
.chart { position: relative; margin: 0; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--border); stroke-width: 1; }
.chart .axis { fill: var(--muted-foreground); font: 11px var(--font-sans); }
.chart .series { fill: none; stroke: var(--brand-ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--brand-ink); stroke: var(--card); stroke-width: 2; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .pt:hover .dot, .chart .pt:focus .dot { r: 6; }
.chart .pt:focus { outline: none; }
.chart-tip { position: absolute; pointer-events: none; transform: translate(-50%, -120%); background: var(--popover, var(--card)); border: 1px solid var(--border); box-shadow: var(--shadow-md); border-radius: var(--radius-md); padding: 4px 8px; font-size: .8rem; white-space: nowrap; }
.table-view summary { cursor: pointer; font-size: .82rem; color: var(--muted-foreground); margin-top: 8px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bars li { display: grid; grid-template-columns: minmax(90px, 38%) 1fr 32px; gap: 10px; align-items: center; font-size: .85rem; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-label em { font-style: normal; color: var(--muted-foreground); }
.bar-track { height: 10px; }
.bar { display: block; height: 100%; min-width: 2px; border-radius: 0 4px 4px 0; background: color-mix(in oklab, var(--muted-foreground) 45%, var(--card)); }
.bars .is-us .bar { background: var(--brand-ink); }
.bars .is-us .bar-label { font-weight: 600; }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted-foreground); }
.progress { height: 6px; background: var(--muted); border-radius: 9999px; overflow: hidden; margin-top: 10px; }
.progress span { display: block; height: 100%; background: var(--brand-ink); transition: width .4s ease; }
.progress-card { display: block; }
.progress-card strong { margin-right: 8px; }

/* Lists and answers */
.empty h2 { margin-bottom: .8em; }
.checklist { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.checklist li.done { color: var(--muted-foreground); }
.checklist li.done::marker { color: var(--good); }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 18px; }
.filters .field { min-width: 170px; }
.answer-list { display: grid; gap: 14px; }
.answer-list .card { margin: 0; }
.answer-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.snippet { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid var(--border); color: var(--foreground); font-size: .9rem; background: var(--muted); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.snippet footer { margin-top: 4px; }
.prose { line-height: 1.7; overflow-wrap: anywhere; }
mark { padding: 0 2px; border-radius: 3px; color: inherit; }
mark.mark-us { background: var(--brand-soft); box-shadow: inset 0 -2px 0 var(--brand-ink); font-weight: 600; }
mark.mark-comp { background: var(--muted); box-shadow: inset 0 -2px 0 var(--muted-foreground); }
.legend { display: inline-flex; gap: 8px; font-size: .8rem; margin-left: auto; }
.named-list { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; font-size: .9rem; }
.named-list q { display: block; color: var(--muted-foreground); margin-top: 4px; }
.source-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .85rem; }
.source-list li { display: grid; overflow-wrap: anywhere; }
.source-list li.is-us a { font-weight: 600; }
.gap-list { list-style: none; margin: 0; padding: 0; }
.gap-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.gap-list li:last-child { border-bottom: 0; }
.gap-list li > div:first-child { display: grid; gap: 2px; min-width: 0; }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; }
.roles dt { font-weight: 600; }
.roles dd { margin: 0; color: var(--muted-foreground); font-size: .88rem; }
.plan-list { margin: 0 0 10px; padding-left: 1.2em; }

/* Help */
.help-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.help-nav { position: sticky; top: 120px; display: grid; gap: 2px; padding: 10px; }
.help-nav a { padding: 6px 10px; border-radius: var(--radius-sm); color: var(--muted-foreground); text-decoration: none; font-size: .88rem; }
.help-nav a:hover { background: var(--accent); color: var(--foreground); }
.help-body .card { scroll-margin-top: 120px; }
.help-body h3 { margin-top: 1em; }
.help-body li { margin-bottom: 4px; }

/* Footer */
.app-footer { display: flex; gap: 20px; justify-content: space-between; padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--border); font-size: .82rem; color: var(--muted-foreground); }
.app-footer a { color: var(--muted-foreground); }

/* Sign-in pages */
.auth-body { min-height: 100vh; display: grid; place-content: center; padding: 24px 16px; background: var(--muted); }
.auth-card { width: min(420px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow-md); }
.auth-logo { margin-bottom: 24px; }
.auth-logo img { height: 34px; width: auto; max-width: 220px; object-fit: contain; }
.auth-card h1 { font-size: 1.4rem; }
.auth-card .btn { width: 100%; }
.auth-foot { text-align: center; font-size: .8rem; color: var(--muted-foreground); }
.auth-foot a { color: var(--muted-foreground); }

/* Guided tour */
.tour-ring { position: fixed; z-index: 60; border-radius: var(--radius-lg); box-shadow: 0 0 0 4px var(--brand-ink), 0 0 0 9999px rgb(0 0 0 / .45); pointer-events: none; transition: all .25s ease; }
.tour-bubble { position: fixed; z-index: 61; width: min(340px, calc(100vw - 32px)); background: var(--card); color: var(--card-foreground); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 18px; }
.tour-bubble h2 { font-size: 1rem; margin-bottom: .4em; }
.tour-bubble p { font-size: .9rem; color: var(--muted-foreground); }
.tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.tour-count { font-size: .78rem; color: var(--muted-foreground); }

@media (max-width: 960px) {
  .grid-2, .grid-answer, .help-layout { grid-template-columns: 1fr; }
  .help-nav { position: static; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .field-row-4 { grid-template-columns: 1fr 1fr; }
  .roles { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .field-row, .field-row-4, .field-row-end { grid-template-columns: 1fr; }
  .ws-switch select { max-width: 140px; }
  .brand img { max-width: 110px; }
  .menu summary { max-width: 110px; }
  .card { padding: 16px; }
  .gap-list li { flex-direction: column; align-items: flex-start; }
  .app-footer { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
.notice-trial { border-color: color-mix(in oklab, var(--brand-ink) 35%, var(--border)); background: var(--brand-soft); }
.notice-warn { border-color: color-mix(in oklab, var(--warn) 45%, var(--border)); background: var(--warn-soft); }
.plan-offer { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.plan-offer .price { font-size: 1.8rem; font-weight: 600; letter-spacing: -0.03em; }
.kpi-value.small-value { font-size: 1.15rem; line-height: 1.4; }
.invite-link { font-family: var(--font-mono); overflow-wrap: anywhere; color: var(--muted-foreground); }
