/* BAG Finance — editorial advisory style in Boggess Advisory Group tokens. */
:root {
  --ink: #0A1A3C; --navy: #12244A; --navy2: #1C3A6E; --slate: #3A4860; --muted: #6B7A93;
  --line: #DCE3EC; --card: #F4F7FB; --paper: #FFFFFF;
  --teal: #0E7490; --teal-bright: #22D3EE; --teal-tint: #E6F3F6;
  --amber: #B45309; --amber-tint: #FDF3E7; --red: #B42318; --red-tint: #FCEBEA; --green: #15803D; --green-tint: #EAF6EE;
  --serif: Cambria, "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: Calibri, Carlito, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1200px; --gut: 32px; --r: 4px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--slate); font: 17px/1.6 var(--sans); }
img, svg { max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 2.4vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .88em; }
.small { font-size: .85rem; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 880px; }
.eyebrow { font: 700 .78rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin: 0 0 .9rem; }
.lede { font-size: 1.2rem; max-width: 46rem; }

/* ---------- header ---------- */
header.site { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.bar { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand .word { font: 700 1.02rem/1.1 var(--serif); white-space: nowrap; }
.brand small { display: block; font: 700 .68rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.mark { position: relative; width: 30px; height: 30px; flex: none; }
.mark i { position: absolute; inset: 0; }
.mark i:first-child { background: var(--ink); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.mark i:last-child { background: var(--teal); clip-path: polygon(0 0, 0 100%, 100% 100%); transform: scale(.62); transform-origin: 0 100%; }
nav#nav { display: flex; gap: 2px; flex-wrap: nowrap; margin-left: auto; }
nav#nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; padding: 22px 7px; border-bottom: 3px solid transparent; white-space: nowrap; }
nav#nav a:hover { color: var(--teal); }
nav#nav a[aria-current="page"] { border-bottom-color: var(--teal); }
.tools { display: flex; align-items: center; gap: 14px; flex: none; }
.switcher select { min-width: 150px; }
.tools form { margin: 0; }
.switcher select { font: 600 .9rem var(--sans); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 28px 6px 10px; background: var(--card); max-width: 180px; }
.menu { display: none; }
button.link { white-space: nowrap; background: none; border: 0; padding: 0; font: inherit; color: var(--teal); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: .92rem; }
button.link.danger { color: var(--red); }

.banner { padding: 12px var(--gut); font-weight: 600; text-align: center; }
.banner.ok { background: var(--green-tint); color: var(--green); }
.banner.bad { background: var(--red-tint); color: var(--red); }
.banner.watch { background: var(--amber-tint); color: var(--amber); }
.banner.inline { text-align: left; border-radius: var(--r); padding: 10px 12px; }

/* ---------- motif: corner triangles + arcs ---------- */
.motif { position: absolute; top: 0; right: 0; width: 132px; height: 132px; pointer-events: none; }
.motif i { position: absolute; inset: 0; }
.motif i:first-child { background: var(--ink); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.motif i:last-child { background: var(--teal); clip-path: polygon(45% 0, 100% 0, 100% 55%); }
.hero .motif i:first-child, .cta .motif i:first-child, .login-hero .motif i:first-child { background: var(--teal); }
.hero .motif i:last-child, .cta .motif i:last-child, .login-hero .motif i:last-child { background: var(--teal-bright); }
.arcs { position: absolute; top: -220px; right: -220px; width: 640px; height: 640px; border-radius: 50%; border: 1px solid rgba(34,211,238,.22); box-shadow: 0 0 0 70px transparent, 0 0 0 71px rgba(34,211,238,.14), 0 0 0 140px transparent, 0 0 0 141px rgba(34,211,238,.08); pointer-events: none; }

/* ---------- hero / page head ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #D7E0EE; padding: 112px 0 104px; }
.hero h1 { color: #fff; max-width: 15em; }
.hero .eyebrow { color: var(--teal-bright); }
.hero .lede { color: #C9D4E6; }
.page-head { position: relative; overflow: hidden; background: var(--card); border-bottom: 1px solid var(--line); padding: 64px 0 52px; }
.page-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); max-width: 22em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.actions form { margin: 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--teal); color: #fff; border: 1px solid var(--teal); border-radius: var(--r); padding: 12px 22px; font: 700 .95rem var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer; }
.btn:hover { background: #0B5F76; border-color: #0B5F76; color: #fff; }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn.ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn.ghost-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost-dark:hover { background: var(--ink); color: #fff; }
.btn.wide { width: 100%; justify-content: center; }

/* ---------- editorial sections ---------- */
.quote { padding: 88px 0 24px; }
blockquote { margin: 0; border-left: 4px solid var(--teal); padding: 4px 0 4px 32px; }
blockquote p { font: 700 clamp(1.5rem, 3vw, 2.3rem)/1.25 var(--serif); color: var(--ink); margin-bottom: .6em; }
blockquote footer { color: var(--muted); font-size: .95rem; }
.intro { padding: 64px 0; }
.two { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; }
.prose p { font-size: 1.08rem; }
.stats-band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 64px 0; }
.band-head { margin-bottom: 24px; }
.steps { padding: 96px 0 72px; }
.numbered { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.numbered li { border-top: 1px solid var(--ink); padding-top: 20px; }
.numbered .n { display: block; font: 700 2.6rem/1 var(--serif); color: var(--teal); margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.numbered.compact { grid-template-columns: repeat(2, 1fr); gap: 28px 48px; }
.numbered.compact .n { font-size: 1.6rem; margin-bottom: 8px; }
.questions { padding: 24px 0 96px; }
.qgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.q { display: grid; grid-template-columns: 9rem 1fr 2rem; gap: 20px; align-items: baseline; padding: 26px 8px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.q:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 28px; }
.q:nth-child(even) { padding-left: 28px; }
.q-area { font: 700 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.q-text { font: 700 1.15rem/1.35 var(--serif); }
.q .arrow { color: var(--teal); font-size: 1.3rem; transition: transform .15s; }
.q:hover .arrow { transform: translateX(4px); }
.q:hover .q-text { color: var(--teal); }
.insights { background: var(--card); border-top: 1px solid var(--line); padding: 88px 0; }
.row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.row-head h2 { margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 12px; }
.cards.three { margin: 24px 0; }
.icard { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 24px 24px 22px; text-decoration: none; color: var(--slate); min-height: 230px; }
a.icard:hover { border-top-color: var(--teal); }
a.icard:hover h3 { color: var(--teal); }
.icard .kind { font: 700 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.icard h3 { font-size: 1.3rem; margin-bottom: 4px; }
.icard .by { color: var(--muted); font-size: .92rem; margin-bottom: 12px; }
.icard ul { padding-left: 1.1em; margin: 0 0 1em; }
.icard > a { margin-top: auto; font-weight: 700; }
.icard.plain { min-height: 0; }
.tags { margin-top: auto; display: flex; gap: 8px; }
.tags span, .chip { display: inline-block; font: 700 .7rem var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; background: var(--teal-tint); color: var(--teal); vertical-align: middle; }
.chip.good { background: var(--green-tint); color: var(--green); }
.chip.watch { background: var(--amber-tint); color: var(--amber); }
.cta { position: relative; overflow: hidden; background: var(--ink); color: #C9D4E6; padding: 88px 0; }
.cta h2 { color: #fff; }
.cta .eyebrow { color: var(--teal-bright); }
.cta.slim { padding: 64px 0; margin-top: 32px; }
.cta a:not(.btn) { color: var(--teal-bright); }
.quick { padding-left: 1.2em; }
.quick li { margin-bottom: .4em; }

/* ---------- stat tiles ---------- */
.stats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stats.four { grid-template-columns: repeat(4, 1fr); }
.stats.three { grid-template-columns: repeat(3, 1fr); margin: 20px 0 28px; }
.stats.two { grid-template-columns: repeat(2, 1fr); margin-bottom: 20px; }
.stat { background: var(--paper); padding: 22px 24px; position: relative; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; }
.stat.tone-good::before { background: var(--green); }
.stat.tone-watch::before { background: var(--amber); }
.stat.tone-bad::before { background: var(--red); }
.stat-k { font: 700 .74rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.stat-v { font: 700 2.3rem/1.05 var(--serif); color: var(--ink); margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.stat .unit, .big .unit { font: 600 .95rem var(--sans); color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.stat-s { font-size: .9rem; margin: 0; }
.stat-t { font-size: .8rem; color: var(--muted); margin: 6px 0 0; }
.stat.is-missing .stat-v { color: var(--line); }
.stat.is-missing .stat-s { color: var(--muted); font-style: italic; }
.stat.tone-good .stat-v { color: var(--green); }
.stat.tone-bad .stat-v { color: var(--red); }
.stat.tone-watch .stat-v { color: var(--amber); }

/* ---------- dashboard ---------- */
.block { padding-top: 56px; padding-bottom: 8px; }
.countdown { display: grid; grid-template-columns: 5fr 7fr; gap: 0; border: 1px solid var(--line); margin-bottom: 28px; }
.countdown > div:first-child { background: var(--ink); color: #C9D4E6; padding: 36px 36px 32px; position: relative; }
.countdown > div:first-child .stat-k { color: var(--teal-bright); }
.countdown .big { font: 700 clamp(4rem, 9vw, 7.2rem)/1 var(--serif); color: #fff; margin: 8px 0 14px; font-variant-numeric: tabular-nums; }
.countdown .big .unit { color: #9FB0CC; font-size: 1.2rem; }
.countdown.tone-bad > div:first-child { box-shadow: inset 6px 0 0 var(--red); }
.countdown.tone-watch > div:first-child { box-shadow: inset 6px 0 0 var(--amber); }
.countdown.tone-good > div:first-child { box-shadow: inset 6px 0 0 var(--green); }
.countdown-side { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.charts { display: grid; gap: 24px; margin-bottom: 24px; }
.charts.two { grid-template-columns: 1fr 1fr; }
.chartbox { margin: 0 0 24px; border: 1px solid var(--line); padding: 16px 16px 8px; background: var(--paper); overflow-x: auto; position: relative; }
.charts .chartbox { margin: 0; }
.chartbox figcaption { font: 700 .74rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
svg.chart { display: block; width: 100%; height: auto; max-height: 330px; min-width: 520px; }
svg.chart text { font-family: var(--sans); }
svg.chart .ax { font-size: 11px; fill: var(--muted); }
svg.chart .lbl { font-size: 12px; font-weight: 700; }
.empty { border: 1px dashed var(--line); background: var(--card); padding: 28px; margin-bottom: 28px; }
.empty ul { padding-left: 1.1em; }

/* ---------- tables ---------- */
.tablebox { position: relative; border: 1px solid var(--line); overflow-x: auto; margin-bottom: 24px; background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
caption { text-align: left; font: 700 .74rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 14px 16px 6px; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--ink); color: #fff; font: 700 .76rem var(--sans); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
tbody tr:nth-child(even) td, tbody tr:nth-child(even) th { background: var(--card); }
tbody th { color: var(--ink); font-weight: 700; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.src { color: var(--muted); font-size: .85rem; max-width: 18rem; }
.row-actions { white-space: nowrap; display: flex; gap: 14px; align-items: center; }
.row-actions form { margin: 0; }
td.tone-good { color: var(--green); } td.tone-bad { color: var(--red); } td.tone-watch { color: var(--amber); }
table.compare td, table.compare th { padding: 14px 16px; }
table.grid input, table.grid select { width: 100%; min-width: 5.2rem; border: 1px solid transparent; background: transparent; padding: 6px; font: inherit; font-size: .9rem; }
table.grid td:first-child input { min-width: 11rem; }
table.grid input:hover, table.grid input:focus, table.grid select:focus { border-color: var(--line); background: #fff; }
table.grid td { padding: 3px 4px; }
table.grid input.cell { text-align: right; font-variant-numeric: tabular-nums; }
table.grid tfoot th, table.grid tfoot td { background: var(--card); font-weight: 700; padding: 9px 8px; }
table.grid tfoot tr.end td, table.grid tfoot tr.end th { background: var(--teal-tint); color: var(--ink); }
table.grid tfoot td.tone-watch { background: var(--amber-tint); color: var(--amber); }
table.grid tfoot td.tone-bad { background: var(--red-tint); color: var(--red); }
.lowpoint { font: 700 1.25rem var(--serif); color: var(--ink); margin: 8px 0 16px; }

/* ---------- forms ---------- */
.two-col { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: start; }
.two-col > *, .two > *, .charts > *, .countdown > * { min-width: 0; }
.panel { border: 1px solid var(--line); background: var(--paper); padding: 26px 26px 22px; margin-bottom: 24px; }
.panel h2 { font-size: 1.35rem; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.field label, legend, summary { font-weight: 700; color: var(--ink); font-size: .93rem; }
.field small { color: var(--muted); font-size: .8rem; }
input, select, textarea { font: inherit; color: var(--ink); border: 1px solid #C3CDDB; border-radius: var(--r); padding: 9px 11px; background: #fff; width: 100%; }
input[type="checkbox"] { width: auto; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: 2px solid var(--teal-tint); }
fieldset { border: 0; border-top: 1px solid var(--line); padding: 16px 0 0; margin: 0 0 8px; }
details { border-top: 1px solid var(--line); padding: 14px 0; margin-bottom: 8px; }
summary { cursor: pointer; margin-bottom: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.inline input[type="file"] { flex: 1; min-width: 200px; }
.inline-fields { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 16px; align-items: end; }
.inline-fields .field { margin: 0; }
.check { display: flex; gap: 10px; align-items: center; margin: 4px 0 16px; font-size: .95rem; }
.notes { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; font-size: .9rem; }
.notes ul { margin: 0; padding-left: 1.1em; }

/* ---------- default alive ---------- */
.verdict { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 18px; align-items: baseline; border-left: 6px solid var(--muted); padding: 6px 0 6px 20px; margin-bottom: 18px; }
.verdict-k { font: 700 .76rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); grid-row: 1; }
.verdict-v { font: 700 3rem/1 var(--serif); color: var(--ink); grid-row: 2; }
.verdict-s { grid-row: 2; font-size: 1.05rem; }
.verdict.tone-good { border-color: var(--green); } .verdict.tone-good .verdict-v { color: var(--green); }
.verdict.tone-bad { border-color: var(--red); } .verdict.tone-bad .verdict-v { color: var(--red); }
.verdict.tone-watch { border-color: var(--amber); } .verdict.tone-watch .verdict-v { color: var(--amber); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0; }
.facts div { background: var(--card); padding: 14px 16px; }
.facts dt { font: 700 .72rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font: 700 1.3rem var(--serif); color: var(--ink); }
.result.loading { opacity: .6; }

/* ---------- update / checklist ---------- */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: grid; grid-template-columns: 1.6rem 1fr auto; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.checks .tick { font-weight: 700; }
.checks li.ok .tick { color: var(--green); }
.checks li.no .tick { color: var(--red); }
pre.md { white-space: pre-wrap; word-wrap: break-word; background: var(--card); border: 1px solid var(--line); padding: 18px; font: .9rem/1.55 var(--mono); color: var(--ink); max-height: 640px; overflow: auto; margin: 0; }
.checklist ol { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.checklist li { border-bottom: 1px solid var(--line); }
.checklist label { display: grid; grid-template-columns: auto 2rem 1fr; gap: 10px; align-items: baseline; padding: 12px 0; cursor: pointer; }
.checklist .n { font: 700 1.05rem var(--serif); color: var(--teal); }
.checklist input:checked ~ span:last-child { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.progress { height: 6px; background: var(--line); }
.progress span { display: block; height: 100%; background: var(--teal); }
.w0{width:0}.w1{width:5%}.w2{width:10%}.w3{width:15%}.w4{width:20%}.w5{width:25%}.w6{width:30%}.w7{width:35%}.w8{width:40%}.w9{width:45%}.w10{width:50%}
.w11{width:55%}.w12{width:60%}.w13{width:65%}.w14{width:70%}.w15{width:75%}.w16{width:80%}.w17{width:85%}.w18{width:90%}.w19{width:95%}.w20{width:100%}

/* ---------- PRD document ---------- */
.doc { max-width: 920px; }
.doc h1 { font-size: 2rem; }
.doc h2 { font-size: 1.5rem; margin-top: 2.2em; padding-top: .8em; border-top: 1px solid var(--line); }
.doc h3 { margin-top: 1.6em; color: var(--teal); }
.doc table { display: block; overflow-x: auto; margin: 1em 0 1.6em; border: 1px solid var(--line); font-size: .92rem; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.doc code { background: var(--card); padding: 1px 5px; border-radius: 2px; }
.doc li { margin-bottom: .3em; }

/* ---------- footer ---------- */
footer.site { margin-top: 96px; background: var(--ink); color: #9FB0CC; padding: 56px 0 0; }
.foot { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 36px; }
.foot-brand { font: 700 1.2rem var(--serif); color: #fff; margin-bottom: 6px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 8px 40px; }
.foot-links a { color: #D7E0EE; text-decoration: none; }
.foot-links a:hover { color: var(--teal-bright); }
.legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; padding-bottom: 22px; font-size: .82rem; }

/* ---------- login ---------- */
.login-page { background: var(--ink); }
.login { min-height: 100vh; display: grid; grid-template-columns: 7fr 5fr; }
.login-hero { position: relative; overflow: hidden; padding: 12vh 6vw; color: #C9D4E6; display: flex; flex-direction: column; justify-content: center; }
.login-hero h1 { color: #fff; max-width: 12em; }
.login-hero .eyebrow { color: var(--teal-bright); }
.login-form { background: var(--paper); display: flex; align-items: center; justify-content: center; padding: 32px; }
.login-form .panel { width: 100%; max-width: 400px; border: 0; padding: 0; }

/* ---------- responsive ---------- */

/* books dashboards */
.subnav { background: var(--card); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 4px 18px; overflow-x: auto; scrollbar-width: thin; }
.subnav a { color: var(--slate); text-decoration: none; font-weight: 600; font-size: .88rem; padding: 12px 2px; border-bottom: 2px solid transparent; white-space: nowrap; }
.subnav a:hover { color: var(--teal); }
.subnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--teal); }
table.mtable th[scope="row"], table.catalog th[scope="row"] { text-align: left; font-weight: 600; min-width: 14rem; }
.mname { display: block; }
.mformula { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); letter-spacing: 0; text-transform: none; white-space: normal; }
td.num .mformula { text-align: right; max-width: 18rem; margin-left: auto; }
td.tone-good { color: var(--green); }
td.tone-bad { color: var(--red); }
td.tone-watch { color: var(--amber); }
table.stmt th[scope="row"] { text-align: left; font-weight: 400; min-width: 16rem; }
table.stmt tr.k-head th { background: var(--card); font: 700 .74rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); text-align: left; padding-top: 14px; }
table.stmt tr.k-line th { padding-left: 28px; color: var(--slate); }
table.stmt tr.k-sub th, table.stmt tr.k-sub td { font-weight: 600; border-top: 1px solid var(--line); }
table.stmt tr.k-total th, table.stmt tr.k-total td { font-weight: 700; color: var(--ink); border-top: 2px solid var(--ink); background: var(--teal-tint); }
table.stmt tr.k-check th, table.stmt tr.k-check td { font-style: italic; color: var(--muted); }
.srcline { font-size: .82rem; font-style: italic; color: var(--muted); margin: 8px 0 0; }

/* dashboards */
.alert { border-left: 4px solid var(--muted); background: var(--card); padding: 12px 16px; margin: 0 0 12px; font-size: .95rem; }
.alert.tone-bad { border-color: var(--red); background: var(--red-tint); }
.alert.tone-watch { border-color: var(--amber); background: var(--amber-tint); }
.alert.tone-good { border-color: var(--green); background: var(--green-tint); }
.dash-back { margin: 0 0 16px; font-size: .9rem; }
.hub-group { font-size: 1.25rem; margin: 32px 0 12px; }
.hub { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.hub a { display: grid; grid-template-columns: 2.2rem 1fr; gap: 2px 8px; height: 100%; padding: 16px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; color: var(--ink); }
.hub a:hover { border-color: var(--teal); box-shadow: 0 2px 10px rgba(10,26,60,.08); }
.hub-n { grid-row: span 3; font: 700 1.4rem/1 var(--serif); color: var(--teal); }
.hub-t { font-weight: 700; }
.hub-q { color: var(--slate); font-size: .9rem; }
.hub-h { font-size: .85rem; color: var(--teal); font-weight: 600; margin-top: 6px; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 16px; font-weight: 600; }
@media (max-width: 1100px) {
  .numbered { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1240px) {
  .bar { flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .menu { display: inline-block; margin-left: auto; background: none; border: 1px solid var(--ink); border-radius: var(--r); padding: 6px 12px; font: 700 .9rem var(--sans); color: var(--ink); cursor: pointer; }
  nav#nav { display: none; width: 100%; flex-direction: column; margin: 0; }
  nav#nav.open { display: flex; }
  nav#nav a { padding: 10px 4px; border-bottom: 1px solid var(--line); }
  nav#nav a[aria-current="page"] { border-bottom-color: var(--teal); color: var(--teal); }
  .tools { width: 100%; justify-content: space-between; }
}
@media (max-width: 900px) {
  :root { --gut: 16px; }
  body { font-size: 16px; }
  .switcher select { max-width: 70vw; }
  .hero { padding: 72px 0 64px; }
  .two, .two-col, .countdown, .charts.two, .login { grid-template-columns: 1fr; gap: 28px; }
  .stats.four, .stats.three, .countdown-side { grid-template-columns: 1fr 1fr; }
  .qgrid { grid-template-columns: 1fr; }
  .q, .q:nth-child(odd), .q:nth-child(even) { grid-template-columns: 1fr 1.5rem; border-right: 0; padding: 20px 4px; }
  .q-area { grid-column: 1 / -1; }
  .checklist ol, .numbered.compact { grid-template-columns: 1fr; }
  .inline-fields { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .motif { width: 80px; height: 80px; }
  .login-hero { padding: 56px 24px 40px; }
}
@media (max-width: 560px) {
  .numbered, .cards { grid-template-columns: 1fr; }
  .stats.four, .stats.three, .stats.two, .countdown-side, .grid2 { grid-template-columns: 1fr; }
  .stat-v { font-size: 2rem; }
  .verdict { grid-template-columns: 1fr; }
  .verdict-s { grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  header.site, footer.site, .actions, form button, .banner { display: none !important; }
  .hero, .cta, .countdown > div:first-child { background: #fff !important; color: var(--ink) !important; }
}

/* reporting period bar */
.periodbar { background: var(--paper); border-bottom: 1px solid var(--line); font-size: .86rem; }
.periodbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 10px; padding-bottom: 10px; }
.periodbar .pb-title { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; color: var(--teal); }
.periodbar label { display: inline-flex; align-items: center; gap: 6px; color: var(--slate); font-weight: 600; }
.periodbar input[type="month"] { font: inherit; padding: 4px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); width: 10.5em; }
.periodbar button { font: inherit; font-weight: 600; cursor: pointer; border-radius: 4px; padding: 4px 10px; border: 1px solid var(--teal); background: var(--teal); color: #fff; }
.periodbar .pb-presets { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.periodbar .pb-chip { background: var(--card); color: var(--slate); border-color: var(--line); }
.periodbar .pb-chip.on { background: var(--teal-tint); color: var(--ink); border-color: var(--teal); }
.periodbar .pb-now { color: var(--muted); margin-left: auto; }
@media (max-width: 640px) { .periodbar .pb-now { margin-left: 0; width: 100%; } }

/* ---- shell: entity rail + main ---- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); align-items: start; }
.rail { position: sticky; top: 72px; max-height: calc(100vh - 72px); overflow-y: auto; border-right: 1px solid var(--line); background: var(--card); padding: 18px 0 24px; font-size: .9rem; }
.rail-box > summary { list-style: none; cursor: pointer; padding: 0 18px 10px; font: 700 .72rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.rail-box > summary::-webkit-details-marker { display: none; }
.rail-now { display: none; }
.tree { list-style: none; margin: 0; padding: 0; }
.tree li a { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; padding: 7px 18px; color: var(--slate); text-decoration: none; border-left: 3px solid transparent; }
.tree li.d1 a { padding-left: 38px; position: relative; }
.tree li.d1 a::before { content: ""; position: absolute; left: 24px; top: 0; bottom: 50%; width: 9px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tree li a:hover { background: #fff; color: var(--ink); }
.tree li.on a { border-left-color: var(--teal); background: #fff; color: var(--ink); }
.t-short { font-weight: 700; color: var(--ink); min-width: 3.2em; }
.t-name { font-size: .86rem; }
.t-note { grid-column: 2; font-size: .76rem; color: var(--muted); line-height: 1.3; }
.rail-foot { margin: 14px 18px 0; font-size: .82rem; }
.co-now { font-size: .86rem; color: var(--muted); max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-step { font: 700 .72rem/2.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 0; }
  .rail-box > summary { padding-bottom: 0; }
  .rail-box[open] > summary { padding-bottom: 8px; }
  .rail-now { display: inline; margin-left: 8px; color: var(--slate); letter-spacing: 0; text-transform: none; font-weight: 400; }
  .tree li a { padding: 6px 16px; }
  .tree li.d1 a { padding-left: 36px; }
  .co-now { display: none; }
}

/* ---- seat flow and landing pages ---- */
.flow { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.flow a { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--slate); height: 100%; }
.flow li.on a { border-color: var(--teal); background: var(--teal-tint); }
.flow-n { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.flow li.on .flow-n { background: var(--teal); }
.flow-l { font-weight: 700; color: var(--ink); }
.flow-j { font-size: .84rem; line-height: 1.35; }
@media (max-width: 700px) { .flow { grid-template-columns: 1fr; } }
.h-sub { font: 700 1.15rem/1.3 var(--serif); color: var(--ink); margin: 28px 0 10px; }
.asks { margin: 0; padding: 0; list-style: none; }
.asks li { border-left: 4px solid var(--muted); padding: 8px 14px; margin-bottom: 8px; background: var(--card); }
.asks li.tone-bad { border-color: var(--red); background: var(--red-tint); }
.asks li.tone-watch { border-color: var(--amber); background: var(--amber-tint); }
.seat-pages { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; list-style: none; }
.close-steps { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 0 0 18px; }
.close-steps li a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem; }
.close-steps li.st-fail a { border-color: var(--red); color: var(--red); background: var(--red-tint); }
.close-steps li.st-watch a { border-color: var(--amber); color: var(--amber); background: var(--amber-tint); }
.close-steps li.st-pass a { border-color: var(--green); color: var(--green); background: var(--green-tint); }

/* ---- controls ---- */
.chip { display: inline-block; padding: 1px 9px; border-radius: 999px; font: 700 .74rem/1.6 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--muted); white-space: nowrap; }
.chip.st-pass { background: var(--green); }
.chip.st-watch { background: var(--amber); }
.chip.st-fail { background: var(--red); }
.chip.st-na { background: #9AA6B8; }
.alert.tone-fail { border-color: var(--red); background: var(--red-tint); }
.alert.tone-pass { border-color: var(--green); background: var(--green-tint); }
.alert.tone-info, .alert.tone-na { border-color: var(--teal); }
table.ctl { font-size: .9rem; }
table.ctl caption a { color: inherit; }
table.ctl td { vertical-align: top; }
table.ctl tr.r-bad td { color: var(--red); }
table.ctl tr.r-bad td a { color: var(--red); }
table.ctl tr.r-watch td { background: var(--amber-tint); }
table.ctl tr.r-group td { font-weight: 700; color: var(--ink); background: var(--card); }
table.ctl tr.r-detail td { font-family: var(--mono); font-size: .8rem; color: var(--slate); background: var(--card); padding-top: 2px; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin: 0 0 16px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.filters label { display: grid; gap: 3px; font-size: .8rem; font-weight: 700; color: var(--slate); }
.filters select, .filters input { font: inherit; font-weight: 400; font-size: .92rem; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; max-width: 100%; }
.filters button { font: 700 .9rem var(--sans); padding: 7px 16px; border-radius: var(--r); border: 1px solid var(--teal); background: var(--teal); color: #fff; cursor: pointer; }
@media print { .rail, .filters, .flow { display: none !important; } .shell { display: block; } }

.tablebox > p.muted { font-size: .86rem; margin: 8px 0 0; padding: 0 2px; }
