/* منصة تقييم طيف التوحد — صندوق تطوير التعليم */
:root {
  --ink: #16130f;
  --ink-2: #2a251e;
  --paper: #fbf8f1;
  --paper-2: #f3ecdd;
  --line: #e4dac4;
  --gold: #c9962a;
  --gold-2: #e7b742;
  --gold-deep: #9a6d12;
  --red: #c4202f;
  --muted: #6b6255;
  --white: #fff;
  --ok: #2f7d4f;
  --ok-bg: #e5f2e8;
  --warn: #9a6a00;
  --warn-bg: #fdf1cf;
  --bad: #b3261e;
  --bad-bg: #fbe3e0;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(22, 19, 15, .05), 0 8px 28px -12px rgba(22, 19, 15, .18);
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-display: "Noto Kufi Arabic", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.85;
  color: var(--ink); background: var(--paper);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.45; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; }
h3, .h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; border-radius: 999px;
  padding: .6em 1.4em; line-height: 1.4; transition: transform .15s, background .2s, box-shadow .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--ink); box-shadow: 0 6px 18px -8px rgba(154, 109, 18, .7); }
.btn--gold:hover { background: linear-gradient(180deg, #efc456, #d29f30); }
.btn--line { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { padding: .35em 1.05em; font-size: .92rem; }
.btn--lg { padding: .78em 1.8em; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ===== Header ===== */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(251, 248, 241, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand { gap: 14px; flex: none; }
.brand__etc { height: 48px; width: auto; }
.brand__edf { width: 58px; height: 58px; }
.brand__sep { width: 1px; height: 38px; background: var(--line); }
.nav__lang { border: 1px solid var(--line); font-weight: 600; }
html[lang=en] .nav__lang, html[lang=ar] .nav__lang[lang=ar] { font-family: var(--font-display); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav > a { color: var(--ink-2); text-decoration: none; padding: .4em .8em; border-radius: 8px; font-size: .97rem; }
.nav > a:hover { background: var(--paper-2); }
.nav > a.btn { color: var(--ink); padding: .35em 1.05em; }
.nav__sep { width: 1px; height: 24px; background: var(--line); margin-inline: 6px; }
.nav__form { margin: 0; }
.navtoggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.navtoggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* ===== Alerts ===== */
.alert { margin: 18px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid; font-weight: 500; }
.alert--success { background: var(--ok-bg); border-color: #b8dcc3; color: var(--ok); }
.alert--error { background: var(--bad-bg); border-color: #f0b9b3; color: var(--bad); margin: 0 0 18px; }
.alert--info { background: var(--warn-bg); border-color: #efd88c; color: var(--warn); }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px;
  background:
    radial-gradient(800px 420px at 12% 30%, rgba(231, 183, 66, .18), transparent 60%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  border-bottom: 1px solid var(--line);
}
.hero__in { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--gold-deep); font-size: .95rem; margin-bottom: .8em; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); }
.eyebrow--gold { color: var(--gold-2); }
.hero h1 { margin-bottom: .45em; }
.hero__sub { display: block; font-size: .5em; font-weight: 700; color: var(--gold-deep); margin-top: .35em; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 58ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 34px; }
.hero__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); padding-top: 22px; max-width: 560px; }
.hero__facts li { flex: 1 1 0; display: flex; flex-direction: column; padding-inline-end: 20px; }
.hero__facts li + li { border-inline-start: 1px solid var(--line); padding-inline-start: 20px; }
.hero__facts strong { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.2; }
.hero__facts span { color: var(--muted); font-size: .92rem; }

.hero__art { display: grid; place-items: center; }
.seal { position: relative; width: min(400px, 80vw); aspect-ratio: 1; display: grid; place-items: center; }
.seal img, .seal__mark { position: relative; width: 82%; height: auto; z-index: 2; filter: drop-shadow(0 18px 30px rgba(22, 19, 15, .18)); }
.seal__ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(201, 150, 42, .45); }
.seal__ring--1 { inset: -4%; border-style: dashed; animation: spin 80s linear infinite; }
.seal__ring--2 { inset: 6%; background: radial-gradient(circle, #fff 0 55%, rgba(255, 255, 255, 0) 70%); border-color: rgba(201, 150, 42, .25); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .seal__ring--1 { animation: none; } html { scroll-behavior: auto; } }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section--first { padding-top: 48px; }
.section--tint { background: var(--paper-2); border-block: 1px solid var(--line); }
.section--ink { background: var(--ink); color: #efe7d6; }
.section--ink h2 { color: #fff; }
.section__head { max-width: 720px; margin-bottom: 40px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.grid-2--center { align-items: center; }
.grid-2--wide { grid-template-columns: 1.4fr 1fr; gap: 28px; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card--flush { padding: 0; overflow: hidden; }
.card__head { padding: 20px 24px 6px; }

.meta { margin: 28px 0 0; display: grid; gap: 16px; }
.meta div { border-inline-start: 3px solid var(--gold); padding-inline-start: 14px; }
.meta dt { font-weight: 700; font-family: var(--font-display); font-size: .95rem; }
.meta dd { margin: 2px 0 0; color: var(--ink-2); font-size: .97rem; }

/* scale */
.scalecard h3 { font-size: 1.25rem; }
.scale { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.scale__item { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); }
.scale__item strong { display: block; font-size: 1rem; }
.scale__item small { display: block; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.scale__n { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: #fff; }
.scale__item--1 .scale__n { background: #3f8f5e; }
.scale__item--2 .scale__n { background: #b98a12; }
.scale__item--3 .scale__n { background: #d0661c; }
.scale__item--4 .scale__n { background: var(--red); }
.scale__half { font-size: .93rem; color: var(--ink-2); background: var(--paper-2); padding: 12px 14px; border-radius: var(--radius-sm); margin: 0; }

/* domains */
.domains { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.domain { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.domain:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d9c79c; }
.domain__n { position: absolute; inset-inline-end: 18px; top: 12px; font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--paper-2); line-height: 1; -webkit-text-stroke: 1px #d8c79f; }
.domain h3 { font-size: 1.05rem; margin: 0 0 2px; padding-inline-end: 44px; }
.domain__en { display: block; font-size: .8rem; color: var(--gold-deep); font-weight: 600; letter-spacing: .02em; margin-bottom: 8px; text-align: right; }
.domain p { color: var(--muted); font-size: .93rem; line-height: 1.75; margin: 0; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.step__n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--gold-2); font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; margin-bottom: 14px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 48px; inset-inline-start: calc(100% + 1px); width: 20px; border-top: 2px dashed var(--line); }

/* severity bands */
.bands { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.band { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "cat range" "label label"; gap: 2px 16px; padding: 18px 20px; border-radius: var(--radius); border-inline-start: 6px solid; background: rgba(255, 255, 255, .05); }
.band__cat { grid-area: cat; font-size: .85rem; color: #b9ad97; align-self: center; }
.band__range { grid-area: range; font-family: var(--font-display); font-size: 1.35rem; color: #fff; justify-self: end; }
.band__label { grid-area: label; font-weight: 600; }
.band--low { border-color: #57b07a; } .band--low .band__label { color: #9bd8b2; }
.band--mid { border-color: var(--gold-2); } .band--mid .band__label { color: var(--gold-2); }
.band--high { border-color: #e24b56; } .band--high .band__label { color: #ff9aa2; }

/* notice */
.notice { display: flex; gap: 18px; align-items: flex-start; padding: 26px 28px; background: var(--warn-bg); border: 1px solid #ecd28a; border-radius: var(--radius); color: #4d3a08; }
.notice svg { flex: none; color: var(--warn); margin-top: 4px; }
.notice h3 { color: #4d3a08; }
.notice p { margin: 0; }

/* EDF */
.programs { background: var(--ink); color: #efe7d6; border-radius: var(--radius); padding: 30px; position: relative; overflow: hidden; }
.programs::after { content: ""; position: absolute; width: 220px; height: 220px; inset-inline-start: -70px; bottom: -90px; border-radius: 50%; border: 1.5px solid rgba(231, 183, 66, .3); }
.programs h3 { color: var(--gold-2); }
.programs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.programs li { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); display: flex; gap: 12px; align-items: center; }
.programs li::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold); flex: none; }
.programs li:last-child { border-bottom: 0; }

/* CTA */
.cta { text-align: center; background: linear-gradient(180deg, var(--paper), var(--paper-2)); }
.cta__in { max-width: 640px; }
.cta p { color: var(--muted); margin-bottom: 26px; }

/* ===== Footer ===== */
.footer { background: var(--ink); color: #bdb19b; padding: 40px 0 28px; font-size: .93rem; }
.footer__in { display: grid; gap: 14px; }
.footer__brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.footer__logos { display: inline-flex; align-items: center; gap: 14px; background: #fff; border-radius: 12px; padding: 8px 14px; flex: none; }
.footer__logos img { width: 64px; height: 64px; }
.footer__logos .footer__etc { width: auto; height: 50px; }
.footer__brand strong { font-family: var(--font-display); font-size: 1.05rem; }
.footer__brand p { margin: 0; color: #bdb19b; }
.footer__note { margin: 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__copy { margin: 0; font-size: .85rem; color: #8b806d; }

/* ===== Auth / forms ===== */
.authpage { padding: 48px 0 80px; background: linear-gradient(180deg, var(--paper), var(--paper-2)); min-height: calc(100vh - 73px); }
.authpage__in { display: grid; place-items: center; }
.authpage__in--wide { grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; place-items: initial; }
.authside { position: sticky; top: 110px; }
.authside img { width: 110px; margin-bottom: 18px; }
.authside p { color: var(--ink-2); }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 5px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat; }

.form { width: 100%; }
.form--narrow { max-width: 460px; }
.form__head { text-align: center; margin-bottom: 18px; }
.form__head img { width: 84px; margin: 0 auto 10px; }
.form__head h1 { font-size: 1.6rem; margin-bottom: .2em; }
.form__alt { text-align: center; margin: 16px 0 0; color: var(--muted); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; padding: 0; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=password], .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .62em .85em; transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input[dir=ltr] { text-align: left; }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(231, 183, 66, .22); }
.field--error input[type], .field--error select { border-color: var(--bad); background: #fff9f8; }
.field__err { color: var(--bad); font-size: .87rem; margin: 6px 0 0; font-weight: 500; }
.field__hint { color: var(--muted); font-size: .85rem; margin: 6px 0 0; }
.pw { position: relative; }
.pw input { padding-inline-start: 4.6em !important; }
.pw__toggle { position: absolute; inset-inline-start: 6px; top: 50%; transform: translateY(-50%); background: var(--paper-2); border: 0; border-radius: 6px; font: inherit; font-size: .82rem; padding: .25em .7em; cursor: pointer; color: var(--ink-2); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice__opt { position: relative; cursor: pointer; margin: 0 !important; }
.choice__opt input { position: absolute; opacity: 0; }
.choice__opt span { display: block; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); transition: border-color .15s, background .15s; }
.choice__opt strong { display: block; font-family: var(--font-display); }
.choice__opt small { color: var(--muted); font-weight: 400; }
.choice__opt input:checked + span { border-color: var(--gold); background: #fff8e6; box-shadow: inset 0 0 0 1px var(--gold); }
.choice__opt input:focus-visible + span { box-shadow: 0 0 0 4px rgba(231, 183, 66, .35); }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: .93rem !important; line-height: 1.7; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 5px; accent-color: var(--gold-deep); flex: none; }

/* ===== Account / admin ===== */
.pagehead { margin-bottom: 26px; }
.pagehead h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .1em; }
.progress { list-style: none; padding: 0; margin: 10px 0 20px; display: grid; gap: 0; }
.progress__item { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; position: relative; }
.progress__item > span { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--paper-2); color: var(--muted); border: 1.5px solid var(--line); position: relative; z-index: 1; }
.progress__item:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 16px; top: 46px; bottom: -12px; width: 2px; background: var(--line); }
.progress__item strong { display: block; }
.progress__item small { color: var(--muted); }
.progress__item.is-done > span { background: var(--ok); border-color: var(--ok); color: #fff; }
.progress__item.is-next > span { background: var(--gold-2); border-color: var(--gold); color: var(--ink); }
.soon { background: var(--paper); border: 1px dashed #d8c79f; border-radius: var(--radius-sm); padding: 14px 16px; font-size: .95rem; }
.soon strong { display: block; }
.kv { margin: 0; display: grid; gap: 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: left; }

.stats { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat span { display: block; color: var(--muted); font-size: .88rem; }
.stat strong { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.4; }
.stat small { font-size: .85rem; color: var(--muted); }
.tablewrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; white-space: nowrap; }
.table th, .table td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--line); }
.table th { background: var(--paper); font-weight: 600; color: var(--ink-2); position: sticky; top: 0; }
.table tbody tr:hover { background: #fffcf4; }
.table__empty { text-align: center !important; color: var(--muted); padding: 32px !important; }
.tag { display: inline-block; padding: .1em .65em; border-radius: 999px; background: var(--paper-2); font-size: .82rem; font-weight: 600; }
.tag--off { background: var(--bad-bg); color: var(--bad); }

.errorbox { text-align: center; max-width: 560px; padding: 60px 0; }
.errorbox__code { display: block; font-family: var(--font-display); font-size: 5rem; font-weight: 800; color: var(--gold); line-height: 1.2; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero__in, .grid-2, .grid-2--wide, .authpage__in--wide { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 52px; }
  .hero__art { order: -1; }
  .lockup { font-size: clamp(7px, 1.9vw, 11px); }
  .authside { position: static; text-align: center; }
  .authside img { margin-inline: auto; }
  .checks { text-align: right; max-width: 420px; margin-inline: auto; }
  .section { padding: 60px 0; }
  .navtoggle { display: block; }
  .nav { position: absolute; top: 100%; inset-inline: 0; background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 16px 18px; gap: 2px; display: none; box-shadow: 0 16px 30px -18px rgba(0,0,0,.3); }
  .nav.is-open { display: flex; }
  .nav > a { padding: .65em .6em; }
  .nav__sep { width: 100%; height: 1px; margin: 8px 0; }
  .nav .btn, .nav__form .btn { width: 100%; margin-top: 4px; }
  .navtoggle[aria-expanded=true] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .navtoggle[aria-expanded=true] span:nth-child(2) { opacity: 0; }
  .navtoggle[aria-expanded=true] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .steps, .row-2 { grid-template-columns: 1fr; gap: 0 16px; }
  .steps { gap: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 20px; }
  .hero__facts strong { font-size: 1.5rem; }
  .hero__facts li { padding-inline-end: 12px; }
  .hero__facts li + li { padding-inline-start: 12px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .notice { flex-direction: column; padding: 20px; }
  .brand__txt small { display: none; }
  .band__range { font-size: 1.15rem; }
}

/* ===== Center: tests catalog ===== */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .9rem; margin-bottom: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-deep); text-decoration: underline; }
.crumbs--center { justify-content: center; }
.tests { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.testcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.testcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--red), var(--gold-2)); }
.testcard--soon { box-shadow: none; background: var(--paper); }
.testcard--soon::before { background: var(--line); }
.testcard__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.testcard__code { display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .04em; background: var(--ink); color: var(--gold-2); padding: .2em .7em; border-radius: 6px; }
.testcard h3 { font-size: 1.15rem; margin-bottom: 2px; }
.testcard__en { font-size: .82rem; color: var(--gold-deep); font-weight: 600; text-align: right; margin-bottom: 10px; }
.testcard__desc { color: var(--muted); font-size: .95rem; flex: 1; }
.testcard__meta { margin: 0 0 18px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.testcard__meta div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.testcard__meta dt { color: var(--muted); }
.testcard__meta dd { margin: 0; font-weight: 600; }
.pill { display: inline-block; padding: .15em .8em; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.pill--on { background: var(--ok-bg); color: var(--ok); }
.pill--soon { background: var(--paper-2); color: var(--muted); border: 1px solid var(--line); }
.is-disabled { opacity: .6; cursor: not-allowed; pointer-events: none; }
.pillars { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillars li { padding: 22px 0 0; border-top: 3px solid var(--ink); }
.pillars li:nth-child(odd) { border-top-color: var(--gold); }
.pillars p { color: var(--muted); font-size: .95rem; margin: 0; }
.stack { display: grid; gap: 20px; align-content: start; }
.cardtitle { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.cardtitle h2 { margin: 0; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list strong { display: block; }
.list small { color: var(--muted); }
.list__row { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.card--gap { margin-bottom: 24px; }
@media (max-width: 1080px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pillars { grid-template-columns: 1fr; } .tests { grid-template-columns: 1fr; } .list__row { flex-wrap: wrap; } }

/* ===== Phase 2: generic helpers ===== */
.narrow { max-width: 860px; }
.h1-sm { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.opt { color: var(--muted); font-weight: 400; font-size: .85em; }
.spaced { margin-top: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.inline { display: inline; margin: 0; }
.btn--link { background: none; border-color: transparent; color: var(--gold-deep); padding-inline: .6em; text-decoration: underline; text-underline-offset: 3px; }
.btn--link:hover { color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.pill--warn { background: var(--warn-bg); color: var(--warn); }
.choice--3 { grid-template-columns: repeat(3, 1fr); }
.form__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.list__actions { display: flex; align-items: center; gap: 6px; flex: none; }
.list small .pill { font-size: .75rem; padding: 0 .6em; }
.infobox { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; margin: 4px 0 20px; font-size: .95rem; }
.infobox ul { margin: 6px 0 0; padding-inline-start: 20px; }
.soonhead { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.about-card { margin: 22px 0; }
.checks--plain li::before { background-color: var(--gold-deep); }
.band__ranges { display: flex; gap: 18px; flex-wrap: wrap; font-size: .9rem; color: #cfc4ad; margin-top: 4px; grid-column: 1 / -1; }
.band__ranges strong { color: #fff; font-family: var(--font-display); margin-inline-start: 4px; }
.band { grid-template-areas: "cat cat" "label label"; }

/* examinee pick */
.pick { display: grid; gap: 10px; }
.pick__opt { display: block; cursor: pointer; margin: 0 !important; font-weight: 400 !important; }
.pick__opt input { position: absolute; opacity: 0; }
.pick__opt > span { display: block; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.pick__opt strong { display: block; }
.pick__opt small { color: var(--muted); }
.pick__opt em { font-style: normal; color: var(--bad); }
.pick__opt em.ok { color: var(--ok); }
.pick__opt input:checked + span { border-color: var(--gold); background: #fff8e6; box-shadow: inset 0 0 0 1px var(--gold); }
.pick__opt input:focus-visible + span { box-shadow: 0 0 0 4px rgba(231, 183, 66, .35); }

/* ===== Test run ===== */
.testrun { padding: 28px 0 120px; }
.runhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.runhead .eyebrow { margin-bottom: 0; }
.runhead__count { margin: 0; color: var(--muted); }
.runhead__count strong { color: var(--ink); font-family: var(--font-display); font-size: 1.2rem; }
.dots { list-style: none; padding: 0; margin: 16px 0 26px; display: grid; grid-template-columns: repeat(15, 1fr); gap: 6px; }
.dots a { display: grid; place-items: center; height: 34px; border-radius: 8px; background: var(--paper-2); border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: .88rem; font-weight: 600; }
.dots .is-done a { background: #e9f3ec; border-color: #b9dcc4; color: var(--ok); }
.dots .is-current a { background: var(--ink); border-color: var(--ink); color: var(--gold-2); }
.itemhead { max-width: 820px; margin-bottom: 22px; }
.itemhead h1 { margin-bottom: 0; font-size: clamp(1.45rem, 3vw, 2.1rem); }
.itemhead__en { color: var(--gold-deep); font-weight: 600; font-size: .9rem; text-align: right; margin-bottom: 8px; }
.itemhead__desc { color: var(--ink-2); }
.itemhead__hint { background: var(--paper-2); border-inline-start: 3px solid var(--gold); padding: 10px 14px; border-radius: 6px; font-size: .95rem; }
.levels { display: grid; gap: 10px; }
.level { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; transition: border-color .15s, box-shadow .15s; }
.level:has(input:checked), .level.is-checked { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(231, 183, 66, .3); }
.level__pick { display: flex; gap: 16px; padding: 20px; cursor: pointer; margin: 0; align-items: flex-start; }
.level__pick input { position: absolute; opacity: 0; }
.level__score { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: #fff; position: relative; }
.level__score::after { content: ""; position: absolute; inset: -5px; border-radius: 15px; border: 2px solid transparent; }
.level:has(input:checked) .level__score::after { border-color: var(--ink); }
.level--1 .level__score { background: #3f8f5e; }
.level--2 .level__score { background: #b98a12; }
.level--3 .level__score { background: #d0661c; }
.level--4 .level__score { background: var(--red); }
.level__body { display: flex; flex-direction: column; gap: 4px; }
.level__tag { font-size: .8rem; color: var(--muted); font-weight: 600; }
.level__title { font-size: 1.04rem; line-height: 1.75; }
.level__text { color: var(--ink-2); font-size: .95rem; }
.level__pick input:focus-visible ~ .level__score { box-shadow: 0 0 0 4px rgba(231, 183, 66, .5); }
.level__more { background: var(--paper); border-inline-start: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.level__more details { font-size: .92rem; }
.level__more summary { cursor: pointer; color: var(--gold-deep); font-weight: 600; }
.level__more ul { margin: 6px 0 0; padding-inline-start: 18px; }
.video { margin: 0; }
.video video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; display: block; }
.video__none { aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; padding: 12px; background: var(--paper-2); border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: .9rem; }
.video figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.video figcaption span { font-weight: 700; color: var(--ink-2); }
.half { display: flex; align-items: center; gap: 12px; margin: 0 28px; padding: 8px 14px; border: 1.5px dashed var(--line); border-radius: 999px; background: var(--paper); cursor: pointer; font-size: .93rem; color: var(--ink-2); width: fit-content; }
.half input { position: absolute; opacity: 0; }
.half__score { font-family: var(--font-display); font-weight: 800; min-width: 38px; text-align: center; padding: 0 8px; border-radius: 999px; background: var(--paper-2); }
.half:has(input:checked), .half.is-checked { border-style: solid; border-color: var(--gold); background: #fff8e6; color: var(--ink); }
.half:has(input:checked) .half__score { background: var(--gold-2); }
.half:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(231, 183, 66, .35); }
.runbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; background: rgba(251, 248, 241, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.runbar__in { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; }
.table--review td:first-child { width: 40px; }
.table--review tr.is-missing { background: #fff9f8; }
.scorechip { display: inline-block; min-width: 40px; text-align: center; padding: 0 10px; border-radius: 999px; background: var(--paper-2); font-family: var(--font-display); }
.paycard .kv__total dd { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold-deep); }
.paycard form { margin-top: 18px; }
.testmode { background: var(--warn-bg); color: var(--warn); padding: 8px 12px; border-radius: 8px; font-size: .9rem; }

/* ===== Report ===== */
.report-tools { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.report-tools__in { display: flex; justify-content: space-between; padding: 10px 0; }
.report { padding: 30px 0 60px; }
.report__head { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding-bottom: 20px; border-bottom: 3px double var(--gold); }
.report__head img { width: 84px; }
.report__head h1 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin: 0; }
.report__org { margin: 0; color: var(--gold-deep); font-weight: 600; font-size: .92rem; }
.report__sub { margin: 0; color: var(--muted); }
.report__no { margin: 0; font-size: .88rem; display: grid; gap: 4px; }
.report__no div { display: flex; gap: 8px; justify-content: space-between; }
.report__no dt { color: var(--muted); }
.report__no dd { margin: 0; font-weight: 700; }
.rsec { padding: 26px 0 6px; }
.rsec h2 { font-size: 1.2rem; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.infogrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.infogrid div { padding: 10px 14px; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); }
.infogrid dt { color: var(--muted); font-size: .82rem; }
.infogrid dd { margin: 0; font-weight: 600; }
.result { display: grid; grid-template-columns: 200px 1fr; gap: 16px; margin-bottom: 16px; }
.result__score { border-radius: var(--radius); padding: 18px; text-align: center; color: #fff; display: flex; flex-direction: column; justify-content: center; }
.result__score span, .result__score small { opacity: .85; }
.result__score strong { font-family: var(--font-display); font-size: 3rem; line-height: 1.2; }
.result__score--low { background: #2f7d4f; } .result__score--mid { background: #b07d0a; } .result__score--high { background: #b3261e; }
.result__band { border-radius: var(--radius); padding: 18px 22px; border: 2px solid; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.result__band strong { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.6; }
.result__band--low { border-color: #57b07a; background: var(--ok-bg); } .result__band--mid { border-color: var(--gold-2); background: var(--warn-bg); } .result__band--high { border-color: #e24b56; background: var(--bad-bg); }
.result__cat { font-weight: 700; color: var(--muted); font-size: .9rem; }
.result__en { font-size: .85rem; color: var(--muted); text-align: right; }
.cutoffs { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.cutoffs caption { text-align: right; font-size: .88rem; color: var(--muted); padding: 0 0 6px; }
.cutoffs .is-hit { font-weight: 700; }
.cutoffs .is-low { background: var(--ok-bg); } .cutoffs .is-mid { background: var(--warn-bg); } .cutoffs .is-high { background: var(--bad-bg); }
.tline { font-size: .9rem; color: var(--ink-2); margin-top: 12px; }
.domtable { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); white-space: normal; }
.domtable td:nth-child(3) { font-family: var(--font-display); }
.domtable tfoot td { font-weight: 700; background: var(--paper); }
.domtable__barh { width: 34%; }
.bar { display: inline-block; vertical-align: middle; width: calc(100% - 56px); height: 10px; border-radius: 99px; background: var(--paper-2); overflow: hidden; margin-inline-end: 8px; }
.bar > span { display: block; height: 100%; border-radius: 99px; }
.bar--1 > span { background: #3f8f5e; } .bar--2 > span { background: #c99a1c; } .bar--3 > span { background: #d0661c; } .bar--4 > span { background: var(--red); }
.w2 { width: 25%; } .w3 { width: 37.5%; } .w4 { width: 50%; } .w5 { width: 62.5%; } .w6 { width: 75%; } .w7 { width: 87.5%; } .w8 { width: 100%; }
.threecol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.threecol h3 { font-size: 1rem; color: var(--gold-deep); margin-bottom: 6px; }
.threecol ul { margin: 0; padding-inline-start: 18px; font-size: .94rem; }
.threecol li { margin-bottom: 4px; }
.guide { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 10px; border-inline-start: 5px solid; }
.guide--1 { border-inline-start-color: #3f8f5e; } .guide--2 { border-inline-start-color: #c99a1c; } .guide--3 { border-inline-start-color: #d0661c; } .guide--4 { border-inline-start-color: var(--red); }
.guide summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary::after { content: "+"; margin-inline-start: auto; font-weight: 700; color: var(--muted); }
.guide[open] summary::after { content: "–"; }
.guide__n { font-family: var(--font-display); font-weight: 800; color: var(--gold-deep); min-width: 24px; }
.guide__t { font-weight: 700; }
.guide__s { color: var(--muted); font-size: .88rem; }
.guide__body { padding: 0 16px 16px; }
.guide__lvl { background: var(--paper); padding: 10px 12px; border-radius: 8px; font-size: .95rem; }
.blocks ul { margin: 0 0 6px; padding-inline-start: 18px; font-size: .93rem; }
.blocks__h { font-weight: 700; margin: 8px 0 2px; font-size: .94rem; }
.blocks__note { font-size: .86rem; color: var(--muted); margin: 0 0 6px; }
.ref { font-size: .82rem; margin-top: 8px !important; color: #6d5a1f; }
.signs { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 26px; }
.signs div { display: flex; flex-direction: column; gap: 6px; }
.signs span { color: var(--muted); font-size: .9rem; }
.signs__line { display: block; border-bottom: 1px dotted var(--ink); height: 28px; }

/* ===== Admin ===== */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 22px; overflow-x: auto; }
.tabs a { padding: 10px 16px; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; font-weight: 600; }
.tabs a.is-active { color: var(--ink); border-bottom-color: var(--gold); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filters input, .filters select { font: inherit; padding: .45em .8em; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.filters input { flex: 1 1 280px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pager a { padding: .3em .8em; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); }
.pager a.is-active { background: var(--ink); color: var(--gold-2); }
.table tr.is-off { opacity: .6; }
.stat small { display: block; color: var(--muted); font-size: .8rem; }
.answergrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.answergrid span { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; text-align: center; padding: 6px; }
.answergrid small { display: block; color: var(--muted); font-size: .78rem; }
.answergrid strong { font-family: var(--font-display); }
.testsadmin { display: grid; gap: 12px; }
.testsadmin__row { display: grid; grid-template-columns: 2fr 1fr 1fr .6fr auto; gap: 14px; align-items: end; padding: 18px 20px; }
.testsadmin__row .field { margin: 0; }
.testsadmin__name { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.testsadmin__name a { font-size: .85rem; }

@media (max-width: 900px) {
  .level { grid-template-columns: 1fr; }
  .level__more { border-inline-start: 0; border-top: 1px solid var(--line); }
  .dots { grid-template-columns: repeat(8, 1fr); }
  .infogrid { grid-template-columns: repeat(2, 1fr); }
  .threecol { grid-template-columns: 1fr; }
  .testsadmin__row { grid-template-columns: 1fr 1fr; }
  .testsadmin__name { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .choice--3 { grid-template-columns: 1fr; }
  .half { margin: 0 8px; }
  .result { grid-template-columns: 1fr; }
  .report__head { grid-template-columns: auto 1fr; }
  .report__no { grid-column: 1 / -1; }
  .runbar .btn { padding-inline: .9em; font-size: .92rem; }
  .answergrid { grid-template-columns: repeat(3, 1fr); }
  .list__row { align-items: flex-start; }
}

/* ===== Print ===== */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  body { background: #fff; font-size: 11.5pt; }
  .topbar, .footer, .noprint, .skip, .alert { display: none !important; }
  .report { padding: 0; width: 100%; }
  .wrap { width: 100%; }
  .guide summary::after { display: none; }
  tr, .result, .guide summary, .guide__lvl, .blocks__h { break-inside: avoid; }
  .threecol { grid-template-columns: repeat(3, 1fr) !important; gap: 12px; font-size: 9.5pt; }
  .infogrid { grid-template-columns: repeat(4, 1fr) !important; }
  .result { grid-template-columns: 160px 1fr !important; }
  .rsec h2, .guide summary { break-after: avoid; }
  .rsec { padding-top: 14px; }
  .result__score, .result__band, .cutoffs .is-hit, .bar > span, .guide { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit; text-decoration: none; }
}

/* ===== Phase 3 ===== */
.form__forgot { text-align: left; margin: -6px 0 14px; font-size: .9rem; }
.alert--inline { margin: 0 0 14px; }
.prose h2 { font-size: 1.15rem; margin-top: 1.6em; }
.prose ul { padding-inline-start: 20px; }
.prose li { margin-bottom: 6px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .9rem; }
.footer__links a { color: #e7d9b8; }
.kv--compact div { padding: 8px 0; }
.nowrap { white-space: nowrap; }
.resetbox input { display: block; width: 100%; margin-top: 8px; font: inherit; font-size: .85rem; padding: .5em .7em; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.filters__end { margin-inline-start: auto; }
.adminbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: .92rem; color: var(--muted); margin-bottom: 14px; }
.adminbar .ok { color: var(--ok); } .adminbar .warn { color: var(--warn); }

/* ===== Phase 4: stats ===== */
.statgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: start; }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hbars li { display: grid; grid-template-columns: minmax(120px, 38%) 1fr auto; gap: 10px; align-items: center; font-size: .9rem; }
.hbars--domains li { grid-template-columns: minmax(160px, 50%) 1fr auto; }
.hbars strong { font-family: var(--font-display); white-space: nowrap; }
.hbars small { color: var(--muted); font-family: var(--font); font-weight: 400; }
.hbars progress { -webkit-appearance: none; appearance: none; width: 100%; height: 12px; border: 0; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.hbars progress::-webkit-progress-bar { background: var(--paper-2); border-radius: 99px; }
.hbars progress::-webkit-progress-value { background: var(--gold); border-radius: 99px; }
.hbars progress::-moz-progress-bar { background: var(--gold); border-radius: 99px; }
.hb--1 progress::-webkit-progress-value { background: #3f8f5e; } .hb--1 progress::-moz-progress-bar { background: #3f8f5e; }
.hb--2 progress::-webkit-progress-value { background: #c99a1c; } .hb--2 progress::-moz-progress-bar { background: #c99a1c; }
.hb--3 progress::-webkit-progress-value { background: var(--red); } .hb--3 progress::-moz-progress-bar { background: var(--red); }
.table--plain th, .table--plain td { padding: 8px 10px; }
.audit__d { max-width: 320px; white-space: normal; font-size: .85rem; color: var(--muted); }
@media (max-width: 900px) { .statgrid { grid-template-columns: 1fr; } .hbars li, .hbars--domains li { grid-template-columns: 1fr auto; } .hbars progress { grid-column: 1 / -1; grid-row: 2; } }
.testsadmin__fs { display: contents; border: 0; margin: 0; padding: 0; }
.testsadmin__fs[disabled] .btn { display: none; }
.tabs__role { margin-inline-start: auto; align-self: center; font-size: .82rem; color: var(--muted); background: var(--paper-2); padding: .2em .8em; border-radius: 999px; white-space: nowrap; }
.rolepick { display: inline-flex; gap: 6px; align-items: center; }
.rolepick select { font: inherit; font-size: .88rem; padding: .25em .5em; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.testcard__btns { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.testsadmin__row { grid-template-columns: 2fr .8fr 1fr 1.6fr .5fr auto; }
.small { font-size: .85rem; }
@media (max-width: 900px) { .testsadmin__url { grid-column: 1 / -1; } }
.field input[type=url] { width: 100%; font: inherit; font-size: .95rem; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .62em .85em; text-align: left; }
.field input[type=url]:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(231, 183, 66, .22); }
.level__examples { font-size: .92rem; }
.level__examples p { margin: 0 0 4px; }
.level__exh { color: var(--gold-deep); font-weight: 700; }
.level__examples ul { margin: 0; padding-inline-start: 18px; }

/* الشعار المزدوج: شاشات صغيرة */
@media (max-width: 600px) {
  .brand { gap: 10px; }
  .brand__etc { height: 38px; }
  .brand__edf { width: 44px; height: 44px; }
  .brand__sep { height: 30px; }
  .footer__brand { flex-wrap: wrap; }
}
/* النسخة الإنجليزية */
html[dir=ltr] .domain__en { text-align: left; }
html[lang=en] .hero h1 { letter-spacing: -.01em; }

/* لوجو المركز كامل في الواجهة */
.lockup { direction: ltr; display: inline-flex; align-items: center; gap: 1.4em; padding: 1.8em 2.4em; background: #fff;
  border: .55em solid #dda935; box-shadow: 0 24px 50px -24px rgba(22, 19, 15, .35); font-size: clamp(8px, .8vw, 12px); max-width: 100%; }
.lockup__mark { width: 9.5em; height: auto; flex: none; }
.lockup__txt { display: flex; flex-direction: column; align-items: flex-end; gap: .25em; white-space: nowrap; }
.lockup__ar { font-family: var(--font-display); font-weight: 800; color: #dda935; font-size: 2.15em; line-height: 1.3; direction: rtl; }
.lockup__en { font-family: "IBM Plex Sans Arabic", "Segoe UI", sans-serif; font-weight: 700; color: #1f4a7a; font-size: 1.75em; line-height: 1.2; }

/* ===== مقياس ADHD ===== */
.runprogress { display: block; width: 100%; height: 8px; margin: 14px 0 22px; border: 0; border-radius: 99px; background: var(--paper-2); overflow: hidden; appearance: none; }
.runprogress::-webkit-progress-bar { background: var(--paper-2); border-radius: 99px; }
.runprogress::-webkit-progress-value { background: var(--gold); border-radius: 99px; }
.runprogress::-moz-progress-bar { background: var(--gold); border-radius: 99px; }
.adhdq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; align-items: start; margin-bottom: 22px; }
.adhdq__photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.adhdq__photo img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: cover; }
.adhdq__example { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; line-height: 1.9; }
.adhdq__example p:last-child { margin-bottom: 0; }
.opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 90px; }
.opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px; text-align: center;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; margin: 0 !important; font-weight: 600 !important; }
.opt input { position: absolute; opacity: 0; }
.opt__n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--paper-2); font-family: var(--font-display); font-size: 1.1rem; }
.opt:has(input:checked), .opt.is-checked { border-color: var(--gold); background: #fff8e6; box-shadow: 0 0 0 3px rgba(231, 183, 66, .3); }
.opt:has(input:checked) .opt__n, .opt.is-checked .opt__n { background: var(--gold); color: #16130f; }
.opt:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(231, 183, 66, .45); }
@media (max-width: 760px) {
  .adhdq { grid-template-columns: 1fr; }
  .adhdq__photo img { max-height: 190px; }
  .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* تقرير ADHD */
.scalebars { display: grid; gap: 14px; }
.scalebar__head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.scalebar__head strong { font-family: var(--font-display); }
.scalebar__track { height: 10px; border-radius: 99px; background: var(--paper-2); overflow: hidden; margin: 6px 0 4px; }
.scalebar__fill { height: 100%; border-radius: 99px; background: var(--ok); }
.scalebar__fill.is-mid { background: var(--gold); }
.scalebar__fill.is-high { background: var(--bad); }
.scalebar__fill.is-low { background: #7a9cc6; }
.scalebar small { color: var(--muted); }
.scalebar__fill.s0 { width: 3%; } .scalebar__fill.s1 { width: 10%; } .scalebar__fill.s2 { width: 20%; } .scalebar__fill.s3 { width: 30%; }
.scalebar__fill.s4 { width: 40%; } .scalebar__fill.s5 { width: 50%; } .scalebar__fill.s6 { width: 60%; } .scalebar__fill.s7 { width: 70%; }
.scalebar__fill.s8 { width: 80%; } .scalebar__fill.s9 { width: 90%; } .scalebar__fill.s10 { width: 100%; }
.teacherbox { border: 1.5px dashed var(--gold); background: #fffaf0; border-radius: var(--radius); padding: 18px 20px; }
.teacherbox input[type=text] { width: 100%; direction: ltr; text-align: left; }
@media print { .teacherbox { display: none; } }

/* ===== تقييمات التوجيه ACGS ===== */
.pick--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .pick--row { grid-template-columns: 1fr; } }
.secsteps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; }
.secsteps li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--paper-2); color: var(--muted); font-size: .88rem; }
.secsteps li span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; font-size: .78rem; }
.secsteps li.is-current { background: var(--ink); color: #fff; }
.secsteps li.is-current span { background: var(--gold); color: var(--ink); }
.qtext { font-family: var(--font-display); font-size: clamp(1.15rem, 2.4vw, 1.45rem); line-height: 1.8; font-weight: 700; margin-bottom: 12px; }
.qtext table, .achoice__t table { border-collapse: collapse; margin: 10px 0; font-family: var(--font-body, inherit); font-weight: 500; font-size: 1rem; background: #fff; }
.qtext th, .qtext td, .achoice__t th, .achoice__t td { border: 1px solid var(--line); padding: 6px 14px; text-align: center; }
.qtext th { background: var(--paper-2); }
.qimg { margin: 0 0 14px; }
.qimg img { display: block; max-width: 100%; max-height: 380px; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; }
.achoices { display: grid; gap: 10px; margin-bottom: 90px; }
.achoices--img { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.achoice { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer; margin: 0 !important; font-weight: 500 !important; line-height: 1.7; }
.achoices--img .achoice { flex-direction: column; text-align: center; }
.achoice input { position: absolute; opacity: 0; }
.achoice__l { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--paper-2); font-family: var(--font-display); }
.achoice__b { display: flex; flex-direction: column; gap: 6px; align-items: inherit; }
.achoice__b img { max-width: 100%; max-height: 160px; height: auto; }
.achoice:has(input:checked), .achoice.is-checked { border-color: var(--gold); background: #fff8e6; box-shadow: 0 0 0 3px rgba(231, 183, 66, .3); }
.achoice:has(input:checked) .achoice__l, .achoice.is-checked .achoice__l { background: var(--gold); }
.achoice:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(231, 183, 66, .45); }
@media (max-width: 760px) { .achoices--img { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* تقرير ACGS */
.trackrow { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.trackrow:last-child { border-bottom: 0; }
.trackrow__n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--paper-2); font-family: var(--font-display); }
.trackrow.is-first .trackrow__n { background: var(--gold); }
.trackrow__score { font-family: var(--font-display); font-size: 1.2rem; }
.trackrow small { color: var(--muted); display: block; }
.trackrow .scalebar__track { grid-column: 2 / 4; margin: 0; }
.recocard { border: 1.5px solid var(--gold); background: #fffaf0; border-radius: var(--radius); padding: 18px 20px; }
.recocard h3 { margin-top: 0; }
.recocard__score { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-deep); }
.grid-2--tight { gap: 16px; }
.notice-inline { margin-top: 14px; padding: 12px 16px; border-inline-start: 4px solid var(--gold); background: #fffaf0; border-radius: var(--radius-sm); }

/* ADHD: تقرير مدمج (ولي الأمر + المعلم) */
.sumtable { width: 100%; border-collapse: collapse; font-size: .95rem; margin-bottom: 10px; }
.sumtable th, .sumtable td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: start; }
.sumtable th { font-size: .85rem; color: var(--muted, #666); font-weight: 600; }
.tone-high { color: var(--red); } .tone-mid { color: #b7791f; } .tone-low { color: var(--ok); }
.rpart { margin-top: 18px; }
.rpart__tag { display: inline-block; margin: 14px 0 0; padding: 5px 14px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-weight: 700; font-size: .9rem; }
.rpart--teacher .rpart__tag { background: #fdf3e1; color: #8a5a12; }
.rpart--teacher { border-top: 2px dashed var(--line); padding-top: 6px; }
@media print { .rpart--teacher { break-before: page; border-top: 0; } .rpart__tag { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ACGS: ملخص النتائج وبطاقات المجالات */
.sumlist { display: grid; gap: 6px; margin: 8px 0 0; }
.sumlist > div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.sumlist dt { color: var(--muted, #666); font-size: .9rem; }
.sumlist dd { margin: 0; }
.interp { background: var(--ok-bg); border-radius: 10px; padding: 10px 14px; margin-top: 12px; }
.profilecards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.profilecard { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.profilecard h3 { font-size: 1rem; color: var(--gold-deep); margin-bottom: 6px; }
.profilecard dl { margin: 0; display: grid; gap: 6px; font-size: .92rem; }
.profilecard dt { font-weight: 700; font-size: .85rem; }
.profilecard dd { margin: 0; }
@media print { .profilecard, .sumlist > div { break-inside: avoid; } .interp { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
