/* ═══════════════════════════════════════════════════════════════════
   دليل الماهر التفاعلي — التصميم
   هوية بوابة القبول والتسجيل: كحليّ ‎#202649 وذهبيّ ‎#d8b078 على أرضٍ دافئة.
   نسقٌ فاتحٌ واحد لا يتبع نسق الجهاز، كالبوابة. والجوّالُ أوّلًا.
   ═══════════════════════════════════════════════════════════════════ */

@font-face { font-family: Thmanyah; font-weight: 500; font-display: swap;
  src: url("fonts/thmanyah-500.woff2") format("woff2"); }
@font-face { font-family: Thmanyah; font-weight: 700; font-display: swap;
  src: url("fonts/thmanyah-700.woff2") format("woff2"); }

:root {
  --navy: #202649; --navy-800: #262d56; --navy-900: #161b38;
  --gold: #d8b078; --gold-600: #8a5f28; --gold-100: #f6eedb; --gold-50: #fbf6ec;
  --blue: #93a6c9; --blue-600: #4f6390; --blue-100: #e7ecf6; --blue-50: #f3f6fb;
  --bg: #f6f2ea; --surface: #fff; --surface-2: #f3efe4;
  --ink: #1e2445; --ink-2: #3a4063; --muted: #666b82;
  --line: #e6dfd0; --line-2: #d6cbb3;
  --ok: #1e7d3c; --ok-100: #e7f4ec;
  --no: #b3372f; --no-100: #fbeceb;
  --r-xl: 22px; --r-lg: 16px; --r-md: 12px; --r-sm: 8px;
  --shadow: 0 1px 2px rgba(32,38,73,.05), 0 12px 32px -18px rgba(32,38,73,.30);
  --tap: 48px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Thmanyah, "SF Arabic", "Geeza Pro", Tahoma, sans-serif;
  font-weight: 500; font-size: 17.5px; line-height: 1.8;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
@media (min-width: 720px) { body { font-size: 18px; } }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.35; text-wrap: balance; }
h1 { font-size: 1.65rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.08rem; }
p { margin: 0 0 .9em; } p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 .9em; padding-inline-start: 1.3em; }
li { margin-bottom: .35em; }
b, strong { font-weight: 700; }
a { color: var(--gold-600); text-underline-offset: 5px; }
a.btn, a.iconbtn, a.choice, .brand { text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-600); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .9rem; line-height: 1.7; }

/* ───────── الهيكل ───────── */
.top {
  position: sticky; top: 0; z-index: 30; background: rgba(246,242,234,.94);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in { max-width: 44rem; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 10px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: .98rem; }
.brand .dot { width: 26px; height: 26px; border-radius: 9px; background: var(--navy); color: var(--gold);
  display: grid; place-items: center; font-size: .8rem; flex: none; }
.top .spacer { flex: 1 1 auto; }
.iconbtn {
  min-width: 44px; min-height: 44px; padding: 0 10px; border: 1px solid var(--line-2);
  background: var(--surface); border-radius: 12px; cursor: pointer; font-size: .88rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.iconbtn:hover { border-color: var(--gold); }

main { max-width: 44rem; margin: 0 auto; padding: 18px 16px 8px; min-width: 0; }

/* ───────── التذييل: الحقوق يسارًا والتوقيع يمينًا، فوق شريط التنقّل ───────── */
.app-foot { border-top: 1px solid var(--line); margin-top: 24px;
  padding: 18px 16px calc(84px + env(safe-area-inset-bottom)); font-size: .82rem; color: var(--muted); }
.app-foot-in { max-width: 44rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  gap: 10px 24px; flex-wrap: wrap; }
.ft-rights { margin: 0; order: 2; }
.ft-credit { position: relative; order: -1; }
#ft-credit-btn { display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; padding: 4px 2px;
  cursor: pointer; font: inherit; color: var(--ink-2); }
.ft-credit-label { font-size: 12.5px; opacity: .8; padding-inline-end: 10px; border-inline-end: 1px solid var(--line-2); line-height: 1.2; }
.ft-sig { display: block; height: 46px; width: auto; transition: filter .2s, transform .2s; }
#ft-credit-btn:hover .ft-sig, #ft-credit-btn[aria-expanded="true"] .ft-sig { filter: drop-shadow(0 0 6px rgba(216,176,120,.6)); transform: translateY(-1px); }
.ft-card { position: absolute; bottom: calc(100% + 10px); inset-inline-start: 0; width: max-content; max-width: calc(100vw - 32px);
  background: #fffdf8; color: var(--ink); border: 1px solid var(--gold); border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 18px 50px rgba(32,38,73,.28); z-index: 5; line-height: 1.6; }
.ft-card[hidden] { display: none; }
.ft-card-role { display: block; font-size: 12px; color: var(--gold-600); margin-bottom: 4px; }
.ft-card strong { display: block; font-size: 16.5px; line-height: 1.5; }
.ft-card a { display: inline-block; margin-top: 6px; font-size: 14px; text-decoration: none; border-bottom: 1px dashed var(--gold-600); color: var(--ink); }
@media (max-width: 560px) { .app-foot-in { flex-direction: column; align-items: flex-start; } }
.screen { animation: in .22s ease-out; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .screen { animation: none; } * { transition: none !important; } }

.nav {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40; background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.nav-in { max-width: 44rem; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.nav a {
  min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; text-decoration: none; color: var(--muted); font-size: .76rem; font-weight: 700;
  border-top: 3px solid transparent;
}
.nav a .ico { font-size: 1.1rem; line-height: 1; }
.nav a[aria-current="page"] { color: var(--navy); border-top-color: var(--gold); background: var(--gold-50); }

/* ───────── البطاقات ───────── */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px; box-shadow: var(--shadow); margin-bottom: 14px;
}
.card > h2, .card > h3 { margin-bottom: .5em; }
.card.gold { border-color: var(--gold); background: var(--gold-50); }
.card.blue { border-color: var(--blue); background: var(--blue-50); }
.card.flat { box-shadow: none; }

.hero { background: var(--navy); color: #fff; border: 0; }
.hero h1, .hero h2 { color: #fff; }
.hero .muted { color: #c9cde0; }

.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--gold-600);
  text-transform: none; margin-bottom: 6px; display: block; }
.hero .eyebrow { color: var(--gold); }

.lead { font-size: 1.05rem; }
.hr { height: 1px; background: var(--line); margin: 14px 0; border: 0; }

/* ───────── الرقم الكبير ───────── */
.big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.big .n { font-size: 2.3rem; font-weight: 700; line-height: 1.1; color: var(--navy); }
.big .u { font-size: 1rem; color: var(--muted); }
.hero .big .n { color: var(--gold); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  font-size: .82rem; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line-2); }
.pill.gold { background: var(--gold-100); border-color: var(--gold); color: var(--gold-600); }
.pill.blue { background: var(--blue-100); border-color: var(--blue); color: var(--blue-600); }
.pill.ok { background: var(--ok-100); border-color: #b7dcc4; color: var(--ok); }
.pill.no { background: var(--no-100); border-color: #eec4c1; color: var(--no); }

/* ───────── لماذا؟ ───────── */
details.why { margin-top: 10px; border-top: 1px dashed var(--line-2); padding-top: 8px; }
details.why > summary {
  cursor: pointer; list-style: none; font-size: .88rem; font-weight: 700; color: var(--gold-600);
  min-height: 44px; display: inline-flex; align-items: center; gap: 7px; padding: 0 2px;
}
details.why > summary::-webkit-details-marker { display: none; }
details.why > summary::before { content: "؟"; width: 22px; height: 22px; flex: none; border-radius: 50%;
  background: var(--gold-100); border: 1px solid var(--gold); display: grid; place-items: center;
  font-size: .78rem; }
details.why[open] > summary { color: var(--ink); }
.whybody { font-size: .93rem; color: var(--ink-2); background: var(--surface-2);
  border-radius: var(--r-md); padding: 11px 13px; margin-top: 6px; }
.whybody .src { display: block; margin-top: 7px; font-size: .8rem; color: var(--muted); }
.hero details.why > summary { color: var(--gold); }
.hero .whybody { background: rgba(255,255,255,.1); color: #e8eaf3; }
.hero .whybody .src { color: #b9bfd6; }

/* ───────── الأزرار ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 20px; border-radius: 14px; border: 1px solid var(--navy);
  background: var(--navy); color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer;
  text-decoration: none; transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--gold); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.btn.wide { width: 100%; }
.btn.sm { min-height: 44px; padding: 0 14px; font-size: .9rem; border-radius: 11px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; }
.btnrow > .btn { flex: 1 1 auto; }

/* ───────── الاختيار ───────── */
.choices { display: grid; gap: 12px; }
.choice {
  display: block; width: 100%; text-align: start; background: var(--surface);
  text-decoration: none; color: inherit;
  border: 2px solid var(--line); border-radius: var(--r-lg); padding: 15px 16px;
  cursor: pointer; min-height: var(--tap); transition: border-color .15s, background .15s;
  position: relative; padding-inline-end: 44px;
}
.choice:hover { border-color: var(--gold); background: var(--gold-50); }
.choice[aria-pressed="true"] { border-color: var(--gold-600); background: var(--gold-50); }
.choice .t { font-weight: 700; font-size: 1.05rem; display: block; }
.choice .d { color: var(--muted); font-size: .9rem; display: block; margin-top: 3px; line-height: 1.65; }
.choice::after {
  content: "←"; position: absolute; inset-inline-end: 15px; top: 50%; transform: translateY(-50%);
  color: var(--gold-600); font-size: 1.1rem;
}
.choice[aria-pressed="true"]::after { content: "✓"; }

/* ───────── شبكة الأجزاء ───────── */
.juzgrid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; }
@media (min-width: 520px) { .juzgrid { grid-template-columns: repeat(6, minmax(0,1fr)); } }
.juzbtn {
  min-height: 46px; border: 1.5px solid var(--line-2); background: var(--surface);
  border-radius: 11px; cursor: pointer; font-weight: 700; font-size: .95rem;
  display: grid; place-items: center; padding: 0;
}
.juzbtn:hover { border-color: var(--gold); }
.juzbtn[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.juzbtn.pass { background: var(--ok-100); border-color: #8fc9a4; color: var(--ok); }
.juzbtn.fail { background: var(--no-100); border-color: #e3aaa5; color: var(--no); }
.juzbtn .s { display: block; font-size: .68rem; font-weight: 500; opacity: .85; }

/* ───────── العدّادات ───────── */
.counter { display: flex; align-items: center; gap: 12px; justify-content: center; margin: 6px 0 2px; }
.counter .val { font-size: 2.1rem; font-weight: 700; min-width: 4.6rem; text-align: center; color: var(--navy); }
.counter .val .of { font-size: 1rem; color: var(--muted); font-weight: 500; }
.round {
  width: 54px; height: 54px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2);
  background: var(--surface); font-size: 1.4rem; font-weight: 700; cursor: pointer; line-height: 1;
  display: grid; place-items: center;
}
.round.plus { background: var(--navy); color: #fff; border-color: var(--navy); }
.round:active { transform: scale(.95); }
.bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.bar > i { display: block; height: 100%; background: var(--gold); transition: width .3s ease; }
.bar.ok > i { background: var(--ok); }

/* ───────── نافذة الربط ───────── */
.strip { display: flex; gap: 3px; flex-wrap: wrap; margin: 8px 0; }
.sq { width: 26px; height: 26px; border-radius: 6px; background: var(--gold-100); border: 1px solid var(--gold);
  font-size: .62rem; display: grid; place-items: center; color: var(--gold-600); }
.sq.out { background: var(--surface-2); border-color: var(--line-2); color: var(--muted); }
.sq.new { background: var(--navy); border-color: var(--navy); color: #fff; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-top: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 13px; height: 13px; border-radius: 4px; display: inline-block; }

/* ───────── قوائم التحقّق ───────── */
.checks { display: grid; gap: 8px; }
.check {
  display: flex; align-items: flex-start; gap: 11px; text-align: start; width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 11px 13px; cursor: pointer; min-height: var(--tap);
}
.check:hover { border-color: var(--gold); }
.check .box { width: 24px; height: 24px; flex: none; border-radius: 7px; border: 1.5px solid var(--line-2);
  display: grid; place-items: center; font-size: .8rem; margin-top: 3px; background: var(--surface); }
.check[aria-pressed="true"] { background: var(--ok-100); border-color: #b7dcc4; }
.check[aria-pressed="true"] .box { background: var(--ok); border-color: var(--ok); color: #fff; }
.check .t { font-weight: 700; }
.check .d { color: var(--muted); font-size: .88rem; line-height: 1.65; display: block; }

/* ───────── الجداول ───────── */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { padding: 9px 11px; text-align: start; border-bottom: 1px solid var(--line); }
th { background: var(--surface-2); font-weight: 700; font-size: .84rem; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.n, th.n { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ───────── التمهيدية ───────── */
.days { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 7px; }
@media (min-width: 520px) { .days { grid-template-columns: repeat(10, minmax(0,1fr)); } }
.day { aspect-ratio: 1; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--surface);
  display: grid; place-items: center; font-size: .82rem; font-weight: 700; color: var(--muted); }
.day.done { background: var(--ok-100); border-color: #8fc9a4; color: var(--ok); }
.day.miss { background: var(--no-100); border-color: #e3aaa5; color: var(--no); }
.day.now { border-color: var(--navy); border-width: 2.5px; color: var(--navy); background: var(--gold-50); }

/* ───────── ملاحظات ───────── */
.note { border-inline-start: 4px solid var(--gold); background: var(--gold-50); border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 11px 14px; font-size: .93rem; margin: 10px 0; }
.note.warn { border-inline-start-color: var(--no); background: var(--no-100); }
.note.ok { border-inline-start-color: var(--ok); background: var(--ok-100); }
.note .h { font-weight: 700; display: block; margin-bottom: 2px; }
.wr { display: grid; gap: 8px; margin-top: 4px; }
.wr div { padding: 9px 12px; border-radius: var(--r-sm); font-size: .92rem; }
.wr .x { background: var(--no-100); }
.wr .v { background: var(--ok-100); }
.wr b { display: inline-block; margin-inline-end: 5px; }

/* ───────── البحث ───────── */
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 5px; }
input[type="text"], input[type="search"], textarea, select {
  width: 100%; min-height: var(--tap); padding: 10px 13px; border-radius: 12px;
  border: 1.5px solid var(--line-2); background: var(--surface); font: inherit; color: inherit;
}
input:focus, textarea:focus { border-color: var(--gold-600); outline: none; }
textarea { min-height: 120px; line-height: 1.6; font-size: .85rem; }
.term { border-bottom: 1px solid var(--line); padding: 11px 0; }
.term:last-child { border-bottom: 0; }
.term .t { font-weight: 700; }
.term .p { color: var(--gold-600); font-size: .85rem; }
.term .d { color: var(--ink-2); font-size: .93rem; }

/* ───────── التذييل ───────── */
.foot { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 22px; }

/* ───────── الطباعة ───────── */
@media print {
  .top, .nav, .btn, .iconbtn, .no-print { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  main { max-width: none; padding: 0; }
  .card { break-inside: avoid; box-shadow: none; border-color: #bbb; }
  details.why { display: block; }
  details.why > summary { display: none; }
  .whybody { display: block !important; background: #f4f4f4; }
  .hero { background: #fff !important; color: #000 !important; border: 1px solid #000 !important; }
  .hero h1, .hero h2, .hero .big .n { color: #000 !important; }
  a[href]::after { content: ""; }
  @page { margin: 15mm; }
}

/* ───────── التسلسل الإداري ───────── */
.org { display: flex; flex-direction: column; gap: 1px; margin-bottom: 10px; }
.org span { font-size: .78rem; line-height: 1.5; color: var(--gold); opacity: .8; }
.org span.last { font-weight: 700; opacity: 1; }
.org.mini { flex-direction: row; flex-wrap: wrap; gap: 0 6px; margin: 0; }
.org.mini span { color: var(--muted); font-size: .68rem; opacity: 1; }
.org.mini span + span::before { content: "·"; margin-inline-end: 6px; color: var(--line-2); }
.org.mini span.last { color: var(--ink); }

/* ───────── الورقة: صفحةٌ واحدة ───────── */
.sheet {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md);
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.sh-head { border-bottom: 2px solid var(--navy); padding-bottom: 8px; }
.sh-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.sh-title b { font-size: 1.35rem; }
.sh-title span { font-size: .85rem; color: var(--muted); }

.sh-keys { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
@media (min-width: 560px) { .sh-keys { grid-template-columns: repeat(5, minmax(0,1fr)); } }
.sh-key { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; background: var(--gold-50); }
.sh-key .k { display: block; font-size: .72rem; color: var(--gold-600); font-weight: 700; }
.sh-key .v { display: block; font-size: 1.05rem; line-height: 1.35; }
.sh-key .s { display: block; font-size: .68rem; color: var(--muted); line-height: 1.4; }

.sh-cols { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
@media (min-width: 560px) { .sh-cols { grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); } }
.sh-box h3 { font-size: .9rem; margin-bottom: 6px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.sh-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.sh-steps li { counter-increment: s; display: grid; grid-template-columns: 1.4em minmax(0,1fr); gap: 6px;
  margin: 0 0 5px; font-size: .78rem; line-height: 1.5; }
.sh-steps li::before { content: counter(s); font-weight: 700; color: var(--gold-600);
  font-size: .72rem; border: 1px solid var(--gold); border-radius: 4px; text-align: center; height: 1.4em; }
.sh-steps li .tx { display: block; min-width: 0; color: var(--ink-2); }
.sh-steps li b { display: block; font-size: .8rem; color: var(--ink); }
.sh-tbl { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .75rem; }
.sh-tbl col.c1 { width: 2.4em; }
.sh-tbl th, .sh-tbl td { border: 1px solid var(--line); padding: 3px 6px; text-align: start; }
.sh-tbl th { background: var(--surface-2); font-size: .7rem; font-weight: 700; }
.sh-foot { display: grid; gap: 3px; border-top: 1px solid var(--line); padding-top: 7px;
  font-size: .7rem; color: var(--ink-2); line-height: 1.5; }
.sh-boxes { display: flex; flex-wrap: wrap; gap: 3px; }
.sh-boxes span { width: 1.5em; height: 1.5em; border: 1px solid var(--line-2); border-radius: 3px;
  font-size: .62rem; color: var(--muted); display: grid; place-items: center; }
.sh-boxes span.ten { border-color: var(--gold); background: var(--gold-50); color: var(--gold-600); font-weight: 700; }
.sh-hint { font-size: .68rem; color: var(--muted); margin: 5px 0 0; line-height: 1.5; }
.sh-p { font-size: .74rem; line-height: 1.55; margin: 0 0 3px; color: var(--ink-2); }
.sh-col { display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.sh-tbl.log td { height: 1.9em; }
.sh-tbl.log th:first-child, .sh-tbl.log td:first-child { width: 6.5em; }
.sh-tbl.log th:nth-child(3), .sh-tbl.log td:nth-child(3) { width: 5em; }

@media print {
  html, body { background: #fff; }
  body { font-size: 10.5pt; line-height: 1.55; }
  main { padding: 0; }
  .sheet { border: 0; border-radius: 0; padding: 0; gap: 7pt; }
  .sh-keys { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 4pt; }
  .sh-key { padding: 4pt 5pt; background: var(--gold-50) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sh-key .v { font-size: 11.5pt; }
  .sh-key .k { font-size: 7pt; }
  .sh-key .s { font-size: 6.5pt; }
  .sh-cols { grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 9pt; }
  .sh-title b { font-size: 15pt; }
  .sh-steps li { font-size: 8.4pt; margin-bottom: 3.4pt; }
  .sh-steps li b { font-size: 8.8pt; }
  .sh-tbl { font-size: 8pt; }
  .sh-tbl th, .sh-tbl td { padding: 2.2pt 4pt; }
  .sh-foot { font-size: 7.4pt; }
  .sh-box h3 { font-size: 9.5pt; }
  .sh-col { gap: 9pt; }
  .sh-tbl.log td { height: 15pt; }
  .sh-boxes span { font-size: 6.4pt; width: 1.55em; height: 1.55em; }
  .sh-boxes span.ten { background: var(--gold-50) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sh-hint { font-size: 7pt; }
  .sh-p { font-size: 8pt; }
  .sheet, .sh-cols, .sh-box, .sh-keys, .sh-foot { break-inside: avoid; page-break-inside: avoid; }
  @page { size: A4 portrait; margin: 11mm 12mm; }
}
