:root {
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-muted: #f1f5f9;
  --bg-bezel: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #0c4a6e 100%);
  --text: #0f172a;
  --text-muted: #475569;
  --text-bezel: #f8fafc;
  --border: #e2e8f0;
  --accent: #0369a1;
  --accent-2: #4338ca;
  --accent-3: #7c3aed;
  --accent-soft: #e0f2fe;
  --accent-strong: #075985;
  --accent-contrast: #ffffff;
  --success: #15803d;
  --warning: #b45309;
  --danger: #dc2626;
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
  --shadow: 0 14px 34px rgba(30, 27, 75, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --max-w: 1180px;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

body.dark-mode {
  --bg: #090d16;
  --bg-elevated: #111827;
  --bg-card: #131c2e;
  --bg-muted: #1e293b;
  --bg-bezel: linear-gradient(135deg, #050811 0%, #17153b 60%, #082f49 100%);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-bezel: #f8fafc;
  --border: #243047;
  --accent: #38bdf8;
  --accent-2: #818cf8;
  --accent-3: #a78bfa;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --accent-strong: #0ea5e9;
  --accent-contrast: #06121e;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 10px 16px;
  font-weight: 700;
  z-index: 2000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}
.brand:hover { text-decoration: none; }
.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7, #4f46e5, #7c3aed);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}
.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-muted);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
}
.icon-btn:hover { border-color: var(--accent); }
.menu-toggle { display: none; }

@media (max-width: 840px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 4px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
}

/* Hero & Page Header */
.hero {
  padding: 46px 0 30px;
  text-align: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(14, 165, 233, 0.16), transparent 45%),
    radial-gradient(circle at 82% 15%, rgba(124, 58, 237, 0.14), transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.08), transparent 50%);
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e0f2fe, #ede9fe);
  border: 1px solid #bae6fd;
  color: #075985;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
body.dark-mode .hero-kicker {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
}
.hero h1 {
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}
.hero p {
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.06rem;
}

.page-header {
  padding: 36px 0 26px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 15% 20%, rgba(14, 165, 233, 0.14), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(124, 58, 237, 0.12), transparent 45%);
  margin-bottom: 32px;
}
.page-header h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  margin: 12px 0 12px;
  letter-spacing: -0.025em;
}
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }

/* Tool Studio */
.tool-shell {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.tool-shell::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, #0284c7, #4f46e5, #7c3aed, #db2777, #059669);
}
.tool-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--bg-muted);
  padding: 6px;
  border-radius: 12px;
  margin-bottom: 24px;
}
.tool-tab {
  flex: 1 1 130px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.tool-tab:hover { color: var(--text); }
.tool-tab[aria-selected="true"] {
  background: linear-gradient(135deg, #0369a1, #4338ca);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(67, 56, 202, 0.25);
}
@media (max-width: 560px) {
  .tool-shell { padding: 16px; }
  .tool-tab { flex: 1 1 calc(50% - 8px); font-size: 0.88rem; padding: 10px 8px; }
}
.tool-panel { display: none; }
.tool-panel.active { display: block; }

.display-bezel {
  background: var(--bg-bezel);
  color: var(--text-bezel);
  border-radius: 16px;
  padding: 30px 20px;
  margin: 0 auto 20px;
  max-width: 740px;
  text-align: center;
  border: 1px solid rgba(125, 211, 252, 0.2);
  box-shadow: inset 0 2px 16px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(15, 23, 42, 0.16);
}
.display-readout {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.2rem, 7vw, 4.75rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  margin: 0;
  line-height: 1.1;
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.25);
}
.display-sub {
  color: #cbd5e1;
  font-size: 0.96rem;
  margin-top: 10px;
}

.controls-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 16px 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-muted);
  color: var(--text);
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.btn:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #0369a1, #4338ca);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.25);
}
.btn-primary:hover { filter: brightness(1.08); color: #ffffff; }
.btn-danger {
  background: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
}

.input-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: end;
  margin: 16px 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.field input, .field select, .field textarea {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 1rem;
  font-family: inherit;
  min-height: 44px;
}
.field textarea { min-height: 130px; resize: vertical; }

.alarm-list, .lap-list {
  list-style: none;
  padding: 0;
  margin: 18px auto 0;
  max-width: 720px;
  display: grid;
  gap: 10px;
}
.alarm-item, .lap-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.alarm-alert-banner {
  margin: 0 auto 16px;
  max-width: 720px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid var(--danger);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.alarm-alert-banner.active { display: flex; }

.world-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.world-card {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-muted));
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.world-city { font-weight: 700; font-size: 1rem; }
.world-time { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 800; margin: 6px 0 2px; color: var(--accent); }
.world-meta { font-size: 0.85rem; color: var(--text-muted); }

/* Sections & Colorful Alternating Bands */
.section { padding: 34px 0; }
.section-tinted {
  background: linear-gradient(180deg, rgba(224, 242, 254, 0.45), rgba(237, 233, 254, 0.35));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
body.dark-mode .section-tinted {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.3));
}
.section-title { font-size: 1.65rem; margin: 0 0 16px; line-height: 1.3; letter-spacing: -0.02em; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card-clickable { padding: 0; overflow: hidden; }
.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.card-link:hover { text-decoration: none; }
.card-media {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background: var(--bg-muted);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.28s ease;
}
.card-clickable:hover .card-media img { transform: scale(1.03); }
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card-readmore {
  margin-top: auto;
  padding-top: 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
}

/* Vibrant Tool & Category Accents */
.tone-sky { border-top: 4px solid #0284c7; }
.tone-sky .card-icon, .tone-sky .badge { background: #e0f2fe; color: #075985; }
.tone-purple { border-top: 4px solid #7c3aed; }
.tone-purple .card-icon, .tone-purple .badge { background: #ede9fe; color: #5b21b6; }
.tone-emerald { border-top: 4px solid #059669; }
.tone-emerald .card-icon, .tone-emerald .badge { background: #d1fae5; color: #065f46; }
.tone-orange { border-top: 4px solid #ea580c; }
.tone-orange .card-icon, .tone-orange .badge { background: #ffedd5; color: #9a3412; }
.tone-rose { border-top: 4px solid #db2777; }
.tone-rose .card-icon, .tone-rose .badge { background: #fce7f3; color: #9d174d; }
.tone-indigo { border-top: 4px solid #4338ca; }
.tone-indigo .card-icon, .tone-indigo .badge { background: #e0e7ff; color: #3730a3; }

body.dark-mode .tone-sky .card-icon, body.dark-mode .tone-sky .badge { background: rgba(14, 165, 233, 0.18); color: #7dd3fc; }
body.dark-mode .tone-purple .card-icon, body.dark-mode .tone-purple .badge { background: rgba(139, 92, 246, 0.18); color: #c4b5fd; }
body.dark-mode .tone-emerald .card-icon, body.dark-mode .tone-emerald .badge { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; }
body.dark-mode .tone-orange .card-icon, body.dark-mode .tone-orange .badge { background: rgba(249, 115, 22, 0.18); color: #fdba74; }
body.dark-mode .tone-rose .card-icon, body.dark-mode .tone-rose .badge { background: rgba(236, 72, 153, 0.18); color: #f9a8d4; }
body.dark-mode .tone-indigo .card-icon, body.dark-mode .tone-indigo .badge { background: rgba(99, 102, 241, 0.18); color: #a5b4fc; }

/* Featured Spotlight Card on /blog */
.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 4px solid #4338ca;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  transition: border-color 0.18s ease;
}
.featured-card:hover { border-color: var(--accent); }
.featured-link {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  color: inherit;
  text-decoration: none;
}
.featured-link:hover { text-decoration: none; }
.featured-media { min-height: 260px; background: var(--bg-muted); overflow: hidden; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.featured-body h2 { margin: 0; font-size: 1.55rem; line-height: 1.25; }
.featured-body p { margin: 0; color: var(--text-muted); }
@media (max-width: 820px) {
  .featured-link { grid-template-columns: 1fr; }
  .featured-body { padding: 20px; }
}

.article-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  display: block;
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.card h2, .card h3 { margin: 0; font-size: 1.15rem; line-height: 1.35; color: var(--text); }
.card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* Article Typography & Tables */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 32px;
  align-items: start;
  padding-bottom: 48px;
}
.article-layout > * { min-width: 0; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } }
.prose {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  overflow-wrap: anywhere;
}
@media (max-width: 640px) { .prose { padding: 20px; } }
.prose h2 { font-size: 1.45rem; margin: 30px 0 12px; line-height: 1.3; letter-spacing: -0.015em; }
.prose h3 { font-size: 1.15rem; margin: 22px 0 10px; line-height: 1.35; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.93rem;
  display: block;
  overflow-x: auto;
}
.prose th, .prose td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}
.prose th { background: var(--bg-muted); font-weight: 700; }
.callout {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.7), rgba(237, 233, 254, 0.6));
  border-left: 4px solid #4338ca;
  margin: 22px 0;
}
body.dark-mode .callout {
  background: rgba(56, 189, 248, 0.12);
}
.sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.sidebar-sticky { position: sticky; top: 88px; }
.sidebar-box h2, .sidebar-box h3 { margin: 0 0 12px; font-size: 1.05rem; }
.sidebar-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.92rem; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}
.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 12px 0 0; color: var(--text-muted); }

/* Filter Pills */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-pill {
  padding: 8px 15px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
}
.filter-pill.active, .filter-pill[aria-pressed="true"] {
  background: linear-gradient(135deg, #0369a1, #4338ca);
  color: #ffffff;
  border-color: transparent;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-muted));
  padding: 44px 0 28px;
  margin-top: 52px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a, .footer-links button {
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.footer-links a:hover, .footer-links button:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* CMP Consent Banner & Modal */
.cmp-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  z-index: 1500;
  display: none;
}
.cmp-banner.open { display: block; }
.cmp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cmp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  z-index: 1600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cmp-modal-backdrop.open { display: flex; }
.cmp-modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 540px;
  width: 100%;
  padding: 24px;
}
.cmp-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.hidden { display: none !important; }
