:root {
  --paper: #f3f1ec;
  --paper-2: #fbfaf7;
  --paper-3: #eae5db;
  --ink: #111111;
  --ink-soft: #2a2a2a;
  --muted: #77736b;
  --muted-2: #9b958c;
  --line: #d8d3ca;
  --line-strong: #111111;
  --coral: #ef4b62;
  --teal: #00b894;
  --danger: #b52b3b;
  --success: #087f68;
  --sans: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --display: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--ink);
  color: var(--paper-2);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 20px;
  top: -80px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper-2);
  padding: 10px 16px;
  font-size: 13px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.app-root {
  min-height: 100vh;
}

.container {
  width: min(1320px, calc(100% - 80px));
  margin: 0 auto;
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: var(--mono);
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(243, 241, 236, 0.96);
  border-bottom: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
}

.header-inner {
  width: min(1320px, calc(100% - 80px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 30px;
  height: 30px;
  background: var(--ink);
  color: var(--paper-2);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 13px;
  letter-spacing: 0.08em;
}

.brand-text span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 24px;
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.header-user {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.user-button {
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.user-avatar {
  width: 30px;
  height: 30px;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.user-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.user-popover {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  z-index: 100;
  width: 220px;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  padding: 8px;
  box-shadow: 8px 8px 0 rgba(17, 17, 17, 0.06);
}

.popover-head {
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.popover-head strong {
  display: block;
  font-size: 13px;
}

.popover-head span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.popover-link {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  font-size: 12px;
  cursor: pointer;
}

.popover-link:hover {
  background: var(--ink);
  color: var(--paper-2);
}

.logout-link {
  color: var(--coral);
}

.mobile-only {
  display: none;
}

/* Generic */
.page {
  padding: 56px 0 90px;
  animation: page-in 0.35s ease both;
}

.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 34px;
}

.page-kicker {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.page-title {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.page-desc {
  max-width: 520px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  text-align: right;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.btn {
  appearance: none;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  min-height: 44px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper-2);
}

.btn.primary {
  background: var(--ink);
  color: var(--paper-2);
}

.btn.primary:hover {
  background: transparent;
  color: var(--ink);
}

.btn.danger {
  color: var(--danger);
  border-color: var(--danger);
}

.btn.danger:hover {
  background: var(--danger);
  color: #fff;
}

.btn.small {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 11px;
}

.btn.tiny {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 10px;
}

.btn.block {
  width: 100%;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn:disabled:hover,
.btn[aria-disabled="true"]:hover {
  background: transparent;
  color: var(--ink);
}

.btn.primary:disabled:hover {
  background: var(--ink);
  color: var(--paper-2);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  font-size: 12px;
  font-weight: 600;
}

.text-link:hover {
  color: var(--coral);
  border-color: var(--coral);
}

.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  padding: 4px 8px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.2;
  white-space: nowrap;
}

.tag.solid {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-2);
}

.tag.coral {
  border-color: var(--coral);
  color: var(--coral);
}

.tag.teal {
  border-color: var(--teal);
  color: var(--success);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bar {
  height: 5px;
  flex: 1;
  background: var(--line);
}

.bar.black {
  background: var(--ink);
}

.bar.coral {
  background: var(--coral);
}

.bar.teal {
  background: var(--teal);
}

.color-bars {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 28px;
}

.progress-track {
  height: 4px;
  background: var(--line);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--ink);
  transition: width 0.25s ease;
}

.empty {
  padding: 28px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.panel-actions {
  margin-top: 24px;
}

.modal-open {
  overflow: hidden;
}

.option:disabled {
  cursor: default;
}

.option:disabled:hover {
  background: transparent;
}

.option.is-correct:disabled:hover {
  background: #ecf7f3;
}

.option.is-wrong:disabled:hover {
  background: #fbecee;
}

.admin-panel .table-shell {
  border: 0;
}

.admin-panel .data-table th:first-child,
.admin-panel .data-table td:first-child {
  padding-left: 22px;
}

.admin-panel .data-table th:last-child,
.admin-panel .data-table td:last-child {
  padding-right: 22px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-block {
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

/* Login */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(440px, 0.85fr);
}

.login-left {
  padding: 54px clamp(40px, 6vw, 96px) 48px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.login-brand .brand-mark {
  width: 38px;
  height: 38px;
  font-size: 18px;
}

.login-brand .brand-text strong {
  font-size: 15px;
}

.login-left-main {
  margin: auto 0;
  padding: 80px 0;
}

.login-statement {
  margin-top: 22px;
  font-family: var(--display);
  font-size: clamp(48px, 6.4vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 800;
  max-width: 8em;
}

.login-statement .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}

.login-sub {
  max-width: 450px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.login-meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  padding-top: 30px;
  border-top: 1px solid var(--line-strong);
}

.login-meta-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.login-meta-value {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
}

.login-bars {
  display: flex;
  width: 210px;
  gap: 6px;
}

.login-right {
  min-height: 100vh;
  background: var(--paper-2);
  border-left: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px clamp(32px, 5vw, 78px);
}

.login-card {
  width: min(420px, 100%);
  border: 1px solid var(--ink);
  padding: clamp(28px, 4vw, 46px);
  background: var(--paper-2);
}

.login-card-label {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.login-card-title {
  margin-top: 12px;
  font-size: 31px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.login-card-desc {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.login-form {
  margin-top: 36px;
  display: grid;
  gap: 26px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field-input {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  padding: 8px 0;
  color: var(--ink);
  font-size: 16px;
  outline: none;
  transition: border-color 0.16s ease;
}

.field-input:focus,
.field-input:focus-visible {
  border-bottom-width: 2px;
  border-bottom-color: var(--ink);
  outline: none;
}

.field-input::placeholder {
  color: var(--muted-2);
}

.field-help {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.form-error {
  min-height: 18px;
  color: var(--danger);
  font-size: 12px;
}

.login-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.login-foot {
  margin-top: auto;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Dashboard */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
  padding: 70px 0 68px;
  border-bottom: 1px solid var(--line-strong);
}

.home-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.home-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--ink);
}

.display-title {
  margin-top: 24px;
  font-family: var(--display);
  font-size: clamp(52px, 6.4vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 800;
  max-width: 8em;
}

.display-title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--ink);
}

.title-line {
  display: inline-block;
  white-space: nowrap;
  vertical-align: top;
}

.title-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  animation: title-char-reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(80ms + var(--i) * 60ms);
  will-change: transform, opacity;
}

.login-statement .outline .title-char {
  -webkit-text-stroke: 1.5px var(--ink);
}

.display-title em .title-char {
  -webkit-text-stroke: 1.4px var(--ink);
}

.animated-title {
  animation: title-breathe 6s ease-in-out 1.7s infinite;
  transform-origin: left center;
}

@keyframes title-char-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes title-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.015);
  }
}

.hero-desc {
  max-width: 530px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-side {
  position: relative;
}

.status-card {
  position: relative;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  padding: 34px;
  min-height: 330px;
  display: flex;
  flex-direction: column;
}

.status-card::before {
  content: "";
  position: absolute;
  left: -9px;
  bottom: -9px;
  width: 56%;
  height: 56%;
  background: var(--paper-3);
  z-index: -1;
}

.status-label {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.status-title {
  margin-top: 14px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.status-stat-value {
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.status-stat-unit {
  font-size: 11px;
  color: var(--muted);
  margin-left: 4px;
}

.status-stat-label {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.status-foot {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
}

.status-foot .text-link {
  font-size: 11px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line-strong);
}

.metric {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric-value {
  font-size: 27px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.metric-value span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 5px;
}

.metric-label {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 52px 0 22px;
}

.section-head h2 {
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.section-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.section-head .heading-meta {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.section-card {
  min-height: 230px;
  padding: 26px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.18s ease, color 0.18s ease;
}

.section-card:hover {
  background: var(--ink);
  color: var(--paper-2);
}

.section-card:hover .section-desc,
.section-card:hover .section-meta,
.section-card:hover .section-accuracy {
  color: #bdb8ae;
}

.section-card:hover .progress-track {
  background: #3a3a3a;
}

.section-card:hover .progress-fill {
  background: var(--paper-2);
}

.section-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.section-code {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.section-hours {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  margin-top: 8px;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.section-desc {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  transition: color 0.18s ease;
}

.section-bottom {
  margin-top: auto;
  padding-top: 16px;
}

.section-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 8px;
  transition: color 0.18s ease;
}

.section-accuracy {
  color: var(--muted);
  font-size: 10px;
  transition: color 0.18s ease;
}

.dashboard-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  margin-top: 52px;
}

.panel {
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  padding: 28px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.panel-head .text-link {
  font-size: 11px;
}

.attempt-list {
  list-style: none;
}

.attempt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.attempt-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.attempt-row:hover .attempt-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.attempt-mode {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.attempt-title {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 600;
}

.attempt-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.attempt-score {
  text-align: right;
}

.attempt-score strong {
  display: block;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.attempt-score span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line-strong);
  margin-top: 28px;
}

.action-tile {
  padding: 30px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  border-right: 1px solid var(--line-strong);
  transition: background 0.18s ease, color 0.18s ease;
}

.action-tile:last-child {
  border-right: 0;
}

.action-tile.dark {
  background: var(--ink);
  color: var(--paper-2);
}

.action-tile:hover {
  background: var(--ink);
  color: var(--paper-2);
}

.action-tile .action-label {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.action-tile.dark .action-label {
  color: #a9a49b;
}

.action-tile h3 {
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.action-tile p {
  color: var(--muted);
  font-size: 11px;
  max-width: 360px;
}

.action-tile.dark p {
  color: #bdb8ae;
}

/* Modules */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.module-card {
  min-height: 390px;
  padding: clamp(24px, 3vw, 38px);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.module-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}

.module-number {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.module-subtitle {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: right;
}

.module-name {
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.module-desc {
  max-width: 440px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.module-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.module-facts strong {
  color: var(--ink);
  font-size: 21px;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-right: 4px;
}

.module-progress {
  margin-top: auto;
}

.module-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 6px;
}

.resume-banner {
  margin: 32px 0;
  padding: 26px 28px;
  border: 1px solid var(--line-strong);
  border-left: 6px solid var(--coral);
  background: var(--paper-2);
}

.resume-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.resume-kicker {
  color: var(--coral);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.resume-head h2 {
  margin-top: 6px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.resume-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.resume-list {
  display: grid;
}

.resume-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.resume-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.resume-mode {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.resume-title {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
}

.resume-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.module-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-strong);
}

.module-head-desc {
  max-width: 620px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.module-head-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 24px;
  align-items: end;
}

.module-head-stat {
  text-align: right;
}

.module-head-stat strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.module-head-stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.toggle-row {
  display: grid;
  gap: 10px;
}

.toggle {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: start;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
}

.toggle-track {
  position: relative;
  width: 44px;
  height: 24px;
  border: 1px solid var(--ink);
  background: transparent;
  flex: 0 0 auto;
  transition: background 0.16s ease;
}

.toggle-thumb {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: var(--ink);
  transition: transform 0.16s ease, background 0.16s ease;
}

.toggle.on .toggle-track {
  background: var(--ink);
}

.toggle.on .toggle-thumb {
  transform: translateX(20px);
  background: var(--paper-2);
}

.history-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.history-filters .filter-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.module-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: 1px solid var(--line-strong);
  border-top: 1px solid var(--line-strong);
  margin-bottom: 26px;
}

.module-mini {
  padding: 20px 22px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper-2);
}

.module-mini strong {
  display: block;
  font-size: 15px;
}

.module-mini span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.part-block {
  margin-top: 34px;
}

.part-block:first-of-type {
  margin-top: 0;
}

.part-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 16px 0 14px;
  border-top: 1px solid var(--line-strong);
  margin-bottom: 16px;
}

.part-block:first-of-type .part-head {
  border-top: 0;
}

.part-kicker {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.part-head h3 {
  margin-top: 6px;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.part-head > span,
.part-head-actions > span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.part-head-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.part-head-actions .btn {
  white-space: nowrap;
}

.part-choice {
  background: rgba(216, 181, 106, 0.055);
}

.part-choice .choice-code {
  color: var(--coral);
}

/* Setup */
.setup-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.setup-card {
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  padding: 32px;
}

.setup-block + .setup-block {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.setup-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.setup-block-title {
  font-size: 16px;
  font-weight: 700;
}

.setup-block-note {
  color: var(--muted);
  font-size: 10px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.choice-card {
  appearance: none;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 20px;
  min-height: 118px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.16s ease, color 0.16s ease;
}

.choice-card:hover {
  background: var(--paper-3);
}

.choice-card.selected {
  background: var(--ink);
  color: var(--paper-2);
}

.choice-code {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.choice-card.selected .choice-code,
.choice-card.selected .choice-meta {
  color: #bdb8ae;
}

.choice-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.choice-meta {
  margin-top: auto;
  color: var(--muted);
  font-size: 9px;
}

.count-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.count-button {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  padding: 9px 16px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.count-button:hover,
.count-button.selected {
  background: var(--ink);
  color: var(--paper-2);
}

.setup-summary {
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  position: sticky;
  top: 108px;
}

.setup-summary-head {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.setup-summary-title {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.setup-summary-body {
  padding: 24px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.summary-line:first-child {
  padding-top: 0;
}

.summary-line span {
  color: var(--muted);
}

.summary-line strong {
  font-weight: 600;
  text-align: right;
}

.setup-summary-foot {
  padding: 0 24px 24px;
}

.setup-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

/* Exam setup */
.exam-option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.exam-option {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  padding: 28px;
  text-align: left;
  cursor: pointer;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.16s ease, color 0.16s ease;
}

.exam-option:hover {
  background: var(--paper-3);
}

.exam-option.selected {
  background: var(--ink);
  color: var(--paper-2);
}

.exam-option.selected .exam-option-label,
.exam-option.selected .exam-option-desc {
  color: #bdb8ae;
}

.exam-option-label {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.exam-option-title {
  font-size: 29px;
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.exam-option-desc {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  margin-top: auto;
}

.rules-list {
  list-style: none;
  counter-reset: rule;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.rules-list li {
  counter-increment: rule;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.rules-list li::before {
  content: "0" counter(rule);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  padding-top: 2px;
}

.notice {
  border-left: 3px solid var(--coral);
  background: #f6e9e8;
  padding: 14px 16px;
  color: #6f2c34;
  font-size: 11px;
  line-height: 1.75;
  margin-top: 18px;
}

.notice.neutral {
  border-left-color: var(--ink);
  background: var(--paper-3);
  color: var(--ink);
}

/* Attempt */
.attempt-page {
  padding: 30px 0 80px;
}

.attempt-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
}

.attempt-title-block {
  min-width: 0;
}

.attempt-kicker {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.attempt-name {
  margin-top: 5px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attempt-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.timer {
  min-width: 98px;
  text-align: right;
  font-family: var(--mono);
  font-size: 21px;
  letter-spacing: 0.02em;
  line-height: 1;
}

.timer-label {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-align: right;
}

.timer.urgent {
  color: var(--coral);
}

.progress-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0 26px;
}

.progress-wrap .progress-track {
  flex: 1;
}

.progress-text {
  min-width: 96px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-align: right;
}

.attempt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.question-panel {
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  padding: clamp(24px, 4vw, 44px);
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.question-number {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-left: auto;
}

.question-stem {
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.6;
  letter-spacing: -0.02em;
  font-weight: 600;
  max-width: 900px;
}

.multi-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
}

.option-list {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.option {
  appearance: none;
  width: 100%;
  border: 1px solid var(--line);
  background: transparent;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.option:hover {
  border-color: var(--ink);
  background: var(--paper);
}

.option-letter {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}

.option-text {
  font-size: 14px;
  line-height: 1.6;
}

.option-flag {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.option.selected {
  border-color: var(--ink);
  background: #f6f2ea;
}

.option.selected .option-letter {
  background: var(--ink);
  color: var(--paper-2);
}

.option.is-correct {
  border-color: var(--teal);
  background: #ecf7f3;
}

.option.is-correct .option-letter {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.option.is-wrong {
  border-color: var(--coral);
  background: #fbecee;
}

.option.is-wrong .option-letter {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

.question-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 36px;
}

.question-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hint-text {
  color: var(--muted);
  font-size: 10px;
}

.explanation-box {
  margin-top: 26px;
  padding: 22px;
  background: var(--paper-3);
  border-left: 4px solid var(--teal);
}

.explanation-box.incorrect {
  border-left-color: var(--coral);
}

.explanation-label {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.explanation-answer {
  margin-top: 9px;
  font-size: 13px;
  font-weight: 700;
}

.explanation-text {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.85;
}

.attempt-aside {
  position: sticky;
  top: 104px;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
}

.aside-block {
  padding: 22px;
}

.aside-block + .aside-block {
  border-top: 1px solid var(--line);
}

.aside-title {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.aside-status {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 12px;
}

.aside-status strong {
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.question-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 16px;
  max-height: 245px;
  overflow-y: auto;
  padding-right: 3px;
}

.nav-number {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  height: 31px;
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.nav-number:hover {
  border-color: var(--ink);
}

.nav-number.is-answered {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-2);
}

.nav-number.is-checked {
  background: var(--paper-3);
  border-color: var(--ink);
}

.nav-number.is-current {
  border-color: var(--coral);
  box-shadow: inset 0 0 0 1px var(--coral);
}

.nav-number.is-current.is-answered {
  background: var(--ink);
  color: var(--paper-2);
}

.aside-actions {
  padding: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.aside-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 9px;
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border: 1px solid var(--line-strong);
  margin-right: 5px;
  vertical-align: 0;
}

.legend-dot.filled {
  background: var(--ink);
}

.legend-dot.checked {
  background: var(--paper-3);
  border-color: var(--ink);
}

.legend-dot.current {
  border-color: var(--coral);
  box-shadow: inset 0 0 0 1px var(--coral);
}

/* Results */
.result-page {
  padding: 50px 0 90px;
}

.result-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
}

.score-block {
  padding: 34px;
  border-right: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
}

.score-kicker {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.score-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.score-number {
  font-size: clamp(84px, 10vw, 132px);
  line-height: 0.8;
  letter-spacing: -0.09em;
  font-weight: 800;
}

.score-unit {
  color: var(--muted);
  font-size: 12px;
}

.score-sub {
  color: var(--muted);
  font-size: 11px;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 5px;
}

.result-badge.fail {
  border-color: var(--coral);
}

.result-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--teal);
}

.result-badge.fail::before {
  background: var(--coral);
}

.result-main {
  padding: clamp(28px, 4vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
}

.result-title {
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.result-subtitle {
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
}

.result-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.result-meta-item {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}

.result-meta-item:first-child {
  padding-left: 0;
}

.result-meta-item:last-child {
  border-right: 0;
}

.result-meta-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.result-meta-label {
  color: var(--muted);
  font-size: 9px;
  margin-top: 6px;
  letter-spacing: 0.08em;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.result-panel {
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  padding: 26px;
}

.result-panel-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}

.result-panel-title h3 {
  font-size: 15px;
  font-weight: 700;
}

.result-panel-title span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bar-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.bar-label {
  color: var(--muted);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-value {
  font-family: var(--mono);
  font-size: 10px;
  text-align: right;
}

.bar-track {
  height: 4px;
  background: var(--line);
}

.bar-fill {
  height: 100%;
  background: var(--ink);
}

.review-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 52px 0 20px;
}

.review-toolbar h2 {
  font-size: 27px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.review-filters {
  display: flex;
  gap: 8px;
}

.filter-btn {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  padding: 7px 12px;
  font-size: 10px;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--ink);
  color: var(--paper-2);
}

.review-list {
  border-top: 1px solid var(--line-strong);
}

.review-item {
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
}

.review-item[open] {
  background: var(--paper-2);
}

.review-summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 22px 20px;
}

.review-summary::-webkit-details-marker {
  display: none;
}

.review-index {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  padding-top: 3px;
}

.review-stem {
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.review-status {
  text-align: right;
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: 0.08em;
  padding-top: 2px;
}

.review-status.correct {
  color: var(--success);
}

.review-status.wrong {
  color: var(--coral);
}

.review-status.unanswered {
  color: var(--muted);
}

.review-body {
  padding: 0 20px 26px 90px;
}

.review-options {
  display: grid;
  gap: 7px;
}

.review-option {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.review-option .opt-letter {
  font-family: var(--mono);
  font-size: 10px;
  padding-top: 2px;
}

.review-option.is-answer {
  border-color: var(--teal);
  color: var(--ink);
  background: #eef8f4;
}

.review-option.is-chosen-wrong {
  border-color: var(--coral);
  color: var(--danger);
  background: #fbecee;
}

.review-option.is-chosen {
  color: var(--ink);
}

.review-answer-line {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

.review-answer-line strong {
  color: var(--ink);
}

.review-explanation {
  margin-top: 16px;
  background: var(--paper-3);
  border-left: 3px solid var(--ink);
  padding: 16px 18px;
  font-size: 12px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.review-explanation strong {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* History */
.table-shell {
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.data-table th {
  text-align: left;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.data-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: var(--paper);
}

.data-table .primary-cell {
  font-size: 13px;
  font-weight: 600;
}

.data-table .secondary-cell {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
  font-weight: 400;
}

.score-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.03em;
}

.score-chip span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.pill.pass {
  border-color: var(--teal);
  color: var(--success);
}

.pill.fail {
  border-color: var(--coral);
  color: var(--danger);
}

.pill.muted {
  color: var(--muted);
}

/* Admin */
.admin-page {
  padding: 46px 0 90px;
}

.admin-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-strong);
}

.admin-head h1 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.admin-head p {
  max-width: 460px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.admin-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.admin-tab {
  display: inline-flex;
  padding: 15px 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 12px;
}

.admin-tab:hover {
  color: var(--ink);
}

.admin-tab.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  margin-bottom: 26px;
}

.admin-stat {
  padding: 24px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper-2);
}

.admin-stat-value {
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.admin-stat-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.07em;
}

.admin-grid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.admin-panel {
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
}

.admin-panel-head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.admin-panel-head h2 {
  font-size: 15px;
  font-weight: 700;
}

.admin-panel-head span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-panel-body {
  padding: 22px;
}

.create-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.password-row {
  display: flex;
  gap: 8px;
  align-items: end;
}

.password-row .field {
  flex: 1;
}

.search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.search-row .field-input {
  font-size: 13px;
}

.table-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--teal);
  margin-right: 6px;
}

.status-dot.off {
  background: var(--muted-2);
}

.role-label {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.admin-empty {
  padding: 50px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.section-mini-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.section-mini {
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-mini strong {
  display: block;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-mini span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 7px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(17, 17, 17, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fade-in 0.18s ease both;
}

.modal {
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  animation: modal-in 0.22s ease both;
}

.modal.wide {
  width: min(700px, 100%);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.modal-title {
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.modal-subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.modal-close {
  appearance: none;
  border: 0;
  background: transparent;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

.modal-close:hover {
  background: var(--ink);
  color: var(--paper-2);
}

.modal-body {
  padding: 24px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 24px 24px;
}

.modal-form {
  display: grid;
  gap: 20px;
}

.confirm-text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.confirm-text strong {
  color: var(--ink);
}

.credential-box {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 4px 16px;
  margin-top: 18px;
}

.credential-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.credential-row:last-child {
  border-bottom: 0;
}

.credential-row span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.credential-row strong {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  word-break: break-all;
  text-align: right;
}

.copy-btn {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  padding: 4px 8px;
  font-size: 9px;
  cursor: pointer;
  margin-left: 8px;
}

.copy-btn:hover {
  background: var(--ink);
  color: var(--paper-2);
}

/* Toast */
.toast-root {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 48px));
  pointer-events: none;
}

.toast {
  background: var(--ink);
  color: var(--paper-2);
  border-left: 4px solid var(--teal);
  padding: 13px 16px;
  font-size: 12px;
  line-height: 1.6;
  animation: toast-in 0.22s ease both;
  pointer-events: auto;
}

.toast.error {
  border-left-color: var(--coral);
}

.toast.info {
  border-left-color: var(--paper-2);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line-strong);
  padding: 24px 0;
}

.site-footer .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-bars {
  display: flex;
  gap: 6px;
  width: 150px;
}

/* Error / empty pages */
.state-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}

.state-code {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.state-title {
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.state-text {
  max-width: 440px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

/* Animations */
@keyframes page-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .title-char {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .animated-title {
    animation: none;
  }
}

/* Responsive */
@media (max-width: 1120px) {
  .header-inner,
  .container {
    width: min(1320px, calc(100% - 48px));
  }

  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-nav {
    gap: 16px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 48px;
  }

  .section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-grid {
    grid-template-columns: 330px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .login-left {
    min-height: auto;
    padding: 34px 28px 44px;
  }

  .login-left-main {
    padding: 70px 0 52px;
  }

  .login-statement {
    font-size: clamp(38px, 10.5vw, 68px);
  }

  .login-right {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
    padding: 40px 28px 70px;
  }

  .login-card {
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 48px 0 52px;
  }

  .display-title {
    font-size: clamp(40px, 10.5vw, 68px);
  }

  .hero-side {
    max-width: 520px;
  }

  .status-card {
    min-height: 280px;
  }

  .dashboard-lower,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .setup-page {
    grid-template-columns: 1fr;
  }

  .setup-summary {
    position: static;
  }

  .attempt-layout {
    grid-template-columns: 1fr;
  }

  .attempt-aside {
    position: static;
  }

  .question-nav {
    grid-template-columns: repeat(10, 1fr);
    max-height: none;
  }

  .result-hero {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-head {
    align-items: start;
    flex-direction: column;
  }

  .admin-head p {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .container,
  .header-inner {
    width: calc(100% - 36px);
  }

  .site-header {
    position: static;
  }

  .header-inner {
    min-height: 64px;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
  }

  .brand {
    height: 64px;
    display: flex;
  }

  .brand-text span {
    display: none;
  }

  .header-user {
    margin-left: auto;
    height: 64px;
    border-left: 0;
    padding-left: 0;
  }

  .user-name {
    display: none;
  }

  .main-nav {
    order: 3;
    width: 100%;
    height: 44px;
    margin-left: 0;
    gap: 20px;
    overflow-x: auto;
    border-top: 1px solid var(--line);
    align-self: auto;
  }

  .nav-link {
    flex: 0 0 auto;
  }

  .page {
    padding: 36px 0 70px;
  }

  .page-head {
    flex-direction: column;
    align-items: start;
    gap: 14px;
    margin-bottom: 26px;
  }

  .page-desc {
    text-align: left;
  }

  .page-title {
    font-size: clamp(34px, 10vw, 52px);
  }

  .login-brand {
    align-items: start;
  }

  .login-meta {
    flex-direction: column;
    align-items: start;
  }

  .login-left-main {
    padding: 56px 0 40px;
  }

  .hero {
    padding-top: 38px;
  }

  .metric-strip {
    grid-template-columns: 1fr 1fr;
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .section-card {
    min-height: 200px;
  }

  .action-grid {
    grid-template-columns: 1fr;
  }

  .action-tile {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .action-tile:last-child {
    border-bottom: 0;
  }

  .choice-grid {
    grid-template-columns: 1fr 1fr;
  }

  .exam-option-grid {
    grid-template-columns: 1fr;
  }

  .setup-card {
    padding: 22px;
  }

  .attempt-topbar {
    align-items: start;
  }

  .attempt-name {
    white-space: normal;
    font-size: 15px;
  }

  .attempt-tools {
    gap: 12px;
  }

  .timer {
    font-size: 18px;
  }

  .progress-wrap {
    align-items: start;
  }

  .progress-text {
    min-width: 76px;
  }

  .question-panel {
    min-height: auto;
    padding: 22px 18px;
  }

  .question-number {
    margin-left: 0;
    width: 100%;
  }

  .option {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 11px;
  }

  .option-flag {
    display: none;
  }

  .question-actions {
    align-items: stretch;
  }

  .question-action-group {
    display: grid;
    grid-template-columns: 1fr;
  }

  .question-action-group .btn {
    width: 100%;
  }

  .question-nav {
    grid-template-columns: repeat(8, 1fr);
  }

  .result-hero {
    grid-template-columns: 1fr;
  }

  .score-block {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
    min-height: 220px;
  }

  .result-meta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .result-meta-item {
    border-bottom: 1px solid var(--line);
  }

  .result-meta-item:nth-child(2) {
    border-right: 0;
  }

  .result-meta-item:nth-child(3),
  .result-meta-item:nth-child(4) {
    border-bottom: 0;
  }

  .result-meta-item:first-child {
    padding-left: 18px;
  }

  .result-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .result-actions .btn {
    width: 100%;
  }

  .bar-row {
    grid-template-columns: 76px minmax(0, 1fr) 38px;
    gap: 8px;
  }

  .review-toolbar {
    align-items: start;
    flex-direction: column;
    gap: 14px;
    padding-top: 40px;
  }

  .review-summary {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 0;
  }

  .review-status {
    grid-column: 2;
    text-align: left;
    padding-top: 0;
  }

  .review-body {
    padding: 0 0 22px 46px;
  }

  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }

  .admin-stat:nth-child(2) {
    border-right: 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-mini-list {
    grid-template-columns: 1fr 1fr;
  }

  .admin-tabs {
    overflow-x: auto;
  }

  .admin-tab {
    flex: 0 0 auto;
  }

  .site-footer .footer-inner {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 480px) {
  .container,
  .header-inner {
    width: calc(100% - 28px);
  }

  .brand-text strong {
    font-size: 11px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .exam-option {
    min-height: 150px;
    padding: 22px;
  }

  .question-nav {
    grid-template-columns: repeat(6, 1fr);
  }

  .result-meta-grid {
    grid-template-columns: 1fr;
  }

  .result-meta-item {
    border-right: 0 !important;
  }

  .result-meta-item:nth-child(3) {
    border-bottom: 1px solid var(--line);
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-stat {
    border-right: 0;
  }

  .section-mini-list {
    grid-template-columns: 1fr;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .modal-body,
  .modal-head {
    padding: 18px;
  }

  .modal-actions {
    padding: 0 18px 18px;
  }

  .toast-root {
    right: 14px;
    bottom: 14px;
    width: calc(100vw - 28px);
  }
}

@media (max-width: 900px) {
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-card {
    min-height: auto;
  }

  .module-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .module-head-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  .module-head-stat {
    text-align: left;
  }

  .module-mini-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .module-grid {
    grid-template-columns: 1fr;
  }

  .resume-banner {
    padding: 20px;
  }

  .resume-head {
    flex-direction: column;
    gap: 12px;
  }

  .resume-item {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .resume-item .btn {
    width: 100%;
  }

  .module-head-stats {
    grid-template-columns: 1fr 1fr;
  }

  .module-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .module-actions .btn {
    width: 100%;
  }
}

/* Theme switch */
.login-brand-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.theme-toggle {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.theme-toggle:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-2);
}

.theme-icon {
  width: 14px;
  height: 14px;
  border: 1px solid currentColor;
  position: relative;
  overflow: hidden;
}

.theme-icon::before {
  content: "";
  position: absolute;
  inset: 0 50% 0 0;
  background: currentColor;
}

.site-header > .header-inner > .theme-toggle,
.header-inner > .theme-toggle {
  margin-left: 16px;
}

@media (max-width: 760px) {
  .theme-toggle {
    padding: 6px 8px;
  }

  .theme-toggle-label {
    display: none;
  }

  .login-brand-tools .tag {
    display: none;
  }
}

/* Nocturne glass theme */
html[data-theme="glass"] {
  color-scheme: dark;
  --paper: #07101e;
  --paper-2: rgba(16, 31, 54, 0.62);
  --paper-3: rgba(31, 50, 80, 0.56);
  --ink: #eef4ff;
  --ink-soft: #d7e1f2;
  --muted: #93a6c0;
  --muted-2: #70839d;
  --line: rgba(173, 198, 229, 0.2);
  --line-strong: rgba(208, 227, 250, 0.36);
  --coral: #e28b97;
  --teal: #78d3c6;
  --danger: #ee8d98;
  --success: #7dd9c7;
  --gold: #d8b56a;
  --gold-soft: #f1d9a4;
  --glass-border: rgba(214, 230, 250, 0.18);
  --glass-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025));
  --glass-highlight: rgba(255, 255, 255, 0.18);
}

html[data-theme="glass"] body {
  background:
    radial-gradient(1100px 720px at 12% -10%, rgba(56, 96, 150, 0.34), transparent 60%),
    radial-gradient(900px 700px at 88% 4%, rgba(216, 181, 106, 0.14), transparent 55%),
    radial-gradient(900px 700px at 70% 100%, rgba(21, 64, 99, 0.28), transparent 60%),
    #07101e;
  color: var(--ink);
}

html[data-theme="glass"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

html[data-theme="glass"] .app-root {
  position: relative;
  z-index: 1;
}

html[data-theme="glass"] ::selection {
  background: var(--gold);
  color: #08111f;
}

html[data-theme="glass"] .site-header {
  background: rgba(6, 14, 27, 0.64);
  border-bottom-color: var(--glass-border);
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(24px) saturate(140%);
}

html[data-theme="glass"] .brand-mark {
  background: linear-gradient(145deg, var(--gold-soft), var(--gold));
  color: #08111f;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 24px rgba(216, 181, 106, 0.18);
}

html[data-theme="glass"] .brand-text strong {
  color: var(--ink);
}

html[data-theme="glass"] .brand-text span {
  color: var(--gold);
}

html[data-theme="glass"] .nav-link {
  color: var(--muted);
}

html[data-theme="glass"] .nav-link:hover,
html[data-theme="glass"] .nav-link.active {
  color: var(--ink);
}

html[data-theme="glass"] .nav-link.active {
  border-bottom-color: var(--gold);
}

html[data-theme="glass"] .header-user {
  border-left-color: var(--glass-border);
}

html[data-theme="glass"] .user-avatar {
  border-color: var(--glass-border);
  background: var(--glass-bg);
  color: var(--gold);
}

html[data-theme="glass"] .user-button:hover .user-avatar {
  border-color: var(--gold);
}

html[data-theme="glass"] .user-popover {
  background: rgba(12, 25, 44, 0.9);
  border-color: var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42), inset 0 1px 0 var(--glass-highlight);
  backdrop-filter: blur(26px) saturate(140%);
}

html[data-theme="glass"] .popover-head {
  border-bottom-color: var(--glass-border);
}

html[data-theme="glass"] .popover-link:hover {
  background: var(--gold);
  color: #08111f;
}

html[data-theme="glass"] .logout-link {
  color: var(--coral);
}

html[data-theme="glass"] .theme-toggle {
  border-color: var(--glass-border);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 999px;
  color: var(--ink);
}

html[data-theme="glass"] .theme-toggle:hover {
  border-color: var(--gold);
  background: rgba(216, 181, 106, 0.16);
  color: var(--gold-soft);
}

html[data-theme="glass"] .theme-icon {
  border-color: var(--gold);
}

html[data-theme="glass"] .theme-icon::before {
  background: var(--gold);
}

html[data-theme="glass"] .login-left {
  background: transparent;
}

html[data-theme="glass"] .login-right {
  background: linear-gradient(155deg, rgba(20, 39, 66, 0.5), rgba(7, 16, 29, 0.24));
  border-left-color: var(--glass-border);
  backdrop-filter: blur(24px) saturate(135%);
}

html[data-theme="glass"] .login-card {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 32px 90px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(26px) saturate(140%);
}

html[data-theme="glass"] .login-card-label,
html[data-theme="glass"] .login-meta-label,
html[data-theme="glass"] .login-foot {
  color: var(--muted);
}

html[data-theme="glass"] .login-card-desc,
html[data-theme="glass"] .login-sub {
  color: var(--muted);
}

html[data-theme="glass"] .login-statement,
html[data-theme="glass"] .display-title {
  color: var(--ink);
}

html[data-theme="glass"] .login-statement .outline,
html[data-theme="glass"] .display-title em {
  color: transparent;
  -webkit-text-stroke-color: var(--gold);
}

html[data-theme="glass"] .login-statement .outline .title-char,
html[data-theme="glass"] .display-title em .title-char {
  -webkit-text-stroke-color: var(--gold);
}

html[data-theme="glass"] .login-sub,
html[data-theme="glass"] .hero-desc {
  color: var(--muted);
}

html[data-theme="glass"] .login-meta {
  border-top-color: var(--glass-border);
}

html[data-theme="glass"] .login-bars .bar.black,
html[data-theme="glass"] .color-bars .bar.black,
html[data-theme="glass"] .footer-bars .bar.black {
  background: var(--gold);
}

html[data-theme="glass"] .bar.coral {
  background: var(--coral);
}

html[data-theme="glass"] .bar.teal {
  background: var(--teal);
}

html[data-theme="glass"] .login-note {
  border-top-color: var(--glass-border);
  color: var(--muted);
}

html[data-theme="glass"] .field-label {
  color: var(--gold);
}

html[data-theme="glass"] .field-input {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
}

html[data-theme="glass"] .field-input:focus,
html[data-theme="glass"] .field-input:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(216, 181, 106, 0.13);
  outline: none;
}

html[data-theme="glass"] .field-input::placeholder {
  color: var(--muted-2);
}

html[data-theme="glass"] .field-help {
  color: var(--muted);
}

html[data-theme="glass"] .form-error {
  color: var(--coral);
}

html[data-theme="glass"] .hero {
  border-bottom-color: var(--glass-border);
}

html[data-theme="glass"] .home-kicker,
html[data-theme="glass"] .eyebrow {
  color: var(--muted);
}

html[data-theme="glass"] .home-kicker::before,
html[data-theme="glass"] .eyebrow::before {
  background: var(--gold);
}

html[data-theme="glass"] .status-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  border-color: var(--glass-border);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 30px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(24px) saturate(140%);
}

html[data-theme="glass"] .status-card::before {
  display: none;
}

html[data-theme="glass"] .status-label,
html[data-theme="glass"] .status-stat-label,
html[data-theme="glass"] .metric-label {
  color: var(--muted);
}

html[data-theme="glass"] .status-foot,
html[data-theme="glass"] .status-grid {
  border-top-color: var(--glass-border);
}

html[data-theme="glass"] .metric-strip {
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

html[data-theme="glass"] .metric {
  border-right-color: var(--glass-border);
}

html[data-theme="glass"] .metric-value span {
  color: var(--muted);
}

html[data-theme="glass"] .section-head {
  border-color: var(--glass-border);
}

html[data-theme="glass"] .heading-meta {
  color: var(--muted);
}

html[data-theme="glass"] .section-grid,
html[data-theme="glass"] .module-grid,
html[data-theme="glass"] .action-grid,
html[data-theme="glass"] .choice-grid,
html[data-theme="glass"] .admin-stats,
html[data-theme="glass"] .module-mini-grid {
  border: 0;
  gap: 14px;
}

html[data-theme="glass"] .section-card,
html[data-theme="glass"] .module-card,
html[data-theme="glass"] .action-tile,
html[data-theme="glass"] .choice-card,
html[data-theme="glass"] .exam-option,
html[data-theme="glass"] .admin-stat,
html[data-theme="glass"] .module-mini {
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: var(--glass-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 50px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px) saturate(130%);
}

html[data-theme="glass"] .section-card:hover {
  background: rgba(216, 181, 106, 0.12);
  border-color: rgba(216, 181, 106, 0.55);
  color: var(--ink);
  transform: translateY(-2px);
}

html[data-theme="glass"] .section-card:hover .section-desc,
html[data-theme="glass"] .section-card:hover .section-meta,
html[data-theme="glass"] .section-card:hover .section-accuracy {
  color: var(--muted);
}

html[data-theme="glass"] .section-card:hover .progress-track {
  background: rgba(255, 255, 255, 0.15);
}

html[data-theme="glass"] .section-card:hover .progress-fill {
  background: var(--gold);
}

html[data-theme="glass"] .module-card {
  border-radius: 22px;
}

html[data-theme="glass"] .part-head {
  border-top-color: var(--glass-border);
}

html[data-theme="glass"] .part-kicker {
  color: var(--gold);
}

html[data-theme="glass"] .part-choice {
  background: rgba(216, 181, 106, 0.1);
  border-color: rgba(216, 181, 106, 0.4);
}

html[data-theme="glass"] .part-choice .choice-code {
  color: var(--gold);
}

html[data-theme="glass"] .module-facts strong,
html[data-theme="glass"] .module-head-stat strong {
  color: var(--gold-soft);
}

html[data-theme="glass"] .module-facts,
html[data-theme="glass"] .module-head,
html[data-theme="glass"] .module-head-stats,
html[data-theme="glass"] .module-progress {
  border-color: var(--glass-border);
}

html[data-theme="glass"] .module-head {
  border-bottom-color: var(--glass-border);
}

html[data-theme="glass"] .progress-track {
  background: rgba(255, 255, 255, 0.13);
}

html[data-theme="glass"] .progress-fill {
  background: var(--gold);
}

html[data-theme="glass"] .panel,
html[data-theme="glass"] .setup-card,
html[data-theme="glass"] .setup-summary,
html[data-theme="glass"] .result-hero,
html[data-theme="glass"] .result-panel,
html[data-theme="glass"] .question-panel,
html[data-theme="glass"] .attempt-aside,
html[data-theme="glass"] .admin-panel,
html[data-theme="glass"] .modal {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 28px 80px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(22px) saturate(135%);
}

html[data-theme="glass"] .panel-head,
html[data-theme="glass"] .setup-summary-head,
html[data-theme="glass"] .setup-summary-body,
html[data-theme="glass"] .setup-block,
html[data-theme="glass"] .result-meta-grid,
html[data-theme="glass"] .score-block,
html[data-theme="glass"] .attempt-aside .aside-block,
html[data-theme="glass"] .aside-actions,
html[data-theme="glass"] .admin-panel-head,
html[data-theme="glass"] .modal-head {
  border-color: var(--glass-border);
}

html[data-theme="glass"] .setup-block + .setup-block {
  border-top-color: var(--glass-border);
}

html[data-theme="glass"] .summary-line {
  border-bottom-color: var(--glass-border);
}

html[data-theme="glass"] .panel-title,
html[data-theme="glass"] .setup-block-title,
html[data-theme="glass"] .result-panel-title h3 {
  color: var(--ink);
}

html[data-theme="glass"] .action-tile.dark {
  background: linear-gradient(145deg, rgba(216, 181, 106, 0.2), rgba(216, 181, 106, 0.06));
  color: var(--gold-soft);
}

html[data-theme="glass"] .action-tile.dark p,
html[data-theme="glass"] .action-tile.dark .action-label {
  color: var(--muted);
}

html[data-theme="glass"] .btn {
  border-color: var(--glass-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
}

html[data-theme="glass"] .btn:hover {
  border-color: var(--gold);
  background: rgba(216, 181, 106, 0.14);
  color: var(--gold-soft);
}

html[data-theme="glass"] .btn.primary {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border-color: var(--gold);
  color: #08111f;
  box-shadow: 0 10px 30px rgba(216, 181, 106, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

html[data-theme="glass"] .btn.primary:hover {
  background: var(--gold-soft);
  color: #08111f;
}

html[data-theme="glass"] .btn.danger {
  border-color: var(--coral);
  color: var(--coral);
}

html[data-theme="glass"] .btn.danger:hover {
  background: var(--coral);
  color: #08111f;
}

html[data-theme="glass"] .btn:disabled {
  opacity: 0.4;
}

html[data-theme="glass"] .tag {
  border-color: var(--glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
}

html[data-theme="glass"] .tag.solid {
  background: var(--gold);
  border-color: var(--gold);
  color: #08111f;
}

html[data-theme="glass"] .tag.coral {
  border-color: var(--coral);
  color: var(--coral);
}

html[data-theme="glass"] .tag.teal {
  border-color: var(--teal);
  color: var(--success);
}

html[data-theme="glass"] .text-link {
  border-bottom-color: var(--gold);
  color: var(--gold-soft);
}

html[data-theme="glass"] .text-link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

html[data-theme="glass"] .resume-banner {
  background: rgba(15, 29, 50, 0.62);
  border-color: var(--glass-border);
  border-left-color: var(--gold);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  backdrop-filter: blur(20px);
}

html[data-theme="glass"] .resume-head {
  border-bottom-color: var(--glass-border);
}

html[data-theme="glass"] .resume-kicker {
  color: var(--gold);
}

html[data-theme="glass"] .resume-item {
  border-bottom-color: var(--glass-border);
}

html[data-theme="glass"] .resume-mode,
html[data-theme="glass"] .resume-meta,
html[data-theme="glass"] .resume-head p {
  color: var(--muted);
}

html[data-theme="glass"] .choice-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--glass-border);
}

html[data-theme="glass"] .choice-card:hover {
  background: rgba(255, 255, 255, 0.075);
}

html[data-theme="glass"] .choice-card.selected {
  background: rgba(216, 181, 106, 0.16);
  border-color: var(--gold);
  color: var(--ink);
}

html[data-theme="glass"] .choice-card.selected .choice-code,
html[data-theme="glass"] .choice-card.selected .choice-meta {
  color: var(--gold-soft);
}

html[data-theme="glass"] .count-button {
  border-color: var(--glass-border);
  border-radius: 999px;
  color: var(--ink);
}

html[data-theme="glass"] .count-button:hover,
html[data-theme="glass"] .count-button.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: #08111f;
}

html[data-theme="glass"] .exam-option {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--glass-border);
}

html[data-theme="glass"] .exam-option:hover {
  background: rgba(255, 255, 255, 0.075);
}

html[data-theme="glass"] .exam-option.selected {
  background: rgba(216, 181, 106, 0.16);
  border-color: var(--gold);
  color: var(--ink);
}

html[data-theme="glass"] .exam-option.selected .exam-option-label,
html[data-theme="glass"] .exam-option.selected .exam-option-desc {
  color: var(--gold-soft);
}

html[data-theme="glass"] .toggle-track {
  border-color: var(--glass-border);
  border-radius: 999px;
}

html[data-theme="glass"] .toggle-thumb {
  background: var(--gold);
  border-radius: 50%;
}

html[data-theme="glass"] .toggle.on .toggle-track {
  background: rgba(216, 181, 106, 0.25);
  border-color: var(--gold);
}

html[data-theme="glass"] .toggle.on .toggle-thumb {
  background: var(--gold-soft);
}

html[data-theme="glass"] .rules-list,
html[data-theme="glass"] .rules-list li {
  border-color: var(--glass-border);
}

html[data-theme="glass"] .rules-list li::before {
  color: var(--gold);
}

html[data-theme="glass"] .notice {
  background: rgba(226, 139, 151, 0.12);
  border-left-color: var(--coral);
  color: #ffd5da;
  border-radius: 12px;
}

html[data-theme="glass"] .notice.neutral {
  background: rgba(255, 255, 255, 0.045);
  border-left-color: var(--gold);
  color: var(--ink-soft);
}

html[data-theme="glass"] .attempt-topbar,
html[data-theme="glass"] .attempt-progress,
html[data-theme="glass"] .progress-wrap {
  border-color: var(--glass-border);
}

html[data-theme="glass"] .option {
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--glass-border);
  border-radius: 14px;
}

html[data-theme="glass"] .option:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--gold);
}

html[data-theme="glass"] .option.selected {
  background: rgba(216, 181, 106, 0.14);
  border-color: var(--gold);
}

html[data-theme="glass"] .option-letter {
  border-color: var(--glass-border);
  border-radius: 8px;
}

html[data-theme="glass"] .option.selected .option-letter {
  background: var(--gold);
  border-color: var(--gold);
  color: #08111f;
}

html[data-theme="glass"] .option.is-correct {
  background: rgba(120, 211, 198, 0.12);
  border-color: var(--teal);
}

html[data-theme="glass"] .option.is-correct .option-letter {
  background: var(--teal);
  border-color: var(--teal);
  color: #08111f;
}

html[data-theme="glass"] .option.is-wrong {
  background: rgba(226, 139, 151, 0.12);
  border-color: var(--coral);
}

html[data-theme="glass"] .option.is-wrong .option-letter {
  background: var(--coral);
  border-color: var(--coral);
  color: #08111f;
}

html[data-theme="glass"] .explanation-box {
  background: rgba(255, 255, 255, 0.055);
  border-left-color: var(--teal);
  border-radius: 12px;
}

html[data-theme="glass"] .explanation-box.incorrect {
  border-left-color: var(--coral);
}

html[data-theme="glass"] .explanation-text,
html[data-theme="glass"] .explanation-answer {
  color: var(--ink-soft);
}

html[data-theme="glass"] .nav-number {
  border-color: var(--glass-border);
  border-radius: 8px;
  color: var(--ink);
}

html[data-theme="glass"] .nav-number:hover {
  border-color: var(--gold);
}

html[data-theme="glass"] .nav-number.is-answered {
  background: var(--gold);
  border-color: var(--gold);
  color: #08111f;
}

html[data-theme="glass"] .nav-number.is-checked {
  background: rgba(216, 181, 106, 0.18);
  border-color: var(--gold);
}

html[data-theme="glass"] .nav-number.is-current {
  border-color: var(--coral);
  box-shadow: inset 0 0 0 1px var(--coral);
}

html[data-theme="glass"] .score-block {
  border-right-color: var(--glass-border);
}

html[data-theme="glass"] .score-unit,
html[data-theme="glass"] .score-sub,
html[data-theme="glass"] .score-kicker,
html[data-theme="glass"] .result-meta-label {
  color: var(--muted);
}

html[data-theme="glass"] .result-meta-item {
  border-right-color: var(--glass-border);
}

html[data-theme="glass"] .result-badge {
  border-bottom-color: var(--teal);
}

html[data-theme="glass"] .result-badge.fail {
  border-bottom-color: var(--coral);
}

html[data-theme="glass"] .bar-track {
  background: rgba(255, 255, 255, 0.12);
}

html[data-theme="glass"] .bar-fill {
  background: var(--gold);
}

html[data-theme="glass"] .review-toolbar h2,
html[data-theme="glass"] .review-stem {
  color: var(--ink);
}

html[data-theme="glass"] .review-list {
  border-top-color: var(--glass-border);
}

html[data-theme="glass"] .review-item {
  border-bottom-color: var(--glass-border);
}

html[data-theme="glass"] .review-item[open] {
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="glass"] .review-option {
  border-radius: 10px;
}

html[data-theme="glass"] .review-option.is-answer {
  background: rgba(120, 211, 198, 0.12);
  border-color: var(--teal);
  color: var(--ink);
}

html[data-theme="glass"] .review-option.is-chosen-wrong {
  background: rgba(226, 139, 151, 0.12);
  border-color: var(--coral);
  color: #ffd5da;
}

html[data-theme="glass"] .review-explanation {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--gold);
  color: var(--ink-soft);
  border-radius: 10px;
}

html[data-theme="glass"] .review-answer-line {
  border-top-color: var(--glass-border);
  color: var(--muted);
}

html[data-theme="glass"] .review-answer-line strong {
  color: var(--ink);
}

html[data-theme="glass"] .filter-btn {
  border-color: var(--glass-border);
  border-radius: 999px;
  color: var(--ink);
}

html[data-theme="glass"] .filter-btn.active,
html[data-theme="glass"] .filter-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #08111f;
}

html[data-theme="glass"] .table-shell {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--glass-border);
  border-radius: 18px;
}

html[data-theme="glass"] .data-table th {
  color: var(--muted);
  border-bottom-color: var(--glass-border);
}

html[data-theme="glass"] .data-table td {
  border-bottom-color: var(--glass-border);
}

html[data-theme="glass"] .data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.045);
}

html[data-theme="glass"] .score-chip span,
html[data-theme="glass"] .secondary-cell {
  color: var(--muted);
}

html[data-theme="glass"] .pill {
  border-color: var(--glass-border);
  border-radius: 999px;
  color: var(--muted);
}

html[data-theme="glass"] .pill.pass {
  border-color: var(--teal);
  color: var(--success);
}

html[data-theme="glass"] .pill.fail {
  border-color: var(--coral);
  color: var(--coral);
}

html[data-theme="glass"] .admin-head,
html[data-theme="glass"] .admin-tabs {
  border-color: var(--glass-border);
}

html[data-theme="glass"] .admin-tab {
  color: var(--muted);
}

html[data-theme="glass"] .admin-tab.active {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

html[data-theme="glass"] .admin-stat {
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="glass"] .admin-stat-value {
  color: var(--gold-soft);
}

html[data-theme="glass"] .module-mini {
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="glass"] .modal-backdrop {
  background: rgba(2, 8, 18, 0.7);
  backdrop-filter: blur(10px);
}

html[data-theme="glass"] .modal {
  background: linear-gradient(145deg, rgba(20, 38, 64, 0.92), rgba(9, 20, 36, 0.94));
}

html[data-theme="glass"] .modal-close {
  color: var(--muted);
  border-radius: 8px;
}

html[data-theme="glass"] .modal-close:hover {
  background: var(--gold);
  color: #08111f;
}

html[data-theme="glass"] .credential-box {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--glass-border);
  border-radius: 14px;
}

html[data-theme="glass"] .credential-row {
  border-bottom-color: var(--glass-border);
}

html[data-theme="glass"] .copy-btn {
  border-color: var(--glass-border);
  border-radius: 6px;
  color: var(--ink);
}

html[data-theme="glass"] .copy-btn:hover {
  background: var(--gold);
  color: #08111f;
}

html[data-theme="glass"] .toast {
  background: rgba(12, 25, 44, 0.92);
  border-left-color: var(--teal);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

html[data-theme="glass"] .toast.error {
  border-left-color: var(--coral);
}

html[data-theme="glass"] .toast.info {
  border-left-color: var(--gold);
}

html[data-theme="glass"] .site-footer {
  border-top-color: var(--glass-border);
}

html[data-theme="glass"] .footer-inner {
  color: var(--muted);
}

html[data-theme="glass"] .state-text,
html[data-theme="glass"] .empty,
html[data-theme="glass"] .loading-block {
  color: var(--muted);
}

html[data-theme="glass"] .skip-link {
  background: var(--gold);
  color: #08111f;
}

html[data-theme="glass"] .spinner {
  border-color: rgba(255, 255, 255, 0.18);
  border-top-color: var(--gold);
}

html[data-theme="glass"] .login-brand .tag {
  border-color: var(--glass-border);
  color: var(--muted);
}

html[data-theme="glass"] .status-card .tag {
  border-color: var(--glass-border);
}

html[data-theme="glass"] .metric:nth-child(-n+2) {
  border-bottom-color: var(--glass-border);
}

@media (max-width: 760px) {
  html[data-theme="glass"] .section-grid,
  html[data-theme="glass"] .module-grid,
  html[data-theme="glass"] .action-grid,
  html[data-theme="glass"] .choice-grid,
  html[data-theme="glass"] .admin-stats,
  html[data-theme="glass"] .module-mini-grid {
    gap: 10px;
  }
}
