/* ─────────────────────────────────────────────────────────────────────────────
   schule.frobel.net – gemeinsames Stylesheet
   Wird von allen Seiten geladen (Startseite, Fächer, Trainer, Admin).
   Fach-Akzent: <body data-fach="englisch|latein|deutsch|mathe">
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  --bg: #f0f4f8;
  --card: #ffffff;
  --card-2: #f8fafc;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;

  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-soft: #eff6ff;

  --success: #22c55e;
  --success-dark: #16a34a;
  --success-soft: #f0fdf4;
  --error: #ef4444;
  --error-soft: #fef2f2;
  --warn: #f59e0b;
  --warn-dark: #d97706;
  --warn-soft: #fffbeb;
  --violet: #8b5cf6;
  --violet-soft: #f5f3ff;

  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, .06);
  --shadow-lg: 0 4px 24px rgba(0, 0, 0, .08);

  --w-narrow: 480px;
  --w-mid: 760px;
  --w-wide: 1080px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Fach-Akzente */
body[data-fach="englisch"] { --primary: #3b82f6; --primary-dark: #2563eb; --primary-soft: #eff6ff; }
body[data-fach="latein"]   { --primary: #8b5cf6; --primary-dark: #7c3aed; --primary-soft: #f5f3ff; }
body[data-fach="deutsch"]  { --primary: #14b8a6; --primary-dark: #0d9488; --primary-soft: #f0fdfa; }
body[data-fach="mathe"]    { --primary: #f97316; --primary-dark: #ea580c; --primary-soft: #fff7ed; }
body[data-fach="admin"]    { --primary: #475569; --primary-dark: #334155; --primary-soft: #f1f5f9; }

.fach-englisch { --fach: #3b82f6; --fach-soft: #eff6ff; }
.fach-latein   { --fach: #8b5cf6; --fach-soft: #f5f3ff; }
.fach-deutsch  { --fach: #14b8a6; --fach-soft: #f0fdfa; }
.fach-mathe    { --fach: #f97316; --fach-soft: #fff7ed; }

/* ── Basis ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px 32px;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.4;
}
a { color: var(--primary); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; background: var(--card-2); padding: 1px 5px; border-radius: 4px; }
[hidden] { display: none !important; }

/* ── Seitenbreite ─────────────────────────────────────────────────────────── */
.page { width: 100%; max-width: var(--w-narrow); flex: 1; }
.page-mid { max-width: var(--w-mid); }
.page-wide { max-width: var(--w-wide); }

/* ── Obere Leiste (auf allen Seiten) ──────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40; align-self: stretch;
  margin: -12px -16px 16px; background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border); box-shadow: 0 1px 8px rgba(0, 0, 0, .04);
}
.topbar-inner {
  max-width: var(--w-wide); margin: 0 auto; padding: 8px 16px; min-height: 54px;
  display: flex; align-items: center; gap: 10px;
}
.topbar-brand {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none; flex-shrink: 0;
  font-size: 1.25rem; font-weight: 800; color: var(--text); padding: 4px 6px 4px 0;
}
.topbar-brand span { font-size: 1.05rem; color: var(--primary); }
.topbar-nav { display: flex; gap: 2px; margin-left: 6px; min-width: 0; }
.topbar-nav a {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  text-decoration: none; color: var(--muted); font-size: .9rem; font-weight: 600; white-space: nowrap;
  transition: background .15s, color .15s;
}
.topbar-nav a:hover { background: var(--bg); color: var(--text); }
.topbar-nav a.active { background: var(--primary-soft); color: var(--primary-dark); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.topbar-admin {
  display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 700;
  color: var(--primary-dark); background: var(--primary-soft); padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}
.topbar-burger {
  width: 38px; height: 38px; border-radius: 10px; border: 2px solid var(--border); background: var(--card);
  font-size: 1.1rem; line-height: 1; color: var(--text); display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .15s;
}
.topbar-burger:hover, .topbar-burger[aria-expanded="true"] { border-color: var(--primary); color: var(--primary); }
.hdr-info { font-size: .9rem; color: var(--muted); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

.avatar-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2); font-size: 1.15rem; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
}

/* Menü der Leiste */
.topbar-panel {
  position: absolute; top: calc(100% + 6px); right: max(12px, calc((100vw - var(--w-wide)) / 2 + 12px));
  width: min(320px, calc(100vw - 24px)); max-height: calc(100dvh - 80px); overflow: auto;
  background: var(--card); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(15, 23, 42, .18);
  border: 1px solid var(--border); padding: 14px;
}
.panel-title { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin: 14px 0 8px; }
.panel-title:first-child { margin-top: 0; }
.panel-account { display: flex; align-items: center; gap: 12px; font-size: .92rem; line-height: 1.35; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.panel-links { display: flex; flex-direction: column; gap: 2px; }
.panel-links a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
  text-decoration: none; color: var(--text); font-weight: 600; font-size: .95rem;
}
.panel-links a small { margin-left: auto; color: var(--muted); font-weight: 500; font-size: .74rem; }
.panel-links a:hover { background: var(--bg); }
.panel-links a.active { background: var(--primary-soft); color: var(--primary-dark); }

.overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 60;
  display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px; overflow: auto;
}
.overlay-card { width: 100%; max-width: 440px; margin: 0; }

@media (max-width: 760px) {
  .topbar-nav { display: none; }
  .topbar-admin span { display: none; }
}

/* ── Seitenkopf: Zurück + Titel ───────────────────────────────────────────── */
.site-header {
  width: 100%;
  max-width: var(--w-narrow);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  min-height: 34px;
}
.site-header.page-mid { max-width: var(--w-mid); }
.site-header.page-wide { max-width: var(--w-wide); }
.site-header .hdr-left { justify-self: start; }
.site-header .hdr-right { justify-self: end; display: flex; align-items: center; gap: 8px; }
.site-header h1 {
  font-size: 1.1rem; font-weight: 700; color: var(--primary);
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw;
}
.back-link {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; color: var(--primary);
  font-size: .95rem; font-weight: 600; text-decoration: none; padding: 6px 0;
  white-space: nowrap;
}
.back-link:hover { text-decoration: underline; }

.site-footer {
  margin-top: auto; padding-top: 32px; color: var(--muted);
  font-size: .8rem; text-align: center; line-height: 1.5;
}
.site-footer a { color: var(--muted); }

/* ── Typografie ───────────────────────────────────────────────────────────── */
.screen-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; line-height: 1.2; }
.screen-sub { color: var(--muted); font-size: .95rem; margin-bottom: 18px; line-height: 1.5; }
.section-title {
  font-size: .78rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .07em; margin: 22px 0 10px;
}
.section-title:first-child { margin-top: 0; }
.intro { color: var(--muted); font-size: .95rem; line-height: 1.5; margin-bottom: 16px; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.center { text-align: center; }
.no-data { color: var(--muted); font-size: .9rem; padding: 14px 0; }

/* ── Karten ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; margin-bottom: 14px;
}
.card-lg { padding: 28px 24px; box-shadow: var(--shadow-lg); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
@media (max-width: 420px) { .grid-2 { grid-template-columns: 1fr; } }

/* Kachel: Fach / Thema / Set */
.tile {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow); border: 2px solid transparent; text-decoration: none; color: var(--text);
  cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .1s;
}
.tile:hover { border-color: var(--fach, var(--primary)); box-shadow: 0 4px 20px rgba(0, 0, 0, .09); }
.tile:active { transform: scale(.985); }
.tile.disabled { opacity: .55; pointer-events: none; }
.tile-icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
  background: var(--fach-soft, var(--primary-soft));
}
.tile-body { flex: 1; min-width: 0; }
.tile-name { font-size: 1.05rem; font-weight: 700; }
.tile-desc { font-size: .82rem; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.tile-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tile-arrow { color: var(--muted); font-size: 1.3rem; flex-shrink: 0; }
.tile-vertical { flex-direction: column; align-items: flex-start; gap: 10px; }
.tile-vertical .tile-arrow { display: none; }

.tag {
  display: inline-block; background: var(--bg); color: var(--muted); border-radius: 999px;
  font-size: .75rem; font-weight: 600; padding: 3px 10px; white-space: nowrap;
}
.tag-primary { background: var(--primary-soft); color: var(--primary-dark); }
.tag-success { background: var(--success-soft); color: var(--success-dark); }
.tag-warn { background: var(--warn-soft); color: var(--warn-dark); }
.tag-error { background: var(--error-soft); color: var(--error); }
.tag-violet { background: var(--violet-soft); color: #6d28d9; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 18px; border-radius: var(--radius-sm); border: 2px solid transparent;
  font-size: 1rem; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: var(--success-dark); }
.btn-danger { background: var(--error); color: #fff; }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: var(--bg); color: var(--muted); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px; font-size: 1.05rem; }
.btn-sm { padding: 7px 13px; font-size: .85rem; border-radius: var(--radius-xs); }
.btn-link {
  background: none; border: none; color: var(--primary); font-weight: 600;
  text-decoration: underline; padding: 6px 8px; font-size: .9rem; cursor: pointer;
}
.btn-link.muted { color: var(--muted); }
.big-btn {
  display: block; width: 100%; text-align: left;
  background: var(--primary); color: #fff; border: 2px solid transparent; border-radius: var(--radius);
  padding: 16px; font-size: 1.05rem; font-weight: 700; cursor: pointer; margin-bottom: 12px;
  transition: transform .1s;
}
.big-btn:active { transform: scale(.98); }
.big-btn small { display: block; font-weight: 400; font-size: .82rem; opacity: .85; margin-top: 3px; }
.big-btn.secondary { background: var(--card); color: var(--text); border-color: var(--border); }
.big-btn.mix { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.big-btn:disabled { opacity: .45; cursor: default; }

/* ── Formulare ────────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 4px; }
.field label, .label {
  font-size: .78rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em;
}
.input, select.input, textarea.input {
  width: 100%; padding: 11px 13px; border: 2px solid var(--border); border-radius: var(--radius-xs);
  font-size: 1rem; background: var(--bg); color: var(--text); outline: none;
  transition: border-color .15s; -webkit-appearance: none; appearance: none;
}
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px;
}
.input:focus { border-color: var(--primary); }
.input.correct { border-color: var(--success); background: var(--success-soft); }
.input.wrong { border-color: var(--error); background: var(--error-soft); }
.input-lg { font-size: 1.2rem; padding: 14px 16px; }
.form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.form-row .field { flex: 1; min-width: 140px; }
.form-row .field.narrow { flex: 0 0 auto; min-width: 70px; }
.form-row .field.wide { flex: 2; min-width: 200px; }
.form-row .field.full { flex-basis: 100%; }
.check-row { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 6px 0; }
.check-row label { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--primary); }
.form-error { color: var(--error); font-size: .88rem; font-weight: 600; min-height: 1.3em; }

/* ── Benutzer & Avatare ───────────────────────────────────────────────────── */
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  border-radius: 50%; color: #fff; font-weight: 800; background: var(--muted);
  width: 36px; height: 36px; font-size: 1.1rem;
}
.avatar-sm { width: 26px; height: 26px; font-size: .85rem; }
.avatar-lg { width: 64px; height: 64px; font-size: 2rem; }
.avatar-xl { width: 96px; height: 96px; font-size: 2.8rem; border: 4px solid #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }

.user-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.user-card {
  background: var(--card); border-radius: var(--radius); padding: 22px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  box-shadow: var(--shadow); cursor: pointer; border: 2px solid transparent;
  transition: border-color .15s, transform .1s;
}
.user-card:hover { border-color: var(--primary); }
.user-card:active { transform: scale(.96); }
.user-card .avatar { width: 64px; height: 64px; font-size: 2rem; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.user-card .name { font-weight: 700; }
.user-card .lock { font-size: .72rem; color: var(--muted); }

.picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pick-icon {
  width: 44px; height: 44px; font-size: 1.4rem; border-radius: 10px;
  border: 2px solid var(--border); background: var(--card); cursor: pointer;
}
.pick-icon.sel { border-color: var(--primary); background: var(--primary-soft); }
.pick-color {
  width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--border); cursor: pointer;
}
.pick-color.sel { box-shadow: 0 0 0 3px var(--text); }

.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.row-between:last-child { border-bottom: none; }

/* ── Sonstiges ────────────────────────────────────────────────────────────── */
.progress { width: 100%; height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; margin-bottom: 20px; }
.progress > div { height: 100%; background: var(--primary); border-radius: 99px; transition: width .4s ease; }

.notice {
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: .85rem; line-height: 1.5;
  border: 1.5px solid var(--border); background: var(--card); color: var(--muted); margin: 12px 0;
}
.notice-info { background: var(--primary-soft); border-color: transparent; color: var(--primary-dark); }
.notice-warn { background: var(--warn-soft); border-color: #fde68a; color: #92400e; }
.notice-error { background: var(--error-soft); border-color: #fecaca; color: var(--error); }
.notice-success { background: var(--success-soft); border-color: #bbf7d0; color: var(--success-dark); }

.loading { text-align: center; color: var(--muted); padding: 40px 0; font-size: .95rem; }
.spinner {
  width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary);
  border-radius: 50%; animation: spin .7s linear infinite; margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { from { box-shadow: 0 0 0 0 rgba(59, 130, 246, .3); } to { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); } }

.confetti {
  position: fixed; top: -20px; border-radius: 3px; width: 10px; height: 10px;
  z-index: 99; pointer-events: none; animation: fall linear forwards;
}
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ── Admin-Layout ─────────────────────────────────────────────────────────── */
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.admin-nav a, .tabs a {
  padding: 8px 16px; border-radius: var(--radius-xs); text-decoration: none; font-size: .9rem;
  font-weight: 600; border: 2px solid var(--border); color: var(--muted); background: var(--card);
  transition: all .15s; white-space: nowrap;
}
.admin-nav a:hover, .tabs a:hover { border-color: var(--primary); color: var(--primary); }
.admin-nav a.active, .tabs a.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tabs a { padding: 6px 13px; font-size: .84rem; }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  border: 2px solid var(--border); background: var(--card); color: var(--muted); font-size: .84rem;
  font-weight: 600; text-decoration: none; white-space: nowrap; transition: all .15s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-start; margin-bottom: 18px; }
.filter-bar .label { display: block; margin-bottom: 6px; }

.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; }
.table th {
  background: var(--card-2); padding: 10px 14px; text-align: left; font-size: .74rem; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: .05em; border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.table td { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: .9rem; vertical-align: top; }
.table tr:last-child td { border-bottom: none; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-compact td { padding: 5px 8px; }
.table-compact td .input { padding: 6px 9px; font-size: .88rem; border-width: 1.5px; border-radius: 6px; }
.ok { color: var(--success-dark); font-weight: 700; }
.fail { color: var(--error); font-weight: 700; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stat-card { background: var(--card); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow); }
.stat-card .label { margin-bottom: 4px; }
.stat-card .value { font-size: 1.6rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-card .sub { font-size: .78rem; color: var(--muted); margin-top: 3px; }

.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 680px) { .chart-grid { grid-template-columns: 1fr; } }
.chart-box { background: var(--card); border-radius: var(--radius-sm); padding: 16px; box-shadow: var(--shadow); }
.chart-box h3 { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }

.del-btn {
  background: none; border: 1.5px solid var(--border); color: var(--muted); width: 28px; height: 28px;
  border-radius: 6px; cursor: pointer; font-size: 1rem; display: inline-flex; align-items: center;
  justify-content: center; transition: all .15s; flex-shrink: 0; padding: 0;
}
.del-btn:hover { border-color: var(--error); color: var(--error); background: var(--error-soft); }

details summary { cursor: pointer; color: var(--primary); font-size: .82rem; font-weight: 600; list-style: none; padding-top: 4px; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: '▸ '; }
details[open] summary::before { content: '▾ '; }
.answers-list { margin-top: 8px; display: flex; flex-direction: column; gap: 3px; }
.answer-row { display: flex; gap: 8px; align-items: baseline; font-size: .8rem; padding: 3px 7px; border-radius: 5px; }
.answer-row.ok { background: var(--success-soft); }
.answer-row.fail { background: var(--error-soft); }
.answer-row .given { color: var(--muted); font-style: italic; }

.err-bar-wrap { background: var(--border); border-radius: 99px; height: 6px; width: 70px; overflow: hidden; display: inline-block; vertical-align: middle; }
.err-bar { height: 100%; border-radius: 99px; background: var(--warn-dark); }

.login-box { max-width: 360px; margin: 60px auto 0; text-align: center; }
.login-box h1 { font-size: 1.3rem; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.login-box p { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.login-box .input { margin-bottom: 12px; text-align: center; }

@media (max-width: 600px) {
  .hide-sm { display: none !important; }
}

a.tag { text-decoration: none; }
a.tag:hover { color: var(--primary-dark); }
