/* تاج الوقار – الهوية البصرية: زمردي داكن + ذهبي هادئ + عاجي */
@font-face { font-family: 'Cairo'; src: url('../fonts/cairo-400-0.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+25CC; }
@font-face { font-family: 'Cairo'; src: url('../fonts/cairo-600-1.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+25CC; }
@font-face { font-family: 'Cairo'; src: url('../fonts/cairo-700-2.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+25CC; }
@font-face { font-family: 'Cairo'; src: url('../fonts/cairo-800-3.woff2') format('woff2'); font-weight: 800; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+25CC; }
@font-face { font-family: 'Cairo'; src: url('../fonts/cairo-400-4.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF; }
@font-face { font-family: 'Cairo'; src: url('../fonts/cairo-700-800-5.woff2') format('woff2'); font-weight: 700 800; font-display: swap; unicode-range: U+0000-00FF; }
@font-face { font-family: 'Amiri Quran'; src: url('../fonts/amiri-quran-400-6.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --em-900: #062F25; --em-800: #0A3F31; --em-700: #0E513F; --em-600: #146B53; --em-100: #E3F0EA; --em-50: #F1F7F4;
  --gold: #B08D4A; --gold-600: #9A7A3D; --gold-100: #F4EBD8;
  --ivory: #FAF6EC; --white: #FFFFFF; --g-100: #F2F2EF; --g-200: #E4E3DE; --g-400: #A7A6A0; --g-600: #6B6A64; --g-800: #2E2D29;
  --red: #B3261E; --red-50: #FCEDEC; --amber: #A86200; --amber-50: #FFF4E0; --blue: #1F5F9E; --blue-50: #EAF2FB;
  --bg: var(--ivory); --surface: var(--white); --surface-2: var(--g-100); --text: #1D1C19; --muted: var(--g-600); --line: var(--g-200);
  --primary: var(--em-700); --primary-ink: #fff; --accent: var(--gold);
  --quran-bg: #FFFDF7; --quran-ink: #14130F;
  --radius: 16px; --shadow: 0 1px 2px rgba(6,47,37,.06), 0 6px 20px rgba(6,47,37,.07);
  --qsize: 30px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0C1613; --surface: #13211D; --surface-2: #1A2B26; --text: #EFEADC; --muted: #A9B3AE; --line: #263833;
  --primary: #1F8A6A; --primary-ink: #fff; --accent: #CDAE6E;
  --em-100: #173A30; --em-50: #12261F; --gold-100: #3A3120; --red-50: #3A1715; --amber-50: #3A2A10; --blue-50: #12263A;
  --quran-bg: #101C18; --quran-ink: #F4EEDD;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Cairo', system-ui, sans-serif; font-size: 16px; line-height: 1.6; }
body { min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--primary); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- الهيكل ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--em-800); color: #fff; padding: 10px 14px calc(10px); padding-top: max(10px, env(safe-area-inset-top)); display: flex; align-items: center; gap: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
[data-theme="dark"] .topbar { background: #0A1E18; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.brand .crown { width: 36px; height: 36px; flex: none; }
.brand b { font-size: 16px; font-weight: 800; white-space: nowrap; }
.brand small { display: block; font-size: 11px; opacity: .8; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iconbtn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.iconbtn svg { width: 20px; height: 20px; }
.syncpill { font-size: 11px; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.14); white-space: nowrap; }
.syncpill.off { background: #C77700; } .syncpill.pend { background: #8A6D2C; }
main { max-width: 760px; margin: 0 auto; padding: 16px 14px 120px; }
body.padded main { padding-bottom: 260px; }
main.wide { max-width: 1200px; }
.banner { background: var(--amber-50); color: var(--amber); border: 1px solid #E9C98F; padding: 10px 14px; border-radius: 12px; font-size: 13px; margin-bottom: 14px; }
[data-theme="dark"] .banner { border-color: #5A4520; color: #F0C27A; }
.banner.info { background: var(--blue-50); color: var(--blue); border-color: #B9D2EC; }
[data-theme="dark"] .banner.info { color: #9CC6F0; border-color: #24496E; }
.banner.err { background: var(--red-50); color: var(--red); border-color: #EFB9B4; }
[data-theme="dark"] .banner.err { color: #F2A29B; border-color: #6B2420; }

/* ---------- عناصر ---------- */
h1 { font-size: 22px; margin: 4px 0 14px; font-weight: 800; }
h2 { font-size: 18px; margin: 18px 0 10px; font-weight: 700; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 14px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.input, select.input, textarea.input { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); outline: none; font-size: 17px; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
textarea.input { min-height: 90px; resize: vertical; }
.btn { min-height: 52px; padding: 10px 18px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: 16px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .08s, background .15s; user-select: none; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.gold { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { color: var(--red); border-color: #E9B6B1; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.block { width: 100%; }
.btn.sm { min-height: 40px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.row { display: flex; gap: 10px; align-items: center; }
.row > * { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-2); padding: 4px; border-radius: 14px; gap: 4px; }
.seg button { min-height: 46px; border: 0; border-radius: 10px; background: transparent; font-weight: 700; cursor: pointer; }
.seg button.on { background: var(--surface); box-shadow: var(--shadow); color: var(--primary); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.chip.em { background: var(--em-100); color: var(--primary); } [data-theme="dark"] .chip.em { color: #8FD3B8; }
.chip.gold { background: var(--gold-100); color: var(--gold-600); } [data-theme="dark"] .chip.gold { color: var(--accent); }
.chip.red { background: var(--red-50); color: var(--red); } .chip.amber { background: var(--amber-50); color: var(--amber); } .chip.blue { background: var(--blue-50); color: var(--blue); }
.list { display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.item .grow { flex: 1; min-width: 0; }
.item b { display: block; }
.toast { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom)); inset-inline: 14px; max-width: 520px; margin: 0 auto; background: var(--g-800); color: #fff; padding: 12px 16px; border-radius: 14px; z-index: 100; display: flex; gap: 10px; align-items: center; box-shadow: 0 8px 30px rgba(0,0,0,.25); animation: up .2s ease; font-size: 15px; }
.toast button { background: rgba(255,255,255,.15); border: 0; color: #fff; padding: 6px 12px; border-radius: 10px; font-weight: 700; cursor: pointer; }
@keyframes up { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-bg { position: fixed; inset: 0; background: rgba(5,20,16,.55); z-index: 90; display: grid; place-items: end center; animation: fade .15s; }
@media (min-width: 700px) { .modal-bg { place-items: center; } }
.modal { background: var(--surface); width: 100%; max-width: 560px; max-height: 92dvh; overflow: auto; border-radius: 22px 22px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); animation: up .2s ease; }
@media (min-width: 700px) { .modal { border-radius: 22px; } }
.modal h3 { margin: 0 0 10px; font-size: 19px; }
@keyframes fade { from { opacity: 0; } }

/* ---------- الدخول ---------- */
.login-hero { text-align: center; padding: 28px 10px 10px; }
.login-hero .crown { width: 86px; height: 86px; }
.login-hero h1 { margin: 8px 0 0; font-size: 24px; color: var(--primary); }
[data-theme="dark"] .login-hero h1 { color: var(--accent); }
.login-hero p { margin: 2px 0 0; color: var(--muted); }
.ornament { height: 10px; margin: 14px auto; max-width: 220px; background: radial-gradient(circle, var(--accent) 2px, transparent 2.5px) center/14px 10px repeat-x; opacity: .7; }

/* ---------- بطاقات النماذج ---------- */
.models { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 600px) { .models { grid-template-columns: repeat(3, 1fr); } }
.mcard { position: relative; aspect-ratio: 3/4; border-radius: 20px; border: 0; cursor: pointer; color: #fff; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #1A7A5E 0%, var(--em-800) 55%, var(--em-900) 100%); box-shadow: 0 8px 24px rgba(6,47,37,.25); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; transition: transform .12s; }
.mcard:active { transform: scale(.96); }
.mcard::before { content: ''; position: absolute; inset: 8px; border: 1.5px solid rgba(205,174,110,.65); border-radius: 14px; pointer-events: none; }
.mcard::after { content: ''; position: absolute; inset: 0; background: repeating-conic-gradient(from 22.5deg, rgba(205,174,110,.06) 0 45deg, transparent 0 90deg); background-size: 46px 46px; pointer-events: none; }
.mcard .n { font-size: 64px; font-weight: 800; line-height: 1; color: #E8D3A2; font-variant-numeric: tabular-nums; z-index: 1; }
.mcard .l { font-size: 14px; opacity: .9; z-index: 1; }
.mcard .st { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 1; font-size: 10px; background: rgba(0,0,0,.25); padding: 1px 8px; border-radius: 99px; }

/* ---------- شاشة الاختبار ---------- */
.exam-head { position: sticky; top: 56px; z-index: 20; background: var(--bg); padding: 8px 0 8px; margin: -8px 0 8px; }
.eh-row { display: flex; align-items: center; gap: 10px; }
.eh-name { flex: 1; min-width: 0; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eh-score { text-align: center; background: var(--primary); color: #fff; border-radius: 12px; padding: 2px 12px; min-width: 76px; }
.eh-score b { font-size: 22px; display: block; line-height: 1.2; font-variant-numeric: tabular-nums; }
.eh-score small { font-size: 10px; opacity: .85; display: block; line-height: 1.2; }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--primary)); border-radius: 99px; transition: width .3s; }
.steps { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.steps button { flex: none; min-width: 40px; height: 34px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; font-size: 13px; }
.steps button.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.steps button.has { border-color: var(--accent); }
.qmeta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.qtitle { display: flex; align-items: baseline; gap: 8px; justify-content: space-between; }
.qtitle h2 { margin: 0; font-size: 20px; }
.qscore { font-weight: 800; font-size: 18px; color: var(--primary); white-space: nowrap; } [data-theme="dark"] .qscore { color: #8FD3B8; }
.qscore.low { color: var(--red); }
.prompt { background: var(--em-50); border: 1px solid var(--em-100); border-radius: 14px; padding: 12px 14px; margin: 8px 0; }
.prompt .lbl { font-size: 12px; font-weight: 700; color: var(--primary); } [data-theme="dark"] .prompt .lbl { color: #8FD3B8; }
.prompt .q { font-family: 'Amiri Quran', serif; font-size: calc(var(--qsize) + 2px); line-height: 2.1; color: var(--quran-ink); }
.endmark { background: var(--gold-100); border-radius: 14px; padding: 8px 14px; margin: 8px 0; }
.endmark .lbl { font-size: 12px; font-weight: 700; color: var(--gold-600); } [data-theme="dark"] .endmark .lbl { color: var(--accent); }
.endmark .q { font-family: 'Amiri Quran', serif; font-size: calc(var(--qsize) - 4px); line-height: 2; }
.quran { font-family: 'Amiri Quran', serif; font-size: var(--qsize); line-height: 2.25; background: var(--quran-bg); color: var(--quran-ink); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; text-align: start; word-spacing: 2px; }
.quran .v { cursor: pointer; border-radius: 8px; transition: background .15s; }
.quran .v.sel { background: color-mix(in srgb, var(--accent) 22%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 40%, transparent); }
.quran .v.err { text-decoration: underline wavy color-mix(in srgb, var(--red) 55%, transparent); text-underline-offset: 10px; text-decoration-thickness: 1.5px; }
.quran .an { font-family: 'Amiri Quran', serif; color: var(--gold-600); font-size: .8em; white-space: nowrap; } [data-theme="dark"] .quran .an { color: var(--accent); }
.simnote { border-inline-start: 4px solid var(--amber); background: var(--amber-50); padding: 8px 12px; border-radius: 10px; margin-top: 8px; font-size: 14px; }
.simnote .q { font-family: 'Amiri Quran', serif; font-size: 20px; }
.fontctl { display: flex; gap: 6px; align-items: center; }
.fontctl button { width: 40px; height: 36px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 800; cursor: pointer; }

/* لوحة الأزرار السفلية (منطقة الإبهام) */
.pad { position: fixed; bottom: 0; inset-inline: 0; z-index: 25; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
.pad-in { max-width: 760px; margin: 0 auto; }
.openinc { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 6px; padding: 4px 8px; border-radius: 10px; background: var(--amber-50); color: var(--amber); }
.openinc b { flex: 1; }
.openinc button { border: 0; background: var(--surface); border-radius: 8px; padding: 4px 10px; font-weight: 700; cursor: pointer; color: var(--primary); }
.errgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.eb { min-height: 58px; border-radius: 14px; border: 0; font-weight: 800; font-size: 15px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.25; transition: transform .08s; padding: 4px; }
.eb small { font-weight: 600; font-size: 12px; opacity: .85; font-variant-numeric: tabular-nums; }
.eb:active { transform: scale(.95); }
.eb.a1 { background: #FFF1D6; color: #8A5300; } .eb.a2 { background: #FFE0B8; color: #7A3E00; } .eb.ft { background: #F9D3CF; color: #8E1C15; }
.eb.sf { background: var(--em-100); color: var(--em-700); } .eb.tk { background: #E2ECF8; color: #1E4F86; } .eb.tj { background: #D3E2F5; color: #173F6E; }
[data-theme="dark"] .eb.a1 { background: #4A3613; color: #FFD48A; } [data-theme="dark"] .eb.a2 { background: #563413; color: #FFC07A; } [data-theme="dark"] .eb.ft { background: #5A1E1A; color: #FFB3AB; }
[data-theme="dark"] .eb.sf { background: #173A30; color: #9EE0C5; } [data-theme="dark"] .eb.tk { background: #18304C; color: #A9CBF2; } [data-theme="dark"] .eb.tj { background: #1C3858; color: #BBD6F6; }
.navrow { display: grid; grid-template-columns: 1fr auto auto 1.3fr; gap: 7px; margin-top: 7px; }
.navrow .btn { min-height: 50px; }
.flash { animation: flash .35s; } @keyframes flash { 0% { box-shadow: 0 0 0 0 var(--accent); } 100% { box-shadow: 0 0 0 10px transparent; } }

/* التفسير */
.tq { font-size: 19px; font-weight: 700; margin: 4px 0 8px; }
.tayah { font-family: 'Amiri Quran', serif; font-size: 24px; line-height: 2; background: var(--quran-bg); border-radius: 12px; padding: 8px 12px; border: 1px solid var(--line); }
.answer { background: var(--em-50); border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.answer h4 { margin: 0 0 4px; font-size: 13px; color: var(--primary); } [data-theme="dark"] .answer h4 { color: #8FD3B8; }
.answer ul { margin: 0; padding-inline-start: 20px; }
.kp { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.kp label { display: flex; gap: 10px; align-items: center; padding: 8px 10px; background: var(--surface); border-radius: 10px; border: 1px solid var(--line); cursor: pointer; }
.kp input { width: 22px; height: 22px; accent-color: var(--primary); }
.scorepick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 8px; }
.scorepick button { min-height: 52px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 800; font-size: 18px; cursor: pointer; font-variant-numeric: tabular-nums; }
.scorepick button.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px; }

/* المراجعة والتقرير */
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; }
table.t th { font-size: 12px; color: var(--muted); font-weight: 700; background: var(--surface-2); position: sticky; top: 0; }
table.t td.n, table.t th.n { text-align: center; font-variant-numeric: tabular-nums; }
table.t tr.sum td { font-weight: 800; background: var(--em-50); }
.bigtotal { text-align: center; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, var(--em-800), var(--em-600)); color: #fff; margin-bottom: 14px; }
.bigtotal b { font-size: 52px; display: block; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bigtotal .g { display: inline-block; margin-top: 6px; background: rgba(255,255,255,.15); color: #F3DDA8; padding: 2px 14px; border-radius: 99px; font-weight: 800; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 700; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; text-align: center; }
.stat b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); font-size: 12px; }

/* الإدارة */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; scrollbar-width: thin; }
.tabs button { flex: none; border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 8px 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.tabs button.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.kpi small { color: var(--muted); font-weight: 600; } .kpi b { display: block; font-size: 28px; font-variant-numeric: tabular-nums; color: var(--primary); } [data-theme="dark"] .kpi b { color: #8FD3B8; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 10px; }
.filters .input { min-height: 44px; font-size: 15px; padding: 8px 10px; }
.tablewrap { overflow: auto; max-height: 70vh; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar { display: grid; grid-template-columns: 90px 1fr 60px; gap: 8px; align-items: center; font-size: 13px; }
.bar .track { height: 14px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar .track i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }

/* الطباعة: تقرير النتيجة */
.print-only { display: none; }
@media print {
  .topbar, .pad, .noprint, .toast, .tabs { display: none !important; }
  .print-only { display: block; }
  body, html { background: #fff; color: #000; }
  main { padding: 0; max-width: none; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .bigtotal { background: #fff !important; color: #000; border: 2px solid #0E513F; }
  .bigtotal .g { color: #0E513F; }
  @page { size: A4; margin: 14mm; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.lvbar { margin-top: -4px; } .lvbar button { padding: 6px 12px; font-size: 14px; border-radius: 99px; } .lvbar button.on { background: var(--accent); border-color: var(--accent); }
