/* 1CLUB Admin — tokens from brand-spec.md */
@import url("https://fonts.googleapis.com/css2?family=Geologica:wght@400;500;600;700&display=swap");

:root {
  --bg: oklch(35.5% 0.045 253.9);
  --surface: oklch(26.9% 0.039 255.1);
  --fg: oklch(97.5% 0.005 258.3);
  --muted: oklch(69.1% 0.048 252.6);
  --border: oklch(46.4% 0.052 253.9);
  --accent: oklch(96.6% 0.190 111.4);
  --on-accent: oklch(30.8% 0.012 258.4);
  --accent-pressed: oklch(93.6% 0.155 101.8);
  --link: oklch(64.2% 0.165 262.1);
  --danger: oklch(62.5% 0.205 41.2);
  --success: oklch(72% 0.12 145);
  --warn: oklch(78% 0.12 85);
  --blue-label: oklch(87.4% 0.055 245);
  --font-display: "Geologica", "SF Pro Display", system-ui, sans-serif;
  --font-body: "Geologica", "SF Pro Text", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --sidebar-w: 248px;
  --radius: 10px;
  --radius-lg: 14px;
  --gap: 16px;
  --control-h: 36px;
  --control-h-lg: 44px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
img { display: block; max-width: 100%; }
input, select, textarea {
  font: inherit;
  color: var(--fg);
  background-color: color-mix(in oklch, var(--bg) 70%, var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-sizing: border-box;
  height: var(--control-h-lg);
  padding: 0 12px;
  line-height: normal;
}
.field input, .field select, .field textarea,
.drawer-body > input, .drawer-body > select, .drawer-body > textarea {
  width: 100%;
}
/* Native WebKit arrow vanishes once background is set — paint our own. */
select {
  -webkit-appearance: none;
  appearance: none;
  background-color: color-mix(in oklch, var(--bg) 70%, var(--surface));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23879EB9' d='M4.2 6.2a.75.75 0 0 1 1.06 0L8 8.94l2.74-2.74a.75.75 0 1 1 1.06 1.06l-3.27 3.27a.75.75 0 0 1-1.06 0L4.2 7.26a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  padding-right: 36px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
textarea {
  height: auto;
  min-height: 120px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.45;
}
input[type="file"] { height: auto; padding: 8px 12px; }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field { margin-bottom: 14px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.35; }
.password-field {
  position: relative;
  display: block;
}
.password-field input {
  width: 100%;
  padding-right: 44px;
}
.password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-radius: var(--radius);
}
.password-toggle:hover { color: var(--fg); }
.password-toggle svg { width: 18px; height: 18px; display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px) { .field-row { grid-template-columns: 1fr; } }

/* —— App shell —— */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--surface);
  border-right: 1px solid color-mix(in oklch, var(--border) 70%, transparent);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 18px;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 55%, transparent);
  margin-bottom: 10px;
}
.sidebar-brand img { height: 28px; width: auto; }
.sidebar-brand span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.nav-group-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 10px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  min-height: var(--control-h-lg);
  transition: background 0.15s, color 0.15s;
}
.nav-item:hover {
  background: color-mix(in oklch, var(--bg) 55%, transparent);
  color: var(--fg);
}
.nav-item.is-active {
  background: color-mix(in oklch, var(--bg) 80%, transparent);
  color: var(--fg);
  box-shadow: inset 3px 0 0 var(--accent);
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.85; }
.sidebar-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid color-mix(in oklch, var(--border) 55%, transparent);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
}
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg);
  display: grid; place-items: center;
  font-weight: 600;
  font-size: 12px;
  color: var(--accent);
}
.sidebar-user .name { font-weight: 600; font-size: 13px; }
.sidebar-user .role { font-size: 11px; color: var(--muted); }

.main {
  background: var(--bg);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 55%, transparent);
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.topbar h1 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.topbar .sub { color: var(--muted); font-size: 13px; margin-top: 2px; line-height: 1.3; }
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: var(--control-h);
  flex-shrink: 0;
}
.content { padding: 24px 28px 48px; flex: 1; }

/* —— Controls —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  height: var(--control-h-lg);
  margin: 0;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
  /* Geologica: glyphs sit high in the em-box */
  padding-top: 3px;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--accent-pressed);
  color: var(--on-accent);
}
.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: color-mix(in oklch, var(--surface) 40%, transparent);
  border-color: color-mix(in oklch, var(--fg) 35%, var(--border));
  color: var(--fg);
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding-inline: 12px;
}
.btn-ghost:hover { color: var(--fg); background: color-mix(in oklch, var(--surface) 35%, transparent); }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in oklch, var(--danger) 45%, var(--border)); }
.btn-danger:hover { background: color-mix(in oklch, var(--danger) 14%, transparent); color: var(--danger); }
.btn-sm {
  height: var(--control-h);
  padding: 0 14px;
  padding-top: 3px;
  font-size: 13px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar input[type="date"],
.toolbar input[type="search"],
.toolbar .search {
  box-sizing: border-box;
  width: auto;
  flex: 0 0 auto;
  height: var(--control-h);
  min-height: var(--control-h);
  max-height: var(--control-h);
  padding: 0 12px;
  font-size: 13px;
  line-height: normal;
  vertical-align: middle;
}
.toolbar input[type="date"] {
  width: 10.5rem;
  min-width: 10.5rem;
  max-width: 10.5rem;
  padding-inline: 10px;
  display: inline-flex;
  align-items: center;
}
.toolbar input[type="date"]::-webkit-datetime-edit,
.toolbar input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.toolbar input[type="date"]::-webkit-datetime-edit-text,
.toolbar input[type="date"]::-webkit-datetime-edit-month-field,
.toolbar input[type="date"]::-webkit-datetime-edit-day-field,
.toolbar input[type="date"]::-webkit-datetime-edit-year-field {
  display: inline-flex;
  align-items: center;
  padding: 0;
  line-height: 1;
}
.toolbar input[type="date"]::-webkit-calendar-picker-indicator {
  margin: 0;
  padding: 0;
  align-self: center;
}
.search {
  width: 220px;
  min-width: 220px;
  max-width: 320px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%879EB9' stroke-width='1.6'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l3.5 3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px 50%;
  padding-left: 36px;
}
.chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: var(--control-h);
  margin: 0;
  padding: 0 14px;
  /* Geologica caps sit ~2–3px high in the em-box */
  padding-top: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  white-space: nowrap;
  flex: 0 0 auto;
  line-height: 1;
}
.chip:hover { color: var(--fg); border-color: color-mix(in oklch, var(--fg) 30%, var(--border)); }
.chip.is-active {
  background: color-mix(in oklch, var(--surface) 70%, transparent);
  color: var(--fg);
  border-color: var(--border);
}

/* —— Cards / stats —— */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
@media (max-width: 1100px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stat-grid { grid-template-columns: 1fr; } }
.stat-card {
  background: var(--surface);
  border: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.stat-card .label { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.stat-card .value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat-card .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

.panel {
  background: var(--surface);
  border: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 55%, transparent);
}
.panel-head h2 { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.panel-body { padding: 16px 20px; }

/* —— Table —— */
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.data th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 55%, transparent);
  white-space: nowrap;
}
table.data td {
  padding: 14px 16px;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 40%, transparent);
  vertical-align: middle;
  line-height: 1.35;
}
table.data td .badge,
table.data td .chip {
  vertical-align: middle;
}
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr {
  cursor: pointer;
  transition: background 0.12s;
}
table.data tbody tr:hover { background: color-mix(in oklch, var(--bg) 35%, transparent); }
table.data tbody tr.is-selected { background: color-mix(in oklch, var(--bg) 55%, transparent); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: 12px; }

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 24px;
  margin: 0;
  padding: 0 10px;
  padding-top: 1px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}
.badge-ok { background: color-mix(in oklch, var(--success) 18%, transparent); color: var(--success); }
.badge-warn { background: color-mix(in oklch, var(--warn) 18%, transparent); color: var(--warn); }
.badge-danger { background: color-mix(in oklch, var(--danger) 18%, transparent); color: var(--danger); }
.badge-muted { background: color-mix(in oklch, var(--muted) 18%, transparent); color: var(--muted); }
.badge-draft { background: color-mix(in oklch, var(--blue-label) 16%, transparent); color: var(--blue-label); }

/* —— Drawer / modal —— */
/* Lock page scroll while any drawer is open (set by AdminShell). */
html.drawer-open,
html.drawer-open body {
  overflow: hidden !important;
  overscroll-behavior: none;
  height: 100%;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: oklch(0% 0 0 / 0.45);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(480px, 100vw);
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.drawer.is-open { transform: translateX(0); }
/* Form wraps body+foot — must participate in flex height (0% basis + min-height:0). */
.drawer > form {
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-height: 0;
  height: 0; /* force flex child to take remaining viewport under head */
  overflow: hidden;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 55%, transparent);
  flex-shrink: 0;
}
.drawer-head h2 { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.drawer-body {
  padding: 20px;
  overflow-x: hidden;
  overflow-y: scroll;
  flex: 1 1 0%;
  min-height: 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}
.drawer-body::-webkit-scrollbar { width: 10px; }
.drawer-body::-webkit-scrollbar-thumb {
  background: color-mix(in oklch, var(--muted) 55%, transparent);
  border-radius: 6px;
}
.drawer-foot {
  padding: 16px 20px;
  border-top: 1px solid color-mix(in oklch, var(--border) 55%, transparent);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  background: var(--surface);
}

.modal-backdrop {
  position: fixed; inset: 0;
  background: oklch(0% 0 0 / 0.5);
  z-index: 60;
  display: none;
  place-items: center;
  padding: 24px;
}
.modal-backdrop.is-open { display: grid; }
.modal {
  width: min(520px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.modal h2 { font-family: var(--font-display); font-size: 18px; margin-bottom: 8px; }
.modal p { color: var(--muted); margin-bottom: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* —— Misc —— */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
.empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
}
.temp-secret-once {
  margin: 12px 16px 0;
  padding: 12px 14px;
  border: 1px solid var(--warn);
  background: color-mix(in srgb, var(--warn) 12%, var(--bg, #0b0d12));
  border-radius: 8px;
  max-width: 640px;
}
.temp-secret-label {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
}
.temp-secret-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.temp-secret-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  padding: 6px 10px;
  background: var(--surface, #141820);
  border-radius: 6px;
  user-select: all;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 12px 18px;
  border-radius: var(--radius);
  z-index: 80;
  box-shadow: 0 12px 32px oklch(0% 0 0 / 0.35);
  transform: translateY(120%);
  transition: transform 0.2s;
}
.toast.is-show { transform: translateY(0); }
.link-back {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.link-back:hover { color: var(--fg); }

/* Login */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background: var(--surface);
}
.login-card {
  width: min(400px, 100%);
  background: var(--bg);
  border: 1px solid color-mix(in oklch, var(--border) 70%, transparent);
  border-radius: 20px;
  padding: 36px 32px;
}
.login-card .logo { height: 36px; width: auto; margin-bottom: 28px; }
.login-card h1 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.login-card .lead { color: var(--muted); margin-bottom: 28px; font-size: 14px; }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid color-mix(in oklch, var(--border) 55%, transparent);
  }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .nav-group-label { width: 100%; }
  .sidebar-foot { margin-top: 12px; }
}

/* —— Quiz editor / analytics —— */
.q-block {
  border: 1px solid color-mix(in oklch, var(--border) 70%, transparent);
  border-radius: var(--radius-lg);
  background: color-mix(in oklch, var(--bg) 55%, var(--surface));
  padding: 16px;
  margin-bottom: 12px;
}
.q-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.q-block-head .q-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.q-options { display: flex; flex-direction: column; gap: 8px; }
.q-option-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: center;
}
.q-option-row .handle {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  cursor: grab;
}
.dist-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dist-row {
  min-width: 0;
}
.dist-row .dist-label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  row-gap: 4px;
  align-items: baseline;
  font-size: 13px;
  margin-bottom: 8px;
}
.dist-row .dist-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dist-row .dist-label .pct {
  font-family: var(--font-mono);
  color: var(--muted);
  white-space: nowrap;
  justify-self: end;
}
.dist-track {
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in oklch, var(--border) 55%, transparent);
  overflow: hidden;
}
.dist-fill {
  display: block;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  border-radius: 999px;
  background: var(--accent);
}

/* Phase switcher */
.phase-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px;
  background: color-mix(in oklch, var(--bg) 70%, transparent);
  border: 1px solid color-mix(in oklch, var(--border) 70%, transparent);
  border-radius: 999px;
}
.phase-switch-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 8px 0 10px;
  font-weight: 600;
}
.phase-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 32px;
  margin: 0;
  padding: 0 12px;
  padding-top: 2px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.phase-chip:hover { color: var(--fg); background: oklch(100% 0 0 / 0.06); }
.phase-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.phase-chip.is-active {
  background: var(--accent);
  color: var(--on-accent);
}
.phase-chip.is-active:hover { background: var(--accent-pressed); color: var(--on-accent); }
.nav-item[data-min-phase][hidden],
[data-min-phase][hidden] { display: none !important; }
.revenue-bar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  padding-top: 8px;
}
.revenue-bar .bar {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: var(--accent);
  min-height: 8px;
  position: relative;
}
.revenue-bar .bar span {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--muted);
  margin-bottom: 4px;
  white-space: nowrap;
}
