/*
 * The owner's console, dressed as the admin every merchant already knows
 * (src/app/admin/admin.css + admin-theme.css): the same tokens in both themes,
 * the same sidebar, topbar, page heading, KPI strip, segmented tabs, table and
 * pills. Copied rather than loaded from the store's build on purpose — the
 * console has to keep working when the code the stores run does not.
 *
 * Theme: <html data-theme="dark"> is set by the server from the hq_theme cookie,
 * so there is no flash and no inline script.
 */
:root {
  --brand: #4338ca; --brand-600: #3730a3; --brand-700: #312e81; --brand-weak: #eef2ff;
  --brand-solid: #4f46e5;
  --brand-grad: linear-gradient(120deg, #4f46e5 0%, #7c3aed 50%, #c026d3 100%);
  --cream: #f8fafc; --surface: #ffffff;
  --glass: rgba(255, 255, 255, 0.62); --glass-strong: rgba(255, 255, 255, 0.82); --glass-edge: rgba(255, 255, 255, 0.6);
  --ink: #1e293b; --muted: #475569; --faint: #5b6a80;
  --border: #e2e8f0; --border-strong: #cbd5e1;
  --danger: #b91c1c; --danger-weak: #fef2f2;
  --success: #047857; --success-weak: #ecfdf5;
  --warn: #b45309; --warn-weak: #fffbeb;
  --info: #6d28d9; --info-weak: #f5f3ff;
  --radius: 24px; --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 20px 25px -5px rgba(148, 163, 184, 0.16), 0 8px 10px -6px rgba(148, 163, 184, 0.12);
  --shadow-lg: 0 25px 50px -12px rgba(99, 102, 241, 0.22);
  --viz-1: #4f46e5; --viz-2: #7c3aed; --viz-grid: #e2e8f0; --viz-axis: #5b6a80; --viz-prev: #94a3b8;
  --pool-1: #fb7185; --pool-2: #60a5fa; --pool-3: #a78bfa; --pool-alpha: 0.55;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --brand: #22d3ee; --brand-600: #67e8f9; --brand-700: #4f46e5; --brand-weak: #12344a;
  --head-grad: linear-gradient(90deg, #22d3ee, #c084fc);
  --cream: #0b1121; --surface: #151e33;
  --glass: rgba(11, 17, 33, 0.6); --glass-strong: rgba(21, 30, 51, 0.88); --glass-edge: rgba(51, 65, 85, 0.5);
  --ink: #e2e8f0; --muted: #a8b4c6; --faint: #8a98ae;
  --border: #243049; --border-strong: #334155;
  --danger: #fca5a5; --danger-weak: #3b1d27;
  --success: #34d399; --success-weak: #0f2f2b;
  --warn: #fbbf24; --warn-weak: #33280f;
  --info: #c4b5fd; --info-weak: #2a2152;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.22), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
  --viz-1: #22d3ee; --viz-2: #a78bfa; --viz-grid: #243049; --viz-axis: #a8b4c6; --viz-prev: #64748b;
  --pool-1: #4f46e5; --pool-2: #0891b2; --pool-3: #9333ea; --pool-alpha: 0.45;
  color-scheme: dark;
}

/* ── Page ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; letter-spacing: -0.006em;
  color: var(--ink); background: var(--cream); font-size: 15.5px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
/* The colour pools behind everything. */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: var(--pool-alpha);
  background:
    radial-gradient(900px 900px at -80px -10%, var(--pool-1), transparent 70%),
    radial-gradient(800px 800px at 110% 110%, var(--pool-2), transparent 70%),
    radial-gradient(600px 600px at 65% 55%, var(--pool-3), transparent 70%);
}
a { color: var(--brand); }
::selection { background: rgba(99, 102, 241, 0.22); }
:focus-visible { outline: 3px solid rgba(99, 102, 241, 0.45); outline-offset: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); } .small { font-size: 13.5px; } .ltr { direction: ltr; unicode-bidi: isolate; }
.num, td.n { font-variant-numeric: tabular-nums; }

/* ── The top bar (the store admin's, 6.10.2026): logo, then find and add, then the rest ── */
:root { --top-h: 64px; --dock-h: 64px; --dock-gap: 16px; }
.hq-skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--surface); color: var(--brand-600); font-weight: 700; box-shadow: var(--shadow-lg); }
.hq-skip:focus { top: 8px; }
.hq { min-height: 100vh; display: flex; flex-direction: column; }
.hq-top {
  position: relative; z-index: 40; flex-shrink: 0; display: flex; align-items: center; gap: var(--s3);
  height: var(--top-h); padding: 0 var(--s6);
  background: rgba(255, 255, 255, 0.4); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6); box-shadow: var(--shadow-sm);
}
:root[data-theme="dark"] .hq-top { background: rgba(15, 23, 42, 0.4); border-bottom-color: rgba(51, 65, 85, 0.5); }
.hq-spacer { flex: 1; }
.hq-brand { flex: none; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.hq-brand img { display: block; height: 34px; width: auto; }
.hq-brand .logo-dark { display: none; }
:root[data-theme="dark"] .hq-brand .logo-light { display: none; }
:root[data-theme="dark"] .hq-brand .logo-dark { display: block; }
.hq-brand small { font-size: 12px; font-weight: 700; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 1px 9px; white-space: nowrap; }

/* Find and add, side by side. */
.hq-do { display: flex; align-items: center; gap: var(--s3); flex: 1 1 520px; min-width: 0; max-width: 680px; }
.hq-create { position: relative; flex-shrink: 0; }
.hq-cta {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--brand-grad); color: #fff; font: inherit; font-size: 16px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 10px 15px -3px rgba(124, 58, 237, 0.28), 0 4px 6px -4px rgba(124, 58, 237, 0.28);
  transition: filter .15s ease, transform .15s ease;
}
.hq-cta:hover { filter: brightness(1.07); transform: translateY(-1px); }
.hq-cta svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; }
.hq-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 60; min-width: 250px; padding: 6px;
  background: var(--surface); border: 1px solid var(--glass-edge); border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}
.hq-menu[hidden] { display: none; }
.hq-menu a, .hq-menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 0 var(--s3); border: 0; border-radius: 10px; background: none; color: var(--ink); text-decoration: none; font: inherit; font-size: 15.5px; text-align: start; cursor: pointer; box-shadow: none; }
.hq-menu a:hover, .hq-menu a:focus-visible, .hq-menu button:hover { background: var(--brand-weak); color: var(--brand-600); transform: none; filter: none; }
.hq-menu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.hq-menu form { margin: 0; }

.hq-search {
  position: relative; flex: 3 1 280px; max-width: 460px; min-width: 150px; height: 48px;
  display: flex; align-items: center; gap: var(--s2); padding-inline: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow-sm); color: var(--faint);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.hq-search:focus-within { border-color: #a5b4fc; box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14); }
.hq-search svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; }
.hq-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; box-shadow: none; padding: 0; color: var(--ink); font: inherit; font-size: 15px; }
.hq-search kbd { flex-shrink: 0; }
.hq-panel {
  position: absolute; top: calc(100% + 10px); z-index: 50; width: min(420px, 92vw); max-height: 70vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--glass-edge); border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25); padding: 6px;
}
.hq-panel[hidden] { display: none; }
.hq-search .hq-panel { inset-inline-start: 0; width: 100%; min-width: 320px; }
.hit { display: flex; align-items: center; gap: var(--s3); padding: 8px 10px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
.hit:hover, .hit.is-active { background: var(--brand-weak); }
.hit b { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hit span.hit-sub { font-size: 12.5px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hit .hit-text { flex: 1; min-width: 0; }
.hit .kind { flex-shrink: 0; font-size: 11px; font-weight: 600; color: var(--muted); background: rgba(148, 163, 184, 0.12); border-radius: 999px; padding: 3px 9px; }
.hit-empty { padding: 14px; color: var(--muted); font-size: 14px; }
.hit-all { display: block; padding: 10px; text-align: center; font-weight: 600; border-top: 1px solid var(--border); margin-top: 4px; text-decoration: none; }


/* To know and get help: the bell, the site, a frosted pill of small things, who you are. */
.hq-know { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 999px;
  background: none; color: #334155; cursor: pointer; box-shadow: none; transition: background .15s ease, color .15s ease;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: #fff; color: #4338ca; transform: none; filter: none; }
:root[data-theme="dark"] .icon-btn { color: #cbd5e1; }
:root[data-theme="dark"] .icon-btn:hover, :root[data-theme="dark"] .icon-btn[aria-expanded="true"] { background: rgba(255, 255, 255, 0.1); color: #fff; }
.hq-tool { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 999px; color: #334155; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.hq-tool svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hq-tool:hover { background: #fff; color: #4338ca; }
:root[data-theme="dark"] .hq-tool { color: #cbd5e1; }
:root[data-theme="dark"] .hq-tool:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.hq-prefs { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.75); }
:root[data-theme="dark"] .hq-prefs { background: rgba(30, 41, 59, 0.6); border-color: rgba(100, 116, 139, 0.35); }
.hq-clock { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; color: #1e293b; }
.hq-clock svg { width: 20px; height: 20px; fill: none; stroke: #4f46e5; stroke-width: 1.9; stroke-linecap: round; }
.hq-clock time { font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.hq-clock span { display: none; }
:root[data-theme="dark"] .hq-clock { color: #f1f5f9; }
:root[data-theme="dark"] .hq-clock svg { stroke: #a5b4fc; }
.hq-theme .moon { display: none; }
:root[data-theme="dark"] .hq-theme .sun { display: none; }
:root[data-theme="dark"] .hq-theme .moon { display: block; }
.hq-bell { position: relative; }
.hq-bell .dot {
  position: absolute; top: -3px; inset-inline-end: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: linear-gradient(135deg, #f43f5e, #e11d48); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface);
}
.hq-bell .hq-panel { inset-inline-end: 0; }
.bell-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 6px; font-weight: 800; }
.bell-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.bell-item:hover { background: var(--brand-weak); }
.bell-item i { width: 9px; height: 9px; border-radius: 50%; margin-top: 7px; flex-shrink: 0; background: var(--muted); }
.bell-item i.t-bad { background: var(--danger); } .bell-item i.t-warn { background: var(--warn); } .bell-item i.t-info { background: var(--info); } .bell-item i.t-ok { background: var(--success); }
.bell-item small { display: block; color: var(--muted); font-size: 12.5px; }
.bell-sep { font-size: 12px; font-weight: 700; color: var(--muted); padding: 8px 12px 2px; }
.hq-account { position: relative; }
.hq-avatar-btn { position: relative; overflow: hidden; display: grid; place-items: center; width: 44px; height: 44px; margin-inline-start: 6px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: var(--brand-grad); color: #fff; font: inherit; font-weight: 800; font-size: 18px; box-shadow: none; }
.hq-avatar-btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.hq-me { inset-inline-start: auto; inset-inline-end: 0; min-width: 280px; }
.hq-me-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.hq-me-head b { display: block; font-size: 15px; }
.hq-me-head small { display: block; color: var(--muted); font-size: 12.5px; }
.hq-me .hq-logout { color: var(--danger); }
.hq-me .hq-logout:hover { background: var(--danger-weak); color: var(--danger); }
.hq-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; flex-shrink: 0;
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; color: #fff; border-radius: 999px; background: #b91c1c;
}
.hq-badge.is-soft { background: var(--warn); }
:root[data-theme="dark"] .hq-badge.is-soft { color: #1c1406; }
kbd {
  display: inline-block; min-width: 20px; padding: 1px 6px; text-align: center;
  font: 600 12px/18px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink);
  background: rgba(255, 255, 255, 0.7); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px;
}
:root[data-theme="dark"] kbd { background: rgba(255, 255, 255, 0.06); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-weak); color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: .02em;
}
.avatar.is-solid { background: var(--brand-grad); color: #fff; }
:root[data-theme="dark"] .avatar.is-solid { background: var(--brand-solid); }
.avatar.is-lg { width: 64px; height: 64px; font-size: 22px; }

/* ── The area's screens, across the top, under one sliding gradient line ── */
.area-nav {
  position: sticky; top: 0; z-index: 30; padding: 2px var(--s6) 0;
  background: rgba(255, 255, 255, 0.4); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}
:root[data-theme="dark"] .area-nav { background: rgba(15, 23, 42, 0.45); border-bottom-color: rgba(51, 65, 85, 0.5); }
.area-nav__tabs { position: relative; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.area-nav__tabs::-webkit-scrollbar { display: none; }
.area-nav__tab {
  position: relative; display: flex; align-items: center; gap: 6px; flex-shrink: 0; height: 38px; padding: 0 12px; margin-bottom: -1px;
  border-radius: 12px 12px 0 0; color: var(--muted); font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.area-nav__tab:hover { color: var(--ink); background: rgba(255, 255, 255, 0.55); }
:root[data-theme="dark"] .area-nav__tab:hover { background: rgba(255, 255, 255, 0.06); }
.area-nav__tab.is-active { color: #4338ca; font-weight: 700; }
:root[data-theme="dark"] .area-nav__tab.is-active { color: #c7d2fe; }
.area-nav__tab:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }

/* ── The floating bar of areas, like Shopify's; Pulse raised in the middle ── */
.hq-body { flex: 1; padding: var(--s6); max-width: 1600px; width: 100%; margin-inline: auto; display: grid; gap: var(--s5); align-content: start; }
.has-dock .hq-body { padding-bottom: calc(var(--dock-h) + var(--dock-gap) * 2 + env(safe-area-inset-bottom, 0px)); scroll-padding-bottom: calc(var(--dock-h) + var(--dock-gap) * 2 + 24px); }
.dock {
  display: flex; align-items: center; gap: 4px;
  position: fixed; z-index: 58; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--dock-gap) + env(safe-area-inset-bottom, 0px));
  max-width: calc(100vw - 2 * var(--dock-gap)); padding: 6px; border-radius: 24px;
  background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(255, 255, 255, 0.75); border-top-color: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.3), 0 2px 6px rgba(15, 23, 42, 0.08);
}
:root[data-theme="dark"] .dock { background: rgba(15, 23, 42, 0.62); border-color: rgba(148, 163, 184, 0.22); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6); }
.dock-item {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 2px;
  min-width: 84px; min-height: 56px; padding: 6px 12px; border: 0; border-radius: 18px;
  background: none; color: #334155; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; box-shadow: none;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.dock-item:hover { background: rgba(255, 255, 255, 0.75); color: #1e293b; transform: none; filter: none; }
.dock-item.is-active { background: #fff; color: #3730a3; font-weight: 800; box-shadow: 0 4px 12px -4px rgba(79, 70, 229, 0.35); }
.dock-icon { position: relative; display: inline-grid; place-items: center; height: 26px; }
.dock-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dock-item.is-active .dock-icon { color: #4f46e5; }
.dock-icon .hq-badge { position: absolute; top: -8px; inset-inline-end: -14px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9); }
.dock-item:focus-visible { outline: 3px solid #4f46e5; outline-offset: 1px; }
:root[data-theme="dark"] .dock-item { color: #cbd5e1; }
:root[data-theme="dark"] .dock-item:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
:root[data-theme="dark"] .dock-item.is-active { background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: none; }
:root[data-theme="dark"] .dock-item.is-active .dock-icon { color: #a5b4fc; }
:root[data-theme="dark"] .dock-icon .hq-badge { box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.9); }
.dock-more { position: relative; display: none; }
.dock-more .hq-menu { top: auto; bottom: calc(100% + 14px); inset-inline-start: auto; inset-inline-end: 0; min-width: 200px; }
.dock-pulse {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 2px;
  min-width: 84px; min-height: 56px; padding: 0 8px; color: #6d28d9; font-size: 14px; font-weight: 700; text-decoration: none;
}
:root[data-theme="dark"] .dock-pulse { color: #e9d5ff; }
.dock-orb {
  position: relative; display: grid; place-items: center; width: 54px; height: 54px; margin-top: -26px; border-radius: 18px; color: #fff;
  background: radial-gradient(70% 60% at 28% 20%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 70%), linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #d946ef 100%);
  box-shadow: 0 10px 22px -6px rgba(168, 85, 247, 0.6), 0 0 0 4px rgba(255, 255, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease;
}
:root[data-theme="dark"] .dock-orb { box-shadow: 0 10px 24px -6px rgba(168, 85, 247, 0.7), 0 0 0 4px rgba(15, 23, 42, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
/* The logo's sparkle, off the corner. */
.dock-orb::after { content: ''; position: absolute; top: -7px; right: -7px; width: 15px; height: 15px; background: #f0abfc; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); filter: drop-shadow(0 0 3px rgba(232, 121, 249, .9)); }
.dock-pulse:hover .dock-orb, .dock-pulse.is-active .dock-orb { transform: translateY(-3px) rotate(-4deg); box-shadow: 0 16px 28px -8px rgba(236, 72, 153, 0.6), 0 0 0 4px rgba(255, 255, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.dock-pulse:focus-visible { outline: none; }
.dock-pulse:focus-visible .dock-orb { outline: 3px solid #4f46e5; outline-offset: 4px; }
.pf { position: relative; inline-size: 100%; block-size: 100%; }
.pf-eyes { position: absolute; inset-inline: 0; top: 28%; display: flex; justify-content: center; gap: 17%; direction: ltr; }
.pf-eyes i { position: relative; inline-size: 17%; aspect-ratio: 12 / 23; border-radius: 7px / 9px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(49, 10, 101, .4), inset 0 -1.5px 0 rgba(199, 210, 254, .55); transform-origin: 50% 60%; }
.pf-eyes i::before { content: ''; position: absolute; left: 25%; top: 36%; inline-size: 50%; block-size: 37%; border-radius: 40%; background: #1e1b4b; }
.pf-eyes i::after { content: ''; position: absolute; left: 35%; top: 41%; inline-size: 18%; aspect-ratio: 1; border-radius: 50%; background: #fff; }
.pf-mouth { position: absolute; left: 31%; top: 61%; inline-size: 38%; overflow: visible; }
.pf-mouth path { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .dock { animation: dock-in .4s cubic-bezier(.16, 1, .3, 1); }
  @keyframes dock-in { from { transform: translate(-50%, 24px); } to { transform: translate(-50%, 0); } }
  .dock-item:active { transform: scale(.96); }
  .dock-icon { transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
  .dock-item:hover .dock-icon { transform: translateY(-3px) scale(1.08); }
  .pf-eyes i { animation: pf-blink 7s infinite; }
  @keyframes pf-blink { 0%, 90%, 93%, 95%, 100% { scale: 1 1; } 91.5%, 96.5% { scale: 1 .1; } }
}

@media (max-width: 1240px) { .hq-site span { display: none; } .hq-search kbd { display: none; } }
@media (max-width: 1080px) { .hq-top, .area-nav { padding-inline: var(--s4); } .hq-clock { display: none; } .hq-brand small { display: none; } }
@media (max-width: 860px) { .hq-body { padding: var(--s4); gap: var(--s4); } .hq-site { display: none; } }
/* A phone: two rows on top (the logo with the quick buttons, then search and "+"); four areas, Pulse and "עוד" below. */
@media (max-width: 599px) {
  :root { --dock-gap: 12px; }
  .hq-top { flex-wrap: wrap; height: auto; row-gap: 8px; padding: 10px var(--s3); }
  .hq-brand { order: 1; } .hq-spacer { order: 2; } .hq-know { order: 3; }
  .hq-do { order: 4; flex: 1 0 100%; gap: var(--s2); }
  .hq-brand img { height: 28px; }
  .hq-cta { width: 48px; padding: 0; justify-content: center; }
  .hq-cta span { display: none; }
  .hq-cta svg { width: 22px; height: 22px; }
  .hq-search { height: 44px; }
  .hq-search input::placeholder { color: transparent; }
  .hq-search .hq-panel { min-width: 0; width: calc(100vw - 24px); }
  .hq-keys-btn { display: none; }
  .area-nav { padding-inline: var(--s3); }
  .dock { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; left: var(--dock-gap); right: var(--dock-gap); transform: none; max-width: none; padding: 4px; border-radius: 22px; }
  @keyframes dock-in { from { transform: translateY(24px); } to { transform: none; } }
  .dock-item { min-width: 0; min-height: 56px; padding: 4px 0; font-size: 11px; letter-spacing: -0.02em; overflow: hidden; text-overflow: clip; white-space: nowrap; }
  .dock-item.is-wide { display: none; }
  .dock-more { display: contents; }
  .dock-more > .hq-menu { position: fixed; bottom: calc(var(--dock-h) + var(--dock-gap) * 2 + 6px); inset-inline-end: var(--dock-gap); }
  .dock-pulse { min-width: 0; padding: 0; font-size: 11.5px; }
  .dock-orb { width: 50px; height: 50px; margin-top: -24px; border-radius: 16px; }
  .dock-icon .hq-badge { inset-inline-end: -12px; }
}
@media (hover: none) { .hq-search kbd { display: none; } }

/* ── Page heading ─────────────────────────────────────────────────────── */
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: calc(var(--s5) * -0.5); }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; } .crumbs a:hover { color: var(--brand); }
.top, .page-head { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.top h1, .page-head h1 { font-size: clamp(24px, 2.6vw, 30px); margin: 0; font-weight: 800; letter-spacing: -0.025em; }
:root[data-theme="dark"] .top h1, :root[data-theme="dark"] .page-head h1 { background: var(--head-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head .ph-text { display: grid; gap: 2px; min-width: 0; }
.page-head .ph-sub { margin: 0; color: var(--muted); font-size: 16px; }
.page-head .ph-who { display: flex; align-items: center; gap: var(--s4); min-width: 0; }
.top .sp, .page-head .sp { flex: 1; }
.page-head .ph-actions { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }

/* ── Panels ───────────────────────────────────────────────────────────── */
.card {
  background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid var(--glass-edge); border-radius: var(--radius); padding: var(--s5); box-shadow: var(--shadow); min-width: 0;
}
:root[data-theme="dark"] .card { -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px); }
.card h2 { font-size: 18px; margin: 0 0 var(--s4); font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card h2 .sp { flex: 1; } .card h2 small { font-weight: 500; color: var(--muted); font-size: 14px; }
.card .card-sub { margin: calc(var(--s4) * -0.75) 0 var(--s4); color: var(--muted); font-size: 14px; }
.card--inv {
  color: #fff; border-color: rgba(255, 255, 255, 0.14);
  background: radial-gradient(420px 260px at 0% 0%, rgba(236, 72, 153, 0.35), transparent 70%), linear-gradient(235deg, #3730a3 0%, #5b21b6 55%, #86198f 100%);
  box-shadow: 0 25px 50px -12px rgba(91, 33, 182, 0.4);
}
.card--inv .muted, .card--inv small { color: rgba(255, 255, 255, 0.8); }
.card--inv a { color: #fff; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); align-items: start; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); align-items: start; }
.grid-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
@media (max-width: 1100px) { .grid3, .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-2-1 { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .grid2, .grid3, .grid4 { grid-template-columns: minmax(0, 1fr); } }

/* ── KPI tiles ────────────────────────────────────────────────────────── */
.kpis, .kpi-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s4); }
.kpi {
  position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow: hidden;
  padding: var(--s4) var(--s5); border-radius: var(--radius); text-decoration: none; color: inherit;
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  transition: box-shadow .2s ease, transform .2s ease, background .2s ease;
}
@media (hover: hover) { a.kpi:hover { transform: translateY(-2px); background: var(--glass-strong); box-shadow: var(--shadow-lg); } }
.kpi > span, .kpi .kpi-label { font-size: 14px; color: var(--muted); font-weight: 500; }
.kpi > b, .kpi .kpi-n { font-family: 'Rubik', sans-serif; font-size: 28px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi > small, .kpi .kpi-meta { font-size: 12.5px; color: var(--muted); }
.kpi-top { display: flex; align-items: center; gap: var(--s3); }
.kpi-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.kpi-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tone-brand { background: var(--brand-weak); color: var(--brand); }
.tone-ok { background: var(--success-weak); color: var(--success); }
.tone-warn { background: var(--warn-weak); color: var(--warn); }
.tone-bad { background: var(--danger-weak); color: var(--danger); }
.tone-info { background: var(--info-weak); color: var(--info); }
.kpi-delta { font-weight: 700; font-size: 12.5px; border-radius: 6px; padding: 0 6px; }
.kpi-delta.up { color: var(--success); background: var(--success-weak); } .kpi-delta.down { color: var(--danger); background: var(--danger-weak); }
.kpi-spark { display: block; margin: 4px calc(var(--s5) * -1) calc(var(--s4) * -1); height: 34px; }
.kpi-spark svg { display: block; width: 100%; height: 34px; }
.kpi--inv { color: #fff; border-color: rgba(255, 255, 255, 0.14); background: radial-gradient(420px 260px at 0% 0%, rgba(236, 72, 153, 0.35), transparent 70%), linear-gradient(235deg, #3730a3 0%, #5b21b6 55%, #86198f 100%); box-shadow: 0 25px 50px -12px rgba(91, 33, 182, 0.4); }
.kpi--inv > span, .kpi--inv .kpi-label, .kpi--inv > small, .kpi--inv .kpi-meta { color: rgba(255, 255, 255, 0.85); }
.kpi--inv .kpi-icon { background: rgba(255, 255, 255, 0.16); color: #fff; }
/* One joined strip: the customers screen's look (several figures, one panel). */
.kpi-join { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--glass); border: 1px solid var(--glass-edge); border-radius: var(--radius); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); overflow: hidden; }
.kpi-join > div { padding: var(--s4) var(--s5); display: grid; gap: 2px; border-inline-start: 1px solid rgba(148, 163, 184, 0.18); min-width: 0; }
.kpi-join > div:first-child { border-inline-start: 0; }
.kpi-join span { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.kpi-join b { font-family: 'Rubik', sans-serif; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.kpi-join small { font-size: 12px; color: var(--muted); }

/* ── Tabs, list bar ───────────────────────────────────────────────────── */
.segmented { display: inline-flex; flex-wrap: wrap; gap: 2px; background: rgba(241, 245, 249, 0.85); border-radius: 14px; padding: 4px; max-width: 100%; }
:root[data-theme="dark"] .segmented { background: rgba(255, 255, 255, 0.05); }
.segmented a, .segmented button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: 10px; border: 0; background: none;
  color: var(--muted); font: inherit; font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: none;
}
.segmented a:hover, .segmented button:hover { color: var(--ink); filter: none; transform: none; }
.segmented .is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1); }
:root[data-theme="dark"] .segmented .is-active { background: rgba(255, 255, 255, 0.1); color: #fff; }
.segmented .n { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.segmented .has-work .n { background: var(--warn); color: #fff; border-radius: 999px; padding: 1px 6px; font-size: 11px; }
:root[data-theme="dark"] .segmented .has-work .n { color: #1c1406; }
.listbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.listbar .sp { flex: 1; }
.lsearch { position: relative; display: flex; align-items: center; flex: 1 1 220px; max-width: 340px; min-width: 200px; }
.lsearch svg { position: absolute; inset-inline-start: 14px; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; pointer-events: none; }
.lsearch input { min-height: 42px; padding-inline: 42px 14px; border-radius: 14px; background: var(--glass-strong); border-color: var(--glass-edge); }
.listbar select { width: auto; min-height: 42px; border-radius: 14px; background: var(--glass-strong); border-color: var(--glass-edge); }
.listbar form { display: contents; }

/* ── Tables ───────────────────────────────────────────────────────────── */
.tbl, .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap { background: var(--glass-strong); border: 1px solid var(--glass-edge); border-radius: 20px; box-shadow: var(--shadow); }
.card > .tbl { margin: 0 calc(var(--s5) * -1); padding: 0 var(--s2); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
th, td { text-align: start; padding: 12px 14px; border-bottom: 1px solid rgba(148, 163, 184, 0.16); vertical-align: middle; }
th { color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; background: rgba(241, 245, 249, 0.75); border-bottom: 0; padding-block: 14px; }
:root[data-theme="dark"] th { background: rgba(255, 255, 255, 0.03); }
thead th:first-child { border-start-start-radius: 12px; border-end-start-radius: 12px; } thead th:last-child { border-start-end-radius: 12px; border-end-end-radius: 12px; }
tr:last-child td { border-bottom: 0; }
td.n { white-space: nowrap; }
tbody tr { transition: background .12s ease; }
tbody tr:hover td { background: rgba(99, 102, 241, 0.045); }
:root[data-theme="dark"] tbody tr:hover td { background: rgba(129, 140, 248, 0.07); }
tr[data-href] { cursor: pointer; }
td a.row-link { color: var(--ink); font-weight: 700; text-decoration: none; } td a.row-link:hover { color: var(--brand); }
.who { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.who-text { display: flex; flex-direction: column; min-width: 0; }
.who-sub { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding-top: var(--s4); color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.pager .row { gap: 6px; }

/* ── Pills ────────────────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; padding: 2px 10px; font-size: 13px; font-weight: 600; white-space: nowrap; line-height: 1.5;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 22%, transparent);
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.card label .pill, .card summary .pill, .top .pill { white-space: normal; } /* a long status beside a checkbox or in a fold wraps instead of widening the page */
.t-ok { background: var(--success-weak); color: var(--success); } .t-bad { background: var(--danger-weak); color: var(--danger); }
.t-warn { background: var(--warn-weak); color: var(--warn); } .t-info { background: var(--info-weak); color: var(--info); }
.t-muted { background: rgba(148, 163, 184, 0.12); color: var(--muted); }
.score { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.score span { width: 64px; height: 6px; border-radius: 6px; background: rgba(148, 163, 184, 0.25); position: relative; overflow: hidden; }
.score span::after { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--v) * 1%); border-radius: 6px; background: hsl(calc(var(--v) * 1.2), 70%, 42%); }
.score b { font-size: 13px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.tag { background: var(--brand-weak); color: var(--brand); border-radius: 999px; padding: 1px 10px; font-size: 12.5px; font-weight: 600; }

/* ── Forms + buttons ──────────────────────────────────────────────────── */
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 12px; width: 100%; box-shadow: var(--shadow-sm); transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #a5b4fc; box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14); }
input[type="checkbox"], input[type="radio"] { width: auto; box-shadow: none; accent-color: var(--brand-solid); }
textarea { min-height: 90px; resize: vertical; }
label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 0 18px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
  background: var(--brand-grad); color: #fff;
  box-shadow: 0 10px 15px -3px rgba(124, 58, 237, 0.25), 0 4px 6px -4px rgba(124, 58, 237, 0.25);
  transition: filter .15s ease, transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
:root[data-theme="dark"] button:not(.btn-ghost):not(.icon-btn):not(.dock-item):not(.hq-avatar-btn):not(.hq-logout):not(.hq-cta):not(.pw-chip):not(.pw-topic):not(.btn-danger),
:root[data-theme="dark"] .btn:not(.btn-ghost):not(.btn-danger) { background: var(--brand-solid); }
button:hover, .btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: #c7d2fe; color: var(--brand-600); filter: none; }
:root[data-theme="dark"] .btn-ghost:hover { border-color: rgba(129, 140, 248, 0.45); }
.btn-danger { background: var(--surface); color: var(--danger); border-color: #fecaca; box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .btn-danger { border-color: rgba(248, 113, 113, 0.35); }
.btn-danger:hover { background: var(--danger-weak); filter: none; }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 14px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .row form { margin: 0; }
.stack { display: grid; gap: 12px; align-content: start; }
form.search { display: flex; gap: 8px; } form.search input { min-width: 240px; }

/* ── Messages ─────────────────────────────────────────────────────────── */
.flash { margin: 0; background: color-mix(in srgb, var(--success-weak) 88%, transparent); color: var(--success); border-radius: 16px; padding: 12px 16px; font-weight: 600; border: 1px solid color-mix(in srgb, var(--success) 22%, transparent); overflow-wrap: anywhere; }
.flash.err { background: color-mix(in srgb, var(--danger-weak) 88%, transparent); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 22%, transparent); }
.empty { color: var(--muted); padding: 6px 0; }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: var(--s6) var(--s4); }
.empty-state .ei { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--brand-weak); color: var(--brand); }
.empty-state .ei svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.empty-state b { font-size: 17px; } .empty-state p { margin: 0; max-width: 46ch; color: var(--muted); }

/* ── Lists that already existed ───────────────────────────────────────── */
.todo { display: grid; gap: 8px; }
.todo a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--glass-strong); text-decoration: none; color: var(--ink); border: 1px solid var(--glass-edge); transition: border-color .15s ease, transform .15s ease; font-weight: 500; }
.todo a b { font-variant-numeric: tabular-nums; min-width: 30px; text-align: center; }
.todo a::after { content: '›'; margin-inline-start: auto; color: var(--muted); font-size: 20px; line-height: 1; }
.todo a:hover { border-color: #c7d2fe; transform: translateY(-1px); }
.timeline { display: grid; font-size: 14px; }
.timeline > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(148, 163, 184, 0.3); }
.timeline > div:last-child { border-bottom: 0; }
.timeline time { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .timeline > div { grid-template-columns: 1fr; gap: 2px; } }
details.act { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
details.act summary { cursor: pointer; padding: 11px 14px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; }
details.act summary::-webkit-details-marker { display: none; }
details.act summary::after { content: '▾'; margin-inline-start: auto; color: var(--muted); }
details.act[open] summary::after { content: '▴'; }
details.act[open] { border-color: #c7d2fe; box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08); }
details.act .in { padding: 0 14px 14px; display: grid; gap: 10px; }
details.act.danger summary { color: var(--danger); }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; font-size: 14.5px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.bars { display: grid; gap: 10px; }
.bars > div { display: grid; grid-template-columns: 120px minmax(0, 1fr) 90px; gap: 10px; align-items: center; font-size: 14px; }
.bars i { display: block; height: 10px; border-radius: 6px; background: var(--brand-grad); min-width: 2px; }
.funnel { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; }
.funnel > div { background: var(--glass-strong); border-radius: 16px; padding: 14px; border: 1px solid var(--glass-edge); position: relative; }
.funnel b { display: block; font-family: 'Rubik', sans-serif; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.funnel small { color: var(--muted); }
.funnel em { position: absolute; top: 10px; inset-inline-end: 12px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--brand); }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 15px; letter-spacing: 2px; background: rgba(148, 163, 184, 0.14); border-radius: 10px; padding: 10px; text-align: center; word-break: break-all; direction: ltr; }
pre { background: rgba(148, 163, 184, 0.1); border-radius: 12px; padding: 12px; overflow: auto; }

/* ── Trend chart (server-drawn SVG; labels are HTML so RTL never flips them) ── */
.chart { display: grid; gap: var(--s3); }
.chart-head { display: flex; align-items: flex-start; gap: var(--s4); flex-wrap: wrap; }
.chart-head .big { font-family: 'Rubik', sans-serif; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.chart-legend { display: flex; gap: var(--s4); font-size: 13px; color: var(--muted); flex-wrap: wrap; align-items: center; }
.chart-legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-inline-end: 6px; background: var(--viz-1); }
.chart-legend i.prev { background: none; border-top: 2px dashed var(--viz-prev); height: 0; }
.chart-plot { position: relative; direction: ltr; }
.chart-plot svg { display: block; width: 100%; height: 220px; overflow: visible; }
.chart-plot .grid { stroke: var(--viz-grid); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-plot .line { fill: none; stroke: var(--viz-1); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.chart-plot .prev { fill: none; stroke: var(--viz-prev); stroke-width: 1.6; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.chart-plot .area { fill: url(#hq-area); }
.chart-plot .ymax { position: absolute; top: -4px; left: 0; font-size: 12px; color: var(--viz-axis); background: var(--surface); padding: 0 4px; border-radius: 4px; }
.chart-x { display: flex; justify-content: space-between; direction: ltr; font-size: 12px; color: var(--viz-axis); font-variant-numeric: tabular-nums; }
.chart-hit { position: absolute; inset: 0; display: flex; }
.chart-hit span { flex: 1; position: relative; }
.chart-hit span:hover::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); white-space: nowrap; direction: ltr; background: #0f172a; color: #f1f5f9; font-size: 12.5px; padding: 6px 10px; border-radius: 10px; z-index: 5; pointer-events: none; }
:root[data-theme="dark"] .chart-hit span:hover::after { background: #e2e8f0; color: #0f172a; }
.chart-hit span:hover::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px dashed var(--viz-axis); }
.chart-tabs { margin-inline-start: auto; }

/* ── Profile header (merchant / store card) ───────────────────────────── */
.profile { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.profile .ph-text { flex: 1; min-width: 200px; }
.profile .pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.quick { display: flex; gap: var(--s2); flex-wrap: wrap; }

/* Chrome buttons are buttons, not the page's primary action: none of the primary look. */
.icon-btn, .hq-avatar-btn, .segmented button { min-height: 0; box-shadow: none; padding-block: 0; }
.icon-btn, .hq-avatar-btn { padding: 0; border: 0; }
.hq-avatar-btn { padding: 3px; }
.dock-item { border: 0; }
.hq-menu button { min-height: 42px; padding: 0 var(--s3); border: 0; box-shadow: none; justify-content: flex-start; font-weight: 400; }
.hq-cta { min-height: 44px; }

/* ── Dialog for keyboard shortcuts ────────────────────────────────────── */
dialog.hq-dialog { border: 1px solid var(--glass-edge); border-radius: var(--radius); background: var(--surface); color: var(--ink); padding: var(--s5); width: min(520px, 92vw); box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35); }
dialog.hq-dialog::backdrop { background: rgba(15, 23, 42, 0.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.hq-dialog h2 { margin: 0 0 var(--s4); font-size: 20px; }
.keys { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; font-size: 14.5px; align-items: center; }

/* ── Sign-in pages ────────────────────────────────────────────────────── */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth .card { width: 100%; max-width: 420px; display: grid; gap: 14px; padding: 32px; background: var(--glass-strong); }
.auth .hq-brand { padding: 0; justify-content: center; }
.auth h1 { margin: 0; font-size: 22px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .hq-top, .area-nav, .dock { display: none; } }
.btn svg, button svg, .todo svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
/* Phone: figures two to a row (the coloured one across), like the store's strip — five tiles stacked pushed the chart a screen and a half down. */
@media (max-width: 600px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpis .kpi--inv { grid-column: 1 / -1; }
  .kpi { padding: 12px 14px; }
  .kpi > b, .kpi .kpi-n { font-size: 22px; }
  .kpi-icon { width: 32px; height: 32px; border-radius: 10px; }
  .kpi-icon svg { width: 16px; height: 16px; }
  .kpi-spark { margin: 2px -14px -12px; }
  .kpi-join { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-join > div { border-inline-start: 0; border-top: 1px solid rgba(148, 163, 184, 0.18); padding: 12px 14px; }
  .kpi-join > div:nth-child(-n+2) { border-top: 0; }
  .kpi-join > div:nth-child(even) { border-inline-start: 1px solid rgba(148, 163, 184, 0.18); }
  .page-head .ph-actions { width: 100%; }
  .segmented { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .listbar { flex-direction: column; align-items: stretch; }
  .listbar .segmented { max-width: 100%; }
  .lsearch { max-width: none; }
  .chart-plot svg { height: 160px; }
  .card { padding: 16px; border-radius: 20px; }
  .card > .tbl { margin: 0 -16px; }
}
/* Grid children default to min-content width: one unwrapping row of tabs then pushed the whole page sideways on a phone. */
.hq-body, .chart, .stack { grid-template-columns: minmax(0, 1fr); }
.chart-head > *, .chart-tabs { min-width: 0; max-width: 100%; }
.page-head > *, .listbar > * { min-width: 0; max-width: 100%; }
@media (max-width: 600px) { .listbar .sp { display: none; } .listbar select { width: 100%; } }
/* In a column, flex-basis is a height: the search box was 220px tall. */
@media (max-width: 600px) { .lsearch { flex: none; } }

/* Arriving from "+ חדש": the card asked for is marked for a moment. */
.card:target { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35), var(--shadow); scroll-margin-top: 100px; }

/* ── Work queue ───────────────────────────────────────────────────────── */
.q-list { display: grid; gap: 10px; }
.q-item { display: flex; gap: var(--s4); align-items: center; padding: 14px 18px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-sm); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); outline: none; }
.q-item.is-cur { border-color: #a5b4fc; box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14), var(--shadow); }
.q-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.q-title { color: var(--ink); font-weight: 700; font-size: 16px; text-decoration: none; }
.q-title:hover { color: var(--brand); }
.q-why { margin: 0; color: var(--muted); font-size: 14px; }
.q-value { font-family: 'Rubik', sans-serif; font-weight: 800; font-size: 13px; color: var(--success); background: var(--success-weak); border-radius: 8px; padding: 1px 8px; white-space: nowrap; }
.q-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.q-acts form { margin: 0; }
@media (max-width: 700px) { .q-item { flex-direction: column; align-items: stretch; } .q-acts { justify-content: flex-start; } }

/* ── Briefing on "today" ──────────────────────────────────────────────── */
.brief { display: grid; gap: 12px; }
.brief-head { display: flex; gap: 12px; align-items: center; }
.brief-head b { font-size: 17px; }
.brief .todo a { align-items: flex-start; }
.brief .todo a .pill { margin-top: 2px; }

/* ── Ready to go live ─────────────────────────────────────────────────── */
.ready-hero { display: flex; align-items: center; gap: var(--s5); }
.ring { --p: 0; width: 92px; height: 92px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: conic-gradient(var(--brand-solid) calc(var(--p) * 1%), rgba(148, 163, 184, 0.22) 0); }
.ring b { width: 72px; height: 72px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-family: 'Rubik', sans-serif; font-size: 20px; }
.ready { display: grid; grid-template-columns: minmax(0, 1fr); }
.ready-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 0; border-bottom: 1px dashed rgba(148, 163, 184, 0.3); }
.ready-row:last-child { border-bottom: 0; }
.ready-row form { margin: 0; }
.ready-dot { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--border-strong); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; }
.ready-row.is-ok .ready-dot { background: var(--success); border-color: var(--success); }
.ready-row.is-bad .ready-dot { background: var(--danger); border-color: var(--danger); }
.ready-row.is-bad b { color: var(--danger); }
:root[data-theme="dark"] .ready-row.is-ok .ready-dot { color: #0b1121; }
.ready-row.is-unknown .ready-dot { border-style: dashed; color: var(--muted); }
.ready-dot svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; }
.ready-text { flex: 1 1 160px; min-width: 0; display: grid; gap: 2px; }
.ready-row.is-ok .ready-text b { color: var(--muted); font-weight: 600; }

/* ── Bulk bar on the merchants list ───────────────────────────────────── */
th.chk, td.chk { width: 40px; padding-inline-end: 0; }
.bulk { position: sticky; bottom: 16px; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--glass-edge); box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35); }
.bulk[hidden] { display: none; }
.bulk span[data-for] { display: contents; }
.bulk span[data-for][hidden] { display: none; }
.bulk input { width: auto; flex: 1 1 140px; }

/* ── Staff, timeline filter ───────────────────────────────────────────── */
.staff-row { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px dashed rgba(148, 163, 184, 0.3); }
.staff-row:last-child { border-bottom: 0; }
label.perm { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.tl-filter { flex-wrap: wrap; }
.timeline > div[hidden] { display: none; }

/* ── פולס ─────────────────────────────────────────────────────────────── */
.pl { display: grid; gap: 14px; }
.pl-log { display: grid; gap: 12px; max-height: min(62vh, 720px); overflow-y: auto; padding: 4px; }
.pl-msg { max-width: min(760px, 92%); padding: 12px 16px; border-radius: 18px 18px 18px 6px; background: var(--glass-strong); border: 1px solid var(--glass-edge); justify-self: end; }
.pl-msg.is-me { justify-self: start; background: var(--brand-weak); border-color: transparent; border-radius: 18px 18px 6px 18px; }
.pl-msg p { margin: 0 0 6px; } .pl-msg p:last-child { margin-bottom: 0; }
.pl-msg ul { margin: 4px 0 6px; padding-inline-start: 20px; }
.pl-tools { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.pl-note { text-align: center; color: var(--muted); font-size: 13px; margin: 0; }
.pl-empty { display: grid; gap: 4px; justify-items: center; }
.pl-suggest { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 720px; }
.pl-form { display: flex; gap: 10px; align-items: flex-end; }
.pl-form textarea { min-height: 52px; resize: vertical; }
.pl-thinking { justify-self: end; color: var(--muted); font-size: 14px; }
.pl-thinking::after { content: '…'; animation: pl-dots 1.2s steps(3) infinite; display: inline-block; width: 1.2em; overflow: hidden; vertical-align: bottom; }
@keyframes pl-dots { from { width: 0; } to { width: 1.2em; } }

/* Milestones: five dots instead of a guessed 0–100 score. */
.ms { display: inline-flex; align-items: center; gap: 4px; }
.ms i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--border-strong); }
.ms i.on { background: var(--success); border-color: var(--success); }
.ms b { font-size: 12.5px; margin-inline-start: 4px; font-variant-numeric: tabular-nums; }
.ms-list { display: grid; gap: 4px; font-size: 13px; }
.ms-list span::before { content: '○ '; color: var(--muted); }
.ms-list span.on::before { content: '✓ '; color: var(--success); font-weight: 800; }

.north { display: flex; gap: 16px; align-items: center; text-decoration: none; color: inherit; }
.north-label { font-weight: 600; color: var(--muted); }
.north-n { font-family: 'Rubik', sans-serif; font-size: 34px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hq-menu a .hq-badge { margin-inline-start: auto; }

/* ── Waise until today: the top of "today" (17.10.2026) ──────────────── */
.wp { display: grid; gap: var(--s5); }
.wp-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: var(--s5); align-items: stretch; }
.wp-hero {
  position: relative; overflow: hidden; padding: var(--s5) var(--s6) var(--s6); border-radius: var(--radius); color: #fff;
  background: radial-gradient(520px 300px at 0% 0%, rgba(236, 72, 153, 0.38), transparent 70%), radial-gradient(420px 260px at 100% 100%, rgba(56, 189, 248, 0.22), transparent 70%), linear-gradient(235deg, #3730a3 0%, #5b21b6 55%, #86198f 100%);
  border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 25px 50px -12px rgba(91, 33, 182, 0.4);
}
.wp-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.5), transparent), radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,.4), transparent), radial-gradient(1.5px 1.5px at 85% 70%, rgba(255,255,255,.35), transparent); }
.wp-hero-head { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s5); }
.wp-title { display: inline-flex; align-items: center; gap: 8px; font-family: 'Rubik', sans-serif; font-size: 20px; font-weight: 800; }
.wp-title svg { width: 22px; height: 22px; fill: none; stroke: #f0abfc; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wp-since { margin-inline-start: auto; font-size: 13.5px; color: rgba(255, 255, 255, 0.8); background: rgba(255, 255, 255, 0.12); border-radius: 999px; padding: 3px 12px; }
.wp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.wp-stat { display: grid; gap: 4px; align-content: start; min-width: 0; padding-inline-start: var(--s4); border-inline-start: 1px solid rgba(255, 255, 255, 0.16); }
.wp-stat:first-child { padding-inline-start: 0; border-inline-start: 0; }
.wp-ic { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: rgba(255, 255, 255, 0.16); }
.wp-ic svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wp-label { font-size: 14px; color: rgba(255, 255, 255, 0.82); font-weight: 600; }
.wp-n { font-family: 'Rubik', sans-serif; font-size: clamp(30px, 3.2vw, 42px); font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp-gain { justify-self: start; font-size: 12.5px; font-weight: 700; color: #bbf7d0; background: rgba(16, 185, 129, 0.22); border-radius: 999px; padding: 2px 10px; }
.wp-gain.is-zero { color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.1); }
.wp-next { display: grid; gap: 4px; margin-top: 6px; }
.wp-next i { display: block; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); position: relative; overflow: hidden; }
.wp-next i::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--v); border-radius: inherit; background: linear-gradient(90deg, #f0abfc, #fff); }
.wp-next small { font-size: 12.5px; color: rgba(255, 255, 255, 0.78); }

.wp-north { display: flex; align-items: center; gap: var(--s4); text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
@media (hover: hover) { .wp-north:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); } }
.wp-ring { position: relative; flex-shrink: 0; width: 112px; height: 112px; display: grid; place-items: center; }
.wp-ring b { position: absolute; font-family: 'Rubik', sans-serif; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
svg.ring { width: 100%; height: 100%; }
.ring-track { fill: none; stroke: rgba(148, 163, 184, 0.22); stroke-width: 9; }
.ring-fill { fill: none; stroke: url(#hq-ring); stroke-width: 9; stroke-linecap: round; transition: stroke-dasharray .8s cubic-bezier(.16, 1, .3, 1); }
.ring-goal { fill: var(--surface); stroke: #a855f7; stroke-width: 2.5; }
.wp-goal { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #7c3aed; }
.wp-goal i { width: 9px; height: 9px; border-radius: 50%; border: 2.5px solid #a855f7; background: var(--surface); }
:root[data-theme="dark"] .wp-goal { color: #d8b4fe; }

/* The climb: three lines, each its own colour. */
.chart-plot .grow-area { fill: url(#hq-grow); }
.chart-plot .grow-line { fill: none; stroke-width: 2.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.grow-line.g1, .chart-legend i.g1 { stroke: #6366f1; background: #6366f1; }
.grow-line.g2, .chart-legend i.g2 { stroke: #a855f7; background: #a855f7; }
.grow-line.g3, .chart-legend i.g3 { stroke: #ec4899; background: #ec4899; }
:root[data-theme="dark"] .grow-line.g1, :root[data-theme="dark"] .chart-legend i.g1 { stroke: #818cf8; background: #818cf8; }
.chart-legend b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* Where every merchant stands. */
.ladder { display: grid; gap: 12px; }
.ladder > div { display: grid; grid-template-columns: 96px minmax(0, 1fr) 36px 40px; gap: 10px; align-items: center; font-size: 14.5px; }
.ladder-bar { display: block; height: 12px; border-radius: 999px; background: rgba(148, 163, 184, 0.16); overflow: hidden; }
.ladder-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899); }
.ladder b { font-family: 'Rubik', sans-serif; font-size: 17px; font-weight: 800; text-align: end; font-variant-numeric: tabular-nums; }
.ladder em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--muted); text-align: end; }

@media (max-width: 1100px) { .wp-top { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .wp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s5); } .wp-stat:nth-child(odd) { padding-inline-start: 0; border-inline-start: 0; } }
@media (max-width: 599px) {
  .wp-hero { padding: var(--s4); border-radius: 20px; }
  .wp-since { margin-inline-start: 0; }
  .wp-stats { gap: var(--s3); }
  .wp-stat { padding-inline-start: var(--s3); }
  .wp-n { font-size: 28px; }
  .wp-ring { width: 88px; height: 88px; }
  .wp-ring b { font-size: 21px; }
  .ladder > div { grid-template-columns: 82px minmax(0, 1fr) 30px 36px; gap: 8px; font-size: 13.5px; }
}

/* ── The frame in motion, as the store's (hq-motion.js) ─────────────────── */
html.vt-theme::view-transition-old(root), html.vt-theme::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.vt-theme::view-transition-new(root) { z-index: 2; }
html.theme-ease *, html.theme-ease *::before, html.theme-ease *::after { transition: background-color .5s ease, color .5s ease, border-color .5s ease, fill .5s ease, box-shadow .5s ease !important; }
.hq-top :is(button, a) { position: relative; -webkit-tap-highlight-color: transparent; }
.hq-top :is(.icon-btn:not(.bell-btn), .hq-tool, .hq-cta, .hq-avatar-btn) { overflow: hidden; }
.tb-ripple { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(99, 102, 241, 0.35), rgba(236, 72, 153, 0.18) 55%, transparent 70%); }
.hq-cta .tb-ripple, .hq-avatar-btn .tb-ripple { background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 65%); }
.theme-icon { display: inline-grid; place-items: center; }
.theme-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hq-clock time { display: inline-block; }

/* The dock's highlight is one white pill that springs to the area you open. */
.dock { isolation: isolate; }
.dock-pill { position: absolute; left: 0; top: 6px; bottom: 6px; z-index: -1; border-radius: 18px; opacity: 0; background: #fff; box-shadow: 0 6px 16px -6px rgba(99, 102, 241, 0.45); transition: transform .55s cubic-bezier(.34, 1.45, .64, 1), width .55s cubic-bezier(.34, 1.45, .64, 1), opacity .25s ease; }
.dock-pill.is-on { opacity: 1; }
.dock-pill.is-on ~ .dock-item.is-active, .dock-pill.is-on ~ .dock-more .dock-item.is-active { background: none; box-shadow: none; }
:root[data-theme="dark"] .dock-pill { background: rgba(255, 255, 255, 0.14); box-shadow: none; }
@media (max-width: 599px) { .dock-pill { top: 4px; bottom: 4px; } }
/* The current tab's underline is one mark that glides between tabs. */
.area-nav__mark { position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; pointer-events: none; background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899); transition: transform .5s cubic-bezier(.34, 1.4, .64, 1), width .5s cubic-bezier(.34, 1.4, .64, 1); }
/* The hover bursts: tiny drawings spilling out of the icon. */
.burst { position: absolute; left: 50%; top: 20px; width: 0; height: 0; z-index: 3; pointer-events: none; overflow: visible; }
.dock-pulse .burst { top: -2px; }
.burst-piece { position: absolute; left: 0; top: 0; display: block; pointer-events: none; will-change: transform, opacity; filter: drop-shadow(0 1px 1px rgba(15, 23, 42, 0.12)); }
.burst-piece svg { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .hq-top :is(.icon-btn, .hq-tool, .hq-cta, .hq-avatar-btn) { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), background .2s ease, color .2s ease, box-shadow .25s ease; }
  .hq-top :is(.icon-btn, .hq-tool, .hq-cta, .hq-avatar-btn):hover { transform: translateY(-1px); filter: none; }
  .hq-top :is(.icon-btn, .hq-tool, .hq-cta, .hq-avatar-btn):active { transform: scale(.92); transition-duration: .08s; }
  /* The sun turns into the moon. */
  .theme-icon { animation: theme-turn .6s cubic-bezier(.34, 1.56, .64, 1); }
  @keyframes theme-turn { from { transform: rotate(-120deg) scale(.4); opacity: 0; } }
  /* "+ חדש": the plus turns into a cross while its menu is open. */
  .cta-plus { transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
  .hq-cta[aria-expanded="true"] .cta-plus { transform: rotate(135deg); }
  /* The bell rings when opened. */
  .bell-btn[aria-expanded="true"] svg { animation: bell-ring .7s cubic-bezier(.36, .07, .19, .97); transform-origin: 50% 10%; }
  @keyframes bell-ring { 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } 75% { transform: rotate(2deg); } }
  /* Menus and panels spring open from their button, their rows a beat apart. */
  .hq-top :is(.hq-menu, .hq-panel):not([hidden]) { animation: pop-open .32s cubic-bezier(.34, 1.3, .64, 1) both; transform-origin: top center; }
  .hq-top :is(.hq-menu, #hq-bell):not([hidden]) > * { animation: pop-item .36s cubic-bezier(.16, 1, .3, 1) both; }
  .hq-top :is(.hq-menu, #hq-bell) > :nth-child(2) { animation-delay: .03s; }
  .hq-top :is(.hq-menu, #hq-bell) > :nth-child(3) { animation-delay: .06s; }
  .hq-top :is(.hq-menu, #hq-bell) > :nth-child(4) { animation-delay: .09s; }
  .hq-top :is(.hq-menu, #hq-bell) > :nth-child(n+5) { animation-delay: .12s; }
  .dock-more .hq-menu:not([hidden]) { animation: pop-up .32s cubic-bezier(.34, 1.3, .64, 1) both; transform-origin: bottom center; }
  @keyframes pop-open { from { opacity: 0; transform: translateY(-8px) scale(.94); filter: blur(4px); } }
  @keyframes pop-up { from { opacity: 0; transform: translateY(8px) scale(.94); filter: blur(4px); } }
  @keyframes pop-item { from { opacity: 0; transform: translateY(-4px); } }
  /* The search lifts and glows while you type in it. */
  .hq-search { transition: box-shadow .35s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1), border-color .25s ease; }
  .hq-search:focus-within { transform: translateY(-1px); border-color: #a5b4fc; box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14), 0 12px 28px -12px rgba(99, 102, 241, 0.45); }
  /* The clock's minute rolls in. */
  .hq-clock time { animation: clock-roll .5s cubic-bezier(.16, 1, .3, 1); }
  @keyframes clock-roll { from { opacity: 0; transform: translateY(-60%); filter: blur(2px); } }
}

/* ── פולס in a floating window, as in the store's admin (17.10.2026) ───── */
.pw-backdrop { position: fixed; inset: 0; z-index: 56; background: rgba(30, 27, 75, 0.16); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.pw-backdrop[hidden], .pw[hidden] { display: none; }
.pw {
  position: fixed; z-index: 57; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--dock-h) + var(--dock-gap) * 2 + 12px + env(safe-area-inset-bottom, 0px));
  width: min(600px, calc(100vw - 32px)); height: min(680px, calc(100dvh - var(--dock-h) - var(--dock-gap) * 2 - 48px));
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden;
  background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 28px;
  box-shadow: 0 30px 70px -20px rgba(76, 29, 149, 0.45), 0 12px 28px -12px rgba(15, 23, 42, 0.28);
}
:root[data-theme="dark"] .pw { background: rgba(15, 23, 42, 0.88); border-color: rgba(148, 163, 184, 0.22); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7); }
.pw-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 10px; border-bottom: 1px solid rgba(148, 163, 184, 0.18); }
.pw-head .icon-btn { width: 36px; height: 36px; }
.pw-head .icon-btn svg { width: 18px; height: 18px; }
.pw-name { display: grid; line-height: 1.2; }
.pw-name b { font-size: 16px; }
.pw-name small { font-size: 12.5px; color: var(--muted); }
.pw-orb { position: relative; display: grid; place-items: center; flex-shrink: 0; color: #fff; background: radial-gradient(70% 60% at 28% 20%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 70%), linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #d946ef 100%); }
.pw-orb--sm { width: 36px; height: 36px; border-radius: 12px; box-shadow: 0 6px 14px -6px rgba(168, 85, 247, 0.6); }
.pw-orb--lg { width: 76px; height: 76px; border-radius: 24px; box-shadow: 0 18px 36px -12px rgba(168, 85, 247, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.pw-orb--lg::after { content: ''; position: absolute; top: -8px; right: -8px; width: 16px; height: 16px; background: #f0abfc; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); filter: drop-shadow(0 0 3px rgba(232, 121, 249, .9)); }
.pw-body { overflow-y: auto; overscroll-behavior: contain; padding: 18px 18px 8px; display: grid; gap: 12px; align-content: start; }
.pw-hello { display: grid; justify-items: center; text-align: center; gap: 10px; padding-top: 10px; }
.pw-hello.is-hidden { display: none; }
.pw-hello h2 { margin: 6px 0 0; font-size: 22px; font-weight: 800; }
.pw-hello h2 span { background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pw-hello > p { margin: 0; color: var(--muted); font-size: 15px; }
.pw-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; font-size: 13.5px; color: var(--muted); }
.pw-checks li { display: inline-flex; align-items: center; gap: 6px; }
.pw-checks svg { width: 16px; height: 16px; fill: none; stroke: var(--success); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pw-sec { justify-self: stretch; display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.pw-sec::after { content: ''; flex: 1; height: 1px; background: rgba(148, 163, 184, 0.25); }
.pw-asks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pw-chip, .pw-topic { min-height: 0; font: inherit; cursor: pointer; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.pw-chip { padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(165, 180, 252, 0.6); background: var(--surface); color: var(--ink); font-size: 14.5px; font-weight: 600; white-space: normal; }
.pw-topics { justify-self: stretch; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pw-topic { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); text-align: start; justify-content: flex-start; white-space: normal; }
.pw-topic b { display: block; font-size: 14.5px; }
.pw-topic small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.pw-topic-ic { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 11px; background: var(--brand-weak); color: var(--brand); }
.pw-topic-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] :is(.pw-chip, .pw-topic) { background: rgba(255, 255, 255, 0.05); border-color: rgba(148, 163, 184, 0.25); }
:is(.pw-chip, .pw-topic):hover { border-color: #a5b4fc; transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(99, 102, 241, 0.5); filter: none; }
.pw-msg { max-width: 88%; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--surface); border: 1px solid rgba(148, 163, 184, 0.2); justify-self: end; font-size: 15px; }
.pw-msg.is-me { justify-self: start; border-radius: 18px 18px 6px 18px; background: var(--brand-grad); color: #fff; border: 0; }
:root[data-theme="dark"] .pw-msg:not(.is-me) { background: rgba(255, 255, 255, 0.06); }
.pw-msg p { margin: 0 0 6px; } .pw-msg p:last-child { margin-bottom: 0; }
.pw-msg ul { margin: 4px 0 6px; padding-inline-start: 20px; }
.pw-msg a { font-weight: 600; }
.pw-msg.is-note { justify-self: center; background: none; border: 0; color: var(--muted); font-size: 13px; }
.pw-msg.is-error { border-color: rgba(220, 38, 38, 0.3); color: var(--danger); }
.pw-msg.is-wait { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.pw-tools { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.pw-dots { display: inline-flex; gap: 4px; }
.pw-dots i { width: 6px; height: 6px; border-radius: 50%; background: #a855f7; animation: pw-dot 1s infinite ease-in-out; }
.pw-dots i:nth-child(2) { animation-delay: .15s; } .pw-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes pw-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.pw-foot { display: grid; gap: 8px; padding: 10px 14px 14px; border-top: 1px solid rgba(148, 163, 184, 0.18); }
.pw-see { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.pw-see b { color: var(--ink); }
.pw-input { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 6px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: border-color .2s ease, box-shadow .2s ease; }
.pw-input:focus-within { border-color: #a5b4fc; box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14); }
:root[data-theme="dark"] .pw-input { background: rgba(255, 255, 255, 0.05); }
.pw-input textarea { flex: 1; min-height: 40px; max-height: 140px; resize: none; border: 0; background: none; box-shadow: none; outline: none; padding: 9px 8px; font: inherit; font-size: 15px; color: var(--ink); }
.pw-send { min-height: 40px; padding: 0 18px; border-radius: 12px; }
.pw-send:disabled { opacity: .5; cursor: default; transform: none; }
/* The dock's face turns away and a ✕ turns in while the window is open. */
.dock-orb-x { position: absolute; inset: 0; margin: auto; width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; opacity: 0; transform: rotate(-90deg) scale(.5); transition: opacity .25s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.dock-orb .pf { transition: opacity .2s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.dock-pulse.is-open .dock-orb .pf { opacity: 0; transform: rotate(90deg) scale(.5); }
.dock-pulse.is-open .dock-orb-x { opacity: 1; transform: none; }
.dock-pulse.is-open .dock-orb { transform: translateY(-3px); }
@media (prefers-reduced-motion: no-preference) {
  .pw.is-open { animation: pw-in .42s cubic-bezier(.34, 1.25, .64, 1) both; transform-origin: bottom center; }
  @keyframes pw-in { from { opacity: 0; transform: translate(-50%, 24px) scale(.94); filter: blur(6px); } to { opacity: 1; transform: translate(-50%, 0); filter: none; } }
  .pw-backdrop:not([hidden]) { animation: pw-fade .3s ease both; }
  @keyframes pw-fade { from { opacity: 0; } }
  .pw-msg { animation: pop-item .36s cubic-bezier(.16, 1, .3, 1) both; }
}
@media (max-width: 599px) {
  .pw { left: 8px; right: 8px; width: auto; transform: none; border-radius: 24px; height: calc(100dvh - var(--dock-h) - var(--dock-gap) * 2 - 28px); }
  @keyframes pw-in { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
  .pw-topics { grid-template-columns: 1fr; }
  .pw-hello h2 { font-size: 19px; }
}

/* ── English / US polish (23.10.2026): Latin text, numbers right-aligned in LTR, CRM-style table density ───────────── */
td.n, th.num { text-align: end; }
td.d { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
th, td { padding-block: 11px; }
.who-text .row-link { letter-spacing: -0.01em; }
h1, h2 { letter-spacing: -0.02em; }
.pill { font-size: 12.5px; padding: 1px 9px; }
thead th { position: sticky; top: 0; z-index: 1; }
.table-wrap tbody tr[data-href]:hover td:first-child { box-shadow: inset 3px 0 0 var(--brand-solid); }
.kpi-join small, .kpi small { letter-spacing: 0; }

/* ── Finance dashboard (/finance, 23.10.2026) ─────────────────────────────────────────────────────────────────────
   Same glass cards and tokens as the rest of the console. Chart colours are tokens below (light + dark); meaning is never
   colour alone: every chart has a legend with text, hover tips, and a table. */
:root {
  --fin-1: #4f46e5; --fin-2: #0891b2; --fin-3: #d97706; --fin-4: #db2777; --fin-5: #059669; --fin-6: #7c3aed; --fin-7: #64748b;
  --fin-in: #059669; --fin-out: #e11d48;
}
:root[data-theme="dark"] {
  --fin-1: #818cf8; --fin-2: #22d3ee; --fin-3: #fbbf24; --fin-4: #f472b6; --fin-5: #34d399; --fin-6: #c4b5fd; --fin-7: #94a3b8;
  --fin-in: #34d399; --fin-out: #fb7185;
}
.fin-card h3, .fin-move h3 { font-size: 15px; margin: var(--s5) 0 var(--s2); font-weight: 700; }
.fin-card h3:first-of-type { margin-top: var(--s3); }
.fin-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); align-content: start; scroll-margin-top: calc(var(--top-h) + 56px); }
.fin-card h2 { margin: 0; }
.fin-card > .grid2 { gap: var(--s5); }
.fin-note { margin: 0; }
.fin-banner { background: var(--warn-weak); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); font-weight: 500; }
.fin-banner b { font-weight: 700; }
.fin-jump { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.fin-jump::-webkit-scrollbar { display: none; }
.fin-jump a { flex: none; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); background: var(--glass); border: 1px solid var(--glass-edge); }
.fin-jump a:hover, .fin-jump a:focus-visible { color: var(--brand-600); border-color: var(--border-strong); }
.fin-kpis { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.fin-insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s3); }
.fin-insight { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--glass-strong); border: 1px solid var(--glass-edge); text-decoration: none; color: var(--ink); font-size: 14px; line-height: 1.4; }
.fin-insight:hover { border-color: var(--border-strong); }
.fi-mark { flex: none; width: 10px; height: 10px; border-radius: 3px; margin-top: 5px; background: var(--info); }
.fin-insight.t-bad .fi-mark { background: var(--danger); border-radius: 50%; } .fin-insight.t-warn .fi-mark { background: var(--warn); transform: rotate(45deg); } .fin-insight.t-ok .fi-mark { background: var(--success); border-radius: 50% 50% 50% 0; }
.fin-insight.t-bad, .fin-insight.t-warn, .fin-insight.t-ok, .fin-insight.t-info { background: var(--glass-strong); color: var(--ink); }
.fin-trend { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: var(--s5); align-items: center; }
.ring-box { position: relative; width: 120px; height: 120px; margin-inline: auto; }
.ring-box b { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Rubik', sans-serif; font-size: 24px; font-weight: 800; }
.fin-ring p { text-align: center; margin: var(--s2) 0 0; }

/* stacked / paired bars */
.fin-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.fin-legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; background: var(--fin-7); }
.fin-legend .sw.out, .fb-pair .out { background: repeating-linear-gradient(45deg, var(--fin-out) 0 4px, color-mix(in srgb, var(--fin-out) 55%, transparent) 4px 7px); }
.fin-legend .sw.in, .fb-pair .in { background: var(--fin-in); }
.s1 { background: var(--fin-1); } .s2 { background: var(--fin-2); } .s3 { background: var(--fin-3); } .s4 { background: var(--fin-4); } .s5 { background: var(--fin-5); } .s6 { background: var(--fin-6); } .s7 { background: var(--fin-7); }
.fin-bars { position: relative; display: flex; align-items: stretch; gap: 6px; height: 230px; padding-top: 14px; direction: ltr; }
.fin-bars .ymax { position: absolute; top: -4px; left: 0; font-size: 12px; color: var(--viz-axis); }
.fb { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; border-bottom: 1px solid var(--viz-grid); }
.fb-stack, .fb-pair { width: 100%; max-width: 44px; flex: 1 1 auto; display: flex; flex-direction: column-reverse; justify-content: flex-start; min-height: 0; }
.fb-stack { flex: 0 0 auto; border-radius: 6px 6px 0 0; overflow: hidden; gap: 1px; }
.fb-stack i { display: block; min-height: 2px; }
.fb-pair { flex-direction: row; align-items: flex-end; gap: 3px; }
.fb-pair i { flex: 1; min-height: 2px; border-radius: 4px 4px 0 0; }
.fb-x { position: absolute; top: 100%; margin-top: 4px; font-size: 12px; color: var(--viz-axis); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fb:hover::after, .fb:focus-visible::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: #0f172a; color: #f1f5f9; font-size: 12.5px; padding: 6px 10px; border-radius: 10px; z-index: 6; pointer-events: none; }
:root[data-theme="dark"] .fb:hover::after { background: #e2e8f0; color: #0f172a; }
.fin-bars { margin-bottom: 22px; }
.fin-bars .fb:first-of-type:hover::after { left: 0; transform: none; } .fin-bars .fb:last-child:hover::after { left: auto; right: 0; transform: none; }

.fin-details { border-top: 1px dashed var(--border); padding-top: var(--s3); }
.fin-details > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--brand); padding: 4px 0; }
.card > .fin-details .tbl, .fin-card .tbl { margin-inline: calc(var(--s5) * -1); padding-inline: var(--s2); }
.fin-table th[scope="row"] { background: none; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); font-weight: 600; white-space: normal; padding-block: 11px; position: static; }
.fin-table thead th { position: static; }
.fin-table td.n { font-variant-numeric: tabular-nums; }
.fin-table .small { font-weight: 400; }
.fin-share { display: inline-block; vertical-align: middle; width: 56px; height: 8px; border-radius: 4px; background: rgba(148, 163, 184, 0.25); margin-inline-end: 6px; overflow: hidden; }
.fin-share i { display: block; height: 100%; width: calc(var(--v) * 1%); background: var(--fin-1); border-radius: 4px; }

/* the MRR bridge */
.fin-bridge { display: grid; gap: 8px; }
.fbr { display: grid; grid-template-columns: 104px minmax(0, 1fr) 96px; gap: 10px; align-items: center; font-size: 14px; }
.fbr > span:first-child { color: var(--muted); font-weight: 500; }
.fbr b { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fbr-track { position: relative; height: 14px; background: rgba(148, 163, 184, 0.14); border-radius: 7px; }
.fbr-track i { position: absolute; top: 0; bottom: 0; border-radius: 7px; background: var(--fin-7); }
.fbr.up .fbr-track i { background: var(--fin-in); }
.fbr.down .fbr-track i { background: repeating-linear-gradient(45deg, var(--fin-out) 0 4px, color-mix(in srgb, var(--fin-out) 55%, transparent) 4px 7px); }
.fbr.total .fbr-track i { background: var(--fin-1); } .fbr.total > span:first-child, .fbr.total b { color: var(--ink); font-weight: 700; }
.fbr.is-zero { opacity: .55; }

.fin-untracked { border: 1px dashed var(--border-strong); border-radius: 16px; padding: var(--s3) var(--s4); background: var(--warn-weak); color: var(--ink); }
.fin-untracked h3 { margin: 0 0 var(--s2); color: var(--warn); }
.fin-untracked ul { margin: 0 0 var(--s2); padding-inline-start: 20px; font-size: 14px; display: grid; gap: 2px; }
.fin-form { display: grid; min-width: 0; gap: var(--s3); border-top: 1px dashed var(--border); padding-top: var(--s4); }
.fin-form h3 { margin: 0; }
.fin-form .row { align-items: end; gap: var(--s3); }
.fin-form .row label { flex: 1 1 180px; }
.fin-controls { display: flex; flex-wrap: wrap; align-items: end; gap: var(--s3); }
.fin-controls label { flex: 1 1 150px; max-width: 220px; }
.fin-controls .pill { margin-inline-start: 6px; vertical-align: 1px; }
.fin-callout { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.45; padding: var(--s3) var(--s4); border-radius: 16px; background: var(--brand-weak); color: var(--ink); border: 1px solid var(--glass-edge); }
.fin-method { border-top: 1px dashed var(--border); }
.fin-method p { margin: 0; color: var(--muted); line-height: 1.5; }
.fin-method b { color: var(--ink); }
.fin-legend2 { margin-bottom: -8px; }
.fin-legend2 i.g2 { background: none; border-top: 3px dotted #a855f7; height: 0; } .fin-legend2 i.g3 { background: none; border-top: 3px dashed #ec4899; height: 0; }
.fin-fc .grow-line.g2 { stroke-dasharray: 2 5; } .fin-fc .grow-line.g3 { stroke-dasharray: 8 5; }
.fin-fc .grow-area { opacity: .6; }

@media (max-width: 860px) {
  .fin-trend { grid-template-columns: minmax(0, 1fr); }
  .fin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fin-bars { height: 190px; gap: 3px; }
  .fb-x { font-size: 10.5px; }
}
@media (max-width: 599px) {
  .fin-kpis { grid-template-columns: minmax(0, 1fr); }
  .fbr { grid-template-columns: 92px minmax(0, 1fr) 78px; gap: 8px; font-size: 13px; }
  .fin-callout { font-size: 15.5px; }
  .fin-card .tbl { margin-inline: calc(var(--s4) * -1); }
  .fin-controls label { max-width: none; }
  .fin-bars .fb:nth-child(even) .fb-x { visibility: hidden; }
}
@media (forced-colors: active) { .fb-stack i, .fbr-track i { forced-color-adjust: none; } }
.fin-card .grid2 > *, .fin-card .grid2 { min-width: 0; }

/* The globe card (hq/globe-card.mjs): the placeholder shown until the bundle (globe.js, globe.css) is in. */
.hqg-hold { display: grid; place-items: center; align-content: center; gap: 12px; min-height: 340px; }
.hqg-hold__ball { inline-size: 200px; max-inline-size: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 38% 34%, color-mix(in srgb, var(--brand) 28%, transparent), color-mix(in srgb, var(--brand-solid) 8%, transparent) 62%, transparent 72%); animation: hqg-hold 2.4s ease-in-out infinite; }
@keyframes hqg-hold { 50% { transform: scale(1.03); opacity: .75; } }
.globe-card { min-width: 0; }
