/* KanaryGate app (sign-in + dashboard). Brand from kanarygate.com; chart colours from the validated data-viz palette. */
:root {
  --paper: #F6F4EE; --surface: #FFFFFF; --ink: #1E242B; --muted: #525D6A; --line: #E2DDD2; --edge: #C9C2B4;
  --grid: #E7E7E7; --series: #257DE0; --series-wash: rgba(37,125,224,0.10);
  --good: #0AAC23; --critical: #DC3C3D; --good-ink: #065F46; --critical-ink: #991B1B;
  --sans: 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: Rubik, system-ui, sans-serif; --mono: 'Atkinson Hyperlegible Mono', ui-monospace, monospace; --pixel: Silkscreen, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5; }
a { color: var(--ink); }
h1, h2 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; }
h1 { font-size: 30px; font-weight: 900; } h2 { font-size: 18px; font-weight: 800; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 19px; text-decoration: none; }
.brand .dot { color: #A16207; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: #F3E7B8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='1' y='5' width='3' height='3' fill='%23FBB829'/%3E%3Crect x='1' y='8' width='11' height='5' fill='%23FBB829'/%3E%3Crect x='6' y='1' width='7' height='7' fill='%23FFC93C'/%3E%3Crect x='10' y='3' width='2' height='2' fill='%232B3F63'/%3E%3Crect x='13' y='5' width='3' height='2' fill='%23F26A2A'/%3E%3Crect x='4' y='13' width='2' height='2' fill='%23DE4A2A'/%3E%3Crect x='8' y='13' width='2' height='2' fill='%23DE4A2A'/%3E%3C/svg%3E") center / 22px no-repeat; border: 2px solid #E2CE7D; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1.5px solid transparent; font-family: var(--display); font-weight: 700; font-size: 15px; cursor: pointer; }
.btn-sm { min-height: 36px; font-size: 13px; padding: 0 12px; }
.btn-yellow { background: #FACC15; color: #18181B; border-color: #D9A700; box-shadow: 0 3px 0 #CA9A04; }
.btn-white { background: #FFF; color: var(--ink); border-color: var(--edge); box-shadow: 0 2px 0 #DCD5C7; }
.btn[disabled] { opacity: .6; }

/* sign-in */
body.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.signin { background: var(--surface); border: 1.5px solid var(--edge); border-radius: 18px; padding: 28px; width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 14px; }
.signin form { display: flex; flex-direction: column; gap: 8px; }
.signin label { font-weight: 700; font-size: 14px; }
.signin input { min-height: 46px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--edge); font: inherit; font-family: var(--mono); }
.error { color: var(--critical-ink); font-weight: 700; } .status { font-weight: 700; min-height: 1.5em; }

/* dashboard frame */
.bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.bar-in { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bar-right { display: flex; align-items: center; gap: 12px; } .bar-right form { margin: 0; }
.dash { padding-top: 20px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters select { min-height: 40px; border-radius: 9px; border: 1.5px solid var(--edge); padding: 0 10px; font: inherit; font-weight: 700; background: var(--surface); }
.seg { display: inline-flex; border: 1.5px solid var(--edge); border-radius: 10px; overflow: hidden; background: var(--surface); }
.seg button { min-height: 38px; padding: 0 14px; border: 0; background: transparent; font: inherit; font-weight: 700; cursor: pointer; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #FFF; }
.install { font-size: 14px; padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.install::before { content: '● '; color: var(--good); }
.install.waiting::before { content: '○ '; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.tile .label { font-size: 13px; color: var(--muted); }
.tile .value { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tile .delta { font-size: 13px; color: var(--muted); }
.delta .up-bad, .delta .down-good { font-weight: 700; }
.delta .up-bad { color: var(--critical-ink); } .delta .down-good { color: var(--good-ink); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--sans); }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--edge); border-radius: 12px; }

/* horizontal bars (HTML, so long labels wrap instead of clipping) */
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) 2fr; gap: 10px; align-items: center; cursor: default; }
.hbar .name { font-size: 13.5px; font-weight: 700; overflow-wrap: anywhere; }
.hbar .name small { display: block; font-weight: 400; color: var(--muted); }
.hbar .track { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hbar .fill { height: 16px; background: var(--series); border-radius: 0 4px 4px 0; min-width: 2px; }
.hbar .num { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tag { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 5px; background: #EEF2F7; color: #334155; font-weight: 700; }
.tag.cloud { background: #E8F1FC; color: #1B4F8E; }

.tip { position: fixed; z-index: 10; pointer-events: none; background: var(--ink); color: #FFF; font-size: 13px; padding: 8px 10px; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.18); max-width: 260px; }
.tip strong { display: block; font-family: var(--display); }

.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
table.data th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 8px; border-bottom: 1.5px solid var(--line); }
table.data td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 12.5px; }

.use-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.use-sum div { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.use-sum strong { font-size: 24px; }
.use-sum .warn { border-color: #F59E0B; background: #FFFBEB; }
.badge.warn { background: #FEF3C7; color: #92400E; }
.cites { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.cite { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.cite.sample { border-style: dashed; background: #FCFBF7; }
.cite-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.cite q { display: block; background: #FFFBEB; border-radius: 8px; padding: 10px; font-size: 14px; quotes: '“' '”'; }
.cite mark { background: #FDE047; border-radius: 3px; padding: 0 3px; font-family: var(--mono); font-size: 12.5px; }
.badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.badge.marker { background: #FEE2E2; color: var(--critical-ink); } .badge.phrase { background: #FEF3C7; color: #92400E; } .badge.sample { background: #F1F5F9; color: #334155; }
.rule { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.rule-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-weight: 700; }
pre.code { margin: 0; background: #181E25; color: #E2E8F0; font-family: var(--mono); font-size: 12.5px; padding: 12px; border-radius: 10px; white-space: pre-wrap; word-break: break-word; }
.foot { text-align: center; }
details summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
details[open] summary { margin-bottom: 8px; }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } .hbar { grid-template-columns: 1fr; gap: 4px; } }
@media print { .bar, .filters, #toggle-table, .btn { display: none !important; } body { background: #FFF; } .panel, .tile { break-inside: avoid; } }

.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fact { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.fact-actions { display: flex; gap: 6px; align-items: center; }
.chip { background: #F1F5F9; border-radius: 6px; padding: 1px 6px; }
.add-fact { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 12px; }
.add-fact label { display: flex; flex-direction: column; gap: 2px; }
.add-fact input, .add-fact select { min-height: 36px; border: 1.5px solid var(--edge); border-radius: 8px; padding: 0 8px; background: #fff; font: inherit; }
#facts { border-top: 1px solid var(--line); padding-top: 12px; }

.set-grid { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.set-grid label { display: flex; flex-direction: column; gap: 2px; flex: 1 1 260px; }
.set-grid input { min-height: 38px; border: 1.5px solid var(--edge); border-radius: 8px; padding: 0 10px; font: inherit; }
.set-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.members { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.members li { display: flex; gap: 10px; align-items: center; }
.keybox { border-top: 1px solid var(--line); padding-top: 12px; }

.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: baseline; }
.checklist .tick { width: 22px; height: 22px; border: 1.5px solid var(--edge); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #065F46; flex: 0 0 auto; }
.checklist li.done .tick { background: #D1FAE5; border-color: #6EE7B7; }
.checklist li.done a { color: var(--muted); }

.keybox + .keybox { margin-top: 14px; }

.linkish { background: none; border: 0; padding: 0 0 0 6px; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }
.linkish.small { font-size: 12px; }
ul.connect { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
ul.connect li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.warn-text { color: #9A3412; flex-basis: 100%; }

/* ---------- bolder look (4 Dec 2026): same chunky language as kanarygate.com ---------- */
.panel { border: 1.5px solid var(--edge); box-shadow: 0 4px 16px -4px rgba(30,36,43,0.08); }
.tile { border: 1.5px solid var(--edge); box-shadow: 0 3px 0 #DCD5C7; border-radius: 14px; }
.tile .label { font-family: var(--pixel); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.tile.tone-red .value { color: #B91C1C; }
.tile.tone-amber .value { color: #B45309; }
.tile.tone-blue .value { color: #1D5FB0; }
.tile.tone-yellow { background: #FFFBEA; border-color: #E2CE7D; box-shadow: 0 3px 0 #D4BE6A; }
.use-sum div { border-width: 2px; border-radius: 16px; padding: 14px 16px; box-shadow: 0 4px 0 var(--shadow, #DCD5C7); }
.use-sum strong { font-family: var(--display); font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.use-sum .used { --shadow: #D9A700; border-color: #EAB308; background: #FEF9C3; }
.use-sum .good { --shadow: #059669; border-color: #10B981; background: #ECFDF5; } .use-sum .good strong { color: #047857; }
.use-sum .bad { --shadow: #B91C1C; border-color: #EF4444; background: #FEF2F2; } .use-sum .bad strong { color: #B91C1C; }
.use-sum .zero { --shadow: #DCD5C7; border-color: var(--edge); background: #FFF; }
.cite { border: 1.5px solid var(--edge); border-radius: 14px; box-shadow: 0 3px 0 #DCD5C7; background: #FFF; }
.cite-head strong { font-family: var(--display); font-size: 17px; }
.cite q { font-weight: 600; background: #FFFBEA; border: 1px solid #F1E3A6; }
.badge { font-size: 11.5px; padding: 3px 9px; border: 1.5px solid currentColor; }
.badge.marker { background: #FEE2E2; color: #991B1B; } .badge.phrase { background: #FEF3C7; color: #92400E; } .badge.misquote { background: #FFEDD5; color: #9A3412; }
.verdict { display: inline-block; font-weight: 700; padding: 1px 8px; border-radius: 6px; }
.verdict.good { background: #D1FAE5; color: #065F46; } .verdict.bad { background: #FEE2E2; color: #991B1B; }
.meter { display: flex; align-items: center; gap: 8px; min-width: 130px; }
.meter .track { flex: 1; height: 10px; background: #EFEBE2; border-radius: 99px; overflow: hidden; }
.meter .fill { display: block; height: 100%; border-radius: 99px; }
.meter .fill.good { background: #10B981; } .meter .fill.named { background: #257DE0; }
.meter b { font-variant-numeric: tabular-nums; min-width: 36px; text-align: right; }
table.data tbody tr:nth-child(even) td { background: #FBFAF6; }
table.data td.engine { font-weight: 700; font-family: var(--display); }
.rivals { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.rivals li { display: grid; grid-template-columns: minmax(120px, 220px) 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.rivals .track { height: 14px; background: #EFEBE2; border-radius: 4px; overflow: hidden; }
.rivals .fill { display: block; height: 100%; background: #F87171; }
.section-h { font-family: var(--display); font-weight: 800; font-size: 15px; margin: 6px 0 0; }

/* ---------- the site's identity, carried over (round 6): pixel stamps, the scoreboard, canary lanes ---------- */
.stamp { display: inline-block; font-family: var(--pixel); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px 2px; border-radius: 6px; border: 1.5px solid currentColor; white-space: nowrap; line-height: 1.3; }
.stamp.good { color: #047857; background: #ECFDF5; } .stamp.bad { color: #B91C1C; background: #FEF2F2; } .stamp.warn { color: #92400E; background: #FFFBEB; }
.stamp.info { color: #1D4ED8; background: #EFF6FF; } .stamp.plain { color: var(--muted); background: #FFF; } .stamp.ink { color: #FFF; background: var(--ink); border-color: var(--ink); }
.scoreboard { background: #1B2A63; border: 3px solid #FACC15; border-radius: 16px; box-shadow: 0 4px 0 #CA9A04; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); overflow: hidden; }
.scoreboard > div { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; color: #E0E7FF; }
.scoreboard > div + div { border-left: 2px dashed rgba(250, 204, 21, .45); }
.scoreboard .sb-label { font-family: var(--pixel); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #FFF; }
.scoreboard .sb-value { font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.scoreboard .sb-note { font-size: 12.5px; color: #C7D2FE; }
.sb-yellow { color: #FDE047; } .sb-green { color: #6EE7B7; } .sb-red { color: #FCA5A5; } .sb-amber { color: #FCD34D; }
@media (max-width: 700px) { .scoreboard > div + div { border-left: 0; border-top: 2px dashed rgba(250, 204, 21, .45); } }
.actions { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: act; }
.actions li { counter-increment: act; background: #FFF; border: 1.5px solid var(--edge); border-radius: 14px; box-shadow: 0 3px 0 #DCD5C7; padding: 14px 16px 14px 58px; position: relative; display: flex; flex-direction: column; gap: 6px; }
.actions li::before { content: counter(act); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 8px; background: #FACC15; border: 1.5px solid #D9A700; box-shadow: 0 2px 0 #CA9A04; font-family: var(--pixel); font-size: 13px; display: flex; align-items: center; justify-content: center; }
.actions .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.actions .what { font-size: 15px; }
.actions .fix { font-size: 14px; }
.hl { background: linear-gradient(180deg, transparent 55%, #FDE047 55%); padding: 0 2px; font-weight: 700; }
.chain td .stamp { margin: 0 4px 2px 0; }
.lanes { display: grid; gap: 8px; }
.lane { display: grid; grid-template-columns: minmax(130px, 190px) 1fr 200px; gap: 12px; align-items: center; }
.lane .name { font-family: var(--display); font-weight: 700; font-size: 14px; }
.lane .track { position: relative; height: 32px; background: #2F7D45; border: 2px solid #1F5E32; border-radius: 6px; background-image: repeating-linear-gradient(90deg, transparent 0 24px, rgba(255,255,255,.12) 24px 26px); }
.lane .finish { position: absolute; right: 0; top: 0; bottom: 0; width: 10px; background: repeating-conic-gradient(#111 0 25%, #FFF 0 50%) 0 0 / 6px 6px; }
.lane .bird { position: absolute; top: 2px; width: 28px; height: 25px; transform: translateX(-50%); image-rendering: pixelated; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 10' shape-rendering='crispEdges'%3E%3Cpath fill='%23CA9A04' d='M2 4h6v4H2z'/%3E%3Cpath fill='%23FACC15' d='M3 1h4v3H3zM1 4h7v3H1zM2 7h6v1H2z'/%3E%3Cpath fill='%23111' d='M6 2h1v1H6z'/%3E%3Cpath fill='%23F97316' d='M7 2h2v1H7z'/%3E%3Cpath fill='%23F97316' d='M3 8h1v2H3zM6 8h1v2H6z'/%3E%3C/svg%3E") center / contain no-repeat; }
.lane .score { font-size: 13px; } .lane .score b { font-family: var(--display); font-size: 16px; }
@media (max-width: 640px) { .lane { grid-template-columns: 1fr; gap: 4px; } }

/* launch watch */
.launch-add { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.launch-add input { min-height: 38px; border-radius: 9px; border: 1.5px solid var(--edge); padding: 0 10px; font: inherit; flex: 1 1 220px; }
.lterm { border: 1.5px solid var(--edge); border-radius: 14px; box-shadow: 0 3px 0 #DCD5C7; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: #FFF; }
.lterm + .lterm { margin-top: 12px; }
.lterm-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.lterm-head h3 { margin: 0; font-family: var(--display); font-size: 18px; }
.ltally { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.ltally div { border-radius: 10px; padding: 8px 10px; border: 1.5px solid var(--line); display: flex; flex-direction: column; }
.ltally b { font-family: var(--display); font-size: 24px; line-height: 1.1; }
.ltally .good { background: #ECFDF5; border-color: #A7F3D0; } .ltally .good b { color: #047857; }
.ltally .warn { background: #FFFBEB; border-color: #FDE68A; } .ltally .warn b { color: #92400E; }
.ltally .bad { background: #FEF2F2; border-color: #FECACA; } .ltally .bad b { color: #B91C1C; }
.ltally .plain b { color: var(--muted); }
.lai { display: grid; gap: 6px; }
.lai .row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13.5px; }
.lai .row > strong { min-width: 130px; font-family: var(--display); }
.suggest button { margin: 0 6px 6px 0; }

/* trends and reports */
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 14px; } /* tables open full width beneath a row (dashboard.js), so cards in a row stay equal */
.chart-card { margin: 0; background: #FFF; border: 1.5px solid var(--edge); border-radius: 14px; box-shadow: 0 3px 0 #DCD5C7; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.chart-card.wide { grid-column: 1 / -1; }
.chart-card figcaption { display: flex; flex-direction: column; gap: 2px; }
.chart-card figcaption strong { font-family: var(--display); font-size: 16px; }
.svg-host svg { width: 100%; height: auto; display: block; }
.chart-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.chart-tools button { font: inherit; font-family: var(--pixel); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 7px; border: 1.5px solid var(--edge); background: #FFF; box-shadow: 0 2px 0 #DCD5C7; cursor: pointer; }
.chart-tools button:active { transform: translateY(1px); box-shadow: none; }
.report-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.report-pick select { min-height: 36px; border-radius: 9px; border: 1.5px solid var(--edge); padding: 0 8px; font: inherit; font-weight: 700; background: #FFF; }
#export-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }
#export-links a { white-space: nowrap; }
@media (max-width: 640px) { .charts { grid-template-columns: 1fr; } }

.chart-table.span { grid-column: 1 / -1; background: #FFF; border: 1.5px solid var(--edge); border-radius: 14px; padding: 8px 12px; }
.derby-foot { margin: 0; }

/* industry questions */
.ind-topics { display: grid; gap: 14px; }
.ind-topic { background: #FFF; border: 1.5px solid var(--edge); border-radius: 14px; box-shadow: 0 3px 0 #DCD5C7; padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: start; }
.ind-topic h3 { margin: 0 0 4px; font-family: var(--display); font-size: 17px; }
.ind-topic .svg-host svg { max-width: 520px; }
.ind-q { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ind-q li { display: flex; flex-direction: column; gap: 3px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ind-q li:last-child { border-bottom: 0; }
.ind-setup { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 14px; margin-top: 10px; }
.ind-form { display: flex; flex-direction: column; gap: 6px; }
.ind-form input, .ind-form textarea { min-height: 38px; border-radius: 9px; border: 1.5px solid var(--edge); padding: 8px 10px; font: inherit; }
.ind-form label { font-weight: 700; font-size: 13px; }
@media (max-width: 760px) { .ind-topic { grid-template-columns: 1fr; } }

.ind-topic .lang { grid-column: 1 / -1; border-top: 1px dashed var(--edge); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.lang-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 14px; align-items: start; }
.lang-grid .svg-host svg { width: 100%; height: auto; }
.lang-grid > .svg-host { position: sticky; top: 12px; } /* the pills stay in view beside a long list */
.fanout { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 6px; }
@media (max-width: 760px) { .lang-grid { grid-template-columns: 1fr; } .lang-grid > .svg-host { position: static; } }
