/* ============================================================
   Financial Literacy Quiz — design system
   Modern government aesthetic: white, blue accent, rounded
   cards, generous spacing, subtle motion.
   ============================================================ */

:root {
  --blue-900: #0d2b5b;
  --blue-800: #123f8c;
  --blue-700: #1a56db;
  --blue-600: #2563eb;
  --blue-100: #dbe7fb;
  --blue-50: #eff4fc;
  --ink: #1a2333;
  --ink-soft: #4b5768;
  --ink-faint: #79879b;
  --line: #dde4ee;
  --bg: #f6f8fb;
  --card: #ffffff;
  --green-700: #14713a;
  --green-50: #e9f7ee;
  --red-700: #b42328;
  --red-50: #fdeceb;
  --amber-700: #92600a;
  --amber-50: #fdf3df;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(13, 43, 91, 0.06), 0 8px 24px rgba(13, 43, 91, 0.08);
  --shadow-soft: 0 1px 3px rgba(13, 43, 91, 0.08);
  --focus-ring: 0 0 0 3px #ffffff, 0 0 0 6px var(--blue-600);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Visible focus everywhere (WCAG 2.4.7) */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

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

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  background: var(--blue-800);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Header ---- */

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex: none;
  border-radius: var(--radius-sm);
}

.site-logo {
  display: block;
  height: 46px;
  width: auto;
}

.site-divider {
  width: 1px;
  height: 34px;
  background: var(--line);
  flex: none;
}

.site-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-900);
  line-height: 1.25;
}

.site-title small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-faint);
}

.header-spacer { flex: 1; }

.lang-picker {
  display: flex;
  gap: 2px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  padding: 3px;
  flex: none;
}

.lang-btn {
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 5px 13px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-btn:hover { color: var(--blue-800); }

.lang-btn.active {
  background: var(--blue-700);
  color: #fff;
}

@media (max-width: 760px) {
  .site-title, .site-divider { display: none; }
  .site-logo { height: 38px; }
}
@media (max-width: 420px) {
  .site-logo { height: 32px; }
  .site-header .inner { padding: 12px 14px; gap: 8px; }
}

.header-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue-700);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.header-link:hover { background: var(--blue-50); }

/* ---- Layout ---- */

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}

@media (max-width: 640px) {
  .card { padding: 24px 20px; }
  .page { padding: 20px 14px 60px; }
}

/* Screen transitions */
.screen { animation: screen-in 0.35s ease both; }
@keyframes screen-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
[hidden] { display: none !important; }

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--blue-700);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26, 86, 219, 0.35);
}
.btn-primary:hover { background: var(--blue-800); }

.btn-lg { padding: 16px 36px; font-size: 18px; border-radius: 14px; }

.btn-secondary {
  background: var(--card);
  color: var(--blue-800);
  border-color: var(--line);
}
.btn-secondary:hover { background: var(--blue-50); }

.btn-quiet {
  background: transparent;
  color: var(--ink-soft);
  padding: 10px 14px;
}
.btn-quiet:hover { background: var(--blue-50); color: var(--blue-800); }

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

/* ---- Landing ---- */

.landing { text-align: center; padding-top: 24px; }

.landing .eyebrow {
  display: inline-block;
  background: var(--blue-50);
  color: var(--blue-800);
  border: 1px solid var(--blue-100);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.landing h1 {
  font-size: clamp(30px, 5.5vw, 46px);
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--blue-900);
  letter-spacing: -0.02em;
}

.landing .subtitle {
  max-width: 560px;
  margin: 0 auto 34px;
  font-size: 17.5px;
  color: var(--ink-soft);
}

.landing-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
}

.landing-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.landing-meta .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-600);
  flex: none;
}

/* ---- Intro ---- */

.intro h2 { margin-top: 0; color: var(--blue-900); font-size: 26px; }

.intro-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 30px;
  display: grid;
  gap: 12px;
}

.intro-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ink);
}

.intro-list .num {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--blue-700);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

/* ---- Progress ---- */

.progress-wrap { margin-bottom: 22px; }

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.progress-label strong { color: var(--blue-900); font-size: 15px; }

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: var(--blue-100);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-800));
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Question ---- */

.q-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.chip {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-800);
  border: 1px solid var(--blue-100);
}

.chip.neutral { background: #f1f3f7; color: var(--ink-soft); border-color: var(--line); }

.q-text {
  font-size: clamp(19px, 3vw, 23px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--blue-900);
  margin: 0 0 24px;
}

.q-image {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  margin-bottom: 22px;
}

.answers {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.answer-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 15px 18px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.answer-btn:hover:not(:disabled) {
  border-color: var(--blue-600);
  background: var(--blue-50);
}

.answer-btn:disabled { cursor: default; }

.answer-btn .radio {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--ink-faint);
  display: grid;
  place-items: center;
  transition: border-color 0.15s ease;
}

.answer-btn:hover:not(:disabled) .radio { border-color: var(--blue-600); }

.answer-btn .mark { font-weight: 800; font-size: 15px; flex: none; margin-left: auto; }

.answer-btn.is-correct {
  border-color: var(--green-700);
  background: var(--green-50);
}
.answer-btn.is-correct .radio {
  border-color: var(--green-700);
  background: var(--green-700);
}
.answer-btn.is-correct .radio::after {
  content: "";
  width: 10px; height: 6px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.answer-btn.is-correct .mark { color: var(--green-700); }

.answer-btn.is-wrong {
  border-color: var(--red-700);
  background: var(--red-50);
}
.answer-btn.is-wrong .radio { border-color: var(--red-700); }
.answer-btn.is-wrong .radio::after {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--red-700);
}
.answer-btn.is-wrong .mark { color: var(--red-700); }

.answer-btn.is-faded { opacity: 0.55; }

/* ---- Feedback ---- */

.feedback {
  margin-top: 24px;
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  animation: screen-in 0.3s ease both;
}

.feedback.correct { background: var(--green-50); border: 1px solid #bfe5cc; }
.feedback.incorrect { background: var(--red-50); border: 1px solid #f3c8c6; }

.feedback .verdict {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 10px;
}
.feedback.correct .verdict { color: var(--green-700); }
.feedback.incorrect .verdict { color: var(--red-700); }

.feedback h3 {
  font-size: 13px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 16px 0 6px;
}

.feedback p { margin: 0; color: var(--ink); font-size: 15.5px; }

.feedback .didyouknow {
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--blue-600);
  font-size: 14.5px;
  color: var(--ink-soft);
}
.feedback .didyouknow strong { color: var(--blue-800); }

.next-row {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
}

/* ---- Results ---- */

.results { text-align: center; }

.score-hero { padding: 12px 0 4px; }

.score-hero .label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.score-ring {
  width: 190px; height: 190px;
  margin: 18px auto;
  position: relative;
}

.score-ring svg { transform: rotate(-90deg); }

.score-ring .ring-bg { stroke: var(--blue-100); }
.score-ring .ring-val {
  stroke: var(--blue-700);
  stroke-linecap: round;
  transition: stroke-dashoffset 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.score-ring .ring-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
}

.score-ring .big {
  font-size: 40px;
  font-weight: 800;
  color: var(--blue-900);
  line-height: 1.1;
}

.score-ring .pct { font-size: 16px; font-weight: 600; color: var(--ink-soft); }

.level-badge {
  display: inline-block;
  font-size: 15px;
  font-weight: 800;
  padding: 8px 22px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.level-beginner { background: var(--red-50); color: var(--red-700); }
.level-intermediate { background: var(--amber-50); color: var(--amber-700); }
.level-advanced { background: var(--blue-50); color: var(--blue-800); }
.level-excellent { background: var(--green-50); color: var(--green-700); }

.level-desc {
  max-width: 460px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 16px;
}

/* Profile bars */

.profile-section { text-align: left; margin-top: 36px; }

.profile-section h2, .reco-section h2 {
  font-size: 19px;
  color: var(--blue-900);
  margin: 0 0 4px;
}

.section-sub { color: var(--ink-faint); font-size: 14px; margin: 0 0 18px; }

.profile-bars { display: grid; gap: 14px; }

.profile-row .bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 5px;
}
.profile-row .bar-label .val { color: var(--ink-soft); font-weight: 700; }

.profile-row .bar-track {
  height: 12px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  overflow: hidden;
}

.profile-row .bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--blue-600);
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.profile-row.weak .bar-fill { background: var(--amber-700); }

.profile-summary {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--blue-50);
  border-left: 4px solid var(--blue-700);
  border-radius: var(--radius-sm);
  text-align: left;
  color: var(--ink);
  font-size: 15px;
}

/* Recommendations */

.reco-section { text-align: left; margin-top: 36px; }

.reco-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.reco-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--blue-800);
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.reco-list a:hover { border-color: var(--blue-600); transform: translateX(3px); }

.reco-list .tick {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--green-50);
  color: var(--green-700);
  font-weight: 800;
  display: grid;
  place-items: center;
}

.reco-list .arrow { margin-left: auto; color: var(--ink-faint); }

.results-actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Resume banner */
.resume-banner {
  background: var(--amber-50);
  border: 1px solid #f0dcae;
  color: var(--amber-700);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 18px;
}

/* ============================================================
   Admin (CMS + analytics)
   ============================================================ */

.admin-page { max-width: 1080px; }

.admin-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--line);
}

.admin-tab {
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
  background: none;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.admin-tab[aria-selected="true"] {
  color: var(--blue-800);
  border-bottom-color: var(--blue-700);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 20px 22px;
}

.stat-card .stat-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.stat-card .stat-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--blue-900);
  line-height: 1.15;
}

.stat-card .stat-sub { font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 24px 26px;
  margin-bottom: 24px;
}

.panel h2 { margin: 0 0 16px; font-size: 17px; color: var(--blue-900); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

/* Mini bar chart */
.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 130px;
  padding-top: 8px;
}

.mini-chart .col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.mini-chart .bar {
  width: 100%;
  max-width: 34px;
  background: var(--blue-600);
  border-radius: 5px 5px 0 0;
  min-height: 2px;
  transition: height 0.5s ease;
}

.mini-chart .col-label {
  font-size: 10.5px;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.empty-note {
  color: var(--ink-faint);
  font-size: 14.5px;
  padding: 16px 0;
}

/* Question manager */

.qm-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.qm-toolbar .spacer { flex: 1; }

.q-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.q-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
}

.q-item.dragging { opacity: 0.45; }
.q-item.drop-target { border-color: var(--blue-600); box-shadow: 0 0 0 2px var(--blue-100); }
.q-item.inactive { opacity: 0.55; background: #fafbfd; }

.drag-handle {
  cursor: grab;
  color: var(--ink-faint);
  font-size: 18px;
  letter-spacing: 2px;
  border: none;
  background: none;
  padding: 6px 4px;
  line-height: 1;
}
.drag-handle:active { cursor: grabbing; }

.q-item .q-info { flex: 1; min-width: 0; }

.q-item .q-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.q-item .q-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }

.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-800);
  border: 1px solid var(--blue-100);
}
.badge.gray { background: #f1f3f7; color: var(--ink-soft); border-color: var(--line); }
.badge.green { background: var(--green-50); color: var(--green-700); border-color: #bfe5cc; }
.badge.red { background: var(--red-50); color: var(--red-700); border-color: #f3c8c6; }

.q-item .q-actions { display: flex; gap: 4px; flex: none; }

.icon-btn {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
}
.icon-btn:hover { background: var(--blue-50); color: var(--blue-800); }
.icon-btn.danger:hover { background: var(--red-50); color: var(--red-700); }

@media (max-width: 640px) {
  .q-item { flex-wrap: wrap; }
  .q-item .q-actions { width: 100%; justify-content: flex-end; }
}

/* Editor dialog */

dialog.editor {
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(13, 43, 91, 0.25);
  padding: 0;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
}

.editor-section {
  font-size: 13px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 4px 0 -6px;
}

.editor-langs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 6px;
}
@media (max-width: 720px) { .editor-langs { grid-template-columns: 1fr; } }

.editor-lang-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 0;
  display: grid;
  gap: 14px;
  align-content: start;
}

.editor-lang-block legend {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue-800);
  padding: 0 8px;
}

.field .field-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.answers-grid { gap: 8px !important; }

dialog.editor::backdrop { background: rgba(13, 43, 91, 0.45); }

.editor-inner { padding: 28px 30px; }

.editor h2 { margin: 0 0 20px; font-size: 20px; color: var(--blue-900); }

.form-grid { display: grid; gap: 16px; }

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

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
}

.field textarea { resize: vertical; min-height: 74px; }

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px var(--blue-100);
}

.answer-edit-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.answer-edit-row input[type="radio"] {
  width: 19px; height: 19px;
  accent-color: var(--blue-700);
  flex: none;
}

.answer-edit-row input[type="text"] { flex: 1; }

.correct-hint { font-size: 12.5px; color: var(--ink-faint); margin: 2px 0 0; }

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}
.check-row input { width: 19px; height: 19px; accent-color: var(--blue-700); }

.editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
}

/* Footer */
.site-footer {
  text-align: center;
  color: var(--ink-faint);
  font-size: 13px;
  padding: 0 20px 40px;
}
