/* ============================================================
   SelAcademy design system
   Palette: ink navy + license gold on warm paper.
   ============================================================ */
:root {
  --ink: #0e1a2f;
  --ink-2: #16274a;
  --ink-3: #243a6b;
  --ink-soft: #e9edf5;
  --gold: #f4b63f;
  --gold-2: #dc9413;
  --gold-soft: #fdf3dc;
  --paper: #f6f2ea;
  --paper-2: #efe9dc;
  --card: #ffffff;
  --line: #e6dfd0;
  --line-2: #d8cfbc;
  --text: #172033;
  --muted: #6a7285;
  --ok: #17935a;
  --ok-soft: #e2f5eb;
  --bad: #d23f3f;
  --bad-soft: #fde9e7;
  --info: #2c66e3;
  --info-soft: #e7eefd;
  --r: 16px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(14, 26, 47, .05), 0 10px 28px rgba(14, 26, 47, .07);
  --shadow-lg: 0 24px 60px rgba(14, 26, 47, .22);
  --side: 252px;
  --font: 'Assistant', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --display: 'Rubik', 'Assistant', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 800; }
h2 { font-size: 1.3rem; font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 .8em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--gold); color: var(--ink); }
.ic { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.grow { flex: 1; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.hide { display: none !important; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- logo ---------- */
.logo { font-family: 'Outfit', var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; direction: ltr; display: inline-flex; line-height: 1; user-select: none; }
.logo .l-sel { color: var(--c1, var(--ink)); }
.logo .l-cad { color: var(--c2, var(--gold-2)); }
.logo .l-a { background: linear-gradient(100deg, var(--c1, var(--ink)) 8%, var(--cm, #8f6a35) 50%, var(--c2, var(--gold-2)) 92%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo.on-dark { --c1: #ffffff; --cm: #f9dc9f; --c2: var(--gold); }
.logo-xl { font-size: 2.6rem; }
.logo-lg { font-size: 2rem; }

/* ---------- boot ---------- */
.boot { min-height: 100vh; display: grid; place-content: center; gap: 22px; justify-items: center; }
.boot-bar { width: 140px; height: 4px; background: var(--paper-2); border-radius: 9px; overflow: hidden; }
.boot-bar i { display: block; width: 40%; height: 100%; background: var(--gold); border-radius: 9px; animation: boot 1.1s ease-in-out infinite; }
@keyframes boot { 0% { transform: translateX(120%); } 100% { transform: translateX(-260%); } }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side {
  background: var(--ink); color: #dfe6f3; position: sticky; top: 0; height: 100vh; padding: 22px 14px 16px;
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
  background-image: radial-gradient(600px 300px at 110% -10%, rgba(244, 182, 63, .16), transparent 60%);
}
.side .brand { padding: 4px 10px 18px; display: flex; flex-direction: column; gap: 4px; }
.side .brand small { color: #93a0bb; font-size: .78rem; }
.nav-group { font-size: .72rem; letter-spacing: .08em; color: #7c8aa8; padding: 14px 12px 6px; font-weight: 700; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; color: #c6d0e3; font-weight: 600; font-size: .98rem;
  transition: background .15s, color .15s;
}
.nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav a.on { background: linear-gradient(90deg, rgba(244, 182, 63, .22), rgba(244, 182, 63, .06)); color: #fff; box-shadow: inset -3px 0 0 var(--gold); }
.nav a.on .ic { color: var(--gold); }
.nav a .pill { margin-inline-start: auto; background: var(--gold); color: var(--ink); font-size: .7rem; font-weight: 800; padding: 1px 8px; border-radius: 99px; }
.side-foot { margin-top: auto; padding: 12px; border-top: 1px solid rgba(255, 255, 255, .09); display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; flex: none; }
.side-foot .who { min-width: 0; line-height: 1.25; }
.side-foot .who b { display: block; color: #fff; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot .who span { color: #93a0bb; font-size: .76rem; }
.icon-btn { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: inherit; transition: background .15s; }
.icon-btn:hover { background: rgba(127, 137, 160, .16); }

.main { min-width: 0; padding: 30px clamp(16px, 3.4vw, 44px) 90px; }
.page { max-width: 1160px; margin: 0 auto; animation: page-in .28s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { margin: 6px 0 0; color: var(--muted); max-width: 62ch; }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.crumb:hover { color: var(--ink); }

.topbar, .bottomnav { display: none; }
@media (max-width: 940px) {
  .shell { display: block; }
  .side { display: none; }
  .topbar {
    display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 30;
    background: var(--ink); color: #fff; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  }
  .main { padding: 18px 14px 110px; }
  .bottomnav {
    display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line);
    padding: 6px 6px max(6px, env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(14, 26, 47, .08);
  }
  .bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .7rem; font-weight: 700; color: var(--muted); padding: 6px 2px; border-radius: 12px; }
  .bottomnav a .ic { width: 22px; height: 22px; }
  .bottomnav a.on { color: var(--ink); }
  .bottomnav a.on .ic { color: var(--gold-2); }
}

/* ---------- surfaces ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; }
.card.flat { box-shadow: none; }
.card.pad-lg { padding: 26px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-title h2, .card-title h3 { display: flex; align-items: center; gap: 9px; }
.card-title .ic { color: var(--gold-2); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-main { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .g2, .g3 { grid-template-columns: 1fr; } }
.section { margin-top: 26px; }
.section > h2 { margin-bottom: 12px; display: flex; align-items: center; gap: 9px; }
.section > h2 .ic { color: var(--gold-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 12px; font-weight: 700;
  font-size: 1rem; line-height: 1.2; transition: transform .12s, box-shadow .15s, background .15s; white-space: nowrap; border: 1.5px solid transparent;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 3px 0 var(--gold-2); }
.btn-gold:hover { background: #f8c459; box-shadow: 0 4px 0 var(--gold-2), 0 10px 20px rgba(220, 148, 19, .25); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); }
.btn-line { border-color: var(--line-2); background: #fff; }
.btn-line:hover { border-color: var(--ink); }
.btn-ghost { color: var(--ink-3); padding-inline: 12px; }
.btn-ghost:hover { background: var(--ink-soft); }
.btn-danger { background: var(--bad-soft); color: var(--bad); }
.btn-danger:hover { background: #fbd5d1; }
.btn-sm { padding: 7px 13px; font-size: .88rem; border-radius: 10px; }
.btn-lg { padding: 14px 26px; font-size: 1.08rem; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------- chips / badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 99px; font-size: .8rem; font-weight: 700; background: var(--ink-soft); color: var(--ink-3); white-space: nowrap; }
.chip .ic { width: 1em; height: 1em; }
.chip.gold { background: var(--gold-soft); color: #8a5a06; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.info { background: var(--info-soft); color: var(--info); }
.chip.dark { background: rgba(255, 255, 255, .12); color: #fff; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 4px rgba(23, 147, 90, .18); }

/* ---------- progress ---------- */
.bar { height: 9px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.bar.ok > i { background: var(--ok); }
.bar.bad > i { background: var(--bad); }
.bar.ink > i { background: var(--ink-3); }
.bar.thin { height: 6px; }
.ring { position: relative; display: grid; place-items: center; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring .ring-bg { stroke: var(--paper-2); }
.ring .ring-fg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset .9s cubic-bezier(.2, .8, .2, 1); }
.ring .ring-in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.ring .ring-in b { font-family: var(--display); font-size: 1.5rem; font-weight: 800; }
.ring .ring-in span { font-size: .72rem; color: var(--muted); font-weight: 600; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: .9rem; }
.field .hint { font-size: .8rem; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; outline: none; transition: border .15s, box-shadow .15s;
}
.input:focus { border-color: var(--ink-3); box-shadow: 0 0 0 4px rgba(36, 58, 107, .12); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.seg { display: inline-flex; background: var(--paper-2); border-radius: 12px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button { padding: 7px 14px; border-radius: 9px; font-weight: 700; font-size: .9rem; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(14, 26, 47, .14); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -6px; }
table.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: start; font-size: .76rem; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr.click { cursor: pointer; }
.table tbody tr.click:hover { background: #fbf8f1; }

/* ---------- modal / toast ---------- */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(9, 16, 30, .62); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 18px; animation: fade .18s ease; }
.modal { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: 92vh; overflow: auto; padding: 26px; animation: pop .22s cubic-bezier(.2, .9, .3, 1.2); }
.modal.wide { width: min(820px, 100%); }
.modal h2 { margin-bottom: 8px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-start; margin-top: 20px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.toasts { position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow-lg); animation: pop .2s ease; display: flex; gap: 9px; align-items: center; max-width: 86vw; }
.toast.ok .ic { color: #6fe0a6; }
.toast.bad { background: #7a1f1f; }
@media (max-width: 940px) { .toasts { bottom: 86px; inset-inline: 14px; } }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--ink); }
.login-art { position: relative; overflow: hidden; color: #fff; padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
  background: radial-gradient(900px 500px at 85% -10%, rgba(244, 182, 63, .28), transparent 60%), radial-gradient(700px 500px at -10% 110%, rgba(44, 102, 227, .30), transparent 60%), var(--ink); }
.login-art h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 900; line-height: 1.1; max-width: 13ch; }
.login-art h1 em { font-style: normal; color: var(--gold); }
.login-art p { color: #b9c4da; font-size: 1.1rem; max-width: 44ch; }
.login-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; }
.login-feats div { display: flex; gap: 10px; align-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .09); padding: 11px 13px; border-radius: 14px; font-weight: 600; font-size: .93rem; }
.login-feats .ic { color: var(--gold); }
.login-form { background: var(--paper); display: grid; place-items: center; padding: 28px; border-start-start-radius: 34px; border-end-start-radius: 34px; }
.login-box { width: min(400px, 100%); }
.login-box h2 { font-size: 1.7rem; margin-bottom: 6px; }
.login-box form { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.form-error { background: var(--bad-soft); color: #9d2222; border-radius: 12px; padding: 11px 14px; font-weight: 600; font-size: .93rem; }
.finger { position: absolute; inset-inline-end: -90px; bottom: -110px; width: 420px; opacity: .09; pointer-events: none; }
@media (max-width: 880px) {
  .login { grid-template-columns: 1fr; }
  .login-art { padding: 26px 22px 30px; gap: 16px; }
  .login-art p, .login-feats { display: none; }
  .login-art h1 { font-size: 1.7rem; max-width: none; }
  .login-form { border-radius: 28px 28px 0 0; padding: 30px 20px 50px; place-items: start center; }
}

/* ---------- lock screens ---------- */
.lock { min-height: 100vh; display: grid; place-items: center; background: var(--ink); color: #fff; padding: 24px; text-align: center;
  background-image: radial-gradient(700px 400px at 50% -10%, rgba(244, 182, 63, .22), transparent 60%); }
.lock-box { max-width: 460px; display: grid; gap: 14px; justify-items: center; }
.lock-ic { width: 84px; height: 84px; border-radius: 26px; background: rgba(244, 182, 63, .16); color: var(--gold); display: grid; place-items: center; }
.lock-ic .ic { width: 40px; height: 40px; }
.lock p { color: #b9c4da; }

/* ---------- dashboard ---------- */
.hero { position: relative; overflow: hidden; border-radius: 24px; color: #fff; padding: clamp(22px, 3vw, 34px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
  background: radial-gradient(520px 300px at 0% 0%, rgba(244, 182, 63, .30), transparent 62%), radial-gradient(500px 340px at 100% 120%, rgba(44, 102, 227, .35), transparent 60%), var(--ink); box-shadow: var(--shadow-lg); }
.hero h1 { font-weight: 900; }
.hero p { color: #c3cde0; margin: 8px 0 18px; max-width: 54ch; }
.hero .rank { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); padding: 4px 13px; border-radius: 99px; font-weight: 700; font-size: .85rem; margin-bottom: 12px; }
.hero .rank .ic { color: var(--gold); }
.countdown { display: flex; gap: 8px; }
.countdown div { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 10px 6px 8px; min-width: 68px; text-align: center; }
.countdown b { display: block; font-family: var(--display); font-size: 1.9rem; font-weight: 800; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.countdown span { font-size: .72rem; color: #aab6cf; font-weight: 600; }
.hero-side { text-align: center; }
.hero-side .cap { font-size: .8rem; color: #aab6cf; margin-bottom: 8px; font-weight: 600; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .countdown div { min-width: 0; flex: 1; } }

.stat { display: flex; align-items: center; gap: 14px; }
.stat-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-2); flex: none; }
.stat-ic.blue { background: var(--info-soft); color: var(--info); }
.stat-ic.green { background: var(--ok-soft); color: var(--ok); }
.stat-ic.ink { background: var(--ink-soft); color: var(--ink-3); }
.stat b { font-family: var(--display); font-size: 1.55rem; font-weight: 800; line-height: 1.1; display: block; }
.stat span { color: var(--muted); font-size: .85rem; font-weight: 600; }

.reco { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; transition: border .15s, transform .15s; }
.reco:hover { border-color: var(--gold-2); transform: translateX(-3px); }
.reco .tic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; color: #fff; }
.reco .body { min-width: 0; flex: 1; }
.reco .body b { display: block; font-family: var(--display); }
.reco .body span { color: var(--muted); font-size: .86rem; }
.empty { text-align: center; color: var(--muted); padding: 26px 12px; }
.empty .ic { width: 38px; height: 38px; margin: 0 auto 8px; color: var(--line-2); }

/* ---------- topic / case-file cards ---------- */
.file {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 6px 18px 18px 18px; padding: 20px 18px 16px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px; transition: transform .18s, box-shadow .18s; margin-top: 16px; min-height: 196px;
}
.file::before { content: attr(data-tab); position: absolute; top: -17px; inset-inline-start: -1px; height: 18px; padding: 0 14px; background: var(--fc, var(--ink)); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .06em; border-radius: 8px 8px 0 0; display: flex; align-items: center; }
.file:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14, 26, 47, .14); }
.file .tic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--fc, var(--ink)); }
.file h3 { font-size: 1.1rem; }
.file p { color: var(--muted); font-size: .88rem; margin: 0; flex: 1; }
.file .meta { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--muted); font-weight: 600; }
.stamp { position: absolute; top: 14px; inset-inline-end: 14px; border: 2.5px solid currentColor; color: var(--ok); font-family: var(--display); font-weight: 800; font-size: .72rem; padding: 2px 9px; border-radius: 8px; transform: rotate(8deg); letter-spacing: .04em; opacity: .9; }
.stamp.gold { color: var(--gold-2); }

/* ---------- list rows (exams, sims) ---------- */
.rowcard { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; transition: border .15s, box-shadow .15s; }
.rowcard:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.rowcard .date { width: 62px; height: 62px; border-radius: 14px; background: var(--ink); color: #fff; display: grid; place-content: center; text-align: center; line-height: 1.05; flex: none; }
.rowcard .date b { font-family: var(--display); font-size: 1.25rem; color: var(--gold); }
.rowcard .date span { font-size: .68rem; font-weight: 700; }
.rowcard .body { flex: 1; min-width: 0; }
.rowcard .body b { font-family: var(--display); font-size: 1.05rem; }
.rowcard .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .rowcard { flex-wrap: wrap; } .rowcard .acts { width: 100%; } .rowcard .acts .btn { flex: 1; } }

/* ---------- quiz ---------- */
.quiz { max-width: 860px; margin: 0 auto; }
.quiz-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.quiz-top .bar { flex: 1; }
.timer { display: inline-flex; align-items: center; gap: 7px; font-family: var(--display); font-weight: 800; background: var(--ink); color: #fff; padding: 7px 14px; border-radius: 12px; font-variant-numeric: tabular-nums; direction: ltr; }
.timer.low { background: var(--bad); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .72; } }
.q-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(18px, 3vw, 30px); }
.q-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.q-stem { font-size: 1.12rem; line-height: 1.75; white-space: pre-line; margin-bottom: 18px; font-weight: 500; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { display: flex; gap: 13px; align-items: flex-start; text-align: start; width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff; transition: border .14s, background .14s, transform .1s; line-height: 1.6; }
.opt:hover:not([disabled]) { border-color: var(--ink-3); background: #fbfaf6; }
.opt:active:not([disabled]) { transform: scale(.995); }
.opt .l { width: 32px; height: 32px; border-radius: 10px; background: var(--paper-2); display: grid; place-items: center; font-family: var(--display); font-weight: 800; flex: none; transition: background .14s, color .14s; }
.opt .t { flex: 1; padding-top: 3px; }
.opt .why { display: block; font-size: .88rem; color: var(--muted); margin-top: 5px; }
.opt.sel { border-color: var(--ink); background: var(--ink-soft); }
.opt.sel .l { background: var(--ink); color: #fff; }
.opt.ok { border-color: var(--ok); background: var(--ok-soft); }
.opt.ok .l { background: var(--ok); color: #fff; }
.opt.bad { border-color: var(--bad); background: var(--bad-soft); }
.opt.bad .l { background: var(--bad); color: #fff; }
.opt[disabled] { cursor: default; }
.explain { margin-top: 18px; border-radius: 16px; padding: 18px; background: var(--gold-soft); border: 1px solid #f2dfae; animation: page-in .3s ease both; }
.explain h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 1.02rem; }
.explain.good h4 { color: var(--ok); }
.explain.wrong h4 { color: var(--bad); }
.explain p { margin: 0; line-height: 1.75; }
.explain .refs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.note { margin-top: 12px; padding: 11px 14px; border-radius: 12px; background: var(--info-soft); color: #1d4490; font-size: .92rem; display: flex; gap: 9px; }
.note.warn { background: #fff1e0; color: #8a4b06; }
.note .ic { margin-top: 3px; }
.quiz-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.qnav { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.qnav button { aspect-ratio: 1; border-radius: 9px; background: var(--paper-2); font-family: var(--display); font-weight: 700; font-size: .85rem; position: relative; }
.qnav button.done { background: var(--ink-3); color: #fff; }
.qnav button.cur { outline: 2.5px solid var(--gold-2); outline-offset: 1px; }
.qnav button.flag::after { content: ''; position: absolute; top: -3px; inset-inline-end: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-2); border: 2px solid #fff; }
.qnav button.ok { background: var(--ok); color: #fff; }
.qnav button.bad { background: var(--bad); color: #fff; }
.star { color: var(--line-2); }
.star.on { color: var(--gold-2); }
.star.on .ic { fill: var(--gold); }

/* ---------- results ---------- */
.score-hero { text-align: center; padding: 30px 20px; border-radius: 24px; color: #fff; background: var(--ink); position: relative; overflow: hidden; }
.score-hero.pass { background: radial-gradient(500px 260px at 50% 0, rgba(111, 224, 166, .28), transparent 65%), var(--ink); }
.score-hero.fail { background: radial-gradient(500px 260px at 50% 0, rgba(210, 63, 63, .30), transparent 65%), var(--ink); }
.score-hero .big { font-family: var(--display); font-size: clamp(3.4rem, 9vw, 5.4rem); font-weight: 900; line-height: 1; color: var(--gold); }
.score-hero .verdict { font-family: var(--display); font-size: 1.4rem; font-weight: 800; margin-top: 6px; }
.tb-row { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.tb-row:last-child { border: 0; }
.tb-row b { font-weight: 700; }

/* ---------- study unit ---------- */
.unit { max-width: 820px; margin: 0 auto; }
.unit-hero { border-radius: 22px; color: #fff; padding: 26px; background: var(--fc, var(--ink)); position: relative; overflow: hidden; margin-bottom: 20px; }
.unit-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(420px 240px at 0 0, rgba(255, 255, 255, .22), transparent 60%); pointer-events: none; }
.unit-hero p { color: rgba(255, 255, 255, .86); margin: 8px 0 0; max-width: 60ch; }
.unit-tabs { position: sticky; top: 0; z-index: 5; background: var(--paper); padding: 8px 0; margin-bottom: 8px; }
.prose h2 { margin: 28px 0 10px; padding-top: 6px; font-size: 1.35rem; display: flex; gap: 10px; align-items: baseline; }
.prose h2 .n { color: var(--gold-2); font-size: .95rem; font-weight: 800; }
.prose p { line-height: 1.85; }
.prose ul { padding-inline-start: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; line-height: 1.75; }
.prose strong { font-weight: 800; }
.blk { border-radius: 16px; padding: 16px 18px; margin: 14px 0; border: 1px solid var(--line); background: #fff; }
.blk h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 1rem; }
.blk p:last-child { margin-bottom: 0; }
.blk.example { background: #f4f7ff; border-color: #d8e3fb; }
.blk.example h4 { color: var(--info); }
.blk.law { background: #fbf8f1; border-inline-start: 4px solid var(--ink-3); border-radius: 6px 16px 16px 6px; }
.blk.law h4 { color: var(--ink-3); }
.blk.law p { font-family: 'Frank Ruhl Libre', 'Assistant', serif; }
.blk.tip { background: var(--ok-soft); border-color: #c5ebd6; }
.blk.tip h4 { color: var(--ok); }
.blk.trap { background: #fff1e6; border-color: #f7d8b8; }
.blk.trap h4 { color: #b85c00; }
.blk.check { background: var(--gold-soft); border-color: #f2dfae; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.vs > div { border-radius: 16px; padding: 14px 16px; border: 1.5px solid; }
.vs .yes { border-color: #bfe6d1; background: var(--ok-soft); }
.vs .no { border-color: #f5c9c4; background: var(--bad-soft); }
.vs h4 { display: flex; gap: 7px; align-items: center; margin-bottom: 6px; }
.vs .yes h4 { color: var(--ok); }
.vs .no h4 { color: var(--bad); }
.vs ul { margin: 0; padding-inline-start: 18px; font-size: .95rem; }
@media (max-width: 640px) { .vs { grid-template-columns: 1fr; } }
table.facts { width: 100%; border-collapse: collapse; margin: 14px 0; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); font-size: .95rem; }
.facts th { background: var(--ink); color: #fff; text-align: start; padding: 10px 14px; font-weight: 700; font-size: .88rem; }
.facts td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.facts tr:nth-child(even) td { background: #fbf9f4; }

/* ---------- flashcards ---------- */
.flash { perspective: 1400px; max-width: 560px; margin: 0 auto; }
.flash-card { position: relative; height: 300px; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.2, .8, .2, 1); cursor: pointer; }
.flash-card.flip { transform: rotateY(180deg); }
.flash-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 22px; display: grid; place-content: center; text-align: center; padding: 26px; box-shadow: var(--shadow-lg); font-size: 1.2rem; line-height: 1.6; }
.flash-face.front { background: var(--ink); color: #fff; font-family: var(--display); font-weight: 700; }
.flash-face.back { background: #fff; transform: rotateY(180deg); border: 2px solid var(--gold); }
.flash-face small { display: block; color: var(--gold); font-size: .78rem; letter-spacing: .08em; margin-bottom: 10px; font-family: var(--font); font-weight: 700; }
.flash-face.back small { color: var(--gold-2); }

/* ---------- lesson player ---------- */
.player { background: #0a1322; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); user-select: none; }
.stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0a1322; container-type: inline-size; }
.stage .scene { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.stage .scene.on { opacity: 1; }
.stage .scene img { width: 100%; height: 100%; object-fit: cover; transform-origin: var(--ox, 50%) var(--oy, 50%); }
.stage .scene.on img { animation: kb var(--dur, 12s) linear both; }
@keyframes kb { from { transform: scale(var(--s0, 1)) translate(var(--x0, 0), var(--y0, 0)); } to { transform: scale(var(--s1, 1.1)) translate(var(--x1, 0), var(--y1, 0)); } }
.stage.paused .scene img, .stage.paused .ov { animation-play-state: paused !important; }
.stage .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 19, 34, .42) 0%, rgba(10, 19, 34, 0) 26%, rgba(10, 19, 34, 0) 50%, rgba(10, 19, 34, .84) 100%); pointer-events: none; }
.ov { position: absolute; z-index: 3; animation: ov-in .5s cubic-bezier(.2, .9, .3, 1.15) both; }
@keyframes ov-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.ov-title { inset-inline: 6%; top: 10%; color: #fff; font-family: var(--display); font-weight: 900; font-size: clamp(1.1rem, 5cqw, 3rem); line-height: 1.15; text-shadow: 0 3px 18px rgba(0, 0, 0, .55); }
.ov-title small { display: block; font-size: .42em; color: var(--gold); letter-spacing: .06em; margin-bottom: .4em; font-weight: 800; }
.ov-card { inset-inline-start: 5%; top: 9%; max-width: 46%; background: rgba(255, 255, 255, .96); color: var(--text); border-radius: 1.2cqw; padding: 1.6cqw 2cqw; font-size: clamp(.7rem, 1.95cqw, 1.15rem); line-height: 1.5; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); border-inline-start: .6cqw solid var(--gold); }
.ov-card.end { inset-inline-start: auto; inset-inline-end: 5%; }
.ov-card b.h { display: block; font-family: var(--display); color: var(--ink-3); margin-bottom: .3em; font-size: 1.05em; }
.ov-card ul { margin: 0; padding-inline-start: 1.2em; }
.ov-card li { margin: .15em 0; }
.ov-law { inset-inline: 7%; bottom: 20%; background: rgba(14, 26, 47, .93); color: #fff; border-radius: 1.2cqw; padding: 1.5cqw 2.2cqw; font-size: clamp(.7rem, 2cqw, 1.2rem); line-height: 1.55; border: 1px solid rgba(244, 182, 63, .5); }
.ov-law b { color: var(--gold); display: block; font-family: var(--display); font-size: .85em; margin-bottom: .2em; }
.ov-stamp { top: 14%; inset-inline-end: 7%; font-family: var(--display); font-weight: 900; font-size: clamp(1.1rem, 5.4cqw, 3.4rem); padding: .1em .5em; border: .12em solid currentColor; border-radius: .25em; transform: rotate(-9deg); background: rgba(255, 255, 255, .92); animation: stamp .45s cubic-bezier(.2, 1.6, .4, 1) both; letter-spacing: .02em; }
.ov-stamp.no { color: var(--bad); }
.ov-stamp.yes { color: var(--ok); }
.ov-stamp.warn { color: #c26a00; }
@keyframes stamp { from { opacity: 0; transform: rotate(-9deg) scale(2.4); } to { opacity: 1; transform: rotate(-9deg) scale(1); } }
.ov-bubble { max-width: 40%; background: #fff; color: var(--text); border-radius: 1.6cqw; padding: 1.1cqw 1.7cqw; font-size: clamp(.68rem, 1.9cqw, 1.1rem); font-weight: 600; line-height: 1.4; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.ov-flash { inset: 0; background: #fff; z-index: 6; animation: flash .5s ease-out both; pointer-events: none; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: .95; } 100% { opacity: 0; } }
.ov-big { inset: 0; display: grid; place-content: center; text-align: center; color: #fff; padding: 6%; background: rgba(10, 19, 34, .78); }
.ov-big b { font-family: var(--display); font-size: clamp(1.2rem, 5.2cqw, 3.2rem); font-weight: 900; line-height: 1.2; color: var(--gold); }
.ov-big span { font-size: clamp(.8rem, 2.4cqw, 1.4rem); margin-top: .6em; display: block; color: #dfe6f3; }
.captions { position: absolute; inset-inline: 5%; bottom: 4.5%; z-index: 4; text-align: center; pointer-events: none; }
.captions span { display: inline; background: rgba(8, 14, 26, .78); color: #fff; padding: .25em .6em; border-radius: .4em; font-size: clamp(.72rem, 2.15cqw, 1.3rem); line-height: 1.75; font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.big-play { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; background: rgba(10, 19, 34, .45); cursor: pointer; }
.big-play span { width: clamp(64px, 12cqw, 104px); aspect-ratio: 1; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(244, 182, 63, .25); transition: transform .15s; }
.big-play:hover span { transform: scale(1.07); }
.big-play .ic { width: 42%; height: 42%; fill: currentColor; margin-inline-start: -6%; }
.p-quiz { position: absolute; inset: 0; z-index: 7; background: rgba(10, 19, 34, .9); display: grid; place-content: center; padding: 5%; color: #fff; text-align: center; gap: 2cqw; }
.p-quiz h3 { font-size: clamp(1rem, 3.3cqw, 2rem); font-weight: 800; max-width: 26ch; margin: 0 auto; line-height: 1.35; }
.p-quiz .choices { display: flex; gap: 1.6cqw; justify-content: center; flex-wrap: wrap; }
.p-quiz .choices button { background: #fff; color: var(--ink); font-weight: 800; padding: .7em 1.4em; border-radius: .8em; font-size: clamp(.8rem, 2.3cqw, 1.3rem); transition: transform .12s; }
.p-quiz .choices button:hover { transform: translateY(-2px); }
.p-quiz .choices button.ok { background: var(--ok); color: #fff; }
.p-quiz .choices button.bad { background: var(--bad); color: #fff; }
.p-quiz p { font-size: clamp(.75rem, 2.1cqw, 1.2rem); max-width: 46ch; margin: 0 auto; color: #dfe6f3; }
.controls { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: #dfe6f3; direction: ltr; }
.controls .icon-btn { color: #fff; }
.controls .icon-btn .ic.fill { fill: currentColor; }
.seek { flex: 1; height: 6px; border-radius: 9px; background: rgba(255, 255, 255, .16); position: relative; cursor: pointer; }
.seek i { position: absolute; inset-block: 0; left: 0; background: var(--gold); border-radius: 9px; }
.seek .ticks { position: absolute; inset: 0; pointer-events: none; }
.seek .ticks b { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(10, 19, 34, .9); }
.controls .time { font-size: .82rem; font-variant-numeric: tabular-nums; min-width: 86px; text-align: center; font-weight: 600; }
.controls .rate { font-weight: 800; font-size: .82rem; padding: 4px 9px; border-radius: 8px; background: rgba(255, 255, 255, .1); color: #fff; }
.lesson-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.lesson-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14, 26, 47, .14); }
.lesson-card .thumb { aspect-ratio: 16 / 9; position: relative; background: var(--ink); overflow: hidden; }
.lesson-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.lesson-card .thumb .pl { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, transparent 40%, rgba(10, 19, 34, .6)); }
.lesson-card .thumb .pl span { width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; }
.lesson-card .thumb .pl .ic { fill: currentColor; margin-inline-start: -3px; }
.lesson-card .thumb .len { position: absolute; bottom: 8px; inset-inline-start: 8px; background: rgba(10, 19, 34, .82); color: #fff; font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 7px; direction: ltr; }
.lesson-card .thumb .seen { position: absolute; top: 8px; inset-inline-end: 8px; }
.lesson-card .info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.lesson-card .info b { font-family: var(--display); font-size: 1.02rem; line-height: 1.3; }

/* ---------- games ---------- */
.game-card { border-radius: 22px; padding: 22px; color: #fff; position: relative; overflow: hidden; min-height: 190px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); transition: transform .18s; }
.game-card:hover { transform: translateY(-4px) rotate(-.4deg); }
.game-card h3 { font-size: 1.3rem; font-weight: 800; }
.game-card p { color: rgba(255, 255, 255, .85); font-size: .93rem; margin: 0; flex: 1; max-width: 30ch; }
.game-card .gi { position: absolute; inset-inline-end: -18px; bottom: -22px; width: 130px; height: 130px; opacity: .2; }
.game-card .best { font-size: .82rem; font-weight: 700; background: rgba(255, 255, 255, .16); align-self: flex-start; padding: 3px 11px; border-radius: 99px; }
.arena { max-width: 640px; margin: 0 auto; }
.hud { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; font-family: var(--display); font-weight: 800; }
.hud .lives { color: var(--bad); letter-spacing: 3px; }
.verdict-card { background: #fff; border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 28px 24px; min-height: 250px; display: grid; place-content: center; text-align: center; font-size: 1.22rem; line-height: 1.6; font-weight: 600; position: relative; transition: transform .28s ease, opacity .28s ease; touch-action: pan-y; }
.verdict-card.go-yes { transform: translateX(-130%) rotate(-14deg); opacity: 0; }
.verdict-card.go-no { transform: translateX(130%) rotate(14deg); opacity: 0; }
.verdict-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.verdict-btns .btn { padding: 18px; font-size: 1.15rem; border-radius: 18px; }
.btn-yes { background: var(--ok); color: #fff; box-shadow: 0 4px 0 #0f6e42; }
.btn-no { background: var(--bad); color: #fff; box-shadow: 0 4px 0 #9e2a2a; }
.fb { margin-top: 16px; border-radius: 16px; padding: 14px 16px; font-weight: 600; animation: page-in .25s ease both; }
.fb.ok { background: var(--ok-soft); color: #0f6e42; }
.fb.bad { background: var(--bad-soft); color: #9d2222; }
.memory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mem { aspect-ratio: 1 / 1.05; border-radius: 14px; background: var(--ink); color: transparent; display: grid; place-items: center; text-align: center; padding: 8px; font-size: .84rem; font-weight: 700; line-height: 1.3; transition: transform .3s, background .3s, color .2s; position: relative; overflow: hidden; }
.mem::before { content: '?'; position: absolute; color: var(--gold); font-family: var(--display); font-size: 1.7rem; font-weight: 900; }
.mem.open, .mem.done { background: #fff; color: var(--text); border: 2px solid var(--gold); transform: rotateY(360deg); }
.mem.open::before, .mem.done::before { content: ''; }
.mem.done { border-color: var(--ok); background: var(--ok-soft); }
@media (max-width: 560px) { .memory { grid-template-columns: repeat(3, 1fr); } .mem { font-size: .76rem; } }

/* ---------- charts ---------- */
.spark { width: 100%; height: 150px; }
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 4px; direction: ltr; justify-content: start; }
.heat i { width: 14px; height: 14px; border-radius: 4px; background: var(--paper-2); }
.heat i.l1 { background: #f9dc9f; } .heat i.l2 { background: #f4b63f; } .heat i.l3 { background: #dc9413; } .heat i.l4 { background: #9a6406; }

/* ---------- law library ---------- */
.law-sec { padding: 14px 0; border-bottom: 1px solid var(--line); }
.law-sec h4 { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; flex-wrap: wrap; }
.law-sec h4 .n { color: var(--gold-2); font-family: var(--display); }
.law-sec p { margin: 2px 0; line-height: 1.75; }
.law-ch { margin: 26px 0 4px; font-size: 1.05rem; color: var(--ink-3); padding: 6px 12px; background: var(--ink-soft); border-radius: 10px; }
mark { background: #ffe58a; border-radius: 3px; padding: 0 2px; }

/* ---------- protection ---------- */
.protected { -webkit-user-select: none; user-select: none; }
.watermark { position: fixed; inset: -20%; z-index: 60; pointer-events: none; opacity: .055; transform: rotate(-24deg); display: flex; flex-wrap: wrap; align-content: space-around; justify-content: space-around; gap: 70px 90px; font-family: var(--display); font-weight: 700; font-size: 15px; color: #000; overflow: hidden; }
.watermark span { white-space: nowrap; }
@media print { body * { display: none !important; } body::after { content: 'התוכן מוגן ואינו ניתן להדפסה · SelAcademy'; display: block; padding: 40px; font-size: 20px; } }

/* ---------- misc ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--gold-soft); border: 1px solid #f2dfae; border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; font-weight: 600; }
.notice .ic { color: var(--gold-2); margin-top: 3px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .95rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; }
.risk-high { color: var(--bad); } .risk-medium { color: #c26a00; } .risk-low { color: var(--ok); }
.cred { background: var(--ink); color: #fff; border-radius: 16px; padding: 18px; font-size: 1.02rem; line-height: 1.9; white-space: pre-wrap; direction: rtl; }
.cred code { font-family: ui-monospace, Consolas, monospace; background: rgba(255, 255, 255, .12); padding: 2px 9px; border-radius: 7px; direction: ltr; display: inline-block; color: var(--gold); font-weight: 700; user-select: all; }
.skeleton { background: linear-gradient(90deg, var(--paper-2) 25%, #f8f5ee 50%, var(--paper-2) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; min-height: 80px; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
