@import url("../../tokens.css");

/* Company Detail v2 — global styles */

:root {
  --bg: var(--bg-canvas);
  --bg-2: var(--bg-sunken);
  --bg-3: var(--bg-pressed);
  --bg-card: var(--bg-surface);
  --ink: var(--fg-1);
  --mute: var(--fg-4);
  --dim:  var(--rd-dim);
  --rule: var(--border-subtle);
  --rule-2: var(--border-default);
  --accent-2: var(--accent-hover);
  --accent-soft: var(--accent-tint);
  --good: var(--rd-good);
  --warn: var(--rd-warn);
  --bad: var(--rd-bad);
  --gold: var(--rd-gold);
}

/* The company synth page imports the shared archive tokens directly, so keep
   the production graph palette available here as a local bridge too. */
:root {
  --rd-graph-bg:    #fffdf6;
  --rd-graph-grid:  rgba(26,24,20,.11);
  --rd-graph-edge:  rgba(26,24,20,.32);
  --rd-graph-edge-strong: var(--accent);
  --rd-graph-edge-hist:   rgba(26,24,20,.18);
  --rd-graph-node-bg:     #ffffff;
  --rd-graph-node-stroke: rgba(26,24,20,.22);
  --rd-graph-subject-bg:  var(--accent);
  --rd-graph-subject-fg:  #ffffff;
  --rd-graph-person-bg:   rgba(255,255,255,.96);
  --rd-graph-chip-bg:     #ffffff;
  --rd-graph-chip-fg:     var(--ink);
  --rd-graph-chip-edge:   rgba(26,24,20,.18);
}

:root[data-theme="dark"] {
  --rd-graph-bg:    #14110d;
  --rd-graph-grid:  rgba(245,239,225,.05);
  --rd-graph-edge:  rgba(245,239,225,.22);
  --rd-graph-edge-strong: var(--accent);
  --rd-graph-edge-hist:   rgba(245,239,225,.12);
  --rd-graph-node-bg:     #25201a;
  --rd-graph-node-stroke: rgba(245,239,225,.16);
  --rd-graph-subject-bg:  var(--accent);
  --rd-graph-subject-fg:  #1a1814;
  --rd-graph-person-bg:   rgba(37,32,26,.96);
  --rd-graph-chip-bg:     #25201a;
  --rd-graph-chip-fg:     var(--ink);
  --rd-graph-chip-edge:   rgba(245,239,225,.18);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --rd-graph-bg:    #14110d;
    --rd-graph-grid:  rgba(245,239,225,.05);
    --rd-graph-edge:  rgba(245,239,225,.22);
    --rd-graph-edge-strong: var(--accent);
    --rd-graph-edge-hist:   rgba(245,239,225,.12);
    --rd-graph-node-bg:     #25201a;
    --rd-graph-node-stroke: rgba(245,239,225,.16);
    --rd-graph-subject-bg:  var(--accent);
    --rd-graph-subject-fg:  #1a1814;
    --rd-graph-person-bg:   rgba(37,32,26,.96);
    --rd-graph-chip-bg:     #25201a;
    --rd-graph-chip-fg:     var(--ink);
    --rd-graph-chip-edge:   rgba(245,239,225,.18);
  }
}

html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font-family: inherit; cursor: pointer; background: transparent; color: inherit; border: 0; padding: 0; }
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 72%, var(--bg));
  outline-offset: 3px;
}
::selection { background: var(--accent); color: var(--white); }

.serif { font-family: var(--font-display); letter-spacing: -.025em; }
.mono { font-family: var(--font-mono); letter-spacing: .02em; }
.italic { font-style: italic; color: var(--mute); }

.kicker {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--mute);
}

h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -.025em; }
h1 { font-family: var(--font-display); font-size: clamp(60px, 9vw, 148px); line-height: .92; }
h2 { font-family: var(--font-display); font-size: clamp(32px, 3.6vw, 56px); line-height: 1.02; }
h3 { font-family: var(--font-display); font-size: clamp(22px, 1.8vw, 28px); line-height: 1.1; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; white-space: nowrap;
  border: 1px solid var(--rule-2); background: transparent; color: var(--ink);
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.btn:hover { background: rgba(26,24,20,.04); border-color: rgba(26,24,20,.32); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { background: var(--black); border-color: var(--black); }
.btn-accent { background: var(--accent); color: var(--white); border-color: var(--accent); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 22px -10px var(--rd-accent-glow); }
.btn-accent:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost { border-color: transparent; }
.btn-ghost:hover { background: rgba(26,24,20,.04); border-color: var(--rule); }
.btn-sm { padding: 6px 11px; font-size: 12px; }
.btn-lg { padding: 14px 22px; font-size: 15.5px; }
.btn-block { width: 100%; justify-content: center; }

/* ─── Pills ──────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border: 1px solid var(--rule); border-radius: 999px;
  font-size: 11.5px; color: var(--mute); white-space: nowrap;
}
.pill.mono { font-family: var(--font-mono); letter-spacing: .04em; font-size: 11px; }
.pill.good::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--good); }
.pill.warn::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--warn); }
.pill.bad::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--bad); }
.pill.accent { color: var(--accent); border-color: rgba(212,74,28,.35); background: var(--accent-soft); }
.pill.gold   { color: var(--gold); border-color: rgba(180,138,42,.40); background: rgba(180,138,42,.08); }
.pill.tier-free    { color: var(--good); border-color: rgba(10,122,64,.40); background: rgba(10,122,64,.06); }
.pill.tier-audit   { color: var(--accent); border-color: rgba(212,74,28,.40); background: var(--accent-soft); }
.pill.tier-pro     { color: var(--gold); border-color: rgba(180,138,42,.40); background: rgba(180,138,42,.08); }

/* ─── Cards ──────────────────────────────────────────────────── */
.card { background: var(--bg-card); border: 1px solid var(--rule); border-radius: 16px; }

/* ─── Workspace layout ───────────────────────────────────────── */
.shell {
  display: grid;
  grid-template-columns: 200px 1fr 340px;
  gap: 32px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 28px;
}
.rail   { grid-column: 1; }
.main   { grid-column: 2; min-width: 0; }
.aside  { grid-column: 3; }

/* Synth layout drops the right aside; mission-control actions live in the
   sticky topbar. Wider main column = more breathing room for cards. */
.shell--synth {
  grid-template-columns: 200px minmax(0, 1fr);
  max-width: 1240px;
}
.shell--synth .aside { display: none; }

/* v4: drop the left rail too — single content column, ~1080px max. The user
   pointed out that the vertical anchor menu took space without paying off on
   a page that's already short enough to scroll. */
.shell--synth-norail {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1080px;
}
.shell--synth-norail .rail,
.shell--synth-norail .aside { display: none; }
.shell--synth-norail .main { grid-column: 1; min-width: 0; }

@media (max-width: 1200px) {
  .shell { grid-template-columns: 1fr 320px; gap: 24px; }
  .rail { display: none; }
  .main { grid-column: 1; }
  .aside { grid-column: 2; }
  .shell--synth { grid-template-columns: 1fr; }
  .shell--synth .main { grid-column: 1; }
  .shell--synth-norail {
    grid-template-columns: minmax(0, 1fr);
    max-width: 1080px;
  }
  .shell--synth-norail .main {
    grid-column: 1;
    min-width: 0;
  }
  .shell--synth-norail .aside {
    display: none;
  }
}
@media (max-width: 880px) {
  .shell { grid-template-columns: 1fr; }
  .aside { grid-column: 1; }
}

/* ─── Top bar (slim) ─────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,240,.86);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.topbar-row { display: flex; align-items: center; gap: 18px; padding: 12px 28px; max-width: 1480px; margin: 0 auto; }
.brand-mark { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; }
.brand-lockup { gap: 10px; min-width: max-content; }
.brand-logo-mark { display: block; width: 28px; height: 28px; flex: 0 0 28px; object-fit: contain; }
.brand-logo-wordmark { display: block; width: 124px; height: auto; flex: 0 0 auto; }
.brand-logo-wordmark--dark { display: none; }
:root[data-theme="dark"] .brand-logo-wordmark--light { display: none; }
:root[data-theme="dark"] .brand-logo-wordmark--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo-wordmark--light { display: none; }
  :root:not([data-theme="light"]) .brand-logo-wordmark--dark { display: block; }
}
.brand-mark .dot { color: var(--accent); }
.topbar input.searchin {
  flex: 1; max-width: 480px;
  background: rgba(26,24,20,.04);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 8px 14px; font-size: 13px; color: var(--ink); outline: none;
}
.topbar input.searchin::placeholder { color: var(--mute); }

/* ─── Rail (left anchor nav) ────────────────────────────────── */
.rail-sticky {
  position: sticky; top: 78px;
  padding: 28px 0;
}
.rail .group { margin-bottom: 22px; }
.rail .group-title { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.rail a.anchor {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 0; font-size: 13.5px; color: var(--mute);
  border-left: 2px solid transparent; padding-left: 12px; margin-left: -2px;
}
.rail a.anchor:hover { color: var(--ink); border-left-color: var(--rule-2); }
.rail a.anchor.active { color: var(--ink); border-left-color: var(--accent); font-weight: 500; }
.rail a.anchor .lockicon { color: var(--dim); font-size: 10px; }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--rule);
}
.hero .breadcrumb {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--mute); margin-bottom: 22px;
}
.hero .breadcrumb .sep { color: var(--dim); }
.hero h1 { margin-bottom: 18px; }
.hero h1 .place { font-style: italic; color: var(--mute); font-weight: 300; font-size: .42em; margin-left: 22px; letter-spacing: -.02em; }

.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: end; }
@media (max-width: 1080px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-meta { display: flex; flex-direction: column; gap: 18px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-address {
  display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--mute);
  border-top: 1px dashed var(--rule); padding-top: 16px;
}
.hero-address strong { font-weight: 500; color: var(--ink); }

/* score chip in hero */
.hero-score {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 22px;
  background: var(--bg-card);
  border: 1px solid var(--rule); border-radius: 16px;
}
.hero-score .ring { width: 56px; height: 56px; position: relative; }
.hero-score .num  { font-family: var(--font-display); font-size: 38px; line-height: 1; }
.hero-score .lbl  { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.hero-score .sub  { font-size: 12px; color: var(--mute); margin-top: 4px; }

/* ─── At-a-glance bar ─────────────────────────────────────── */
.atbar {
  display: grid; grid-template-columns: repeat(6, 1fr);
  margin: 28px 0 0; padding: 0;
  border: 1px solid var(--rule); border-radius: 16px;
  background: var(--bg-card);
  overflow: hidden;
}
.atbar > div { padding: 18px 18px; border-right: 1px solid var(--rule); }
.atbar > div:last-child { border-right: 0; }
.atbar .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .10em; color: var(--mute); text-transform: uppercase; margin-bottom: 6px; }
.atbar .val { font-size: 15px; font-weight: 500; }
.atbar .val.mono { font-family: var(--font-mono); letter-spacing: .02em; font-weight: 400; font-size: 14.5px; }

@media (max-width: 880px) {
  .atbar { grid-template-columns: repeat(2, 1fr); }
  .atbar > div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .atbar > div:nth-child(2n) { border-right: 0; }
}

/* ─── Section ──────────────────────────────────────────────── */
.section { padding: 44px 0 12px; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.section-head .kicker { color: var(--accent); }
.section-head .ln { flex: 1; height: 1px; background: var(--rule); }
.section-head .extra { font-family: var(--font-mono); font-size: 10.5px; color: var(--mute); letter-spacing: .04em; }
.lens-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  min-width: min(100%, 520px);
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-card) 78%, var(--bg-2));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--paper) 45%, transparent);
}
.lens-bar button {
  min-width: 0;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--mute);
  padding: 8px 10px;
  font: 500 12.5px/1.1 var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.lens-bar .ic {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  overflow: visible;
}
.lens-bar button:hover {
  color: var(--ink);
  border-color: var(--rule);
  background: color-mix(in srgb, var(--bg-card) 88%, var(--bg-2));
}
.lens-bar button.is-active {
  color: var(--bg);
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: 0 8px 18px -12px color-mix(in srgb, var(--ink) 70%, transparent);
}
.lens-bar button:active { transform: translateY(1px); }

/* ─── Locked teaser overlay (UNLOCKED for design preview) ───
   Same rationale as detail-v2/styles.css — show full content
   while comparing layouts. Paywall re-enabled when monetisation
   ships. */
.locked { position: relative; }
.locked .veil,
.locked .cta-overlay { display: none !important; }
.locked .blurchild { filter: none !important; opacity: 1 !important; user-select: auto !important; }

/* ─── Audit CTA big section ──────────────────────────────── */
.audit-cta {
  margin: 56px 0 16px;
  background: linear-gradient(135deg, var(--rd-dark-bg) 0%, var(--rd-dark-bg-2) 100%);
  color: var(--rd-dark-ink);
  border-radius: 22px;
  padding: 56px 56px;
  position: relative; overflow: hidden;
}
.audit-cta::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(212,74,28,.35), transparent 60%);
  pointer-events: none;
}
.audit-cta h2 { color: var(--rd-dark-ink); }
.audit-cta h2 em { color: var(--rd-accent-warm); font-style: italic; }
.audit-cta .lead { color: var(--rd-dark-mute); font-size: 16px; max-width: 620px; line-height: 1.55; margin-top: 14px; }
.audit-cta .grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 24px; margin: 36px 0 32px;
  border-top: 1px solid var(--rd-dark-rule);
  padding-top: 36px;
}
.audit-cta .grid .item .kicker { color: var(--rd-accent-warm); }
.audit-cta .grid .item .what { font-family: var(--font-display); font-size: 22px; margin: 10px 0 6px; letter-spacing: -.02em; }
.audit-cta .grid .item .desc { color: var(--rd-dark-mute); font-size: 13.5px; line-height: 1.55; }
.audit-cta .actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.audit-cta .price { font-family: var(--font-display); font-size: 36px; letter-spacing: -.02em; }
.audit-cta .price .unit { font-size: 14px; color: var(--rd-dark-mute); margin-left: 6px; font-family: var(--font-mono); }
.audit-cta .price-note { color: var(--rd-dark-mute); font-size: 12.5px; font-family: var(--font-mono); letter-spacing: .04em; }
.audit-cta .btn-accent { background: var(--rd-accent-warm); border-color: var(--rd-accent-warm); color: var(--rd-dark-bg); box-shadow: var(--rd-shadow-glow-warm); }
.audit-cta .btn-accent:hover { background: color-mix(in srgb, var(--rd-accent-warm) 86%, var(--white)); border-color: color-mix(in srgb, var(--rd-accent-warm) 86%, var(--white)); }
.audit-cta .btn-ghost { color: var(--rd-dark-ink); border-color: var(--rd-dark-rule); }
.audit-cta .btn-ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(245,239,225,.40); }

@media (max-width: 760px) {
  .audit-cta { padding: 36px 28px; }
  .audit-cta .grid { grid-template-columns: 1fr; gap: 18px; padding-top: 24px; }
}

/* ─── Pricing strip ────────────────────────────────────────── */
.pricing { margin: 56px 0 28px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan { padding: 28px; border: 1px solid var(--rule); border-radius: 16px; background: var(--bg-card); display: flex; flex-direction: column; gap: 14px; }
.plan.featured { background: var(--rd-dark-bg); color: var(--rd-dark-ink); border-color: var(--rd-dark-bg); }
.plan.featured h3 { color: var(--rd-dark-ink); }
.plan.featured .price { color: var(--rd-accent-warm); }
.plan h3 { font-family: var(--font-display); font-size: 26px; }
.plan .price { font-family: var(--font-display); font-size: 44px; letter-spacing: -.02em; line-height: 1; }
.plan .price .unit { font-size: 13px; color: var(--mute); margin-left: 6px; font-family: var(--font-mono); }
.plan.featured .price .unit { color: rgba(245,239,225,.55); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.plan ul li { font-size: 13.5px; display: flex; gap: 8px; line-height: 1.45; }
.plan ul li::before { content: '·'; color: var(--accent); font-weight: 600; }
.plan.featured ul li::before { color: var(--rd-accent-warm); }

/* ─── Mission Control (right aside) ────────────────────────── */
.mission-sticky {
  position: sticky; top: 78px;
  padding: 28px 0;
  display: flex; flex-direction: column; gap: 14px;
}
.mc-card { background: var(--bg-card); border: 1px solid var(--rule); border-radius: 16px; padding: 18px; }
.mc-card.primary {
  background: linear-gradient(180deg, var(--rd-dark-bg) 0%, var(--rd-dark-bg-2) 100%);
  color: var(--rd-dark-ink); border-color: var(--rd-dark-bg); padding: 22px;
}
.mc-card.primary h4 { color: var(--rd-dark-ink); font-family: var(--font-display); font-size: 22px; margin: 6px 0 4px; }
.mc-card.primary .lead { color: var(--rd-dark-mute); font-size: 12.5px; line-height: 1.5; }
.mc-card .head { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.mc-card.primary .head { color: var(--rd-accent-warm); }
.mc-card .priceline { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 14px; }
.mc-card .priceline .n { font-family: var(--font-display); font-size: 34px; line-height: 1; }
.mc-card .priceline .u { font-family: var(--font-mono); font-size: 12px; color: rgba(245,239,225,.55); }
.mc-card .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px dashed var(--rule); font-size: 13px; }
.mc-card .row:first-of-type { border-top: 0; padding-top: 0; }
.mc-card .row .lbl { color: var(--mute); }

/* ─── Free vs locked badge inline ──────────────────────────── */
.tier-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.tier-tag.free  { color: var(--good); background: rgba(10,122,64,.08); }
.tier-tag.audit { color: var(--accent); background: var(--accent-soft); }
.tier-tag.audit-result {
  color: var(--accent);
  border: 1px solid rgba(212,74,28,.28);
  background:
    linear-gradient(135deg, rgba(212,74,28,.12), rgba(236,122,77,.06)),
    var(--bg-card);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
}
.tier-tag.pro   { color: var(--gold); background: rgba(180,138,42,.08); }

/* ─── Public audit result ──────────────────────────────────── */
.public-audit-card {
  padding: 28px;
  background:
    radial-gradient(circle at 92% 12%, rgba(212,74,28,.12), transparent 34%),
    linear-gradient(135deg, rgba(212,74,28,.045), transparent 42%),
    var(--bg-card);
}
.public-audit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .9fr);
  gap: 28px;
  align-items: start;
}
.public-audit-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.public-audit-copy h3 {
  margin: 10px 0 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.06;
}
.public-audit-lead {
  margin: 0;
  max-width: 72ch;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.66;
}
.public-audit-more {
  position: relative;
  max-height: 168px;
  margin-top: 18px;
  overflow: hidden;
  transition: max-height .28s ease;
}
.public-audit-more:not(.is-open)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 46px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--bg-card));
  pointer-events: none;
}
.public-audit-more.is-open {
  max-height: 1100px;
}
.public-audit-subsection {
  padding-top: 16px;
  border-top: 1px dashed var(--rule);
}
.public-audit-subsection + .public-audit-subsection {
  margin-top: 14px;
}
.public-audit-subsection h4 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.public-audit-subsection ul,
.public-audit-fact ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.public-audit-subsection li,
.public-audit-fact li {
  position: relative;
  padding-left: 15px;
  color: var(--fg);
  font-size: 13.5px;
  line-height: 1.55;
}
.public-audit-subsection li::before,
.public-audit-fact li::before {
  content: "";
  position: absolute;
  top: .72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}
.public-audit-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(212,74,28,.28);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.public-audit-toggle:hover,
.public-audit-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(212,74,28,.42);
  background: rgba(212,74,28,.12);
  outline: none;
}
.public-audit-side {
  display: grid;
  gap: 14px;
}
.public-audit-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.38);
}
.public-audit-kpi {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--rule);
}
.public-audit-kpi:nth-child(2n) {
  border-right: 0;
}
.public-audit-kpi .kicker {
  margin-bottom: 9px;
  font-size: 10.5px;
}
.public-audit-kpi-value {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 38px;
  letter-spacing: 0;
  line-height: 1;
}
.public-audit-kpi-value span {
  margin-left: 4px;
  color: var(--mute);
  font-family: var(--font-body);
  font-size: 14px;
}
.public-audit-kpi-delta {
  margin-top: 7px;
  font-size: 11.5px;
}
.public-audit-kpi-note {
  margin-top: 6px;
  color: var(--mute);
  font-size: 10.5px;
  line-height: 1.35;
}
.public-audit-fact {
  padding: 18px;
  border: 1px solid rgba(212,74,28,.20);
  border-radius: 14px;
  background: var(--accent-soft);
}
.public-audit-fact .kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 10.5px;
}
@media (max-width: 880px) {
  .public-audit-card {
    padding: 22px;
  }
  .public-audit-grid {
    grid-template-columns: 1fr;
  }
  .public-audit-kpis {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .public-audit-kpis {
    grid-template-columns: 1fr;
  }
  .public-audit-kpi {
    border-right: 0;
    border-top: 1px solid var(--rule);
  }
  .public-audit-kpi:first-child {
    border-top: 0;
  }
}

/* ─── KV row ───────────────────────────────────────────────── */
.kv {
  display: grid; grid-template-columns: 200px 1fr auto; gap: 24px;
  padding: 14px 0; border-bottom: 1px dashed var(--rule); align-items: baseline;
}
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--mute); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }
.kv .v { font-size: 14.5px; line-height: 1.45; }
.kv .s { font-family: var(--font-mono); font-size: 10.5px; color: var(--dim); letter-spacing: .04em; }

/* ─── Person row (reused) ──────────────────────────────────── */
.prow {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 0; border-top: 1px solid var(--rule);
}
.prow:first-child { border-top: 0; }
.av {
  width: 44px; height: 44px; border-radius: 999px;
  background: linear-gradient(135deg, var(--bg-sunken), var(--bg-pressed));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 18px;
  border: 1px solid var(--rule);
}

/* ─── AI Dock ─────────────────────────────────────────────── */
.dock-wrap { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; pointer-events: none; }
.dock {
  pointer-events: auto;
  max-width: 720px; margin: 0 auto 24px; padding: 0 16px;
}

/* Animated glowing ring around the dock — conic gradient rotating slowly.
   Uses @property to animate the angle (Chrome/Safari/FF support). The white
   pill sits on top of the gradient inside .dock-glow's padding cavity. */
@property --dock-ang {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.dock-glow {
  position: relative;
  border-radius: 20px;
  padding: 1.5px;          /* thinner stroke per feedback */
  background:
    conic-gradient(
      from var(--dock-ang),
      var(--accent),
      var(--cinnabar-dark),
      var(--gold),
      var(--good),
      var(--cinnabar-dark),
      var(--accent)
    );
  /* Pulse-pause-pulse: one quick rotation with sharp ease, then long rest. */
  animation: dock-pulse 5.4s cubic-bezier(.6, 0, .2, 1) infinite;
  transition: padding .25s ease, filter .25s ease;
  filter: brightness(1.08) saturate(1.15);  /* vivid colors by default */
}
.dock--active .dock-glow,
.dock-glow:focus-within { animation-play-state: paused; }
.dock-glow::after {
  /* soft halo glow underneath */
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: inherit;
  filter: blur(18px);
  opacity: .35;
  z-index: -1;
  pointer-events: none;
  animation: dock-hue 7s linear infinite;
}
.dock-glow:focus-within {
  padding: 2.5px;          /* subtle thickening on focus, still slim */
  filter: brightness(1.15) saturate(1.25);
}
.dock-glow:focus-within::after { opacity: .55; }

@keyframes dock-hue {
  to { --dock-ang: 360deg; }
}

/* Quick burst rotation (0–28% of timeline), then 72% rest at the destination
   angle. The sharp ease + long hold pattern feels intentional rather than the
   old constant-linear hum. */
@keyframes dock-pulse {
  0%   { --dock-ang: 0deg; }
  28%  { --dock-ang: 360deg; }
  100% { --dock-ang: 360deg; }
}

.dock-inner {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(26,24,20,.18), 0 1px 0 rgba(255,255,255,.6) inset;
  padding: 12px 12px 12px 18px;
  display: flex; align-items: center; gap: 12px;
}
.dock-inner input { flex: 1; background: transparent; border: 0; outline: none; color: var(--ink); font-size: 14.5px; font-family: inherit; padding: 6px 0; }
.dock-inner input::placeholder { color: var(--mute); }
.dock-minimize {
  display: none;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--mute);
  font: 700 18px/1 var(--font-sans);
  cursor: pointer;
}
.dock-minimize:hover {
  border-color: var(--accent);
  color: var(--ink);
  background: rgba(212,74,28,.08);
}
.dock-credits { font-family: var(--font-mono); font-size: 11px; color: var(--mute); padding: 4px 10px; border: 1px solid var(--rule); border-radius: 999px; }
.dock-credits b { color: var(--ink); font-weight: 500; }

@media (max-width: 1024px) {
  .dock-minimize { display: inline-flex; }
  .dock.dock--collapsed {
    width: 56px;
    max-width: 56px;
    height: 56px;
    margin: 0 calc(14px + env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) auto;
    padding: 0;
  }
  .dock.dock--collapsed .dock-glow {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    padding: 1.5px;
  }
  .dock.dock--collapsed .dock-inner {
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 0;
    border-radius: 999px;
    justify-content: center;
  }
  .dock.dock--collapsed .dock-inner svg { width: 20px; height: 20px; }
  .dock.dock--collapsed .dock-inner input,
  .dock.dock--collapsed .dock-inner .btn,
  .dock.dock--collapsed .dock-minimize,
  .dock.dock--collapsed .dock-bubbles {
    display: none;
  }
}

/* Suggestion bubbles above the dock — staggered fade-up on focus */
.dock-bubbles {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 4px; right: 4px;
  display: flex; gap: 8px; flex-wrap: wrap;
  pointer-events: auto;
}
.dock-bubble {
  font-size: 12.5px;
  padding: 8px 14px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  color: var(--mute);
  font-family: inherit;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 4px 14px -6px rgba(26,24,20,.18);
  opacity: 0; transform: translateY(6px);
  animation: bubble-in .35s ease both;
  transition: color .15s ease, border-color .15s ease, transform .15s ease, background .15s ease;
}
.dock-bubble:nth-child(1) { animation-delay: .04s; }
.dock-bubble:nth-child(2) { animation-delay: .10s; }
.dock-bubble:nth-child(3) { animation-delay: .16s; }
.dock-bubble:nth-child(4) { animation-delay: .22s; }
.dock-bubble:nth-child(5) { animation-delay: .28s; }
.dock-bubble:nth-child(6) { animation-delay: .34s; }
.dock-bubble:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--bg-card);
  transform: translateY(-2px);
}
.dock-bubble .ic { color: var(--accent); }
@keyframes bubble-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── small icons ─────────────────────────────────────────── */
svg.ic { flex-shrink: 0; }

/* ─── Footer ───────────────────────────────────────────────── */
footer.foot {
  margin-top: 96px; padding: 36px 28px 120px;
  border-top: 1px solid var(--rule);
  font-size: 12.5px; color: var(--mute);
}
footer.foot .frow { display: flex; gap: 18px; flex-wrap: wrap; max-width: 1480px; margin: 0 auto; }
footer.foot .frow .sp { flex: 1; }

/* ════════════════════════════════════════════════════════════ */
/* ─── MICRO-INTERACTIONS ─────────────────────────────────────── */
/* ════════════════════════════════════════════════════════════ */

/* keyframes */
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: .82; }
}
@keyframes pulseRing {
  0% { transform: scale(.85); opacity: .55; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes shimmer-x {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(110%); }
}
@keyframes glow-accent {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,74,28,.45), 0 8px 22px -10px rgba(212,74,28,.55); }
  50%      { box-shadow: 0 0 0 6px rgba(212,74,28,0), 0 12px 28px -10px rgba(212,74,28,.75); }
}
@keyframes glow-amber {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,138,74,.45), 0 12px 30px -10px rgba(255,138,74,.5); }
  50%      { box-shadow: 0 0 0 8px rgba(255,138,74,0), 0 16px 38px -10px rgba(255,138,74,.8); }
}
@keyframes ringDraw {
  from { stroke-dashoffset: 1000; }
  to   { stroke-dashoffset: var(--ring-dest, 0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dotProgress {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(140%); }
}
@keyframes tagPop {
  0% { transform: scale(.9); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes topbarReveal {
  from {
    opacity: .92;
    transform: translateY(calc(-1 * var(--topbar-main-h)));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes finding01 {
  0%, 100% { background: transparent; }
  20%      { background: rgba(212,74,28,.10); }
}

/* ── Spark icon breathing ── */
svg.ic, .ai-breathe svg {
  transition: transform .25s ease;
}
.brand-mark svg,
.mc-card.primary .head + h4 ~ * svg,
.hero-score + * svg {
  animation: breathe 4.2s ease-in-out infinite;
  transform-origin: center;
}

/* ── Cards hover lift ── */
.card { transition: border-color .18s ease, box-shadow .18s ease; }

.plan { transition: border-color .22s ease, box-shadow .22s ease; }

/* ── Mission Control cards ── */
.mc-card { transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.mc-card.primary {
  position: relative; overflow: hidden;
}
.mc-card.primary::after {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,138,74,.30), transparent 65%);
  animation: breathe 5s ease-in-out infinite;
  pointer-events: none;
}

/* ── Primary audit CTA button (Mission Control) — glow pulse ── */
.mc-card.primary .btn-accent {
  position: relative;
  animation: glow-amber 3.2s ease-in-out infinite;
}
.mc-card.primary .btn-accent::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%);
  transform: translateX(-110%);
  animation: shimmer-x 3.8s ease-in-out infinite 1.2s;
  pointer-events: none;
}
.mc-card.primary .btn-accent { overflow: hidden; }

/* ── Audit CTA section button glow ── */
.audit-cta .btn-accent { animation: glow-amber 3.5s ease-in-out infinite; position: relative; overflow: hidden; }
.audit-cta .btn-accent::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-110%);
  animation: shimmer-x 4s ease-in-out infinite 1.5s;
  pointer-events: none;
}

/* ── General accent button hover ── */
.btn-accent { position: relative; overflow: hidden; }
.btn-accent::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%);
  transform: translateX(-110%);
  transition: transform .55s ease;
  pointer-events: none;
}
.btn-accent:hover::after { transform: translateX(110%); }

/* ── btn arrow slide ── */
.btn .ic { transition: transform .2s ease; }
.btn:hover .ic { transform: translateX(2px); }

/* ── Person rows ── */
.prow {
  transition: background .18s ease, padding .18s ease;
  margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 10px;
  border-top: 0 !important; position: relative;
}
.prow::before {
  content: ''; position: absolute; left: 12px; right: 12px; top: 0; height: 1px;
  background: var(--rule);
}
.prow:first-child::before { display: none; }
.prow .btn-sm { transition: transform .2s ease, background .18s ease; }

/* ── Rail anchor active indicator ── */
.rail a.anchor { transition: color .15s ease, padding-left .2s ease; position: relative; }
.rail a.anchor.active { padding-left: 16px; }
.rail a.anchor::before {
  content: ''; position: absolute; left: -2px; top: 50%; transform: translateY(-50%);
  width: 2px; height: 0; background: var(--accent);
  transition: height .22s ease;
}
.rail a.anchor.active::before { height: 22px; }
.rail a.anchor:hover { transform: translateX(1px); }

/* ── At-a-glance bar ── */
.atbar > div { transition: background .15s ease; }
.atbar .val, .atbar .lbl { animation: fadeUp .45s ease both; }
.atbar > div:nth-child(1) .val { animation-delay: .05s; }
.atbar > div:nth-child(2) .val { animation-delay: .10s; }
.atbar > div:nth-child(3) .val { animation-delay: .15s; }
.atbar > div:nth-child(4) .val { animation-delay: .20s; }
.atbar > div:nth-child(5) .val { animation-delay: .25s; }
.atbar > div:nth-child(6) .val { animation-delay: .30s; }

/* ── Hero pills entrance ── */
.hero-pills .pill { animation: tagPop .4s cubic-bezier(.5,1.4,.6,1) both; }
.hero-pills .pill:nth-child(1) { animation-delay: .05s; }
.hero-pills .pill:nth-child(2) { animation-delay: .10s; }
.hero-pills .pill:nth-child(3) { animation-delay: .15s; }
.hero-pills .pill:nth-child(4) { animation-delay: .20s; }
.hero-pills .pill:nth-child(5) { animation-delay: .25s; }

/* ── Score ring entrance ── */
.hero-score .ring circle:nth-child(2) {
  stroke-dasharray: 1000;
  animation: ringDraw 1.2s cubic-bezier(.4,.8,.3,1) forwards .25s;
}

/* ── Tier tag pop ── */
.tier-tag { animation: tagPop .4s cubic-bezier(.5,1.4,.6,1) both; transform-origin: left center; }

/* ── Section head reveal on scroll into view ── */
.section { animation: slideIn .45s ease both; }

/* ── Locked sections: hover deepens veil and pops CTA ── */
.locked { transition: border-color .2s ease; }
.locked .veil { transition: opacity .25s ease; }
.locked .cta-overlay { transition: transform .25s ease; }
.locked .cta-overlay .btn-accent { animation: glow-accent 3s ease-in-out infinite; }

/* ── AI brief: finding #01 shimmer once ── */
@keyframes findingFlash {
  0% { background: rgba(212,74,28,.12); }
  100% { background: transparent; }
}
.locked .blurchild { transition: filter .25s ease; }

/* ── Sparkle in finding #01 ── */
.section .card.locked > div[style*="grid-template-columns: 32px"]:first-of-type {
  border-radius: 8px;
  animation: findingFlash 1.6s ease 1s 1 both;
}

/* ── Dock input focus ring expansion ── */
.dock-inner { transition: border-color .2s ease, box-shadow .25s ease; }
.dock-inner:focus-within {
  border-color: rgba(212,74,28,.40);
  box-shadow: 0 30px 80px -20px rgba(26,24,20,.22),
              0 0 0 4px rgba(212,74,28,.10),
              0 1px 0 rgba(255,255,255,.6) inset;
}
.dock-inner:focus-within > svg { animation: breathe 1.6s ease-in-out infinite; }

/* ── Dock suggestion chips slide in ── */
.dock > div[style*="bottom: calc"] button {
  animation: slideIn .25s ease both;
}
.dock > div[style*="bottom: calc"] button:nth-child(1) { animation-delay: 0s; }
.dock > div[style*="bottom: calc"] button:nth-child(2) { animation-delay: .04s; }
.dock > div[style*="bottom: calc"] button:nth-child(3) { animation-delay: .08s; }
.dock > div[style*="bottom: calc"] button:nth-child(4) { animation-delay: .12s; }
.dock > div[style*="bottom: calc"] button:hover { color: var(--ink); border-color: var(--rule-2); transform: translateY(-1px); }
.dock > div[style*="bottom: calc"] button { transition: transform .15s ease, color .15s ease, border-color .15s ease; }

/* ── Mission Control: audit-running state ── */
.mc-card.primary.running .btn-accent { animation: none; pointer-events: none; opacity: .85; }
.mc-card.primary .progress {
  position: relative;
  height: 4px; border-radius: 2px;
  background: rgba(255,255,255,.10);
  overflow: hidden;
  margin: 10px 0 4px;
}
.mc-card.primary .progress::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--cinnabar-dark) 50%, transparent);
  animation: dotProgress 1.4s linear infinite;
}
.mc-card.primary .running-label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--cinnabar-dark); letter-spacing: .04em;
}
.mc-card.primary .running-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 999px;
  background: var(--cinnabar-dark); margin-right: 6px;
  animation: breathe 1s ease-in-out infinite;
}

/* ── Hero subtle entrance ── */
.hero h1 { animation: slideIn .55s ease both .1s; }
.hero .breadcrumb { animation: slideIn .45s ease both; }
.hero-address { animation: slideIn .45s ease both .2s; }
.hero-score { animation: slideIn .55s ease both .2s; }

/* ── Top bar credit counter hover ── */
.topbar .pill.mono { transition: border-color .15s ease; }

/* ── Score chip ring count-up support ── */
.hero-score .num .countup {
  display: inline-block; min-width: 2.2ch; text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ── Pricing featured ribbon hover ── */
.plan.featured { position: relative; overflow: hidden; }
.plan.featured::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,138,74,.22), transparent 65%);
  pointer-events: none; transition: transform .6s ease;
}

/* ── reduce motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .topbar--synth {
    transition: transform 160ms ease-out !important;
  }
  .topbar--synth.topbar--revealing {
    animation: none !important;
  }
}

/* ════════════════════════════════════════════════════════════ */
/* ─── V4 MOBILE / RESPONSIVE — scoped to v4 wrappers only ───── */
/* ════════════════════════════════════════════════════════════ */

/* AI Brief grid — desktop 1fr + 320px sidecard, collapses to single col */
.brief-grid { grid-template-columns: 1fr 320px; }
@media (max-width: 880px) {
  .brief-grid { grid-template-columns: 1fr; gap: 18px !important; }
}

@media (min-width: 881px) and (max-width: 1200px) {
  .shell--synth-norail .section-head {
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
  }
  .shell--synth-norail .lens-bar {
    min-width: 0;
    width: min(100%, 520px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shell--synth-norail .lens-bar button {
    min-height: 40px;
    padding: 8px 10px;
  }
}

/* Tablet (≤880) — global cleanup for v4 */
@media (max-width: 880px) {
  .shell--synth-norail { padding: 0 20px; }
  .shell--synth-norail .atbar { grid-template-columns: repeat(2, 1fr); }
  .shell--synth-norail .atbar > div:nth-child(2n) { border-right: 0; }
  .shell--synth-norail .atbar > div:nth-last-child(-n+2) { border-bottom: 0; }
  .hero { padding: 32px 0 28px; }
  .hero h1 .place { display: block; margin-left: 0; margin-top: 6px; font-size: .55em; }
  .section { padding: 32px 0 8px; }
  .audit-cta { padding: 40px 32px; margin: 40px 0 12px; }

  /* KV: stack key over value */
  .shell--synth-norail .kv {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 0;
  }
  .shell--synth-norail .kv .s { justify-self: start; }

  /* Person row stays a row but tighter */
  .shell--synth-norail .prow { gap: 10px; padding: 10px 8px; }

  /* Topbar wraps as soon as it has to (tablet portrait + below) */
  .topbar--synth .topbar-row {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 20px;
  }
  .topbar--synth .topbar-row > .brand-mark { flex: 0 0 auto; }
  .topbar--synth .topbar-row > input.searchin {
    order: 99;
    flex: 1 1 100%;
    max-width: none;
    margin-top: 2px;
  }
  /* Vertical-divider span gets in the way of a wrapped row */
  .topbar--synth .topbar-row > span[style*="width: 1px"] { display: none; }
  .topbar--synth .topbar-row > .btn-sm { font-size: 12.5px; padding: 6px 11px; }

  /* Lens-bar wraps inside section-head; section-head also wraps */
  .shell--synth-norail .section-head { flex-wrap: wrap; gap: 8px 10px; }
  .shell--synth-norail .lens-bar {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shell--synth-norail .lens-bar button {
    font-size: 12.5px !important;
    padding: 8px 10px !important;
  }
}

/* Mobile (≤640) — narrow phones */
@media (max-width: 640px) {
  .shell--synth-norail { padding: 0 14px; gap: 0; }

  .topbar--synth .topbar-row { padding: 10px 14px; }
  /* Hide secondary watch/compare on phone screens (audit + topup remain) */
  .topbar--synth .topbar-row > button[title="Sledovat změny v profilu"],
  .topbar--synth .topbar-row > button[title="Porovnat s jinou firmou"] { display: none; }
  .topbar--synth .topbar-row > .btn-sm { font-size: 11.5px; padding: 6px 10px; }

  /* Section-head decorative line hides; lens-bar takes full width */
  .shell--synth-norail .section-head .ln { display: none; }
  .shell--synth-norail .lens-bar { flex: 1 1 100%; }
  .shell--synth-norail .lens-bar button {
    font-size: 12px !important;
    padding: 8px 9px !important;
  }

  /* Hero sizing */
  .hero { padding: 24px 0 22px; }
  .hero .breadcrumb { margin-bottom: 16px; font-size: 11.5px; }
  .hero h1 { margin-bottom: 14px; }

  /* Audit CTA: tighten radius + padding + headline */
  .audit-cta {
    padding: 28px 20px;
    border-radius: 18px;
    margin: 32px 0 8px;
  }
  .audit-cta h2 { font-size: clamp(26px, 7vw, 36px); }
  .audit-cta .lead { font-size: 14.5px; margin-top: 12px; }
  .audit-cta .grid { gap: 14px; margin: 24px 0 22px; padding-top: 24px; }
  .audit-cta .grid .item .what { font-size: 18px; }
  .audit-cta .actions { gap: 10px; }
  .audit-cta .price { font-size: 30px; }

  /* Pricing plan padding */
  .plan { padding: 22px; }
  .plan h3 { font-size: 22px; }
  .plan .price { font-size: 36px; }

  /* Card with hard-coded body padding too generous on phone */
  .shell--synth-norail .card { border-radius: 14px; }

  /* Person rows: keep the profile action inside the card on phone widths. */
  .shell--synth-norail .prow {
    grid-template-columns: 44px minmax(0, 1fr) !important;
    align-items: start;
  }
  .shell--synth-norail .prow > * { min-width: 0; }
  .shell--synth-norail .prow > .btn-sm {
    grid-column: 2;
    justify-self: start;
    width: fit-content;
    max-width: 100%;
  }

  /* Shared v2-* component inline grids that don't accept className —
     scope by parent so v3 keeps its desktop layout. */
  .shell--synth-norail [style*="grid-template-columns: 1fr 100px 60px 80px"],
  .shell--synth-norail [style*="grid-template-columns: 160px 1fr 120px"],
  .shell--synth-norail [style*="grid-template-columns: 100px 1fr auto"] {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }
  /* repeat(4,1fr) → 2 cols on phone (keeps some grid feel without crushing) */
  .shell--synth-norail [style*="repeat(4,1fr)"],
  .shell--synth-norail [style*="repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* repeat(3,1fr) inside v4 (audit-cta uses its own; finance summary) */
  .shell--synth-norail [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  /* Brief inner score breakdown row 1fr 80px 50px — still fits, leave it */

  /* Hero pills + chips wrap aggressively */
  .hero-pills .pill { font-size: 10.5px; padding: 3px 8px; }

  /* Score tile 168px ring + 1fr breakdown — let breakdown stack below ring */
  .shell--synth-norail [style*="grid-template-columns: 168px 1fr"] {
    grid-template-columns: 1fr !important;
    justify-items: start;
  }

  /* AI Dock: tighter padding so it fits the phone */
  .dock { padding: 0 10px; margin-bottom: 14px; }
  .dock-inner { padding: 10px 10px 10px 14px; gap: 8px; }
  .dock-credits { display: none; } /* free a bit of horizontal room */

  /* Footer collapse */
  footer.foot { padding: 28px 16px 100px; }
}

/* Very narrow (≤380) — iPhone SE / mini territory */
@media (max-width: 380px) {
  .shell--synth-norail { padding: 0 12px; }
  .topbar--synth .topbar-row { padding: 10px 12px; }
  .audit-cta { padding: 24px 16px; }
  .plan { padding: 18px; }
}

/* ════════════════════════════════════════════════════════════ */
/* ─── V4 STRUCTURAL OVERRIDES (after-feedback batch) ─────────── */
/* ════════════════════════════════════════════════════════════ */

/* Hide breadcrumb in v4 (still rendered for v3) */
.shell--synth-norail .breadcrumb { display: none !important; }

/* Hide duplicate Vlastnická struktura inside ContentV2 — OwnershipTile
   above already covers it as a top-of-page feature card. */
.shell--synth-norail section#vlastnictvi { display: none !important; }

/* Hero address: compact line directly under h1, no dashed border */
.shell--synth-norail .hero-address {
  border-top: 0 !important;
  padding-top: 0 !important;
  margin-top: 10px;
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--mute);
}
.shell--synth-norail .hero-address strong { font-weight: 500; font-size: 11px;
  font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--dim); margin-right: 4px; }

/* Hero h1: trim default mb so address sits visually closer to name */
.shell--synth-norail .hero h1 { margin-bottom: 8px; }

/* Hide the "synced ..." mono span in breadcrumb already hidden via parent */

/* ─── Topbar new chips (credit-pill, score-jump, topbar-audit) ─── */
.topbar--synth .credit-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px; border-radius: 999px;
  border: 1px solid var(--rule); background: rgba(212,74,28,.06);
  font-family: var(--font-mono); font-size: 12px; color: var(--ink);
  cursor: help; transition: background .15s ease, border-color .15s ease;
}
.topbar--synth .credit-pill b { font-weight: 600; }

.topbar--synth .score-jump {
  font-size: 12.5px;
  border-color: var(--rule-2);
  background: transparent;
  color: var(--ink);
}
.topbar--synth .score-jump b { color: var(--accent); margin: 0 2px; }
.topbar--synth .score-jump:hover { border-color: var(--accent); background: var(--accent-soft); }

.topbar--synth .topbar-audit {
  flex: 0 0 auto;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 22px -10px rgba(212,74,28,.55);
}

/* ─── Topbar (2-row layout) ─── */
/* Keep the profile actions pinned: only the main nav row slides away on
   scroll-down, while the actions row remains sticky at the top. */
.topbar--synth {
  --topbar-main-h: 54px;
  --topbar-motion: cubic-bezier(.22,.61,.36,1);
  transition:
    transform 340ms var(--topbar-motion),
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
  will-change: transform;
}
.topbar--synth.topbar--hidden { transform: translateY(calc(-1 * var(--topbar-main-h))); }
.topbar--synth.topbar--revealing {
  animation: topbarReveal 340ms var(--topbar-motion) both;
}

.topbar--synth .topbar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 28px;
  max-width: 1480px;
  margin: 0 auto;
}
.topbar--synth .topbar-row--main {
  border-bottom: 0;
}
.topbar--synth .topbar-row--context {
  display: none;
}
.topbar--synth .topbar-row--actions {
  gap: 10px;
  padding-top: 8px;
  padding-bottom: 8px;
  border-top: 1px solid var(--rule);
  overflow-x: auto;
  scrollbar-width: none;
}
.topbar--synth .topbar-row--actions::-webkit-scrollbar { display: none; }
.topbar--synth .topbar-action-label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-right: 2px;
}
.topbar--synth .topbar-action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--mute);
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease, transform .15s ease;
}
.topbar--synth .topbar-action:hover,
.topbar--synth .topbar-action[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--rule-2);
  background: var(--bg-2);
}
.topbar--synth .topbar-action:active { transform: translateY(1px) scale(.99); }
.topbar--synth .topbar-action svg { transition: transform .15s ease; }
.topbar--synth .topbar-action:hover svg { transform: translateX(1px); }

.topbar--synth .topbar-nav { display: flex; align-items: center; gap: 20px; }
.topbar--synth .topbar-nav a {
  font-size: 13.5px; color: var(--mute);
  transition: color .15s ease;
}
.topbar--synth .topbar-nav a:hover { color: var(--ink); }

.topbar--synth input.searchin {
  flex: 1;
  min-width: 0;
  max-width: 360px;
  margin-left: auto;
}

.topbar--synth .topbar-login {
  font-size: 13px; color: var(--ink);
  padding: 6px 14px; border: 1px solid var(--rule-2); border-radius: 999px;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.topbar--synth .topbar-login:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.topbar--synth .topbar-login:active { transform: translateY(1px) scale(.99); }
/* Logged-in state: show the account name + a logout link instead of "Přihlásit". */
.topbar--synth .topbar-account { display: inline-flex; align-items: center; gap: 10px; }
.topbar--synth .topbar-account-name {
  font-size: 12.5px; color: var(--mute); max-width: 180px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.topbar--synth .context-label {
  font-family: var(--font-mono);
  font-size: 10.5px; color: var(--mute);
  letter-spacing: .12em; text-transform: uppercase;
  margin-right: auto;
}

@media (max-width: 880px) {
  .topbar--synth .topbar-row { padding: 10px 18px; flex-wrap: wrap; gap: 10px; }
  .topbar--synth .topbar-row--context { padding: 8px 18px; }
  .topbar--synth .topbar-nav { display: none; }   /* hide main nav on tablet+phone */
  .topbar--synth input.searchin { order: 99; flex: 1 1 100%; max-width: none; margin-left: 0; }
  .topbar--synth .topbar-login { order: 50; }
  .topbar--synth .context-label { display: none; }
  .topbar--synth .topbar-row--context > .score-jump { flex: 1 1 auto; }
  .topbar--synth .topbar-row--context > .credit-pill { flex: 0 0 auto; }
  .topbar--synth .topbar-row--context > .topbar-audit {
    flex: 1 1 100%;
    order: 100;
    justify-content: center;
    padding: 12px 18px;
    font-size: 14px;
  }
}

/* ─── People chips: stronger role differentiation ─── */
.shell--synth-norail .prow .pill.mono {
  /* Default role chip (Jednatel etc.) — neutral outline */
  color: var(--ink);
  border-color: var(--rule-2);
  background: transparent;
}
.shell--synth-norail .prow .pill.accent {
  /* "nový" — green tag (positive change) */
  color: var(--good);
  border-color: color-mix(in srgb, var(--good) 40%, transparent);
  background: var(--rd-good-soft);
}
/* Zakladatel chip is inline-styled in JSX; target via attribute selector */
.shell--synth-norail .prow .pill[style*="rgba(212,74,28,.35)"] {
  color: var(--gold) !important;
  border-color: rgba(180,138,42,.40) !important;
  background: rgba(180,138,42,.10) !important;
}

/* ─── Brief: invisible chips → high-contrast inverted ─── */
.brief-questions {
  display: flex; gap: 8px; margin-top: 22px;
  flex-wrap: wrap; align-items: center;
}
.brief-questions-label {
  font-size: 11px; color: var(--mute);
  letter-spacing: .04em; margin-right: 4px;
}
.brief-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink);
  font-family: inherit; font-size: 12.5px; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .2s ease;
}
.brief-chip:hover {
  background: var(--accent); border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -8px rgba(212,74,28,.55);
}
.brief-chip .ic { color: var(--accent); }
.brief-chip:hover .ic { color: var(--white); }
.lens-bar .ic { flex: 0 0 auto; }

.change-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.change-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--mute);
  background: var(--bg-card);
  font-size: 12.5px;
  cursor: pointer;
}
.change-filter .ic { flex: 0 0 auto; }
.change-filter span {
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 10px;
}
.change-filter.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}
.change-filter.is-active span {
  background: var(--accent);
  color: var(--white);
}
.change-watch-btn { margin-top: 12px; }

.finance-card {
  padding: 8px 28px 24px;
}
.finance-freshness-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 12px 0 6px;
  padding: 10px 12px;
  border: 1px solid rgba(212,74,28,.28);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.45;
}
.finance-row {
  display: grid;
  grid-template-columns: 150px 48px minmax(160px, 1fr) 120px;
  gap: 18px;
  align-items: stretch;
  padding: 18px 0;
  border-top: 1px dashed var(--rule);
}
.finance-row:first-of-type {
  border-top: 0;
}
.finance-row-label {
  align-self: center;
  font-size: 13.5px;
  color: var(--ink);
}
.finance-row-label .mono {
  margin-top: 3px;
  color: var(--mute);
  font-size: 10.5px;
  letter-spacing: .04em;
}
.finance-axis {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  min-height: 142px;
  padding: 4px 10px 23px 0;
  border-right: 1px solid var(--rule);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1;
}
.finance-bars {
  display: grid;
  grid-template-columns: repeat(var(--finance-years), minmax(34px, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 142px;
  padding-top: 6px;
}
.finance-bar-item {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}
.finance-bar {
  appearance: none;
  width: min(100%, 58px);
  height: var(--bar-h);
  min-height: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px 4px 2px 2px;
  background: var(--bar-color);
  opacity: var(--bar-opacity, 1);
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}
.finance-bar:hover,
.finance-bar:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(26,24,20,.12);
  outline: none;
}
.finance-bar-tooltip {
  position: absolute;
  bottom: calc(var(--bar-h) + 35px);
  left: 50%;
  z-index: 4;
  transform: translate(-50%, 5px);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  padding: 6px 8px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1;
  transition: opacity .16s ease, transform .16s ease;
}
.finance-bar:hover .finance-bar-tooltip,
.finance-bar:focus-visible .finance-bar-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}
.finance-bar-year {
  color: var(--dim);
  font-size: 10px;
}
.finance-row-latest {
  align-self: center;
  text-align: right;
}
.finance-row-latest .serif {
  font-size: 25px;
  line-height: 1;
}
.finance-row-latest .mono {
  margin-top: 5px;
  font-size: 11px;
  letter-spacing: .04em;
}
@media (max-width: 760px) {
  .finance-card {
    padding: 8px 18px 22px;
  }
  .finance-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 0 20px;
  }
  .finance-axis {
    display: none;
  }
  .finance-bars {
    min-height: 132px;
  }
  .finance-row-latest {
    text-align: left;
  }
  .finance-row-latest .serif {
    font-size: 22px;
  }
}

.related-empty {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.related-card {
  display: block;
  padding: 18px;
  color: inherit;
  text-decoration: none;
}
.doc-card {
  padding: 28px;
}
.doc-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.doc-search {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg-2) 68%, transparent);
}
.doc-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
}
.doc-search input::placeholder { color: var(--dim); }
.doc-search .mono {
  flex: 0 0 auto;
  color: var(--dim);
  font-size: 10.5px;
}
.doc-filter-toggle {
  gap: 7px;
}
.doc-filter-toggle.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.doc-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 16px;
}
.doc-filter {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--mute);
  font-size: 12px;
  cursor: pointer;
}
.doc-filter span {
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 10px;
}
.doc-filter.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}
.doc-filter.is-active span {
  background: var(--accent);
  color: var(--white);
}
.doc-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px dashed var(--rule);
  align-items: start;
}
.doc-row:first-child { border-top: 0; }
.doc-date {
  font-size: 11.5px;
  color: var(--mute);
}
.doc-title {
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink);
}
.doc-title span { color: var(--mute); }
.doc-meta {
  font-size: 10.5px;
  color: var(--dim);
  margin-top: 3px;
}
.doc-summary {
  margin-top: 7px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  max-width: 72ch;
  color: var(--mute);
  font-size: 12.5px;
  line-height: 1.45;
}
.doc-summary--locked {
  color: var(--dim);
}
.doc-empty {
  padding: 18px 0 4px;
  color: var(--mute);
  font-size: 13.5px;
}
.doc-locked-cta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* ─── Score tile: tighter padding, wider bars ─── */
.shell--synth-norail #duveryhodnost .card { padding: 22px 22px !important; }
.shell--synth-norail #duveryhodnost [style*="grid-template-columns: 168px 1fr"] {
  gap: 22px !important;
}
.shell--synth-norail #duveryhodnost [style*="grid-template-columns: 1fr 80px 50px"] {
  grid-template-columns: 1fr minmax(120px, 1.4fr) 44px !important;
  gap: 16px !important;
}
.shell--synth-norail #duveryhodnost [style*="grid-template-columns: 1fr 80px 50px"] > div:nth-child(2) {
  height: 6px !important;
}

/* ─── Inline CTA row (used by Finance, Lidé blocks) ─── */
.shell--synth-norail .inline-cta-row {
  margin-top: 18px; padding: 16px;
  background: var(--bg-2); border-radius: 12px;
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
}
.shell--synth-norail .inline-cta-row .inline-cta-text {
  font-size: 13.5px; line-height: 1.5; flex: 1 1 200px; color: var(--mute);
}
.shell--synth-norail .cta-audit {
  white-space: normal !important;
  text-align: center;
  line-height: 1.25;
  padding: 8px 14px;
}

/* ─── OwnershipTile (top-of-page, real graph renderer) ─── */
.shell--synth-norail #vlastnictvi-top .ownership-card {
  padding: 22px;
  /* Token bridge: the preview renderer uses older ArchiveOwnershipPreview
     variables; map them to the production full-graph rd tokens here. */
  --fg-1: var(--rd-graph-chip-fg);
  --fg-2: var(--rd-graph-edge);
  --fg-3: var(--rd-dim);
  --fg-4: rgba(26,24,20,.20); /* preview applies opacity .3 -> matches rd grid visibility */
  --bg-canvas: var(--rd-graph-bg);
  --bg-surface: var(--rd-graph-chip-bg);
  --bg-surface-2: var(--rd-graph-node-bg);
  --border-subtle: var(--rd-graph-chip-edge);
  --og-edge-color: var(--rd-graph-edge);
  --og-edge-own: var(--rd-graph-edge);
  --og-edge-historical: var(--rd-graph-edge-hist);
  --og-node-border: var(--rd-graph-node-stroke);
  --og-person-border: var(--rd-graph-edge);
  --og-edge-pill-bg: color-mix(in srgb, var(--rd-graph-chip-bg) 94%, var(--rd-graph-bg));
  --og-edge-pill-fg: var(--rd-graph-chip-fg);
  --og-edge-pill-border: var(--rd-graph-chip-edge);
  --og-edge-pill-stroke: var(--rd-graph-chip-bg);
  --cinnabar-50: var(--rd-accent-soft);
  --cinnabar-400: var(--rd-graph-edge-strong);
  --verdigris-500: var(--rd-graph-edge);
  --font-serif: var(--font-display);
}
.shell--synth-norail #vlastnictvi-top .ownership-graph {
  display: block;
  width: 100%;
  height: clamp(320px, 42vw, 420px);
  background: var(--rd-graph-bg);
  border: 1px solid var(--rd-graph-chip-edge);
  border-radius: 12px;
}
@media (max-width: 640px) {
  .shell--synth-norail #vlastnictvi-top .ownership-graph {
    height: 420px;  /* stacked orientation needs vertical room for 7+ nodes */
  }
  .shell--synth-norail #vlastnictvi-top .ownership-card { padding: 14px; }
}
.shell--synth-norail #vlastnictvi-top .ownership-foot {
  margin-top: 22px; padding: 16px;
  background: var(--bg-2); border-radius: 12px;
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
}
.shell--synth-norail #vlastnictvi-top .ownership-hint {
  font-size: 13px; color: var(--mute); flex: 1 1 200px;
  letter-spacing: .01em;
}
.shell--synth-norail #vlastnictvi-top .ownership-hint b { color: var(--ink); font-weight: 500; }
.shell--synth-norail #vlastnictvi-top .ownership-fullbtn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink);
  font-family: inherit; font-size: 13px; font-weight: 500;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.shell--synth-norail #vlastnictvi-top .ownership-fullbtn:hover {
  background: var(--accent); border-color: var(--accent);
  transform: translateY(-1px);
}

/* ─── Pricing single ─── */
.pricing--single .plan--solo {
  background: var(--rd-dark-bg); color: var(--rd-dark-ink); border: 1px solid var(--rd-dark-bg);
  border-radius: 22px; padding: 36px;
  display: grid; grid-template-columns: minmax(220px, 1fr) 1.6fr; gap: 32px;
  align-items: start;
  position: relative; overflow: hidden;
}
.pricing--single .plan--solo::before {
  content: ''; position: absolute; top: -100px; right: -80px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255,138,74,.30), transparent 60%);
  pointer-events: none;
}
.pricing--single .plan--solo .plan-head h3 { font-size: 32px; margin-top: 12px; }
.pricing--single .plan--solo .price { font-family: var(--font-display); font-size: 56px; line-height: 1; margin-top: 18px; color: var(--cinnabar-dark); }
.pricing--single .plan--solo .price .unit { font-family: var(--font-mono); font-size: 13px; color: rgba(245,239,225,.55); margin-left: 6px; }
.pricing--single .plan--solo .plan-body ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pricing--single .plan--solo .plan-body ul li { font-size: 14px; display: flex; gap: 8px; line-height: 1.45; }
.pricing--single .plan--solo .plan-body ul li::before { content: '·'; color: var(--cinnabar-dark); font-weight: 600; }
@media (max-width: 760px) {
  .pricing--single .plan--solo {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    gap: 20px;
  }
  .pricing--single .plan--solo .plan-head h3 { font-size: 26px; }
  .pricing--single .plan--solo .price { font-size: 44px; }
}

/* ─── Chat overlay (full-page modal) ─── */
:root { --chat-w: clamp(360px, 30vw, 440px); }
/* DOCKED panel: a fixed right column that sits BESIDE the page (no dimming
   backdrop, no scroll lock). The page content reflows left via
   html.chat-docked body { padding-right }. The whole site stays visible and
   interactive while the chat is open. */
.chat-overlay {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
  width: var(--chat-w);
  display: flex; align-items: stretch;
  animation: chatPanelIn .28s cubic-bezier(.2,.8,.2,1) both;
}
.chat-panel {
  background: var(--bg); color: var(--ink);
  width: 100%;
  height: 100vh; height: 100dvh;
  margin: 0;
  border-radius: 0;
  border-left: 1px solid var(--rule);
  box-shadow: -24px 0 60px -30px rgba(0,0,0,.28);
  display: flex; flex-direction: column;
  overflow: hidden;
}
/* Reflow the page so nothing hides behind the docked panel. */
body { transition: padding-right .28s cubic-bezier(.2,.8,.2,1); }
html.chat-docked body { padding-right: var(--chat-w); }
/* Fixed topbar must also clear the panel. */
html.chat-docked .topbar,
html.chat-docked .topbar--synth { right: var(--chat-w); }
/* When the chat panel is docked open, hide the floating bottom ask-dock — the
   panel's own input is the active surface; two ask boxes at once is redundant. */
html.chat-docked .dock-wrap { display: none; }
/* Narrow screens: no room to dock — fall back to full-width overlay. */
@media (max-width: 760px) {
  .chat-overlay { width: 100%; }
  html.chat-docked body { padding-right: 0; }
  html.chat-docked .topbar,
  html.chat-docked .topbar--synth { right: 0; }
}

/* Selection toolbar — floats at a text selection, offers to ask the chat. */
.sel-toolbar {
  position: fixed; z-index: 250;
  transform: translateX(-50%);
  display: flex; gap: 3px; padding: 4px;
  background: var(--ink); border-radius: 999px;
  box-shadow: 0 10px 34px -10px rgba(0,0,0,.45);
  animation: selToolbarIn .13s cubic-bezier(.2,.8,.2,1) both;
  white-space: nowrap;
}
@keyframes selToolbarIn { from { opacity: 0; transform: translateX(-50%) translateY(4px) scale(.96); } to { opacity: 1; transform: translateX(-50%); } }
.sel-btn {
  appearance: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 12.5px; line-height: 1;
  color: var(--bg); background: transparent;
  padding: 8px 12px; border-radius: 999px;
  display: inline-flex; align-items: center;
  transition: background .12s ease;
}
.sel-btn:hover { background: rgba(255,255,255,.14); }
.sel-btn--primary { background: var(--accent); color: var(--white); font-weight: 500; }
.sel-btn--primary:hover { filter: brightness(1.06); background: var(--accent); }
.sel-btn--primary svg { stroke: var(--white); }
.chat-head {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 24px; border-bottom: 1px solid var(--rule);
}
.chat-head .brand-mark { font-family: var(--font-display); font-size: 18px; font-weight: 400; letter-spacing: -.01em; }
.chat-close {
  margin-left: auto;
  width: 32px; height: 32px; border-radius: 999px;
  background: transparent; border: 1px solid var(--rule);
  color: var(--mute); font-size: 22px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chat-close:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chat-preset {
  margin: 0; padding: 12px 24px;
  background: var(--bg-2);
  border: 0; border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  cursor: pointer; font-family: inherit; text-align: left;
  transition: background .15s ease;
}
.chat-preset:hover { background: rgba(212,74,28,.08); }
.chat-preset-label { font-family: var(--font-mono); font-size: 10.5px; color: var(--mute); letter-spacing: .04em; }
.chat-preset-q { font-size: 14px; color: var(--ink); }

.chat-body {
  flex: 1; min-height: 320px; max-height: none; overflow: hidden;
  padding: 0; display: flex; flex-direction: column;
}
.chat-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 36px 8px; text-align: center; }
.chat-empty-title { font-size: clamp(24px, 3.5vw, 32px); line-height: 1.1; }
.chat-empty-sub { color: var(--mute); font-size: 14px; max-width: 360px; }

/* Soft login-gate — faux start-screen + login/signup CTA for anonymous users.
   Reuses .chat-empty / .chat-suggestions / .chat-chip so logged-out visitors see
   the real start-screen; the form + CTA below are gate-only. */
.chat-gate { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; padding-bottom: 16px; }
.chat-gate-greet { padding: 32px 24px 4px; }
.chat-gate .chat-suggestions { padding: 12px 24px; }
.chat-gate-form { display: flex; gap: 8px; margin-top: auto; padding: 14px 24px 4px; }
.chat-gate-input {
  flex: 1; min-width: 0; padding: 11px 15px;
  border: 1px solid var(--rule); border-radius: 999px;
  background: var(--bg); color: var(--ink);
  font-family: inherit; font-size: 14px;
}
.chat-gate-input:focus { outline: none; border-color: var(--accent); }
.chat-gate-send {
  flex: none; border: 0; border-radius: 999px; padding: 0 18px;
  background: var(--accent); color: var(--white);
  font-family: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer;
  transition: filter .15s ease;
}
.chat-gate-send:hover { filter: brightness(1.06); }
.chat-gate-cta { flex: 1; gap: 14px; padding: 36px 24px; }
.chat-gate-q {
  font-size: 14px; line-height: 1.45; color: var(--ink);
  background: var(--bg-2); border-left: 2px solid var(--accent);
  padding: 9px 13px; border-radius: 8px; max-width: 340px; text-align: left;
}
.chat-gate-actions { display: flex; gap: 10px; margin-top: 4px; }
.local-chat {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  background: var(--bg);
}
.local-chat-log {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.local-chat-msg {
  max-width: min(82%, 520px);
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 14px; line-height: 1.5;
  white-space: normal;
}
.local-chat-msg--user {
  align-self: flex-end;
  background: rgba(212,74,28,.14);
  color: var(--ink);
}
.local-chat-msg--assistant {
  align-self: flex-start;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  color: var(--ink);
}
.local-chat-prompts { padding: 0 24px 10px; }
.local-chat-form { margin-top: 0; padding-bottom: 18px; }
.chat-msg { display: flex; max-width: 78%; }
.chat-msg--user { margin-left: auto; }
.chat-msg .chat-msg-text {
  padding: 12px 16px; border-radius: 16px;
  background: var(--bg-2); border: 1px solid var(--rule);
  font-size: 14.5px; line-height: 1.5;
}
.chat-msg--user .chat-msg-text { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chat-suggestions {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 14px 24px 0;
}
.chat-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink);
  font-family: inherit; font-size: 12.5px; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.chat-chip:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.chat-chip .ic { color: var(--accent); }
.chat-chip:hover .ic { color: var(--white); }
.chat-inputrow {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 24px 22px; border-top: 1px solid var(--rule);
  background: rgba(255,255,255,.5);
}
.chat-input {
  flex: 1; background: var(--bg-card);
  border: 1px solid var(--rule); border-radius: 999px;
  padding: 12px 18px; font-size: 14.5px; outline: none;
  font-family: inherit; color: var(--ink);
  transition: border-color .15s ease;
}
.chat-input:focus { border-color: var(--accent); }
.chat-send { padding: 10px 18px; }
@keyframes chatFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes chatPanelIn { from { transform: translateX(48px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) {
  .chat-panel { margin: 0; border-radius: 0; height: 100vh; max-width: none; }
  .chat-head { padding: 14px 16px; }
  .chat-body { padding: 18px 16px; max-height: none; }
  .chat-suggestions { padding: 12px 16px 0; }
  .chat-inputrow { padding: 12px 16px 16px; }
}

@media (max-width: 760px) {
  html.chat-docked,
  html.chat-docked body {
    overflow: hidden;
  }
  .chat-overlay {
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
  }
  .chat-panel {
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    border-left: 0;
    box-shadow: none;
  }
  .chat-body {
    min-height: 0;
    padding: 0;
  }
  .chat-gate-greet { padding: 24px 16px 4px; }
  .chat-gate .chat-suggestions,
  .local-chat-prompts { padding-left: 16px; padding-right: 16px; }
  .chat-gate-form {
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  }
  .chat-gate-send { min-height: 44px; }
  .local-chat-log { padding: 16px; }
  .local-chat-form { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}

/* ════════════════════════════════════════════════════════════ */
/* ─── FLAT MODE — no drop shadows, no glow halos ─────────────── */
/* Per user feedback: keep it visually flat across the v4 page.   */
/* Universal kill of box-shadow within v4 wrappers; targeted     */
/* removal of filter-based halos. Backdrop-filter blur stays —   */
/* it's frosted-glass texture, not a shadow.                     */
/* ════════════════════════════════════════════════════════════ */

.topbar--synth,
.topbar--synth *,
.shell--synth-norail,
.shell--synth-norail *,
.dock-wrap,
.dock-wrap *,
.chat-overlay,
.chat-overlay * {
  box-shadow: none !important;
}

/* Halo blur behind the AI dock glow ring */
.dock-glow::after { filter: none !important; opacity: 0 !important; }
/* Dock glow ring itself — keep the conic gradient as a coloured border;
   no blur halo behind it. */

/* Disable shadow-based pulse / glow keyframe animations on v4 */
.shell--synth-norail .mc-card.primary .btn-accent,
.shell--synth-norail .audit-cta .btn-accent,
.shell--synth-norail .locked .cta-overlay .btn-accent {
  animation: none !important;
}

/* Card hover stops doing the lift */
.shell--synth-norail .prow .btn-sm { transition: background .18s ease; }
.shell--synth-norail .brief-chip:hover,
.shell--synth-norail .chat-chip:hover { box-shadow: none !important; transform: translateY(-1px); }
.shell--synth-norail .plan.featured::before { display: none; } /* radial glow blob behind featured */
.shell--synth-norail .audit-cta::before { display: none; }       /* same blob inside audit-cta */
.shell--synth-norail .mc-card.primary::after { display: none; }   /* breathing radial */
.shell--synth-norail .hero-score svg circle:nth-child(2) { animation: none; } /* score ring draw stays harmless */

.shell--synth-norail .prow .btn-sm:hover {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
/* Pills are static labels (Jednatel, Zakladatel, IČO ...) — no hover */
.shell--synth-norail .pill:not(button):not(a) { pointer-events: none; }

/* ════════════════════════════════════════════════════════════ */
/* ─── SMOOTHER BREAKPOINTS (1280 / 1024 / 880 / 640 / 380) ── */
/* ════════════════════════════════════════════════════════════ */

/* Wide desktop (≤1280): tighten container padding, ease atbar text */
@media (max-width: 1280px) {
  .shell--synth-norail { padding: 0 28px; max-width: none; }
  .shell--synth-norail .hero h1 { font-size: clamp(48px, 6.5vw, 96px); }
}

/* Medium desktop (881–1024): atbar 6→3 cols, brief-grid collapses earlier.
   Scoped to (min-width: 881) so the (max-width: 880) tablet rules win cleanly. */
@media (min-width: 881px) and (max-width: 1024px) {
  .shell--synth-norail .atbar { grid-template-columns: repeat(3, 1fr); }
  .shell--synth-norail .atbar > div:nth-child(3n) { border-right: 0; }
  .shell--synth-norail .atbar > div:nth-last-child(-n+3) { border-bottom: 0; }
  .brief-grid { grid-template-columns: 1fr; gap: 18px; }
  .shell--synth-norail .hero h1 { font-size: clamp(40px, 6vw, 80px); }
  .shell--synth-norail #vlastnictvi-top .ownership-graph { height: clamp(280px, 36vw, 360px); }
}

/* Tablet portrait (≤880) — existing block already handles atbar 6→2; keep */

/* ════════════════════════════════════════════════════════════ */
/* ─── AUTO DARK MODE (prefers-color-scheme: dark) ───────────── */
/* Warm-paper Anthropic palette flipped to a deep ink variant.   */
/* Accent stays cinnabar. Maps the renderer tokens too so the    */
/* ownership graph follows the theme.                            */
/* ════════════════════════════════════════════════════════════ */

@media (prefers-color-scheme: dark) {
  .shell--synth-norail,
  .topbar--synth,
  .dock-wrap,
  .chat-overlay {
    --bg:        var(--ink-500);
    --bg-2:      var(--ink-400);
    --bg-3:      var(--ink-300);
    --bg-card:   var(--rd-dark-bg);
    --ink:       var(--rd-dark-ink);
    --mute:      var(--rd-dark-mute);
    --dim:       var(--rd-dark-dim);
    --rule:      rgba(244,237,224,.10);
    --rule-2:    rgba(244,237,224,.22);
    --accent:    var(--cinnabar-dark);
    --accent-2:  color-mix(in srgb, var(--cinnabar-dark) 86%, var(--white));
    --accent-soft: rgba(255,106,53,.10);
    --good:      var(--positive);
    --warn:      var(--amber-400);
    --bad:       var(--danger);
    --gold:      var(--amber-400);
  }
  /* Page bg */
  body, html { background: var(--bg); color: var(--ink); }
  /* Topbar frost */
  .topbar--synth { background: rgba(20,17,13,.86); }
  .topbar--synth .topbar-row--context { background: rgba(255,106,53,.06); }
  /* Cards */
  .shell--synth-norail .card { background: var(--bg-card); }
  /* Audit CTA + black plan stay dark — invert their inner contrast */
  .shell--synth-norail .audit-cta,
  .shell--synth-norail .plan.featured,
  .shell--synth-norail .plan--solo {
    background: linear-gradient(135deg, var(--ink-600) 0%, var(--ink-500) 100%);
  }
  /* Brief inverted chip stays dark; bump contrast */
  .brief-chip { background: var(--bg-3); color: var(--ink); border-color: var(--rule-2); }
  .brief-chip:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
  /* Graph tokens — bridge to dark surface so the SVG nodes are visible */
  .shell--synth-norail #vlastnictvi-top .ownership-card {
    --fg-1: var(--rd-graph-chip-fg);
    --fg-2: var(--rd-graph-edge);
    --fg-3: var(--rd-dim);
    --fg-4: rgba(244,237,224,.18);
    --bg-canvas: var(--rd-graph-bg);
    --bg-surface: var(--rd-graph-chip-bg);
    --bg-surface-2: var(--rd-graph-node-bg);
    --border-subtle: var(--rd-graph-chip-edge);
    --og-edge-color: var(--rd-graph-edge);
    --og-edge-own: var(--rd-graph-edge);
    --og-edge-historical: var(--rd-graph-edge-hist);
    --og-node-border: var(--rd-graph-node-stroke);
    --og-person-border: var(--rd-graph-edge);
    --og-edge-pill-bg: color-mix(in srgb, var(--rd-graph-chip-bg) 94%, var(--rd-graph-bg));
    --og-edge-pill-fg: var(--rd-graph-chip-fg);
    --og-edge-pill-border: var(--rd-graph-chip-edge);
    --og-edge-pill-stroke: var(--rd-graph-chip-bg);
    --cinnabar-50: var(--accent-soft);
    --cinnabar-400: var(--rd-graph-edge-strong);
    --verdigris-500: var(--rd-graph-edge);
  }
  /* Chat overlay dark backdrop */
  .chat-overlay { background: rgba(0,0,0,.65); }
  .chat-panel { background: var(--bg-2); border-color: var(--rule-2); }
  .chat-input { background: var(--bg-3); color: var(--ink); }
  .chat-close { border-color: var(--rule-2); color: var(--mute); }
  /* Dock pill is a hardcoded near-white surface (.dock-inner) — flip it to a dark
     surface in dark mode so the floating ask-dock matches the page instead of
     glowing light. Soften the white inset highlight too. */
  .dock-inner {
    background: var(--bg-2);
    box-shadow: 0 30px 80px -20px rgba(0,0,0,.55), 0 1px 0 rgba(255,255,255,.05) inset;
  }
}

/* ════════════════════════════════════════════════════════════ */
/* ─── Audit pill in chat head + loading state ──────────────── */
/* ════════════════════════════════════════════════════════════ */

.chat-overlay .audit-pill {
  display: inline-flex; align-items: center;
  margin-left: auto; margin-right: 12px;
  padding: 5px 11px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .04em; text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease;
}
.chat-overlay .audit-pill--preview {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(212,74,28,.30);
}
.chat-overlay .audit-pill--preview:hover {
  background: rgba(212,74,28,.16);
  border-color: var(--accent);
}
.chat-overlay .audit-pill--ok {
  color: var(--good);
  background: rgba(10,122,64,.08);
  border-color: rgba(10,122,64,.30);
}
.chat-overlay .audit-pill--ok:hover {
  background: rgba(10,122,64,.14);
  border-color: var(--good);
}

.chat-loading {
  display: flex; align-items: center; gap: 12px;
  padding: 48px 24px;
  color: var(--mute); font-size: 14px;
  justify-content: center;
}
.chat-loading svg { animation: breathe 1.5s ease-in-out infinite; }


/* mobile QA pass: detail page layout parity */
.ic-lock { color: var(--accent) !important; fill: var(--accent) !important; stroke: none !important; }
.ic-lock * { stroke: none !important; }
.og-node, .ownership-graph .og-node { cursor: pointer; }
@media (max-width: 760px) {
  body { padding-bottom: 112px; overflow-x: hidden; }
  .main { padding-bottom: 110px; }
  .topbar--synth .searchin { display: none !important; }
  .topbar-row--main { flex-wrap: wrap; gap: 10px; }
  .topbar--synth .brand-mark { flex: 0 0 auto; min-width: max-content; }
  .brand-lockup { gap: 8px; }
  .brand-logo-mark { width: 26px; height: 26px; flex-basis: 26px; }
  .brand-logo-wordmark { width: 108px; }
  .topbar-nav { order: 4; display: flex !important; flex: 1 0 100%; gap: 8px; overflow-x: auto; padding: 6px 0 2px; -webkit-overflow-scrolling: touch; }
  .topbar-nav a { flex: 0 0 auto; padding: 8px 11px; border: 1px solid var(--rule); border-radius: 999px; background: rgba(245,239,225,.04); color: var(--ink); text-decoration: none; }
  .topbar-row--context { display: flex; flex-wrap: wrap; gap: 8px; }
  .topbar-row--context .context-label { display: none; }
  .topbar-audit { flex: 1 0 100%; justify-content: center; min-height: 44px; }
  .score-jump, .credit-pill { min-height: 38px; }
  .lens-bar { display: grid !important; grid-template-columns: 1fr 1fr; gap: 7px; padding: 6px; border-radius: 16px; }
  .lens-bar button { width: 100%; min-height: 42px; justify-content: center; white-space: normal; text-align: center; padding: 9px 10px; border-radius: 11px; }
  .brief-card { padding: 22px 18px; }
  .brief-card [style*="grid-template-columns: 32px 1fr"] { grid-template-columns: 38px minmax(0, 1fr) !important; gap: 12px !important; }
  .ownership-card { overflow: hidden; padding: 20px 14px; }
  .ownership-graph { width: 100%; height: min(620px, 82vh) !important; min-height: 500px; }
  .ownership-foot { display: grid; grid-template-columns: 1fr; gap: 14px; }
  .ownership-fullbtn { width: 100%; min-height: 46px; justify-content: center; }
  .prow { grid-template-columns: 54px minmax(0, 1fr) !important; gap: 14px !important; align-items: start !important; }
  .av { width: 46px !important; height: 46px !important; color: var(--accent) !important; background: var(--paper) !important; font-weight: 800 !important; opacity: 1 !important; }
  .card div[style*="grid-template-columns: 1fr auto auto"] { grid-template-columns: 1fr !important; gap: 14px !important; align-items: stretch !important; }
  .card div[style*="grid-template-columns: 1fr auto auto"] .btn { width: 100%; justify-content: center; }
  .card div[style*="grid-template-columns: 1fr auto auto"] .pill { justify-self: start; }
  .card div[style*="grid-template-columns: 100px 1fr auto"] { grid-template-columns: 1fr !important; gap: 8px !important; padding: 16px 0 !important; }
  .card div[style*="grid-template-columns: 100px 1fr auto"] > .pill { justify-self: start; width: auto; pointer-events: none; }
  .pricing .price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
  .pricing .price .unit { max-width: none; font-size: 14px; }
  .pricing .cta-audit { min-height: 58px; white-space: normal; line-height: 1.2; }
  .foot { padding-bottom: 150px; }
  .dock-wrap { left: 16px; right: 16px; bottom: max(14px, env(safe-area-inset-bottom)); width: auto; }
  .dock-inner { min-width: 0; }
  .dock input { min-width: 0; font-size: 14px; }
  /* Cramped horizontal upsell rows (změny / graph-level) squeezed text to 1-2 words
     per line beside the button; stack them vertically on mobile. */
  [style*="background: var(--bg-2)"][style*="gap: 14px"] { flex-direction: column !important; align-items: flex-start !important; }
}
