:root {
  color-scheme: light;
  --ink: #18202f;
  --muted: #657187;
  --line: #d9e0ea;
  --paper: #ffffff;
  --wash: #f5f7fb;
  --navy: #253858;
  --teal: #047a7a;
  --green: #2f7d32;
  --red: #b3261e;
  --amber: #996700;
  --focus: #0f62fe;
  --shadow: 0 18px 48px rgba(30, 44, 70, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(37, 56, 88, 0.06), rgba(4, 122, 122, 0.05)),
    var(--wash);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

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

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0.75rem 0.85rem;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.14);
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
}

.app-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.muted {
  color: var(--muted);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.top-actions a,
.ghost,
.button,
.danger {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 0.64rem 0.95rem;
  cursor: pointer;
  font-weight: 800;
}

.button {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.button.secondary,
.ghost {
  background: #fff;
  color: var(--navy);
}

.button.small {
  min-height: 38px;
  padding: 0.52rem 0.8rem;
}

.danger {
  border-color: rgba(179, 38, 30, 0.25);
  background: #fff;
  color: var(--red);
}

.hidden {
  display: none !important;
}

.login-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.8fr);
  gap: 1.2rem;
  align-items: stretch;
  min-height: calc(100vh - 110px);
}

.login-copy,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.login-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.4rem, 5vw, 4rem);
  background:
    linear-gradient(135deg, rgba(37, 56, 88, 0.96), rgba(4, 122, 122, 0.87)),
    #253858;
  color: #fff;
}

.login-copy .muted,
.login-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.login-copy h1,
.dashboard-head h1,
.install-panel h1 {
  margin: 0.2rem 0 0.75rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.login-copy h1 {
  max-width: 720px;
  font-size: clamp(2.25rem, 6vw, 4.8rem);
}

.panel {
  padding: 1.2rem;
}

.panel h2 {
  margin: 0 0 1rem;
}

.form-stack,
.form-grid {
  display: grid;
  gap: 0.9rem;
}

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

.wide {
  grid-column: 1 / -1;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.check-row input {
  width: auto;
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.metric-row span {
  min-width: 130px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.1);
}

.metric-row.compact {
  margin-top: 0;
}

.metric-row.compact span {
  border-color: var(--line);
  background: #fff;
}

.metric-row strong {
  display: block;
  font-size: 1.35rem;
}

.eyebrow {
  margin: 0;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-copy .eyebrow {
  color: #b8fff5;
}

.notice {
  margin-top: 0.9rem;
  border: 1px solid rgba(4, 122, 122, 0.25);
  border-radius: 8px;
  background: rgba(4, 122, 122, 0.08);
  color: var(--teal);
  padding: 0.75rem 0.85rem;
}

.notice.error {
  border-color: rgba(179, 38, 30, 0.25);
  background: rgba(179, 38, 30, 0.08);
  color: var(--red);
}

.notice.success {
  border-color: rgba(47, 125, 50, 0.25);
  background: rgba(47, 125, 50, 0.08);
  color: var(--green);
}

.dashboard-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
}

.dashboard-head h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  border-bottom: 1px solid var(--line);
  margin: 1rem 0;
}

.tab {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-weight: 900;
}

.tab.active {
  border-color: var(--teal);
  color: var(--navy);
}

.major-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
}

.major-filter .tab {
  padding: 0.55rem 0.45rem;
  font-size: 0.8rem;
}

.content-grid,
.admin-grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.list-panel {
  max-height: 74vh;
  overflow: auto;
}

.side-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.side-item {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0.75rem;
  text-align: left;
  cursor: pointer;
}

.side-item.active {
  border-color: var(--teal);
  background: rgba(4, 122, 122, 0.08);
}

.side-item strong,
.side-item small {
  display: block;
}

.side-item small {
  color: var(--muted);
}

.detail-panel h2 {
  margin-top: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.badge-row,
.actions,
.toolbar,
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.toolbar {
  margin-bottom: 1rem;
}

.toolbar input {
  max-width: 380px;
}

.toolbar select {
  max-width: 260px;
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.25rem 0.55rem;
  background: #fff;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
}

.lesson-list {
  display: grid;
  gap: 0.5rem;
  margin: 0.8rem 0;
  padding-left: 1.1rem;
}

.study-text {
  display: grid;
  gap: 0.75rem;
  border: 1px solid rgba(4, 122, 122, 0.16);
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fafc, #ecfeff);
  margin: 0.85rem 0 1.1rem;
  padding: 1rem;
}

.study-text p {
  margin: 0;
}

.extract-blocks {
  display: grid;
  gap: 0.75rem;
  margin: 0.9rem 0 1.2rem;
}

.extract-block {
  border: 1px solid rgba(37, 56, 88, 0.16);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.extract-block summary {
  cursor: pointer;
  background: linear-gradient(135deg, #eef2ff, #ecfeff);
  color: var(--navy);
  font-weight: 900;
  padding: 0.75rem 0.9rem;
}

.extract-block pre {
  max-height: 460px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: #24324a;
  font-family: inherit;
  font-size: 0.94rem;
  line-height: 1.55;
  padding: 0.9rem;
}

.pdf-sequence-note {
  border: 1px solid rgba(4, 122, 122, 0.18);
  border-radius: 8px;
  background: #ecfeff;
  color: var(--navy);
  margin: 0.7rem 0 0.85rem;
  padding: 0.75rem 0.9rem;
}

.pdf-page-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.85rem 0 1.1rem;
}

.pdf-page-index a {
  border: 1px solid rgba(4, 122, 122, 0.22);
  border-radius: 999px;
  background: #fff;
  color: #0f766e;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0.42rem 0.72rem;
  text-decoration: none;
}

.pdf-page-index a:hover {
  background: #ccfbf1;
}

.pdf-page-stack {
  display: grid;
  gap: 1.2rem;
  margin: 0.85rem 0 1.3rem;
}

.pdf-page-card {
  border: 1px solid rgba(30, 44, 70, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(4, 122, 122, 0.045) 0 5px, transparent 5px),
    #fff;
  box-shadow: 0 18px 42px rgba(30, 44, 70, 0.1);
  overflow: hidden;
  scroll-margin-top: 1rem;
}

.pdf-page-header {
  display: grid;
  gap: 0.25rem;
  background:
    linear-gradient(90deg, rgba(4, 122, 122, 0.13), rgba(245, 158, 11, 0.11)),
    #f8fafc;
  padding: 0.85rem 1rem;
}

.pdf-page-number {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pdf-page-header strong {
  color: var(--navy);
  line-height: 1.35;
}

.pdf-page-body {
  display: grid;
  gap: 0.42rem;
  padding: 1.05rem 1.15rem 1.25rem;
}

.pdf-line {
  margin: 0;
  color: #24324a;
  font-size: 0.96rem;
  line-height: 1.68;
}

.pdf-line-heading {
  border-left: 5px solid var(--teal);
  border-radius: 6px;
  background: linear-gradient(90deg, #f0fdfa, #fff7ed);
  color: #134e4a;
  font-weight: 900;
  margin-top: 0.62rem;
  padding: 0.48rem 0.72rem;
}

.pdf-line-question {
  border: 1px solid rgba(37, 56, 88, 0.12);
  border-radius: 8px;
  background: #f8fafc;
  font-weight: 800;
  margin-top: 0.35rem;
  padding: 0.48rem 0.65rem;
}

.pdf-line-option {
  border-left: 3px solid rgba(4, 122, 122, 0.32);
  background: #ffffff;
  color: #334155;
  margin-left: 1.1rem;
  padding: 0.14rem 0 0.14rem 0.72rem;
}

@media (max-width: 640px) {
  .pdf-page-index {
    gap: 0.35rem;
  }

  .pdf-page-index a {
    font-size: 0.76rem;
    padding: 0.36rem 0.58rem;
  }

  .pdf-page-body {
    padding: 0.9rem 0.82rem 1.05rem;
  }

  .pdf-line {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .pdf-line-option {
    margin-left: 0.35rem;
  }
}

.vocab-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin: 0.9rem 0 1.2rem;
  max-height: 520px;
  overflow: auto;
}

.vocab-table {
  min-width: 860px;
}

.vocab-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 1;
}

.question-bank {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.question-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(30, 44, 70, 0.06);
  overflow: hidden;
}

.question-row summary {
  display: grid;
  gap: 0.3rem;
  cursor: pointer;
  padding: 0.85rem 1rem;
}

.question-row summary span {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.question-row summary strong {
  color: var(--navy);
  line-height: 1.45;
}

.question-row[open] {
  border-color: rgba(4, 122, 122, 0.32);
}

.question-row p,
.question-options {
  margin: 0;
  padding: 0 1rem 0.85rem;
}

.answer-pill {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(47, 125, 50, 0.1);
  color: var(--green);
  font-weight: 900;
  padding: 0.25rem 0.6rem;
}

.lesson-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.85rem 0 1rem;
}

.lesson-chip {
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.9), rgba(239, 246, 255, 0.9)),
    #ffffff;
  color: var(--navy);
  font-weight: 850;
  line-height: 1.45;
  padding: 0.72rem 0.82rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.lesson-steps {
  display: grid;
  gap: 0.6rem;
  margin: 0.85rem 0;
  padding-left: 1.35rem;
  counter-reset: lesson-step;
}

.lesson-steps li {
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff7ed, #fff1f2);
  padding: 0.65rem 0.78rem;
}

.practice-list li::marker {
  color: var(--teal);
}

.quick-drills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.85rem 0 1rem;
}

.quick-drills div {
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #f5f3ff, #fdf2f8);
  color: #312e81;
  font-weight: 800;
  line-height: 1.45;
  padding: 0.72rem 0.82rem;
}

.source-note {
  border-top: 1px dashed rgba(100, 116, 139, 0.35);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-top: 1rem;
  padding-top: 0.75rem;
}

.example-box {
  display: grid;
  gap: 0.45rem;
  border-left: 4px solid var(--teal);
  padding: 0.8rem 1rem;
  background: rgba(4, 122, 122, 0.07);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

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

.mini-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 12px 28px rgba(30, 44, 70, 0.06);
}

.mini-card h3 {
  margin: 0 0 0.4rem;
}

.mini-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.public-home {
  display: grid;
  gap: 1rem;
}

.hero-slim {
  align-items: center;
}

.feature-strip,
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.section-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-head h1,
.section-head h2 {
  margin: 0;
}

.score-large {
  color: var(--navy);
  font-size: 2.1rem;
  font-weight: 950;
  line-height: 1;
  margin: 0.35rem 0;
}

.progress-track {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 999px;
  height: 0.75rem;
  overflow: hidden;
}

.progress-track span {
  background: linear-gradient(90deg, var(--teal), var(--gold));
  display: block;
  height: 100%;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  padding: 0.72rem;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--navy);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.divider-label {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-weight: 800;
  gap: 0.8rem;
  justify-content: center;
}

.divider-label::before,
.divider-label::after {
  background: var(--line);
  content: "";
  height: 1px;
  flex: 1;
}

.exam-panel {
  max-width: 980px;
}

.exam-meta,
.result-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.exam-meta span,
.result-summary span {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
}

.exam-form,
.answer-review {
  display: grid;
  gap: 1rem;
}

.question-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 1rem;
}

.question-block legend {
  color: var(--navy);
  font-weight: 900;
  padding: 0 0.35rem;
}

.radio-row {
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
}

.radio-row input {
  margin-top: 0.22rem;
  width: auto;
}

.review-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.review-card.correct {
  border-color: rgba(47, 125, 50, 0.32);
  background: rgba(47, 125, 50, 0.06);
}

.review-card.wrong {
  border-color: rgba(174, 35, 35, 0.28);
  background: rgba(174, 35, 35, 0.06);
}

.option-line {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0.45rem 0;
  padding: 0.58rem 0.68rem;
}

.option-line.right-answer {
  border-color: rgba(47, 125, 50, 0.38);
  background: rgba(47, 125, 50, 0.09);
}

.options {
  display: grid;
  gap: 0.45rem;
  margin: 0.8rem 0;
}

.option {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.58rem 0.68rem;
  background: var(--wash);
}

.option.correct {
  border-color: rgba(47, 125, 50, 0.3);
  background: rgba(47, 125, 50, 0.09);
}

.helper-panel {
  max-width: 760px;
}

.helper-answer {
  margin-top: 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 1rem;
  white-space: pre-wrap;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.install-body {
  min-height: 100vh;
}

.install-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1rem;
}

.install-panel {
  width: min(760px, 100%);
}

@media (max-width: 900px) {
  .login-grid,
  .content-grid,
  .admin-grid,
  .dashboard-head {
    grid-template-columns: 1fr;
  }

  .dashboard-head {
    display: grid;
  }

  .card-grid,
  .vocab-grid,
  .feature-strip,
  .stat-grid,
  .form-grid,
  .lesson-panel-grid,
  .quick-drills,
  .two-col {
    grid-template-columns: 1fr;
  }

  .login-grid {
    min-height: auto;
  }

  .login-copy h1 {
    font-size: 2.35rem;
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: min(100% - 18px, 1180px);
  }

  .topbar,
  .top-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel,
  .login-copy {
    padding: 1rem;
  }

  .tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .tab {
    white-space: nowrap;
  }
}

/* Arza visual refresh: colorful public presentation and dashboard polish. */
:root {
  --ink: #162033;
  --muted: #64748b;
  --line: #dbe5f2;
  --paper: #ffffff;
  --wash: #f7fbff;
  --navy: #172554;
  --teal: #0f766e;
  --sky: #0284c7;
  --violet: #6d28d9;
  --coral: #ea580c;
  --gold: #ca8a04;
  --green: #15803d;
  --red: #b91c1c;
  --focus: #2563eb;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.14);
}

body {
  background:
    linear-gradient(120deg, rgba(14, 165, 233, 0.08) 0 20%, transparent 20% 42%, rgba(234, 88, 12, 0.08) 42% 58%, transparent 58% 100%),
    linear-gradient(180deg, #f9fcff 0%, #eef7ff 46%, #fff7ed 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(2, 132, 199, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 40, 217, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 72%);
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 5;
  border: 1px solid rgba(219, 229, 242, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  padding: 0.75rem 0.9rem;
  backdrop-filter: blur(14px);
}

.brand-mark {
  background: linear-gradient(135deg, var(--sky), var(--violet) 54%, var(--coral));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.26);
}

.top-actions a,
.ghost,
.button,
.danger {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.top-actions a:hover,
.ghost:hover,
.button:hover,
.danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.button {
  border-color: transparent;
  background: linear-gradient(135deg, var(--sky), var(--teal));
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.24);
}

.button.secondary,
.ghost {
  border-color: rgba(2, 132, 199, 0.18);
  background: #ffffff;
  color: var(--navy);
}

.button.secondary {
  border-color: rgba(234, 88, 12, 0.22);
  background: #fff7ed;
  color: #9a3412;
}

.public-home {
  gap: 1.15rem;
}

.hero-slim {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(250px, 0.55fr);
  min-height: min(620px, calc(100vh - 150px));
  border: 0;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 37, 84, 0.98), rgba(8, 47, 73, 0.94) 42%, rgba(15, 118, 110, 0.94)),
    #172554;
  color: #fff;
  padding: clamp(1.35rem, 5vw, 4.25rem);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24);
}

.hero-slim::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.085) 0 1px, transparent 1px 18px),
    linear-gradient(90deg, rgba(250, 204, 21, 0.14), transparent 34%, rgba(14, 165, 233, 0.18) 72%, rgba(255, 255, 255, 0.06));
}

.hero-slim > * {
  position: relative;
  z-index: 1;
}

.hero-slim h1 {
  max-width: 780px;
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 5.35rem);
  text-wrap: balance;
}

.hero-slim .muted {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-slim .eyebrow,
.login-copy .eyebrow {
  color: #fde68a;
}

.hero-slim .actions {
  margin-top: 1.35rem;
}

.hero-slim .metric-row.compact {
  display: grid;
  align-self: stretch;
  min-width: 240px;
}

.hero-slim .metric-row.compact span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-slim .metric-row strong {
  color: #fde68a;
  font-size: 1.8rem;
}

.feature-strip .mini-card {
  min-height: 150px;
}

.mini-card,
.panel,
.login-copy {
  border-color: rgba(219, 229, 242, 0.92);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.mini-card {
  position: relative;
  overflow: hidden;
}

.mini-card::before {
  content: "";
  display: block;
  height: 5px;
  margin: -1rem -1rem 0.9rem;
  background: linear-gradient(90deg, var(--sky), var(--teal));
}

.mini-card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--coral), var(--gold));
}

.mini-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--violet), var(--sky));
}

.mini-card:hover,
.side-item:hover,
.radio-row:hover {
  border-color: rgba(2, 132, 199, 0.36);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.dashboard-head:not(.hero-slim) {
  border: 1px solid rgba(219, 229, 242, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.92)),
    #fff;
  padding: clamp(1rem, 3vw, 1.4rem);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.stat-grid .mini-card:nth-child(1) .score-large {
  color: var(--sky);
}

.stat-grid .mini-card:nth-child(2) .score-large {
  color: var(--teal);
}

.stat-grid .mini-card:nth-child(3) .score-large {
  color: var(--coral);
}

.progress-track span {
  background: linear-gradient(90deg, var(--sky), var(--teal), var(--gold));
}

.login-copy {
  background:
    linear-gradient(135deg, rgba(23, 37, 84, 0.98), rgba(109, 40, 217, 0.85) 46%, rgba(234, 88, 12, 0.82)),
    #172554;
}

.exam-panel {
  border-top: 5px solid var(--sky);
}

.question-block,
.review-card,
.option,
.option-line {
  background: rgba(255, 255, 255, 0.86);
}

.badge {
  border-color: rgba(2, 132, 199, 0.18);
  background: #eff6ff;
  color: #075985;
}

@media (max-width: 900px) {
  .hero-slim {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-slim .metric-row.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
}

@media (max-width: 560px) {
  .topbar {
    position: static;
  }

  .top-actions {
    width: 100%;
  }

  .top-actions a,
  .top-actions .button.small {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-slim {
    padding: 1rem;
  }

  .hero-slim h1 {
    font-size: 2.35rem;
  }

  .hero-slim .metric-row.compact {
    grid-template-columns: 1fr;
  }
}

/* Vocabulary memory visuals. */
.vocab-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.vocab-visual {
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  min-height: 118px;
  margin: -0.15rem -0.15rem 0.9rem;
  border-radius: 8px;
  padding: 0.85rem;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
}

.vocab-visual::before {
  content: "word buddy";
  position: absolute;
  right: 0.7rem;
  bottom: 0.55rem;
  color: rgba(15, 23, 42, 0.28);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.vocab-character {
  position: relative;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 4px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.16);
}

.vocab-character::before,
.vocab-character::after {
  content: "";
  position: absolute;
  top: 26px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0f172a;
}

.vocab-character::before {
  left: 22px;
}

.vocab-character::after {
  right: 22px;
}

.vocab-character span {
  padding-top: 1.25rem;
  color: var(--navy);
  font-size: 2rem;
  font-weight: 950;
}

.vocab-speech {
  position: relative;
  z-index: 1;
  max-width: 100%;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #172554;
  font-weight: 900;
  line-height: 1.25;
  padding: 0.72rem 0.85rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.vocab-visual-2 {
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.vocab-visual-3 {
  background: linear-gradient(135deg, #ede9fe, #bae6fd);
}

.vocab-visual-4 {
  background: linear-gradient(135deg, #dcfce7, #cffafe);
}

.vocab-visual-5 {
  background: linear-gradient(135deg, #fae8ff, #fee2e2);
}

.vocab-visual-6 {
  background: linear-gradient(135deg, #e0e7ff, #fef9c3);
}

@media (max-width: 560px) {
  .vocab-visual {
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 104px;
  }

  .vocab-character {
    width: 64px;
    height: 64px;
  }

  .vocab-character::before,
  .vocab-character::after {
    top: 22px;
  }

  .vocab-character::before {
    left: 18px;
  }

  .vocab-character::after {
    right: 18px;
  }

  .vocab-character span {
    font-size: 1.65rem;
  }
}

.vocab-picture {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  border: 1px solid rgba(219, 229, 242, 0.9);
  border-radius: 8px;
  object-fit: cover;
  background: #eff6ff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.word-forms {
  display: grid;
  gap: 0.5rem;
  margin: 0.85rem 0;
}

.word-form-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 0.15rem 0.65rem;
  border: 1px solid rgba(219, 229, 242, 0.95);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.9);
  padding: 0.58rem 0.68rem;
}

.word-form-row span {
  color: var(--navy);
  font-weight: 900;
}

.word-form-row b {
  color: var(--ink);
  font-weight: 900;
}

.word-form-row small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.exam-timer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid rgba(2, 132, 199, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
}

.exam-timer strong {
  color: var(--navy);
  font-size: 1.4rem;
  line-height: 1;
}

.exam-timer small {
  color: var(--muted);
  font-weight: 800;
}

.exam-timer.warning {
  border-color: rgba(234, 88, 12, 0.34);
  background: #fff7ed;
}

.exam-timer.expired {
  border-color: rgba(185, 28, 28, 0.34);
  background: #fef2f2;
}

@media (max-width: 560px) {
  .word-form-row {
    grid-template-columns: 1fr;
  }

  .word-form-row small {
    grid-column: 1;
  }
}

/* ARZA_IMAGE_FRAME_START */
.vocab-card {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(14, 165, 233, 0.45), rgba(249, 115, 22, 0.42), rgba(124, 58, 237, 0.42)) border-box;
  border: 1px solid transparent;
}

.vocab-picture {
  box-sizing: border-box;
  border: 9px solid #ffffff;
  outline: 1px solid rgba(15, 23, 42, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.86)),
    #ffffff;
  object-fit: contain;
  padding: 0.22rem;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.9) inset,
    0 16px 32px rgba(15, 23, 42, 0.14),
    0 0 0 5px rgba(255, 255, 255, 0.52);
}

.vocab-card:hover .vocab-picture {
  transform: translateY(-2px);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.92) inset,
    0 22px 44px rgba(15, 23, 42, 0.18),
    0 0 0 5px rgba(14, 165, 233, 0.13);
}

.vocab-picture {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

@media (max-width: 560px) {
  .vocab-picture {
    border-width: 6px;
  }
}
/* ARZA_IMAGE_FRAME_END */
