/* ============================================================
   REVISO — design system
   Warm, calm, premium. Friendly for a 9-10 year old without
   being babyish.
   ============================================================ */

:root {
  --cream: #fffbf4;
  --paper: #ffffff;

  --ink: #1b2b44;
  --ink-soft: #4a5c75;
  --ink-faint: #8a99ae;

  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-300: #93c5fd;
  --brand-400: #5aa2f0;
  --brand-500: #2f7fe0;
  --brand-600: #1e5fbf;
  --brand-700: #194c99;
  --brand-800: #163e7a;

  --grass-50: #f0fbf2;
  --grass-100: #dcf5e1;
  --grass-200: #bcebc6;
  --grass-300: #8fdca0;
  --grass-500: #3eb45f;
  --grass-600: #2e9a4c;
  --grass-700: #26793e;

  --sun-50: #fffbeb;
  --sun-100: #fff3c4;
  --sun-200: #ffe699;
  --sun-400: #ffc93c;

  --berry-100: #fde7ec;
  --berry-500: #e4576f;
  --berry-600: #c93f57;

  --radius: 1.25rem;
  --radius-lg: 1.75rem;
  --shadow-soft: 0 2px 4px rgba(27, 43, 68, .04), 0 8px 24px rgba(27, 43, 68, .06);
  --shadow-lift: 0 4px 8px rgba(27, 43, 68, .06), 0 16px 40px rgba(27, 43, 68, .1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: Nunito, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(60rem 30rem at 110% -10%, rgba(95, 201, 122, .10), transparent 60%),
    radial-gradient(50rem 26rem at -10% 0%, rgba(47, 127, 224, .10), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Baloo 2", Nunito, system-ui, sans-serif;
  letter-spacing: -.01em;
  margin: 0;
}

a { color: inherit; }

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(147, 197, 253, .6);
  border-radius: 1rem;
}

.muted { color: var(--ink-faint); font-weight: 700; font-size: .875rem; }
.soft { color: var(--ink-soft); }
.center { text-align: center; }
.stack > * + * { margin-top: 1.25rem; }
.row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.spread { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 251, 244, .85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.topbar-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: .75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-600);
}

.brand img { border-radius: .9rem; }

.topbar-right { display: flex; align-items: center; gap: .75rem; }

.page { max-width: 64rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.page-narrow { max-width: 42rem; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }

.admin-shell {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.sidebar { display: flex; gap: .5rem; overflow-x: auto; }
.admin-main { flex: 1 1 auto; min-width: 0; }

.sidebar a {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .875rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background-color .15s;
}

.sidebar a:hover { background: rgba(0, 0, 0, .05); }
.sidebar a.active { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-soft); }

@media (min-width: 768px) {
  .admin-shell { flex-direction: row; }
  .sidebar { flex-direction: column; width: 14rem; flex-shrink: 0; overflow: visible; }
}

@media (max-width: 767px) {
  .admin-shell { flex-direction: column; }
  .hide-sm { display: none; }
}

/* ---------- Card ---------- */

.card {
  background: var(--paper);
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
}

.card + .card { margin-top: 1.25rem; }
.card-pad-0 { padding: 0; overflow: hidden; }

h1.page-title { font-size: 2rem; font-weight: 800; }
h2.card-title { font-size: 1.25rem; font-weight: 700; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  height: 3rem;
  padding: 0 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color .15s, transform .05s, border-color .15s;
  background: var(--brand-600);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn:hover { background: var(--brand-700); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-loading { opacity: .7; cursor: not-allowed; }

.btn-lg { height: 3.5rem; padding: 0 2rem; font-size: 1.125rem; }
.btn-sm { height: 2.25rem; padding: 0 1rem; font-size: .875rem; border-radius: .9rem; }
.btn-block { width: 100%; }

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--brand-100);
  box-shadow: none;
}
.btn-secondary:hover { background: var(--brand-50); border-color: var(--brand-300); }

.btn-success { background: var(--grass-500); }
.btn-success:hover { background: var(--grass-600); }

.btn-ghost { background: transparent; color: var(--ink-soft); box-shadow: none; }
.btn-ghost:hover { background: rgba(0, 0, 0, .05); }

.btn-danger { background: var(--berry-100); color: var(--berry-600); box-shadow: none; }
.btn-danger:hover { background: #f9d2da; }

.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

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

/* ---------- Badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 800;
}

.badge-muted { background: rgba(0, 0, 0, .05); color: var(--ink-faint); }
.badge-brand { background: var(--brand-50); color: var(--brand-700); }
.badge-success { background: var(--grass-50); color: var(--grass-700); }
.badge-warn { background: var(--sun-50); color: #d4930a; }
.badge-neutral { background: rgba(27, 43, 68, .05); color: var(--ink-soft); }

/* ---------- Forms ---------- */

label.field { display: block; }
label.field > span { display: block; font-size: .875rem; font-weight: 800; color: var(--ink-soft); margin-bottom: .35rem; }

input[type=text], input[type=email], input[type=password], input[type=date], select, textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--brand-100);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  transition: border-color .15s;
}

input[type=text], input[type=email], input[type=password] { height: 3.5rem; }
input[type=date], select { height: 3rem; }
textarea { min-height: 4.5rem; resize: vertical; }

input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-400); box-shadow: none; }
input::placeholder { font-weight: 400; color: var(--ink-faint); }

.field-sm input, .field-sm textarea, .field-sm select { border-color: rgba(0, 0, 0, .06); font-size: .9375rem; }
.field-sm input[type=text] { height: 2.75rem; }

.alert {
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .875rem;
}

.alert-error { background: var(--berry-100); color: var(--berry-600); }
.alert-warn { background: var(--sun-50); border: 2px solid var(--sun-200); color: var(--ink-soft); }
.alert-info { background: var(--brand-50); color: var(--ink-soft); }

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

.progress-row { display: flex; align-items: center; gap: .75rem; }

.progress {
  flex: 1 1 auto;
  height: .75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, .07);
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(to right, var(--brand-400), var(--brand-600));
  transition: width .5s ease-out;
}

.progress-label { width: 3rem; text-align: right; font-weight: 800; font-size: .875rem; color: var(--ink-soft); }

/* ---------- Login ---------- */

.login-wrap {
  max-width: 28rem;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 1.25rem;
}

.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo img { border-radius: 1.25rem; }
.login-logo h1 { font-size: 2.25rem; font-weight: 800; color: var(--brand-600); margin-top: .75rem; }
.login-logo p { margin: .25rem 0 0; font-size: .875rem; font-weight: 700; color: var(--ink-faint); }

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  background: rgba(0, 0, 0, .04);
  border-radius: var(--radius);
  padding: .375rem;
}

.tabs button {
  border: none;
  background: transparent;
  font-family: inherit;
  font-weight: 800;
  font-size: .875rem;
  color: var(--ink-faint);
  padding: .625rem;
  border-radius: .9rem;
  cursor: pointer;
}

.tabs button.active { background: #fff; color: var(--brand-700); box-shadow: var(--shadow-soft); }

.quick-logins { border-top: 1px solid rgba(0, 0, 0, .05); padding-top: 1.25rem; }
.quick-logins p { text-align: center; font-size: .75rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 .75rem; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

.quick-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  padding: 1rem;
  border: 2px solid var(--brand-100);
  border-radius: var(--radius);
  background: #fff;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}

.quick-grid button:hover { border-color: var(--brand-300); background: var(--brand-50); }
.quick-grid .emoji { font-size: 1.5rem; }

/* ---------- Student home ---------- */

.review-grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 640px) { .review-grid { grid-template-columns: 1fr 1fr; } }

.review-card { display: flex; flex-direction: column; gap: 1rem; transition: box-shadow .2s; }
.review-card:hover { box-shadow: var(--shadow-lift); }
.review-card .week { font-family: "Baloo 2", sans-serif; font-size: .875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--brand-600); }
.review-card h2 { font-size: 1.5rem; font-weight: 800; }
.review-card .subjects { font-size: .875rem; font-weight: 700; color: var(--ink-soft); margin: 0; }
.review-card .spacer { flex: 1 1 auto; }

.score-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--grass-50);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  font-weight: 800;
  color: var(--grass-700);
}

.empty { text-align: center; padding: 2.5rem 1.5rem; }
.empty .emoji { font-size: 3rem; }

/* ---------- Review player ---------- */

.player-head { margin-bottom: 1.5rem; }
.player-head .title { font-family: "Baloo 2", sans-serif; font-size: 1.125rem; font-weight: 800; }
.player-head .subject { font-size: .875rem; font-weight: 700; color: var(--ink-faint); }

.panel { animation: pop-in .18s ease-out; }
.panel-center { text-align: center; padding: 2rem 1.5rem; }
.panel-center .emoji { font-size: 3rem; }
.panel-center h1 { font-size: 1.875rem; font-weight: 800; margin-top: 1rem; }
.panel-center p { color: var(--ink-soft); margin: .5rem 0 0; }
.panel-center .btn { margin-top: 1.5rem; }

@keyframes pop-in { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes slide-up { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes bounce-once { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }

.q-subject { font-size: .875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-600); margin-bottom: .5rem; }
.q-text { font-size: 1.5rem; font-weight: 700; line-height: 1.35; }
.q-body { margin-top: 1.5rem; display: grid; gap: .75rem; }
.q-actions { margin-top: 1.5rem; display: flex; justify-content: flex-end; gap: .75rem; }

.option {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  padding: 1rem;
  border: 2px solid rgba(0, 0, 0, .05);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}

.option:hover:not([disabled]) { border-color: var(--brand-200); background: rgba(239, 246, 255, .4); }
.option[aria-pressed="true"] { border-color: var(--brand-500); background: var(--brand-50); color: var(--brand-800); box-shadow: var(--shadow-soft); }
.option[disabled] { cursor: not-allowed; opacity: .7; }

.option .letter {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .75rem;
  background: rgba(0, 0, 0, .05);
  color: var(--ink-faint);
  font-size: .875rem;
  font-weight: 800;
}

.option[aria-pressed="true"] .letter { background: var(--brand-500); color: #fff; }

.tf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tf-grid .option { justify-content: center; font-family: "Baloo 2", sans-serif; font-size: 1.25rem; font-weight: 800; padding: 1.5rem; }

.answer-input { height: 4rem !important; font-size: 1.25rem; }

.match-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.match-col { display: grid; gap: .75rem; align-content: start; }

.match-item {
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-weight: 600;
  padding: .75rem;
  border: 2px solid rgba(0, 0, 0, .05);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}

.match-item:hover:not([disabled]) { border-color: var(--brand-200); }
.match-item.active { border-color: var(--brand-500); background: var(--brand-50); box-shadow: var(--shadow-soft); }
.match-item.paired { border-color: var(--grass-300); background: var(--grass-50); }
.match-item.used { border-color: var(--grass-200); background: rgba(240, 251, 242, .6); color: var(--ink-faint); }
.match-item[disabled] { cursor: not-allowed; opacity: .75; }
.match-item .pair-note { display: block; margin-top: .25rem; font-size: .875rem; font-weight: 800; color: var(--grass-700); }

.feedback {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  border: 2px solid;
  padding: 1.25rem;
  animation: slide-up .22s ease-out;
}

.feedback h3 { font-size: 1.125rem; font-weight: 700; }
.feedback p { margin: .25rem 0 0; color: var(--ink-soft); }
.feedback strong { color: var(--ink); }

.feedback-correct { background: var(--grass-50); border-color: var(--grass-200); }
.feedback-hint { background: var(--sun-50); border-color: var(--sun-200); }
.feedback-revealed { background: var(--brand-50); border-color: var(--brand-200); }

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

.result-head {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  padding: 2rem;
  text-align: center;
}

.result-head h1 { font-size: 1.5rem; font-weight: 800; }
.result-head .sub { color: rgba(255, 255, 255, .8); margin-top: .25rem; }

.score-badge {
  display: inline-flex;
  align-items: baseline;
  gap: .25rem;
  margin-top: 1.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .15);
}

.score-badge .big { font-family: "Baloo 2", sans-serif; font-size: 3.75rem; font-weight: 800; line-height: 1; }
.score-badge .max { font-family: "Baloo 2", sans-serif; font-size: 1.5rem; font-weight: 700; color: rgba(255, 255, 255, .7); }

.subject-rows { padding: 1.5rem; display: grid; gap: .75rem; }

.subject-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, .03);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  font-weight: 800;
}

.encouragement { text-align: center; font-family: "Baloo 2", sans-serif; font-size: 1.125rem; font-weight: 700; color: var(--grass-700); padding-top: .5rem; }

.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 40; }
.confetti span { position: absolute; top: 0; width: .625rem; height: .625rem; border-radius: .15rem; animation: confetti-fall linear forwards; }

@keyframes confetti-fall {
  from { transform: translateY(-10vh) rotate(0); opacity: 1; }
  to { transform: translateY(105vh) rotate(540deg); opacity: 0; }
}

/* ---------- Admin ---------- */

.stat-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }

.stat .label { font-size: .875rem; font-weight: 800; color: var(--ink-faint); }
.stat .value { font-family: "Baloo 2", sans-serif; font-size: 1.875rem; font-weight: 800; margin-top: .25rem; }
.stat .hint { font-size: .875rem; color: var(--ink-soft); margin-top: .25rem; }

table { width: 100%; border-collapse: collapse; text-align: left; }
thead tr { border-bottom: 1px solid rgba(0, 0, 0, .05); }
th { padding: 1rem 1.25rem; font-size: .875rem; font-weight: 800; color: var(--ink-faint); }
td { padding: 1rem 1.25rem; border-bottom: 1px solid rgba(0, 0, 0, .05); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(0, 0, 0, .02); }
.table-wrap { overflow-x: auto; }
.table-wrap table { min-width: 40rem; }

.dropzone {
  border: 2px dashed var(--brand-200);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 2.5rem;
  text-align: center;
  transition: border-color .15s, background-color .15s;
}

.dropzone.dragging { border-color: var(--brand-400); background: var(--brand-50); }
.dropzone .emoji { font-size: 2.25rem; }
.dropzone h3 { margin-top: .75rem; font-size: 1.125rem; font-weight: 700; }
.dropzone p { margin: .25rem 0 0; font-size: .875rem; color: var(--ink-faint); }
.dropzone .actions { margin-top: 1.25rem; display: flex; justify-content: center; gap: .75rem; }

.loading-panel { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; padding: 2.5rem 0; text-align: center; }
.loading-panel .ring { width: 4rem; height: 4rem; border: 4px solid var(--brand-100); border-top-color: var(--brand-500); border-radius: 50%; animation: spin .9s linear infinite; }
.loading-panel .message { font-family: "Baloo 2", sans-serif; font-size: 1.25rem; font-weight: 700; animation: slide-up .22s ease-out; }

.subject-line {
  border: 2px solid rgba(0, 0, 0, .05);
  border-radius: var(--radius);
  padding: 1rem;
}

.subject-line + .subject-line { margin-top: .75rem; }
.subject-line .head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.subject-line .name { font-weight: 800; display: inline-flex; align-items: center; gap: .5rem; }
.subject-line .points { font-size: .875rem; font-weight: 700; color: var(--ink-faint); }
.subject-line .detail { margin-top: 1rem; display: grid; gap: 1rem; }
@media (min-width: 640px) { .subject-line .detail { grid-template-columns: 1fr 1fr; } }

.question-card {
  border: 2px solid rgba(0, 0, 0, .05);
  border-radius: var(--radius);
  background: #fff;
  padding: 1.25rem;
}

.question-card + .question-card { margin-top: .75rem; }
.question-card .head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.question-card .tools { display: flex; flex-wrap: wrap; gap: .25rem; }
.question-card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem; border-radius: .6rem;
  background: rgba(0, 0, 0, .05); color: var(--ink-faint);
  font-size: .75rem; font-weight: 800;
}
.question-card .body { margin-top: .75rem; display: grid; gap: .5rem; }
.question-card .prompt { font-weight: 700; margin: 0; }
.question-card ul { margin: 0; padding-left: 1.1rem; font-size: .875rem; color: var(--ink-soft); }
.question-card li.correct { font-weight: 800; color: var(--grass-700); list-style: none; margin-left: -1.1rem; }
.question-card .meta { font-size: .875rem; color: var(--ink-faint); margin: 0; }
.question-card form { margin-top: 1rem; display: grid; gap: 1rem; }

.option-edit { display: flex; align-items: center; gap: .75rem; }
.option-edit input[type=radio] { width: 1.25rem; height: 1.25rem; accent-color: var(--brand-500); flex-shrink: 0; }

.inline-form { display: inline; }

.title-input {
  font-family: "Baloo 2", sans-serif;
  font-size: 1.875rem;
  font-weight: 800;
  border: 2px solid transparent;
  background: transparent;
  padding: .25rem .5rem;
  margin-left: -.5rem;
  height: auto !important;
  border-radius: .9rem;
}

.title-input:hover { border-color: rgba(0, 0, 0, .05); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(27, 43, 68, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 50;
}

.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: 1.5rem;
  max-width: 32rem;
  width: 100%;
  animation: pop-in .18s ease-out;
}

.modal h2 { font-size: 1.25rem; font-weight: 700; }
.modal p { color: var(--ink-soft); }
.modal .actions { margin-top: 1.5rem; display: flex; justify-content: flex-end; gap: .75rem; }

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