/* =====================================================================
   The B2B «CRM اختصاصی» site — one stylesheet for the site, the
   questionnaire, the landing pages and the panel.

   The same family as Hamyan's own CRM («شب بنفش» + «نور»): a violet→pink
   accent on lilac paper, a full night mode under the same tokens, glass bars,
   and «lit» panels whose corner takes a colour. EVERY colour is a token on
   :root; a literal below :root is a bug, because night mode cannot reach it.
   The exception is the demo mock (`.demo`), which wears the CUSTOMER's
   colours and therefore has tokens of its own.

   Vazirmatn is vendored (static/fonts): Google Fonts is unreliable from Iran
   and a blocked stylesheet fails silently into a fallback nobody chose.
   Links are never underlined.
   ===================================================================== */

@font-face { font-family: "Vazirmatn B2B"; src: url("../fonts/Vazirmatn-Regular.cdc140628f11.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn B2B"; src: url("../fonts/Vazirmatn-Medium.dd2193b32cbe.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Vazirmatn B2B"; src: url("../fonts/Vazirmatn-SemiBold.9260c1927872.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Vazirmatn B2B"; src: url("../fonts/Vazirmatn-Bold.7958481fe611.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #16132b;
  --ink-soft: #4a4466;
  --muted: #6b6689;
  --paper: #f4f2fc;
  --surface: #ffffff;
  --surface-2: #f8f6fe;
  --line: #e2ddf4;
  --line-soft: #ece8f8;
  --chrome: #150e2e;

  --accent: #7c3aed;
  --accent-2: #db2777;
  --accent-grad: linear-gradient(135deg, #7c3aed, #c026d3 55%, #db2777);
  --accent-wash: #f2ecff;
  --accent-line: #ddd0fb;
  --accent-ink: #6d28d9;
  --on-accent: #ffffff;

  --grad-hero: linear-gradient(135deg, #3b0764 0%, #6d28d9 34%, #c026d3 68%, #f43f5e 100%);
  --grad-text: linear-gradient(135deg, #6d28d9, #c026d3 55%, #db2777);
  --glow: rgba(147, 51, 234, .42);
  --lit-in: inset 0 1px 0 rgba(255, 255, 255, .95);
  --lit-edge: 34%;
  --lit-wash: 10%;
  --lit-sh: 0 1px 2px rgba(40, 20, 90, .05);
  --lit-spot: 13%;
  --lit-glow: 22%;
  /* The two lights drifting behind the hero. */
  --orb-a: #f59e0b; --orb-b: #22d3ee; --orb-o: .2;
  /* The ☀/☾ switch: both skies are always there, night fades in over day. */
  --tgl-day: linear-gradient(135deg, #7dd3fc, #a5b4fc 55%, #fbcfe8);
  --tgl-night: linear-gradient(135deg, #1e1b4b, #312e81 55%, #581c87);
  --tgl-sun: #f59e0b; --tgl-moon: #5b21b6;
  --tgl-knob-day: #ffffff; --tgl-knob-night: #ede9fe; --tgl-star: #ffffff;
  --tgl-sh-day: inset 0 1px 3px rgba(30, 20, 80, .22), inset 0 0 0 1px rgba(255, 255, 255, .55), 0 6px 16px -8px rgba(99, 102, 241, .7);
  --tgl-sh-night: inset 0 1px 3px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .12), 0 6px 18px -6px rgba(168, 85, 247, .85);
  --tgl-halo-sun: 0 2px 6px rgba(0, 0, 0, .25), 0 0 14px rgba(253, 224, 71, .8);
  --tgl-halo-moon: 0 2px 6px rgba(0, 0, 0, .25), 0 0 16px rgba(196, 181, 253, .9);
  --glass: color-mix(in srgb, var(--surface) 78%, transparent);
  --bg-art:
    radial-gradient(1000px 560px at 100% -10%, rgba(124, 58, 237, .20), transparent 60%),
    radial-gradient(800px 520px at -8% 20%, rgba(219, 39, 119, .14), transparent 60%),
    radial-gradient(900px 600px at 50% 115%, rgba(6, 182, 212, .14), transparent 60%);
  --dots: radial-gradient(rgba(91, 63, 224, .10) 1px, transparent 1.4px) 0 0 / 22px 22px;

  --red: #e11d48;     --red-wash: #fff0f3;    --red-line: #fecdd6;    --red-ink: #be123c;
  --green: #059669;   --green-wash: #ecfdf5;  --green-line: #a7f3d0;  --green-ink: #047857;
  --orange: #ea580c;  --orange-wash: #fff4ed; --orange-line: #fed7aa; --orange-ink: #c2410c;
  --amber: #d97706;   --amber-wash: #fffbeb;  --amber-line: #fde68a;  --amber-ink: #92400e;
  --blue: #2563eb;    --blue-wash: #eff5ff;   --blue-line: #c7dbfe;   --blue-ink: #1d4ed8;
  --violet: #7c3aed;  --violet-wash: #f5f0ff; --violet-line: #ddd0fb; --violet-ink: #6d28d9;
  --teal: #0d9488;    --teal-wash: #effcfa;   --teal-line: #b7ece5;   --teal-ink: #0f766e;
  --slate: #64748b;   --slate-wash: #f1f3f8;  --slate-line: #dde2ec;  --slate-ink: #475569;
  --pink: #db2777;
  --indigo: #4f46e5;

  /* The eight stages, cold to warm to done. */
  --st-found_us: #0891b2;
  --st-we_reached: #2563eb;
  --st-following: #4f46e5;
  --st-requested: #7c3aed;
  --st-customizing: #c026d3;
  --st-ready_test: #db2777;
  --st-ready_deliver: #ea580c;
  --st-delivered: #059669;

  --scrim: rgba(18, 12, 38, .45);
  --radius: 16px;
  --shadow: 0 1px 2px rgba(40, 20, 90, .05), 0 10px 30px rgba(60, 30, 130, .07);
  --shadow-card: 0 1px 2px rgba(40, 20, 90, .06), 0 2px 8px rgba(60, 30, 130, .05);
  --shadow-lift: 0 4px 10px rgba(40, 20, 90, .08), 0 14px 32px rgba(90, 40, 170, .14);
  /* The questionnaire: a vivid well (`--f-well`) and, on it, boxes that never
     share its colour. `--f-on-cc` is what sits on a box's own hue. */
  --f-well: linear-gradient(165deg, #7c3aed 0%, #c026d3 50%, #f43f5e 100%);
  --f-well-sh: 0 24px 50px -26px rgba(124, 58, 237, .65);
  --f-well-ink: #ffffff;
  --f-well-glass: rgba(255, 255, 255, .2);
  --f-well-edge: rgba(255, 255, 255, .34);
  --f-box: #ffffff;
  --f-box-line: #e3d9fb;
  --f-box-sh: 0 1px 2px rgba(40, 10, 90, .16), 0 14px 28px -16px rgba(40, 10, 90, .45);
  --f-field: #f6f3ff;
  --f-field-line: #cfc3f4;
  --f-tint: #f4efff;
  --f-tint-line: #d9cdf8;
  --f-on-cc: #ffffff;
  --font: "Vazirmatn B2B", "Vazirmatn", Tahoma, sans-serif;
  --top-h: 64px;
}

/* Night. Twice on purpose — `data-theme`, which theme.js sets before first
   paint, and the OS preference for a browser that ran no script. Keep the two
   blocks identical. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f3f1ff; --ink-soft: #c9c6e6; --muted: #9e9cc4;
  --paper: #08091a; --surface: #121330; --surface-2: #181a3e;
  --line: #2b2d5e; --line-soft: #1f2150;
  --accent-wash: rgba(139, 92, 246, .16); --accent-line: rgba(167, 139, 250, .38); --accent-ink: #c4b5fd;
  --grad-text: linear-gradient(135deg, #c4b5fd, #f0abfc 55%, #f9a8d4);
  --glow: rgba(168, 85, 247, .6);
  --lit-in: inset 0 1px 0 rgba(255, 255, 255, .08);
  --lit-edge: 55%; --lit-wash: 16%;
  --lit-sh: 0 1px 2px rgba(0, 0, 0, .45); --lit-spot: 22%; --lit-glow: 34%;
  --orb-o: .26;
  --bg-art:
    radial-gradient(1000px 560px at 100% -10%, rgba(124, 58, 237, .34), transparent 60%),
    radial-gradient(800px 520px at -8% 20%, rgba(219, 39, 119, .20), transparent 60%),
    radial-gradient(900px 600px at 50% 115%, rgba(34, 211, 238, .16), transparent 60%);
  --dots: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.4px) 0 0 / 22px 22px;
  --red-wash: rgba(244, 63, 94, .14);    --red-line: rgba(244, 63, 94, .38);    --red-ink: #fda4af;
  --green-wash: rgba(16, 185, 129, .13); --green-line: rgba(16, 185, 129, .36); --green-ink: #6ee7b7;
  --orange-wash: rgba(249, 115, 22, .14); --orange-line: rgba(249, 115, 22, .38); --orange-ink: #fdba74;
  --amber-wash: rgba(245, 158, 11, .13); --amber-line: rgba(245, 158, 11, .36); --amber-ink: #fcd34d;
  --blue-wash: rgba(59, 130, 246, .14);  --blue-line: rgba(59, 130, 246, .38);  --blue-ink: #93c5fd;
  --violet-wash: rgba(139, 92, 246, .15); --violet-line: rgba(139, 92, 246, .38); --violet-ink: #c4b5fd;
  --teal-wash: rgba(20, 184, 166, .13);  --teal-line: rgba(20, 184, 166, .36);  --teal-ink: #5eead4;
  --slate-wash: rgba(148, 163, 184, .12); --slate-line: rgba(148, 163, 184, .28); --slate-ink: #cbd5e1;
  --teal: #2dd4bf; --green: #10b981; --red: #f43f5e; --blue: #60a5fa; --violet: #a78bfa;
  --pink: #f472b6; --indigo: #818cf8; --orange: #fb923c; --amber: #fbbf24;
  --st-found_us: #22d3ee; --st-we_reached: #60a5fa; --st-following: #818cf8; --st-requested: #a78bfa;
  --st-customizing: #e879f9; --st-ready_test: #f472b6; --st-ready_deliver: #fb923c; --st-delivered: #34d399;
  --scrim: rgba(0, 0, 0, .6);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .35), 0 2px 8px rgba(0, 0, 0, .25);
  --shadow-lift: 0 6px 14px rgba(0, 0, 0, .4), 0 16px 36px rgba(124, 58, 237, .22);
  --f-well: linear-gradient(165deg, #5b21b6 0%, #a21caf 50%, #be123c 100%);
  --f-well-sh: 0 24px 54px -24px rgba(192, 38, 211, .6);
  --f-well-glass: rgba(255, 255, 255, .16);
  --f-well-edge: rgba(255, 255, 255, .26);
  --f-box: #0d0e27;
  --f-box-line: #2c2f6a;
  --f-box-sh: 0 1px 2px rgba(0, 0, 0, .5), 0 16px 30px -16px rgba(0, 0, 0, .7);
  --f-field: #181b46;
  --f-field-line: #3b4090;
  --f-tint: #171a43;
  --f-tint-line: #343a82;
  --f-on-cc: #0d0e27;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #f3f1ff; --ink-soft: #c9c6e6; --muted: #9e9cc4;
    --paper: #08091a; --surface: #121330; --surface-2: #181a3e;
    --line: #2b2d5e; --line-soft: #1f2150;
    --accent-wash: rgba(139, 92, 246, .16); --accent-line: rgba(167, 139, 250, .38); --accent-ink: #c4b5fd;
    --grad-text: linear-gradient(135deg, #c4b5fd, #f0abfc 55%, #f9a8d4);
    --glow: rgba(168, 85, 247, .6);
    --lit-in: inset 0 1px 0 rgba(255, 255, 255, .08);
    --lit-edge: 55%; --lit-wash: 16%;
    --lit-sh: 0 1px 2px rgba(0, 0, 0, .45); --lit-spot: 22%; --lit-glow: 34%;
    --orb-o: .26;
    --bg-art:
      radial-gradient(1000px 560px at 100% -10%, rgba(124, 58, 237, .34), transparent 60%),
      radial-gradient(800px 520px at -8% 20%, rgba(219, 39, 119, .20), transparent 60%),
      radial-gradient(900px 600px at 50% 115%, rgba(34, 211, 238, .16), transparent 60%);
    --dots: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.4px) 0 0 / 22px 22px;
    --red-wash: rgba(244, 63, 94, .14);    --red-line: rgba(244, 63, 94, .38);    --red-ink: #fda4af;
    --green-wash: rgba(16, 185, 129, .13); --green-line: rgba(16, 185, 129, .36); --green-ink: #6ee7b7;
    --orange-wash: rgba(249, 115, 22, .14); --orange-line: rgba(249, 115, 22, .38); --orange-ink: #fdba74;
    --amber-wash: rgba(245, 158, 11, .13); --amber-line: rgba(245, 158, 11, .36); --amber-ink: #fcd34d;
    --blue-wash: rgba(59, 130, 246, .14);  --blue-line: rgba(59, 130, 246, .38);  --blue-ink: #93c5fd;
    --violet-wash: rgba(139, 92, 246, .15); --violet-line: rgba(139, 92, 246, .38); --violet-ink: #c4b5fd;
    --teal-wash: rgba(20, 184, 166, .13);  --teal-line: rgba(20, 184, 166, .36);  --teal-ink: #5eead4;
    --slate-wash: rgba(148, 163, 184, .12); --slate-line: rgba(148, 163, 184, .28); --slate-ink: #cbd5e1;
    --teal: #2dd4bf; --green: #10b981; --red: #f43f5e; --blue: #60a5fa; --violet: #a78bfa;
    --pink: #f472b6; --indigo: #818cf8; --orange: #fb923c; --amber: #fbbf24;
    --st-found_us: #22d3ee; --st-we_reached: #60a5fa; --st-following: #818cf8; --st-requested: #a78bfa;
    --st-customizing: #e879f9; --st-ready_test: #f472b6; --st-ready_deliver: #fb923c; --st-delivered: #34d399;
    --scrim: rgba(0, 0, 0, .6);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .35), 0 2px 8px rgba(0, 0, 0, .25);
    --shadow-lift: 0 6px 14px rgba(0, 0, 0, .4), 0 16px 36px rgba(124, 58, 237, .22);
    --f-well: linear-gradient(165deg, #5b21b6 0%, #a21caf 50%, #be123c 100%);
    --f-well-sh: 0 24px 54px -24px rgba(192, 38, 211, .6);
    --f-well-glass: rgba(255, 255, 255, .16);
    --f-well-edge: rgba(255, 255, 255, .26);
    --f-box: #0d0e27;
    --f-box-line: #2c2f6a;
    --f-box-sh: 0 1px 2px rgba(0, 0, 0, .5), 0 16px 30px -16px rgba(0, 0, 0, .7);
    --f-field: #181b46;
    --f-field-line: #3b4090;
    --f-tint: #171a43;
    --f-tint-line: #343a82;
    --f-on-cc: #0d0e27;
  }
}

/* ---------------------------------------------------------------- base -- */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); }
html, body { margin: 0; }
body {
  min-height: 100vh;
  font-family: var(--font); font-size: 15px; line-height: 1.75;
  color: var(--ink);
  background: var(--bg-art), var(--dots), var(--paper);
  background-attachment: fixed;
  overflow-x: hidden;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; letter-spacing: -.01em; }
p { margin: 0; }
img { max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
svg { flex: none; }
/* An icon with no rule of its own takes the size of the text around it. */
:where(svg[viewBox="0 0 24 24"]) { width: 1.2em; height: 1.2em; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 820px; }

em.g, h1 em, h2 em, .grad {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* -------------------------------------------------------------- brand -- */

.brand { display: flex; align-items: center; gap: 12px; color: inherit; min-width: 0; }
.brand:hover { color: inherit; }
/* The mark is the owner's artwork (`brand/`). It rides in as a background so a
   page a script builds wears it too, without knowing the file's hashed name. */
.mark {
  flex: none; display: inline-block;
  width: 42px; height: 42px; border-radius: 11px;
  background: #6d28d9 url("../img/kavan-mark.63d7e70093ac.webp") center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 10px 22px -10px var(--mark-glow);
  --mark-glow: rgba(109, 40, 217, .6);
}
.mark--sm { width: 34px; height: 34px; border-radius: 9px; }
.wm { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.wm b { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wm small { font-size: 12px; color: var(--muted); white-space: nowrap; }
/* An optional Latin mark beside the name (BRAND_MARK); none by default. */
.wm__k {
  display: inline-block; vertical-align: middle; direction: ltr;
  margin-inline-start: 7px; padding: 0 6px; border-radius: 7px;
  font-style: normal; font-size: .64em; font-weight: 700; line-height: 1.75; letter-spacing: .05em;
  color: var(--accent-ink); background: var(--accent-wash);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}

/* ---------------------------------------------------------- the top bar -- */

.top {
  position: sticky; top: 0; z-index: 40;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line-soft) 75%, transparent);
}
.top__in { display: flex; align-items: center; gap: 20px; min-height: var(--top-h); }
.top__nav { display: flex; gap: 4px; margin-inline-start: 12px; }
.top__nav a {
  padding: 6px 12px; border-radius: 10px; color: var(--ink-soft); font-weight: 500; font-size: 14px;
}
.top__nav a:hover { background: var(--accent-wash); color: var(--accent-ink); }
.top__end { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }

/* The ☀/☾ switch (`_tgl.html`, `App.themeToggle`). It reads the theme off
   <html>, not its own `aria-checked`, so it is right before any script runs. */
.tgl {
  position: relative; flex: none; width: 64px; height: 34px; padding: 0; border: 0; border-radius: 999px; overflow: hidden;
  background: var(--tgl-day); box-shadow: var(--tgl-sh-day); transition: box-shadow .4s;
}
.tgl::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--tgl-night); opacity: 0; transition: opacity .45s; }
.tgl__k {
  position: absolute; top: 3px; right: 3px; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--tgl-knob-day); box-shadow: var(--tgl-halo-sun);
  transition: transform .5s cubic-bezier(.5, 1.5, .45, 1), background-color .4s, box-shadow .4s;
}
.tgl__k > span { grid-area: 1 / 1; display: grid; place-items: center; transition: opacity .35s, transform .5s cubic-bezier(.5, 1.5, .45, 1); }
.tgl__k svg { width: 17px; height: 17px; fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tgl__sun { color: var(--tgl-sun); }
.tgl__moon { color: var(--tgl-moon); opacity: 0; transform: rotate(-120deg) scale(.5); }
.tgl > i { position: absolute; z-index: 1; width: 3px; height: 3px; border-radius: 50%; background: var(--tgl-star); opacity: 0; transition: opacity .4s .1s; }
.tgl > .st1 { right: 12px; top: 9px; }
.tgl > .st2 { right: 22px; top: 20px; width: 2px; height: 2px; }
.tgl > .st3 { right: 28px; top: 9px; width: 2px; height: 2px; }
.tgl:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 999px; }
:root[data-theme="dark"] .tgl { box-shadow: var(--tgl-sh-night); }
:root[data-theme="dark"] .tgl::before { opacity: 1; }
:root[data-theme="dark"] .tgl__k { transform: translateX(-30px); background: var(--tgl-knob-night); box-shadow: var(--tgl-halo-moon); }
:root[data-theme="dark"] .tgl__sun { opacity: 0; transform: rotate(120deg) scale(.5); }
:root[data-theme="dark"] .tgl__moon { opacity: 1; transform: none; }
:root[data-theme="dark"] .tgl > i { opacity: .95; }
/* The new theme opens as a circle from the switch (core.js draws the circle):
   the two snapshots must not cross-fade under it. */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 13px;
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  color: var(--ink); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card);
  transition: transform .15s, box-shadow .2s, background .2s, color .2s, opacity .2s;
  cursor: pointer; user-select: none;
}
.btn:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent-line), var(--shadow-lift); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }
.btn--grad {
  position: relative; overflow: hidden;
  background: var(--accent-grad); color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 24px -10px var(--glow);
}
.btn--grad::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(120%); transition: transform .7s;
}
.btn--grad:hover { color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 14px 30px -10px var(--glow); }
.btn--grad:hover::after { transform: translateX(-120%); }
.btn--soft { background: var(--accent-wash); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-line); }
.btn--soft:hover { color: var(--accent-ink); background: color-mix(in srgb, var(--accent-wash) 70%, var(--accent-line)); }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--surface); }
.btn--plain { background: transparent; box-shadow: none; color: var(--ink-soft); }
.btn--plain:hover { background: var(--accent-wash); color: var(--accent-ink); box-shadow: none; }
.btn--danger { background: var(--red-wash); color: var(--red-ink); box-shadow: inset 0 0 0 1px var(--red-line); }
.btn--danger:hover { color: var(--red-ink); }
.btn--light { background: #fff; color: #4c1d95; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); }
.btn--light:hover { color: #4c1d95; }
.btn--sm { min-height: 36px; padding: 0 14px; border-radius: 11px; font-size: 14px; }
.btn--xs { min-height: 30px; padding: 0 10px; border-radius: 9px; font-size: 13px; font-weight: 500; }
.btn--lg { min-height: 52px; padding: 0 24px; border-radius: 16px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--icon { width: 40px; padding: 0; }
.btn--icon.btn--sm { width: 36px; }
.btn--icon.btn--xs { width: 30px; }
.arr { display: inline-block; transition: transform .2s; }
.btn:hover .arr { transform: translateX(-4px); }

/* -------------------------------------------------------------- inputs -- */

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .field > label, .lbl { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.field small, .hint { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.req::after { content: " *"; color: var(--accent-2); }
.inp, .field input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]),
.field textarea, .field select {
  width: 100%; min-height: 44px; padding: 9px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--lit-in);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.8; }
.inp:focus, .field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}
.field select { appearance: none; padding-inline-end: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: 14px calc(50% + 1px), 19px calc(50% + 1px); background-size: 5px 5px; background-repeat: no-repeat; }
.field input::placeholder, .field textarea::placeholder, .inp::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.hstack { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Choice chips: a group of buttons acting as radios or checkboxes. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); color: var(--ink-soft);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; font-weight: 500; line-height: 1;
  transition: background .15s, color .15s, box-shadow .15s, transform .1s;
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--accent-line); color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-on {
  background: var(--accent-wash); color: var(--accent-ink);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.chip[aria-pressed="true"]::before, .chip.is-on::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-grad);
}
.chip--add { border: 1.5px dashed var(--line); box-shadow: none; background: transparent; }
.chip__x { font-size: 16px; line-height: 1; opacity: .6; margin-inline-start: 2px; }
.chip__x:hover { opacity: 1; }
.chip-input { display: inline-flex; gap: 6px; align-items: center; }
.chip-input input { min-height: 36px !important; width: 170px; border-radius: 999px !important; padding: 0 14px !important; }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 22px;
  background: var(--slate-wash); color: var(--slate-ink); white-space: nowrap;
}
.tag--violet { background: var(--violet-wash); color: var(--violet-ink); }
.tag--green { background: var(--green-wash); color: var(--green-ink); }
.tag--red { background: var(--red-wash); color: var(--red-ink); }
.tag--amber { background: var(--amber-wash); color: var(--amber-ink); }
.tag--blue { background: var(--blue-wash); color: var(--blue-ink); }
.tag--teal { background: var(--teal-wash); color: var(--teal-ink); }

/* -------------------------------------------------------- lit panels -- */

.card { background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line-soft), var(--shadow-card); }

/* A lit box: a wash of its own colour (`--cc`) in the corner, an edge that
   catches the same colour, and a glow that follows the mouse (core.js keeps
   `--mx`/`--my`). All of it is background layers — no pseudo-element and no
   stacking context — so a popover inside one still opens over the next box. */
@property --spot { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.lit, .panel-box {
  --cc: var(--accent);
  --spot: 0%;
  position: relative;
  border: 1px solid transparent;
  border-radius: 20px;
  background:
    radial-gradient(380px circle at var(--mx, 50%) var(--my, 0px), color-mix(in srgb, var(--cc) var(--spot), transparent), transparent 65%) padding-box,
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--cc) var(--lit-wash), transparent), transparent 58%) padding-box,
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(155deg, color-mix(in srgb, var(--cc) var(--lit-edge), var(--line-soft)), var(--line-soft) 42%, var(--line-soft) 70%, color-mix(in srgb, var(--cc) calc(var(--lit-edge) / 2), var(--line-soft))) border-box;
  box-shadow: var(--lit-in), var(--lit-sh), 0 16px 36px -20px color-mix(in srgb, var(--cc) var(--lit-glow), transparent);
  transition: --spot .35s;
}
@media (hover: hover) {
  .lit:hover, .panel-box:hover { --spot: var(--lit-spot); }
}
/* Boxes that sit side by side each get a light of their own. */
.detail > .panel-box { --cc: var(--violet); }
.detail .stack > .panel-box:nth-child(1) { --cc: var(--blue); }
.detail .stack > .panel-box:nth-child(2) { --cc: var(--orange); }
.detail .stack > .panel-box:nth-child(3) { --cc: var(--pink); }
.detail .stack > .panel-box:nth-child(4) { --cc: var(--teal); }
.detail .stack > .panel-box:nth-child(5) { --cc: var(--green); }
.detail .stack > .panel-box:nth-child(6) { --cc: var(--amber); }
.panel-box.cn-box { --cc: var(--teal); }
.me-grid > .panel-box:nth-child(1) { --cc: var(--blue); }
.me-grid > .panel-box:nth-child(2) { --cc: var(--green); }

/* What rises into place as it is scrolled to (`App.revealOnScroll`). Hidden
   only under `html.js`, and only on blocks — never on a card with a hover of
   its own, whose transition this would take over. */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--rd, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------- home -- */

.hero { position: relative; padding: 56px 0 72px; overflow: hidden; isolation: isolate; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; border-radius: 50%; pointer-events: none;
  filter: blur(90px); opacity: var(--orb-o); animation: drift 19s ease-in-out infinite alternate;
}
.hero::before { top: -150px; inset-inline-start: -90px; background: var(--orb-a); }
.hero::after { bottom: -200px; inset-inline-end: 24%; background: var(--orb-b); animation-duration: 25s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(70px, 44px, 0) scale(1.16); } }
.hero__in { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--glass); color: var(--accent-ink);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-grad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 6%, transparent); } }
.hero h1 { margin: 18px 0 16px; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.32; font-weight: 700; }
.hero h1 em { display: inline; }
.lead { font-size: 17px; line-height: 2; color: var(--ink-soft); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--muted); }
.hero__ticks li { display: flex; align-items: center; gap: 6px; }
.hero__ticks li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none;
  background: var(--green-wash) no-repeat center / 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' fill='none' stroke='%23059669' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 0 1px var(--green-line);
}
.hero__demo { position: relative; }
.hero__demo::before {
  content: ""; position: absolute; inset: -12% -8%; z-index: -1; filter: blur(50px); opacity: .55;
  background: radial-gradient(closest-side, var(--demo-glow, #a855f7), transparent);
  transition: background 1s;
}
.hero__caption {
  margin-top: 12px; min-height: 4.4em; text-align: center; font-size: 13.5px; line-height: 1.9; color: var(--ink-soft);
  transition: opacity .3s;
}
.hero__caption.is-out { opacity: 0; }
.hero__caption b { color: var(--ink); }
.hero__caption small { display: block; font-size: 12px; color: var(--muted); }
/* One tab per screen of the product. The open tab's underline fills while it
   is on show; when it is full, the next screen turns in (home.js). */
.hero__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 18px; }
.hero__tab {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 6px;
  min-height: 34px; padding: 0 12px; border-radius: 999px;
  background: var(--surface); color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: background .15s, color .15s, box-shadow .15s;
}
.hero__tab svg { width: 16px; height: 16px; flex: none; }
.hero__tab:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent-line); }
.hero__tab.is-on { background: var(--accent-wash); color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px var(--accent); font-weight: 700; }
.hero__prog { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--accent-grad); transform: scaleX(0); transform-origin: right; }
.hero__tab.is-on .hero__prog { animation: hprog var(--dur, 6.5s) linear forwards; }
.hero__tabs.is-paused .hero__prog { animation-play-state: paused; }
@keyframes hprog { to { transform: scaleX(1); } }

.band { padding: 72px 0; }
.band--tint { background: color-mix(in srgb, var(--surface) 55%, transparent); border-block: 1px solid var(--line-soft); }
.sec-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.sec-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; text-wrap: balance; }
.sec-head p { margin-top: 12px; color: var(--ink-soft); font-size: 16px; }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card-pain { padding: 26px 24px; }
.card-pain .ic, .feat__ic {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: color-mix(in srgb, var(--cc, var(--fc)) 14%, transparent); color: var(--cc, var(--fc));
}
.card-pain .ic svg, .feat__ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card-pain h3 { margin: 16px 0 8px; font-size: 18px; }
.card-pain p { color: var(--ink-soft); line-height: 1.95; }

.steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps4 li { padding: 24px 22px; }
.steps4 li:nth-child(2) { --cc: var(--pink); }
.steps4 li:nth-child(3) { --cc: var(--orange); }
.steps4 li:nth-child(4) { --cc: var(--green); }
.num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 13px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--cc) 62%, white), var(--cc) 70%);
  color: #fff; font-weight: 700; font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 20px -10px var(--cc);
}
.steps4 h3 { margin: 16px 0 8px; font-size: 17px; }
.steps4 p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.95; }

.feat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feat {
  padding: 22px 20px; border-radius: 18px; background: var(--surface);
  box-shadow: var(--lit-in), 0 0 0 1px var(--line-soft), var(--shadow-card);
  transition: transform .2s, box-shadow .2s;
}
.feat:hover { transform: translateY(-3px); box-shadow: var(--lit-in), 0 0 0 1px var(--accent-line), var(--shadow-lift); }
.feat h3 { margin: 14px 0 6px; font-size: 16px; }
.feat p { color: var(--ink-soft); font-size: 14px; line-height: 1.9; }

/* The delivery tracker: the six steps, on the home page (all equal), on
   «درخواست من» and on a landing page (where one is current). */
.track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; position: relative; }
.track__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 0 4px; }
.track__step::before {
  content: ""; position: absolute; top: 19px; inset-inline-start: 50%; width: 100%; height: 3px; border-radius: 3px;
  background: var(--line); z-index: 0;
}
.track__step:last-child::before { display: none; }
.track__dot {
  position: relative; z-index: 1; display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; font-weight: 700;
  background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 2px var(--line), var(--shadow-card);
}
.track__label { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); line-height: 1.6; }
.track--big .track__dot { background: var(--accent-grad); color: #fff; box-shadow: 0 10px 20px -10px var(--glow); }
.track--big .track__step::before { background: linear-gradient(270deg, var(--accent-line), var(--line)); }
.track__step.is-done .track__dot { background: var(--green); color: #fff; box-shadow: 0 8px 18px -10px var(--green); }
.track__step.is-done::before { background: var(--green); }
.track__step.is-now .track__dot {
  background: var(--accent-grad); color: #fff;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent), 0 10px 24px -8px var(--glow);
  animation: now 2.4s ease-in-out infinite;
}
.track__step.is-now .track__label { color: var(--ink); }
@keyframes now { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 6%, transparent), 0 10px 24px -8px var(--glow); } }

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq__i { border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-soft), var(--shadow-card); }
.faq__i summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; cursor: pointer; font-weight: 600; list-style: none;
}
.faq__i summary::-webkit-details-marker { display: none; }
.faq__i summary::after {
  content: "+"; flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px;
  background: var(--accent-wash); color: var(--accent-ink); font-size: 18px; transition: transform .2s;
}
.faq__i[open] summary::after { transform: rotate(45deg); }
.faq__i p { padding: 0 20px 18px; color: var(--ink-soft); line-height: 2; }

.cta-band { padding: 0 0 72px; }
.cta-band__in {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 40px 44px; border-radius: 28px; color: #fff;
  background: var(--grad-hero); box-shadow: 0 30px 60px -30px rgba(109, 40, 217, .7);
  position: relative; overflow: hidden;
}
.cta-band__in::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px 200px at 10% 0%, rgba(255, 255, 255, .25), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.4px) 0 0 / 18px 18px;
}
.cta-band h2 { font-size: clamp(22px, 2.6vw, 30px); }
.cta-band p { margin-top: 8px; opacity: .88; }
.cta-band .btn { position: relative; z-index: 1; }


.nf { min-height: calc(100vh - var(--top-h)); display: grid; place-items: center; padding: 24px 16px; }
.nf__card { max-width: 460px; padding: 40px 32px; text-align: center; }
.nf__code { font-size: 64px; font-weight: 700; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.2; }
.nf h1 { font-size: 22px; margin: 8px 0; }
.nf p { color: var(--ink-soft); margin-bottom: 22px; }

/* ------------------------------------------------------ app pages -- */

.app-main { padding: 36px 0 72px; min-height: calc(100vh - var(--top-h)); }
.skeleton { border-radius: 20px; background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: sk 1.4s infinite; }
.skeleton--page { height: 60vh; margin: 24px auto; max-width: 1100px; width: calc(100% - 32px); }
@keyframes sk { to { background-position: -200% 0; } }

/* Sign in. */
.login { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 980px; margin: 0 auto; overflow: hidden; }
.login__form { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.login__form h1 { font-size: 26px; }
.login__form > p { margin: 10px 0 26px; color: var(--ink-soft); }
.login__side {
  position: relative; padding: 36px; color: #fff; background: var(--grad-hero);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; min-height: 460px; overflow: hidden;
}
.login__side::before {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; top: -80px; inset-inline-end: -90px;
  background: radial-gradient(circle at 30% 30%, rgba(251, 191, 36, .9), rgba(244, 63, 94, .2) 60%, transparent 70%);
  filter: blur(6px); opacity: .7;
}
.login__side::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.4px) 0 0 / 18px 18px;
}
.login__side > * { position: relative; z-index: 1; }
.login__side h2 { font-size: 22px; }
.login__side ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; opacity: .92; }
.login__side li { display: flex; gap: 8px; align-items: flex-start; }
.login__side li::before { content: ""; width: 6px; height: 6px; margin-top: .72em; border-radius: 50%; background: #fff; flex: none; }
.phone-inp { font-size: 20px !important; letter-spacing: .06em; text-align: center; direction: ltr; min-height: 54px !important; }
.code-boxes { display: flex; gap: 10px; justify-content: center; direction: ltr; margin: 4px 0 6px; }
.code-boxes input {
  width: 50px; height: 58px; padding: 0; border-radius: 14px; text-align: center; font-size: 24px; font-weight: 700;
  background: var(--surface); border: 1.5px solid var(--line); outline: none; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.code-boxes input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); transform: translateY(-2px); }
.code-boxes.is-bad input { border-color: var(--red); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.login__meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.login__meta a { flex: none; white-space: nowrap; }
.err { color: var(--red-ink); font-size: 13.5px; min-height: 22px; margin-top: 8px; }
.stack > .err:empty { display: none; }
.dev-code { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--amber-wash); color: var(--amber-ink); font-size: 13px; text-align: center; }

/* «درخواست من». */
.me-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.me-head h1 { font-size: 26px; }
.me-head p { color: var(--ink-soft); }
.me-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.panel-box { padding: 24px; }
.panel-box h2 { font-size: 18px; margin-bottom: 16px; }
.empty-hero { text-align: center; padding: 48px 24px; max-width: 640px; margin: 0 auto; }
.empty-hero h1 { font-size: 26px; margin-bottom: 10px; }
.empty-hero p { color: var(--ink-soft); margin-bottom: 22px; }
.logo-box {
  flex: none; width: 64px; height: 64px; border-radius: 18px; overflow: hidden;
  display: grid; place-items: center; font-weight: 700; font-size: 24px; color: #fff;
  background: linear-gradient(135deg, var(--p, var(--accent)), var(--s, var(--accent-2)));
  box-shadow: 0 10px 24px -12px var(--p, var(--glow));
}
.logo-box img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.logo-box--sm { width: 40px; height: 40px; border-radius: 12px; font-size: 16px; }
.logo-box--xs { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }

/* Progress: a bar, and the checklist under it. */
.bar { height: 8px; border-radius: 8px; background: var(--line-soft); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent-grad); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.bar--green i { background: linear-gradient(90deg, var(--green), var(--teal)); }
.checklist { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; color: var(--ink-soft); }
.checklist li::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--line);
}
.checklist li.is-done { color: var(--ink); }
.checklist li.is-done::before {
  box-shadow: none;
  background: var(--green) no-repeat center / 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.checklist .tag { margin-inline-start: auto; }

/* --------------------------------------------------------------- wizard -- */

.wz { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: start; }
.wz__main { min-width: 0; }
.wz__steps { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 14px; margin-bottom: 6px; }
.wz__steps::-webkit-scrollbar { display: none; }
/* Wide enough to see all ten at once: wrap instead of hiding some off the edge. */
@media (min-width: 900px) { .wz__steps { flex-wrap: wrap; overflow: visible; } }
.wz__tab {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.wz__tab b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.wz__tab.is-done b { background: var(--green); color: var(--on-accent); box-shadow: none; }
.wz__tab[aria-current="step"] { color: var(--on-accent); background: var(--accent-grad); box-shadow: 0 8px 18px -10px var(--glow); }
.wz__tab[aria-current="step"] b { background: var(--on-accent); color: var(--accent); box-shadow: none; }
.save-state { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.save-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.save-state.is-saved::before { background: var(--green); }
.save-state.is-saving::before { background: var(--amber); animation: pulse 1s infinite; }
.save-state.is-error { color: var(--red-ink); }
.save-state.is-error::before { background: var(--red); }
.wz__side { position: sticky; top: calc(var(--top-h) + 20px); min-width: 0; }
.wz__side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.wz__side-head b { font-size: 14px; }
.wz__side-head .tag { font-size: 11.5px; }
.wz__peek { display: none; }

.color-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.swatch { position: relative; width: 44px; height: 44px; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), var(--shadow-card); flex: none; }
.swatch input { position: absolute; inset: -8px; width: 60px; height: 60px; border: 0; padding: 0; cursor: pointer; background: none; }
.presets { display: flex; gap: 8px; flex-wrap: wrap; }
.preset { width: 34px; height: 34px; border-radius: 11px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), var(--shadow-card); transition: transform .15s; }
.preset:hover { transform: scale(1.08); }
.preset[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }

.drop {
  display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 16px;
  border: 1.5px dashed var(--line); background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s;
}
.drop:hover, .drop.is-over { border-color: var(--accent); background: var(--accent-wash); }
.drop input { display: none; }
.drop__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.drop__txt b { font-size: 14.5px; }

.proc__head { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.proc__head input { flex: 1; }
.stage-list { display: flex; flex-flow: row wrap; gap: 8px; align-items: center; }
.stage-pill {
  display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 6px 0 12px; border-radius: 11px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px;
}
.stage-pill input { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; min-height: 0 !important; width: 9ch; font-size: 14px; }
.stage-pill .chip__x { padding: 4px; }
.stage-arrow { color: var(--muted); font-size: 12px; }
.role-row { display: flex; flex-direction: row; gap: 8px; align-items: center; }
.role-row + .role-row { margin-top: 8px; }
.role-row input[type="number"] { width: 90px !important; flex: none; text-align: center; }

.review { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.done-box { text-align: center; padding: 48px 28px; }
.done-box .big-ic { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 24px; display: grid; place-items: center; background: linear-gradient(135deg, var(--green), var(--teal)); color: #fff; box-shadow: 0 16px 32px -14px var(--green); }
.done-box .big-ic svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.done-box h2 { font-size: 24px; }
.done-box p { color: var(--ink-soft); margin: 10px auto 22px; max-width: 460px; }

/* ----------------------------------------------------- the demo mock -- */
/* Drawn at a fixed size and scaled to its host (`App.demo`), so it is the
   same picture everywhere. It wears the CUSTOMER's colours: --dp, --ds. */

.demo-host { position: relative; width: 100%; }
.demo-host > .demo { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.demo {
  --dp: #7c3aed; --ds: #db2777;
  --d-bg: #f6f5fb; --d-side: #ffffff; --d-card: #ffffff; --d-ink: #1b1830; --d-mut: #7a7694; --d-line: #e9e6f3; --d-col: #efedf7;
  width: 920px; height: 580px; border-radius: 22px; overflow: hidden;
  display: grid; grid-template-rows: 38px minmax(0, 1fr);
  background: var(--d-bg); color: var(--d-ink); font-size: 13px; line-height: 1.6;
  box-shadow: 0 0 0 1px rgba(20, 10, 60, .08), 0 40px 80px -30px rgba(40, 20, 100, .45), 0 18px 36px -18px rgba(40, 20, 100, .3);
  transition: background .5s, color .5s;
}
.demo.is-night { --d-bg: #0d0e22; --d-side: #14152f; --d-card: #1a1c3c; --d-ink: #eeedfb; --d-mut: #9c9abd; --d-line: #272a55; --d-col: #121433; }
.demo * { transition: background-color .5s, color .5s, border-color .5s; }
.demo__chrome { display: flex; align-items: center; gap: 7px; padding: 0 14px; background: var(--d-side); border-bottom: 1px solid var(--d-line); direction: ltr; }
.demo__chrome i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.demo__chrome i:nth-child(2) { background: #febc2e; }
.demo__chrome i:nth-child(3) { background: #28c840; }
.demo__url { margin: 0 auto; padding: 2px 16px; border-radius: 8px; background: var(--d-bg); color: var(--d-mut); font-size: 11.5px; min-width: 260px; text-align: center; }
.demo__body { display: grid; grid-template-columns: 188px minmax(0, 1fr); min-height: 0; }
.demo__side { display: flex; flex-direction: column; gap: 4px; padding: 14px 12px; background: var(--d-side); border-inline-end: 1px solid var(--d-line); min-width: 0; }
.demo__brand { display: flex; align-items: center; gap: 9px; padding: 2px 4px 12px; min-width: 0; }
.demo__logo { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; overflow: hidden; color: #fff; font-weight: 700; font-size: 15px; background: linear-gradient(135deg, var(--dp), var(--ds)); box-shadow: 0 6px 14px -6px var(--dp); }
.demo__logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.demo__name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo__sub { font-size: 10.5px; color: var(--d-mut); }
.demo__nav { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; color: var(--d-mut); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo svg { width: 14px; height: 14px; flex: none; }
.demo__nav i { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; color: var(--dp); background: color-mix(in srgb, var(--dp) 14%, transparent); }
.demo__nav i svg { width: 13px; height: 13px; }
.demo.is-night .demo__nav i { color: color-mix(in srgb, var(--dp) 55%, white); }
.demo__nav.is-on { background: color-mix(in srgb, var(--dp) 13%, transparent); color: var(--d-ink); font-weight: 700; }
.demo__nav.is-on i { color: #fff; background: linear-gradient(135deg, var(--dp), var(--ds)); }
.demo__gt { font-size: 10.5px; font-weight: 700; color: var(--d-mut); padding: 10px 8px 2px; }
.demo__me { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; background: var(--d-bg); font-size: 12px; }
.demo__av { flex: none; width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; background: var(--av, var(--dp)); }
.demo__main { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 14px 16px 0; gap: 12px; }
.demo__scr { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding-bottom: 14px; }
.demo__top { display: flex; align-items: center; gap: 10px; }
.demo__title { font-size: 17px; font-weight: 700; }
.demo__search { margin-inline-start: auto; width: 180px; height: 30px; border-radius: 10px; background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-line); color: var(--d-mut); font-size: 11.5px; display: flex; align-items: center; padding: 0 10px; }
.demo__tgl { width: 40px; height: 22px; border-radius: 99px; background: linear-gradient(135deg, #7dd3fc, #fbcfe8); position: relative; flex: none; }
.demo__tgl::after { content: ""; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px rgba(253, 224, 71, .9); transition: right .4s; }
.demo.is-night .demo__tgl { background: linear-gradient(135deg, #1e1b4b, #581c87); }
.demo.is-night .demo__tgl::after { right: 21px; background: #ede9fe; }
.demo__btn { height: 30px; padding: 0 12px; border-radius: 10px; display: inline-flex; align-items: center; color: #fff; font-weight: 700; font-size: 12px; background: linear-gradient(135deg, var(--dp), var(--ds)); box-shadow: 0 6px 14px -6px var(--dp); }
.demo__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.demo__kpi { padding: 9px 12px; border-radius: 12px; background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-line); }
.demo__kpi small { display: block; color: var(--d-mut); font-size: 10.5px; }
.demo__kpi b { font-size: 17px; }
.demo__kpi:first-child { background: linear-gradient(135deg, var(--dp), var(--ds)); color: #fff; box-shadow: 0 10px 20px -12px var(--dp); }
.demo__kpi:first-child small { color: rgba(255, 255, 255, .8); }
.demo__board { flex: 1; min-height: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 10px; overflow: hidden; }
.demo__col { display: flex; flex-direction: column; gap: 8px; padding: 9px; border-radius: 14px; background: var(--d-col); min-height: 0; }
.demo__colh { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; padding: 0 2px; white-space: nowrap; }
.demo__colh::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cc, var(--dp)); flex: none; }
.demo__colh span { margin-inline-start: auto; color: var(--d-mut); font-weight: 600; font-size: 11px; }
.demo__card { padding: 9px 10px; border-radius: 11px; background: var(--d-card); box-shadow: 0 1px 2px rgba(20, 10, 60, .06), inset 0 0 0 1px var(--d-line); display: flex; flex-direction: column; gap: 5px; }
.demo__card b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo__card .demo__f { display: flex; justify-content: space-between; gap: 6px; font-size: 10.5px; color: var(--d-mut); }
.demo__card .demo__f span:last-child { color: var(--d-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo__card footer { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.demo__pill { padding: 0 7px; border-radius: 99px; font-size: 10px; font-weight: 700; line-height: 18px; background: color-mix(in srgb, var(--dp) 13%, transparent); color: var(--dp); }
.demo.is-night .demo__pill { color: color-mix(in srgb, var(--dp) 55%, white); }
.demo__card .demo__av { width: 20px; height: 20px; border-radius: 7px; font-size: 9px; }
.demo__card.is-moving { animation: dmove .9s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 12px 24px -10px var(--dp), inset 0 0 0 1.5px var(--dp); }
@keyframes dmove { from { transform: translateX(60px) rotate(-2deg); opacity: 0; } }
.demo__ghost { opacity: .5; }

/* The same mock, on a phone. */
.demo--phone { width: 360px; height: 680px; border-radius: 38px; grid-template-rows: 30px auto minmax(0, 1fr) 58px; border: 8px solid #17142b; }
.demo--phone .demo__notch { display: flex; justify-content: space-between; align-items: center; padding: 0 22px; font-size: 11px; font-weight: 700; direction: ltr; }
.demo--phone .demo__ph { display: flex; align-items: center; gap: 10px; padding: 6px 16px 10px; }
.demo--phone .demo__scr { padding: 0 14px 12px; gap: 10px; overflow: hidden; }
.demo--phone .demo__tabs { display: flex; gap: 6px; overflow: hidden; flex: none; }
.demo--phone .demo__tab { flex: none; padding: 4px 12px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-line); color: var(--d-mut); white-space: nowrap; }
.demo--phone .demo__tab.is-on { background: linear-gradient(135deg, var(--dp), var(--ds)); color: #fff; box-shadow: none; }
.demo--phone .demo__list { display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.demo--phone .demo__card b { font-size: 13.5px; }
.demo--phone .demo__card .demo__f { font-size: 11.5px; }
.demo--phone .demo__bnav { display: flex; justify-content: space-around; align-items: center; background: var(--d-side); border-top: 1px solid var(--d-line); }
.demo--phone .demo__bnav span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; color: var(--d-mut); }
.demo--phone .demo__bnav span.is-on { color: var(--d-ink); font-weight: 700; }
.demo--phone .demo__bnav i { width: 30px; height: 26px; border-radius: 9px; display: grid; place-items: center; color: var(--dp); background: color-mix(in srgb, var(--dp) 14%, transparent); }
.demo--phone .demo__bnav span.is-on i { color: #fff; background: linear-gradient(135deg, var(--dp), var(--ds)); }

/* The product's other screens (`cfg.screen`). Panes, rows and badges are
   shared; the phone keeps each screen's main pane and drops the side ones. */
.demo__pane { display: flex; flex-direction: column; gap: 8px; min-height: 0; padding: 12px; border-radius: 14px; background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-line); overflow: hidden; }
.demo__hd { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.demo__hd small { margin-inline-start: auto; color: var(--d-mut); font-size: 10.5px; }
.demo__split { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 12px; }
.demo__tx { min-width: 0; display: flex; flex-direction: column; line-height: 1.5; }
.demo__tx b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo__tx span { font-size: 10.5px; color: var(--d-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo__evi { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: var(--ev, var(--dp)); background: color-mix(in srgb, var(--ev, var(--dp)) 14%, transparent); }
.demo__ch { padding: 0 7px; border-radius: 99px; font-size: 9.5px; font-weight: 700; line-height: 17px; white-space: nowrap; color: var(--ch); background: color-mix(in srgb, var(--ch) 14%, transparent); }
.demo__big { flex: none; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: #fff; font-size: 19px; font-weight: 700; background: linear-gradient(135deg, var(--dp), var(--ds)); box-shadow: 0 8px 18px -8px var(--dp); }
.demo__hint { margin: 0; font-size: 10.5px; color: var(--d-mut); }

/* Today: the day's follow-ups, and the customers without one. */
.demo__tasks { display: flex; flex-direction: column; gap: 7px; }
.demo__task { display: grid; grid-template-columns: 18px 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 11px; background: var(--d-bg); }
.demo__chk { width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; color: #fff; box-shadow: inset 0 0 0 1.5px var(--d-line); }
.demo__chk svg { width: 12px; height: 12px; stroke-width: 3; }
.demo__task.is-done .demo__chk { background: #10b981; box-shadow: none; }
.demo__task.is-done .demo__tx b { color: var(--d-mut); text-decoration: line-through; }
.demo__at { font-size: 11px; font-weight: 700; color: var(--dp); }
.demo.is-night .demo__at { color: color-mix(in srgb, var(--dp) 55%, white); }
.demo__task.is-late { background: color-mix(in srgb, #f43f5e 8%, var(--d-card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, #f43f5e 35%, transparent); }
.demo__task.is-late .demo__at { color: #f43f5e; }
.demo__late { padding: 0 8px; border-radius: 99px; font-size: 10px; font-weight: 700; line-height: 18px; color: #fff; background: #f43f5e; }
.demo__idle { display: flex; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid var(--d-line); font-size: 11.5px; }
.demo__idle em { margin-inline-start: auto; font-style: normal; font-size: 10.5px; font-weight: 700; color: #f43f5e; }

/* A customer's file: who they are on one side, everything that happened on the other. */
.demo__split--dos { grid-template-columns: 250px minmax(0, 1fr); }
.demo__who { gap: 12px; }
.demo__who .demo__chips span { color: var(--d-mut); }
.demo__whohd { display: flex; align-items: center; gap: 10px; }
.demo__whohd b { font-size: 15px; }
.demo__whohd small { margin-inline-start: 6px; font-size: 10.5px; color: var(--d-mut); }
/* Separate boxes, or Chrome joins the last letter of the stage to the first letter of the owner. */
.demo__wholn { display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; }
.demo__acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.demo__act { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0; border-radius: 10px; font-size: 10.5px; font-weight: 700; color: var(--dp); background: color-mix(in srgb, var(--dp) 10%, transparent); }
.demo.is-night .demo__act { color: color-mix(in srgb, var(--dp) 55%, white); }
.demo__kvs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.demo__kv { min-width: 0; padding: 6px 8px; border-radius: 9px; background: var(--d-bg); }
.demo__kv span { display: block; font-size: 9.5px; color: var(--d-mut); }
.demo__kv b { display: block; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo__next { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--dp), var(--ds)); box-shadow: 0 10px 20px -12px var(--dp); }
.demo__next small { font-size: 10px; opacity: .8; }
.demo__next b { font-size: 12.5px; }
.demo__next span { display: flex; align-items: center; gap: 5px; font-size: 10.5px; opacity: .9; }
.demo__next svg { width: 12px; height: 12px; }
.demo__ev { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 6px 0; }
.demo__ev:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 13.5px; top: 36px; bottom: -6px; width: 1px; background: var(--d-line); }
.demo__ev .demo__tx span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.demo__ev em { font-style: normal; font-size: 10px; color: var(--d-mut); white-space: nowrap; }

/* Messages: every channel in one inbox, answered from inside the file. */
.demo__chat { flex: 1; min-height: 0; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 12px; }
.demo__threads { display: flex; flex-direction: column; gap: 3px; padding: 8px; border-radius: 14px; background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-line); overflow: hidden; }
.demo__th { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px; border-radius: 10px; }
.demo__th.is-on { background: color-mix(in srgb, var(--dp) 11%, transparent); }
.demo__thm { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.demo__unread { min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; color: #fff; background: var(--dp); }
.demo__conv { display: flex; flex-direction: column; min-height: 0; border-radius: 14px; background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-line); overflow: hidden; }
.demo__convh { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-bottom: 1px solid var(--d-line); }
.demo__convh .demo__tx { flex: 1; }
.demo__msgs { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; padding: 12px; background: var(--d-bg); overflow: hidden; }
.demo__bub { max-width: 78%; align-self: flex-start; display: flex; flex-direction: column; padding: 6px 10px; border-radius: 13px 13px 4px 13px; font-size: 11.5px; line-height: 1.75; background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-line); }
.demo__bub em { align-self: flex-end; font-style: normal; font-size: 9.5px; color: var(--d-mut); }
.demo__bub.is-me { align-self: flex-end; border-radius: 13px 13px 13px 4px; color: #fff; background: linear-gradient(135deg, var(--dp), var(--ds)); box-shadow: 0 8px 16px -10px var(--dp); }
.demo__bub.is-me em { color: rgba(255, 255, 255, .75); }
.demo__bub.is-link > span { display: flex; align-items: center; gap: 6px; margin-top: 2px; padding: 6px 9px; border-radius: 9px; font-weight: 700; background: rgba(255, 255, 255, .2); }
.demo__sys { align-self: center; display: flex; align-items: center; gap: 5px; padding: 1px 10px; border-radius: 99px; font-size: 10px; color: var(--d-mut); background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-line); }
.demo__sys svg { width: 11px; height: 11px; color: var(--dp); }
.demo__tpls { display: flex; align-items: center; gap: 6px; padding: 9px 12px 0; overflow: hidden; white-space: nowrap; }
.demo__tpls small { font-size: 10px; color: var(--d-mut); }
.demo__tpls span { padding: 1px 9px; border-radius: 99px; font-size: 10.5px; color: var(--dp); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dp) 35%, transparent); }
.demo.is-night .demo__tpls span { color: color-mix(in srgb, var(--dp) 55%, white); }
.demo__compose { display: flex; align-items: center; gap: 8px; margin: 8px 12px 12px; padding: 5px; padding-inline-start: 12px; border-radius: 12px; font-size: 11px; color: var(--d-mut); background: var(--d-bg); box-shadow: inset 0 0 0 1px var(--d-line); }
.demo__send { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 9px; font-size: 10.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--dp), var(--ds)); }
.demo__send svg { width: 12px; height: 12px; }

/* Calls: the day's log, and the call ringing now with its file already open. */
.demo__split--call { grid-template-columns: minmax(0, 1fr) 276px; }
.demo__call { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto 22px; align-items: center; gap: 10px; padding-top: 7px; border-top: 1px solid var(--d-line); }
.demo__hd + .demo__call { padding-top: 0; border-top: 0; }
.demo__dur, .demo__call em { font-size: 10.5px; font-style: normal; color: var(--d-mut); }
.demo__call .demo__av { width: 22px; height: 22px; border-radius: 7px; font-size: 9px; }
.demo__ring { align-self: center; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: var(--d-card); box-shadow: 0 0 0 1px var(--d-line), 0 24px 44px -18px color-mix(in srgb, var(--dp) 70%, transparent); animation: dpop .6s cubic-bezier(.2, .9, .3, 1.25) .45s both; }
.demo__ringh { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; color: #10b981; }
.demo__ringh small { margin-inline-start: auto; font-weight: 500; color: var(--d-mut); }
.demo__live { width: 8px; height: 8px; border-radius: 50%; background: #10b981; animation: dblink 1s infinite; }
.demo__ringwho { display: flex; align-items: center; gap: 10px; }
.demo__ringwho .demo__tx b { font-size: 14px; }
.demo__pulse { animation: dring 1.6s infinite; }
.demo__chips { display: flex; flex-wrap: wrap; gap: 5px; }
.demo__chips span { padding: 1px 8px; border-radius: 99px; font-size: 10px; background: var(--d-bg); box-shadow: inset 0 0 0 1px var(--d-line); }
.demo__ringlast { display: flex; align-items: flex-start; gap: 6px; padding: 8px; border-radius: 10px; font-size: 10.5px; line-height: 1.7; color: var(--d-mut); background: var(--d-bg); }
.demo__ringlast svg { width: 12px; height: 12px; margin-top: 3px; }
.demo__ringb { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.demo__ok { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; border-radius: 11px; font-size: 11px; font-weight: 700; color: #fff; background: #10b981; box-shadow: 0 8px 16px -10px #10b981; }
.demo__ok svg { width: 13px; height: 13px; }
.demo__no { padding: 8px 12px; border-radius: 11px; font-size: 11px; font-weight: 600; color: var(--d-mut); background: var(--d-bg); }

/* Automations: the rules that send what nobody has to remember. */
.demo__banner { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--dp), var(--ds)); box-shadow: 0 14px 26px -16px var(--dp); }
.demo__bic { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); }
.demo__bic svg { width: 20px; height: 20px; }
.demo__banner .demo__tx b { font-size: 15.5px; white-space: normal; }
.demo__banner .demo__tx span { font-size: 11px; color: rgba(255, 255, 255, .85); white-space: normal; }
.demo__rules { display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow: hidden; }
.demo__rule { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 50px 34px; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 13px; background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-line); }
.demo__rule .demo__evi { width: 30px; height: 30px; }
.demo__rule .demo__tx b { font-size: 12.5px; }
.demo__rule em { font-style: normal; font-size: 10.5px; text-align: center; color: var(--d-mut); }
.demo__sw { position: relative; width: 34px; height: 19px; border-radius: 99px; background: var(--d-line); }
.demo__sw::after { content: ""; position: absolute; top: 2.5px; right: 2.5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.demo__rule.is-on .demo__sw { background: #10b981; }
.demo__rule.is-on .demo__sw::after { right: 17.5px; }
.demo__rule:not(.is-on) { opacity: .62; }

/* Reports: weekly sales, the funnel, and the team against its target. */
.demo__split--rep { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.demo__bars { flex: 1; min-height: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: end; gap: 8px; }
.demo__bar { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.demo__bar i { display: block; width: 100%; max-width: 30px; height: calc(var(--v) * 150px); border-radius: 7px 7px 3px 3px; background: color-mix(in srgb, var(--dp) 26%, transparent); transform-origin: bottom; animation: dgrow .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.2s + var(--i, 0) * 60ms); }
.demo__bar.is-now i { background: linear-gradient(180deg, var(--ds), var(--dp)); box-shadow: 0 8px 16px -8px var(--dp); }
.demo__bar small { font-size: 9px; white-space: nowrap; color: var(--d-mut); }
.demo__bar.is-now small { font-weight: 700; color: var(--d-ink); }
.demo__fun { display: grid; grid-template-columns: 70px minmax(0, 1fr) 32px; align-items: center; gap: 8px; font-size: 10.5px; }
.demo__fun span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--d-mut); }
.demo__fun i { display: block; height: 14px; width: calc(var(--v) * 100%); border-radius: 5px; background: linear-gradient(90deg, var(--ds), var(--dp)); transform-origin: right; animation: dgrowx .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.3s + var(--i, 0) * 80ms); }
.demo__fun b { font-size: 11px; text-align: end; }
.demo__insight { margin: auto 0 0; display: flex; align-items: flex-start; gap: 6px; padding: 8px 10px; border-radius: 10px; font-size: 10.5px; line-height: 1.7; color: var(--d-ink); background: color-mix(in srgb, var(--dp) 9%, transparent); }
.demo__insight svg { flex: none; width: 12px; height: 12px; margin-top: 3px; color: var(--dp); }
.demo__teamp { flex: none; }
.demo__team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.demo__mate { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 6px 8px; align-items: center; padding: 8px 10px; border-radius: 11px; background: var(--d-bg); }
.demo__mate i { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--ds), var(--dp)) no-repeat right / calc(var(--v) * 100%) 100%, var(--d-line); }
.demo__mate em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--dp); }
.demo.is-night .demo__mate em { color: color-mix(in srgb, var(--dp) 55%, white); }

/* A new screen turns in like a page; its rows arrive one after another. */
.demo__scr.is-enter { animation: dflip .55s cubic-bezier(.2, .8, .2, 1); }
.demo__scr.is-enter :is(.demo__task, .demo__idle, .demo__ev, .demo__th, .demo__bub, .demo__sys, .demo__call, .demo__rule, .demo__mate) {
  animation: drise .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.15s + var(--i, 0) * 70ms);
}
@keyframes dflip { from { opacity: 0; transform: translateY(16px) scale(.985); } }
@keyframes drise { from { opacity: 0; transform: translateY(10px); } }
@keyframes dgrow { from { transform: scaleY(0); } }
@keyframes dgrowx { from { transform: scaleX(0); } }
@keyframes dpop { from { opacity: 0; transform: translateY(18px) scale(.94); } }
@keyframes dblink { 50% { opacity: .25; } }
@keyframes dring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--dp) 55%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }

/* On the phone each screen keeps its main pane. */
.demo--phone .demo__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.demo--phone .demo__split, .demo--phone .demo__chat { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.demo--phone :is(.demo__side2, .demo__threads, .demo__teamp, .demo__tpls, .demo__insight) { display: none; }
/* On the phone the file card takes what it needs and the history gets the rest. */
.demo--phone .demo__split--dos { grid-template-rows: auto minmax(0, 1fr); }
.demo--phone .demo__who :is(.demo__chips, .demo__acts) { display: none; }
.demo--phone .demo__ev:nth-child(n + 4) { display: none; }
/* Calls on the phone: the ringing call on top, the day's log under it. */
.demo--phone .demo__scr--call .demo__kpis { display: none; }
.demo--phone .demo__split--call { grid-template-rows: auto minmax(0, 1fr); }
.demo--phone .demo__ring { order: -1; }
.demo--phone .demo__call { grid-template-columns: 28px minmax(0, 1fr) auto; }
.demo--phone .demo__call :is(.demo__dur, .demo__av) { display: none; }
.demo--phone .demo__call:nth-child(n + 6) { display: none; }
.demo--phone .demo__task { grid-template-columns: 18px 36px minmax(0, 1fr) auto; gap: 8px; }
.demo--phone .demo__rule { grid-template-columns: 30px minmax(0, 1fr) 34px; }
.demo--phone .demo__rule :is(.demo__ch, em) { display: none; }
.demo--phone .demo__rule .demo__tx :is(b, span) { white-space: normal; }
.demo--phone .demo__bar i { height: calc(var(--v) * 120px); }
.demo--phone .demo__ring { align-self: start; }

/* --------------------------------------------------------------- panel -- */

.shell { display: grid; grid-template-columns: 258px minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; z-index: 35; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px);
  border-inline-end: 1px solid var(--line-soft);
}
.side .brand { padding: 20px 18px 14px; }
.side__nav { flex: 1; padding: 4px 12px; }
.nav-gt { display: block; padding: 14px 10px 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.nav-i {
  --mc: var(--accent);
  display: flex; align-items: center; gap: 12px; width: 100%; margin: 2px 0; padding: 5px 8px; border-radius: 14px;
  color: var(--ink); text-align: right; line-height: 24px; transition: background .15s;
}
.nav-i:hover { color: var(--ink); background: color-mix(in srgb, var(--mc) 8%, transparent); }
.nav-i__ic { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: color-mix(in srgb, var(--mc) 13%, transparent); color: var(--mc); }
.nav-i__ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nav-i__label { flex: 1; min-width: 0; }
.nav-i[aria-current="page"] {
  background: linear-gradient(270deg, color-mix(in srgb, var(--mc) 18%, transparent), color-mix(in srgb, var(--mc) 4%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mc) 22%, transparent); font-weight: 700;
}
.nav-i[aria-current="page"] .nav-i__ic { background: linear-gradient(140deg, color-mix(in srgb, var(--mc) 62%, white), var(--mc) 60%); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 18px -6px var(--mc); }
.nb { display: inline-grid; place-items: center; min-width: 22px; padding: 0 7px; border-radius: 999px; font-size: 12px; line-height: 22px; font-weight: 700; background: var(--accent-grad); color: #fff; }
.nb:empty { display: none; }
.side__foot { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.me-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 18px; background: color-mix(in srgb, var(--surface-2) 70%, transparent); box-shadow: inset 0 0 0 1px var(--line-soft), var(--lit-in); }
.av { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: var(--accent-grad); color: #fff; font-weight: 700; font-size: 14px; }
.av--sm { width: 24px; height: 24px; border-radius: 8px; font-size: 11px; }
.av--1 { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.av--2 { background: linear-gradient(135deg, #f97316, #db2777); }
.me-card__txt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.5; }
.me-card__txt small { color: var(--muted); font-size: 12px; }
.side-scrim { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.ptop { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 10px 28px;
  background: var(--glass); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line-soft) 75%, transparent); }
.ptop h1 { font-size: 19px; }
.ptop .menu-btn { display: none; }
.ptop__end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.view { padding: 24px 28px 48px; min-width: 0; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { padding: 18px 20px; }
.kpi small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.kpi b { display: block; font-size: 30px; line-height: 1.3; margin-top: 4px; }
.kpi span { font-size: 12.5px; color: var(--muted); }
.kpi--hero { background: var(--grad-hero) border-box; color: #fff; box-shadow: 0 20px 40px -24px rgba(109, 40, 217, .8); }
.kpi--hero small, .kpi--hero span { color: rgba(255, 255, 255, .82); }
.hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.hello h2 { font-size: 24px; }
.hello p { color: var(--muted); }
.cols2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: start; }
.box { padding: 20px; }
.box__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.box__h h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.box__h h3 svg { width: 18px; height: 18px; color: var(--accent-ink); }
.empty-hero .big-ic { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; background: var(--accent-grad); color: #fff; box-shadow: 0 14px 30px -14px var(--glow); }
.empty-hero .big-ic svg { width: 30px; height: 30px; }
.quick button svg { width: 13px; height: 13px; vertical-align: -2px; }
.box__h a, .box__h button { font-size: 13px; font-weight: 600; color: var(--accent-ink); }

.funnel { display: flex; flex-direction: column; gap: 9px; }
.funnel__row { display: grid; grid-template-columns: 172px minmax(0, 1fr) 34px; align-items: center; gap: 12px; font-size: 13.5px; color: inherit; }
.funnel__row:hover { color: inherit; }
.funnel__row:hover .funnel__bar i { filter: brightness(1.08) saturate(1.2); }
.funnel__lbl { display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.funnel__lbl::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--sc); }
.funnel__bar { height: 26px; border-radius: 9px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-soft); overflow: hidden; }
.funnel__bar i { display: block; height: 100%; min-width: 4px; border-radius: inherit; background: linear-gradient(270deg, var(--sc), color-mix(in srgb, var(--sc) 55%, white)); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.funnel__n { font-weight: 700; text-align: center; }

.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 12px; color: inherit; text-align: right; width: 100%; }
.li + .li { border-top: 1px solid var(--line-soft); }
.li:hover { background: var(--surface-2); color: inherit; }
.li__body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.6; }
.li__body b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li__body small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li__end { flex: none; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.empty { padding: 24px 12px; text-align: center; color: var(--muted); font-size: 14px; }
.empty--big { padding: 56px 16px; }
.empty--big b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }

.feed { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; position: relative; }
.feed__i { position: relative; display: flex; gap: 12px; padding: 8px 0; }
.feed__i::before { content: ""; position: absolute; top: 34px; bottom: -8px; inset-inline-start: 13px; width: 2px; background: var(--line-soft); }
.feed__i:last-child::before { display: none; }
.feed__ic { flex: none; position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; background: var(--fc-wash, var(--accent-wash)); color: var(--fc, var(--accent-ink)); }
.feed__ic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feed__body { flex: 1; min-width: 0; font-size: 14px; line-height: 1.8; }
.feed__body p { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-soft); }
.more-btn { display: flex; width: 100%; justify-content: center; margin-top: 10px; }
.feed__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.feed__i--stage { --fc: var(--violet-ink); --fc-wash: var(--violet-wash); }
.feed__i--message { --fc: var(--teal-ink); --fc-wash: var(--teal-wash); }
.feed__i--call { --fc: var(--orange-ink); --fc-wash: var(--orange-wash); }
.feed__i--meeting { --fc: var(--blue-ink); --fc-wash: var(--blue-wash); }
.feed__i--request { --fc: var(--green-ink); --fc-wash: var(--green-wash); }
.feed__i--note { --fc: var(--amber-ink); --fc-wash: var(--amber-wash); }

/* The board. RTL: the first stage is on the right, like reading. */
.board-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.board-tools .inp { max-width: 260px; min-height: 40px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: 286px; gap: 14px; overflow-x: auto; padding: 4px 2px 18px; min-height: calc(100vh - 200px); align-items: start; scroll-snap-type: x proximity; }
.col { --sc: var(--accent); display: flex; flex-direction: column; border-radius: 20px; background: color-mix(in srgb, var(--surface-2) 80%, transparent); box-shadow: inset 0 0 0 1px var(--line-soft); max-height: calc(100vh - 200px); scroll-snap-align: start; transition: box-shadow .15s, background .15s; }
.col.is-over { background: color-mix(in srgb, var(--sc) 9%, var(--surface-2)); box-shadow: inset 0 0 0 2px var(--sc); }
.col__h { display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px; }
.col__h::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--sc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sc) 18%, transparent); }
.col__h b { font-size: 14px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col__n { font-size: 12px; font-weight: 700; color: var(--sc); background: color-mix(in srgb, var(--sc) 12%, transparent); padding: 0 8px; border-radius: 99px; line-height: 22px; }
.col__add { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); font-size: 18px; }
.col__add:hover { background: var(--surface); color: var(--sc); }
.col__body { display: flex; flex-direction: column; gap: 10px; padding: 2px 10px 12px; overflow-y: auto; min-height: 60px; }
.kc {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 15px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-soft), var(--shadow-card);
  cursor: grab; user-select: none; touch-action: manipulation; text-align: right; width: 100%; color: inherit;
  transition: box-shadow .15s, transform .15s;
}
.kc::before { content: ""; position: absolute; inset-block: 12px; inset-inline-start: 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--sc); opacity: .8; }
.kc:hover { box-shadow: inset 0 0 0 1px var(--accent-line), var(--shadow-lift); }
.kc.is-late::before { background: var(--red); opacity: 1; }
.kc__top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kc__top b { flex: 1; min-width: 0; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc__sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc__foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kc__foot .av { margin-inline-start: auto; }
.kc__next { font-size: 12.5px; color: var(--ink-soft); display: flex; gap: 6px; align-items: center; }
.kc__next svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.drag-ghost { position: fixed; z-index: 100; pointer-events: none; transform: rotate(-2.5deg); box-shadow: var(--shadow-lift), 0 0 0 2px var(--accent); opacity: .96; }
.kc.is-dragging { opacity: .35; }
.drop-mark { height: 4px; border-radius: 4px; background: var(--sc); box-shadow: 0 0 10px var(--sc); margin: -3px 4px; }
.kc.is-late .kc__next { color: var(--red-ink); }
.col__empty { margin: 4px 0; padding: 18px 10px; border-radius: 13px; border: 1.5px dashed var(--line); color: var(--muted); font-size: 12.5px; text-align: center; }
body.is-dragging { cursor: grabbing; user-select: none; }
body.is-dragging * { cursor: grabbing !important; }

/* The drawer: one company, or one request. */
.drawer-scrim { position: fixed; inset: 0; z-index: 60; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer-scrim.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 61; width: min(640px, 100vw);
  display: flex; flex-direction: column; background: var(--paper);
  box-shadow: 0 0 60px rgba(0, 0, 0, .25);
  transform: translateX(-104%); visibility: hidden; transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s .28s;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
body.is-locked { overflow: hidden; }

/* The questionnaire filled in on a company's behalf: a full-screen sheet. */
.sheet { position: fixed; inset: 0; z-index: 65; background: var(--paper); overflow-y: auto; overscroll-behavior: contain; animation: fade .15s; }
.sheet__h { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 12px 24px; min-height: 62px;
  background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.sheet__h b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet__h small { display: block; color: var(--muted); font-size: 12.5px; }
.sheet__b { max-width: 1440px; margin: 0 auto; padding: 8px 24px 40px; }
@media (max-width: 640px) { .sheet__b { padding: 8px 12px 32px; } }
.drawer__h { display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.drawer__h h2 { font-size: 19px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer__h small { display: block; color: var(--muted); font-size: 12.5px; }
.drawer__tabs { display: flex; gap: 4px; padding: 10px 22px 0; background: var(--surface); border-bottom: 1px solid var(--line-soft); overflow-x: auto; }
.dtab { padding: 8px 14px 10px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2.5px solid transparent; white-space: nowrap; }
.dtab[aria-selected="true"] { color: var(--accent-ink); border-color: var(--accent); }
.drawer__b { flex: 1; overflow-y: auto; padding: 20px 22px 32px; }
.stage-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.stage-pick button { --sc: var(--accent); padding: 4px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-soft); }
.stage-pick button:hover { box-shadow: inset 0 0 0 1px var(--sc); }
.stage-pick button[aria-pressed="true"] { background: var(--sc); color: #fff; box-shadow: 0 6px 14px -8px var(--sc); }
/* The Persian date picker (App.datePicker). */
.dp { position: relative; display: inline-flex; }
.dp__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 12px 6px 14px; border-radius: 10px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: 14px; transition: box-shadow .15s; }
.dp__btn svg { width: 16px; height: 16px; flex: none; color: var(--accent-ink); }
.dp__btn.is-empty { color: var(--muted); }
.dp__btn:hover, .dp__btn[aria-expanded="true"] { box-shadow: inset 0 0 0 1px var(--accent-line), 0 0 0 3px var(--accent-wash); }
.dp__pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; width: 292px; padding: 12px;
  background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--line-soft); animation: fade .12s; }
.dp__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dp__head b { font-size: 14.5px; }
.dp__nav { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--ink-soft); }
.dp__nav:hover { background: var(--surface-2); color: var(--accent-ink); }
.dp__nav svg { width: 18px; height: 18px; }
.dp__nav--prev svg { transform: scaleX(-1); }
.dp__week, .dp__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dp__week span { padding: 4px 0; font-size: 11.5px; color: var(--muted); }
.dp__week span:last-child, .dp__grid > :nth-child(7n) { color: var(--red-ink); }
.dp__grid button { height: 34px; border-radius: 9px; font-size: 13.5px; color: var(--ink); }
.dp__grid button.is-past { color: var(--muted); }
.dp__grid button:hover { background: var(--accent-wash); color: var(--accent-ink); }
.dp__grid button.is-today { box-shadow: inset 0 0 0 1.5px var(--accent); font-weight: 700; }
.dp__grid button.is-sel { background: var(--accent-grad); color: var(--on-accent); font-weight: 700; box-shadow: 0 4px 12px var(--glow); }
.dp__foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.dp__foot button { padding: 4px 10px; border-radius: 8px; font-size: 13px; color: var(--accent-ink); }
.dp__foot button + button { color: var(--muted); }
.dp__foot button:hover { background: var(--accent-wash); }
.dp-when { color: var(--muted); }
.dp-when.is-late { color: var(--red-ink); font-weight: 600; }
/* In a modal the calendar sits in the flow, under its button: the modal grows and
   scrolls, where an absolute one would hang over the form and be cut at the edge. */
.modal .dp { display: flex; flex-wrap: wrap; }
.modal .dp__pop { position: static; flex: 0 1 320px; margin-top: 8px; scroll-margin-bottom: 20px; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.quick button { padding: 2px 10px; border-radius: 99px; font-size: 12.5px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-soft); color: var(--ink-soft); }
.quick button:hover { color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-line); }
.composer { padding: 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-soft), var(--shadow-card); }
.composer textarea { min-height: 150px; }
.composer__foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.counter { font-size: 12px; color: var(--muted); margin-inline-start: auto; }
.counter.is-over { color: var(--red-ink); font-weight: 700; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-soft); flex-wrap: wrap; }
.seg button { padding: 5px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--accent-ink); box-shadow: var(--shadow-card), inset 0 0 0 1px var(--accent-line); }
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.sect { margin-top: 22px; }
.sect > h4 { font-size: 14px; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.sect > h4::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }

/* The requests inbox. */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 12px; font-weight: 600; font-size: 14px; color: var(--muted); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-soft); }
.tabs button[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent-wash); box-shadow: inset 0 0 0 1.5px var(--accent); }
.tabs button span { font-size: 12px; padding: 0 7px; border-radius: 99px; background: var(--surface-2); line-height: 20px; }
.rq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.rq { display: flex; flex-direction: column; gap: 12px; padding: 18px; text-align: right; color: inherit; width: 100%; transition: transform .15s, box-shadow .15s; }
.rq:hover { color: inherit; transform: translateY(-2px); }
.rq__top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.rq__top div { min-width: 0; flex: 1; }
.rq__top b { display: block; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rq__top small { color: var(--muted); font-size: 12.5px; }
.rq__meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--muted); }
.rq__p { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); }
.rq__p div { display: flex; justify-content: space-between; }
.detail { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.detail__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.detail__head h2 { font-size: 22px; }
.detail__head .hstack { margin-inline-start: auto; }
.ans-sec + .ans-sec { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.ans-sec h4 { font-size: 14.5px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.ans-sec h4 i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-grad); }
.stage-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.stage-line span { padding: 2px 10px; border-radius: 9px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-soft); font-size: 13px; }
.stage-line em { font-style: normal; color: var(--muted); font-size: 11px; }
.swatches { display: flex; gap: 6px; }
.swatches i { width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.linkbox { display: flex; gap: 8px; align-items: center; padding: 8px 8px 8px 12px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-soft); font-size: 13px; direction: ltr; }
.linkbox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 14px; }
.switch input { position: absolute; opacity: 0; }
.switch i { width: 44px; height: 26px; border-radius: 99px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.switch i::after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: right .2s; }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { right: 21px; }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.table th { text-align: right; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

/* Modal (a small one: «مجموعهٔ تازه»). */
.modal-scrim { position: fixed; inset: 0; z-index: 70; background: var(--scrim); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px; animation: rise .22s cubic-bezier(.2, .8, .2, 1); }
.modal h3 { font-size: 19px; margin-bottom: 16px; }
.modal__foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(14px) scale(.98); opacity: 0; } }

/* Toasts. */
.toasts { position: fixed; z-index: 90; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); }
.toast { padding: 10px 18px; border-radius: 14px; background: var(--chrome); color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45); animation: rise .25s cubic-bezier(.2, .8, .2, 1); max-width: 520px; text-align: center; }
.toast--err { background: var(--red); }
.toast--ok { background: linear-gradient(135deg, var(--green), var(--teal)); }

/* -------------------------------------------------------------- landing -- */

.landing { --lp: #7c3aed; --ls: #db2777; }
.lp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.lp-pair { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lp-pair .x { color: var(--muted); font-size: 18px; }
.lp-hero { position: relative; padding: 24px 0 56px; }
.lp-hero::before { content: ""; position: absolute; inset: -120px 0 auto; height: 620px; z-index: -1; pointer-events: none;
  background: radial-gradient(700px 400px at 85% 10%, color-mix(in srgb, var(--lp) 30%, transparent), transparent 70%),
    radial-gradient(600px 400px at 10% 30%, color-mix(in srgb, var(--ls) 22%, transparent), transparent 70%); }
.lp-hero__in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 44px; align-items: center; }
.lp-hero h1 { font-size: clamp(28px, 3.8vw, 44px); line-height: 1.35; margin: 16px 0; }
.lp-hero h1 em { background: linear-gradient(135deg, var(--lp), var(--ls)); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: normal; }
.lp-preview { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 12px; background: var(--amber-wash); color: var(--amber-ink); font-size: 13px; font-weight: 600; margin-top: 12px; }
.lp-note { position: relative; padding: 22px 24px; margin-top: 22px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-soft), var(--shadow-card); }
.lp-note p { white-space: pre-wrap; color: var(--ink-soft); line-height: 2; }
.lp-note footer { margin-top: 12px; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.lp-btn { background: linear-gradient(135deg, var(--lp), var(--ls)) !important; color: #fff !important; box-shadow: 0 12px 26px -12px var(--lp) !important; }
.lp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lp-card { padding: 22px; }
.lp-card h3 { font-size: 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.lp-card h3 i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--lp) 14%, transparent); color: var(--lp); font-style: normal; font-size: 15px; }
.lp-card p, .lp-card li { color: var(--ink-soft); font-size: 14.5px; line-height: 1.95; }
.lp-card ul { margin: 0; padding-inline-start: 18px; }
.lp-proc { display: flex; flex-direction: column; gap: 14px; }
.lp-proc__i b { display: block; margin-bottom: 8px; }
.lp-flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lp-flow span { padding: 6px 14px; border-radius: 12px; font-weight: 600; font-size: 14px; background: color-mix(in srgb, var(--lp) 10%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lp) 25%, transparent); }
.lp-flow em { font-style: normal; color: var(--muted); }
.lp-cta { margin-top: 56px; padding: 36px 40px; border-radius: 28px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(135deg, color-mix(in srgb, var(--lp) 85%, black), var(--lp) 45%, var(--ls)); box-shadow: 0 30px 60px -30px var(--lp); }
.lp-cta h2 { font-size: 24px; }
.lp-cta p { opacity: .88; margin-top: 6px; }
.lp-card h3 i svg { width: 17px; height: 17px; }
.lp-card ol { margin: 0; padding-inline-start: 20px; }
.lp-card ol li::marker { color: var(--lp); font-weight: 700; }
.lp-card .lp-flow { margin-top: 2px; }
.lp-card--wide { grid-column: span 2; }
.lp-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 14.5px; }
.lp-kv dt { color: var(--muted); }
.lp-kv dd { margin: 0; color: var(--ink-soft); font-weight: 600; }
.lp-mark { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 14px; }
.lp-mark b { color: var(--ink); }
.lp-foot { padding: 28px 0 36px; color: var(--muted); font-size: 13px; text-align: center; }
.lp-foot a { color: var(--ink-soft); font-weight: 600; }
.landing .track__step.is-now .track__dot { background: linear-gradient(135deg, var(--lp), var(--ls)); box-shadow: 0 0 0 6px color-mix(in srgb, var(--lp) 18%, transparent); }

/* ------------------------------------------------------------ products -- */

/* The products (`partners.constants.PRODUCTS`): on the home page and in the
   questionnaire each is a button that is in the pack or not. `--cc` is the
   product's own colour; pressed, the lit box simply turns its light up. */
.pk { position: relative; }
.pk__quick { justify-content: center; margin-bottom: 30px; }
.pk__ql { flex: none; align-self: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.pk__group + .pk__group { margin-top: 30px; }
.pk__gt { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 15px; font-weight: 700; color: var(--ink-soft); }
.pk__gt::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.pk__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 14px; }

.prod {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-content: start;
  padding: 16px 16px 14px; text-align: right; color: var(--ink);
  transition: --spot .35s, transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s;
}
.prod:hover { transform: translateY(-3px); }
.prod:focus-visible { outline: 2px solid var(--cc); outline-offset: 3px; border-radius: 20px; }
.prod__ic {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  color: var(--cc); background: color-mix(in srgb, var(--cc) 13%, transparent);
  transition: background-color .25s, color .25s, transform .4s cubic-bezier(.5, 1.5, .45, 1);
}
.prod__ic svg { width: 22px; height: 22px; }
.prod__b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prod__b b { padding-inline-end: 28px; font-size: 15px; font-weight: 700; line-height: 1.65; }
.prod__t { font-size: 13px; line-height: 1.85; color: var(--ink-soft); }
.prod__caps { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.prod__caps i { font-style: normal; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; line-height: 22px; color: var(--ink-soft); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-soft); }
.prod__ck {
  position: absolute; top: 12px; inset-inline-end: 12px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  color: transparent; box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background-color .2s, box-shadow .2s, transform .4s cubic-bezier(.5, 1.5, .45, 1);
}
.prod__ck svg { width: 13px; height: 13px; stroke-width: 3; }
.prod[aria-pressed="true"] {
  --lit-wash: 24%;
  border-color: var(--cc);
  box-shadow: var(--lit-in), 0 18px 36px -18px color-mix(in srgb, var(--cc) 62%, transparent);
}
.prod[aria-pressed="true"] .prod__ic { background: var(--cc); color: var(--on-accent); transform: scale(1.06) rotate(-5deg); }
.prod[aria-pressed="true"] .prod__ck { background: var(--cc); color: var(--on-accent); box-shadow: none; transform: scale(1.12); }

/* The pack so far: it rides the bottom of the screen while the products are in view. */
.pk__tray {
  position: sticky; bottom: 16px; z-index: 20; display: flex; align-items: center; gap: 14px;
  max-width: 780px; margin: 30px auto 0; padding: 10px; padding-inline-start: 20px; border-radius: 20px;
  background: var(--glass); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
  box-shadow: inset 0 0 0 1px var(--accent-line), var(--shadow-lift);
  animation: rise .3s cubic-bezier(.2, .8, .2, 1);
}
.pk__count { flex: none; font-weight: 700; white-space: nowrap; }
.pk__tray .pk__names { flex: 1; min-width: 0; flex-wrap: nowrap; overflow: hidden; -webkit-mask-image: linear-gradient(to left, #000 82%, transparent); mask-image: linear-gradient(to left, #000 82%, transparent); }
.pk__clear { flex: none; padding: 6px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pk__clear:hover { color: var(--ink); background: var(--surface-2); }
.pk__tray .btn { flex: none; }

/* What every product stands on. */
.core { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 3fr); gap: 24px; align-items: center; margin-top: 40px; padding: 24px 26px; }
.core__h { display: flex; align-items: center; gap: 14px; }
.core__h .prod__ic { flex: none; }
.core__h div { display: flex; flex-direction: column; line-height: 1.6; }
.core__h b { font-size: 17px; }
.core__h small { font-size: 12.5px; color: var(--muted); }
.core__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.core__list li { display: flex; flex-direction: column; gap: 2px; padding-inline-start: 14px; border-inline-start: 2px solid color-mix(in srgb, var(--cc) 42%, transparent); }
.core__list b { font-size: 14px; }
.core__list span { font-size: 12.5px; line-height: 1.85; color: var(--ink-soft); }

/* A product as a tag: in the panel, on «درخواست من», in the tray. */
.ptags { display: flex; flex-wrap: wrap; gap: 6px; }
.ptag {
  --cc: var(--accent);
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 24px; white-space: nowrap;
  color: color-mix(in srgb, var(--cc) 62%, var(--ink)); background: color-mix(in srgb, var(--cc) 11%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc) 26%, transparent);
}
.ptag::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--cc); }
.ptag--more { --cc: var(--slate); }
.ptag--more::before { display: none; }

/* In the questionnaire the same cards, smaller: the demo sits beside them. */
.wz .pk__quick { justify-content: flex-start; margin-bottom: 0; }
.wz .pk__grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.prod--sm { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 12px; border-radius: 16px; }
.prod--sm:focus-visible { border-radius: 16px; }
.prod--sm .prod__ic { width: 38px; height: 38px; border-radius: 12px; }
.prod--sm .prod__ic svg { width: 19px; height: 19px; }
.prod--sm .prod__b b { font-size: 14px; }
.prod--sm .prod__t { font-size: 12.5px; }
.prod--sm .prod__ck { top: 10px; inset-inline-end: 10px; width: 20px; height: 20px; }

/* A request's file (the panel): the list of them, and the versions of one. */
.fcell { display: flex; flex-direction: column; min-width: 0; line-height: 1.65; }
.fcell b { font-weight: 600; }
.fcell small { font-size: 12.5px; color: var(--muted); }
a.fcell { color: inherit; }
a.fcell:hover b { color: var(--accent-ink); }
.files td { vertical-align: middle; }
.files__co { min-width: 220px; }
.files__who { white-space: nowrap; }
.files .ptags { max-width: 300px; }
.files__acts { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }
.ver { display: inline-grid; place-items: center; min-width: 30px; padding: 0 8px; border-radius: 9px; font-size: 12.5px; font-weight: 700; line-height: 24px; color: var(--accent-ink); background: var(--accent-wash); }
.frows { display: flex; flex-direction: column; gap: 8px; }
.frow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-soft); }
.frow__b { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.65; }
.frow__b b { font-size: 14px; font-weight: 600; }
.frow__b small { font-size: 12.5px; color: var(--muted); }
.stale { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; padding: 10px 12px; border-radius: 14px; font-size: 13.5px; color: var(--amber-ink); background: var(--amber-wash); box-shadow: inset 0 0 0 1px var(--amber-line); }
.stale span { flex: 1; min-width: 180px; }

@media (max-width: 1080px) {
  .core { grid-template-columns: minmax(0, 1fr); }
  .core__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero::before, .hero::after { width: 260px; height: 260px; filter: blur(70px); }
  .pk__quick { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px; }
  .pk__quick::-webkit-scrollbar { display: none; }
  .pk__quick .chip { flex: none; }
  .pk__grid, .wz .pk__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .prod { padding: 12px; }
  .prod__caps { display: none; }
  .pk__tray { bottom: 10px; gap: 10px; padding-inline-start: 16px; }
  .pk__tray .pk__names, .pk__cl { display: none; }
  .pk__count { flex: 1; }
  .core { padding: 20px 18px; }
  .files .ptags { max-width: none; }
  .files, .files tbody { display: block; }
  .files thead { display: none; }
  .files tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
  .files tr:last-child { border-bottom: 0; }
  .files td { flex: 1 1 100%; min-width: 0; padding: 0; border: 0; }
  .files td.files__ver, .files td.files__when { flex: 0 1 auto; }
  .files td.files__when { margin-inline-start: auto; font-size: 13px; color: var(--muted); }
  .files td.is-none { display: none; }
  .files__who .fcell { flex-direction: row; align-items: baseline; gap: 8px; }
  .files__acts { justify-content: flex-start; }
  .frow { flex-wrap: wrap; }
  .frow .files__acts { flex: 1 1 100%; padding-inline-start: 40px; }
}

/* ----------------------------------------------------------- responsive -- */

@media (max-width: 1080px) {
  .hero__in, .lp-hero__in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .steps4, .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wz { grid-template-columns: minmax(0, 1fr); }
  .wz__side { display: none; }
  .wz__side.is-peek { display: block; position: fixed; inset: 0; z-index: 80; padding: 16px; background: var(--scrim); overflow-y: auto; }
  .wz__side.is-peek .wz__side-in { max-width: 520px; margin: 40px auto; background: var(--paper); border-radius: 22px; padding: 16px; }
  .wz__peek { display: inline-flex; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols2, .detail, .me-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-card--wide { grid-column: auto; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset-block: 0; inset-inline-start: 0; width: 270px; transform: translateX(100%); transition: transform .25s; background: var(--surface); }
  .shell.is-menu .side { transform: none; }
  .shell.is-menu .side-scrim { display: block; position: fixed; inset: 0; z-index: 34; background: var(--scrim); }
  .ptop .menu-btn { display: inline-flex; }
  .ptop, .view { padding-inline: 16px; }
  .top__nav { display: none; }
  .login { grid-template-columns: minmax(0, 1fr); }
  .login__side { min-height: 0; padding: 28px; }
  .grid3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 32px 0 48px; }
  .band { padding: 52px 0; }
  .steps4, .feat-grid { grid-template-columns: minmax(0, 1fr); }
  .row, .row--3, .review { grid-template-columns: minmax(0, 1fr); }
  .track { grid-auto-flow: row; grid-auto-columns: auto; gap: 14px; }
  .track__step { flex-direction: row; text-align: right; gap: 14px; }
  .track__step::before { top: 40px; inset-inline-start: 19px; width: 3px; height: calc(100% - 26px); }
  .cta-band__in, .lp-cta { padding: 28px 22px; }
  .login__form { padding: 28px 20px; }
  .code-boxes { gap: 7px; }
  .code-boxes input { width: 44px; height: 54px; font-size: 22px; }
  .kpi b { font-size: 24px; }
  .funnel__row { grid-template-columns: 118px minmax(0, 1fr) 28px; font-size: 12.5px; }
  .funnel__lbl { white-space: normal; line-height: 1.35; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .board { grid-auto-columns: 82vw; }
  .wm small { display: none; }
  .top__in { gap: 8px; }
  .top__end { gap: 8px; }
  .top--site .brand { gap: 9px; }
  .top--site .wm b { font-size: 15.5px; }
  .drawer__h, .drawer__b { padding-inline: 16px; }
  .drawer__tabs { padding-inline: 16px; }
  .hero__ticks { flex-direction: column; }
  .hero__tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px 4px; }
  .hero__tabs::-webkit-scrollbar { display: none; }
}
@media (max-width: 380px) {
  .top__in, .top__end { gap: 6px; }
  .top--site .mark { width: 36px; height: 36px; border-radius: 10px; }
  .top--site .wm b { font-size: 14.5px; }
  .top--site .btn--sm { padding: 0 10px; font-size: 13px; }
}
@media (max-width: 340px) {
  .top--site .wrap { padding: 0 12px; }
  .top--site .brand { gap: 7px; }
  .top--site .tgl { zoom: .86; }
}
/* -- «ابزارها و اتصال‌ها» ---------------------------------------------------
   `.tl` is a row of the questionnaire step, `.cn` a tile of the board (on
   «درخواست من» and in the panel). Each carries its channel's colour in --cc. */
.tl-list { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.tl {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 16px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-soft);
  transition: background .25s, box-shadow .25s;
}
.tl.is-on {
  background: color-mix(in srgb, var(--cc) 6%, var(--surface));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--cc) 42%, transparent), 0 10px 26px -18px var(--cc);
}
.tl__ic, .cn__ic {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px;
  color: var(--cc); background: color-mix(in srgb, var(--cc) 13%, transparent);
  transition: background .25s, color .25s, transform .25s;
}
.tl__ic svg, .cn__ic svg { width: 22px; height: 22px; }
.tl.is-on .tl__ic, .cn.is-live .cn__ic { background: var(--cc); color: var(--on-accent); }
.tl.is-on .tl__ic { transform: rotate(-6deg) scale(1.04); }
.tl__main { flex: 1; min-width: 0; }
.tl__top { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; min-height: 44px; }
.tl__top > b { font-size: 15px; }
.tl__seg button { padding-inline: 9px; }
.tl__seg button[aria-pressed="true"] { color: color-mix(in srgb, var(--cc) 70%, var(--ink)); box-shadow: var(--shadow-card), inset 0 0 0 1px color-mix(in srgb, var(--cc) 40%, transparent); }
.tl__more { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.tl__more:not(:empty) { margin-top: 14px; animation: rise .3s both; }
.tl__key { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tl__key input { flex: 1; min-width: 180px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; }
.tl__held, .cn__held {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-radius: 12px;
  font-size: 13px; font-weight: 600; color: var(--green-ink); background: var(--green-wash);
  box-shadow: inset 0 0 0 1px var(--green-line);
}
.tl__held svg, .cn__held svg { width: 16px; height: 16px; flex: none; }
.tl__held code, .cn__held code { font-size: 12.5px; opacity: .85; }
.tl__held small, .cn__held small { font-weight: 500; opacity: .8; }
.tl__held .spacer, .cn__held .spacer { flex: 1; }
.tl__ok { display: inline-flex; align-items: center; gap: 6px; }
.cn__held--need { color: var(--amber-ink); background: var(--amber-wash); box-shadow: inset 0 0 0 1px var(--amber-line); }
.tl-other { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 8px; align-items: center; }
.tl-other + .tl-other { margin-top: 8px; }
.pk__seg {
  display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap;
  padding: 12px 14px; margin-bottom: 18px; border-radius: 14px;
  font-size: 13.5px; font-weight: 600; color: var(--accent-ink);
  background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent-line);
}
.pk__seg > span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.pk__seg svg { width: 18px; height: 18px; flex: none; }

.cn-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }
.cn-grid--staff { grid-template-columns: minmax(0, 1fr); }
.cn { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); align-content: start; padding: 16px; border-radius: 16px; }
.cn__top { display: flex; align-items: center; gap: 12px; }
.cn__name { flex: 1; min-width: 0; display: grid; }
.cn__name b { font-size: 15px; }
.cn__name small { font-size: 12.5px; color: var(--muted); }
.cn__id { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-soft); overflow-wrap: anywhere; }
.cn__note { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 13px; color: var(--ink-soft); }
.cn__note svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--cc); }
.cn__secret { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.cn__status select { min-height: 34px; padding: 4px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; width: auto; }
.cn__status--amber select { color: var(--amber-ink); background-color: var(--amber-wash); }
.cn__status--blue select { color: var(--blue-ink); background-color: var(--blue-wash); }
.cn__status--green select { color: var(--green-ink); background-color: var(--green-wash); }
.cn__status--red select { color: var(--red-ink); background-color: var(--red-wash); }
.cn__notef > span { font-size: 12.5px; }
@media (max-width: 600px) {
  /* The icon steps out of the flow so the three choices get the whole row. */
  .tl { display: block; position: relative; padding: 12px; }
  .tl__ic { position: absolute; top: 12px; inset-inline-start: 12px; width: 38px; height: 38px; border-radius: 12px; }
  .tl__top { min-height: 0; }
  .tl__top > b { display: flex; align-items: center; width: 100%; min-height: 38px; padding-inline-start: 50px; }
  .tl__seg { width: 100%; }
  .tl__seg button { flex: 1; padding-inline: 4px; font-size: 12.5px; white-space: nowrap; }
  .tl-other { grid-template-columns: minmax(0, 1fr) auto; }
  .tl-other input:nth-of-type(2) { grid-column: 1 / -1; grid-row: 2; }
}

/* ------------------------------------------------ the follow-up desk -- */

/* A box's title with something to press beside it, and the small copy button
   every section of an answers list carries. */
.pbox-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.pbox-h h2 { margin-bottom: 0; }
.ans-copy { margin-inline-start: auto; opacity: .5; transition: opacity .15s; }
.ans-sec h4:hover .ans-copy, .ans-copy:focus-visible { opacity: 1; }

/* A card's kind and its date. The colour comes from `--cc` on the element or
   on the card that holds it. */
.ktag, .due { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; line-height: 20px; white-space: nowrap; }
.ktag svg, .due svg { width: 13px; height: 13px; }
.ktag { color: color-mix(in srgb, var(--cc) 78%, var(--ink)); background: color-mix(in srgb, var(--cc) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc) 26%, transparent); }
.due { font-weight: 600; color: var(--muted); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-soft); }
.due.is-today { color: var(--amber-ink); background: var(--amber-wash); box-shadow: inset 0 0 0 1px var(--amber-line); }
.due.is-late { color: var(--red-ink); background: var(--red-wash); box-shadow: inset 0 0 0 1px var(--red-line); }
.due.is-won { color: var(--green-ink); background: var(--green-wash); box-shadow: inset 0 0 0 1px var(--green-line); }
.due.is-closed { color: var(--slate-ink); background: var(--slate-wash); box-shadow: inset 0 0 0 1px var(--slate-line); }

/* The four numbers at the top: each is also a way to filter. */
.dk-kpis { margin-bottom: 18px; }
.dk-kpis .kpi { width: 100%; text-align: right; cursor: pointer; transition: transform .15s, box-shadow .2s; }
.dk-kpis .kpi:not(.kpi--hero) { color: inherit; }
.dk-kpis .kpi:nth-child(2) { --cc: var(--orange); }
.dk-kpis .kpi:nth-child(3) { --cc: var(--blue); }
.dk-kpis .kpi:nth-child(4) { --cc: var(--green); }
.dk-kpis .kpi:hover { transform: translateY(-2px); }
.dk-kpis .kpi[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent), var(--lit-in), var(--lit-sh); }

.dk-group { margin-bottom: 26px; }
.dk-gh { display: flex; align-items: center; gap: 9px; font-size: 15px; margin-bottom: 12px; }
.dk-gh i { width: 10px; height: 10px; border-radius: 50%; background: var(--cc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cc) 20%, transparent); }
.dk-gh span { font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 0 9px; border-radius: 99px; background: var(--surface-2); line-height: 22px; }
.dk-hint { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.dk-side .sect:first-child { margin-top: 0; }

/* One card as a tile. */
.fc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.fc { display: flex; flex-direction: column; gap: 9px; min-width: 0; padding: 14px 16px; cursor: pointer; transition: transform .15s; }
.fc:hover { transform: translateY(-2px); }
.fc.is-done { opacity: .78; }
.fc__top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fc__sp { flex: 1; }
.fc__free { font-size: 12px; color: var(--muted); padding: 1px 9px; border-radius: 99px; border: 1px dashed var(--line); }
.fc__t { display: block; width: 100%; text-align: right; font-weight: 700; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.fc__t:hover { color: var(--accent-ink); }
.fc__who { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 13px; color: var(--ink-soft); }
.fc__dot { color: var(--muted); }
.fc__b { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fc__foot { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; }
.fc__m { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc__m svg { width: 13px; height: 13px; flex: none; }

/* The card's own drawer. */
.fc-ic { flex: none; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; color: color-mix(in srgb, var(--cc) 82%, var(--ink)); background: color-mix(in srgb, var(--cc) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc) 26%, transparent); }
.fc-ic svg { width: 20px; height: 20px; }
.fc-ic--sm { width: 32px; height: 32px; border-radius: 11px; }
.fc-ic--sm svg { width: 16px; height: 16px; }
.fc-closed { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-bottom: 14px; border-radius: 14px; color: var(--slate-ink); background: var(--slate-wash); box-shadow: inset 0 0 0 1px var(--slate-line); }
.fc-closed.is-won { color: var(--green-ink); background: var(--green-wash); box-shadow: inset 0 0 0 1px var(--green-line); }
.fc-closed > svg { width: 20px; height: 20px; margin-top: 3px; }
.fc-closed b { display: block; }
.fc-closed p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; }
.fc-closed small { font-size: 12px; opacity: .85; }
.fc-contact { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fc-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fc-foot .fc__sp { flex: 1; }
.oc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.oc-grid button { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; text-align: right; font-weight: 600; font-size: 14px; color: var(--ink-soft); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-soft); }
.oc-grid button svg { width: 16px; height: 16px; }
.oc-grid button[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent-wash); box-shadow: inset 0 0 0 1.5px var(--accent); }
@media (max-width: 420px) { .oc-grid { grid-template-columns: minmax(0, 1fr); } }

/* Imported lists. */
.bl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.bl { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px 18px; color: inherit; transition: transform .15s; }
.bl:hover { color: inherit; transform: translateY(-2px); }
.bl__h { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.bl__h b { font-size: 15.5px; overflow-wrap: anywhere; }
.bl small { color: var(--muted); font-size: 12.5px; }
.bl__n { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.bl__n b { color: var(--ink); margin-inline-end: 4px; }
.bl-send { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bl-prev:empty { display: none; }
.bl-prev__box { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; font-size: 13px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-soft); }
.bl-prev__box.is-bad { color: var(--red-ink); background: var(--red-wash); box-shadow: inset 0 0 0 1px var(--red-line); }
.bl-prev__box small { color: var(--muted); overflow-wrap: anywhere; }
.bl-skip { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.bl-skip li { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.bl-skip small { color: var(--red-ink); flex: none; }

/* «متن‌های آماده». */
.sn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.sn { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px; }
.sn__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sn__b { flex: 1; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; line-height: 1.9; color: var(--ink-soft); }
.sn--add { min-height: 150px; align-items: center; justify-content: center; flex-direction: row; gap: 8px; border-radius: 20px; border: 1.5px dashed var(--line); font-weight: 600; color: var(--muted); transition: border-color .15s, background .15s, color .15s; }
.sn--add:hover { color: var(--accent-ink); border-color: var(--accent); background: var(--accent-wash); }
.sn--add svg { width: 18px; height: 18px; }

/* An offer, on the staff side and on /me. */
.of { padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--cc) 8%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc) 24%, transparent); }
.of__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.of__h b { overflow-wrap: anywhere; }
.of__b { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; color: var(--ink-soft); }
.of__code { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 2px 4px 2px 12px; border-radius: 10px; font-weight: 700; letter-spacing: .04em; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

.stars { display: inline-flex; gap: 2px; }
.star svg { width: 18px; height: 18px; color: var(--line); }
.star.is-on svg { color: var(--amber); fill: currentColor; }
.rate { display: flex; flex-direction: column; gap: 12px; }
.rate__stars { display: flex; gap: 6px; }
.rate__stars button { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--line); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-soft); transition: transform .12s, color .15s; }
.rate__stars button svg { width: 26px; height: 26px; }
.rate__stars button:hover { transform: scale(1.08); }
.rate__stars button.is-on { color: var(--amber); background: var(--amber-wash); box-shadow: inset 0 0 0 1.5px var(--amber-line); }
.rate__stars button.is-on svg { fill: currentColor; }

/* What a person did on the site. */
.ev-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ev { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.ev__ic { flex: none; width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; color: color-mix(in srgb, var(--cc) 82%, var(--ink)); background: color-mix(in srgb, var(--cc) 14%, transparent); }
.ev__ic svg { width: 15px; height: 15px; }
.ev__b { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.6; font-size: 13.5px; }
.ev__b small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.ev__t { flex: none; font-size: 12px; color: var(--muted); }

/* Management dashboard */
.dh { display: flex; flex-direction: column; gap: 16px; }
.dh-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dh-asof { font-size: 12px; }
.dh-tabs { margin-bottom: 0; }
.dh-tabs button { --cc: var(--violet); }
.dh-tabs button[aria-pressed="true"] { color: color-mix(in srgb, var(--cc) 78%, var(--ink)); background: color-mix(in srgb, var(--cc) 12%, var(--surface)); box-shadow: inset 0 0 0 1.5px var(--cc); }
.dh-tabs button svg { width: 17px; height: 17px; }
.dh-tab { animation: drise .35s both; }
.dh-tab > .cols2:first-child, .dh-tab > .stack:first-child { margin-top: 0; }
.dh-kpis { margin-bottom: 4px; }
.dh-kpis .kpi { --cc: var(--violet); position: relative; overflow: hidden; }
.dh-kpis .kpi:not(.kpi--hero)::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--cc); opacity: .75; }
.dh-kpis .kpi b { font-size: 28px; }
.dh-cols { margin-top: 16px; }
.dh .empty { text-align: center; padding: 30px 18px; color: var(--muted); }
.dh .empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.dh .empty p { font-size: 13.5px; line-height: 1.9; }

/* a box of the page that folds */
.dbox { --cc: var(--violet); padding: 20px 22px; animation: drise .4s both; }
.dbox__h { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.dbox__ic { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: color-mix(in srgb, var(--cc) 82%, var(--ink)); background: color-mix(in srgb, var(--cc) 14%, transparent); }
.dbox__ic svg { width: 17px; height: 17px; }
.dbox__t svg { transition: transform .2s; transform: rotate(180deg); }
.dbox.is-folded .dbox__t svg { transform: rotate(0); }
.dbox.is-folded .dbox__b { display: none; }
.dbox.is-folded .pbox-h { margin-bottom: 0; }

.gr { display: inline-flex; align-items: center; gap: 3px; padding: 0 8px; border-radius: 99px; font-size: 12.5px; font-weight: 700; line-height: 21px; background: var(--surface-2); color: var(--muted); }
.gr.is-up { background: var(--green-wash); color: var(--green-ink); }
.gr.is-down { background: var(--red-wash); color: var(--red-ink); }
.kpi--hero .gr { background: rgba(255, 255, 255, .2); color: #fff; }

/* my own numbers, and a member's */
.dh-me__in { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 14px 18px; --cc: var(--teal); }
.dh-me__who { display: flex; align-items: center; gap: 10px; }
.dh-me__who span { display: flex; flex-direction: column; line-height: 1.5; }
.dh-me__who small { color: var(--muted); font-size: 12px; }
.dh-mini-grid { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; }
.mini { padding: 8px 12px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-soft); display: flex; flex-direction: column; line-height: 1.5; }
.mini b { font-size: 18px; }
.mini small { color: var(--muted); font-size: 12px; }
.mini--red { background: var(--red-wash); box-shadow: inset 0 0 0 1px var(--red-line); }
.mini--red b { color: var(--red-ink); }
.mini--green { background: var(--green-wash); box-shadow: inset 0 0 0 1px var(--green-line); }
.mini--green b { color: var(--green-ink); }

/* a bar with its name and number */
.dh-bars { display: flex; flex-direction: column; gap: 10px; }
.dh-bar-row { display: flex; align-items: center; gap: 12px; --cc: var(--violet); }
.dh-bar-row__who { flex: 0 0 38%; max-width: 220px; min-width: 0; display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.dh-bar-row__who svg { flex: none; width: 16px; height: 16px; color: color-mix(in srgb, var(--cc) 78%, var(--ink)); }
.dh-bar-row__bar { flex: 1; min-width: 0; height: 10px; border-radius: 99px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-soft); overflow: hidden; }
.dh-bar-row__bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--cc) 70%, #fff), var(--cc)); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.dh-bar-row b { flex: none; min-width: 28px; text-align: end; font-size: 14px; }
.dh-pct { flex: none; font-size: 12px; color: var(--muted); min-width: 36px; text-align: end; }

/* the growth funnel */
.dfun { display: flex; flex-direction: column; gap: 9px; }
.dfun__row { display: grid; grid-template-columns: minmax(110px, 32%) minmax(0, 1fr) 44px 46px; align-items: center; gap: 10px; --cc: var(--violet); }
.dfun__lbl { font-size: 13.5px; font-weight: 600; }
.dfun__bar { height: 18px; border-radius: 9px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-soft); overflow: hidden; }
.dfun__bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, color-mix(in srgb, var(--cc) 62%, #fff), var(--cc)); transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.dfun__n { text-align: end; font-size: 14px; }
.dfun__p { font-size: 12px; color: var(--muted); text-align: end; }

/* the customer's rating */
.dh-rate__top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.dh-rate__top > b { font-size: 36px; line-height: 1; color: var(--amber-ink); }
.dh-rate__top > span { display: flex; flex-direction: column; gap: 2px; }
.dh-rate__top small { color: var(--muted); font-size: 12.5px; }
.dh-rate__rows { display: flex; flex-direction: column; gap: 6px; }
.dh-rate-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.dh-rate-row > span:first-child { flex: none; min-width: 30px; color: var(--amber-ink); font-weight: 700; }
.dh-rate-row .dh-bar-row__bar { height: 8px; --cc: var(--amber); }
.dh-rate-row .dh-bar-row__bar i { background: var(--amber); }
.dh-rate-row b { flex: none; min-width: 24px; text-align: end; }

/* the growth chart */
.gcw { display: flex; flex-direction: column; gap: 12px; }
.gc--violet { --gc: var(--violet); }
.gc--blue { --gc: var(--blue); }
.gc--orange { --gc: var(--orange); }
.gc--green { --gc: var(--green); }
.gc--teal { --gc: var(--teal); }
.gc--pink { --gc: var(--pink); }
.gc-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.gc-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-soft); }
.gc-chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--gc); opacity: .35; }
.gc-chip span { font-size: 11.5px; padding: 0 6px; border-radius: 99px; background: var(--surface-2); line-height: 19px; }
.gc-chip[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--gc); }
.gc-chip[aria-pressed="true"] i { opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--gc) 22%, transparent); }
.gc-read { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; min-height: 26px; font-size: 13px; }
.gc-read__d { color: var(--ink); }
.gc-read__i { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); }
.gc-read__i i { width: 8px; height: 8px; border-radius: 50%; background: var(--gc); }
.gc-read__i b { color: var(--ink); }
.gc { position: relative; height: 230px; margin-inline-start: 30px; touch-action: pan-y; }
.gc__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gc__area { fill: var(--gc); opacity: .1; animation: gcfade .7s both; }
.gc__line { fill: none; stroke: var(--gc); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.gc__grid { position: absolute; inset: 0; pointer-events: none; }
.gc__grid span { position: absolute; inset-inline: -30px 0; height: 0; border-top: 1px dashed var(--line-soft); }
.gc__grid i { position: absolute; inset-inline-start: 0; top: -9px; width: 26px; text-align: end; font-style: normal; font-size: 11px; color: var(--muted); line-height: 18px; }
.gc__guide { position: absolute; top: 0; bottom: 0; width: 0; border-inline-start: 1px solid var(--line); pointer-events: none; }
.gc__pt { position: absolute; width: 10px; height: 10px; margin: 0 -5px -5px 0; border-radius: 50%; background: var(--gc); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px color-mix(in srgb, var(--gc) 35%, transparent); pointer-events: none; }
.gc__hit { position: absolute; inset: 0; cursor: crosshair; }
.gc__none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13.5px; pointer-events: none; }
.gc__axis { display: flex; justify-content: space-between; margin-inline-start: 30px; font-size: 11.5px; color: var(--muted); }
@keyframes gcfade { from { opacity: 0; } }

/* a member */
.dh-metrics { margin-bottom: 14px; }
.dh-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.dh-m { --cc: var(--teal); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.dh-m::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--cc); }
.dh-m__h { display: flex; align-items: center; gap: 12px; }
.dh-m__who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.5; }
.dh-m__who b { overflow-wrap: anywhere; }
.dh-m__who small { color: var(--muted); font-size: 12.5px; }
.dh-m .dh-mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dh-m__act { font-size: 13px; color: var(--ink-soft); margin: 0; }
.dh-m__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.dh-m__foot .switch { font-size: 13px; }

/* the live feed */
.dh-chips { margin-bottom: 12px; }
.dh-chips button { --cc: var(--violet); padding: 5px 11px; font-size: 13px; }
.dh-chips button[aria-pressed="true"] { color: color-mix(in srgb, var(--cc) 78%, var(--ink)); background: color-mix(in srgb, var(--cc) 12%, var(--surface)); box-shadow: inset 0 0 0 1.5px var(--cc); }
.dh-chips button svg { width: 15px; height: 15px; }
.dh-ev { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow-y: auto; }
.dh-ev > .ev { --cc: var(--violet); }
.dh-ev > .ev + .ev { border-top: 1px solid var(--line-soft); }
.dh-ev > .ev.is-new { animation: dhflash 2.4s ease-out; }
.dh-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--green-ink); padding: 0 10px; border-radius: 99px; line-height: 24px; background: var(--green-wash); }
.dh-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: dblink 1.6s infinite; }
@keyframes dhflash { from { background: color-mix(in srgb, var(--cc) 22%, transparent); } to { background: transparent; } }
.dh-code { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-soft); font: 12.5px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; }

/* the donut and the segment cards */
.dn { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.dn__ring { position: relative; flex: none; width: 168px; height: 168px; border-radius: 50%; animation: dpop .5s both; }
.dn__hole { position: absolute; inset: 24px; border-radius: 50%; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.3; box-shadow: inset 0 0 0 1px var(--line-soft); }
.dn__hole b { font-size: 26px; }
.dn__hole small { color: var(--muted); font-size: 12px; }
.dn__legend { flex: 1; min-width: 180px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.dn__legend li { --cc: var(--violet); display: flex; align-items: center; gap: 9px; font-size: 13.5px; }
.dn__legend i { flex: none; width: 11px; height: 11px; border-radius: 4px; background: var(--cc); }
.dn__legend span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dn__legend small { color: var(--muted); min-width: 38px; text-align: end; }
.dh-seg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.dh-seg { --cc: var(--violet); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; }
.dh-seg::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--cc); }
.dh-seg__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.dh-seg__s { margin: 0; color: var(--muted); font-size: 13px; }
.dh-seg .tag { max-width: 100%; white-space: normal; line-height: 1.6; padding-block: 1px; text-align: start; }
.dh-q { font-weight: 600; font-size: 13.5px; line-height: 1.8; overflow-wrap: anywhere; }

/* which sections members may open */
.dh-acc { --cc: var(--violet); display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--cc) 7%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc) 20%, var(--line-soft)); }
.dh-acc__ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: color-mix(in srgb, var(--cc) 82%, var(--ink)); background: color-mix(in srgb, var(--cc) 16%, transparent); }
.dh-acc__ic svg { width: 18px; height: 18px; }
.dh-acc__t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.6; }
.dh-acc__t small { color: var(--muted); font-size: 12px; }
.dh-acc.is-locked { opacity: .78; }
.dh-acc__lock { flex: none; color: var(--muted); }
.dh-acc__lock svg { width: 18px; height: 18px; }
.av--none { background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-soft); }
.av--none svg { width: 14px; height: 14px; }

@media (max-width: 640px) {
  .dh-bar-row__who { flex-basis: 34%; }
  .dfun__row { grid-template-columns: minmax(70px, 28%) minmax(0, 1fr) 36px; }
  .dfun__p { display: none; }
  .gc { height: 190px; }
  .dh-m .dh-mini-grid, .dh-me__in .dh-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dh-me__in { flex-direction: column; align-items: stretch; gap: 12px; }
  .dh-me__in .dh-mini-grid { flex: none; width: 100%; }
  .dn { justify-content: center; }
  .dbox { padding: 16px; }
}

/* -------------------------------------------- «پشتیبان هوشمند» -- */

/* The question box in the bottom-left corner of the public pages (assistant.js).
   Physically left, not "inline-start": the page is RTL and this corner is the
   one the product wants. Layers: tray 20 · header 40 · launcher 45 · panel 46 ·
   drawer 61 · modal 70 · toasts 90. */
.as-logo { display: block; width: 100%; height: 100%; }
.as-logo__bubble { fill: currentColor; }
.as-logo__star { fill: var(--as-star, #7c3aed); }

.as-launch {
  position: fixed; left: 18px; bottom: 18px; z-index: 45; width: 58px; height: 58px; padding: 0;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  color: #fff; --as-star: #7c3aed; background: var(--accent-grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 16px 32px -12px var(--glow), 0 4px 10px rgba(40, 20, 90, .2);
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s, opacity .2s;
}
.as-launch:hover { transform: translateY(-2px) scale(1.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 20px 38px -12px var(--glow), 0 5px 12px rgba(40, 20, 90, .24); }
.as-launch:active { transform: scale(.95); }
.as-launch:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 3px; }
.as-launch__ring { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; animation: as-ring 2.8s ease-out infinite; }
.as-launch__ic { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.as-launch__ic svg { width: 30px; height: 30px; }
.as-launch__ic--shut { opacity: 0; transform: rotate(-90deg) scale(.5); }
.as-launch__ic--shut svg { width: 26px; height: 26px; fill: currentColor; }
.as-launch__dot { position: absolute; top: 1px; right: 1px; width: 15px; height: 15px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px var(--paper); }
.as.is-open .as-launch__ic--chat { opacity: 0; transform: rotate(90deg) scale(.5); }
.as.is-open .as-launch__ic--shut { opacity: 1; transform: none; }
.as.is-open .as-launch__ring { animation: none; }

.as-tip {
  position: fixed; left: 86px; bottom: 28px; z-index: 45; display: flex; align-items: stretch; max-width: 270px;
  border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--accent-line), var(--shadow-lift);
  animation: as-in .35s cubic-bezier(.2, .8, .2, 1);
}
.as-tip::before { content: ""; position: absolute; left: -6px; bottom: 18px; width: 12px; height: 12px; transform: rotate(45deg); background: var(--surface); box-shadow: -1px 1px 0 var(--accent-line); }
.as-tip__go { padding: 11px 14px; font-size: 14px; font-weight: 600; line-height: 1.7; color: var(--ink); text-align: start; cursor: pointer; }
.as-tip__x { flex: none; width: 32px; display: grid; place-items: center; color: var(--muted); cursor: pointer; }
.as-tip__x svg { width: 14px; height: 14px; fill: currentColor; }

.as-panel {
  position: fixed; left: 18px; bottom: 88px; z-index: 46; display: flex; flex-direction: column;
  width: min(392px, calc(100vw - 24px)); height: min(600px, calc(100vh - 112px)); height: min(600px, calc(100dvh - 112px));
  overflow: hidden; border-radius: 24px; background: var(--surface); transform-origin: 0 100%;
  box-shadow: inset 0 0 0 1px var(--line), 0 34px 70px -22px rgba(40, 20, 90, .5), var(--shadow-lift);
  animation: as-pop .28s cubic-bezier(.2, .8, .2, 1);
}

.as-head { position: relative; flex: none; display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 10px; overflow: hidden; color: #fff; background: var(--grad-hero); }
.as-head::before { content: ""; position: absolute; top: -60px; right: -30px; width: 190px; height: 190px; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 255, 255, .3), transparent); animation: as-drift 7s ease-in-out infinite alternate; }
.as-head > * { position: relative; }
.as-head__logo { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 15px; background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38); }
.as-head__logo .as-logo { width: 27px; height: 27px; color: #fff; }
.as-head__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.as-head__t strong { font-size: 16px; font-weight: 800; line-height: 1.4; }
.as-head__t span { display: flex; align-items: center; gap: 7px; font-size: 12.5px; line-height: 1.5; opacity: .9; }
.as-live { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .3); animation: as-blink 2.2s ease-in-out infinite; }
.as-head__btn { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: rgba(255, 255, 255, .14); cursor: pointer; transition: background .15s, transform .15s; }
.as-head__btn:hover { background: rgba(255, 255, 255, .28); }
.as-head__btn:active { transform: scale(.92); }
.as-head__btn svg { width: 18px; height: 18px; }

.as-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px; padding: 16px 14px 10px; background: var(--surface-2); }
.as-msg { display: flex; align-items: flex-start; gap: 8px; max-width: 94%; animation: as-in .3s cubic-bezier(.2, .8, .2, 1); }
.as-msg--bot { align-self: flex-start; }
.as-msg--me { align-self: flex-end; }
.as-av { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); --as-star: #fff; background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent-line); }
.as-av .as-logo { width: 18px; height: 18px; }
.as-msg__col { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.as-bubble { padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.9; white-space: pre-line; overflow-wrap: anywhere; }
.as-msg--bot .as-bubble { color: var(--ink); background: var(--surface); border-end-start-radius: 6px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card); }
.as-msg--me .as-bubble { color: var(--on-accent); background: var(--accent-grad); border-end-end-radius: 6px; box-shadow: 0 10px 22px -12px var(--glow); }

.as-typing { display: flex; align-items: center; gap: 5px; padding: 15px 16px; }
.as-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .4; animation: as-dot 1s ease-in-out infinite; }
.as-typing i:nth-child(2) { animation-delay: .15s; }
.as-typing i:nth-child(3) { animation-delay: .3s; }

.as-extra { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.as-extra:empty { display: none; }
.as-votes { display: flex; align-items: center; gap: 4px; }
.as-vote { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); cursor: pointer; transition: background .15s, color .15s, transform .15s, box-shadow .15s; }
.as-vote svg { width: 16px; height: 16px; }
.as-vote--down svg { transform: rotate(180deg); }
.as-vote:hover { color: var(--accent-ink); background: var(--accent-wash); }
.as-vote:active { transform: scale(.88); }
.as-vote.is-on.as-vote--up { color: var(--green-ink); background: var(--green-wash); box-shadow: inset 0 0 0 1px var(--green-line); }
.as-vote.is-on.as-vote--down { color: var(--red-ink); background: var(--red-wash); box-shadow: inset 0 0 0 1px var(--red-line); }
.as-thanks { margin-inline-start: 4px; font-size: 12.5px; color: var(--muted); animation: as-in .25s; }
.as-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.as-chip { padding: 7px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 500; line-height: 1.6; text-align: start; cursor: pointer; color: var(--accent-ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--accent-line); transition: background .15s, transform .15s, box-shadow .15s; animation: as-in .3s cubic-bezier(.2, .8, .2, 1) backwards; }
.as-chip:nth-child(2) { animation-delay: .06s; }
.as-chip:nth-child(3) { animation-delay: .12s; }
.as-chip:nth-child(4) { animation-delay: .18s; }
.as-chip:hover { background: var(--accent-wash); transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--accent); }

.as-foot { flex: none; padding: 10px 12px 12px; background: var(--surface); border-top: 1px solid var(--line-soft); }
.as-compose { display: flex; align-items: flex-end; gap: 8px; padding: 6px; padding-inline-start: 14px; border-radius: 18px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.as-compose:focus-within { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px var(--accent-wash); }
.as-input { flex: 1; min-width: 0; max-height: 120px; padding: 7px 0; border: 0; outline: 0; resize: none; font: inherit; font-size: 16px; line-height: 1.7; color: var(--ink); background: transparent; }
.as-input::placeholder { color: var(--muted); }
.as-count { align-self: center; font-size: 12px; color: var(--muted); }
.as-count:empty { display: none; }
.as-send { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; cursor: pointer; color: var(--on-accent); background: var(--accent-grad); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 20px -10px var(--glow); transition: transform .15s, opacity .2s; }
.as-send:hover { transform: translateY(-1px); }
.as-send:active { transform: scale(.93); }
.as-send[disabled] { opacity: .5; pointer-events: none; }
.as-send svg { width: 19px; height: 19px; transform: scaleX(-1); }
.as-note { margin: 8px 4px 0; font-size: 12px; line-height: 1.8; color: var(--muted); }

@keyframes as-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes as-pop { from { opacity: 0; transform: translateY(18px) scale(.94); } }
@keyframes as-ring { 0% { box-shadow: 0 0 0 0 var(--glow); } 70%, 100% { box-shadow: 0 0 0 18px rgba(147, 51, 234, 0); } }
@keyframes as-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .35; } 40% { transform: translateY(-5px); opacity: 1; } }
@keyframes as-blink { 50% { opacity: .45; } }
@keyframes as-drift { to { transform: translate(-30px, 24px) scale(1.15); } }

/* The pack tray rides the bottom of narrow screens; the box steps over it. */
@media (max-width: 900px) {
  body:has(.pk__tray:not([hidden])) .as-launch { bottom: 94px; }
  body:has(.pk__tray:not([hidden])) .as-tip { bottom: 104px; }
  body:has(.pk__tray:not([hidden])) .as-panel { bottom: 164px; height: min(600px, calc(100dvh - 188px)); }
}
@media (max-width: 560px) {
  .as-launch { left: 14px; bottom: 14px; width: 54px; height: 54px; }
  .as-tip { left: 78px; bottom: 24px; max-width: calc(100vw - 100px); }
  .as-panel, body:has(.pk__tray:not([hidden])) .as-panel { left: 8px; right: 8px; bottom: 8px; width: auto; height: min(82vh, 700px); height: min(82dvh, 700px); }
  .as-panel:not([hidden]) ~ .as-launch { opacity: 0; transform: scale(.6); pointer-events: none; }
}
@media print { .as { display: none; } }

/* The assistant's notes in the dashboard («یاد بده»). */
.dh-note { align-items: flex-start; }
.dh-note.is-off .li__body { opacity: .55; }
.dh-note__a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 13.5px; line-height: 1.8; color: var(--ink-soft); white-space: normal; overflow-wrap: anywhere; }
.dh-note .li__body small { white-space: normal; }
.dh-note .li__end { flex-wrap: wrap; justify-content: flex-end; }

/* ============================================================ home, part two ==
   «کسب‌وکارتان کدام است؟» above the products, «اتصال‌ها», the manager's dashboard
   in miniature, the follow-up path and the smart-support showcase. */

/* -- the three sizes -- */
.sg { margin-bottom: 28px; }
.sg__l { margin-bottom: 14px; text-align: center; font-size: 15.5px; font-weight: 700; }
.sg__l span { font-weight: 400; color: var(--ink-soft); }
.sg__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sg__b {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 14px 16px; text-align: right; color: var(--ink);
  transition: --spot .35s, transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s;
}
.sg__b:hover { transform: translateY(-3px); }
.sg__b:focus-visible { outline: 2px solid var(--cc); outline-offset: 3px; border-radius: 20px; }
.sg__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sg__t b { font-size: 15.5px; }
.sg__t span { font-size: 13px; line-height: 1.8; color: var(--ink-soft); }
.sg__n {
  padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 24px; white-space: nowrap;
  color: color-mix(in srgb, var(--cc) 72%, var(--ink)); background: color-mix(in srgb, var(--cc) 12%, transparent);
  transition: background-color .25s;
}
.sg__b[aria-pressed="true"] { --lit-wash: 24%; border-color: var(--cc); box-shadow: var(--lit-in), 0 18px 36px -18px color-mix(in srgb, var(--cc) 62%, transparent); }
.sg__b[aria-pressed="true"] .prod__ic { background: var(--cc); color: var(--on-accent); transform: scale(1.06) rotate(-5deg); }
.sg__b[aria-pressed="true"] .sg__n { background: color-mix(in srgb, var(--cc) 26%, transparent); }
.sg__note { min-height: 26px; margin-top: 12px; text-align: center; font-size: 13.5px; color: var(--muted); }
html:not(.js) .sg__note { display: none; }

/* -- «اتصال‌ها» -- */
.tmodes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 26px; }
.tmode {
  --cc: var(--slate);
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: color-mix(in srgb, var(--cc) 70%, var(--ink));
  background: color-mix(in srgb, var(--cc) 11%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc) 30%, transparent);
}
.tmode--have { --cc: var(--green); }
.tmode--make { --cc: var(--violet); }
.tmode i { display: grid; place-items: center; width: 18px; height: 18px; }
.tmode svg { width: 16px; height: 16px; }
.tgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.ttile {
  display: flex; flex-direction: column; gap: 12px; padding: 18px 16px 16px;
  transition: --spot .35s, transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s;
}
.ttile:hover { transform: translateY(-3px); }
.ttile .tl__ic { position: static; width: 44px; height: 44px; border-radius: 14px; transition: background-color .25s, color .25s, transform .4s cubic-bezier(.5, 1.5, .45, 1); }
.ttile:hover .tl__ic { background: var(--cc); color: var(--on-accent); transform: rotate(-6deg) scale(1.04); }
.ttile__b { min-width: 0; }
.ttile__h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 6px; }
.ttile__h b { font-size: 15.5px; }
.ttile p { font-size: 13px; line-height: 1.9; color: var(--ink-soft); }
.tstate { padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 22px; white-space: nowrap; }
.tstate--ready { background: var(--green-wash); color: var(--green-ink); }
.tstate--check { background: var(--amber-wash); color: var(--amber-ink); }
.tstate--make { background: var(--blue-wash); color: var(--blue-ink); }
.tfoot { margin-top: 24px; text-align: center; font-size: 14px; color: var(--ink-soft); }
.tfoot a { font-weight: 700; white-space: nowrap; }
.tfoot a:hover .arr { transform: translateX(-4px); }

/* -- two-column sections: the manager's dashboard, the smart support -- */
.mgr, .asx { display: grid; align-items: center; gap: 44px; }
.mgr { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
.asx { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.mgr__copy h2, .asx__copy h2 { margin-top: 16px; font-size: clamp(24px, 3vw, 34px); font-weight: 700; text-wrap: balance; }
.mgr__copy > p, .asx__copy > p { margin-top: 12px; font-size: 16px; line-height: 2; color: var(--ink-soft); }
.mgr__list { display: grid; gap: 14px; margin: 22px 0 0; padding: 0; list-style: none; }
.mgr__list li { --cc: var(--accent); display: flex; align-items: flex-start; gap: 12px; }
.mgr__ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: var(--cc); background: color-mix(in srgb, var(--cc) 13%, transparent); }
.mgr__ic svg { width: 19px; height: 19px; }
.mgr__list b { display: block; font-size: 15px; }
.mgr__list div span { display: block; font-size: 13.5px; line-height: 1.85; color: var(--ink-soft); }
.mgr__demo, .asx__demo { min-width: 0; }
.mgr__cap { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--muted); }
html:not(.js) .mgr__demo, html:not(.js) [data-assist-open], html:not(.js) .asx__ask { display: none; }
html:not(.js) .mgr { grid-template-columns: minmax(0, 1fr); }

/* -- the dashboard in miniature -- */
.mg, .asx__win { overflow: hidden; border: 1px solid var(--line-soft); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-lift); }
.mg__top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.mg__top b { font-size: 14px; }
.mg__top .tag { margin-inline-start: auto; }
.mg__dots { display: flex; gap: 5px; }
.mg__dots i { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--red) 62%, var(--surface)); }
.mg__dots i:nth-child(2) { background: color-mix(in srgb, var(--amber) 62%, var(--surface)); }
.mg__dots i:nth-child(3) { background: color-mix(in srgb, var(--green) 62%, var(--surface)); }
.mg__tabs { display: flex; gap: 6px; padding: 10px 12px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line-soft); }
.mg__tabs::-webkit-scrollbar { display: none; }
.mg__tab {
  --cc: var(--violet);
  flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border-radius: 12px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft); transition: background-color .2s, color .2s, box-shadow .2s;
}
.mg__tab svg { width: 17px; height: 17px; }
.mg__tab:hover { color: var(--ink); background: var(--surface-2); }
.mg__tab[aria-pressed="true"] { color: color-mix(in srgb, var(--cc) 78%, var(--ink)); background: color-mix(in srgb, var(--cc) 12%, var(--surface)); box-shadow: inset 0 0 0 1.5px var(--cc); }
.mg__body { min-height: 362px; padding: 14px; background: var(--surface-2); }
.mg__pane { display: grid; gap: 12px; animation: drise .35s both; }
.mg__two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.mg__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mg__kpi {
  --cc: var(--violet);
  display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: 14px;
  background: color-mix(in srgb, var(--cc) 9%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc) 22%, transparent);
}
.mg__kpi small { font-size: 11.5px; line-height: 1.6; color: var(--ink-soft); }
.mg__kpi b { font-size: 24px; font-weight: 800; line-height: 1.3; color: color-mix(in srgb, var(--cc) 70%, var(--ink)); }
.mg__kpi span { font-size: 11px; line-height: 1.6; color: var(--muted); }
.mg__kpi--hero { background: var(--accent-grad); box-shadow: 0 12px 24px -14px var(--glow); }
.mg__kpi--hero small, .mg__kpi--hero b, .mg__kpi--hero span { color: var(--on-accent); }
.mg__kpi--hero small, .mg__kpi--hero span { opacity: .88; }
.mg__box { --cc: var(--violet); min-width: 0; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-soft); }
.mg__bh { display: flex; align-items: center; gap: 8px; padding: 6px; padding-inline-start: 12px; }
.mg__bi { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: var(--cc); background: color-mix(in srgb, var(--cc) 13%, transparent); }
.mg__bi svg { width: 16px; height: 16px; }
.mg__bh b { flex: 1; min-width: 0; font-size: 13.5px; }
.mg__fold { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--muted); transition: background-color .2s, color .2s; }
.mg__fold:hover { color: var(--ink); background: var(--surface-2); }
.mg__fold svg { width: 16px; height: 16px; transform: rotate(90deg); transition: transform .25s; }
.mg__box.is-folded .mg__fold svg { transform: rotate(-90deg); }
.mg__bb { padding: 2px 12px 12px; }
.mg__bars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); align-items: end; gap: 8px; min-height: 166px; }
.mg__two > .mg__box { display: flex; flex-direction: column; }
.mg__two .mg__bb { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
.mg__col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; }
.mg__col i {
  display: block; width: 100%; max-width: 30px; border-radius: 8px 8px 3px 3px;
  background: color-mix(in srgb, var(--cc) 34%, var(--surface-2));
  transform-origin: bottom; animation: dgrow .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 55ms);
}
.mg__col.is-now i { background: linear-gradient(180deg, color-mix(in srgb, var(--cc) 62%, #fff), var(--cc)); box-shadow: 0 10px 18px -10px var(--cc); }
.mg__col small { font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.mg__col.is-now small { font-weight: 700; color: var(--ink); }
.mg .dfun { gap: 14px; }
.mg .dfun__row { grid-template-columns: minmax(64px, 26%) minmax(0, 1fr) 30px 34px; gap: 8px; }
.mg .dfun__lbl { font-size: 12.5px; white-space: nowrap; }
.mg .dfun__bar { height: 16px; }
.mg .dfun__bar i { transform-origin: right center; animation: dgrowx .8s cubic-bezier(.2, .8, .2, 1) both; }
.mg .dfun__n { font-size: 13px; }
.mg__mission { display: grid; gap: 10px; }
.mg__mt { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.mg__mt b { font-size: 14px; }
.mg__mt span { font-size: 12.5px; font-weight: 700; color: color-mix(in srgb, var(--cc) 72%, var(--ink)); }
.mg__mission small { font-size: 12px; color: var(--muted); }
.mg__prog, .mg__pb { display: block; overflow: hidden; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-soft); }
.mg__prog { height: 10px; }
.mg__pb { height: 8px; }
.mg__prog i, .mg__pb i {
  display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--cc) 62%, #fff), var(--cc));
  transform-origin: right center; animation: dgrowx .8s cubic-bezier(.2, .8, .2, 1) both;
}
.mg__people { display: grid; gap: 14px; }
.mg__person { display: grid; grid-template-columns: 32px 44px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; }
.mg__av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 14px; font-weight: 700; color: color-mix(in srgb, var(--cc) 72%, var(--ink)); background: color-mix(in srgb, var(--cc) 16%, transparent); }
.mg__pn { font-size: 13.5px; }
.mg__pd { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.mg__ps { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 700; color: var(--amber-ink); }
.mg__ps svg { width: 14px; height: 14px; color: var(--amber); fill: currentColor; }
.mg__hint { font-size: 12.5px; line-height: 1.9; color: var(--ink-soft); }
.mg__cards { display: grid; gap: 8px; }
.mg__card {
  --cc: var(--slate);
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 13px; background: var(--surface-2); border-inline-start: 3px solid var(--cc);
  transition: border-color .25s, opacity .25s;
}
.mg__ct { display: flex; flex-direction: column; min-width: 0; }
.mg__ct b { font-size: 13.5px; line-height: 1.65; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg__ct small { font-size: 12px; line-height: 1.6; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg__own, .mg__close {
  display: inline-flex; align-items: center; justify-self: start; gap: 6px; min-height: 32px; padding: 0 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: background-color .2s, color .2s, box-shadow .2s;
}
.mg__own { color: color-mix(in srgb, var(--cc) 74%, var(--ink)); background: color-mix(in srgb, var(--cc) 13%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc) 30%, transparent); }
.mg__own svg { width: 14px; height: 14px; }
.mg__own.is-none { color: var(--muted); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.mg__own:hover:not(:disabled) { background: color-mix(in srgb, var(--cc) 22%, var(--surface)); }
.mg__own:disabled { opacity: .6; cursor: default; }
.mg__close { color: var(--ink-soft); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.mg__close:hover { color: var(--green-ink); background: var(--green-wash); box-shadow: inset 0 0 0 1px var(--green-line); }
.mg__card.is-done { opacity: .78; }
.mg__card.is-done .mg__ct b { text-decoration: line-through; color: var(--muted); }
.mg__live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--green-ink); }
.mg__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: dblink 1.4s infinite; }
.mg__feed { display: grid; gap: 6px; }
.mg__ev { --cc: var(--violet); display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 11px; }
.mg__ev.is-new { animation: rise .45s both, dhflash 1.6s both; }
.mg__ei { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: var(--cc); background: color-mix(in srgb, var(--cc) 13%, transparent); }
.mg__ei svg { width: 16px; height: 16px; }
.mg__et { min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg__ev small { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.mg__tab:focus-visible, .mg__fold:focus-visible, .mg__own:focus-visible, .mg__close:focus-visible { outline: 2px solid var(--cc); outline-offset: 2px; }

/* -- the follow-up path -- */
.fl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.fl__i { padding: 18px 16px 16px; transition: --spot .35s, transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.fl__i:hover { transform: translateY(-3px); }
.fl__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.fl__ic {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  color: var(--cc); background: color-mix(in srgb, var(--cc) 13%, transparent);
  transition: background-color .25s, color .25s, transform .4s cubic-bezier(.5, 1.5, .45, 1);
}
.fl__ic svg { width: 22px; height: 22px; }
.fl__i:hover .fl__ic { background: var(--cc); color: var(--on-accent); transform: scale(1.06) rotate(-5deg); }
.fl__n { font-size: 30px; font-weight: 800; line-height: 1; color: color-mix(in srgb, var(--cc) 30%, transparent); }
.fl__i h3 { margin-bottom: 6px; font-size: 15.5px; }
.fl__i p { font-size: 13px; line-height: 1.9; color: var(--ink-soft); }
.fl__end { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; margin-top: 26px; }
.fl__end p { font-size: 14px; color: var(--ink-soft); }

/* -- the smart support, shown answering -- */
.asx__logo {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px;
  color: var(--on-accent); --as-star: var(--accent); background: var(--accent-grad); box-shadow: 0 14px 28px -14px var(--glow);
}
.asx__logo .as-logo { width: 30px; height: 30px; }
.asx__pts { display: grid; gap: 10px; margin: 20px 0 24px; padding: 0; list-style: none; }
.asx__pts li { position: relative; padding-inline-start: 22px; font-size: 14.5px; line-height: 1.9; color: var(--ink-soft); }
.asx__pts li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-grad); }
.asx__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.asx__head b { display: block; font-size: 14.5px; }
.asx__head small { display: block; font-size: 12px; color: var(--muted); }
.asx__list { display: grid; gap: 10px; padding: 16px; background: var(--surface-2); }
.asx__pair summary { display: flex; justify-content: flex-end; list-style: none; cursor: pointer; }
.asx__pair summary::-webkit-details-marker { display: none; }
.asx__q {
  display: inline-flex; align-items: center; gap: 10px; max-width: 86%; padding: 9px 14px; border-radius: 18px; border-end-end-radius: 6px;
  font-size: 14px; font-weight: 600; line-height: 1.8; color: var(--on-accent); background: var(--accent-grad);
  box-shadow: 0 10px 22px -12px var(--glow); transition: transform .2s;
}
.asx__pair summary:hover .asx__q { transform: translateY(-1px); }
.asx__q::after {
  content: ""; flex: none; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  opacity: .85; transform: translateY(-2px) rotate(45deg); transition: transform .25s;
}
.asx__pair[open] .asx__q::after { transform: translateY(2px) rotate(-135deg); }
.asx__pair summary:focus-visible { outline: none; }
.asx__pair summary:focus-visible .asx__q { outline: 2px solid var(--accent); outline-offset: 3px; }
.asx__a { display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; animation: as-in .3s cubic-bezier(.2, .8, .2, 1) both; }
.asx__say { min-width: 0; max-width: 88%; padding: 10px 14px; border-radius: 18px; border-end-start-radius: 6px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card); }
.asx__say p { font-size: 14px; line-height: 1.95; white-space: pre-line; overflow-wrap: anywhere; }
.asx__a--guard .asx__say { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); box-shadow: inset 0 0 0 1.5px var(--accent-line), var(--shadow-card); }
.asx__ask { display: inline-flex; align-items: center; min-height: 30px; margin-top: 8px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--accent-ink); background: var(--accent-wash); transition: box-shadow .2s; }
.asx__ask:hover { box-shadow: inset 0 0 0 1px var(--accent-line); }

@media (min-width: 901px) and (max-width: 1140px) {
  .top--site .wm small { display: none; }
  .top--site .top__nav { gap: 0; margin-inline-start: 4px; }
  .top--site .top__nav a { padding: 6px 9px; font-size: 13.5px; white-space: nowrap; }
}
@media (max-width: 1080px) {
  .tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ttile--other { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .fl { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .fl__i { grid-column: span 2; }
  .fl__i:nth-child(n+4) { grid-column: span 3; }
  .mgr, .asx { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 900px) {
  .sg__grid { grid-template-columns: minmax(0, 1fr); }
  .fl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fl__i, .fl__i:nth-child(n+4) { grid-column: auto; }
  .fl__i:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .sg__l span { display: block; }
  .tgrid { grid-template-columns: minmax(0, 1fr); }
  .ttile, .ttile--other { grid-column: auto; flex-direction: row; align-items: flex-start; padding: 14px; }
  .fl { grid-template-columns: minmax(0, 1fr); }
  .fl__i, .fl__i:last-child { grid-column: auto; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 12px; padding: 14px; }
  .fl__top { grid-row: 1 / span 2; flex-direction: column; justify-content: flex-start; gap: 6px; margin-bottom: 0; }
  .fl__n { font-size: 18px; }
  .fl__i h3 { margin: 0 0 4px; }
  .mg__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mg__two { grid-template-columns: minmax(0, 1fr); }
  .mg__body { min-height: 0; padding: 12px; }
  .mg .dfun__row { grid-template-columns: minmax(64px, 28%) minmax(0, 1fr) 30px; }
  .mg__bars { min-height: 0; }
  .mg__people { gap: 10px; }
  .mg__card { padding: 9px 10px; }
  .mg__person { grid-template-columns: 32px minmax(0, 1fr) auto auto; }
  .mg__pb { display: none; }
  .mg__card { grid-template-columns: minmax(0, 1fr) auto; }
  .mg__ct { grid-column: 1 / -1; }
  .mg__own, .mg__close { min-height: 36px; }
  .asx__q, .asx__say { max-width: 92%; }
}

/* -- the questionnaire: a coloured well, and a box per question -------------
   The step (`.wz__card`) is a vivid well; every question sits in a solid box
   (`.qb`, built by `App.qbox`) that never shares the well's colour, by day or
   by night. A box carries one hue in `--cc` — its icon badge, the strip under
   its title, the ring of a focused field — and the hues turn with the order
   of the boxes. Nothing here reaches outside `.wz__card`. */
.wz__card {
  display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 28px;
  background: var(--f-well); box-shadow: inset 0 0 0 1px var(--f-well-edge), var(--f-well-sh);
}
.wz__head { padding: 6px 8px 4px; color: var(--f-well-ink); }
.wz__no {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 12px; margin-bottom: 8px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; background: var(--f-well-glass); box-shadow: inset 0 0 0 1px var(--f-well-edge);
}
.wz__head h2 { font-size: 24px; }
.wz__head p { margin-top: 4px; max-width: 56ch; font-size: 14.5px; opacity: .92; }
.wz__bar { display: block; height: 6px; margin-top: 14px; border-radius: 999px; background: var(--f-well-glass); overflow: hidden; }
.wz__bar i { display: block; height: 100%; border-radius: inherit; background: var(--f-well-ink); transition: width .4s; }
.wz__nav { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; background: var(--f-box); box-shadow: var(--f-box-sh); }
.wz__nav .spacer { flex: 1; }
/* A line written straight on the well. */
.wz__line {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px;
  font-size: 13.5px; font-weight: 600; color: var(--f-well-ink);
  background: var(--f-well-glass); box-shadow: inset 0 0 0 1px var(--f-well-edge);
}
.wz__line svg { width: 16px; height: 16px; }
.wz__send { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 16px; border-radius: 18px; background: var(--f-box); box-shadow: var(--f-box-sh); }
.wz__send-t { flex: 1 1 260px; min-width: 0; display: grid; gap: 8px; justify-items: start; font-size: 13.5px; line-height: 1.8; color: var(--ink-soft); }
.wz__send-t:empty { display: none; }
.wz__send .btn { margin-inline-start: auto; }
.wz__card > .done-box { border-radius: 20px; background: var(--f-box); box-shadow: var(--f-box-sh); }

.qb {
  --cc: var(--accent);
  min-width: 0; border-radius: 18px; background: var(--f-box);
  border: 1px solid color-mix(in srgb, var(--cc) 26%, var(--f-box-line)); box-shadow: var(--f-box-sh);
}
.qb__h {
  display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-radius: 17px 17px 0 0;
  background: color-mix(in srgb, var(--cc) 9%, var(--f-box));
  border-bottom: 1px solid color-mix(in srgb, var(--cc) 20%, var(--f-box-line));
}
.qb__ic {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px;
  background: var(--cc); color: var(--f-on-cc); box-shadow: 0 8px 16px -8px var(--cc);
}
.qb__ic svg { width: 18px; height: 18px; }
.qb__t { display: flex; flex-direction: column; min-width: 0; }
.qb__t b { font-size: 15.5px; line-height: 1.5; }
.qb__t small { font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.qb__b { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; }
.qb__b > div:empty { display: none; }
.qb__b > .err { margin: 0; min-height: 0; }
.qb__b > .proc__head { margin-bottom: 0; }
.qb__note {
  padding-inline-start: 10px; font-size: 12.5px; line-height: 1.7; color: var(--muted);
  border-inline-start: 2px solid color-mix(in srgb, var(--cc) 45%, transparent);
}
.wz__card > .qb:nth-of-type(6n+1) { --cc: var(--violet); }
.wz__card > .qb:nth-of-type(6n+2) { --cc: var(--pink); }
.wz__card > .qb:nth-of-type(6n+3) { --cc: var(--blue); }
.wz__card > .qb:nth-of-type(6n+4) { --cc: var(--teal); }
.wz__card > .qb:nth-of-type(6n+5) { --cc: var(--orange); }
.wz__card > .qb:nth-of-type(6n) { --cc: var(--green); }

/* Inside a box nothing may take the box's own colour: fields, chips and rows
   are a shade off it, and light up in the box's hue. */
.wz__card .field input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]),
.wz__card .field textarea, .wz__card .field select { background: var(--f-field); border-color: var(--f-field-line); }
.wz__card .field input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]):focus,
.wz__card .field textarea:focus, .wz__card .field select:focus {
  background: var(--f-box); border-color: var(--cc, var(--accent));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cc, var(--accent)) 20%, transparent);
}
.wz__card .chip { background: var(--f-tint); color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--f-tint-line); }
.wz__card .chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--cc, var(--accent)) 60%, transparent); }
.wz__card .chip[aria-pressed="true"] { background: var(--accent-grad); color: var(--on-accent); box-shadow: 0 8px 16px -9px var(--glow); }
.wz__card .chip[aria-pressed="true"]::before { background: var(--on-accent); }
.wz__card .chip--add { background: transparent; box-shadow: none; border-color: var(--f-field-line); }
.wz__card .chip--add:hover { box-shadow: none; border-color: var(--cc, var(--accent)); }
.wz__card .pk__ql { display: none; }
.wz__card .pk__seg { margin-bottom: 0; background: color-mix(in srgb, var(--accent) 12%, var(--f-box)); box-shadow: var(--f-box-sh); }
.wz__card .prod { --surface: var(--f-tint); }
.wz__card .tl:not(.is-on) { background: var(--f-tint); box-shadow: inset 0 0 0 1px var(--f-tint-line); }
.wz__card .tl.is-on { background: color-mix(in srgb, var(--cc) 9%, var(--f-box)); }
/* A row sits inside a box here, so it gives a little room back to its answers. */
.wz__card .tl { gap: 12px; padding: 12px; }
.wz__card .tl__seg button { padding-inline: 8px; }
.wz__card .seg { background: var(--f-field); box-shadow: inset 0 0 0 1px var(--f-field-line); }
.wz__card .seg button[aria-pressed="true"] { background: var(--f-box); }
.wz__card .drop { background: var(--f-tint); border-color: var(--f-field-line); }
.wz__card .drop:hover, .wz__card .drop.is-over { border-color: var(--cc, var(--accent)); background: color-mix(in srgb, var(--cc, var(--accent)) 10%, var(--f-box)); }
.wz__card .stage-pill { background: var(--f-tint); box-shadow: inset 0 0 0 1px var(--f-tint-line); }
.wz__card .stage-pill:focus-within { box-shadow: inset 0 0 0 1.5px var(--cc, var(--accent)); }
.wz__card .preset[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--f-box), 0 0 0 4px var(--accent); }

/* A choice whose answers need a line each to tell them apart (hosting). */
.opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.opt {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 24px; gap: 12px; align-items: center;
  width: 100%; padding: 12px 14px; border-radius: 14px; text-align: start;
  background: var(--f-tint); border: 1.5px solid var(--f-tint-line);
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.opt:hover { border-color: color-mix(in srgb, var(--cc) 55%, var(--f-tint-line)); }
.opt__ic {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
  color: var(--cc); background: color-mix(in srgb, var(--cc) 14%, transparent);
  transition: background .2s, color .2s;
}
.opt__ic svg { width: 22px; height: 22px; }
.opt__b { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.opt__b b { font-size: 15px; line-height: 1.6; }
.opt__b small { font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.opt__ck {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  color: transparent; box-shadow: inset 0 0 0 1.5px var(--f-field-line);
  transition: background .2s, color .2s, box-shadow .2s;
}
.opt__ck svg { width: 13px; height: 13px; stroke-width: 3; }
.opt[aria-pressed="true"] {
  border-color: var(--cc); background: color-mix(in srgb, var(--cc) 10%, var(--f-box));
  box-shadow: 0 12px 26px -18px var(--cc);
}
.opt[aria-pressed="true"] .opt__ic, .opt[aria-pressed="true"] .opt__ck { background: var(--cc); color: var(--f-on-cc); box-shadow: none; }
.opts > .opt:nth-child(3n+1) { --cc: var(--blue); }
.opts > .opt:nth-child(3n+2) { --cc: var(--teal); }
.opts > .opt:nth-child(3n) { --cc: var(--orange); }

/* The look back over the answers, on the last step. */
.rv { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 12px 14px; border-radius: 14px; background: var(--f-tint); box-shadow: inset 0 0 0 1px var(--f-tint-line); }
.rv b { font-size: 13px; color: var(--accent-ink); }
.rv span { font-size: 13.5px; line-height: 1.7; color: var(--ink-soft); overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .wz__card { gap: 10px; padding: 10px; border-radius: 22px; }
  .wz__head h2 { font-size: 21px; }
  .qb__h { padding: 10px 12px; }
  .qb__b { padding: 12px; }
  .wz__nav { flex-wrap: wrap; }
  .wz__card .pk__quick { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding: 0; }
  .opt { grid-template-columns: 40px minmax(0, 1fr) 22px; gap: 10px; padding: 10px 12px; }
  .opt__ic { width: 40px; height: 40px; }
}

/* -- the question before something is done (App.confirm) ----------------------- */
.modal--ask { --cc: var(--accent); width: min(430px, 100%); padding: 28px 24px 22px; text-align: center; }
.modal--ask.is-danger { --cc: var(--red); }
.ask { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ask__badge {
  position: relative; display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 6px; border-radius: 22px;
  color: var(--accent-ink); background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent-line), 0 14px 28px -16px var(--cc);
  animation: ask-pop .45s cubic-bezier(.3, 1.5, .5, 1) both;
}
.ask__badge::before, .ask__badge::after {
  content: ""; position: absolute; inset: -7px; border-radius: 28px; border: 1.5px solid var(--cc); opacity: 0;
  animation: ask-ring 2.6s ease-out infinite;
}
.ask__badge::after { animation-delay: 1.3s; }
.ask__badge svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.is-danger .ask__badge { color: var(--red-ink); background: var(--red-wash); box-shadow: inset 0 0 0 1px var(--red-line), 0 14px 28px -16px var(--cc); }
.modal .ask__t { margin: 0; font-size: 18.5px; line-height: 1.75; text-wrap: balance; overflow-wrap: anywhere; }
.ask__p { font-size: 13.5px; line-height: 1.95; color: var(--muted); text-wrap: pretty; }
.ask__pts {
  align-self: stretch; display: grid; gap: 9px; margin-top: 4px; padding: 13px 14px; list-style: none; text-align: start;
  border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-soft);
}
.ask__pt { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.85; color: var(--ink-soft); }
.ask__pt svg { flex: none; width: 17px; height: 17px; margin-top: 3px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.ask__pt.is-red svg { color: var(--red); }
.ask__pt.is-green svg { color: var(--green); }
.ask__lock {
  position: relative; align-self: stretch; display: flex; align-items: center; gap: 12px; margin-top: 2px; padding: 12px 14px;
  border-radius: 14px; cursor: pointer; text-align: start; font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, box-shadow .2s, color .2s;
}
.ask__lock input { position: absolute; opacity: 0; pointer-events: none; }
.ask__sw { flex: none; position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--line); transition: background .2s; }
.ask__sw::after {
  content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface); box-shadow: 0 1px 3px var(--scrim); transition: inset-inline-start .25s cubic-bezier(.3, 1.4, .5, 1);
}
.ask__lock:hover { box-shadow: inset 0 0 0 1px var(--red-line); }
.ask__lock.is-on { background: var(--red-wash); color: var(--red-ink); box-shadow: inset 0 0 0 1px var(--red-line); }
.ask__lock.is-on .ask__sw { background: var(--red); }
.ask__lock.is-on .ask__sw::after { inset-inline-start: 21px; }
.ask__lock input:focus-visible ~ .ask__sw { outline: 2px solid var(--cc); outline-offset: 3px; }
.modal--ask .modal__foot { display: grid; grid-template-columns: 1fr 1fr; margin-top: 20px; }
.modal--ask .modal__foot .btn { width: 100%; justify-content: center; }
.modal--ask.is-danger .modal__foot .btn--danger { background: var(--red); color: var(--on-accent); box-shadow: 0 12px 24px -14px var(--red); }
.modal--ask.is-danger .modal__foot .btn--danger:hover { filter: brightness(1.07); }
.modal--ask.is-danger .modal__foot .btn--danger[disabled] { background: var(--red-wash); color: var(--red-ink); box-shadow: inset 0 0 0 1px var(--red-line); }
@keyframes ask-pop { from { transform: scale(.6); opacity: 0; } }
@keyframes ask-ring { 0% { transform: scale(.88); opacity: .45; } 70%, 100% { transform: scale(1.2); opacity: 0; } }

/* The bin on a board card: quiet until the card is under the hand. */
.kc__del {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin: -4px; margin-inline-start: 0; border-radius: 9px;
  color: var(--muted); opacity: 0; transition: opacity .15s, background .15s, color .15s, box-shadow .15s;
}
.kc__del svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kc:hover .kc__del, .kc:focus-within .kc__del { opacity: 1; }
.kc__del:hover, .kc__del:focus-visible { opacity: 1; outline: none; background: var(--red-wash); color: var(--red-ink); box-shadow: inset 0 0 0 1px var(--red-line); }
.drag-ghost .kc__del { visibility: hidden; }
.fc__del { color: var(--muted); }
.fc__del:hover, .fc__del:focus-visible { background: var(--red-wash); color: var(--red-ink); box-shadow: inset 0 0 0 1px var(--red-line); }
@media (hover: none) {
  .kc__del { opacity: .7; }
}

/* ==========================================================================
   The site's own pages: the «فهرست» drawer, the footer, the catalogue, one
   product's page with its moving scene, and the small charts.
   ========================================================================== */

/* -- «فهرست»: the button in the header and the drawer it opens -------------- */
.mbtn { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 40px; padding-inline: 12px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 700; box-shadow: var(--shadow-card); transition: border-color .2s, background .2s, color .2s, transform .2s; }
.mbtn:hover, .mbtn[aria-expanded="true"] { border-color: var(--accent-line); background: var(--accent-wash); color: var(--accent-ink); }
.mbtn:active { transform: scale(.97); }
.mbtn__ic { display: inline-flex; }
.mbtn__ic svg { width: 20px; height: 20px; }
.top__nav a[aria-current="page"] { background: var(--accent-wash); color: var(--accent-ink); }

.smenu-scrim { position: fixed; inset: 0; z-index: 62; background: var(--scrim); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.smenu-scrim.is-open { opacity: 1; visibility: visible; transition: opacity .25s, visibility 0s; }
.smenu { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 63; display: flex; flex-direction: column; width: min(340px, 88vw); border-inline-end: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lift); transform: translateX(104%); visibility: hidden; transition: transform .32s cubic-bezier(.2, .8, .2, 1), visibility .32s; }
/* Seen at once on the way in, so the close button can take the focus. */
.smenu.is-open { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.smenu__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.smenu__x { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border: 0; border-radius: 12px; background: none; color: var(--ink-soft); cursor: pointer; transition: background .2s, color .2s; }
.smenu__x:hover, .smenu__x:focus-visible { background: var(--accent-wash); color: var(--accent-ink); }
.smenu__x span { display: inline-flex; }
.smenu__x svg { width: 20px; height: 20px; }
.smenu__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 12px 16px; }
.smenu__g + .smenu__g { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.smenu__t { margin: 0 0 4px; padding: 0 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.smenu__l { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 12px; font-size: 14.5px; font-weight: 500; color: var(--ink); transition: background .2s, transform .2s; }
.smenu__l:hover { background: color-mix(in srgb, var(--cc) 10%, transparent); transform: translateX(-3px); }
.smenu__l.is-here { background: color-mix(in srgb, var(--cc) 14%, transparent); font-weight: 700; }
.smenu__ic { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 10px; color: var(--cc); background: color-mix(in srgb, var(--cc) 13%, transparent); }
.smenu__ic svg { width: 17px; height: 17px; }
.smenu__foot { display: grid; gap: 8px; padding: 14px 16px 18px; border-top: 1px solid var(--line-soft); }
html.has-menu { overflow: hidden; }

/* -- the mark and the name: the mark settles in, and a name with colour -- */
.top--site .mark, .smenu .mark, .foot .mark { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.brand:hover .mark { transform: translateY(-1px) rotate(-6deg) scale(1.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 16px 30px -10px var(--mark-glow); }
.top--site .mark { animation: mk-in .6s cubic-bezier(.2, .8, .2, 1) backwards; }
.top--site .brand .wm b, .smenu .brand .wm b, .foot .brand .wm b { font-size: 19px; font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes mk-in { from { opacity: 0; transform: scale(.82) rotate(-10deg); } }

/* -- the footer: the pages again, and how to reach us ----------------------- */
.foot { padding: 48px 0 36px; border-top: 1px solid var(--line-soft); }
/* The name and a line about it, then the four families and the guides. */
.foot__grid { display: grid; grid-template-columns: minmax(230px, 1.7fr) repeat(5, minmax(0, 1fr)); gap: 28px 24px; }
.foot__about { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.foot__about p { max-width: 340px; font-size: 14px; line-height: 2; color: var(--ink-soft); }
.foot__col h2 { margin-bottom: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.foot__col ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.foot__col a { font-size: 14px; color: var(--ink-soft); transition: color .2s; }
.foot__col a:hover { color: var(--accent-ink); }
.foot__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; padding: 20px 22px; }
.foot__ch { display: flex; align-items: center; gap: 12px; }
.foot__ch div { display: flex; flex-direction: column; line-height: 1.6; }
.foot__ch b { font-size: 15px; }
.foot__ch small { font-size: 12.5px; color: var(--muted); }
.foot__tels { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.foot__tel { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; color: var(--violet-ink); background: var(--violet-wash); box-shadow: inset 0 0 0 1px var(--violet-line); font-size: 15.5px; font-weight: 700; transition: transform .2s, box-shadow .2s; }
.foot__tel:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--violet-line), var(--shadow-card); }
.foot__tel span { display: inline-flex; }
.foot__tel svg { width: 18px; height: 18px; }
.foot__addr { display: flex; align-items: flex-start; gap: 8px; flex: 1 1 260px; font-size: 14px; line-height: 1.9; color: var(--ink-soft); }
.foot__addr svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--violet); }
.foot__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }
.foot__mini { display: flex; flex-wrap: wrap; gap: 16px; }
.foot__mini a { color: var(--ink-soft); }
.foot__mini a:hover { color: var(--accent-ink); }

/* -- home: a product card with a way to its own page ------------------------ */
.pcard { position: relative; display: grid; }
.pcard > .prod { padding-bottom: 58px; }
.pcard > .pcard__more { transition: transform .25s cubic-bezier(.2, .8, .2, 1), background .2s; }
.pcard:hover > .prod, .pcard:hover > .pcard__more { transform: translateY(-3px); }
.prod__add { position: absolute; inset-inline-end: 16px; bottom: 20px; font-size: 12.5px; font-weight: 700; color: var(--muted); transition: color .2s; }
.prod:hover .prod__add { color: color-mix(in srgb, var(--cc) 72%, var(--ink)); }
.prod__add-on { display: none; color: color-mix(in srgb, var(--cc) 72%, var(--ink)); }
.prod[aria-pressed="true"] .prod__add-off { display: none; }
.prod[aria-pressed="true"] .prod__add-on { display: inline; }
.pcard__more { position: absolute; inset-inline-start: 16px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: color-mix(in srgb, var(--cc) 72%, var(--ink)); background: color-mix(in srgb, var(--cc) 12%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc) 30%, transparent); }
.pcard__more:hover { background: color-mix(in srgb, var(--cc) 22%, var(--surface)); }
.pcard__more span { display: inline-flex; }
.pcard__more svg { width: 14px; height: 14px; }
.pk__now { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin-top: 22px; font-size: 14px; color: var(--ink-soft); text-align: center; }
.pk__now a { font-weight: 700; color: var(--accent-ink); }
.pstat { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pstat i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pstat--ready { color: var(--green-ink); background: var(--green-wash); box-shadow: inset 0 0 0 1px var(--green-line); }
.pstat--ready i { animation: vz-pulse 2.2s infinite; }
.pstat--next { color: var(--amber-ink); background: var(--amber-wash); box-shadow: inset 0 0 0 1px var(--amber-line); }

.gd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gd__c { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; color: var(--ink); transition: --spot .35s, transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.gd__c:hover, .pidx__c:hover { transform: translateY(-3px); }
.gd__c b { font-size: 16px; }
.gd__t { font-size: 13.5px; line-height: 1.9; color: var(--ink-soft); }
.gd__go, .pidx__go { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: color-mix(in srgb, var(--cc) 72%, var(--ink)); }
.gd__c:hover .arr, .pidx__c:hover .arr { transform: translateX(-4px); }

/* -- the head of a page that is not the home page --------------------------- */
.phead { padding: 44px 0 8px; }
.phead h1 { margin-top: 14px; font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.5; }
.phead h1 em, .pp__copy h1 em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phead .lead { margin-top: 12px; max-width: 720px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs i { font-style: normal; opacity: .6; }
.crumbs b { font-weight: 700; color: var(--ink); }
.band--flush { padding-top: 36px; }
.cta-band--gap { padding-top: 72px; }
.nf__go { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* -- the catalogue ----------------------------------------------------------- */
.pidx + .pidx { margin-top: 36px; }
.pidx__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pidx__c { display: flex; flex-direction: column; gap: 8px; padding: 18px; color: var(--ink); transition: --spot .35s, transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.pidx__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pidx__c b { font-size: 16px; line-height: 1.7; }

/* -- one product's page: everything takes the product's colour (`--cc`) ----- */
.pp__hero { position: relative; padding: 36px 0 56px; overflow: hidden; }
.pp__hero::before { content: ""; position: absolute; inset: -160px -10% auto; height: 560px; pointer-events: none; background: radial-gradient(52% 60% at 28% 40%, color-mix(in srgb, var(--cc) 20%, transparent), transparent 72%); }
.pp__in { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 44px; align-items: center; }
.pp__copy { min-width: 0; }
.pp__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.pp__fam { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.pp__fam .prod__ic { width: 30px; height: 30px; border-radius: 10px; }
.pp__fam .prod__ic svg { width: 16px; height: 16px; }
.pp__copy h1 { margin-top: 14px; font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; line-height: 1.5; }
.pp__name { display: block; margin-bottom: 6px; font-size: 16px; font-weight: 700; letter-spacing: 0; color: color-mix(in srgb, var(--cc) 72%, var(--ink)); }
.pp__copy .lead { margin-top: 14px; }
.pp__stage { position: relative; min-width: 0; }
.pp__cap { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--muted); }
.sc-host { position: relative; }
.pp .pain, .pp .pp__now, .pp .feat { --cc: inherit; }
.steps4.steps4--one li:nth-child(n) { --cc: inherit; }
.pain { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; }
.pain h3 { font-size: 17px; }
.pain p { font-size: 14px; line-height: 2; color: var(--ink-soft); }
.feat-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pp .feat-grid--3 .feat .feat__ic { --fc: var(--cc); }
.pp__two { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.pp__now { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 26px; }
.pp__now h2, .pp__faq h2 { font-size: 22px; }
.pp__now p { font-size: 14.5px; line-height: 2.1; color: var(--ink-soft); }
.pp__faq h2 { margin-bottom: 14px; }
.pp__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--accent-ink); }

/* -- a product's scene: a small window that plays what the product does ----- */
.sc { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-lift), 0 40px 80px -50px var(--cc); }
.sc__top { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.sc__tt { display: inline-flex; align-items: center; gap: 8px; margin-inline-end: auto; font-size: 13.5px; color: var(--ink); }
.sc__tt svg { width: 18px; height: 18px; color: var(--cc); }
.sc__body { display: grid; align-content: start; gap: 12px; min-height: 372px; padding: 16px; background: var(--surface-2); }
.sc .sc__in:not(.is-on) { display: none; }
.sc .sc__in.is-on { animation: sc-rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.sc .is-pop { animation: vz-pop .5s cubic-bezier(.2, .8, .2, 1) both; }
.sc__card { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line-soft); border-radius: 16px; background: var(--surface); }
.sc__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.sc__row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); font-size: 13px; }
.sc__grow { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.6; }
.sc__grow small, .sc__row > small { font-size: 11.5px; color: var(--muted); }
.sc__chip { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; color: color-mix(in srgb, var(--cc) 72%, var(--ink)); background: color-mix(in srgb, var(--cc) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc) 26%, transparent); transition: background .3s, color .3s, box-shadow .3s; }
.sc__chip svg { width: 14px; height: 14px; }
.sc__seg { color: var(--ink-soft); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.sc__seg.is-on { color: var(--on-accent); background: var(--cc); box-shadow: 0 8px 16px -8px var(--cc); }
.sc__segs { display: flex; flex-wrap: wrap; gap: 6px; }
.sc__sum { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--ink-soft); }
.sc__sum b { font-size: 17px; font-weight: 800; color: color-mix(in srgb, var(--cc) 72%, var(--ink)); }
.sc__stamp { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1.5px dashed var(--green-line); border-radius: 10px; color: var(--green-ink); background: var(--green-wash); font-size: 12.5px; font-weight: 800; transform: rotate(-3deg); }
.sc__stamp svg { width: 15px; height: 15px; }
.sc__note { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.8; color: var(--ink-soft); background: color-mix(in srgb, var(--cc) 9%, transparent); }
.sc__note svg { flex: none; width: 16px; height: 16px; color: var(--cc); }
.sc__kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.sc__kpi { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--surface); }
.sc__kpi small { font-size: 11.5px; color: var(--ink-soft); }
.sc__kpi b { font-size: 21px; font-weight: 800; line-height: 1.4; color: color-mix(in srgb, var(--cc) 70%, var(--ink)); }
.sc__split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.sc__col { display: grid; gap: 8px; align-content: start; min-width: 0; }
.sc__side { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px; border: 1px solid var(--line-soft); border-radius: 16px; background: var(--surface); text-align: center; }
.sc__side small { font-size: 12px; line-height: 1.8; color: var(--ink-soft); }
.sc__pts { font-size: 30px; font-weight: 800; line-height: 1.3; color: color-mix(in srgb, var(--cc) 70%, var(--ink)); }
.sc__chat { display: flex; flex-direction: column; gap: 8px; }
.sc__msg { align-self: flex-start; max-width: 82%; padding: 9px 13px; border-radius: 16px; border-start-start-radius: 6px; font-size: 13px; line-height: 1.9; color: var(--on-accent); background: var(--cc); }
.sc__msg--them { align-self: flex-end; border-start-start-radius: 16px; border-start-end-radius: 6px; color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.sc__msg--bot { color: var(--ink); background: color-mix(in srgb, var(--cc) 13%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc) 28%, transparent); }
.sc__typing { display: inline-flex; align-self: flex-start; gap: 4px; padding: 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.sc__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: sc-dot 1s infinite; }
.sc__typing i:nth-child(2) { animation-delay: .15s; }
.sc__typing i:nth-child(3) { animation-delay: .3s; }
.sc__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sc__tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--surface); font-size: 12.5px; transition: border-color .3s, box-shadow .3s, transform .3s; }
.sc__tile.is-on { border-color: var(--cc); box-shadow: 0 14px 26px -16px var(--cc); transform: translateY(-3px); }
.sc__tile small { font-size: 11.5px; color: var(--muted); }
.sc__tic { display: grid; place-items: center; height: 62px; border-radius: 10px; color: var(--cc); background: color-mix(in srgb, var(--cc) 13%, transparent); }
.sc__tic svg { width: 26px; height: 26px; }
.sc__add { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 26px; border-radius: 8px; font-size: 11.5px; font-weight: 700; color: color-mix(in srgb, var(--cc) 72%, var(--ink)); background: color-mix(in srgb, var(--cc) 11%, transparent); transition: background .3s, color .3s; }
.sc__add svg { width: 13px; height: 13px; }
.sc__tile.is-on .sc__add { color: var(--on-accent); background: var(--cc); }
.sc__cart { position: relative; display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; color: var(--cc); background: color-mix(in srgb, var(--cc) 13%, transparent); }
.sc__cart svg { width: 18px; height: 18px; }
.sc__badge { position: absolute; top: -6px; inset-inline-end: -6px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; font-size: 10.5px; font-weight: 800; color: var(--on-accent); background: var(--red); }
.sc__lanes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; align-items: start; }
.sc__lane { display: grid; gap: 8px; align-content: start; min-height: 150px; padding: 10px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--surface); }
.sc__lane > small { font-size: 11.5px; font-weight: 700; color: var(--ink-soft); }
.sc__stack { display: grid; gap: 6px; align-content: start; }
.sc__ord { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-inline-start: 3px solid var(--cc); border-radius: 10px; background: color-mix(in srgb, var(--cc) 9%, var(--surface-2)); font-size: 12.5px; line-height: 1.7; animation: sc-rise .4s both; }
.sc__ord small { font-size: 11px; color: var(--muted); }
.sc__name { flex: none; width: 34%; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc__lvl { display: block; flex: 1; min-width: 40px; height: 8px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--cc) 14%, transparent); }
.sc__lvl i { display: block; height: 100%; border-radius: inherit; background: var(--cc); transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.sc__row.is-low { --cc: var(--red); background: var(--red-wash); box-shadow: inset 0 0 0 1px var(--red-line); }
.sc__row.is-low .sc__name { color: var(--red-ink); }
.sc__stat { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.sc__stat > span:first-child { flex: none; width: 32%; color: var(--ink-soft); }
.sc__stat b { flex: none; min-width: 38px; text-align: end; font-weight: 800; color: color-mix(in srgb, var(--cc) 72%, var(--ink)); }
.sc__week { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.sc__day { display: grid; gap: 6px; align-content: start; }
.sc__day small { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--ink-soft); }
.sc__slot { display: grid; place-items: center; height: 30px; border-radius: 9px; font-size: 11.5px; font-weight: 700; color: color-mix(in srgb, var(--cc) 72%, var(--ink)); background: color-mix(in srgb, var(--cc) 10%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc) 22%, transparent); transition: background .3s, color .3s, transform .3s, box-shadow .3s; }
.sc__slot.is-taken { color: var(--muted); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-soft); text-decoration: line-through; }
.sc__slot.is-on { color: var(--on-accent); background: var(--cc); box-shadow: 0 10px 18px -10px var(--cc); transform: scale(1.06); text-decoration: none; }

/* -- charts (viz.js): a curve stretched to its box, points placed over it --- */
.vz { position: relative; }
.vz__plot { position: relative; height: var(--vh, 150px); }
.vz__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: vz-wipe 1.1s cubic-bezier(.3, .7, .2, 1) both; }
.vz__grid { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.vz__line { fill: none; stroke: var(--cc); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.vz__s0 { stop-color: var(--cc); stop-opacity: .34; }
.vz__s1 { stop-color: var(--cc); stop-opacity: 0; }
.vz__pt { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 2.5px var(--cc); animation: vz-pop .4s calc(.25s + var(--i, 0) * .1s) both; }
.vz__pt.is-now { width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--cc); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4.5px var(--cc); }
.vz__pt.is-now::after { content: ""; position: absolute; inset: -7px; border: 2px solid var(--cc); border-radius: 50%; animation: vz-ring 2s 1.4s infinite; opacity: 0; }
.vz__hit { position: absolute; top: 0; bottom: 0; transform: translateX(-50%); }
.vz__hit::before { content: ""; position: absolute; left: 50%; top: var(--y); bottom: 0; width: 1px; background: linear-gradient(var(--cc), transparent); opacity: 0; transition: opacity .2s; }
.vz__hit:hover::before { opacity: .7; }
.vz__tip { position: absolute; left: 50%; top: var(--y); z-index: 3; display: flex; flex-direction: column; align-items: center; padding: 5px 10px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 12px; line-height: 1.6; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, calc(-100% - 8px)) scale(.94); transition: opacity .2s, transform .2s; }
.vz__hit:hover .vz__tip { opacity: 1; transform: translate(-50%, calc(-100% - 12px)); }
.vz__tip small { font-size: 10.5px; opacity: .75; }
.vz__tip small:empty, .vzr__in small:empty { display: none; }
.vz__x { position: relative; height: 20px; margin-top: 6px; font-size: 11px; color: var(--muted); }
.vz__x span { position: absolute; top: 0; white-space: nowrap; transform: translateX(-50%); }
.vz__x span.is-edge { transform: none; }
.vzr { position: relative; flex: none; width: var(--rs, 92px); height: var(--rs, 92px); }
.vzr svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.vzr__bg { fill: none; stroke: color-mix(in srgb, var(--cc) 16%, transparent); stroke-width: 4; }
.vzr__fg { fill: none; stroke: var(--cc); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.1s cubic-bezier(.2, .8, .2, 1); }
.vzr__in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.4; }
.vzr__in b { font-size: calc(var(--rs, 92px) * .22); font-weight: 800; color: color-mix(in srgb, var(--cc) 70%, var(--ink)); }
.vzr__in small { font-size: 10.5px; color: var(--muted); }

/* The manager's dashboard on the home page, on top of the charts above. */
.mg__up { display: inline-flex; align-items: center; margin-inline-end: 6px; padding: 0 7px; border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 800; color: var(--green-ink); background: var(--green-wash); }
.mg__kpi--hero .mg__up { color: var(--on-accent); background: rgba(255, 255, 255, .22); }
.mg__goal { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.mg__goal-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mg__goal-t b { font-size: 13.5px; }
.mg__goal-t small { font-size: 12px; line-height: 1.7; color: var(--muted); }

@keyframes vz-wipe { from { clip-path: inset(-20px -20px -20px 100%); } to { clip-path: inset(-20px); } }
@keyframes vz-pop { from { transform: scale(0); opacity: 0; } 60% { transform: scale(1.25); opacity: 1; } }
@keyframes vz-pulse { 50% { opacity: .35; } }
@keyframes vz-ring { from { transform: scale(.5); opacity: .8; } to { transform: scale(1.5); opacity: 0; } }
@keyframes sc-dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes sc-rise { from { transform: translateY(10px); opacity: 0; } }

@media (max-width: 1180px) {
  .top--site .top__nav { display: none; }
}
@media (max-width: 1080px) {
  .pp__in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .gd, .pidx__grid, .feat-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .foot__about { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .pp__two, .sc__split { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .top--site .top__in { gap: 12px; }
  .top--site .wm small, .mbtn__t, .top__in-link, .prod__add { display: none; }
  .mbtn { width: 40px; padding: 0; justify-content: center; }
  .gd, .pidx__grid, .feat-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .foot { padding-top: 36px; }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__contact { padding: 16px; }
  .phead { padding-top: 28px; }
  .pp__hero { padding: 20px 0 40px; }
  .sc__body { min-height: 0; padding: 12px; }
  .sc__tiles { gap: 8px; }
  .sc__tic { height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
