/* BMEssentia platform: brand design system. Offline-safe: system fonts only, no external assets. */
:root {
  --navy-900: #0a1d30;
  --navy-800: #0f2a44;
  --navy-700: #163a5c;
  --navy-600: #1f4b73;
  --navy-line: rgba(250, 250, 247, 0.10);
  --orange: #ff8c00;
  --orange-deep: #e07a00;
  --amber: #ffb05c;
  --cream: #fafaf7;
  --paper: #f3f0e8;
  --ink: #1a1a1a;
  --ink-2: #44505c;
  --ink-3: #6f7a85;
  --line: #e4dfd3;
  --line-2: #d5cebd;
  --white: #ffffff;
  --good: #2e7d4f;
  --good-bg: #e6f2ea;
  --warn: #a35a00;
  --warn-bg: #fff1dc;
  --bad: #b3261e;
  --bad-bg: #fbe7e5;
  --info-bg: #e8eef5;
  --serif: Georgia, "IBM Plex Serif", "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  --r: 14px;
  --r-sm: 9px;
  --shadow: 0 1px 2px rgba(10, 29, 48, .05), 0 8px 28px rgba(10, 29, 48, .07);
  --shadow-lg: 0 24px 80px rgba(5, 15, 26, .45);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { font-size: clamp(14.5px, 0.34vw + 10.2px, 21px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--navy-700); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; color: var(--navy-800); margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.boot { min-height: 100vh; display: grid; place-items: center; background: var(--navy-900); }
.boot img { width: 4.5rem; opacity: .85; animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; transform: scale(.96); } }

/* ---------------------------------------------------------------- auth (full-bleed navy) */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--navy-900); color: var(--cream); position: relative; overflow: hidden; }
.auth::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 12% 18%, rgba(255, 140, 0, .13), transparent 60%),
    radial-gradient(50rem 40rem at 95% 110%, rgba(31, 75, 115, .55), transparent 60%),
    linear-gradient(var(--navy-line) 1px, transparent 1px) 0 0 / 4rem 4rem,
    linear-gradient(90deg, var(--navy-line) 1px, transparent 1px) 0 0 / 4rem 4rem;
  mask-image: linear-gradient(to right, #000 0%, rgba(0,0,0,.65) 55%, rgba(0,0,0,.15) 100%); }
.auth-brand { position: relative; padding: clamp(2.5rem, 5vw, 6rem); display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; }
.auth-brand .mark { display: flex; align-items: center; gap: 1rem; }
.auth-brand .mark img.wm { height: 2.1rem; width: auto; }
.emblem-ring { width: clamp(11rem, 15vw, 17rem); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 50% 42%, #fdfbf5 0%, #efe9dc 62%, #d9cfbb 100%);
  box-shadow: 0 0 0 1px rgba(255,176,92,.55), 0 0 0 .75rem rgba(255,140,0,.07), 0 0 0 1.6rem rgba(255,140,0,.04), 0 30px 90px rgba(0,0,0,.5); }
.emblem-ring img { width: 68%; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.auth-hero h1 { color: var(--cream); font-size: clamp(2.3rem, 3.4vw, 3.9rem); margin-top: 2.2rem; max-width: 15ch; }
.auth-hero h1 em { font-style: normal; color: var(--orange); }
.auth-hero p.lead { color: rgba(250,250,247,.72); font-size: 1.12rem; max-width: 36rem; margin: 1.1rem 0 0; }
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; max-width: 46rem; }
.proof div { border-top: 1px solid rgba(255,176,92,.45); padding-top: .8rem; }
.proof b { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--amber); font-weight: 700; }
.proof span { color: rgba(250,250,247,.62); font-size: .86rem; }
.auth-panel { position: relative; display: flex; align-items: center; justify-content: center; padding: clamp(1.5rem, 4vw, 5rem); }
.auth-card { width: 100%; max-width: 34rem; background: var(--cream); color: var(--ink); border-radius: 22px; box-shadow: var(--shadow-lg); padding: clamp(1.8rem, 2.6vw, 3rem); position: relative; }
.auth-card.wide { max-width: 46rem; }
.auth-card::before { content: ""; position: absolute; left: 2.4rem; right: 2.4rem; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: var(--orange); }
.auth-card h2 { font-size: 2rem; }
.auth-card .sub { color: var(--ink-3); margin: .45rem 0 1.6rem; }
.auth-foot { margin-top: 1.4rem; color: var(--ink-3); font-size: .92rem; text-align: center; }
.auth-foot a, .linkish { color: var(--orange-deep); font-weight: 600; text-decoration: none; cursor: pointer; background: none; border: 0; padding: 0; }
.auth-foot a:hover, .linkish:hover { text-decoration: underline; }
.choice { display: grid; gap: 1rem; }
.choice button { all: unset; cursor: pointer; display: grid; grid-template-columns: 3.4rem 1fr auto; gap: 1.1rem; align-items: center; padding: 1.25rem 1.35rem; border-radius: 16px; border: 1.5px solid var(--line); background: var(--white); transition: border-color .15s, transform .15s, box-shadow .15s; }
.choice button:hover, .choice button:focus-visible { border-color: var(--orange); box-shadow: 0 10px 30px rgba(255,140,0,.12); transform: translateY(-1px); }
.choice .ic { width: 3.4rem; height: 3.4rem; border-radius: 14px; display: grid; place-items: center; background: var(--navy-800); color: var(--amber); }
.choice .ic svg { width: 1.7rem; height: 1.7rem; }
.choice b { font-family: var(--serif); font-size: 1.28rem; color: var(--navy-800); display: block; }
.choice span { color: var(--ink-3); font-size: .9rem; }
.choice .arrow { color: var(--orange); font-size: 1.4rem; }
.steps { display: flex; gap: .5rem; margin-bottom: 1.2rem; }
.steps i { height: 4px; flex: 1; border-radius: 4px; background: var(--line); }
.steps i.on { background: var(--orange); }
.pending-mark { width: 4.2rem; height: 4.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--warn-bg); color: var(--warn); margin-bottom: 1.2rem; }
.pending-mark svg { width: 2rem; height: 2rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.2rem; margin: 1.2rem 0; font-size: .95rem; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 600; }

/* ---------------------------------------------------------------- forms */
.form { display: grid; gap: 1rem; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field > span { font-size: .8rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.field small { color: var(--ink-3); font-size: .8rem; }
.input, select.input, textarea.input { width: 100%; padding: .78rem .95rem; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--white); outline: none; transition: border-color .12s, box-shadow .12s; }
textarea.input { resize: vertical; min-height: 7rem; font-family: var(--mono); font-size: .88rem; }
.input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,140,0,.14); }
.field.invalid .input { border-color: var(--bad); }
.field .err { color: var(--bad); font-size: .82rem; font-weight: 600; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .4rem; background: var(--paper); padding: .3rem; border-radius: 12px; border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: .6rem .5rem; border-radius: 9px; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.seg button.on { background: var(--navy-800); color: var(--cream); box-shadow: var(--shadow); }
.check { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--orange); margin-top: .2rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.3rem; border-radius: 11px; border: 1.5px solid transparent; font-weight: 650; cursor: pointer; text-decoration: none; transition: background .12s, transform .12s, box-shadow .12s; white-space: nowrap; }
.btn svg { width: 1.1rem; height: 1.1rem; }
.btn.primary { background: var(--orange); color: #1b1203; box-shadow: 0 6px 18px rgba(255,140,0,.28); }
.btn.primary:hover { background: #ff9a1f; transform: translateY(-1px); }
.btn.navy { background: var(--navy-800); color: var(--cream); }
.btn.navy:hover { background: var(--navy-700); }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--navy-800); }
.btn.ghost:hover { border-color: var(--navy-700); background: var(--white); }
.btn.danger { background: transparent; border-color: #e7b3ae; color: var(--bad); }
.btn.danger:hover { background: var(--bad-bg); }
.btn.sm { padding: .45rem .8rem; font-size: .88rem; border-radius: 9px; }
.btn.block { width: 100%; padding: .95rem; font-size: 1.05rem; }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }
.form-error { background: var(--bad-bg); color: var(--bad); border-radius: var(--r-sm); padding: .75rem 1rem; font-weight: 600; font-size: .92rem; }
.note { background: var(--info-bg); color: var(--navy-700); border-radius: var(--r-sm); padding: .8rem 1rem; font-size: .92rem; }

/* ---------------------------------------------------------------- app shell */
.shell { display: grid; grid-template-columns: 17.5rem minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--navy-900); color: var(--cream); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 1.6rem 1.1rem 1.2rem; border-right: 1px solid #06121f; }
.side .brand { display: flex; align-items: center; gap: .8rem; padding: 0 .55rem 1.4rem; border-bottom: 1px solid var(--navy-line); }
.side .brand .em { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fdfbf5, #e2d9c6); display: grid; place-items: center; flex: none; }
.side .brand .em img { width: 72%; }
.side .brand .wm { height: 1.35rem; width: auto; }
.side .inst { padding: 1.1rem .55rem .8rem; }
.side .inst b { font-family: var(--serif); font-size: 1.05rem; display: block; line-height: 1.25; }
.side .inst span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); font-weight: 700; }
.nav { display: grid; gap: .15rem; margin-top: .5rem; }
.nav .group { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(250,250,247,.38); padding: 1rem .7rem .35rem; font-weight: 700; }
.nav a { display: flex; align-items: center; gap: .8rem; padding: .62rem .75rem; border-radius: 10px; color: rgba(250,250,247,.78); text-decoration: none; font-weight: 550; font-size: .95rem; position: relative; }
.nav a svg { width: 1.15rem; height: 1.15rem; opacity: .8; flex: none; }
.nav a:hover { background: rgba(250,250,247,.06); color: var(--cream); }
.nav a.on { background: linear-gradient(90deg, rgba(255,140,0,.18), rgba(255,140,0,.04)); color: var(--cream); }
.nav a.on::before { content: ""; position: absolute; left: -1.1rem; top: .45rem; bottom: .45rem; width: 4px; border-radius: 0 4px 4px 0; background: var(--orange); }
.nav a.on svg { color: var(--orange); opacity: 1; }
.side .me { margin-top: auto; border-top: 1px solid var(--navy-line); padding: 1rem .55rem 0; display: flex; align-items: center; gap: .75rem; }
.avatar { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--navy-600); color: var(--amber); font-weight: 700; font-family: var(--serif); flex: none; }
.side .me .who { min-width: 0; flex: 1; }
.side .me .who b { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .me .who span { font-size: .75rem; color: rgba(250,250,247,.55); }
.side .me button { background: none; border: 1px solid var(--navy-line); color: rgba(250,250,247,.7); border-radius: 9px; padding: .4rem .55rem; cursor: pointer; }
.side .me button:hover { color: var(--cream); border-color: rgba(250,250,247,.3); }
.main { min-width: 0; padding: clamp(1.6rem, 2.4vw, 3rem) clamp(1.6rem, 3vw, 4rem) 4rem; max-width: 120rem; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.page-head .eyebrow { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--orange-deep); font-weight: 750; margin-bottom: .4rem; }
.page-head h1 { font-size: clamp(2rem, 2.3vw, 2.9rem); }
.page-head p { color: var(--ink-3); margin: .5rem 0 0; max-width: 52rem; }
.page-head .actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.crumbs { font-size: .86rem; color: var(--ink-3); margin-bottom: .6rem; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--orange-deep); }

/* ---------------------------------------------------------------- cards, KPIs */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 1.4rem 1.5rem; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card > h3, .card-head h3 { font-size: 1.22rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card.flush .card-head { padding: 1.2rem 1.5rem 0; }
.card-head .hint { color: var(--ink-3); font-size: .85rem; }
.cols { display: grid; gap: 1.3rem; }
.cols.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols.c21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.cols.c12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.stack { display: grid; gap: 1.3rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); gap: 1rem; margin-bottom: 1.3rem; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem 1rem; position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; left: 1.2rem; top: 0; width: 2.2rem; height: 3px; background: var(--orange); border-radius: 0 0 3px 3px; }
.kpi .lbl { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.kpi .val { font-family: var(--serif); font-size: 2.15rem; color: var(--navy-800); font-weight: 700; line-height: 1.1; margin-top: .35rem; }
.kpi .val small { font-size: .95rem; color: var(--ink-3); font-family: var(--sans); font-weight: 600; margin-left: .2rem; }
.kpi .foot { font-size: .8rem; color: var(--ink-3); margin-top: .25rem; }
.kpi.navy { background: var(--navy-800); border-color: var(--navy-800); }
.kpi.navy .lbl { color: rgba(250,250,247,.6); }
.kpi.navy .val { color: var(--cream); }
.kpi.navy .foot { color: var(--amber); }
.kpi.alert .val { color: var(--bad); }

/* ---------------------------------------------------------------- tables */
.toolbar { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); background: #fcfbf8; }
.toolbar .search { flex: 1 1 16rem; max-width: 24rem; position: relative; }
.toolbar .search input { padding-left: 2.4rem; }
.toolbar .search svg { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); width: 1.05rem; color: var(--ink-3); }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-2); background: var(--white); border-radius: 999px; padding: .38rem .85rem; font-size: .85rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.chip.on { background: var(--navy-800); border-color: var(--navy-800); color: var(--cream); }
.chip .n { color: var(--orange-deep); margin-left: .3rem; }
.chip.on .n { color: var(--amber); }
.table-wrap { overflow: auto; max-height: 70vh; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
table.t th { position: sticky; top: 0; z-index: 1; background: #f7f4ec; text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-weight: 750; padding: .75rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; user-select: none; }
table.t th.sortable { cursor: pointer; }
table.t th.sortable:hover { color: var(--orange-deep); }
table.t th .dir { color: var(--orange); margin-left: .25rem; }
table.t td { padding: .78rem 1rem; border-bottom: 1px solid #efebe1; vertical-align: middle; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: #fffaf1; }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.t .who b { display: block; font-weight: 650; color: var(--navy-800); }
table.t .who span { font-size: .8rem; color: var(--ink-3); }
.empty { text-align: center; color: var(--ink-3); padding: 2.6rem 1rem; }
.empty b { display: block; font-family: var(--serif); color: var(--navy-800); font-size: 1.2rem; margin-bottom: .3rem; }

/* badges & progress */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; 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); }
.badge.mute { background: #eeebe3; color: var(--ink-2); }
.badge.navy { background: var(--navy-800); color: var(--cream); }
.badge.orange { background: #fff0db; color: var(--orange-deep); }
.bar { height: .5rem; background: #ece7db; border-radius: 99px; overflow: hidden; min-width: 4rem; }
.bar i { display: block; height: 100%; background: var(--orange); border-radius: 99px; }
.bar.navy i { background: var(--navy-700); }
.pbar { display: grid; grid-template-columns: minmax(4rem, 1fr) 3rem; gap: .6rem; align-items: center; }
.pbar em { font-style: normal; font-size: .82rem; font-weight: 700; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.stars { color: var(--orange); letter-spacing: .08em; white-space: nowrap; }
.stars .off { color: #ddd5c4; }

/* charts */
.chart { width: 100%; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.legend { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .82rem; color: var(--ink-2); margin-top: .6rem; }
.legend i { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; margin-right: .4rem; vertical-align: -1px; }
.tip { position: fixed; z-index: 90; pointer-events: none; background: var(--navy-900); color: var(--cream); border-radius: 9px; padding: .5rem .7rem; font-size: .82rem; box-shadow: var(--shadow-lg); max-width: 20rem; }
.tip b { color: var(--amber); }
.hbars { display: grid; gap: .65rem; }
.hbars .row { display: grid; grid-template-columns: minmax(8rem, 14rem) minmax(0, 1fr) 4rem; gap: .9rem; align-items: center; font-size: .9rem; }
.hbars .row .v { text-align: right; font-weight: 700; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.ring { position: relative; width: 5.2rem; height: 5.2rem; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 1.15rem; color: var(--navy-800); }

/* heat map */
.heat { background: var(--navy-900); border-radius: var(--r); padding: 1rem; position: relative; }
.heat canvas { width: 100%; display: block; border-radius: 10px; cursor: crosshair; }
.heat .scale { display: flex; align-items: center; gap: .6rem; color: rgba(250,250,247,.7); font-size: .8rem; margin-top: .7rem; }
.heat .scale i { flex: 0 0 12rem; height: .55rem; border-radius: 99px; background: linear-gradient(90deg, rgba(255,176,92,.15), #ffb05c, #ff8c00, #fff3dc); }
.levels { display: flex; gap: .35rem; flex-wrap: wrap; }

/* tabs */
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; flex-wrap: wrap; }
.tabs button { background: none; border: 0; padding: .75rem 1.1rem; font-weight: 650; color: var(--ink-3); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--navy-800); border-bottom-color: var(--orange); }

/* assignment & course cards */
.acard { border: 1px solid var(--line); border-radius: var(--r); background: var(--white); padding: 1.2rem 1.3rem; display: grid; gap: .8rem; box-shadow: var(--shadow); }
.acard .top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.acard h4 { font-size: 1.15rem; }
.acard .meta { display: flex; gap: .5rem 1.2rem; flex-wrap: wrap; color: var(--ink-3); font-size: .85rem; }
.items { display: flex; gap: .4rem; flex-wrap: wrap; }
.item { display: inline-flex; gap: .4rem; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: .25rem .55rem; font-size: .8rem; background: #fcfbf8; color: var(--ink-2); }
.item b { color: var(--navy-800); }
.item.done { border-color: #bfdcc8; background: var(--good-bg); }
.ccard { cursor: pointer; transition: transform .12s, box-shadow .12s; }
.ccard:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(10,29,48,.12); }
.ccard .code { font-family: var(--mono); color: var(--orange-deep); font-size: .82rem; font-weight: 700; }

/* device grid */
.devgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(3.1rem, 1fr)); gap: .4rem; }
.dev { aspect-ratio: 1; border-radius: 9px; display: grid; place-items: center; font-size: .78rem; font-weight: 700; border: 1px solid var(--line); color: var(--ink-3); background: #fbfaf6; position: relative; overflow: hidden; }
.dev.seen { background: #fff3e0; color: var(--orange-deep); border-color: #ffd29e; }
.dev.lab { background: var(--navy-800); color: var(--cream); border-color: var(--navy-800); }
.dev .fill { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--orange); }

/* arena */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.game { border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; background: var(--white); display: grid; gap: .55rem; }
.game .n { font-family: var(--serif); color: var(--orange-deep); font-weight: 700; font-size: .85rem; }
.game h4 { font-size: 1.02rem; }
.game .diffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; font-size: .72rem; color: var(--ink-3); text-align: center; }
.game .diffs div { border-radius: 8px; background: #f7f4ec; padding: .35rem .2rem; }
.game.idle { opacity: .6; }

/* timeline */
.tl { display: grid; gap: 0; }
.tl .ev { display: grid; grid-template-columns: 7.5rem 1.2rem 1fr; gap: .8rem; align-items: start; padding: .45rem 0; font-size: .9rem; }
.tl .ev time { color: var(--ink-3); font-size: .8rem; text-align: right; padding-top: .1rem; font-variant-numeric: tabular-nums; }
.tl .dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--line-2); margin-top: .35rem; box-shadow: 0 0 0 4px #f7f4ec; }
.tl .dot.o { background: var(--orange); }
.tl .dot.n { background: var(--navy-700); }
.tl .dot.g { background: var(--good); }
.tl .dot.r { background: var(--bad); }

/* dialogs & toasts (in-page; no browser popups) */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(6, 16, 28, .62); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 2rem; animation: fade .15s ease-out; }
.dialog { background: var(--cream); border-radius: 20px; box-shadow: var(--shadow-lg); width: min(44rem, 100%); max-height: calc(100vh - 4rem); display: flex; flex-direction: column; animation: rise .18s ease-out; }
.dialog.wide { width: min(72rem, 100%); }
.dialog header { padding: 1.5rem 1.7rem .8rem; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; border-bottom: 1px solid var(--line); }
.dialog header h3 { font-size: 1.5rem; }
.dialog header p { color: var(--ink-3); margin: .3rem 0 0; font-size: .92rem; }
.dialog .x { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink-3); padding: .2rem .4rem; border-radius: 8px; }
.dialog .x:hover { background: var(--paper); }
.dialog .body { padding: 1.3rem 1.7rem; overflow: auto; }
.dialog footer { padding: 1rem 1.7rem 1.4rem; display: flex; justify-content: flex-end; gap: .6rem; border-top: 1px solid var(--line); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.toasts { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 95; display: grid; gap: .6rem; }
.toast { background: var(--navy-900); color: var(--cream); border-left: 4px solid var(--orange); padding: .85rem 1.1rem; border-radius: 10px; box-shadow: var(--shadow-lg); max-width: 26rem; font-size: .92rem; animation: rise .2s ease-out; }
.toast.bad { border-left-color: #ff6b5f; }
.secret { font-family: var(--mono); font-size: 1.35rem; letter-spacing: .06em; background: var(--white); border: 1.5px dashed var(--orange); border-radius: 12px; padding: 1rem; text-align: center; color: var(--navy-800); user-select: all; }
.picker { display: grid; gap: .5rem; max-height: 46vh; overflow: auto; padding-right: .3rem; }
.pick { display: grid; grid-template-columns: auto 1fr; gap: .8rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 11px; background: var(--white); cursor: pointer; align-items: start; }
.pick:hover { border-color: var(--line-2); }
.pick.on { border-color: var(--orange); background: #fffaf2; }
.pick input { accent-color: var(--orange); width: 1.1rem; height: 1.1rem; margin-top: .2rem; }
.pick b { color: var(--navy-800); }
.pick p { margin: .2rem 0 0; color: var(--ink-3); font-size: .85rem; }
.pick ul { margin: .35rem 0 0; padding-left: 1.1rem; color: var(--ink-2); font-size: .82rem; }
.story-h { font-family: var(--serif); font-weight: 700; color: var(--navy-800); margin: .8rem 0 .2rem; font-size: 1.02rem; }
.story-h span { color: var(--ink-3); font-family: var(--sans); font-weight: 500; font-size: .85rem; margin-left: .4rem; }
.section-title { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 750; margin: 1.4rem 0 .6rem; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--mono); }
.right { text-align: right; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.ladder { display: grid; gap: .5rem; }
.ladder div { display: flex; justify-content: space-between; padding: .55rem .8rem; border-radius: 9px; background: #f7f4ec; font-size: .9rem; }
.ladder div.on { background: var(--navy-800); color: var(--cream); }
.ladder div.on b { color: var(--amber); }
.hero-band { background: var(--navy-800); color: var(--cream); border-radius: 18px; padding: 1.6rem 1.8rem; display: flex; gap: 1.6rem; align-items: center; margin-bottom: 1.3rem; position: relative; overflow: hidden; }
.hero-band::after { content: ""; position: absolute; right: -6rem; top: -6rem; width: 18rem; height: 18rem; border-radius: 50%; background: radial-gradient(circle, rgba(255,140,0,.25), transparent 70%); }
.hero-band h2 { color: var(--cream); font-size: 1.9rem; }
.hero-band .muted { color: rgba(250,250,247,.65); }
.hero-band .big { font-family: var(--serif); font-size: 2.6rem; color: var(--amber); font-weight: 700; }

@media (max-width: 1100px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { padding-bottom: 0; }
  .proof { display: none; }
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .cols.c2, .cols.c3, .cols.c21, .cols.c12 { grid-template-columns: 1fr; }
}

/* layout fixes */
.page-head > div:first-child { flex: 1 1 28rem; min-width: 0; }
.page-head .actions { flex: 0 1 auto; align-items: center; justify-content: flex-end; }
.side .me button svg { width: 1.1rem; height: 1.1rem; display: block; }
.auth-brand .mark img.wm { height: 2.6rem; }
.row svg { width: 1rem; height: 1rem; }
.main.busy > * { opacity: .55; transition: opacity .2s .15s; pointer-events: none; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); }
.hbars .row { grid-template-columns: minmax(7rem, 13rem) minmax(0, 1fr) max-content; }
.hbars .row .v { min-width: 4.5rem; }
.cols > .heat { align-self: start; }
.hbars .row { column-gap: 1.1rem; }
.cols > .acard { align-self: start; }

/* ================================================================ v2: editions, competencies, certificates, verify */
.side .edition-tag { margin: .9rem .55rem 0; display: inline-flex; align-self: flex-start; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 750; color: var(--navy-900); background: var(--amber); border-radius: 999px; padding: .22rem .65rem; }
.good-t { color: var(--good); }
.bad-t { color: var(--bad); }

/* edition picker (sign-up) */
.editions { display: grid; gap: .8rem; }
.edition { all: unset; cursor: pointer; display: grid; gap: .3rem; padding: 1.05rem 1.2rem; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); transition: border-color .15s, box-shadow .15s; }
.edition:hover, .edition:focus-visible { border-color: var(--orange); }
.edition.on { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,140,0,.13); background: #fffaf2; }
.edition .ename { font-family: var(--serif); font-weight: 700; font-size: 1.22rem; color: var(--navy-800); }
.edition .esector { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 750; color: var(--orange-deep); }
.edition .edesc { font-size: .88rem; color: var(--ink-2); }
.edition .ewords { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .2rem; }
.edition .ewords span { font-size: .74rem; border: 1px solid var(--line); border-radius: 6px; padding: .1rem .45rem; color: var(--ink-3); background: #fcfbf8; }
.edition.on .ewords span { border-color: #ffd29e; color: var(--navy-700); }

/* levels and tiers */
.lvl { display: inline-flex; align-items: center; padding: .12rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 750; white-space: nowrap; }
.lvl-developing { background: #fde3c2; color: #8a4a00; }
.lvl-competent { background: #ff9d2e; color: #2a1600; }
.lvl-proficient { background: var(--navy-800); color: var(--cream); }
.lvl-none { background: #eeebe3; color: var(--ink-3); }
.tier { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; font-family: var(--serif); font-weight: 700; font-size: .9rem; color: #1b1203; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.tier-A.tier, .cmini.tier-A .seal { background: #d9b44a; }
.tier-B.tier, .cmini.tier-B .seal { background: #c3cbd4; }
.tier-C.tier, .cmini.tier-C .seal { background: #c8824a; color: #fff; }
.tier-D.tier, .cmini.tier-D .seal { background: #9fb6cc; }

/* competency map */
.cmap { display: grid; grid-template-columns: repeat(auto-fill, minmax(26rem, 1fr)); gap: 1rem; }
.cdomain { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.15rem 1.1rem; box-shadow: var(--shadow); border-top: 4px solid var(--dc); }
.cdomain header { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; margin-bottom: .7rem; }
.cdomain h4 { font-size: 1.02rem; }
.cdomain header .muted { font-size: .78rem; white-space: nowrap; }
.crows { display: grid; gap: .45rem; }
.crow { display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem 7.2rem; gap: .7rem; align-items: center; font-size: .86rem; }
.crow.idle .cname { color: var(--ink-3); }
.crow .cname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbar { position: relative; height: .55rem; background: #efebe1; border-radius: 99px; overflow: hidden; }
.cbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
.cbar i.lvl-developing { background: #f5b56a; }
.cbar i.lvl-competent { background: var(--orange); }
.cbar i.lvl-proficient { background: var(--navy-700); }
.cbar i.lvl-none { background: transparent; }
.cbar em { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(15,42,68,.25); }
.cbar em.t35 { left: 35%; }
.cbar em.t70 { left: 70%; }
.crow .cval { display: flex; gap: .4rem; align-items: center; justify-content: flex-end; }
.crow .cval small { font-variant-numeric: tabular-nums; color: var(--ink-3); font-weight: 700; min-width: 1.6rem; text-align: right; }
.legend i.lvl-developing { background: #f5b56a; }
.legend i.lvl-competent { background: var(--orange); }
.legend i.lvl-proficient { background: var(--navy-700); }

/* weakest competencies */
.weak { display: grid; gap: .65rem; }
.wrow { display: grid; grid-template-columns: minmax(10rem, 1.3fr) minmax(5rem, 1fr) auto; gap: .9rem; align-items: center; font-size: .88rem; }
.wrow b { display: block; color: var(--navy-800); }
.wrow span.muted { font-size: .76rem; }
.wrow .wnum { font-size: .78rem; text-align: right; white-space: nowrap; }
table.t.mini { font-size: .86rem; }
table.t.mini th, table.t.mini td { padding: .5rem .7rem; }
table.t.mini th { position: static; }

/* certificate grid + mini cards */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: .9rem; }
.cmini { all: unset; cursor: pointer; display: grid; grid-template-columns: 3.1rem 1fr; gap: .9rem; align-items: start; padding: 1rem 1.1rem; border-radius: 14px; background: linear-gradient(160deg, #fffdf8, #f7f2e6); border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .12s, box-shadow .12s; }
.cmini::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(15,42,68,.10); border-radius: 10px; pointer-events: none; }
.cmini:hover, .cmini:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(10,29,48,.12); }
.cmini .seal { width: 3.1rem; height: 3.1rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: #1b1203; box-shadow: 0 0 0 3px #fffdf8, 0 0 0 4px rgba(15,42,68,.18); }
.cmini .body { display: grid; gap: .15rem; min-width: 0; }
.cmini .kind { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-deep); font-weight: 750; }
.cmini b { font-family: var(--serif); color: var(--navy-800); font-size: 1.02rem; line-height: 1.25; }
.cmini .meta { font-size: .8rem; color: var(--ink-3); }
.cmini .code { font-size: .74rem; color: var(--ink-2); }

/* the full certificate */
.certificate { background: var(--navy-800); padding: 14px; border-radius: 6px; max-width: 58rem; margin: 0 auto; box-shadow: 0 20px 60px rgba(5,15,26,.25); }
.certificate .frame { background: radial-gradient(ellipse at 50% 0%, #fffdf8 0%, #f7f1e3 70%, #efe6d2 100%); border: 2px solid #c9a86a; outline: 1px solid rgba(201,168,106,.5); outline-offset: -9px; padding: 2.2rem 3rem 1.6rem; text-align: center; position: relative; color: var(--navy-800); }
.certificate .frame::before { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 6rem; height: 4px; background: var(--orange); }
.certificate .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; }
.certificate .top img { height: 1.6rem; width: auto; }
.certificate .top span { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 750; color: var(--orange-deep); }
.certificate .kind { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2.2rem); letter-spacing: .16em; text-transform: uppercase; color: var(--navy-800); }
.certificate .presented { font-style: italic; font-family: var(--serif); color: var(--ink-3); margin-top: .9rem; }
.certificate .holder { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 700; color: var(--navy-900); border-bottom: 2px solid rgba(201,168,106,.6); display: inline-block; padding: 0 1.4rem .2rem; margin-top: .3rem; }
.certificate .title { font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.55rem); font-weight: 700; margin-top: .4rem; }
.certificate .sub { color: var(--ink-2); font-size: .9rem; margin-top: .3rem; }
.certificate .comps { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; margin-top: .9rem; }
.certificate .comps span { font-size: .74rem; border: 1px solid rgba(201,168,106,.7); border-radius: 999px; padding: .15rem .6rem; color: var(--navy-700); background: rgba(255,255,255,.5); }
.certificate .foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 1rem; margin-top: 1.6rem; }
.certificate .foot small { display: block; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.certificate .foot b { font-family: var(--serif); font-size: .98rem; }
.certificate .seal { width: 5.4rem; height: 5.4rem; border-radius: 50%; display: grid; place-items: center; align-content: center; margin: 0 auto; position: relative; box-shadow: 0 0 0 4px #fffdf8, 0 0 0 6px currentColor; }
.certificate .seal span { font-family: var(--serif); font-size: 2rem; font-weight: 700; line-height: 1; color: #1b1203; }
.certificate .seal em { font-style: normal; font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(27,18,3,.7); }
.certificate.tier-A .seal { background: #d9b44a; color: #d9b44a; }
.certificate.tier-B .seal { background: #c3cbd4; color: #aeb8c4; }
.certificate.tier-C .seal { background: #c8824a; color: #c8824a; }
.certificate.tier-D .seal { background: #9fb6cc; color: #8fa9c2; }
.certificate .codeline { margin-top: 1.1rem; font-size: .74rem; color: var(--ink-3); }

/* tier distribution */
.tierbar { display: flex; height: 2.1rem; border-radius: 10px; overflow: hidden; gap: 2px; }
.tierbar i { display: grid; place-items: center; font-style: normal; font-family: var(--serif); font-weight: 700; color: #1b1203; min-width: 1.6rem; }

/* competency heat map (people x competencies) */
.hm-wrap { overflow: auto; max-height: 78vh; border: 1px solid var(--line); border-radius: 10px; }
table.hmatrix { border-collapse: separate; border-spacing: 0; font-size: .8rem; }
.hmatrix th, .hmatrix td { border-bottom: 1px solid #f0ece3; }
.hmatrix thead th { position: sticky; background: #f7f4ec; z-index: 2; }
.hmatrix thead tr:first-child th { top: 0; }
.hmatrix thead tr:nth-child(2) th { top: 2rem; }
.hmatrix th.pn { position: sticky; left: 0; z-index: 3; background: #fcfbf8; text-align: left; min-width: 13rem; max-width: 15rem; padding: .35rem .8rem; font-weight: 600; }
.hmatrix thead th.pn { z-index: 4; background: #f7f4ec; vertical-align: bottom; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.hmatrix tbody th.pn b { display: block; color: var(--navy-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hmatrix tbody th.pn span { display: block; font-size: .7rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.hmatrix th.dh { height: 2rem; font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-800); border-top: 4px solid var(--dc); border-left: 2px solid #fff; padding: .2rem .3rem; max-width: 1px; overflow: hidden; }
.hmatrix th.dh span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hmatrix th.ch { height: 11.5rem; vertical-align: bottom; padding: .4rem 0; width: 1.65rem; min-width: 1.65rem; font-weight: 600; color: var(--ink-2); border-bottom: 3px solid var(--dc); }
.hmatrix th.ch span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; display: inline-block; max-height: 11rem; overflow: hidden; text-overflow: ellipsis; font-size: .74rem; }
.hmatrix td.hm { width: 1.65rem; min-width: 1.65rem; height: 1.85rem; background: #f6f3ec; border-right: 2px solid #fff; border-bottom: 2px solid #fff; }
.hmatrix td.hm.lvl-developing { background: rgba(245, 181, 106, var(--a)); }
.hmatrix td.hm.lvl-competent { background: rgba(255, 140, 0, var(--a)); }
.hmatrix td.hm.lvl-proficient { background: rgba(15, 42, 68, var(--a)); }
.hmatrix td.hm.mean { background: rgba(255, 140, 0, var(--a)); }
.hmatrix td.sum, .hmatrix th.sum { text-align: center; font-weight: 750; color: var(--navy-800); padding: 0 .7rem; background: #fcfbf8; position: sticky; right: 0; }
.hmatrix tbody tr { cursor: pointer; }
.hmatrix tbody tr:hover th.pn { background: #fff3e0; }
.hmatrix tfoot th, .hmatrix tfoot td { position: sticky; bottom: 0; background: #f7f4ec; z-index: 2; }
.hmatrix tfoot td.hm.mean { background: rgba(255, 140, 0, var(--a)); }
.hmatrix tfoot th.pn { z-index: 3; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }

/* assignment dialog: game picker with a specific challenge */
.pick.game-pick { grid-template-columns: auto 1fr 11rem; align-items: start; }
.pick .scn { display: grid; grid-template-columns: 1.3fr 1fr; gap: .4rem; margin-top: .5rem; }
.pick .scn .input { padding: .5rem .7rem; font-size: .84rem; }

/* public verification page */
.verify { min-height: 100vh; background: var(--navy-900); color: var(--cream); display: flex; flex-direction: column; position: relative; }
.verify::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60rem 40rem at 10% 0%, rgba(255,140,0,.12), transparent 60%), linear-gradient(var(--navy-line) 1px, transparent 1px) 0 0 / 4rem 4rem, linear-gradient(90deg, var(--navy-line) 1px, transparent 1px) 0 0 / 4rem 4rem; }
.vhead { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 1.4rem clamp(1.2rem, 4vw, 3rem); gap: 1rem; flex-wrap: wrap; }
.vbrand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.vbrand .em { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fdfbf5, #e2d9c6); display: grid; place-items: center; }
.vbrand .em img { width: 72%; }
.vbrand .wm { height: 1.5rem; width: auto; }
.vhead > span { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); font-weight: 750; }
.vmain { position: relative; flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 1rem clamp(1rem, 3vw, 2rem) 3rem; }
.vcard { width: 100%; max-width: 40rem; background: var(--cream); color: var(--ink); border-radius: 20px; box-shadow: var(--shadow-lg); padding: clamp(1.4rem, 3vw, 2.4rem); position: relative; }
.vcard.wide { max-width: 64rem; }
.vcard::before { content: ""; position: absolute; left: 2.4rem; right: 2.4rem; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: var(--orange); }
.vcard h1 { font-size: 1.9rem; }
.vstatus { display: flex; gap: 1rem; align-items: center; border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: 1.3rem; }
.vstatus svg { width: 2.2rem; height: 2.2rem; flex: none; }
.vstatus b { display: block; font-family: var(--serif); font-size: 1.35rem; }
.vstatus span { font-size: .92rem; }
.vstatus.good { background: var(--good-bg); color: var(--good); }
.vstatus.bad { background: var(--bad-bg); color: var(--bad); }
.vform { display: flex; gap: .6rem; margin-top: 1rem; }
.vform .input { flex: 1; text-transform: uppercase; letter-spacing: .06em; }
.vkv { margin-top: 1.6rem; }
.vcheck { border-top: 1px solid var(--line); margin-top: 1.4rem; padding-top: 1rem; }
.vfoot { position: relative; text-align: center; font-size: .8rem; color: rgba(250,250,247,.5); padding: 0 1rem 1.6rem; }
@media (max-width: 700px) {
  .crow { grid-template-columns: minmax(0, 1fr) 5rem 6.4rem; }
  .cmap { grid-template-columns: 1fr; }
  .certificate .frame { padding: 1.6rem 1.2rem 1.2rem; }
  .vform { flex-direction: column; }
}

/* print just the certificate */
@media print {
  body.printing-cert > *:not(.scrim) { display: none !important; }
  body.printing-cert .scrim { position: static; background: none; padding: 0; backdrop-filter: none; }
  body.printing-cert .dialog { box-shadow: none; max-height: none; width: 100%; }
  body.printing-cert .dialog header, body.printing-cert .dialog footer, body.printing-cert .dialog .row { display: none !important; }
  body.printing-cert .certificate { box-shadow: none; }
}
