:root{
  --bg-0: #f8fafc;
  --bg-1: #e0e7ef;
  --bg-2: #cbd5e1;
  --glass-1: rgba(124,58,237,.08);
  --glass-2: rgba(6,182,212,.07);

  --stroke-1: rgba(124,58,237,.13);
  --stroke-2: rgba(6,182,212,.10);

  --txt-1: #1e293b;
  --txt-2: #334155;
  --txt-3: #64748b;

  --viola: #7c3aed;
  --ciano: #06b6d4;
  --ok:    #16a34a;
  --warn:  #f59e0b;
  --err:   #e11d48;

  --radius: 20px;
  --shadow: 0 12px 32px rgba(124,58,237,.08), 0 2px 8px rgba(6,182,212,.06);
}

/* ---------- Futuristic animated background ---------- */
body, html {
  background: linear-gradient(120deg, #f8fafc 0%, #e0e7ef 100%);
  color: var(--txt-2);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  min-height: 100%;
  overflow-x: hidden;
}
body::before {
  content:"";
  position: fixed; inset: -20%;
  background:
    radial-gradient(900px 700px at 85% -10%, rgba(124,58,237,.13), transparent 60%),
    radial-gradient(900px 700px at -10% 20%, rgba(6,182,212,.12), transparent 55%),
    linear-gradient(120deg, rgba(124,58,237,.07) 0%, rgba(6,182,212,.07) 100%);
  filter: blur(60px);
  opacity: 1;
  z-index: -1; pointer-events: none;
  animation: bgMove 18s linear infinite alternate;
}
@keyframes bgMove {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.05) translateY(30px); }
}

/* ---------- Navbar glassy neon ---------- */
.navbar{
  background: rgba(255,255,255,.85)!important;
  backdrop-filter: blur(14px);
  border-bottom: 1.5px solid var(--stroke-2);
  box-shadow: 0 8px 28px rgba(124,58,237,.08);
}
.navbar-brand img {
  max-height:44px;
  /* logo originale, nessun filtro */
}

/* ---------- Tipografia glow ---------- */
h1,h2,h3,h4,h5,h6{
  color: var(--txt-1);
  font-weight: 800;
  text-shadow: 0 0 8px #7c3aed22, 0 0 2px #06b6d422;
  letter-spacing: .5px;
}
p,li,small{ color: var(--txt-2); }
.text-muted, .muted{ color: var(--txt-3)!important; }

/* ---------- Cards / contenitori ---------- */
.card, .card-soft{
  background: linear-gradient(120deg, var(--bg-1) 60%, var(--glass-2) 100%);
  border: 1.5px solid var(--stroke-1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--txt-2);
  transition: box-shadow .18s, border-color .18s;
}


/* ---------- Alert dark leggibili ---------- */
.alert{
  border-radius: var(--radius);
  border: 1.5px solid var(--stroke-1);
  background: linear-gradient(120deg, var(--glass-1), var(--glass-2));
  color: var(--txt-2);
  box-shadow: 0 0 0 2px #06b6d422;
}
.alert-danger{ border-color: #ef4444; box-shadow: 0 0 0 2px #ef444488; }
.alert-warning{ border-color: #f59e0b; box-shadow: 0 0 0 2px #f59e0b88; }
.alert-success{ border-color: #22c55e; box-shadow: 0 0 0 2px #22c55e88; }


/* ---------- Form coerenti ---------- */
.form-control, .form-select{
  background: rgba(255,255,255,.92);
  border: 1.5px solid var(--stroke-2);
  color: var(--txt-2);
  border-radius: 14px;
  box-shadow: 0 0 0 1px #06b6d422;
}
.form-control::placeholder{ color: var(--txt-3); }
.form-control:focus, .form-select:focus{
  background: rgba(124,58,237,.07);
  border-color: var(--viola);
  box-shadow: 0 0 0 .25rem #7c3aed33;
}

/* ---------- Checkbox/radio: checkbox as ON/OFF toggle ---------- */
input[type="radio"]{ accent-color: var(--viola); }

.form-check:not(.form-switch){
  display:flex;
  align-items:center;
  gap:.5rem;
}
.form-check:not(.form-switch) .form-check-input[type="checkbox"]{
  -webkit-appearance:none;
  appearance:none;
  width:2.3em;
  height:1.24em;
  margin-top:0;
  border-radius:999px;
  border:1px solid color-mix(in srgb, var(--viola) 22%, #9aa8bb);
  background-color:#dfe5ee;
  background-image:radial-gradient(circle at .56em 50%, #ffffff .34em, transparent .35em);
  background-repeat:no-repeat;
  box-shadow:none;
  cursor:pointer;
  transition:border-color .16s ease, box-shadow .16s ease, background-color .16s ease, transform .12s ease, background-image .16s ease;
}
.form-check:not(.form-switch) .form-check-input[type="checkbox"]:hover{
  border-color:var(--viola);
  box-shadow:none;
}
.form-check:not(.form-switch) .form-check-input[type="checkbox"]:focus{
  border-color:var(--viola);
  box-shadow:0 0 0 2px rgba(124,58,237,.18);
}
.form-check:not(.form-switch) .form-check-input[type="checkbox"]:checked{
  border-color:var(--viola);
  background-color:color-mix(in srgb, var(--viola) 92%, #ffffff);
  background-image:radial-gradient(circle at calc(100% - .56em) 50%, #ffffff .34em, transparent .35em);
}
.form-check:not(.form-switch) .form-check-input[type="checkbox"]:disabled{
  opacity:.55;
  cursor:not-allowed;
}
.form-check:not(.form-switch) .form-check-label{
  color:var(--txt-2);
  font-weight:600;
  padding-left:.18rem;
  line-height:1.35;
}

/* ---------- Eye tracking settings (admin) ---------- */
.eye-settings-panel{
  border-radius: 16px;
  border: 1.5px solid var(--stroke-1);
  background: linear-gradient(120deg, rgba(124,58,237,.08), rgba(6,182,212,.08));
  padding: 14px;
  height: 100%;
}
.eye-settings-panel + .eye-settings-panel{
  margin-top: 12px;
}
.eye-settings .form-control,
.eye-settings .input-group-text{
  background: rgba(124,58,237,.06);
  border-color: var(--stroke-2);
  color: var(--txt-2);
}
.eye-settings .input-group-text{
  font-weight: 600;
}

/* ---------- Bottoni: neon solid ---------- */
.btn{
  border-radius: 999px;
  border: 1.5px solid var(--stroke-1);
  background: linear-gradient(120deg, rgba(124,58,237,.10), rgba(6,182,212,.07));
  color: var(--txt-1);
  box-shadow: 0 0 0 2px #06b6d422;
  transition: transform .12s, box-shadow .18s, filter .18s;
}
.btn:hover{
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 12px #7c3aed33, 0 0 0 2px #06b6d433;
}
.btn-primary{
  background: linear-gradient(120deg, #3b82f6, #7c3aed);
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px #3b82f688;
  color: #fff;
}
.btn-success{
  background: linear-gradient(120deg, #22c55e, #06b6d4);
  border-color: #22c55e;
  box-shadow: 0 0 0 2px #22c55e88;
  color: #fff;
}
.btn-outline-secondary{ color: var(--txt-2); border-color: var(--stroke-1); }
.btn-outline-danger{ color:#ef4444; border-color:#ef4444; }
.btn-outline-warning{ color:#f59e0b; border-color:#f59e0b; }
.btn-outline-light{
  color: #f8fafc;
  border-color: rgba(248, 250, 252, 0.7);
  background: rgba(248, 250, 252, 0.08);
  box-shadow: 0 0 0 2px rgba(248, 250, 252, 0.12);
}
.btn-outline-light:hover{
  color: #ffffff;
  background: rgba(248, 250, 252, 0.18);
  box-shadow: 0 0 12px rgba(248, 250, 252, 0.25), 0 0 0 2px rgba(248, 250, 252, 0.2);
}
.btn-sm i{ vertical-align: -1px; }

/* Bottoni nei tavoli: compatti */
.table .btn{
  border-radius: 12px;
  padding: .38rem .55rem;
  font-size: .88rem;
}

/* ---------- Tabelle WOW ---------- */
.table{
  --bs-table-color: var(--txt-2);
  --bs-table-bg: transparent;
  --bs-border-color: var(--stroke-2);
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(120deg, var(--bg-1), var(--glass-2));
  box-shadow: var(--shadow), 0 0 0 2px #06b6d422;
}
.table thead th{
  position: sticky; top: 0; z-index: 2;
  background: var(--bg-2);
  color: var(--txt-1);
  font-weight: 700;
  border-bottom: 1.5px solid var(--stroke-1);
  letter-spacing:.3px;
  text-shadow: 0 0 6px #7c3aed11;
}
.table td, .table th{
  vertical-align: middle;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--stroke-2);
}
.table tbody tr:nth-child(odd){ background: rgba(124,58,237,.02); }
.table-hover tbody tr:hover{
  background: rgba(124,58,237,.09);
  box-shadow: inset 0 0 0 9999px rgba(124,58,237,.05);
}

/* colonne utility già presenti */
.col-corretta { width: 140px; }
.col-actions  { width: 180px; }

/* ---------- Opzioni risposta (studente/ssa) ---------- */
#exam-content .card{ --accent: #22c55e; }
.answer-option{
  display:flex; align-items:center; gap:.7rem;
  padding:1rem 1.2rem;
  background: rgba(255,255,255,.65);
  border:1.5px solid var(--stroke-1);
  border-left-width: 4px;
  border-radius: 14px;
  color: var(--txt-2);
  cursor: pointer;
  user-select: none;
  transition: border-color .15s, background .15s, transform .08s, box-shadow .15s;
  box-shadow: 0 0 0 2px #06b6d422;
}
.answer-option:hover{
  border-color: var(--accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 30%, transparent);
}
.answer-option.active{
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, #ffffff 82%);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent), 0 0 18px color-mix(in srgb, var(--accent) 35%, transparent);
}
.answer-option input{ display:none; }
.answer-option span{ line-height: 1.35; }

/* ---------- Urgent question ---------- */
#exam-content .card{
  background: color-mix(in srgb, var(--accent) 8%, #ffffff 92%);
}
#exam-content .card.ok{
  border-color:#22c55e !important;
  box-shadow: 0 0 0 1px rgba(34,197,94,.18), 0 0 12px rgba(34,197,94,.2);
}
#exam-content .card.warn{
  border-color:#f97316 !important;
  box-shadow: 0 0 0 2px rgba(249,115,22,.24), 0 8px 18px rgba(249,115,22,.18);
  background: #fff4e5;
}
#exam-content .card.urgent{
  border-color:#fca5a5 !important;
  box-shadow: 0 0 0 2px rgba(248,113,113,.3), 0 10px 22px rgba(248,113,113,.18);
  background: #fef2f2;
}

/* ---------- Timer bar neon ---------- */
#exam-content .timer-bar{
  height:20px;
  border-radius:999px;
  background: rgba(15,23,42,.08);
  overflow:hidden;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent), 0 0 14px color-mix(in srgb, var(--accent) 18%, transparent);
  position: relative;
}
#exam-content .timer-fill{
  height:100%; width:100%;
  background: var(--accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 30%, transparent);
  transition: width .2s linear;
}
#exam-content .timer-label{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: .04em;
  font-size: .78rem;
  color: #0f172a;
  text-shadow: 0 1px 10px rgba(255,255,255,.85), 0 0 2px rgba(255,255,255,.95);
  pointer-events: none;
}

/* ---------- Take buttons ---------- */
#exam-content .btn-exam{
  background: color-mix(in srgb, var(--accent) 28%, #ffffff 72%);
  border-color: var(--accent);
  color: var(--txt-1);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent), 0 8px 18px color-mix(in srgb, var(--accent) 30%, transparent);
  font-weight: 700;
}
#exam-content .btn-exam:hover{
  background: color-mix(in srgb, var(--accent) 36%, #ffffff 64%);
}
#exam-content .btn-skip{
  border-color: color-mix(in srgb, var(--accent) 40%, #64748b 60%);
  color: var(--txt-2);
  background: transparent;
  box-shadow: none;
}
#exam-content .btn-skip:hover{
  background: color-mix(in srgb, var(--accent) 8%, #ffffff 92%);
}

/* ---------- Summary WOW ---------- */
.exam-summary{
  background: linear-gradient(135deg, rgba(124,58,237,.10), rgba(6,182,212,.08));
  border: 1.5px solid rgba(124,58,237,.18);
  box-shadow: 0 18px 40px rgba(124,58,237,.15), 0 6px 18px rgba(6,182,212,.12);
}
.summary-hero{
  display:flex; align-items:center; justify-content:space-between; gap:1.2rem;
  padding-bottom: 1rem; border-bottom: 1px dashed rgba(124,58,237,.25);
}
.summary-badge{
  display:inline-flex; align-items:center; gap:.5rem;
  font-size:.75rem; font-weight:700; letter-spacing:.12em;
  text-transform:uppercase;
  padding:.35rem .7rem; border-radius:999px;
  background: rgba(124,58,237,.15);
  border:1px solid rgba(124,58,237,.35);
}
.summary-h1{
  font-size:1.6rem; margin:.35rem 0 .15rem 0;
}
.summary-sub{
  color: var(--txt-3);
}
.summary-grade{
  min-width:180px;
  text-align:center;
  border-radius: 16px;
  padding: .8rem 1rem;
  border: 1.5px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 8px 18px rgba(15,23,42,.08);
}
.summary-grade.grade-ok{
  background: color-mix(in srgb, var(--ok) 18%, #ffffff 82%);
  border-color: color-mix(in srgb, var(--ok) 45%, #ffffff 55%);
}
.summary-grade.grade-fail{
  background: color-mix(in srgb, var(--err) 18%, #ffffff 82%);
  border-color: color-mix(in srgb, var(--err) 45%, #ffffff 55%);
}
.grade-label{ font-size:.75rem; letter-spacing:.1em; text-transform:uppercase; color:var(--txt-3); }
.grade-value{ font-size:2.2rem; font-weight:800; color:var(--txt-1); }
.grade-state{ font-size:.85rem; font-weight:700; color:var(--txt-2); }

.summary-grid{
  display:grid; gap:.8rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 1rem 0;
}
.summary-card{
  border-radius: 14px;
  padding: .8rem .9rem;
  background: rgba(255,255,255,.7);
  border: 1.5px solid rgba(124,58,237,.12);
  box-shadow: 0 8px 16px rgba(124,58,237,.08);
}
.summary-k{ font-size:.8rem; color:var(--txt-3); text-transform:uppercase; letter-spacing:.06em; }
.summary-v{ font-size:1.2rem; font-weight:800; color:var(--txt-1); }

.summary-penalties{
  display:grid; gap:.6rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.penalty{
  padding:.7rem .9rem;
  border-radius: 12px;
  background: rgba(255,255,255,.65);
  border: 1.5px solid rgba(6,182,212,.12);
  display:flex; justify-content:space-between; align-items:center;
}
.summary-footer{
  margin-top: 1rem;
  text-align:center;
  color: var(--txt-3);
}

/* ---------- Code & util ---------- */
code{
  background: rgba(124,58,237,.09);
  border: 1.5px solid var(--stroke-1);
  color: var(--txt-1);
  padding:.18rem .38rem;
  border-radius:10px;
  font-weight: 600;
  text-shadow: 0 0 6px #7c3aed11;
}
small{ color: var(--txt-3); }

/* ---------- Eye tracking (calibrazione) ---------- */
.eye-overlay{
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.eye-overlay-card{
  position: relative;
  z-index: 2;
  max-width: 700px;
  width: min(92vw, 560px);
  padding: 24px;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.95);
  border: 1.5px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
  text-align: center;
  color: #e2e8f0;
}
.eye-title{
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: .35rem;
}
.eye-text{
  color: #cbd5f5;
  margin-bottom: .35rem;
}
.eye-status{
  color: #94a3b8;
  font-size: .95rem;
  margin-bottom: .35rem;
}
.eye-progress{
  font-size: .95rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: .9rem;
}
.eye-actions{
  display: flex;
  justify-content: center;
}
.eye-modal{
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
}
.eye-modal-card{
  width: min(92vw, 520px);
  padding: 22px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  border: 1.5px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.65);
  text-align: center;
  color: #e2e8f0;
}
.eye-stage{
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
}
.eye-dot{
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid #fff;
  background: #22d3ee;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.95);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  z-index: 3;
}
.eye-dot.hidden{
  opacity: 0;
  pointer-events: none;
}
.eye-dot.armed{
  background: #22c55e;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.95), 0 0 0 10px rgba(34, 197, 94, 0.25);
}
.eye-dot.ready{
  background: #10b981;
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.95), 0 0 0 12px rgba(16, 185, 129, 0.35);
  transform: translate(-50%, -50%) scale(1.06);
}
.eye-dot.verify{
  background: #38bdf8;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.95);
}
.eye-dot.explode{
  animation: eyeExplode .35s ease-out forwards;
}
.eye-cursor{
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(248, 250, 252, 0.9);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.9);
  background: rgba(56, 189, 248, 0.25);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  z-index: 4;
}
.eye-notice{
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: #f8fafc;
  padding: 24px;
  z-index: 5;
}
.eye-notice-title{
  font-size: 1.35rem;
  font-weight: 800;
}
.eye-notice-text{
  max-width: 520px;
  font-size: 1rem;
  color: #cbd5f5;
}
.eye-fixation{
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #e2e8f0;
  pointer-events: none;
  text-shadow: 0 0 6px rgba(15, 23, 42, 0.8);
}
.eye-fixation.above{
  top: auto;
  bottom: calc(100% + 12px);
}
.eye-fixation-bar{
  width: 68px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
  box-shadow: inset 0 0 6px rgba(15, 23, 42, 0.5);
}
.eye-fixation-fill{
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e 0%, #38bdf8 100%);
  transition: width 0.08s linear;
}
.eye-fixation-label{
  font-weight: 700;
  letter-spacing: 0.02em;
}
#webgazerVideoFeed,
#webgazerFaceFeedbackBox{
  display: none !important;
}
@keyframes eyeExplode{
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

/* ---------- Eye tracking (monitoraggio) ---------- */
.gaze-shade{
  position: fixed;
  inset: 0;
  z-index: 10020;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.gaze-alert{
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid #f59e0b;
  border-radius: 18px;
  padding: 22px 26px;
  text-align: center;
  color: #f8fafc;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.5);
}
.gaze-alert-title{
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: .4rem;
  color: #fbbf24;
}
.gaze-alert-msg{
  font-size: 1rem;
  margin-bottom: .4rem;
}
.gaze-alert-count{
  font-size: .9rem;
  color: #f1f5f9;
}
.gaze-debug-layer{
  position: fixed;
  inset: 0;
  z-index: 2050;
  pointer-events: none;
}
.gaze-debug-cursor{
  border-color: rgba(14, 165, 233, 0.9);
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.8);
  background: rgba(14, 165, 233, 0.25);
}
.gaze-roi-debug{
  position: fixed;
  border: 2px solid #ef4444;
  border-radius: 18px;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
  pointer-events: none;
  z-index: 2051;
}
/* === FIX "banda sotto" — appendi in fondo al tuo style.css === */

/* 1) html e body condividono lo stesso background, no-repeat, fixed */
html, body{
  background:
    linear-gradient(120deg, #f8fafc 0%, #e0e7ef 100%) fixed !important;
  background-color: #e0e7ef;        /* fallback identico al colore finale */
  background-repeat: no-repeat !important;
  min-height: 100vh;                 /* copri sempre l'intero viewport */
}

/* 2) Il layer decorativo copre SEMPRE anche oltre il fondo */
body::before{
  position: fixed;
  inset: -40vh -40vw -40vh -40vw;    /* più grande del viewport in ogni direzione */
  transform-origin: 50% 50%;
  will-change: transform;
}

/* 3) Se usi wrapper “full-page”, evita che abbiano background propri */
main, .page, .wrapper{
  background: transparent !important;
}

/* 4) Se vedi ancora un leggero stacco su alcuni browser, forza anche html:before */
html::before{
  content: "";
  position: fixed; inset: 0;
  background: transparent;           /* placeholder per forzare la composizione */
  pointer-events: none;
}

/* =========================================================
   Exams user area as /app module (flat, Apple-like)
   ========================================================= */
body.exams-module-page {
  --gf-footer-gap: 24px;
  --exam-sticky-panel-space: 116px;
  --exam-sticky-panel-gap: 0px;
  background: var(--app-bg) !important;
  color: var(--app-text) !important;
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif !important;
}
body.exams-module-page .container-app.py-3 {
  padding-top: calc(var(--student-header-offset) + 24px) !important;
}
body.exams-module-page::before {
  display: none !important;
}
.exams-module-page .card,
.exams-module-page .card-soft {
  background: #fff;
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: inset 0 0 0 1px rgba(128,144,164,.09) !important;
  color: #1c2f47 !important;
}
/* Override neon color-mix background (driven by JS --accent) */
body.exams-module-page #exam-content .card,
body.exams-module-page #exam-content .card-soft {
  background: #fff;
}
body.exams-module-page #exam-content .card.warn:not(.urgent),
body.exams-module-page #exam-content .card-soft.warn:not(.urgent),
body.exams-module-page #questionCard.warn:not(.urgent) {
  background: #fff4e5 !important;
  box-shadow: inset 0 0 0 2px rgba(249,115,22,.42) !important;
}
.exams-module-page .alert {
  background: #fff !important;
  border-width: 1px !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}
.exams-module-page .alert-danger {
  background: rgba(220,38,38,.04) !important;
  color: #7f1d1d !important;
  border-color: rgba(220,38,38,.28) !important;
}
.exams-module-page .alert-warning {
  background: rgba(202,138,4,.05) !important;
  color: #6b3f07 !important;
  border-color: rgba(202,138,4,.28) !important;
}
.exams-module-page .form-control,
.exams-module-page .form-select {
  background: #fff !important;
  border: 1px solid #d7e0ec !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  color: #1b2f47 !important;
}
.exams-module-page .form-control:focus,
.exams-module-page .form-select:focus {
  border-color: #adc4df !important;
  box-shadow: 0 0 0 .16rem rgba(10,132,255,.14) !important;
}
.exams-module-page .btn {
  border-radius: 12px !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}
.exams-module-page .btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(17,35,58,.08) !important;
}
.exams-module-page .btn-primary,
.exams-module-page .btn-success {
  background: #0b76ff !important;
  color: #fff !important;
}
.exams-module-page .btn-outline-secondary {
  background: #f1f5fb !important;
  color: #15233a !important;
  border: 1px solid #d7e0ec !important;
}
.exams-module-page .btn-outline-danger {
  background: #fdeceb !important;
  color: #a92d2d !important;
  border: 1px solid #f6d3d3 !important;
}
.exams-module-page .btn-outline-warning {
  background: #fff6e9 !important;
  color: #9a5f06 !important;
  border: 1px solid #fde2ba !important;
}
.exams-module-page .table {
  background: #fff !important;
  border: 1px solid #e2e9f3 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}
.exams-module-page .table thead th {
  background: #f8fbff !important;
  color: #5f728b !important;
}
.exams-module-page .table-hover tbody tr:hover {
  background: #f3f8ff !important;
  box-shadow: none !important;
}
.exams-module-page #exam-content .timer-bar {
  height: 10px;
  background: #e8eff9;
  box-shadow: none;
}
.exams-module-page #exam-content .timer-fill {
  background: linear-gradient(90deg, #6ea8ff 0%, #0b76ff 100%);
  box-shadow: none;
}
/* ---------- Timer moderno ---------- */
.exams-module-page .exam-timer-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.exams-module-page .exam-timer-head { display: none; }
.exams-module-page .exam-timer-v {
  font-size: .95rem;
  font-weight: 800;
  color: #1c2f47;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  line-height: 1;
  transition: color .3s;
}
.exams-module-page .exam-timer-track {
  height: 5px !important;
  background: #eaecf0 !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  box-shadow: none !important;
}
.exams-module-page #exam-content .timer-fill {
  background: #0b76ff;
  box-shadow: none !important;
}
/* Layout righe: posizione domanda + countdown affiancati */
.exams-module-page .exam-q-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.exams-module-page .exam-q-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.exams-module-page .exam-q-pos {
  font-size: .82rem;
  font-weight: 600;
  color: #6b7f99;
  letter-spacing: .01em;
}
.exams-module-page .exam-sticky-panel {
  position: fixed;
  top: calc(var(--student-header-offset) + var(--exam-sticky-panel-gap));
  left: 50%;
  transform: translateX(-50%);
  z-index: 72;
  width: min(calc(100vw - 24px), 640px);
  padding: 12px 16px 10px;
  border: 1px solid rgba(217,226,238,.92);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.985) 0%, rgba(247,250,255,.985) 100%);
  box-shadow: 0 10px 24px rgba(15,31,56,.08);
  backdrop-filter: blur(14px);
  display: grid;
  gap: 8px;
}
.exams-module-page .exam-sticky-panel__identity {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.exams-module-page .exam-sticky-panel__session {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.exams-module-page .exam-sticky-panel__session-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .01em;
  color: #162334;
}
.exams-module-page .exam-sticky-panel__session-date {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f3f8ff;
  border: 1px solid #d8e6f8;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .08em;
  color: #486a93;
  text-transform: uppercase;
}
.exams-module-page .exam-sticky-panel__matricola {
  flex: 0 1 42%;
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: .18em;
  color: #156b9e;
  text-transform: uppercase;
  text-align: right;
}
.exams-module-page .exam-sticky-panel__meta {
  display: grid;
  gap: 5px;
  padding-top: 4px;
  border-top: 0;
}
.exams-module-page .exam-sticky-panel .exam-q-top {
  align-items: center;
  gap: 12px;
}
.exams-module-page .exam-sticky-panel .exam-q-pos {
  font-size: .75rem;
  font-weight: 700;
  color: #7387a2;
  white-space: nowrap;
}
.exams-module-page .exam-sticky-panel .exam-q-pos strong {
  color: #0f172a;
  font-weight: 800;
}
.exams-module-page .exam-sticky-panel .exam-timer-v {
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.exams-module-page .exam-sticky-panel .exam-timer-box {
  gap: 4px;
}
.exams-module-page .exam-sticky-panel .exam-timer-track {
  height: 4px !important;
  background: #e7eef8 !important;
}
.exams-module-page .exam-sticky-panel .exam-timer-box.is-warn .exam-timer-v {
  color: #b45309;
}
.exams-module-page .exam-sticky-panel .exam-timer-box.is-urgent .exam-timer-v {
  color: #dc2626;
}
.exams-module-page .exam-sticky-panel-spacer {
  height: var(--exam-sticky-panel-space);
}
/* Timer inferiore: separatore visivo */
.exams-module-page .exam-timer-bottom {
  padding-top: 10px;
  border-top: 1px solid #eaecf0;
  margin-top: 4px;
}
/* Bottoni esame: scope allargato (coprono fullscreen-gate e block-screen) */
.exams-module-page .btn-exam {
  background: #0b76ff !important;
  color: #fff !important;
  border: 0 !important;
}
.exams-module-page .btn-skip {
  background: #f1f5fb !important;
  color: #1b2f47 !important;
  border: 1px solid #d7e0ec !important;
}
/* Stato urgente (ultimi 30 s): box domanda rosso chiaro, senza lampeggio */
#questionCard.urgent .exam-timer-v {
  color: #dc2626 !important;
  animation: none;
}
.exams-module-page .exam-timer-box.is-urgent .timer-fill {
  animation: none;
}
/* Card: sfondo rosso chiaro a 30 s */
#questionCard.urgent {
  background: #fef2f2 !important;
  box-shadow: inset 0 0 0 2px rgba(239,68,68,.44) !important;
  animation: none !important;
}
.exams-module-page #questionCard.urgent .btn-exam {
  background: #0b76ff !important;
  border-color: #0b76ff !important;
  color: #fff !important;
}
.exams-module-page #questionCard.urgent .btn-exam:hover {
  background: #095dcc !important;
  border-color: #095dcc !important;
}
.exams-module-page #questionCard.urgent .answer-option.active {
  background: #0b76ff !important;
  border-color: #0b76ff !important;
  color: #fff !important;
  box-shadow: 0 0 0 2px rgba(11,118,255,.22) !important;
}
.exams-module-page #questionCard.urgent .answer-option.active span {
  color: #fff !important;
}
@media (max-width: 760px) {
  body.exams-module-page {
    --exam-sticky-panel-space: 106px;
    --exam-sticky-panel-gap: 0px;
  }
  .exams-module-page .exam-sticky-panel {
    top: calc(var(--student-header-offset) + var(--exam-sticky-panel-gap));
    width: min(calc(100vw - 20px), 640px);
    padding: 11px 12px 9px;
    border-radius: 0 0 16px 16px;
    gap: 7px;
  }
  .exams-module-page .exam-sticky-panel__session {
    gap: 6px;
  }
  .exams-module-page .exam-sticky-panel__session-title {
    font-size: .76rem;
  }
  .exams-module-page .exam-sticky-panel__session-date {
    padding: 3px 7px;
    font-size: .62rem;
  }
  .exams-module-page .exam-sticky-panel__matricola {
    flex-basis: 45%;
    max-width: 45%;
    font-size: .84rem;
    letter-spacing: .14em;
  }
  .exams-module-page .exam-sticky-panel__meta {
    padding-top: 3px;
    gap: 4px;
  }
  .exams-module-page .exam-sticky-panel .exam-q-pos {
    font-size: .69rem;
  }
  .exams-module-page .exam-sticky-panel .exam-timer-v {
    font-size: .75rem;
  }
}

/* Testo domanda formattato (HTML sicuro prodotto dall'editor esami) */
.exam-question-richtext{overflow-wrap:anywhere}
.exam-question-richtext p,.exam-question-richtext div,.exam-question-richtext blockquote,.exam-question-richtext li{white-space:pre-wrap}
.exam-question-richtext p{margin:0 0 .72em}
.exam-question-richtext p:last-child{margin-bottom:0}
.exam-question-richtext h2,.exam-question-richtext h3,.exam-question-richtext h4{margin:.5em 0 .35em;line-height:1.3;font-weight:800;color:inherit}
.exam-question-richtext h2{font-size:1.34em}
.exam-question-richtext h3{font-size:1.18em}
.exam-question-richtext h4{font-size:1.06em}
.exam-question-richtext ul,.exam-question-richtext ol{margin:.45em 0 .75em;padding-left:1.65em;text-align:left}
.exam-question-richtext li+li{margin-top:.22em}
.exam-question-richtext blockquote{margin:.55em 0;padding:.1em 0 .1em .85em;border-left:3px solid #8fa9c5;color:#52677e}
/* .btn-exam e .btn-skip ora gestiti dalla regola globale sopra */
.exams-module-page .summary-badge {
  background: #edf4ff;
  border: 1px solid #d9e8ff;
  color: #2f5f95;
}
.exams-module-page .summary-grade.grade-ok {
  background: #ecf8ef;
  border-color: #cfead9;
}
.exams-module-page .summary-grade.grade-fail {
  background: #fdeeee;
  border-color: #f6d1d1;
}

/* Exams pages: keep content large and aligned with header/footer width */
.exams-module-page .row.justify-content-center {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.exams-module-page .row.justify-content-center > [class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Headings: remove neon text-shadow */
.exams-module-page h1,.exams-module-page h2,.exams-module-page h3,
.exams-module-page h4,.exams-module-page h5,.exams-module-page h6 {
  text-shadow: none !important;
}

/* Answer options — Apple style */
.exams-module-page .answer-option {
  background: #fff !important;
  border: 1px solid #d7e0ec !important;
  color: #1c2f47 !important;
  box-shadow: none !important;
}
.exams-module-page .answer-option:hover {
  background: #f5f9ff !important;
  border-color: #9fbdf2 !important;
  box-shadow: none !important;
}
.exams-module-page .answer-option.active {
  background: #0b76ff !important;
  border-color: #0b76ff !important;
  color: #fff !important;
  box-shadow: 0 0 0 2px rgba(11,118,255,.22) !important;
}
.exams-module-page .answer-option.active span {
  color: #fff !important;
}

/* Exam summary card — Apple style */
.exams-module-page .exam-summary {
  background: #fff !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px rgba(128,144,164,.09), 0 4px 12px rgba(15,31,56,.05), 0 10px 28px rgba(15,31,56,.07) !important;
}
.exams-module-page .summary-hero {
  border-bottom-color: #e8eff9 !important;
}
.exams-module-page .summary-card {
  background: #f0f6ff !important;
  border: 1px solid #dce9f8 !important;
  box-shadow: none !important;
}
.exams-module-page .penalty {
  background: #f0f6ff !important;
  border: 1px solid #dce9f8 !important;
}

/* Code — clean */
.exams-module-page code {
  background: #f0f4fa !important;
  border-color: #d7e0ec !important;
  text-shadow: none !important;
}

/* Report view (resoconto.php) — Apple style */
.exams-module-page .report-hero {
  background: linear-gradient(135deg, #eef5ff 0%, #f4fbfd 100%) !important;
  border: 1px solid #cce0f8 !important;
  box-shadow: none !important;
}
.exams-module-page .report-card {
  background: #f0f6ff !important;
  border: 1px solid #dce9f8 !important;
}
.exams-module-page .report-chip {
  background: #f0f6ff !important;
  border: 1px solid #dce9f8 !important;
}
.exams-module-page .report-item {
  border: 1px solid #e1e8f2 !important;
  background: #fafcff !important;
}
.exams-module-page .report-item.err {
  background: rgba(220,38,38,.04) !important;
  border-color: rgba(220,38,38,.18) !important;
}
.exams-module-page .report-item.nr {
  background: rgba(234,88,12,.04) !important;
  border-color: rgba(234,88,12,.15) !important;
}
.exams-module-page .report-item.ok {
  background: rgba(22,163,74,.04) !important;
  border-color: rgba(22,163,74,.18) !important;
}
.exams-module-page .report-answers {
  border-top-color: #e1e8f2 !important;
}

/* =========================================================
   Exams index — access card (Apple-aligned)
   ========================================================= */
.ei-wrap {
  max-width: 400px;
  margin: 20px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ei-wrap.ei-wrap-wide {
  width: 100%;
  max-width: none;
}

.ei-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06), 0 8px 32px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04);
  padding: 32px 28px 28px;
}

@media (max-width: 440px) {
  .ei-card { padding: 24px 18px 22px; border-radius: 18px; }
}

.ei-head {
  text-align: center;
  margin-bottom: 22px;
}

.ei-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #edf3ff;
  color: #1a5bc4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.ei-title {
  margin: 0 0 5px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1d1d1f;
  text-shadow: none;
  letter-spacing: -0.01em;
}

.ei-sub {
  margin: 0;
  font-size: 0.83rem;
  color: #6e6e73;
  font-weight: 500;
  line-height: 1.45;
  text-shadow: none;
}

.ei-form-grid {
  display: grid;
  gap: 12px;
}

.ei-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #33435a;
  margin-bottom: 5px;
}

.ei-field .form-control {
  border: 1px solid #d2d5da !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #1d1d1f !important;
  font-family: inherit !important;
  font-size: 0.93rem !important;
  font-weight: 500 !important;
  padding: 10px 13px !important;
  box-shadow: none !important;
}

.ei-field .form-control::placeholder { color: #aeaeb2 !important; }

.ei-field .form-control:focus {
  border-color: #0071e3 !important;
  box-shadow: 0 0 0 3px rgba(0,113,227,.14) !important;
  background: #fff !important;
}

.ei-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ei-actions {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

@media (min-width: 720px) {
  .ei-wrap.ei-wrap-wide .ei-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

.ei-btn-primary {
  width: 100%;
  border: 0 !important;
  border-radius: 10px !important;
  background: #0071e3 !important;
  color: #fff !important;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 11px 16px;
  cursor: pointer;
  transition: background .14s !important;
  box-shadow: none !important;
  transform: none !important;
}

.ei-btn-primary:hover { background: #0064ca !important; transform: none !important; }
.ei-btn-primary:active { background: #0058b3 !important; }

.ei-btn-primary.ei-btn-muted {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  background: #edf1f5 !important;
  color: #505a67 !important;
}

.ei-btn-primary.ei-btn-muted:hover { background: #e2e7ed !important; }
.ei-btn-primary.ei-btn-muted:active { background: #d8dee6 !important; }

.ei-btn-secondary {
  width: 100%;
  border: 0 !important;
  border-radius: 10px !important;
  background: #f1f5fb !important;
  color: #1d1d1f !important;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 16px;
  cursor: pointer;
  transition: background .14s !important;
  box-shadow: none !important;
  transform: none !important;
}

.ei-btn-secondary:hover { background: #e8eff8 !important; transform: none !important; }

.ei-btn-center {
  width: auto !important;
  padding-inline: 28px;
}

.ei-note {
  font-size: 0.79rem;
  color: #aeaeb2;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  margin: 0;
}

/* Access error alert */
.ei-alert-warning {
  border-radius: 16px;
  background: #fffbf0;
  border: 1px solid #fde8a8;
  padding: 16px 18px;
}

.ei-alert-warning .ei-alert-title {
  margin: 0 0 5px;
  font-size: 0.93rem;
  font-weight: 700;
  color: #9a6200;
  text-shadow: none;
}

.ei-alert-warning .ei-alert-body {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #7c4f00;
  text-shadow: none;
}

/* External network alert */
.ei-alert-danger {
  border-radius: 16px;
  background: #fff5f5;
  border: 1px solid #f6d3d3;
  padding: 18px 20px;
}

.ei-alert-danger .ei-alert-title {
  margin: 0 0 8px;
  font-size: 0.93rem;
  font-weight: 700;
  color: #b92a2a;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: none;
}

.ei-alert-danger .ei-alert-body {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #7a1919;
  text-align: justify;
  text-shadow: none;
}

/* Fullscreen gate card */
.ei-gate-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06), 0 8px 32px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04);
  padding: 28px 24px;
  text-align: center;
}

.ei-gate-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1d1d1f;
  text-shadow: none;
  letter-spacing: -0.01em;
}

.ei-gate-msg {
  margin: 0 0 20px;
  font-size: 0.86rem;
  color: #6e6e73;
  font-weight: 500;
  line-height: 1.5;
  text-shadow: none;
}

/* Footer: mantiene il full-width scuro condiviso con uno stacco leggermente piu compatto negli exams. */
.exams-module-page .app-footer,
.exams-module-page .gf-legal-footer {
  margin-top: var(--gf-footer-gap, 24px) !important;
}

/* Carosello immagini statiche nelle domande */
.exams-module-page .question-image-carousel {
  width: min(100%, 920px);
  overflow: hidden;
  border: 1px solid #d9e3ef;
  border-radius: 14px;
  background: #fff;
}
.exams-module-page .question-image-carousel__viewport {
  position: relative;
  display: flex;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #8297af #0a111b;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  background: #05090f;
}
.exams-module-page .question-image-carousel__viewport::-webkit-scrollbar {
  height: 6px;
}
.exams-module-page .question-image-carousel__viewport::-webkit-scrollbar-track {
  background: #0a111b;
}
.exams-module-page .question-image-carousel__viewport::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #8297af;
}
.exams-module-page .question-image-carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.exams-module-page .question-image-carousel .question-image-carousel__trigger {
  display: flex;
  width: 100%;
  min-height: 230px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #05090f;
  box-shadow: none;
  cursor: zoom-in;
  touch-action: pan-x pan-y;
}
.exams-module-page .question-image-carousel .question-image-carousel__image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(68vh, 640px);
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  touch-action: pan-x pan-y;
  -webkit-user-drag: none;
}
.exams-module-page .question-image-carousel .question-image-carousel__trigger:hover .question-image-carousel__image {
  transform: none;
  box-shadow: none;
}
.exams-module-page .question-image-carousel__controls {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-top: 1px solid #e3eaf3;
  background: #fff;
}
.exams-module-page .question-image-carousel__button {
  display: inline-flex;
  width: 34px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #ccd9e7;
  border-radius: 8px;
  background: #fff;
  color: #31506f;
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.exams-module-page .question-image-carousel__button:hover {
  border-color: #91acd0;
  background: #f3f7fc;
  color: #0d6efd;
}
.exams-module-page .question-image-carousel__button:focus-visible,
.exams-module-page .question-image-carousel__viewport:focus-visible,
.exams-module-page .question-image-carousel__trigger:focus-visible {
  outline: 2px solid rgba(13,110,253,.42);
  outline-offset: -2px;
}
.exams-module-page .question-image-carousel__counter {
  justify-self: center;
  color: #52677e;
  font-size: .75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.exams-module-page .question-image-carousel__help {
  margin: 0;
  padding: 0 12px 10px;
  background: #fff;
  color: #66798e;
  font-size: .7rem;
  line-height: 1.35;
  text-align: center;
}
@media (max-width: 600px) {
  .exams-module-page .question-image-carousel {
    border-radius: 12px;
  }
  .exams-module-page .question-image-carousel .question-image-carousel__trigger {
    min-height: 190px;
  }
  .exams-module-page .question-image-carousel .question-image-carousel__image {
    max-height: 58vh;
  }
  .exams-module-page .question-image-carousel__help {
    padding: 0 10px 9px;
    font-size: .68rem;
  }
}
