/* ==========================================================================
   MyEduBuddies – Super Admin Console
   Add to <head>:
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&family=JetBrains+Mono:wght@500;700&display=swap" rel="stylesheet">
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0e1a;
  --bg-side: #0b101e;
  --card: #111a2e;
  --card-head: #0e1627;
  --input: #0a1020;
  --border: #1d2943;
  --border-soft: #17213a;
  --text: #e9edf6;
  --muted: #8b96ae;
  --gold: #e8b94a;
  --gold-2: #d4a62f;
  --gold-ink: #1a1405;
  --gold-soft: rgba(232, 185, 74, .12);
  --green: #2fca90;
  --green-soft: rgba(47, 202, 144, .12);
  --red: #f0636b;
  --red-soft: rgba(240, 99, 107, .12);
  --amber: #f2b84b;
  --amber-soft: rgba(242, 184, 75, .12);
  --radius: 14px;
  --radius-sm: 10px;
  --side-w: 260px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "Space Grotesk", var(--font);
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b96ae' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-side: #fff;
  --card: #fff;
  --card-head: #f7f9fc;
  --input: #f4f6fb;
  --border: #e1e6f0;
  --border-soft: #eaeef5;
  --text: #121a2e;
  --muted: #637089;
  --gold: #b88a12;
  --gold-2: #a5780a;
  --gold-soft: rgba(184, 138, 18, .12);
  --green: #11956a;
  --red: #d33f49;
  --amber: #b97d0a;
  --shadow: 0 10px 30px rgba(20, 30, 60, .08);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 14px/1.5 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background .2s, color .2s;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }
.num { font-family: var(--font-num); }
.mono { font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: .02em; }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 22px 16px 18px;
  background: var(--bg-side);
  border-right: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 14px; padding: 0 0 26px 8px; }
.brand img { width: 60px; height: 60px; object-fit: contain; }
.brand-name { display: block; font: 700 19px/1.1 var(--font-num); color: var(--gold); }
.brand-sub { display: block; margin-top: 4px; font: 600 10.5px/1 var(--font); letter-spacing: .2em; color: var(--gold); opacity: .85; }

.nav-label { margin: 14px 0 10px 14px; font: 600 10.5px/1 var(--font); letter-spacing: .22em; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border: 1px solid transparent; border-radius: var(--radius-sm);
  color: var(--muted); font-weight: 500;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.nav-link.active { color: var(--gold); background: var(--gold-soft); border-color: rgba(232, 185, 74, .35); }
.nav-badge {
  margin-left: auto; min-width: 20px; padding: 2px 6px; border-radius: 99px;
  font-size: 10.5px; font-weight: 700; text-align: center;
  color: var(--amber); background: var(--amber-soft);
}
.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  height: 64px; padding: 0 32px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-title { font-size: 12.5px; font-weight: 500; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.menu-btn { display: none; width: 38px; height: 38px; place-items: center; border: 1px solid var(--border); border-radius: 10px; }
.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--card);
  color: var(--muted); transition: color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--gold); border-color: var(--gold); }
.user { display: flex; align-items: center; gap: 12px; padding-left: 16px; border-left: 1px solid var(--border); }
.user-info { text-align: right; line-height: 1.25; }
.user-name { display: block; font-weight: 600; font-size: 13px; }
.user-mail { display: block; font-size: 11.5px; color: var(--muted); }
.avatar {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  font: 700 14px var(--font-num); color: var(--gold-ink);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.content { width: 100%; max-width: 1440px; padding: 32px; }

/* ---------- Page header ---------- */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding-bottom: 18px; margin-bottom: 24px; border-bottom: 1px solid var(--border);
}
.eyebrow { display: block; margin-bottom: 4px; font: 600 11px/1 var(--font); letter-spacing: .2em; color: var(--gold); text-transform: uppercase; }
.page-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font: 700 29px/1.15 var(--font-num); letter-spacing: -.01em; }
.chip {
  padding: 5px 13px; border: 1px solid var(--border); border-radius: 99px;
  font: 600 11.5px/1.2 var(--font); color: var(--muted); background: var(--card);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-weight: 600; font-size: 13.5px; white-space: nowrap; background: var(--card);
  transition: transform .15s, filter .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: var(--gold-ink); border-color: transparent;
  background: linear-gradient(135deg, #8F6208, #D4AF37, #E8C766, #B8860B);
  box-shadow: 0 6px 18px rgba(232, 185, 74, .22);
}
.btn-primary:hover { color: var(--gold-ink); filter: brightness(1.08); }
.btn-outline { background: transparent; border-color: rgba(232, 185, 74, .45); color: var(--gold); padding: 8px 16px; }
.btn-outline:hover { background: var(--gold-soft); }
.btn-block { width: 100%; }
.btn-approve { color: var(--green); background: var(--green-soft); border-color: rgba(47, 202, 144, .45); padding: 8px 18px; }
.btn-reject  { color: var(--red);   background: var(--red-soft);   border-color: rgba(240, 99, 107, .45); padding: 8px 18px; }
.btn-approve:hover { color: var(--green); filter: brightness(1.2); border-color: var(--green); }
.btn-reject:hover  { color: var(--red);   filter: brightness(1.2); border-color: var(--red); }

.link-action { font-size: 12.5px; font-weight: 600; color: var(--gold); transition: opacity .15s; }
.link-action:hover { opacity: .75; }
.link-action.danger { color: var(--red); }
.row-actions { display: flex; justify-content: flex-end; gap: 14px; }

/* ---------- Cards & stats ---------- */
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.panel-pad { padding: 24px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-title { font: 600 19px/1.25 var(--font-num); }

.stat-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 24px; }
.stat-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-card { position: relative; padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.stat-label { font: 600 11px/1.2 var(--font); letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.stat-value { margin-top: 12px; font: 700 31px/1.1 var(--font-num); }
.stat-note { margin-top: 14px; font-size: 12px; }
.stat-icon {
  position: absolute; top: 24px; right: 24px;
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--border); border-radius: 11px; color: var(--gold); background: var(--gold-soft);
}
.stat-icon svg { width: 20px; height: 20px; }

.text-green { color: var(--green); }
.text-amber { color: var(--amber); }
.text-red   { color: var(--red); }
.text-gold  { color: var(--gold); }
.text-muted { color: var(--muted); }

.overview-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); margin-bottom: 24px; }

/* ---------- Bar chart ---------- */
.chart { display: flex; align-items: flex-end; gap: 14px; height: 160px; padding-top: 8px; }
.chart-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 10px; height: 100%; }
.chart-bar {
  width: 100%; min-height: 4px; border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #ecc15a, #9a7620);
  transform-origin: bottom; animation: grow .6s cubic-bezier(.2, .8, .2, 1) both;
}
.chart-col span { font-size: 11px; color: var(--muted); }
@keyframes grow { from { transform: scaleY(0); } }

/* ---------- List rows (verification queue) ---------- */
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.list-row:last-child { border-bottom: 0; }
.list-name { font-weight: 600; font-size: 14.5px; }
.list-sub { font-size: 11.5px; color: var(--muted); }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 16px 20px; margin-bottom: 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.search { position: relative; flex: 0 1 380px; min-width: 200px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input, .select {
  width: 100%; height: 40px; padding: 0 14px;
  background: var(--input); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.search .input { padding-left: 40px; }
.input::placeholder { color: var(--muted); opacity: .8; }
.input:focus, .select:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }

/* Fixes the repeated-chevron glitch: native arrow removed, single non-repeating icon */
.select {
  flex: 0 0 200px; width: 200px; padding-right: 36px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: var(--chevron);
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
}
.select option { background: var(--card); color: var(--text); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; }
.table th {
  padding: 15px 20px; text-align: left; white-space: nowrap;
  font: 600 11px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  background: var(--card-head); border-bottom: 1px solid var(--border);
}
.table td { padding: 18px 20px; vertical-align: middle; border-bottom: 1px solid var(--border-soft); }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(255, 255, 255, .02); }
[data-theme="light"] .table tbody tr:hover { background: rgba(0, 0, 0, .02); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .t-right { text-align: right; }
.table .cell-strong { font-weight: 600; }
.table .cell-sub { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.table .amount { font: 700 14px var(--font-num); color: var(--green); white-space: nowrap; }
.table .method { font-size: 13px; color: var(--muted); text-transform: uppercase; }
.table .date { font-weight: 600; font-size: 13px; }
.table-empty td { padding: 40px 20px; text-align: center; color: var(--muted); }
.section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 600 20px/1 var(--font-num); }
.section + .section { margin-top: 40px; }

/* ---------- Status pills ---------- */
.status {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 99px; border: 1px solid;
  font: 700 10.5px/1 var(--font); letter-spacing: .1em; text-transform: uppercase;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.paid, .status.verified { color: var(--green); background: var(--green-soft); border-color: rgba(47, 202, 144, .4); }
.status.pending  { color: var(--amber); background: var(--amber-soft); border-color: rgba(242, 184, 75, .4); }
.status.failed, .status.rejected { color: var(--red); background: var(--red-soft); border-color: rgba(240, 99, 107, .4); }

/* ---------- Flash ---------- */
.flash {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px; margin-bottom: 28px;
  color: var(--green); background: var(--green-soft); border: 1px solid rgba(47, 202, 144, .35);
  border-radius: var(--radius-sm); transition: opacity .3s, transform .3s;
}
.flash.out { opacity: 0; transform: translateY(-6px); }

/* ---------- Login ---------- */
.login-page {
  display: grid; place-items: center; min-height: 100vh; padding: 20px;
  background:
    radial-gradient(600px 400px at 85% 95%, rgba(40, 60, 130, .28), transparent 70%),
    radial-gradient(500px 360px at 5% 10%, rgba(232, 185, 74, .06), transparent 70%),
    var(--bg);
}
.login-card { width: 100%; max-width: 420px; padding: 48px; text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); }
.login-card img { width: 96px; height: 104px; object-fit: contain; margin-bottom: 16px; }
.login-title { font: 700 26px/1.2 var(--font-num); }
.login-sub { margin: 4px 0 28px; font: 700 11px/1 var(--font); letter-spacing: .2em; color: var(--gold); }
.field { display: block; margin-bottom: 18px; text-align: left; }
.field > span { display: block; margin-bottom: 8px; font: 600 11px/1 var(--font); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.check { display: flex; align-items: center; gap: 10px; margin: 2px 0 24px; font-size: 13px; color: var(--muted); cursor: pointer; text-align: left; }
.check input { width: 16px; height: 16px; accent-color: var(--gold); }
.login-note { margin-top: 20px; font-size: 11.5px; letter-spacing: .02em; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .overview-grid { grid-template-columns: 1fr; }
  .stat-grid.cols-3 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--side-w);
    transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow);
  }
  .sidebar.open { transform: none; }
  .scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .scrim.show { opacity: 1; pointer-events: auto; }
  .menu-btn { display: grid; }
  .topbar, .content { padding-inline: 16px; }
  .user-info { display: none; }
  .page-head { flex-wrap: wrap; align-items: flex-start; }
  .page-title { font-size: 24px; }
  .select, .search { flex: 1 1 100%; width: 100%; }
}
@media (max-width: 480px) {
  .login-card { padding: 32px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print { .sidebar, .topbar, .filters, .btn { display: none !important; } .app { display: block; } }

/* ---------- Additions: educator module ---------- */
.filters .btn { height: 40px; padding-block: 0; }
.flash-error { color: var(--red); background: var(--red-soft); border-color: rgba(240, 99, 107, .35); }
.row-actions form { margin: 0; }
.decision { display: flex; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border-soft); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; margin: 0; }
.detail-grid dt { margin-bottom: 4px; font: 600 11px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.detail-grid dd { margin: 0; font-weight: 600; word-break: break-word; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.pager-links { display: flex; gap: 10px; }
.btn.is-disabled { opacity: .4; pointer-events: none; }
@media (max-width: 560px) { .detail-grid { grid-template-columns: 1fr; } }

/* Logo swap per theme */
.logo-light { display: none; }
[data-theme="light"] .logo-dark  { display: none; }
[data-theme="light"] .logo-light { display: inline; }

/* ==========================================================================
   Educator form  (self-contained: does not depend on any earlier append block)
   If you pasted the old "Additions: full educator form" block, delete it first.
   ========================================================================== */

/* Full-width stack of section cards (no max-width, not centred) */
.form-stack { display: flex; flex-direction: column; gap: 24px; width: 100%; }
.form-stack .panel-title { margin-bottom: 4px; }
.form-stack .section-sub { margin: 0 0 22px; font-size: 13px; color: var(--muted); }

/* 3 columns per row */
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; align-items: start; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-3 { grid-column: 1 / -1; }
@media (max-width: 1100px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .form-grid { grid-template-columns: 1fr; }
                             .form-grid .span-2, .form-grid .span-3 { grid-column: auto; } }

/* Field pieces */
.field { display: block; margin-bottom: 18px; text-align: left; }
.field > span { display: block; margin-bottom: 8px; font: 600 11px/1.3 var(--font); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.field > span small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.field .hint { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.field-error { margin-top: 8px; font-size: 12px; color: var(--red); }
.req { color: var(--red); font-weight: 700; }
.form-stack .select { flex: 1 1 100%; width: 100%; }

.textarea { width: 100%; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.5; background: var(--input); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s; }
.textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.select-multi { height: auto; min-height: 140px; padding: 8px; background-image: none; }
.select-multi option, .select-multi optgroup { padding: 6px 8px; }
.input[type="file"] { height: auto; padding: 8px; cursor: pointer; }
.input[type="file"]::file-selector-button { margin-right: 12px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); cursor: pointer; }
.thumb { display: block; max-width: 120px; max-height: 70px; margin-top: 10px; object-fit: cover; border: 1px solid var(--border); border-radius: 8px; }

/* Checkbox chips */
.perm-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.perm-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--input); cursor: pointer; transition: border-color .15s; }
.perm-item:hover { border-color: var(--gold); }
.perm-item input { width: 16px; height: 16px; accent-color: var(--gold); }

.form-actions { display: flex; gap: 12px; }
.flash-error { color: var(--red); background: var(--red-soft); border-color: rgba(240, 99, 107, .35); }

/* Status colours for the Educator model (approved / suspended) and the Featured chip */
.status.approved  { color: var(--green); background: var(--green-soft); border-color: rgba(47, 202, 144, .4); }
.status.suspended { color: var(--muted); background: rgba(139, 150, 174, .12); border-color: rgba(139, 150, 174, .4); }
.status.featured  { color: var(--amber); background: var(--amber-soft); border-color: rgba(242, 184, 75, .4); }
.cell-sub .status { margin: 4px 6px 0 0; padding: 3px 9px; font-size: 9.5px; }
.decision { flex-wrap: wrap; align-items: center; }
.decision form { display: flex; gap: 8px; align-items: center; margin: 0; }
.decision .input { width: 240px; height: 38px; }

/* ---------- 3-dot action menu ---------- */
.action-menu { display: inline-block; }
.dots-btn {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid transparent; border-radius: 9px; color: var(--muted);
  transition: color .15s, background .15s, border-color .15s;
}
.dots-btn:hover, .dots-btn[aria-expanded="true"] { color: var(--gold); background: var(--gold-soft); border-color: rgba(232, 185, 74, .35); }
.menu-list {
  position: fixed; z-index: 200; min-width: 190px; padding: 6px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); animation: menu-in .12s ease-out;
}
.menu-list form { margin: 0; }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 12px; border-radius: 8px; text-align: left;
  font-size: 13px; font-weight: 500; color: var(--text); cursor: pointer;
  transition: background .12s, color .12s;
}
.menu-item svg { width: 16px; height: 16px; color: var(--muted); }
.menu-item:hover, .menu-item:focus-visible { background: var(--gold-soft); color: var(--gold); outline: 0; }
.menu-item:hover svg, .menu-item:focus-visible svg { color: var(--gold); }
.menu-item.danger { color: var(--red); }
.menu-item.danger svg { color: var(--red); }
.menu-item.danger:hover, .menu-item.danger:focus-visible { background: var(--red-soft); color: var(--red); }
.menu-sep { height: 1px; margin: 6px 4px; background: var(--border-soft); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }
