:root {
  --bg: #f7fafb;
  --surface: #ffffff;
  --surface-2: #eef4f5;
  --text: #0b1f3a;
  --muted: #5e6f7e;
  --border: #d9e5ea;
  --primary: #0f8b8d;
  --primary-strong: #087477;
  --primary-soft: #e4f6f4;
  --secondary: #163a5f;
  --success: #17875b;
  --warning: #d98b15;
  --danger: #d84b5b;
  --info: #2b7de9;
  --shadow: 0 22px 58px rgba(11, 31, 58, .12);
  --shadow-sm: 0 8px 24px rgba(11, 31, 58, .08);
  --radius: 18px;
  --radius-sm: 12px;
}

html[data-theme="dark"] {
  --bg: #0d171d;
  --surface: #142128;
  --surface-2: #1d3037;
  --text: #f5f7ff;
  --muted: #aab1c2;
  --border: #303645;
  --primary: #35c0b5;
  --primary-strong: #67d8cf;
  --primary-soft: #153f40;
  --shadow: 0 18px 50px rgba(0, 0, 0, .35);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, .26);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 2%, rgba(15,139,141,.10), transparent 30rem),
    radial-gradient(circle at 92% 8%, rgba(22,58,95,.08), transparent 28rem),
    var(--bg);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.skip-link { position: fixed; z-index: 200; left: 16px; top: 12px; padding: 10px 14px; color: white; background: var(--secondary); border-radius: 8px; transform: translateY(-160%); transition: transform .18s ease; }
.skip-link:focus { transform: translateY(0); }
.topbar {
  position: sticky; top: 0; z-index: 60;
  display: grid; grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  align-items: center; gap: 24px;
  min-height: 76px; padding: 12px clamp(18px, 4vw, 64px);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px;
  color: #fff; font-weight: 900; font-size: 20px;
  border-radius: 12px; background: linear-gradient(135deg, #086b72, #16b3a3);
  box-shadow: 0 10px 24px rgba(15,139,141,.25);
}
.brand strong { display: block; font-size: 18px; letter-spacing: -.02em; }
.brand small { display: block; color: var(--muted); font-size: 11px; max-width: 290px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topnav { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 12px; background: color-mix(in srgb, var(--surface-2) 72%, transparent); }
.topnav a { padding: 8px 14px; color: var(--muted); border-radius: 10px; font-weight: 700; font-size: 14px; }
.topnav a:hover, .topnav a.active { color: var(--text); background: var(--surface); box-shadow: var(--shadow-sm); }
.top-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 800; }
.user-chip small { display: block; color: var(--muted); font-size: 10px; font-weight: 600; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
.icon-btn { width: 40px; height: 40px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 12px; }
.icon-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.menu-toggle { display: none; }

.main-content { width: min(1240px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 64px; flex: 1; }
.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 28px clamp(20px, 4vw, 64px); color: var(--muted); border-top: 1px solid var(--border); font-size: 13px; }
.site-footer > div:last-child { text-align: right; }
.site-footer strong, .site-footer small { display: block; }
.site-footer small { margin-top: 3px; }
.footer-links { display: flex; gap: 18px; font-weight: 750; }
.footer-links a:hover { color: var(--primary); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 10px 17px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 800; transition: .18s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: white; background: linear-gradient(135deg, var(--primary), #087579); box-shadow: 0 10px 22px rgba(15,139,141,.22); }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-strong), #075f63); }
.btn-secondary { color: white; background: linear-gradient(135deg, var(--secondary), #36bda3); }
.btn-danger { color: white; background: var(--danger); }
.btn-warning { color: white; background: var(--warning); }
.btn-ghost { color: var(--text); border-color: var(--border); background: var(--surface); }
.btn-soft { color: var(--primary); background: var(--primary-soft); }
.btn-sm { min-height: 36px; padding: 7px 12px; border-radius: 10px; font-size: 13px; }
.btn-lg { min-height: 50px; padding: 13px 22px; }
.btn-block { width: 100%; }
.text-button { border: 0; background: transparent; color: var(--primary); font-weight: 800; padding: 8px; }

.hero { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: clamp(28px, 6vw, 80px); min-height: 620px; padding: 30px 0 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 850; font-size: 13px; letter-spacing: .03em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 999px; background: currentColor; }
.hero h1 { margin: 16px 0 18px; font-size: clamp(42px, 6vw, 74px); line-height: 1.02; letter-spacing: -.055em; }
.gradient-text { background: linear-gradient(135deg, var(--primary), #0a6673 56%, #163a5f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 680px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 13px; font-weight: 700; }
.trust-row span::before { content: "✓"; color: var(--success); margin-right: 7px; }
.hero-visual { position: relative; min-height: 460px; }
.glow { position: absolute; inset: 10% 10%; border-radius: 50%; background: radial-gradient(circle, rgba(109,93,252,.30), transparent 65%); filter: blur(22px); }
.demo-card { position: absolute; inset: 28px 0 28px 40px; padding: 24px; border-radius: 28px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--border); box-shadow: var(--shadow); transform: rotate(2deg); }
.demo-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.demo-title { font-weight: 900; font-size: 18px; }
.timer-pill { padding: 7px 12px; border-radius: 999px; background: #fff0df; color: #a85e00; font-weight: 900; font-variant-numeric: tabular-nums; }
.demo-question { padding: 22px; border-radius: 18px; background: var(--surface-2); }
.demo-question strong { display: block; margin-bottom: 14px; }
.demo-option { display: flex; align-items: center; gap: 11px; padding: 12px; margin-top: 9px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.demo-option.active { border-color: var(--primary); background: var(--primary-soft); }
.demo-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--muted); }
.demo-option.active .demo-dot { border: 5px solid var(--primary); }
.float-card { position: absolute; z-index: 2; padding: 14px 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); font-weight: 900; }
.float-card small { display: block; color: var(--muted); font-weight: 600; }
.float-one { left: -18px; bottom: 34px; transform: rotate(-4deg); }
.float-two { right: -18px; top: 8px; transform: rotate(4deg); }

.section { padding: 76px 0; }
.section-heading { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.section-heading h2 { margin: 10px 0; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.04em; }
.section-heading p { color: var(--muted); font-size: 17px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 15px; background: var(--primary-soft); color: var(--primary); font-size: 22px; }
.feature-card h3 { margin: 0 0 8px; }
.feature-card p { margin: 0; color: var(--muted); }

/* Landing page */
.landing-page .main-content { width: min(1320px, calc(100% - 40px)); padding-top: 20px; }
.landing-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(560px, 1.1fr); align-items: center; gap: clamp(38px, 5vw, 76px); min-height: 710px; padding: 54px 0 64px; }
.hero-copy { position: relative; z-index: 2; max-width: 620px; }
.hero-copy h1 { margin: 18px 0 20px; font-size: clamp(48px, 5.2vw, 76px); line-height: 1.04; letter-spacing: -.058em; }
.hero-copy > p { max-width: 600px; margin: 0; color: var(--muted); font-size: clamp(17px, 1.7vw, 20px); line-height: 1.75; }
.product-stage { position: relative; min-height: 570px; }
.product-stage::before { content: ""; position: absolute; inset: 5% -4% 2% 8%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(22,179,163,.20), rgba(15,139,141,.06) 46%, transparent 70%); filter: blur(18px); }
.product-dashboard { position: absolute; inset: 12px 0 130px 32px; display: grid; grid-template-columns: 92px 1fr; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.mini-sidebar { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 20px 16px; background: linear-gradient(180deg, #0b3155, #082642); }
.mini-logo { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 8px; color: white; background: var(--primary); font-weight: 900; }
.mini-sidebar i { width: 40px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.24); }
.mini-sidebar i.active { height: 32px; background: linear-gradient(90deg, var(--primary), #18b8a9); }
.mini-dashboard-body { padding: 24px; }
.mini-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.mini-heading strong { font-size: 18px; }
.mini-heading span { color: var(--muted); font-size: 12px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini-stats div { padding: 14px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.mini-stats small { display: block; color: var(--muted); font-size: 10px; }
.mini-stats strong { display: block; margin-top: 4px; font-size: 23px; }
.mini-chart { display: flex; align-items: flex-end; gap: 9px; height: 132px; margin-top: 18px; padding: 16px; border: 1px solid var(--border); border-radius: 11px; background: linear-gradient(180deg, color-mix(in srgb, var(--primary-soft) 55%, transparent), transparent); }
.mini-chart span { flex: 1; min-height: 14px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #18b8a9, #0d7f86); }
.product-exam { position: absolute; z-index: 2; right: -16px; bottom: 4px; width: min(630px, 92%); padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: 0 26px 70px rgba(11,31,58,.18); }
.product-exam-head, .product-exam-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.product-exam-head small { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.product-exam-head strong { display: block; font-size: 17px; }
.product-progress { height: 6px; margin: 16px 0; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.product-progress span { display: block; width: 30%; height: 100%; border-radius: inherit; background: var(--primary); }
.product-question { margin-bottom: 13px; }
.product-question small { display: block; margin-bottom: 7px; color: var(--primary); font-weight: 800; }
.product-question strong { display: block; font-size: 15px; }
.product-exam .demo-option { padding: 10px 12px; margin-top: 7px; font-size: 12px; }
.product-exam-foot { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--border); }
.save-status { color: var(--muted); font-size: 11px; font-weight: 700; }
.save-status b { color: var(--success); }
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: 8px 0 24px; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: var(--shadow-sm); }
.trust-strip > div { display: flex; align-items: center; gap: 14px; min-height: 104px; padding: 20px 24px; border-right: 1px solid var(--border); }
.trust-strip > div:last-child { border-right: 0; }
.trust-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; color: var(--primary); background: var(--primary-soft); font-size: 20px; font-weight: 900; }
.trust-strip p { margin: 0; }
.trust-strip strong { display: block; font-size: 19px; }
.trust-strip small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.feature-grid-modern .feature-card { position: relative; min-height: 228px; transition: transform .18s ease, box-shadow .18s ease; }
.feature-grid-modern .feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-label { position: absolute; right: 18px; top: 18px; padding: 4px 8px; border-radius: 999px; color: var(--primary); background: var(--primary-soft); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.steps-section { position: relative; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps-grid article { position: relative; padding: 30px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--primary-soft) 36%, var(--surface))); }
.steps-grid article > span { display: block; margin-bottom: 42px; color: var(--primary); font-size: 13px; font-weight: 900; letter-spacing: .12em; }
.steps-grid article > span::after { content: ""; position: absolute; left: 30px; top: 62px; width: 44px; height: 2px; background: var(--primary); }
.steps-grid h3 { margin: 0 0 10px; font-size: 22px; }
.steps-grid p { margin: 0; color: var(--muted); }
.section-heading-left { max-width: 780px; margin-left: 0; text-align: left; }
.catalog-toolbar { display: grid; grid-template-columns: auto minmax(240px, 430px) 1fr; align-items: center; gap: 12px; margin-bottom: 22px; }
.catalog-toolbar label { font-weight: 850; }
.catalog-toolbar span { justify-self: end; color: var(--muted); font-size: 13px; }
.public-exam-card { min-height: 320px; }
.availability-dot { color: var(--success); font-size: 11px; font-weight: 850; }
.availability-dot::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--success); }
.catalog-empty[hidden] { display: none; }
.faq-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.faq-list details { padding: 20px 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.faq-list summary { cursor: pointer; font-weight: 850; }
.faq-list p { margin: 14px 0 0; color: var(--muted); }
.landing-cta { display: flex; justify-content: space-between; align-items: center; gap: 36px; margin: 58px 0 30px; padding: clamp(30px, 5vw, 54px); border: 1px solid var(--border); border-radius: 22px; color: white; background: linear-gradient(135deg, #0b1f3a, #0b4f61 70%, #0f8b8d); box-shadow: var(--shadow); }
.landing-cta .eyebrow, .landing-cta p { color: #b9d8d9; }
.landing-cta h2 { margin: 8px 0; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.04em; }
.landing-cta p { margin: 0; }
.landing-cta .btn-ghost { color: white; border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.08); }
.hero-lead { text-wrap: pretty; }
.reveal-on-scroll,.stagger-item { opacity: 1; translate: none; }
.reveal-on-scroll.reveal-armed,.stagger-item.reveal-armed { opacity: 0; translate: 0 28px; transition: opacity .62s ease,translate .62s cubic-bezier(.22,1,.36,1); }
.reveal-on-scroll.reveal-armed.is-visible,.stagger-item.reveal-armed.is-visible { opacity: 1; translate: none; }
.stagger-item.reveal-armed:nth-child(2) { transition-delay: .07s; }
.stagger-item.reveal-armed:nth-child(3) { transition-delay: .14s; }
.stagger-item.reveal-armed:nth-child(4) { transition-delay: .21s; }
.stagger-item.reveal-armed:nth-child(5) { transition-delay: .28s; }
.stagger-item.reveal-armed:nth-child(6) { transition-delay: .35s; }
.stagger-item.reveal-armed:nth-child(n+7) { transition-delay: .42s; }

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
.page-head h1 { margin: 0 0 6px; font-size: clamp(30px, 4vw, 45px); letter-spacing: -.04em; }
.page-head p { margin: 0; color: var(--muted); }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { position: relative; overflow: hidden; padding: 20px; min-height: 132px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.stat-card::after { content: ""; position: absolute; width: 80px; height: 80px; right: -22px; top: -22px; border-radius: 50%; background: var(--primary-soft); }
.stat-label { color: var(--muted); font-size: 13px; font-weight: 800; }
.stat-value { margin-top: 8px; font-size: 32px; font-weight: 950; letter-spacing: -.04em; }
.stat-note { color: var(--muted); font-size: 12px; margin-top: 6px; }

.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.card-header h2, .card-header h3 { margin: 0; }
.card-body { padding: 22px; }
.card-footer { padding: 16px 22px; border-top: 1px solid var(--border); background: var(--surface-2); }
.empty-state { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty-state .empty-icon { font-size: 42px; margin-bottom: 10px; }

.quiz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.quiz-card { display: flex; flex-direction: column; min-height: 290px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: .2s ease; }
.quiz-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.quiz-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.badge { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 900; background: var(--surface-2); color: var(--muted); }
.badge-success { color: var(--success); background: color-mix(in srgb, var(--success) 14%, transparent); }
.badge-warning { color: var(--warning); background: color-mix(in srgb, var(--warning) 14%, transparent); }
.badge-danger { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); }
.badge-info { color: var(--info); background: color-mix(in srgb, var(--info) 14%, transparent); }
.quiz-card h3 { margin: 20px 0 8px; font-size: 21px; }
.quiz-card p { color: var(--muted); margin: 0 0 16px; flex: 1; }
.quiz-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.quiz-meta div { padding: 10px; border-radius: 12px; background: var(--surface-2); text-align: center; }
.quiz-meta strong { display: block; }
.quiz-meta small { color: var(--muted); font-size: 10px; }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #33b89f); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: color-mix(in srgb, var(--primary-soft) 45%, transparent); }
.table-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.form-card { max-width: 900px; margin: 0 auto; }
.form-grid { display: grid; gap: 16px; }
.form-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
label { display: grid; gap: 7px; font-size: 13px; font-weight: 800; }
input, select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 11px; outline: none;
}
textarea { min-height: 120px; resize: none; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent); }
input[type="checkbox"], input[type="radio"] { width: 18px; min-height: auto; accent-color: var(--primary); }
.help { color: var(--muted); font-size: 11px; font-weight: 500; }
.check-row { display: flex; grid-auto-flow: column; justify-content: start; align-items: center; gap: 9px; }
.password-wrap { position: relative; }
.password-wrap button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; color: var(--muted); background: transparent; }
.session-code-field { min-width: 170px; max-width: 220px; }
.session-code-field input { min-height: 38px; padding-right: 44px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; }
.filter-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.filter-bar input, .filter-bar select { width: auto; min-width: 180px; }

.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 20px; }
.modal.is-open { display: grid; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,12,18,.62); backdrop-filter: blur(6px); }
.modal-card { position: relative; z-index: 1; width: min(450px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 28px; border-radius: 24px; background: var(--surface); box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.modal-lg { width: min(760px, 100%); }
.modal-card h2 { margin: 8px 0; letter-spacing: -.03em; }
.modal-card > p { margin: 0 0 20px; color: var(--muted); }
.modal-close { position: absolute; right: 16px; top: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--muted); background: var(--surface-2); font-size: 22px; }
.modal-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; color: var(--primary); background: var(--primary-soft); font-size: 24px; font-weight: 900; }
body.modal-open { overflow: hidden; }

.toast-stack { position: fixed; z-index: 120; top: 92px; right: 22px; display: grid; gap: 10px; width: min(390px, calc(100% - 44px)); }
.toast { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--border); border-left: 4px solid var(--info); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); animation: toast-in .25s ease; }
.toast-success { border-left-color: var(--success); }
.toast-warning { border-left-color: var(--warning); }
.toast-danger { border-left-color: var(--danger); }
.toast button { border: 0; background: transparent; color: var(--muted); font-size: 20px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

.exam-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.exam-header { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 20px; }
.exam-title h1 { margin: 0; font-size: 28px; }
.exam-title p { color: var(--muted); margin: 4px 0 0; }
.exam-timer { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); font-weight: 950; font-variant-numeric: tabular-nums; }
.exam-timer.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.025); } }
.question-card { display: none; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.question-card.flagged { border-top-color: var(--warning); }
.question-card.active { display: block; animation: fade-up .2s ease; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }
.question-no { color: var(--primary); font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.question-text { margin: 10px 0 22px; font-size: clamp(19px, 2vw, 24px); font-weight: 850; }
.option-list { display: grid; gap: 11px; }
.option-item { display: flex; align-items: flex-start; gap: 12px; padding: 15px; border: 1px solid var(--border); border-radius: 14px; cursor: pointer; transition: .16s ease; }
.option-item:hover { border-color: var(--primary); background: var(--primary-soft); }
.option-item:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 10%, transparent); }
.option-letter { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; background: var(--surface-2); font-weight: 900; }
.flag-button { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; padding: 8px 11px; border: 1px solid var(--border); border-radius: 10px; color: var(--muted); background: var(--surface); font-size: 12px; font-weight: 800; }
.flag-button:hover, .flag-button[aria-pressed="true"] { color: #966113; border-color: color-mix(in srgb, var(--warning) 52%, var(--border)); background: color-mix(in srgb, var(--warning) 12%, var(--surface)); }
.question-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.exam-sidebar { position: sticky; top: 96px; }
.navigator-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.nav-dot { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--muted); font-weight: 900; }
.nav-dot.active { border-color: var(--primary); color: var(--primary); }
.nav-dot.answered { color: white; background: var(--primary); border-color: var(--primary); }
.nav-dot.flagged { box-shadow: inset 0 0 0 2px var(--warning); }
.nav-dot.flagged::after { content: ""; position: absolute; right: 3px; top: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--warning); }
.nav-dot { position: relative; }
.legend { display: grid; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 12px; }
.legend span::before { content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 7px; border-radius: 4px; border: 1px solid var(--border); background: var(--surface); vertical-align: -1px; }
.legend .done::before { background: var(--primary); border-color: var(--primary); }
.legend .marked::before { background: color-mix(in srgb, var(--warning) 18%, var(--surface)); border: 2px solid var(--warning); }
.save-indicator { display: flex; align-items: center; gap: 9px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.save-indicator span { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.save-indicator.saving span { background: var(--warning); animation: pulse 1s infinite; }
.save-indicator.saved span { background: var(--success); }
.save-indicator.error span { background: var(--danger); }
.save-indicator strong { font-weight: 750; }

.result-hero { text-align: center; padding: 36px; }
.score-ring { display: grid; place-items: center; width: 170px; height: 170px; margin: 10px auto 22px; border-radius: 50%; background: conic-gradient(var(--primary) var(--score), var(--surface-2) 0); }
.score-ring-inner { display: grid; place-items: center; width: 132px; height: 132px; border-radius: 50%; background: var(--surface); }
.score-ring strong { display: block; font-size: 36px; line-height: 1; }
.score-ring small { color: var(--muted); }
.review-item { padding: 20px; border-bottom: 1px solid var(--border); }
.review-item:last-child { border-bottom: 0; }
.review-answer { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.review-answer.correct { border-left: 4px solid var(--success); }
.review-answer.wrong { border-left: 4px solid var(--danger); }

.sidebar-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; }
.side-menu { position: sticky; top: 96px; height: fit-content; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.side-menu a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; margin: 3px 0; color: var(--muted); border-radius: 11px; font-weight: 750; font-size: 14px; }
.side-menu a:hover, .side-menu a.active { color: var(--primary); background: var(--primary-soft); }

.pagination { display: flex; gap: 6px; justify-content: center; padding: 18px 0 0; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.pagination .active { color: white; border-color: var(--primary); background: var(--primary); }

.kpi-bar { display: flex; height: 12px; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.kpi-bar span { height: 100%; }
.kpi-correct { background: var(--success); }
.kpi-wrong { background: var(--danger); }
.kpi-empty { background: var(--border); }

@media (max-width: 1050px) {
  .topbar { grid-template-columns: 1fr auto; }
  .menu-toggle { display: grid; place-items: center; }
  .topnav { position: absolute; left: 18px; right: 18px; top: calc(100% + 8px); display: none; align-items: stretch; flex-direction: column; padding: 10px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
  .topnav.is-open { display: flex; }
  .topnav a { padding: 11px 14px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { min-height: 420px; }
  .landing-hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { max-width: 760px; }
  .product-stage { min-height: 590px; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-strip > div:nth-child(2) { border-right: 0; }
  .trust-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .feature-grid, .quiz-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .exam-layout { grid-template-columns: 1fr; }
  .exam-sidebar { position: static; }
  .sidebar-layout { grid-template-columns: 1fr; }
  .side-menu { position: static; display: flex; overflow-x: auto; }
  .side-menu a { white-space: nowrap; }
}

@media (max-width: 720px) {
  .topbar { padding: 10px 14px; min-height: 68px; }
  .brand small, .user-chip { display: none; }
  .top-actions { gap: 6px; }
  .top-actions .btn { padding-inline: 10px; }
  .main-content { width: min(100% - 22px, 1240px); padding-top: 22px; }
  .landing-page .main-content { width: min(100% - 22px, 1240px); }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer > div:last-child { text-align: left; }
  .hero { padding-top: 10px; }
  .hero h1 { font-size: 43px; }
  .landing-hero { padding-top: 24px; }
  .hero-copy h1 { font-size: 44px; }
  .product-stage { min-height: 485px; }
  .product-dashboard { inset: 8px 0 120px; grid-template-columns: 58px 1fr; }
  .mini-sidebar { padding-inline: 9px; }
  .mini-sidebar i { width: 30px; }
  .mini-dashboard-body { padding: 15px; }
  .mini-stats { gap: 7px; }
  .mini-stats div { padding: 10px 8px; }
  .mini-stats strong { font-size: 18px; }
  .product-exam { right: 0; width: 96%; padding: 16px; }
  .product-exam .demo-option { padding: 8px 10px; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip > div { min-height: 86px; border-right: 0; border-bottom: 1px solid var(--border); }
  .trust-strip > div:last-child { border-bottom: 0; }
  .catalog-toolbar { grid-template-columns: 1fr; }
  .catalog-toolbar span { justify-self: start; }
  .faq-list { grid-template-columns: 1fr; }
  .landing-cta { align-items: flex-start; flex-direction: column; }
  .hero-visual { min-height: 360px; }
  .demo-card { inset: 12px 4px 20px; transform: none; padding: 17px; }
  .float-card { font-size: 12px; }
  .float-one { left: -2px; }
  .float-two { right: -2px; }
  .feature-grid, .quiz-grid, .grid-2, .grid-3, .stats-grid { grid-template-columns: 1fr; }
  .form-grid.two-col, .form-grid.three-col { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: auto; }
  .page-head, .exam-header { flex-direction: column; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .quiz-meta { grid-template-columns: repeat(3, 1fr); }
  .navigator-grid { grid-template-columns: repeat(6, 1fr); }
  .modal-card { padding: 22px; }
}

@media (max-width: 520px) {
  .top-actions > .btn { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-copy h1 { font-size: 39px; }
  .product-stage { min-height: 440px; }
  .mini-chart { height: 96px; }
  .product-exam { width: 100%; }
  .product-exam .demo-option:nth-of-type(3) { display: none; }
  .product-exam-foot { align-items: flex-start; flex-direction: column; }
  .section { padding: 58px 0; }
  .feature-grid-modern .feature-card { min-height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-on-scroll,.stagger-item { opacity: 1 !important; translate: none !important; }
}

/* Guided examination flow */
.flow-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 28px; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.flow-steps::before { content: ""; position: absolute; left: 13%; right: 13%; top: 35px; height: 2px; background: var(--border); }
.flow-steps span { position: relative; z-index: 1; display: grid; justify-items: center; gap: 7px; color: var(--muted); text-align: center; }
.flow-steps b { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--border); border-radius: 50%; background: var(--surface); font-size: 13px; }
.flow-steps small { font-size: 11px; font-weight: 800; }
.flow-steps .done, .flow-steps .active { color: var(--primary); }
.flow-steps .done b { color: white; border-color: var(--primary); background: var(--primary); }
.flow-steps .active b { border-color: var(--primary); box-shadow: 0 0 0 5px var(--primary-soft); }
.compact-flow { margin-bottom: 20px; padding-block: 13px; }

.instruction-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 410px); gap: 20px; align-items: start; }
.lead-text { margin: 0 0 22px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.exam-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 26px; }
.exam-facts > div { padding: 15px 10px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-2); text-align: center; }
.exam-facts span, .exam-facts strong, .exam-facts small { display: block; }
.exam-facts span { color: var(--primary); }
.exam-facts strong { margin: 4px 0; font-size: 22px; }
.exam-facts small { color: var(--muted); font-size: 10px; font-weight: 800; }
.instruction-list, .readiness-list { display: grid; gap: 12px; }
.instruction-list > div, .readiness-list > div { display: flex; gap: 12px; align-items: flex-start; }
.instruction-list b { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 9px; color: var(--primary); background: var(--primary-soft); }
.instruction-list p, .readiness-list p { margin: 0; }
.instruction-list strong, .instruction-list small, .readiness-list strong, .readiness-list small { display: block; }
.instruction-list small, .readiness-list small { margin-top: 3px; color: var(--muted); line-height: 1.45; }
.readiness-card { position: sticky; top: 96px; }
.readiness-list > div > span { color: var(--warning); font-size: 22px; line-height: 1; }
.readiness-list > div.is-ready > span { color: var(--success); }
.readiness-list > div.is-error > span { color: var(--danger); }
.proctor-disclosure { margin: 20px 0; padding: 16px; border: 1px solid color-mix(in srgb, var(--warning) 40%, var(--border)); border-radius: 13px; background: color-mix(in srgb, var(--warning) 8%, var(--surface)); }
.proctor-disclosure ul, .proctor-requirements { margin: 10px 0; padding-left: 20px; color: var(--muted); }
.proctor-disclosure li, .proctor-requirements li { margin: 5px 0; }
.proctor-disclosure p { margin: 10px 0; }
.proctor-disclosure small, .privacy-note { color: var(--muted); font-size: 12px; line-height: 1.55; }
.consent-box { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); font-size: 12px; }
.consent-box input { flex: 0 0 auto; width: auto; margin-top: 3px; }

/* Multimedia question builder */
.media-builder { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.media-builder > div:first-child { display: flex; justify-content: space-between; gap: 12px; }
.media-builder > div:first-child small { color: var(--muted); }
.question-media { margin: 0 0 22px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.question-media img, .question-media video { display: block; width: 100%; max-height: 440px; border-radius: 10px; object-fit: contain; background: #07111f; }
.question-media audio { display: block; width: 100%; }
.question-media figcaption { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.question-media.compact { max-width: 520px; margin-top: 12px; padding: 10px; }
.question-media.compact img, .question-media.compact video { max-height: 220px; }
.question-list-item { padding: 18px 0; border-bottom: 1px solid var(--border); }
.question-list-item:first-child { padding-top: 0; }
.question-list-item:last-child { padding-bottom: 0; border-bottom: 0; }

/* Optional proctoring */
.proctor-settings { overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.setting-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 17px; }
.setting-head strong, .setting-head small { display: block; }
.setting-head small { margin-top: 3px; color: var(--muted); }
.switch-row { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.switch-row input { width: auto; }
.proctor-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 17px; border-top: 1px solid var(--border); background: var(--surface); transition: opacity .18s ease; }
.proctor-options.is-disabled { opacity: .48; }
.proctor-setup { margin-bottom: 22px; }
.proctor-setup-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: center; }
.proctor-start-box { display: grid; gap: 10px; padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); text-align: center; }
.proctor-start-box small { min-height: 34px; color: var(--muted); }
.readiness-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 4px; border-radius: 16px; color: var(--primary); background: var(--primary-soft); font-size: 24px; }
.proctor-live { display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.proctor-live video { width: 84px; height: 64px; border-radius: 9px; object-fit: cover; background: #07111f; }
.proctor-live-symbol { display: grid; place-items: center; width: 84px; height: 64px; border-radius: 9px; color: var(--primary); background: var(--primary-soft); font-size: 25px; }
.proctor-live strong, .proctor-live small { display: block; }
.proctor-live small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 5px color-mix(in srgb, var(--danger) 12%, transparent); animation: pulse 1.5s infinite; }
.notice-card { margin-bottom: 22px; padding: 17px 19px; border: 1px solid color-mix(in srgb, var(--info) 35%, var(--border)); border-radius: 14px; background: color-mix(in srgb, var(--info) 8%, var(--surface)); }
.notice-card p { margin: 4px 0 0; color: var(--muted); }
.compact-head { align-items: center; margin-top: 26px; }
.proctor-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.small-value { font-size: 18px; line-height: 1.3; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.evidence-card { display: grid; gap: 5px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.evidence-card > span { color: var(--primary); font-size: 22px; }
.evidence-card small { color: var(--muted); }

/* Structured question banks and exam blueprint */
.bank-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .75fr); gap: 20px; align-items: start; }
.bank-layout > .form-card { position: sticky; top: 92px; }
.bank-card-list { display: grid; gap: 14px; }
.bank-card { padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-2); }
.bank-card-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.bank-card-head h3 { margin: 9px 0 2px; }
.bank-card-head p, .bank-description, .usage-note { color: var(--muted); }
.bank-card-head p, .bank-description { margin: 0; }
.bank-description { margin-top: 12px; }
.bank-total { min-width: 66px; padding: 10px; border-radius: 13px; color: var(--primary); background: var(--primary-soft); text-align: center; }
.bank-total strong, .bank-total small { display: block; }
.bank-total strong { font-size: 24px; line-height: 1; }
.difficulty-meter { display: flex; gap: 4px; height: 7px; margin: 18px 0 10px; overflow: hidden; border-radius: 99px; background: var(--border); }
.difficulty-meter span { flex: max(1, var(--amount)); }
.difficulty-meter .easy, .composition-legend i.easy { background: #21a179; }
.difficulty-meter .medium, .composition-legend i.medium { background: #e5a72f; }
.difficulty-meter .hard, .composition-legend i.hard { background: #df5264; }
.metadata-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.metadata-row > span, .metadata-row > b { padding: 4px 8px; border: 1px solid var(--border); border-radius: 99px; color: var(--muted); background: var(--surface); font-size: 10px; font-weight: 800; }
.metadata-row .difficulty-easy, .difficulty-easy { color: #08765a; }
.metadata-row .difficulty-medium, .difficulty-medium { color: #9a6410; }
.metadata-row .difficulty-hard, .difficulty-hard { color: #b92f42; }
.usage-note { display: block; margin: 4px 0 14px; }
.metadata-builder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 18px; border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--border)); border-radius: 14px; background: color-mix(in srgb, var(--primary-soft) 50%, var(--surface)); }
.metadata-builder > div:first-child { grid-column: 1 / -1; }
.metadata-builder strong, .metadata-builder small { display: block; }
.metadata-builder small { margin-top: 3px; color: var(--muted); }
.bank-question-item .usage-strip { display: flex; justify-content: space-between; gap: 12px; margin: 14px 0; padding: 9px 11px; border-radius: 10px; color: var(--muted); background: var(--surface-2); font-size: 11px; }

.blueprint-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.blueprint-config .watermark-toggle { align-items: flex-start; padding: 15px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-2); }
.watermark-toggle strong, .watermark-toggle small { display: block; }
.watermark-toggle small { margin-top: 3px; color: var(--muted); font-weight: 500; }
.blueprint-edit-grid { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); align-items: start; }
.difficulty-input { padding: 12px; border: 1px solid currentColor; border-radius: 12px; }
.composition-visual { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; }
.composition-ring { display: grid; place-items: center; width: 145px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(#5574d9 0 var(--random-end),#21a179 var(--random-end) var(--easy-end),#e5a72f var(--easy-end) var(--medium-end),#df5264 var(--medium-end) 100%); }
.composition-ring > span { display: grid; place-items: center; width: 92px; aspect-ratio: 1; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--border); }
.composition-ring strong, .composition-ring small { display: block; text-align: center; }
.composition-ring strong { font-size: 27px; }
.composition-ring small { color: var(--muted); }
.composition-legend { display: grid; gap: 10px; }
.composition-legend span { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; }
.composition-legend i { width: 10px; height: 10px; border-radius: 50%; }
.composition-legend i.random { background: #5574d9; }
.composition-legend b { color: var(--text); }
.blueprint-checklist { display: grid; gap: 9px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.blueprint-checklist p { display: flex; gap: 9px; align-items: center; margin: 0; color: var(--muted); }
.blueprint-checklist .check { color: var(--success); font-weight: 900; }
.blueprint-checklist .warning { color: var(--warning); font-weight: 900; }
.mandatory-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: 560px; margin-bottom: 16px; overflow: auto; }
.mandatory-question { display: grid; grid-template-columns: auto 1fr; gap: 11px; padding: 14px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-2); cursor: pointer; }
.mandatory-question:has(input:checked) { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: var(--primary-soft); }
.mandatory-question input { margin-top: 4px; }
.mandatory-question span, .mandatory-question small, .mandatory-question strong, .mandatory-question em { display: block; }
.mandatory-question small, .mandatory-question em { color: var(--muted); font-size: 10px; }
.mandatory-question strong { margin: 5px 0; font-size: 12px; }
.mandatory-question em { font-style: normal; }
.mandatory-question__preview { display: block; margin: 8px 0; font-size: 13px; }
.mandatory-question__preview .question-text { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.mandatory-question__preview .question-media { max-width: 340px; margin: 8px 0; }
.mandatory-question__preview img { max-height: 190px; object-fit: contain; }

/* Participant-specific anti-leak watermark */
.participant-watermark { position: fixed; inset: 76px 0 0; z-index: 40; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; gap: 30px 10px; align-content: center; overflow: hidden; pointer-events: none; color: #102f5d; opacity: .075; }
.participant-watermark span { align-self: center; justify-self: center; width: 260px; font-size: 16px; font-weight: 900; line-height: 1.25; text-align: center; transform: rotate(-25deg); }
.participant-watermark small { display: block; margin-top: 4px; font-size: 10px; font-weight: 700; }

/* Printable participant result */
.print-result-page { min-height: 100vh; background: #eef2f7; }
.print-report { width: min(880px, calc(100% - 32px)); margin: 24px auto; padding: 38px; color: #132238; background: white; box-shadow: 0 15px 50px rgba(15, 35, 60, .12); }
.print-toolbar { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 28px; }
.print-report-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding-bottom: 22px; border-bottom: 2px solid #dce4ee; }
.print-report-head strong, .print-report-head small { display: block; }
.print-report-head small { margin-top: 3px; color: #68778a; }
.print-result-status { padding: 8px 12px; border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.print-result-status.passed { color: #087a5b; background: #e4f7f0; }
.print-result-status.failed { color: #b22d3c; background: #feecef; }
.print-title { padding: 28px 0 18px; }
.print-title span { color: #0f8b8d; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.print-title h1 { margin: 7px 0; font-size: 32px; }
.print-title p { margin: 0; color: #68778a; }
.print-score-block { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid #dce4ee; border-radius: 14px; }
.print-score-block > div { padding: 20px; border-right: 1px solid #dce4ee; }
.print-score-block > div:last-child { border-right: 0; }
.print-score-block small, .print-score-block strong { display: block; }
.print-score-block small, .print-details small { color: #68778a; }
.print-score-block strong { margin-top: 5px; font-size: 28px; }
.print-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 24px; border-top: 1px solid #dce4ee; border-left: 1px solid #dce4ee; }
.print-details > div { padding: 15px; border-right: 1px solid #dce4ee; border-bottom: 1px solid #dce4ee; }
.print-details small, .print-details strong { display: block; }
.print-details strong { margin-top: 4px; }
.print-answer-summary { margin-top: 28px; }
.print-answer-summary h2 { font-size: 18px; }
.print-answer-summary > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.print-answer-summary span { padding: 16px; border-radius: 11px; background: #f2f5f8; text-align: center; }
.print-answer-summary b, .print-answer-summary small { display: block; }
.print-answer-summary b { font-size: 23px; }
.print-answer-summary small { margin-top: 3px; color: #68778a; }
.print-signatures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 80px; margin-top: 70px; }
.print-signatures div { padding-top: 54px; border-top: 1px solid #8390a0; text-align: center; }
.print-signatures span, .print-signatures b { display: block; }
.print-signatures span { color: #68778a; font-size: 12px; }
.print-signatures b { margin-top: 5px; }
.print-note { margin: 42px 0 0; color: #68778a; font-size: 10px; text-align: center; }

@media (max-width: 900px) {
  .instruction-layout, .proctor-setup-grid { grid-template-columns: 1fr; }
  .readiness-card { position: static; }
  .proctor-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .bank-layout, .blueprint-edit-grid { grid-template-columns: 1fr; }
  .bank-layout > .form-card { position: static; }
  .blueprint-summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .flow-steps { padding-inline: 8px; }
  .flow-steps small { font-size: 9px; }
  .exam-facts { grid-template-columns: repeat(2, 1fr); }
  .proctor-options { grid-template-columns: 1fr; }
  .media-builder > div:first-child { flex-direction: column; }
  .evidence-grid, .print-score-block, .print-answer-summary > div { grid-template-columns: repeat(2, 1fr); }
  .print-report { padding: 22px; }
  .metadata-builder, .mandatory-list { grid-template-columns: 1fr; }
  .composition-visual { grid-template-columns: 1fr; justify-items: center; width: 100%; }
  .composition-legend { width: 100%; }
  .participant-watermark { grid-template-columns: repeat(2, 1fr); }
}

@media print {
  @page { size: A4; margin: 14mm; }
  .print-result-page { background: white; }
  .print-report { width: 100%; margin: 0; padding: 0; box-shadow: none; }
  .print-toolbar { display: none !important; }
  .print-report-head { padding-top: 0; }
}

/* Institutional readiness: recovery, announcements, RBAC, analytics, legal */
.auth-page { min-height: calc(100vh - 230px); display: grid; place-items: center; padding: 30px 0 70px; }
.auth-card { width: min(560px, 100%); }
.auth-card .card-header { padding: 26px 28px; background: linear-gradient(135deg, color-mix(in srgb, var(--primary-soft) 78%, var(--surface)), var(--surface)); }
.auth-card .card-body { padding: 28px; }

.notification-button { position: relative; display: grid; place-items: center; font-weight: 900; }
.notification-count { position: absolute; right: -5px; top: -6px; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border: 2px solid var(--surface); border-radius: 999px; color: white; background: var(--danger); font-size: 9px; line-height: 1; }

.announcement-stack, .announcement-list { display: grid; gap: 14px; margin-bottom: 22px; }
.announcement-banner { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 20px; border-left: 4px solid var(--info); }
.announcement-banner.priority-warning { border-left-color: var(--warning); }
.announcement-banner.priority-urgent { border-left-color: var(--danger); }
.announcement-banner strong { display: block; margin: 8px 0 3px; font-size: 17px; }
.announcement-banner p { margin: 0; color: var(--muted); }
.announcement-card { position: relative; }
.announcement-card.is-unread::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--primary); }
.announcement-card h2 { margin: 14px 0 8px; font-size: 22px; }
.announcement-card p { margin: 0 0 14px; color: var(--muted); line-height: 1.75; }
.announcement-card.is-read { opacity: .84; }

.admin-split-grid { grid-template-columns: minmax(0, 1.45fr) minmax(330px, .55fr); align-items: start; }
.announcement-form-card, .announcement-form-card .card-body, .announcement-form-card form, .announcement-form-card label { min-width: 0; }
.announcement-meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 16px; }
.announcement-schedule { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.announcement-schedule legend { padding: 0 7px; color: var(--muted); font-size: 12px; font-weight: 900; }
.announcement-schedule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.announcement-schedule input[type="datetime-local"] { display: block; width: 100%; min-width: 0; max-width: 100%; }
.announcement-schedule .help { line-height: 1.45; }
.inline-role-form { display: flex; align-items: center; gap: 7px; min-width: 285px; }
.inline-role-form select { min-width: 165px; }

.analytics-options { display: grid; gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; }
.analytics-options li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 9px; color: var(--muted); background: var(--surface-2); }
.analytics-options li.correct-option { color: var(--success); border-color: color-mix(in srgb, var(--success) 38%, var(--border)); background: color-mix(in srgb, var(--success) 8%, var(--surface)); }
.analytics-options span { min-width: 0; overflow-wrap: anywhere; }
.analytics-filter-form { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(170px, 220px); gap: 12px; align-items: end; }
.analytics-filter-form > * { min-width: 0; }
.analytics-filter-form .analytics-filter-button { width: 100%; }
.analytics-card { container-type: inline-size; container-name: analytics-card; }
.analytics-error { margin-bottom: 18px; }
.analytics-table td,
.analytics-table th { vertical-align: top; }

details summary { cursor: pointer; color: var(--primary); font-weight: 800; }

.legal-page { width: min(960px, 100%); margin: 0 auto; }
.legal-card { overflow: visible; }
.legal-content { padding: clamp(24px, 5vw, 48px); }
.legal-content h2 { margin: 32px 0 10px; font-size: 21px; }
.legal-content h2:first-of-type { margin-top: 24px; }
.legal-content p { margin: 0; color: var(--muted); line-height: 1.8; }
.legal-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.legal-updated { margin-top: 36px !important; padding-top: 18px; border-top: 1px solid var(--border); font-size: 12px; }

@media (max-width: 1000px) {
  .admin-split-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .announcement-banner { align-items: flex-start; flex-direction: column; }
  .inline-role-form { min-width: 245px; flex-wrap: wrap; }
  .site-footer { grid-template-columns: 1fr; text-align: left; }
  .site-footer > div:last-child { text-align: left; }
  .footer-links { flex-wrap: wrap; gap: 10px 16px; }
}

.security-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.security-grid > div, .security-grid > form { padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.security-grid h3 { margin: 8px 0; }
.secret-code { display: grid; gap: 7px; margin: 18px 0; padding: 16px; border: 1px dashed var(--primary); border-radius: 12px; background: var(--surface); }
.secret-code small { color: var(--muted); font-weight: 800; }
.secret-code code { overflow-wrap: anywhere; color: var(--primary); font-size: 18px; font-weight: 900; letter-spacing: .08em; }
.recovery-panel { margin-bottom: 20px; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.recovery-codes code { padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; color: var(--text); background: var(--surface); text-align: center; font-weight: 900; letter-spacing: .05em; }
@media (max-width: 800px) { .security-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .recovery-codes { grid-template-columns: 1fr; } }

/* Server-backed school picker: keeps forms responsive with a national school master. */
.school-picker { position: relative; width: 100%; }
.school-picker-control { position: relative; }
.school-picker-control input { padding-right: 42px; }
.school-picker-clear {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); cursor: pointer; font-size: 20px;
}
.school-picker-clear:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--text); }
.school-picker-results {
  position: absolute; z-index: 120; left: 0; right: 0; top: calc(100% + 6px);
  max-height: 300px; overflow: auto; padding: 6px;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); box-shadow: var(--shadow);
}
.school-picker-option {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  width: 100%; padding: 10px 12px; border: 0; border-radius: 10px;
  background: transparent; color: var(--text); text-align: left; cursor: pointer;
}
.school-picker-option:hover, .school-picker-option:focus { background: color-mix(in srgb, var(--primary) 10%, transparent); outline: none; }
.school-picker-option small { color: var(--muted); }
.school-picker-empty { padding: 12px; color: var(--muted); }
.filter-bar .school-picker { min-width: min(360px, 100%); width: auto; flex: 1 1 280px; }
.filter-bar .school-picker input { width: 100%; min-width: 0; }
.participant-type-selector {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
}
.participant-type-selector legend { padding: 0 7px; font-size: 13px; font-weight: 900; }
.participant-type-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.participant-type-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}
.participant-type-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.participant-type-option input { margin-top: 2px; }
.participant-type-option span,
.participant-type-option strong,
.participant-type-option small { min-width: 0; }
.participant-type-option strong,
.participant-type-option small { display: block; }
.participant-type-option small { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.4; }

/* Pagination v6.2.6 */
.pagination-shell { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; padding:16px 4px 2px; }
.pagination-summary { color:var(--muted); font-size:.92rem; }
.pagination { padding:0; flex-wrap:wrap; justify-content:flex-end; }
.pagination .disabled { opacity:.42; cursor:not-allowed; }
.pagination .ellipsis { border-color:transparent; background:transparent; min-width:26px; }
.page-size-select { width:auto; min-width:118px; }
.data-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin:0 0 14px; }
.data-toolbar .filter-bar { margin:0; flex:1; }
@media (max-width:720px){.pagination-shell{align-items:flex-start}.pagination{justify-content:flex-start}.pagination-summary{width:100%}}
.pagination .cursor-link { min-width: 118px; width: auto; padding: 0 14px; }

/* ========================================================================== 
   Examora v6.2.7 — Landing page optimal
   ========================================================================== */
.section[id] { scroll-margin-top: 96px; }
.landing-icon { display: block; width: 1em; height: 1em; flex: 0 0 auto; }
.trust-icon .landing-icon { width: 24px; height: 24px; }
.feature-icon .landing-icon { width: 27px; height: 27px; }

.mini-chart .chart-bar-34 { height: 34%; }
.mini-chart .chart-bar-52 { height: 52%; }
.mini-chart .chart-bar-43 { height: 43%; }
.mini-chart .chart-bar-72 { height: 72%; }
.mini-chart .chart-bar-61 { height: 61%; }
.mini-chart .chart-bar-88 { height: 88%; }

.feature-grid-modern { align-items: stretch; }
.feature-grid-modern .feature-card { overflow: hidden; }
.feature-grid-modern .feature-card::after {
  content: "";
  position: absolute;
  right: -72px;
  bottom: -88px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 12%, transparent), transparent 68%);
  pointer-events: none;
}
.feature-grid-modern .feature-card > * { position: relative; z-index: 1; }

.clock-mosaic {
  min-height: 250px !important;
  background:
    radial-gradient(circle at 92% 4%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 38%),
    linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--primary-soft) 48%, var(--surface)));
}
.clock-mosaic-inner {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(420px, 1.45fr);
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  width: 100%;
}
.clock-text p { max-width: 560px; }
.clock-status {
  display: block;
  margin-top: 15px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}
.time-zones-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.tz-box {
  min-width: 0;
  padding: 20px 14px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--shadow-sm);
}
.tz-label {
  display: block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
}
.tz-time {
  display: block;
  margin: 7px 0 4px;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: clamp(22px, 2.4vw, 34px);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: .035em;
  line-height: 1.1;
}
.tz-box small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(145px, auto) auto minmax(150px, auto);
  align-items: end;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.catalog-search-field,
.catalog-size-field { min-width: 0; }
.catalog-size-field select { min-width: 145px; }
.catalog-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.catalog-summary {
  align-self: center;
  justify-self: end;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}
.public-exam-card > p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.public-exam-card .btn-block { margin-top: auto; }

@media (min-width: 1051px) {
  .feature-grid.feature-grid-modern {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .feature-grid-modern > .feature-card { grid-column: span 4; }
  .feature-grid-modern > .feature-card-wide { grid-column: span 8; }
  .feature-grid-modern > .feature-card:nth-child(5),
  .feature-grid-modern > .feature-card:nth-child(6) { grid-column: span 6; }
  .feature-grid-modern > .clock-mosaic { grid-column: 1 / -1; }
}

@media (max-width: 1050px) {
  .feature-grid-modern > .clock-mosaic { grid-column: 1 / -1; }
  .clock-mosaic-inner { grid-template-columns: 1fr; }
  .catalog-toolbar {
    grid-template-columns: minmax(240px, 1fr) minmax(145px, auto);
  }
  .catalog-actions { align-self: end; }
  .catalog-summary { justify-self: start; }
}

@media (max-width: 720px) {
  .catalog-toolbar { grid-template-columns: 1fr; }
  .catalog-size-field select { width: 100%; }
  .catalog-actions { width: 100%; }
  .catalog-actions .btn { flex: 1; }
  .catalog-summary { justify-self: start; }
  .time-zones-grid { grid-template-columns: 1fr; }
  .tz-box {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 4px 14px;
    text-align: left;
  }
  .tz-time {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
    margin: 0;
  }
}

@media (max-width: 420px) {
  .landing-page .main-content { width: min(100% - 16px, 1240px); }
  .hero-copy h1 { font-size: 35px; }
  .product-dashboard { grid-template-columns: 48px 1fr; }
  .mini-dashboard-body { padding: 12px; }
  .mini-stats strong { font-size: 15px; }
  .mini-stats small { font-size: 8px; }
  .tz-time { font-size: 22px; }
}

/* Admin dashboard responsive hardening — full audit */
.admin-dashboard { overflow-x: clip; }
.admin-layout,
.admin-layout > *,
.admin-main,
.admin-main > *,
.admin-main .card,
.admin-main .card-body,
.admin-main .card-header,
.admin-main .grid-2 > *,
.admin-main .grid-3 > *,
.admin-main .form-grid > *,
.admin-main form,
.admin-main fieldset {
  min-width: 0;
  max-width: 100%;
}
.admin-main { width: 100%; }
.admin-main code,
.admin-main pre,
.admin-main td strong,
.admin-main td small,
.admin-main .card h2,
.admin-main .card h3,
.admin-main .page-head h1,
.admin-main .page-head p,
.admin-main .notice p,
.admin-main .announcement-banner p,
.admin-main .feedback-entry-copy,
.admin-main .feedback-message {
  overflow-wrap: anywhere;
}
.admin-main .stat-value-compact { font-size: 24px; }

.admin-mobile-nav { display: none; }
.admin-menu-toggle {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.admin-menu-toggle:hover { transform: none; border-color: color-mix(in srgb, var(--primary) 42%, var(--border)); }
.admin-menu-toggle:focus-visible,
.admin-main .table-wrap:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 32%, transparent);
  outline-offset: 3px;
}
.admin-menu-toggle-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 18px;
  font-weight: 900;
}
.admin-menu-toggle-copy { min-width: 0; flex: 1; }
.admin-menu-toggle-copy small,
.admin-menu-toggle-copy strong { display: block; }
.admin-menu-toggle-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.admin-menu-toggle-copy strong {
  overflow: hidden;
  margin-top: 1px;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-menu-toggle-chevron {
  color: var(--muted);
  font-size: 20px;
  transition: transform .18s ease;
}
.admin-menu-toggle[aria-expanded="true"] .admin-menu-toggle-chevron { transform: rotate(180deg); }

.admin-main .table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.admin-main .table-wrap::-webkit-scrollbar { height: 8px; }
.admin-main .table-wrap::-webkit-scrollbar-track { background: transparent; }
.admin-main .table-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--border);
}
.admin-main .table-wrap::-webkit-scrollbar-thumb:hover { background: var(--muted); }
.admin-main th,
.admin-main td { overflow-wrap: normal; }
.admin-main .detail-table th { width: 190px; }
.admin-main .analytics-question-cell { min-width: 320px; white-space: normal; }

.performance-item { margin-bottom: 18px; }
.performance-item:last-child { margin-bottom: 0; }
.performance-heading { display: flex; justify-content: space-between; gap: 12px; }
.performance-heading strong { min-width: 0; }
.performance-heading span { flex: 0 0 auto; font-weight: 800; }
.performance-progress { margin: 8px 0; }
.performance-item small { color: var(--muted); }

.feedback-list { padding-top: 0; padding-bottom: 0; }
.feedback-entry { padding: 18px 0; border-bottom: 1px solid var(--border); }
.feedback-entry:last-child { border-bottom: 0; }
.feedback-entry-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.feedback-entry-copy { min-width: 0; }
.feedback-entry-copy h3 { margin: 10px 0 4px; }
.feedback-entry-copy small { color: var(--muted); }
.feedback-status-form { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.feedback-status-form select { min-width: 130px; }
.feedback-message { margin: 14px 0 0; }
.import-update-option { grid-template-columns: auto minmax(0, 1fr); }
.import-update-option input { margin-top: 2px; }
.logout-button { position: relative; }
.logout-button-icon { display: none; }

@media (min-width: 1051px) {
  .admin-layout .side-menu {
    max-height: calc(100dvh - 116px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }
}

/* Editable UNINDRA promotional homepage */
.unindra-hero {
  --unindra-navy: #071d3b;
  --unindra-blue: #0b4ca8;
  --unindra-gold: #e5ad39;
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(520px,1.1fr);
  min-height: 680px;
  margin: 0 0 34px;
  border: 1px solid var(--border);
  background: #f8f5ee;
  overflow: hidden;
}
.unindra-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(54px,7vw,100px) clamp(38px,5vw,72px); }
.unindra-kicker { display: flex; align-items: center; gap: 11px; color: #0b4ca8; font-size: 11px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.unindra-kicker i { width: 28px; height: 2px; background: #e5ad39; }
.unindra-hero h1 { margin: 24px 0 0; color: #071d3b; font-family: Georgia,'Times New Roman',serif; font-size: clamp(62px,6.2vw,94px); font-weight: 400; line-height: .9; letter-spacing: -.055em; }
.unindra-hero h1 span,.unindra-hero h1 em { display: block; }
.unindra-hero h1 em { color: #0b4ca8; font-weight: 400; }
.unindra-hero-copy > p { max-width: 640px; margin: 30px 0 0; color: #455970; font-size: clamp(16px,1.4vw,19px); line-height: 1.75; }
.unindra-hero .hero-actions { margin-top: 30px; }
.unindra-hero .btn-primary { background: #0b4ca8; border-color: #0b4ca8; }
.unindra-hero-note { display: flex; gap: 16px; margin-top: clamp(42px,7vh,72px); padding-top: 20px; border-top: 1px solid rgba(7,29,59,.16); }
.unindra-hero-note > span { color: #e5ad39; font-size: 11px; font-weight: 800; }
.unindra-hero-note p { margin: 0; color: #6a7889; font-size: 12px; line-height: 1.6; }
.unindra-hero-note strong { color: #071d3b; }
.unindra-hero-art {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: white;
  background: #071d3b;
  isolation: isolate;
}
.unindra-mosaic {
  display: grid;
  grid-template-columns: repeat(12,minmax(0,1fr));
  grid-template-rows: repeat(12,minmax(0,1fr));
  gap: 14px;
  padding: 18px;
  background-image:
    radial-gradient(circle at 92% 6%,rgba(229,173,57,.22),transparent 28%),
    linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);
  background-size: auto,50px 50px,50px 50px;
}
.unindra-mosaic-tile {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: clamp(20px,2.4vw,32px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 18px 46px rgba(0,0,0,.18);
}
.mosaic-shape--square { border-radius: 0; }
.mosaic-shape--rounded { border-radius: clamp(18px,2.2vw,34px); }
.mosaic-shape--diamond { border: 0; border-radius: 0; clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); }
.mosaic-shape--trapezoid { border: 0; border-radius: 0; clip-path: polygon(10% 0,90% 0,100% 100%,0 100%); }
.mosaic-shape--hexagon { border: 0; border-radius: 0; clip-path: polygon(12% 0,88% 0,100% 50%,88% 100%,12% 100%,0 50%); }
.mosaic-shape--slant { border: 0; border-radius: 0; clip-path: polygon(10% 0,100% 0,90% 100%,0 100%); }
.mosaic-shape--arch { border-radius: 999px 999px 24px 24px; }
.mosaic-shape--pill { border-radius: 999px; }
.mosaic-shape--gem { border: 0; border-radius: 0; clip-path: polygon(20% 0,80% 0,100% 28%,84% 100%,16% 100%,0 28%); }
.unindra-mosaic-tile.mosaic-shape--diamond { padding: 17% 20%; }
.unindra-mosaic-tile.mosaic-shape--trapezoid,
.unindra-mosaic-tile.mosaic-shape--hexagon,
.unindra-mosaic-tile.mosaic-shape--slant,
.unindra-mosaic-tile.mosaic-shape--gem { padding-inline: max(clamp(20px,2.4vw,32px),12%); }
.unindra-mosaic-brand { grid-column: 1 / 8; grid-row: 1 / 8; display: flex; flex-direction: column; background: linear-gradient(145deg,#0b4ca8,#073577); }
.unindra-mosaic-brand::after { content: ''; position: absolute; right: -70px; bottom: -90px; width: 310px; height: 310px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; box-shadow: 0 0 0 58px rgba(255,255,255,.045),0 0 0 116px rgba(255,255,255,.035); }
.unindra-mosaic-brand small,.unindra-mosaic-statement small { position: relative; z-index: 1; font-size: 9px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.unindra-mosaic-brand strong { position: relative; z-index: 1; max-width: 7.5ch; margin: auto 0 8px; font: 500 clamp(42px,5.4vw,78px)/.88 Georgia,serif; letter-spacing: -.055em; text-wrap: balance; overflow-wrap: anywhere; }
.unindra-mosaic-brand span { position: relative; z-index: 1; color: #dbe9ff; font-size: 11px; font-weight: 800; letter-spacing: .22em; }
.unindra-mosaic-statement { grid-column: 8 / 13; grid-row: 1 / 6; display: flex; flex-direction: column; color: #071d3b; background: #fff; }
.unindra-mosaic-statement .unindra-tile-icon { width: 42px; height: 42px; margin-bottom: auto; color: #0b4ca8; }
.unindra-mosaic-statement small { margin: 18px 0 8px; color: #0b4ca8; }
.unindra-mosaic-statement strong { font: 400 clamp(24px,2.3vw,35px)/1.06 Georgia,serif; }
.unindra-mosaic-stat { grid-column: 8 / 13; grid-row: 6 / 10; display: grid; grid-template-columns: auto 1fr; align-content: center; gap: 5px 16px; color: #071d3b; background: #e5ad39; }
.unindra-mosaic-stat .unindra-tile-icon { grid-row: 1 / 3; align-self: center; width: 38px; height: 38px; }
.unindra-mosaic-stat strong { font: 700 clamp(32px,3.6vw,54px)/1 Georgia,serif; }
.unindra-mosaic-stat span { max-width: 20ch; font-size: 11px; font-weight: 750; line-height: 1.4; }
.unindra-mosaic-quote { grid-column: 1 / 8; grid-row: 8 / 13; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px; background: #17335c; }
.unindra-mosaic-quote > span { align-self: start; color: #e5ad39; font: 400 76px/.8 Georgia,serif; }
.unindra-mosaic-quote blockquote { margin: 0; font: italic clamp(17px,1.75vw,24px)/1.5 Georgia,serif; }
.unindra-mosaic-impact { grid-column: 8 / 13; grid-row: 10 / 13; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: rgba(255,255,255,.07); }
.unindra-mosaic-impact span,.unindra-mosaic-impact strong { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.unindra-mosaic-impact strong { color: #e5ad39; }
.unindra-mosaic-impact i { flex: 1; height: 1px; background: rgba(255,255,255,.3); }
.unindra-mosaic-orbit { position: absolute; z-index: 1; right: -90px; top: 42%; width: 260px; height: 260px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }

.unindra-about { padding-top: 106px; padding-bottom: 116px; }
.unindra-section-index { display: flex; gap: 12px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.unindra-section-index span { color: #e5ad39; }
.unindra-about-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: 60px; margin-top: 50px; }
.unindra-about-grid .unindra-kicker { margin-top: 10px; align-self: start; }
.unindra-about h2,.unindra-stories h2 { margin: 0; color: #071d3b; font-family: Georgia,'Times New Roman',serif; font-size: clamp(44px,5vw,70px); font-weight: 400; line-height: 1; letter-spacing: -.04em; }
.unindra-about-grid p { max-width: 760px; margin: 28px 0 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.unindra-values { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 14px; margin-top: 72px; }
.unindra-values article { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 245px; padding: 28px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
.unindra-values article::after { content: ''; position: absolute; right: -45px; bottom: -65px; width: 160px; height: 160px; border: 1px solid currentColor; border-radius: 50%; opacity: .08; }
.unindra-values .unindra-value-care { grid-column: span 5; color: #fff; background: #0b4ca8; }
.unindra-values .unindra-value-creative { grid-column: span 7; background: #f3c965; }
.unindra-values .unindra-value-independent { grid-column: span 7; background: #f8f5ee; }
.unindra-values .unindra-value-adaptive { grid-column: span 5; color: #fff; background: #071d3b; }
.unindra-value-icon { width: 42px; height: 42px; margin-bottom: auto; }
.unindra-values article > span { position: absolute; top: 28px; right: 28px; color: currentColor; font-size: 10px; font-weight: 800; opacity: .72; }
.unindra-values h3 { margin: 34px 0 12px; color: inherit; font: 400 clamp(29px,3vw,40px)/1 Georgia,serif; }
.unindra-values p { max-width: 46ch; margin: 0; color: inherit; font-size: 12px; line-height: 1.65; opacity: .78; }

.unindra-stories { margin: 20px calc(50% - 50vw) 0; padding: 108px max(20px,calc((100vw - 1240px)/2)); color: white; background: #071d3b; }
.unindra-stories-head { display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: end; }
.unindra-stories .unindra-kicker { margin-bottom: 20px; color: #a9c8ff; }
.unindra-stories h2 { color: white; }
.unindra-stories-head > p { margin: 0 0 4px; color: #aab9cd; font-size: 14px; line-height: 1.75; }
.unindra-media-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 56px; }
.unindra-media-card { min-width: 0; border: 1px solid rgba(255,255,255,.15); background: #10294c; overflow: hidden; }
.unindra-media-card:first-child { grid-column: span 2; }
.unindra-embed { aspect-ratio: 16/9; background: #020711; }
.unindra-embed iframe { width: 100%; height: 100%; border: 0; }
.unindra-social-preview { min-height: 260px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; color: white; }
.platform-instagram .unindra-social-preview { background: linear-gradient(150deg,#702fb3,#d84479 60%,#ed913b); }
.platform-tiktok .unindra-social-preview { background: #111; }
.platform-youtube .unindra-social-preview { background: #bf1f2b; }
.unindra-platform-glyph { align-self: center; margin: auto; color: white; }
.unindra-platform-glyph .landing-icon { width: 76px; height: 76px; stroke-width: 1.35; }
.platform-tiktok .unindra-platform-glyph { color: #5ff0f3; filter: drop-shadow(5px 4px 0 #ef315c); }
.unindra-social-preview > span:last-child .landing-icon { width: 16px; height: 16px; }
.unindra-social-preview > span:last-child { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.unindra-media-caption { min-height: 140px; padding: 20px 22px; }
.unindra-media-caption > span { color: #a9c8ff; font-size: 9px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.unindra-media-caption h3 { margin: 9px 0 5px; color: white; font-size: 17px; }
.unindra-media-caption p { margin: 0 0 14px; color: #aab9cd; font-size: 12px; line-height: 1.6; }
.unindra-media-caption a { color: #e5ad39; font-size: 11px; font-weight: 800; }

@media (max-width:1050px) {
  .unindra-hero { grid-template-columns: 1fr; }
  .unindra-hero-art { min-height: 620px; }
  .unindra-about-grid,.unindra-stories-head { grid-template-columns: 1fr; gap: 24px; }
  .unindra-values .unindra-value-care,.unindra-values .unindra-value-adaptive { grid-column: span 5; }
  .unindra-values .unindra-value-creative,.unindra-values .unindra-value-independent { grid-column: span 7; }
}
@media (max-width:720px) {
  .unindra-hero { margin-inline: -1px; min-height: auto; }
  .unindra-hero-copy { padding: 48px 20px 42px; }
  .unindra-hero h1 { font-size: clamp(54px,17vw,78px); }
  .unindra-hero-art { min-height: 720px; }
  .unindra-mosaic { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: auto; gap: 10px; padding: 10px; }
  .unindra-mosaic-brand { grid-column: 1 / -1; grid-row: auto; min-height: 270px; }
  .unindra-mosaic-statement { grid-column: 1 / -1; grid-row: auto; min-height: 240px; }
  .unindra-mosaic-stat { grid-column: 1 / -1; grid-row: auto; min-height: 140px; }
  .unindra-mosaic-quote { grid-column: 1 / -1; grid-row: auto; min-height: 170px; }
  .unindra-mosaic-impact { grid-column: 1 / -1; grid-row: auto; min-height: 84px; }
  .unindra-about { padding-top: 74px; padding-bottom: 80px; }
  .unindra-values { grid-template-columns: 1fr; }
  .unindra-values .unindra-value-care,.unindra-values .unindra-value-creative,.unindra-values .unindra-value-independent,.unindra-values .unindra-value-adaptive { grid-column: 1; }
  .unindra-values h3 { margin-top: 24px; }
  .unindra-stories { padding-block: 80px; }
  .unindra-media-grid { grid-template-columns: 1fr; }
  .unindra-media-card:first-child { grid-column: auto; }
}

@media (max-width: 1050px) {
  .admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .admin-mobile-nav { display: block; }
  .admin-layout .side-menu {
    position: static;
    display: grid;
    width: 100%;
    max-height: min(68dvh, 560px);
    margin: 0;
    padding: 9px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .admin-layout.admin-nav-ready .side-menu { display: none; }
  .admin-layout.admin-nav-ready .side-menu.is-open { display: grid; }
  .admin-layout .side-menu a {
    width: 100%;
    min-height: 44px;
    margin: 2px 0;
    white-space: normal;
  }
}

@media (max-width: 1280px) {
  .admin-main .question-management-grid,
  .admin-main .bank-question-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .admin-main .grid-2,
  .admin-main .grid-3,
  .admin-main .question-management-grid,
  .admin-main .bank-question-layout,
  .admin-main .admin-split-grid,
  .admin-main .blueprint-edit-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-main .form-card { max-width: none; }
}

@media (max-width: 720px) {
  .admin-dashboard .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
  }
  .admin-dashboard .brand,
  .admin-dashboard .brand > span:last-child { min-width: 0; }
  .admin-dashboard .main-content {
    width: min(100% - 20px, 1240px);
    padding-top: 16px;
    padding-bottom: 42px;
  }
  .admin-main .page-head {
    gap: 14px;
    margin-bottom: 20px;
  }
  .admin-main .page-head h1 {
    font-size: clamp(27px, 9vw, 36px);
    line-height: 1.1;
  }
  .admin-main .page-actions,
  .admin-main .page-head > .btn,
  .admin-main .page-head > form {
    width: 100%;
  }
  .admin-main .page-actions > *,
  .admin-main .page-actions > form,
  .admin-main .page-actions .btn,
  .admin-main .page-head > .btn,
  .admin-main .page-head > form > .btn {
    flex: 1 1 100%;
    width: 100%;
  }
  .admin-main .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
  }
  .admin-main .stat-card {
    min-height: 118px;
    padding: 15px;
    border-radius: 15px;
  }
  .admin-main .stat-card::after { width: 64px; height: 64px; }
  .admin-main .stat-value { margin-top: 6px; font-size: 28px; }
  .admin-main .stat-value-compact { font-size: 21px; }
  .admin-main .stat-label { font-size: 12px; }
  .admin-main .stat-note { font-size: 11px; line-height: 1.4; }
  .admin-main .card { border-radius: 15px; }
  .admin-main .card-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
  }
  .admin-main .card-header > div { min-width: 0; max-width: 100%; }
  .admin-main .card-header > .btn,
  .admin-main .card-header > a.btn,
  .admin-main .card-header > form,
  .admin-main .card-header > form .btn { width: 100%; }
  .admin-main .card-body { padding: 16px; }
  .admin-main .card-footer { padding: 14px 16px; }
  .admin-main .empty-state { padding: 34px 16px; }
  .admin-main .announcement-banner { padding: 16px; }
  .admin-main .announcement-banner .btn { width: 100%; }

  .admin-main .filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 9px;
  }
  .admin-main .data-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); }
  .admin-main .filter-bar > input:not([type="hidden"]),
  .admin-main .filter-bar > select,
  .admin-main .filter-bar > button,
  .admin-main .filter-bar > a,
  .admin-main .filter-bar > label,
  .admin-main .filter-bar > .school-picker,
  .admin-main .filter-bar .page-size-select,
  .admin-main .data-toolbar > * {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .admin-main input,
  .admin-main select,
  .admin-main textarea,
  .admin-main button { max-width: 100%; }
  .admin-main input[type="file"] {
    min-width: 0;
    max-width: 100%;
    padding: 8px;
    font-size: 12px;
  }
  .admin-main .check-row {
    grid-auto-flow: row;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }
  .admin-main .setting-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-main .switch-row { min-width: 0; white-space: normal; }

  .admin-main .table-wrap th,
  .admin-main .table-wrap td { white-space: nowrap; }
  .admin-main .table-wrap td[style*="white-space:pre-line"],
  .admin-main .table-wrap td[style*="white-space: pre-line"],
  .admin-main .analytics-question-cell { min-width: 260px; white-space: normal; }
  .admin-main .table-actions {
    min-width: 150px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-main .table-actions > *,
  .admin-main .table-actions form,
  .admin-main .table-actions .btn { width: 100%; }
  .admin-main .table-actions .btn { min-height: 40px; }
  .admin-main .bank-card-head,
  .admin-main .compact-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-main .bank-card-head .table-actions { width: 100%; }
  .admin-main .inline-role-form {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-main .inline-role-form select,
  .admin-main .inline-role-form .btn { width: 100%; min-width: 0; }
  .admin-main .pagination-shell { align-items: stretch; }
  .admin-main .pagination {
    max-width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 5px;
    flex-wrap: nowrap;
  }
  .admin-main .pagination a,
  .admin-main .pagination span { flex: 0 0 38px; }
  .admin-main .pagination .cursor-link { flex-basis: auto; }

  .feedback-entry-head { flex-direction: column; }
  .feedback-status-form {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .feedback-status-form select { width: 100%; min-width: 0; }
  .performance-heading { align-items: flex-start; }
}

@media (max-width: 520px) {
  .admin-main .detail-table,
  .admin-main .detail-table tbody,
  .admin-main .detail-table tr,
  .admin-main .detail-table th,
  .admin-main .detail-table td { display: block; width: 100%; }
  .admin-main .detail-table tr { padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .admin-main .detail-table tr:last-child { border-bottom: 0; }
  .admin-main .detail-table th,
  .admin-main .detail-table td {
    padding: 0;
    border: 0;
    white-space: normal;
  }
  .admin-main .detail-table th {
    margin-bottom: 4px;
    color: var(--muted);
    background: transparent;
  }
  .admin-main .detail-table tr:hover td { background: transparent; }
}

@media (max-width: 420px) {
  .admin-dashboard .topbar { gap: 7px; padding-inline: 10px; }
  .admin-dashboard .brand { gap: 8px; }
  .admin-dashboard .brand strong {
    max-width: 112px;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .admin-dashboard .top-actions { gap: 4px; }
  .admin-dashboard .top-actions .icon-btn { width: 38px; height: 38px; }
  .admin-dashboard .logout-button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
  }
  .admin-dashboard .logout-button-icon { display: inline; font-size: 18px; }
  .admin-dashboard .logout-button-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .admin-main .stat-card { min-height: 108px; }
  .admin-menu-toggle { min-height: 54px; }
  .admin-main .card-body { padding: 14px; }
  .feedback-status-form { grid-template-columns: minmax(0, 1fr); }
  .feedback-status-form .btn { width: 100%; }
}

@media (max-width: 340px) {
  .admin-main .stats-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-dashboard .brand > span:last-child { display: none; }
}

/* Admin UI Paripurna v6.2.8
   Consolidated control sizing, accessibility states, resilient headings, and mobile session cards. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 34%, transparent);
  outline-offset: 3px;
}

button:disabled,
.btn:disabled,
.btn[aria-disabled="true"],
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.btn:disabled:hover,
.btn[aria-disabled="true"]:hover,
button:disabled:hover {
  transform: none;
  box-shadow: none;
}

.admin-main {
  --admin-control-height: 44px;
  --admin-control-height-sm: 36px;
  --admin-control-radius: 11px;
  --admin-control-gap: 10px;
  --admin-heading-max: 44px;
}

.admin-main label,
.admin-main .form-grid > *,
.admin-main .filter-bar > *,
.admin-main .page-actions > *,
.admin-main .table-actions > *,
.admin-main .card-header > * {
  min-width: 0;
}

.admin-main .page-head {
  flex-wrap: wrap;
}

.admin-main .page-head > div:first-child {
  min-width: min(100%, 280px);
  flex: 1 1 560px;
}

.admin-main .page-head h1 {
  max-width: 22ch;
  font-size: clamp(30px, 3.35vw, var(--admin-heading-max));
  line-height: 1.08;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.admin-main .page-head p {
  max-width: 76ch;
}

.admin-main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.admin-main select,
.admin-main textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border-radius: var(--admin-control-radius);
  font-size: 14px;
  line-height: 1.35;
}

.admin-main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.admin-main select {
  min-height: var(--admin-control-height);
}

.admin-main textarea {
  min-height: 112px;
}

.admin-main input::placeholder,
.admin-main textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 76%, transparent);
  opacity: 1;
}

.admin-main input[type="file"] {
  height: auto;
  min-height: var(--admin-control-height);
  padding: 6px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-main input[type="file"]::file-selector-button {
  min-height: 32px;
  margin-right: 10px;
  padding: 6px 11px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  font-weight: 800;
  cursor: pointer;
}

.admin-main input[type="datetime-local"],
.admin-main input[type="date"],
.admin-main input[type="time"],
.admin-main input[type="number"] {
  min-inline-size: 0;
}

.admin-main input:user-invalid,
.admin-main select:user-invalid,
.admin-main textarea:user-invalid,
.admin-main [aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 12%, transparent);
}

.admin-main .password-wrap,
.admin-main .school-picker,
.admin-main .school-picker-control {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.admin-main .password-wrap > input {
  padding-right: 48px;
}

.admin-main .password-wrap > button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 9px;
}

.admin-main .btn {
  width: auto;
  min-width: 0;
  max-width: 100%;
  min-height: var(--admin-control-height);
  padding: 9px 15px;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.admin-main .btn-sm {
  min-height: var(--admin-control-height-sm);
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 12.5px;
}

.admin-main .btn-block {
  width: 100%;
}

.admin-main .form-grid {
  align-items: start;
}

.admin-main .form-grid > .btn:not(.btn-block) {
  width: fit-content;
  min-width: 168px;
  justify-self: start;
}

.admin-main .form-grid > .form-submit-button {
  min-width: 180px;
}

.admin-main .filter-bar {
  align-items: stretch;
}

.admin-main .filter-bar > input:not([type="hidden"]),
.admin-main .filter-bar > select,
.admin-main .filter-bar > label,
.admin-main .filter-bar > .school-picker {
  flex: 1 1 210px;
}

.admin-main .filter-bar > .page-size-select {
  flex: 0 1 150px;
  min-width: 135px;
}

.admin-main .filter-bar > .btn,
.admin-main .filter-bar > button,
.admin-main .filter-bar > a {
  flex: 0 0 auto;
  align-self: stretch;
}

.admin-main .page-actions {
  align-items: stretch;
}

.admin-main .page-actions > form {
  display: flex;
}

.admin-main .page-actions > form > .btn,
.admin-main .page-actions > .btn {
  height: 100%;
}

.admin-main .card-header {
  flex-wrap: wrap;
}

.admin-main .card-header h2,
.admin-main .card-header h3 {
  max-width: 100%;
  font-size: clamp(16px, 1.48vw, 21px);
  line-height: 1.28;
  letter-spacing: -.018em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.admin-main .card-header small {
  display: block;
  margin-top: 4px;
  line-height: 1.45;
}

.admin-main .table-wrap {
  position: relative;
  transition: box-shadow .16s ease;
}

.admin-main .table-wrap.can-scroll-left {
  box-shadow: inset 16px 0 14px -16px color-mix(in srgb, var(--text) 42%, transparent);
}

.admin-main .table-wrap.can-scroll-right {
  box-shadow: inset -16px 0 14px -16px color-mix(in srgb, var(--text) 42%, transparent);
}

.admin-main .table-wrap.can-scroll-left.can-scroll-right {
  box-shadow:
    inset 16px 0 14px -16px color-mix(in srgb, var(--text) 42%, transparent),
    inset -16px 0 14px -16px color-mix(in srgb, var(--text) 42%, transparent);
}

.admin-main .table-actions {
  align-items: stretch;
}

.admin-main .table-actions > form {
  display: flex;
  margin: 0;
}

.admin-main .table-actions .btn {
  min-height: var(--admin-control-height-sm);
}

.form-validation-message {
  margin: 0;
  padding: 11px 13px;
  color: var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger) 34%, var(--border));
  border-radius: 10px;
  background: color-mix(in srgb, var(--danger) 8%, var(--surface));
  font-size: 12px;
  font-weight: 750;
}

.admin-main form.is-submitting {
  cursor: progress;
}

.admin-main form.is-submitting .form-submit-button {
  pointer-events: none;
}

/* School-session page */
.admin-main .session-management-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.admin-main .session-card-header {
  min-height: 64px;
  align-items: center;
}

.admin-main .card-header h2.session-list-title {
  flex: 1 1 170px;
  font-size: clamp(14px, .84rem + .24vw, 18px);
  line-height: 1.25;
}

.admin-main .session-count-badge {
  flex: 0 0 auto;
}

.admin-main .session-filter-bar .session-quiz-select {
  flex: 1 1 360px;
}

.admin-main .session-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-main .session-form-grid .help {
  line-height: 1.5;
}

.admin-main .session-code-tools {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 210px;
}

.admin-main .session-code-field {
  width: min(180px, 100%);
  min-width: 145px;
  max-width: 100%;
  flex: 1 1 auto;
}

.admin-main .session-copy-button {
  flex: 0 0 auto;
}

.admin-main .session-empty-state {
  padding-block: 42px;
}

.admin-main .session-table {
  min-width: 960px;
  table-layout: fixed;
}

.admin-main .session-table th:nth-child(1),
.admin-main .session-table td:nth-child(1) { width: 17%; }
.admin-main .session-table th:nth-child(2),
.admin-main .session-table td:nth-child(2) { width: 24%; }
.admin-main .session-table th:nth-child(3),
.admin-main .session-table td:nth-child(3) { width: 13%; }
.admin-main .session-table th:nth-child(4),
.admin-main .session-table td:nth-child(4) { width: 14%; }
.admin-main .session-table th:nth-child(5),
.admin-main .session-table td:nth-child(5) { width: 8%; }
.admin-main .session-table th:nth-child(6),
.admin-main .session-table td:nth-child(6) { width: 10%; }
.admin-main .session-table th:nth-child(7),
.admin-main .session-table td:nth-child(7) { width: 14%; }

.admin-main .session-cell-content {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-main .session-table td:nth-child(6) .badge {
  padding-inline: 6px;
  font-size: 10px;
  white-space: nowrap;
}

.admin-main .session-row-actions {
  min-width: 112px;
}

.admin-main .session-row-actions .btn {
  width: 100%;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .admin-main .page-head > div:first-child {
    width: 100%;
    min-width: 0;
    flex: 0 1 auto;
  }

  .admin-main .page-head h1 {
    max-width: none;
    font-size: clamp(27px, 8.4vw, 35px);
  }

  .admin-main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .admin-main select,
  .admin-main textarea {
    font-size: 16px;
  }

  .admin-main .filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
  }

  .admin-main .filter-bar > input:not([type="hidden"]),
  .admin-main .filter-bar > select,
  .admin-main .filter-bar > label,
  .admin-main .filter-bar > .school-picker,
  .admin-main .filter-bar .page-size-select,
  .admin-main .data-toolbar > .filter-bar {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }

  .admin-main .filter-bar > .btn,
  .admin-main .filter-bar > button,
  .admin-main .filter-bar > a {
    flex: 1 1 145px;
    width: auto;
    min-width: 0;
  }

  .admin-main .page-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    width: 100%;
  }

  .admin-main .page-actions > *,
  .admin-main .page-actions > form,
  .admin-main .page-actions .btn {
    width: 100%;
  }

  .admin-main .card-header > .btn,
  .admin-main .card-header > a.btn,
  .admin-main .card-header > form,
  .admin-main .card-header > form .btn {
    width: auto;
    max-width: 100%;
    align-self: flex-start;
  }

  .admin-main .table-actions {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
  }

  .admin-main .table-actions > *,
  .admin-main .table-actions > form,
  .admin-main .table-actions .btn {
    width: auto;
  }

  .admin-main .session-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-main .session-form-grid .span-2 {
    grid-column: auto;
  }

  .admin-main .session-card-header {
    min-height: 0;
    flex-direction: row;
    align-items: center;
  }

  .admin-main .session-table-wrap {
    overflow: visible;
    box-shadow: none !important;
  }

  .admin-main .session-table {
    min-width: 0;
  }

  .admin-main .session-table,
  .admin-main .session-table tbody,
  .admin-main .session-table tr,
  .admin-main .session-table td,
  .admin-main .session-table td:nth-child(n) {
    display: block;
    width: 100%;
  }

  .admin-main .session-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .admin-main .session-table tbody {
    display: grid;
    gap: 12px;
    padding: 12px;
  }

  .admin-main .session-table tr {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 6px 18px rgba(11, 31, 58, .05);
  }

  .admin-main .session-table td {
    display: grid;
    grid-template-columns: minmax(96px, 30%) minmax(0, 1fr);
    gap: 10px;
    padding: 12px 13px;
    border-bottom: 1px solid var(--border);
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .admin-main .session-table td:last-child {
    border-bottom: 0;
  }

  .admin-main .session-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .055em;
    line-height: 1.4;
    text-transform: uppercase;
  }

  .admin-main .session-table tr:hover td {
    background: transparent;
  }

  .admin-main .session-code-tools {
    min-width: 0;
    flex-wrap: wrap;
  }

  .admin-main .session-copy-button {
    min-height: var(--admin-control-height);
    height: var(--admin-control-height);
    align-self: start;
  }

  .admin-main .session-code-field {
    min-width: 150px;
    flex: 1 1 170px;
  }

  .admin-main .session-row-actions {
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .admin-main .form-grid > .btn:not(.btn-block),
  .admin-main .form-grid > .form-submit-button {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }

  .admin-main .filter-bar > .btn,
  .admin-main .filter-bar > button,
  .admin-main .filter-bar > a {
    flex-basis: 100%;
  }

  .admin-main .card-header h2,
  .admin-main .card-header h3 {
    font-size: clamp(15px, 4.7vw, 18px);
  }

  .admin-main .card-header h2.session-list-title {
    font-size: clamp(14px, 4.1vw, 16px);
  }

  .admin-main .session-code-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }

  .admin-main .session-code-field {
    width: 100%;
    min-width: 0;
  }

  .admin-main .session-table td {
    grid-template-columns: minmax(86px, 29%) minmax(0, 1fr);
    padding: 11px 12px;
  }
}

@media (max-width: 360px) {
  .admin-main .session-table td {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .admin-main .session-table td::before {
    margin-bottom: 1px;
  }

  .admin-main .session-code-tools {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-main .session-copy-button {
    width: 100%;
  }
}

/* Homepage promotion editor */
.promo-editor { display: grid; gap: 20px; padding-bottom: 86px; }
.promo-media-editor { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.promo-mosaic-editor { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.promo-editor-item { min-width: 0; margin: 0; padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-soft); }
.promo-editor-item legend { padding: 0 8px; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.promo-mosaic-control { display: grid; align-content: start; gap: 18px; }
.promo-mosaic-control:last-child:nth-child(odd) { grid-column: 1 / -1; }
.promo-mosaic-control-head { display: grid; grid-template-columns: 132px minmax(0,1fr); align-items: center; gap: 18px; min-height: 104px; }
.promo-mosaic-control-head p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.promo-mosaic-shape-preview {
  display: grid;
  place-items: center;
  width: 132px;
  height: 96px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(145deg,#0b4ca8,#071d3b);
  filter: drop-shadow(0 10px 15px rgba(15,23,42,.16));
  transition: clip-path .22s ease,border-radius .22s ease,transform .22s ease;
}
.promo-mosaic-shape-preview span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 100%; font-size: 10px; font-weight: 850; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.promo-mosaic-shape-preview.mosaic-shape--diamond { padding: 22px 30px; }
.promo-mosaic-shape-preview.mosaic-shape--arch { padding-top: 30px; }
.promo-copy-editor { display: grid; gap: 14px; }
.promo-copy-group { overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-soft); }
.promo-copy-group summary { padding: 17px 20px; cursor: pointer; color: var(--text); font-weight: 850; list-style-position: inside; }
.promo-copy-group[open] summary { border-bottom: 1px solid var(--border); color: var(--primary); background: color-mix(in srgb,var(--primary-soft) 40%,var(--surface)); }
.promo-copy-group > .form-grid,.promo-copy-group > .promo-copy-values { margin: 18px; }
.promo-copy-values { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.promo-copy-faq-head { margin-bottom: 0 !important; }
.promo-copy-group code { padding: 1px 5px; border-radius: 5px; color: var(--primary); background: var(--primary-soft); font-size: .92em; }
.sticky-form-actions { position: sticky; z-index: 12; bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 14px; background: color-mix(in srgb,var(--surface) 94%,transparent); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.sticky-form-actions span { color: var(--muted); font-size: 13px; }

@media (max-width: 800px) {
  .promo-media-editor,.promo-mosaic-editor,.promo-copy-values { grid-template-columns: 1fr; }
  .promo-mosaic-control:last-child:nth-child(odd) { grid-column: auto; }
}

@media (max-width: 520px) {
  .promo-editor-item { padding: 16px; }
  .promo-mosaic-control-head { grid-template-columns: 1fr; }
  .sticky-form-actions { align-items: stretch; flex-direction: column; }
  .sticky-form-actions .btn { width: 100%; }
}

@media (prefers-contrast: more) {
  .btn,
  input,
  select,
  textarea,
  .card,
  .admin-menu-toggle {
    border-width: 2px;
  }
}

/* v6.3.6–v6.3.7 - Instrumen Benar-Salah, matriks respons, dan kontrol acak sesi */
.admin-main .session-shuffle-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.admin-main .session-shuffle-field legend {
  margin-bottom: 8px;
  color: #40506a;
  font-size: 12px;
  font-weight: 800;
}

.admin-main .session-shuffle-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-main .session-shuffle-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.admin-main .session-shuffle-choice:has(input:checked) {
  border-color: color-mix(in srgb, var(--primary) 66%, var(--border));
  background: var(--primary-soft);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 12%, transparent);
}

.admin-main .session-shuffle-choice:has(input:disabled) {
  cursor: not-allowed;
  opacity: .72;
}

.admin-main .session-shuffle-choice input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--primary);
}

.admin-main .session-shuffle-choice span,
.admin-main .session-shuffle-choice strong,
.admin-main .session-shuffle-choice small {
  display: block;
  min-width: 0;
}

.admin-main .session-shuffle-choice strong {
  color: var(--text);
  font-size: 13px;
}

.admin-main .session-shuffle-choice small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
}

.admin-main .session-shuffle-field > .help {
  display: block;
  margin-top: 7px;
}

.admin-main .true-false-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.admin-main .true-false-method-note {
  margin-bottom: 18px;
}

.admin-main .true-false-analytics-table {
  min-width: 1260px;
}

.admin-main .true-false-statement-cell {
  min-width: 330px;
}

.admin-main .true-false-statement-content {
  display: block;
  margin: 7px 0;
  color: var(--text);
  font-weight: 800;
  line-height: 1.55;
}

.admin-main .true-false-statement-cell > small {
  display: block;
  color: var(--muted);
  white-space: normal;
}

.admin-main .true-false-matrix-card {
  margin-bottom: 20px;
  overflow: hidden;
}

.admin-main .true-false-matrix-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-main .true-false-matrix-head h2 {
  margin: 3px 0 4px;
}

.admin-main .true-false-matrix-head p {
  margin: 0;
  color: var(--muted);
}

.admin-main .true-false-matrix-controls {
  display: grid;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.admin-main .true-false-matrix-filter {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-main .true-false-matrix-identity {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-main .true-false-matrix-identity span {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
}

.admin-main .true-false-matrix-identity strong { color: var(--text); }

.admin-main .true-false-matrix-legend {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.admin-main .true-false-response-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
  font-variant-numeric: tabular-nums;
}

.admin-main .true-false-response-table th,
.admin-main .true-false-response-table td {
  padding: 8px 9px;
  border-right: 1px solid var(--border);
  text-align: center;
  white-space: nowrap;
}

.admin-main .true-false-response-table th {
  background: color-mix(in srgb, var(--primary-soft) 72%, var(--surface-2));
  color: var(--text);
  font-size: 10px;
}

.admin-main .true-false-response-table thead tr:first-child th {
  border-bottom-color: color-mix(in srgb, var(--primary) 32%, var(--border));
}

.admin-main .true-false-response-table tbody td:first-child,
.admin-main .true-false-response-table thead tr:first-child th:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 54px;
  min-width: 54px;
  background: var(--surface);
}

.admin-main .true-false-response-table tbody td:nth-child(2),
.admin-main .true-false-response-table thead tr:first-child th:nth-child(2) {
  position: sticky;
  left: 54px;
  z-index: 3;
  width: 210px;
  min-width: 210px;
  max-width: 210px;
  background: var(--surface);
  box-shadow: 10px 0 12px -14px var(--text);
}

.admin-main .true-false-response-table thead tr:first-child th:first-child,
.admin-main .true-false-response-table thead tr:first-child th:nth-child(2) {
  z-index: 5;
  background: color-mix(in srgb, var(--primary-soft) 72%, var(--surface-2));
}

.admin-main .true-false-response-table tbody tr:hover td { background: var(--surface-2); }
.admin-main .true-false-response-table tbody tr:hover td:first-child,
.admin-main .true-false-response-table tbody tr:hover td:nth-child(2) { background: var(--surface-2); }

.admin-main .true-false-matrix-name {
  overflow: hidden;
  text-align: left !important;
  text-overflow: ellipsis;
}

.admin-main .true-false-response-table td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.admin-main .true-false-matrix-score,
.admin-main .true-false-matrix-total {
  min-width: 38px;
  font-weight: 900;
}

.admin-main .true-false-response-table .is-correct { color: var(--success); background: color-mix(in srgb, var(--success) 9%, var(--surface)); }
.admin-main .true-false-response-table .is-wrong { color: var(--danger); background: color-mix(in srgb, var(--danger) 9%, var(--surface)); }
.admin-main .true-false-response-table .is-blank { color: #9a6700; background: color-mix(in srgb, #f59e0b 10%, var(--surface)); }
.admin-main .true-false-response-table .is-na { color: var(--muted); background: var(--surface-2); }

.admin-main .true-false-matrix-empty {
  padding: 28px !important;
  color: var(--muted);
  text-align: center !important;
}

html[data-theme="dark"] .admin-main .session-shuffle-field legend { color: #c5d0e2; }

@media (max-width: 900px) {
  .admin-main .true-false-summary-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-main .true-false-matrix-head { align-items: stretch; flex-direction: column; }
  .admin-main .true-false-matrix-head .btn { width: 100%; }
  .admin-main .true-false-matrix-filter { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .admin-main .session-shuffle-options { grid-template-columns: minmax(0, 1fr); }
}

/* v6.2.9 - Rich TKA questions, equation editor, and mixed answer modes */
.question-type-builder,
.question-content-builder,
.rich-options-builder {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-2);
}
.question-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 14px;
  align-items: start;
}
.question-type-grid > .question-type-field {
  min-width: 0;
}
.question-type-grid > .question-type-field--type {
  grid-column: 1 / -1;
}
.question-type-field {
  align-self: start;
}
.question-type-label {
  display: block;
  line-height: 1.35;
}
.rich-question-form {
  container-type: inline-size;
  container-name: rich-form;
}
.rich-question-form > *,
.rich-question-form label,
.rich-question-form .question-type-builder,
.rich-question-form .question-content-builder,
.rich-question-form .metadata-builder,
.rich-question-form .media-builder,
.rich-question-form .rich-options-builder,
.rich-question-form .rich-option-editor,
.rich-question-form .rich-option-grid,
.rich-question-form .rich-option-grid > *,
.rich-question-form [data-option-panel],
.rich-question-form textarea,
.rich-question-form select,
.rich-question-form input {
  min-width: 0;
  max-width: 100%;
}
.rich-question-form textarea {
  overflow-wrap: anywhere;
}
.question-type-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 26%, var(--border));
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary-soft) 62%, var(--surface));
  line-height: 1.5;
}
.question-type-note strong { flex: 0 0 auto; color: var(--primary); }
.question-type-note span { color: var(--muted); }
.builder-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.builder-heading strong,
.builder-heading small { display: block; }
.builder-heading small { margin-top: 3px; color: var(--muted); }
.paragraph-editor-field {
  display: grid;
  gap: 0;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.paragraph-editor-field:focus-within {
  border-color: color-mix(in srgb, var(--primary) 66%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent);
}
[data-paragraph-editor]:not([data-paragraph-ready="1"]) .paragraph-toolbar,
[data-paragraph-editor]:not([data-paragraph-ready="1"]) .paragraph-ruler,
[data-paragraph-editor]:not([data-paragraph-ready="1"]) .paragraph-canvas,
[data-paragraph-editor]:not([data-paragraph-ready="1"]) .paragraph-editor-footer,
[data-paragraph-editor]:not([data-paragraph-ready="1"]) .paragraph-character-count { display: none; }
[data-paragraph-editor][data-paragraph-ready="1"] .paragraph-value-fallback { display: none; }
.paragraph-value-fallback { min-height: 190px; border: 0; border-radius: 0; resize: vertical; }
.paragraph-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px 11px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-2) 68%, var(--surface));
}
.paragraph-editor-head strong,
.paragraph-editor-head small { display: block; }
.paragraph-editor-head small { max-width: 74ch; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.paragraph-character-count { flex: 0 0 auto; color: var(--muted); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.paragraph-character-count.is-limit { color: var(--danger); }
.paragraph-toolbar {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 7px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.paragraph-toolbar-group { display: inline-flex; align-items: center; gap: 3px; padding-right: 7px; border-right: 1px solid var(--border); }
.paragraph-tool {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.paragraph-tool:hover { border-color: var(--border); background: var(--surface); color: var(--primary); }
.paragraph-tool.is-active,
.paragraph-tool[aria-pressed="true"] { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); background: var(--primary-soft); color: var(--primary); }
.paragraph-tool:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 25%, transparent); outline-offset: 1px; }
.paragraph-tool--text { font-size: 18px; }
.paragraph-inline-tool strong,.paragraph-inline-tool span { font: inherit; }
.paragraph-inline-tool--italic span { font-style: italic; }
.paragraph-inline-tool--underline span { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
.paragraph-tool--reset { width: auto; padding-inline: 10px; font-size: 11px; white-space: nowrap; }
.paragraph-align-tool > span { display: grid; gap: 2px; width: 16px; }
.paragraph-align-tool i { display: block; height: 2px; border-radius: 2px; background: currentColor; }
.paragraph-align-tool--left i:nth-child(even),
.paragraph-align-tool--justify i:nth-child(even) { width: 100%; }
.paragraph-align-tool--left i:nth-child(odd) { width: 68%; }
.paragraph-align-tool--center i:nth-child(odd) { width: 70%; justify-self: center; }
.paragraph-align-tool--center i:nth-child(even) { width: 100%; }
.paragraph-align-tool--right i:nth-child(odd) { width: 68%; justify-self: end; }
.paragraph-align-tool--right i:nth-child(even) { width: 100%; }
.paragraph-toolbar-select { display: grid !important; gap: 3px; width: auto; color: var(--muted); font-size: 9px; font-weight: 800; line-height: 1.1; }
.paragraph-toolbar-select select { width: auto; min-width: 86px; min-height: 34px; height: 34px; padding: 4px 26px 4px 8px; border-radius: 8px; font-size: 11px; }
.paragraph-ruler {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: 22px;
  margin: 0 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--muted) 45%, transparent);
  color: var(--muted);
  pointer-events: none;
}
.paragraph-ruler > span:not(.paragraph-ruler-label) { border-left: 1px solid color-mix(in srgb, var(--muted) 35%, transparent); }
.paragraph-ruler-label { position: absolute; left: 0; bottom: 2px; font-size: 8px; }
.paragraph-ruler > i { position: absolute; left: min(1cm, 9vw); bottom: -1px; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--primary); transform: translateX(-50%); }
.paragraph-canvas {
  min-height: 210px;
  max-height: 520px;
  overflow: auto;
  padding: 18px;
  color: var(--text);
  background: var(--surface);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.5;
  cursor: text;
  outline: 0;
}
.paragraph-canvas p {
  min-height: 1.4em;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: var(--paragraph-space-after, 8pt);
  margin-left: var(--paragraph-left-indent, 0cm);
  line-height: var(--paragraph-line-height, 1.5);
  text-align: var(--paragraph-align, justify);
  text-indent: var(--paragraph-first-indent, 1cm);
  overflow-wrap: anywhere;
}
.paragraph-canvas p:last-child { margin-bottom: 0; }
.paragraph-canvas strong,.question-paragraph strong { font-weight: 800; }
.paragraph-canvas em,.question-paragraph em { font-style: italic; }
.paragraph-canvas u,.question-paragraph u { text-decoration-thickness: .08em; text-underline-offset: .14em; }
.paragraph-canvas.is-empty p:first-child::before { content: "Tulis stimulus atau pertanyaan di sini…"; color: var(--muted); opacity: .72; pointer-events: none; }
.paragraph-canvas p.is-selected-paragraph { background: color-mix(in srgb, var(--primary-soft) 38%, transparent); }
.paragraph-editor-footer { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-top: 1px solid var(--border); color: var(--muted); background: color-mix(in srgb, var(--surface-2) 58%, var(--surface)); font-size: 10px; line-height: 1.4; }
.equation-editor { display: grid; gap: 10px; min-width: 0; }
.equation-editor-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.equation-editor-head strong,
.equation-editor-head small { display: block; }
.equation-editor-head small { color: var(--muted); font-size: 11px; font-weight: 600; }
.equation-toolbar { display: flex; flex-wrap: wrap; gap: 6px; }
.btn-xs { min-height: 30px; height: 30px; padding: 4px 9px; border-radius: 8px; font-size: 11px; }
.equation-editor textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; line-height: 1.55; }
.equation-preview {
  min-height: 62px;
  max-width: 100%;
  overflow-x: auto;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
}
.equation-preview-placeholder { color: var(--muted); font-size: 12px; }
.math-expression { max-width: 100%; }
.math-display { display: block; overflow-x: auto; overflow-y: hidden; padding: 3px 0; text-align: center; }
.math-inline { display: inline-block; max-width: 100%; overflow-x: auto; vertical-align: middle; }
.math-typeset { visibility: hidden; }
.math-fallback {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  padding: 4px 7px;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .9em;
}
html.mathjax-ready .math-typeset { visibility: visible; }
html.mathjax-ready .math-fallback { display: none; }
.math-typeset mjx-container { max-width: 100%; margin: .2em 0 !important; }
.math-typeset mjx-container[jax="SVG"] > svg { max-width: none; }
.question-equation { margin: -8px 0 20px; max-width: 100%; }
.rich-option-editor {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  min-width: 0;
}
.rich-option-editor[hidden] { display: none !important; }
.rich-option-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.rich-option-grid { display: grid; grid-template-columns: minmax(180px, .75fr) minmax(220px, 1fr); gap: 12px; align-items: end; }
.option-correct-control { min-width: 0; }
.option-correct-control[hidden] { display: none !important; }
.option-image-editor { display: grid; gap: 12px; }
.option-image { margin: 0; max-width: 560px; }
.option-image img { display: block; max-width: 100%; max-height: 280px; object-fit: contain; border-radius: 11px; border: 1px solid var(--border); background: var(--surface-2); }
.option-image.compact img { max-height: 150px; }
.existing-option-image { width: fit-content; max-width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.question-answer-hint { padding: 11px 13px; border-radius: 11px; color: var(--muted); background: var(--surface); font-size: 12px; line-height: 1.5; }
.question-management-grid.is-editing,
.bank-question-layout.is-editing {
  grid-template-columns: minmax(0, 1fr);
}
.question-editor-card.is-editing {
  width: min(100%, 1180px);
  margin-inline: auto;
  border-color: color-mix(in srgb, var(--primary) 24%, var(--border));
  box-shadow: 0 18px 46px rgba(15, 23, 42, .08);
}
.question-editor-card { overflow: visible; }
.question-editor-card > .card-header {
  align-items: flex-start;
  gap: 16px;
}
.question-editor-card > .card-header small { display: block; margin-top: 4px; color: var(--muted); }
.question-editor-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.question-editor-guide {
  position: sticky;
  top: 76px;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--primary) 26%, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
  backdrop-filter: blur(14px);
}
.question-editor-guide__copy { display: flex; align-items: center; gap: 11px; min-width: 0; }
.question-editor-guide__copy strong,
.question-editor-guide__copy small { display: block; }
.question-editor-guide__copy small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.question-editor-guide__badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.question-editor-jump { display: flex; align-items: center; gap: 5px; }
.question-editor-jump a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 8px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  white-space: nowrap;
}
.question-editor-jump a:hover { color: var(--primary); background: var(--primary-soft); }
.question-editor-jump a span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 10px;
  font-weight: 900;
}
.question-editor-step {
  display: grid;
  gap: 16px;
  padding: clamp(16px, 2.2vw, 24px);
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
  scroll-margin-top: 150px;
}
.question-editor-step:target {
  border-color: color-mix(in srgb, var(--primary) 58%, var(--border));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 10%, transparent);
}
.question-editor-step__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.question-editor-step__head > span {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg, var(--primary), #7567ee);
  box-shadow: 0 7px 16px color-mix(in srgb, var(--primary) 24%, transparent);
  font-size: 13px;
  font-weight: 900;
}
.question-editor-step__head strong,
.question-editor-step__head small { display: block; }
.question-editor-step__head strong { font-size: 16px; }
.question-editor-step__head small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.question-editor-step > .question-type-builder,
.question-editor-step > .question-content-builder,
.question-editor-step > .rich-options-builder {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.question-editor-step > .metadata-builder,
.question-editor-step > .media-builder { margin: 0; }
.question-editor-actions {
  position: sticky;
  bottom: 12px;
  z-index: 14;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 12px 34px rgba(15, 23, 42, .13);
  backdrop-filter: blur(14px);
}
.question-editor-save-state { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.question-editor-save-state > span { width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; box-shadow: 0 0 0 4px color-mix(in srgb, #94a3b8 15%, transparent); }
.question-editor-save-state.is-dirty { color: #8a5d10; }
.question-editor-save-state.is-dirty > span { background: #f59e0b; box-shadow: 0 0 0 4px color-mix(in srgb, #f59e0b 16%, transparent); }
.question-editor-actions__buttons { display: flex; justify-content: flex-end; gap: 8px; }
.question-editor-actions__buttons .btn-primary { min-width: 160px; }
.question-type-badge { margin-left: 7px; vertical-align: middle; }
.question-instruction {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 13px 0 20px;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--primary) 34%, var(--border));
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  color: var(--text);
  background: color-mix(in srgb, var(--primary-soft) 78%, var(--surface));
  font-size: clamp(15px, 1.35vw, 17px);
  font-weight: 650;
  line-height: 1.62;
}
.question-instruction strong {
  flex: 0 0 auto;
  color: var(--primary);
  font-weight: 900;
}
.option-item > input { flex: 0 0 auto; margin-top: 6px; }
.option-content { flex: 1 1 auto; min-width: 0; line-height: 1.55; }
.option-content .option-image { max-width: min(100%, 620px); }
.matrix-answer-list { display: grid; gap: 11px; }
.matrix-answer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.matrix-statement { display: flex; gap: 11px; min-width: 0; align-items: flex-start; }
.matrix-statement-number { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; background: var(--surface-2); font-weight: 900; }
.matrix-choice { display: grid; grid-template-columns: repeat(2, minmax(86px, 1fr)); gap: 8px; }
.matrix-choice label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}
.matrix-choice label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.matrix-choice input { margin: 0; }
.nav-dot.partial { color: #8b5c08; border-color: var(--warning); background: color-mix(in srgb, var(--warning) 14%, var(--surface)); }
.legend .partial::before { border-color: var(--warning); background: color-mix(in srgb, var(--warning) 14%, var(--surface)); }
.review-answer-content { display: grid; gap: 8px; margin-top: 7px; }
.review-answer-list { display: grid; gap: 8px; }
.review-answer-line { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: start; }
.review-answer-line > b { min-width: 28px; }
.review-score-detail { display: inline-flex; align-items: center; gap: 7px; margin: 9px 0 0; }
.answer-empty { color: var(--muted); font-style: italic; }
.matrix-review { display: grid; gap: 8px; }
.matrix-review-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--border); }
.matrix-review-row:last-child { border-bottom: 0; }
.matrix-review-value { min-width: 56px; text-align: center; font-weight: 900; }

@media (max-width: 900px) {
  .question-editor-guide { position: static; grid-template-columns: minmax(0, 1fr); }
  .question-editor-jump { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .question-editor-jump a { justify-content: center; }
  .question-type-grid { grid-template-columns: 1fr 1fr; }
  .question-type-grid > .question-type-field--type { grid-column: 1 / -1; }
  .rich-option-grid { grid-template-columns: 1fr; }
  .matrix-answer-row { grid-template-columns: 1fr; }
  .matrix-choice { justify-self: stretch; }
}

@media (max-width: 640px) {
  .question-editor-card > .card-header { align-items: stretch; flex-direction: column; }
  .question-editor-card > .card-header .btn { width: 100%; }
  .question-editor-guide__copy { align-items: flex-start; flex-direction: column; }
  .question-editor-jump { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .question-editor-jump a { justify-content: flex-start; }
  .question-editor-step { padding: 15px; scroll-margin-top: 78px; }
  .question-editor-actions { position: static; align-items: stretch; flex-direction: column; }
  .question-editor-actions__buttons { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .question-editor-actions__buttons .btn { width: 100%; }
  .question-type-builder,
  .question-content-builder,
  .rich-options-builder { padding: 14px; }
  .question-type-grid { grid-template-columns: 1fr; }
  .question-type-grid > .question-type-field--type { grid-column: auto; }
  .question-type-note,
  .builder-heading,
  .equation-editor-head,
  .paragraph-editor-head,
  .paragraph-editor-footer { flex-direction: column; }
  .paragraph-toolbar { align-items: stretch; }
  .paragraph-toolbar-group { border-right: 0; padding-right: 0; }
  .paragraph-toolbar-select { flex: 1 1 110px; }
  .paragraph-toolbar-select select { width: 100%; }
  .paragraph-tool--reset { flex: 1 1 100%; }
  .paragraph-canvas { min-height: 190px; padding: 15px 13px; font-size: 15px; }
  .builder-heading .btn { width: 100%; }
  .equation-toolbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .equation-toolbar .btn { width: 100%; min-width: 0; }
  .question-card { padding: 18px 15px; }
  .question-text { font-size: clamp(17px, 5vw, 21px); }
  .matrix-choice { grid-template-columns: 1fr 1fr; }
  .option-item { padding: 13px; }
  .option-letter,
  .matrix-statement-number { flex-basis: 28px; width: 28px; height: 28px; }
}

@media (max-width: 380px) {
  .equation-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .matrix-choice { grid-template-columns: 1fr; }
}

/* v6.2.9 answer review helpers */
.answer-selection-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.answer-selection-list > div {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}
.answer-matrix-review {
  display: grid;
  gap: 0;
  min-width: 0;
}
.answer-matrix-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.answer-matrix-row:last-child { border-bottom: 0; }
.answer-matrix-row > span { min-width: 0; }
.answer-matrix-row > strong {
  min-width: 76px;
  text-align: center;
  white-space: nowrap;
}
.analytics-options .option-image,
.analytics-options .option-image img {
  max-width: min(100%, 260px);
}
@media (max-width: 520px) {
  .answer-matrix-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .answer-matrix-row > strong { justify-self: start; min-width: 0; text-align: left; }
}

.kpi-partial { background: var(--warning); }
.rich-result-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.print-answer-summary > div { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 720px) {
  .rich-result-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .print-answer-summary > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .rich-result-stats { grid-template-columns: minmax(0, 1fr); }
}


@container rich-form (max-width: 760px) {
  .question-type-grid,
  .rich-option-grid { grid-template-columns: minmax(0, 1fr); }
  .question-type-grid > .question-type-field--type { grid-column: auto; }
  .question-type-note,
  .builder-heading,
  .equation-editor-head { flex-direction: column; }
  .builder-heading .btn { width: 100%; }
  .option-correct-control .check-row {
    grid-auto-flow: column;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }
}

@container rich-form (max-width: 560px) {
  .question-type-builder,
  .question-content-builder,
  .rich-options-builder { padding: 14px; }
  .equation-toolbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .equation-toolbar .btn { width: 100%; min-width: 0; }
  .rich-option-editor { padding: 13px; }
}

@container analytics-card (max-width: 860px) {
  .analytics-table,
  .analytics-table thead,
  .analytics-table tbody,
  .analytics-table tr,
  .analytics-table th,
  .analytics-table td { display: block; width: 100%; }
  .analytics-table thead { display: none; }
  .analytics-table tr {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    display: grid;
    gap: 10px;
  }
  .analytics-table tr:last-child { border-bottom: 0; }
  .analytics-table td { padding: 0; border: 0; white-space: normal; }
  .analytics-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .analytics-table td:first-child::before { margin-bottom: 8px; }
  .analytics-table td[data-label="Rekomendasi"] .badge { width: fit-content; max-width: 100%; }
}

@media (max-width: 720px) {
  .analytics-filter-form { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .participant-type-options { grid-template-columns: minmax(0, 1fr); }
}

/* Question management list refinement — v6.3.1 UI patch
   Keeps long stimuli readable and separates hierarchy, metadata, content, and actions. */
.admin-main .admin-question-panel > .card-header small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
}

.admin-main .admin-question-list {
  display: grid;
  gap: 14px;
}

.admin-main .admin-question-item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 5px 18px rgba(11, 31, 58, .055);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.admin-main .admin-question-item:first-child,
.admin-main .admin-question-item:last-child {
  padding: 0;
  border-bottom: 1px solid var(--border);
}

.admin-main .admin-question-item:hover {
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
  box-shadow: 0 9px 24px rgba(11, 31, 58, .08);
}

.admin-main .admin-question-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 13px 15px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  background: color-mix(in srgb, var(--surface-2) 42%, var(--surface));
}

.admin-main .admin-question-item__identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.admin-main .admin-question-item__number {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 9px;
  color: var(--primary-strong);
  background: var(--primary-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .035em;
  line-height: 1;
  text-transform: uppercase;
}

.admin-main .admin-question-item__header .badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  font-size: 10px;
  line-height: 1.2;
}

.admin-main .admin-question-item__meta {
  gap: 7px;
  margin: 0;
  padding: 12px 15px 0;
}

.admin-main .admin-question-item__meta > span,
.admin-main .admin-question-item__meta > b {
  max-width: 100%;
  padding: 5px 9px;
  border-color: color-mix(in srgb, var(--border) 88%, transparent);
  background: color-mix(in srgb, var(--surface-2) 42%, var(--surface));
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.admin-main .admin-question-item__stem {
  min-width: 0;
  margin: 11px 15px 0;
  padding: 15px 16px;
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-2) 24%, var(--surface));
}

.admin-main .admin-question-item__stem .question-text {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0;
  text-transform: none;
  text-align: justify;
  text-justify: inter-word;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Semantic question paragraphs. Desktop keeps the requested 1 cm first-line
   indent while very small screens use a proportional guard for readability. */
.question-text > .question-paragraph {
  margin: 0;
  margin-bottom: var(--paragraph-space-after, .72em);
  margin-left: var(--paragraph-left-indent, 0cm);
  line-height: var(--paragraph-line-height, 1.72);
  text-align: var(--paragraph-align, justify);
  text-justify: inter-word;
  text-indent: min(var(--paragraph-first-indent, 1cm), 9vw);
  hyphens: auto;
}

.question-text > .question-paragraph + .question-paragraph {
  margin-top: 0;
}

.question-list {
  display: grid;
  gap: .58em;
  max-width: 82ch;
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}
.question-list__item {
  display: grid;
  grid-template-columns: minmax(2.25em, auto) minmax(0, 1fr);
  gap: .7em;
  margin-left: min(calc(var(--question-list-depth, 0) * 1.45rem), 18vw);
  font-weight: 600;
  line-height: 1.65;
}
.question-list__marker {
  color: var(--primary);
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}
.question-list__content { min-width: 0; overflow-wrap: anywhere; }
.admin-main .admin-question-item__stem .question-list__item { font-weight: 400; }
.question-passage-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
}
.question-passage-context span,
.question-passage-context strong {
  display: inline-flex;
  width: auto;
  margin: 0;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}
.question-passage-context strong { background: var(--surface-2); color: var(--text); }
.question-text--english > .question-paragraph {
  text-align: left !important;
  text-justify: auto;
  text-indent: 0 !important;
  hyphens: none;
  text-wrap: pretty;
}
.auto-equation { white-space: nowrap; }
.auto-equation .auto-equation-fallback {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  overflow-wrap: normal;
}
.auto-equation-fallback sup {
  position: relative;
  top: -.12em;
  font-size: .72em;
  line-height: 0;
}

.admin-main .admin-question-item__stem .question-equation {
  margin-top: 12px;
  overflow-x: auto;
}

.admin-main .admin-question-item__stem .question-media.compact {
  width: min(100%, 520px);
  max-width: 100%;
  margin: 13px 0 0;
}

.admin-main .admin-question-item__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 13px;
  padding: 11px 15px 13px;
  border-top: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
}

.admin-main .admin-question-item__footer > .usage-strip {
  flex: 1 1 260px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 10px;
  line-height: 1.45;
}

.admin-main .admin-question-item__footer > .usage-strip span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-main .admin-question-item__footer > .table-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  grid-template-columns: none;
  min-width: 0;
  margin: 0;
}

.admin-main .admin-question-item__footer > .table-actions > *,
.admin-main .admin-question-item__footer > .table-actions > form,
.admin-main .admin-question-item__footer > .table-actions .btn {
  width: auto;
  min-width: 0;
}

/* v6.3.9-r10 - Mass package editor and blueprint math containment */
.bulk-package-card { margin: 0 0 20px; scroll-margin-top: 96px; }
.bulk-package-form {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) repeat(2, minmax(180px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}
.bulk-package-form > label { min-width: 0; margin: 0; }
.bulk-package-form .bulk-select-all {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
}
.bulk-package-form .bulk-select-all input,
.bulk-question-select input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.bulk-package-note { margin: 11px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.bulk-question-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.bulk-question-select:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.bulk-question-select input:disabled { cursor: not-allowed; }

.mandatory-question > span,
.mandatory-question__preview,
.mandatory-question__preview .question-text,
.mandatory-question__preview .question-paragraph { min-width: 0; max-width: 100%; }
.mandatory-question__preview {
  display: block !important;
  margin: 8px 0;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.mandatory-question__preview .question-equation {
  max-width: 100%;
  margin: 8px 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
}
.mandatory-question__preview .math-display,
.mandatory-question__preview .math-inline,
.mandatory-question__preview mjx-container[jax="SVG"] {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}
.mandatory-question__preview mjx-container[jax="SVG"] > svg { display: block; }

@media (max-width: 900px) {
  .bulk-package-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bulk-package-form > .btn { width: 100%; }
}

@media (max-width: 720px) {
  .admin-main .admin-question-list {
    gap: 12px;
  }

  .admin-main .admin-question-item {
    border-radius: 14px;
  }

  .admin-main .admin-question-item__header,
  .admin-main .admin-question-item__meta {
    padding-left: 13px;
    padding-right: 13px;
  }

  .admin-main .admin-question-item__stem {
    margin-left: 13px;
    margin-right: 13px;
    padding: 13px 14px;
  }

  .admin-main .admin-question-item__stem .question-text {
    font-size: 13.5px;
    line-height: 1.68;
  }

  .admin-main .admin-question-item__footer {
    align-items: stretch;
    padding-left: 13px;
    padding-right: 13px;
  }

  .admin-main .admin-question-item__footer > .usage-strip {
    flex-basis: 100%;
  }

  .admin-main .admin-question-item__footer > .table-actions {
    width: 100%;
  }

  .admin-main .admin-question-item__footer > .table-actions > *,
  .admin-main .admin-question-item__footer > .table-actions > form {
    flex: 1 1 120px;
  }

  .admin-main .admin-question-item__footer > .table-actions .btn {
    width: 100%;
  }

  .bulk-package-form { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .mandatory-list { display: block; max-height: none; overflow: visible; }
  .mandatory-question { margin-bottom: 10px; break-inside: avoid; }
  .mandatory-question__preview { overflow: visible; }
  .mandatory-question__preview .question-equation,
  .mandatory-question__preview .math-display,
  .mandatory-question__preview mjx-container[jax="SVG"] { overflow: visible; }
  .mandatory-question__preview mjx-container[jax="SVG"] > svg { max-width: 100% !important; height: auto; }
}

@media (max-width: 420px) {
  .admin-main .admin-question-panel > .card-body.admin-question-list {
    padding: 11px;
  }

  .admin-main .admin-question-item__identity {
    gap: 6px;
  }

  .admin-main .admin-question-item__number,
  .admin-main .admin-question-item__header .badge {
    min-height: 26px;
  }

  .admin-main .admin-question-item__meta {
    gap: 6px;
  }

  .admin-main .admin-question-item__stem {
    margin-left: 11px;
    margin-right: 11px;
    padding: 12px;
  }

  .admin-main .admin-question-item__footer {
    padding-left: 11px;
    padding-right: 11px;
  }
}
