﻿:root {
  --font-display: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --sidebar-w: 308px;
  --sidebar-w-collapsed: 92px;
  --topbar-h: 78px;
  --content-max: 1440px;

  --r-xs: 8px;
  --r-sm: 14px;
  --r: 18px;
  --r-md: 22px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-2xl: 44px;

  --sp-2xs: 4px;
  --sp-xs: 10px;
  --sp-sm: 14px;
  --sp: 18px;
  --sp-md: 24px;
  --sp-lg: 32px;
  --sp-xl: 44px;
  --sp-2xl: 64px;

  --safe-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  --safe-right: var(--safe-area-inset-right, env(safe-area-inset-right, 0px));
  --safe-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  --safe-left: var(--safe-area-inset-left, env(safe-area-inset-left, 0px));
  --altaris-safe-area-top: var(--safe-top);
  --altaris-safe-area-right: var(--safe-right);
  --altaris-safe-area-bottom: var(--safe-bottom);
  --altaris-safe-area-left: var(--safe-left);

  --ease-smooth: cubic-bezier(.4, 0, .2, 1);
  --ease-spring: cubic-bezier(.22, .68, 0, 1.2);

  --accent-rgb: 167, 142, 238;
  --accent: #A78EEE;
  --accent-light: #9D85E0;
  --accent-strong: #6951A5;
  --accent-dim: rgba(var(--accent-rgb), 0.16);
  --accent-soft: rgba(var(--accent-rgb), 0.08);
  --accent-border: rgba(var(--accent-rgb), 0.30);
  --accent-glow: rgba(var(--accent-rgb), 0.28);

  --green: #4ade80;
  --yellow: #fbbf24;
  --red: #f87171;
  --orange: #fb923c;
  --blue: #60a5fa;

  color-scheme: dark;
}

:root[data-theme="dark"] {
  --bg: #1A1D26;
  --bg-2: #202532;
  --bg-3: #29303E;

  --surface: rgba(40, 45, 58, 0.88);
  --surface-2: #303746;
  --surface-3: #394355;
  --surface-4: rgba(var(--accent-rgb), 0.16);

  --border: rgba(232, 234, 242, 0.11);
  --border-2: rgba(232, 234, 242, 0.16);
  --border-3: rgba(var(--accent-rgb), 0.28);

  --text-1: #F8F9FE;
  --text-2: rgba(248,249,254,0.76);
  --text-3: rgba(248,249,254,0.56);
  --text-4: rgba(248,249,254,0.30);

  --sidebar-bg: rgba(26, 29, 38, 0.96);
  --topbar-bg: rgba(26, 29, 38, 0.88);

  --card-bg: rgba(40, 45, 58, 0.84);

  --input-bg: rgba(255,255,255,0.07);
  --input-bg-focus: rgba(255,255,255,0.11);

  --shadow-sm: 0 6px 18px rgba(31,38,54,0.13);
  --shadow: 0 16px 42px rgba(31,38,54,0.16);
  --shadow-lg: 0 28px 78px rgba(31,38,54,0.24);
  --shadow-accent: 0 12px 32px rgba(var(--accent-rgb), 0.18);

  --color-bg: var(--bg);
  --color-surface: #29303E;
  --color-border: var(--border);

  --color-accent: var(--accent);
  --color-accent-soft: rgba(var(--accent-rgb), 0.16);

  --color-text-primary: var(--text-1);
  --color-text-secondary: var(--text-2);
  --color-text-muted: var(--text-3);

  --radius-card: 24px;

  --shadow-soft: var(--shadow-sm);

  --mica: linear-gradient(
    180deg,
    #1A1D26 0%,
    #202532 52%,
    #1A1D26 100%
  );

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #F8F9FE;
  --bg-2: #F4F5FA;
  --bg-3: #ffffff;
  --surface: #FFFFFF;
  --surface-2: #FFFFFF;
  --surface-3: #F4F5FA;
  --surface-4: #F1EDFF;
  --border: #E8EAF2;
  --border-2: #DDE1EC;
  --border-3: rgba(var(--accent-rgb), 0.26);
  --text-1: #1A1A2E;
  --text-2: #6B7280;
  --text-3: #A0A6B8;
  --text-4: rgba(160,166,184,0.72);
  --sidebar-bg: rgba(255, 255, 255, 0.96);
  --topbar-bg: rgba(255, 255, 255, 0.90);
  --card-bg: #FFFFFF;
  --input-bg: #F4F5FA;
  --input-bg-focus: #FFFFFF;
  --shadow-sm: 0 2px 16px rgba(167, 142, 238, 0.06);
  --shadow: 0 12px 32px rgba(167, 142, 238, 0.08);
  --shadow-lg: 0 28px 78px rgba(26, 26, 46, 0.14);
  --shadow-accent: 0 14px 34px rgba(var(--accent-rgb), 0.18);
  --accent-dim: rgba(var(--accent-rgb), 0.12);
  --accent-soft: #F1EDFF;
  --accent-border: rgba(var(--accent-rgb), 0.24);
  --color-bg: #F8F9FE;
  --color-surface: #FFFFFF;
  --color-border: #E8EAF2;
  --color-accent: #A78EEE;
  --color-accent-soft: #F1EDFF;
  --color-text-primary: #1A1A2E;
  --color-text-secondary: #6B7280;
  --color-text-muted: #A0A6B8;
  --radius-card: 24px;
  --shadow-soft: 0 2px 16px rgba(167, 142, 238, 0.06);
  --mica: linear-gradient(180deg, #F8F9FE 0%, #F4F5FA 100%);
  color-scheme: light;
}

:root[data-accent="violet"] {
  --accent-rgb: 167, 142, 238;
  --accent: #A78EEE;
  --accent-light: #9D85E0;
  --accent-strong: #6951A5;
}
:root[data-accent="blue"] {
  --accent-rgb: 59, 130, 246;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-strong: #2563eb;
}
:root[data-accent="emerald"] {
  --accent-rgb: 16, 185, 129;
  --accent: #10b981;
  --accent-light: #34d399;
  --accent-strong: #059669;
}
:root[data-accent="rose"] {
  --accent-rgb: 244, 63, 94;
  --accent: #f43f5e;
  --accent-light: #fb7185;
  --accent-strong: #e11d48;
}
:root[data-accent="amber"] {
  --accent-rgb: 245, 158, 11;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --accent-strong: #d97706;
}
:root[data-accent="cyan"] {
  --accent-rgb: 6, 182, 212;
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --accent-strong: #0891b2;
}

:root[data-accent="red"] {
  --accent-rgb: 239, 68, 68;
  --accent: #ef4444;
  --accent-light: #f87171;
  --accent-strong: #dc2626;
}

:root[data-accent="lime"] {
  --accent-rgb: 132, 204, 22;
  --accent: #84cc16;
  --accent-light: #a3e635;
  --accent-strong: #65a30d;
}

:root[data-accent="pink"] {
  --accent-rgb: 236, 72, 153;
  --accent: #ec4899;
  --accent-light: #f472b6;
  --accent-strong: #db2777;
}

:root[data-accent="slate"] {
  --accent-rgb: 100, 116, 139;
  --accent: #64748b;
  --accent-light: #94a3b8;
  --accent-strong: #475569;
}

:root {
  --accent-dim: rgba(var(--accent-rgb), 0.16);
  --accent-soft: rgba(var(--accent-rgb), 0.08);
  --accent-border: rgba(var(--accent-rgb), 0.30);
  --accent-glow: rgba(var(--accent-rgb), 0.28);
}

:root[data-theme="light"] {
  --accent-dim: rgba(var(--accent-rgb), 0.12);
  --accent-soft: #F1EDFF;
  --accent-border: rgba(var(--accent-rgb), 0.24);
  --accent-glow: rgba(var(--accent-rgb), 0.16);
}

:root.theme-transitioning *,
:root.theme-transitioning *::before,
:root.theme-transitioning *::after {
  transition: background-color 180ms ease, color 120ms ease, border-color 150ms ease, box-shadow 180ms ease !important;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  overscroll-behavior: contain;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text-1);
  overflow-x: hidden;
  overscroll-behavior: contain;
  width: 100%;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--mica);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { background: none; border: 0; }
img, svg { display: block; max-width: 100%; }
input[type="checkbox"]:not(.check-input):not(.radio-input) {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--accent);
  border-radius: 5px;
  vertical-align: middle;
}
input[type="checkbox"]:not(.check-input):not(.radio-input):focus-visible {
  outline: 2px solid rgba(var(--accent-rgb),0.35);
  outline-offset: 2px;
}

.app-layout {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100dvh;
  width: 100%;
  overflow-x: clip;
}

.main-content {
  flex: 1;
  min-width: 0;
  min-height: 100dvh;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  transition: margin-left .28s var(--ease-smooth);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--topbar-h);
  padding: 14px max(22px, var(--safe-right)) 14px max(22px, var(--safe-left));
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
}

.topbar-hamburger,
.topbar-action-btn,
.icon-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--text-1);
  cursor: pointer;
  transition: transform .14s ease, background .18s ease, border-color .18s ease;
  flex-shrink: 0;
}

.topbar-hamburger:hover,
.topbar-action-btn:hover,
.icon-btn:hover,
.btn:hover {
  transform: translateY(-1px);
}

.topbar-hamburger:active,
.topbar-action-btn:active,
.icon-btn:active,
.btn:active {
  transform: scale(.97);
}

.topbar-hamburger { display: none; }
.topbar-hamburger svg,
.topbar-action-btn svg,
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; }

.topbar-title-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.topbar-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.1;
  letter-spacing: -.02em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-subtitle {
  display: block;
  color: var(--text-3);
  font-size: 15px;
  margin-top: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex: 0 0 auto;
}

.page-container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(28px, 3vw, 40px) max(24px, var(--safe-right)) calc(52px + var(--safe-bottom)) max(24px, var(--safe-left));
}

.stack-lg { display: grid; gap: 28px; }
.stack-xl { display: grid; gap: 40px; }
.flex-c { display: flex; align-items: center; }
.gap-sm { gap: 12px; }
.text-2 { color: var(--text-2); }
.fs-sm { font-size: 15px; }
.mt-sm { margin-top: 8px; }
.w-full { width: 100%; }
.hidden-mobile { display: initial; }

.sec-label {
  margin: 10px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 650;
  color: var(--text-3);
}
.sec-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.card,
.surface-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card, var(--r-lg));
  box-shadow: var(--shadow-sm);
  contain: layout style;
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

:root[data-theme="light"] .card,
:root[data-theme="light"] .surface-panel {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.card {
  padding: clamp(24px, 2vw, 30px);
}
.card:hover {
  border-color: var(--border-2);
}

.card-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.card-subtitle {
  color: var(--text-2);
  font-size: 16px;
  margin-bottom: 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 20px;
}

.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(380px 240px at 92% 4%, rgba(var(--accent-rgb), 0.26), transparent 62%),
    radial-gradient(320px 220px at 4% 100%, rgba(var(--accent-rgb), 0.18), transparent 66%),
    linear-gradient(140deg, rgba(var(--accent-rgb), 0.26), rgba(var(--accent-rgb), 0.08) 56%, rgba(255,255,255,0.02));
  border: 1px solid var(--accent-border);
  box-shadow:
    var(--shadow-accent),
    inset 0 1px 0 rgba(255,255,255,0.08);
  isolation: isolate;
}

.hero-panel::before,
.hero-panel::after {
  content: '';
  position: absolute;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}

.hero-panel::before {
  top: -18%;
  right: -8%;
  width: min(42vw, 360px);
  height: min(42vw, 360px);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.22), rgba(255,255,255,0.04) 42%, transparent 70%);
  filter: blur(6px);
  opacity: .85;
}

.hero-panel::after {
  left: 26px;
  right: 26px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  opacity: .7;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .16em;
  color: var(--accent-light);
}
.hero-eyebrow::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent-glow);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: -.05em;
  max-width: 10ch;
  text-shadow: 0 10px 26px rgba(31,38,54,0.13);
}
.hero-title span {
  color: var(--accent-light);
}
.hero-subtitle {
  margin-top: 16px;
  max-width: 62ch;
  color: var(--text-2);
  font-size: clamp(17px, 2.1vw, 20px);
  text-wrap: balance;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.page-settings .settings-hero {
  padding: 18px 22px;
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.page-settings .settings-hero .hero-eyebrow {
  margin-bottom: 8px;
  font-size: calc(11px * var(--text-scale));
  letter-spacing: .12em;
}

.page-settings .settings-hero .hero-title {
  max-width: 100%;
  font-size: clamp(calc(22px * var(--text-scale)), 3vw, calc(30px * var(--text-scale)));
  line-height: 1.12;
}

.page-settings .settings-hero .hero-subtitle {
  margin-top: 8px;
  max-width: 760px;
  font-size: calc(14px * var(--text-scale));
  line-height: 1.5;
}

.btn {
  min-height: 50px;
  padding: 0 20px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 650;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .14s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn svg { width: 19px; height: 19px; fill: none; }
.btn .icon-solid svg { fill: currentColor; }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 58px; padding: 0 26px; font-size: 16px; border-radius: var(--r); }
.btn-icon { width: 48px; padding: 0; }

.btn-primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  box-shadow: 0 16px 34px rgba(var(--accent-rgb), 0.24);
}

.btn-secondary {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
}
.btn-secondary:hover { background: rgba(var(--accent-rgb), 0.14); border-color: var(--border-3); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text-1); }

.btn-danger {
  background: #571e1e;
  border: 1px solid #823b3b;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(127,29,29,.24);
}
.btn-danger:hover {
  background: #991b1b;
  border-color: #b91c1c;
}

.btn-danger.btn-sm {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  gap: 8px;
}

.btn-danger.btn-sm svg {
  width: 14px;
  height: 14px;
}

.btn-danger.btn-sm.btn-icon,
.saved-ministry__delete {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 10px;
  box-shadow: none;
}

.saved-ministry__delete,
.absence-action,
.icon-btn[data-delete-scale],
button[data-remove-task],
button[data-remove-checklist],
button[data-remove-member],
button[data-delete-team],
button[data-remove-function],
button[data-remove-skill],
button[data-test-user-delete],
button[data-user-bank-delete],
button[data-delete-function] {
  background: #7f1d1d;
  border: 1px solid #991b1b;
  color: #ffffff;
}

.saved-ministry__delete:hover,
.absence-action:hover,
.icon-btn[data-delete-scale]:hover,
button[data-remove-task]:hover,
button[data-remove-checklist]:hover,
button[data-remove-member]:hover,
button[data-delete-team]:hover,
button[data-remove-function]:hover,
button[data-remove-skill]:hover,
button[data-test-user-delete]:hover,
button[data-user-bank-delete]:hover,
button[data-delete-function]:hover {
  background: #991b1b;
  border-color: #b91c1c;
}

.btn-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn-group .btn {
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--text-2);
}
.btn-group .btn.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: var(--accent-border);
}

.form-help-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-3);
  font: inherit;
  font-size: .8rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: .16em;
  cursor: pointer;
}

.form-help-link:hover {
  color: var(--accent-light);
}

.form-help-link svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.hero-read-more-link {
  display: inline;
  margin-top: 0;
  margin-left: 4px;
  padding: 0;
  vertical-align: baseline;
  color: var(--text-2);
  font-size: .82rem;
  white-space: nowrap;
}

.hero-subtitle-copy {
  display: inline;
}

.form-help-modal-copy {
  display: grid;
  gap: 16px;
}

.form-help-modal-copy p {
  margin: 0;
  color: var(--text-2);
  font-size: .88rem;
  line-height: 1.58;
}

.form-help-modal-copy strong {
  color: var(--text-1);
}

.form-help-modal-summary,
.form-help-modal-tip {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
}

.form-help-modal-summary {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
}

.form-help-modal-summary strong {
  color: var(--accent-light);
}

.form-help-modal-steps {
  display: grid;
  gap: 12px;
}

.form-help-modal-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
}

.form-help-modal-step-index {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: .82rem;
  font-weight: 650;
  line-height: 1;
}

.form-help-modal-step-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.form-help-modal-step-body strong {
  font-size: .95rem;
  line-height: 1.25;
}

.form-help-modal-tip {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px dashed var(--border-2);
  color: var(--text-2);
}

.form-help-modal-art {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  overflow: hidden;
}

.form-help-modal-art > * {
  margin-inline: auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-group {
  display: grid;
  gap: 10px;
}
.label {
  font-size: 16px;
  font-weight: 650;
  color: var(--text-1);
}
.label-sub {
  margin-left: 6px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 500;
}

.input, .textarea, .select {
  width: 100%;
  min-height: 54px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border-2);
  background: var(--input-bg);
  color: var(--text-1);
  padding: 0 17px;
  font-size: 15px;
  outline: 0;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
  color-scheme: dark light;
}
.input::placeholder, .textarea::placeholder { color: var(--text-4); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--border-3); }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  background: var(--input-bg-focus);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.textarea {
  min-height: 108px;
  padding: 12px 17px;
  resize: vertical;
}
.select {
  appearance: none;
  cursor: pointer;
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 2px), calc(100% - 14px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.select option { background: var(--bg-3); color: var(--text-1); }
.input option,
select option {
  background: var(--bg-3);
  color: var(--text-1);
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}
.input-group .input { padding-left: 44px; }
.input-icon {
  position: absolute;
  left: 14px;
  width: 19px;
  height: 19px;
  fill: var(--text-3);
  pointer-events: none;
}
.input-suffix {
  position: absolute;
  right: 14px;
  color: var(--text-3);
  font-size: 14px;
  pointer-events: none;
}

.form-hint { font-size: 13px; color: var(--text-3); }
.form-error { font-size: 13px; color: var(--red); }
.input.error, .select.error { border-color: var(--red); }
.input.success, .select.success { border-color: var(--green); }

.toggle-label,
.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.check-row { justify-content: flex-start; }
.toggle {
  position: relative;
  width: 58px;
  height: 34px;
  flex-shrink: 0;
}
.toggle input {
  position: absolute;
  opacity: 0;
  inset: 0;
}
.toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  transition: background .16s ease, border-color .16s ease;
}
.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(31,38,54,.14);
  transition: transform .18s ease;
}
.toggle input:checked + .toggle-track {
  background: var(--accent);
  border-color: transparent;
}
.toggle input:checked + .toggle-track .toggle-thumb {
  transform: translateX(24px);
}

.check-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-2);
  font-weight: 500;
  cursor: pointer;
  min-height: 28px;
  font-size: 15px;
}
.check-input,
.radio-input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  border: 1.5px solid var(--border-3);
  background: var(--surface-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .12s ease;
  position: relative;
}
.check-input { border-radius: 7px; }
.radio-input { border-radius: 999px; }
.check-input::before,
.radio-input::before {
  content: '';
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: transform .16s ease;
  background: #fff;
}
.check-input::before {
  clip-path: polygon(14% 44%, 0 59%, 42% 100%, 100% 20%, 84% 6%, 39% 62%);
}
.radio-input::before {
  border-radius: 999px;
  width: 8px;
  height: 8px;
}
.check-input:hover,
.radio-input:hover { border-color: var(--accent-border); }
.check-input:checked,
.radio-input:checked {
  border-color: transparent;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.check-input:checked::before,
.radio-input:checked::before { transform: scale(1); }
.check-input:active,
.radio-input:active { transform: scale(.96); }

.stat-card {
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 12px;
}
.stat-card:hover {
  transform: translateY(-2px);
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: var(--shadow);
}
.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--r-sm);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.stat-icon svg { width: 24px; height: 24px; fill: var(--accent); }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 40px);
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 650;
}
.stat-label { color: var(--text-2); font-size: 15px; }
.stat-trend {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 13px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 650;
}
.stat-trend.up { color: var(--green); background: rgba(74,222,128,.12); }
.stat-trend.down { color: var(--red); background: rgba(248,113,113,.12); }

:root[data-theme="light"]:not([data-ui-mode="simplified"]) .stat-trend.up {
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
}

:root[data-theme="light"]:not([data-ui-mode="simplified"]) .stat-trend.down {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.schedule-card {
  position: relative;
  overflow: hidden;
  padding: 20px 20px 20px 24px;
  border-radius: var(--r-lg);
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.schedule-card:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
}
.sc-bar {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: var(--accent);
}
.sc-inner { display: grid; gap: 4px; }
.sc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.sc-title { font-size: 18px; font-weight: 650; }
.sc-date { color: var(--text-3); font-size: 14px; white-space: nowrap; }
.sc-sub { color: var(--text-2); font-size: 15px; }
.sc-footer { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.chip,
.badge,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.chip {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  font-size: 13px;
  font-weight: 650;
  color: var(--text-2);
}
.chip svg { width: 12px; height: 12px; fill: currentColor; }
.chip.accent { color: var(--accent); background: var(--accent-dim); border-color: var(--accent-border); }
.chip.green { color: var(--green); background: rgba(74,222,128,.12); border-color: rgba(74,222,128,.28); }
.chip.yellow { color: var(--yellow); background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.28); }
.chip.red { color: var(--red); background: rgba(248,113,113,.12); border-color: rgba(248,113,113,.28); }
.chip.orange { color: var(--orange); background: rgba(251,146,60,.12); border-color: rgba(251,146,60,.28); }

.badge {
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--r-xs);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 650;
}
.badge.accent { background: var(--accent-dim); color: var(--accent); }
.badge.green { background: rgba(74,222,128,.12); color: var(--green); }
.badge.yellow { background: rgba(251,191,36,.12); color: var(--yellow); }
.badge.red { background: rgba(248,113,113,.12); color: var(--red); }

.role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.role-badge--colaborador {
  background: rgba(148,163,184,.14);
  border-color: rgba(148,163,184,.22);
  color: #cbd5e1;
}

.role-badge--servo {
  background: rgba(74,222,128,.14);
  border-color: rgba(74,222,128,.24);
  color: #86efac;
}

.role-badge--ajudante {
  background: rgba(45,212,191,.14);
  border-color: rgba(45,212,191,.24);
  color: #5eead4;
}

.role-badge--colider {
  background: rgba(56,189,248,.14);
  border-color: rgba(56,189,248,.24);
  color: #7dd3fc;
}

.role-badge--lider {
  background: rgba(129,140,248,.16);
  border-color: rgba(129,140,248,.28);
  color: #c7d2fe;
}

.role-badge--coordenador {
  background: rgba(251,191,36,.16);
  border-color: rgba(251,191,36,.28);
  color: #fde68a;
}

.role-badge--superadmin {
  background: rgba(244,114,182,.16);
  border-color: rgba(244,114,182,.28);
  color: #f9a8d4;
}

.role-badge--pastor {
  background: rgba(248,113,113,.18);
  border-color: rgba(248,113,113,.30);
  color: #fecaca;
}

:root[data-theme="light"] .role-badge--colaborador {
  background: #eef2f7;
  border-color: #cbd5e1;
  color: #475569;
}

:root[data-theme="light"] .role-badge--servo {
  background: #e8f7ee;
  border-color: #86efac;
  color: #166534;
}

:root[data-theme="light"] .role-badge--ajudante {
  background: #e8faf7;
  border-color: #5eead4;
  color: #115e59;
}

:root[data-theme="light"] .role-badge--colider {
  background: #edf6ff;
  border-color: #7dd3fc;
  color: #0c4a6e;
}

:root[data-theme="light"] .role-badge--lider {
  background: #eef2ff;
  border-color: #a5b4fc;
  color: #3730a3;
}

:root[data-theme="light"] .role-badge--coordenador {
  background: #fff7e6;
  border-color: #fcd34d;
  color: #92400e;
}

:root[data-theme="light"] .role-badge--superadmin {
  background: #fdf0f7;
  border-color: #f9a8d4;
  color: #9d174d;
}

:root[data-theme="light"] .role-badge--pastor {
  background: #fef0f0;
  border-color: #fca5a5;
  color: #991b1b;
}

.tag-list,
.swatch-row,
.settings-swatch-grid,
.demo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.demo-col {
  flex: 1 1 260px;
  min-width: min(100%, 260px);
  display: grid;
  gap: 12px;
}
.tag {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}
.tag-close {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-3);
  color: var(--text-3);
  cursor: pointer;
}

.swatch {
  width: 72px;
  height: 72px;
  border-radius: var(--r-sm);
  padding: 8px;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--border-2);
  color: rgba(255,255,255,.70);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
:root[data-theme="light"][data-ui-mode="simplified"] .swatch { color: rgba(31,38,54,.42); }
.swatch-accent { background: var(--accent); }
.swatch-accent-light { background: var(--accent-light); }
.swatch-accent-dim { background: var(--accent-dim); }
.swatch-green { background: var(--green); }
.swatch-yellow { background: var(--yellow); }
.swatch-red { background: var(--red); }
.swatch-orange { background: var(--orange); }
.swatch-surface-2 { background: var(--surface-2); }
.swatch-surface-3 { background: var(--surface-3); }

.timeline {
  position: relative;
  display: grid;
  gap: 20px;
  padding-left: 28px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border-2);
}
.timeline-item { position: relative; }
.timeline-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 6px var(--accent-soft);
}
.timeline-dot.muted {
  background: var(--surface-4);
  box-shadow: none;
}
.timeline-date { color: var(--text-3); font-size: 13px; font-weight: 650; margin-bottom: 4px; }
.timeline-title { font-size: 17px; font-weight: 650; }
.timeline-sub { color: var(--text-2); font-size: 15px; margin-top: 4px; }

.notice-empty,
.code-demo,
.token-card,
.pattern-card {
  border-radius: var(--r-lg);
  border: 1px dashed var(--border-2);
  background: var(--surface);
  padding: 26px;
}
.notice-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  color: var(--text-3);
}
.notice-empty svg { width: 32px; height: 32px; fill: var(--text-4); }

.kbd {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 650;
  color: var(--text-2);
}
.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.avatar {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 650;
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.22);
}
.avatar-sm { width: 40px; height: 40px; font-size: 14px; }
.avatar-md { width: 46px; height: 46px; font-size: 15px; }
.avatar-lg { width: 56px; height: 56px; font-size: 19px; }
.avatar-ring { box-shadow: 0 0 0 3px var(--accent-soft), 0 8px 20px rgba(var(--accent-rgb), 0.22); }

.dropdown-wrap { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  padding: 8px;
  border-radius: var(--r);
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease;
  z-index: 55;
}
.dropdown-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.dropdown-item {
  min-height: 44px;
  border-radius: 12px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-2);
  cursor: pointer;
  font-size: 15px;
}
.dropdown-item:hover {
  background: var(--surface-2);
  color: var(--text-1);
}
.dropdown-item svg { width: 16px; height: 16px; fill: currentColor; }
.dropdown-item.danger { color: var(--red); }
.dropdown-divider { height: 1px; margin: 6px 4px; background: var(--border); }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tab {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text-2);
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
}
.tab.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: var(--accent-border);
}
.tab-panel {
  min-height: 84px;
  margin-top: 16px;
  padding: 20px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px dashed var(--border-2);
  color: var(--text-2);
}

.progress {
  height: 10px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2));
  background-size: 220% 100%;
  animation: skeleton-wave 1.6s linear infinite;
}
@keyframes skeleton-wave {
  0% { background-position: 200% 0; }
  100% { background-position: -20% 0; }
}

.modal-backdrop,
.settings-backdrop {
  --admin-modal-viewport: var(--altaris-admin-modal-viewport, 100vh);
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  height: var(--admin-modal-viewport);
  padding: 20px;
  background: rgba(31,38,54,.34);
  backdrop-filter: blur(7px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.modal-backdrop.open,
.settings-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  width: min(100%, 520px);
  max-height: min(880px, calc(var(--admin-modal-viewport) - 40px));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: grid;
  border-radius: var(--radius-card, var(--r-xl));
  padding: 30px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-lg);
  contain: layout style;
  transform: translateY(10px) scale(.98);
  transition: transform .18s ease;
}

@supports (height: 100dvh) {
  .modal-backdrop,
  .settings-backdrop {
    --admin-modal-viewport: var(--altaris-admin-modal-viewport, 100dvh);
  }
}

:root[data-theme="light"] .modal-backdrop,
:root[data-theme="light"] .settings-backdrop {
  background: rgba(31,38,54,.14);
  backdrop-filter: none;
}
.modal-backdrop.open .modal,
.settings-backdrop.open .admin-settings-panel {
  transform: translateY(0) scale(1);
}
.modal-header,
.settings-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.modal-title,
.settings-panel-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 650;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.modal-gen-user {
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
}

.modal-gen-user .ministry-detail-list,
.modal-gen-user #testUsersList {
  min-height: 0;
}

.modal-gen-user #testUsersList {
  overflow-y: auto;
  padding-right: 4px;
}

.modal-gen-user #testUsersForm {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  overflow: visible;
}

.modal-gen-user #testUsersList {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.modal-gen-user .detail-row {
  align-content: start;
}

.modal-user-bank {
  width: min(1180px, calc(100vw - 28px));
  height: min(860px, calc(var(--admin-modal-viewport) - 28px));
  max-height: calc(var(--admin-modal-viewport) - 28px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  padding: 22px;
  overflow: hidden;
}

.modal-user-bank .modal-header {
  margin: 0;
}

.user-bank-devbar {
  display: grid;
  grid-template-columns: auto auto minmax(220px, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.user-bank-tab {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text-2);
  background: var(--surface-2);
  font-weight: 650;
  cursor: pointer;
}

.user-bank-tab.active {
  color: #fff;
  border-color: var(--accent-border);
  background: var(--accent);
}

.user-bank-tab svg {
  width: 17px;
  height: 17px;
}

.user-bank-current {
  justify-self: end;
  min-width: 0;
  display: grid;
  gap: 2px;
  text-align: right;
}

.user-bank-current span,
.user-bank-role,
.user-bank-count {
  color: var(--text-3);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.user-bank-current strong {
  color: var(--text-1);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-bank-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  gap: 14px;
}

.modal-user-bank.is-create-mode .user-bank-layout,
.modal-user-bank.is-switch-mode .user-bank-layout {
  grid-template-columns: minmax(0, 1fr);
}

.modal-user-bank.is-switch-mode [data-user-bank-panel="create"],
.modal-user-bank.is-create-mode [data-user-bank-panel="switch"] {
  display: none;
}

.user-bank-panel {
  min-height: 0;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  overflow: hidden;
}

.user-bank-panel--create {
  grid-template-rows: auto minmax(0, 1fr);
}

.user-bank-panel--list {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.user-bank-panel-title {
  color: var(--text-1);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.user-bank-panel-help,
.user-bank-note {
  margin: 4px 0 0;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.45;
}

.user-bank-form {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 12px;
  overflow: hidden;
}

.user-bank-form-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
}

.user-bank-field-wide {
  grid-column: 1 / -1;
}

.user-bank-ministry-select {
  min-height: 160px;
}

.user-bank-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.user-bank-list-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.user-bank-count {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  white-space: nowrap;
}

.user-bank-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text-3);
}

.user-bank-search svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.user-bank-search .input {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.user-bank-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  padding-right: 6px;
}

.user-bank-user-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-2);
}

.user-bank-user-card.is-current {
  border-color: var(--accent-border);
  background: color-mix(in srgb, var(--accent-dim) 48%, var(--surface-2));
}

.user-bank-user-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.user-bank-user-main strong {
  color: var(--text-1);
  font-size: 16px;
}

.user-bank-user-main small,
.user-bank-user-main span:not(.user-bank-role) {
  color: var(--text-3);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-bank-user-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.user-bank-empty {
  display: grid;
  gap: 5px;
  padding: 22px;
  border: 1px dashed var(--border-2);
  border-radius: 16px;
  color: var(--text-3);
  text-align: center;
}

.user-bank-empty strong {
  color: var(--text-1);
}

.admin-settings-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 130;
  width: min(100%, 420px);
  height: 100dvh;
  padding: calc(20px + var(--safe-top)) 20px calc(20px + var(--safe-bottom));
  background: var(--bg-3);
  border-left: 1px solid var(--border-2);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform .22s var(--ease-smooth);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.settings-backdrop.open .admin-settings-panel { pointer-events: auto; }
.settings-section {
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  gap: 14px;
}
.settings-section-title {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-3);
}
.settings-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.settings-choice {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
  font-weight: 650;
}
.settings-choice.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: var(--accent-border);
}
.theme-swatch {
  position: relative;
  width: 100%;
  min-height: 86px;
  border-radius: var(--r);
  border: 1px solid var(--border-2);
  padding: 16px;
  background: var(--surface-2);
  display: grid;
  align-content: space-between;
  text-align: left;
  cursor: pointer;
}
.theme-swatch.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.theme-swatch-label { font-weight: 650; font-size: 15px; }
.theme-swatch-preview {
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}
.settings-swatch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.color-swatch-btn {
  min-height: 104px;
  padding: 14px;
  border-radius: var(--r);
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  cursor: pointer;
}
.color-swatch-btn.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.color-swatch-preview {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,.8);
  box-shadow: 0 6px 16px rgba(15,23,42,.12);
}
.color-swatch-btn span { font-size: 13px; font-weight: 650; color: var(--text-2); }

.accent-violet { background: linear-gradient(135deg, #A27DF8, #B9A2FB); }
.accent-blue { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.accent-emerald { background: linear-gradient(135deg, #10b981, #34d399); }
.accent-rose { background: linear-gradient(135deg, #f43f5e, #fb7185); }
.accent-amber { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.accent-cyan { background: linear-gradient(135deg, #06b6d4, #22d3ee); }
.accent-red { background: linear-gradient(135deg, #ef4444, #f87171); }
.accent-lime { background: linear-gradient(135deg, #84cc16, #a3e635); }
.accent-pink { background: linear-gradient(135deg, #ec4899, #f472b6); }
.accent-slate { background: linear-gradient(135deg, #64748b, #94a3b8); }

.token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 18px;
}
.token-card strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}
.token-card p { color: var(--text-2); font-size: 15px; }

.fade-up {
  opacity: 0;
  transform: translateY(20px) scale(.985);
  animation: fade-up .58s var(--ease-smooth) forwards;
}
.d1 { animation-delay: .04s; }
.d2 { animation-delay: .08s; }
.d3 { animation-delay: .12s; }
.d4 { animation-delay: .16s; }
.d5 { animation-delay: .20s; }
.d6 { animation-delay: .24s; }
@keyframes fade-up {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: .95em;
}

@media (max-width: 1180px) {
  .card-grid-4,
  .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .main-content { margin-left: 0; }
  .topbar-hamburger { display: inline-flex; }
  .page-container {
    max-width: none;
    padding-top: 24px;
    padding-right: max(20px, var(--safe-right));
    padding-left: max(20px, var(--safe-left));
  }
  .hidden-mobile { display: none; }
  .hero-panel { padding: 26px; }
  .hero-title { font-size: clamp(34px, 8vw, 46px); max-width: 100%; }
  .hero-subtitle { font-size: 17px; max-width: 100%; }
  .demo-row, .hero-actions { display: grid; grid-template-columns: 1fr; }
  .btn-group { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .btn-group .btn { width: 100%; }
  .form-grid,
  .form-grid-2,
  .form-grid-3,
  .card-grid-2,
  .card-grid-3,
  .card-grid-4,
  .settings-swatch-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .page-container {
    padding-right: max(16px, var(--safe-right));
    padding-left: max(16px, var(--safe-left));
  }
  body { font-size: 16px; line-height: 1.6; }
  .stack-xl { gap: 28px; }
  .stack-lg { gap: 20px; }
  .card, .modal, .surface-panel { padding: 20px; }
  .hero-actions,
  .modal-footer,
  .topbar-actions,
  .demo-row,
  .swatch-row { gap: 12px; }
  .topbar-subtitle { display: none; }
  .topbar-title { font-size: 21px; }
  .topbar-actions { gap: 8px; }
  .topbar-action-btn,
  .icon-btn,
  .topbar-hamburger { width: 46px; height: 46px; }
  .modal { width: 100%; }
  .stat-card, .schedule-card, .member-card, .compact-card { padding: 20px; }
  .table-wrap { margin-inline: -2px; }
}

@media (max-width: 560px) {
  .hero-title { max-width: 100%; font-size: clamp(30px, 10vw, 38px); }
  .btn,
  .btn-lg,
  .btn-sm { width: 100%; min-height: 50px; }
  .hero-actions .btn,
  .modal-footer .btn,
  .demo-row .btn,
  .dropdown-wrap .btn { justify-content: center; }
  .topbar {
    gap: 10px;
    padding-right: max(14px, var(--safe-right));
    padding-left: max(14px, var(--safe-left));
  }
  .topbar-title-wrap { min-width: 0; }
  .topbar-actions { gap: 6px; }
  .avatar-md { width: 42px; height: 42px; font-size: 14px; }
  .settings-swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .token-grid { gap: 12px; }
  .toast-container { width: calc(100vw - 20px); top: calc(14px + var(--safe-top)); }
  .btn-group { grid-template-columns: 1fr; }
}

.input-has-suffix { padding-left: 16px; padding-right: 74px; }
.mt-16 { margin-top: 16px; }
.progress-72 > span { width: 72%; }
.skeleton-sm { height: 14px; border-radius: 10px; }
.skeleton-sm.w-90 { width: 90%; }
.skeleton-sm.w-70 { width: 70%; }
.sc-bar.green { background: var(--green); }
.sc-bar.orange { background: var(--orange); }


/* â”€â”€ Inputs extras â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.range-wrap {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r);
  border: 1px solid var(--border-2);
  background: var(--input-bg);
}
.range-input {
  width: 100%;
  accent-color: var(--accent);
}
.range-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-3);
}
.range-meta strong { color: var(--text-1); font-weight: 650; }
.file-input {
  min-height: 58px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--r-sm);
  border: 1.5px dashed var(--border-2);
  background: var(--input-bg);
  cursor: pointer;
}
.file-input input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.file-input-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 650;
}
.file-input-text {
  min-width: 0;
  color: var(--text-2);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.color-field {
  min-height: 54px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border-2);
  background: var(--input-bg);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.color-input {
  width: 38px;
  height: 38px;
  border: 0;
  padding: 0;
  background: transparent;
}
.color-input::-webkit-color-swatch-wrapper { padding: 0; }
.color-input::-webkit-color-swatch {
  border: 1px solid var(--border-2);
  border-radius: 10px;
}
.input:disabled {
  opacity: .72;
  cursor: not-allowed;
}

/* â”€â”€ Lists & table â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.acrylic-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  contain: layout style;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  transition: background var(--dur-fast);
  border-bottom: 1px solid var(--border);
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--surface-2); }
.list-item:active { background: var(--surface-3); }
.list-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.list-icon svg { width: 22px; height: 22px; fill: var(--text-2); }
.list-icon.accent { background: var(--accent-dim); border-color: var(--accent-border); }
.list-icon.accent svg { fill: var(--accent); }
.list-icon.green { background: rgba(74,222,128,.12); border-color: rgba(74,222,128,.28); }
.list-icon.green svg { fill: var(--green); }
.list-text { flex: 1; min-width: 0; }
.list-title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.list-sub { font-size: 14px; color: var(--text-2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-end { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.list-chevron svg { width: 18px; height: 18px; fill: var(--text-4); }
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  contain: layout style;
  overscroll-behavior: contain;
  backdrop-filter: blur(16px);
}

:root[data-theme="light"] .acrylic-list,
:root[data-theme="light"] .table-wrap {
  backdrop-filter: none;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 540px;
}
.table th {
  background: var(--surface-2);
  padding: 16px 20px;
  text-align: left;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-1);
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--surface); }

/* â”€â”€ Alerts, toasts & extra cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.alert {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px 18px 22px;
  border-radius: var(--r-md);
  border: 1px solid;
  font-size: 15px;
  overflow: hidden;
}
.alert::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: currentColor;
  opacity: .9;
}
.alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; fill: currentColor; }
.alert-title { font-weight: 650; margin-bottom: 3px; color: var(--text-1); }
.alert > div:last-child { color: var(--text-2); }
.alert.info { background: color-mix(in srgb, var(--accent-dim) 76%, transparent); border-color: var(--accent-border); color: var(--accent); }
.alert.success { background: color-mix(in srgb, #166534 84%, var(--surface)); border-color: #15803d; color: #86efac; }
.alert.warning { background: color-mix(in srgb, #854d0e 84%, var(--surface)); border-color: #a16207; color: #fde68a; }
.alert.danger { background: color-mix(in srgb, #7f1d1d 88%, var(--surface)); border-color: #991b1b; color: #fecaca; }
.alert.success .alert-title,
.alert.warning .alert-title,
.alert.danger .alert-title,
.alert.success > div:last-child,
.alert.warning > div:last-child,
.alert.danger > div:last-child {
  color: #ffffff;
}
.alert.success svg,
.alert.warning svg,
.alert.danger svg {
  color: #ffffff;
  fill: currentColor;
}
.toast-container {
  position: fixed;
  top: calc(24px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: min(420px, calc(100vw - 28px));
}
.toast {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  font-size: 15px;
  font-weight: 600;
  pointer-events: all;
  animation: toastIn .28s var(--ease-smooth) both;
}

:root[data-theme="light"] .toast {
  background: #FFFFFF;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.toast-icon { width: 22px; height: 22px; flex-shrink: 0; }
.toast-icon svg { width: 22px; height: 22px; fill: currentColor; }
.toast.success { background: #166534; border-color: #15803d; color: #ffffff; }
.toast.info { background: color-mix(in srgb, var(--accent) 28%, var(--bg-3)); border-color: color-mix(in srgb, var(--accent) 42%, var(--border-2)); color: #ffffff; }
.toast.danger { background: #7f1d1d; border-color: #991b1b; color: #ffffff; }
.toast.success .toast-copy strong,
.toast.success .toast-copy div,
.toast.info .toast-copy strong,
.toast.info .toast-copy div,
.toast.danger .toast-copy strong,
.toast.danger .toast-copy div {
  color: #ffffff;
}
.toast.exit { animation: toastOut .24s var(--ease-smooth) both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px) scale(.96);} to { opacity: 1; transform: none; } }
@keyframes toastOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-8px) scale(.96);} }
.compact-card-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: center;
}
.compact-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
}
.compact-card-icon svg { width: 24px; height: 24px; }
.card-title-sm { margin-bottom: 4px; font-size: 18px; }

@media (hover: none) {
  .list-item:hover { background: transparent; }
}

/* ---------- v4 refinement layer ---------- */
:root {
  --text-scale: 1;
  --element-scale: 1;
  --sidebar-scale: 1;
  --dur-fast: .14s;
  --dur: .22s;
  --dur-slow: .34s;
  --sidebar-base-w: 276px;
  --sidebar-w: calc(var(--sidebar-base-w) * var(--sidebar-scale));
  --topbar-h: calc(70px * var(--element-scale));
  --content-max: 1360px;
}

body {
  font-size: calc(15px * var(--text-scale));
  line-height: 1.58;
}

body.modal-open {
  overflow: hidden;
}

.icon,
.icon-solid,
.icon-rendered,
.input-icon,
.sb-link-icon,
.sb-chevron,
.sb-theme-icon,
.quick-icon,
.list-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon svg,
.icon-solid svg,
.icon-rendered svg,
.quick-icon svg,
.input-icon svg,
.list-chevron svg {
  width: 100%;
  height: 100%;
}

.topbar {
  gap: 14px;
  min-height: var(--topbar-h);
  padding: calc(12px * var(--element-scale)) max(18px, var(--safe-right)) calc(12px * var(--element-scale)) max(18px, var(--safe-left));
}

.topbar-hamburger,
.topbar-action-btn,
.icon-btn {
  width: calc(44px * var(--element-scale));
  height: calc(44px * var(--element-scale));
}

.topbar-hamburger svg,
.topbar-action-btn svg,
.icon-btn svg {
  width: 20px;
  height: 20px;
}

.topbar-title {
  font-size: clamp(calc(20px * var(--text-scale)), 2vw, calc(25px * var(--text-scale)));
}

.topbar-subtitle {
  font-size: calc(13px * var(--text-scale));
}

.page-container {
  max-width: var(--content-max);
  padding: clamp(24px, 2.5vw, 34px) max(18px, var(--safe-right)) calc(42px + var(--safe-bottom)) max(18px, var(--safe-left));
}

.page-container,
.card-grid,
.card-grid > *,
.form-grid,
.form-grid > *,
.quick-grid,
.quick-grid > *,
.calendar-shell,
.calendar-side,
.table-wrap,
.list-text,
.hero-actions,
.topbar-title-wrap {
  min-width: 0;
}

.stack-md {
  display: grid;
  gap: 16px;
}

.stack-lg {
  gap: 24px;
}

.stack-xl {
  gap: 34px;
}

.hero-panel {
  padding: clamp(24px, 3vw, 34px);
}

.hero-title {
  font-size: clamp(calc(30px * var(--text-scale)), 4vw, calc(46px * var(--text-scale)));
}

.hero-subtitle {
  font-size: clamp(calc(15px * var(--text-scale)), 2vw, calc(18px * var(--text-scale)));
}

.card,
.surface-panel {
  border-radius: 24px;
}

.card {
  padding: clamp(calc(20px * var(--element-scale)), 2vw, calc(24px * var(--element-scale)));
}

.card-title {
  font-size: calc(18px * var(--text-scale));
}

.card-subtitle,
.token-card p,
.pattern-card p,
.timeline-sub,
.sc-sub,
.list-sub,
.alert,
.toast,
.tab-panel {
  font-size: calc(14px * var(--text-scale));
}

.token-card strong,
.list-title,
.timeline-title,
.sc-title,
.card-title-sm {
  font-size: calc(15px * var(--text-scale));
}

.btn {
  min-height: calc(46px * var(--element-scale));
  padding: 0 calc(18px * var(--element-scale));
  font-size: calc(14px * var(--text-scale));
}

.btn-sm {
  min-height: calc(40px * var(--element-scale));
  padding: 0 calc(14px * var(--element-scale));
  font-size: calc(13px * var(--text-scale));
}

.btn-lg {
  min-height: calc(52px * var(--element-scale));
  padding: 0 calc(22px * var(--element-scale));
  font-size: calc(14px * var(--text-scale));
}

.btn-icon {
  width: calc(44px * var(--element-scale));
}

.label {
  font-size: calc(14px * var(--text-scale));
}

.label-sub,
.form-hint,
.form-error,
.range-meta,
.sb-user-role,
.fs-sm {
  font-size: calc(12px * var(--text-scale));
}

.input,
.textarea,
.select,
.color-field {
  min-height: calc(48px * var(--element-scale));
  font-size: calc(14px * var(--text-scale));
}

.textarea {
  min-height: calc(128px * var(--element-scale));
}

.input-group .input {
  padding-left: 44px;
}

.input-icon {
  width: 18px;
  height: 18px;
}

.toggle {
  width: calc(54px * var(--element-scale));
  height: calc(32px * var(--element-scale));
}

.toggle-thumb {
  width: calc(24px * var(--element-scale));
  height: calc(24px * var(--element-scale));
}

.toggle input:checked + .toggle-track .toggle-thumb {
  transform: translateX(calc(22px * var(--element-scale)));
}

.stat-card,
.schedule-card {
  padding: calc(20px * var(--element-scale));
}

.stat-icon {
  width: calc(48px * var(--element-scale));
  height: calc(48px * var(--element-scale));
  color: var(--text-1);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
}

.list-icon,
.compact-card-icon {
  color: var(--text-2);
  background: var(--surface-2);
  border-color: var(--border-2);
}

.list-icon.accent,
.list-icon.green {
  color: var(--text-2);
  background: var(--surface-2);
  border-color: var(--border-2);
}

.list-icon.info {
  color: var(--text-1);
  background: rgba(var(--accent-rgb), 0.18);
  border-color: rgba(var(--accent-rgb), 0.30);
}

.list-icon.success {
  color: var(--text-1);
  background: rgba(74,222,128,.18);
  border-color: rgba(74,222,128,.30);
}

.list-icon.warning {
  color: var(--text-1);
  background: rgba(251,191,36,.18);
  border-color: rgba(251,191,36,.30);
}

.list-icon.danger {
  color: var(--text-1);
  background: rgba(248,113,113,.18);
  border-color: rgba(248,113,113,.30);
}

.stat-icon svg,
.quick-icon svg,
.list-icon svg,
.compact-card-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.list-icon.accent svg,
.list-icon.green svg,
.list-icon.info svg,
.list-icon.success svg,
.list-icon.warning svg,
.list-icon.danger svg {
  stroke: currentColor;
  fill: none;
}

.stat-value {
  font-size: clamp(calc(28px * var(--text-scale)), 3vw, calc(36px * var(--text-scale)));
}

.stat-label,
.sc-date,
.chip,
.tag,
.table,
.dropdown-item,
.settings-choice,
.theme-swatch-label,
.color-swatch-btn span,
.modal-note,
.preview-shell {
  font-size: calc(13px * var(--text-scale));
}

.badge {
  font-size: calc(11px * var(--text-scale));
}

.swatch {
  width: 68px;
  height: 68px;
}

.table th {
  font-size: calc(12px * var(--text-scale));
}

.table td {
  padding: 16px 18px;
}

.file-input,
.color-field {
  width: 100%;
  min-width: 0;
}

.file-input {
  min-height: calc(52px * var(--element-scale));
  flex-wrap: wrap;
  align-items: center;
}

.file-input input {
  width: 1px;
  height: 1px;
}

.file-input-button {
  flex: 0 0 auto;
  gap: 8px;
}

.file-input-text {
  flex: 1 1 180px;
  min-width: 0;
}

.color-field {
  justify-content: space-between;
  flex-wrap: wrap;
}

.color-chip {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.65);
  box-shadow: 0 4px 14px rgba(15,23,42,.16);
}

.color-input {
  width: 34px;
  height: 34px;
}

.color-field-value {
  font-weight: 650;
  color: var(--text-2);
}

.check-stack {
  display: grid;
  gap: 10px;
}

.check-label {
  font-size: calc(14px * var(--text-scale));
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.quick-card {
  min-height: calc(108px * var(--element-scale));
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  color: var(--text-2);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.quick-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-3);
  background: var(--surface-2);
  color: var(--text-1);
}

.quick-card strong {
  display: block;
  color: var(--text-1);
  font-size: calc(15px * var(--text-scale));
}

.quick-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.quick-copy span {
  line-height: 1.45;
}

.quick-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  color: var(--text-2);
  flex-shrink: 0;
}

.quick-icon svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px;
  max-height: 18px;
  fill: none;
  stroke: currentColor;
  flex-shrink: 0;
}

svg.quick-icon {
  width: 34px;
  height: 34px;
}

.calendar-shell,
.calendar-side {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.calendar-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.calendar-nav {
  display: flex;
  gap: 8px;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.calendar-weekdays span {
  text-align: center;
  font-size: calc(11px * var(--text-scale));
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  font-weight: 650;
}

.calendar-day {
  min-height: calc(64px * var(--element-scale));
  padding: 10px 6px 8px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  align-content: space-between;
  justify-items: center;
  gap: 8px;
  color: var(--text-2);
  transition: transform .14s ease, border-color .16s ease, background .16s ease;
  min-width: 0;
}

.calendar-day:hover {
  border-color: var(--border-3);
  background: var(--surface-2);
}

.calendar-day span {
  font-weight: 650;
  color: var(--text-1);
  font-size: calc(14px * var(--text-scale));
}

.calendar-day small {
  font-size: calc(9px * var(--text-scale));
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.calendar-day.muted {
  opacity: .45;
}

.calendar-day.today {
  border-color: var(--accent-border);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.calendar-day.active,
.calendar-day.has-event {
  background: color-mix(in srgb, var(--accent-dim) 70%, transparent);
}

.calendar-day.has-event small {
  color: var(--accent);
}

.compact-grid .calendar-day {
  min-height: calc(58px * var(--element-scale));
}

.agenda-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.agenda-list.compact {
  gap: 10px;
}

.agenda-item {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.agenda-item:last-child {
  border-bottom: 0;
}

.agenda-hour {
  color: var(--accent);
  font-weight: 650;
  font-size: calc(13px * var(--text-scale));
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.agenda-content strong {
  display: block;
  color: var(--text-1);
  font-size: calc(15px * var(--text-scale));
  margin-bottom: 4px;
}

.agenda-content p {
  color: var(--text-2);
  font-size: calc(13px * var(--text-scale));
  line-height: 1.5;
}

.compact-calendar-side {
  align-content: start;
}

.calendar-detail-head {
  display: grid;
  gap: 6px;
}

.calendar-detail-day {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: calc(12px * var(--text-scale));
  font-weight: 650;
  letter-spacing: .04em;
}

.modal {
  width: min(100%, 560px);
  padding: 24px;
}

.modal-lg {
  width: min(100%, 720px);
}

.modal-sm {
  width: min(100%, 440px);
}

.modal-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(248,113,113,.08);
  border: 1px solid rgba(248,113,113,.22);
  color: var(--text-2);
}

.modal-note > span,
.alert > span:first-child,
.toast-icon-wrap {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.alert {
  gap: 12px;
  padding: 16px 18px 16px 20px;
}

.alert svg {
  width: 22px;
  height: 22px;
}

.toast-container {
  gap: 10px;
  width: min(420px, calc(100vw - 24px));
}

.toast {
  position: relative;
  gap: 12px;
  padding: 16px 18px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-14px) scale(.97);
  transition: opacity .24s ease, transform .28s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(10px) scale(.98);
}

.toast-copy {
  display: grid;
  gap: 2px;
  flex: 1;
}

.toast-copy strong {
  color: var(--text-1);
  font-size: calc(14px * var(--text-scale));
}

.toast-copy span {
  color: var(--text-2);
  font-size: calc(13px * var(--text-scale));
  line-height: 1.45;
}

.toast-icon-wrap {
  color: currentColor;
}

.toast-close {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
}

.toast-close:hover {
  background: var(--surface-2);
  color: var(--text-1);
}

.toast-close .icon {
  width: 16px;
  height: 16px;
}

.toast-progress {
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, currentColor, color-mix(in srgb, currentColor 40%, transparent));
  transform-origin: left;
  animation: toast-progress 3.6s linear forwards;
  opacity: .42;
}

@keyframes toast-progress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.action-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.action-chip-row .btn {
  width: auto;
  min-height: calc(40px * var(--element-scale));
  padding-inline: 14px;
  border-radius: 999px;
}

.scale-control {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.settings-preview {
  gap: 18px;
}

.preview-shell {
  display: grid;
  grid-template-columns: minmax(88px, 20%) 1fr;
  gap: 12px;
  min-height: 190px;
}

.preview-sidebar,
.preview-main {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 14px;
}

.preview-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
}

.preview-pill,
.preview-header,
.preview-card {
  border-radius: 999px;
  background: var(--surface-3);
}

.preview-pill {
  height: 14px;
}

.preview-pill.accent {
  background: var(--accent);
}

.preview-header {
  height: 24px;
  width: 52%;
}

.preview-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.preview-card {
  min-height: 88px;
  border-radius: 18px;
  background: var(--surface-2);
}

.card-accent {
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-rgb), 0.08)),
    var(--card-bg);
  border-color: var(--accent-border);
}

.settings-swatch-grid {
  gap: 12px;
}

.theme-swatch,
.color-swatch-btn {
  min-height: 88px;
}

:root[data-ui-mode="simplified"] {
  --font-display: "Segoe UI", Tahoma, Arial, sans-serif;
  --font-body: "Segoe UI", Tahoma, Arial, sans-serif;
  --r-xs: 4px;
  --r-sm: 6px;
  --r: 8px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-xl: 14px;
  --r-2xl: 16px;
  --accent-dim: rgba(var(--accent-rgb), 0.08);
  --accent-soft: rgba(var(--accent-rgb), 0.05);
  --accent-border: rgba(var(--accent-rgb), 0.18);
}

:root[data-theme="dark"][data-ui-mode="simplified"] {
  --bg: #ecf0f5;
  --bg-2: #f4f6f9;
  --bg-3: #ffffff;
  --surface: #f8f9fb;
  --surface-2: #ffffff;
  --surface-3: #e9ecef;
  --surface-4: rgba(var(--accent-rgb), 0.10);
  --border: #dee2e6;
  --border-2: #cfd6dd;
  --border-3: #b7c1cb;
  --text-1: #2f3b47;
  --text-2: #64707d;
  --text-3: #8a95a1;
  --text-4: #a9b3bd;
  --sidebar-bg: #343a40;
  --topbar-bg: rgba(255,255,255,0.98);
  --card-bg: #ffffff;
  --input-bg: #ffffff;
  --input-bg-focus: #ffffff;
  --shadow-sm: 0 1px 2px rgba(31, 45, 61, 0.08);
  --shadow: 0 2px 6px rgba(31, 45, 61, 0.10);
  --shadow-lg: 0 10px 24px rgba(31, 45, 61, 0.12);
  --shadow-accent: 0 2px 6px rgba(var(--accent-rgb), 0.12);
  --accent-dim: rgba(var(--accent-rgb), 0.10);
  --accent-soft: rgba(var(--accent-rgb), 0.10);
  --accent-border: rgba(var(--accent-rgb), 0.20);
  --mica: linear-gradient(180deg, #eef2f6 0%, #e8edf3 100%);
}

:root[data-theme="light"][data-ui-mode="simplified"] body {
  --bg: #eef2f6;
  --bg-2: #f7f9fc;
  --bg-3: #ffffff;
  --surface: rgba(255,255,255,0.90);
  --surface-2: rgba(255,255,255,0.98);
  --surface-3: rgba(239, 243, 248, 0.96);
  --surface-4: rgba(var(--accent-rgb), 0.10);
  --border: rgba(60, 72, 88, 0.10);
  --border-2: rgba(60, 72, 88, 0.14);
  --border-3: rgba(var(--accent-rgb), 0.20);
  --text-1: #18161f;
  --text-2: rgba(24,22,31,0.76);
  --text-3: rgba(24,22,31,0.54);
  --text-4: rgba(24,22,31,0.28);
  --sidebar-bg: rgba(247, 250, 253, 0.97);
  --topbar-bg: rgba(245, 248, 252, 0.94);
  --card-bg: rgba(255,255,255,0.92);
  --input-bg: rgba(255,255,255,0.96);
  --input-bg-focus: rgba(255,255,255,1);
  --shadow-sm: 0 8px 24px rgba(54, 68, 84, 0.06);
  --shadow: 0 18px 44px rgba(54, 68, 84, 0.10);
  --shadow-lg: 0 28px 72px rgba(54, 68, 84, 0.14);
  --shadow-accent: 0 14px 34px rgba(var(--accent-rgb), 0.14);
  --accent-dim: rgba(var(--accent-rgb), 0.12);
  --accent-soft: rgba(var(--accent-rgb), 0.06);
  --accent-border: rgba(var(--accent-rgb), 0.22);
  --mica:
    radial-gradient(560px 420px at 10% -12%, rgba(221, 229, 240, 0.52), transparent 72%),
    radial-gradient(520px 360px at 92% 10%, rgba(var(--accent-rgb), 0.08), transparent 72%),
    radial-gradient(380px 280px at 52% 100%, rgba(223, 232, 243, 0.42), transparent 74%),
    linear-gradient(180deg, rgba(255,255,255,0.42), rgba(238,242,246,0.18));
  color: var(--text-1);
  font-family: var(--font-body);
}

:root[data-theme="light"][data-ui-mode="simplified"] body::before {
  opacity: .32;
}

:root[data-theme="light"][data-ui-mode="simplified"] .topbar {
  background: var(--topbar-bg);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(31, 45, 61, 0.04);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

:root[data-theme="light"][data-ui-mode="simplified"] .card,
:root[data-theme="light"][data-ui-mode="simplified"] .surface-panel,
:root[data-theme="light"][data-ui-mode="simplified"] .modal,
:root[data-theme="light"][data-ui-mode="simplified"] .admin-settings-panel,
:root[data-theme="light"][data-ui-mode="simplified"] .dropdown-menu,
:root[data-theme="light"][data-ui-mode="simplified"] .toast,
:root[data-theme="light"][data-ui-mode="simplified"] .acrylic-list,
:root[data-theme="light"][data-ui-mode="simplified"] .table-wrap {
  background: var(--card-bg);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

:root[data-theme="light"][data-ui-mode="simplified"] .hero-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

:root[data-theme="light"][data-ui-mode="simplified"] .page-home .welcome-banner {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

:root[data-theme="light"][data-ui-mode="simplified"] .hero-eyebrow {
  color: var(--accent);
  letter-spacing: .1em;
}

:root[data-theme="light"][data-ui-mode="simplified"] .hero-title span {
  color: var(--text-1);
}

:root[data-theme="light"][data-ui-mode="simplified"] .topbar-title,
:root[data-theme="light"][data-ui-mode="simplified"] .card-title,
:root[data-theme="light"][data-ui-mode="simplified"] .card-title-sm,
:root[data-theme="light"][data-ui-mode="simplified"] .hero-title,
:root[data-theme="light"][data-ui-mode="simplified"] .modal-title,
:root[data-theme="light"][data-ui-mode="simplified"] .sb-app-name {
  font-family: var(--font-body);
  letter-spacing: 0;
}

:root[data-theme="light"][data-ui-mode="simplified"] .hero-title {
  font-size: clamp(calc(26px * var(--text-scale)), 3vw, calc(34px * var(--text-scale)));
  line-height: 1.2;
  max-width: 18ch;
}

:root[data-theme="light"][data-ui-mode="simplified"] .hero-subtitle,
:root[data-theme="light"][data-ui-mode="simplified"] .topbar-subtitle {
  color: var(--text-2);
}

:root[data-theme="light"][data-ui-mode="simplified"] .card,
:root[data-theme="light"][data-ui-mode="simplified"] .surface-panel,
:root[data-theme="light"][data-ui-mode="simplified"] .modal,
:root[data-theme="light"][data-ui-mode="simplified"] .admin-settings-panel,
:root[data-theme="light"][data-ui-mode="simplified"] .dropdown-menu,
:root[data-theme="light"][data-ui-mode="simplified"] .toast,
:root[data-theme="light"][data-ui-mode="simplified"] .acrylic-list,
:root[data-theme="light"][data-ui-mode="simplified"] .table-wrap,
:root[data-theme="light"][data-ui-mode="simplified"] .hero-panel,
:root[data-theme="light"][data-ui-mode="simplified"] .stat-card,
:root[data-theme="light"][data-ui-mode="simplified"] .schedule-card,
:root[data-theme="light"][data-ui-mode="simplified"] .quick-card,
:root[data-theme="light"][data-ui-mode="simplified"] .calendar-day,
:root[data-theme="light"][data-ui-mode="simplified"] .preview-sidebar,
:root[data-theme="light"][data-ui-mode="simplified"] .preview-main,
:root[data-theme="light"][data-ui-mode="simplified"] .preview-card {
  border-radius: 6px;
}

:root[data-theme="light"][data-ui-mode="simplified"] .btn-secondary,
:root[data-theme="light"][data-ui-mode="simplified"] .btn-ghost,
:root[data-theme="light"][data-ui-mode="simplified"] .tab,
:root[data-theme="light"][data-ui-mode="simplified"] .settings-choice,
:root[data-theme="light"][data-ui-mode="simplified"] .theme-swatch,
:root[data-theme="light"][data-ui-mode="simplified"] .color-swatch-btn {
  background: #ffffff;
  border-color: var(--border-2);
  box-shadow: none;
}

:root[data-theme="light"][data-ui-mode="simplified"] .btn-secondary:hover,
:root[data-theme="light"][data-ui-mode="simplified"] .btn-ghost:hover,
:root[data-theme="light"][data-ui-mode="simplified"] .tab:hover,
:root[data-theme="light"][data-ui-mode="simplified"] .dropdown-item:hover {
  background: #f1f4f7;
}

:root[data-theme="light"][data-ui-mode="simplified"] .btn {
  border-radius: 4px;
  box-shadow: none;
}

:root[data-theme="light"][data-ui-mode="simplified"] .btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: 1px solid rgba(37,99,235,0.82);
  box-shadow: none;
}

:root[data-theme="light"][data-ui-mode="simplified"] .btn-primary:hover {
  background: linear-gradient(135deg, #4b8ef8, #1f5edd);
}

:root[data-theme="light"][data-ui-mode="simplified"] .input,
:root[data-theme="light"][data-ui-mode="simplified"] .textarea,
:root[data-theme="light"][data-ui-mode="simplified"] .select,
:root[data-theme="light"][data-ui-mode="simplified"] .range-wrap,
:root[data-theme="light"][data-ui-mode="simplified"] .file-input,
:root[data-theme="light"][data-ui-mode="simplified"] .color-field {
  background: var(--input-bg);
  border-color: var(--border-2);
  color: var(--text-1);
  border-radius: 4px;
}

:root[data-theme="light"][data-ui-mode="simplified"] .input:hover,
:root[data-theme="light"][data-ui-mode="simplified"] .textarea:hover,
:root[data-theme="light"][data-ui-mode="simplified"] .select:hover,
:root[data-theme="light"][data-ui-mode="simplified"] .file-input:hover,
:root[data-theme="light"][data-ui-mode="simplified"] .color-field:hover {
  border-color: var(--border-3);
}

:root[data-theme="light"][data-ui-mode="simplified"] .input:focus,
:root[data-theme="light"][data-ui-mode="simplified"] .textarea:focus,
:root[data-theme="light"][data-ui-mode="simplified"] .select:focus {
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

:root[data-theme="light"][data-ui-mode="simplified"] .toggle-track {
  background: #d7dde5;
  border-color: var(--border-2);
}

:root[data-theme="light"][data-ui-mode="simplified"] .toggle-thumb {
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(31, 45, 61, 0.18);
}

:root[data-theme="light"][data-ui-mode="simplified"] .toggle input:checked + .toggle-track {
  background: #28a745;
  border-color: #24963d;
}

:root[data-theme="light"][data-ui-mode="simplified"] .toggle input:checked + .toggle-track .toggle-thumb {
  background: #ffffff;
}

:root[data-theme="light"][data-ui-mode="simplified"] .stat-card,
:root[data-theme="light"][data-ui-mode="simplified"] .schedule-card,
:root[data-theme="light"][data-ui-mode="simplified"] .quick-card {
  background: var(--card-bg);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

:root[data-theme="light"][data-ui-mode="simplified"] .stat-icon,
:root[data-theme="light"][data-ui-mode="simplified"] .list-icon,
:root[data-theme="light"][data-ui-mode="simplified"] .compact-card-icon,
:root[data-theme="light"][data-ui-mode="simplified"] .quick-icon {
  background: #eef3f8;
  border-color: var(--border);
  color: var(--accent);
  box-shadow: none;
  border-radius: 4px;
}

:root[data-theme="light"][data-ui-mode="simplified"] .role-badge {
  box-shadow: none;
  border-width: 1px;
}

:root[data-theme="light"][data-ui-mode="simplified"] .role-badge--colaborador {
  background: #eef2f7;
  border-color: #c7d2de;
  color: #334155;
}

:root[data-theme="light"][data-ui-mode="simplified"] .role-badge--servo {
  background: #ebf8ef;
  border-color: #7dd3a7;
  color: #166534;
}

:root[data-theme="light"][data-ui-mode="simplified"] .role-badge--ajudante {
  background: #e8f8f6;
  border-color: #67e8d8;
  color: #0f766e;
}

:root[data-theme="light"][data-ui-mode="simplified"] .role-badge--colider {
  background: #edf6ff;
  border-color: #7cccf6;
  color: #075985;
}

:root[data-theme="light"][data-ui-mode="simplified"] .role-badge--lider {
  background: #eef1ff;
  border-color: #9fb0ff;
  color: #312e81;
}

:root[data-theme="light"][data-ui-mode="simplified"] .role-badge--coordenador {
  background: #fff7e8;
  border-color: #f4c84e;
  color: #854d0e;
}

:root[data-theme="light"][data-ui-mode="simplified"] .role-badge--superadmin {
  background: #fdf1f7;
  border-color: #f39bc5;
  color: #9d174d;
}

:root[data-theme="light"][data-ui-mode="simplified"] .role-badge--pastor {
  background: #fdefef;
  border-color: #f29c9c;
  color: #8f1d1d;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .role-badge {
  box-shadow: none;
  border-width: 1px;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .role-badge--colaborador {
  background: #eef2f7;
  border-color: #c7d2de;
  color: #334155;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .role-badge--servo {
  background: #ebf8ef;
  border-color: #7dd3a7;
  color: #166534;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .role-badge--ajudante {
  background: #e8f8f6;
  border-color: #67e8d8;
  color: #0f766e;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .role-badge--colider {
  background: #edf6ff;
  border-color: #7cccf6;
  color: #075985;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .role-badge--lider {
  background: #eef1ff;
  border-color: #9fb0ff;
  color: #312e81;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .role-badge--coordenador {
  background: #fff7e8;
  border-color: #f4c84e;
  color: #854d0e;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .role-badge--superadmin {
  background: #fdf1f7;
  border-color: #f39bc5;
  color: #9d174d;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .role-badge--pastor {
  background: #fdefef;
  border-color: #f29c9c;
  color: #8f1d1d;
}

:root[data-theme="light"][data-ui-mode="simplified"] .list-icon.info,
:root[data-theme="light"][data-ui-mode="simplified"] .list-icon.success,
:root[data-theme="light"][data-ui-mode="simplified"] .list-icon.warning,
:root[data-theme="light"][data-ui-mode="simplified"] .list-icon.danger {
  color: #ffffff;
}

:root[data-theme="light"][data-ui-mode="simplified"] .list-item:hover,
:root[data-theme="light"][data-ui-mode="simplified"] .calendar-day:hover {
  background: #f4f7fa;
}

:root[data-theme="light"][data-ui-mode="simplified"] .calendar-day {
  background: #ffffff;
  border-color: var(--border);
}

:root[data-theme="light"][data-ui-mode="simplified"] .calendar-day.today {
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.35);
}

:root[data-theme="light"][data-ui-mode="simplified"] .calendar-day.active,
:root[data-theme="light"][data-ui-mode="simplified"] .calendar-day.has-event {
  background: rgba(var(--accent-rgb), 0.08);
}

:root[data-theme="light"][data-ui-mode="simplified"] .table th {
  background: #f4f6f9;
  color: #64707d;
  border-bottom-color: var(--border-2);
}

:root[data-theme="light"][data-ui-mode="simplified"] .table tr:hover td {
  background: #f8fafc;
}

:root[data-theme="light"][data-ui-mode="simplified"] .alert.info {
  background: rgba(var(--accent-rgb), 0.09);
  border-color: rgba(var(--accent-rgb), 0.18);
}

:root[data-theme="light"][data-ui-mode="simplified"] .alert.success {
  background: rgba(74,222,128,.11);
  border-color: rgba(74,222,128,.22);
}

:root[data-theme="light"][data-ui-mode="simplified"] .alert.warning {
  background: rgba(251,191,36,.12);
  border-color: rgba(251,191,36,.22);
}

:root[data-theme="light"][data-ui-mode="simplified"] .alert.danger {
  background: rgba(248,113,113,.11);
  border-color: rgba(248,113,113,.22);
}

:root[data-theme="light"][data-ui-mode="simplified"] .toast {
  color: var(--text-1);
}

:root[data-theme="light"][data-ui-mode="simplified"] .toast.success .toast-copy strong {
  color: #0f7a45;
}

:root[data-theme="light"][data-ui-mode="simplified"] .toast.info .toast-copy strong {
  color: color-mix(in srgb, var(--accent) 80%, #3a2b22);
}

:root[data-theme="light"][data-ui-mode="simplified"] .toast.danger .toast-copy strong {
  color: #c24141;
}

:root[data-theme="light"][data-ui-mode="simplified"] .preview-sidebar,
:root[data-theme="light"][data-ui-mode="simplified"] .preview-main,
:root[data-theme="light"][data-ui-mode="simplified"] .preview-card {
  background: #ffffff;
  border-color: var(--border);
}

:root[data-theme="light"][data-ui-mode="simplified"] .altaris-sidebar {
  background: var(--sidebar-bg);
  border-right-color: var(--border);
  box-shadow: inset -1px 0 0 rgba(31, 45, 61, 0.04);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

:root[data-theme="light"][data-ui-mode="simplified"] .sb-header {
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0));
  border-bottom-color: var(--border);
}

:root[data-theme="light"][data-ui-mode="simplified"] .sb-theme-row,
:root[data-theme="light"][data-ui-mode="simplified"] .sb-user,
:root[data-theme="light"][data-ui-mode="simplified"] .sb-settings-shortcut {
  background: #ffffff;
  border-color: var(--border);
}

:root[data-theme="light"][data-ui-mode="simplified"] .sb-logo-mark {
  border-radius: 4px;
  box-shadow: none;
}

:root[data-theme="light"][data-ui-mode="simplified"] .sb-mode-switch {
  background: #e9eef4;
  border-color: var(--border);
  border-radius: 4px;
}

:root[data-theme="light"][data-ui-mode="simplified"] .sb-mode-btn {
  border-radius: 3px;
}

:root[data-theme="light"][data-ui-mode="simplified"] .sb-mode-btn.active {
  background: #ffffff;
  box-shadow: none;
  border-color: var(--border);
}

:root[data-theme="light"][data-ui-mode="simplified"] .sb-group-label {
  color: #6b7785;
}

:root[data-theme="light"][data-ui-mode="simplified"] .sb-link,
:root[data-theme="light"][data-ui-mode="simplified"] .sb-sublink,
:root[data-theme="light"][data-ui-mode="simplified"] .sb-parent-toggle,
:root[data-theme="light"][data-ui-mode="simplified"] .sb-footer-link {
  border-radius: 4px;
}

:root[data-theme="light"][data-ui-mode="simplified"] .sb-link:hover,
:root[data-theme="light"][data-ui-mode="simplified"] .sb-sublink:hover,
:root[data-theme="light"][data-ui-mode="simplified"] .sb-parent-toggle:hover,
:root[data-theme="light"][data-ui-mode="simplified"] .sb-footer-link:hover {
  background: #eaf0f6;
}

:root[data-theme="light"][data-ui-mode="simplified"] .sb-link.active,
:root[data-theme="light"][data-ui-mode="simplified"] .sb-sublink.active,
:root[data-theme="light"][data-ui-mode="simplified"] .sb-parent-toggle.active,
:root[data-theme="light"][data-ui-mode="simplified"] .sb-footer-link.active {
  background: rgba(var(--accent-rgb), 0.10);
  color: color-mix(in srgb, var(--accent) 78%, #1f2d3d);
}

:root[data-theme="light"][data-ui-mode="simplified"] .table-wrap {
  border-radius: 6px;
}

:root[data-theme="light"][data-ui-mode="simplified"] .table td {
  border-bottom-color: #e5ebf1;
}

:root[data-theme="light"][data-ui-mode="simplified"] .stat-value {
  color: #1f2d3d;
}

:root[data-theme="light"][data-ui-mode="simplified"] .stat-trend.up,
:root[data-theme="light"][data-ui-mode="simplified"] .stat-trend.down,
:root[data-theme="light"][data-ui-mode="simplified"] .chip,
:root[data-theme="light"][data-ui-mode="simplified"] .chip.accent,
:root[data-theme="light"][data-ui-mode="simplified"] .calendar-detail-day {
  border-radius: 4px;
}

:root[data-theme="light"][data-ui-mode="simplified"] .quick-card:hover,
:root[data-theme="light"][data-ui-mode="simplified"] .schedule-card:hover,
:root[data-theme="light"][data-ui-mode="simplified"] .stat-card:hover {
  transform: none;
  box-shadow: var(--shadow);
}

:root[data-theme="light"][data-ui-mode="simplified"] .modal-note,
:root[data-theme="light"][data-ui-mode="simplified"] .scale-control {
  border-radius: 6px;
}

:root[data-theme="dark"][data-ui-mode="simplified"] body {
  color: var(--text-1);
  font-family: var(--font-body);
}

:root[data-theme="dark"][data-ui-mode="simplified"] body::before {
  opacity: .18;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .topbar {
  background: var(--topbar-bg);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 2px rgba(31, 45, 61, 0.06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .card,
:root[data-theme="dark"][data-ui-mode="simplified"] .surface-panel,
:root[data-theme="dark"][data-ui-mode="simplified"] .modal,
:root[data-theme="dark"][data-ui-mode="simplified"] .admin-settings-panel,
:root[data-theme="dark"][data-ui-mode="simplified"] .dropdown-menu,
:root[data-theme="dark"][data-ui-mode="simplified"] .toast,
:root[data-theme="dark"][data-ui-mode="simplified"] .acrylic-list,
:root[data-theme="dark"][data-ui-mode="simplified"] .table-wrap {
  background: var(--card-bg);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .hero-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

:root[data-theme="dark"][data-ui-mode="simplified"] .page-home .welcome-banner {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

:root[data-theme="dark"][data-ui-mode="simplified"] .hero-eyebrow {
  color: var(--accent);
  letter-spacing: .1em;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .hero-title span {
  color: var(--text-1);
}

:root[data-theme="dark"][data-ui-mode="simplified"] .topbar-title,
:root[data-theme="dark"][data-ui-mode="simplified"] .card-title,
:root[data-theme="dark"][data-ui-mode="simplified"] .card-title-sm,
:root[data-theme="dark"][data-ui-mode="simplified"] .hero-title,
:root[data-theme="dark"][data-ui-mode="simplified"] .modal-title,
:root[data-theme="dark"][data-ui-mode="simplified"] .sb-app-name {
  font-family: var(--font-body);
  letter-spacing: 0;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .hero-title {
  font-size: clamp(calc(26px * var(--text-scale)), 3vw, calc(34px * var(--text-scale)));
  line-height: 1.2;
  max-width: 18ch;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .hero-subtitle,
:root[data-theme="dark"][data-ui-mode="simplified"] .topbar-subtitle {
  color: var(--text-2);
}

:root[data-theme="dark"][data-ui-mode="simplified"] .card,
:root[data-theme="dark"][data-ui-mode="simplified"] .surface-panel,
:root[data-theme="dark"][data-ui-mode="simplified"] .modal,
:root[data-theme="dark"][data-ui-mode="simplified"] .admin-settings-panel,
:root[data-theme="dark"][data-ui-mode="simplified"] .dropdown-menu,
:root[data-theme="dark"][data-ui-mode="simplified"] .toast,
:root[data-theme="dark"][data-ui-mode="simplified"] .acrylic-list,
:root[data-theme="dark"][data-ui-mode="simplified"] .table-wrap,
:root[data-theme="dark"][data-ui-mode="simplified"] .hero-panel,
:root[data-theme="dark"][data-ui-mode="simplified"] .stat-card,
:root[data-theme="dark"][data-ui-mode="simplified"] .schedule-card,
:root[data-theme="dark"][data-ui-mode="simplified"] .quick-card,
:root[data-theme="dark"][data-ui-mode="simplified"] .calendar-day,
:root[data-theme="dark"][data-ui-mode="simplified"] .preview-sidebar,
:root[data-theme="dark"][data-ui-mode="simplified"] .preview-main,
:root[data-theme="dark"][data-ui-mode="simplified"] .preview-card {
  border-radius: 6px;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .btn-secondary,
:root[data-theme="dark"][data-ui-mode="simplified"] .btn-ghost,
:root[data-theme="dark"][data-ui-mode="simplified"] .tab,
:root[data-theme="dark"][data-ui-mode="simplified"] .settings-choice,
:root[data-theme="dark"][data-ui-mode="simplified"] .theme-swatch,
:root[data-theme="dark"][data-ui-mode="simplified"] .color-swatch-btn {
  background: #ffffff;
  border-color: var(--border-2);
  color: var(--text-1);
  box-shadow: none;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .settings-choice,
:root[data-theme="dark"][data-ui-mode="simplified"] .theme-swatch-label,
:root[data-theme="dark"][data-ui-mode="simplified"] .color-swatch-btn span {
  color: var(--text-1);
}

:root[data-theme="dark"][data-ui-mode="simplified"] .settings-choice.active,
:root[data-theme="dark"][data-ui-mode="simplified"] .theme-swatch.active .theme-swatch-label,
:root[data-theme="dark"][data-ui-mode="simplified"] .color-swatch-btn.active span {
  color: var(--accent-strong);
}

:root[data-theme="dark"][data-ui-mode="simplified"] .btn-secondary:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] .btn-ghost:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] .tab:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] .dropdown-item:hover {
  background: #eef2f6;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .btn {
  border-radius: 4px;
  box-shadow: none;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: 1px solid rgba(37,99,235,0.82);
  box-shadow: none;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .btn-primary:hover {
  background: linear-gradient(135deg, #4b8ef8, #1f5edd);
}

:root[data-theme="dark"][data-ui-mode="simplified"] .input,
:root[data-theme="dark"][data-ui-mode="simplified"] .textarea,
:root[data-theme="dark"][data-ui-mode="simplified"] .select,
:root[data-theme="dark"][data-ui-mode="simplified"] .range-wrap,
:root[data-theme="dark"][data-ui-mode="simplified"] .file-input,
:root[data-theme="dark"][data-ui-mode="simplified"] .color-field {
  background: var(--input-bg);
  border-color: var(--border-2);
  color: var(--text-1);
  border-radius: 4px;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .input:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] .textarea:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] .select:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] .file-input:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] .color-field:hover {
  border-color: var(--border-3);
}

:root[data-theme="dark"][data-ui-mode="simplified"] .input:focus,
:root[data-theme="dark"][data-ui-mode="simplified"] .textarea:focus,
:root[data-theme="dark"][data-ui-mode="simplified"] .select:focus {
  border-color: rgba(var(--accent-rgb), 0.58);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}

:root[data-theme="dark"] .input,
:root[data-theme="dark"] .textarea,
:root[data-theme="dark"] .select,
:root[data-theme="dark"] select,
:root[data-theme="dark"] option {
  color-scheme: dark;
}

:root[data-theme="dark"] select,
:root[data-theme="dark"] .input[type="date"] {
  background-color: var(--input-bg);
  color: var(--text-1);
}

:root[data-theme="dark"] option {
  background: #252A35;
  color: #f5f7fb;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .toggle-track {
  background: #495460;
  border-color: rgba(255,255,255,0.10);
}

:root[data-theme="dark"][data-ui-mode="simplified"] .toggle-thumb {
  background: #e8edf2;
  box-shadow: 0 1px 2px rgba(31,38,54,0.18);
}

:root[data-theme="dark"][data-ui-mode="simplified"] .toggle input:checked + .toggle-track {
  background: #28a745;
  border-color: #24963d;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .toggle input:checked + .toggle-track .toggle-thumb {
  background: #ffffff;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .stat-card,
:root[data-theme="dark"][data-ui-mode="simplified"] .schedule-card,
:root[data-theme="dark"][data-ui-mode="simplified"] .quick-card {
  background: var(--card-bg);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

:root[data-theme="dark"][data-ui-mode="simplified"] .stat-icon,
:root[data-theme="dark"][data-ui-mode="simplified"] .list-icon,
:root[data-theme="dark"][data-ui-mode="simplified"] .compact-card-icon,
:root[data-theme="dark"][data-ui-mode="simplified"] .quick-icon {
  background: #eef2f6;
  border-color: var(--border);
  color: var(--accent);
  box-shadow: none;
  border-radius: 4px;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .list-icon.info,
:root[data-theme="dark"][data-ui-mode="simplified"] .list-icon.success,
:root[data-theme="dark"][data-ui-mode="simplified"] .list-icon.warning,
:root[data-theme="dark"][data-ui-mode="simplified"] .list-icon.danger {
  color: #ffffff;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .list-item:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] .calendar-day:hover {
  background: #f1f4f7;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .calendar-day {
  background: #ffffff;
  border-color: var(--border);
}

:root[data-theme="dark"][data-ui-mode="simplified"] .calendar-day.today {
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.45);
}

:root[data-theme="dark"][data-ui-mode="simplified"] .calendar-day.active,
:root[data-theme="dark"][data-ui-mode="simplified"] .calendar-day.has-event {
  background: rgba(var(--accent-rgb), 0.16);
}

:root[data-theme="dark"][data-ui-mode="simplified"] .table th {
  background: #f4f6f9;
  color: #6c7a86;
  border-bottom-color: var(--border-2);
}

:root[data-theme="dark"][data-ui-mode="simplified"] .table tr:hover td {
  background: #f8fafc;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .toast {
  color: var(--text-1);
}

:root[data-theme="dark"][data-ui-mode="simplified"] .preview-sidebar,
:root[data-theme="dark"][data-ui-mode="simplified"] .preview-main,
:root[data-theme="dark"][data-ui-mode="simplified"] .preview-card {
  background: var(--card-bg);
  border-color: var(--border);
}

:root[data-theme="dark"][data-ui-mode="simplified"] .altaris-sidebar {
  background: var(--sidebar-bg);
  border-right-color: rgba(255,255,255,0.06);
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.04);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .sb-header {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  border-bottom-color: rgba(255,255,255,0.06);
}

:root[data-theme="dark"][data-ui-mode="simplified"] .sb-theme-row,
:root[data-theme="dark"][data-ui-mode="simplified"] .sb-user,
:root[data-theme="dark"][data-ui-mode="simplified"] .sb-settings-shortcut,
:root[data-theme="dark"][data-ui-mode="simplified"] .sb-switch-card {
  background: #3b434b;
  border-color: rgba(255,255,255,0.08);
}

:root[data-theme="dark"][data-ui-mode="simplified"] .sb-footer-links,
:root[data-theme="light"][data-ui-mode="simplified"] .sb-footer-links {
  background: var(--surface);
  border-color: var(--border);
}

:root[data-theme="dark"][data-ui-mode="simplified"] .sb-logo-mark {
  border-radius: 4px;
  box-shadow: none;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .sb-mode-switch {
  background: #3f474f;
  border-color: rgba(255,255,255,0.08);
  border-radius: 4px;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .sb-mode-btn {
  border-radius: 3px;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .sb-mode-btn.active {
  background: #4a545d;
  box-shadow: none;
  border-color: rgba(255,255,255,0.10);
}

:root[data-theme="dark"][data-ui-mode="simplified"] .sb-group-label {
  color: rgba(255,255,255,0.50);
}

:root[data-theme="dark"][data-ui-mode="simplified"] .sb-app-name,
:root[data-theme="dark"][data-ui-mode="simplified"] .sb-ministry,
:root[data-theme="dark"][data-ui-mode="simplified"] .sb-switch-title,
:root[data-theme="dark"][data-ui-mode="simplified"] .sb-switch-sub,
:root[data-theme="dark"][data-ui-mode="simplified"] .sb-mode-btn,
:root[data-theme="dark"][data-ui-mode="simplified"] .sb-link,
:root[data-theme="dark"][data-ui-mode="simplified"] .sb-sublink,
:root[data-theme="dark"][data-ui-mode="simplified"] .sb-parent-toggle,
:root[data-theme="dark"][data-ui-mode="simplified"] .sb-footer-link {
  color: rgba(255,255,255,0.82);
}

:root[data-theme="dark"][data-ui-mode="simplified"] .sb-switch-sub,
:root[data-theme="dark"][data-ui-mode="simplified"] .sb-ministry {
  color: rgba(255,255,255,0.56);
}

:root[data-theme="dark"][data-ui-mode="simplified"] .sb-footer {
  border-top-color: rgba(255,255,255,0.06);
}

:root[data-theme="dark"][data-ui-mode="simplified"] .sb-link,
:root[data-theme="dark"][data-ui-mode="simplified"] .sb-sublink,
:root[data-theme="dark"][data-ui-mode="simplified"] .sb-parent-toggle,
:root[data-theme="dark"][data-ui-mode="simplified"] .sb-footer-link {
  border-radius: 4px;
}


:root[data-theme="dark"][data-ui-mode="simplified"] .sb-link:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] .sb-sublink:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] .sb-parent-toggle:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] .sb-footer-link:hover {
  background: #3f474f;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .sb-link.active,
:root[data-theme="dark"][data-ui-mode="simplified"] .sb-sublink.active,
:root[data-theme="dark"][data-ui-mode="simplified"] .sb-parent-toggle.active,
:root[data-theme="dark"][data-ui-mode="simplified"] .sb-footer-link.active {
  background: var(--accent);
  color: #ffffff;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .table-wrap {
  border-radius: 6px;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .table td {
  border-bottom-color: #e6ebf1;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .stat-value {
  color: #2f3b47;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .stat-trend.up,
:root[data-theme="dark"][data-ui-mode="simplified"] .stat-trend.down,
:root[data-theme="dark"][data-ui-mode="simplified"] .chip,
:root[data-theme="dark"][data-ui-mode="simplified"] .chip.accent,
:root[data-theme="dark"][data-ui-mode="simplified"] .calendar-detail-day,
:root[data-theme="dark"][data-ui-mode="simplified"] .modal-note,
:root[data-theme="dark"][data-ui-mode="simplified"] .scale-control {
  border-radius: 4px;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .quick-card:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] .schedule-card:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] .stat-card:hover {
  transform: none;
  box-shadow: var(--shadow);
}

:root[data-ui-mode="simplified"] .stat-trend,
:root[data-ui-mode="simplified"] .badge,
:root[data-ui-mode="simplified"] .tag,
:root[data-ui-mode="simplified"] .kbd,
:root[data-ui-mode="simplified"] .tab,
:root[data-ui-mode="simplified"] .settings-choice,
:root[data-ui-mode="simplified"] .file-input-button,
:root[data-ui-mode="simplified"] .theme-swatch-preview,
:root[data-ui-mode="simplified"] .preview-pill,
:root[data-ui-mode="simplified"] .preview-header {
  border-radius: 4px;
}

:root[data-ui-mode="simplified"] .stat-trend {
  padding: 5px 10px;
  border: 1px solid var(--border);
  box-shadow: none;
}

:root[data-ui-mode="simplified"] .stat-trend.up {
  color: #2e6b3f;
  background: rgba(40, 167, 69, 0.08);
  border-color: rgba(40, 167, 69, 0.18);
}

:root[data-ui-mode="simplified"] .stat-trend.down {
  color: #8f3d47;
  background: rgba(220, 53, 69, 0.08);
  border-color: rgba(220, 53, 69, 0.18);
}

:root[data-ui-mode="simplified"] .chip,
:root[data-ui-mode="simplified"] .badge,
:root[data-ui-mode="simplified"] .tag {
  box-shadow: none;
}

:root[data-ui-mode="simplified"] .chip {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-2);
}

:root[data-ui-mode="simplified"] .chip.accent {
  color: color-mix(in srgb, var(--accent) 52%, var(--text-1));
  background: rgba(var(--accent-rgb), 0.08);
  border-color: rgba(var(--accent-rgb), 0.16);
}

:root[data-ui-mode="simplified"] .chip.green {
  color: #2e6b3f;
  background: rgba(40, 167, 69, 0.08);
  border-color: rgba(40, 167, 69, 0.16);
}

:root[data-ui-mode="simplified"] .chip.yellow {
  color: #8a6a18;
  background: rgba(255, 193, 7, 0.08);
  border-color: rgba(255, 193, 7, 0.16);
}

:root[data-ui-mode="simplified"] .chip.red {
  color: #8f3d47;
  background: rgba(220, 53, 69, 0.08);
  border-color: rgba(220, 53, 69, 0.16);
}

:root[data-ui-mode="simplified"] .chip.orange {
  color: #8b5a2b;
  background: rgba(253, 126, 20, 0.08);
  border-color: rgba(253, 126, 20, 0.16);
}

:root[data-ui-mode="simplified"] .badge {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
}

:root[data-ui-mode="simplified"] .badge.accent {
  background: rgba(var(--accent-rgb), 0.08);
  color: color-mix(in srgb, var(--accent) 52%, var(--text-1));
}

:root[data-ui-mode="simplified"] .badge.green {
  background: rgba(40, 167, 69, 0.08);
  color: #2e6b3f;
}

:root[data-ui-mode="simplified"] .badge.yellow {
  background: rgba(255, 193, 7, 0.08);
  color: #8a6a18;
}

:root[data-ui-mode="simplified"] .badge.red {
  background: rgba(220, 53, 69, 0.08);
  color: #8f3d47;
}

:root[data-ui-mode="simplified"] .tag {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
}

:root[data-ui-mode="simplified"] .tag-close {
  border-radius: 4px;
  background: var(--surface-3);
}

:root[data-ui-mode="simplified"] .notice-empty,
:root[data-ui-mode="simplified"] .code-demo,
:root[data-ui-mode="simplified"] .token-card,
:root[data-ui-mode="simplified"] .pattern-card,
:root[data-ui-mode="simplified"] .settings-section,
:root[data-ui-mode="simplified"] .tab-panel,
:root[data-ui-mode="simplified"] .acrylic-list {
  border-radius: 6px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

:root[data-ui-mode="simplified"] .notice-empty,
:root[data-ui-mode="simplified"] .code-demo,
:root[data-ui-mode="simplified"] .token-card,
:root[data-ui-mode="simplified"] .pattern-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
}

:root[data-ui-mode="simplified"] .tab-panel,
:root[data-ui-mode="simplified"] .settings-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
}

:root[data-ui-mode="simplified"] .tab.active,
:root[data-ui-mode="simplified"] .settings-choice.active,
:root[data-ui-mode="simplified"] .theme-swatch.active,
:root[data-ui-mode="simplified"] .color-swatch-btn.active {
  box-shadow: none;
}

:root[data-ui-mode="simplified"] .progress {
  border-radius: 4px;
  background: var(--surface-3);
}

:root[data-ui-mode="simplified"] .progress > span {
  border-radius: 4px;
}

:root[data-ui-mode="simplified"] .skeleton {
  background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3));
  background-size: 220% 100%;
}

:root[data-ui-mode="simplified"] .dropdown-menu {
  border-radius: 6px;
}

:root[data-ui-mode="simplified"] .dropdown-item {
  min-height: 40px;
  border-radius: 4px;
}

:root[data-ui-mode="simplified"] .dropdown-divider,
:root[data-ui-mode="simplified"] .divider {
  background: var(--border);
}

:root[data-ui-mode="simplified"] .check-input,
:root[data-ui-mode="simplified"] .radio-input {
  background: var(--surface-2);
  border-color: var(--border-2);
  box-shadow: none;
}

:root[data-ui-mode="simplified"] .check-input {
  border-radius: 4px;
}

:root[data-ui-mode="simplified"] .radio-input {
  border-radius: 999px;
}

:root[data-ui-mode="simplified"] .check-input:checked,
:root[data-ui-mode="simplified"] .radio-input:checked {
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.08);
}

:root[data-ui-mode="simplified"] .file-input {
  border-style: solid;
  border-radius: 6px;
}

:root[data-ui-mode="simplified"] .file-input-button {
  border: 1px solid var(--border);
  background: var(--surface-3);
}

:root[data-ui-mode="simplified"] .color-chip,
:root[data-ui-mode="simplified"] .color-input::-webkit-color-swatch {
  border-radius: 4px;
}

:root[data-ui-mode="simplified"] .acrylic-list {
  background: var(--card-bg);
  border: 1px solid var(--border);
}

:root[data-ui-mode="simplified"] .list-item {
  padding: 16px 18px;
}

:root[data-ui-mode="simplified"] .list-icon,
:root[data-ui-mode="simplified"] .compact-card-icon {
  border-radius: 4px;
  box-shadow: none;
  background: var(--surface-3);
  border-color: var(--border);
  color: color-mix(in srgb, var(--accent) 45%, var(--text-1));
}

:root[data-ui-mode="simplified"] .list-icon.accent,
:root[data-ui-mode="simplified"] .compact-card-icon {
  background: rgba(var(--accent-rgb), 0.08);
  border-color: rgba(var(--accent-rgb), 0.14);
}

:root[data-ui-mode="simplified"] .list-icon.green {
  background: rgba(40, 167, 69, 0.08);
  border-color: rgba(40, 167, 69, 0.14);
}

:root[data-ui-mode="simplified"] .list-icon.accent svg {
  fill: color-mix(in srgb, var(--accent) 52%, var(--text-1));
}

:root[data-ui-mode="simplified"] .list-icon.green svg {
  fill: #2e6b3f;
}

:root[data-ui-mode="simplified"] .list-title,
:root[data-ui-mode="simplified"] .timeline-title,
:root[data-ui-mode="simplified"] .sc-title {
  font-weight: 650;
  letter-spacing: 0;
}

:root[data-ui-mode="simplified"] .timeline::before {
  background: var(--border);
}

:root[data-ui-mode="simplified"] .timeline-dot {
  border-color: var(--bg-3);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

:root[data-ui-mode="simplified"] .timeline-dot.muted {
  background: var(--surface-4);
  border-color: var(--bg-3);
}

:root[data-ui-mode="simplified"] .calendar-shell,
:root[data-ui-mode="simplified"] .calendar-side {
  gap: 14px;
}

:root[data-ui-mode="simplified"] .calendar-toolbar {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

:root[data-ui-mode="simplified"] .calendar-weekdays span {
  letter-spacing: .06em;
  color: var(--text-3);
}

:root[data-ui-mode="simplified"] .calendar-grid {
  gap: 6px;
}

:root[data-ui-mode="simplified"] .calendar-day {
  border-radius: 6px;
  box-shadow: none;
}

:root[data-ui-mode="simplified"] .calendar-day.active,
:root[data-ui-mode="simplified"] .calendar-day.has-event {
  background: rgba(var(--accent-rgb), 0.08);
}

:root[data-ui-mode="simplified"] .agenda-item {
  padding: 12px 0;
  border-bottom-color: var(--border);
}

:root[data-ui-mode="simplified"] .agenda-hour {
  font-weight: 650;
}

:root[data-ui-mode="simplified"] .alert,
:root[data-ui-mode="simplified"] .modal-note,
:root[data-ui-mode="simplified"] .toast {
  border-radius: 6px;
  box-shadow: none;
}

:root[data-ui-mode="simplified"] .alert.info {
  background: rgba(var(--accent-rgb), 0.08);
  border-color: rgba(var(--accent-rgb), 0.16);
  color: color-mix(in srgb, var(--accent) 52%, var(--text-1));
}

:root[data-ui-mode="simplified"] .alert.success {
  background: rgba(40, 167, 69, 0.08);
  border-color: rgba(40, 167, 69, 0.16);
  color: #2e6b3f;
}

:root[data-ui-mode="simplified"] .alert.warning {
  background: rgba(255, 193, 7, 0.08);
  border-color: rgba(255, 193, 7, 0.16);
  color: #8a6a18;
}

:root[data-ui-mode="simplified"] .alert.danger {
  background: rgba(220, 53, 69, 0.08);
  border-color: rgba(220, 53, 69, 0.16);
  color: #8f3d47;
}

:root[data-ui-mode="simplified"] .alert::before {
  width: 3px;
}

:root[data-ui-mode="simplified"] .toast-close {
  border-radius: 4px;
}

:root[data-ui-mode="simplified"] .preview-card {
  border-radius: 6px;
}

:root[data-ui-mode="simplified"] .card,
:root[data-ui-mode="simplified"] .surface-panel,
:root[data-ui-mode="simplified"] .hero-panel,
:root[data-ui-mode="simplified"] .stat-card,
:root[data-ui-mode="simplified"] .schedule-card,
:root[data-ui-mode="simplified"] .quick-card,
:root[data-ui-mode="simplified"] .home-hero,
:root[data-ui-mode="simplified"] .home-card,
:root[data-ui-mode="simplified"] .home-metric-card,
:root[data-ui-mode="simplified"] .home-meta-card,
:root[data-ui-mode="simplified"] .team-hero,
:root[data-ui-mode="simplified"] .team-card,
:root[data-ui-mode="simplified"] .profile-card,
:root[data-ui-mode="simplified"] .scale-card,
:root[data-ui-mode="simplified"] .summary-card,
:root[data-ui-mode="simplified"] .panel-card,
:root[data-ui-mode="simplified"] .ministry-card,
:root[data-ui-mode="simplified"] .volunteers-hero {
  border-radius: 6px;
}

:root[data-ui-mode="simplified"] .hero-panel::before,
:root[data-ui-mode="simplified"] .hero-panel::after {
  display: none;
}

:root[data-ui-mode="simplified"] .hero-title {
  text-shadow: none;
}

:root[data-ui-mode="simplified"] .modal-backdrop,
:root[data-ui-mode="simplified"] .settings-backdrop {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

:root[data-ui-mode="simplified"] .card,
:root[data-ui-mode="simplified"] .surface-panel,
:root[data-ui-mode="simplified"] .modal,
:root[data-ui-mode="simplified"] .admin-settings-panel,
:root[data-ui-mode="simplified"] .dropdown-menu,
:root[data-ui-mode="simplified"] .toast,
:root[data-ui-mode="simplified"] .acrylic-list,
:root[data-ui-mode="simplified"] .table-wrap,
:root[data-ui-mode="simplified"] .hero-panel,
:root[data-ui-mode="simplified"] .stat-card,
:root[data-ui-mode="simplified"] .schedule-card,
:root[data-ui-mode="simplified"] .quick-card,
:root[data-ui-mode="simplified"] .calendar-day,
:root[data-ui-mode="simplified"] .preview-sidebar,
:root[data-ui-mode="simplified"] .preview-main,
:root[data-ui-mode="simplified"] .preview-card {
  box-shadow: none !important;
}

:root[data-ui-mode="simplified"] .hero-panel,
:root[data-ui-mode="simplified"] .page-home .welcome-banner {
  background: var(--card-bg) !important;
  border-top: 1px solid var(--border) !important;
}

:root[data-ui-mode="simplified"] .page-home .welcome-banner::before,
:root[data-ui-mode="simplified"] .page-home .welcome-banner::after {
  display: none !important;
}

:root[data-ui-mode="simplified"] .icon-btn,
:root[data-ui-mode="simplified"] .topbar-hamburger,
:root[data-ui-mode="simplified"] .topbar-action-btn,
:root[data-ui-mode="simplified"] .segmented,
:root[data-ui-mode="simplified"] .segmented button {
  border-radius: 4px;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

:root[data-ui-mode="simplified"] .icon-btn:hover,
:root[data-ui-mode="simplified"] .topbar-hamburger:hover,
:root[data-ui-mode="simplified"] .topbar-action-btn:hover,
:root[data-ui-mode="simplified"] .quick-card:hover,
:root[data-ui-mode="simplified"] .schedule-card:hover,
:root[data-ui-mode="simplified"] .stat-card:hover,
:root[data-ui-mode="simplified"] .card:hover,
:root[data-ui-mode="simplified"] .surface-panel:hover {
  transform: none;
  box-shadow: none !important;
}

:root[data-ui-mode="simplified"] .progress {
  border-radius: 4px;
}

:root[data-ui-mode="simplified"] .progress > span {
  background: var(--accent);
  border-radius: 0;
}

:root[data-ui-mode="simplified"] .skeleton {
  animation: none;
  background: var(--surface-2);
}

:root[data-ui-mode="simplified"] .tab-panel,
:root[data-ui-mode="simplified"] .user-bank-devbar,
:root[data-ui-mode="simplified"] .detail-row,
:root[data-ui-mode="simplified"] .functions-helper,
:root[data-ui-mode="simplified"] .modal-note {
  border-radius: 4px;
  box-shadow: none;
}

:root[data-ui-mode="simplified"] .home-metric-icon,
:root[data-ui-mode="simplified"] .home-quick-icon,
:root[data-ui-mode="simplified"] .stat-icon,
:root[data-ui-mode="simplified"] .quick-icon,
:root[data-ui-mode="simplified"] .list-icon,
:root[data-ui-mode="simplified"] .member-avatar,
:root[data-ui-mode="simplified"] .volunteer-avatar {
  border-radius: 4px;
}

.home-shell {
  display: grid;
  gap: 24px;
}

.home-hero,
.home-card,
.home-metric-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.home-hero {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
}

.home-hero-copy {
  display: grid;
  gap: 10px;
}

.home-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: var(--text-3);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.04;
  letter-spacing: -.04em;
  max-width: 12ch;
}

.home-subtitle {
  max-width: 62ch;
  color: var(--text-2);
  font-size: 15px;
}

.home-hero-meta {
  display: grid;
}

.home-meta-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.home-meta-label {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-meta-card strong {
  color: var(--text-1);
  font-size: 18px;
}

.home-meta-help {
  color: var(--text-3);
  font-size: 13px;
}

.home-section,
.home-layout {
  display: grid;
  gap: 16px;
}

.home-layout {
  grid-template-columns: minmax(0, 1fr);
}

.home-section-head,
.home-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.home-section-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.home-card {
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: 22px;
}

.home-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-metric-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  min-width: 0;
}

.home-metric-icon {
  grid-row: span 3;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
}

.home-metric-icon svg {
  width: 18px;
  height: 18px;
}

.home-metric-label {
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-metric-value {
  color: var(--text-1);
  font-family: var(--font-display);
  font-size: clamp(22px, 3.2vw, 28px);
  line-height: 1;
  letter-spacing: -.04em;
}

.home-metric-note {
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.25;
}

.home-metric-card--wide {
  grid-column: 1 / -1;
}

.admin-home-hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  align-items: stretch;
}

.admin-home-hero .hero-actions {
  margin-top: 2px;
}

.admin-home-meta {
  gap: 10px;
  align-content: stretch;
}

.admin-home-meta .home-meta-card {
  min-height: 0;
  padding: 13px;
  border-radius: 14px;
}

.admin-home-meta .home-meta-card strong {
  font-size: 16px;
  line-height: 1.15;
}

.admin-home-meta .home-meta-help {
  font-size: 12px;
  line-height: 1.35;
}

.home-quick-grid,
.home-pending-list {
  display: grid;
  gap: 12px;
}

.home-quick-link {
  width: 100%;
  min-height: 76px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.home-quick-link:hover {
  transform: translateY(-1px);
  border-color: var(--border-3);
  background: var(--surface-2);
}

.home-quick-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  flex-shrink: 0;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  margin-top: 0;
}

.home-quick-icon svg {
  width: 19px;
  height: 19px;
}

.admin-shortcuts-grid .home-quick-icon {
  color: var(--text-2);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(148, 163, 184, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
}

:root[data-theme="light"] .admin-shortcuts-grid .home-quick-icon {
  color: #334155;
  background: rgba(255, 255, 255, .72);
  border-color: rgba(148, 163, 184, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .84);
}

:root[data-ui-mode="simplified"][data-theme="dark"] .admin-shortcuts-grid .home-quick-icon {
  color: #f8fafc;
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .18);
}

:root[data-ui-mode="simplified"][data-theme="light"] .admin-shortcuts-grid .home-quick-icon {
  color: #111827;
  background: #ffffff;
  border-color: #d1d5db;
}

.home-quick-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.home-quick-copy strong {
  color: var(--text-1);
  font-size: 15px;
}

.home-quick-copy span {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.45;
}

.home-pending-item {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.home-pending-item p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}

.home-pending-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.home-pending-top strong {
  color: var(--text-1);
  font-size: 15px;
  line-height: 1.4;
}

.home-pending-badge {
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-pending-item.priority-high .home-pending-badge {
  color: var(--red);
  background: rgba(248,113,113,.10);
  border-color: rgba(248,113,113,.22);
}

.home-pending-meta {
  display: grid;
  gap: 10px;
}

.home-pending-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 13px;
}

.home-pending-meta svg {
  width: 14px;
  height: 14px;
}

.page-home .hero-panel,
.page-home .stat-card,
.page-home .quick-card,
.page-home .calendar-shell,
.page-home .acrylic-list,
.page-home .table-wrap {
  min-width: 0;
}

.page-home .hero-actions {
  align-items: stretch;
}

.page-home .welcome-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr);
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  border-radius: 26px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.16), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--card-bg) 88%, rgba(var(--accent-rgb), 0.05)) 0%, var(--card-bg) 100%);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.page-home .welcome-banner[hidden] {
  display: none !important;
}

.page-home .welcome-banner-copy {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.page-home .welcome-banner-title {
  margin: 0;
  max-width: 720px;
  font-family: var(--font-display);
  font-size: clamp(calc(24px * var(--text-scale)), 4vw, calc(34px * var(--text-scale)));
  line-height: 1.08;
  letter-spacing: -.04em;
  color: var(--text-1);
}

.page-home .welcome-banner-subtitle {
  margin: 0;
  max-width: 640px;
  color: var(--text-2);
  font-size: calc(14px * var(--text-scale));
  line-height: 1.6;
}

.page-home .welcome-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.page-home .welcome-banner-media {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 176px;
}

.page-home .church-logo-card {
  position: relative;
  width: min(100%, 248px);
  height: 184px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--border) 76%, rgba(var(--accent-rgb), 0.35));
  background: color-mix(in srgb, var(--surface) 86%, rgba(var(--accent-rgb), 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--shadow-sm);
  overflow: hidden;
}

.page-home .church-logo-card::before,
.page-home .church-logo-card::after {
  display: none;
}

.page-home .church-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.page-home .church-logo-placeholder {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  color: var(--text-2);
}

.page-home .church-logo-placeholder[hidden] {
  display: none !important;
}

.page-home .church-logo-placeholder svg {
  width: 42px;
  height: 42px;
  color: rgb(var(--accent-rgb));
}

.page-home .church-logo-placeholder strong {
  color: var(--text-1);
  font-size: calc(15px * var(--text-scale));
}

.page-home .church-logo-placeholder small {
  max-width: 160px;
  font-size: calc(11px * var(--text-scale));
  line-height: 1.35;
}

.page-home .welcome-banner-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
}

.page-home .welcome-banner-close svg {
  width: 18px;
  height: 18px;
}

.page-home .stat-card {
  padding: 18px;
  gap: 8px;
}

.page-home .stat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.page-home .stat-value {
  line-height: .95;
  white-space: nowrap;
}

.page-home .stat-label {
  line-height: 1.35;
  text-wrap: balance;
}

.page-home .stat-trend {
  padding: 5px 10px;
  font-size: calc(12px * var(--text-scale));
}

.page-home .quick-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-home .table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

@media (max-width: 1100px) {
  .card-grid-4,
  .card-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .home-metrics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-home-hero {
    grid-template-columns: 1fr;
  }

  .page-container {
    padding-inline: max(16px, var(--safe-left));
  }

  .main-content {
    margin-left: 0;
  }

  .card-grid-2,
  .card-grid-3,
  .card-grid-4,
  .form-grid,
  .form-grid-2,
  .form-grid-3,
  .quick-grid,
  .preset-grid,
  .preview-card-grid,
  .settings-swatch-grid {
    grid-template-columns: 1fr;
  }

  .calendar-grid {
    gap: 6px;
  }

  .calendar-day {
    min-height: 60px;
  }

  .calendar-toolbar {
    align-items: stretch;
  }

  .calendar-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .page-home .card-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .card-grid-2 {
    grid-template-columns: 1fr;
  }

  .page-home .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 760px) {
  .modal-user-bank {
    width: 100%;
    height: var(--admin-modal-viewport);
    max-height: var(--admin-modal-viewport);
    border-radius: 0;
    padding: 16px;
  }

  .user-bank-devbar {
    grid-template-columns: 1fr 1fr;
  }

  .user-bank-current {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: left;
  }

  .user-bank-layout,
  .modal-user-bank.is-switch-mode .user-bank-layout {
    grid-template-columns: 1fr;
  }

  .modal-user-bank.is-create-mode [data-user-bank-panel="switch"],
  .modal-user-bank:not(.is-switch-mode) [data-user-bank-panel="switch"],
  .modal-user-bank.is-switch-mode [data-user-bank-panel="create"] {
    display: none;
  }

  .user-bank-form-grid {
    grid-template-columns: 1fr;
  }

  .user-bank-list-head,
  .user-bank-user-card,
  .user-bank-user-actions,
  .user-bank-actions {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .home-shell {
    gap: 18px;
  }

  .home-hero,
  .home-card {
    padding: 16px;
    border-radius: 18px;
  }

  .home-title {
    max-width: 100%;
    font-size: clamp(24px, 9vw, 31px);
  }

  .home-subtitle {
    font-size: 13px;
  }

  .home-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-metric-card {
    padding: 10px;
    border-radius: 16px;
  }

  .home-quick-link,
  .home-pending-item {
    min-height: 0;
    padding: 14px;
    border-radius: 16px;
  }

  .home-pending-meta .btn {
    width: 100%;
  }

  body {
    font-size: calc(14px * var(--text-scale));
  }

  .topbar-title {
    font-size: calc(19px * var(--text-scale));
  }

  .topbar-subtitle {
    display: none;
  }

  .hero-title {
    font-size: clamp(calc(28px * var(--text-scale)), 9vw, calc(36px * var(--text-scale)));
  }

  .btn,
  .btn-lg,
  .btn-sm {
    width: 100%;
  }

  .action-chip-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .action-chip-row .btn {
    width: 100%;
  }

  .file-input,
  .color-field {
    align-items: flex-start;
  }

  .agenda-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .agenda-hour {
    font-size: calc(12px * var(--text-scale));
  }

  .page-home .hero-panel {
    padding: 20px;
  }

  .page-home .welcome-banner {
    grid-template-columns: 1fr;
    padding: 18px 18px 14px;
    gap: 8px;
  }

  .page-home .welcome-banner-copy {
    gap: 10px;
  }

  .page-home .welcome-banner-title {
    max-width: 100%;
    font-size: clamp(calc(22px * var(--text-scale)), 7vw, calc(30px * var(--text-scale)));
  }

  .page-home .welcome-banner-subtitle {
    font-size: calc(13px * var(--text-scale));
    line-height: 1.55;
  }

  .page-home .welcome-banner-actions {
    width: 100%;
    gap: 10px;
  }

  .page-home .welcome-banner-actions .btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .page-home .welcome-banner-media {
    order: -1;
    min-height: 112px;
  }

  .page-home .church-logo-card {
    width: min(100%, 210px);
    height: 136px;
  }

  .page-home .hero-title {
    max-width: 100%;
    font-size: clamp(calc(26px * var(--text-scale)), 8vw, calc(34px * var(--text-scale)));
  }

  .page-home .hero-subtitle {
    font-size: calc(13px * var(--text-scale));
  }

  .page-home .card-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .page-home .quick-grid {
    grid-template-columns: 1fr;
  }

  .page-home .stat-card {
    min-height: 172px;
    padding: 16px;
    gap: 12px;
    border-radius: 20px;
    align-content: space-between;
  }

  .page-home .stat-head {
    gap: 8px;
    justify-content: space-between;
  }

  .page-home .stat-value {
    font-size: clamp(calc(32px * var(--text-scale)), 9vw, calc(40px * var(--text-scale)));
  }

  .page-home .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }

  .page-home .stat-icon svg {
    width: 21px;
    height: 21px;
  }

  .page-home .stat-label {
    font-size: calc(13px * var(--text-scale));
    line-height: 1.35;
  }

  .page-home .stat-trend {
    width: fit-content;
    padding: 6px 10px;
    font-size: calc(11.5px * var(--text-scale));
    line-height: 1.2;
  }

  .page-home .quick-card {
    min-height: 88px;
    padding: 14px;
    gap: 8px;
  }

  .page-home .quick-card strong {
    font-size: calc(14px * var(--text-scale));
  }

  .page-home .calendar-shell {
    gap: 14px;
  }

  .page-home .calendar-weekdays {
    gap: 4px;
  }

  .page-home .calendar-grid {
    gap: 4px;
  }

  .page-home .calendar-day {
    min-height: 48px;
    padding: 6px 2px;
    border-radius: 12px;
  }

  .page-home .calendar-day span {
    font-size: calc(11px * var(--text-scale));
  }

  .page-home .table-wrap {
    margin-inline: 0;
  }

  .page-home .table {
    min-width: 460px;
    font-size: calc(13px * var(--text-scale));
  }

}

@media (max-width: 560px) {
  .home-hero {
    gap: 14px;
  }

  .home-kicker,
  .home-pending-badge {
    font-size: 10px;
  }

  .home-section-title {
    font-size: 17px;
  }

  .home-metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .home-metric-value {
    font-size: clamp(24px, 8vw, 28px);
  }

  .page-container {
    padding-inline: max(14px, var(--safe-left));
  }

  .card,
  .modal,
  .surface-panel {
    padding: 18px;
  }

  .topbar-hamburger,
  .topbar-action-btn,
  .icon-btn {
    width: 42px;
    height: 42px;
  }

  .calendar-weekdays span {
    font-size: 10px;
  }

  .calendar-day {
    min-height: 54px;
    padding: 8px 2px 6px;
  }

  .calendar-day small {
    display: none;
  }

  .calendar-day span {
    font-size: calc(12px * var(--text-scale));
  }

  .color-swatch-btn {
    min-height: 78px;
    padding: 10px;
    gap: 8px;
  }

  .color-swatch-preview {
    width: 28px;
    height: 28px;
  }

  .page-home .page-container {
    padding-right: max(8px, var(--safe-right));
    padding-left: max(8px, var(--safe-left));
  }

  .page-home .topbar {
    padding-right: max(12px, var(--safe-right));
    padding-left: max(12px, var(--safe-left));
  }

  .page-home .hero-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .page-home .hero-title {
    font-size: clamp(calc(24px * var(--text-scale)), 9vw, calc(30px * var(--text-scale)));
  }

  .page-home .hero-actions {
    gap: 10px;
  }

  .page-home .hero-actions .btn {
    min-height: 44px;
    padding-inline: 14px;
    font-size: calc(13px * var(--text-scale));
  }

  .page-home .card,
  .page-home .surface-panel {
    padding: 14px;
  }

  .page-home .sec-label {
    margin-bottom: 12px;
  }

  .page-home .card-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .page-home .stat-card {
    min-height: 166px;
    padding: 14px;
    border-radius: 18px;
  }

  .page-home .stat-icon {
    width: 42px;
    height: 42px;
  }

  .page-home .stat-icon svg {
    width: 20px;
    height: 20px;
  }

  .page-home .stat-label {
    font-size: calc(12.5px * var(--text-scale));
    line-height: 1.34;
  }

  .page-home .stat-trend {
    padding: 5px 9px;
    font-size: calc(11px * var(--text-scale));
  }

  .page-home .card-subtitle,
  .page-home .list-sub {
    font-size: calc(12px * var(--text-scale));
  }

  .page-home .quick-card {
    min-height: 80px;
    border-radius: 16px;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
  }

  .page-home .quick-icon {
    width: 30px;
    height: 30px;
  }

  .page-home .calendar-toolbar {
    gap: 10px;
  }

  .page-home .calendar-nav {
    gap: 6px;
  }

  .page-home .calendar-nav .icon-btn {
    width: 38px;
    height: 38px;
  }

  .page-home .calendar-weekdays {
    gap: 2px;
  }

  .page-home .calendar-grid {
    gap: 2px;
  }

  .page-home .calendar-day {
    min-height: 42px;
    padding: 4px 1px;
    border-radius: 10px;
  }

  .page-home .calendar-day span {
    font-size: calc(10px * var(--text-scale));
  }

  .page-home .list-item {
    padding: 14px 12px;
    gap: 12px;
  }

  .page-home .list-icon {
    width: 40px;
    height: 40px;
  }

  .page-home .table {
    min-width: 420px;
  }

}

/* Mobile-first product layer
   O painel roda principalmente em celulares. Esta camada deixa os componentes
   globais mais prÃ³ximos de PWA/app, mantendo desktop apenas confortÃ¡vel. */

@media (max-width: 900px) {
  :root {
    --topbar-h: 64px;
    --content-max: 100%;
  }

  body {
    font-size: 16px;
    line-height: 1.55;
  }

  body::before {
    opacity: .72;
  }

  .main-content {
    margin-left: 0;
  }

  .topbar {
    min-height: calc(var(--topbar-h) + var(--safe-top));
    padding:
      calc(8px + var(--safe-top))
      max(14px, var(--safe-right))
      8px
      max(14px, var(--safe-left));
    gap: 10px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .topbar-hamburger {
    display: inline-flex;
  }

  .topbar-title {
    font-size: clamp(18px, 5.2vw, 22px);
    line-height: 1.12;
    letter-spacing: 0;
  }

  .topbar-subtitle {
    max-width: 58vw;
    overflow: hidden;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-actions {
    gap: 8px;
  }

  .topbar-hamburger,
  .topbar-action-btn,
  .icon-btn,
  .btn-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
  }

  .page-container {
    padding:
      16px
      max(14px, var(--safe-right))
      calc(90px + var(--safe-bottom))
      max(14px, var(--safe-left));
  }

  .stack-lg,
  .stack-xl,
  .stack-md {
    gap: 16px;
  }

  .card-grid,
  .card-grid-2,
  .card-grid-3,
  .card-grid-4,
  .form-grid,
  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card,
  .surface-panel,
  .hero-panel {
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
  }

  .card,
  .surface-panel {
    padding: 16px;
  }

  .hero-panel {
    padding: 18px;
  }

  .hero-title {
    font-size: clamp(25px, 8vw, 34px);
    line-height: 1.08;
    letter-spacing: 0;
  }

  .hero-subtitle,
  .card-subtitle,
  .list-sub,
  .form-hint {
    font-size: 13px;
    line-height: 1.42;
  }

  .hero-actions,
  .modal-footer,
  .btn-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-actions .btn,
  .modal-footer .btn,
  .btn-group .btn,
  .form-grid + .btn,
  .form-grid + .btn-group .btn {
    width: 100%;
  }

  .btn,
  .btn-lg {
    min-height: 48px;
    padding-inline: 16px;
    border-radius: 10px;
    font-size: 14px;
  }

  .btn-sm {
    min-height: 42px;
    border-radius: 9px;
  }

  .input,
  .textarea,
  .select,
  .color-field {
    min-height: 50px;
    border-radius: 10px;
    font-size: 16px;
  }

  .label {
    font-size: 14px;
  }

  .input-group .input {
    padding-left: 42px;
  }

  .input-icon {
    left: 13px;
    width: 18px;
    height: 18px;
  }

  .toggle {
    width: 54px;
    height: 32px;
  }

  .toggle-thumb {
    width: 24px;
    height: 24px;
  }

  .list-item {
    min-height: 68px;
    padding: 14px;
    gap: 12px;
  }

  .list-icon,
  .quick-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .quick-card {
    min-height: 82px;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
  }

  .quick-card strong,
  .list-title,
  .card-title {
    font-size: 15px;
    line-height: 1.28;
  }

  .table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border-radius: 14px;
  }

  .table {
    min-width: 560px;
    font-size: 13px;
  }

  .table th,
  .table td {
    padding: 13px 14px;
  }

  .modal-backdrop {
    place-items: center;
    padding:
      max(12px, env(safe-area-inset-top, 0px))
      max(12px, env(safe-area-inset-right, 0px))
      max(12px, env(safe-area-inset-bottom, 0px))
      max(12px, env(safe-area-inset-left, 0px));
  }

  .modal {
    width: min(100%, 520px);
    max-height: calc(var(--admin-modal-viewport) - 24px);
    overflow-y: auto;
    border-radius: 18px;
    padding: 18px;
    transform: translateY(10px) scale(.98);
  }

  .modal-backdrop.open .modal {
    transform: translateY(0) scale(1);
    animation: mobile-sheet-up .22s cubic-bezier(.2, .8, .2, 1) both;
  }

  .modal-header {
    gap: 10px;
    margin-bottom: 14px;
  }

  .modal-title {
    font-size: 20px;
    line-height: 1.2;
  }
}

@keyframes mobile-sheet-up {
  from {
    opacity: .86;
    transform: translateY(10px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal-backdrop.open .modal {
    animation: none !important;
  }
}

:root[data-ui-mode="simplified"] .modal-backdrop.open .modal {
  animation: none !important;
}

@media (max-width: 560px) {
  .page-container {
    padding-inline: max(12px, var(--safe-left));
    padding-top: 12px;
  }

  .card,
  .surface-panel,
  .hero-panel {
    border-radius: 16px;
  }

  .hero-panel,
  .card,
  .surface-panel,
  .modal {
    padding: 14px;
  }

  .hero-title {
    font-size: clamp(24px, 8.4vw, 30px);
  }

  .topbar-subtitle {
    display: none;
  }

  .topbar-title {
    font-size: clamp(18px, 5.6vw, 21px);
  }

  .btn,
  .btn-lg {
    min-height: 50px;
  }

  .quick-card {
    min-height: 76px;
  }

  .list-item {
    align-items: flex-start;
  }

  .table {
    min-width: 520px;
  }
}

@media (hover: hover) and (min-width: 901px) {
  .btn:hover,
  .quick-card:hover,
  .card:hover,
  .list-item:hover {
    will-change: transform;
  }
}

@media (hover: none) {
  .btn:hover,
  .quick-card:hover,
  .topbar-hamburger:hover,
  .topbar-action-btn:hover,
  .icon-btn:hover,
  .list-item:hover {
    transform: none;
  }
}

.hero-panel {
  padding: clamp(16px, 2.4vw, 22px);
  border-radius: 22px;
  background:
    radial-gradient(240px 160px at 100% 0, rgba(var(--accent-rgb), 0.16), transparent 62%),
    linear-gradient(180deg, color-mix(in srgb, var(--card-bg) 98%, transparent), color-mix(in srgb, var(--card-bg) 92%, var(--accent-soft)));
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.05);
}

.hero-panel::before {
  top: auto;
  right: 16px;
  bottom: 16px;
  width: 112px;
  height: 112px;
  opacity: .42;
  filter: blur(10px);
}

.hero-panel::after {
  left: 18px;
  right: 18px;
  opacity: .46;
}

.hero-eyebrow {
  margin-bottom: 8px;
  letter-spacing: .12em;
  font-size: .72rem;
}

.hero-title {
  max-width: none;
  font-size: clamp(1.45rem, 3.8vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  text-shadow: none;
}

.hero-subtitle {
  margin-top: 8px;
  max-width: 72ch;
  font-size: clamp(.9rem, 1.4vw, 1rem);
  line-height: 1.46;
}

.hero-actions {
  margin-top: 12px;
  gap: 10px;
}

@media (max-width: 560px) {
  .hero-panel {
    padding: 14px;
    border-radius: 16px;
  }

  .hero-title {
    font-size: clamp(1.3rem, 7vw, 1.75rem);
  }
}

:root[data-theme="dark"][data-ui-mode="simplified"] {
  --font-display: "DM Sans", "Inter", sans-serif;
  --font-body: "DM Sans", "Inter", sans-serif;
  --r-xs: 8px;
  --r-sm: 12px;
  --r: 16px;
  --r-md: 18px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-2xl: 34px;
  --bg: #162133;
  --bg-2: #1d2940;
  --bg-3: #263650;
  --surface: rgba(36, 48, 66, 0.74);
  --surface-2: rgba(42, 55, 74, 0.92);
  --surface-3: rgba(46, 62, 88, 0.98);
  --surface-4: rgba(59, 130, 246, 0.14);
  --border: rgba(255,255,255,0.06);
  --border-2: rgba(255,255,255,0.09);
  --border-3: rgba(59,130,246,0.26);
  --text-1: #e5e7eb;
  --text-2: #9ca3af;
  --text-3: #6b7280;
  --text-4: rgba(107, 114, 128, 0.58);
  --sidebar-bg: #131d2e;
  --topbar-bg: rgba(22, 33, 51, 0.78);
  --card-bg: rgba(36, 48, 66, 0.88);
  --input-bg: rgba(36, 48, 66, 0.92);
  --input-bg-focus: rgba(42, 55, 74, 0.98);
  --shadow-sm: 0 10px 24px rgba(31,38,54,0.14);
  --shadow: 0 18px 44px rgba(31,38,54,0.18);
  --shadow-lg: 0 24px 60px rgba(31,38,54,0.21);
  --shadow-accent: 0 16px 36px rgba(37,99,235,0.18);
  --accent-rgb: 59, 130, 246;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-strong: #2563eb;
  --accent-dim: rgba(59,130,246,0.15);
  --accent-soft: rgba(59,130,246,0.08);
  --accent-border: rgba(59,130,246,0.24);
  --accent-glow: rgba(59,130,246,0.22);
  --green: #22c55e;
  --yellow: #f59e0b;
  --red: #ef4444;
  --orange: #f97316;
  --blue: #3b82f6;
  --mica:
    radial-gradient(900px 540px at -10% -10%, rgba(59,130,246,0.14), transparent 62%),
    radial-gradient(740px 460px at 110% 0%, rgba(96,165,250,0.08), transparent 58%),
    linear-gradient(180deg, #162133 0%, #1d2940 50%, #162133 100%);
  color-scheme: dark;
}

:root[data-theme="dark"][data-ui-mode="simplified"] body {
  color: var(--text-1);
  font-family: var(--font-body);
  background:
    radial-gradient(920px 520px at -8% -12%, rgba(59,130,246,0.09), transparent 60%),
    radial-gradient(760px 420px at 108% 0%, rgba(96,165,250,0.06), transparent 56%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 56%, var(--bg) 100%);
}

:root[data-theme="dark"][data-ui-mode="simplified"] body::before {
  opacity: .52;
  background:
    radial-gradient(760px 520px at 0 0, rgba(59,130,246,0.06), transparent 64%),
    radial-gradient(560px 340px at 100% 0, rgba(59,130,246,0.05), transparent 62%);
}

:root[data-theme="dark"][data-ui-mode="simplified"] body,
:root[data-theme="dark"][data-ui-mode="simplified"] button,
:root[data-theme="dark"][data-ui-mode="simplified"] input,
:root[data-theme="dark"][data-ui-mode="simplified"] select,
:root[data-theme="dark"][data-ui-mode="simplified"] textarea {
  font-family: var(--font-body);
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .app-layout {
  background: transparent;
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .main-content {
  background: transparent;
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .page-container {
  max-width: min(1460px, calc(100vw - 32px));
  padding-top: 18px;
  padding-bottom: calc(28px + var(--safe-bottom));
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .topbar {
  min-height: 78px;
  padding-inline: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: rgba(39, 49, 68, 0.58);
  box-shadow: 0 1px 0 rgba(255,255,255,0.02);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .topbar-title,
:root[data-theme="dark"][data-ui-mode="simplified"] body .card-title,
:root[data-theme="dark"][data-ui-mode="simplified"] body .card-title-sm,
:root[data-theme="dark"][data-ui-mode="simplified"] body .hero-title,
:root[data-theme="dark"][data-ui-mode="simplified"] body .modal-title,
:root[data-theme="dark"][data-ui-mode="simplified"] body .sb-app-name {
  color: var(--text-1);
  font-family: var(--font-display);
  letter-spacing: -.03em;
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .topbar-subtitle,
:root[data-theme="dark"][data-ui-mode="simplified"] body .hero-subtitle,
:root[data-theme="dark"][data-ui-mode="simplified"] body .card-subtitle,
:root[data-theme="dark"][data-ui-mode="simplified"] body .form-hint,
:root[data-theme="dark"][data-ui-mode="simplified"] body .text-2 {
  color: var(--text-2);
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .hero-panel,
:root[data-theme="dark"][data-ui-mode="simplified"] body .page-home .welcome-banner {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 22px;
  background:
    radial-gradient(220px 180px at 100% 0, rgba(59,130,246,0.14), transparent 58%),
    linear-gradient(180deg, rgba(42, 54, 74, 0.94) 0%, rgba(36, 48, 66, 0.92) 100%);
  box-shadow: 0 10px 30px rgba(31,38,54,0.20);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .hero-panel::before,
:root[data-theme="dark"][data-ui-mode="simplified"] body .hero-panel::after,
:root[data-theme="dark"][data-ui-mode="simplified"] body .page-home .welcome-banner::before,
:root[data-theme="dark"][data-ui-mode="simplified"] body .page-home .welcome-banner::after {
  opacity: .18;
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .hero-eyebrow {
  color: #93c5fd;
  font-weight: 650;
  letter-spacing: .11em;
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .hero-title {
  font-size: clamp(1.56rem, 3.6vw, 2.38rem);
  line-height: 1.04;
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .hero-subtitle {
  max-width: 74ch;
  line-height: 1.52;
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .surface-panel,
:root[data-theme="dark"][data-ui-mode="simplified"] body .modal,
:root[data-theme="dark"][data-ui-mode="simplified"] body .admin-settings-panel,
:root[data-theme="dark"][data-ui-mode="simplified"] body .dropdown-menu,
:root[data-theme="dark"][data-ui-mode="simplified"] body .toast,
:root[data-theme="dark"][data-ui-mode="simplified"] body .acrylic-list,
:root[data-theme="dark"][data-ui-mode="simplified"] body .table-wrap,
:root[data-theme="dark"][data-ui-mode="simplified"] body .stat-card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .schedule-card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .quick-card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .calendar-day,
:root[data-theme="dark"][data-ui-mode="simplified"] body .preview-sidebar,
:root[data-theme="dark"][data-ui-mode="simplified"] body .preview-main,
:root[data-theme="dark"][data-ui-mode="simplified"] body .preview-card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .home-hero,
:root[data-theme="dark"][data-ui-mode="simplified"] body .home-card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .home-metric-card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .home-meta-card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .team-hero,
:root[data-theme="dark"][data-ui-mode="simplified"] body .team-card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .profile-card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .scale-card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .summary-card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .panel-card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .ministry-card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .volunteers-hero,
:root[data-theme="dark"][data-ui-mode="simplified"] body .notice-empty,
:root[data-theme="dark"][data-ui-mode="simplified"] body .code-demo,
:root[data-theme="dark"][data-ui-mode="simplified"] body .token-card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .pattern-card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .settings-section,
:root[data-theme="dark"][data-ui-mode="simplified"] body .tab-panel,
:root[data-theme="dark"][data-ui-mode="simplified"] body .user-bank-devbar,
:root[data-theme="dark"][data-ui-mode="simplified"] body .detail-row,
:root[data-theme="dark"][data-ui-mode="simplified"] body .functions-helper,
:root[data-theme="dark"][data-ui-mode="simplified"] body .modal-note,
:root[data-theme="dark"][data-ui-mode="simplified"] body .list-item,
:root[data-theme="dark"][data-ui-mode="simplified"] body .agenda-item,
:root[data-theme="dark"][data-ui-mode="simplified"] body .calendar-shell,
:root[data-theme="dark"][data-ui-mode="simplified"] body .calendar-side {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  background: var(--card-bg);
  box-shadow: 0 10px 30px rgba(31,38,54,0.20);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .quick-card:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] body .schedule-card:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] body .stat-card:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] body .card:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] body .surface-panel:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] body .list-item:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] body .agenda-item:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] body .calendar-day:hover {
  transform: translateY(-2px);
  background: rgba(31, 42, 58, 0.96);
  border-color: rgba(59,130,246,0.16);
  box-shadow: 0 16px 34px rgba(31,38,54,0.22);
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .btn {
  min-height: 46px;
  border-radius: 12px;
  border-width: 1px;
  font-weight: 650;
  letter-spacing: -.01em;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .btn:hover {
  transform: translateY(-2px);
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .btn-primary {
  color: #ffffff;
  border-color: rgba(37,99,235,0.82);
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 10px 22px rgba(37,99,235,0.22);
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .btn-primary:hover {
  background: linear-gradient(135deg, #4b8ef8, #1f5edd);
  box-shadow: 0 14px 26px rgba(37,99,235,0.28);
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .btn-secondary,
:root[data-theme="dark"][data-ui-mode="simplified"] body .btn-ghost,
:root[data-theme="dark"][data-ui-mode="simplified"] body .tab,
:root[data-theme="dark"][data-ui-mode="simplified"] body .settings-choice,
:root[data-theme="dark"][data-ui-mode="simplified"] body .theme-swatch,
:root[data-theme="dark"][data-ui-mode="simplified"] body .color-swatch-btn,
:root[data-theme="dark"][data-ui-mode="simplified"] body .icon-btn,
:root[data-theme="dark"][data-ui-mode="simplified"] body .topbar-hamburger,
:root[data-theme="dark"][data-ui-mode="simplified"] body .topbar-action-btn,
:root[data-theme="dark"][data-ui-mode="simplified"] body .segmented,
:root[data-theme="dark"][data-ui-mode="simplified"] body .segmented button {
  color: var(--text-1);
  border-color: rgba(255,255,255,0.06);
  background: rgba(31, 42, 58, 0.88);
  box-shadow: none;
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .btn-secondary:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] body .btn-ghost:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] body .tab:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] body .dropdown-item:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] body .icon-btn:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] body .topbar-hamburger:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] body .topbar-action-btn:hover {
  background: rgba(34, 48, 70, 0.98);
  border-color: rgba(59,130,246,0.16);
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .tab.active,
:root[data-theme="dark"][data-ui-mode="simplified"] body .settings-choice.active,
:root[data-theme="dark"][data-ui-mode="simplified"] body .theme-swatch.active,
:root[data-theme="dark"][data-ui-mode="simplified"] body .color-swatch-btn.active {
  color: #dbeafe;
  border-color: rgba(59,130,246,0.26);
  background: rgba(59,130,246,0.15);
  box-shadow: inset 0 0 0 1px rgba(59,130,246,0.12);
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .input,
:root[data-theme="dark"][data-ui-mode="simplified"] body .textarea,
:root[data-theme="dark"][data-ui-mode="simplified"] body .select,
:root[data-theme="dark"][data-ui-mode="simplified"] body .range-wrap,
:root[data-theme="dark"][data-ui-mode="simplified"] body .file-input,
:root[data-theme="dark"][data-ui-mode="simplified"] body .color-field {
  color: var(--text-1);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  background: rgba(26, 36, 51, 0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease, transform .2s ease;
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .input:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] body .textarea:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] body .select:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] body .file-input:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] body .color-field:hover {
  transform: translateY(-1px);
  background: rgba(31, 42, 58, 0.98);
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .input:focus,
:root[data-theme="dark"][data-ui-mode="simplified"] body .textarea:focus,
:root[data-theme="dark"][data-ui-mode="simplified"] body .select:focus {
  border-color: rgba(59,130,246,0.32);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.12);
  background: rgba(31, 42, 58, 1);
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .input::placeholder,
:root[data-theme="dark"][data-ui-mode="simplified"] body .textarea::placeholder {
  color: #6b7280;
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .table,
:root[data-theme="dark"][data-ui-mode="simplified"] body .table th,
:root[data-theme="dark"][data-ui-mode="simplified"] body .table td {
  border-color: rgba(255,255,255,0.05);
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .table th {
  color: #cbd5e1;
  background: rgba(31, 42, 58, 0.72);
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .table td {
  color: var(--text-2);
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .chip,
:root[data-theme="dark"][data-ui-mode="simplified"] body .badge,
:root[data-theme="dark"][data-ui-mode="simplified"] body .tag,
:root[data-theme="dark"][data-ui-mode="simplified"] body .kbd,
:root[data-theme="dark"][data-ui-mode="simplified"] body .preview-pill,
:root[data-theme="dark"][data-ui-mode="simplified"] body .preview-header,
:root[data-theme="dark"][data-ui-mode="simplified"] body .stat-trend {
  border-radius: 999px;
  border-color: rgba(255,255,255,0.06);
  background: rgba(31, 42, 58, 0.86);
  color: var(--text-2);
  box-shadow: none;
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .chip.accent,
:root[data-theme="dark"][data-ui-mode="simplified"] body .badge.accent,
:root[data-theme="dark"][data-ui-mode="simplified"] body .stat-trend.up,
:root[data-theme="dark"][data-ui-mode="simplified"] body .alert.info {
  color: #bfdbfe;
  border-color: rgba(59,130,246,0.2);
  background: rgba(59,130,246,0.12);
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .chip.green,
:root[data-theme="dark"][data-ui-mode="simplified"] body .badge.green,
:root[data-theme="dark"][data-ui-mode="simplified"] body .alert.success {
  color: #86efac;
  border-color: rgba(34,197,94,0.16);
  background: rgba(34,197,94,0.12);
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .chip.yellow,
:root[data-theme="dark"][data-ui-mode="simplified"] body .badge.yellow,
:root[data-theme="dark"][data-ui-mode="simplified"] body .alert.warning {
  color: #fcd34d;
  border-color: rgba(245,158,11,0.18);
  background: rgba(245,158,11,0.12);
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .chip.red,
:root[data-theme="dark"][data-ui-mode="simplified"] body .badge.red,
:root[data-theme="dark"][data-ui-mode="simplified"] body .stat-trend.down,
:root[data-theme="dark"][data-ui-mode="simplified"] body .alert.danger {
  color: #fca5a5;
  border-color: rgba(239,68,68,0.18);
  background: rgba(239,68,68,0.12);
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .toggle-track,
:root[data-theme="dark"][data-ui-mode="simplified"] body .progress,
:root[data-theme="dark"][data-ui-mode="simplified"] body .skeleton,
:root[data-theme="dark"][data-ui-mode="simplified"] body .check-input,
:root[data-theme="dark"][data-ui-mode="simplified"] body .radio-input {
  background: rgba(31, 42, 58, 0.92);
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .toggle input:checked + .toggle-track,
:root[data-theme="dark"][data-ui-mode="simplified"] body .progress > span {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .home-metric-icon,
:root[data-theme="dark"][data-ui-mode="simplified"] body .home-quick-icon,
:root[data-theme="dark"][data-ui-mode="simplified"] body .stat-icon,
:root[data-theme="dark"][data-ui-mode="simplified"] body .quick-icon,
:root[data-theme="dark"][data-ui-mode="simplified"] body .list-icon,
:root[data-theme="dark"][data-ui-mode="simplified"] body .member-avatar,
:root[data-theme="dark"][data-ui-mode="simplified"] body .volunteer-avatar,
:root[data-theme="dark"][data-ui-mode="simplified"] body .compact-card-icon {
  border-color: rgba(59,130,246,0.12);
  background: rgba(59,130,246,0.12);
  color: #bfdbfe;
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .modal-backdrop,
:root[data-theme="dark"][data-ui-mode="simplified"] body .settings-backdrop {
  background: rgba(31, 38, 54, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 760px) {
  :root[data-theme="dark"][data-ui-mode="simplified"] body .page-container {
    max-width: calc(100vw - 18px);
    padding-top: 12px;
  }

  :root[data-theme="dark"][data-ui-mode="simplified"] body .topbar {
    padding-inline: 14px;
  }

  :root[data-theme="dark"][data-ui-mode="simplified"] body .hero-panel,
  :root[data-theme="dark"][data-ui-mode="simplified"] body .page-home .welcome-banner,
  :root[data-theme="dark"][data-ui-mode="simplified"] body .card,
  :root[data-theme="dark"][data-ui-mode="simplified"] body .surface-panel,
  :root[data-theme="dark"][data-ui-mode="simplified"] body .modal,
  :root[data-theme="dark"][data-ui-mode="simplified"] body .table-wrap,
  :root[data-theme="dark"][data-ui-mode="simplified"] body .stat-card,
  :root[data-theme="dark"][data-ui-mode="simplified"] body .schedule-card,
  :root[data-theme="dark"][data-ui-mode="simplified"] body .quick-card {
    border-radius: 16px;
  }
}

:root[data-theme="light"][data-ui-mode="simplified"] {
  --font-display: "DM Sans", "Inter", sans-serif;
  --font-body: "DM Sans", "Inter", sans-serif;
  --r-xs: 8px;
  --r-sm: 12px;
  --r: 16px;
  --r-md: 18px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-2xl: 34px;
  --bg: #f4f7fb;
  --bg-2: #edf3f9;
  --bg-3: #ffffff;
  --surface: rgba(255,255,255,0.78);
  --surface-2: rgba(255,255,255,0.96);
  --surface-3: #eef4fb;
  --surface-4: rgba(59,130,246,0.10);
  --border: rgba(15,23,42,0.08);
  --border-2: rgba(15,23,42,0.12);
  --border-3: rgba(59,130,246,0.20);
  --text-1: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --text-4: rgba(100, 116, 139, 0.56);
  --sidebar-bg: rgba(248, 251, 255, 0.94);
  --topbar-bg: rgba(255,255,255,0.78);
  --card-bg: rgba(255,255,255,0.92);
  --input-bg: rgba(255,255,255,0.98);
  --input-bg-focus: #ffffff;
  --shadow-sm: 0 10px 24px rgba(15,23,42,0.06);
  --shadow: 0 18px 44px rgba(15,23,42,0.08);
  --shadow-lg: 0 28px 60px rgba(15,23,42,0.10);
  --shadow-accent: 0 16px 32px rgba(37,99,235,0.12);
  --accent-rgb: 59, 130, 246;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-strong: #2563eb;
  --accent-dim: rgba(59,130,246,0.12);
  --accent-soft: rgba(59,130,246,0.06);
  --accent-border: rgba(59,130,246,0.18);
  --accent-glow: rgba(59,130,246,0.14);
  --green: #16a34a;
  --yellow: #d97706;
  --red: #dc2626;
  --orange: #ea580c;
  --blue: #2563eb;
  --mica:
    radial-gradient(820px 500px at -10% -10%, rgba(59,130,246,0.08), transparent 60%),
    radial-gradient(720px 420px at 110% 0%, rgba(96,165,250,0.06), transparent 56%),
    linear-gradient(180deg, #f4f7fb 0%, #edf3f9 54%, #f7faff 100%);
  color-scheme: light;
}

:root[data-theme="light"][data-ui-mode="simplified"] body {
  color: var(--text-1);
  font-family: var(--font-body);
  background:
    radial-gradient(920px 520px at -8% -12%, rgba(59,130,246,0.08), transparent 58%),
    radial-gradient(760px 420px at 108% 0%, rgba(96,165,250,0.05), transparent 54%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 56%, #f8fbff 100%);
}

:root[data-theme="light"][data-ui-mode="simplified"] body::before {
  opacity: .54;
  background:
    radial-gradient(760px 520px at 0 0, rgba(59,130,246,0.04), transparent 64%),
    radial-gradient(560px 340px at 100% 0, rgba(59,130,246,0.03), transparent 62%);
}

:root[data-theme="light"][data-ui-mode="simplified"] body,
:root[data-theme="light"][data-ui-mode="simplified"] button,
:root[data-theme="light"][data-ui-mode="simplified"] input,
:root[data-theme="light"][data-ui-mode="simplified"] select,
:root[data-theme="light"][data-ui-mode="simplified"] textarea {
  font-family: var(--font-body);
}

:root[data-theme="light"][data-ui-mode="simplified"] body .app-layout,
:root[data-theme="light"][data-ui-mode="simplified"] body .main-content {
  background: transparent;
}

:root[data-theme="light"][data-ui-mode="simplified"] body .page-container {
  max-width: min(1460px, calc(100vw - 32px));
  padding-top: 18px;
  padding-bottom: calc(28px + var(--safe-bottom));
}

:root[data-theme="light"][data-ui-mode="simplified"] body .topbar {
  min-height: 78px;
  padding-inline: 22px;
  border-bottom: 1px solid rgba(15,23,42,0.06);
  background: rgba(255,255,255,0.72);
  box-shadow: 0 1px 0 rgba(255,255,255,0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

:root[data-theme="light"][data-ui-mode="simplified"] body .topbar-title,
:root[data-theme="light"][data-ui-mode="simplified"] body .card-title,
:root[data-theme="light"][data-ui-mode="simplified"] body .card-title-sm,
:root[data-theme="light"][data-ui-mode="simplified"] body .hero-title,
:root[data-theme="light"][data-ui-mode="simplified"] body .modal-title,
:root[data-theme="light"][data-ui-mode="simplified"] body .sb-app-name {
  color: var(--text-1);
  font-family: var(--font-display);
  letter-spacing: -.03em;
}

:root[data-theme="light"][data-ui-mode="simplified"] body .topbar-subtitle,
:root[data-theme="light"][data-ui-mode="simplified"] body .hero-subtitle,
:root[data-theme="light"][data-ui-mode="simplified"] body .card-subtitle,
:root[data-theme="light"][data-ui-mode="simplified"] body .form-hint,
:root[data-theme="light"][data-ui-mode="simplified"] body .text-2 {
  color: var(--text-2);
}

:root[data-theme="light"][data-ui-mode="simplified"] body .hero-panel,
:root[data-theme="light"][data-ui-mode="simplified"] body .page-home .welcome-banner {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 22px;
  background:
    radial-gradient(220px 180px at 100% 0, rgba(59,130,246,0.10), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,250,255,0.96) 100%);
  box-shadow: 0 10px 30px rgba(15,23,42,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

:root[data-theme="light"][data-ui-mode="simplified"] body .hero-panel::before,
:root[data-theme="light"][data-ui-mode="simplified"] body .hero-panel::after,
:root[data-theme="light"][data-ui-mode="simplified"] body .page-home .welcome-banner::before,
:root[data-theme="light"][data-ui-mode="simplified"] body .page-home .welcome-banner::after {
  opacity: .14;
}

:root[data-theme="light"][data-ui-mode="simplified"] body .hero-eyebrow {
  color: #2563eb;
  font-weight: 650;
  letter-spacing: .11em;
}

:root[data-theme="light"][data-ui-mode="simplified"] body .hero-title {
  font-size: clamp(1.56rem, 3.6vw, 2.38rem);
  line-height: 1.04;
  max-width: none;
}

:root[data-theme="light"][data-ui-mode="simplified"] body .hero-subtitle {
  max-width: 74ch;
  line-height: 1.52;
}

:root[data-theme="light"][data-ui-mode="simplified"] body .card,
:root[data-theme="light"][data-ui-mode="simplified"] body .surface-panel,
:root[data-theme="light"][data-ui-mode="simplified"] body .modal,
:root[data-theme="light"][data-ui-mode="simplified"] body .admin-settings-panel,
:root[data-theme="light"][data-ui-mode="simplified"] body .dropdown-menu,
:root[data-theme="light"][data-ui-mode="simplified"] body .toast,
:root[data-theme="light"][data-ui-mode="simplified"] body .acrylic-list,
:root[data-theme="light"][data-ui-mode="simplified"] body .table-wrap,
:root[data-theme="light"][data-ui-mode="simplified"] body .stat-card,
:root[data-theme="light"][data-ui-mode="simplified"] body .schedule-card,
:root[data-theme="light"][data-ui-mode="simplified"] body .quick-card,
:root[data-theme="light"][data-ui-mode="simplified"] body .calendar-day,
:root[data-theme="light"][data-ui-mode="simplified"] body .preview-sidebar,
:root[data-theme="light"][data-ui-mode="simplified"] body .preview-main,
:root[data-theme="light"][data-ui-mode="simplified"] body .preview-card,
:root[data-theme="light"][data-ui-mode="simplified"] body .home-hero,
:root[data-theme="light"][data-ui-mode="simplified"] body .home-card,
:root[data-theme="light"][data-ui-mode="simplified"] body .home-metric-card,
:root[data-theme="light"][data-ui-mode="simplified"] body .home-meta-card,
:root[data-theme="light"][data-ui-mode="simplified"] body .team-hero,
:root[data-theme="light"][data-ui-mode="simplified"] body .team-card,
:root[data-theme="light"][data-ui-mode="simplified"] body .profile-card,
:root[data-theme="light"][data-ui-mode="simplified"] body .scale-card,
:root[data-theme="light"][data-ui-mode="simplified"] body .summary-card,
:root[data-theme="light"][data-ui-mode="simplified"] body .panel-card,
:root[data-theme="light"][data-ui-mode="simplified"] body .ministry-card,
:root[data-theme="light"][data-ui-mode="simplified"] body .volunteers-hero,
:root[data-theme="light"][data-ui-mode="simplified"] body .notice-empty,
:root[data-theme="light"][data-ui-mode="simplified"] body .code-demo,
:root[data-theme="light"][data-ui-mode="simplified"] body .token-card,
:root[data-theme="light"][data-ui-mode="simplified"] body .pattern-card,
:root[data-theme="light"][data-ui-mode="simplified"] body .settings-section,
:root[data-theme="light"][data-ui-mode="simplified"] body .tab-panel,
:root[data-theme="light"][data-ui-mode="simplified"] body .user-bank-devbar,
:root[data-theme="light"][data-ui-mode="simplified"] body .detail-row,
:root[data-theme="light"][data-ui-mode="simplified"] body .functions-helper,
:root[data-theme="light"][data-ui-mode="simplified"] body .modal-note,
:root[data-theme="light"][data-ui-mode="simplified"] body .list-item,
:root[data-theme="light"][data-ui-mode="simplified"] body .agenda-item,
:root[data-theme="light"][data-ui-mode="simplified"] body .calendar-shell,
:root[data-theme="light"][data-ui-mode="simplified"] body .calendar-side {
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 16px;
  background: var(--card-bg);
  box-shadow: 0 10px 30px rgba(15,23,42,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

:root[data-theme="light"][data-ui-mode="simplified"] body .quick-card:hover,
:root[data-theme="light"][data-ui-mode="simplified"] body .schedule-card:hover,
:root[data-theme="light"][data-ui-mode="simplified"] body .stat-card:hover,
:root[data-theme="light"][data-ui-mode="simplified"] body .card:hover,
:root[data-theme="light"][data-ui-mode="simplified"] body .surface-panel:hover,
:root[data-theme="light"][data-ui-mode="simplified"] body .list-item:hover,
:root[data-theme="light"][data-ui-mode="simplified"] body .agenda-item:hover,
:root[data-theme="light"][data-ui-mode="simplified"] body .calendar-day:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: rgba(59,130,246,0.16);
  box-shadow: 0 16px 34px rgba(15,23,42,0.10);
}

:root[data-theme="light"][data-ui-mode="simplified"] body .btn {
  min-height: 46px;
  border-radius: 12px;
  border-width: 1px;
  font-weight: 650;
  letter-spacing: -.01em;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  box-shadow: none;
}

:root[data-theme="light"][data-ui-mode="simplified"] body .btn:hover {
  transform: translateY(-2px);
}

:root[data-theme="light"][data-ui-mode="simplified"] body .btn-primary {
  color: #ffffff;
  border-color: rgba(37,99,235,0.82);
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 10px 20px rgba(37,99,235,0.18);
}

:root[data-theme="light"][data-ui-mode="simplified"] body .btn-primary:hover {
  background: linear-gradient(135deg, #4b8ef8, #1f5edd);
  box-shadow: 0 14px 24px rgba(37,99,235,0.22);
}

:root[data-theme="light"][data-ui-mode="simplified"] body .btn-secondary,
:root[data-theme="light"][data-ui-mode="simplified"] body .btn-ghost,
:root[data-theme="light"][data-ui-mode="simplified"] body .tab,
:root[data-theme="light"][data-ui-mode="simplified"] body .settings-choice,
:root[data-theme="light"][data-ui-mode="simplified"] body .theme-swatch,
:root[data-theme="light"][data-ui-mode="simplified"] body .color-swatch-btn,
:root[data-theme="light"][data-ui-mode="simplified"] body .icon-btn,
:root[data-theme="light"][data-ui-mode="simplified"] body .topbar-hamburger,
:root[data-theme="light"][data-ui-mode="simplified"] body .topbar-action-btn,
:root[data-theme="light"][data-ui-mode="simplified"] body .segmented,
:root[data-theme="light"][data-ui-mode="simplified"] body .segmented button {
  color: var(--text-1);
  border-color: rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.88);
  box-shadow: none;
}

:root[data-theme="light"][data-ui-mode="simplified"] body .btn-secondary:hover,
:root[data-theme="light"][data-ui-mode="simplified"] body .btn-ghost:hover,
:root[data-theme="light"][data-ui-mode="simplified"] body .tab:hover,
:root[data-theme="light"][data-ui-mode="simplified"] body .dropdown-item:hover,
:root[data-theme="light"][data-ui-mode="simplified"] body .icon-btn:hover,
:root[data-theme="light"][data-ui-mode="simplified"] body .topbar-hamburger:hover,
:root[data-theme="light"][data-ui-mode="simplified"] body .topbar-action-btn:hover {
  background: #f6f9fd;
  border-color: rgba(59,130,246,0.14);
}

:root[data-theme="light"][data-ui-mode="simplified"] body .tab.active,
:root[data-theme="light"][data-ui-mode="simplified"] body .settings-choice.active,
:root[data-theme="light"][data-ui-mode="simplified"] body .theme-swatch.active,
:root[data-theme="light"][data-ui-mode="simplified"] body .color-swatch-btn.active {
  color: #1d4ed8;
  border-color: rgba(59,130,246,0.18);
  background: rgba(59,130,246,0.10);
  box-shadow: inset 0 0 0 1px rgba(59,130,246,0.08);
}

:root[data-theme="light"][data-ui-mode="simplified"] body .input,
:root[data-theme="light"][data-ui-mode="simplified"] body .textarea,
:root[data-theme="light"][data-ui-mode="simplified"] body .select,
:root[data-theme="light"][data-ui-mode="simplified"] body .range-wrap,
:root[data-theme="light"][data-ui-mode="simplified"] body .file-input,
:root[data-theme="light"][data-ui-mode="simplified"] body .color-field {
  color: var(--text-1);
  border-radius: 12px;
  background: rgba(255,255,255,0.98);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.78);
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease, transform .2s ease;
}

:root[data-theme="light"][data-ui-mode="simplified"] body .input:hover,
:root[data-theme="light"][data-ui-mode="simplified"] body .textarea:hover,
:root[data-theme="light"][data-ui-mode="simplified"] body .select:hover,
:root[data-theme="light"][data-ui-mode="simplified"] body .file-input:hover,
:root[data-theme="light"][data-ui-mode="simplified"] body .color-field:hover {
  transform: translateY(-1px);
  background: #ffffff;
}

:root[data-theme="light"][data-ui-mode="simplified"] body .input:focus,
:root[data-theme="light"][data-ui-mode="simplified"] body .textarea:focus,
:root[data-theme="light"][data-ui-mode="simplified"] body .select:focus {
  border-color: rgba(59,130,246,0.28);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.10);
  background: #ffffff;
}

:root[data-theme="light"][data-ui-mode="simplified"] body .input::placeholder,
:root[data-theme="light"][data-ui-mode="simplified"] body .textarea::placeholder {
  color: #94a3b8;
}

:root[data-theme="light"][data-ui-mode="simplified"] body .table,
:root[data-theme="light"][data-ui-mode="simplified"] body .table th,
:root[data-theme="light"][data-ui-mode="simplified"] body .table td {
  border-color: rgba(15,23,42,0.06);
}

:root[data-theme="light"][data-ui-mode="simplified"] body .table th {
  color: #334155;
  background: #f7faff;
}

:root[data-theme="light"][data-ui-mode="simplified"] body .table td {
  color: var(--text-2);
}

:root[data-theme="light"][data-ui-mode="simplified"] body .chip,
:root[data-theme="light"][data-ui-mode="simplified"] body .badge,
:root[data-theme="light"][data-ui-mode="simplified"] body .tag,
:root[data-theme="light"][data-ui-mode="simplified"] body .kbd,
:root[data-theme="light"][data-ui-mode="simplified"] body .preview-pill,
:root[data-theme="light"][data-ui-mode="simplified"] body .preview-header,
:root[data-theme="light"][data-ui-mode="simplified"] body .stat-trend {
  border-radius: 999px;
  border-color: rgba(15,23,42,0.08);
  background: #f8fbff;
  color: var(--text-2);
  box-shadow: none;
}

:root[data-theme="light"][data-ui-mode="simplified"] body .chip.accent,
:root[data-theme="light"][data-ui-mode="simplified"] body .badge.accent,
:root[data-theme="light"][data-ui-mode="simplified"] body .stat-trend.up,
:root[data-theme="light"][data-ui-mode="simplified"] body .alert.info {
  color: #1d4ed8;
  border-color: rgba(59,130,246,0.16);
  background: rgba(59,130,246,0.10);
}

:root[data-theme="light"][data-ui-mode="simplified"] body .chip.green,
:root[data-theme="light"][data-ui-mode="simplified"] body .badge.green,
:root[data-theme="light"][data-ui-mode="simplified"] body .alert.success {
  color: #15803d;
  border-color: rgba(34,197,94,0.16);
  background: rgba(34,197,94,0.10);
}

:root[data-theme="light"][data-ui-mode="simplified"] body .chip.yellow,
:root[data-theme="light"][data-ui-mode="simplified"] body .badge.yellow,
:root[data-theme="light"][data-ui-mode="simplified"] body .alert.warning {
  color: #b45309;
  border-color: rgba(245,158,11,0.18);
  background: rgba(245,158,11,0.10);
}

:root[data-theme="light"][data-ui-mode="simplified"] body .chip.red,
:root[data-theme="light"][data-ui-mode="simplified"] body .badge.red,
:root[data-theme="light"][data-ui-mode="simplified"] body .stat-trend.down,
:root[data-theme="light"][data-ui-mode="simplified"] body .alert.danger {
  color: #dc2626;
  border-color: rgba(239,68,68,0.18);
  background: rgba(239,68,68,0.10);
}

:root[data-theme="light"][data-ui-mode="simplified"] body .toggle-track,
:root[data-theme="light"][data-ui-mode="simplified"] body .progress,
:root[data-theme="light"][data-ui-mode="simplified"] body .skeleton,
:root[data-theme="light"][data-ui-mode="simplified"] body .check-input,
:root[data-theme="light"][data-ui-mode="simplified"] body .radio-input {
  background: #e8eff7;
}

:root[data-theme="light"][data-ui-mode="simplified"] body .toggle input:checked + .toggle-track,
:root[data-theme="light"][data-ui-mode="simplified"] body .progress > span {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

:root[data-theme="light"][data-ui-mode="simplified"] body .home-metric-icon,
:root[data-theme="light"][data-ui-mode="simplified"] body .home-quick-icon,
:root[data-theme="light"][data-ui-mode="simplified"] body .stat-icon,
:root[data-theme="light"][data-ui-mode="simplified"] body .quick-icon,
:root[data-theme="light"][data-ui-mode="simplified"] body .list-icon,
:root[data-theme="light"][data-ui-mode="simplified"] body .member-avatar,
:root[data-theme="light"][data-ui-mode="simplified"] body .volunteer-avatar,
:root[data-theme="light"][data-ui-mode="simplified"] body .compact-card-icon {
  border-color: rgba(59,130,246,0.08);
  background: rgba(59,130,246,0.10);
  color: #2563eb;
}

:root[data-theme="light"][data-ui-mode="simplified"] body .modal-backdrop,
:root[data-theme="light"][data-ui-mode="simplified"] body .settings-backdrop {
  background: rgba(226, 234, 244, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 760px) {
  :root[data-theme="light"][data-ui-mode="simplified"] body .page-container {
    max-width: calc(100vw - 18px);
    padding-top: 12px;
  }

  :root[data-theme="light"][data-ui-mode="simplified"] body .topbar {
    padding-inline: 14px;
  }

  :root[data-theme="light"][data-ui-mode="simplified"] body .hero-panel,
  :root[data-theme="light"][data-ui-mode="simplified"] body .page-home .welcome-banner,
  :root[data-theme="light"][data-ui-mode="simplified"] body .card,
  :root[data-theme="light"][data-ui-mode="simplified"] body .surface-panel,
  :root[data-theme="light"][data-ui-mode="simplified"] body .modal,
  :root[data-theme="light"][data-ui-mode="simplified"] body .table-wrap,
  :root[data-theme="light"][data-ui-mode="simplified"] body .stat-card,
  :root[data-theme="light"][data-ui-mode="simplified"] body .schedule-card,
  :root[data-theme="light"][data-ui-mode="simplified"] body .quick-card {
    border-radius: 16px;
  }
}

:root[data-theme="dark"][data-ui-mode="simplified"] {
  --r-xs: 4px;
  --r-sm: 6px;
  --r: 8px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-xl: 14px;
  --r-2xl: 16px;
}

:root[data-theme="dark"][data-ui-mode="simplified"] *,
:root[data-theme="dark"][data-ui-mode="simplified"] *::before,
:root[data-theme="dark"][data-ui-mode="simplified"] *::after {
  animation: none !important;
  transition: none !important;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .fade-up,
:root[data-theme="dark"][data-ui-mode="simplified"] .toast,
:root[data-theme="dark"][data-ui-mode="simplified"] .dropdown-menu,
:root[data-theme="dark"][data-ui-mode="simplified"] .modal-backdrop.open .modal,
:root[data-theme="dark"][data-ui-mode="simplified"] .settings-backdrop.open .admin-settings-panel {
  opacity: 1 !important;
  transform: none !important;
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .hero-panel,
:root[data-theme="dark"][data-ui-mode="simplified"] body .page-home .welcome-banner,
:root[data-theme="dark"][data-ui-mode="simplified"] body .card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .surface-panel,
:root[data-theme="dark"][data-ui-mode="simplified"] body .modal,
:root[data-theme="dark"][data-ui-mode="simplified"] body .admin-settings-panel,
:root[data-theme="dark"][data-ui-mode="simplified"] body .dropdown-menu,
:root[data-theme="dark"][data-ui-mode="simplified"] body .toast,
:root[data-theme="dark"][data-ui-mode="simplified"] body .acrylic-list,
:root[data-theme="dark"][data-ui-mode="simplified"] body .table-wrap,
:root[data-theme="dark"][data-ui-mode="simplified"] body .stat-card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .schedule-card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .quick-card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .calendar-day,
:root[data-theme="dark"][data-ui-mode="simplified"] body .preview-sidebar,
:root[data-theme="dark"][data-ui-mode="simplified"] body .preview-main,
:root[data-theme="dark"][data-ui-mode="simplified"] body .preview-card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .home-hero,
:root[data-theme="dark"][data-ui-mode="simplified"] body .home-card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .home-metric-card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .home-meta-card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .team-hero,
:root[data-theme="dark"][data-ui-mode="simplified"] body .team-card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .profile-card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .scale-card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .summary-card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .panel-card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .ministry-card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .volunteers-hero,
:root[data-theme="dark"][data-ui-mode="simplified"] body .notice-empty,
:root[data-theme="dark"][data-ui-mode="simplified"] body .code-demo,
:root[data-theme="dark"][data-ui-mode="simplified"] body .token-card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .pattern-card,
:root[data-theme="dark"][data-ui-mode="simplified"] body .settings-section,
:root[data-theme="dark"][data-ui-mode="simplified"] body .tab-panel,
:root[data-theme="dark"][data-ui-mode="simplified"] body .user-bank-devbar,
:root[data-theme="dark"][data-ui-mode="simplified"] body .detail-row,
:root[data-theme="dark"][data-ui-mode="simplified"] body .functions-helper,
:root[data-theme="dark"][data-ui-mode="simplified"] body .modal-note,
:root[data-theme="dark"][data-ui-mode="simplified"] body .list-item,
:root[data-theme="dark"][data-ui-mode="simplified"] body .agenda-item,
:root[data-theme="dark"][data-ui-mode="simplified"] body .calendar-shell,
:root[data-theme="dark"][data-ui-mode="simplified"] body .calendar-side {
  border-radius: 10px;
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .quick-card:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] body .schedule-card:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] body .stat-card:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] body .card:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] body .surface-panel:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] body .list-item:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] body .agenda-item:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] body .calendar-day:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] body .btn:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] body .input:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] body .textarea:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] body .select:hover,
:root[data-theme="dark"][data-ui-mode="simplified"] body .file-input:hover {
  transform: none !important;
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .btn,
:root[data-theme="dark"][data-ui-mode="simplified"] body .btn-primary,
:root[data-theme="dark"][data-ui-mode="simplified"] body .btn-secondary,
:root[data-theme="dark"][data-ui-mode="simplified"] body .btn-ghost,
:root[data-theme="dark"][data-ui-mode="simplified"] body .icon-btn,
:root[data-theme="dark"][data-ui-mode="simplified"] body .topbar-hamburger,
:root[data-theme="dark"][data-ui-mode="simplified"] body .topbar-action-btn,
:root[data-theme="dark"][data-ui-mode="simplified"] body .tab,
:root[data-theme="dark"][data-ui-mode="simplified"] body .settings-choice,
:root[data-theme="dark"][data-ui-mode="simplified"] body .theme-swatch,
:root[data-theme="dark"][data-ui-mode="simplified"] body .color-swatch-btn,
:root[data-theme="dark"][data-ui-mode="simplified"] body .segmented,
:root[data-theme="dark"][data-ui-mode="simplified"] body .segmented button {
  border-radius: 8px;
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .btn *,
:root[data-theme="dark"][data-ui-mode="simplified"] body .icon-btn *,
:root[data-theme="dark"][data-ui-mode="simplified"] body .tab *,
:root[data-theme="dark"][data-ui-mode="simplified"] body .settings-choice *,
:root[data-theme="dark"][data-ui-mode="simplified"] body .list-item *,
:root[data-theme="dark"][data-ui-mode="simplified"] body .table th *,
:root[data-theme="dark"][data-ui-mode="simplified"] body .table td *,
:root[data-theme="dark"][data-ui-mode="simplified"] body .dropdown-item * {
  color: inherit !important;
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .input,
:root[data-theme="dark"][data-ui-mode="simplified"] body .textarea,
:root[data-theme="dark"][data-ui-mode="simplified"] body .select,
:root[data-theme="dark"][data-ui-mode="simplified"] body .file-input,
:root[data-theme="dark"][data-ui-mode="simplified"] body input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]),
:root[data-theme="dark"][data-ui-mode="simplified"] body textarea,
:root[data-theme="dark"][data-ui-mode="simplified"] body select {
  color: var(--text-1) !important;
  background: rgba(26, 36, 51, 0.94) !important;
  background-color: rgba(26, 36, 51, 0.94) !important;
  border-color: rgba(255,255,255,0.08) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

:root[data-theme="dark"][data-ui-mode="simplified"] body input::placeholder,
:root[data-theme="dark"][data-ui-mode="simplified"] body textarea::placeholder {
  color: #6b7280 !important;
}

:root[data-theme="dark"][data-ui-mode="simplified"] body select option,
:root[data-theme="dark"][data-ui-mode="simplified"] body .input option {
  color: var(--text-1) !important;
  background: #162133 !important;
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .dropdown-menu,
:root[data-theme="dark"][data-ui-mode="simplified"] body .dropdown-item {
  color: var(--text-1) !important;
  background: rgba(36, 48, 66, 0.96) !important;
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .dropdown-item:hover {
  background: rgba(42, 55, 74, 0.98) !important;
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .table-wrap,
:root[data-theme="dark"][data-ui-mode="simplified"] body .table {
  background: rgba(36, 48, 66, 0.94) !important;
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .table th {
  color: #cbd5e1 !important;
  background: rgba(31, 42, 58, 0.82) !important;
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .table td {
  color: var(--text-2) !important;
  background: transparent !important;
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .list-item {
  color: var(--text-1) !important;
  background: rgba(26, 36, 51, 0.88) !important;
}

:root[data-theme="dark"][data-ui-mode="simplified"] body .list-item:hover {
  background: rgba(31, 42, 58, 0.94) !important;
}

:root[data-theme="dark"][data-ui-mode="simplified"] body span,
:root[data-theme="dark"][data-ui-mode="simplified"] body strong,
:root[data-theme="dark"][data-ui-mode="simplified"] body small,
:root[data-theme="dark"][data-ui-mode="simplified"] body label,
:root[data-theme="dark"][data-ui-mode="simplified"] body p,
:root[data-theme="dark"][data-ui-mode="simplified"] body li,
:root[data-theme="dark"][data-ui-mode="simplified"] body th,
:root[data-theme="dark"][data-ui-mode="simplified"] body td {
  background-color: transparent;
}

.sb-footer-links {
  padding: 6px !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px;
  background: var(--surface) !important;
  box-shadow: none !important;
}

.sb-footer-link {
  text-align: left;
  box-shadow: none;
}

.sb-footer-link:not(.active):not(:hover) {
  border-color: transparent !important;
  background: transparent !important;
}
