:root {
  --brand: #2f5bea; --brand-ink: #1d3fae; --brand-soft: #eaf0ff; --brand-line: #cfdcff;
  --ink: #131a2b; --ink-2: #39435a; --muted: #6b7489; --line: #e4e8f0; --line-2: #eef1f6;
  --bg: #f4f6fb; --card: #fff;
  --ok: #0e8a4b; --ok-bg: #e5f6ec; --bad: #d1342c; --bad-bg: #fdeceb; --warn: #9a5800; --warn-bg: #fff4de;
  --shadow: 0 1px 2px rgba(19, 26, 43, .04), 0 6px 20px rgba(19, 26, 43, .06);
  --radius: 16px;
  --barh: 58px;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: var(--brand); text-decoration: none; }
h1 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
h2 { font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; margin: 0 0 10px; }
h3 { font-size: .95rem; margin: 16px 0 8px; }
main { max-width: 760px; margin: 0 auto; padding: 14px 14px 120px; }
main.with-nav { padding-bottom: 110px; }
.ic { width: 22px; height: 22px; flex: none; }

/* header */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px;
  min-height: var(--barh); padding: 8px 16px; padding-top: max(8px, env(safe-area-inset-top));
  background: rgba(255, 255, 255, .9); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line); color: var(--ink); }
.bar a { color: var(--ink); }
.bar .back { display: grid; place-items: center; width: 38px; height: 38px; margin-left: -8px; border-radius: 12px; color: var(--brand); }
.bar .back:active { background: var(--brand-soft); }
.bar .sub { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.bar.brand h1 { font-size: 1.2rem; }
.logo { width: 30px; height: 30px; color: var(--brand); flex: none; }

/* quiz steps */
.steps { position: sticky; top: calc(var(--barh) + env(safe-area-inset-top)); z-index: 9; display: flex; gap: 2px;
  padding: 8px 8px 10px; overflow-x: auto; scrollbar-width: none;
  background: rgba(255, 255, 255, .9); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line); }
.steps::-webkit-scrollbar { display: none; }
.steps a { flex: 1 0 54px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: .72rem; font-weight: 600; position: relative; }
.steps a + a::before { content: ""; position: absolute; top: 14px; right: calc(50% + 17px); width: calc(100% - 34px); height: 2px; background: var(--line); }
.steps a.done + a::before, .steps a.done + a.on::before { background: var(--brand-line); }
.steps i { font-style: normal; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--line); background: #fff; font-size: .82rem; font-weight: 700; color: var(--muted); transition: all .15s; }
.steps i .ic { width: 16px; height: 16px; stroke-width: 3; }
.steps a.done i { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand); }
.steps a.on { color: var(--brand); }
.steps a.on i { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(47, 91, 234, .35); }

.hint { display: flex; gap: 10px; align-items: flex-start; background: var(--brand-soft); color: var(--brand-ink);
  border-radius: 14px; padding: 11px 14px; margin-bottom: 14px; font-size: .9rem; line-height: 1.45; }
.hint p { margin: 0; }
.hint .ic { width: 20px; height: 20px; margin-top: 1px; }

/* bottom nav (home, classes, settings) */
.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 12; display: flex; justify-content: center;
  padding: 6px 10px; padding-bottom: max(8px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line); }
.bottomnav a { flex: 0 1 140px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; color: var(--muted); font-size: .72rem; font-weight: 600; border-radius: 12px; }
.bottomnav a.on { color: var(--brand); }
.bottomnav a.on .ic { background: var(--brand-soft); border-radius: 12px; padding: 3px 14px; width: 54px; height: 30px; }
.bottomnav .ic { width: 54px; height: 30px; padding: 3px 14px; }

/* home */
.hero { padding: 6px 4px 2px; }
.hero .hello { margin: 0; color: var(--muted); font-size: .9rem; font-weight: 600; }
.hero h2 { font-size: 1.55rem; line-height: 1.2; letter-spacing: -.02em; margin: 2px 0 14px; }
.how { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.how li { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); }
.how span { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: .9rem; }
.how b { display: block; font-size: .95rem; }
.how small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; }
@media (min-width: 640px) { .how { grid-template-columns: repeat(3, 1fr); } .how li { align-items: flex-start; } }
.newquiz label { margin-top: 10px; }
.newquiz .big { width: 100%; margin-top: 14px; }
.opt { color: #9aa2b3; font-weight: 400; }
.section-title { display: flex; align-items: center; gap: 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 4px 10px; }
.section-title span { background: var(--line); color: var(--ink-2); border-radius: 10px; padding: 0 8px; font-size: .75rem; letter-spacing: 0; }
.empty { text-align: center; color: var(--muted); font-size: .9rem; padding: 24px 0; }
.qitem { display: flex !important; align-items: center; gap: 12px; }
.qi-main { flex: 1; min-width: 0; }
.qi-main strong { display: block; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qi-main .muted { display: block; font-size: .84rem; }
.chev { color: #b3bac8; }
.chip { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); }
.chip.ready { background: var(--brand-soft); color: var(--brand); }
.chip.done { background: var(--ok-bg); color: var(--ok); }
.chip .ic { width: 14px; height: 14px; stroke-width: 3; }
.ring { --p: 0; flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-content: center; text-align: center; line-height: 1;
  background: radial-gradient(closest-side, #fff 78%, transparent 80%), conic-gradient(var(--brand) calc(var(--p) * 1%), var(--line-2) 0); }
.ring b { font-size: 1rem; }
.ring small { font-size: .6rem; color: var(--muted); font-weight: 700; letter-spacing: .04em; }

/* cards + forms */
.card { background: var(--card); border: 0; border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
details.card > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; font-weight: 700; color: var(--ink); }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .15s; }
details.card[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row > * { flex: 1 1 140px; }
.row > .shrink { flex: 0 0 auto; }
label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
label.check { display: flex; gap: 10px; align-items: center; color: var(--ink); font-size: .92rem; font-weight: 400; margin: 8px 0; }
label.check input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
input[type=text], input[type=number], input:not([type]), select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fbfcfe; color: var(--ink); margin-top: 5px;
  transition: border-color .15s, box-shadow .15s, background .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(47, 91, 234, .14); }
select { appearance: none; -webkit-appearance: none; padding-right: 34px;
  background: #fbfcfe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236b7489' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center; }
textarea { min-height: 100px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #a3abbb; }
button, .btn { font: inherit; font-size: .95rem; font-weight: 600; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 12px;
  min-height: 44px; padding: 10px 16px; cursor: pointer; text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none; transition: transform .08s, background .15s, box-shadow .15s; }
button:active, .btn:active { transform: scale(.98); }
button:disabled { opacity: .45; cursor: default; transform: none; }
.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(47, 91, 234, .28); }
.primary:active { background: var(--brand-ink); }
.big { min-height: 52px; font-size: 1.02rem; border-radius: 14px; }
.big .ic { width: 20px; height: 20px; stroke-width: 2.5; }
.danger { color: var(--bad); }
.small { font-size: .85rem; min-height: 36px; padding: 6px 12px; border-radius: 10px; }
.link { border: 0; background: none; color: var(--brand); padding: 4px 6px; min-height: 0; box-shadow: none; }
.muted { color: var(--muted); font-size: .9rem; }
.warn, .good, .bad { border-radius: 12px; padding: 10px 12px; font-size: .9rem; margin: 10px 0; }
.warn { background: var(--warn-bg); color: var(--warn); }
.good { background: var(--ok-bg); color: var(--ok); }
.bad { background: var(--bad-bg); color: var(--bad); }
.actions { position: fixed; bottom: 0; left: 0; right: 0; display: flex; gap: 10px; padding: 10px 14px; z-index: 12;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line); }
.actions > * { flex: 1; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pill { display: inline-block; font-size: .74rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); margin: 2px 4px 2px 0; }
.pill.warn { background: var(--warn-bg); color: var(--warn); margin: 2px 4px 2px 0; padding: 2px 9px; }
#toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 50;
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 14px; font-size: .9rem; font-weight: 500; max-width: 90vw; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--brand-line); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: -3px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* lists */
.list { list-style: none; margin: 0; padding: 0; }
.list li > a { display: block; background: var(--card); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; color: var(--ink); box-shadow: var(--shadow); transition: transform .08s; }
.list li > a:active { transform: scale(.99); }
.list li > a strong { display: block; }

/* questions */
.qcard { border: 1.5px solid var(--line-2); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.qcard .qhead { display: flex; gap: 8px; align-items: flex-start; }
.qcard .qnum { font-weight: 800; min-width: 1.8em; color: var(--brand); }
.qcard .qtext { flex: 1; white-space: pre-wrap; }
.qcard ol { list-style: none; margin: 8px 0 4px 1.8em; padding: 0; }
.qcard li { padding: 5px 10px; border-radius: 10px; cursor: pointer; }
.qcard li.right { background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.qcard .qtools { display: flex; gap: 2px; flex-wrap: wrap; margin-left: 1.8em; }
.qcard .expl { margin: 4px 0 4px 1.8em; font-size: .85rem; color: var(--muted); }
.editor .choice { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.editor .choice input[type=radio] { width: 22px; height: 22px; flex: none; accent-color: var(--ok); }
.editor .choice b { width: 1.2em; }

/* bubbles (key + review) */
.set-tabs { display: flex; gap: 4px; margin-bottom: 12px; flex-wrap: wrap; background: var(--line-2); padding: 4px; border-radius: 14px; }
.set-tabs button { flex: 1; padding: 8px 4px; border: 0; background: transparent; color: var(--ink-2); border-radius: 10px; min-height: 40px; line-height: 1.25; flex-direction: column; gap: 0; }
.set-tabs button small { font-weight: 500; color: var(--muted); }
.set-tabs button.on { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(19, 26, 43, .12); }
.set-tabs button.on small { color: var(--brand); }
.qs { list-style: none; margin: 8px 0 0; padding: 0; }
.qs li { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 12px; }
.qs li:nth-child(odd) { background: #f8f9fc; }
.qn { width: 2.2em; text-align: right; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; margin-right: 4px; flex: none; }
.bub { width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%; border: 2px solid #c9d0dc; background: #fff;
  font-weight: 700; font-size: .85rem; color: #7a8396; flex: none; box-shadow: none; }
.bub.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.qs .tag { margin-left: auto; font-size: .8rem; font-weight: 700; text-align: right; }
.qs li.correct .tag { color: var(--ok); }
.qs li.wrong .tag { color: var(--bad); }
.qs li.flag { background: var(--warn-bg) !important; }
.qs li.flag .tag { color: var(--warn); }
.qs li.wrong .bub.on { background: var(--bad); border-color: var(--bad); }
.qs li.correct .bub.on { background: var(--ok); border-color: var(--ok); }
.bub.key { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ok); }
.keytable { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.keytable div { background: var(--line-2); border-radius: 10px; padding: 6px 9px; font-size: .9rem; }
.keytable small { color: var(--muted); }

/* scanner */
.cam { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; box-shadow: var(--shadow); }
.cam video { display: block; width: 100%; height: auto; }
.cam canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.status { font-weight: 700; text-align: center; min-height: 1.4em; margin: 8px 0; }
.status.err { color: var(--bad); }
.status.ok { color: var(--ok); }
.review { position: fixed; inset: 0; z-index: 30; background: var(--bg); display: flex; flex-direction: column; }
.review .scroll { flex: 1; overflow-y: auto; }
.review .actions { position: static; }
.score { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin: 6px 0 10px; }
.score .big { font-size: 3rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; min-height: 0; }
.score .big span { font-size: 1.4rem; color: var(--muted); font-weight: 600; }
.score .pct { font-size: 1.3rem; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 2px 12px; border-radius: 999px; }
.namecrop { width: 100%; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: block; }
.marked { width: 100%; border-radius: 10px; margin-top: 8px; }
details summary { cursor: pointer; color: var(--brand); font-weight: 600; }

/* results + reports */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; text-align: center; }
.stats div { background: var(--line-2); border-radius: 14px; padding: 12px 4px 10px; }
.stats b { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats span { font-size: .74rem; color: var(--muted); font-weight: 600; }
.stats div:nth-child(2) { background: var(--brand-soft); }
.stats div:nth-child(2) b { color: var(--brand); }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 10px 6px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.click { cursor: pointer; }
tr.click:hover, tr.click:active { background: #f7f9fc; }
.thumb { height: 26px; max-width: 120px; display: block; border-radius: 4px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); margin-left: 6px; }
.meter { height: 8px; background: var(--line-2); border-radius: 5px; overflow: hidden; min-width: 60px; }
.meter span { display: block; height: 100%; background: var(--ok); border-radius: 5px; }
.meter.low span { background: var(--bad); }
.dec-Retain { color: var(--ok); font-weight: 700; }
.dec-Revise { color: var(--warn); font-weight: 700; }
.dec-Reject, .dec-Check { color: var(--bad); font-weight: 700; }
.alert { border-left: 4px solid var(--warn); background: var(--warn-bg); padding: 10px 12px; border-radius: 10px; margin: 10px 0; font-size: .92rem; }
.alert.red { border-color: var(--bad); background: var(--bad-bg); }
.report-head { display: none; }

/* print area */
#print { display: none; }
@media print {
  @page { margin: 14mm 14mm; }
  :root { background: #fff; font-size: 11.5pt; }
  .bar, .tabs, .steps, .bottomnav, .hint, .actions, .no-print, #toast { display: none !important; }
  main { max-width: none; padding: 0; }
  .card { border: 0; padding: 0; margin-bottom: 14px; break-inside: avoid; box-shadow: none; }
  .stats div { background: none; border: 1px solid #ccc; }
  .report-head { display: block; }
  body.printing #app { display: none; }
  body.printing #print { display: block; }
}
@page sheet { margin: 5mm; }
.sheetpage { page: sheet; break-after: page; display: flex; justify-content: center; }
.sheetpage:last-child { break-after: auto; }
.sheetpage svg { display: block; max-width: 100%; max-height: 265mm; width: auto; height: auto; }
.paper { font-family: "Times New Roman", Georgia, serif; color: #000; }
.paper .head { text-align: center; margin-bottom: 6px; }
.paper .head .school { font-weight: 700; font-size: 1.05em; }
.paper .fields { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 6px 16px; margin: 10px 0; font-size: .95em; }
.paper .fields span { border-bottom: 1px solid #000; display: inline-block; min-width: 60%; }
.paper .setbox { float: right; border: 2px solid #000; padding: 4px 10px; font-weight: 700; font-family: system-ui, sans-serif; }
.paper .instr { font-size: .92em; margin: 6px 0 10px; }
.paper .qlist { margin: 0; padding: 0; list-style: none; }
.paper.two .qlist { columns: 2; column-gap: 24px; }
.paper .qlist > li { break-inside: avoid; margin-bottom: 9px; }
.paper .qlist .ch { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 12px; margin: 2px 0 0 1.4em; }
.paper .qlist .ch.long { grid-template-columns: 1fr; }
.paper .pagebreak { break-after: page; height: 0; }
.paper table { font-size: .95em; }
.paper th, .paper td { border: 1px solid #000; padding: 3px 6px; }
.slip { border: 1px dashed #777; padding: 8px 10px; margin-bottom: 8px; break-inside: avoid; font-family: system-ui, sans-serif; font-size: 10pt; }
.slip b { font-size: 11pt; }
.slip ul { margin: 4px 0 0; padding-left: 18px; }
.how.compact { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.how.compact li { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; }
.how.compact small { display: none; }
.how.compact b { font-size: .82rem; line-height: 1.25; }
.how.compact span { width: 26px; height: 26px; font-size: .8rem; border-radius: 8px; }
/* scan */
.camph { display: flex; flex-direction: column; align-items: center; gap: 10px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 20px 18px; color: #c3cad6; }
.camph[hidden] { display: none; }
.camph svg { width: 120px; height: 150px; }
.camph p { margin: 0; text-align: center; color: var(--muted); font-size: .9rem; max-width: 260px; }
.scanbtns { display: grid; gap: 10px; margin-top: 6px; }
.counter { display: block; text-align: center; margin-top: 16px; font-size: .9rem; font-weight: 600; color: var(--brand); }
/* empty states + list header */
.emptycard { text-align: center; padding: 30px 20px; }
.emptycard h2 { margin-top: 12px; }
.emptycard .btn { margin-top: 10px; width: 100%; }
.emptyic { width: 56px; height: 56px; margin: 0 auto; border-radius: 18px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.emptyic .ic { width: 28px; height: 28px; }
.listhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.listhead h2 { margin: 0; }
select.mini { width: auto; margin: 0; padding: 7px 30px 7px 12px; font-size: .85rem; font-weight: 600; border-radius: 10px; background-position: right 10px center; }
.small-note { font-size: .8rem; margin-bottom: 0; }
/* report cards on phones, tables on wide screens and paper */
.mcards { display: grid; gap: 8px; }
.wide, .wide-inline { display: none; }
@media (min-width: 700px) { .mcards, .mcards-inline { display: none; } .wide { display: block; } .wide-inline { display: inline; } }
@media print { .mcards, .mcards-inline { display: none !important; } .wide { display: block !important; } .wide-inline { display: inline !important; } }
.ccard, .icard { border: 1.5px solid var(--line-2); border-radius: 14px; padding: 12px; }
.ch { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.ch b small { color: var(--muted); font-weight: 600; }
.ccard small { display: block; margin-top: 6px; font-size: .8rem; }
.tagok, .tagbad, .dec { font-size: .75rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.tagok { background: var(--ok-bg); color: var(--ok); }
.tagbad { background: var(--bad-bg); color: var(--bad); }
.dec.dec-Retain { background: var(--ok-bg); }
.dec.dec-Revise { background: var(--warn-bg); }
.dec.dec-Reject, .dec.dec-Check { background: var(--bad-bg); }
.itext { margin: -2px 0 8px; font-size: .85rem; color: var(--ink-2); }
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pd div { background: var(--line-2); border-radius: 10px; padding: 7px 10px; }
.pd small { display: block; font-size: .7rem; color: var(--muted); font-weight: 600; }
.pd b { font-size: 1.05rem; margin-right: 6px; font-variant-numeric: tabular-nums; }
.pd span { font-size: .78rem; color: var(--ink-2); }
.chs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.chs span { font-size: .78rem; padding: 3px 9px; border-radius: 8px; background: var(--line-2); color: var(--ink-2); }
.chs span.k { background: var(--ok-bg); color: var(--ok); font-weight: 700; }
.chs span.z { opacity: .55; }
