/* ============================================================
   Design source: Tend demo visual tokens, MEASURED from the
   downloaded demo CSS (tend-analysis/bundle) — values only,
   no demo CSS/JS/assets copied. Light theme is canonical;
   dark theme is the demo's own measured dark tokens.
   ============================================================ */
:root {
  /* Measured demo tokens (light). */
  --bg: #eef2ef;
  --glow-a: #d7efe4;
  --glow-b: #e6eef6;
  --surface: #fbfcfb;
  --surface-2: #f4f7f5;
  --raised: #fff;
  --well: #10231f0e;
  --line: #10231f16;
  --line-2: #10231f29;
  --text: #10231f;
  --ink: #10231f;
  --muted: #586a65;
  --muted-2: #8a9994;
  --faint: #8a9994;
  --primary: #0d5c55;
  --primary-2: #0a4a44;
  --primary-action: #0d5c55;
  --on-primary: #f1fbf7;
  --side: #0f2d29;
  --on-side: #dcebe7;
  --side-dim: #dcebe79e;
  --side-pill: #c4ecd9;
  --on-side-pill: #0b2925;
  --teal: #138a7e;
  --mint: #4fbf93;
  --sky: #4c94dc;
  --lilac: #8b72d8;
  --apricot: #e9953f;
  --coral: #de5539;
  --sand: #b79a55;
  --good: #1d8656;
  --warn: #b8700f;
  --bad: #cf4429;
  --wa: #1fa855;
  --tick: #2b9fe0;
  /* Compatibility aliases used by page stylesheets (all measured values). */
  --send-now: #1fa855;
  --mint-wash: #e5efec;
  --mint-wash-2: #f4f7f5;
  --mint-soft: #dcebe7;
  --mint-active: #c4ecd9;
  --mint-active-2: #d6e6e2;
  --mint-sub: #f4f7f5;
  --page-1: #eef2ef;
  --page-2: #eef2ef;
  --page-3: #eef2ef;
  --card: #fbfcfb;
  --border: #10231f16;
  --border-2: #10231f29;
  --hairline: #10231f16;
  --card-border: #10231f16;
  --sidebar-bg: #0f2d29;
  --sidebar-bg-2: #0f2d29;
  --sidebar-text: #dcebe7;
  --sidebar-hover: #ffffff0f;
  --sidebar-bottom: #ffffff0f;
  --badge-green: #1fa855;
  --badge-green-2: #1fa855;
  --red: #cf4429;
  --missed: #cf4429;
  --blue: #4c94dc;
  --blue-2: #4c94dc;
  --blue-action: #4c94dc;
  --blue-tint: #e6eef6;
  --amber: #e9953f;
  --amber-tint: color-mix(in srgb, #e9953f 14%, #fbfcfb);
  --green: #1d8656;
  --green-tint: color-mix(in srgb, #1d8656 12%, #fbfcfb);
  --green-text: #1d8656;
  --lavender-tint: color-mix(in srgb, #8b72d8 13%, #fbfcfb);
  --pink-tint: color-mix(in srgb, #de5539 12%, #fbfcfb);
  --grey-tint: #f4f7f5;
  --tick-blue: #2b9fe0;
  --tick-grey: #8a9994;
  --col-bg: #f4f7f5;
  --appt-fill: #f4f7f5;
  --appt-border: #10231f16;
  --merge-hl: #FFF3C4;
  --no-show-line: #de5539;
  --no-show-fill: color-mix(in srgb, #de5539 12%, #fbfcfb);
  --funnel-track: #10231f0e;
  --heatmap-deep: #138a7e;
  --chart-teal: #138a7e;
  --chart-pale: #d7efe4;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px #10231f0a, 0 14px 34px -22px #10231f38;
  --shadow-lg: 0 24px 60px -18px #10231f4d, 0 2px 6px #10231f14;
  --gutter: clamp(16px, 1.8vw, 30px);
  --side-w: 248px;
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  background: radial-gradient(60vmax 50vmax at 12% -10%, var(--glow-a), transparent 70%), radial-gradient(50vmax 40vmax at 100% 0%, var(--glow-b), transparent 70%), var(--bg);
  background-attachment: fixed;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-action); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--ink); }
input[type="text"], input[type="email"], input[type="password"], input[type="datetime-local"], input[type="date"], input[type="number"], select, textarea {
  background: var(--raised);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  height: 42px;
  padding: 0 16px;
  width: 100%;
  outline: none;
}
textarea { height: auto; padding: 12px 16px; resize: vertical; border-radius: 16px; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
::placeholder { color: var(--faint); }

/* ---------- shared: headings, eyebrows, pills, buttons ---------- */
h1.page-h1 { font-size: clamp(26px, 2.3vw, 36px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; margin: 0; color: var(--ink); }
h2.card-h2 { font-size: 17px; font-weight: 700; margin: 0; }
h3.sec-h3 { font-size: 14px; font-weight: 700; margin: 0; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 4px; }
.meta { font-size: 12px; color: var(--muted-2); }
.meta13 { font-size: 13px; color: var(--muted); }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted-2); }
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.pad { padding: 18px; }
.pad16 { padding: 16px; }
.btn-primary {
  background: var(--primary); color: var(--on-primary); border: 0; border-radius: 999px;
  height: 42px; padding: 0 18px; font-size: 13.5px; font-weight: 650;
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--primary) 80%, transparent);
}
.btn-primary:hover { filter: brightness(.94); }
.btn-primary:disabled { opacity: 0.55; cursor: default; }
.btn-secondary {
  background: var(--raised); color: var(--ink); border: 1px solid var(--border-2);
  border-radius: 999px; height: 42px; padding: 0 18px; font-size: 13.5px; font-weight: 650;
}
.btn-secondary:hover { border-color: var(--primary); }
.btn-small { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-mini {
  background: var(--primary-action); color: #fff; border: 0; border-radius: 999px;
  height: 30px; padding: 0 12px; font-size: 12px; font-weight: 600;
}
.btn-send { background: var(--send-now); color: #fff; border: 0; border-radius: 999px; height: 42px; padding: 0 18px; font-size: 13.5px; font-weight: 650; }
.btn-block { width: 100%; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; background: var(--card); border: 1px solid var(--border-2);
  display: inline-flex; align-items: center; justify-content: center; font-size: 17px; position: relative; color: var(--ink);
}
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 9px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill-mint { background: var(--green-tint); color: var(--primary); }
.pill-blue { background: var(--blue-tint); color: #1D4ED8; }
.pill-amber { background: var(--amber-tint); color: #92400E; }
.pill-lav { background: var(--lavender-tint); color: #5B21B6; }
.pill-pink { background: var(--pink-tint); color: #9F1239; }
.pill-grey { background: var(--grey-tint); color: var(--muted); }
.pill-red { background: var(--pink-tint); color: var(--missed); }
.pill-green-text { background: var(--green-tint); color: var(--green-text); }
.seg { display: inline-flex; background: var(--well); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 7px 13px; font-size: 12.5px; font-weight: 650; color: var(--muted); }
.seg button.active { background: var(--raised); color: var(--ink); box-shadow: 0 2px 8px #10231f1a; }
.seg-light button.active { background: var(--raised); color: var(--ink); box-shadow: 0 2px 8px #10231f1a; }
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; color: var(--ink); flex: none; }
.avatar-md { width: 40px; height: 40px; font-size: 13px; }
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-lg { width: 48px; height: 48px; font-size: 15px; }
.av-peach { background: #FDE8D0; } .av-sky { background: #DDEBFF; } .av-lav { background: #E8E0F8; }
.av-mint { background: #DDF0DD; } .av-cream { background: #FFF3C4; } .av-pink { background: #FDE3E0; }
.field-label { display: block; font-size: 13px; font-weight: 700; margin: 14px 0 6px; }
.helper { font-size: 12px; color: var(--muted-2); margin-top: 6px; }
.form-error { color: var(--missed); font-size: 13px; font-weight: 600; }
.empty { color: var(--muted-2); font-size: 13px; padding: 16px 4px; }
.loading { color: var(--muted-2); padding: 24px; font-size: 14px; }

/* ---------- login ---------- */
.login-view { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { background: var(--card); border: 1px solid var(--card-border); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 36px 32px; width: 100%; max-width: 400px; }
.login-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.login-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--side-pill); color: var(--on-side-pill); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; }
.login-word { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.login-card h1 { font-size: 26px; font-weight: 800; margin: 0 0 6px; }
.login-sub { color: var(--muted); margin: 0 0 8px; }
.login-form input { margin-bottom: 2px; }
.login-alt { text-align: center; font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.login-alt a { color: var(--primary); font-weight: 600; }
.invite-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.invite-link { word-break: break-all; font-weight: 600; color: var(--ink); margin: 4px 0; }

/* ---------- shell: sidebar + content ---------- */
.app-shell { display: flex; min-height: 100vh; align-items: stretch; }
.sidebar { width: var(--side-w); flex: none; background: var(--sidebar-bg); color: var(--sidebar-text); display: flex; flex-direction: column; padding: 20px 14px 14px; position: sticky; top: 0; height: 100vh; }
.side-logo { display: flex; align-items: center; gap: 11px; padding: 2px 8px 18px; }
.side-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--side-pill); color: var(--on-side-pill); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; }
.side-word { font-size: 21px; font-weight: 700; color: var(--on-side); letter-spacing: -0.04em; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-item {
  position: relative; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px;
  border-radius: 14px; color: var(--sidebar-text); font-size: 14px; font-weight: 600; text-decoration: none;
}
.side-item:hover { background: var(--sidebar-hover); text-decoration: none; }
.side-item.active { background: var(--side-pill); color: var(--on-side-pill); font-weight: 700; }
.side-ico { font-size: 16px; width: 20px; text-align: center; }
.side-badge { margin-left: auto; background: var(--badge-green); color: #fff; font-size: 11.5px; font-weight: 700; min-width: 22px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 7px; }
.side-bottom { margin-top: auto; background: var(--sidebar-bottom); border-radius: 16px; padding: 12px; }
.side-status-title { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--side-dim); margin-bottom: 10px; }
.side-status-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; color: var(--sidebar-text); }
.side-status-row strong { color: var(--on-side); }
.content-col { flex: 1; min-width: 0; padding: 20px var(--gutter) 56px; }
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.top-search {
  display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--border-2);
  border-radius: 999px; height: 46px; padding: 0 8px 0 16px; flex: 1; min-width: 220px; max-width: 460px;
}
.top-search input { border: 0; height: auto; padding: 0; background: transparent; }
.top-search input:focus { box-shadow: none; }
.top-search-ico { color: var(--faint); }
.kbd { font-family: var(--font); font-size: 11px; background: var(--col-bg); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; color: var(--muted); }
.top-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.time-pill { background: var(--card); border: 1px solid var(--border-2); border-radius: 999px; height: 46px; display: inline-flex; align-items: center; padding: 0 14px; font-size: 13px; font-weight: 600; }
.bell-dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); border: 2px solid var(--raised); }
.btn-new { height: 42px; }
.account-wrap { position: relative; }
.account-btn { border: 0; background: transparent; padding: 0; }
.account-menu { position: absolute; right: 0; top: 46px; background: var(--raised); border: 1px solid var(--card-border); border-radius: 18px; box-shadow: var(--shadow-lg); min-width: 200px; padding: 6px; z-index: 50; }
.account-name { font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--hairline); margin-bottom: 6px; }
.menu-item { display: block; width: 100%; text-align: left; background: transparent; border: 0; padding: 9px 10px; border-radius: 8px; font-size: 14px; color: var(--ink); }
.menu-item:hover { background: var(--mint-wash-2); }
.create-menu { position: fixed; right: 28px; top: 72px; background: var(--raised); border: 1px solid var(--card-border); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; min-width: 200px; }
.page { min-width: 0; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }

/* ---------- modal / toast / shortcuts ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 46, 45, 0.45); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 100; }
/* Shortcuts dialog: class-based visibility (permanent fix 2026-10-28).
   .is-open alone controls display; the global [hidden] net stays as backup. */
#shortcuts-backdrop { display: none; }
#shortcuts-backdrop.is-open { display: flex; }
.modal { background: var(--raised); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 24px; width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; }
.modal h2 { font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.modal h3 { font-size: 14px; font-weight: 700; margin: 18px 0 8px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.toast-wrap { position: fixed; bottom: 22px; right: 22px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; }
.toast button { background: var(--mint-active); border: 0; border-radius: 999px; padding: 4px 12px; font-weight: 700; color: var(--ink); }
.shortcut-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 16px 0; font-size: 13px; }
.shortcut-grid kbd { font-family: var(--font); background: var(--col-bg); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; font-size: 11px; }

/* ---------- tables (shared) ---------- */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted-2); padding: 10px 12px; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.data-table td { padding: 12px; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: var(--col-bg); }
.checkbox { width: 18px; height: 18px; border-radius: 5px; accent-color: var(--primary); }

/* ---------- toggles ---------- */
.toggle { position: relative; width: 46px; height: 26px; border-radius: 999px; background: #D1D5DB; border: 0; flex: none; transition: background 0.2s; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.toggle.on { background: var(--primary); }
.toggle.on::after { left: 23px; }

/* Narrow-width top brand (Tend pattern: brand row above content) + bottom-nav More.
   Hidden on desktop; the 760px block below shows them. */
.top-brand { display: none; }
.side-more { display: none; }
.side-more-menu { display: none; }

/* ---------- responsive: phone layout ---------- */
@media (max-width: 1180px) {
  .content-col { padding: 16px 18px 56px; }
  h1.page-h1 { font-size: 30px; }
  .sidebar { width: 76px; padding: 16px 10px 12px; align-items: stretch; }
  .side-logo { justify-content: center; padding: 2px 0 14px; }
  .side-word { display: none; }
  .side-item { justify-content: center; height: 48px; padding: 0; }
  .side-item span:not(.side-ico):not(.side-badge) { display: none; }
  .side-badge { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; font-size: 10.5px; padding: 0 5px; margin: 0; }
  .side-bottom { display: none; }
}
@media (max-width: 760px) {
  .app-shell { flex-direction: column; }
  /* Tend narrow pattern: NO dark band on top — the nav becomes a dark
     pill bar fixed to the BOTTOM; the top shows brand + icon buttons
     directly on the pale page. */
  .sidebar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); top: auto; width: auto; height: auto; padding: 6px; border-radius: 24px; flex-direction: row; align-items: center; gap: 0; z-index: 90; box-shadow: var(--shadow-lg); }
  .side-logo, .side-bottom { display: none; }
  .side-nav { flex: 1; flex-direction: row; gap: 0; overflow: visible; }
  .side-nav > a.side-item[data-page="campaigns"], .side-nav > a.side-item[data-page="reports"], .side-nav > a.side-item[data-page="settings"], .side-nav > a.side-item[data-page="team"] { display: none; }
  .side-item { flex: 1; flex-direction: column; justify-content: center; gap: 2px; height: 56px; padding: 0; font-size: 10.5px; border-radius: 18px; }
  .side-item span:not(.side-ico):not(.side-badge) { display: block; }
  .side-ico { font-size: 18px; width: auto; }
  .side-badge { position: absolute; top: 3px; right: calc(50% - 22px); min-width: 18px; height: 18px; font-size: 10.5px; padding: 0 5px; margin: 0; }
  .side-more { display: flex; flex: 1; background: transparent; border: 0; font: inherit; color: var(--sidebar-text); cursor: pointer; }
  .side-more.open { background: var(--side-pill); color: var(--on-side-pill); }
  .side-more-menu { display: block; position: fixed; left: 10px; right: 10px; bottom: calc(84px + env(safe-area-inset-bottom)); background: var(--raised); border: 1px solid var(--card-border); border-radius: 18px; padding: 6px; box-shadow: var(--shadow-lg); z-index: 95; }
  .side-more-menu .menu-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
  .side-more-menu .menu-item.active { background: var(--side-pill); color: var(--on-side-pill); }
  .top-brand { display: flex; align-items: center; gap: 9px; margin-right: auto; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
  .top-brand:hover { text-decoration: none; }
  .top-brand-mark { width: 34px; height: 34px; border-radius: 12px; background: var(--primary); color: var(--on-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; }
  .topbar { gap: 8px; margin-bottom: 16px; }
  .top-search { order: 2; flex-basis: 100%; max-width: none; }
  .top-right { margin-left: 0; width: 100%; justify-content: space-between; }
  .time-pill { display: none; }
  .content-col { padding: 12px max(14px, env(safe-area-inset-right)) calc(104px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
  h1.page-h1 { font-size: 28px; }
  .page-head > div:first-child { flex-basis: 100%; }
  .page-head > .pill { flex: 1 1 0; justify-content: center; height: 42px; }
  .page-head > .btn-primary { flex: 1 1 0; min-width: 0; }
  .create-menu { right: 14px; top: auto; }
  .modal { padding: 18px; }
  .toast-wrap { bottom: calc(92px + env(safe-area-inset-bottom)); right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- dark theme: the demo's own measured dark tokens ---------- */
[data-theme="dark"] {
  --bg: #0b1312;
  --glow-a: #138a7e29;
  --glow-b: #4c94dc14;
  --surface: #121d1c;
  --surface-2: #172423;
  --raised: #1b2a28;
  --well: #ffffff0e;
  --line: #ffffff13;
  --line-2: #ffffff26;
  --text: #e5efec;
  --ink: #e5efec;
  --muted: #9db0aa;
  --muted-2: #6f817c;
  --faint: #6f817c;
  --primary: #5cd0b4;
  --primary-2: #5cd0b4;
  --primary-action: #5cd0b4;
  --on-primary: #06201c;
  --side: #0e1918;
  --on-side: #d6e6e2;
  --side-dim: #d6e6e28f;
  --side-pill: #5cd0b4;
  --on-side-pill: #06201c;
  --teal: #3cc0ad;
  --mint: #6fd3a6;
  --sky: #74b3f0;
  --lilac: #a996ee;
  --apricot: #f2aa5f;
  --coral: #f07a5f;
  --sand: #d0b878;
  --good: #5fd09a;
  --warn: #f0b45a;
  --bad: #f2836a;
  --wa: #3fd17a;
  --tick: #53bdeb;
  --send-now: #3fd17a;
  --mint-wash: #172423;
  --mint-wash-2: #121d1c;
  --mint-soft: #1b2a28;
  --mint-active: #5cd0b4;
  --mint-active-2: #3cc0ad;
  --mint-sub: #172423;
  --page-1: #0b1312;
  --page-2: #0b1312;
  --page-3: #0b1312;
  --card: #121d1c;
  --border: #ffffff13;
  --border-2: #ffffff26;
  --hairline: #ffffff13;
  --card-border: #ffffff13;
  --sidebar-bg: #0e1918;
  --sidebar-bg-2: #0e1918;
  --sidebar-text: #d6e6e2;
  --sidebar-hover: #ffffff0f;
  --sidebar-bottom: #ffffff0f;
  --badge-green: #3fd17a;
  --badge-green-2: #3fd17a;
  --red: #f2836a;
  --missed: #f2836a;
  --blue: #74b3f0;
  --blue-2: #74b3f0;
  --blue-action: #74b3f0;
  --blue-tint: #4c94dc14;
  --amber: #f2aa5f;
  --amber-tint: color-mix(in srgb, #f2aa5f 20%, #121d1c);
  --green: #5fd09a;
  --green-tint: color-mix(in srgb, #5fd09a 18%, #121d1c);
  --green-text: #5fd09a;
  --lavender-tint: color-mix(in srgb, #a996ee 18%, #121d1c);
  --pink-tint: color-mix(in srgb, #f07a5f 18%, #121d1c);
  --grey-tint: #172423;
  --tick-blue: #53bdeb;
  --tick-grey: #6f817c;
  --col-bg: #172423;
  --appt-fill: #172423;
  --appt-border: #ffffff26;
  --no-show-line: #f07a5f;
  --no-show-fill: color-mix(in srgb, #f07a5f 18%, #121d1c);
  --funnel-track: #ffffff0e;
  --heatmap-deep: #3cc0ad;
  --chart-teal: #3cc0ad;
  --chart-pale: #1b2a28;
  --shadow: 0 1px 0 #ffffff0a inset, 0 18px 40px -26px #000c;
  --shadow-lg: 0 24px 60px -18px #000000bf, 0 0 0 1px #ffffff14;
}
[data-theme="dark"] input[type="text"], [data-theme="dark"] input[type="email"], [data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="datetime-local"], [data-theme="dark"] input[type="date"], [data-theme="dark"] input[type="number"],
[data-theme="dark"] select, [data-theme="dark"] textarea { background: #121d1c; color: var(--ink); }
[data-theme="dark"] .btn-secondary, [data-theme="dark"] .top-search, [data-theme="dark"] .time-pill,
[data-theme="dark"] .icon-btn, [data-theme="dark"] .account-menu, [data-theme="dark"] .create-menu,
[data-theme="dark"] .login-card { background: #121d1c; }
[data-theme="dark"] .modal { background: #1b2a28; }
[data-theme="dark"] .btn-primary:hover { filter: brightness(1.12); }
[data-theme="dark"] .data-table tr:hover td { background: #172423; }
[data-theme="dark"] .menu-item:hover { background: #172423; }
[data-theme="dark"] .seg button.active { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }

/* FIX 2026-10-28: author display:flex beats UA [hidden]; force-hide backdrops with hidden attr */
.modal-backdrop[hidden]{display:none !important;}

/* FIX 2026-10-28 #2: author display rules beat UA [hidden]; force-hide ALL hidden elements */
[hidden]{display:none !important;}

/* ---------- collapsible left sidebar (desktop only) ---------- */
/* Narrow widths keep their existing behavior: 76px icon rail at <=1180px,
   bottom pill bar at <=760px. The collapse classes only bite above 1180px. */
.side-collapse-btn { margin-left: auto; border: 0; background: transparent; color: var(--sidebar-text); font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 10px; flex: none; }
.side-collapse-btn:hover { background: var(--sidebar-hover); }
.nav-expand-tab { display: none; }
@media (min-width: 1181px) {
  .app-shell.nav-collapsed #sidebar { display: none; }
  .app-shell.nav-collapsed .nav-expand-tab { display: inline-flex; position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 80; width: 28px; height: 56px; align-items: center; justify-content: center; background: var(--sidebar-bg); color: var(--sidebar-text); border: 0; border-radius: 0 12px 12px 0; font-size: 20px; cursor: pointer; box-shadow: var(--shadow); }
}
@media (max-width: 1180px) {
  .side-collapse-btn { display: none; }
}
