/* Online imtahan: şagird səhifəsi (/imtahan, ex-*) və kabinetdəki idarə səhifəsi (/imtahanlar, exa-*).
   Saytın rəngləri: tünd göy başlıq, qızılı xətt və vurğu. */
:root {
  --ex-navy: #00223f;
  --ex-navy-2: #0b3a63;
  --ex-gold: #c9a227;
  --ex-gold-soft: #f6ecc4;
  --ex-ink: #14202e;
  --ex-muted: #5b6676;
  --ex-line: #dfe5ee;
  --ex-bg: #f3f5f9;
  --ex-ok: #1f8a5b;
  --ex-bad: #b3261e;
  --ex-radius: 14px;
  --ex-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --ex-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

.ex-body {
  margin: 0;
  min-height: 100vh;
  background: var(--ex-bg);
  color: var(--ex-ink);
  font-family: var(--ex-font);
  font-size: 16px;
  line-height: 1.5;
}

.ex-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ başlıq */
.ex-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 3vw, 2rem);
  background: var(--ex-navy);
  border-bottom: 3px solid var(--ex-gold);
  color: #fff;
}
.ex-brand { display: flex; align-items: center; gap: 0.75rem; color: inherit; text-decoration: none; min-width: 0; }
.ex-brand-logo { height: 38px; width: auto; flex: none; }
.ex-brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.ex-brand-text strong { font-family: var(--ex-display); font-size: 1.05rem; }
.ex-brand-text small { color: rgba(255, 255, 255, 0.72); font-size: 0.78rem; }
.ex-header-link {
  flex: none;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.ex-header-link:hover { background: rgba(255, 255, 255, 0.12); }
.ex-body--exam .ex-header-link { display: none; }

/* ------------------------------------------------------------------ giriş ekranlarının fonu (.ex-scene)
   Sağda liseyin binası (images/hero-school.jpg), solda tünd göy panel liseyin solğun möhürü ilə (images/fritl-seal-white.png),
   aralarında qızılı haşiyəli əyri kəsik (SVG, ekranın ölçüsünə uyğun uzanır). Kart paneldə dayanır.
   Sualları yazanda (.ex-body--exam) fon gizlənir, səhifə yenə açıq bozdur — diqqət dağılmasın. */
.ex-header, .ex-main { position: relative; z-index: 1; }
.ex-body:not(.ex-body--exam) { background: var(--ex-navy); }
.ex-scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ex-body--exam .ex-scene { display: none; }
/* Fotoda bina sol tərəfdədir — panel onu örtməsin deyə foto ekranın sağ 2/3 hissəsinə qoyulur. */
.ex-scene-photo { position: absolute; top: 0; right: 0; bottom: 0; left: 30%; background: #33506e url('/images/hero-school.jpg') no-repeat 12% center / cover; }
.ex-scene-panel { position: absolute; inset: 0; width: 100%; height: 100%; }
.ex-scene-band { fill: var(--ex-navy-2); fill-opacity: 0.6; }
.ex-scene-fill { fill: var(--ex-navy); }
.ex-scene-edge { fill: none; stroke: var(--ex-gold); stroke-width: 3; vector-effect: non-scaling-stroke; }
.ex-scene-seal { position: absolute; left: clamp(-6rem, -4vw, -1rem); bottom: -8vh; width: min(46vw, 78vh); opacity: 0.14; }

/* Geniş ekranda kart panelin içində ortalanır: şaquli — başlığın altındakı sahənin ortası, üfüqi — panelin görünən hissəsinin
   (əyri kəsik ekranın ortasında enin ~50%-dədir) mərkəzi, 24vw. Möhür də eyni mərkəzdə, kartın arxasında durur. */
@media (min-width: 900px) {
  .ex-body:not(.ex-body--exam) { display: flex; flex-direction: column; }
  .ex-body:not(.ex-body--exam) .ex-main {
    flex: 1; display: flex; flex-direction: column; justify-content: center;
    width: 100%; max-width: none; margin: 0; box-sizing: border-box; padding: 2rem 0;
  }
  .ex-body:not(.ex-body--exam) .ex-step {
    width: min(30rem, 38vw); box-sizing: border-box;
    margin: 0 0 0 calc(24vw - min(15rem, 19vw));
  }
  .ex-scene-seal { left: calc(24vw - min(17vw, 33vh)); top: calc(50% + 2rem); bottom: auto; width: min(34vw, 66vh); transform: translateY(-50%); }
}
/* Dar ekranda: bina yuxarıda, altı əyri kəsiklə, panel aşağıda; kart binanın üstündən başlayır. */
@media (max-width: 899px) {
  .ex-scene-photo { left: 0; bottom: auto; height: 44vh; background-image: url('/images/hero-school-m.jpg'); background-position: 30% center;
    clip-path: ellipse(140% 100% at 70% 0); }
  .ex-scene-panel { display: none; }
  .ex-scene-seal { left: auto; right: -18vw; bottom: -6vh; width: 80vw; }
  .ex-body:not(.ex-body--exam) .ex-step { margin-top: 22vh; }
}
/* Giriş kartları (kod, sinif/ad, nəticə) — tünd «şüşə»: yarışəffaf, arxadakı möhür (loqo) içindən görünür, yazılar ağ,
   əsas düymə qızılı. Sualları yazanda (.ex-body--exam) kartlar yenə ağdır. */
.ex-body:not(.ex-body--exam) .ex-step {
  position: relative;
  padding: clamp(1.4rem, 3.5vw, 2.2rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03) 55%), rgba(0, 26, 50, 0.38);
  -webkit-backdrop-filter: blur(5px) saturate(140%);
  backdrop-filter: blur(5px) saturate(140%);
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #fff;
}
.ex-body:not(.ex-body--exam) .ex-step::before {           /* yuxarıda incə qızılı xətt */
  content: ''; position: absolute; top: -1px; left: 18%; right: 18%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--ex-gold), transparent);
}
.ex-body:not(.ex-body--exam) .ex-step h1 { color: #fff; letter-spacing: -0.01em; }
.ex-body:not(.ex-body--exam) .ex-step .ex-muted { color: rgba(255, 255, 255, 0.7); }
.ex-body:not(.ex-body--exam) .ex-step .ex-kicker { color: #e6c55c; }
.ex-body:not(.ex-body--exam) .ex-step .ex-step-icon {
  margin-bottom: 0.35rem;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.16);
  color: #f1d47e;
}
.ex-body:not(.ex-body--exam) .ex-step .ex-step-icon--ok { border-color: rgba(76, 200, 140, 0.45); background: rgba(31, 138, 91, 0.2); color: #8fe3b6; }
.ex-body:not(.ex-body--exam) .ex-step .ex-code-input,
.ex-body:not(.ex-body--exam) .ex-step .ex-field select {
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.ex-body:not(.ex-body--exam) .ex-step .ex-code-input::placeholder { color: rgba(255, 255, 255, 0.28); }
.ex-body:not(.ex-body--exam) .ex-step .ex-code-input:focus,
.ex-body:not(.ex-body--exam) .ex-step .ex-field select:focus {
  border-color: var(--ex-gold);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.18);
  outline: none;
}
.ex-body:not(.ex-body--exam) .ex-step .ex-field select option { background: var(--ex-navy); color: #fff; }
.ex-body:not(.ex-body--exam) .ex-step .ex-field { color: rgba(255, 255, 255, 0.75); }
.ex-body:not(.ex-body--exam) .ex-step .ex-facts li { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.85); }
.ex-body:not(.ex-body--exam) .ex-step .ex-note { border: 1px solid rgba(201, 162, 39, 0.35); background: rgba(201, 162, 39, 0.13); color: #f3e3ad; }
.ex-body:not(.ex-body--exam) .ex-step .ex-error { border: 1px solid rgba(229, 72, 77, 0.4); background: rgba(229, 72, 77, 0.15); color: #ffc2bf; }
.ex-body:not(.ex-body--exam) .ex-step .ex-score { color: #fff; }
.ex-body:not(.ex-body--exam) .ex-step .ex-score span { color: rgba(255, 255, 255, 0.7); }
.ex-body:not(.ex-body--exam) .ex-step .ex-btn {
  border-color: rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: transparent;
  color: #fff;
}
.ex-body:not(.ex-body--exam) .ex-step .ex-btn:hover:not(:disabled) { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.08); }
.ex-body:not(.ex-body--exam) .ex-step .ex-btn--primary {
  min-height: 48px;
  border: 0;
  background: linear-gradient(180deg, #ddb945, #c49d22);
  color: var(--ex-navy);
  font-weight: 700;
  box-shadow: 0 10px 24px -12px rgba(201, 162, 39, 0.8);
}
.ex-body:not(.ex-body--exam) .ex-step .ex-btn--primary:hover:not(:disabled) { background: linear-gradient(180deg, #e8c655, #cfa82b); }
/* Dar ekranda kartın yuxarısı binanın şəklinin üstünə düşür — orada fon bir az tünd olsun ki, yazılar rəngli fotoda itməsin. */
@media (max-width: 899px) {
  .ex-body:not(.ex-body--exam) .ex-step {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 55%), rgba(0, 26, 50, 0.6);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
  }
}

/* ------------------------------------------------------------------ ümumi */
.ex-main { max-width: 1180px; margin: 0 auto; padding: clamp(1rem, 3vw, 2rem); }
.ex-card {
  background: #fff;
  border: 1px solid var(--ex-line);
  border-radius: var(--ex-radius);
  padding: clamp(1.1rem, 3vw, 1.75rem);
}
.ex-step { max-width: 30rem; margin: clamp(0.5rem, 4vh, 2.5rem) auto; text-align: center; }
.ex-step h1 { margin: 0.4rem 0 0.35rem; font-family: var(--ex-display); font-size: clamp(1.35rem, 3.5vw, 1.7rem); line-height: 1.2; }
.ex-muted { margin: 0 0 1.2rem; color: var(--ex-muted); }
.ex-kicker { margin: 0; color: var(--ex-navy-2); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.ex-step-icon {
  display: inline-grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1rem;
  background: var(--ex-gold-soft);
  color: #7a5c00;
}
.ex-step-icon svg { width: 1.8rem; height: 1.8rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ex-step-icon--ok { background: #e3f4ea; color: var(--ex-ok); }

.ex-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border: 1px solid #c9d2df;
  border-radius: 10px;
  background: #fff;
  color: var(--ex-ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.ex-btn:hover:not(:disabled) { border-color: var(--ex-navy); }
.ex-btn:active:not(:disabled) { transform: scale(0.98); }
.ex-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ex-btn:focus-visible, .ex-option:focus-visible, .ex-grid-btn:focus-visible, .ex-code-input:focus-visible {
  outline: 3px solid rgba(201, 162, 39, 0.6);
  outline-offset: 2px;
}
.ex-btn--primary { background: var(--ex-navy); border-color: var(--ex-navy); color: #fff; }
.ex-btn--primary:hover:not(:disabled) { background: var(--ex-navy-2); }
.ex-btn--danger { background: var(--ex-bad); border-color: var(--ex-bad); color: #fff; }
.ex-btn--danger:hover:not(:disabled) { background: #8f1e18; border-color: #8f1e18; }
.ex-btn--wide { width: 100%; }
.ex-btn--flag.is-on { background: var(--ex-gold-soft); border-color: var(--ex-gold); color: #6b5000; }

.ex-error { margin: 0.6rem 0 0; padding: 0.55rem 0.75rem; border-radius: 8px; background: #fdecea; color: var(--ex-bad); font-size: 0.9rem; text-align: left; }
.ex-actions { display: flex; gap: 0.6rem; justify-content: flex-end; flex-wrap: wrap; margin-top: 1.1rem; }
.ex-actions .ex-btn { flex: 1 1 8rem; }

/* 1. kod */
.ex-code-form { display: grid; gap: 0.8rem; }
.ex-code-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 2px solid #c9d2df;
  border-radius: 12px;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.35em;
  text-align: center;
  text-transform: uppercase;
  color: var(--ex-navy);
}
.ex-code-input::placeholder { color: #c3cad5; letter-spacing: 0.35em; }
.ex-code-input:focus { border-color: var(--ex-navy); outline: none; }

/* 2. sinif və ad */
.ex-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin: 0.4rem 0 1.2rem; padding: 0; list-style: none; }
.ex-facts li { padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--ex-bg); color: var(--ex-muted); font-size: 0.85rem; font-weight: 600; }
.ex-who-form { display: grid; gap: 0.85rem; text-align: left; }
.ex-field { display: grid; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; color: var(--ex-muted); }
.ex-field select, .ex-field input, .ex-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.55rem 0.7rem;
  border: 1px solid #c9d2df;
  border-radius: 10px;
  background: #fff;
  color: var(--ex-ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
}
.ex-field select:focus, .ex-field input:focus, .ex-field textarea:focus { border-color: var(--ex-navy); outline: 2px solid rgba(0, 34, 63, 0.12); }
.ex-note { padding: 0.7rem 0.85rem; border-radius: 10px; background: var(--ex-gold-soft); color: #5c4700; font-size: 0.88rem; }

/* ------------------------------------------------------------------ 3. imtahan */
.ex-exam { display: grid; gap: 0.9rem; }
.ex-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.8rem 1rem;
  padding: 0.7rem 1rem;
  border-radius: var(--ex-radius) var(--ex-radius) 0 0;
  background: var(--ex-navy);
  color: #fff;
}
.ex-bar-title { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ex-bar-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-bar-title span { color: rgba(255, 255, 255, 0.75); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-bar-count { flex: none; font-size: 0.88rem; color: rgba(255, 255, 255, 0.85); }
.ex-timer {
  flex: none;
  min-width: 5.2rem;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  background: var(--ex-gold);
  color: var(--ex-navy);
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 1.1rem;
  font-weight: 800;
  text-align: center;
}
.ex-timer.is-warn { background: #ffb454; }
.ex-timer.is-low { background: #e5484d; color: #fff; animation: ex-pulse 1s ease-in-out infinite; }
@keyframes ex-pulse { 50% { opacity: 0.7; } }
.ex-progress { height: 5px; margin-top: -0.9rem; background: #dfe5ee; border-radius: 0 0 4px 4px; overflow: hidden; }
.ex-progress span { display: block; height: 100%; width: 0; background: var(--ex-gold); transition: width 0.3s ease; }

.ex-exam-body { display: grid; grid-template-columns: minmax(0, 1fr) 15.5rem; gap: 0.9rem; align-items: start; }
.ex-q-num { margin: 0 0 0.3rem; color: var(--ex-navy-2); font-size: 0.85rem; font-weight: 700; }
.ex-q-text { margin: 0 0 1.1rem; font-size: 1.12rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.ex-options { display: grid; gap: 0.55rem; }
.ex-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--ex-line);
  border-radius: 12px;
  background: #fff;
  color: var(--ex-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.ex-option:hover { border-color: #9fb0c6; background: #f8fafc; }
.ex-option-letter {
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--ex-bg);
  color: var(--ex-navy);
  font-weight: 800;
}
.ex-option-text { padding-top: 0.2rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.ex-option.is-chosen { border-color: var(--ex-navy); background: #eaf1f9; }
.ex-option.is-chosen .ex-option-letter { background: var(--ex-navy); color: #fff; }
.ex-q-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.3rem; }
.ex-q-nav #exNext { margin-left: auto; }

.ex-side { position: sticky; top: 4.6rem; padding: 1rem; }
.ex-side-title { margin: 0 0 0.55rem; color: var(--ex-muted); font-size: 0.85rem; font-weight: 700; }
.ex-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.3rem; }
.ex-grid-btn {
  min-height: 2.15rem;
  border: 1px solid #c9d2df;
  border-radius: 7px;
  background: #fff;
  color: var(--ex-ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.ex-grid-btn.is-done { background: var(--ex-navy); border-color: var(--ex-navy); color: #fff; }
.ex-grid-btn.is-flag { background: var(--ex-gold-soft); border-color: var(--ex-gold); color: #6b5000; }
.ex-grid-btn.is-done.is-flag { box-shadow: inset 0 -4px 0 var(--ex-gold); }
.ex-grid-btn.is-current { outline: 2px solid var(--ex-gold); outline-offset: 1px; }
.ex-legend { display: grid; gap: 0.2rem; margin: 0.8rem 0 0.6rem; padding: 0; list-style: none; color: var(--ex-muted); font-size: 0.78rem; }
.ex-legend li { display: flex; align-items: center; gap: 0.45rem; }
.ex-dot { width: 0.8rem; height: 0.8rem; border-radius: 3px; border: 1px solid #c9d2df; background: #fff; }
.ex-dot--done { background: var(--ex-navy); border-color: var(--ex-navy); }
.ex-dot--flag { background: var(--ex-gold-soft); border-color: var(--ex-gold); }
.ex-save { min-height: 1.2rem; margin: 0 0 0.7rem; color: var(--ex-ok); font-size: 0.78rem; }
.ex-save.is-bad { color: var(--ex-bad); }

/* 4. nəticə */
.ex-score { display: flex; align-items: baseline; justify-content: center; gap: 0.4rem; margin: 0.4rem 0 0.6rem; color: var(--ex-navy); }
.ex-score strong { font-family: var(--ex-display); font-size: clamp(2.4rem, 9vw, 3.2rem); line-height: 1; }
.ex-score span { color: var(--ex-muted); font-weight: 600; }
.ex-result p { margin: 0 0 1.2rem; }

/* təsdiq pəncərəsi */
.ex-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 1rem; background: rgba(6, 18, 33, 0.55); }
.ex-modal-box { width: min(26rem, 100%); padding: 1.4rem; border-radius: var(--ex-radius); background: #fff; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.45); }
.ex-modal-box h2 { margin: 0 0 0.5rem; font-family: var(--ex-display); font-size: 1.25rem; }
.ex-modal-box p { margin: 0; color: var(--ex-muted); }

@media (max-width: 820px) {
  .ex-exam-body { grid-template-columns: 1fr; }
  .ex-side { position: static; }
  .ex-grid { grid-template-columns: repeat(auto-fill, minmax(2.4rem, 1fr)); }
  .ex-bar { flex-wrap: wrap; }
  .ex-bar-title { flex-basis: 100%; }
  .ex-bar-count { margin-right: auto; }
}
@media (max-width: 520px) {
  .ex-brand-text small { display: none; }
  .ex-q-nav .ex-btn { flex: 1 1 calc(50% - 0.5rem); }
  .ex-q-nav #exNext { margin-left: 0; }
  .ex-q-text { font-size: 1.04rem; }
}

/* ================================================================== kabinet: /imtahanlar (exa-*) */
.exa-main { max-width: 1240px; }
.exa-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; margin-bottom: 1rem; }
.exa-head h1 { margin: 0; font-family: var(--ex-display); font-size: clamp(1.4rem, 3vw, 1.8rem); }
.exa-head p { margin: 0.15rem 0 0; color: var(--ex-muted); }
.exa-gate { max-width: 34rem; margin: 2rem auto; text-align: center; }
.exa-gate p { color: var(--ex-muted); }

.exa-list { display: grid; gap: 0.7rem; }
.exa-empty { padding: 2rem 1rem; text-align: center; color: var(--ex-muted); }
.exa-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem 1rem; align-items: center; }
.exa-item h3 { margin: 0; font-size: 1.08rem; }
.exa-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; margin-top: 0.3rem; color: var(--ex-muted); font-size: 0.85rem; }
.exa-code {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.7rem;
  border: 1px dashed var(--ex-gold);
  border-radius: 8px;
  background: #fffbea;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--ex-navy);
}
.exa-item-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; }
.exa-item-actions .ex-btn { min-height: 38px; padding: 0.4rem 0.8rem; font-size: 0.85rem; }
.exa-badge { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.exa-badge--OPEN { background: #e3f4ea; color: var(--ex-ok); }
.exa-badge--DRAFT { background: #eef1f5; color: var(--ex-muted); }
.exa-badge--SCHEDULED { background: #e6f0fb; color: #1d5fa5; }
.exa-badge--ENDED { background: #fdecea; color: var(--ex-bad); }

/* redaktor */
.exa-form { display: grid; gap: 1rem; }
.exa-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.8rem; }
.exa-checks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; }
.exa-check { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.92rem; cursor: pointer; }
.exa-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--ex-navy); }
.exa-classes { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.exa-class { position: relative; }
.exa-class input { position: absolute; opacity: 0; pointer-events: none; }
.exa-class span {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border: 1px solid #c9d2df;
  border-radius: 999px;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.exa-class input:checked + span { background: var(--ex-navy); border-color: var(--ex-navy); color: #fff; }
.exa-class input:focus-visible + span { outline: 3px solid rgba(201, 162, 39, 0.6); }
.exa-hint { margin: 0.2rem 0 0; color: var(--ex-muted); font-size: 0.8rem; font-weight: 400; }
.exa-section-title { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin: 0.4rem 0 0; }
.exa-section-title h2 { margin: 0; font-size: 1.1rem; }

.exa-q { border: 1px solid var(--ex-line); border-radius: 12px; padding: 0.9rem; background: #fbfcfe; }
.exa-q-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.exa-q-head strong { flex: 1; }
.exa-q-head .ex-btn { min-height: 34px; padding: 0.25rem 0.6rem; font-size: 0.8rem; }
.exa-q textarea { min-height: 4.2rem; resize: vertical; }
.exa-opts { display: grid; gap: 0.4rem; margin-top: 0.55rem; }
.exa-opt { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 0.45rem; align-items: center; }
.exa-opt input[type="radio"] { width: 1.15rem; height: 1.15rem; accent-color: var(--ex-ok); }
.exa-opt-letter { width: 1.5rem; font-weight: 800; color: var(--ex-navy); text-align: center; }
.exa-opt input[type="text"] { min-height: 40px; }
.exa-opt .ex-btn { min-height: 36px; padding: 0.2rem 0.55rem; }
.exa-opt.is-correct input[type="text"] { border-color: var(--ex-ok); background: #f1faf5; }
.exa-q-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 0.55rem; font-size: 0.85rem; color: var(--ex-muted); }
.exa-q-foot input { width: 4.5rem; min-height: 36px; }
.exa-bulk textarea { min-height: 10rem; font-family: ui-monospace, Consolas, monospace; font-size: 0.85rem; }
.exa-sticky { position: sticky; bottom: 0; z-index: 4; display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: flex-end; align-items: center;
  padding: 0.75rem 0; background: linear-gradient(180deg, rgba(243, 245, 249, 0), var(--ex-bg) 35%); }
.exa-sticky .ex-error { margin: 0; flex: 1 1 100%; }

/* nəticələr */
.exa-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.6rem; margin-bottom: 1rem; }
.exa-stat { padding: 0.8rem 0.9rem; border-radius: 12px; background: var(--ex-bg); }
.exa-stat span { display: block; color: var(--ex-muted); font-size: 0.8rem; }
.exa-stat strong { font-family: var(--ex-display); font-size: 1.5rem; }
.exa-table-wrap { overflow-x: auto; }
.exa-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.exa-table th, .exa-table td { padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--ex-line); text-align: left; white-space: nowrap; }
.exa-table th { color: var(--ex-muted); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.exa-table td.num, .exa-table th.num { text-align: right; }
.exa-table .ex-btn { min-height: 32px; padding: 0.2rem 0.6rem; font-size: 0.8rem; }
.exa-qbars { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.2rem, 1fr)); gap: 0.4rem; }
.exa-qbar { padding: 0.4rem; border-radius: 8px; background: var(--ex-bg); text-align: center; font-size: 0.78rem; }
.exa-qbar strong { display: block; font-size: 0.95rem; }
.exa-qbar i { display: block; height: 4px; margin-top: 0.3rem; border-radius: 2px; background: #dfe5ee; overflow: hidden; }
.exa-qbar i b { display: block; height: 100%; background: var(--ex-ok); }

@media print {
  .ex-header, .exa-noprint, .exa-sticky { display: none !important; }
  .ex-body { background: #fff; }
  .ex-card { border: 0; padding: 0; }
}
@media (max-width: 640px) {
  .exa-item { grid-template-columns: 1fr; }
  .exa-item-actions { justify-content: flex-start; }
  .exa-opt { grid-template-columns: auto auto minmax(0, 1fr); }
  .exa-opt .ex-btn { grid-column: 3; justify-self: end; }
}

/* Səhifələr arası keçid animasiyası — css/style.css-dəki «keçid animasiyaları» bloku ilə eyni (hər iki səhifə qaydanı daşımalıdır). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-out 0.2s cubic-bezier(0.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: page-in 0.42s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
/* İmtahan addımları (kod → sinif/ad → nəticə) dəyişəndə yeni kart yumşaq açılır. */
.ex-step:not([hidden]) { animation: page-in 0.42s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
@media (prefers-reduced-motion: reduce) { .ex-step:not([hidden]) { animation: none; } }
