/* app.css — Luveedu Accounts Portal (built on emailsend DESIGN.md system) */

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

:root {
  /* ── Color Palette — Light Theme (matches DESIGN.md) ── */
  --color-bg-canvas: #f9fafb;
  --color-bg-shell: #ffffff;
  --color-bg-surface-1: #ffffff;
  --color-bg-surface-2: #f8fafc;
  --color-bg-surface-3: #eef2ff;
  --color-border-muted: #d6deea;
  --color-border-strong: #c2cedf;
  --color-text-primary: #111827;
  --color-text-secondary: #334155;
  --color-text-tertiary: #64748b;
  --color-text-disabled: #94a3b8;
  --color-text-inverse: #ffffff;
  --color-accent-100: #cdeeff;
  --color-accent-200: #93c5fd;
  --color-accent-300: #60a5fa;
  --color-accent-400: #3b82f6;
  --color-accent-500: #2563eb;
  --color-accent-600: #1d4ed8;
  --color-success-500: #23b36b;
  --color-warning-500: #f4a31c;
  --color-danger-500: #e94d65;
  --color-danger: #e94d65;
  --color-focus-ring: #82d8ff;
  --color-link-default: #1d4ed8;
  --color-link-hover: #1e40af;

  /* ── Sidebar tokens (stays dark in both themes) ── */
  --sidebar-bg: #0f172a;
  --sidebar-border: #1e293b;
  --sidebar-text: #cbd5e1;
  --sidebar-text-muted: #64748b;
  --sidebar-group-label: #334155;
  --sidebar-hover-bg: #1e293b;
  --sidebar-active-bg: #1e293b;
  --sidebar-active-icon: #2563eb;
  --sidebar-danger: #f87171;
  --sidebar-danger-hover: #fca5a5;

  /* ── Type ── */
  --font-ui: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-heading: 'TASA Orbiter', 'Bricolage Grotesque', system-ui, sans-serif;
  --font-mono: 'Bricolage Grotesque', monospace;

  /* ── Radius / Shadow / Motion ── */
  --radius-xs: 6px; --radius-sm: 6px; --radius-md: 6px; --radius-lg: 6px; --radius-xl: 6px; --radius-2xl: 6px; --radius-pill: 9999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.38);
  --duration-fast: 120ms;
  --duration-base: 180ms;
  --duration-slow: 260ms;
  --easing-standard: cubic-bezier(0.2, 0, 0.2, 1);
  --easing-emphasized: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ── Dark Theme ── */
body[data-theme='dark'] {
  --color-bg-canvas: #0a0f1a;
  --color-bg-shell: #0f1627;
  --color-bg-surface-1: #121c31;
  --color-bg-surface-2: #18253e;
  --color-bg-surface-3: #22314d;
  --color-border-muted: #273753;
  --color-border-strong: #385070;
  --color-text-primary: #eaf2ff;
  --color-text-secondary: #b9c8e5;
  --color-text-tertiary: #8ba0c4;
  --color-text-disabled: #62789f;
  --color-text-inverse: #0a0f1a;
  --color-accent-200: #9bdeff;
  --color-accent-300: #65ccff;
  --color-accent-400: #34bcff;
  --color-accent-500: #08abf5;
  --color-accent-600: #008ace;
  --color-link-default: #65ccff;
  --color-link-hover: #9bdeff;
}
body[data-theme='dark'] { background: var(--color-bg-canvas); color: var(--color-text-primary); }

/* ── Base ── */
html, body {
  height: 100%;
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--color-text-primary);
  background: #e2e8ee;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
h1, h2, h3, h4, h5, h6, .panel-title, .stat-value, .metric-value, .kpi-value {
  font-family: var(--font-heading) !important;
}

/* ── Layout shell ── */
.app-shell { display: flex; min-height: 100vh; width: 100%; align-items: stretch; }

/* ── Sidebar ── */
.panel-sidebar { width: 268px; flex-shrink: 0; height: 100vh; position: sticky; top: 0; z-index: 20; overflow: hidden; }
.sidebar-nav { padding: 20px 16px; overflow-y: auto; flex: 1; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #64748b transparent; }
.sidebar-nav::-webkit-scrollbar { width: 7px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: #64748b; border-radius: 999px; border: 1px solid transparent; background-clip: content-box; }
.sidebar-link, .sidebar-parent { background: transparent; border: none; cursor: pointer; text-align: left; }
.sidebar-parent.is-open, .submenu-chevron.is-open { background: #1e293b; color: #ffffff; }
.submenu-chevron { width: 14px; height: 14px; transition: transform 120ms cubic-bezier(0.2, 0, 0.2, 1); }
.submenu-chevron.is-open { transform: rotate(180deg); }
.sidebar-submenu.is-collapsed { display: none; }

/* ── Main content ── */
.main-content { flex: 1; min-width: 0; padding: 28px 32px 36px; background: #e2e8ee; }
body[data-theme='dark'] .main-content { background: var(--color-bg-canvas); }

/* ── Panel header (sticky) ── */
.panel-header {
  position: sticky; top: 0; z-index: 30; height: 68px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: nowrap; border-bottom: 1px solid var(--color-border-muted);
  background: var(--color-bg-surface-1); box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); flex-shrink: 0;
}
body[data-theme='light'] .panel-header { background: #ffffff; }
.page-header-left, .page-header-right { display: flex; align-items: center; gap: 14px; min-width: 0; }
.page-header-left { flex: 1; }
.page-header-right { flex-shrink: 0; }
.page-header-right > * { flex-shrink: 0; }

.header-search {
  min-width: 320px; height: 38px; border-radius: 6px; border: 1px solid var(--color-border-muted);
  background: #f1f5f9; color: var(--color-text-secondary); display: flex; align-items: center; gap: 8px; padding: 0 12px;
}
.header-search svg { width: 14px; height: 14px; color: var(--color-text-secondary); flex-shrink: 0; }
.header-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--color-text-primary); font-size: 14px; }
.header-search input::placeholder { color: var(--color-text-tertiary); }
body[data-theme='dark'] .header-search { border-color: var(--color-border-muted); background: rgba(255,255,255,0.05); }

.icon-control {
  width: 36px; height: 36px; border-radius: 6px; border: 1px solid var(--color-border-muted);
  background: var(--color-bg-surface-1); color: var(--color-text-secondary); display: inline-flex;
  align-items: center; justify-content: center; cursor: pointer;
  transition: border-color var(--duration-fast) var(--easing-standard), color var(--duration-fast) var(--easing-standard), background var(--duration-fast) var(--easing-standard);
}
.icon-control:hover { background: var(--color-bg-surface-2); border-color: var(--color-border-strong); color: var(--color-text-primary); }
.icon-control svg { width: 16px; height: 16px; }
.avatar-tag { width: 36px; height: 36px; border-radius: 6px; border: 1px solid transparent; background: transparent; color: #64748b; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }

/* ── Buttons ── */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--color-accent-500); background: var(--color-accent-500); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background 120ms, border-color 120ms; }
.btn-primary:hover { background: var(--color-accent-400); border-color: var(--color-accent-400); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--color-border-muted); background: var(--color-bg-surface-1); color: var(--color-text-secondary); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background 120ms, border-color 120ms, color 120ms; }
.btn-secondary:hover { background: var(--color-bg-surface-2); border-color: var(--color-border-strong); color: var(--color-text-primary); }
.btn-secondary svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-danger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 6px; border: 1px solid #fecaca; background: #fff; color: #dc2626; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background 120ms; }
.btn-danger:hover { background: #fff1f2; }
.btn-danger svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-block { width: 100%; }

/* ── Cards ── */
.card { background: var(--color-bg-surface-1); border: 1px solid var(--color-border-muted); border-radius: 6px; }
.card-pad { padding: 20px; }

/* ── Forms (match emailsend: text-xs semibold label + short description) ── */
.field-label { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; color: var(--color-text-secondary); }
.field-hint { margin: 0 0 6px; font-size: 12px; color: var(--color-text-tertiary); }
.field-error { margin: 6px 0 0; font-size: 12px; font-weight: 600; color: var(--color-danger-500); }
.input {
  display: block; width: 100%; height: 36px; padding: 0 12px; font-size: 13px; font-family: var(--font-ui);
  color: var(--color-text-primary); background: var(--color-bg-surface-2); border: 1px solid var(--color-border-muted);
  border-radius: 6px; transition: border-color 150ms, box-shadow 150ms;
}
.input:focus { border-color: var(--color-accent-500); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); outline: none; }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; }
select.input { cursor: pointer; }

/* ── Tables ── */
.table-card { overflow: hidden; border-radius: 6px; border: 1px solid var(--color-border-muted); background: var(--color-bg-surface-1); }
.table-card table { width: 100%; border-collapse: collapse; }
.table-card thead tr { background: var(--color-bg-surface-2); }
.table-card th { white-space: nowrap; border-bottom: 1px solid var(--color-border-muted); padding: 10px 16px; text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-tertiary); }
.table-card td { padding: 11px 16px; vertical-align: middle; font-size: 14px; color: var(--color-text-secondary); }
.table-card tbody tr { border-bottom: 1px solid var(--color-border-muted); transition: background 0.1s ease; }
.table-card tbody tr:hover { background: var(--color-bg-surface-2); }
.table-card tbody tr:last-child { border-bottom: 0; }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.badge-green  { background: #f0fdf4; color: #16a34a; }
.badge-red    { background: #fef2f2; color: #dc2626; }
.badge-yellow { background: #fefce8; color: #ca8a04; }
.badge-blue   { background: #eff6ff; color: #2563eb; }
.badge-gray   { background: #f4f4f5; color: #71717a; }
.badge-solid-green  { background: #059669; color: #fff; }
.badge-solid-red    { background: #dc2626; color: #fff; }
.badge-solid-yellow { background: #d97706; color: #fff; }
.badge-solid-gray   { background: #6b7280; color: #fff; }
body[data-theme='dark'] .badge-green  { background: rgba(22,163,74,.15); color: #4ade80; }
body[data-theme='dark'] .badge-red    { background: rgba(220,38,38,.15); color: #f87171; }
body[data-theme='dark'] .badge-yellow { background: rgba(202,138,4,.15); color: #facc15; }
body[data-theme='dark'] .badge-blue   { background: rgba(37,99,235,.15); color: #60a5fa; }
body[data-theme='dark'] .badge-gray   { background: rgba(113,113,122,.2); color: #a1a1aa; }

/* ── Modal ── */
.modal-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.modal-overlay.hidden { display: none; }
.modal-backdrop-layer { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(3px); animation: fadeIn 0.18s ease; }
.modal-box { position: relative; z-index: 201; animation: modalPop 0.15s ease; background: var(--color-bg-surface-1); border-radius: 6px; border: 1px solid var(--color-border-muted); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ── Auth layout (centered card) — matches emailsend dashboard bg (#e2e8ee light) ── */
.auth-topbar { position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; z-index: 60; }
.auth-topbar-logo { height: 32px; width: auto; object-fit: contain; display: block; }
.auth-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: #e2e8ee; }
body[data-theme='dark'] .auth-body { background: var(--color-bg-canvas); }
.auth-card { width: 100%; max-width: 420px; background: var(--color-bg-surface-1); border: 1px solid var(--color-border-muted); border-radius: 6px; padding: 28px; overflow: hidden; }

/* ── Auth card header: icon + title + desc + full-width divider (matches card-title design) ── */
.auth-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -28px -28px 20px;
  padding: 20px 28px 16px;
  border-bottom: 1px solid var(--color-border-muted);
}
.auth-card-head-icon {
  width: 40px; height: 40px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-accent-500); color: #fff; flex-shrink: 0;
}
.auth-card-head-icon svg { width: 20px; height: 20px; }
.auth-card-head-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--color-text-primary); }
.auth-card-head-sub { margin: 2px 0 0; font-size: 12px; color: var(--color-text-tertiary); }

/* ── Auth card footer: top divider + trust/support row ── */
.auth-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px -28px -28px;
  padding: 12px 28px;
  border-top: 1px solid var(--color-border-muted);
  background: var(--color-bg-surface-2);
  font-size: 12px;
  color: var(--color-text-tertiary);
}
.auth-card-foot-item { display: inline-flex; align-items: center; gap: 6px; }
.auth-card-foot-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.auth-card-foot-item a { display: inline-flex; align-items: center; gap: 6px; color: var(--color-text-tertiary); text-decoration: none; }
.auth-card-foot-item a:hover { color: var(--color-accent-500); }

/* ── Info banner above the login card (SSO redirect notice) ── */
.auth-info-card {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  padding: 10px 14px;
  margin-bottom: 12px;
  border: 1px solid var(--color-border-muted);
  border-radius: 6px;
  background: var(--color-bg-surface-1);
  color: var(--color-text-secondary);
  font-size: 12px;
}
.auth-info-card svg { width: 15px; height: 15px; color: var(--color-accent-500); flex-shrink: 0; }
.auth-logo { width: 56px; height: 56px; border-radius: 9999px; object-fit: cover; margin: 0 auto 16px; display: block; }
/* Icon tile used in place of the logo inside auth cards */
.auth-card-icon { margin: 0 auto 16px; width: 52px; height: 52px; border-radius: 6px; display: flex; align-items: center; justify-content: center; background: var(--color-accent-500)/10; color: var(--color-accent-500); }
.auth-card-icon i { width: 26px; height: 26px; }

/* ── Auth channel chips (Email OTP / Phone OTP) — 50/50, 6px radius per design standard ── */
.tab-list { display: flex; gap: 8px; margin: 20px 0; }
.tab-btn {
  flex: 1 1 50%;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 12px; border-radius: 6px; border: 1px solid var(--color-border-muted);
  background: var(--color-bg-surface-2); color: var(--color-text-secondary);
  font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: border-color 150ms, background 150ms, color 150ms;
}
.tab-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.tab-btn:hover { background: var(--color-bg-surface-3); }
.tab-btn.is-active { border-color: var(--color-accent-500); background: var(--color-accent-500); color: #fff; }
.tab-btn.is-active svg { color: #fff; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 48px 20px; color: var(--color-text-tertiary); }
.empty-state svg { width: 36px; height: 36px; margin: 0 auto 12px; display: block; color: var(--color-text-disabled); }
.empty-state p { font-size: 13px; }

/* ── Avatar / identicon ── */
.avatar-circle { border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; flex-shrink: 0; }

/* ── Misc ── */
.hidden { display: none !important; }
.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-tertiary { color: var(--color-text-tertiary); }
.text-danger { color: var(--color-danger-500); }
.mono { font-family: var(--font-mono); }
.tabular-nums { font-variant-numeric: tabular-nums; }
.link { color: var(--color-accent-500); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }
.theme-toggle-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 6px; border: 1px solid var(--color-border-muted); background: var(--color-bg-surface-1); color: var(--color-text-secondary); cursor: pointer; transition: background 120ms, color 120ms; }
.theme-toggle-btn:hover { background: var(--color-bg-surface-2); color: var(--color-text-primary); }

/* ── Progress ── */
.progress-bar { height: 4px; background: var(--color-bg-surface-3); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--color-accent-500); border-radius: 2px; transition: width 0.4s ease; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border-strong); border-radius: 3px; }

/* ── Spin ── */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; display: inline-block; }

/* ── Focus visible for a11y ── */
:focus-visible { outline: 2px solid var(--color-accent-500); outline-offset: 1px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Drawer (account / profile) — matches emailsend exactly ── */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(5, 10, 18, 0.68);
  opacity: 0; pointer-events: none;
  transition: opacity var(--duration-base) var(--easing-standard);
  z-index: 40;
}
.drawer-overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; width: 420px; max-width: 100%; height: 100vh;
  background: var(--color-bg-surface-1); border-left: 1px solid var(--color-border-strong);
  border-radius: 16px 0 0 16px; transform: translateX(100%);
  transition: transform var(--duration-base) var(--easing-standard);
  z-index: 45; display: flex; flex-direction: column; overflow: hidden;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  min-height: 56px; flex-shrink: 0; display: flex; align-items: center;
  justify-content: space-between; padding: 0 16px;
  border-bottom: 1px solid var(--color-border-muted); background: var(--color-bg-surface-1);
}
.drawer-head h3 { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 700; color: var(--color-text-primary); }
.drawer-body { padding: 16px; overflow-y: auto; display: grid; gap: 12px; background: var(--color-bg-surface-2); }
.drawer-link {
  min-height: 38px; border-radius: 6px; text-decoration: none; font-size: 13px; font-weight: 500;
  color: var(--color-text-secondary); display: flex; align-items: center; gap: 10px; padding: 0 12px;
  border: 1px solid transparent;
  transition: color 120ms cubic-bezier(0.2, 0, 0.2, 1), background 120ms cubic-bezier(0.2, 0, 0.2, 1), border-color 120ms cubic-bezier(0.2, 0, 0.2, 1);
}
.drawer-link:hover { color: var(--color-text-primary); background: var(--color-bg-surface-2); border-color: var(--color-border-muted); }
.drawer-link.is-danger { color: #ffb2bf; font-weight: 600; }
.drawer-link.is-danger:hover { background: rgba(233, 77, 101, 0.14); color: #ffb2bf; border-color: transparent; }
body[data-theme='light'] .drawer-link.is-danger { color: #dc2626; }
body[data-theme='dark'] .drawer-link { color: var(--color-text-secondary); }
body[data-theme='dark'] .drawer-link:hover { background: var(--color-bg-surface-2); border-color: var(--color-border-muted); color: var(--color-text-primary); }

/* ── Header alignment (matches emailsend panel-header) ── */
.panel-header-left, .panel-header-right { display: flex; align-items: center; gap: 14px; min-width: 0; }
.panel-header-right { flex-shrink: 0; }
.panel-header-right > * { flex-shrink: 0; }

/* ── Sub-tab rail (emailsend settings-tab style) ── */
.settings-tab { font-weight: 500; color: var(--color-text-secondary); }
.settings-tab.is-active { background: var(--color-accent-500); color: var(--color-bg-canvas); font-weight: 600; }
.settings-tab.is-active svg { color: var(--color-bg-canvas); }

/* ── Notification badge (matches emailsend) ── */
.notif-badge { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; border-radius: 9999px; font-size: 10px; font-weight: 700; line-height: 1; color: #fff; background: var(--color-warning-500, #f4a31c); display: none; align-items: center; justify-content: center; padding: 0 4px; }
.notif-badge.show { display: inline-flex; }

/* ── Choice cards (wizard / template pickers) ── */
.choice-card:has(:checked) { border-color: var(--color-accent-500); background: var(--color-accent-500); }
.choice-card:has(:checked) .cc-title { color: #ffffff; }
.choice-card:has(:checked) .cc-desc { color: rgba(255,255,255,0.8); }
.choice-card:has(:checked) .cc-thumb { border-color: rgba(255,255,255,0.4); }
.choice-card:has(:checked) .choice-check { background: #ffffff; border-color: #ffffff; color: var(--color-accent-500); box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.choice-check { transition: background 120ms, border-color 120ms, color 120ms; }

/* ── Bio page builder: fixed live preview pane (matches emailsend) ── */
.preview-frame iframe { -webkit-user-select: none; user-select: none; }
#bioPreviewFrame { pointer-events: auto; }
.template-slider::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) {
  #bioPreviewSticky { position: fixed; top: 68px; bottom: 0; right: 0; width: calc((100vw - 268px) * 0.50); z-index: 30; border-radius: 0; }
  .builder-form { width: calc((100vw - 268px) * 0.50 - 64px); max-width: calc((100vw - 268px) * 0.50 - 64px); }
}

/* ── Notification items (matches emailsend) ── */
.notice-item { border: 1px solid var(--color-border-muted); background: var(--color-bg-surface-2); border-radius: 6px; padding: 16px; display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
body[data-theme='light'] .notice-item { background: #ffffff; border-color: #d6deea; }
.notice-dot { margin-top: 4px; width: 8px; height: 8px; border-radius: 999px; background: var(--color-accent-500); flex-shrink: 0; }
.notice-dot.is-success { background: var(--color-success-500); }
.notice-dot.is-warning { background: var(--color-warning-500); }
.notice-dot.is-error { background: var(--color-danger-500); }
.notice-title { margin: 0; font-size: 13px; line-height: 1.45; font-weight: 600; color: var(--color-text-primary); }
.notice-text { margin: 4px 0 0; font-size: 12px; line-height: 1.5; color: var(--color-text-tertiary); }
.notice-date { margin: 4px 0 0; font-size: 10px; color: var(--color-text-disabled); }
