/* assess: its own layout rules, coloured by Drewcotech Yummy Design.
   Pages load wordmark.css ("assess" in Jost), yummy.css (a copy of C:\Srvr\Projects\YummyDesign\yummy.css; re-copy to
   update), then this file. The variables are aliases of the Yummy roles, so layouts are unchanged and light/dark follow
   the system. The "Yummy layer" at the end restyles shared pieces; it never touches the test screen's answer choices,
   and it stands aside in high-contrast mode. */

:root {
  --brand: var(--md-primary); --brand-2: color-mix(in srgb, var(--md-primary) 70%, #ffffff); --brand-ink: var(--md-on-primary);
  --accent: var(--md-tertiary); --bg: var(--md-surface); --panel: var(--md-surface-container-low); --ink: var(--md-on-surface);
  --muted: var(--md-on-surface-variant); --line: var(--md-outline-variant);
  --good: var(--md-on-success-container); --good-bg: var(--md-success-container);
  --warn: var(--md-on-tertiary-container); --warn-bg: var(--md-tertiary-container);
  --bad: var(--md-on-error-container); --bad-bg: var(--md-error-container); --info-bg: var(--md-primary-container);
  --focus: var(--md-primary); --radius: var(--shape-xl); --shadow: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.5 var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}
a { color: var(--brand); }
a:hover { text-decoration: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1 { font-size: 1.6rem; margin: 0 0 1rem; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; margin: 1.5rem 0 .75rem; }
h3 { font-size: 1.05rem; margin: 1.25rem 0 .5rem; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.error { color: var(--bad); font-weight: 600; }
.empty { color: var(--muted); font-style: italic; padding: 1rem 0; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* --- brand ----------------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: inherit; }
.brand-name { font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; }
.brand-slogan { color: var(--muted); font-size: .85rem; font-style: italic; }

/* --- buttons and forms ------------------------------------------------------ */
.button, button.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem 1.1rem; border-radius: 8px; border: 1px solid transparent;
  background: var(--brand); color: var(--brand-ink); font: 600 .95rem var(--font);
  cursor: pointer; text-decoration: none; min-height: 40px;
}
.button:hover { filter: brightness(1.08); }
.button:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button.danger { background: var(--bad); }
.button.warn { background: var(--accent); color: #1f1300; }
.button.small { padding: .3rem .7rem; min-height: 32px; font-size: .85rem; }
.button.wide { width: 100%; }
button.link { background: none; border: 0; color: var(--brand); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
form.inline { display: inline; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }

label { display: block; font-weight: 600; font-size: .92rem; margin: 0 0 .9rem; }
label .muted { font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date],
input[type=datetime-local], input:not([type]), select, textarea {
  display: block; width: 100%; margin-top: .3rem; padding: .55rem .7rem;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink);
  font: 400 1rem var(--font);
}
textarea { min-height: 7rem; resize: vertical; }
input[type=checkbox], input[type=radio] { width: 1.1rem; height: 1.1rem; accent-color: var(--brand); }
label.check { display: flex; gap: .5rem; align-items: center; font-weight: 500; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1rem .25rem; margin: 0 0 1rem; }
legend { font-weight: 700; padding: 0 .4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1rem; }
@media (max-width: 760px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* --- cards, flash, badges --------------------------------------------------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; box-shadow: var(--shadow); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 0 0 1.25rem; }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.flash { padding: .75rem 1rem; border-radius: 8px; margin: 0 0 1rem; font-weight: 500; }
.flash-ok { background: var(--good-bg); color: var(--good); }
.flash-error { background: var(--bad-bg); color: var(--bad); }
.flash-info { background: var(--info-bg); }
.badge { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--line); color: var(--ink); white-space: nowrap; }
.badge-good { background: var(--good-bg); color: var(--good); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.level { display: inline-block; padding: .1rem .55rem; border-radius: 6px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.level-1 { background: #fee2e2; color: #991b1b; }
.level-2 { background: #fef3c7; color: #92400e; }
.level-3 { background: #dcfce7; color: #166534; }
.level-4 { background: #dbeafe; color: #1e40af; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin: 0 0 1.5rem; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.stat-value { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; }
.stat-label { color: var(--muted); font-size: .85rem; }
.code-big { font: 800 2.2rem var(--mono); letter-spacing: .06em; color: var(--brand); user-select: all; }
meter, progress { width: 100%; height: .8rem; }

/* --- tables ----------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin: 0 0 1.25rem; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: .6rem .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: color-mix(in srgb, var(--panel) 92%, var(--ink)); }
table.data tr:last-child td { border-bottom: 0; }
table.data tr.attention td { background: color-mix(in srgb, var(--warn-bg) 60%, transparent); }
table.data tr.alarm td { background: color-mix(in srgb, var(--bad-bg) 70%, transparent); }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* --- staff layout ----------------------------------------------------------- */
.topbar { display: flex; align-items: center; gap: 1.5rem; padding: .7rem 1.25rem; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.who { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.who-name { font-weight: 700; }
.who-role { font-size: .8rem; color: var(--muted); }
.account { display: flex; gap: 1rem; align-items: center; font-size: .9rem; }
.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100vh - 110px); }
.sidenav { padding: 1rem .75rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: .15rem; }
.sidenav a { padding: .5rem .75rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.sidenav a:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); }
.sidenav a.active { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); font-weight: 700; }
.content { padding: 1.5rem 2rem 3rem; max-width: 1280px; }
.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 1.25rem; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidenav { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .content { padding: 1rem; }
  .who { display: none; }
  .brand-slogan { display: none; }
}
.toolbar { display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end; margin: 0 0 1rem; }
.toolbar label { margin: 0; }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin: 0 0 1.25rem; flex-wrap: wrap; }
.tabs a { padding: .55rem .9rem; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; }
.tabs a.active { color: var(--brand); border-color: var(--brand); }
details.panel summary { cursor: pointer; font-weight: 700; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1.25rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.preview { border: 1px dashed var(--line); border-radius: 8px; padding: .75rem 1rem; background: var(--bg); }
.secret { font-family: var(--mono); word-break: break-all; background: var(--bg); padding: .5rem .75rem; border-radius: 6px; border: 1px solid var(--line); user-select: all; }

/* --- landing & centered cards ----------------------------------------------- */
.landing { background: radial-gradient(1200px 600px at 50% -10%, color-mix(in srgb, var(--brand-2) 22%, transparent), transparent), var(--bg); }
.landing-main { max-width: 860px; margin: 0 auto; padding: 4rem 1.25rem 2rem; text-align: center; }
.hero-logo { filter: drop-shadow(0 6px 18px rgba(15, 118, 110, .35)); }
.wordmark { font-size: 3.4rem; font-weight: 900; letter-spacing: -.05em; margin: .5rem 0 0; }
.slogan { font-size: 1.25rem; color: var(--muted); font-style: italic; margin: 0 0 2.5rem; }
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 640px) { .doors { grid-template-columns: 1fr; } }
.door { display: flex; flex-direction: column; gap: .5rem; padding: 1.75rem; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); text-align: left; transition: transform .12s; }
.door:hover { transform: translateY(-2px); border-color: var(--brand); }
.door-title { font-size: 1.35rem; font-weight: 800; color: var(--brand); }
.door-text { color: var(--muted); }
.center-card { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 1.5rem 1rem; }
.center-card .card { width: 100%; max-width: 440px; }
.center-card .card .brand { margin-bottom: 1.25rem; }
.student-card h1 { font-size: 1.45rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin: 0 0 1.25rem; font-size: 1.05rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.rules { color: var(--muted); padding-left: 1.2rem; }
.instructions { margin-bottom: .75rem; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--brand); animation: spin 1s linear infinite; margin: 1.25rem auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } .door { transition: none; } }

/* --- the test ---------------------------------------------------------------- */
body.testing { display: flex; flex-direction: column; height: 100vh; overflow: hidden; user-select: none; -webkit-user-select: none; }
body.testing input, body.testing textarea { user-select: text; -webkit-user-select: text; }
.watermark { position: fixed; inset: 0; pointer-events: none; z-index: 50; background-repeat: repeat; }
.test-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 1rem; background: var(--brand); color: #fff; }
.test-title { display: flex; align-items: center; gap: .6rem; font-weight: 700; min-width: 0; }
.test-title span#t-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.segment { font-weight: 500; opacity: .85; font-size: .88rem; padding-left: .6rem; border-left: 1px solid rgba(255,255,255,.4); white-space: nowrap; }
.test-tools { display: flex; align-items: center; gap: .75rem; }
.test-bar .button.secondary { color: #fff; border-color: rgba(255, 255, 255, .55); }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; }
.timer.low { color: #fde68a; }
.qnav { display: flex; gap: .3rem; padding: .5rem 1rem; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--panel); }
.qnav .q { min-width: 2.2rem; height: 2.2rem; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-weight: 600; cursor: pointer; }
.qnav .q.answered { background: color-mix(in srgb, var(--brand) 14%, var(--panel)); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.qnav .q.current { outline: 2px solid var(--brand); outline-offset: 1px; }
.qnav .q.locked { opacity: .4; cursor: not-allowed; }
.test-main { flex: 1; overflow: auto; display: grid; grid-template-columns: minmax(0, 860px); justify-content: center; gap: 1.5rem; padding: 1.5rem 1.25rem 2rem; }
.test-main.with-stim { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 1500px; margin: 0 auto; width: 100%; }
@media (max-width: 900px) { .test-main.with-stim { grid-template-columns: 1fr; } }
.stimulus { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; overflow: auto; }
.stimulus h2 { margin-top: 0; }
.item { font-size: 1.1rem; }
.stem { margin-bottom: 1.25rem; }
.stem p { margin: 0 0 .75rem; }
.choices { display: flex; flex-direction: column; gap: .6rem; }
.choice { display: flex; align-items: flex-start; gap: .75rem; padding: .8rem 1rem; border: 2px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; font-weight: 400; margin: 0; }
.choice:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); }
.choice:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--panel)); }
.choice input { margin-top: .3rem; flex: none; }
.letter { font-weight: 800; color: var(--brand); flex: none; width: 1.2rem; }
.answer-line { max-width: 22rem; font-size: 1.15rem; }
.answer-area { min-height: 16rem; font-size: 1.05rem; line-height: 1.6; }
.count, .hint { color: var(--muted); font-size: .88rem; margin-top: .4rem; }
.test-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; border-top: 1px solid var(--line); background: var(--panel); }
.saved { color: var(--muted); font-size: .9rem; flex: 1; text-align: center; }
.button.submit { background: var(--good); }
.loading, .done-note { color: var(--muted); padding: 2rem 0; text-align: center; }
.stim-table { border-collapse: collapse; margin: .5rem 0 1rem; }
.stim-table th, .stim-table td { border: 1px solid var(--line); padding: .35rem .7rem; text-align: left; }
blockquote { margin: .5rem 0 1rem; padding: .25rem 1rem; border-left: 4px solid var(--brand-2); color: var(--ink); }
.overlay { position: fixed; inset: 0; background: rgba(10, 15, 20, .55); display: grid; place-items: center; z-index: 100; padding: 1rem; }
.overlay-card { background: var(--panel); border-radius: 14px; padding: 1.75rem; max-width: 460px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.overlay-card h2 { margin-top: 0; }
body.blanked .test-main, body.blanked .qnav { visibility: hidden; }

body.large-text .item { font-size: 1.4rem; }
body.large-text .stimulus { font-size: 1.25rem; }
body.high-contrast { --bg: #000; --panel: #000; --ink: #fff; --line: #fff; --muted: #ddd; --brand: #ffd400; --brand-ink: #000; }
body.high-contrast .test-bar { color: #000; }

/* Nothing of a test survives a print dialog. */
@media print {
  body.testing * { display: none !important; }
  body.testing::after { content: "Printing is not allowed during a test."; display: block; font: 700 24px sans-serif; padding: 2rem; }
}

/* --- proctor board -------------------------------------------------------------- */
.board-head { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; margin: 0 0 1rem; }
.board-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.secure-ok { color: var(--good); font-weight: 700; }
.secure-held, .secure-lost, .secure-unverified { color: var(--bad); font-weight: 700; }
.secure-starting, .secure-verified { color: var(--warn); font-weight: 700; }
.live-dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--good); margin-right: .4rem; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.score-response { white-space: pre-wrap; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.25rem; font-size: 1.02rem; line-height: 1.6; max-height: 28rem; overflow: auto; }
.points { display: flex; gap: .5rem; flex-wrap: wrap; }
.points button { min-width: 3rem; }

/* --- charts (Assessmark) ---------------------------------------------------------
 * Line colours validated with the dataviz palette checker: #0d9488 on the light
 * surface, #0fa596 on the dark one (lightness band, chroma floor, >= 3:1 contrast).
 * The reference series is a neutral dashed line, never a status colour. */
:root { --chart-line: #0d9488; --chart-ref: #8a929c; --chart-grid: #e7eaee; --chart-axis: #5b6573; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --chart-line: #0fa596; --chart-ref: #7c8590; --chart-grid: #26303a; --chart-axis: #9aa6b2; }
}
:root[data-theme="dark"] { --chart-line: #0fa596; --chart-ref: #7c8590; --chart-grid: #26303a; --chart-axis: #9aa6b2; }
.chart-fig { margin: 0 0 1rem; overflow-x: auto; }
/* Drawn 780 units wide: about 1:1 in a typical content column, so text stays
   readable. On phones it scrolls sideways rather than shrinking to nothing. */
.chart { width: 100%; min-width: 600px; height: auto; display: block; overflow: visible; }
.chart-grid { stroke: var(--chart-grid); stroke-width: 1; }
.chart-axis { fill: var(--chart-axis); font: 12px var(--font); }
.chart-label { font-size: 13px; }
.chart-row { font-size: 13px; fill: var(--ink); }
.chart-line { fill: none; stroke: var(--chart-line); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-ref { fill: none; stroke: var(--chart-ref); stroke-width: 2; stroke-dasharray: 6 5; }
.chart-err { stroke: var(--chart-line); stroke-width: 2; opacity: .35; stroke-linecap: round; }
.chart-range { stroke: var(--chart-line); stroke-width: 8; opacity: .3; stroke-linecap: round; }
.chart-dot { fill: var(--chart-line); stroke: var(--panel); stroke-width: 2; pointer-events: none; }
.chart-hit { fill: transparent; cursor: default; }
.chart-hit:focus { outline: none; }
.chart-hit:focus-visible { stroke: var(--focus); stroke-width: 2; }
.chart-label { fill: var(--ink); font: 700 13px var(--font); }
.chart-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: .4rem; }
.chart-legend .key { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--chart-line); margin-right: .35rem; vertical-align: middle; }
.chart-legend .key-ref { border-top: 2px dashed var(--chart-ref); margin-left: .6rem; }
.chart-tip { position: fixed; z-index: 200; background: var(--ink); color: var(--panel); padding: .35rem .6rem; border-radius: 6px; font-size: .82rem; pointer-events: none; box-shadow: var(--shadow); white-space: nowrap; }
.level-5 { background: #ede9fe; color: #5b21b6; }
.score-card { text-align: center; }
.score-big { font-size: 3.2rem; font-weight: 900; letter-spacing: -.03em; color: var(--brand); line-height: 1.1; }
.score-unit { font-size: 1rem; color: var(--muted); font-weight: 600; }
.score-growth { font-size: 1.15rem; font-weight: 700; margin-top: .5rem; }

/* --- Drewcotech app switcher and the Drewcotech for Education button ------- */
.appswitch { display: flex; gap: .2rem; }
.appswitch a { padding: .3rem .65rem; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .88rem; }
.appswitch a:hover { color: var(--ink); }
.button.edu { background: #4338ca; color: #fff; }
@media (max-width: 860px) { .appswitch { display: none; } }

/* ---------------------------------------------------------------------------------------------------------------
   Yummy layer (shared pieces only; test-screen answer choices are left as they were; high-contrast mode wins)
   --------------------------------------------------------------------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--md-surface) 88%, transparent); backdrop-filter: blur(14px); border: 0; box-shadow: none; view-transition-name: yd-bar; }
.brand { display: inline-flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--md-on-surface); }
.brand img { display: none; }
.brand-name { font: 400 1.6rem/1 var(--font-brand); letter-spacing: .005em; color: var(--md-on-surface); }
.brand-slogan { font-size: .85rem; color: var(--md-on-surface-variant); }
.appswitch a { padding: 10px 14px; border-radius: var(--shape-full); color: var(--md-on-surface-variant); font-weight: 560; text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease), border-radius .35s var(--spring); }
.appswitch a:hover { background: color-mix(in srgb, var(--md-on-surface) 8%, transparent); color: var(--md-on-surface); }
.sidenav { background: var(--md-surface-container-low); border: 0; border-radius: var(--shape-xl); padding: 10px; margin: 12px; align-self: start; }
.sidenav a { border-radius: var(--shape-full); padding: 12px 16px; font-weight: 560; transition: background .2s var(--ease), color .2s var(--ease), border-radius .35s var(--spring); }
.sidenav a:hover { background: color-mix(in srgb, var(--md-on-surface) 8%, transparent); }
.sidenav a:active { border-radius: var(--shape-md); }
.sidenav a.active { background: var(--md-secondary-container); color: var(--md-on-secondary-container); view-transition-name: yd-rail-current; }
.content { view-transition-name: yd-content; }
.card, .panel { border: 0; border-radius: var(--shape-xl); box-shadow: none; }
.center-card .card { background: var(--md-surface-container-lowest); border-radius: var(--shape-xxl); box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 12px 40px rgb(0 0 0 / .08); }
.door { border: 0; border-radius: var(--shape-xl); background: var(--md-surface-container-low); transition: transform .45s var(--spring), border-radius .45s var(--spring), background .2s var(--ease); }
.door:hover { transform: translateY(-3px); border-radius: var(--shape-xxl); background: var(--md-surface-container); }
.wordmark, .hero h1.wordmark { font-family: var(--font-brand); font-weight: 400; letter-spacing: .005em; }   /* never bold Futura */
.hero-logo { filter: none; }
body:not(.high-contrast) .button, body:not(.high-contrast) button.button { border: 0; border-radius: var(--shape-full); min-height: 44px; padding: 0 22px; font-weight: 620;
  transition: background .2s var(--ease), border-radius .4s var(--spring), transform .4s var(--spring-fast); }
body:not(.high-contrast) .button:active { border-radius: var(--shape-md); transform: scale(.97); }
body:not(.high-contrast) .button.secondary { background: var(--md-secondary-container); color: var(--md-on-secondary-container); }
body:not(.high-contrast) .button.small { min-height: 34px; padding: 0 14px; }
input[type=datetime-local], input:not([type]), select, textarea, input[type=text], input[type=email], input[type=password], input[type=number], input[type=search] {
  border-radius: var(--shape-md); border-color: var(--md-outline); }
.badge { border: 0; border-radius: var(--shape-full); }
.flash { border: 0; border-radius: var(--shape-lg); }
.flash-ok { background: var(--md-inverse-surface); color: var(--md-inverse-on-surface); }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--md-surface-container); border: 0; border-radius: var(--shape-full); }
.tabs a { border: 0; border-radius: var(--shape-full); padding: 9px 18px; margin: 0; }
.tabs a.active { background: var(--md-primary); color: var(--md-on-primary); view-transition-name: yd-tab-current; }
.stat { border: 0; border-radius: var(--shape-xl); background: var(--md-surface-container-low); }
.table-wrap { border: 0; border-radius: var(--shape-xl); }