:root {
  --navy: #0b4f6c;
  --navy-dark: #073b52;
  --teal: #0f8a8a;
  --teal-light: #dff5f3;
  --blue: #2563eb;
  --green: #138a58;
  --red: #c33f4c;
  --amber: #b7791f;
  --ink: #12212b;
  --muted: #657680;
  --line: #dfe7eb;
  --surface: #fff;
  --bg: #f4f7f9;
  --shadow: 0 14px 35px rgba(22, 48, 65, .08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { font-family: Tahoma, Arial, sans-serif; color: var(--ink); background: var(--bg); }
body { margin: 0; min-height: 100vh; font-size: 17px; line-height: 1.65; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon { display: inline-grid; place-items: center; flex: 0 0 auto; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

.app-layout { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 0 0 auto;
  width: 280px;
  background: linear-gradient(180deg, var(--navy-dark), #052f43);
  color: #fff;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 13px; padding: 0 10px 28px; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center;
  color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.17);
}
.brand-mark .icon, .brand-mark svg { width: 27px; height: 27px; }
.brand strong { font-size: 25px; display: block; line-height: 1.2; }
.brand small { display: block; font-size: 12px; opacity: .72; margin-top: 4px; }
.sidebar nav { display: grid; gap: 7px; }
.sidebar nav a {
  display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 12px;
  color: rgba(255,255,255,.8); transition: .18s ease;
}
.sidebar nav a:hover, .sidebar nav a.active { color: #fff; background: rgba(255,255,255,.12); }
.sidebar nav a.active { box-shadow: inset -3px 0 #64dfd4; }
.sidebar nav .icon { font-size: 20px; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 14px; }
.secure-note { display: flex; gap: 11px; align-items: center; padding: 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; background: rgba(255,255,255,.06); }
.secure-note strong, .secure-note small { display: block; }
.secure-note small { font-size: 11px; opacity: .65; }
.version { font-size: 12px; opacity: .5; text-align: center; }

.main { margin-right: 280px; min-height: 100vh; }
.topbar {
  min-height: 94px; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px 34px; position: sticky; top: 0; z-index: 12;
}
.topbar h1 { font-size: 25px; line-height: 1.25; margin: 2px 0 0; }
.eyebrow { color: var(--teal); font-size: 13px; font-weight: 700; }
.user-actions { display: flex; align-items: center; gap: 12px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding-left: 7px; }
.user-chip > b { width: 42px; height: 42px; border-radius: 50%; background: var(--teal-light); color: var(--navy); display: grid; place-items: center; }
.user-chip strong, .user-chip small { display: block; line-height: 1.35; }
.user-chip small { color: var(--muted); font-size: 12px; }
.icon-button, .menu-toggle {
  width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 12px;
  display: grid; place-items: center; color: var(--navy); cursor: pointer;
}
.menu-toggle { display: none; }
.content { padding: 30px 34px 50px; max-width: 1680px; margin: 0 auto; }
.portal-preview-button { white-space: nowrap; }

.alert { padding: 13px 16px; border-radius: 12px; margin-bottom: 20px; font-weight: 700; }
.alert.success { color: #0f6d45; background: #e5f7ee; border: 1px solid #bde7d1; }
.alert.danger { color: #9c2f3a; background: #fff0f1; border: 1px solid #f0c5ca; }

.button {
  border: 0; border-radius: 11px; min-height: 44px; padding: 9px 17px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { color: #fff; background: linear-gradient(135deg, var(--navy), var(--teal)); box-shadow: 0 8px 18px rgba(11,79,108,.18); }
.button.secondary { color: var(--navy); background: #fff; border: 1px solid var(--line); }
.button.light { background: #fff; color: var(--navy); }
.button.ghost-light { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.4); }
.button.danger-outline { color: var(--red); background: #fff; border: 1px solid #efc5c9; }
.button.compact { min-height: 36px; padding: 5px 12px; font-size: 14px; }
.button.wide { width: 100%; }

label { display: grid; gap: 6px; font-weight: 700; }
label > span, .stack-form label > span { font-size: 14px; }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid #ccd8df;
  border-radius: 10px; background: #fff; color: var(--ink); outline: none;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,138,138,.12); }
.stack-form { display: grid; gap: 15px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 7px; }
hr { border: 0; border-top: 1px solid var(--line); width: 100%; }

.welcome-banner, .student-hero {
  border-radius: 24px; color: #fff; padding: 29px 32px; margin-bottom: 25px;
  background:
    radial-gradient(circle at 10% 15%, rgba(98,229,214,.28), transparent 34%),
    linear-gradient(135deg, var(--navy-dark), var(--navy) 55%, var(--teal));
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  box-shadow: var(--shadow);
}
.welcome-banner h2, .student-hero h2 { font-size: clamp(25px, 3vw, 38px); margin: 5px 0; }
.welcome-banner p, .student-hero p { margin: 0; opacity: .84; }
.shield-large { font-size: 88px; opacity: .22; }
.shield-large svg { width: 1em; height: 1em; }
.student-hero { padding: 33px 38px; }
.student-hero .eyebrow { color: #9ff4e9; }
.hero-actions { display: flex; gap: 10px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.final-card {
  min-width: 330px; display: grid; grid-template-columns: repeat(3,1fr); gap: 7px;
  padding: 20px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1); border-radius: 18px;
  text-align: center; backdrop-filter: blur(8px);
}
.final-card strong { font-size: 32px; line-height: 1; }
.final-card span { font-size: 12px; opacity: .76; grid-row: 2; }

.student-portal-page { background: #f5f9fa; color: var(--ink); }
.student-portal-header {
  min-height: 82px; padding: 13px max(28px, calc((100vw - 1450px) / 2));
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-bottom: 1px solid #dbe8ea; background: rgba(255,255,255,.97);
  position: sticky; top: 0; z-index: 15; backdrop-filter: blur(10px);
}
.student-portal-brand { display: flex; align-items: center; gap: 11px; }
.student-portal-brand > span {
  width: 45px; height: 45px; padding: 10px; display: grid; place-items: center;
  border-radius: 13px; color: #fff; background: #079ba6;
}
.student-portal-brand > span svg { width: 25px; height: 25px; }
.student-portal-brand strong, .student-portal-brand small { display: block; }
.student-portal-brand strong { color: #08747d; font-size: 21px; line-height: 1.2; }
.student-portal-brand small { color: var(--muted); font-size: 12px; }
.student-user-menu { display: flex; align-items: center; gap: 9px; color: #526c74; }
.student-user-menu form { margin: 0; }
.student-portal { max-width: 1450px; margin: 0 auto; padding: 30px 28px 55px; }
.student-portal .student-hero {
  min-height: 270px; padding: 38px 42px; margin-bottom: 20px;
  background: linear-gradient(120deg, #075d68, #078b96 58%, #12a7aa);
  box-shadow: 0 18px 40px rgba(3,101,111,.18);
}
.student-portal .student-hero > div:first-child { max-width: 830px; }
.student-eyebrow { display: inline-block; margin-bottom: 8px; color: #a9edf0; font-size: 13px; font-weight: 700; }
.student-portal .student-hero h1 { margin: 0; color: #fff; font-size: clamp(27px,3vw,40px); line-height: 1.45; }
.student-portal .student-hero p { margin: 9px 0 22px; color: #d0f1f2; font-size: 16px; }
.student-hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.student-hero-actions form { margin: 0; }
.student-main-cta, .student-secondary-cta, .student-answer-setting {
  min-height: 45px; padding: 0 18px; border-radius: 999px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.student-main-cta { border: 0; color: #05636c; background: #fff; cursor: pointer; }
.student-main-cta:disabled { cursor: not-allowed; opacity: .55; }
.student-secondary-cta { color: #fff; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.student-answer-setting { color: #d9f6f7; border: 1px solid rgba(255,255,255,.25); background: rgba(0,50,56,.18); font-size: 13px; }
.student-readiness {
  width: 180px; height: 180px; flex: 0 0 180px; padding: 18px;
  display: grid; place-content: center; border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%; background: rgba(255,255,255,.08); text-align: center;
  box-shadow: inset 0 0 0 10px rgba(255,255,255,.035);
}
.student-readiness strong, .student-readiness span, .student-readiness small { display: block; }
.student-readiness strong { font-size: 37px; line-height: 1.2; }
.student-readiness span { font-size: 13px; font-weight: 700; }
.student-readiness small { max-width: 130px; margin-top: 4px; color: #bce5e7; font-size: 10px; }
.student-summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 20px 0 32px; }
.student-summary-grid article, .student-summary-grid > a {
  min-height: 94px; padding: 17px; display: flex; align-items: center; gap: 13px;
  border: 1px solid #dfe8ec; border-radius: 15px; color: inherit; background: #fff;
  box-shadow: 0 8px 25px rgba(22,48,65,.04);
}
.student-summary-grid > a:hover { border-color: #8dcbd0; transform: translateY(-1px); }
.student-summary-grid > a.disabled { pointer-events: none; opacity: .65; }
.student-summary-grid article > .icon, .student-summary-grid > a > .icon {
  width: 43px; height: 43px; padding: 10px; border-radius: 12px; color: #078f99; background: #e9f8f8;
}
.student-summary-grid strong, .student-summary-grid small { display: block; }
.student-summary-grid strong { color: var(--navy-dark); font-size: 23px; line-height: 1.2; }
.student-summary-grid small { color: var(--muted); font-size: 12px; }
.student-section-head { margin-bottom: 16px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.student-section-head span { color: #079ba6; font-size: 12px; font-weight: 800; }
.student-section-head h2 { margin: 3px 0 0; color: var(--navy-dark); font-size: 25px; }
.student-section-head p { margin: 0; color: var(--muted); font-size: 13px; }
.student-materials-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.student-material-card {
  position: relative; min-height: 250px; padding: 21px; overflow: hidden;
  border: 1px solid #dfe8ec; border-radius: 17px; background: #fff;
  box-shadow: 0 8px 25px rgba(22,48,65,.04);
}
.student-material-card::after {
  content: ""; position: absolute; left: -55px; bottom: -55px; width: 120px; height: 120px;
  border-radius: 50%; background: var(--material-color); opacity: .07; pointer-events: none;
}
.student-material-number {
  position: absolute; top: 17px; left: 17px; width: 30px; height: 30px;
  display: grid; place-items: center; border-radius: 9px; color: var(--muted); background: #f2f6f7; font-size: 12px;
}
.student-material-icon {
  width: 45px; height: 45px; padding: 10px; display: grid; place-items: center;
  border-radius: 12px; color: var(--material-color); background: color-mix(in srgb,var(--material-color) 10%,white);
}
.student-material-card h3 { min-height: 58px; margin: 15px 0 4px; color: var(--navy-dark); font-size: 17px; line-height: 1.7; }
.student-material-card p { margin: 0; color: var(--muted); font-size: 13px; }
.student-material-actions { position: absolute; right: 20px; left: 20px; bottom: 18px; display: flex; gap: 7px; z-index: 1; }
.student-material-actions form { margin: 0; }
.student-start-button, .student-quick-button {
  min-height: 41px; padding: 0 13px; border-radius: 999px; border: 0; font-weight: 700; cursor: pointer;
}
.student-start-button { flex: 1; color: #fff; background: #079ba6; }
.student-start-button:disabled { cursor: not-allowed; color: #8a9aa0; background: #edf2f3; }
.student-quick-button { color: #087f88; border: 1px solid #b7dfe2; background: #f0fbfb; }
.student-material-card.disabled { background: #f7f9fa; filter: grayscale(.35); }
.student-approval-notice, .student-independent-note {
  margin: -12px 0 30px; padding: 17px 19px; display: flex; align-items: center; gap: 13px;
  border: 1px solid #f0d6a4; border-radius: 14px; color: #81510b; background: #fff8e7;
}
.student-approval-notice > .icon, .student-independent-note > .icon { width: 31px; height: 31px; padding: 6px; flex: 0 0 auto; border-radius: 9px; background: #ffedbf; }
.student-approval-notice strong { display: block; }
.student-approval-notice p, .student-independent-note p { margin: 2px 0 0; font-size: 13px; }
.student-independent-note { margin: 28px 0 0; color: #41636a; border-color: #d6e7e9; background: #f3fbfb; }
.student-independent-note > .icon { color: #078f99; background: #e0f3f4; }
.student-history { margin-top: 35px; }
.student-history-table { overflow: auto; border: 1px solid #dfe8ec; border-radius: 15px; background: #fff; box-shadow: 0 8px 25px rgba(22,48,65,.04); }
.student-history-table table { width: 100%; border-collapse: collapse; }
.student-history-table th, .student-history-table td { padding: 14px 17px; border-bottom: 1px solid #e9eff1; text-align: right; }
.student-history-table th { color: var(--muted); background: #f7fafb; font-size: 13px; }
.student-history-table td { color: #435d66; font-size: 14px; }
.student-history-table tr:last-child td { border-bottom: 0; }
.student-history-table td strong, .student-history-table td a { color: #087f88; font-weight: 800; }
.student-exam-dialog {
  width: min(620px,calc(100vw - 28px)); padding: 0; border: 0; border-radius: 20px;
  color: var(--ink); box-shadow: 0 28px 80px rgba(4,45,55,.28);
}
.student-exam-dialog::backdrop { background: rgba(5,35,45,.62); backdrop-filter: blur(3px); }
.student-exam-dialog form > header, .student-exam-dialog form > footer { padding: 20px 23px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.student-exam-dialog form > header { border-bottom: 1px solid var(--line); }
.student-exam-dialog form > footer { border-top: 1px solid var(--line); justify-content: flex-end; }
.student-exam-dialog header span { color: #079ba6; font-size: 12px; font-weight: 800; }
.student-exam-dialog header h2 { margin: 2px 0 0; color: var(--navy-dark); font-size: 22px; }
.dialog-close { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: #fff; cursor: pointer; font-size: 25px; }
.student-dialog-body { padding: 22px 23px; display: grid; gap: 19px; }
.student-dialog-body fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; }
.student-dialog-body legend { margin-bottom: 9px; font-weight: 800; }
.student-dialog-body fieldset label {
  padding: 13px; grid-template-columns: auto 1fr; align-items: start; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.student-dialog-body fieldset input { width: 19px; min-height: 19px; margin-top: 3px; accent-color: #079ba6; }
.student-dialog-body fieldset strong, .student-dialog-body fieldset small { display: block; }
.student-dialog-body fieldset small { margin-top: 2px; }

.stats-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 15px; margin-bottom: 27px; }
.stats-grid article {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  display: flex; align-items: center; gap: 13px; box-shadow: 0 8px 25px rgba(22,48,65,.04);
}
.stats-grid article > .icon { width: 44px; height: 44px; border-radius: 13px; background: var(--teal-light); color: var(--navy); font-size: 23px; }
.stats-grid strong { font-size: 26px; display: block; line-height: 1.2; }
.stats-grid span { color: var(--muted); font-size: 13px; }
.dashboard-command {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  margin: 0 0 24px; padding: 6px 2px;
}
.dashboard-command h2 { margin: 2px 0; font-size: 30px; }
.dashboard-command p { margin: 0; color: var(--muted); }
.dashboard-actions { display: flex; align-items: center; gap: 10px; min-width: min(620px,52%); }
.dashboard-actions form { flex: 1; }
.dashboard-actions label { position: relative; display: block; }
.dashboard-actions label > .icon { position: absolute; right: 14px; top: 14px; color: var(--muted); z-index: 1; }
.dashboard-actions input { padding-right: 44px; box-shadow: 0 8px 24px rgba(22,48,65,.05); }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr .8fr; gap: 18px; }
.material-summary, .activity-list { display: grid; gap: 6px; }
.material-summary > a { display: grid; grid-template-columns: 12px 1fr 46px; gap: 12px; align-items: center; padding: 10px 8px; border-radius: 12px; }
.material-summary > a:hover { background: #f7fafb; }
.material-dot { width: 10px; height: 10px; border-radius: 50%; }
.material-summary strong, .material-summary small { display: block; }
.material-summary small { color: var(--muted); font-size: 12px; }
.progress-track { height: 7px; background: #e7edf0; border-radius: 99px; overflow: hidden; margin-top: 7px; }
.progress-track i { display: block; height: 100%; background: linear-gradient(90deg,var(--teal),#62d7cc); border-radius: inherit; }
.material-summary > a > b { font-size: 13px; color: var(--navy); direction: ltr; }
.activity-list > div { display: flex; gap: 12px; align-items: center; padding: 11px 6px; border-bottom: 1px solid #edf1f3; }
.activity-list > div > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--teal-light); color: var(--navy); }
.activity-list p { margin: 0; }
.activity-list strong, .activity-list small { display: block; }
.activity-list small { color: var(--muted); font-size: 11px; }
.count-pill, .health-score { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 9px 14px; color: var(--navy); font-weight: 800; }
.health-score { min-width: 115px; text-align: center; font-size: 25px; }
.health-score small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.admin-material-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.admin-material-grid article { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--material-color); border-radius: 17px; padding: 19px; box-shadow: 0 8px 24px rgba(22,48,65,.04); }
.admin-material-grid header { display: flex; justify-content: space-between; align-items: center; }
.admin-material-grid header > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: color-mix(in srgb,var(--material-color) 13%,white); color: var(--material-color); font-weight: 800; }
.admin-material-grid h3 { min-height: 58px; margin: 14px 0; font-size: 17px; }
.material-numbers { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.material-numbers span { color: var(--muted); font-size: 11px; padding: 8px; background: #f7f9fa; border-radius: 9px; }
.material-numbers strong { display: block; color: var(--ink); font-size: 18px; }
.admin-material-grid article > small { color: var(--muted); display: block; margin: 5px 0 14px; }
.compact-stats { grid-template-columns: repeat(4,1fr); }
.quality-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; margin-bottom: 20px; }
.quality-grid article { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 17px; padding: 19px; }
.quality-grid strong { font-size: 27px; }
.quality-grid h3 { margin: 0; font-size: 16px; }
.quality-grid p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.quality-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; flex: 0 0 auto; }
.quality-icon.good { background: #e8f7ef; color: var(--green); }
.quality-icon.warn { background: #fff4df; color: var(--amber); }
.quality-icon.danger { background: #fff0f1; color: var(--red); }
.difficulty-bars { display: grid; gap: 18px; }
.difficulty-bars > div > span { display: flex; justify-content: space-between; }
.difficulty-bars em { color: var(--muted); font-style: normal; font-size: 13px; }
.settings-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.settings-grid article { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 17px; padding: 20px; }
.settings-grid article > .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--teal-light); color: var(--navy); font-size: 25px; }
.settings-grid h3 { margin: 0; font-size: 18px; }
.settings-grid p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.settings-grid a { color: var(--teal); font-weight: 800; }
.status.verified, .status.unverified, .status.needs-correction { display: inline-flex; padding: 5px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.status.verified { background: #e4f7ed; color: #0e7649; }
.status.unverified { background: #eef2f5; color: #596b75; }
.status.needs-correction { background: #fff0f1; color: #a63742; }
.readonly-editor { opacity: .86; }
.quick-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 28px; }
.quick-stats article { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; }
.quick-stats span { color: var(--muted); font-size: 14px; }
.quick-stats strong { font-size: 25px; color: var(--navy); }

.panel, .editor-card, .narrow-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  box-shadow: 0 8px 24px rgba(22,48,65,.04); margin-bottom: 22px;
}
.panel-title, .section-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 17px; }
.panel-title h2, .section-head h2 { margin: 0; font-size: 23px; }
.panel-title p, .section-head p { margin: 3px 0 0; color: var(--muted); }
.panel-title a { color: var(--teal); font-weight: 700; }
.section-head { margin-top: 7px; }
.narrow-card { max-width: 660px; margin: 25px auto; padding: 28px; }
.card-heading { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 23px; }
.card-heading > .icon { width: 50px; height: 50px; border-radius: 14px; background: var(--teal-light); color: var(--navy); font-size: 26px; }
.card-heading h2 { margin: 0; }
.card-heading p { margin: 4px 0 0; color: var(--muted); }
.split-panels { display: grid; grid-template-columns: minmax(340px,.8fr) minmax(540px,1.35fr); gap: 20px; align-items: start; }

.filters {
  display: grid; grid-template-columns: minmax(250px,2fr) minmax(180px,1fr) minmax(150px,.8fr) auto;
  gap: 10px; background: #fff; border: 1px solid var(--line); padding: 13px; border-radius: 14px; margin-bottom: 15px;
}
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th { color: #52656f; font-size: 13px; text-align: right; background: #f7f9fa; }
th, td { padding: 13px 12px; border-bottom: 1px solid #e7edef; vertical-align: middle; }
td { font-size: 15px; }
td strong, td small { display: block; }
td small { color: var(--muted); margin-top: 3px; }
tbody tr:hover { background: #fbfcfd; }
.status { display: inline-flex; padding: 4px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #eef2f4; color: #53646e; }
.status.published, .status.active { background: #e4f7ed; color: #0e7649; }
.status.review, .status.paused { background: #fff3dc; color: #976316; }
.status.archived, .status.suspended { background: #fff0f1; color: #a63742; }
.locked { display: inline-flex; align-items: center; gap: 5px; color: #0e7649; font-weight: 700; font-size: 13px; }
.pagination { display: flex; gap: 10px; align-items: center; justify-content: flex-end; padding: 16px 0; }
.pagination span { margin-left: auto; color: var(--muted); }
.empty-state { padding: 34px; text-align: center; color: var(--muted); }

.editor-card { max-width: 1000px; margin: 0 auto; display: grid; gap: 17px; padding: 27px; }
.editor-card fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 10px; }
.editor-card legend { font-weight: 700; padding: 0 8px; }
.option-editor { grid-template-columns: auto 34px 1fr; align-items: center; gap: 8px; }
.option-editor input[type=radio] { width: 20px; min-height: 20px; accent-color: var(--teal); }
.option-editor b { width: 32px; height: 32px; display: grid; place-items: center; background: #edf3f5; border-radius: 8px; }

.material-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; margin-bottom: 26px; }
.material-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--material-color);
  border-radius: var(--radius); padding: 22px; overflow: hidden; box-shadow: 0 8px 24px rgba(22,48,65,.04);
}
.material-index { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--material-color) 14%, white); color: var(--material-color); font-weight: 800; }
.material-card h3 { margin: 15px 0 5px; font-size: 18px; min-height: 58px; }
.material-card > p { color: var(--muted); margin: 0 0 15px; }
.material-card form > div { display: grid; grid-template-columns: .7fr 1.3fr; gap: 8px; margin-bottom: 10px; }
.material-card select { font-size: 13px; padding: 8px; }

.mistake-hero {
  background: linear-gradient(135deg,#fff,#edf9f6); border: 1px solid #cfeae4; border-radius: 20px;
  padding: 27px; display: flex; align-items: center; gap: 22px; margin-bottom: 20px;
}
.mistake-hero > .icon { width: 78px; height: 78px; border-radius: 20px; background: var(--teal-light); color: var(--navy); font-size: 42px; }
.mistake-hero h2 { margin: 4px 0; font-size: 28px; }
.mistake-hero p { margin: 0; color: var(--muted); }
.exam-setup-inline { background: #fff; border: 1px solid var(--line); border-radius: 17px; padding: 20px; display: grid; grid-template-columns: 1fr 1.5fr auto; gap: 13px; align-items: end; }

.browse-list { display: grid; gap: 13px; }
.browse-list article { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 19px; display: flex; gap: 15px; }
.question-number { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: var(--teal-light); color: var(--navy); font-weight: 800; }
.browse-list h3 { margin: 3px 0 11px; font-size: 18px; }
.browse-list p { margin: 0; padding: 9px 12px; background: #eaf8f0; color: #116a43; border-radius: 9px; }

.result-hero {
  display: flex; align-items: center; gap: 28px; padding: 28px; border-radius: 21px; margin-bottom: 22px;
  background: linear-gradient(135deg,#fff,#edf9f5); border: 1px solid #cfe9df;
}
.result-hero.needs-work { background: linear-gradient(135deg,#fff,#fff4f4); border-color: #f0d0d3; }
.result-ring { width: 135px; height: 135px; border-radius: 50%; flex: 0 0 auto; display: grid; place-content: center; text-align: center; background: #fff; border: 12px solid #73d5ae; box-shadow: var(--shadow); }
.needs-work .result-ring { border-color: #ed929b; }
.result-ring strong { font-size: 32px; line-height: 1; }
.result-ring span { font-size: 12px; color: var(--muted); margin-top: 5px; }
.result-hero h2 { margin: 4px 0; font-size: 29px; }
.result-hero p { margin: 0; color: var(--muted); max-width: 760px; }
.review-list { display: grid; gap: 13px; }
.review-item { background: #fff; border: 1px solid var(--line); border-right: 5px solid var(--red); border-radius: 14px; padding: 18px 20px; }
.review-item.correct { border-right-color: var(--green); }
.review-item header { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 13px; }
.review-item.correct header b { color: var(--green); }
.review-item.wrong header b { color: var(--red); }
.review-item h3 { margin: 9px 0; font-size: 18px; }
.review-item p { margin: 5px 0; }
.correct-answer { color: var(--green); background: #eef9f3; padding: 7px 10px; border-radius: 8px; }
.review-item small { color: var(--muted); }

.login-page { background: #f4f7f9; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.15fr .85fr; }
.login-visual {
  padding: clamp(40px,8vw,110px); color: #fff; display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(circle at 18% 20%, rgba(97,230,215,.25), transparent 30%),
    linear-gradient(145deg,#06374e,#0b4f6c 60%,#0f8a8a);
}
.hero-mark { width: 82px; height: 82px; border-radius: 24px; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); font-size: 45px; margin-bottom: 25px; }
.login-visual h1 { font-size: clamp(34px,4vw,56px); line-height: 1.32; max-width: 780px; margin: 8px 0 18px; }
.login-visual p { color: #9ff4e9; font-weight: 700; }
.login-visual > span:last-child { opacity: .8; font-size: 19px; }
.login-panel { display: grid; place-items: center; padding: 35px; }
.login-card { width: min(470px,100%); display: grid; gap: 19px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 34px; box-shadow: var(--shadow); }
.login-brand { padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.login-brand strong { display: block; color: var(--navy); font-size: 29px; }
.login-brand span { color: var(--muted); font-size: 13px; }
.login-card h2 { margin: 2px 0; font-size: 28px; }
.security-caption { color: var(--muted); text-align: center; display: flex; align-items: center; justify-content: center; gap: 6px; }

.installer-page { background: linear-gradient(145deg,#eef6f7,#f8fafb); display: grid; place-items: center; padding: 30px; }
.installer-shell { width: min(760px,100%); }
.installer-card { background: #fff; border: 1px solid var(--line); border-radius: 25px; padding: 34px; box-shadow: var(--shadow); }
.brand-lock { color: var(--navy); font-size: 30px; font-weight: 800; margin-bottom: 18px; }
.brand-lock span { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.installer-card h1 { margin: 0; }
.installer-card > p { color: var(--muted); }
.success-panel { text-align: center; padding: 24px; }

.exam-page { background: #f2f6f8; overflow-x: hidden; }
.exam-shell { min-height: 100vh; display: flex; flex-direction: column; }
.exam-header {
  min-height: 82px; background: #fff; border-bottom: 1px solid var(--line); padding: 13px 28px;
  display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 18px; align-items: center; position: sticky; top: 0; z-index: 10;
}
.exam-brand { color: var(--navy); font-weight: 800; font-size: 24px; }
.exam-title strong, .exam-title span { display: block; }
.exam-title span { color: var(--muted); font-size: 13px; }
.timer { display: flex; gap: 7px; align-items: center; min-width: 112px; justify-content: center; padding: 8px 13px; border-radius: 10px; background: #edf7f7; color: var(--navy); direction: ltr; }
.timer.warning { background: #fff2e4; color: #9a5a0b; }
.timer.danger { background: #fff0f1; color: var(--red); }
.exam-progress { height: 6px; background: #dce7eb; position: sticky; top: 82px; z-index: 9; }
.exam-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg,var(--teal),#58d1c8); transition: width .25s ease; }
.exam-content { width: min(1240px,100%); margin: 0 auto; padding: 30px; display: grid; grid-template-columns: 1fr 255px; gap: 22px; flex: 1; }
.question-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.question-layout {
  min-height: 560px;
  padding: clamp(22px,4vw,42px);
  display: grid;
  grid-template-columns: minmax(0,1fr) 245px;
  gap: 28px;
  align-items: stretch;
}
.question-layout.has-feedback { grid-template-columns: minmax(0,1fr) 245px; }
.question-main { min-width: 0; }
.question-meta { display: flex; justify-content: space-between; gap: 15px; color: var(--teal); font-size: 13px; font-weight: 700; }
.question-card h1 { font-size: 20px !important; line-height: 1.75; margin: 17px 0 27px; }
.answer-options { display: grid; grid-auto-rows: 1fr; gap: 12px; }
.answer-option {
  width: 100%; height: 100%; min-height: 60px; text-align: right; border: 0; background: #079ba6; color: #fff; border-radius: 999px;
  padding: 10px 20px; cursor: pointer; display: grid; grid-template-columns: minmax(0,1fr) 24px; gap: 12px; align-items: center;
  box-shadow: 0 3px 0 rgba(0,85,92,.09);
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease, opacity .16s ease, filter .16s ease;
}
.answer-option .option-indicator { position: relative; width: 22px; height: 22px; border: 2px solid rgba(255,255,255,.78); border-radius: 50%; }
.answer-option:hover { color: #fff; background: #087f88; transform: translateY(-1px); }
.answer-option.selected { color: #fff; background: #087f88; box-shadow: inset 0 0 0 2px rgba(255,255,255,.38); }
.answer-option.selected .option-indicator { border: 6px solid #fff; }
.answer-option.correct { color: #fff; background: #168a56; box-shadow: inset 0 0 0 3px #20c276, 0 4px 12px rgba(22,138,86,.22); opacity: 1; filter: none; }
.answer-option.correct .option-indicator { border: 0; background: #fff; }
.answer-option.correct .option-indicator::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #168a56; font-size: 14px; font-weight: 900; }
.answer-option.wrong { color: #fff; background: #d65b64; box-shadow: none; }
.answer-option.wrong .option-indicator { border: 0; background: #fff; }
.answer-option.wrong .option-indicator::after { content: "×"; position: absolute; inset: 0; display: grid; place-items: center; color: #d65b64; font-size: 17px; font-weight: 900; }
.answer-option:disabled { cursor: default; transform: none; }
.question-layout.has-feedback .answer-option:not(.correct):not(.wrong) {
  background: #6f9ea1;
  opacity: .38;
  filter: saturate(.35);
  box-shadow: none;
}
.question-layout.has-feedback .answer-option.correct,
.question-layout.has-feedback .answer-option.wrong { opacity: 1; filter: none; }
.answer-feedback {
  min-height: 100%; padding: 28px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 18px; background: #f0f3f4; text-align: center;
}
.answer-feedback.hidden {
  display: flex !important;
  visibility: hidden;
  pointer-events: none;
}
.answer-feedback .feedback-icon { width: 68px; height: 68px; display: grid; place-items: center; border: 3px solid currentColor; border-radius: 50%; background: #fff; font-size: 38px; font-weight: 900; line-height: 1; }
.answer-feedback strong { margin-top: 17px; font-size: 20px; }
.answer-feedback p { margin: 15px 0 0; color: #65767c; font-size: 13px; line-height: 1.7; }
.answer-feedback.correct { color: #20ad68; }
.answer-feedback.wrong { color: #d13f4b; }
.question-actions {
  min-height: 78px; padding: 13px 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  border-top: 1px solid var(--line); background: #fcfefe;
}
.question-nav { display: flex; align-items: center; gap: 9px; }
.question-nav .button { min-width: 118px; }
.save-status { color: var(--muted); font-size: 13px; text-align: center; }
.review-flag {
  min-height: 44px; padding: 9px 15px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #b7dfe2;
  border-radius: 999px; color: #087f88; background: #fff; cursor: pointer;
}
.review-flag span { font-size: 20px; line-height: 1; }
.review-flag.active { color: #8b5b0a; border-color: #e6bf6c; background: #fff6df; }
.review-flag:disabled { opacity: .6; cursor: default; }
.question-map { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; align-self: start; position: sticky; top: 112px; }
.question-map > #question-map { display: grid; grid-template-columns: repeat(5,1fr); gap: 7px; margin-top: 12px; max-height: 58vh; overflow: auto; }
.question-map button { position: relative; aspect-ratio: 1; border: 1px solid var(--line); background: #f8fafb; border-radius: 8px; cursor: pointer; font-size: 12px; }
.question-map button.active { outline: 3px solid var(--navy); outline-offset: 2px; }
.question-map button.answered { border-color: var(--teal); background: var(--teal-light); color: var(--navy); }
.question-map button.correct { color: #fff; border-color: #20ad68; background: #20ad68; }
.question-map button.wrong { color: #fff; border-color: #d65b64; background: #d65b64; }
.question-map button.review::after { content: "⚑"; position: absolute; top: -7px; left: -5px; width: 17px; height: 17px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: #d49322; font-size: 10px; line-height: 1; }
.question-map-legend { margin-top: 12px; padding-top: 13px; display: flex; flex-wrap: wrap; gap: 8px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.question-map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.question-map-legend i { width: 11px; height: 11px; border-radius: 3px; }
.question-map-legend i.correct { background: #20ad68; }
.question-map-legend i.wrong { background: #d65b64; }
.question-map-legend i.review { background: #d49322; }
.question-map-legend.feedback-hidden span:nth-child(-n+2) { display: none; }

.suggestion-layout { align-items: start; }
.suggestion-list { display: grid; gap: 12px; }
.suggestion-list article { padding: 15px; display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 13px; background: #fbfdfd; }
.suggestion-list article > div { display: grid; gap: 5px; }
.suggestion-list article small { color: var(--muted); }
.suggestion-list article p { margin: 0; padding: 10px; border-radius: 9px; color: #425f66; background: #eef6f5; }
.admin-suggestion-list { display: grid; gap: 16px; }
.admin-suggestion-list article > header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.admin-suggestion-list article header > div { display: grid; gap: 7px; }
.admin-suggestion-list h3 { margin: 0; font-size: 19px; line-height: 1.7; }
.admin-suggestion-list ol { margin: 18px 0; display: grid; gap: 8px; }
.admin-suggestion-list li { padding: 10px 13px; border-radius: 9px; background: #f3f7f7; }
.admin-suggestion-list li.correct { color: #0e7147; background: #e3f6ec; font-weight: 800; }
.suggestion-review-form { display: grid; grid-template-columns: 180px 1fr auto; gap: 10px; align-items: center; }
.suggestion-filters { grid-template-columns: minmax(220px,360px) auto; }
.toggle-setting { padding: 14px; display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 12px; border: 1px solid var(--line); border-radius: 12px; }
.toggle-setting input { width: 20px; height: 20px; margin-top: 3px; }
.toggle-setting span { display: grid; gap: 4px; }
.toggle-setting small { color: var(--muted); }
.exam-pause-settings { margin-bottom: 22px; }

@media (max-width: 1250px) {
  .stats-grid { grid-template-columns: repeat(3,1fr); }
  .quality-grid { grid-template-columns: repeat(2,1fr); }
  .admin-material-grid { grid-template-columns: repeat(2,1fr); }
  .material-grid { grid-template-columns: repeat(2,1fr); }
  .student-materials-grid { grid-template-columns: repeat(2,1fr); }
  .split-panels { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .sidebar { transform: translateX(100%); transition: transform .2s ease; box-shadow: -18px 0 40px rgba(5,47,67,.22); }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .main { margin-right: 0; }
  .menu-toggle { display: grid; }
  .topbar { padding: 12px 16px; }
  .content { padding: 20px 16px 40px; }
  .dashboard-command { align-items: stretch; flex-direction: column; }
  .dashboard-actions { min-width: 0; width: 100%; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .user-chip span { display: none; }
  .portal-preview-button { padding-inline: 12px; font-size: 13px; }
  .student-hero, .welcome-banner { align-items: stretch; flex-direction: column; padding: 25px; }
  .final-card { min-width: 0; }
  .student-portal-header { padding-inline: 16px; }
  .student-portal { padding-inline: 16px; }
  .student-readiness { display: none; }
  .student-summary-grid { grid-template-columns: repeat(2,1fr); }
  .login-shell { grid-template-columns: 1fr; }
  .login-visual { min-height: 38vh; padding: 38px 28px; }
  .login-visual h1 { font-size: 35px; }
  .login-panel { padding: 25px 16px; }
  .exam-content { grid-template-columns: 1fr; padding: 18px; }
  .question-map { position: static; order: -1; }
  .question-map > #question-map { grid-template-columns: repeat(10,1fr); max-height: none; }
  .question-layout, .question-layout.has-feedback { grid-template-columns: minmax(0,1fr) 220px; }
  .exam-header { grid-template-columns: auto 1fr auto auto; padding: 10px 14px; }
  .exam-header .danger-outline { grid-column: 1 / -1; min-height: 38px; }
  .exam-progress { top: 129px; }
  .suggestion-review-form { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar h1 { font-size: 20px; }
  .icon-button { width: 40px; height: 40px; }
  .stats-grid, .quick-stats, .material-grid, .quality-grid, .admin-material-grid, .settings-grid { grid-template-columns: 1fr; }
  .student-materials-grid, .student-summary-grid { grid-template-columns: 1fr; }
  .student-portal-header { align-items: flex-start; flex-direction: column; }
  .student-user-menu { width: 100%; flex-wrap: wrap; }
  .student-user-menu > span { width: 100%; }
  .student-portal .student-hero { padding: 25px 21px; }
  .student-hero-actions, .student-section-head { align-items: stretch; flex-direction: column; }
  .student-main-cta, .student-secondary-cta, .student-answer-setting { width: 100%; }
  .dashboard-actions { flex-direction: column; align-items: stretch; }
  .stats-grid article { padding: 16px; }
  .quick-stats article { min-height: 68px; }
  .form-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .panel, .editor-card { padding: 16px; }
  .section-head, .panel-title { align-items: flex-start; flex-direction: column; }
  .material-card h3 { min-height: 0; }
  .material-card form > div { grid-template-columns: 1fr; }
  .exam-setup-inline { grid-template-columns: 1fr; }
  .mistake-hero { align-items: flex-start; flex-direction: column; }
  .result-hero { flex-direction: column; text-align: center; }
  .exam-header { grid-template-columns: auto 1fr; }
  .timer { grid-column: 1 / -1; width: 100%; }
  .exam-progress { top: 173px; }
  .question-card { border-radius: 16px; }
  .question-layout, .question-layout.has-feedback { min-height: 0; padding: 19px; grid-template-columns: 1fr; }
  .question-card h1 { font-size: 18px !important; }
  .answer-option { min-height: 54px; padding: 10px 16px; grid-template-columns: minmax(0,1fr) 22px; }
  .answer-feedback { min-height: 230px; }
  .question-map > #question-map { grid-template-columns: repeat(7,1fr); }
  .question-actions { grid-template-columns: 1fr 1fr; padding: 11px; }
  .question-actions .save-status { grid-column: 1 / -1; grid-row: 1; }
  .question-nav { justify-content: flex-end; }
  .question-nav .button { min-width: 0; }
  .admin-suggestion-list article > header { flex-direction: column; }
}

/* Public website and editable content — 1.0.0 */
.public-page {
  margin: 0;
  background: #f6faf9;
  color: #153a42;
  font-size: 17px;
}
.public-page a { color: inherit; }
.public-header {
  position: sticky;
  z-index: 50;
  top: 0;
  min-height: 82px;
  padding: 0 clamp(20px,5vw,78px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #dce9e7;
  backdrop-filter: blur(14px);
}
.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  min-width: max-content;
}
.public-brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px 5px 14px 14px;
  background: linear-gradient(145deg,#058b94,#075663);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(5,103,113,.2);
}
.public-brand > span:last-child { display: grid; }
.public-brand strong { font-size: 24px; line-height: 1; color: #075b66; }
.public-brand small { margin-top: 6px; color: #72868b; font-size: 11px; }
.public-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.public-nav a {
  padding: 10px 12px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 700;
  color: #49666c;
  font-size: 14px;
  transition: .18s ease;
}
.public-nav a:hover,.public-nav a.active { color: #067d86; background: #eaf6f5; }
.public-header-actions { display: flex; align-items: center; gap: 9px; min-width: max-content; }
.public-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #d8e7e5;
  background: #fff;
  border-radius: 10px;
  color: #075b66;
  font-size: 22px;
}
.public-flash { margin: 18px auto 0; max-width: 1120px; }
.public-main { min-height: 58vh; }
.public-hero {
  max-width: 1240px;
  min-height: 650px;
  margin: 0 auto;
  padding: 72px 38px 88px;
  display: grid;
  grid-template-columns: minmax(0,1.06fr) minmax(390px,.75fr);
  align-items: center;
  gap: 72px;
  position: relative;
}
.public-hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: -210px;
  top: 70px;
  border-radius: 50%;
  background: radial-gradient(circle,#d8f1ec 0,rgba(216,241,236,0) 69%);
  z-index: -1;
}
.public-kicker,.public-section-heading span,.public-page-hero > span,.public-demo-banner span,.auth-public-intro > span,.demo-shell > header span {
  display: inline-block;
  color: #078691;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .03em;
}
.public-hero h1 {
  max-width: 780px;
  margin: 18px 0 22px;
  color: #123a44;
  font-size: clamp(42px,5vw,68px);
  line-height: 1.22;
  letter-spacing: -.025em;
}
.public-hero-copy > p {
  max-width: 680px;
  color: #5c7379;
  font-size: 20px;
  line-height: 1.95;
}
.public-hero-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 32px; }
.public-primary-cta,.public-secondary-cta {
  min-height: 56px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  text-decoration: none;
  font-weight: 900;
}
.public-primary-cta { color: #fff !important; background: linear-gradient(135deg,#079ca5,#06707a); box-shadow: 0 13px 27px rgba(3,124,133,.22); }
.public-secondary-cta { background: #fff; color: #075b66; border: 1px solid #cfe2e1; }
.public-hero-copy > small { display: block; margin-top: 16px; color: #7d9195; }
.public-hero-card {
  min-height: 410px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-radius: 30px 9px 30px 30px;
  color: #fff;
  background: linear-gradient(155deg,#0b6170,#073844);
  box-shadow: 0 28px 65px rgba(4,55,65,.23);
}
.public-hero-card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  left: -90px;
  bottom: -110px;
  border: 45px solid rgba(83,218,196,.13);
  border-radius: 50%;
}
.simulator-mini-head { display: flex; justify-content: space-between; color: #d6f4f1; }
.simulator-mini-head b { direction: ltr; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.1); font-size: 14px; }
.simulator-score { position: relative; z-index: 1; display: grid; justify-items: center; }
.simulator-score strong { font-size: 100px; line-height: 1; color: #fff; }
.simulator-score span { margin-top: 10px; color: #c9e9e6; font-size: 18px; }
.simulator-bars { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.simulator-bars i { height: 52px; border-radius: 9px; background: rgba(255,255,255,.1); }
.simulator-bars i:first-child { background: #20b8ac; }
.public-hero-card p { position: relative; z-index: 1; margin: 0; color: #c5dfdf; line-height: 1.8; }
.public-hero-photo {
  min-height: 460px;
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 30px 9px 30px 30px;
  background: #073e49;
  box-shadow: 0 28px 65px rgba(4,55,65,.23);
}
.public-hero-photo img { width: 100%; height: 460px; object-fit: cover; display: block; }
.public-hero-photo::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(0deg,rgba(3,43,51,.93),transparent); }
.public-hero-photo figcaption { position: absolute; z-index: 1; right: 28px; left: 28px; bottom: 25px; color: #fff; font-size: 17px; font-weight: 800; line-height: 1.7; }
.public-proof {
  max-width: 1160px;
  margin: -34px auto 0;
  padding: 26px 35px;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
  background: #fff;
  border: 1px solid #dbe8e7;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(25,70,75,.08);
}
.public-proof article { display: grid; justify-items: center; padding: 5px 20px; border-left: 1px solid #e1ecea; }
.public-proof article:last-child { border-left: 0; }
.public-proof strong { color: #075e68; font-size: 32px; }
.public-proof span { color: #71858a; font-size: 14px; }
.public-section { max-width: 1160px; margin: 0 auto; padding: 110px 20px; }
.public-section-heading { max-width: 700px; margin-bottom: 42px; }
.public-section-heading h2 { margin: 12px 0 0; color: #173b44; font-size: clamp(30px,4vw,45px); line-height: 1.35; }
.public-feature-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.public-feature-grid article {
  min-height: 260px;
  padding: 27px;
  border: 1px solid #dce9e7;
  border-radius: 18px;
  background: #fff;
  transition: .2s ease;
}
.public-feature-grid article:hover { transform: translateY(-5px); box-shadow: 0 17px 36px rgba(29,77,81,.09); }
.public-feature-grid b { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: #e4f5f2; color: #087b84; }
.public-feature-grid h3 { margin: 45px 0 10px; color: #173f48; font-size: 21px; }
.public-feature-grid p { color: #71858a; line-height: 1.85; font-size: 15px; }
.public-demo-banner {
  max-width: 1160px;
  min-height: 230px;
  margin: 0 auto;
  padding: 43px 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-radius: 26px 8px 26px 26px;
  background: linear-gradient(135deg,#083f4d,#086f77);
  color: #fff;
}
.public-demo-banner span { color: #72ddd0; }
.public-demo-banner h2 { margin: 8px 0; font-size: 34px; }
.public-demo-banner p { margin: 0; color: #c7e7e4; }
.public-demo-banner > a { padding: 15px 24px; min-width: max-content; border-radius: 12px; background: #fff; color: #075d67; font-weight: 900; text-decoration: none; }
.public-how ol { list-style: none; display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; padding: 0; }
.public-how li { display: flex; align-items: flex-start; gap: 18px; padding: 26px; background: #fff; border: 1px solid #dce9e7; border-radius: 17px; }
.public-how li > b { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #0797a0; }
.public-how h3 { margin: 2px 0 8px; }
.public-how p { margin: 0; color: #71858a; line-height: 1.7; }
.public-independent {
  max-width: 1120px;
  margin: 0 auto 90px;
  padding: 24px 28px;
  display: flex;
  gap: 18px;
  align-items: center;
  border-radius: 13px;
  background: #fff8e7;
  border: 1px solid #eedca8;
}
.public-independent strong { color: #77540c; min-width: max-content; }
.public-independent p { margin: 0; color: #77653a; line-height: 1.8; }
.public-footer {
  padding: 55px clamp(22px,6vw,90px) 25px;
  display: grid;
  grid-template-columns: 1.6fr repeat(3,1fr);
  gap: 40px;
  color: #d9ecea;
  background: #073d49;
}
.public-footer > div { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.public-footer > div > strong { color: #fff; margin-bottom: 7px; }
.public-footer a { text-decoration: none; color: #bcd7d5; font-size: 14px; }
.public-footer p,.public-footer span { color: #9fc2c0; line-height: 1.8; font-size: 13px; }
.footer-brand strong { color: #fff; }
.footer-brand small { color: #aad1ce; }
.public-copyright { grid-column: 1 / -1; padding-top: 22px; margin: 12px 0 0 !important; border-top: 1px solid rgba(255,255,255,.1); text-align: center; }
.public-page-hero {
  padding: 85px 20px 65px;
  text-align: center;
  background: linear-gradient(180deg,#eaf7f4,#f6faf9);
}
.public-page-hero h1 { margin: 14px 0; color: #173b44; font-size: clamp(38px,5vw,56px); }
.public-page-hero p { max-width: 760px; margin: 0 auto; color: #6e8287; font-size: 19px; line-height: 1.9; }
.public-content-card {
  max-width: 920px;
  margin: 45px auto 90px;
  padding: clamp(28px,5vw,58px);
  background: #fff;
  border: 1px solid #dce9e7;
  border-radius: 21px;
  box-shadow: 0 16px 44px rgba(24,68,73,.07);
}
.formatted-text { color: #3f5c62; line-height: 2.2; font-size: 18px; white-space: normal; }
.public-material-list {
  max-width: 1120px;
  margin: -45px auto 90px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
}
.public-material-list article { min-height: 112px; padding: 20px; display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid #dce9e7; border-top: 4px solid var(--material-color); border-radius: 15px; }
.public-material-list article > b { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: #eff6f5; color: #49666c; }
.public-material-list h3 { margin: 0 0 8px; font-size: 16px; }
.public-material-list p { margin: 0; color: #778a8e; font-size: 13px; }
.public-pricing-grid { max-width: 680px; margin: -45px auto 90px; }
.public-pricing-grid article { padding: 40px; background: #fff; border: 2px solid #0797a0; border-radius: 22px; text-align: center; }
.public-pricing-grid h2 { font-size: 42px; color: #075d67; }
.public-pricing-grid h2 small { font-size: 16px; color: #637c81; }
.public-pricing-grid p { color: #71858a; line-height: 1.9; }
.public-pricing-grid ul { padding: 0; margin: 22px 0; list-style: none; display: grid; gap: 9px; text-align: right; }
.public-pricing-grid li::before { content: "✓"; margin-left: 8px; color: #14885a; font-weight: 900; }
.public-pricing-grid a { display: inline-block; margin-top: 18px; padding: 13px 22px; color: #fff; background: #078e97; border-radius: 11px; text-decoration: none; font-weight: 800; }
.public-faq-list { max-width: 900px; margin: 50px auto 90px; display: grid; gap: 12px; }
.public-faq-list details { background: #fff; border: 1px solid #dce9e7; border-radius: 14px; overflow: hidden; }
.public-faq-list summary { cursor: pointer; padding: 22px 24px; display: flex; justify-content: space-between; gap: 20px; color: #224850; font-weight: 850; list-style: none; }
.public-faq-list summary::-webkit-details-marker { display: none; }
.public-faq-list summary span { color: #0797a0; font-size: 23px; transition: .2s ease; }
.public-faq-list details[open] summary span { transform: rotate(45deg); }
.public-faq-list details p { margin: 0; padding: 0 24px 24px; color: #6e8287; line-height: 1.9; }
.public-contact-grid { max-width: 1040px; margin: 50px auto 90px; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: 22px; align-items: start; }
.public-form-card,.public-support-card {
  padding: 32px;
  display: grid;
  gap: 17px;
  background: #fff;
  border: 1px solid #dce9e7;
  border-radius: 20px;
  box-shadow: 0 14px 35px rgba(27,69,74,.06);
}
.public-form-card label { display: grid; gap: 8px; }
.public-form-card label > span { color: #36565d; font-weight: 800; font-size: 14px; }
.public-form-card input,.public-form-card textarea,.public-form-card select {
  width: 100%;
  border: 1px solid #ccdddc;
  border-radius: 10px;
  background: #fcfefe;
  font: inherit;
  padding: 13px 14px;
  color: #173b44;
}
.public-form-card input:focus,.public-form-card textarea:focus { outline: 3px solid rgba(7,151,160,.12); border-color: #0797a0; }
.password-field { position: relative; display: block; width: 100%; }
.password-field input { width: 100%; padding-left: 72px !important; }
.password-field button { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); min-width: 55px; padding: 6px 8px; color: #067d86; background: #eef8f7; border: 1px solid #bcdedb; border-radius: 7px; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.password-field button:hover,.password-field button:focus-visible { color: #fff; background: #087d86; outline: none; }
.password-rules { transition: color .15s ease; }
.password-rules.valid { color: #168958 !important; }
.password-rules.invalid { color: #b83242 !important; }
.public-support-card { padding: 38px; position: sticky; top: 105px; }
.public-support-card > span { color: #078b94; font-weight: 800; }
.public-support-card h2 { margin: 0; }
.public-support-card > a[dir] { color: #067580; font-weight: 800; }
.public-support-card p { color: #708489; line-height: 1.8; }
.auth-public-shell { max-width: 980px; margin: 65px auto 100px; display: grid; grid-template-columns: .75fr 1.25fr; gap: 35px; align-items: start; }
.auth-public-intro { padding: 40px 10px; }
.auth-public-intro h1 { margin: 14px 0; font-size: 44px; color: #173b44; }
.auth-public-intro p { color: #6e8287; line-height: 1.9; }
.auth-card { padding: 38px; }
.auth-links { display: flex; justify-content: space-between; gap: 18px; font-size: 14px; }
.auth-links a { color: #067d86; font-weight: 800; }
.public-check { grid-template-columns: auto 1fr !important; align-items: start; }
.public-check input { width: 19px; height: 19px; margin-top: 2px; }
.public-check a { color: #067d86; }
.auth-resend { max-width: 570px; display: flex; gap: 10px; padding: 0 38px 38px; margin: -35px 0 0; background: #fff; border: 1px solid #dce9e7; border-top: 0; border-radius: 0 0 20px 20px; }
.auth-resend input { flex: 1; min-width: 0; border: 1px solid #ccdddc; border-radius: 9px; padding: 10px; }
.demo-shell { max-width: 900px; margin: 58px auto 100px; }
.demo-shell > header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.demo-shell > header h1 { margin: 6px 0 0; font-size: 38px; }
.demo-shell > header > b { color: #60777c; }
.demo-progress { height: 8px; background: #dfeceb; border-radius: 10px; overflow: hidden; margin-bottom: 18px; }
.demo-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg,#07a5a8,#087780); transition: width .25s ease; }
.demo-question-card,.demo-result { padding: clamp(25px,5vw,48px); background: #fff; border: 1px solid #dce9e7; border-radius: 22px; box-shadow: 0 18px 45px rgba(23,67,72,.08); }
.demo-question-card > span { color: #078a93; font-weight: 800; }
.demo-question-card h2 { min-height: 78px; margin: 17px 0 27px; color: #173b44; font-size: 25px; line-height: 1.75; }
.demo-options { display: grid; gap: 11px; }
.demo-options button { min-height: 60px; padding: 13px 18px; border: 1px solid #9ed5d2; border-radius: 12px; background: #e8f7f5; color: #174950; font: inherit; font-weight: 750; text-align: right; cursor: pointer; transition: .15s ease; }
.demo-options button:not(:disabled):hover { transform: translateX(-4px); border-color: #0797a0; }
.demo-options button.correct { color: #fff; background: #168958; border-color: #168958; }
.demo-options button.wrong { color: #fff; background: #c83f4c; border-color: #c83f4c; }
.demo-options button.muted { opacity: .45; }
.demo-feedback { min-height: 30px; margin: 18px 0; font-weight: 800; }
.demo-feedback.correct { color: #147047; }
.demo-feedback.wrong { color: #a92f3b; }
.demo-result { text-align: center; }
.demo-result > span { color: #078a93; font-weight: 800; }
.demo-result h2 { font-size: 36px; }
.demo-result p { color: #6e8287; line-height: 1.8; }
.demo-result > div { display: flex; justify-content: center; gap: 10px; margin-top: 25px; }

/* Admin content manager */
.admin-content-tabs { position: sticky; top: 82px; z-index: 5; display: flex; gap: 8px; flex-wrap: wrap; padding: 13px; margin-bottom: 22px; background: rgba(246,250,249,.94); border: 1px solid #dce9e7; border-radius: 13px; backdrop-filter: blur(10px); }
.admin-content-tabs a { padding: 9px 12px; color: #075e68; background: #fff; border: 1px solid #dce9e7; border-radius: 9px; text-decoration: none; font-weight: 800; font-size: 13px; }
.admin-content-tabs a.active { color: #fff; background: #075e68; border-color: #075e68; box-shadow: 0 7px 16px rgba(7,94,104,.18); }
.admin-content-section { scroll-margin-top: 155px; margin-bottom: 25px; }
.site-content-index { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.site-content-card { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 15px; min-height: 108px; padding: 21px; color: #173c3d; background: #fff; border: 1px solid #dce9e7; border-radius: 16px; text-decoration: none; box-shadow: 0 9px 24px rgba(21,67,69,.06); transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.site-content-card:hover { transform: translateY(-2px); border-color: #72c3c1; box-shadow: 0 13px 28px rgba(21,67,69,.11); }
.site-content-card > .icon { width: 52px; height: 52px; padding: 13px; color: #087d86; background: #e7f7f5; border-radius: 14px; }
.site-content-card > span { display: grid; gap: 6px; }
.site-content-card strong { font-size: 17px; }
.site-content-card small { color: #718585; font-weight: 700; }
.site-content-card > b { color: #087d86; font-size: 22px; }
.compact-stats { margin-bottom: 20px; }
.two-column-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
.full-span { grid-column: 1 / -1; }
.admin-page-list { display: grid; gap: 13px; }
.admin-page-editor { padding: 0; overflow: hidden; }
.admin-page-editor > summary { cursor: pointer; padding: 19px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; }
.admin-page-editor > summary::-webkit-details-marker { display: none; }
.admin-page-editor > summary div { display: grid; gap: 5px; }
.admin-page-editor > summary small { color: #7c8e92; }
.admin-page-editor > form { padding: 23px; border-top: 1px solid #e1ecea; background: #fbfdfd; }
.restore-page-form { display: flex; justify-content: flex-end; padding: 0 23px 20px !important; border-top: 0 !important; background: #fbfdfd !important; }
.faq-admin-row { display: grid; grid-template-columns: 1fr 1.25fr 85px 115px auto; gap: 10px; padding: 14px 0; border-bottom: 1px solid #e3eceb; align-items: start; }
.faq-admin-row input,.faq-admin-row textarea,.faq-admin-row select,.demo-admin-form input,.demo-admin-form textarea,.demo-admin-form select {
  width: 100%; padding: 10px 12px; border: 1px solid #cfdfdd; border-radius: 9px; background: #fff; font: inherit;
}
.faq-admin-row.new { margin-top: 10px; padding: 16px; background: #edf7f5; border-radius: 11px; border: 0; }
.demo-admin-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; padding: 22px 0; border-bottom: 1px solid #dde9e7; }
.demo-admin-form label { display: grid; gap: 7px; }
.demo-admin-form label span { font-weight: 800; font-size: 13px; }
.demo-admin-form .button { align-self: end; justify-self: start; }
.plan-admin-row { display: grid; grid-template-columns: 1.2fr .65fr .65fr; gap: 13px; padding: 22px 0; border-bottom: 1px solid #dde9e7; }
.plan-admin-row.new { margin-top: 20px; padding: 20px; background: #eef7f5; border: 0; border-radius: 12px; }
.plan-admin-row label { display: grid; gap: 7px; }
.plan-admin-row label span { font-size: 13px; font-weight: 800; }
.plan-admin-row input,.plan-admin-row textarea,.plan-admin-row select { width: 100%; padding: 10px 12px; border: 1px solid #cfdfdd; border-radius: 9px; background: #fff; font: inherit; }
.plan-admin-row .button { align-self: end; justify-self: start; }
.contact-admin-list { display: grid; gap: 10px; }
.contact-admin-list details { border: 1px solid #dce9e7; border-radius: 11px; overflow: hidden; }
.contact-admin-list summary { cursor: pointer; padding: 14px; display: flex; justify-content: space-between; align-items: center; gap: 15px; list-style: none; }
.contact-admin-list summary div { display: grid; gap: 4px; }
.contact-admin-list summary small { color: #71858a; }
.contact-admin-list details > p,.contact-admin-list details > a { margin: 0 18px 15px; line-height: 1.8; }
.status.draft,.status.hidden { background: #f2f0e9; color: #786e4b; }
.alert.warning { background: #fff5d9; border-color: #ecd38e; color: #775a10; }

@media (max-width: 1100px) {
  .public-header { grid-template-columns: auto auto 1fr; gap: 14px; }
  .public-menu-button { display: grid; place-items: center; }
  .public-nav { display: none; position: absolute; top: 74px; right: 20px; left: 20px; padding: 14px; flex-direction: column; align-items: stretch; background: #fff; border: 1px solid #dce9e7; border-radius: 14px; box-shadow: 0 18px 38px rgba(20,65,70,.13); }
  .public-nav.open { display: flex; }
  .public-header-actions { justify-self: end; }
  .public-hero { grid-template-columns: 1fr .72fr; gap: 35px; }
  .public-feature-grid { grid-template-columns: repeat(2,1fr); }
  .public-material-list { grid-template-columns: repeat(2,1fr); padding-inline: 20px; }
}
@media (max-width: 760px) {
  .public-header { min-height: 70px; padding: 0 14px; grid-template-columns: auto 1fr auto; }
  .public-brand small { display: none; }
  .public-brand strong { font-size: 21px; }
  .public-brand-mark { width: 39px; height: 39px; }
  .public-menu-button { grid-column: 3; }
  .public-header-actions { grid-row: 1; grid-column: 2; }
  .public-header-actions .secondary { display: none; }
  .public-header-actions .button { padding: 9px 11px; font-size: 12px; }
  .public-nav { top: 68px; }
  .public-hero { min-height: 0; padding: 60px 19px; grid-template-columns: 1fr; gap: 35px; }
  .public-hero h1 { font-size: 40px; }
  .public-hero-copy > p { font-size: 17px; }
  .public-hero-card { min-height: 350px; padding: 25px; }
  .public-hero-photo,.public-hero-photo img { min-height: 350px; height: 350px; }
  .simulator-score strong { font-size: 82px; }
  .public-proof { margin: 0 15px; padding: 18px; grid-template-columns: repeat(2,1fr); gap: 15px; }
  .public-proof article { border: 0; padding: 8px; }
  .public-proof strong { font-size: 27px; }
  .public-section { padding: 75px 17px; }
  .public-feature-grid,.public-how ol { grid-template-columns: 1fr; }
  .public-feature-grid article { min-height: 210px; }
  .public-feature-grid h3 { margin-top: 25px; }
  .public-demo-banner { margin-inline: 15px; padding: 30px 24px; flex-direction: column; align-items: flex-start; }
  .public-demo-banner h2 { font-size: 28px; }
  .public-independent { margin: 0 15px 65px; align-items: flex-start; flex-direction: column; }
  .public-footer { grid-template-columns: repeat(2,1fr); padding: 40px 23px 22px; }
  .public-footer > div:first-child { grid-column: 1 / -1; }
  .public-page-hero { padding: 60px 18px 45px; }
  .public-content-card,.public-faq-list,.public-contact-grid,.auth-public-shell,.demo-shell { margin: 30px 15px 65px; }
  .public-material-list { grid-template-columns: 1fr; margin-top: -10px; }
  .public-contact-grid,.auth-public-shell { grid-template-columns: 1fr; }
  .public-support-card { position: static; }
  .auth-public-intro { padding: 15px 4px; }
  .auth-public-intro h1 { font-size: 36px; }
  .auth-card { padding: 25px; }
  .auth-resend { margin: -20px 0 0; padding: 0 25px 25px; flex-direction: column; }
  .demo-shell > header { align-items: flex-start; }
  .demo-question-card h2 { font-size: 21px; min-height: 0; }
  .demo-result > div { flex-direction: column; }
  .two-column-form,.demo-admin-form,.plan-admin-row { grid-template-columns: 1fr; }
  .full-span { grid-column: auto; }
  .faq-admin-row { grid-template-columns: 1fr; padding-block: 19px; }
  .admin-content-tabs { position: static; }
  .site-content-index { grid-template-columns: 1fr; }
}
