/* CFA Wall Street look (model survey's :root). System fonts only — no third-party requests. */
:root { --red: #DD0031; --red-dark: #940929; --cream: #FCF7E7; --ink: #2B2626; --muted: #6E6767; --line: #DEDAD5;
  --white: #fff; --blue: #004F71; --pale: #F6E3E8; --ok: #2F5A27; --okbg: #E3EEDF; --warnbg: #FFF1D6; --warn: #7A5300;
  --serif: Georgia, "Times New Roman", serif; --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--cream); color: var(--ink); }
body { font-family: var(--sans); font-size: 17px; line-height: 1.45; min-height: 100dvh; -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
.wrap { max-width: 520px; margin: 0 auto; padding: 18px 16px 48px; }
.wide { max-width: 900px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 36px; }
.kicker { color: var(--red); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0; }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 6.5vw, 34px); line-height: 1.15; margin: 14px 0 12px; }
h2 { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.25; margin: 10px 0 14px; }
h3 { font-size: 16px; margin: 16px 0 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; color: var(--muted); }
.card { background: var(--white); border-radius: 14px; padding: 16px; margin-top: 14px; }
.btn { display: block; width: 100%; font: inherit; font-weight: 600; color: var(--white); background: var(--red); border: 0; border-radius: 12px;
  padding: 16px; margin-top: 12px; cursor: pointer; text-align: center; text-decoration: none; min-height: 54px; }
.btn.alt { background: var(--white); color: var(--ink); border: 1.5px solid var(--line); }
.btn.blue { background: var(--blue); }
.btn.inline { display: inline-block; width: auto; padding: 10px 16px; min-height: 0; margin: 0; font-size: 15px; }
.btn:disabled { opacity: .55; cursor: default; }
.link { background: none; border: 0; color: var(--blue); font: inherit; font-size: 15px; text-decoration: underline; padding: 8px 0; cursor: pointer; }
.langpick .btn { font-size: 22px; padding: 22px; }
.langswitch { background: none; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; font-size: 14px; padding: 5px 12px; color: var(--ink); cursor: pointer; }
.section { color: var(--blue); font-weight: 600; font-size: 14px; margin-top: 8px; }
.progress { height: 6px; background: #EDE7DA; border-radius: 6px; overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: var(--red); transition: width .2s; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; min-height: 56px; cursor: pointer; }
.choice[aria-pressed="true"], .choice[aria-checked="true"] { border-color: var(--red); background: var(--pale); font-weight: 600; }
.box { flex: none; width: 22px; height: 22px; border: 2px solid var(--line); border-radius: 6px; background: var(--white); display: grid; place-items: center; font-size: 15px; color: var(--white); }
.choice[aria-checked="true"] .box { background: var(--red); border-color: var(--red); }
.navrow { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.navrow .btn { margin-top: 0; }
textarea, input[type=text], input[type=password], input[type=number], input[type=date], input[type=datetime-local], select {
  width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; }
textarea { min-height: 150px; resize: vertical; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: clamp(30px, 10vw, 44px); font-weight: 700; letter-spacing: .06em;
  text-align: center; background: var(--white); border: 2px dashed var(--red); border-radius: 14px; padding: 16px 8px; margin: 10px 0; user-select: all; }
.codeinput { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; font-size: 22px; }
.err { color: var(--red-dark); font-size: 15px; min-height: 22px; margin-top: 10px; }
.good { color: var(--ok); background: var(--okbg); border-radius: 12px; padding: 14px; margin-top: 12px; }
.warnbox { color: var(--warn); background: var(--warnbg); border-radius: 12px; padding: 12px 14px; margin-top: 10px; font-size: 15px; }
.redbox { color: var(--white); background: var(--red-dark); border-radius: 12px; padding: 12px 14px; margin-top: 10px; font-weight: 600; }
details { background: var(--white); border-radius: 12px; padding: 12px 14px; margin-top: 12px; }
details summary { font-weight: 600; cursor: pointer; color: var(--blue); }
details ul { margin: 10px 0 0; padding-left: 20px; } details li { margin-bottom: 6px; }
.testbar { position: sticky; top: 0; z-index: 9; text-align: center; font-weight: 700; font-size: 13px; letter-spacing: .08em; color: var(--ink); padding: 6px;
  background: repeating-linear-gradient(45deg, #FFD54F 0 14px, #FFF3C4 14px 28px); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.counter { text-align: right; font-size: 13px; color: var(--muted); margin-top: 4px; }
/* admin */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 4px; }
.tab { font: inherit; font-size: 14px; border: 1.5px solid var(--line); background: var(--white); border-radius: 999px; padding: 7px 13px; cursor: pointer; color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 74px; gap: 10px; align-items: center; padding: 4px 0; font-size: 14px; }
.track { height: 10px; background: #F0EDE9; border-radius: 6px; overflow: hidden; }
.track i { display: block; height: 100%; background: var(--red); }
.n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hiddenrow { color: var(--muted); font-style: italic; font-size: 14px; padding: 4px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.scroll { overflow-x: auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label.f { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 4px; }
.dupe { background: var(--warnbg); }
.near { background: #FFF8E6; }
.comment { border-left: 3px solid var(--line); padding: 6px 0 6px 12px; margin: 12px 0; white-space: pre-wrap; }
.tag { display: inline-block; font-size: 12px; border-radius: 999px; padding: 2px 8px; background: #E5EEF3; color: var(--blue); margin-right: 6px; }
.stage { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 24px; }
.big { font-family: var(--serif); font-size: clamp(48px, 12vw, 120px); font-weight: 700; line-height: 1.05; margin: 10px 0; }
.huge-btn { font-size: clamp(24px, 4vw, 40px); padding: 26px 60px; border-radius: 18px; width: auto; display: inline-block; }
@media (max-width: 520px) { .row { grid-template-columns: minmax(0, 1fr) 70px 64px; } .grid2 { grid-template-columns: 1fr; } }
@media print { .noprint { display: none !important; } body { background: #fff; } .card { border: 1px solid #ccc; break-inside: avoid; } }
.overlay { position: fixed; inset: 0; z-index: 20; background: var(--cream); overflow-y: auto; }
.anonlist { padding-left: 20px; } .anonlist li { margin-bottom: 10px; }
