/* ============================================================
   PALETTE — Navy / Azure. No green anywhere in the chrome.
   Load AFTER styles.css. Overrides tokens only + chrome layout.
   ============================================================ */

/* ---------- DARK (deep navy-black, cool blue-grey neutrals) ---------- */
:root, [data-theme="dark"] {
  --bg: #07090c;
  --bg-2: #0c1015;
  --surface-1: #111620;
  --surface-2: #161c26;
  --surface-3: #1d2530;
  --surface-hover: #232c38;
  --border: #242d39;
  --border-strong: #344050;
  --border-glow: rgba(108, 178, 240, 0.25);

  --text: #eef2f7;
  --text-muted: #9fadbd;
  --text-dim: #6d7b8a;
  --text-faint: #4b5766;

  --accent: #6cb2f0;
  --accent-2: #7cc0f7;
  --accent-strong: #3d8fd8;
  --accent-soft: rgba(108, 178, 240, 0.12);
  --accent-softer: rgba(108, 178, 240, 0.06);
  --accent-ring: rgba(108, 178, 240, 0.35);
  --accent-grad: linear-gradient(135deg, #6cb2f0 0%, #3d8fd8 100%);
  --accent-grad-soft: linear-gradient(135deg, rgba(108,178,240,0.18) 0%, rgba(61,143,216,0.18) 100%);
  --on-accent: #05121e;

  --success: #6cb2f0;  --success-soft: rgba(108, 178, 240, 0.12);
  --warning: #e8b84b;  --warning-soft: rgba(232, 184, 75, 0.12);
  --danger:  #f0776a;  --danger-soft:  rgba(240, 119, 106, 0.12);
  --info:    #6bb6d8;  --info-soft:    rgba(107, 182, 216, 0.12);
  --live:    #f2684a;
  --live-soft: rgba(242, 104, 74, 0.14);

  --sp-1: #6cb2f0; --sp-2: #e08a52; --sp-3: #d4ab48; --sp-4: #7f9ee0;
  --sp-5: #c08ab4; --sp-6: #8fa6c8; --sp-7: #5b8fd6;

  --shadow-glow: 0 0 32px rgba(108, 178, 240, 0.20), 0 0 80px rgba(61, 143, 216, 0.10);
}

/* ---------- LIGHT (cool grey page, deep azure accent) ---------- */
[data-theme="light"] {
  --bg: #f1f4f8;
  --bg-2: #ffffff;
  --surface-1: #ffffff;
  --surface-2: #f5f8fb;
  --surface-3: #e7edf4;
  --surface-hover: #dfe7f0;
  --border: #dbe3ec;
  --border-strong: #bfcbdb;
  --border-glow: rgba(29, 95, 168, 0.18);

  --text: #151b23;
  --text-muted: #45505e;
  --text-dim: #68737f;
  --text-faint: #98a3b0;

  --accent: #1d5fa8;
  --accent-2: #2b7bc9;
  --accent-strong: #174b83;
  --accent-soft: rgba(29, 95, 168, 0.10);
  --accent-softer: rgba(29, 95, 168, 0.05);
  --accent-ring: rgba(29, 95, 168, 0.30);
  --accent-grad: linear-gradient(135deg, #1d5fa8 0%, #2b7bc9 100%);
  --accent-grad-soft: linear-gradient(135deg, rgba(29,95,168,0.12) 0%, rgba(43,123,201,0.12) 100%);
  --on-accent: #ffffff;

  --success: #1d5fa8;  --success-soft: rgba(29, 95, 168, 0.12);
  --warning: #a4650a;  --warning-soft: rgba(164, 101, 10, 0.12);
  --danger:  #b23b2c;  --danger-soft:  rgba(178, 59, 44, 0.10);
  --info:    #2b6a86;  --info-soft:    rgba(43, 106, 134, 0.12);
  --live:    #cf4326;
  --live-soft: rgba(207, 67, 38, 0.12);

  --sp-1: #1d5fa8; --sp-2: #c2703a; --sp-3: #b08a2e; --sp-4: #3d7f96;
  --sp-5: #8e5a7f; --sp-6: #5a6b8c; --sp-7: #2f6fb5;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 2px 12px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 8px 32px rgba(16, 24, 40, 0.10), 0 2px 8px rgba(16, 24, 40, 0.05);
  --shadow-glow: 0 0 24px rgba(29, 95, 168, 0.16);
}


/* ---------- App shell ----------
   The old 1320px floor was set when the nav was a 68px icon rail; with the
   244px labelled sidebar it pushed the header's right-hand controls off-screen.
   The shell is now fluid; only the 3-column Live screen keeps a floor.        */
#root { min-width: 0; }
/* Sidebar is full-height (outside the header), so only the screen area scrolls
   horizontally when a dense screen needs more width than the window. */
.screen-area { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; overflow-x: auto; }
.live-shell { min-width: 1060px; }

/* ---------- Text colour on the accent gradient ---------- */
.btn.primary { color: var(--on-accent); }
.logo-wrap   { color: var(--on-accent); }

/* ---------- Colour-scheme + button reset ----------
   Without an explicit color-scheme the UA resolves `ButtonText` from the OS
   theme, which made bare <button>s render white-on-white in light mode.   */
:root, [data-theme="dark"] { color-scheme: dark; }
[data-theme="light"] { color-scheme: light; }
button { color: inherit; }

/* ============================================================
   CHROME — header 56px + labeled sidebar
   ============================================================ */
.topbar { height: 56px; padding: 0 18px; gap: 14px; background: var(--bg-2); }

/* ---- Labeled sidebar ---- */
.side {
  width: 244px; flex-shrink: 0;
  background: var(--surface-2);
  color: var(--text);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 12px 10px;
  min-height: 0;
}
.side-nav { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin: 0 -4px; padding: 0 4px; }
.side-item {
  display: flex; align-items: center; gap: 11px;
  height: 38px; padding: 0 11px;
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-size: 13.5px; font-weight: 500;
  cursor: pointer; position: relative;
  transition: background 120ms, color 120ms;
  border: 1px solid transparent;
  white-space: nowrap;
}
.side-item:hover { background: var(--surface-hover); color: var(--text); }
.side-item.active {
  background: var(--surface-1);
  border-color: var(--border);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.side-item.active .side-ico { color: var(--accent); }
.side-ico { display: flex; flex-shrink: 0; color: var(--text-dim); }
.side-item.active::before {
  content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2.5px;
  background: var(--accent-grad); border-radius: 999px;
}
.side-count {
  margin-left: auto; font-size: 10.5px; font-weight: 600;
  padding: 1px 6px; border-radius: 999px;
  background: var(--surface-3); color: var(--text-dim);
}
.side-item.active .side-count { background: var(--accent-soft); color: var(--accent); }

/* ---- "+" action on a nav row ---- */
.side-add {
  margin-left: auto; width: 22px; height: 22px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; border: 1px solid var(--border);
  background: var(--surface-1); color: var(--text-dim);
  cursor: pointer; padding: 0;
}
.side-add:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-ring); }

/* ---- Nested event tree (Event â meetings/themes/avatar live inside it) ---- */
.side-sub {
  display: flex; flex-direction: column; gap: 1px;
  margin: 2px 0 6px 10px; padding-left: 10px;
  border-left: 1px solid var(--border);
}
.side-subitem {
  display: flex; align-items: center; gap: 8px;
  min-height: 32px; padding: 5px 9px;
  border-radius: 8px; cursor: pointer;
  color: var(--text-muted); font-size: 12.5px;
  border: 1px solid transparent;
}
.side-subitem:hover { background: var(--surface-hover); color: var(--text); }
.side-subitem.active {
  background: var(--surface-1); border-color: var(--border);
  color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm);
}
.side-dot { width: 8px; height: 8px; border-radius: 2.5px; flex-shrink: 0; }
.side-mtg {
  margin-left: auto; font-family: var(--font-mono); font-size: 10px;
  color: var(--text-faint); flex-shrink: 0;
}
.side-subitem.active .side-mtg { color: var(--accent); }

/* caption inside the tree ("Recent") */
.side-cap {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-faint); padding: 4px 9px 2px;
}
/* "All events" \u2014 gateway to the full, searchable index */
.side-all { color: var(--text-muted); }
.side-all .side-ico { color: var(--text-faint); }
.side-all.active .side-ico { color: var(--accent); }
.side-sec {
  font-size: 10px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-faint); padding: 14px 12px 6px;
}

/* ---- Brand block ---- */
.brand-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-name { font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.brand-tag  { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.07em; color: var(--text-dim); white-space: nowrap; }

/* ---- Workspace switcher (sidebar footer card) ---- */
.ws-card {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: var(--r-md);
  background: var(--surface-1); border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer; width: 100%; font-family: inherit; text-align: left;
}
.ws-card:hover { background: var(--surface-hover); }

/* ---- Search field in sidebar ---- */
.side-search {
  display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 10px; margin: 2px 2px 8px;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--r-md); color: var(--text-dim); font-size: 12.5px;
  cursor: text;
}

/* ============================================================
   AI ORB — signature element, re-tinted to the new accent.
   styles.css hardcodes the purple, so it is fully overridden here.
   ============================================================ */
.ai-orb {
  background: radial-gradient(circle at 30% 30%,
    color-mix(in srgb, var(--accent) 40%, #fff) 0%,
    var(--accent-strong) 40%,
    color-mix(in srgb, var(--accent-strong) 55%, #000) 80%,
    color-mix(in srgb, var(--accent-strong) 22%, #000) 100%);
  box-shadow:
    inset 0 0 12px rgba(255,255,255,0.2),
    inset 6px -6px 18px color-mix(in srgb, var(--accent-strong) 45%, #000),
    0 0 24px color-mix(in srgb, var(--accent) 35%, transparent),
    0 0 56px color-mix(in srgb, var(--accent-2) 18%, transparent);
}
.ai-orb::before {
  background: conic-gradient(from 0deg,
    transparent 0deg,
    color-mix(in srgb, var(--accent) 40%, transparent) 90deg,
    transparent 180deg,
    color-mix(in srgb, var(--accent-2) 40%, transparent) 270deg,
    transparent 360deg);
}
.ai-orb.listening { animation: orb-breathe-green 2.4s ease-in-out infinite; }
@keyframes orb-breathe-green {
  0%, 100% {
    transform: scale(1);
    box-shadow: inset 0 0 12px rgba(255,255,255,0.2), inset 6px -6px 18px color-mix(in srgb, var(--accent-strong) 45%, #000),
      0 0 24px color-mix(in srgb, var(--accent) 35%, transparent),
      0 0 56px color-mix(in srgb, var(--accent-2) 18%, transparent);
  }
  50% {
    transform: scale(1.04);
    box-shadow: inset 0 0 14px rgba(255,255,255,0.25), inset 6px -6px 18px color-mix(in srgb, var(--accent-strong) 45%, #000),
      0 0 32px color-mix(in srgb, var(--accent) 55%, transparent),
      0 0 80px color-mix(in srgb, var(--accent-2) 28%, transparent);
  }
}

/* ============================================================
   ACCENT THEMES — swap the brand hue without touching layout.
   Load AFTER redesign-palette.css.

   Usage:  <div data-theme="light" data-accent="azure">
   Families: forest (default) · crimson · azure · amber · ink

   Each family ships its OWN neutrals, subtly tinted toward the hue —
   a bare hue-swap over sage-green surfaces reads accidental.
   ============================================================ */

/* ---------- Derived accent values (shared by every family) ---------- */
[data-accent] {
  --accent-soft:      color-mix(in srgb, var(--accent) 12%, transparent);
  --accent-softer:    color-mix(in srgb, var(--accent) 6%, transparent);
  --accent-ring:      color-mix(in srgb, var(--accent) 32%, transparent);
  --accent-grad:      linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  --accent-grad-soft: linear-gradient(135deg,
                        color-mix(in srgb, var(--accent) 12%, transparent) 0%,
                        color-mix(in srgb, var(--accent-2) 12%, transparent) 100%);
  --border-glow:      color-mix(in srgb, var(--accent) 22%, transparent);
  --shadow-glow:      0 0 28px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* ============================================================
   CRIMSON — clay red, warm greige neutrals
   ============================================================ */
[data-accent="crimson"]:not([data-theme="light"]) {
  --bg: #0b0807; --bg-2: #120e0d;
  --surface-1: #191413; --surface-2: #1f1817; --surface-3: #281f1d; --surface-hover: #302623;
  --border: #322724; --border-strong: #453733;
  --text: #f4efed; --text-muted: #b0a29e; --text-dim: #806f6b; --text-faint: #5a4d4a;
  --accent: #f0756a; --accent-2: #f0a06a; --accent-strong: #d1483c; --on-accent: #1a0806;
  --live: #ff8a5c; --live-soft: rgba(255, 138, 92, 0.14);
}
[data-theme="light"][data-accent="crimson"] {
  --bg: #f7f4f2; --bg-2: #ffffff;
  --surface-1: #ffffff; --surface-2: #faf7f5; --surface-3: #f0eae7; --surface-hover: #e9e1dd;
  --border: #e6ddd9; --border-strong: #cfc2bc;
  --text: #211816; --text-muted: #564844; --text-dim: #7a6a65; --text-faint: #a89892;
  --accent: #b3312c; --accent-2: #d4562f; --accent-strong: #8f251f; --on-accent: #ffffff;
  --live: #c2410c; --live-soft: rgba(194, 65, 12, 0.12);
}

/* ============================================================
   AZURE — deep blue, cool blue-grey neutrals
   ============================================================ */
[data-accent="azure"]:not([data-theme="light"]) {
  --bg: #07090c; --bg-2: #0c1015;
  --surface-1: #111620; --surface-2: #161c26; --surface-3: #1d2530; --surface-hover: #232c38;
  --border: #242d39; --border-strong: #344050;
  --text: #eef2f7; --text-muted: #9fadbd; --text-dim: #6d7b8a; --text-faint: #4b5766;
  --accent: #6cb2f0; --accent-2: #4fd1c5; --accent-strong: #3d8fd8; --on-accent: #05121e;
}
[data-theme="light"][data-accent="azure"] {
  --bg: #f1f4f8; --bg-2: #ffffff;
  --surface-1: #ffffff; --surface-2: #f5f8fb; --surface-3: #e7edf4; --surface-hover: #dfe7f0;
  --border: #dbe3ec; --border-strong: #bfcbdb;
  --text: #151b23; --text-muted: #45505e; --text-dim: #68737f; --text-faint: #98a3b0;
  --accent: #1d5fa8; --accent-2: #0e7490; --accent-strong: #174b83; --on-accent: #ffffff;
}

/* ============================================================
   AMBER — bronze / goldenrod, warm sand neutrals
   ============================================================ */
[data-accent="amber"]:not([data-theme="light"]) {
  --bg: #0a0906; --bg-2: #100e0a;
  --surface-1: #16140f; --surface-2: #1c1913; --surface-3: #251f18; --surface-hover: #2c261d;
  --border: #2c271f; --border-strong: #3e372b;
  --text: #f5f1e9; --text-muted: #b3a894; --text-dim: #82796a; --text-faint: #5b5449;
  --accent: #e8a53d; --accent-2: #d4c04a; --accent-strong: #c2861f; --on-accent: #171003;
}
[data-theme="light"][data-accent="amber"] {
  --bg: #f8f5ef; --bg-2: #ffffff;
  --surface-1: #ffffff; --surface-2: #fbf8f2; --surface-3: #f1ebe0; --surface-hover: #eae3d6;
  --border: #e7e0d2; --border-strong: #cfc5b2;
  --text: #201c14; --text-muted: #544c3c; --text-dim: #786f5c; --text-faint: #a69c88;
  --accent: #a35c07; --accent-2: #b8860b; --accent-strong: #86490a; --on-accent: #ffffff;
}

/* ============================================================
   INK — monochrome, sober / enterprise
   ============================================================ */
[data-accent="ink"]:not([data-theme="light"]) {
  --bg: #08080a; --bg-2: #0e0e10;
  --surface-1: #141416; --surface-2: #1a1a1d; --surface-3: #222225; --surface-hover: #2a2a2e;
  --border: #28282c; --border-strong: #3a3a3f;
  --text: #f2f2f3; --text-muted: #a6a6ab; --text-dim: #74747a; --text-faint: #4f4f55;
  --accent: #e8e8ea; --accent-2: #b8b8bd; --accent-strong: #ffffff; --on-accent: #0d0d0f;
}
[data-theme="light"][data-accent="ink"] {
  --bg: #f4f4f4; --bg-2: #ffffff;
  --surface-1: #ffffff; --surface-2: #f8f8f8; --surface-3: #ededed; --surface-hover: #e5e5e5;
  --border: #e2e2e2; --border-strong: #c8c8c8;
  --text: #141414; --text-muted: #4a4a4a; --text-dim: #6e6e6e; --text-faint: #9c9c9c;
  --accent: #1a1a1a; --accent-2: #3d3d3d; --accent-strong: #000000; --on-accent: #ffffff;
}

/* ============================================================
   SURFACE MODE (light only) — where the tint lives.

   data-surface="page"  â tinted page, white cards  (original)
   data-surface="cards" â white page, tinted cards  (inverted)

   Derived from --accent, so it follows whichever family is active.
   Declared last so it wins over the family blocks it overrides.
   ============================================================ */
[data-theme="light"][data-surface="cards"] {
  --bg: #ffffff;
  --bg-2: #ffffff;
  --surface-1:     color-mix(in srgb, var(--accent) 5%,  #fff);
  --surface-2:     color-mix(in srgb, var(--accent) 9%,  #fff);
  --surface-3:     color-mix(in srgb, var(--accent) 15%, #fff);
  --surface-hover: color-mix(in srgb, var(--accent) 20%, #fff);
  --border:        color-mix(in srgb, var(--accent) 16%, #fff);
  --border-strong: color-mix(in srgb, var(--accent) 30%, #fff);
}

/* ============================================================
   PALETTE v2 — surface systems (light).
   v1 failed because page/rail/card/border all sat within ~4%
   lightness of each other. Each system below defines DELIBERATE
   steps, and every one gives inputs a recessed fill + real border
   so they read as inputs.

   Blue is demoted to an ACTION colour: surfaces are neutral.
   ============================================================ */

/* ---- Inputs read as inputs in every system ---- */
.field-input {
  height: 34px; padding: 0 10px; border-radius: var(--r-md);
  background: var(--input-bg, var(--surface-3));
  border: 1px solid var(--input-border, var(--border-strong));
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.04);
  cursor: text; align-items: center;
}
[data-surf] .input,
[data-surf] .search-input {
  background: var(--input-bg, var(--surface-3));
  border-color: var(--input-border, var(--border-strong));
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.04);
}

/* ============================================================
   SURFACE SYSTEM "b" (light) — cool grey page, WHITE cards,
   and a deep navy sidebar. This is the shipped look: it matches
   the approved design 1:1 (see docs/design-reference).
   Applied via data-surf="b" on the app root.
   ============================================================ */
[data-theme="light"][data-surf="b"] {
  --bg: #f7f8fa; --bg-2: #ffffff;
  --surface-1: #ffffff; --surface-2: #f0f2f5; --surface-3: #e5e8ec; --surface-hover: #dee2e7;
  --border: #dde1e6; --border-strong: #b6bdc6;
  --text: #14171a; --text-muted: #4c545c; --text-dim: #6c757e; --text-faint: #99a1aa;
  --input-bg: #ffffff; --input-border: #c3c9d0;
}
[data-theme="light"][data-surf="b"] .card { box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05); }
[data-theme="light"][data-surf="b"] .side {
  background: #182233; border-right-color: #182233;
  --text: #eef2f7; --text-muted: #b8c6d6; --text-dim: #9aabbf; --text-faint: #8494a8;
  --surface-1: #202c40; --surface-2: #253247; --surface-3: #2b3a51; --surface-hover: #2f3f57;
  --border: #2b3a51; --border-strong: #3c4d68;
  --accent: #7cbcf5;
  --accent-soft: rgba(124,188,245,0.16);
  --accent-softer: rgba(124,188,245,0.08);
  --accent-ring: rgba(124,188,245,0.4);
  --accent-grad: linear-gradient(135deg, #7cbcf5 0%, #5fd3c4 100%);
  --accent-grad-soft: linear-gradient(135deg, rgba(124,188,245,0.16) 0%, rgba(95,211,196,0.16) 100%);
  --on-accent: #0b1524;
  --input-bg: #111a26; --input-border: #35465f;
}
[data-theme="light"][data-surf="b"] .side .logo-wrap { color: #0b1524; }
[data-surf] .side .search-input input::placeholder { color: var(--text-faint); }

/* ============================================================
   Segmented control (Sort · Grid/List)
   ============================================================ */
.seg {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 999px;
  background: var(--surface-3); border: 1px solid var(--border);
}
.seg > button {
  height: 26px; padding: 0 12px; border: none; border-radius: 999px;
  background: transparent; color: var(--text-muted);
  font-family: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.seg > button:hover { color: var(--text); }
.seg > button.active {
  background: var(--accent); color: var(--on-accent); font-weight: 600;
  box-shadow: 0 1px 2px rgba(16,24,40,0.12);
}

/* ============================================================
   Events index — list rows + pagination
   ============================================================ */
.ev-table {
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface-1); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ev-tr {
  display: grid;
  grid-template-columns: minmax(0,2.4fr) minmax(0,1fr) minmax(0,1.4fr) 90px 90px 96px;
  align-items: center; gap: 12px;
  padding: 12px 16px; font-size: 13px; color: var(--text-muted);
  border-top: 1px solid var(--border); cursor: pointer;
}
.ev-tr > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-tr:hover { background: var(--surface-2); }
.ev-th {
  border-top: none; cursor: default;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-faint); background: var(--surface-2); padding: 11px 16px;
}
.ev-th:hover { background: var(--surface-2); }
.ev-tr .btn.icon, .ev-card .btn.icon { opacity: 0; transition: opacity 120ms; }
.ev-tr:hover .btn.icon, .ev-card:hover .btn.icon { opacity: 1; }

.pg { display: inline-flex; align-items: center; gap: 6px; }
.pg > button {
  min-width: 28px; height: 28px; padding: 0 8px;
  border-radius: 7px; border: 1px solid var(--border);
  background: var(--surface-1); color: var(--text-muted);
  font-family: inherit; font-size: 12.5px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.pg > button:hover:not(:disabled) { background: var(--surface-hover); color: var(--text); }
.pg > button:disabled { opacity: 0.4; cursor: default; }
.pg > button.active {
  background: var(--accent); border-color: var(--accent);
  color: var(--on-accent); font-weight: 600;
}

/* ---- Event card (index grid) ---- */
.ev-card {
  padding: 15px 16px; cursor: pointer;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-sm);
  transition: border-color 120ms, box-shadow 120ms;
}
.ev-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.ev-card .ev-card-foot {
  display: flex; align-items: center; gap: 12px;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border);
  font-size: 11.5px; color: var(--text-dim);
}

/* ---- LIVE pill ---- */
.pill.live-pill {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.07em;
  color: var(--live); background: var(--live-soft);
  border: 1px solid transparent; border-radius: 999px; padding: 2px 7px;
}

/* ---- Topbar account avatar ---- */
.avatar-btn {
  width: 30px; height: 30px; flex-shrink: 0; padding: 0;
  border-radius: 999px; border: 1px solid var(--border);
  background: var(--accent-grad-soft); color: var(--text);
  font-family: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.avatar-btn:hover { border-color: var(--accent-ring); }
