:root {
  --g-950: #101113;
  --g-900: #16181a;
  --g-850: #1b1e21;
  --g-800: #202427;
  --g-700: #2a2e32;
  --g-600: #363b40;
  --g-500: #4b5158;
  --red-900: #3f0a0d;
  --red-800: #62101a;
  --red-700: #82141d;
  --red-600: #a11a24;
  --red-500: #c21f2b;
  --red-text: #e8545e;
  --txt: #e8e9eb;
  --muted: #9ba2a9;
  --line: #2d3236;
  --ok: #5fb37a;
  --radius: 10px;
  --font-head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: var(--g-950);
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
:focus-visible { outline: 2px solid var(--red-text); outline-offset: 2px; }

/* ── nagłówek ── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 24, 26, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  border-top: 3px solid var(--red-700);
}
.topbar-in {
  max-width: 1160px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 12px; height: 64px;
}
.brand { flex: none; white-space: nowrap; display: flex; align-items: center; gap: 10px; color: var(--txt); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; font-size: 1.15rem; line-height: 1.05; }
.brand:hover { text-decoration: none; }
.brand small { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .12em; font-weight: 600; }
.brand svg { flex: none; }
.nav { display: flex; gap: 2px; margin-left: 8px; flex: 1; }
.nav a {
  color: var(--muted); padding: 8px 9px; border-radius: 8px;
  font-weight: 600; font-size: .92rem; white-space: nowrap;
}
td a:not(.btn) { color: var(--txt); }
td a:not(.btn):hover { color: var(--red-text); }
.nav a:hover { color: var(--txt); background: var(--g-800); text-decoration: none; }
.nav a.active { color: #fff; background: var(--red-800); }
.nav .sep { width: 1px; background: var(--line); margin: 8px 8px; }
.userbox { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.userbox form { margin: 0; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--txt); border-radius: 8px; padding: 6px 10px; font-size: 1.2rem; cursor: pointer; }

/* ── układ ── */
main { flex: 1; width: 100%; max-width: 1160px; margin: 0 auto; padding: 32px 20px 56px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0; }
.page-head h1::after { content: ""; display: block; width: 56px; height: 4px; background: var(--red-600); margin-top: 10px; border-radius: 2px; }
.page-head p { margin: 4px 0 0; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.stack > * + * { margin-top: 18px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ── karty ── */
.card {
  background: var(--g-850);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.card.accent { border-left: 4px solid var(--red-600); }
.card.pinned { border-color: var(--red-700); background: linear-gradient(180deg, rgba(130, 20, 29, .16), var(--g-850) 60%); }
.card h2, .card h3 { margin-top: 0; }
.card-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }

/* ── przyciski ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--g-700); color: var(--txt);
  border: 1px solid var(--g-600); border-radius: 8px;
  padding: 9px 16px; font: inherit; font-weight: 600; font-size: .92rem;
  text-decoration: none; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--g-600); text-decoration: none; }
.btn-primary { background: var(--red-700); border-color: var(--red-600); color: #fff; }
.btn-primary:hover { background: var(--red-600); }
.btn-danger { background: transparent; border-color: var(--red-700); color: var(--red-text); }
.btn-danger:hover { background: var(--red-800); color: #fff; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 5px 11px; font-size: .84rem; }

/* ── odznaki ── */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--g-700); color: var(--muted); border: 1px solid var(--g-600); }
.badge-staff { background: var(--red-800); color: #fff; border-color: var(--red-600); }
.badge-off { background: transparent; color: var(--muted); border-style: dashed; }
.badge-ok { color: var(--ok); border-color: #2f5a3f; background: rgba(95, 179, 122, .08); }
.badge-today { background: var(--red-600); color: #fff; border-color: var(--red-500); }

/* ── formularze ── */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; background: var(--g-900); color: var(--txt);
  border: 1px solid var(--g-600); border-radius: 8px;
  padding: 10px 12px; font: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red-500); box-shadow: 0 0 0 3px rgba(194, 31, 43, .22); }
textarea { min-height: 160px; resize: vertical; }
.field { margin-bottom: 16px; }
.field .hint { color: var(--muted); font-size: .82rem; margin-top: 5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
.form-grid-3 { grid-template-columns: repeat(3, 1fr); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--red-600); }
.form-narrow { max-width: 680px; }
.input-unit { position: relative; }
.input-unit input { padding-right: 52px; }
.input-unit span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .85rem; pointer-events: none; }
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; }

/* ── komunikaty ── */
.flashes { margin-bottom: 20px; display: grid; gap: 10px; }
.flash { padding: 12px 16px; border-radius: 8px; border: 1px solid; font-weight: 500; }
.flash.ok { background: rgba(95, 179, 122, .1); border-color: #2f5a3f; color: #b6e3c4; }
.flash.error { background: rgba(194, 31, 43, .12); border-color: var(--red-700); color: #ffc9ce; }

/* ── tabele ── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--g-850); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--muted); background: var(--g-900); }
tbody tr:hover { background: var(--g-800); }
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td .empty { color: var(--red-text); }
.row-off { opacity: .55; }

/* ── hero / zdjęcia ── */
.hero {
  position: relative; border-radius: 14px; overflow: hidden;
  min-height: 340px; display: flex; align-items: flex-end;
  background: var(--g-800) center / cover no-repeat;
  border: 1px solid var(--line);
  margin-bottom: 28px;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 17, 19, .92) 0%, rgba(16, 17, 19, .55) 55%, rgba(98, 16, 26, .25) 100%), linear-gradient(0deg, rgba(16, 17, 19, .85), transparent 55%); }
.hero-in { position: relative; padding: 32px 36px; max-width: 640px; }
.hero h1 { font-size: 3rem; margin-bottom: .2em; }
.hero p { color: #d3d6d9; font-size: 1.05rem; }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .2em; color: var(--red-text); font-weight: 700; font-size: .9rem; margin-bottom: 6px; }

.tile {
  position: relative; display: flex; align-items: flex-end;
  min-height: 190px; border-radius: var(--radius); overflow: hidden;
  background: var(--g-800) center / cover no-repeat; border: 1px solid var(--line);
  color: var(--txt); transition: transform .2s, border-color .2s;
}
.tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16, 17, 19, .95) 5%, rgba(16, 17, 19, .25) 70%); }
.tile:hover { transform: translateY(-3px); border-color: var(--red-600); text-decoration: none; }
.tile-in { position: relative; padding: 16px 18px; }
.tile h3 { margin: 0 0 2px; font-size: 1.35rem; }
.tile p { margin: 0; color: #c3c7cb; font-size: .88rem; line-height: 1.4; }

.cat-head {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--g-800) center / cover no-repeat;
  padding: 26px 22px; margin-bottom: 12px; border: 1px solid var(--line);
}
.cat-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 17, 19, .92), rgba(16, 17, 19, .5)); }
.cat-head h2 { position: relative; margin: 0; }
.cat-head.plain { background: var(--g-850); padding: 16px 22px; }
.cat-head.plain::before { display: none; }

.article-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 8px; }
.article-list a { display: flex; justify-content: space-between; gap: 12px; padding: 13px 18px; background: var(--g-850); border: 1px solid var(--line); border-radius: 8px; color: var(--txt); font-weight: 600; }
.article-list a:hover { border-color: var(--red-700); background: var(--g-800); text-decoration: none; }
.article-list a span { color: var(--red-text); }

.prose { max-width: 760px; }
.prose p, .prose li { font-size: 1.04rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--red-text); }

.date-box { flex: none; width: 66px; text-align: center; background: var(--g-900); border: 1px solid var(--line); border-top: 4px solid var(--red-600); border-radius: 8px; padding: 6px 4px 8px; }
.date-box b { display: block; font-family: var(--font-head); font-size: 1.9rem; line-height: 1; }
.date-box span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.meeting { display: flex; gap: 18px; align-items: flex-start; }
.meeting-body { flex: 1; min-width: 0; }
.meeting-body h3 { margin: 0 0 4px; }
.meta { color: var(--muted); font-size: .9rem; display: flex; gap: 16px; flex-wrap: wrap; }

.profile-head { display: flex; gap: 22px; align-items: center; margin-bottom: 22px; }
.avatar { width: 84px; height: 84px; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--red-700), var(--red-900)); display: grid; place-items: center; font-family: var(--font-head); font-size: 2rem; font-weight: 700; letter-spacing: .04em; border: 2px solid var(--red-600); }
.stat { background: var(--g-900); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat b { display: block; font-family: var(--font-head); font-size: 2.2rem; line-height: 1.1; }
.stat b small { font-size: 1rem; color: var(--muted); font-weight: 600; margin-left: 4px; }
.stat span { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); border: 1px dashed var(--g-600); border-radius: var(--radius); }
.danger-zone { border-color: var(--red-800); }

/* ── logowanie ── */
.login-wrap { display: grid; grid-template-columns: 1.15fr 1fr; flex: 1; min-height: 100vh; }
.login-photo { position: relative; background: var(--g-800) center / cover no-repeat; }
.login-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16, 17, 19, .92), rgba(16, 17, 19, .15) 60%), linear-gradient(90deg, rgba(98, 16, 26, .35), transparent); }
.login-photo-in { position: absolute; left: 40px; bottom: 40px; right: 40px; }
.login-photo h1 { font-size: 3.2rem; margin: 0 0 .15em; }
.login-form-side { display: grid; place-items: center; padding: 32px 24px; background: var(--g-900); border-left: 3px solid var(--red-700); }
.login-card { width: 100%; max-width: 380px; }
.login-card h2 { margin-bottom: 20px; }

footer { border-top: 1px solid var(--line); padding: 20px; text-align: center; color: var(--muted); font-size: .82rem; background: var(--g-900); }

@media (max-width: 1320px) {
  .userbox .muted { display: none; }
  .brand small { display: none; }
}
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .menu-btn { display: block; margin-left: auto; }
  .nav, .userbox { display: none; }
  .brand { flex: 1; min-width: 0; font-size: 1rem; white-space: normal; }
  .brand small { display: block; }
  .menu-btn { margin-left: 0; }
  .topbar.open .topbar-in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 14px; row-gap: 6px; }
  .topbar.open .nav { display: flex; flex-direction: column; flex: 0 0 100%; margin: 0; order: 3; }
  .topbar.open .nav a { padding: 11px 12px; }
  .topbar.open .nav .sep { display: none; }
  .topbar.open .userbox { display: flex; width: 100%; order: 4; justify-content: space-between; }
  .topbar-in { height: 60px; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-photo { min-height: 240px; }
  .login-photo h1 { font-size: 2.2rem; }
  .login-photo-in { left: 22px; bottom: 22px; }
  .login-form-side { border-left: none; border-top: 3px solid var(--red-700); }
  .hero { min-height: 280px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-in { padding: 22px; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  .profile-head { flex-direction: column; align-items: flex-start; }
  .meeting { flex-direction: column; gap: 12px; }
  main { padding-top: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ───────── kategorie wiedzy ───────── */
.cat-head-in { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.cat-head { min-height: 96px; display: flex; align-items: flex-end; }
.cat-head > .cat-head-in { width: 100%; }
.cat-desc { position: relative; margin: 4px 0 0; color: #d3d6d9; max-width: 620px; }
.cat-head:not(.plain) { padding-top: 56px; }
.cat-head.plain .cat-desc { color: var(--muted); }
.banner-preview { height: 120px; border-radius: 8px; border: 1px solid var(--line); background: var(--g-800) center / cover no-repeat; display: flex; align-items: flex-end; margin-bottom: 12px; }
.banner-preview span { background: rgba(16, 17, 19, .8); padding: 3px 10px; font-size: .8rem; border-radius: 0 8px 0 8px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pick { position: relative; display: block; cursor: pointer; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--g-900); margin: 0; font-weight: 500; font-size: .8rem; }
.pick input { position: absolute; opacity: 0; inset: 0; }
.pick img { display: block; width: 100%; height: 78px; object-fit: cover; }
.pick span { display: block; padding: 5px 8px; color: var(--muted); }
.pick:has(input:checked) { border-color: var(--red-500); box-shadow: 0 0 0 2px rgba(194, 31, 43, .3); }
.pick:has(input:checked) span { color: var(--txt); }
.pick:has(input:focus-visible) { outline: 2px solid var(--red-text); }
.pick-text { display: grid; place-items: center; min-height: 104px; }
.pick-text span { font-size: .9rem; font-weight: 600; }

/* ───────── obecność ───────── */
.stat-red { border-top: 3px solid var(--red-600); }
.att-list { display: grid; gap: 8px; }
.att-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--g-850); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; }
.att-name { font-weight: 600; }
.seg { display: inline-flex; border: 1px solid var(--g-600); border-radius: 8px; overflow: hidden; }
.seg label { margin: 0; cursor: pointer; font-weight: 600; font-size: .9rem; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 8px 18px; color: var(--muted); background: var(--g-900); user-select: none; }
.seg label + label span { border-left: 1px solid var(--g-600); }
.seg-ok input:checked + span { background: #1f5c3a; color: #d7f5e2; }
.seg-no input:checked + span { background: var(--red-700); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--red-text); outline-offset: -2px; }
.meet-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.status-card { border-radius: var(--radius); padding: 24px 26px; border: 1px solid var(--line); border-left: 6px solid var(--g-500); background: var(--g-850); }
.status-card.st-ok { border-left-color: var(--ok); background: linear-gradient(90deg, rgba(95, 179, 122, .12), var(--g-850) 70%); }
.status-card.st-no { border-left-color: var(--red-500); background: linear-gradient(90deg, rgba(194, 31, 43, .16), var(--g-850) 70%); }
.status-big { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; font-size: 2rem; font-weight: 700; margin-top: 12px; }
.bar { position: relative; height: 22px; background: var(--g-900); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; }
.bar span { position: absolute; inset: 0; display: grid; place-items: center; font-size: .78rem; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.lv-ok.bar i, i.lv-ok { background: #2f8a55; }
i.lv-mid { background: #b8862b; }
i.lv-bad { background: var(--red-600); }
.place { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 700; background: var(--g-700); }
.place-1 { background: #c9a227; color: #1a1500; }
.place-2 { background: #b4b8bd; color: #15171a; }
.place-3 { background: #b06a3b; color: #1c0e04; }

.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; max-width: 760px; margin: 14px auto 26px; }
.pod { display: flex; flex-direction: column; justify-content: flex-end; }
.pod-people { text-align: center; padding: 0 6px 10px; min-height: 64px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.pod-person b { display: block; font-size: 1.05rem; }
.pod-person span { color: var(--muted); font-size: .85rem; }
.pod-block { border-radius: 10px 10px 0 0; display: grid; place-items: center; font-family: var(--font-head); font-size: 3rem; font-weight: 700; border: 1px solid var(--line); border-bottom: none; }
.pod-1 .pod-block { height: 150px; background: linear-gradient(180deg, #c9a227 0%, #7a5f10 100%); color: #1a1500; }
.pod-2 .pod-block { height: 110px; background: linear-gradient(180deg, #b4b8bd 0%, #6f7479 100%); color: #15171a; }
.pod-3 .pod-block { height: 80px; background: linear-gradient(180deg, #b06a3b 0%, #6b3e1f 100%); color: #1c0e04; }
.pod-1 .pod-person b { font-size: 1.25rem; }

/* ───────── testy ───────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { margin: 0; cursor: pointer; font-weight: 500; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--g-600); background: var(--g-900); color: var(--muted); font-size: .88rem; }
.chip-check em { font-style: normal; opacity: .7; margin-left: 4px; }
.chip-check input:checked + span { background: var(--red-800); border-color: var(--red-600); color: #fff; }
.chip-check input:focus-visible + span { outline: 2px solid var(--red-text); }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--g-700); color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.test-progress { background: var(--g-850); border: 1px solid var(--line); padding: 8px 14px; border-radius: 8px; }
.question { position: relative; padding-top: 24px; margin: 0; border: 1px solid var(--line); }
.question legend { padding: 0; }
.qnum { position: absolute; top: -14px; left: 16px; background: var(--red-700); border: 1px solid var(--red-600); border-radius: 999px; min-width: 34px; height: 28px; display: grid; place-items: center; font-weight: 700; font-size: .85rem; padding: 0 10px; }
.qtext { font-size: 1.08rem; font-weight: 600; margin: 4px 0 12px; }
.answers { display: grid; gap: 8px; }
.answer { margin: 0; cursor: pointer; font-weight: 500; }
.answer input { position: absolute; opacity: 0; pointer-events: none; }
.answer span { display: block; padding: 11px 14px 11px 44px; border: 1px solid var(--g-600); border-radius: 8px; background: var(--g-900); position: relative; }
.answer span::before { content: ""; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--g-500); }
.answer:hover span { border-color: var(--g-500); background: var(--g-800); }
.answer input:checked + span { border-color: var(--red-500); background: rgba(130, 20, 29, .28); }
.answer input:checked + span::before { border-color: var(--red-500); background: radial-gradient(circle, var(--red-500) 45%, transparent 50%); }
.answer input:focus-visible + span { outline: 2px solid var(--red-text); }

.score-card { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; padding: 26px 30px; border-radius: 14px; border: 1px solid var(--line); border-left: 8px solid var(--g-500); background: var(--g-850); }
.score-card.sc-ok { border-left-color: #2f8a55; }
.score-card.sc-mid { border-left-color: #b8862b; }
.score-card.sc-bad { border-left-color: var(--red-600); }
.score-num { font-family: var(--font-head); font-size: 4.2rem; font-weight: 700; line-height: 1; }
.score-num small { font-size: 1.8rem; color: var(--muted); }
.score-pct { font-family: var(--font-head); font-size: 2rem; font-weight: 700; }
.score-verdict { color: var(--muted); font-size: 1.05rem; }
.cat-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-bottom: 10px; }
.cat-res { background: var(--g-850); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 8px; border-left: 4px solid var(--g-500); }
.cat-res.lv-ok { border-left-color: #2f8a55; }
.cat-res.lv-mid { border-left-color: #b8862b; }
.cat-res.lv-bad { border-left-color: var(--red-600); }
.cat-res-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tag-ok { background: rgba(47, 138, 85, .18); color: #8fdcab; }
.tag-mid { background: rgba(184, 134, 43, .2); color: #f0c777; }
.tag-bad { background: rgba(194, 31, 43, .22); color: #ff9aa2; }
.review.bad { border-left: 4px solid var(--red-600); }
.opt { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); margin-top: 6px; background: var(--g-900); }
.opt .mark { width: 18px; text-align: center; font-weight: 700; }
.opt em { margin-left: auto; font-style: normal; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.opt.is-correct { border-color: #2f8a55; background: rgba(47, 138, 85, .12); }
.opt.is-correct .mark { color: #8fdcab; }
.opt.is-wrong { border-color: var(--red-600); background: rgba(194, 31, 43, .14); }
.opt.is-wrong .mark { color: #ff9aa2; }
.ok-row { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
details summary { cursor: pointer; }
@media (max-width: 640px) {
  .podium { gap: 4px; }
  .pod-block { font-size: 2rem; }
  .score-num { font-size: 3.2rem; }
  .att-row { flex-direction: column; align-items: stretch; }
  .seg { width: 100%; } .seg label { flex: 1; text-align: center; }
}
