:root {
  --accent: #1F3BB3; --accent-soft: rgb(233,235,247); --accent-mid: rgb(165,177,225); --accent-dark: rgb(23,44,134);
  --ink: #172033; --muted: #5B6678; --paper: #F3F5F8; --surface: #FFFFFF; --line: #D8DEE6; --line-soft: #E8ECF1;
  --warn: #D98E04; --warn-soft: #FEF3D6; --bad: #C0283A; --bad-soft: #FBE6E9; --ok-soft: #E3F4EA; --ok: #1B7F4B; --blue: #2457C5; --blue-soft: #E6EDFB;
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--paper); -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
a { color: var(--accent-dark); }
.muted { color: var(--muted); } .small { font-size: .875rem; } .pre { white-space: pre-wrap; }
.hidden { display: none !important; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .grow { flex: 1 1 auto; } .spacer { flex: 1; }
:focus-visible { outline: 3px solid var(--accent-mid); outline-offset: 2px; }

/* ---------- kontrol ---------- */
.btn { font: inherit; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 9px 16px; border-radius: var(--r-sm); cursor: pointer; min-height: 42px; transition: background .12s, border-color .12s; }
.btn:hover:not(:disabled) { background: var(--line-soft); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger:hover:not(:disabled) { background: #9f1f2f; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--accent-dark); }
.btn.sm { padding: 5px 10px; min-height: 32px; font-size: .875rem; }
.btn.block { width: 100%; }
.input { font: inherit; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); min-height: 42px; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { resize: vertical; min-height: 90px; }
.field { display: block; margin-bottom: 14px; } .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 5px; }
.hint { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; }
.check { display: flex; gap: 8px; align-items: center; margin: 8px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-err { color: var(--bad); font-weight: 600; min-height: 1.2em; font-size: .9rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; } .form-grid .full { grid-column: 1 / -1; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.chip.gray { background: var(--line-soft); color: var(--muted); } .chip.green { background: var(--ok-soft); color: var(--ok); }
.chip.red { background: var(--bad-soft); color: var(--bad); } .chip.blue { background: var(--blue-soft); color: var(--blue); } .chip.amber { background: var(--warn-soft); color: #8a5a00; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #b6bdc8; margin-right: 6px; } .dot.on { background: #22a35a; box-shadow: 0 0 0 3px #d4f0e0; }
.logo { border-radius: 10px; object-fit: contain; flex: none; } .logo-letter { display: flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-weight: 800; }

/* ---------- toast & modal ---------- */
#toasts { position: fixed; z-index: 100; right: 14px; bottom: 14px; left: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; max-width: 420px; background: var(--ink); color: #fff; padding: 11px 16px; border-radius: var(--r-md); font-weight: 600; box-shadow: 0 6px 24px rgba(23,32,51,.25); transition: opacity .3s, transform .3s; }
.toast.error { background: var(--bad); } .toast.ok { background: var(--ok); } .toast.out { opacity: 0; transform: translateY(8px); }
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(23,32,51,.55); display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.modal { background: var(--surface); border-radius: var(--r-lg); width: 100%; max-width: 480px; max-height: 94vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal.wide { max-width: 760px; } .modal.xl { max-width: 960px; }
.modal-head { padding: 18px 22px 0; } .modal-head h2 { margin: 0; }
.modal-body { padding: 16px 22px; overflow-y: auto; }
.modal-foot { padding: 12px 22px 18px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- halaman pusat (login) ---------- */
.center-wrap { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(160deg, var(--accent-soft), var(--paper) 55%); }
.center-card { background: var(--surface); border-radius: var(--r-lg); padding: 28px 26px; width: 100%; max-width: 420px; box-shadow: 0 10px 40px rgba(23,32,51,.10); }
.brand { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.brand .t1 { font-weight: 800; font-size: 1.15rem; line-height: 1.2; } .brand .t2 { color: var(--muted); font-size: .9rem; }
.pw-wrap { position: relative; } .pw-wrap .input { padding-right: 76px; }
.pw-wrap button { position: absolute; right: 6px; top: 6px; }
.links { margin-top: 18px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .9rem; }

/* ---------- jadwal siswa ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20; }
.topbar .who { font-weight: 700; line-height: 1.2; } .topbar .who small { display: block; font-weight: 400; color: var(--muted); }
.page { max-width: 1040px; margin: 0 auto; padding: 22px 16px 60px; }
.exam-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.exam-card { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; gap: 10px; border-left: 6px solid var(--line); }
.exam-card.buka, .exam-card.berlangsung { border-left-color: var(--accent); } .exam-card.terkunci { border-left-color: var(--bad); } .exam-card.selesai { border-left-color: var(--ok); }
.exam-card h3 { margin: 0; font-size: 1.15rem; } .exam-card .meta { color: var(--muted); font-size: .9rem; }
.empty { text-align: center; color: var(--muted); padding: 50px 16px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-lg); }
.notice { background: var(--warn-soft); border: 1px solid #f1d58c; border-radius: var(--r-md); padding: 10px 14px; font-size: .92rem; margin-bottom: 16px; }
.token-input { font-size: 1.8rem; letter-spacing: .3em; text-align: center; text-transform: uppercase; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- halaman ujian: lembar jawaban ---------- */
body.in-exam { background: var(--paper); overscroll-behavior: none; }
.exam { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.exam-top { background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px; padding-top: calc(8px + env(safe-area-inset-top, 0px)); display: flex; align-items: center; gap: 14px; position: sticky; top: 0; z-index: 20; }
.exam-top .subject { font-weight: 700; line-height: 1.2; min-width: 0; } .exam-top .subject small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.5rem; letter-spacing: .02em; padding: 4px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); }
.timer.warn { background: var(--warn-soft); color: #8a5a00; } .timer.danger { background: var(--bad-soft); color: var(--bad); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.save-state { font-size: .8rem; color: var(--muted); white-space: nowrap; } .save-state.err { color: var(--bad); font-weight: 700; }
.exam-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; max-width: 1180px; width: 100%; margin: 0 auto; padding: 20px 16px 28px; align-items: start; }
.q-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; }
.q-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.q-no { font-weight: 800; font-size: 1.05rem; } .q-flag { margin-left: auto; }
.q-text { white-space: pre-wrap; font-size: 1.12rem; line-height: 1.6; margin-bottom: 18px; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.q-img { max-width: 100%; max-height: 360px; border-radius: var(--r-sm); border: 1px solid var(--line); margin-bottom: 16px; display: block; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { display: flex; gap: 14px; align-items: flex-start; text-align: left; font: inherit; width: 100%; padding: 12px 14px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-md); cursor: pointer; color: var(--ink); -webkit-user-select: none; user-select: none; transition: border-color .1s, background .1s; }
.opt:hover { border-color: var(--accent-mid); }
.opt .bubble { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--accent-mid); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--accent-dark); background: #fff; }
.opt .otext { padding-top: 4px; white-space: pre-wrap; line-height: 1.45; }
.opt.sel { border-color: var(--accent); background: var(--accent-soft); }
.opt.sel .bubble { background: var(--accent); border-color: var(--accent); color: #fff; }
.essay { min-height: 220px; font-size: 1.05rem; line-height: 1.55; }
.q-nav { display: flex; gap: 10px; margin-top: 22px; align-items: center; }
.q-nav .btn { min-width: 118px; } .q-nav .mid { margin: 0 auto; }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; position: sticky; top: 84px; }
.sheet h3 { margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 8px; }
.cell { font: inherit; font-weight: 700; font-size: .9rem; height: 42px; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; padding: 0; position: relative; }
.cell.done { background: var(--accent); border-color: var(--accent); color: #fff; }
.cell.flag { background: var(--warn); border-color: var(--warn); color: #fff; }
.cell.cur { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 14px 0; font-size: .8rem; color: var(--muted); } .legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); vertical-align: -1px; margin-right: 5px; }
.legend i.done { background: var(--accent); border-color: var(--accent); } .legend i.flag { background: var(--warn); border-color: var(--warn); }
.sheet-toggle { display: none; }
.gate { position: fixed; inset: 0; z-index: 80; background: rgba(23,32,51,.92); display: flex; align-items: center; justify-content: center; padding: 20px; }
.gate-card { background: var(--surface); border-radius: var(--r-lg); padding: 28px; max-width: 460px; width: 100%; text-align: center; }
.gate-card.bad { border-top: 8px solid var(--bad); } .gate-card.warn { border-top: 8px solid var(--warn); }
.big-num { font-size: 3rem; font-weight: 800; line-height: 1; margin: 6px 0 10px; }
.end-wrap { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.end-card { background: var(--surface); border-radius: var(--r-lg); padding: 34px 28px; max-width: 480px; width: 100%; text-align: center; box-shadow: 0 10px 40px rgba(23,32,51,.10); }
.end-icon { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; color: #fff; background: var(--ok); }
.end-icon.bad { background: var(--bad); } .end-icon.warn { background: var(--warn); }
.score-box { margin: 16px auto; padding: 14px; border-radius: var(--r-md); background: var(--accent-soft); }
.score-box b { font-size: 2.4rem; display: block; color: var(--accent-dark); }

/* ---------- admin ---------- */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--ink); color: #dfe5ee; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.side .brand { color: #fff; padding: 0 8px 14px; margin: 0; } .side .brand .t2 { color: #9aa6b8; }
.side a.nav { display: block; padding: 10px 12px; border-radius: var(--r-sm); color: #cbd3df; text-decoration: none; font-weight: 600; }
.side a.nav:hover { background: rgba(255,255,255,.08); color: #fff; } .side a.nav.active { background: var(--accent); color: #fff; }
.side .me { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; } .side .me .btn { margin-top: 8px; }
.content { padding: 24px 28px 60px; min-width: 0; }
.mobile-bar { display: none; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; } .page-head h1 { margin: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; margin-bottom: 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; } .stat b { display: block; font-size: 1.9rem; line-height: 1.1; } .stat span { color: var(--muted); font-size: .85rem; }
.stat.alert b { color: var(--bad); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
table.t { width: 100%; border-collapse: collapse; font-size: .92rem; } table.t th, table.t td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.t th { background: #F7F9FB; font-weight: 700; color: var(--muted); font-size: .82rem; white-space: nowrap; position: sticky; top: 0; } table.t tr:last-child td { border-bottom: 0; }
table.t tr.bad { background: #fff5f6; } table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab { font: inherit; font-weight: 700; background: none; border: 0; padding: 10px 16px; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tab.active { color: var(--accent-dark); border-bottom-color: var(--accent); }
.token-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--accent-soft); border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 18px; }
.token-box .tk { font-size: 2rem; font-weight: 800; letter-spacing: .25em; font-variant-numeric: tabular-nums; color: var(--accent-dark); }
.token-box .tk.off { color: var(--muted); text-decoration: line-through; }
.progress { height: 8px; background: var(--line-soft); border-radius: 99px; overflow: hidden; min-width: 70px; } .progress i { display: block; height: 100%; background: var(--accent); }
.qcard { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 10px; background: var(--surface); }
.qcard .qh { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.qcard .qopts { margin: 8px 0 0; padding: 0; list-style: none; font-size: .92rem; } .qcard .qopts li { padding: 2px 0; } .qcard .qopts li.key { color: var(--ok); font-weight: 700; }
.qcard img { max-height: 120px; border-radius: 6px; border: 1px solid var(--line); margin: 6px 0; display: block; }
.opt-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; } .opt-row .l { font-weight: 800; width: 22px; text-align: center; } .opt-row input[type=radio] { width: 18px; height: 18px; accent-color: var(--ok); flex: none; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; } .toolbar .input { width: auto; min-width: 150px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: .9rem; } .timeline li { padding: 5px 0 5px 16px; border-left: 3px solid var(--line); margin-left: 6px; } .timeline li.pelanggaran, .timeline li.terkunci { border-left-color: var(--bad); } .timeline li.admin { border-left-color: var(--warn); } .timeline li.selesai { border-left-color: var(--ok); }
.ans-item { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 10px; background: var(--surface); } .ans-item.ok { border-left: 5px solid var(--ok); } .ans-item.no { border-left: 5px solid var(--bad); }
.ans-item .at { white-space: pre-wrap; background: #F7F9FB; padding: 8px 10px; border-radius: 6px; margin-top: 6px; }
.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- cetak ---------- */
.print-bar { position: sticky; top: 0; z-index: 30; background: var(--ink); color: #fff; padding: 10px 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.print-bar .btn { min-height: 36px; }
.sheet-a4 { background: #fff; color: #000; width: 210mm; max-width: 100%; margin: 14px auto; padding: 12mm 14mm; box-shadow: 0 2px 14px rgba(0,0,0,.15); font-size: 11pt; line-height: 1.35; }
.kop { display: flex; align-items: center; gap: 14px; border-bottom: 4px double #000; padding-bottom: 8px; margin-bottom: 12px; font-family: "Times New Roman", Times, serif; }
.kop .kt { flex: 1; text-align: center; padding-right: 76px; line-height: 1.25; } .kop .kt span { display: block; }
.kop .k-org { font-weight: 700; font-size: 11.5pt; letter-spacing: .12em; text-transform: uppercase; } .kop .k-name { font-weight: 700; font-size: 19pt; letter-spacing: .05em; line-height: 1.2; margin: 2px 0 3px; }
.kop .k-addr { font-size: 9.5pt; }
.kop.small { font-family: var(--font); border-bottom-width: 3px; } .kop.small .kt { padding-right: 0; } .kop.small .kt b { font-size: 14pt; display: block; text-transform: uppercase; } .kop.small .kt span { font-size: 9.5pt; }
.p-title { text-align: center; font-weight: 800; font-size: 13pt; margin: 10px 0 12px; text-transform: uppercase; }
table.pt { width: 100%; border-collapse: collapse; font-size: 10.5pt; } table.pt th, table.pt td { border: 1px solid #000; padding: 4px 7px; text-align: left; } table.pt th { background: #eee; } table.pt td.c, table.pt th.c { text-align: center; } table.pt tr { break-inside: avoid; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm 6mm; }
.pcard { border: 1.5px solid #000; border-radius: 6px; padding: 6px 10px 8px; break-inside: avoid; font-size: 10pt; height: 62mm; display: flex; flex-direction: column; }
.pcard .kop { margin-bottom: 6px; padding-bottom: 5px; border-bottom-width: 2px; gap: 8px; } .pcard .kop .kt b { font-size: 9.5pt; } .pcard .kop .kt span { font-size: 7.5pt; } .pcard .kop .logo { width: 30px !important; height: 30px !important; font-size: 15px !important; }
.pcard .ct { text-align: center; font-weight: 800; font-size: 10pt; margin-bottom: 4px; }
.pcard dl { display: grid; grid-template-columns: 64px 1fr; gap: 1px 6px; margin: 0; font-size: 9.5pt; } .pcard dt { margin: 0; } .pcard dd { margin: 0; font-weight: 700; }
.pcard .pw { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11pt; letter-spacing: .08em; }
.sign { display: flex; justify-content: space-between; margin-top: 24px; break-inside: avoid; } .sign div { width: 45%; text-align: center; } .sign .line { margin-top: 56px; border-bottom: 1px solid #000; }
.pgbreak { break-after: page; page-break-after: always; }

/* ---------- responsif ---------- */
@media (max-width: 900px) {
  .exam-main { grid-template-columns: 1fr; padding: 12px 12px 110px; }
  .q-panel { padding: 16px; }
  .sheet { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 40; border-radius: 18px 18px 0 0; max-height: 72vh; overflow-y: auto; transform: translateY(105%); transition: transform .22s; box-shadow: 0 -10px 40px rgba(0,0,0,.25); padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .sheet.open { transform: none; }
  .sheet-toggle { display: inline-flex; }
  .q-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); margin: 0; }
  .q-nav .btn { min-width: 0; flex: 1; padding: 9px 6px; }
  .q-nav .mid { margin: 0; }
  .timer { font-size: 1.2rem; padding: 3px 10px; }
  .save-state { display: none; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 50; transform: translateX(-105%); transition: transform .2s; } .side.open { transform: none; }
  .mobile-bar { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 10px 14px; position: sticky; top: 0; z-index: 40; } .mobile-bar b { font-weight: 700; }
  .content { padding: 16px 12px 50px; }
  .form-grid, .dash-cols { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 110px 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print {
  @page { size: A4; margin: 10mm; }
  body { background: #fff; } .print-bar, #toasts, .no-print { display: none !important; }
  .sheet-a4 { box-shadow: none; margin: 0; width: auto; padding: 0; }
}
