/* === Shared styles for Routtx landing pages === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #228be6;
  --accent-hover: #1c7ed6;
  --accent-light: #e7f5ff;
  --text: #212529;
  --text-secondary: #495057;
  --text-muted: #868e96;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --border: #e9ecef;
  --success: #2b8a3e;
  --success-light: #ebfbee;
  --warning: #e67700;
  --warning-light: #fff9db;
  --danger: #c92a2a;
  --danger-light: #fff5f5;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === Nav === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: white; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s;
  border: none;
  cursor: pointer;
}

.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text-secondary); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 10px; }

/* === Page layout === */
.page {
  padding-top: 56px; /* account for fixed nav */
}

.page-header {
  padding: 60px 40px 40px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.page-header .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.page-header h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* === Sections === */
section {
  padding: 60px 40px;
}

section.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: 800px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
  text-align: center;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* === Cards === */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
  background: var(--accent-light);
}

/* === Code === */
code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
}

pre {
  background: #1a1b2e;
  color: #e9ecef;
  border-radius: 10px;
  padding: 20px 24px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  margin: 16px 0;
}

pre code { background: transparent; padding: 0; color: inherit; }

pre .comment { color: #868e96; }
pre .string { color: #8ce99a; }
pre .keyword { color: #b197fc; }
pre .func { color: #ffd43b; }
pre .var { color: #74c0fc; }

/* === Footer === */
footer {
  padding: 48px 40px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

/* === Nav dropdown === */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0;
  transition: color 0.15s;
  white-space: nowrap;
}

.nav-dropdown-toggle:hover { color: var(--text); }
.nav-dropdown-toggle.active { color: var(--accent); }

.nav-dropdown-toggle .chevron {
  width: 10px;
  height: 10px;
  transition: transform 0.2s;
  opacity: 0.6;
}

.nav-dropdown.open .nav-dropdown-toggle .chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  min-width: 260px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  z-index: 200;
  flex-direction: column;
  gap: 2px;
}

.nav-dropdown.open .nav-dropdown-menu { display: flex; }

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown-menu a:hover { background: var(--bg-alt); color: var(--text); }
.nav-dropdown-menu a.active { color: var(--accent); }

.nav-dropdown-menu .dm-icon { font-size: 20px; flex-shrink: 0; line-height: 1; }
.nav-dropdown-menu .dm-label { font-weight: 600; font-size: 13px; color: var(--text); display: block; }
.nav-dropdown-menu .dm-desc { font-size: 11px; color: var(--text-muted); display: block; margin-top: 1px; }

/* === Use case pages === */
.risk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 32px auto 0;
}

.risk-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  border-top-width: 3px;
}

.risk-card.risk-leak   { border-top-color: var(--danger); }
.risk-card.risk-inject { border-top-color: #7950f2; }
.risk-card.risk-legal  { border-top-color: var(--warning); }
.risk-card.risk-ok     { border-top-color: var(--success); }

.risk-card .rc-icon { font-size: 28px; margin-bottom: 12px; }
.risk-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.risk-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }
.risk-card .rc-callout {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.risk-card.risk-leak   .rc-callout { background: var(--danger-light);  color: var(--danger); }
.risk-card.risk-inject .rc-callout { background: #f3f0ff; color: #7950f2; }
.risk-card.risk-legal  .rc-callout { background: var(--warning-light); color: var(--warning); }
.risk-card.risk-ok     .rc-callout { background: var(--success-light); color: var(--success); }

.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 32px auto 0;
}

.legal-badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.legal-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.uc-other-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 32px auto 0;
}

.uc-other-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.uc-other-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); transform: translateY(-2px); }
.uc-other-card .uc-icon { font-size: 32px; flex-shrink: 0; }
.uc-other-card .uc-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.uc-other-card .uc-tagline { font-size: 12px; color: var(--text-muted); }

.anon-block {
  background: #1a1b2e;
  border-radius: 12px;
  overflow: hidden;
  max-width: 900px;
  margin: 32px auto 0;
}

.anon-block-tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,0.08); }
.anon-block-tab { flex: 1; padding: 12px 20px; font-size: 12px; font-weight: 700; text-align: center; text-transform: uppercase; letter-spacing: 0.5px; }
.anon-block-tab.before { background: rgba(201,42,42,.12); color: #ff8787; }
.anon-block-tab.after  { background: rgba(43,138,62,.12); color: #69db7c; }

.anon-block-body { display: grid; grid-template-columns: 1fr 1fr; }
.anon-block-panel { padding: 20px 24px; font-family: 'SF Mono', monospace; font-size: 13px; line-height: 2; color: #e9ecef; }
.anon-block-panel:first-child { border-right: 1px solid rgba(255,255,255,0.08); }

.anon-pii   { font-weight: 700; padding: 1px 5px; border-radius: 4px; background: rgba(201,42,42,.25); color: #ff8787; }
.anon-token { font-weight: 700; padding: 1px 6px; border-radius: 4px; background: rgba(43,138,62,.2); color: #69db7c; border: 1px solid rgba(43,138,62,.3); }

.footer-brand h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 0;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1100px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* === Article layout === */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 40px 80px;
}

.article-header { margin-bottom: 40px; }

.article-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 12px;
}

.article h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.article-meta strong { color: var(--text); font-weight: 600; }

.article-lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 40px 0 14px;
  line-height: 1.3;
}

.article h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 28px 0 10px;
}

.article p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 16px;
}

.article ul, .article ol {
  margin: 12px 0 18px 20px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

.article li { margin-bottom: 6px; }

.article blockquote {
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  padding: 14px 20px;
  margin: 20px 0;
  font-style: italic;
  color: var(--text-secondary);
  border-radius: 0 8px 8px 0;
}

.article a { color: var(--accent); text-decoration: underline; }
.article a.btn { text-decoration: none; }
.article a.btn-primary, .article a.btn-primary:hover { color: white; }

.article pre { font-size: 13px; margin: 20px 0; }

.callout {
  background: var(--accent-light);
  border: 1px solid #a5d8ff;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  color: #1971c2;
}

.callout.warning { background: var(--warning-light); border-color: #ffd43b; color: #856400; }
.callout.success { background: var(--success-light); border-color: #b2f2bb; color: var(--success); }

.article-cta {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 32px 0;
  text-align: center;
}

.article-cta h3 { font-size: 18px; margin-bottom: 8px; }
.article-cta p { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }

.table-simple {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.table-simple th {
  background: var(--bg-alt);
  padding: 10px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid var(--border);
}

.table-simple td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.table-simple tr:last-child td { border-bottom: none; }

/* === Mobile nav toggle (hamburger) === */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  padding: 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Wide viewport / tablet === */
@media (max-width: 1024px) {
  nav { padding: 0 24px; }
  section, .page-header { padding-left: 24px; padding-right: 24px; }
}

/* === Mobile === */
@media (max-width: 768px) {
  /* Nav: switch to hamburger */
  nav { padding: 0 16px; height: 56px; flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 12px 0;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block;
    padding: 12px 16px;
    text-align: left;
    font-size: 15px;
    border-radius: 0;
  }
  .nav-links a.btn { margin: 6px 16px; text-align: center; }

  /* General spacing */
  body { font-size: 15px; }
  section, .page-header { padding-left: 16px; padding-right: 16px; }

  /* Page headers / hero */
  .page-header { padding-top: 32px; padding-bottom: 24px; }
  .page-header h1 { font-size: 28px; line-height: 1.2; }
  .page-header p { font-size: 16px; }

  /* Section titles */
  .section-title { font-size: 24px; letter-spacing: -0.4px; }
  .section-subtitle { font-size: 15px; margin-bottom: 32px; }

  /* Use case / risk grids */
  .risk-grid { grid-template-columns: 1fr; }
  .solution-grid { grid-template-columns: 1fr; }
  .uc-other-grid { grid-template-columns: 1fr; }

  /* Before/after anonymisation block */
  .anon-block-body { grid-template-columns: 1fr; }
  .anon-block-panel:first-child { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .anon-block-tabs { flex-direction: column; }
  .anon-block-tab { text-align: left; padding: 10px 16px; }

  /* Nav dropdown: inline in mobile menu, not floating */
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle {
    display: flex;
    padding: 12px 16px;
    font-size: 15px;
    width: 100%;
    text-align: left;
    border-radius: 0;
  }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: none;
    border-radius: 0;
    background: var(--bg-alt);
    min-width: 0;
    padding: 4px 0 4px 16px;
  }
  .nav-dropdown-menu a { padding: 8px 12px; font-size: 14px; }
  .nav-dropdown-menu .dm-icon { font-size: 16px; }

  /* Articles */
  .article { padding: 24px 16px; }
  .article h1 { font-size: 26px; line-height: 1.2; }
  .article h2 { font-size: 22px; margin-top: 24px; }
  .article h3 { font-size: 18px; }
  .article p, .article li { font-size: 15px; }
  .article-lead, .lead { font-size: 17px !important; }

  /* Code blocks must scroll horizontally instead of overflowing the page */
  pre {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 12px;
    padding: 12px;
  }
  code { word-break: break-word; }

  /* Tables */
  .table-simple, .param-table, table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Buttons */
  .btn-lg { padding: 12px 20px; font-size: 15px; }

  /* CTA blocks */
  .article-cta { padding: 20px 16px; }
  .article-cta h3 { font-size: 18px; }
}

/* === Small mobile (≤480px) === */
@media (max-width: 480px) {
  .page-header h1 { font-size: 24px; }
  .article h1 { font-size: 22px; }
  .footer-inner { grid-template-columns: 1fr; }
  pre { font-size: 11.5px; padding: 10px; }
  .btn { padding: 10px 16px; font-size: 14px; }
  .hero-buttons { flex-direction: column; align-items: stretch !important; }
  .hero-buttons .btn { width: 100%; text-align: center; }
}

/* Prevent horizontal scrolling at any width */
html, body { overflow-x: hidden; max-width: 100vw; }
img, video, iframe { max-width: 100%; height: auto; }

/* ============================================================
   Cookie consent — banner + panel (cookie-consent.js)
   ============================================================ */

/* ── Banner ─────────────────────────────────────────────── */
#rc-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9000;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
  padding: 16px 24px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
#rc-banner.rc-visible { transform: translateY(0); }

.rc-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.rc-banner-text {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  min-width: 240px;
}
.rc-banner-text strong { color: var(--text); }
.rc-banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ── Buttons ────────────────────────────────────────────── */
.rc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.rc-btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.rc-btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.rc-btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.rc-btn-secondary:hover { background: var(--bg-alt); color: var(--text); border-color: #ced4da; }

/* ── Privacy link ───────────────────────────────────────── */
.rc-privacy-link {
  color: var(--accent);
  text-decoration: underline;
  font-size: inherit;
  margin-left: 4px;
}
.rc-privacy-link:hover { color: var(--accent-hover); }

/* ── Overlay ────────────────────────────────────────────── */
#rc-overlay {
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: rgba(33,37,41,0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
#rc-overlay.rc-visible { opacity: 1; }

/* ── Panel ──────────────────────────────────────────────── */
.rc-panel {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 48px rgba(0,0,0,0.16);
  transform: translateY(40px);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}
#rc-overlay.rc-visible .rc-panel { transform: translateY(0); }

.rc-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.rc-panel-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.rc-panel-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.13s, background 0.13s;
}
.rc-panel-close:hover { color: var(--text); background: var(--bg-alt); }

.rc-panel-body {
  padding: 16px 24px;
  overflow-y: auto;
  flex: 1;
}
.rc-panel-intro {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ── Category rows ──────────────────────────────────────── */
.rc-category {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.rc-category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.rc-category-info { flex: 1; min-width: 0; }
.rc-category-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.rc-category-desc {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Toggle switch ──────────────────────────────────────── */
.rc-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}
.rc-switch input { opacity: 0; width: 0; height: 0; }
.rc-slider {
  position: absolute;
  inset: 0;
  background: #ced4da;
  border-radius: 34px;
  transition: background 0.2s;
}
.rc-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}
.rc-switch input:checked + .rc-slider { background: var(--accent); }
.rc-switch input:checked + .rc-slider::before { transform: translateX(20px); }
.rc-switch input:focus-visible + .rc-slider { outline: 2px solid var(--accent); outline-offset: 2px; }

/* "Always active" badge */
.rc-toggle-disabled {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.rc-toggle-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--success);
  background: var(--success-light);
  padding: 3px 9px;
  border-radius: 20px;
}

/* ── Panel footer ───────────────────────────────────────── */
.rc-panel-footer {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .rc-banner-inner { flex-direction: column; align-items: stretch; }
  .rc-banner-actions { justify-content: stretch; }
  .rc-banner-actions .rc-btn { flex: 1; }
  .rc-panel-footer { justify-content: stretch; }
  .rc-panel-footer .rc-btn { flex: 1; }
  #rc-overlay { align-items: flex-end; padding: 0; }
  .rc-panel { border-bottom-left-radius: 0; border-bottom-right-radius: 0; max-height: 92vh; }
}
