/* ==========================================================================
   WhatsApp Marketing Platform — design system v1.1
   Designed & developed by Abhinash Kumar.

   Idea: the product is about conversations, so its one signature shape is the
   chat bubble — key surfaces (KPI tiles, toasts, previews, empty states) use an
   asymmetric "bubble" corner and a layered soft "bubble shadow". Everything else
   stays calm: petrol-ink navigation, white work surfaces, teal-green actions and a
   saffron accent reserved for things that need attention.

   All selectors used by views and page scripts are kept; only the look changes.
   CSP: no inline styles; the font is self-hosted (font-src 'self').
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans.woff") format("woff");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* palette */
  --ink: #0f2e33;            /* navigation, headings on dark */
  --ink-2: #163d43;
  --ink-3: #1f4c53;
  --bg: #f2f6f6;             /* mist */
  --surface: #ffffff;
  --surface-2: #f5f9f9;
  --surface-3: #ebf2f2;
  --border: #dfe8e8;
  --border-strong: #c9d7d7;
  --text: #13262a;
  --text-muted: #5b6f73;
  --brand: #0e9f78;          /* teal-green: primary actions, success */
  --brand-strong: #0a7f60;
  --brand-soft: #e2f5ee;
  --accent: #f2a93b;         /* saffron: attention, highlights */
  --accent-strong: #b8730f;
  --accent-soft: #fdf1dd;
  --danger: #d14343;
  --warning: #b7791f;
  --success: #0e9f78;
  --info: #2f6fdb;

  /* shape */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 7px;
  --bubble: 18px 18px 18px 6px;          /* incoming chat bubble */
  --bubble-out: 18px 18px 6px 18px;      /* outgoing chat bubble */

  /* depth: layered "bubble" shadows */
  --shadow-xs: 0 1px 2px rgba(15, 46, 51, .06);
  --shadow: 0 1px 1px rgba(15, 46, 51, .04), 0 2px 6px rgba(15, 46, 51, .05), 0 12px 28px -14px rgba(15, 46, 51, .20);
  --shadow-bubble: 0 1px 1px rgba(15, 46, 51, .05), 0 4px 10px rgba(15, 46, 51, .06), 0 18px 36px -18px rgba(14, 159, 120, .35);
  --shadow-pop: 0 2px 6px rgba(15, 46, 51, .08), 0 24px 48px -16px rgba(15, 46, 51, .38);
  --ring: 0 0 0 3px rgba(14, 159, 120, .22);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #0b2226;
    --ink-2: #12313a;
    --ink-3: #1a3f47;
    --bg: #0b1a1d;
    --surface: #112428;
    --surface-2: #152c31;
    --surface-3: #1a353b;
    --border: #23413f;
    --border-strong: #2f524f;
    --text: #e6f0ef;
    --text-muted: #9bb2b2;
    --brand: #2cc496;
    --brand-strong: #5fd8b2;
    --brand-soft: #123a31;
    --accent: #f5b955;
    --accent-strong: #f5c26d;
    --accent-soft: #3a2c14;
    --danger: #ff7b72;
    --warning: #f0b445;
    --success: #2cc496;
    --info: #79a7ff;
    --shadow: 0 1px 1px rgba(0, 0, 0, .35), 0 12px 28px -14px rgba(0, 0, 0, .6);
    --shadow-bubble: 0 1px 1px rgba(0, 0, 0, .4), 0 18px 36px -18px rgba(0, 0, 0, .7);
    --shadow-pop: 0 24px 48px -16px rgba(0, 0, 0, .75);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }      /* hidden must win over any display rule */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 15px/1.55 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; color: var(--text); }
h1 { font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: .95rem; font-weight: 700; }
p { margin: 0 0 .75rem; }
a { color: var(--brand-strong); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand); }
code { font-family: var(--mono); font-size: .86em; background: var(--surface-3); padding: .12em .4em; border-radius: 5px; }
::selection { background: color-mix(in srgb, var(--brand) 25%, transparent); }
:focus-visible { outline: none; box-shadow: var(--ring); }

.muted { color: var(--text-muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.mono { font-family: var(--mono); font-size: .86em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; }
.stat, .small-stat, .breakdown strong, .table td { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 40px; padding: 0 1rem;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  font: inherit; font-size: .92rem; font-weight: 650; text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: background-color .15s, border-color .15s, box-shadow .15s, transform .05s;
}
.btn:hover { background: var(--surface-2); border-color: var(--brand); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 88%, #fff) 0%, var(--brand) 100%);
  border-color: var(--brand-strong); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 16px -8px rgba(14, 159, 120, .7);
}
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.btn-sm { min-height: 32px; padding: 0 .75rem; font-size: .83rem; border-radius: 8px; }
.btn-block { width: 100%; margin-top: 14px; }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 9%, var(--surface)); border-color: var(--danger); color: var(--danger); }
.btn-icon { min-width: 40px; padding: 0; }
.btn-icon svg { width: 20px; height: 20px; }
.link-button { background: none; border: 0; padding: 0; color: var(--brand-strong); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- landing / error / hero ---------- */
.page-center { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.hero-card, .error-card {
  width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px 24px 24px 8px; box-shadow: var(--shadow-bubble); padding: 36px 30px; text-align: center;
}
.brand-mark { width: 48px; height: 48px; margin: 0 auto 16px; display: block; color: var(--brand); }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-mark.sm { width: 34px; height: 34px; margin: 0; display: inline-block; flex: none; }
.status-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .85rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); font-size: .85rem; font-weight: 650; }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.error-code { font: 800 3.2rem/1 var(--font); color: var(--brand); margin-bottom: .5rem; letter-spacing: -.03em; }
.ref { font-size: .8rem; color: var(--text-muted); margin: 1rem 0 1.25rem; word-break: break-all; }

/* ---------- toasts (chat bubbles) ---------- */
.toast-region { position: fixed; z-index: 1000; right: 18px; bottom: 18px; left: 18px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.toast {
  pointer-events: auto; max-width: 420px; width: 100%; padding: 12px 16px 12px 14px;
  border-radius: var(--bubble-out); background: var(--ink); color: #eef6f5; box-shadow: var(--shadow-pop);
  display: flex; gap: 10px; align-items: flex-start; font-size: .92rem;
}
.toast::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: var(--info); }
.toast[data-type="success"]::before { background: #3ddc97; }
.toast[data-type="error"]::before { background: #ff7b72; }
.toast[data-type="warning"]::before { background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .toast { animation: toast-in .22s cubic-bezier(.2, .8, .2, 1); }
  @keyframes toast-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
}

/* ---------- layout helpers ---------- */
.row-center { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 1rem 0; }
.row-between > [data-next] { margin-left: auto; }
.row-between { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.row-gap { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row-gap > input, .row-gap > select { width: auto; }
.row-gap input[type="time"] { min-width: 120px; }
.row-gap input[type="search"] { flex: 1; min-width: 160px; }
.pad { padding: 8px 10px; margin: 0; }
.right { text-align: right !important; }
.actions { white-space: nowrap; }
.actions .btn + .btn { margin-left: 6px; }
[aria-busy="true"] { opacity: .65; transition: opacity .2s; }
.grid-2 { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
.grid-2.wide-first { grid-template-columns: 2fr 1fr; }
.grid-3 { display: grid; gap: 12px; grid-template-columns: 2fr 1fr 1fr; }
.grid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
.grid-form .full { grid-column: 1 / -1; }
.grid-2 > *, .grid-3 > *, .grid-form > * { min-width: 0; }
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-bottom: 18px; }
ul.plain, .plain { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px;
}
.card h2 { font-size: 1.05rem; }
.card.narrow { max-width: 540px; }
.card.pad { padding: 12px; box-shadow: none; background: var(--surface-2); margin-bottom: 10px; }
.cards > .card, .grid-2 > .card { margin-bottom: 0; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 30%, var(--border)); background: color-mix(in srgb, var(--danger) 3%, var(--surface)); }
.empty-state { text-align: center; padding: 34px 16px; color: var(--text-muted); }

/* KPI tiles: the chat-bubble signature */
.stats-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 18px; }
.stat-card {
  position: relative; padding: 16px 18px 18px; margin: 0;
  border-radius: var(--bubble); box-shadow: var(--shadow-bubble); border-color: color-mix(in srgb, var(--brand) 14%, var(--border));
  background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--brand-soft) 35%, var(--surface)) 100%);
}
.stat-card > p:first-child { font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.stat-card .stat { font-size: 1.75rem; margin: 0; }
.stat { font: 800 2.05rem/1.1 var(--font); letter-spacing: -.02em; margin: .25rem 0; color: var(--text); }
.small-stat { font-size: 1.4rem; }

/* ---------- forms ---------- */
.form { display: grid; gap: 6px; margin-top: .5rem; }
.form label { font-weight: 650; font-size: .88rem; margin-top: 8px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.form legend { font-weight: 700; margin: 10px 0 2px; color: var(--brand-strong); font-size: .9rem; }
input, select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; font: inherit; font-size: .94rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
textarea { line-height: 1.5; resize: vertical; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--text-muted) 75%, transparent); }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--border-strong)); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--brand); }
input[type="file"] { padding: 7px; background: var(--surface-2); }
input[readonly], input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--text-muted); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: .85rem; margin: 0; }
.hint { color: var(--text-muted); font-size: .8rem; margin: 0; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }
.label-row label { margin: 0; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; }
.check input { width: 18px; min-height: 18px; margin-top: 3px; flex: none; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; min-width: 200px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.filters input { max-width: 340px; }
.filters select { width: auto; }

/* ---------- alerts & badges ---------- */
.alert { border-radius: var(--radius-sm); padding: 12px 16px; margin: 10px 0 16px; border: 1px solid; font-size: .92rem; }
.alert p { margin: 0; }
.alert p + p { margin-top: .3rem; }
.alert-error { background: color-mix(in srgb, var(--danger) 7%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 30%, var(--border)); }
.alert-success { background: color-mix(in srgb, var(--success) 8%, var(--surface)); border-color: color-mix(in srgb, var(--success) 30%, var(--border)); }
.alert-info {
  background: linear-gradient(90deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 30%, var(--surface)));
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); border-left: 4px solid var(--accent);
}
.badge {
  white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; padding: .14rem .55rem; border-radius: 999px;
  font-size: .74rem; font-weight: 700; background: var(--surface-3); color: var(--text-muted); margin-left: 6px; vertical-align: middle;
}
td > .badge:first-child, .conv .badge:first-child, .row-gap > .badge:first-child { margin-left: 0; }
.badge-ok { background: color-mix(in srgb, var(--success) 14%, var(--surface)); color: var(--brand-strong); }
.badge-warn { background: var(--accent-soft); color: var(--accent-strong); }
.badge-danger { background: color-mix(in srgb, var(--danger) 13%, var(--surface)); color: var(--danger); }
.chip {
  --chip: #64748b; display: inline-flex; align-items: center; gap: 4px; padding: .12rem .6rem; margin: 2px 4px 2px 0;
  border-radius: 999px; font-size: .78rem; font-weight: 650;
  background: color-mix(in srgb, var(--chip) 14%, var(--surface)); color: color-mix(in srgb, var(--chip) 78%, var(--text));
  border: 1px solid color-mix(in srgb, var(--chip) 28%, transparent);
}
.chip-x { border: 0; background: none; cursor: pointer; color: inherit; font-size: 1rem; line-height: 1; padding: 0 0 0 2px; }
.chips { display: flex; flex-wrap: wrap; margin-bottom: 8px; }

/* ---------- auth (split screen) ---------- */
.auth-body { min-height: 100vh; background: var(--bg); }
.auth-split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-aside {
  position: relative; overflow: hidden; color: #e8f4f2; padding: 44px 48px; display: flex; flex-direction: column; gap: 28px;
  background:
    radial-gradient(900px 500px at 110% -10%, rgba(14, 159, 120, .45), transparent 60%),
    radial-gradient(600px 400px at -20% 110%, rgba(242, 169, 59, .22), transparent 60%),
    var(--ink);
}
.auth-aside .auth-brand { color: #fff; }
.auth-aside h2 { color: #fff; font-size: 2.1rem; line-height: 1.15; font-weight: 800; letter-spacing: -.025em; max-width: 15ch; margin: auto 0 0; }
.auth-aside p.lead { color: #b9d3d0; max-width: 46ch; font-size: 1rem; }
.auth-chat { display: grid; gap: 10px; max-width: 360px; margin-bottom: auto; }
.auth-chat .bubble {
  padding: 10px 14px; border-radius: var(--bubble); background: rgba(255, 255, 255, .09); color: #eaf5f3;
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 12px 30px -16px rgba(0, 0, 0, .6); font-size: .9rem; justify-self: start; max-width: 90%;
}
.auth-chat .bubble.out { justify-self: end; border-radius: var(--bubble-out); background: #d9fdd3; color: #0f2e33; border-color: transparent; }
.auth-chat .bubble small { display: block; opacity: .6; font-size: .72rem; margin-top: 2px; text-align: right; }
.auth-credit { font-size: .82rem; color: #9fbfbb; margin: 0; }
.auth-credit strong { color: #fff; font-weight: 700; }
.auth-shell { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 18px; gap: 18px; }
.auth-split .auth-shell { min-height: 0; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; text-decoration: none; letter-spacing: -.01em; }
.auth-brand:hover { color: inherit; }
.auth-card { width: 100%; max-width: 440px; padding: 30px; border-radius: 22px 22px 22px 8px; box-shadow: var(--shadow-bubble); }
.auth-card.wide { max-width: 620px; }
.auth-card h1 { font-size: 1.5rem; }
.auth-footer { font-size: .8rem; color: var(--text-muted); text-align: center; margin: 4px 0 0; }
.auth-footer strong { color: var(--text); }
.only-mobile { display: none; }
.business-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.business-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.business-item.current { border-color: var(--brand); background: var(--brand-soft); }
.create-business { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.create-business summary { cursor: pointer; font-weight: 650; color: var(--brand-strong); }
@media (max-width: 920px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .only-mobile { display: inline-flex; }
}

/* ---------- app shell ---------- */
.app-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  background: linear-gradient(180deg, var(--ink) 0%, color-mix(in srgb, var(--ink) 92%, #000) 100%);
  color: #cfe2df; padding: 18px 14px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px; scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; text-decoration: none; padding: 4px 8px 18px; letter-spacing: -.01em; line-height: 1.15; }
.sidebar-brand:hover { color: #fff; }
.sidebar-brand small { display: block; font-weight: 600; font-size: .7rem; color: #8fb3ae; letter-spacing: 0; }
.sidebar .brand-mark { color: #3ddc97; width: 34px; height: 34px; }
.sidebar .sidebar-brand .brand-mark svg { width: 34px; height: 34px; opacity: 1; }
.sidebar-brand > span:last-child { font-size: .95rem; }
.sidebar nav { flex: 1; }
.sidebar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav-group { font-size: .72rem; font-weight: 700; color: #7fa39e; padding: 14px 10px 4px; letter-spacing: .02em; }
.sidebar a, .nav-soon {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px;
  color: #cfe2df; text-decoration: none; font-size: .91rem; font-weight: 550; position: relative;
  transition: background-color .15s, color .15s;
}
.sidebar a svg, .nav-soon svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.sidebar a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sidebar a.active { background: linear-gradient(90deg, rgba(14, 159, 120, .32), rgba(14, 159, 120, .10)); color: #fff; font-weight: 700; }
.sidebar a.active svg { opacity: 1; color: #3ddc97; }
.sidebar a.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
.sidebar a:focus-visible { box-shadow: 0 0 0 2px #3ddc97; }
.nav-soon { color: #7fa39e; cursor: default; justify-content: space-between; }
.nav-soon small { font-size: .68rem; }
.sidebar-foot { border-top: 1px solid rgba(255, 255, 255, .08); padding: 12px 10px 4px; font-size: .76rem; color: #86a9a4; line-height: 1.45; }
.sidebar-foot strong { color: #e8f4f2; font-weight: 700; }
.sidebar-foot .ver { display: inline-block; margin-top: 4px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: #a9c8c3; }
.admin-body .sidebar { background: linear-gradient(180deg, #1b2a3a 0%, #121e2b 100%); }
.admin-body .sidebar .brand-mark, .admin-body .sidebar a.active svg { color: var(--accent); }
.admin-body .sidebar a.active { background: linear-gradient(90deg, rgba(242, 169, 59, .25), rgba(242, 169, 59, .06)); }

.app-main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 12px; padding: 10px 26px; min-height: 64px;
  background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50;
}
.topbar-spacer { flex: 1; }
.sidebar-toggle { display: none; }
.content { padding: 28px 26px 40px; max-width: 1280px; width: 100%; flex: 1; }
.app-footer { padding: 16px 26px 22px; font-size: .8rem; color: var(--text-muted); display: flex; gap: 8px 16px; flex-wrap: wrap; justify-content: space-between; border-top: 1px solid var(--border); max-width: 1280px; }
.app-footer strong { color: var(--text); }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin-bottom: .2rem; }
.page-head p { margin: 0; }

.business-switcher { position: relative; }
.switcher-button {
  display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 12px 0 6px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; max-width: 480px; box-shadow: var(--shadow-xs);
}
.switcher-button:hover { border-color: var(--brand); }
.switcher-button::before {
  content: ""; width: 30px; height: 30px; border-radius: 9px 9px 9px 3px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--ink-3));
}
.switcher-button strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switcher-label { color: var(--text-muted); font-size: .78rem; }
.switcher-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 290px; max-height: 60vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-pop); padding: 6px; z-index: 100; }
.switcher-item { display: grid; width: 100%; text-align: left; gap: 2px; padding: 9px 11px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text); font: inherit; cursor: pointer; }
.switcher-item:hover:not(:disabled) { background: var(--surface-2); }
.switcher-item.current { background: var(--brand-soft); }
.switcher-item:disabled:not(.current) { opacity: .55; cursor: not-allowed; }
.switcher-footer { display: block; padding: 9px 11px; border-top: 1px solid var(--border); margin-top: 4px; }

.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; border-radius: 50%; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu:not([open]) .user-menu-panel { display: none; }
.avatar {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--ink-3)); color: #fff; font-weight: 800;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--border);
}
.user-menu-panel { position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-pop); padding: 14px; display: grid; gap: 4px; z-index: 100; }
.user-menu-panel a, .user-menu-panel .link-button { color: var(--text); text-decoration: none; padding: 7px 8px; border-radius: 8px; text-align: left; }
.user-menu-panel a:hover, .user-menu-panel .link-button:hover { background: var(--surface-2); }
.user-menu-panel p { padding: 0 8px 8px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }

/* notifications */
.notif { position: relative; }
.notif-button { position: relative; border-radius: 12px; }
.notif-button svg { width: 20px; height: 20px; }
.notif-count {
  position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--danger); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface);
}
.notif-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(370px, calc(100vw - 24px)); max-height: 70vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-pop); padding: 6px; z-index: 120; }
.notif-item { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; border-left: 3px solid transparent; }
.notif-item:hover { background: var(--surface-2); color: var(--text); }
.notif-item.unread { background: var(--brand-soft); }
.notif-item.sev-error { border-left-color: var(--danger); }
.notif-item.sev-warning { border-left-color: var(--accent); }
.notif-item.sev-success { border-left-color: var(--success); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { color: var(--text-muted); font-weight: 650; font-size: .8rem; background: var(--surface-2); }
.table thead th:first-child { border-top-left-radius: 10px; }
.table thead th:last-child { border-top-right-radius: 10px; }
.table tbody tr { transition: background-color .12s; }
.table tbody tr:hover { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); }
.table tbody tr:last-child td { border-bottom: 0; }
.table select { min-height: 34px; width: auto; }
.table a { font-weight: 650; text-decoration: none; }
.table a:hover { text-decoration: underline; }
.check-col { width: 40px; }
.check-col input { width: 18px; min-height: 18px; }
.pagination { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.pagination span { margin-right: auto; }
.clickable { cursor: pointer; }
.clickable:hover { background: var(--surface-2); }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button {
  padding: 9px 14px; text-decoration: none; color: var(--text-muted); border: 0; border-bottom: 2px solid transparent; background: none;
  font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; white-space: nowrap; border-radius: 8px 8px 0 0;
}
.tabs a:hover, .tabs button:hover { color: var(--text); background: var(--surface-2); }
.tabs a.active, .tabs button[aria-selected="true"] { color: var(--brand-strong); border-bottom-color: var(--brand); }
.tabs button:focus-visible { box-shadow: inset var(--ring); }

/* modal */
.modal { border: 1px solid var(--border); border-radius: 20px; padding: 24px; width: min(480px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: var(--shadow-pop); }
.modal::backdrop { background: rgba(9, 26, 29, .5); backdrop-filter: blur(3px); }
.modal-wide { width: min(660px, calc(100vw - 32px)); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: pop .2s cubic-bezier(.2, .8, .2, 1); }
  @keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
}

/* ---------- admin, billing, onboarding ---------- */
.impersonation-banner { position: sticky; top: 0; z-index: 300; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 8px 16px; background: var(--danger); color: #fff; font-size: .9rem; }
.impersonation-banner .btn { background: #fff; color: var(--danger); border-color: #fff; }
.meter-row { margin: 12px 0; }
.meter { height: 9px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-top: 6px; }
.meter-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), #3ddc97); border-radius: inherit; transition: width .4s ease; }
.meter-fill.warn { background: linear-gradient(90deg, var(--accent), #f7c873); }
.meter-fill.full { background: var(--danger); }
.limits-form table input, .limits-form table select { min-height: 34px; }
.logo-preview { max-width: 160px; max-height: 80px; object-fit: contain; display: block; margin-bottom: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px; background: #fff; }
.plan-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; background: var(--surface); box-shadow: var(--shadow-xs); }
.plan-card.current { border-color: var(--brand); background: var(--brand-soft); box-shadow: var(--shadow-bubble); border-radius: var(--bubble); }
.plan-card h3 { margin: 0 0 4px; }
.setting-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
.onboarding { background: linear-gradient(120deg, var(--surface) 55%, color-mix(in srgb, var(--brand-soft) 70%, var(--surface))); }
.checklist { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.checklist li a { font-weight: 600; text-decoration: none; }
.checklist li.done { background: transparent; border-style: dashed; }
.checklist li.done a { color: var(--text-muted); text-decoration: line-through; font-weight: 500; }
.check-dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--border-strong); font-size: .8rem; font-weight: 700; flex: none; color: var(--text-muted); }
.checklist li.done .check-dot { background: var(--success); border-color: var(--success); color: #fff; }

/* ---------- CRM ---------- */
.bulk-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px; border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--border)); background: var(--brand-soft); border-radius: 12px; box-shadow: var(--shadow-xs); }
.bulk-bar [data-bulk-count] { font-weight: 700; color: var(--brand-strong); margin-right: 4px; }
.bulk-bar select { width: auto; min-height: 34px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.timeline li { padding: 2px 0 2px 16px; border-left: 2px solid var(--border); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); }
.conditions { display: grid; gap: 8px; margin: 12px 0; }
.condition { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.condition select, .condition input { width: auto; min-width: 140px; min-height: 38px; }
.segment-preview { margin: 12px 0; padding: 14px; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: 12px; }

/* ---------- WhatsApp, templates, campaigns ---------- */
.wa-preview {
  padding: 18px; border-radius: var(--radius); min-height: 160px;
  background-color: #e7efe6;
  background-image: radial-gradient(rgba(15, 46, 51, .06) 1px, transparent 1px);
  background-size: 14px 14px;
}
.wa-bubble { background: #fff; color: #111b21; border-radius: 4px 14px 14px 14px; padding: 9px 11px; max-width: 340px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 0 6px 16px -10px rgba(0, 0, 0, .3); position: relative; }
.wa-bubble::before { content: ""; position: absolute; left: -7px; top: 0; border-width: 0 8px 9px 0; border-style: solid; border-color: transparent #fff transparent transparent; }
.wa-bubble p { margin: 0 0 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.wa-header { font-weight: 700; }
.wa-footer { color: #667781; font-size: .8rem; }
.wa-media { background: #dfe5e7; border-radius: 8px; padding: 30px 8px; text-align: center; color: #54656f; margin-bottom: 6px; }
.wa-buttons { display: grid; gap: 4px; max-width: 340px; margin-top: 4px; }
.wa-buttons span { background: #fff; border-radius: 10px; text-align: center; padding: 7px; color: #0b8ec2; font-weight: 650; font-size: .9rem; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.wizard-steps { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 18px; counter-reset: step; }
.wizard-steps li { counter-increment: step; }
.wizard-steps button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 6px 14px 6px 6px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; color: var(--text-muted); box-shadow: var(--shadow-xs); }
.wizard-steps button::before { content: counter(step); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); color: var(--text-muted); font-size: .78rem; font-weight: 800; }
.wizard-steps button[aria-current="step"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.wizard-steps button[aria-current="step"]::before { background: var(--accent); color: var(--ink); }
.wizard-steps button.done { color: var(--brand-strong); border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.wizard-steps button.done::before { content: "✓"; background: var(--brand); color: #fff; }
.pick-list { display: grid; gap: 4px; max-height: 260px; overflow: auto; padding: 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.pick-list label { display: flex; gap: 10px; align-items: center; font-weight: 500; margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--surface); border: 1px solid transparent; cursor: pointer; }
.pick-list label:hover { border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.pick-list input { width: 18px; min-height: 18px; }
.breakdown { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.breakdown > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--bubble); padding: 12px 14px; box-shadow: var(--shadow-xs); }
.breakdown[data-counts] > div:last-child, .breakdown[data-breakdown] > div:last-child { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
.breakdown strong { display: block; font-size: 1.35rem; font-weight: 800; }
.breakdown > p { grid-column: 1 / -1; margin: 0; }
.progress { height: 10px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #3ddc97); width: 0; transition: width .4s ease; }
.warn-list { margin: 8px 0; padding-left: 18px; color: var(--accent-strong); }

/* ---------- charts (tokens validated light/dark) ---------- */
:root { --series-1: #0e9f78; --series-2: #2f6fdb; --series-3: #f2a93b; --chart-grid: #e4ecec; --chart-axis: #6b7f82; }
@media (prefers-color-scheme: dark) { :root { --series-1: #2cc496; --series-2: #79a7ff; --series-3: #f5b955; --chart-grid: #23413f; --chart-axis: #9bb2b2; } }
.chart-box { position: relative; min-height: 240px; }
.chart-wrap { position: relative; }
.chart-svg { display: block; overflow: visible; }
.chart-grid { stroke: var(--chart-grid); stroke-width: 1; stroke-dasharray: 3 4; }
.chart-axis { fill: var(--chart-axis); font-size: 11px; font-family: var(--font); }
.chart-label { fill: var(--text); font-size: 11px; font-weight: 700; font-family: var(--font); }
.chart-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-line.series-1, .chart-dot.series-1 { stroke: var(--series-1); } .chart-dot.series-1 { fill: var(--series-1); }
.chart-line.series-2, .chart-dot.series-2 { stroke: var(--series-2); } .chart-dot.series-2 { fill: var(--series-2); }
.chart-line.series-3, .chart-dot.series-3 { stroke: var(--series-3); } .chart-dot.series-3 { fill: var(--series-3); }
.chart-dot { stroke: var(--surface) !important; stroke-width: 2; }
.chart-cross { stroke: var(--chart-axis); stroke-width: 1; stroke-dasharray: 2 3; }
.chart-tip { position: absolute; top: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--bubble); padding: 8px 10px; font-size: .8rem; box-shadow: var(--shadow-pop); pointer-events: none; min-width: 150px; }
.chart-tip-row { display: flex; align-items: center; gap: 6px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.swatch.series-1 { background: var(--series-1); } .swatch.series-2 { background: var(--series-2); } .swatch.series-3 { background: var(--series-3); }
.chart-legend { list-style: none; display: flex; gap: 16px; padding: 0; margin: 4px 0 8px; font-size: .85rem; color: var(--text-muted); }
.chart-legend li { display: flex; align-items: center; gap: 6px; }
.chart-table summary { cursor: pointer; font-size: .85rem; color: var(--text-muted); margin-top: 6px; }

/* ---------- automation builder ---------- */
.steps { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; counter-reset: st; }
.steps > li { counter-increment: st; border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: 12px; padding: 14px; background: var(--surface); box-shadow: var(--shadow-xs); }
.steps > li .step-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 10px; }
.steps > li .step-head strong::before { content: counter(st) ". "; color: var(--text-muted); }
.steps > li[data-type="condition"] { border-left-color: var(--info); }
.steps > li[data-type="wait"] { border-left-color: var(--accent); }
.steps > li[data-type="stop"] { border-left-color: var(--danger); }
.step-body { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.step-body select, .step-body input { width: auto; min-width: 140px; min-height: 38px; }
.step-flow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); font-size: .85rem; color: var(--text-muted); }
.step-flow select { width: auto; min-height: 32px; }

/* ---------- inbox ---------- */
.inbox { display: grid; grid-template-columns: 330px minmax(0, 1fr) 270px; gap: 16px; min-height: calc(100vh - 170px); }
.inbox > .card { margin: 0; display: flex; flex-direction: column; min-height: 0; }
.inbox .tabs { margin-bottom: 10px; }
.inbox .tabs button { padding: 8px 10px; font-size: .86rem; }
.conv-list { list-style: none; margin: 8px 0 0; padding: 0; overflow: auto; flex: 1; display: grid; gap: 6px; align-content: start; }
.conv { padding: 11px 12px; border-radius: var(--bubble); cursor: pointer; border: 1px solid transparent; transition: background-color .12s, border-color .12s; }
.conv:hover { background: var(--surface-2); }
.conv.active { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.conv.unread strong { color: var(--brand-strong); }
.conv-preview { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 2px 0 4px; }
.inbox-thread [data-panel] { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.thread-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.thread-head select { width: auto; }
.window-banner { padding: 8px 12px; border-radius: 10px; margin: 10px 0; }
.window-banner.open { background: var(--brand-soft); color: var(--brand-strong); }
.window-banner.closed { background: var(--accent-soft); color: var(--accent-strong); }
.messages {
  list-style: none; margin: 0; padding: 14px; display: flex; flex-direction: column; gap: 8px; overflow: auto; flex: 1; min-height: 260px; max-height: 60vh;
  border-radius: 12px; background-color: #efeae2;
  background-image: radial-gradient(rgba(15, 46, 51, .05) 1px, transparent 1px); background-size: 14px 14px;
}
.msg { max-width: 75%; padding: 7px 11px 6px; border-radius: 4px 14px 14px 14px; background: #fff; color: #111b21; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.msg.out { align-self: flex-end; background: #d9fdd3; border-radius: 14px 4px 14px 14px; }
.msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-meta { display: block; color: #667781; margin-top: 2px; font-size: .74rem; text-align: right; }
.msg-img { max-width: 240px; border-radius: 8px; display: block; }
.composer { margin-top: 10px; display: grid; gap: 8px; }
@media (prefers-color-scheme: dark) {
  .messages, .wa-preview { background-color: #0d1d20; background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px); }
  .msg { background: #1f2c33; color: #e9edef; }
  .msg.out { background: #005c4b; color: #e9edef; }
  .msg-meta, .wa-footer { color: #9bb2b2; }
  .wa-bubble, .wa-buttons span { background: #1f2c33; color: #e9edef; }
  .wa-bubble::before { border-color: transparent #1f2c33 transparent transparent; }
}

/* ---------- integrations & docs ---------- */
.secret-list dt { font-weight: 650; margin-top: 10px; }
.secret-list dd { margin: 4px 0 0; }
.doc { max-width: 900px; }
.doc h2 { margin-top: 1.6em; }
.doc pre { background: var(--ink); color: #d7ebe8; padding: 14px 16px; border-radius: 12px; overflow: auto; font-size: .85rem; }
.doc pre code { background: none; padding: 0; color: inherit; }
.doc blockquote { margin: 0 0 12px; padding: 8px 14px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; color: var(--text); }
.doc table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 10px 0 16px; }
.doc th, .doc td { border-bottom: 1px solid var(--border); padding: 8px; text-align: left; vertical-align: top; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .inbox { grid-template-columns: 290px minmax(0, 1fr); } .inbox-side { display: none; } }
@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 200; left: 0; top: 0; width: 272px; transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow-pop); }
  .sidebar-open .sidebar { transform: none; }
  .sidebar-open::after { content: ""; position: fixed; inset: 0; background: rgba(9, 26, 29, .45); z-index: 150; }
  .sidebar-toggle { display: inline-flex; }
  .topbar { padding: 10px 14px; }
  .content { padding: 20px 16px 32px; }
  .app-footer { padding: 14px 16px 20px; }
  .switcher-label { display: none; }
  .switcher-button { max-width: 60vw; }
  .grid-2, .grid-2.wide-first, .grid-form { grid-template-columns: 1fr; }
}
@media (max-width: 760px) { .inbox { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } h1 { font-size: 1.4rem; } .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .stat-card .stat { font-size: 1.4rem; } }
@media (max-width: 520px) {
  .topbar { gap: 8px; }
  .business-switcher { min-width: 0; flex: 1 1 auto; }
  .switcher-button { max-width: 100%; }
  .switcher-button .badge, .switcher-label { display: none; }
  .switcher-button strong { display: inline-block; max-width: 140px; }
  .user-menu-panel { right: 0; left: auto; max-width: calc(100vw - 20px); }
  .card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
