:root {
  /* ── Design tokens — palette (2026-09-03 rebrand) ────────────────────────── */
  --sidebar-navy: #122033;      /* midnight navy — sidebar / nav / brand surfaces */
  --primary: #23466E;           /* rich navy-blue — primary buttons & links */
  --primary-light: #2d5786;     /* hover shade of primary */
  --primary-dark: #14283F;      /* active/pressed shade of primary */
  --accent: #C59A4A;            /* muted gold — used SPARINGLY: wordmark, selected-nav indicator, small AI accents */
  --accent-bright: #D6B26C;
  --accent-dark: #A47D36;
  --accent-soft: #F3E9D3;
  --success: #287052;           /* forest green */
  --danger: #B54747;            /* muted red — error / destructive */
  --warning: #B85F32;           /* burnt amber — warning / overdue */
  --info: #3976A8;              /* same hue family as "cold" — informational */
  --danger-soft: #EAD3D3;       /* tint border for danger-zone / soft-error surfaces */

  /* Semantic tint pairs (light bg + darker same-hue text) — badges/alerts share
     these so success/warning/danger/info never get a raw hex repeated per-rule. */
  --success-bg: #DCEEE3; --success-text: #1E5A3E;   /* 6.7:1 */
  --warning-bg: #F3E1D3; --warning-text: #7A3D1D;    /* 6.6:1 — burnt-amber family, same recipe as badge-overdue */
  --danger-bg: #F5DEDE;  --danger-text: #7A2E2E;     /* 7.3:1 */
  --success-dark: #1f5a3f;   /* hover shade of --success */
  --danger-dark: #9a3a3a;    /* hover shade of --danger */
  --surface-subtle: #FBF9F4; /* table header / row-hover tint, one step off --card */
  --bg: #F7F4ED;                /* warm ivory — main page background */
  --card: #FFFDF9;              /* soft white — cards / dialogs */
  --panel-bg: #FFFDF9;
  --border: #E5E0D6;            /* warm gray — borders & dividers */
  --text: #172233;              /* charcoal navy — primary text */
  --muted: #667085;             /* slate — secondary text */

  /* Lead-temperature palette — distinct from the semantic set above */
  --temp-hot: #C8463A;
  --temp-warm: #D88A2D;
  --temp-cold: #3976A8;
  --temp-notready: #777A82;
  /* light tint bg + darkened same-hue text, computed to clear 4.5:1 */
  --temp-hot-bg: #F7E3E1;   --temp-hot-text: #7A2E24;   /* 7.6:1 */
  --temp-warm-bg: #F9EDE0;  --temp-warm-text: #613E14;  /* 8.2:1 */
  --temp-cold-bg: #E1EAF2;  --temp-cold-text: #254D6D;  /* 7.3:1 */
  --temp-notready-bg: #EBEBEC; --temp-notready-text: #474946; /* 7.6:1 */

  --sidebar-w: 256px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow: 0 1px 2px rgba(18,32,51,0.05), 0 10px 30px rgba(18,32,51,0.07);
  --gold-gradient: linear-gradient(135deg, #D6B26C 0%, #C59A4A 45%, #A47D36 100%);
  --navy-gradient: var(--sidebar-navy);   /* flat midnight navy — see coordinator note */
  --canvas: var(--bg);
  --focus-ring: 0 0 0 3px rgba(35,70,110,0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }

/* Visible, distinct keyboard focus everywhere — never rely on the browser default */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible, summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
.nav-item:focus-visible { outline-color: var(--accent); outline-offset: -3px; }

/* Layout */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); background: var(--sidebar-navy); color: white; flex-shrink: 0; display: flex; flex-direction: column; position: fixed; top: 0; left: 0; height: 100vh; z-index: 200; overflow-y: auto; border-right: 1px solid rgba(197,154,74,0.18); transition: transform 0.25s ease; }
.main { margin-left: var(--sidebar-w); flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; background: var(--canvas); }
.topbar { background: var(--card); border-bottom: 1px solid var(--border); padding: 0 24px; height: 60px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--border); gap: 12px; }
.content { padding: 24px; flex: 1; min-width: 0; }

/* Sidebar */
.sidebar-logo { padding: 24px 20px 16px; border-bottom: 1px solid rgba(197,154,74,0.22); }
.sidebar-logo h1 { font-family: var(--serif); font-size: 34px; font-weight: 700; letter-spacing: 1px; }
.sidebar-logo .tagline { font-size: 13px; color: rgba(255,255,255,0.62); margin-top: 5px; letter-spacing: 0.5px; }
.sidebar-logo .positioning { font-size: 12.5px; color: rgba(255,255,255,0.78); margin-top: 8px; line-height: 1.5; max-width: 210px; }
.sidebar-logo .tagline-short { display: none; font-size: 12.5px; color: rgba(255,255,255,0.78); margin-top: 6px; }
.sidebar-logo .accent { color: var(--accent-bright); }
.sidebar-nav { padding: 12px 0; flex: 1; }
.nav-section { font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px; color: var(--accent); opacity: 0.9; padding: 18px 20px 8px; text-transform: uppercase; }
.nav-item { display: flex; align-items: center; gap: 13px; padding: 13px 20px; min-height: 44px; cursor: pointer; transition: background 0.15s; font-size: 18px; color: rgba(255,255,255,0.9); border-left: 3px solid transparent; }
.nav-item:hover { background: rgba(255,255,255,0.07); }
.nav-item.active { background: rgba(197,154,74,0.16); border-left-color: var(--accent); color: white; font-weight: 600; }
.nav-item .icon { font-size: 22px; width: 26px; text-align: center; }
.sidebar-footer { padding: 16px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12px; color: rgba(255,255,255,0.5); }

/* Sidebar overlay backdrop (mobile off-canvas) */
.sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(18,32,51,0.55); z-index: 150; }
.sidebar-backdrop.show { display: block; }

/* Hamburger — hidden on desktop, shown on mobile via media query below */
.menu-toggle { display: none; background: transparent; border: 1px solid var(--border); border-radius: 8px; width: 40px; height: 40px; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; color: var(--primary); flex-shrink: 0; }
.menu-toggle:hover { background: var(--bg); }

/* Topbar */
.page-title { font-family: var(--serif); font-size: 28px; font-weight: 700; letter-spacing: 0.3px; color: var(--primary); }
.topbar-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.badge-notify { background: var(--danger); color: white; border-radius: 50%; width: 20px; height: 20px; font-size: 11px; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 8px; }
.card-title { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--primary); letter-spacing: 0.2px; }

/* Stat cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-bottom: 26px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat-card::before { content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--accent); opacity: 0.7; }
.stat-value { font-family: var(--serif); font-size: 36px; font-weight: 700; color: var(--primary); line-height: 1.1; }
.stat-label { font-size: 11px; color: var(--muted); margin-top: 6px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.stat-change { font-size: 12px; margin-top: 6px; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* Tables — horizontal scroll is CONTAINED to the card, never the page */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { background: var(--surface-subtle); padding: 12px 14px; text-align: left; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; border-bottom: 2px solid var(--border); }
td { padding: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:hover td { background: var(--surface-subtle); }
tr:last-child td { border-bottom: none; }

/* Buttons — explicit hover / active / disabled / focus states, none left to the browser default */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; min-height: 40px; border-radius: 9px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: background 0.15s, transform 0.1s, box-shadow 0.15s; letter-spacing: 0.2px; }
.btn:active { transform: translateY(0); }
.btn-primary, .btn-accent { background: var(--primary); color: #ffffff; }
.btn-primary:hover, .btn-accent:hover { background: var(--primary-light); }
.btn-primary:active, .btn-accent:active { background: var(--primary-dark); }
.btn-primary:focus-visible, .btn-accent:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; box-shadow: var(--focus-ring); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: var(--success-dark); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: var(--danger-dark); }
.btn-ghost { background: transparent; color: var(--primary); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg); border-color: var(--primary); }
.btn-sm { padding: 6px 12px; min-height: 32px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.btn:disabled:hover { transform: none; }

/* Badges — light tint background, darker same-hue text (never solid fill + white text) */
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-a { background: var(--success-bg); color: var(--success-text); }
.badge-b { background: var(--temp-cold-bg); color: var(--temp-cold-text); }  /* info tint — shares the "cold" blue family */
.badge-c { background: var(--warning-bg); color: var(--warning-text); }
.badge-d { background: var(--danger-bg); color: var(--danger-text); }
.badge-active { background: var(--success-bg); color: var(--success-text); }
.badge-pending { background: var(--warning-bg); color: var(--warning-text); }
.badge-new { background: var(--temp-cold-bg); color: var(--temp-cold-text); }
.badge-closed { background: var(--temp-notready-bg); color: var(--temp-notready-text); }

/* Temperature badges — explicit classes, no inline hex in JS */
.badge-hot { background: var(--temp-hot-bg); color: var(--temp-hot-text); }
.badge-warm { background: var(--temp-warm-bg); color: var(--temp-warm-text); }
.badge-cold { background: var(--temp-cold-bg); color: var(--temp-cold-text); }
.badge-notready { background: var(--temp-notready-bg); color: var(--temp-notready-text); }

/* Overdue indicator — restrained warning-colored badge, always paired with text */
.badge-overdue { background: var(--warning-bg); color: var(--warning-text); font-weight: 700; }

/* Score bar */
.score-bar-wrap { display: flex; align-items: center; gap: 8px; }
.score-bar { height: 6px; border-radius: 3px; background: var(--border); flex: 1; overflow: hidden; }
.score-fill { height: 100%; border-radius: 3px; }
.score-fill.high { background: var(--success); }
.score-fill.med { background: var(--warning); }
.score-fill.low { background: var(--danger); }

/* Forms — inputs are 40px+ tall for touch, focus state is a visible ring not the pale default */
.form-group { margin-bottom: 16px; }
label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
input, select, textarea { width: 100%; padding: 10px 12px; min-height: 44px; border: 1px solid var(--border); border-radius: 7px; font-size: 14px; color: var(--text); background: var(--card); }
textarea { min-height: 100px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus-ring); }
textarea { resize: vertical; }
input[type="checkbox"] { min-height: 20px; width: 20px; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(18,32,51,0.55); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: var(--card); border-radius: 12px; padding: 24px; max-width: 680px; width: 100%; max-height: 85vh; overflow-y: auto; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.modal-title { font-size: 18px; font-weight: 700; color: var(--text); }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--muted); line-height: 1; width: 36px; height: 36px; border-radius: 8px; }
.modal-close:hover { background: var(--bg); color: var(--text); }

/* Lead-detail sections inside the modal */
.detail-section { margin-bottom: 18px; }
.detail-section h3 { font-family: var(--serif); font-size: 17px; color: var(--primary); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.detail-section.danger-zone { border: 1px solid var(--danger-soft); background: var(--danger-bg); border-radius: 10px; padding: 14px 16px; }
.detail-section.danger-zone h3 { color: var(--danger); border-bottom-color: var(--danger-soft); }

/* Mobile sticky action bar (lead detail) — hidden on desktop, see media query */
.mobile-action-bar { display: none; }

/* AI Output */
.ai-output { background: var(--temp-cold-bg); border: 1px solid var(--border); border-radius: 8px; padding: 16px; font-size: 14px; line-height: 1.7; white-space: pre-wrap; color: var(--text); }
.ai-output h2, .ai-output h3 { margin-top: 12px; margin-bottom: 6px; }
.flag { background: var(--danger-bg); border: 1px solid var(--danger-soft); border-radius: 6px; padding: 10px 14px; font-size: 13px; color: var(--danger-text); margin-bottom: 8px; }
.flag::before { content: "⚠ "; }

/* Pipeline stages */
.pipeline { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.pipeline-col { min-width: 220px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.pipeline-col-header { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; display: flex; justify-content: space-between; }
.pipeline-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-bottom: 8px; cursor: pointer; transition: box-shadow 0.15s; }
.pipeline-card:hover { box-shadow: 0 2px 8px rgba(18,32,51,0.12); }
.pipeline-card-name { font-weight: 700; font-size: 13px; }
.pipeline-card-addr { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pipeline-card-score { display: flex; align-items: center; gap: 6px; margin-top: 8px; }

/* Call list */
.call-item { border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; margin-bottom: 10px; display: flex; gap: 14px; align-items: flex-start; background: var(--card); }
.call-rank { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.call-info { flex: 1; min-width: 0; }
.call-name { font-weight: 700; font-size: 15px; }
.call-addr { font-size: 12px; color: var(--muted); }
.call-why { font-size: 13px; margin-top: 6px; color: var(--text); }
.call-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* Tabs */
.tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tab { padding: 8px 18px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Alerts — semantic colors used ONLY for their meaning */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 12px; }
.alert-success { background: var(--success-bg); color: var(--success-text); border: 1px solid var(--success); }
.alert-error { background: var(--danger-bg); color: var(--danger-text); border: 1px solid var(--danger); }
.alert-info { background: var(--temp-cold-bg); color: var(--temp-cold-text); border: 1px solid var(--temp-cold); }
.alert-warning { background: var(--warning-bg); color: var(--warning-text); border: 1px solid var(--warning); }

/* Loading */
.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px; color: var(--muted); font-size: 14px; }

/* Upload zone */
.upload-zone { border: 2px dashed var(--border); border-radius: 10px; padding: 32px; text-align: center; cursor: pointer; transition: border-color 0.2s; }
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--primary); background: var(--temp-cold-bg); }
.upload-zone .upload-icon { font-size: 36px; margin-bottom: 8px; }
.upload-zone p { font-size: 14px; color: var(--muted); }

/* Pages */
.page { display: none; }
.page.active { display: block; }

/* Sample-data indicator (demo mode) */
.sample-data-badge { display: inline-flex; align-items: center; gap: 5px; background: var(--temp-warm-bg); color: var(--temp-warm-text); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; letter-spacing: 0.3px; }

/* Dashboard "today" summary strip + primary CTA */
.today-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: linear-gradient(135deg, var(--accent-soft) 0%, var(--card) 60%); border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; margin-bottom: 18px; }
.today-summary-text { font-size: 15px; font-weight: 600; color: var(--text); }
.today-summary-text .num { color: var(--primary); font-weight: 800; }

/* Signal tooltips — native title= handles most; this is a small custom affordance */
.signal-label { display: inline-flex; align-items: center; gap: 4px; cursor: help; border-bottom: 1px dotted var(--muted); }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Real off-canvas sidebar: hidden entirely off-screen, slides in as an overlay.
   .main never reserves space for it — no more "empty rail" anti-pattern. */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .sidebar { transform: translateX(-100%); width: min(84vw, 300px); box-shadow: 0 0 40px rgba(0,0,0,0.35); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-logo h1, .sidebar-logo .tagline, .sidebar-logo .positioning, .nav-item span, .nav-section, .sidebar-footer { display: initial; }
  .sidebar-logo .tagline { display: none; }
  .sidebar-logo .tagline-short { display: block; }
  .main { margin-left: 0; }
  .content { padding: 14px; }
  .topbar { height: auto; min-height: 56px; flex-wrap: wrap; padding: 8px 14px; row-gap: 8px; }
  .topbar-actions { width: 100%; justify-content: flex-start; }
  .page-title { font-size: 20px; }
  .card { padding: 16px; }

  /* Every modal becomes a full-viewport view on mobile — never a cramped centered box */
  .modal-overlay { padding: 0; align-items: stretch; }
  .modal { max-width: 100%; width: 100%; height: 100%; max-height: 100%; border-radius: 0;
    display: flex; flex-direction: column; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
  .modal-header { position: sticky; top: 0; background: var(--card); padding-top: 4px; margin-bottom: 14px; z-index: 2; }
  .modal-body-scroll { flex: 1; overflow-y: auto; padding-bottom: 76px; }

  .mobile-action-bar { display: flex; gap: 8px; position: sticky; bottom: 0; left: 0; right: 0;
    background: var(--card); border-top: 1px solid var(--border); padding: 10px 4px calc(10px + env(safe-area-inset-bottom));
    margin: 0 -16px -16px; box-shadow: 0 -6px 16px rgba(18,32,51,0.10); z-index: 3; }
  .mobile-action-bar .btn { flex: 1; justify-content: center; min-height: 46px; }
  .desktop-actions { display: none; }

  /* Touch targets */
  .btn { min-height: 44px; }
  .nav-item { min-height: 48px; }
  table { font-size: 13.5px; }
  td, th { padding: 10px 8px; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Readability: larger main-content fonts (2026-06-28, per Ruth) ───────────── */
body { font-size: 17px; }
table { font-size: 16px; }
th { font-size: 12.5px; }
td { padding: 15px 14px; }
.btn { font-size: 15.5px; padding: 11px 19px; }
.btn-sm { font-size: 13.5px; padding: 6px 12px; }
label { font-size: 13px; }
input, select, textarea { font-size: 16px; padding: 10px 12px; }
.ai-output { font-size: 16px; line-height: 1.75; }
.alert { font-size: 14.5px; }
.tab { font-size: 15.5px; }
.badge { font-size: 12px; }
.stat-label { font-size: 12px; }
.call-name { font-size: 16px; }
.call-why, .call-addr { font-size: 14px; }
.pipeline-card-name { font-size: 14px; }
.pipeline-card-addr { font-size: 13px; }
.modal-title { font-size: 20px; }
p { font-size: 15px; }

/* ── Luxe canvas + collapsible dashboard panels (2026-06-29, per Ruth; recolored 2026-09-03) ── */
.main { background: var(--canvas); }
.content { background: transparent; }

/* Topbar: soft-white card surface, navy title, gold reserved for the wordmark only */
.topbar .page-title { color: var(--primary); background: none; -webkit-text-fill-color: unset; }
.topbar .btn-ghost { color: var(--primary); border-color: var(--border); background: transparent; }
.topbar .btn-ghost:hover { background: var(--bg); }

/* Collapsible panel — native <details>, no JS. Collapsed until clicked. */
.panel { background: var(--panel-bg); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden; }
.panel > summary { list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 14px; padding: 18px 24px; user-select: none;
  transition: background 0.15s; }
.panel > summary::-webkit-details-marker { display: none; }
.panel > summary:hover { background: var(--bg); }
.panel[open] > summary { border-bottom: 1px solid var(--border); }
.panel-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.panel-title { font-family: var(--serif); font-size: 23px; font-weight: 700; color: var(--primary); letter-spacing: 0.2px; }
.panel-sub { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.panel-chev { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--accent-dark);
  font-size: 16px; line-height: 1; flex-shrink: 0; transition: transform 0.25s ease, background 0.2s, border-color 0.2s; }
.panel > summary:hover .panel-chev { border-color: var(--accent); }
.panel[open] > summary .panel-chev { transform: rotate(180deg); background: var(--accent-soft); border-color: var(--accent); }
.panel-body { padding: 20px 24px 24px; }
