/* El Reem Clubs: تصميم لوحات التحكم (أدمن / مدرب / لاعب / ولي أمر)
   الصفحات القديمة (جداول وفورمات عادية) بتتظبط تلقائي من القواعد الخاصة بـ .dash-content */
:root {
    --bg: #ede8e2; --card: #f7f4ef; --card-2: #f1ede6; --line: #ddd6cb;
    --ink: #141414; --ink-2: #4e4a44; --muted: #8a847a;
    --gold: #8a6a3b; --gold-soft: #c9a96a; --danger: #c0392b; --ok: #1e7a46;
    --on-ink: #fff;
    --sidebar: 264px;
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #171715; --card: #232320; --card-2: #1d1d1a; --line: #3a3832;
    --ink: #f2efe8; --ink-2: #c7c1b6; --muted: #aaa398;
    --gold: #d3b274; --gold-soft: #d2b579; --danger: #ef9187; --ok: #7dca92;
    --on-ink: #171715;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body.dash-body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Tajawal', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.35; }
p { margin: 0; }
.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 30px; height: 30px; }

/* ---------- الهيكل ---------- */
.dash { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.sidebar {
    position: fixed; z-index: 60; inset-block: 0; inset-inline-start: 0; width: min(86vw, var(--sidebar));
    display: flex; flex-direction: column; gap: 6px; padding: 22px 16px 16px; overflow-y: auto;
    background: #141414; color: #cfc8bc; transform: translateX(100%); transition: transform .25s;
}
.sb-open .sidebar { transform: none; }
.sb-overlay { position: fixed; inset: 0; z-index: 55; display: none; background: rgba(0, 0, 0, .45); }
.sb-open .sb-overlay { display: block; }
.sb-brand { display: block; padding: 4px 10px 18px; }
.sb-brand img { display: block; height: 42px; width: auto; }
.sb-brand span { font-weight: 800; letter-spacing: .08em; color: #fff; }
.sb-label { margin: 14px 12px 4px; font-size: 12.5px; letter-spacing: .04em; color: #8f897f; }
.sb-link { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; color: #d9d3c8; font-weight: 700; font-size: 15px; text-decoration: none; }
.sb-link:hover { background: #26231f; color: #fff; }
.sb-link.is-active { background: #fff; color: var(--ink); }
.sb-user { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 14px 8px 4px; border-top: 1px solid #2b2824; }
.sb-avatar { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: #2b2824 center / cover no-repeat; color: var(--gold-soft); font-weight: 800; }
.sb-user strong { display: block; color: #fff; font-size: 15px; line-height: 1.3; }
.sb-user small { color: #8f897f; }
.sb-user form { margin: 0 0 0 auto; }
.sb-logout { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #26231f; color: #d9d3c8; cursor: pointer; }
.sb-logout:hover { background: #fff; color: var(--ink); }

.dash-main { min-width: 0; }
.dash-top {
    position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 14px; height: 70px; padding: 0 20px;
    background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.sb-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.dash-title { font-size: 21px; }
.dash-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.dash-locale-switcher { display: inline-flex; margin: 0; }
.dash-header-control {
    display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 9px;
    border: 1.5px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink);
    font: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
}
.theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: block; }
.dash-content { padding: 24px 20px 56px; max-width: 1240px; margin-inline: auto; }

/* ---------- أزرار وكروت ---------- */
.btn, .dash-content button, .dash-content input[type="submit"] {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 40px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--ink);
    background: var(--ink); color: var(--on-ink); font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
    transition: background .15s, border-color .15s;
}
.btn:hover, .dash-content button:hover { background: #2b2b2b; }
.btn-outline { background: transparent; color: var(--ink); border-color: #bdb6ab; }
.btn-outline:hover { background: transparent; border-color: var(--ink); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.dash-content form:has(input[name="_method"][value="DELETE"]) button { background: transparent; color: var(--danger); border-color: #e3b9b3; min-height: 34px; padding: 0 14px; font-size: 14px; }
.dash-content form:has(input[name="_method"][value="DELETE"]) button:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.dash-content table button, .dash-content table .btn { min-height: 34px; padding: 0 14px; font-size: 14px; }
.btn:focus-visible, .sb-link:focus-visible, .dash-content button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.card, .panel { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.panel + .panel, .card + .card { margin-top: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2 { font-size: 19px; }
.grid { display: grid; gap: 18px; }
.cols-2, .cols-3 { grid-template-columns: 1fr; }
.muted { color: var(--muted); }
.mt { margin-top: 18px; }

.stat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-bottom: 20px; }
.stat-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; text-decoration: none; transition: border-color .15s, transform .15s; }
a.stat-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.stat-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; }
.stat-icon.soft { background: rgba(138, 106, 59, .13); color: var(--gold); }
.stat-card strong { display: block; font-size: 26px; font-weight: 800; line-height: 1.2; }
.stat-card span { color: var(--ink-2); font-size: 14px; }

.badge { display: inline-block; padding: 1px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #ece7de; color: #5b5750; white-space: nowrap; }
.badge-ok { background: #e6f2ea; color: var(--ok); }
.badge-warn { background: #fbf0d9; color: #8a6a1b; }
.badge-bad { background: #f8e4e0; color: var(--danger); }
.alert { margin-bottom: 18px; padding: 13px 18px; border-radius: 16px; font-size: 15px; }
.alert-ok { background: #e6f2ea; color: var(--ok); }
.alert-error { background: #f8e4e0; color: var(--danger); }
.alert-error ul { margin: 0; padding-inline-start: 20px; }
.empty { padding: 26px 16px; text-align: center; color: var(--ink-2); border: 1.5px dashed #c9c1b5; border-radius: 18px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.toolbar form { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }

/* ---------- القواعد العامة للمحتوى (الصفحات القديمة بتستفيد منها) ---------- */
.dash-content > h1:first-child { display: none; }
.dash-content h1 { font-size: 26px; margin-bottom: 8px; }
.dash-content h2 { font-size: 20px; margin: 26px 0 12px; }
.dash-content h3 { font-size: 17px; margin: 18px 0 8px; }
.dash-content .panel h2, .dash-content .card h2, .dash-content .panel-head h2 { margin: 0; }
.dash-content .panel h3 { margin-top: 0; }
.dash-content > p { margin-bottom: 12px; color: var(--ink-2); }
.dash-content a:not(.btn):not(.sb-link):not(.stat-card) { color: var(--gold); font-weight: 700; text-decoration: none; }
.dash-content a:not(.btn):not(.sb-link):not(.stat-card):hover { text-decoration: underline; }

.dash-content table { width: 100%; border: 1px solid var(--line); border-collapse: separate; border-spacing: 0; border-radius: 18px; overflow: hidden; background: var(--card); margin: 8px 0 18px; font-size: 15px; }
.dash-content .table-wrap { overflow-x: auto; border-radius: 18px; }
.dash-content th { border: 0; padding: 12px 14px; background: #efeae2; color: var(--ink-2); font-size: 13.5px; font-weight: 700; text-align: right; white-space: nowrap; }
.dash-content td { padding: 12px 14px; border: 0; border-top: 1px solid var(--line); vertical-align: middle; }
.dash-content tr:hover td { background: rgba(255, 255, 255, .5); }
.dash-content td form { display: inline-block; margin: 0; }

.dash-content input[type="text"], .dash-content input[type="email"], .dash-content input[type="url"], .dash-content input[type="tel"],
.dash-content input[type="number"], .dash-content input[type="date"], .dash-content input[type="time"], .dash-content input[type="search"],
.dash-content input[type="password"], .dash-content select, .dash-content textarea {
    max-width: 100%; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink);
    font: inherit; font-size: 15px; padding: 9px 14px; outline: 0; transition: border-color .15s, box-shadow .15s;
}
.dash-content input:focus, .dash-content select:focus, .dash-content textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(20, 20, 20, .06); }
.dash-content textarea { width: min(100%, 640px); }
.dash-content input[type="text"], .dash-content input[type="url"], .dash-content input[type="email"] { min-width: min(100%, 280px); }
.dash-content input[type="checkbox"], .dash-content input[type="radio"] { width: 18px; height: 18px; accent-color: var(--ink); vertical-align: middle; }
.dash-content fieldset { margin: 12px 0; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 18px; }
.dash-content legend { padding: 0 8px; font-weight: 700; }
.dash-content form > p { margin: 0 0 12px; }
.dash-content img { max-width: 100%; border-radius: 12px; }
.dash-content label { cursor: pointer; }

/* ---------- كارنيه اللاعب ---------- */
.id-card { position: relative; overflow: hidden; max-width: 430px; padding: 22px; border-radius: 26px; color: #fff; background: linear-gradient(135deg, #1b1b1b 0%, #2c2924 100%); }
.id-card::after { content: ""; position: absolute; inset: auto -15% 14% -15%; height: 70px; transform: rotate(-14deg); background: linear-gradient(90deg, transparent, rgba(201, 169, 106, .5) 40%, rgba(201, 169, 106, .15) 80%, transparent); }
.id-card > * { position: relative; z-index: 1; }
.id-top { display: flex; align-items: center; justify-content: space-between; }
.id-top img { height: 30px; width: auto; display: block; }
.id-top small { color: var(--gold-soft); letter-spacing: .1em; }
.id-body { display: flex; align-items: center; gap: 16px; margin: 18px 0; }
.id-photo { display: grid; place-items: center; flex: none; width: 88px; height: 88px; border-radius: 50%; border: 3px solid var(--gold-soft); background: #2c2924 center / cover no-repeat; font-size: 34px; font-weight: 800; color: var(--gold-soft); }
.id-body h3 { margin: 0; font-size: 22px; color: #fff; }
.id-body p { color: #cfc8bc; font-size: 14.5px; }
.id-number { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .1); }
.id-number small { color: #b9b2a7; }
.id-number strong { font-size: 20px; letter-spacing: .12em; direction: ltr; font-variant-numeric: tabular-nums; }

/* ---------- نسب وخطوط التقدم ---------- */
.meter { height: 10px; border-radius: 999px; background: #e3ddd3; overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 999px; background: var(--ink); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: 14px; }
.kv dd { margin: 0; font-weight: 700; }
.rating { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; }
.child-card { display: flex; flex-direction: column; gap: 12px; }
.child-head { display: flex; align-items: center; gap: 14px; }
.avatar { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--card-2) center / cover no-repeat; border: 2px solid var(--gold-soft); font-weight: 800; color: var(--gold); }

/* ---------- الحضور (اختيار الحالة) ---------- */
.status-pick { display: inline-flex; gap: 4px; padding: 3px; background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; }
.status-pick label { position: relative; margin: 0; }
.status-pick input { position: absolute; opacity: 0; pointer-events: none; }
.status-pick span { display: block; padding: 5px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.status-pick input:checked + span { background: var(--ink); color: #fff; }
.status-pick input[value="absent"]:checked + span { background: var(--danger); }
.status-pick input:focus-visible + span { outline: 2px solid var(--gold); }

.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; }
.pager span { color: var(--ink-2); }
.pager .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

@media (min-width: 900px) {
    .cols-2 { grid-template-columns: repeat(2, 1fr); }
    .cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .dash { grid-template-columns: var(--sidebar) 1fr; }
    .sidebar { position: sticky; top: 0; height: 100vh; width: auto; transform: none; grid-column: 1; }
    .dash-main { grid-column: 2; }
    .sb-toggle, .sb-overlay { display: none !important; }
    .dash-top { padding: 0 32px; }
    .dash-content { padding: 28px 32px 64px; }
}
@media (max-width: 600px) {
    .dash-top { min-height: 64px; height: auto; flex-wrap: wrap; gap: 8px; padding: 9px 12px; }
    .dash-title { flex: 1; min-width: 0; font-size: 17px; }
    .dash-actions { flex-basis: 100%; flex-wrap: wrap; gap: 6px; margin-inline-start: 0; }
    .dash-actions > .btn-outline { margin-inline-start: auto; }
    .dash-header-control { min-width: 36px; height: 36px; }
    .dash-content { padding: 18px 12px 40px; }
    .dash-content table { font-size: 14px; }
}
@media print {
    .sidebar, .dash-top, .dash-actions, .no-print { display: none !important; }
    .dash { display: block; }
    body.dash-body { background: #fff; }
}

/* ---------- اختبار ترشيح الرياضة ---------- */
.dashboard-welcome, .quiz-intro, .quiz-result {
    position: relative; overflow: hidden; margin-bottom: 20px; padding: 28px;
    border: 1px solid var(--line); border-radius: 26px; background: var(--card);
    animation: quiz-rise .45s ease both;
}
.dashboard-welcome { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.dashboard-welcome h2, .quiz-intro h1, .quiz-result h1 { margin: 4px 0 8px; font-size: clamp(24px, 3vw, 36px); }
.dashboard-welcome p, .quiz-intro > p, .quiz-result-head p, .martial-result p { max-width: 700px; color: var(--ink-2); }
.quiz-kicker { display: inline-flex; align-items: center; gap: 7px; color: var(--gold); font-size: 14px; font-weight: 800; }
.quiz-kicker .icon { width: 18px; height: 18px; }
.quiz-intro::after, .quiz-result::after {
    position: absolute; inset: auto -10% -90px; height: 150px; content: ""; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 106, .14), transparent); transform: rotate(-8deg);
}
.quiz-note { display: flex; align-items: flex-start; gap: 9px; max-width: 820px; margin-top: 20px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.55); color: var(--ink-2); font-size: 14px; }
.quiz-note .icon { color: var(--gold); }
.quiz-empty { display: grid; justify-items: center; gap: 12px; text-align: center; }
.quiz-empty h2 { margin: 0 !important; }
.quiz-form { display: grid; gap: 14px; }
.quiz-player { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.quiz-player label { font-weight: 800; }
.quiz-player select { min-width: min(100%, 300px); }
.quiz-question { min-width: 0; margin: 0; padding: 20px; animation: quiz-rise .4s ease both; animation-delay: calc(var(--question-index, 0) * 18ms); }
.quiz-question legend { max-width: 100%; padding: 0 6px; font-size: 17px; font-weight: 800; }
.quiz-number { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-inline-end: 10px; border-radius: 50%; background: var(--ink); color: var(--gold-soft); direction: ltr; font-size: 12px; vertical-align: middle; }
.quiz-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.quiz-option { position: relative; display: flex; align-items: flex-start; min-height: 56px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.55); color: var(--ink-2); line-height: 1.55; transition: border-color .16s, background .16s, transform .16s; }
.quiz-option:hover { transform: translateY(-1px); border-color: var(--gold-soft); }
.quiz-option:has(input:checked) { border-color: var(--gold); background: rgba(201,169,106,.13); color: var(--ink); }
.quiz-option:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.quiz-option input { position: absolute; width: 1px !important; height: 1px !important; opacity: 0; }
.quiz-option span { position: relative; padding-inline-start: 27px; }
.quiz-option span::before { position: absolute; inset-block-start: 4px; inset-inline-start: 0; width: 16px; height: 16px; border: 1.5px solid #bdb6ab; border-radius: 50%; content: ""; }
.quiz-option:has(input:checked) span::before { border: 5px solid var(--gold); }
.field-error { width: 100%; color: var(--danger) !important; font-size: 13px; }
.quiz-submit, .quiz-actions, .quiz-result-cta, .child-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.quiz-submit { padding: 6px 2px; }
.quiz-submit p { margin: 0; }
.quiz-result { padding: clamp(22px, 5vw, 42px); }
.quiz-result-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 20px; }
.quiz-result-icon { display: grid; place-items: center; flex: none; width: 68px; height: 68px; border: 1px solid var(--line); border-radius: 22px; background: var(--ink); color: var(--gold-soft); }
.quiz-score-list { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.quiz-score-label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.quiz-score-label span { color: var(--gold); font-weight: 800; }
.quiz-result .meter > span { background: linear-gradient(90deg, var(--gold), var(--gold-soft)); }
.quiz-footnote { margin-top: 12px; color: var(--muted); font-size: 13px; }
.quiz-result-cta, .martial-result { position: relative; z-index: 1; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.martial-result { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.martial-result h2 { margin: 4px 0 6px !important; }
.martial-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.martial-tags .badge { background: var(--ink); color: var(--gold-soft); }
.quiz-actions { justify-content: flex-start; margin-top: 16px; }
.assessment-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.assessment-summary p { margin-top: 4px; color: var(--ink-2); }
.dash-actions .btn-quiz { display: inline-flex; align-items: center; min-height: 0; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.dash-actions .btn-quiz:hover { color: var(--ink-2); text-decoration: underline; }
.quiz-intro-compact { padding-bottom: 24px; }
.quiz-back { display: inline-block; margin-top: 12px; }
.id-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.2); }
.id-details > div { min-width: 0; display: grid; gap: 2px; }
.id-details small { color: #b9b2a7; font-size: 12px; }
.id-details strong { overflow-wrap: anywhere; color: #fff; font-size: 14px; }
.id-details .id-email strong { font-size: 12.5px; }
.id-card .id-number strong { font-size: clamp(14px, 3vw, 20px); }
:root[data-theme="dark"] .dash-content th { background: #2b2a26; }
:root[data-theme="dark"] .dash-content tr:hover td { background: rgba(255,255,255,.04); }
:root[data-theme="dark"] .dash-content input[type="text"],
:root[data-theme="dark"] .dash-content input[type="email"],
:root[data-theme="dark"] .dash-content input[type="url"],
:root[data-theme="dark"] .dash-content input[type="tel"],
:root[data-theme="dark"] .dash-content input[type="number"],
:root[data-theme="dark"] .dash-content input[type="date"],
:root[data-theme="dark"] .dash-content input[type="time"],
:root[data-theme="dark"] .dash-content input[type="search"],
:root[data-theme="dark"] .dash-content input[type="password"],
:root[data-theme="dark"] .dash-content select,
:root[data-theme="dark"] .dash-content textarea { background-color: #292926; color: var(--ink); }
:root[data-theme="dark"] .badge { background: #35332d; color: var(--ink-2); }
:root[data-theme="dark"] .badge-ok { background: #183825; color: #9cddb0; }
:root[data-theme="dark"] .badge-warn { background: #40371e; color: #ecd28b; }
:root[data-theme="dark"] .badge-bad { background: #422522; color: #f1a59d; }
:root[data-theme="dark"] .alert-ok { background: #183825; color: #9cddb0; }
:root[data-theme="dark"] .alert-error { background: #422522; color: #f1a59d; }
:root[data-theme="dark"] .quiz-note,
:root[data-theme="dark"] .quiz-option { background: var(--card); }
@keyframes quiz-rise { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 700px) {
    .dashboard-welcome { align-items: flex-start; flex-direction: column; padding: 22px; }
    .quiz-options { grid-template-columns: 1fr; }
    .quiz-score-list { grid-template-columns: 1fr; gap: 12px; }
    .quiz-result-head { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 420px) { .id-details { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
