/* ==========================================================
   SACRED SONS — LT Community prototype
   Inspired by the CRT manual visual language.
   ========================================================== */

@font-face {
  font-family: 'Big Noodle Titling';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/big_noodle_titling.ttf') format('truetype');
}

:root {
  --ss-black: #0c0a08;
  --ss-char: #161310;
  --ss-char-2: #1f1a15;
  --ss-char-3: #2a241d;
  --ss-gold: #C9A962;
  --ss-gold-deep: #B7932B;
  --ss-gold-light: #E5C97F;
  --ss-cream: #EDE4D3;
  --ss-cream-mute: #A89E8D;
  --ss-rule: rgba(201, 169, 98, 0.22);
  --ss-rule-soft: rgba(237, 228, 211, 0.08);
  --ss-heading: #FFFFFF;
  --sidebar-w: 280px;
  --topbar-h: 64px;
}

/* Desktop collapsed-sidebar mode (icon-only rail) */
[data-sidebar="collapsed"] {
  --sidebar-w: 76px;
}
[data-sidebar="collapsed"] .sidebar-brand a { justify-content: center; }
[data-sidebar="collapsed"] .sidebar-brand .lt-tag { display: none; }
[data-sidebar="collapsed"] .sidebar-brand { padding: 0 8px; height: var(--topbar-h); min-height: var(--topbar-h); }
[data-sidebar="collapsed"] .sidebar-nav { padding: 12px 8px 24px; }
[data-sidebar="collapsed"] .nav-section-label { display: none; }
[data-sidebar="collapsed"] .nav-section + .nav-section { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--ss-rule-soft); }
[data-sidebar="collapsed"] .nav-link {
  justify-content: center;
  padding: 12px 0;
}
[data-sidebar="collapsed"] .nav-link span { display: none; }
[data-sidebar="collapsed"] .nav-link.active { box-shadow: inset 3px 0 0 var(--ss-gold); }
[data-sidebar="collapsed"] .sidebar-footer {
  flex-direction: column;
  gap: 8px;
  padding: 12px 8px;
}
[data-sidebar="collapsed"] .sidebar-footer .who { display: none; }
[data-sidebar="collapsed"] .settings-gear { width: 36px; height: 36px; }
[data-sidebar="collapsed"] .settings-panel { left: 84px; bottom: 86px; }

/* Sidebar collapse toggle — round button hanging off the right edge, vertically
   aligned with the BROTHERHOOD section label (first nav-section heading row). */
.sidebar-collapse-toggle {
  display: none;
  position: absolute;
  top: calc(var(--topbar-h) + 18px);
  right: -14px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ss-char);
  border: 1px solid var(--ss-rule);
  color: var(--ss-cream-mute);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: color .15s, border-color .15s, background .15s;
  z-index: 41;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.sidebar-collapse-toggle:hover { color: var(--ss-gold); border-color: var(--ss-gold); background: var(--ss-char-2); }
.sidebar-collapse-toggle svg { width: 14px; height: 14px; transition: transform .25s ease; }
[data-sidebar="collapsed"] .sidebar-collapse-toggle svg { transform: rotate(180deg); }

@media (min-width: 881px) {
  .sidebar-collapse-toggle { display: inline-flex; }
}
@media (max-width: 880px) {
  /* Don't shrink to icon rail on mobile — use the slide-out drawer instead */
  [data-sidebar="collapsed"] { --sidebar-w: 280px; }
  [data-sidebar="collapsed"] .sidebar-brand .lt-tag,
  [data-sidebar="collapsed"] .nav-section-label,
  [data-sidebar="collapsed"] .nav-link span,
  [data-sidebar="collapsed"] .sidebar-footer .who { display: revert; }
  [data-sidebar="collapsed"] .nav-link { justify-content: flex-start; padding: 10px 12px; }
  [data-sidebar="collapsed"] .sidebar-brand a { justify-content: flex-start; }
  [data-sidebar="collapsed"] .sidebar-footer { flex-direction: row; padding: 14px 18px; }
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  background: var(--ss-black);
  color: var(--ss-cream);
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  overflow-x: clip; /* prevents horizontal drift without breaking sticky */
  max-width: 100%;
}

body {
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(201, 169, 98, 0.06), transparent 60%),
    linear-gradient(180deg, var(--ss-char) 0%, var(--ss-black) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: clip;
  width: 100%;
}

::selection { background: var(--ss-gold); color: var(--ss-black); }

/* Headings always Playfair */
h1, h2, h3, h4, h5, .display {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--ss-heading);
  letter-spacing: -0.005em;
  line-height: 1.15;
}

/* Numerals — Open Sans w/ tabular figures, Playfair doesn't render numbers cleanly */
.num,
.numeric {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }

/* ============ APP SHELL LAYOUT ============ */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  /* --announce-h is set by shell.js when the announcement bar is shown
     so the sidebar sits below the bar instead of being overlapped by it. */
  top: var(--announce-h, 0); left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #0d0b09 0%, #060504 100%);
  border-right: 1px solid var(--ss-rule);
  display: flex;
  flex-direction: column;
  z-index: 40;
}

.sidebar-brand {
  padding: 0 22px;
  border-bottom: 1px solid var(--ss-rule);
  display: flex; align-items: center; gap: 12px;
  height: var(--topbar-h);     /* match the topbar height for a clean top-row alignment */
  min-height: var(--topbar-h);
}

.sidebar-brand a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.sidebar-brand img.ss-logo {
  height: auto;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 6px rgba(201,169,98,0.25));
  flex-shrink: 0;
}
.sidebar-brand img.ss-logo-wide { max-height: 28px; max-width: 200px; }
.sidebar-brand img.ss-logo-mark { display: none; max-height: 36px; max-width: 36px; }
[data-sidebar="collapsed"] .sidebar-brand img.ss-logo-wide { display: none; }
[data-sidebar="collapsed"] .sidebar-brand img.ss-logo-mark { display: block; }

.sidebar-brand .lt-tag {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ss-gold);
  line-height: 1.2;
}

.sidebar-nav {
  padding: 16px 14px 24px;
  overflow-y: auto;
  flex: 1;
  /* Slim gold scrollbar — subtle on the warm-dark sidebar, fades into the
     gutter when not actively hovered. Firefox honors scrollbar-color;
     WebKit uses the ::-webkit-scrollbar pseudo-elements below. */
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 169, 98, 0.35) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(201, 169, 98, 0.35);
  border-radius: 3px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 169, 98, 0.6);
}

.nav-section + .nav-section { margin-top: 18px; }

/* Collapsible section header — button with chevron, click to expand/collapse */
.nav-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--ss-cream-mute);
  transition: color .15s, background .15s;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.nav-section-label:hover { color: var(--ss-gold); background: rgba(201, 169, 98, 0.06); }
.nav-section-chevron { transition: transform .2s ease; flex-shrink: 0; opacity: 0.7; }
.nav-section-label:hover .nav-section-chevron { opacity: 1; }
.nav-section[data-collapsed="true"] .nav-section-chevron { transform: rotate(-90deg); }
.nav-section[data-collapsed="true"] .nav-section-links { display: none; }
[data-sidebar="collapsed"] .nav-section-label { justify-content: center; padding: 6px; }
[data-sidebar="collapsed"] .nav-section-label > span:first-child,
[data-sidebar="collapsed"] .nav-section-chevron { display: none; }

.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--ss-cream);
  font-size: 14px;
  font-weight: 500;
  transition: background .15s, color .15s;
  margin-bottom: 2px;
}

.nav-link svg { flex-shrink: 0; opacity: 0.65; }
.nav-link .nav-patch {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 1;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
  transition: transform .25s cubic-bezier(0.2, 0.7, 0.3, 1);
  /* Pull the slightly larger patch back so its visual center aligns
     with where the 16px SVG icons sit on the other nav rows. */
  margin: -3px -3px -3px -3px;
}
.nav-link:hover { background: rgba(201, 169, 98, 0.08); color: white; }
.nav-link:hover svg { opacity: 1; }
.nav-link:hover .nav-patch { transform: rotate(-4deg) scale(1.06); }
/* Locked nav rows keep the patch in full color — the padlock on the right
   tells the user the destination is gated; the artwork stays vivid. */
.nav-link.locked .nav-patch { opacity: 1; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45)); }
.nav-link.active {
  background: rgba(201, 169, 98, 0.12);
  color: var(--ss-gold-light);
  box-shadow: inset 2px 0 0 var(--ss-gold);
}
.nav-link.active svg { opacity: 1; color: var(--ss-gold); }

/* Locked nav item — muted with a small padlock on the right */
.nav-link.locked { opacity: 0.55; }
.nav-link.locked:hover { opacity: 0.85; }
.nav-link .nav-lock {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  color: var(--ss-cream-mute);
  flex-shrink: 0;
}
.nav-link .nav-lock svg { width: 12px; height: 12px; opacity: 0.85; }
[data-sidebar="collapsed"] .nav-link .nav-lock { display: none; }

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--ss-rule);
  display: flex; align-items: center; gap: 10px;
}

.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ss-gold);
  color: var(--ss-black);
  display: grid; place-items: center;
  font-family: 'Big Noodle Titling', 'Open Sans', sans-serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.04em;
  line-height: 1;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.avatar.has-photo {
  background-color: var(--ss-char);
  background-size: cover;
  background-position: center top;     /* anchor faces toward the top of the frame */
  background-repeat: no-repeat;
  color: transparent;
  text-indent: -9999px;
  box-shadow: 0 0 0 1px rgba(201, 169, 98, 0.35);
}

.avatar.lg { width: 64px; height: 64px; font-size: 30px; }
.avatar.xl { width: 120px; height: 120px; font-size: 54px; }
.avatar.xxl { width: 160px; height: 160px; font-size: 72px; }

.sidebar-footer .who { flex: 1; min-width: 0; }
.sidebar-footer .who .name {
  font-family: 'Big Noodle Titling', 'Open Sans', sans-serif;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: white;
  font-weight: 500;
  line-height: 1.1;
}

/* Utility: any element representing a person's first/last name */
.brother-name {
  font-family: 'Big Noodle Titling', 'Open Sans', sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.sidebar-footer .who .role { font-size: 11px; color: var(--ss-cream-mute); letter-spacing: 0.06em; text-transform: uppercase; }

.settings-gear {
  background: none;
  border: 1px solid var(--ss-rule);
  border-radius: 6px;
  width: 32px; height: 32px;
  color: var(--ss-cream-mute);
  display: grid; place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: color .15s, border-color .15s, background .15s, transform .3s ease;
}
.settings-gear:hover { color: var(--ss-gold); border-color: var(--ss-gold); background: rgba(201,169,98,0.06); }
.settings-gear.active { color: var(--ss-gold); border-color: var(--ss-gold); background: rgba(201,169,98,0.1); transform: rotate(60deg); }

/* ============ SETTINGS POPUP ============ */
.settings-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 100;
  display: none;
}
.settings-backdrop.open { display: block; }

.settings-panel {
  position: fixed;
  bottom: 86px;
  left: 14px;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: linear-gradient(180deg, var(--ss-char) 0%, var(--ss-black) 100%);
  color: var(--ss-cream);
  border: 1px solid rgba(201, 169, 98, 0.32);
  border-radius: 8px;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.4);
  z-index: 110;
  padding: 22px 22px 18px;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  font-family: 'Open Sans', sans-serif;
}
.settings-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.settings-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ss-rule);
}
.settings-panel-header p {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ss-gold);
  margin: 0 0 2px;
  font-weight: 700;
}
.settings-panel-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin: 0;
}
.settings-close {
  background: none;
  border: 0;
  color: var(--ss-cream-mute);
  cursor: pointer;
  padding: 4px;
  margin: -4px -4px 0 0;
  line-height: 0;
}
.settings-close:hover { color: var(--ss-gold); }

.settings-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--ss-rule-soft);
}
.settings-row:last-of-type { border-bottom: 0; }
.settings-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.settings-label {
  font-size: 13px;
  color: var(--ss-cream);
  font-weight: 500;
}
.settings-sub {
  font-size: 11px;
  color: var(--ss-cream-mute);
  margin-top: 4px;
  line-height: 1.4;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  position: relative;
}
.theme-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.theme-switch-track {
  width: 44px;
  height: 24px;
  background: rgba(201, 169, 98, 0.22);
  border-radius: 12px;
  position: relative;
  transition: background 0.22s ease;
  display: inline-block;
}
.theme-switch-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: var(--ss-gold);
  border-radius: 50%;
  transition: transform 0.22s ease, background 0.22s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.theme-switch input:checked + .theme-switch-track { background: var(--ss-gold); }
.theme-switch input:checked + .theme-switch-track .theme-switch-thumb {
  transform: translateX(20px);
  background: white;
}

.settings-reset {
  width: 100%;
  background: none;
  border: 1px solid var(--ss-rule);
  color: var(--ss-cream);
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 14px;
  transition: border-color .15s, color .15s;
}
.settings-reset:hover { border-color: var(--ss-gold); color: var(--ss-gold); }

.settings-footnote {
  font-size: 10px;
  color: var(--ss-cream-mute);
  text-align: center;
  margin: 14px 0 0;
  letter-spacing: 0.06em;
}
.settings-footnote a { color: var(--ss-gold); }

/* ============ LIGHT THEME — mirrors Circle community color scheme ============
   Cool light-gray page bg, white cards/sidebar, near-black text,
   Sacred Sons gold (#B7932B) reserved for the active nav pill and
   primary CTAs, soft hairline borders. */
[data-theme="light"] {
  --ss-black: #F3F4F6;        /* page surface — cool gray */
  --ss-char: #FFFFFF;         /* card / sidebar / topbar surface */
  --ss-char-2: #FFFFFF;
  --ss-char-3: #F9FAFB;       /* zebra / hover surface */
  --ss-cream: #1F2937;        /* primary text — slate-800 */
  --ss-cream-mute: #6B7280;   /* muted gray — slate-500 */
  --ss-rule: rgba(17, 24, 39, 0.10);
  --ss-rule-soft: rgba(17, 24, 39, 0.05);
  --ss-heading: #111827;
  --ss-gold: #B7932B;         /* Circle's gold — production brand value */
  --ss-gold-deep: #8A6F1E;
  --ss-gold-light: #C9A962;
}

[data-theme="light"] body {
  background: #F3F4F6;
}

[data-theme="light"] .sidebar {
  background: #FFFFFF;
  border-right: 1px solid var(--ss-rule);
}

[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--ss-rule);
}
[data-theme="light"] .topbar .crumbs strong { color: #111827; }

/* Headings + name treatments */
[data-theme="light"] h1, [data-theme="light"] h2, [data-theme="light"] h3,
[data-theme="light"] h4, [data-theme="light"] h5, [data-theme="light"] .display { color: #111827; }
[data-theme="light"] .text-white,
[data-theme="light"] .person-cell .name,
[data-theme="light"] .person-mini .name,
[data-theme="light"] .person-head .name,
[data-theme="light"] .selected-card .name,
[data-theme="light"] .nearby-row .name,
[data-theme="light"] .num-col,
[data-theme="light"] .num-col.gold { color: #111827 !important; }
[data-theme="light"] .text-mute,
[data-theme="light"] .text-cream { color: #6B7280; }
[data-theme="light"] .text-gold { color: #B7932B; }

/* Sidebar nav — Circle pattern: inactive = gray text on white;
   active = solid gold pill with white text */
[data-theme="light"] .nav-link { color: #4B5563; }
[data-theme="light"] .nav-link:hover { background: rgba(17, 24, 39, 0.04); color: #111827; }
[data-theme="light"] .nav-link.active {
  background: var(--ss-gold);
  color: #FFFFFF !important;
  box-shadow: none;
}
[data-theme="light"] .nav-link.active svg { color: #FFFFFF; opacity: 1; }
[data-theme="light"] .nav-section-label { color: #9CA3AF; }
[data-theme="light"] .sidebar-footer .who .name { color: #111827; }
[data-theme="light"] .sidebar-footer .who .role { color: #6B7280; }
[data-theme="light"] .sidebar-brand .lt-tag { color: #B7932B; }

/* Cards — flat white with subtle hairline border */
[data-theme="light"] .card,
[data-theme="light"] .card.flat {
  background: #FFFFFF;
  border: 1px solid var(--ss-rule);
}

/* Inputs */
[data-theme="light"] .input,
[data-theme="light"] .select,
[data-theme="light"] .textarea {
  background: #FFFFFF;
  color: #1F2937;
  border-color: rgba(17, 24, 39, 0.15);
}
[data-theme="light"] .input::placeholder,
[data-theme="light"] .textarea::placeholder { color: #9CA3AF; }
[data-theme="light"] .input:focus,
[data-theme="light"] .select:focus,
[data-theme="light"] .textarea:focus {
  border-color: var(--ss-gold);
  box-shadow: 0 0 0 3px rgba(183, 147, 43, 0.15);
}

/* Buttons */
[data-theme="light"] .btn-gold { background: #B7932B; color: #FFFFFF; border-color: #B7932B; }
[data-theme="light"] .btn-gold:hover { background: #A07F23; border-color: #A07F23; }
[data-theme="light"] .btn-ghost { background: transparent; color: #B7932B; border-color: #B7932B; }
[data-theme="light"] .btn-ghost:hover { background: rgba(183, 147, 43, 0.08); }
[data-theme="light"] .btn-dark {
  background: #FFFFFF;
  color: #111827;
  border-color: rgba(17, 24, 39, 0.15);
}
[data-theme="light"] .btn-dark:hover { background: #F9FAFB; border-color: var(--ss-gold); }

/* Tags */
[data-theme="light"] .tag {
  background: #F3F4F6;
  border-color: rgba(17, 24, 39, 0.1);
  color: #1F2937;
}
[data-theme="light"] .tag-gold {
  background: #B7932B;
  color: #FFFFFF;
  border-color: #B7932B;
}
[data-theme="light"] .tag-pending {
  background: rgba(245, 158, 11, 0.12);
  color: #B45309;
  border-color: rgba(245, 158, 11, 0.4);
}
[data-theme="light"] .tag-approved {
  background: rgba(34, 197, 94, 0.1);
  color: #15803D;
  border-color: rgba(34, 197, 94, 0.35);
}
[data-theme="light"] .tag-rejected {
  background: rgba(239, 68, 68, 0.1);
  color: #B91C1C;
  border-color: rgba(239, 68, 68, 0.35);
}
[data-theme="light"] .tag-info {
  background: rgba(59, 130, 246, 0.1);
  color: #1D4ED8;
  border-color: rgba(59, 130, 246, 0.35);
}

/* Stat tiles */
[data-theme="light"] .stat {
  background: #FFFFFF;
  border-color: var(--ss-rule);
}
[data-theme="light"] .stat .value { color: #111827; }
[data-theme="light"] .stat .value-gold { color: #B7932B; }
[data-theme="light"] .stat .label-sm { color: #6B7280; }

/* Tables */
[data-theme="light"] .tbl th,
[data-theme="light"] .lb-table thead th {
  background: #F9FAFB;
  color: #B7932B;
  border-bottom-color: var(--ss-rule);
}
[data-theme="light"] .tbl td { color: #1F2937; border-bottom-color: var(--ss-rule-soft); }
[data-theme="light"] .tbl tbody tr:hover td,
[data-theme="light"] .lb-table tbody tr:hover td { background: #F9FAFB; }
[data-theme="light"] .lb-table tbody tr.you td { background: rgba(183, 147, 43, 0.10); }
[data-theme="light"] .lb-table tbody tr.you:hover td { background: rgba(183, 147, 43, 0.16); }

/* Person card / podium / banners */
[data-theme="light"] .person-card {
  background: #FFFFFF;
  border-color: var(--ss-rule);
}
[data-theme="light"] .person-card:hover { border-color: var(--ss-gold); }
[data-theme="light"] .podium-card {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(183, 147, 43, 0.12), transparent 70%),
    #FFFFFF;
  border-color: var(--ss-rule);
}
[data-theme="light"] .podium-card.gold {
  background: linear-gradient(180deg, rgba(183, 147, 43, 0.12) 0%, #FFFFFF 80%);
  border-color: var(--ss-gold);
}
[data-theme="light"] .you-banner {
  background: linear-gradient(90deg, rgba(183, 147, 43, 0.12), rgba(183, 147, 43, 0.03));
  border-color: var(--ss-gold);
}

/* Toolbar / filter bar / lb-controls / pager */
[data-theme="light"] .toolbar,
[data-theme="light"] .lb-controls,
[data-theme="light"] .filter-bar {
  background: #FFFFFF;
  border-color: var(--ss-rule);
}

/* Tabs */
[data-theme="light"] .tab { color: #6B7280; }
[data-theme="light"] .tab:hover { color: #111827; }
[data-theme="light"] .tab.active { color: #B7932B; border-bottom-color: #B7932B; }

/* Alerts */
[data-theme="light"] .alert { background: rgba(183, 147, 43, 0.06); border-color: var(--ss-rule); color: #1F2937; }

/* Settings panel itself in light mode */
[data-theme="light"] .settings-panel {
  background: #FFFFFF;
  border-color: var(--ss-rule);
}
[data-theme="light"] .settings-panel-header { border-bottom-color: var(--ss-rule); }

/* Avatar — keep the gold, but darker letters for legibility */
[data-theme="light"] .avatar { background: var(--ss-gold); color: #FFFFFF; }
[data-theme="light"] .avatar.has-photo { background-color: #F3F4F6; }

/* Page header eyebrow stays gold, lede text gets muted gray */
[data-theme="light"] .page-header .eyebrow { color: #B7932B; }
[data-theme="light"] .page-header .lede { color: #6B7280; }

/* Footer */
[data-theme="light"] .app-footer { border-top-color: var(--ss-rule); color: #6B7280; }

/* Ring badges (LT/FT/WP) */
[data-theme="light"] .ring-badge {
  background: radial-gradient(circle at 30% 30%, rgba(201, 169, 98, 0.18), #FFFFFF 70%);
  color: #B7932B;
  border-color: var(--ss-gold);
  box-shadow: inset 0 0 12px rgba(183, 147, 43, 0.06), 0 4px 12px rgba(17, 24, 39, 0.06);
}
[data-theme="light"] .ring-badge .top { color: #6B7280; }

/* Quote (login art panel) */
[data-theme="light"] .quote { color: #1F2937; }
[data-theme="light"] .quote::before { color: #B7932B; }

/* Topbar avatar dot */
[data-theme="light"] .topbar [class*="dot"] { background: #B7932B; }

.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
}

.topbar {
  height: var(--topbar-h);
  border-bottom: 1px solid var(--ss-rule);
  background: rgba(12, 10, 8, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  position: sticky;
  top: var(--announce-h, 0);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 16px;
  z-index: 30;
  will-change: transform;
}

.topbar .crumbs {
  font-size: 13px;
  color: var(--ss-cream-mute);
  letter-spacing: 0.04em;
  flex: 1;
  min-width: 0;
}

/* Centered pill search bar */
.topbar .topbar-search {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, 36vw);
  max-width: calc(100% - 360px);
  z-index: 1;
}
.topbar .topbar-search .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ss-cream-mute);
  display: inline-flex;
  pointer-events: none;
}
.topbar .topbar-search input {
  width: 100%;
  border-radius: 999px;
  padding: 9px 18px 9px 40px;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(201, 169, 98, 0.25);
}
.topbar .topbar-search input:focus {
  border-color: var(--ss-gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.18);
}
[data-theme="light"] .topbar .topbar-search input {
  background: #FFFFFF;
  border-color: rgba(17, 24, 39, 0.12);
}

/* Right-aligned actions cluster (bell + avatar) */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
  z-index: 2;
}

/* ============ USER MENU (top-right dropdown) ====================
   Built per Rick 2026-05-27 to replace the sidebar-footer + settings
   gear. Avatar in the topbar opens a dropdown holding: identity head
   (name + role), theme toggle, sign-out. */
.topbar-user-wrap { position: relative; }
.topbar-user-trigger {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  transition: transform .15s, box-shadow .15s;
}
.topbar-user-trigger:hover { transform: scale(1.04); }
.topbar-user-trigger:focus-visible {
  outline: 2px solid var(--ss-gold);
  outline-offset: 2px;
}
.topbar-user-trigger .avatar {
  width: 34px;
  height: 34px;
  font-size: 12px;
  pointer-events: none;
}
.topbar-user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  background: #14110d;
  border: 1px solid rgba(201, 169, 98, 0.22);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  padding: 6px;
  z-index: 60;
  overflow: hidden;
}
.topbar-user-head {
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(201, 169, 98, 0.14);
  margin-bottom: 4px;
}
.topbar-user-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--ss-cream);
  font-size: 15px;
  line-height: 1.2;
  margin-bottom: 2px;
}
.topbar-user-role {
  font-family: 'Open Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ss-gold);
  font-weight: 700;
}
.topbar-user-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: none;
  border: 0;
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  color: var(--ss-cream);
  cursor: pointer;
  text-align: left;
  transition: background .15s, color .15s;
}
.topbar-user-item:hover {
  background: rgba(201, 169, 98, 0.08);
}
.topbar-user-item-danger { color: #FCA5A5; }
.topbar-user-item-danger:hover { color: #FECACA; background: rgba(220, 38, 38, 0.10); }

/* Theme toggle pill (light/dark switch inside the menu) */
.theme-pill {
  width: 36px;
  height: 20px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  position: relative;
  transition: background .18s;
  flex-shrink: 0;
}
.theme-pill-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--ss-cream);
  border-radius: 50%;
  transition: transform .18s, background .18s;
}
.topbar-user-item.is-on .theme-pill {
  background: var(--ss-gold);
}
.topbar-user-item.is-on .theme-pill-thumb {
  transform: translateX(16px);
  background: #14110d;
}

/* Light-mode adjustments for the dropdown */
[data-theme="light"] .topbar-user-menu {
  background: #FFFFFF;
  border-color: rgba(12, 10, 8, 0.14);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}
[data-theme="light"] .topbar-user-name { color: #111827; }
[data-theme="light"] .topbar-user-item { color: #111827; }
[data-theme="light"] .topbar-user-item:hover { background: rgba(201, 169, 98, 0.12); }
[data-theme="light"] .topbar-user-head { border-bottom-color: rgba(12, 10, 8, 0.08); }

/* ============ NOTIFICATIONS DROPDOWN ============ */
.notif-wrap { position: relative; }

.notif-trigger {
  position: relative;
  background: none;
  border: 0;
  color: var(--ss-cream-mute);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, background .15s;
}
.notif-trigger:hover { color: var(--ss-cream); background: rgba(201, 169, 98, 0.06); }
.notif-trigger[aria-expanded="true"] { color: var(--ss-gold); background: rgba(201, 169, 98, 0.08); }

.notif-count {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ss-gold);
  color: var(--ss-black);
  font-family: 'Open Sans', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums lining-nums;
  box-shadow: 0 0 0 2px var(--ss-char);
}

.notif-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: -6px;
  width: 400px;
  max-width: calc(100vw - 24px);
  background: linear-gradient(180deg, var(--ss-char) 0%, var(--ss-black) 100%);
  border: 1px solid rgba(201, 169, 98, 0.32);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 60;
  overflow: hidden;
}
.notif-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.notif-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--ss-rule);
  gap: 12px;
}
.notif-head p {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ss-gold);
  margin: 0 0 4px;
  font-weight: 700;
}
.notif-head h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: white;
  margin: 0;
  font-weight: 700;
}
.notif-mark-read {
  background: none;
  border: 0;
  color: var(--ss-cream-mute);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 0;
  transition: color .15s;
}
.notif-mark-read:hover { color: var(--ss-gold); }

.notif-list {
  max-height: 480px;
  overflow-y: auto;
  padding: 4px 0;
}

.notif-item {
  display: grid;
  grid-template-columns: 36px 1fr 12px;
  gap: 14px;
  padding: 14px 20px;
  align-items: flex-start;
  border-bottom: 1px solid var(--ss-rule-soft);
  transition: background .15s;
}
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: rgba(201, 169, 98, 0.05); }
.notif-item.unread { background: rgba(201, 169, 98, 0.04); }
.notif-item.unread:hover { background: rgba(201, 169, 98, 0.08); }

.notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.notif-icon-gold   { background: rgba(201, 169, 98, 0.16); color: var(--ss-gold); }
.notif-icon-green  { background: rgba(110, 231, 183, 0.14); color: #6EE7B7; }
.notif-icon-blue   { background: rgba(147, 197, 253, 0.14); color: #93C5FD; }
.notif-icon-amber  { background: rgba(255, 213, 107, 0.14); color: #FFD56B; }
.notif-icon-cream  { background: rgba(237, 228, 211, 0.10); color: var(--ss-cream); }

.notif-text {
  color: var(--ss-cream);
  font-size: 13px;
  line-height: 1.45;
}
.notif-text strong { color: white; font-weight: 600; }

.notif-meta {
  font-size: 10px;
  color: var(--ss-cream-mute);
  letter-spacing: 0.06em;
  margin-top: 5px;
  text-transform: uppercase;
  font-weight: 600;
}

.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ss-gold);
  margin-top: 14px;
  align-self: flex-start;
  visibility: hidden;
}
.notif-item.unread .notif-dot { visibility: visible; }

.notif-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--ss-rule);
  text-align: center;
}
.notif-foot a {
  font-size: 11px;
  color: var(--ss-gold);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.notif-foot a:hover { color: var(--ss-gold-light); }

/* Light theme */
[data-theme="light"] .notif-panel {
  background: #FFFFFF;
  border-color: rgba(17, 24, 39, 0.10);
  box-shadow: 0 24px 64px rgba(17, 24, 39, 0.18), 0 0 0 1px rgba(17, 24, 39, 0.04);
}
[data-theme="light"] .notif-head { border-bottom-color: rgba(17, 24, 39, 0.08); }
[data-theme="light"] .notif-head h3 { color: #111827; }
[data-theme="light"] .notif-text { color: #1F2937; }
[data-theme="light"] .notif-text strong { color: #111827; }
[data-theme="light"] .notif-item { border-bottom-color: rgba(17, 24, 39, 0.05); }
[data-theme="light"] .notif-item:hover { background: rgba(183, 147, 43, 0.06); }
[data-theme="light"] .notif-item.unread { background: rgba(183, 147, 43, 0.05); }
[data-theme="light"] .notif-foot { border-top-color: rgba(17, 24, 39, 0.08); }
[data-theme="light"] .notif-count { box-shadow: 0 0 0 2px #FFFFFF; }

/* Mobile: pin to viewport with consistent left/right gutters */
@media (max-width: 880px) {
  .notif-panel {
    position: fixed;
    top: calc(var(--topbar-h) + 8px);
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    transform-origin: top right;
  }
}
.topbar .crumbs strong { color: white; font-weight: 600; }
.topbar .crumbs .sep { padding: 0 8px; color: var(--ss-rule); }

.page {
  padding: 32px 40px 80px;
  max-width: 1280px;
  margin: 0 auto;
}

/* ============ CINEMA-STYLE PAGE HEADER (CRT-manual flavor) ============
   Reusable banner: gold radial gradient from top, Playfair 800 title,
   ornament-rule eyebrow, gold accent rule. Negative margin breaks out
   of the .page padding for a full-bleed feel. */
.page-cinema-header {
  text-align: center;
  padding: 88px 40px 64px;
  margin: -32px -40px 36px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(201, 169, 98, 0.20), transparent 70%),
    linear-gradient(180deg, var(--ss-char) 0%, #161310 60%, var(--ss-black) 100%);
  border-bottom: 1px solid var(--ss-rule);
  position: relative;
  overflow: hidden;
}
.page-cinema-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(201, 169, 98, 0.06), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(201, 169, 98, 0.05), transparent 28%);
  pointer-events: none;
}
.page-cinema-header > * { position: relative; z-index: 1; }
.page-cinema-header .ornament-rule {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  color: var(--ss-gold);
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.page-cinema-header .ornament-rule::before,
.page-cinema-header .ornament-rule::after {
  content: '';
  width: 80px;
  height: 1px;
  background: var(--ss-rule);
}
.page-cinema-header .ornament-logo {
  height: 48px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 16px rgba(201, 169, 98, 0.4));
}
.page-cinema-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(48px, 8vw, 108px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.018em;
  color: var(--ss-heading);
  margin: 0 0 32px;
}
.page-cinema-header .rule {
  display: inline-block;
  width: 56px;
  height: 2px;
  background: var(--ss-gold);
}
[data-theme="light"] .page-cinema-header {
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(183, 147, 43, 0.18), transparent 70%),
    linear-gradient(180deg, #FFFFFF 0%, #FAFAFB 100%);
  border-bottom-color: var(--ss-rule);
}
[data-theme="light"] .page-cinema-header h1 { color: #111827; }
@media (max-width: 880px) {
  .page-cinema-header { padding: 40px 18px 32px; margin: -22px -18px 24px; }
  .page-cinema-header .ornament-rule { gap: 14px; margin-bottom: 18px; }
  .page-cinema-header .ornament-rule::before,
  .page-cinema-header .ornament-rule::after { width: 40px; }
  .page-cinema-header .ornament-logo { height: 32px; }
  .page-cinema-header h1 { font-size: clamp(32px, 9.5vw, 48px); letter-spacing: -0.01em; margin: 0 0 22px; }
}
@media (max-width: 480px) {
  .page-cinema-header { padding: 32px 16px 26px; }
  .page-cinema-header h1 { font-size: clamp(28px, 9vw, 40px); margin-bottom: 18px; }
}

.page-header {
  margin-bottom: 28px;
}
.page-header .eyebrow {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ss-gold);
  margin-bottom: 10px;
}
.page-header h1 {
  font-size: 38px;
  font-weight: 700;
  margin: 0 0 8px;
  color: white;
}
.page-header .lede {
  color: var(--ss-cream-mute);
  font-size: 15px;
  max-width: 640px;
  line-height: 1.6;
}

/* ============ COMPONENTS ============ */
.card {
  background: linear-gradient(180deg, rgba(31, 26, 21, 0.7) 0%, rgba(22, 19, 16, 0.7) 100%);
  border: 1px solid var(--ss-rule);
  border-radius: 4px;
  padding: 24px;
}
.card.flat { background: var(--ss-char); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.btn-gold {
  background: var(--ss-gold);
  color: var(--ss-black);
  border-color: var(--ss-gold);
}
.btn-gold:hover { background: var(--ss-gold-light); border-color: var(--ss-gold-light); }
.btn-ghost {
  background: transparent;
  color: var(--ss-gold);
  border-color: var(--ss-gold);
}
.btn-ghost:hover { background: rgba(201, 169, 98, 0.1); }
.btn-dark {
  background: var(--ss-char-2);
  color: white;
  border-color: var(--ss-rule);
}
.btn-dark:hover { background: var(--ss-char-3); border-color: var(--ss-gold); }
.btn-sm { padding: 7px 14px; font-size: 11px; letter-spacing: 0.1em; }
.btn-icon { padding: 8px; }

.input, .select, .textarea {
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--ss-rule);
  color: var(--ss-cream);
  padding: 11px 14px;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
  border-radius: 2px;
  width: 100%;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--ss-gold);
  box-shadow: 0 0 0 1px var(--ss-gold);
}
.input::placeholder, .textarea::placeholder { color: var(--ss-cream-mute); }
.textarea { resize: vertical; min-height: 100px; }
.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C9A962' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ss-gold);
  margin-bottom: 8px;
}
.help {
  font-size: 12px;
  color: var(--ss-cream-mute);
  margin-top: 6px;
}

.field { margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 720px) { .field-row { grid-template-columns: 1fr; } }

.divider {
  height: 1px;
  background: var(--ss-rule);
  margin: 28px 0;
  border: 0;
}
.divider-gold {
  width: 56px; height: 2px;
  background: var(--ss-gold);
  border: 0;
  margin: 0 0 18px;
}

/* Tags / badges */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--ss-rule);
  color: var(--ss-cream);
  background: rgba(201, 169, 98, 0.06);
  white-space: nowrap;
}
.tag-gold { background: var(--ss-gold); color: var(--ss-black); border-color: var(--ss-gold); }
.tag-pending { background: rgba(255, 196, 0, 0.12); color: #FFD56B; border-color: rgba(255, 196, 0, 0.4); }
.tag-approved { background: rgba(74, 222, 128, 0.1); color: #6EE7B7; border-color: rgba(74, 222, 128, 0.35); }
.tag-rejected { background: rgba(248, 113, 113, 0.1); color: #FCA5A5; border-color: rgba(248, 113, 113, 0.4); }
.tag-info { background: rgba(125, 211, 252, 0.1); color: #93C5FD; border-color: rgba(125, 211, 252, 0.4); }
.tag-cancelled { background: rgba(255,255,255,0.04); color: var(--ss-cream-mute); }

/* badge ring (LT, FT, WP) */
.ring-badge {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Open Sans', -apple-system, sans-serif;
  font-weight: 800;
  color: var(--ss-gold-light);
  background: radial-gradient(circle at 30% 30%, rgba(229, 201, 127, 0.25), rgba(12, 10, 8, 0.9) 70%);
  border: 2px solid var(--ss-gold);
  box-shadow: inset 0 0 12px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.5);
  position: relative;
  text-align: center;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}
.ring-badge .top { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ss-cream-mute); display: block; margin-bottom: 2px; font-family: 'Open Sans', sans-serif; font-weight: 700; }
.ring-badge .num { font-size: 22px; font-weight: 800; }
.ring-badge.lg { width: 84px; height: 84px; }
.ring-badge.lg .num { font-size: 28px; }
.ring-badge.lg .top { font-size: 10px; }

/* Tables */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.tbl th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ss-gold);
  padding: 12px 14px;
  border-bottom: 1px solid var(--ss-rule);
  white-space: nowrap;
}
.tbl td {
  padding: 14px 14px;
  border-bottom: 1px solid var(--ss-rule-soft);
  color: var(--ss-cream);
  vertical-align: middle;
}
.tbl tbody tr:hover td { background: rgba(201, 169, 98, 0.04); }
.tbl tbody tr.expanded td { background: rgba(201, 169, 98, 0.06); }

/* stat tiles */
.stat {
  border: 1px solid var(--ss-rule);
  background: linear-gradient(180deg, rgba(31, 26, 21, 0.5), rgba(12, 10, 8, 0.6));
  padding: 22px;
  border-radius: 4px;
}
.stat .label-sm {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ss-cream-mute);
  font-weight: 700;
  margin-bottom: 8px;
}
.stat .value {
  font-family: 'Open Sans', -apple-system, sans-serif;
  font-size: 36px;
  color: white;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
  letter-spacing: -0.02em;
}
.stat .value-gold { color: var(--ss-gold); }
.stat .delta { font-size: 12px; color: var(--ss-cream-mute); margin-top: 6px; }
.stat .delta b { color: var(--ss-gold-light); font-weight: 600; }

/* checkboxes */
.checkbox {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ss-cream);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  user-select: none;
  font-family: 'Open Sans', sans-serif;
}
.checkbox:hover { background: rgba(201, 169, 98, 0.06); }

/* ============ CUSTOM CHECKBOX (21st.dev-inspired, Sacred Sons palette) ============
   Applies to every native checkbox site-wide. Real <input> stays for a11y;
   appearance is stripped and a 16x16 disc is drawn with a CSS-painted check
   when :checked. Indeterminate state uses a horizontal stroke. */
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid rgba(201, 169, 98, 0.45);
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.35);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
input[type="checkbox"]:hover {
  background-color: rgba(201, 169, 98, 0.12);
  border-color: var(--ss-gold);
}
input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(12, 10, 8, 1), 0 0 0 4px var(--ss-gold);
}
input[type="checkbox"]:checked {
  background-color: var(--ss-gold);
  border-color: var(--ss-gold);
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230c0a08' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 7 L8.5 12.5 L6 10'/%3E%3C/svg%3E");
}
input[type="checkbox"]:checked:hover {
  background-color: var(--ss-gold-light);
  border-color: var(--ss-gold-light);
}
input[type="checkbox"]:indeterminate {
  background-color: rgba(0, 0, 0, 0.35);
  border-color: var(--ss-gold);
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23C9A962' stroke-width='2.4' stroke-linecap='round'%3E%3Cline x1='5' y1='10' x2='15' y2='10'/%3E%3C/svg%3E");
}
input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  border-color: var(--ss-rule);
  background-color: rgba(255, 255, 255, 0.03);
}
input[type="checkbox"]:disabled:checked {
  background-color: rgba(201, 169, 98, 0.45);
  border-color: rgba(201, 169, 98, 0.45);
}

/* Light-theme adjustments — uses the existing [data-theme="light"] variables */
[data-theme="light"] input[type="checkbox"] {
  background-color: white;
  border-color: rgba(138, 111, 30, 0.5);
}
[data-theme="light"] input[type="checkbox"]:hover {
  background-color: rgba(138, 111, 30, 0.08);
}
[data-theme="light"] input[type="checkbox"]:checked {
  background-color: var(--ss-gold-deep);
  border-color: var(--ss-gold-deep);
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 7 L8.5 12.5 L6 10'/%3E%3C/svg%3E");
}

/* utilities */
.text-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ss-gold); }
.text-mute { color: var(--ss-cream-mute); }
.text-cream { color: var(--ss-cream); }
.text-white { color: white; }
.text-gold { color: var(--ss-gold); }
.divider-soft { height: 1px; background: var(--ss-rule-soft); margin: 16px 0; border: 0; }

/* tabs */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--ss-rule);
  margin-bottom: 20px;
}
.tab {
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ss-cream-mute);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  background: none; border-left:0; border-right:0; border-top:0;
}
.tab:hover { color: white; }
.tab.active { color: var(--ss-gold); border-bottom-color: var(--ss-gold); }
.tab-count {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  background: rgba(201, 169, 98, 0.15);
  color: var(--ss-gold);
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0;
  font-weight: 700;
}

/* alert */
.alert {
  border: 1px solid var(--ss-rule);
  background: rgba(201, 169, 98, 0.05);
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--ss-cream);
  display: flex; gap: 12px; align-items: flex-start;
}
.alert.warn { border-color: rgba(255, 196, 0, 0.4); background: rgba(255, 196, 0, 0.06); }
.alert.success { border-color: rgba(74, 222, 128, 0.4); background: rgba(74, 222, 128, 0.06); }

/* Generic numeric utility for inline use */
.fig {
  font-family: 'Open Sans', -apple-system, sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
  letter-spacing: -0.01em;
}

/* Marketing/brand-shell home only */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 80px 32px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(201, 169, 98, 0.14), transparent 60%),
              linear-gradient(180deg, var(--ss-black) 0%, var(--ss-char) 100%);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; text-align: center; }
.hero h1 {
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 800;
  margin: 0 0 24px;
  line-height: 1.05;
  color: white;
}
.hero h1 em { color: var(--ss-gold); font-style: normal; }
.hero .kicker {
  display: inline-block;
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ss-gold);
  border: 1px solid var(--ss-rule);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero p.lede {
  color: var(--ss-cream);
  font-size: 19px;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 36px;
}

.section {
  padding: 80px 32px;
  border-top: 1px solid var(--ss-rule);
}
.section-inner { max-width: 1200px; margin: 0 auto; }
.section h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin: 0 0 12px;
  color: white;
  font-weight: 700;
}
.section .sub {
  color: var(--ss-cream-mute);
  font-size: 16px;
  max-width: 640px;
  margin-bottom: 48px;
}

/* Login layout */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-art {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(201, 169, 98, 0.18), transparent 70%),
    linear-gradient(160deg, #0d0b09 0%, #1f1a15 100%);
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--ss-rule);
  position: relative;
  overflow: hidden;
}
.auth-art::after {
  content: '';
  position: absolute;
  inset: -100px;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(201, 169, 98, 0.12), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201, 169, 98, 0.08), transparent 50%);
  pointer-events: none;
}
.auth-art > * { position: relative; z-index: 1; }
.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 32px;
  background: var(--ss-black);
}
.auth-card { width: 100%; max-width: 460px; }
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { display: none; }
}

/* Map view */
.map-canvas {
  height: 580px;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(201,169,98,0.12), transparent 60%),
    linear-gradient(135deg, #1a1812 0%, #0c0a08 100%);
  border: 1px solid var(--ss-rule);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.map-canvas::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,169,98,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,98,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.map-pin {
  position: absolute;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ss-gold);
  border: 2px solid white;
  box-shadow: 0 0 0 4px rgba(201,169,98,0.18), 0 8px 20px rgba(0,0,0,0.6);
  display: grid; place-items: center;
  color: var(--ss-black);
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform .15s ease;
}
.map-pin:hover { transform: translate(-50%, -50%) scale(1.18); z-index: 5; }
.map-pin.cluster { background: var(--ss-gold-deep); width: 44px; height: 44px; font-size: 14px; }
.map-attribution {
  position: absolute; bottom: 8px; right: 12px;
  font-size: 10px;
  color: var(--ss-cream-mute);
  letter-spacing: 0.06em;
}

/* footer */
.app-footer {
  border-top: 1px solid var(--ss-rule);
  padding: 32px 40px;
  font-size: 12px;
  color: var(--ss-cream-mute);
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

/* Mobile sidebar dismiss backdrop (rendered by shell.js) */
.sidebar-backdrop-mobile {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 39;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  display: none;
}
@media (max-width: 880px) {
  .sidebar-backdrop-mobile { display: block; }
  .sidebar-backdrop-mobile.open { opacity: 1; pointer-events: auto; }
}

/* responsive */
@media (max-width: 880px) {
  .sidebar { transform: translateX(-100%); transition: transform .3s ease; box-shadow: 12px 0 32px rgba(0,0,0,0.5); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; max-width: 100%; }
  .topbar { padding: 0 16px; gap: 10px; }
  .topbar .crumbs { font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* Hide the topbar search on narrow viewports — it crowds out the
     bell + avatar and was the root of the horizontal drift on mobile. */
  .topbar .topbar-search { display: none !important; }
  .page { padding: 22px 18px 60px; max-width: 100%; }
}

/* Universal narrow-viewport safety */
@media (max-width: 480px) {
  .page-header h1 { font-size: 28px; }
  .page-header .lede { font-size: 14px; }
  .filter-bar,
  .lb-controls,
  .toolbar { padding: 12px 14px; }
}

/* small flourishes */
.ornament {
  display: flex; align-items: center; gap: 14px;
  color: var(--ss-gold);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.ornament::before, .ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ss-rule);
}

.dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ss-gold);
  margin-right: 8px;
  vertical-align: middle;
}

/* ===========================================================================
   Chat panel — global slide-out, Sacred Sons aesthetic
   =========================================================================== */
.chat-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 2400;
}
.chat-backdrop.open { opacity: 1; pointer-events: auto; }

.chat-panel {
  position: fixed;
  top: 0; right: 0;
  height: 100dvh;
  width: 400px;
  max-width: 92vw;
  background: var(--ss-warm-dark);
  border-left: 1px solid var(--ss-rule);
  box-shadow: -28px 0 60px rgba(0,0,0,0.55);
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(0.32, 0.72, 0.27, 1);
  z-index: 2500;
  display: flex;
  flex-direction: column;
  font-family: 'Open Sans', system-ui, sans-serif;
}
.chat-panel.open { transform: translateX(0); }

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--ss-rule);
  background: linear-gradient(180deg, rgba(201,169,98,0.06), transparent);
}
.chat-head-title { flex: 1; min-width: 0; }
.chat-head-title p {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ss-gold);
  font-weight: 600;
}
.chat-head-title h3 {
  margin: 2px 0 0;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--ss-cream);
  letter-spacing: 0.01em;
}
.chat-back, .chat-close {
  background: none;
  border: 1px solid var(--ss-rule);
  color: var(--ss-cream);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}
.chat-back:hover, .chat-close:hover {
  border-color: var(--ss-gold);
  color: var(--ss-gold);
  background: rgba(201,169,98,0.06);
}

.chat-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.chat-search {
  position: relative;
  display: block;
  margin: 14px 16px 6px;
}
.chat-search-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--ss-muted);
  display: inline-flex;
}
.chat-search input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--ss-rule);
  color: var(--ss-cream);
  padding: 10px 12px 10px 36px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 140ms ease, background 140ms ease;
}
.chat-search input:focus {
  border-color: var(--ss-gold);
  background: rgba(255,255,255,0.06);
}

.chat-convos {
  flex: 1;
  overflow-y: auto;
  padding: 6px 8px 14px;
}
.chat-convo {
  display: flex;
  width: 100%;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: none;
  border: 0;
  border-radius: 12px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: background 140ms ease;
}
.chat-convo:hover { background: rgba(201,169,98,0.06); }

.chat-convo-avatar {
  position: relative;
  flex: none;
}
.chat-convo-avatar .avatar { border: 1px solid var(--ss-rule); }
.presence-dot {
  position: absolute;
  right: -2px; bottom: -2px;
  width: 12px; height: 12px;
  background: #6EE7B7;
  border: 2px solid var(--ss-warm-dark);
  border-radius: 50%;
}
.presence-dot.inline {
  position: static;
  display: inline-block;
  width: 8px; height: 8px;
  border-width: 0;
  margin-right: 4px;
  vertical-align: middle;
}

.chat-convo-body { flex: 1; min-width: 0; }
.chat-convo-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.chat-convo-name {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: var(--ss-cream);
  letter-spacing: 0.01em;
}
.chat-convo-when {
  font-size: 11px;
  color: var(--ss-muted);
  font-variant-numeric: tabular-nums;
}
.chat-convo-preview {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ss-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 240px;
}
.chat-convo-unread {
  flex: none;
  min-width: 22px; height: 22px;
  padding: 0 7px;
  background: var(--ss-gold);
  color: #1a1409;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-empty {
  text-align: center;
  color: var(--ss-muted);
  font-size: 13px;
  padding: 40px 20px;
}

/* Thread view */
.chat-thread-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ss-rule);
}
.chat-thread-head .avatar { border: 1px solid var(--ss-rule); }
.chat-thread-name {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--ss-cream);
}
.chat-thread-status {
  font-size: 11.5px;
  color: var(--ss-muted);
  margin-top: 1px;
}
.chat-thread-call {
  margin-left: auto;
  background: none;
  border: 1px solid var(--ss-rule);
  color: var(--ss-cream);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}
.chat-thread-call:hover {
  border-color: var(--ss-gold);
  color: var(--ss-gold);
  background: rgba(201,169,98,0.08);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chat-msg { display: flex; flex-direction: column; max-width: 78%; }
.chat-msg-them { align-self: flex-start; }
.chat-msg-me   { align-self: flex-end; align-items: flex-end; }

.chat-msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ss-cream);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--ss-rule);
}
.chat-msg-me .chat-msg-bubble {
  background: linear-gradient(180deg, rgba(201,169,98,0.22), rgba(183,147,43,0.18));
  border-color: rgba(201,169,98,0.35);
  color: var(--ss-cream);
}
.chat-msg-when {
  font-size: 10.5px;
  color: var(--ss-muted);
  margin-top: 4px;
  padding: 0 4px;
}

.chat-compose {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 14px 16px;
  border-top: 1px solid var(--ss-rule);
  background: rgba(0,0,0,0.18);
}
.chat-compose input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--ss-rule);
  color: var(--ss-cream);
  padding: 10px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 13.5px;
  outline: none;
}
.chat-compose input:focus {
  border-color: var(--ss-gold);
  background: rgba(255,255,255,0.07);
}
.chat-send {
  background: var(--ss-gold);
  border: 0;
  color: #1a1409;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 120ms ease, background 140ms ease;
}
.chat-send:hover { background: #DCBB75; transform: translateY(-1px); }
.chat-send:active { transform: translateY(0); }

@media (max-width: 540px) {
  .chat-panel { width: 100vw; max-width: 100vw; border-left: 0; }
  .chat-convo-preview { max-width: 60vw; }
}

/* Video call placeholder modal */
.call-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 2600;
}
.call-modal.open { opacity: 1; pointer-events: auto; }
.call-card {
  background: var(--ss-char);
  border: 1px solid var(--ss-rule);
  border-radius: 18px;
  padding: 36px 40px 28px;
  text-align: center;
  max-width: 320px;
  width: calc(100% - 40px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
}
.call-avatar {
  width: 84px; height: 84px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--ss-rule);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Big Noodle Titling', 'Playfair Display', serif;
  font-size: 28px;
  color: var(--ss-cream);
  background-size: cover; background-position: center;
}
.call-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--ss-cream);
  margin-bottom: 4px;
}
.call-status {
  font-size: 13px;
  color: var(--ss-muted);
  margin-bottom: 22px;
}
.call-dots span {
  display: inline-block;
  animation: callDot 1.2s infinite;
}
.call-dots span:nth-child(2) { animation-delay: 0.2s; }
.call-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes callDot {
  0%, 80%, 100% { opacity: 0.2; }
  40% { opacity: 1; }
}
.call-end {
  background: #C8392B;
  border: 0;
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 140ms ease;
}
.call-end:hover { background: #B83327; }
