/* BreMa ERP look and feel. One file for every page; the font is served from this site, no outside libraries. */

@font-face {
  font-family: "Jakarta";
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.13d1b429e990.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jakarta";
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.cc2090cafea0.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Themes: each person picks one (top-right menu) ---------- */
:root, [data-theme="royal"] {
  --brand: #5b5bd6; --brand-2: #9b5cf6; --brand-ink: #4338ca; --brand-soft: #eef0ff;
  --side-bg: linear-gradient(180deg, #1e1b4b 0%, #151332 55%, #0f0d24 100%);
  --side-glow: rgba(139, 92, 246, .35);
}
[data-theme="plum"] {
  --brand: #714b67; --brand-2: #017e84; --brand-ink: #5e3a55; --brand-soft: #f6eef4;
  --side-bg: linear-gradient(180deg, #5b3352 0%, #3f2239 60%, #2b1627 100%);
  --side-glow: rgba(1, 126, 132, .45);
}
[data-theme="ocean"] {
  --brand: #0369a1; --brand-2: #06b6d4; --brand-ink: #075985; --brand-soft: #e8f6fd;
  --side-bg: linear-gradient(180deg, #0c3b5e 0%, #082a45 60%, #061c30 100%);
  --side-glow: rgba(6, 182, 212, .4);
}
[data-theme="emerald"] {
  --brand: #059669; --brand-2: #0ea5a4; --brand-ink: #047857; --brand-soft: #e7f8f1;
  --side-bg: linear-gradient(180deg, #064e3b 0%, #053b2d 60%, #032a20 100%);
  --side-glow: rgba(20, 184, 166, .4);
}
[data-theme="sunset"] {
  --brand: #ea580c; --brand-2: #db2777; --brand-ink: #c2410c; --brand-soft: #fff1e8;
  --side-bg: linear-gradient(180deg, #4c0f2b 0%, #36091e 60%, #240614 100%);
  --side-glow: rgba(249, 115, 22, .4);
}
:root {
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b;
  --line: #e6e8f0; --line-2: #f1f3f9;
  --bg: #f4f6fb;
  --card: #ffffff; --card-2: #fafbff; --input: #ffffff;
  --side-ink: #e2e8f0; --side-muted: rgba(226, 232, 240, .5);
  --ok: #059669;   --ok-soft: #e8f8f1;
  --warn: #b45309; --warn-soft: #fff6e0;
  --bad: #dc2626;  --bad-soft: #fdeeee;
  --info: #0369a1; --info-soft: #e8f5fc;
  --radius: 16px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .05);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, .16);
  --side-w: 264px; --top-h: 68px;
  --font: "Jakarta", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mod: var(--brand); --mod-2: var(--brand-2);
}
[data-theme="graphite"] {
  --brand: #475569; --brand-2: #0ea5e9; --brand-ink: #334155; --brand-soft: #eef2f7;
  --side-bg: linear-gradient(180deg, #1f2937 0%, #161e2b 60%, #0f141d 100%);
  --side-glow: rgba(14, 165, 233, .3);
}
[data-theme="graphite"][data-mode="dark"] { --brand: #94a3b8; }

/* ---------- Light / dark: separate from the colours, each person picks (top bar) ---------- */
:root[data-mode="dark"] {
  --ink: #e6e9f2; --ink-2: #c3cad8; --muted: #8b95ab;
  --line: #232c45; --line-2: #1a2238;
  --bg: #0a0f1d; --card: #111829; --card-2: #141c31; --input: #0d1424;
  --brand-soft: color-mix(in srgb, var(--brand) 16%, transparent);
  --brand-ink: color-mix(in srgb, var(--brand) 55%, #fff);
  --ok: #34d399; --ok-soft: rgba(52, 211, 153, .12);
  --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .12);
  --bad: #f87171; --bad-soft: rgba(248, 113, 113, .12);
  --info: #38bdf8; --info-soft: rgba(56, 189, 248, .12);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 4px 16px rgba(0, 0, 0, .2); --shadow-lg: 0 20px 48px rgba(0, 0, 0, .55);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-mode="auto"] {
    --ink: #e6e9f2; --ink-2: #c3cad8; --muted: #8b95ab;
    --line: #232c45; --line-2: #1a2238;
    --bg: #0a0f1d; --card: #111829; --card-2: #141c31; --input: #0d1424;
    --brand-soft: color-mix(in srgb, var(--brand) 16%, transparent);
    --brand-ink: color-mix(in srgb, var(--brand) 55%, #fff);
    --ok: #34d399; --ok-soft: rgba(52, 211, 153, .12);
    --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .12);
    --bad: #f87171; --bad-soft: rgba(248, 113, 113, .12);
    --info: #38bdf8; --info-soft: rgba(56, 189, 248, .12);
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 4px 16px rgba(0, 0, 0, .2); --shadow-lg: 0 20px 48px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

/* ---------- One colour per section, like Odoo's apps ---------- */
[data-mod="home"]     { --mod: #6366f1; --mod-2: #a855f7; }
[data-mod="store"]    { --mod: #f97316; --mod-2: #f59e0b; }
[data-mod="client"]   { --mod: #ec4899; --mod-2: #f43f5e; }
[data-mod="chart"]    { --mod: #0d9488; --mod-2: #22c55e; }
[data-mod="people"]   { --mod: #2563eb; --mod-2: #06b6d4; }
[data-mod="team"]     { --mod: #7c3aed; --mod-2: #c026d3; }
[data-mod="clock"]    { --mod: #16a34a; --mod-2: #84cc16; }
[data-mod="calendar"] { --mod: #0891b2; --mod-2: #3b82f6; }
[data-mod="inbox"]    { --mod: #d97706; --mod-2: #f97316; }
[data-mod="wallet"]   { --mod: #059669; --mod-2: #14b8a6; }
[data-mod="money"]    { --mod: #e11d48; --mod-2: #f97316; }
[data-mod="bank"]     { --mod: #0f766e; --mod-2: #d97706; }
[data-mod="shield"]   { --mod: #475569; --mod-2: #6366f1; }
[data-mod="settings"] { --mod: #334155; --mod-2: #64748b; }
[data-mod="chat"]     { --mod: #4f46e5; --mod-2: #0ea5e9; }
[data-mod="org"]      { --mod: #9333ea; --mod-2: #ec4899; }
[data-mod="trophy"]   { --mod: #d97706; --mod-2: #eab308; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: radial-gradient(1200px 500px at 100% -10%, var(--brand-soft), transparent 70%) fixed, var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.error { color: var(--bad); }
b, strong { font-weight: 700; }

/* ---------- App shell ---------- */
.shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 40; overflow: hidden;
  background: var(--side-bg); color: var(--side-ink);
  display: flex; flex-direction: column; transition: width .2s ease, transform .25s ease;
}
.sidebar::before { content: ""; position: absolute; width: 320px; height: 320px; left: -120px; top: -140px; border-radius: 50%; background: radial-gradient(closest-side, var(--side-glow), transparent); pointer-events: none; }
.sidebar::after { content: ""; position: absolute; width: 260px; height: 260px; right: -150px; bottom: -80px; border-radius: 50%; background: radial-gradient(closest-side, var(--side-glow), transparent); opacity: .7; pointer-events: none; }
.brand { position: relative; height: var(--top-h); display: flex; align-items: center; gap: 12px; padding: 0 20px; color: #fff; }
.brand:hover { text-decoration: none; }
.logo {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; letter-spacing: -.5px; color: #fff;
  background: conic-gradient(from 210deg, #f97316, #ec4899, #8b5cf6, #3b82f6, #14b8a6, #f97316);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25), inset 0 0 0 2px rgba(255,255,255,.25);
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.brand-text b { display: block; font-size: 17px; line-height: 1.1; font-weight: 800; letter-spacing: -.01em; }
.brand-text span { font-size: 12px; color: var(--side-muted); }
.side-nav { position: relative; flex: 1; overflow-y: auto; padding: 4px 14px 24px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.side-group { margin-top: 14px; }
.side-label { display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 0; padding: 4px 10px 6px; min-height: 0; border: 0; border-radius: 8px; background: none; box-shadow: none; font: inherit; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--side-muted); white-space: nowrap; cursor: pointer; }
.side-label:hover { color: var(--side-ink); filter: none; box-shadow: none; }
.side-label svg { width: 14px; height: 14px; opacity: 0; transition: transform .2s, opacity .2s; }
.side-nav:hover .side-label svg, .side-group.shut .side-label svg { opacity: .7; }
.side-group.shut .side-label svg { transform: rotate(-90deg); }
.side-group.shut .side-link { display: none; }
.side-link {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 6px 10px; margin: 2px 0; border-radius: 12px;
  color: var(--side-ink); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .15s;
}
.side-link .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; color: #fff;
  background: linear-gradient(135deg, var(--mod), var(--mod-2)); box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.side-link .ic svg { width: 17px; height: 17px; stroke-width: 2; }
.side-link:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.side-link.on { background: rgba(255,255,255,.13); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.side-link.on:not(:has(.count))::after { content: ""; position: absolute; right: 12px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; }
.side-link .count { margin-left: auto; min-width: 22px; padding: 0 7px; border-radius: 999px; background: #f43f5e; color: #fff; font-size: 11px; font-weight: 800; text-align: center; line-height: 22px; box-shadow: 0 0 0 3px rgba(244, 63, 94, .25); }
.side-link .ext { margin-left: auto; width: 14px; height: 14px; opacity: .5; }
.side-foot { position: relative; padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.08); }
.collapse-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; margin: 0; min-height: 0; border: 0; border-radius: 10px; background: none; box-shadow: none; color: var(--side-muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.collapse-btn:hover { background: rgba(255,255,255,.07); color: #fff; box-shadow: none; filter: none; }

.main { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; transition: margin-left .2s ease; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--top-h);
  display: flex; align-items: center; gap: 12px; padding: 0 32px;
  background: color-mix(in srgb, var(--card) 82%, transparent); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.menu-btn { display: none; margin: 0 0 0 -8px; padding: 8px; min-height: 0; border: 0; background: none; box-shadow: none; border-radius: 10px; color: var(--ink-2); cursor: pointer; }
.menu-btn:hover { background: var(--line-2); color: var(--ink); box-shadow: none; filter: none; }
.back-btn { display: inline-flex; align-items: center; gap: 4px; flex: none; height: 36px; padding: 0 12px 0 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.back-btn:hover { background: var(--line-2); color: var(--ink); }
.back-btn svg { width: 18px; height: 18px; stroke-width: 2.2; }
@media (max-width: 600px) { .back-btn { padding: 0 8px; } .back-btn span { display: none; } .topbar .crumbs { display: none; } }
.crumbs { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; color: var(--muted); }
.crumbs .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(135deg, var(--mod), var(--mod-2)); }
.crumbs .ic svg { width: 16px; height: 16px; stroke-width: 2; }
.crumbs b { color: var(--ink); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.today { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--line-2); font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.today svg { width: 16px; height: 16px; color: var(--brand); }
.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 999px; cursor: pointer; border: 1px solid transparent; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover, .usermenu[open] summary { background: var(--card); border-color: var(--line); box-shadow: var(--shadow); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 13px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 0 0 2px var(--card), 0 0 0 4px color-mix(in srgb, var(--brand) 30%, transparent); }
.avatar.lg { width: 52px; height: 52px; font-size: 17px; }
.who { line-height: 1.25; }
.who b { display: block; font-size: 14px; }
.who span { font-size: 12px; color: var(--muted); }
.usermenu .drop { position: absolute; right: 0; top: calc(100% + 10px); width: 300px; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px; animation: pop .15s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.drop-head { display: flex; gap: 12px; align-items: center; padding: 16px 14px; margin: -10px -10px 8px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.drop-head .who span { color: rgba(255,255,255,.85); }
.drop-head .avatar { background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.drop a, .drop button.item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; margin: 0; min-height: 0; border: 0; border-radius: 10px; background: none; box-shadow: none; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.drop a:hover, .drop button.item:hover { background: var(--line-2); color: var(--ink); text-decoration: none; filter: none; box-shadow: none; }
.drop button.out { color: var(--bad); }
.drop button.out:hover { color: var(--bad); }
.photo-pick { margin: 0; flex: none; }
.photo-pick label { position: relative; display: block; margin: 0; cursor: pointer; border-radius: 50%; }
.photo-pick .photo-cam { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brand-ink, #333); box-shadow: var(--shadow); }
.photo-pick .photo-cam .i { width: 13px; height: 13px; }
.photo-pick label:hover .avatar, .photo-pick label:focus-within .avatar { filter: brightness(.85); }
.photo-pick label:focus-within { outline: 2px solid #fff; outline-offset: 2px; }
.drop .look { margin: 0; }
.drop .look > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer; }
.drop .look > summary::-webkit-details-marker { display: none; }
.drop .look > summary:hover { background: var(--line-2); color: var(--ink); }
.drop .look > summary .chev { margin-left: auto; width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
.drop .look[open] > summary .chev { transform: rotate(180deg); }
.usermenu .drop { max-height: calc(100vh - 90px); overflow-y: auto; }
.drop-label { padding: 10px 10px 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); margin-top: 6px; }
.role-switch { padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.drop .role-switch button.item { justify-content: flex-start; }
.drop .role-switch button.item.on { background: var(--brand-soft); color: var(--brand-ink); }
.role-more { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-ink); font-size: 11px; font-weight: 700; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 0 10px 10px; }
.swatches button { width: 100%; aspect-ratio: 1; margin: 0; padding: 0; min-height: 0; border-radius: 10px; border: 2px solid transparent; cursor: pointer; box-shadow: var(--shadow); }
.swatches button.on { border-color: var(--card); box-shadow: 0 0 0 2px var(--ink); }
.swatches button:hover { transform: scale(1.08); }
.sw-royal { background: linear-gradient(135deg, #5b5bd6, #9b5cf6) !important; }
.sw-plum { background: linear-gradient(135deg, #714b67, #017e84) !important; }
.sw-ocean { background: linear-gradient(135deg, #0369a1, #06b6d4) !important; }
.sw-emerald { background: linear-gradient(135deg, #059669, #0ea5a4) !important; }
.sw-sunset { background: linear-gradient(135deg, #ea580c, #db2777) !important; }
.sw-graphite { background: linear-gradient(135deg, #475569, #0ea5e9) !important; }

.content { width: 100%; max-width: 1280px; margin: 0 auto; padding: 28px 32px; flex: 1; }
.foot { padding: 16px 32px 24px; font-size: 12px; color: var(--muted); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.company-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.company-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; min-width: 36px; justify-content: center; padding: 0 10px; border-radius: 10px; color: var(--muted); border: 1px solid var(--line); background: var(--card); text-decoration: none !important; font-size: 13px; font-weight: 600; }
.company-links a:hover, .company-links a:focus-visible { color: var(--brand-ink); border-color: var(--brand); }
.company-links .i { width: 16px; height: 16px; }
.foot .company-links a { padding: 0; }
.auth-follow { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; justify-items: center; }
.scrim { display: none; }

/* Collapsed side menu (desktop): icons only. */
html.side-mini { --side-w: 84px; }
html.side-mini .side-group.shut .side-link { display: flex; }
html.side-mini .brand-text, html.side-mini .side-label, html.side-mini .side-link > span:not(.ic), html.side-mini .side-link .ext, html.side-mini .collapse-btn span { display: none; }
html.side-mini .side-link { justify-content: center; padding: 6px; }
html.side-mini .side-link.on::after { display: none; }
html.side-mini .side-link .count { position: absolute; top: -2px; right: 6px; min-width: 18px; line-height: 18px; font-size: 10px; padding: 0 5px; }
html.side-mini .brand { justify-content: center; padding: 0; }
html.side-mini .side-group { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.07); }
html.side-mini .side-group:first-child { border-top: 0; }
html.side-mini .collapse-btn { justify-content: center; }
html.side-mini .collapse-btn svg { transform: rotate(180deg); }

@media (max-width: 960px) {
  html.side-mini { --side-w: 264px; }
  html.side-mini .brand-text, html.side-mini .side-label, html.side-mini .side-link > span:not(.ic) { display: revert; }
  html.side-mini .side-link { justify-content: flex-start; padding: 6px 10px; }
  .sidebar { transform: translateX(-100%); width: 284px; box-shadow: var(--shadow-lg); }
  .side-foot { display: none; }
  body.side-open .sidebar { transform: none; }
  body.side-open .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(15, 23, 42, .5); backdrop-filter: blur(2px); }
  .main { margin-left: 0; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .content { padding: 20px 16px; }
  .today, .who { display: none; }
}

/* ---------- Headings and the coloured page banner ---------- */
h1 { font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
h2 { font-size: 17px; font-weight: 750; letter-spacing: -.01em; margin: 28px 0 12px; }
h3 { font-size: 15px; margin: 0 0 8px; }
.page-head, .hello {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 24px; padding: 26px 30px; border-radius: 20px; color: #fff;
  background: linear-gradient(120deg, var(--mod) 0%, var(--mod-2) 100%);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--mod) 30%, transparent);
}
.page-head::before, .hello::before { content: ""; position: absolute; z-index: -1; width: 340px; height: 340px; right: -90px; top: -170px; border-radius: 50%; background: rgba(255,255,255,.14); }
.page-head::after, .hello::after { content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; right: 180px; bottom: -150px; border-radius: 50%; background: rgba(255,255,255,.10); }
.page-head h1, .hello h1 { color: #fff; }
.page-head p, .hello p { margin: 4px 0 0; }
.page-head .muted, .hello .muted { color: rgba(255,255,255,.88); }
.page-head a:not(.btn), .hello a:not(.btn) { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.page-head .badge, .hello .badge { background: rgba(255,255,255,.94); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.page-head .avatar { background: rgba(255,255,255,.22); box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.page-head .btn, .hello .btn, .page-head button, .hello button { background: #fff; color: var(--mod); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.page-head .btn:hover, .hello .btn:hover, .page-head button:hover { color: var(--mod); filter: brightness(.97); }
.page-head .btn.secondary, .hello .btn.secondary, .page-head button.secondary { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.5); box-shadow: none; }
.page-head .btn.secondary:hover, .hello .btn.secondary:hover, .page-head button.secondary:hover { background: rgba(255,255,255,.26); color: #fff; }
.page-head .month-nav { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.35); box-shadow: none; }
.page-head .month-nav a, .page-head .month-nav b { color: #fff; text-decoration: none; }
.page-head .month-nav a:hover { background: rgba(255,255,255,.2); }
.watermark { position: absolute; right: 30px; bottom: -22px; z-index: -1; width: 140px !important; height: 140px !important; opacity: .16; stroke-width: 1.3 !important; pointer-events: none; }
.page-head:has(.head-actions) .watermark, .page-head:has(.month-nav) .watermark { right: auto; left: 55%; }

/* ---------- Cards and stats ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .row2 { grid-template-columns: 1fr; } }

.stat { position: relative; overflow: hidden; display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 18px 24px; box-shadow: var(--shadow); color: inherit; transition: box-shadow .2s, transform .2s; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--c1, var(--brand)), var(--c2, var(--brand-2))); }
.grid > .stat:nth-child(4n+1) { --c1: #6366f1; --c2: #a855f7; }
.grid > .stat:nth-child(4n+2) { --c1: #ec4899; --c2: #f97316; }
.grid > .stat:nth-child(4n+3) { --c1: #0ea5e9; --c2: #14b8a6; }
.grid > .stat:nth-child(4n+4) { --c1: #f59e0b; --c2: #ef4444; }
.stat .muted { font-size: 13px; font-weight: 600; }
.stat b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin-top: 4px; }
a.stat:hover { text-decoration: none; box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.stat .tile { float: right; margin-left: 12px; color: var(--c1, var(--brand)); background: color-mix(in srgb, var(--c1, var(--brand)) 12%, var(--card)); }
.stat small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
/* Filled, colourful cards (dashboard). */
.stat.fill { border: 0; padding-left: 20px; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 12px 28px color-mix(in srgb, var(--c1) 35%, transparent); }
.stat.fill::before { display: none; }
.stat.fill::after { content: ""; position: absolute; width: 160px; height: 160px; right: -50px; bottom: -80px; border-radius: 50%; background: rgba(255,255,255,.14); }
.stat.fill .muted, .stat.fill small { color: rgba(255,255,255,.9); }
.stat.fill .tile { background: rgba(255,255,255,.22); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }

.tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand-ink); }
.tile.ok { background: var(--ok-soft); color: var(--ok); }
.tile.warn { background: var(--warn-soft); color: var(--warn); }
.tile.bad { background: var(--bad-soft); color: var(--bad); }
.tile.info { background: var(--info-soft); color: var(--info); }
.tile.violet { background: rgba(139, 92, 246, .12); color: color-mix(in srgb, #7c3aed 75%, var(--ink)); }
.tile.mod { color: #fff; background: linear-gradient(135deg, var(--mod), var(--mod-2)); box-shadow: 0 6px 14px color-mix(in srgb, var(--mod) 35%, transparent); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-2); white-space: nowrap; vertical-align: middle; }
th { background: color-mix(in srgb, var(--mod) 8%, var(--card)); font-size: 11.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: color-mix(in srgb, var(--mod) 75%, var(--ink)); border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: color-mix(in srgb, var(--mod) 4%, var(--card)); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td a { font-weight: 650; }
.wrap { white-space: normal; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 18px; background: var(--brand-soft); color: var(--brand-ink); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.grey { background: var(--line-2); color: var(--muted); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.client { background: color-mix(in srgb, #ec4899 12%, var(--card)); color: color-mix(in srgb, #be185d 70%, var(--ink)); }

/* ---------- Forms and buttons ---------- */
label { display: block; margin: 14px 0 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
input, select, textarea {
  width: 100%; padding: 10px 13px; min-height: 42px; border: 1.5px solid var(--line); border-radius: 11px;
  background: var(--input); color: var(--ink); font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--brand); }
textarea { min-height: 88px; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
form p { margin: 0 0 4px; }
form p label { margin-top: 12px; }
.helptext { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
ul.errorlist { list-style: none; margin: 8px 0 0; padding: 0; color: var(--bad); font-size: 13px; }

button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 16px; padding: 10px 18px; min-height: 42px; border: 1px solid transparent; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 30%, transparent); transition: filter .15s, box-shadow .15s, transform .1s;
}
button:hover, .btn:hover { filter: brightness(1.07); text-decoration: none; color: #fff; }
button:active, .btn:active { transform: translateY(1px); }
button:focus-visible, .btn:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 2px; }
button:disabled { opacity: .5; cursor: not-allowed; filter: grayscale(.4); }
button.secondary, .btn.secondary { background: var(--card); color: var(--ink-2); border-color: var(--line); box-shadow: var(--shadow); }
button.secondary:hover, .btn.secondary:hover { color: var(--ink); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
button.danger, .btn.danger { background: linear-gradient(135deg, #ef4444, #be123c); box-shadow: 0 6px 16px rgba(225, 29, 72, .3); }
button.big, .btn.big { font-size: 17px; padding: 14px 32px; min-height: 54px; border-radius: 14px; }
button.small, .actions button, .btn.small { margin: 0; padding: 6px 14px; min-height: 34px; font-size: 13px; border-radius: 9px; box-shadow: none; }
.actions button.big { padding: 14px 32px; min-height: 54px; font-size: 17px; border-radius: 14px; margin: 4px 0 8px; box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 32%, transparent); }
form.inline { display: inline; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.head-actions .btn, .head-actions button { margin: 0; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.filters select, .filters input { width: auto; flex: 1 1 130px; min-width: 0; max-width: 220px; font-size: 14px; }
.filters input[type=search] { flex: 2 1 180px; max-width: none; }
.filters input[type=date] { min-width: 0; }
.filters button { margin: 0; background: linear-gradient(135deg, var(--mod), var(--mod-2)); box-shadow: 0 6px 16px color-mix(in srgb, var(--mod) 30%, transparent); }
.filters > svg { color: var(--mod); }

/* ---------- Details, messages, paging ---------- */
dl { display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; margin: 0; }
dt { color: var(--muted); font-size: 14px; }
dd { margin: 0; font-weight: 600; }
.msg { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 13px; margin-bottom: 20px; background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent); color: var(--ok); font-size: 14px; font-weight: 600; }
.msg.error { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 25%, transparent); color: var(--bad); }
.msg.warning { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 25%, transparent); color: var(--warn); }
.msg.info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 25%, transparent); color: var(--info); }
.pager { margin-top: 16px; display: flex; gap: 16px; align-items: center; }
.month-nav { display: inline-flex; align-items: center; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); font-size: 14px; }
.month-nav a { padding: 5px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 600; }
.month-nav a:hover { background: var(--line-2); text-decoration: none; }
.month-nav b { padding: 5px 12px; }
.empty { padding: 44px 24px; text-align: center; color: var(--muted); background: var(--card); border: 2px dashed var(--line); border-radius: var(--radius); }

/* ---------- Dashboard ---------- */
.hello { padding: 30px 34px; min-height: 150px; }
.hello h1 { font-size: 30px; }
.hello .date { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: 12.5px; font-weight: 700; }
.hello .date svg { width: 14px; height: 14px; }
.hello-art { position: absolute; right: 330px; top: 50%; transform: translateY(-50%); z-index: -1; }
@media (max-width: 1250px) { .hello-art { display: none; } }

.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 14px; margin-bottom: 26px; }
.apps-title { margin: 26px 0 14px; }
.apps-head { position: relative; }
.apps-head .apps-title { padding-right: 150px; }
.apps-pick > summary { position: absolute; right: 0; top: -2px; list-style: none; cursor: pointer; }
.apps-pick > summary::-webkit-details-marker { display: none; }
.apps-pick-card { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-bottom: 18px; }
.apps-pick-card > p, .apps-pick-card > .form-actions { flex-basis: 100%; margin: 0; }
.apps-pick-card fieldset { border: 0; padding: 0; margin: 0; min-width: 160px; }
.apps-pick-card legend { font-weight: 700; margin-bottom: 6px; }
.apps-pick-card .check { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-weight: 500; }
.apps-pick-card .check input { width: auto; margin: 0; }
.app { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 8px 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); font-size: 13px; font-weight: 700; text-align: center; transition: transform .2s, box-shadow .2s; }
.app:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 14px 28px color-mix(in srgb, var(--mod) 22%, transparent); }
.app .ic { position: relative; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--mod), var(--mod-2)); box-shadow: 0 8px 18px color-mix(in srgb, var(--mod) 40%, transparent), inset 0 -3px 0 rgba(0,0,0,.12); }
.app .ic::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255,255,255,.3), transparent 55%); }
.app .ic svg { width: 26px; height: 26px; stroke-width: 1.9; }
.app .count { position: absolute; top: -7px; right: -7px; z-index: 1; min-width: 22px; padding: 0 6px; border-radius: 999px; background: #f43f5e; color: #fff; font-size: 11px; font-weight: 800; line-height: 22px; box-shadow: 0 0 0 3px var(--card); }

.bars { display: grid; gap: 16px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 110px; gap: 14px; align-items: center; font-size: 14px; font-weight: 600; }
.bar-track { height: 12px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.mp-ebay .bar-fill { background: linear-gradient(90deg, #e53238 0 25%, #0064d2 25% 50%, #f5af02 50% 75%, #86b817 75%); }
.mp-etsy .bar-fill { background: linear-gradient(90deg, #f1641e, #ff9a5a); }
.mp-tiktok-shop .bar-fill { background: linear-gradient(90deg, #25f4ee, #fe2c55); }
.mp-vinted .bar-fill { background: linear-gradient(90deg, #007782, #09b1ba); }
.bar-row .num { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 500; }
.mp-dot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 3px; background: var(--brand); }
.mp-ebay .mp-dot { background: #0064d2; } .mp-etsy .mp-dot { background: #f1641e; } .mp-tiktok-shop .mp-dot { background: #fe2c55; } .mp-vinted .mp-dot { background: #09b1ba; }

.donut-wrap { display: flex; align-items: center; gap: 22px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.donut { width: 110px; height: 110px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.donut span { width: 76px; height: 76px; border-radius: 50%; background: var(--card); display: grid; place-items: center; text-align: center; font-size: 21px; font-weight: 800; line-height: 1; }
.donut span small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 3px; }
.legend { display: grid; gap: 10px; font-size: 14px; }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 3px; }

.todo { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.todo:last-child { border-bottom: 0; }
a.todo:hover { text-decoration: none; }
a.todo:hover b { color: var(--brand-ink); }
.todo .grow { flex: 1; min-width: 0; }
.todo small { display: block; color: var(--muted); font-size: 13px; }
.todo .tile { width: 42px; height: 42px; }

/* ---------- Log in ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; background: var(--card); }
.auth-art {
  position: relative; overflow: hidden; padding: 48px; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(700px 420px at 0% 0%, #8b5cf6 0%, transparent 60%), radial-gradient(600px 420px at 100% 100%, #ec4899 0%, transparent 60%), radial-gradient(500px 300px at 90% 10%, #0ea5e9 0%, transparent 60%), #1e1b4b;
}
.auth-art .brand { padding: 0; height: auto; }
.auth-art h2 { font-size: 38px; line-height: 1.15; letter-spacing: -.03em; font-weight: 800; margin: 0 0 16px; max-width: 480px; }
.auth-art p { color: rgba(255,255,255,.82); max-width: 460px; margin: 0; }
.auth-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; max-width: 540px; }
.auth-points div { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); font-size: 13.5px; font-weight: 600; backdrop-filter: blur(6px); }
.auth-points .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, var(--mod), var(--mod-2)); }
.auth-points .ic svg { width: 18px; height: 18px; }
.mock { position: absolute; right: 44px; top: 40px; width: 250px; padding: 18px; border-radius: 20px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); transform: rotate(5deg); box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.mock .bars-mini { display: flex; align-items: end; gap: 8px; height: 84px; margin-top: 14px; }
.mock .bars-mini i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #fff, rgba(255,255,255,.35)); }
.mock small { font-size: 12px; opacity: .85; }
.mock b { display: block; font-size: 24px; }
.mock .up { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: rgba(52, 211, 153, .3); font-size: 12px; font-weight: 700; }
@media (max-width: 1600px) { .mock { display: none; } }
.auth-form { display: grid; place-items: center; padding: 32px 24px; background: radial-gradient(800px 400px at 100% 0%, var(--brand-soft), transparent 70%), var(--card); }
.auth-form .box { width: 100%; max-width: 390px; }
.auth-form h1 { font-size: 30px; }
.auth-form button { width: 100%; margin-top: 24px; min-height: 50px; font-size: 15px; }
.auth-mobile-brand { display: none; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-mobile-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; font-weight: 800; font-size: 19px; }
}

/* ---------- Error pages ---------- */
.oops { max-width: 520px; margin: 64px auto; text-align: center; }
.oops .tile { width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 20px; }
.oops .tile svg { width: 32px; height: 32px; }

/* ---------- Small page helpers ---------- */
.back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.back svg { width: 16px; height: 16px; }
.back:hover { color: var(--brand-ink); text-decoration: none; }
.person { display: inline-flex; align-items: center; gap: 10px; }
.person .avatar { width: 32px; height: 32px; font-size: 11px; box-shadow: none; }
.title-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.title-row h1 { margin: 0; }
.card .table-wrap { box-shadow: none; }
.card + h2, .row2 + h2, .split + h2, .grid + h2 { margin-top: 32px; }
.table-input { width: 120px; min-height: 36px; padding: 6px 10px; font-size: 14px; text-align: right; border-radius: 9px; }
.table-input.text { width: 160px; text-align: left; }
.note-input { width: 150px; min-height: 34px; padding: 6px 10px; font-size: 13px; border-radius: 9px; }
.wfh-change { font-size: 13px; }
.wfh-change label { display: block; margin: 4px 0; }
.wfh-change input { min-height: 32px; padding: 4px 8px; font-size: 13px; }
tr.total td { background: color-mix(in srgb, var(--mod) 9%, var(--card)); font-weight: 800; border-top: 1px solid var(--line); font-size: 15px; }
.sub { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.step-no { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 9px; color: #fff; background: linear-gradient(135deg, var(--mod), var(--mod-2)); font-size: 13px; font-weight: 800; }

@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat { padding: 14px 14px 14px 18px; }
  .stat b { font-size: 23px; }
  .stat .tile { width: 32px; height: 32px; border-radius: 9px; }
  .stat .tile svg { width: 16px; height: 16px; }
  .stat .muted { font-size: 12px; }
  h1 { font-size: 22px; }
  .hello h1 { font-size: 23px; }
  .page-head, .hello { padding: 20px; border-radius: 16px; margin-bottom: 18px; }
  .card { padding: 18px; }
  .bar-row { grid-template-columns: 84px 1fr 84px; font-size: 13px; }
  .apps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .app { padding: 8px 0; font-size: 11px; border: 0; background: none; box-shadow: none; }
  .app .ic { width: 52px; height: 52px; border-radius: 15px; }
  .app .ic svg { width: 23px; height: 23px; }
  .watermark { display: none; }
}

@media print {
  .sidebar, .topbar, .foot, .head-actions { display: none !important; }
  .main { margin: 0; }
  .content { padding: 0; }
  .page-head { color: #000; background: none; box-shadow: none; padding: 0; }
  .page-head h1, .page-head .muted { color: #000; }
  .card, .table-wrap { box-shadow: none; }
}

/* ---------- Queries ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 18px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 700; font-size: 14px; }
.tabs a:hover { background: var(--line-2); text-decoration: none; }
.tabs a.on { color: #fff; background: linear-gradient(135deg, var(--mod), var(--mod-2)); }
.tabs a.pill { padding: 6px 12px; font-size: 13px; border: 1px solid var(--line); }
.tabs a.pill.on { border-color: transparent; }
.tabs a.pill.red:not(.on) { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); background: var(--bad-soft); }
.tabs-gap { flex: 1; }
.dot-count { min-width: 20px; padding: 0 6px; border-radius: 999px; background: #f43f5e; color: #fff; font-size: 11px; line-height: 20px; text-align: center; }
tr.row-overdue td { background: color-mix(in srgb, var(--bad) 6%, var(--card)); }
tr.row-overdue td:first-child { box-shadow: inset 4px 0 0 var(--bad); }
tr.row-unread td a { font-weight: 800; }
.unread-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #f43f5e; box-shadow: 0 0 0 3px rgba(244, 63, 94, .2); }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .form-2 { grid-template-columns: 1fr; } }

/* ---------- Queries chat (like a phone chat app) ---------- */
.chat-app { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 16px; height: calc(100vh - var(--top-h) - 64px); min-height: 520px; }
.chat-side { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.chat-side-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 16px; }
.chat-side-head .btn { margin: 0; }
.chat-side-list { flex: 1; overflow-y: auto; }
.chat-side-all { padding: 12px 16px; border-top: 1px solid var(--line); font-weight: 700; font-size: 13.5px; }
.chat { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--card-2); }
.chat-head-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.chat-head-main b { font-size: 15.5px; }
.chat-head-main .muted { font-size: 12.5px; }
.chat-head-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.chat-head-actions form { margin: 0; }
.chat-back { display: none; color: var(--ink-2); }
.chat-topic { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.chat-topic b { margin-right: 4px; }
.chat-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px;
  background: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--mod) 9%, transparent) 1px, transparent 0) 0 0 / 22px 22px, var(--bg); }
.chat-day { text-align: center; margin: 10px 0 14px; }
.chat-day span { padding: 4px 12px; border-radius: 999px; background: var(--card); color: var(--muted); font-size: 12px; font-weight: 700; box-shadow: var(--shadow); }
.chat-event { margin: 10px auto; width: fit-content; max-width: 90%; padding: 6px 14px; border-radius: 999px; background: var(--card); font-size: 13px; text-align: center; box-shadow: var(--shadow); }
.bubble-row { display: flex; align-items: flex-end; gap: 8px; margin: 6px 0; }
.bubble-row .avatar { width: 30px; height: 30px; font-size: 10.5px; box-shadow: none; }
.bubble-row.mine { flex-direction: row-reverse; }
.bubble-row.mine .avatar { display: none; }
.bubble { position: relative; max-width: min(520px, 78%); padding: 7px 10px 5px 12px; border-radius: 4px 14px 14px 14px; background: var(--card); color: var(--ink);
  font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; box-shadow: 0 1px 1.5px rgba(15, 23, 42, .12); }
.bubble-row.mine .bubble { border-radius: 14px 4px 14px 14px; background: color-mix(in srgb, var(--mod) 16%, var(--card)); }
.bubble-name { font-size: 12.5px; font-weight: 800; color: var(--mod); margin-bottom: 2px; }
.bubble-foot { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 2px; font-size: 11px; color: var(--muted); }
.ticks { font-size: 12px; letter-spacing: -3px; padding-right: 3px; color: var(--muted); }
.ticks.seen { color: #0ea5e9; }
.bubble-files { display: grid; gap: 4px; margin: 2px -4px 4px; }
.bubble.only-files .bubble-files { margin-bottom: 2px; }
.bf-photo { display: block; border-radius: 10px; overflow: hidden; background: var(--line-2); }
.bf-photo img { display: block; width: 100%; max-width: 320px; max-height: 320px; object-fit: cover; }
.bf-video { display: block; width: 100%; max-width: 340px; max-height: 300px; border-radius: 10px; background: #000; }
.bf-audio { display: flex; align-items: center; gap: 6px; min-width: 240px; }
.bf-audio .i { color: var(--mod); flex: none; }
.bf-audio audio { width: 100%; height: 38px; }
.bf-doc { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); min-width: 220px; }
.bf-doc:hover { text-decoration: none; background: color-mix(in srgb, var(--ink) 9%, transparent); }
.bf-ic { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--mod); color: #fff; flex: none; }
.bf-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.bf-meta b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-meta span { font-size: 12px; color: var(--muted); }
.chat-closed { text-align: center; margin: 0; padding: 14px; border-top: 1px solid var(--line); }

/* Task and store-problem history uses the same bubbles in a simpler card. */
.chat-title { margin: 0; padding: 18px 22px 0; }
.chat:not([data-chat]) .chat-scroll { flex: none; max-height: 62vh; }
.bubble-head { display: flex; gap: 10px; justify-content: space-between; margin-bottom: 2px; font-size: 12px; }
.bubble-head span { opacity: .7; }
.chat:not([data-chat]) .chat-box { display: flex; gap: 10px; align-items: flex-end; padding: 14px 16px; }
.chat:not([data-chat]) .chat-box textarea { min-height: 46px; resize: vertical; }
.chat:not([data-chat]) .chat-box button { margin: 0; flex: none; }

/* The message box */
.chat-box { padding: 10px 12px; border-top: 1px solid var(--line); background: var(--card-2); margin: 0; }
.chat-box.boxed { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 16px; }
.composer { display: flex; flex-direction: column; gap: 8px; }
.cp-row { display: flex; align-items: flex-end; gap: 8px; }

/* Tag someone with @ (static/js/chat.js): the list over the message box, and the coloured names in a line. */
.composer[data-mentions] { position: relative; }
.cp-tag { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 30; max-height: 264px; overflow-y: auto; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(15, 23, 42, .18); }
.cp-tag[hidden] { display: none; }
.cp-tag-row { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 7px 10px; min-height: 0; border: 0; border-radius: 10px;
  justify-content: flex-start; background: none; box-shadow: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.cp-tag-row:hover, .cp-tag-row.on { background: color-mix(in srgb, var(--mod) 12%, var(--card)); filter: none; }
.cp-tag-row .avatar { width: 32px; height: 32px; font-size: 11px; box-shadow: none; }
.cp-tag-row .avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.cp-tag-words { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.cp-tag-words b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-tag-words small { font-size: 12px; color: var(--muted); }
.mention { color: var(--mod); font-weight: 700; }
.mention.me { padding: 0 3px; border-radius: 4px; background: color-mix(in srgb, var(--mod) 16%, transparent); }
.bubble-row.tags-me .bubble { box-shadow: 0 0 0 2px color-mix(in srgb, var(--mod) 45%, transparent), 0 1px 1.5px rgba(15, 23, 42, .12); }
.bubble-row.flash .bubble { animation: tag-flash 1.3s ease-in-out 2; }
@keyframes tag-flash { 50% { background: color-mix(in srgb, var(--mod) 28%, var(--card)); } }
.tag-at { min-width: 20px; padding: 0 5px; border-radius: 999px; background: var(--mod); color: #fff; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; }
.cp-row textarea { flex: 1; min-height: 44px; max-height: 160px; margin: 0; padding: 11px 14px; border-radius: 22px; resize: none; line-height: 1.4; }
.cp-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; min-height: 0; flex: none; margin: 0; padding: 0; border-radius: 50%;
  background: transparent; color: var(--ink-2); border: 0; box-shadow: none; cursor: pointer; }
.cp-btn:hover { background: var(--line-2); color: var(--mod); }
.cp-btn input[type=file] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; font-size: 0; }
.cp-send { width: 46px; height: 46px; min-height: 0; flex: none; margin: 0; padding: 0; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--mod), var(--mod-2)); color: #fff; }
.cp-send.busy { opacity: .6; }
.cp-files { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-chip { display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); max-width: 260px; }
.cp-chip img { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; }
.cp-chip-ic { width: 42px; height: 42px; display: grid; place-items: center; font-size: 20px; border-radius: 8px; background: var(--line-2); }
.cp-chip-meta { display: flex; flex-direction: column; min-width: 0; }
.cp-chip-meta b { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.cp-chip-meta span { font-size: 11.5px; color: var(--muted); }
.cp-chip-x { width: 26px; height: 26px; min-height: 0; margin: 0; padding: 0; border-radius: 50%; background: var(--line-2); color: var(--ink-2); box-shadow: none; font-size: 16px; line-height: 1; }
.cp-rec { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--bad); }
.cp-rec button { margin: 0; min-height: 32px; padding: 4px 12px; font-size: 13px; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); animation: rec 1s infinite; }
@keyframes rec { 50% { opacity: .2; } }
.cp-error { margin: 0; font-size: 13px; }

/* The chat list */
.convo-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.convo-search { position: relative; flex: 1; min-width: 220px; max-width: 420px; margin: 0; }
.convo-search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.convo-search input { padding-left: 38px; margin: 0; border-radius: 12px; }
.convo-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.convo-filters .pill { display: inline-flex; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-weight: 700; font-size: 13px; }
.convo-filters .pill:hover { text-decoration: none; background: var(--line-2); }
.convo-filters .pill.on { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--mod), var(--mod-2)); }
.convo-filters .pill.red:not(.on) { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); background: var(--bad-soft); }
.convo-list { padding: 0; overflow: hidden; }
.convo { display: flex; gap: 12px; padding: 12px 16px; color: var(--ink); border-bottom: 1px solid var(--line); }
.convo:last-child { border-bottom: 0; }
.convo:hover { text-decoration: none; background: var(--line-2); }
.convo.on { background: color-mix(in srgb, var(--mod) 10%, var(--card)); }
.convo.late { box-shadow: inset 3px 0 0 var(--bad); }
.convo .avatar { width: 44px; height: 44px; font-size: 14px; box-shadow: none; }
.convo-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.convo-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.convo-who { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo-time { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.convo.unread .convo-time { color: var(--mod); font-weight: 800; }
.dir { flex: none; font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 999px; }
.dir.out { color: var(--info); background: var(--info-soft); }
.dir.in { color: var(--warn); background: var(--warn-soft); }
.convo-subject { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo-last { display: flex; align-items: center; gap: 8px; }
.convo-preview { flex: 1; min-width: 0; color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo.unread .convo-preview { color: var(--ink); font-weight: 600; }
.convo-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chat-side .convo { padding: 10px 14px; }
.chat-side .convo .avatar { width: 40px; height: 40px; font-size: 13px; }
.chat-side .dir { display: none; }

/* The chat pop-up on every page */
.qpop { position: fixed; right: 22px; bottom: 22px; z-index: 60; }
.qpop-btn { position: relative; width: 58px; height: 58px; min-height: 0; margin: 0; padding: 0; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: var(--shadow-lg); }
.qpop-btn .i { width: 26px; height: 26px; }
.qpop.open .qpop-btn { transform: scale(.92); }
.qpop-count { position: absolute; top: -3px; right: -3px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #f43f5e; color: #fff;
  font-size: 12px; line-height: 22px; text-align: center; box-shadow: 0 0 0 3px var(--card); }
.qpop-panel { position: absolute; right: 0; bottom: 72px; width: min(380px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 120px)); padding: 0;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-lg); }
.qpop-panel[hidden] { display: none; }
.qpop-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); font-size: 16px; }
.qpop-x { width: 34px; height: 34px; min-height: 0; margin: 0; padding: 0; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.15); box-shadow: none; color: #fff; }
.qpop-body { overflow-y: auto; }
.qp-tabs { display: flex; gap: 6px; padding: 8px; border-bottom: 1px solid var(--line); }
.qp-tabs button { flex: 1; margin: 0; min-height: 36px; padding: 6px; border-radius: 10px; background: transparent; color: var(--ink-2); box-shadow: none; font-size: 14px; }
.qp-tabs button.on { background: var(--brand-soft); color: var(--brand-ink); }
.qp-empty { padding: 18px 16px; margin: 0; text-align: center; }
.qp-all { display: block; padding: 12px 16px; font-weight: 700; font-size: 13.5px; }
.qp-form { padding: 12px 14px 4px; margin: 0; }
.qp-form p { margin: 0 0 10px; }
.qp-form .chat-box.boxed { margin-bottom: 8px; }
.qp-more { font-size: 12.5px; }
.qpop .convo { padding: 10px 14px; }
.qpop .convo .avatar { width: 40px; height: 40px; }
.qpop .dir { display: none; }

@media (max-width: 960px) {
  .chat-app { grid-template-columns: 1fr; height: calc(100vh - var(--top-h) - 32px); }
  .chat-side { display: none; }
  .chat-back { display: grid; }
}
@media (max-width: 600px) {
  .chat-head { flex-wrap: wrap; }
  .chat-head-actions { width: 100%; justify-content: flex-start; }
  .bubble { max-width: 86%; }
  .qpop { right: 14px; bottom: 14px; }
  .convo-tags { display: none; }
}
@media print { .qpop { display: none; } }

/* ---------- My organisation ---------- */
.org-branch { margin-bottom: 30px; }
.org-branch > h2 { display: flex; align-items: center; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 600; box-shadow: var(--shadow); }
.chip .avatar { width: 28px; height: 28px; font-size: 10.5px; box-shadow: none; }
.chip small { color: var(--muted); font-weight: 500; }
.chip.me { border-color: var(--brand); }
.team-card { margin-top: 16px; padding: 0; overflow: hidden; }
.team-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 20px; background: linear-gradient(120deg, color-mix(in srgb, var(--mod) 10%, var(--card)), var(--card)); border-bottom: 1px solid var(--line); }
.team-top h3 { margin: 0; font-size: 16px; }
.team-body { padding: 14px 20px 18px; }
.team-card .table-wrap { border: 0; border-radius: 0; border-top: 1px solid var(--line); }
.lead { display: inline-flex; align-items: center; gap: 10px; }
.lead .avatar { width: 40px; height: 40px; }
.lead small { display: block; color: var(--muted); font-size: 12px; }
.mini-people { display: inline-flex; }
.mini-people .avatar { width: 26px; height: 26px; font-size: 10px; margin-left: -6px; box-shadow: 0 0 0 2px var(--card); }
.mini-people .avatar:first-child { margin-left: 0; }
.flag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; }
.flag.red { color: var(--bad); }
.flag.amber { color: var(--warn); }
.flag.green { color: var(--ok); }

/* ---------- Finance (CEO only) ---------- */
.lock-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.92); background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: 999px; margin-top: 8px; }
.lock-note .i { width: 14px; height: 14px; }
.cur-lines { display: grid; gap: 2px; margin-top: 4px; }
.cur-lines b { font-size: 24px; }
.stat .cur-lines b { margin-top: 0; }
.share { display: flex; height: 8px; width: 120px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, #ec4899 22%, var(--card)); margin-top: 5px; }
.share i { display: block; background: linear-gradient(90deg, var(--mod), var(--mod-2)); }
.share-label { display: block; font-size: 12px; color: var(--muted); }
.share-label b { color: var(--ink); }
.client-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 20px; background: linear-gradient(120deg, color-mix(in srgb, var(--mod) 10%, var(--card)), var(--card)); border-bottom: 1px solid var(--line); }
.client-head h3 { margin: 0; font-size: 17px; }
.client-head .figs { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.client-head .figs b { display: block; font-size: 16px; color: var(--ink); }
.client-card { margin-top: 18px; padding: 0; overflow: hidden; }
.client-card .table-wrap { border: 0; border-radius: 0; box-shadow: none; }
.state { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.state.PAID { background: var(--ok-soft); color: var(--ok); }
.state.PARTIAL { background: var(--warn-soft); color: var(--warn); }
.state.UNPAID { background: var(--line-2); color: var(--ink-2); }
.state.late { background: var(--bad-soft); color: var(--bad); }
.state.ON_HOLD { background: var(--brand-soft); color: var(--brand); }
.progress { height: 10px; border-radius: 999px; background: var(--line-2); overflow: hidden; margin: 10px 0 4px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #10b981, #14b8a6); border-radius: 999px; }
.pay-inline { display: flex; gap: 6px; align-items: center; }
.pay-inline input { width: 110px; min-height: 34px; padding: 5px 9px; font-size: 13px; margin: 0; }
.pay-inline input[type=date] { width: 140px; }
.att-list { list-style: none; margin: 0; padding: 0; }
.att-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.att-list li:last-child { border-bottom: 0; }
.att-list small { display: block; color: var(--muted); font-size: 12px; }
.split > *, .row2 > * { min-width: 0; }
@media (max-width: 1100px) { .split { grid-template-columns: minmax(0, 1fr); } }
.att-list b { white-space: nowrap; }
.payout-actions { display: flex; gap: 6px; flex-wrap: nowrap; }

/* ---------- Targets & store requests ---------- */
.target-bar { position: relative; overflow: visible; }
.target-bar i { border-radius: 999px; }
.target-bar i.s-ACHIEVED { background: linear-gradient(90deg, #10b981, #14b8a6); }
.target-bar i.s-ON_TRACK { background: linear-gradient(90deg, #3b82f6, #06b6d4); }
.target-bar i.s-BEHIND { background: linear-gradient(90deg, #f59e0b, #f97316); }
.target-bar i.s-MISSED { background: linear-gradient(90deg, #ef4444, #e11d48); }
.target-bar em { position: absolute; top: -4px; width: 2px; height: 18px; background: var(--ink); opacity: .55; border-radius: 2px; }
.mini-stat { padding: 12px 14px; border-radius: 12px; background: var(--line-2); }
.mini-stat .muted { font-size: 12.5px; font-weight: 600; display: block; }
.mini-stat b { font-size: 22px; display: block; }
.mini-stat small { font-size: 12px; color: var(--muted); }
.hold-note { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); border-left: 4px solid var(--brand); }
.hold-note h3 { margin: 0 0 6px; }
.check-list { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; }
.check-list label { display: flex; gap: 8px; align-items: center; font-weight: 500; font-size: 14px; margin: 0; }
.check-list input { width: auto; margin: 0; }
[data-mod="target"]   { --mod: #db2777; --mod-2: #f59e0b; }
[data-mod="hand"]     { --mod: #0891b2; --mod-2: #6366f1; }

/* ---------- Tasks ---------- */
[data-mod="task"]     { --mod: #7c3aed; --mod-2: #0ea5e9; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.board-col { background: var(--line-2); border-radius: 16px; padding: 12px; display: grid; gap: 10px; }
.board-col h3 { margin: 2px 4px 4px; font-size: 14px; display: flex; gap: 6px; }
.board-empty { margin: 4px; font-size: 13px; }
.task-card { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); }
.task-card:hover { text-decoration: none; border-color: var(--mod); }
.task-card.late { box-shadow: inset 4px 0 0 var(--bad), var(--shadow); }
.task-card b { font-size: 14.5px; line-height: 1.35; }
.task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; }
.task-meta .i { width: 14px; height: 14px; }
.task-meta .avatar { width: 22px; height: 22px; font-size: 9.5px; }
@media (max-width: 900px) { .board { grid-template-columns: minmax(0, 1fr); } }
/* Your late tasks, at the top of the Tasks page (owner, 2026-11-30) */
.late-banner { margin-bottom: 20px; padding: 16px 18px; border-radius: 16px; background: var(--bad-soft); border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent); box-shadow: inset 5px 0 0 var(--bad); }
.late-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.late-head h2 { margin: 0 0 2px; font-size: 17px; color: var(--bad); }
.late-head small { color: var(--ink-2); font-size: 13px; }
.late-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.late-row { display: grid; gap: 3px; padding: 10px 12px; border-radius: 11px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.late-row:hover { text-decoration: none; border-color: var(--bad); }
.late-row b { font-size: 14px; line-height: 1.35; }
.late-row > span { font-size: 12.5px; color: var(--bad); }
.late-more { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--bad); }
/* CEO: tick many tasks and close them together */
.pick-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.pick-bar .grow { flex: 1 1 260px; display: grid; gap: 2px; }
.pick-bar small { font-size: 12.5px; }
.link-btn { margin-left: auto; width: auto; min-height: 0; display: inline; padding: 0; border: 0; background: none; color: var(--mod); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; box-shadow: none; }
.task-pick { position: relative; }
.task-pick > input { position: absolute; top: 13px; right: 12px; width: 20px; height: 20px; margin: 0; z-index: 1; cursor: pointer; accent-color: var(--mod); }
.task-pick .task-card { padding-right: 42px; }
.task-pick.on .task-card { border-color: var(--mod); background: color-mix(in srgb, var(--mod) 7%, var(--card)); }
.pick-go { position: sticky; bottom: 14px; z-index: 6; display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--mod); box-shadow: 0 8px 28px rgba(15, 23, 42, .18); }
.pick-go[hidden] { display: none; }
.pick-go { padding-right: 150px; } /* room for the round calculator and chat buttons */
@media (max-width: 600px) { .pick-go { flex-wrap: wrap; padding-right: 16px; bottom: 84px; } }


/* ---------- Notifications ---------- */
[data-mod="bell"]     { --mod: #ea580c; --mod-2: #e11d48; }
.mode-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; margin: 0; padding: 0; min-height: 0; border: 0; border-radius: 12px; background: var(--line-2); color: var(--ink-2); box-shadow: none; }
.mode-btn:hover { color: var(--brand); filter: none; box-shadow: none; }
.mode-btn .i { width: 20px; height: 20px; }
.mode-btn .sun { display: none; }
:root[data-mode="dark"] .mode-btn .sun { display: block; }
:root[data-mode="dark"] .mode-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root[data-mode="auto"] .mode-btn .sun { display: block; }
  :root[data-mode="auto"] .mode-btn .moon { display: none; }
}
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 10px 6px; }
.modes button { margin: 0; padding: 8px 4px; min-height: 0; flex-direction: column; gap: 4px; font-size: 12px; border-radius: 10px; background: var(--line-2); color: var(--ink-2); box-shadow: none; border: 1.5px solid transparent; }
.modes button:hover { color: var(--ink); filter: none; }
.modes button.on { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); }
.modes .i { width: 18px; height: 18px; }
.bell { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--line-2); color: var(--ink-2); }
.bell:hover { text-decoration: none; color: var(--brand); }
.bell .i { width: 20px; height: 20px; }
.bell b { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 11px; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--card); }
.note-list { display: grid; gap: 0; }
.note-item { display: flex; gap: 14px; align-items: center; padding: 14px 18px 14px 6px; color: var(--ink); flex: 1; min-width: 0; }
/* Each row has a tick box on the left to mark only the chosen ones as read (owner, 2026-11-11). */
.note-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.note-row:last-child { border-bottom: 0; }
.note-row[hidden] { display: none; }
.note-row.new { background: color-mix(in srgb, var(--mod) 6%, var(--card)); }
.note-row.still-open { background: color-mix(in srgb, var(--bad) 7%, var(--card)); box-shadow: inset 4px 0 0 var(--bad); }
.note-row.still-open.new { background: color-mix(in srgb, var(--bad) 11%, var(--card)); }
.note-pick { display: flex; align-items: center; padding: 0 4px 0 16px; margin: 0; cursor: pointer; }
.note-pick input { width: 18px; height: 18px; margin: 0; cursor: pointer; }
.pick-bar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 0 0 10px; padding: 0 4px; }
.pick-bar .check-row { margin: 0; }
.pick-bar button { margin: 0; }
.note-item:hover { text-decoration: none; background: var(--line-2); }
.note-item .grow { flex: 1; min-width: 0; }
.note-item .grow b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.note-item small { color: var(--muted); font-size: 12.5px; }
.note-item.new .grow b { font-weight: 800; }
.note-item .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mod); flex: none; }
.note-item .dot.off { background: transparent; }
.note-item .grow .badge { margin-left: 8px; vertical-align: 1px; }
/* A store problem not fixed yet keeps its colour even after it is seen (owner, 2026-11-04). */
.problem-count { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding: 12px 16px; margin-bottom: 14px; }
.problem-count a.badge:hover { text-decoration: none; filter: brightness(.95); }
.problem-count a.badge.on { outline: 2px solid currentColor; outline-offset: 1px; }
.check-row { display: flex; gap: 10px; align-items: center; font-weight: 600; margin: 8px 0 0; }
.check-row input { width: auto; margin: 0; }

/* ---------- Reports ---------- */
[data-mod="report"]   { --mod: #1d4ed8; --mod-2: #0d9488; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.kv:last-of-type { border-bottom: 0; }
.kv span:first-child { color: var(--ink-2); }
.kv b { text-align: right; white-space: nowrap; }
.kv.total { border-top: 2px solid var(--line); border-bottom: 0; margin-top: 4px; padding-top: 12px; font-size: 16px; }
.kv b.ok { color: var(--ok); }
tr.total-row td { background: var(--line-2); font-weight: 700; }
.print-only { display: none; }
@media print {
  .print-only { display: block; }
  .month-nav, .btn, button { display: none !important; }
  .row2 { grid-template-columns: 1fr 1fr; }
  tr { break-inside: avoid; }
  h2 { break-after: avoid; }
}

/* ---------- Store logins ---------- */
[data-mod="key"]      { --mod: #b45309; --mod-2: #7c3aed; }
.vault-lock { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.vault-lock .grow { flex: 1; min-width: 0; }
.vault-lock label { font-weight: 600; }
.vault-item { margin-bottom: 12px; padding: 14px 16px; }
.vault-item.open { border-color: var(--mod); }
.vault-row { display: flex; gap: 14px; align-items: center; }
.vault-row .grow { flex: 1; min-width: 0; }
.vault-row .grow b { display: block; }
.vault-row small { overflow-wrap: anywhere; }
dl.secret { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 14px; margin: 14px 0 10px; align-items: center; }
dl.secret dt { color: var(--muted); font-weight: 600; font-size: 13px; }
dl.secret dd { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
dl.secret code { background: var(--line-2); padding: 4px 8px; border-radius: 8px; font-size: 14px; overflow-wrap: anywhere; user-select: all; }

/* ---------- Products & research ---------- */
[data-mod="box"]      { --mod: #0e7490; --mod-2: #65a30d; }
[data-mod="bulb"]     { --mod: #ca8a04; --mod-2: #db2777; }
[data-mod="truck"]    { --mod: #4338ca; --mod-2: #0891b2; }
.ok-text { color: var(--ok); }

/* ---------- Who can use what (CEO) ---------- */
[data-mod="toggle"]   { --mod: #0f766e; --mod-2: #6366f1; }
.switch-row { display: flex; align-items: center; gap: 16px; margin: 0; padding: 13px 0; border-bottom: 1px solid var(--line-2); font-weight: 500; cursor: pointer; }
.switch-row .grow { flex: 1; min-width: 0; }
.switch-row b { display: block; color: var(--ink); font-size: 14.5px; }
.switch-row small { display: block; color: var(--muted); font-size: 13px; }
input.switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 46px; min-height: 0; height: 26px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: background .2s; }
input.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
input.switch:checked { background: linear-gradient(135deg, var(--mod), var(--mod-2)); }
input.switch:checked::after { transform: translateX(20px); }
input.switch:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--mod) 25%, transparent); }
.plain-list { margin: 0; padding-left: 18px; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }

/* ---------- Dashboard: waiting list and attendance today ---------- */
.stack { display: grid; gap: 20px; align-content: start; }
.stat b .of { font-size: 18px; font-weight: 700; opacity: .8; }
.big-count { min-width: 34px; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--mod) 14%, var(--card)); color: color-mix(in srgb, var(--mod) 70%, var(--ink)); font-weight: 800; font-size: 15px; text-align: center; }
.all-clear { display: flex; gap: 14px; align-items: center; padding: 6px 0; }
.all-clear small { display: block; color: var(--muted); font-size: 13px; }
.att-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 3px; background: var(--line-2); }
.att-bar i { display: block; min-width: 6px; }
.att-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.att-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: var(--line-2); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.att-chip i { width: 9px; height: 9px; border-radius: 50%; }
.att-chip b { color: var(--ink); }
.t-ok { --t: #10b981; } .t-warn { --t: #f59e0b; } .t-info { --t: #0ea5e9; } .t-bad { --t: #ef4444; } .t-grey { --t: #94a3b8; }
.att-bar i, .att-chip i { background: var(--t); }

/* ---------- Trend charts (sales and profit by month) ---------- */
:root { --series-sales: #2a78d6; --series-profit: #eb6834; }
:root[data-mode="dark"] { --series-sales: #3987e5; --series-profit: #d95926; }
@media (prefers-color-scheme: dark) { :root[data-mode="auto"] { --series-sales: #3987e5; --series-profit: #d95926; } }
.k-sales { --k: var(--series-sales); } .k-profit { --k: var(--series-profit); }
.trend { margin: 0 0 22px; }
.trend:last-of-type { margin-bottom: 0; }
.trend figcaption { font-weight: 800; font-size: 14px; margin-bottom: 4px; }
.trend-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.trend-legend span { display: inline-flex; align-items: center; gap: 6px; }
.trend-legend i { width: 14px; height: 3px; border-radius: 2px; background: var(--k); }
.trend-legend .muted { font-weight: 500; margin-left: auto; font-size: 12px; }
.trend-plot { display: grid; grid-template-columns: 64px minmax(0, 1fr); }
.trend-y { position: relative; height: 200px; }
.trend-y span { position: absolute; right: 10px; transform: translateY(-50%); font-size: 11.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.trend-area { position: relative; height: 200px; margin-right: 76px; }
.trend-area svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trend-area .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.trend-area .grid.zero { stroke: color-mix(in srgb, var(--ink) 35%, transparent); }
.trend-area .ln { fill: none; stroke: var(--k); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.trend-area .pt { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--k); box-shadow: 0 0 0 2px var(--card); }
.end-label { position: absolute; left: 100%; transform: translateY(-50%); padding-left: 10px; font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.trend-hover { position: absolute; inset: 0; display: grid; }
.trend-hover > div { outline: 0; cursor: crosshair; }
.trend-cross { position: absolute; top: 0; bottom: 0; width: 1px; background: color-mix(in srgb, var(--ink) 30%, transparent); pointer-events: none; }
.trend-tip { position: absolute; top: 4px; z-index: 2; margin-left: 12px; min-width: 150px; padding: 8px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 12.5px; pointer-events: none; display: grid; gap: 3px; }
.trend-tip[hidden], .trend-cross[hidden] { display: none; }
.trend-tip.left { transform: translateX(-100%); margin-left: -12px; }
.trend-tip span { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.trend-tip span b { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; }
.trend-tip i { width: 10px; height: 3px; border-radius: 2px; background: var(--k); }
.trend-tip small { color: var(--muted); }
.trend-x { display: grid; margin: 8px 76px 0 64px; font-size: 11.5px; color: var(--muted); text-align: center; }
.trend-x small { display: block; font-size: 10.5px; }
.trend-table { margin-top: 10px; font-size: 13px; }
.trend-table summary { cursor: pointer; color: var(--brand-ink); font-weight: 600; }
.trend-table .table-wrap { margin-top: 10px; }
@media (max-width: 600px) {
  .trend-plot { grid-template-columns: 52px minmax(0, 1fr); }
  .trend-area { margin-right: 8px; }
  .end-label { display: none; }
  .trend-x { margin: 8px 8px 0 52px; }
  .trend-x span:nth-child(even) { visibility: hidden; }
  .trend-y, .trend-area { height: 170px; }
}

/* ---------- Search (top bar, search page, find in list) ---------- */
.top-search { position: relative; display: flex; align-items: center; }
.top-search svg { position: absolute; left: 11px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.top-search input { width: 250px; min-height: 0; height: 36px; padding: 0 12px 0 34px; border-radius: 999px; font-size: 13.5px; background: var(--line-2); border-color: transparent; transition: width .2s, background .2s; }
.top-search input:focus { width: 320px; background: var(--card); border-color: var(--brand); }
.top-search-btn { display: none; width: 38px; height: 38px; border-radius: 10px; align-items: center; justify-content: center; color: var(--ink-2); }
@media (max-width: 1180px) { .top-search input { width: 190px; } .top-search input:focus { width: 240px; } }
@media (max-width: 960px) { .top-search { display: none; } .top-search-btn { display: inline-flex; } }
.big-search input[type=search] { font-size: 16px; min-height: 46px; }
.search-sec { margin-bottom: 16px; }
.search-sec h2 { display: flex; align-items: center; gap: 10px; margin: 0; }
.search-sec h2 .tile { width: 32px; height: 32px; border-radius: 9px; }
.search-sec h2 .tile svg { width: 17px; height: 17px; }
.find .find-count { font-size: 13px; white-space: nowrap; }

/* ---------- Store problems ---------- */
[data-mod="alert"]    { --mod: #dc2626; --mod-2: #f97316; }
.problem-list { display: grid; }
.problem { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 12px; color: var(--ink); border-left: 4px solid transparent; }
.problem + .problem { margin-top: 2px; }
.problem:hover { background: var(--line-2); text-decoration: none; }
.problem.u-urgent:not(.fixed) { border-left-color: var(--bad); background: color-mix(in srgb, var(--bad-soft) 60%, transparent); }
.problem.u-high:not(.fixed) { border-left-color: var(--warn); }
.problem .grow { flex: 1; min-width: 0; }
.problem .grow b { display: block; overflow-wrap: anywhere; }
.problem small { display: block; color: var(--muted); font-size: 13px; }
.problem .tile { width: 40px; height: 40px; }
.problem-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.prob-flag { display: flex; width: max-content; margin-top: 6px; }
fieldset.pick { border: 0; padding: 0; margin: 4px 0 6px; display: flex; gap: 8px; flex-wrap: wrap; }
fieldset.pick legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
fieldset.pick label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 700; margin: 0; }
fieldset.pick label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
fieldset.pick label.pick-urgent:has(input:checked) { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
fieldset.pick label.pick-high:has(input:checked) { border-color: var(--warn); background: var(--warn-soft); color: var(--warn); }
@media (max-width: 600px) { .problem { flex-wrap: wrap; } .problem-badges { width: 100%; justify-content: flex-start; padding-left: 54px; } }

/* ---------- My planner ---------- */
[data-mod="note"]     { --mod: #7c3aed; --mod-2: #0ea5e9; }
.quick-add { margin-bottom: 18px; padding: 14px; }
.qa-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.qa-row > select { flex: 0 0 120px; width: auto; }
.qa-row > input[type=text] { flex: 1 1 240px; width: auto; }
.qa-row button { margin: 0; }
.qa-row label { flex: 1 1 160px; margin: 0; font-size: 13px; }
.qa-more { margin-top: 10px; }
.qa-more summary { cursor: pointer; color: var(--ink-2); font-weight: 600; font-size: 13.5px; margin-bottom: 8px; }
.plan-head { display: flex; align-items: center; gap: 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); margin: 20px 0 8px; }
.plan-head.bad { color: var(--bad); }
.plan-head.warn { color: var(--warn); }
.plan-list { padding: 4px 6px; }
.plan-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 8px; border-bottom: 1px solid var(--line-2); }
.plan-item:last-child { border-bottom: 0; }
.plan-item .grow { flex: 1; min-width: 0; color: var(--ink); }
.plan-item .grow:hover { text-decoration: none; }
.plan-item .grow > b { display: flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.plan-item small { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 4px; color: var(--muted); font-size: 13px; }
.plan-item small span { display: inline-flex; align-items: center; gap: 4px; }
.plan-item small svg { width: 14px; height: 14px; }
.plan-item .pin { width: 15px; height: 15px; color: var(--mod); }
.plan-item.done .grow > b { text-decoration: line-through; color: var(--muted); }
.plan-item.p-urgent:not(.done) { box-shadow: inset 3px 0 0 var(--bad); }
.plan-item.p-high:not(.done) { box-shadow: inset 3px 0 0 var(--warn); }
.plan-item form { margin: 0; }
.tick { width: 26px; height: 26px; min-height: 0; padding: 0; margin: 0; border-radius: 50%; border: 2px solid var(--line); background: var(--card); color: transparent; box-shadow: none; display: grid; place-items: center; }
.tick svg { width: 15px; height: 15px; }
.tick:hover { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }
.plan-item.done .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.note-body { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.note-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.note-grid .plan-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; border-top: 4px solid var(--mod); }
.goal-bar { display: block; height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; margin-top: 10px; }
.goal-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--mod), var(--mod-2)); }
.goal-pct { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.goal-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 40px; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.goal-row:hover { text-decoration: none; }
.goal-row .grow b { display: block; overflow-wrap: anywhere; }
.goal-row small { display: block; color: var(--muted); font-size: 13px; }
.goal-row .goal-bar { margin: 0; }
.goal-row .goal-pct { text-align: right; }
.mini-add { display: flex; gap: 8px; margin-top: 12px; }
.mini-add input { flex: 1; min-width: 0; min-height: 38px; }
.mini-add button { margin: 0; padding: 0 12px; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 8px 0 14px; }

/* ---------- People and the CEO's team card ---------- */
.role-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.role-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-weight: 650; font-size: 13.5px; }
.role-chips a b { color: var(--ink); }
.role-chips a:hover { text-decoration: none; border-color: var(--brand); }
.role-chips a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.role-chips a.on b { color: #fff; }
a.bar-row { color: var(--ink); }
a.bar-row:hover { text-decoration: none; }
a.bar-row:hover .bar-fill { filter: brightness(1.1); }
.team-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.team-split h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 4px; }
a.kv { color: var(--ink); }
a.kv:hover { text-decoration: none; color: var(--brand); }
.task-split { margin-top: 0; }
.task-split h3 a { color: inherit; }
@media (max-width: 600px) { .team-split { grid-template-columns: 1fr; } .bar-row { grid-template-columns: 110px 1fr 40px; } }
.crumbs { min-width: 0; overflow: hidden; white-space: nowrap; }
@media (max-width: 600px) { .crumbs > span:not(.ic), .crumbs > svg { display: none; } .crumbs b { overflow: hidden; text-overflow: ellipsis; } }

/* ---------- Month on month (always shown) with the graph on request ---------- */
.compare-wrap { display: grid; gap: 14px; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.compare-cur { grid-column: 1 / -1; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--muted); margin-bottom: -4px; }
.cmp-tile { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.cmp-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.cmp-label i { width: 10px; height: 3px; border-radius: 2px; background: var(--series-sales); }
.cmp-label i.k-profit { background: var(--series-profit); }
.cmp-tile > b { font-size: 22px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.cmp-tile > b.muted { font-size: 16px; font-weight: 650; }
.cmp-change { font-size: 13px; color: var(--muted); }
.chg { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 999px; font-weight: 750; background: var(--line-2); color: var(--ink-2); }
.chg.up { background: var(--ok-soft); color: var(--ok); }
.chg.down { background: var(--bad-soft); color: var(--bad); }
.cmp-tile small { font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 6px; margin-top: 4px; }
details.trend-open { margin-top: 14px; }
details.trend-open > summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--brand-ink); background: var(--brand-soft); }
details.trend-open > summary::-webkit-details-marker { display: none; }
details.trend-open > summary svg { width: 16px; height: 16px; }
details.trend-open > summary:hover { border-color: var(--brand); }
details.trend-open .when-open, details.trend-open[open] .when-shut { display: none; }
details.trend-open[open] .when-open { display: inline; }
details.trend-open[open] > summary { margin-bottom: 16px; }
@media (max-width: 600px) { .compare { grid-template-columns: minmax(0, 1fr); } }
.chg.sm { display: flex; width: max-content; margin: 3px 0 0 auto; font-size: 11.5px; padding: 0 6px; }

/* ---------- User manual ---------- */
[data-mod="book"]     { --mod: #0d9488; --mod-2: #4f46e5; }
.manual { display: grid; gap: 14px; max-width: 900px; }
.manual-role > summary { cursor: pointer; list-style: none; }
.manual-role > summary::-webkit-details-marker { display: none; }
.manual-role > summary h2 { margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.manual-role > summary h2::after { content: "+"; margin-left: auto; color: var(--muted); font-weight: 600; }
.manual-role[open] > summary h2::after { content: "−"; }
.manual-role > summary p { margin: 0; }
.manual-role h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--mod); margin: 20px 0 6px; }
.manual-role ul { margin: 0; padding-left: 20px; display: grid; gap: 7px; line-height: 1.55; }
@media print { .manual nav, .sidebar, .topbar, .foot { display: none !important; } .manual-role { break-inside: avoid; box-shadow: none; } }
.drop button.item[hidden] { display: none; }

/* Login security (2-step login) */
.auth.auth-single { grid-template-columns: 1fr; }
.auth-single .auth-mobile-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 18px; }
.code-input { font-size: 24px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.msg.info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 25%, transparent); color: var(--info); }
.sec-state { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.sec-state > .i { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); flex: none; }
.sec-state.on > .i { background: var(--ok-soft); color: var(--ok); }
.sec-state b, .sec-state span { display: block; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.grid-2 h3 { margin: 0 0 4px; }
.setup-steps { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.setup-steps ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.setup-steps .qr { text-align: center; }
.setup-steps .qr svg { display: block; width: 200px; height: 200px; border-radius: 12px; }
.setup-steps .key { display: inline-block; margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--card-2); border: 1px solid var(--line); word-break: break-all; font-size: 14px; letter-spacing: .08em; }
.confirm-row { margin-top: 20px; max-width: 360px; }
.confirm-row .qa-row { display: flex; gap: 8px; }
.code-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px 18px; padding-left: 22px; font-size: 16px; }
.recovery { border: 2px dashed var(--warn); margin-bottom: 20px; }
@media (max-width: 640px) { .setup-steps { grid-template-columns: 1fr; } .setup-steps .qr svg { margin: 0 auto; } }
@media print { .recovery { border: 0; } .recovery button { display: none; } }

/* A dashboard tile that is a link as a whole (also when its numbers are not hidden) */
.stat .stretch { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.stat:has(.stretch) { cursor: pointer; }
.stat:has(.stretch):hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat .stretch:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }

/* The dashboard's row of boxes (owner, 2026-10-31): each opens its page. "Ring" layout: icon and name on top,
   a big number with a progress ring beside it, and a pill for what needs attention. Colours come from the Style. */
.grid.dash-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid.dash-tiles.n7 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dash-tiles.n7 > [data-tile="stores"] { grid-column: span 2; }
@media (max-width: 1100px) { .grid.dash-tiles, .grid.dash-tiles.n7 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dash-tiles > .stat { display: flex; flex-direction: column; gap: 12px; min-height: 0; padding: 16px 16px 15px; border-radius: 20px;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s; }
.dash-tiles > .stat:has(.stretch):hover { transform: translateY(-4px); }
.dash-tiles > .stat:nth-child(7n+1) { --c1: #6366f1; --c2: #8b5cf6; }
.dash-tiles > .stat:nth-child(7n+2) { --c1: #ec4899; --c2: #f472b6; }
.dash-tiles > .stat:nth-child(7n+3) { --c1: #0ea5e9; --c2: #06b6d4; }
.dash-tiles > .stat:nth-child(7n+4) { --c1: #10b981; --c2: #34d399; }
.dash-tiles > .stat:nth-child(7n+5) { --c1: #f43f5e; --c2: #fb7185; }
.dash-tiles > .stat:nth-child(7n+6) { --c1: #f59e0b; --c2: #fbbf24; }
.dash-tiles > .stat:nth-child(7n+7) { --c1: #2563eb; --c2: #3b82f6; }
.t-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dash-tiles > .stat .tile { float: none; flex: none; margin: 0; width: 36px; height: 36px; border-radius: 12px; }
.dash-tiles > .stat .tile .i { width: 19px; height: 19px; }
.dash-tiles > .stat .muted { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; font-size: 14px; font-weight: 700; white-space: nowrap; }
.dash-tiles > .stat .muted .lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dash-tiles > .stat .muted .peek { flex: none; height: 22px; min-height: 0; margin: 0; padding: 0 8px 0 6px; line-height: 1; }
.tile-go { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.18);
  opacity: .85; transition: transform .2s, opacity .2s, background .2s; }
.tile-go .i { width: 14px; height: 14px; }
.stat:hover .tile-go { opacity: 1; background: rgba(255,255,255,.3); transform: translateX(3px); }
.t-mid { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; }
.t-num { min-width: 0; }
.dash-tiles > .stat b { font-size: 34px; line-height: 1; margin: 0; letter-spacing: -.04em; }
.dash-tiles > .stat b .of { font-size: 17px; letter-spacing: 0; }
.dash-tiles > .stat b.word { font-size: 24px; letter-spacing: -.02em; }
.dash-tiles > .stat .t-num small { margin-top: 6px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Progress ring: a conic fill cut to a ring with a mask, so it sits on any background */
.dash-tiles > .stat { --ring: #fff; --track: rgba(255,255,255,.25); }
.t-ring { --p: 0; position: relative; flex: none; width: 58px; height: 58px; display: grid; place-items: center; }
.t-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--ring) calc(var(--p) * 1%), var(--track) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5.5px)); }
.t-ring > span { font-size: 12.5px; font-weight: 800; line-height: 1.05; text-align: center; }
.t-ring small { display: block; font-size: 8.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
/* Status pill */
.t-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; min-height: 24px; }
.t-pill { position: relative; z-index: 0; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,.94); color: #334155; white-space: nowrap; }
.t-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.t-pill.ok { color: #047857; } .t-pill.warn { color: #b45309; } .t-pill.bad { color: #b91c1c; } .t-pill.info { color: #1d4ed8; }
/* Stores: BreMa / client split with a legend */
.t-split { position: relative; z-index: 0; display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.28); }
.t-split i { display: block; background: #fff; }
.t-split i + i { flex: 1; background: rgba(255,255,255,.45); }
.t-legend { display: flex; gap: 14px; font-size: 12.5px; font-weight: 600; }
.t-legend span { display: flex; align-items: center; gap: 6px; }
.t-legend em { width: 9px; height: 9px; border-radius: 3px; background: #fff; }
.t-legend em.c2 { background: rgba(255,255,255,.5); }
.dash-tiles > .stat .mva { margin: 0; }
/* Hidden numbers (CEO): the ring, bar, legend and pill blur with them */
.secret.is-hidden :is(.t-ring, .t-split, .t-legend, .t-pill) { filter: blur(7px); user-select: none; }
.dash-tiles > .stat.tone-bad .tile { background: rgba(255,255,255,.95); color: #e11d48; }
:is(html[data-look="classic"], html[data-look="app"], html[data-look="navy"]) .dash-tiles > .stat.secret.is-hidden .tile { background: rgba(255,255,255,.22); color: #fff; }
/* Finish: rounder corners, a fine light edge, a soft ring in the corner, a deeper hover */
.dash-tiles > .stat .tile { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 10px -4px rgba(15,23,42,.25); }
html[data-look="classic"] .dash-tiles > .stat.fill {
  background: radial-gradient(120% 140% at 0% 0%, rgba(255,255,255,.2), transparent 55%), linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 1px 2px rgba(15,23,42,.08), 0 10px 22px -8px color-mix(in srgb, var(--c1) 60%, transparent); }
html[data-look="classic"] .dash-tiles > .stat.fill:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 2px 4px rgba(15,23,42,.08), 0 18px 32px -10px color-mix(in srgb, var(--c1) 70%, transparent); }
html[data-look="classic"] .dash-tiles > .stat.fill::after { width: 120px; height: 120px; right: -44px; top: auto; bottom: -60px; background: none; border: 18px solid rgba(255,255,255,.08); }
@media (min-width: 1101px) {
  .dash-tiles.n7 > .stat:not([data-tile="stores"]) .peek-word { display: none; }
  .dash-tiles.n7 > .stat:not([data-tile="stores"]) .muted .peek { padding: 0 6px; }
  .dash-tiles.n7 > .stat.secret:not([data-tile="stores"]) .tile-go { display: none; }
  .dash-tiles.n7 > .stat:not([data-tile="stores"]) .muted { font-size: 13.5px; }
}
@media (max-width: 600px) {
  .grid.dash-tiles { gap: 10px; }
  .dash-tiles > .stat { padding: 12px; gap: 10px; border-radius: 16px; }
  .dash-tiles > .stat .tile { width: 30px; height: 30px; border-radius: 10px; }
  .dash-tiles > .stat .tile .i { width: 16px; height: 16px; }
  .dash-tiles > .stat .muted { font-size: 12px; white-space: normal; flex-wrap: wrap; row-gap: 4px; }
  .dash-tiles > .stat b { font-size: 26px; }
  .dash-tiles > .stat b.word { font-size: 18px; }
  .dash-tiles > .stat .t-num small { font-size: 11.5px; white-space: normal; }
  .t-ring { width: 44px; height: 44px; }
  .t-ring > span { font-size: 10.5px; }
  .t-ring small { display: none; }
  .t-pill { font-size: 11px; padding: 2px 8px; }
  .tile-go { display: none; }
}

/* Dashboard tile whose numbers stay hidden until the eye is pressed */
.secret .peek { position: relative; z-index: 2; display: inline-flex; vertical-align: middle; margin: -4px 0 0 6px; padding: 4px; height: auto; min-height: 0; width: auto; box-shadow: none; font-size: 0; border: 0; border-radius: 8px; background: rgba(255,255,255,.2); color: inherit; cursor: pointer; }
.secret .peek:hover, .secret .peek:focus-visible { background: rgba(255,255,255,.35); }
.secret .peek .i { width: 16px; height: 16px; }
.secret .mask, .secret.is-hidden .shown, .secret .eye-off, .secret.is-hidden .eye-on { display: none; }
.secret.is-hidden .mask, .secret.is-hidden .eye-off { display: inline; }
.secret .mask[aria-hidden] { filter: blur(6px); user-select: none; }
.secret .peek { gap: 4px; padding: 3px 9px 3px 6px; }
.secret .peek-word { font-size: 12px; font-weight: 700; }
.secret small .mask[aria-hidden] { filter: blur(4px); }
.secret.is-hidden .mask.sr, .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Client page: who gets what from each store's profit */
.split-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.share-bar { display: flex; gap: 2px; height: 12px; border-radius: 999px; overflow: hidden; background: var(--line); margin-bottom: 12px; }
.share-bar i { display: block; height: 100%; min-width: 2px; }
.sb-client { background: #94a3b8; }
.sb-ref { background: #f59e0b; }
.sb-staff { background: #0ea5e9; }
.sb-brema { background: var(--brand); }
.share-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.share-table td { padding: 6px 4px; border-bottom: 1px solid var(--line); }
.share-table td.in { padding-left: 18px; }
.share-table tr.total td { border-bottom: 0; border-top: 2px solid var(--line); }
.share-table .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.cp-rec[hidden], .cp-files[hidden], .cp-error[hidden], .cp-mic[hidden] { display: none; }

/* Each person's profit on a store */
.people-card { margin-bottom: 18px; }
.people-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.people-head h2 { margin: 0; }
.people-sum { display: flex; flex-wrap: wrap; gap: 8px; }
.store-figures { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: flex-end; padding: 12px 14px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; }
.store-figures label { display: flex; flex-direction: column; gap: 6px; margin: 0; font-weight: 700; font-size: 13px; }
.steps-help { margin: 0 0 8px; padding-left: 20px; font-size: 13px; line-height: 1.6; }
.steps-help b { color: var(--ink); }
.formula { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--mod) 10%, transparent); font-size: 14px; }
.store-figures input { width: 160px; }
.store-figures p { flex-basis: 100%; margin: 0; font-size: 13px; }
.store-fixed { display: flex; flex-direction: column; gap: 4px; min-width: 160px; font-size: 13px; }
.store-fixed b { font-size: 16px; }
.people-sum span { padding: 6px 12px; border-radius: 10px; background: var(--line-2); font-size: 13px; color: var(--muted); }
.people-sum b { color: var(--ink); margin-left: 4px; }
.people-card .form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; }
.people-card .form-actions button { margin: 0; }
.people-card .form-actions .muted { font-size: 13px; }
.people-table td.shares { min-width: 300px; }
.share-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 2px 0; font-size: 13.5px; }

/* ---------- Pay plans ---------- */
.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 6px 0 16px; }
.choice { position: relative; display: block; margin: 0; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body { display: grid; gap: 3px; height: 100%; padding: 12px 14px 12px 40px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); transition: border-color .15s, box-shadow .15s, background .15s; }
.choice-body::before { content: ""; position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); box-sizing: border-box; }
.choice-body b { font-size: 14px; }
.choice-body small { font-size: 12.5px; color: var(--muted); font-weight: 500; line-height: 1.4; }
.choice:hover .choice-body { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.choice input:checked + .choice-body { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--card)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.choice input:checked + .choice-body::before { border: 5px solid var(--brand); }
.choice input:focus-visible + .choice-body { outline: 2px solid var(--brand); outline-offset: 2px; }
.field-title { margin: 4px 0 0; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.plan-form [hidden] { display: none !important; }
.plan-form .form-actions, .plan-form-row .form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.plan-form .form-actions button { margin: 0; }
.input-suffix { position: relative; display: block; }
.input-suffix input { padding-right: 34px; }
.input-suffix i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 700; color: var(--muted); }
.plan-stack { display: grid; gap: 20px; }
.plan-stack .card-head, .plan-cols .card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.plan-stack .card-head h2 { margin: 0; }
.plan-stack .card-head .muted { font-size: 13px; }
.plan-stores { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 12px; align-items: start; }
.plan-stores .plan-store { margin-top: 0; }
.plan-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 20px; align-items: start; }
.plan-cols .card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.plan-cols .card-head h2 { margin: 0; }
.plan-cols .card-head .muted { font-size: 13px; }
.plan-line { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.plan-line.ended { opacity: .7; }
.plan-what b { white-space: nowrap; }
.plan-what { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.plan-what small { flex-basis: 100%; color: var(--muted); font-size: 12.5px; }
.plan-amount { text-align: right; font-weight: 800; font-size: 16px; white-space: nowrap; }
.plan-amount small { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.plan-store { margin-top: 10px; padding: 4px 14px 2px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--line-2) 45%, var(--card)); }
.plan-store-head { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.plan-store-head .tile { width: 34px; height: 34px; border-radius: 10px; }
.plan-store-head small { display: block; color: var(--muted); font-size: 12px; }
.plan-none { padding: 14px 0 4px; border-top: 1px solid var(--line); margin: 0; }
.line-actions { display: flex; gap: 6px; align-items: center; }
.line-actions form { margin: 0; }
.line-actions .btn, .line-actions button { margin: 0; }
.icon-btn { padding: 0 8px; }
.end-pop { position: relative; }
.end-pop summary { list-style: none; cursor: pointer; }
.end-pop summary::-webkit-details-marker { display: none; }
.end-form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 250px; display: grid; gap: 8px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); }
.end-form label { margin: 0; font-size: 13px; }
.end-form button { margin: 0; }
.plan-more summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.plan-more summary h2 { margin: 0; }
.plan-more summary::-webkit-details-marker { display: none; }
.plan-more[open] summary { margin-bottom: 6px; }
.share-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
@media (max-width: 640px) {
  .plan-stores, .plan-cols { grid-template-columns: 1fr; }
  .plan-line { grid-template-columns: 1fr auto; }
  .line-actions { grid-column: 1 / -1; }
}
/* A whole card can be "secret" too: its content stays blurred until Show is pressed. */
.card.secret { position: relative; }
.card.secret .peek { background: var(--line-2); color: var(--ink-2); margin-left: 8px; }
.card.secret .peek:hover, .card.secret .peek:focus-visible { background: var(--brand-soft); color: var(--brand-ink); }
.card.secret.is-hidden .secret-body { filter: blur(9px); user-select: none; pointer-events: none; }
.card.secret .secret-body { transition: filter .2s; }

/* ---------- Chat: groups, ticks, delete and forward ---------- */
.avatar.group { background: linear-gradient(135deg, #10b981, #0ea5e9); }
.avatar.group .i { width: 18px; height: 18px; }
.dir.grp { color: var(--ok); background: var(--ok-soft); }
.ticks { font-size: 13px; }
.ticks.seen { color: #34b7f1; }
.ticks.some { color: var(--muted); }
.group-names { display: block; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-info { margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--line-2) 50%, var(--card)); display: grid; gap: 10px; }
.group-info[hidden] { display: none; }
.group-info-head { display: flex; gap: 8px; align-items: center; }
/* A person's profile at the top of a one-to-one chat (tap their photo or name) */
.person-info { grid-template-columns: auto 1fr; align-items: center; gap: 18px; }
.avatar.xl { width: 96px; height: 96px; font-size: 30px; }
.pi-main { display: grid; gap: 2px; min-width: 0; }
.pi-name { font-size: 18px; }
.pi-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 8px 0 0; }
.pi-facts dt { font-size: 11.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pi-facts dd { margin: 0; font-weight: 600; }
[data-info-open] { cursor: pointer; }
.chat-head-face { display: inline-flex; flex: none; }
/* A group's picture: two of its people's photos overlapping */
.avatar-stack { position: relative; width: 40px; height: 40px; flex: none; display: inline-block; }
.avatar-stack .avatar { position: absolute; width: 70% !important; height: 70% !important; font-size: 10px !important; box-shadow: 0 0 0 2px var(--card) !important; }
.avatar-stack .avatar:first-child { left: 0; top: 0; }
.avatar-stack .avatar:nth-child(2) { right: 0; bottom: 0; }
.avatar-stack.one .avatar { position: static; width: 100% !important; height: 100% !important; font-size: 13px !important; }
.convo .avatar-stack { width: 44px; height: 44px; }
.chat-side .convo .avatar-stack, .qpop .convo .avatar-stack { width: 40px; height: 40px; }
.fwd-chat .avatar-stack { width: 34px; height: 34px; }
/* Contact list with photos, for choosing people to chat with */
.pp-find { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px 12px 0 0; background: var(--card-2); }
.pp-find .i { width: 16px; height: 16px; color: var(--muted); flex: none; }
.pp-find input { border: 0; background: none; box-shadow: none; margin: 0; padding: 10px 0; min-height: 0; }
.pp-find input:focus { outline: none; box-shadow: none; }
.pp-list { max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; padding: 4px; margin-bottom: 14px; }
.pp-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; margin: 0; border-radius: 10px; cursor: pointer; font-weight: 500; }
.pp-row[hidden] { display: none; }
.pp-row:hover { background: var(--line-2); }
.pp-row input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.pp-row .avatar { width: 40px; height: 40px; font-size: 13px; box-shadow: none; }
.pp-who { display: grid; min-width: 0; flex: 1; line-height: 1.3; }
.pp-who b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-who small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-tick { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 50%; color: transparent; }
.pp-tick.box { border-radius: 6px; }
.pp-tick .i { width: 14px; height: 14px; stroke-width: 3; }
.pp-row:has(input:checked) { background: color-mix(in srgb, var(--mod) 12%, transparent); }
.pp-row:has(input:checked) .pp-tick { background: var(--mod); border-color: var(--mod); color: #fff; }
.pp-row:has(input:focus-visible) { outline: 2px solid var(--mod); outline-offset: -2px; }
.pp-none { padding: 10px; margin: 0; }
.qpop .pp-list { max-height: 210px; }
.group-members { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }
.group-members li { display: flex; align-items: center; gap: 10px; }
.group-members .avatar { width: 32px; height: 32px; font-size: 11px; }
.group-members form { margin: 0 0 0 auto; }
.gm-who { display: grid; }
.gm-who small { color: var(--muted); font-size: 12px; }
.group-add summary { list-style: none; display: inline-flex; cursor: pointer; }
.group-add summary::-webkit-details-marker { display: none; }
.group-add .check-list { margin: 10px 0; }
.danger-link { background: none; border: 0; box-shadow: none; color: var(--bad); padding: 4px 0; min-height: 0; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; margin: 0; }
.danger-link:hover { background: none; text-decoration: underline; color: var(--bad); }
.bubble-menu { position: absolute; top: 4px; right: 6px; z-index: 3; opacity: 0; transition: opacity .15s; }
.bubble:hover .bubble-menu, .bubble-menu[open], .bubble-menu:focus-within { opacity: 1; }
@media (pointer: coarse) { .bubble-menu { opacity: .7; } }
.bubble-menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--card) 85%, transparent); color: var(--muted); box-shadow: var(--shadow); }
.bubble-menu summary::-webkit-details-marker { display: none; }
.bubble-menu summary .i { width: 14px; height: 14px; }
.bubble-menu-list { position: absolute; right: 0; top: 28px; min-width: 190px; padding: 6px; display: grid; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); }
.bubble-row:not(.mine) .bubble-menu-list { right: auto; left: 0; }
.bubble-menu-list a, .bubble-menu-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; margin: 0; min-height: 0; border: 0; border-radius: 8px; background: none; box-shadow: none; color: var(--ink); font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.bubble-menu-list a:hover, .bubble-menu-list button:hover { background: var(--line-2); text-decoration: none; }
.bubble-menu-list .danger-link { color: var(--bad); }
.bubble-menu-list form { margin: 0; }
.bubble-menu-list .i { width: 16px; height: 16px; }
/* Emoji reactions under a bubble, and the smiley beside it that adds one (like WhatsApp) */
.bubble-row.has-reacts { margin-bottom: 20px; }
.bubble-reacts { position: absolute; bottom: -17px; left: 10px; display: flex; gap: 3px; z-index: 2; }
.bubble-row.mine .bubble-reacts { left: auto; right: 10px; }
.react-chip { display: inline-flex; align-items: center; gap: 3px; height: 24px; min-height: 0; margin: 0; padding: 0 7px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .12); font-size: 14px; line-height: 1; font-weight: 600; cursor: pointer; }
.react-chip span { font-size: 11.5px; color: var(--muted); }
.react-chip:hover { background: var(--line-2); }
.react-chip.mine { border-color: color-mix(in srgb, var(--mod) 55%, var(--line)); background: color-mix(in srgb, var(--mod) 12%, var(--card)); }
.react-btn { align-self: center; flex: none; display: grid; place-items: center; width: 30px; height: 30px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--card) 85%, transparent); color: var(--muted); box-shadow: var(--shadow); cursor: pointer; opacity: 0; transition: opacity .15s; }
.react-btn .i { width: 18px; height: 18px; }
.react-btn:hover { color: var(--mod); }
.bubble-row:hover .react-btn, .bubble-row.reacting .react-btn, .react-btn:focus-visible { opacity: 1; }
@media (pointer: coarse) { .react-btn { display: none; } .bubble-row.reacting .bubble { transform: scale(.98); transition: transform .12s; } }
@media (max-width: 600px) { .cp-row { gap: 4px; } .cp-row .cp-btn { width: 38px; } }
.react-bar { position: fixed; z-index: 1000; display: flex; align-items: center; gap: 2px; padding: 5px 6px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow-lg); animation: pop-in .14s ease-out; }
.react-pick { width: 40px; height: 40px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; box-shadow: none; font-size: 24px; line-height: 1; cursor: pointer; transition: transform .12s; }
.react-pick:hover { transform: scale(1.22); background: none; }
.react-pick.on { background: color-mix(in srgb, var(--mod) 16%, transparent); }
.react-more { width: 34px; height: 34px; min-height: 0; margin: 0 0 0 2px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--line-2); color: var(--ink-2); box-shadow: none; cursor: pointer; }
.react-more:hover { color: var(--mod); }
.emoji-pop { position: fixed; z-index: 1000; width: min(340px, calc(100vw - 16px)); padding: 8px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--card); color: var(--ink); box-shadow: var(--shadow-lg); animation: pop-in .14s ease-out; }
.emoji-tabs { display: flex; gap: 2px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.emoji-tab { flex: 1; height: 36px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 10px; background: none; box-shadow: none; font-size: 20px; cursor: pointer; opacity: .55; }
.emoji-tab:hover { background: var(--line-2); opacity: 1; }
.emoji-tab.on { background: color-mix(in srgb, var(--mod) 14%, transparent); opacity: 1; }
.emoji-title { padding: 8px 4px 4px; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); max-height: 220px; overflow-y: auto; }
.emoji-cell { height: 38px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 8px; background: none; box-shadow: none; font-size: 23px; line-height: 1; cursor: pointer; }
.emoji-cell:hover { background: var(--line-2); }
@keyframes pop-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .react-bar, .emoji-pop { animation: none; } .react-pick { transition: none; } }
.bubble-fwd { display: flex; align-items: center; gap: 4px; font-size: 12px; font-style: italic; color: var(--muted); margin-bottom: 2px; }
.bubble-fwd .i { width: 12px; height: 12px; }
.bubble-deleted { font-style: italic; color: var(--muted); }
.bubble-row.deleted .bubble { opacity: .85; }
.fwd-dialog { width: min(460px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--ink); box-shadow: var(--shadow-lg); }
.fwd-dialog::backdrop { background: rgba(15, 23, 42, .45); }
.fwd-dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.fwd-dialog [data-forward-body] { padding: 14px 18px 18px; }
.fwd-preview { display: grid; gap: 4px; margin-bottom: 12px; }
.fwd-quote { padding: 8px 12px; border-left: 3px solid var(--brand); border-radius: 8px; background: var(--line-2); font-size: 14px; }
.fwd-title { margin: 0 0 6px; font-weight: 700; font-size: 13.5px; }
.fwd-list { display: grid; gap: 2px; max-height: 320px; overflow-y: auto; margin-bottom: 12px; }
.fwd-chat { display: flex; align-items: center; gap: 10px; padding: 8px; margin: 0; border-radius: 10px; cursor: pointer; font-weight: 500; }
.fwd-chat:hover { background: var(--line-2); }
.fwd-chat .avatar { width: 34px; height: 34px; font-size: 11px; }
.fwd-who { display: grid; min-width: 0; }
.fwd-who small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fwd-actions { display: flex; gap: 10px; }
.fwd-actions button { margin: 0; }
.chat-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 100; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--card); font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); transition: opacity .4s; }
.chat-toast.go { opacity: 0; }
.member-find { margin-bottom: 8px; }
.member-list { max-height: 240px; }
.member-list label[hidden] { display: none; }

/* Show / hide button inside every password box */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 46px; width: 100%; }
.pw-wrap .pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; min-height: 0;
  margin: 0; padding: 0; display: grid; place-items: center; background: transparent; color: var(--muted); border: 0; box-shadow: none; }
.pw-wrap .pw-eye:hover { color: var(--text); background: transparent; }
.pw-wrap .pw-eye .i { width: 18px; height: 18px; }
.auth-form .pw-wrap .pw-eye { width: 38px; min-height: 0; margin: 0; font-size: inherit; }
.auth-forgot { text-align: center; margin: 16px 0 0; font-size: 14px; }
.stat.picked { outline: 2px solid var(--c1, var(--brand)); outline-offset: -2px; }
.vault-group { font-size: 15px; margin: 18px 0 8px; display: flex; gap: 8px; align-items: center; }
.vault-group:first-child { margin-top: 0; }
.vault-allowed ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }
.vault-allowed label { display: flex; gap: 8px; align-items: center; font-weight: 500; margin: 0; }

/* Queries folders, like an email inbox */
.mail { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; align-items: start; }
.mail-folders { display: grid; gap: 2px; padding: 8px; position: sticky; top: 84px; }
.mail-folders a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.mail-folders a:hover { background: var(--hover, rgba(127, 127, 127, .08)); }
.mail-folders a.on { background: var(--brand-soft, rgba(99, 102, 241, .14)); color: var(--brand); }
.mail-folders a span { flex: 1; }
.mail-folders .mail-n { font-size: 12px; color: var(--muted); font-weight: 600; }
.dir.draft { color: var(--bad); background: var(--bad-soft); }
.draft-row { display: flex; align-items: center; gap: 12px; }
.draft-row .convo-main { flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.draft-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.draft-bar button { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 760px) {
  .mail { grid-template-columns: 1fr; gap: 10px; }
  .mail-folders { position: static; display: flex; overflow-x: auto; }
  .mail-folders a { flex: none; }
}

/* Profile photos and the company logo */
.avatar.has-photo { padding: 0; overflow: hidden; background: var(--line); }
.avatar.has-photo img, .logo.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.xl { width: 96px; height: 96px; font-size: 30px; }
.logo.has-img { padding: 0; overflow: hidden; background: #fff; }
.logo.has-img img { object-fit: contain; }
.picture-card { max-width: 560px; display: grid; gap: 18px; }
.picture-now { display: flex; align-items: center; gap: 16px; }
.picture-now > div { display: grid; gap: 4px; }
.picture-now .logo { width: 72px; height: 72px; font-size: 24px; }
.picture-form { display: grid; gap: 8px; }
.picture-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Interns */
.intern-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.intern { display: grid; gap: 12px; }
.intern.ready { box-shadow: inset 0 0 0 2px var(--warn); }
.intern.done { opacity: .8; }
.intern-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.intern-top .intern-name { flex: 1 1 160px; min-width: 0; display: grid; gap: 2px; }
.intern-top .intern-name .muted { font-size: 13px; }
.intern .facts { margin: 0; }
.intern-bar { height: 8px; border-radius: 999px; background: var(--line, rgba(127, 127, 127, .2)); overflow: hidden; }
.intern-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.intern-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: var(--warn); font-weight: 600; }
.intern-form { display: grid; gap: 8px; border-top: 1px solid var(--line, rgba(127, 127, 127, .2)); padding-top: 12px; }
.intern-form label { display: grid; gap: 4px; margin: 0; }
.intern-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Dashboard stores tile for a manager: Managing (M) and As VA, each opening its own list */
.secret .mva { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.secret.is-hidden .mva.shown { display: none; }
.mva a { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.2); color: inherit; font-size: 12.5px; font-weight: 600; text-decoration: none; }
.mva a:hover, .mva a:focus-visible { background: rgba(255,255,255,.35); text-decoration: none; }
.mva a b { font-size: 14px; }

/* Phone alerts card (Notifications page) */
.alerts-card { display: grid; gap: 6px; }
.alerts-card h2 { margin-bottom: 2px; }
.alerts-form { display: grid; gap: 6px; }
.alerts-form button { justify-self: start; margin-top: 8px; }
.msg-inline { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--ink-2); font-size: 14px; }
.msg-inline .i { color: var(--warn); flex: none; margin-top: 2px; }
.small-print { font-size: 12px; margin: 8px 0 0; }

/* Results: Excel download and load back */
.excel-bar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-bottom: 18px; }
.excel-bar .excel-text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; }
.excel-bar .excel-text .muted { font-size: 13px; }
.excel-bar .btn, .excel-bar button { margin: 0; }
.excel-load { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.excel-load input[type=file] { max-width: 240px; font-size: 13px; }
.people-table .table-input { width: 104px; }
.people-table tr.total td { font-weight: 600; background: var(--line-2); }

/* Pay account: where someone's pay is sent */
.pay-to-card { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 14px; border-radius: 12px; background: var(--line-2); }
.pay-to-card b { font-size: 17px; letter-spacing: .5px; }
.pay-to-card span:last-child { color: var(--muted); }
.pay-account-form { max-width: 520px; }
.pay-account-form .form-actions { display: flex; gap: 14px; align-items: center; }
.pay-account-form .form-actions button { margin: 0; }
td .sub.pay-to b { color: var(--ink); }

/* Chat: who is online, and message pop-ups inside the page */
.av-live { position: relative; display: inline-flex; flex: none; }
.av-live .pres-dot { display: none; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #22c55e; border: 2px solid var(--card); }
.av-live.online .pres-dot { display: block; }
.pres-text.online { color: #16a34a; font-weight: 600; }
.pres-text:empty + .pres-sep { display: none; }
#live-toasts { position: fixed; left: 16px; bottom: 16px; z-index: 80; display: grid; gap: 8px; max-width: min(360px, calc(100vw - 32px)); }
.live-toast { display: grid; gap: 2px; padding: 12px 14px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border-left: 4px solid #22c55e; transition: opacity .35s, transform .35s; }
.live-toast span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-toast.out { opacity: 0; transform: translateY(8px); }
.popups-bar { align-items: center; }
[data-popups-when][hidden], [data-popups-result][hidden] { display: none !important; }
.popups-bar div { display: grid; gap: 2px; flex: 1; }
.popups-bar div span { font-size: 13px; }
.popups-bar button { margin: 0 0 0 8px; }

/* Store problem page: where it is (steps) and what to do now */
.prob-steps { list-style: none; margin: 0 0 18px; padding: 16px 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.prob-steps li { display: flex; gap: 10px; align-items: flex-start; position: relative; color: var(--muted); }
.prob-steps li b { display: block; color: var(--ink-2); }
.prob-steps li small { font-size: 12.5px; }
.step-dot { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--line, #e5e7eb); color: var(--muted); }
.prob-steps li.done .step-dot { background: var(--ok); color: #fff; }
.prob-steps li.now .step-dot { background: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.prob-steps li.now b { color: var(--brand-ink); }
.prob-quote { margin: 0 0 12px; padding: 12px 14px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 8px; color: var(--ink); font-size: 15px; }
.msg-inline.bad { background: var(--bad-soft); color: var(--bad); font-weight: 600; }
.msg-inline.bad .i { color: var(--bad); }
.next-card.mine { border: 2px solid var(--brand); }
.next-steps { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.next-steps li.now { color: var(--ink); }
.next-steps li.done { text-decoration: line-through; }
.fix-form { margin-top: 14px; }
@media (max-width: 700px) { .prob-steps { grid-template-columns: 1fr; } }

/* CEO: which branch every page shows (top bar), and the reminder above the page when it's only one */
.branch-switch { position: relative; display: flex; align-items: center; flex: none; }
.branch-switch svg { position: absolute; left: 11px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.branch-switch select { min-height: 0; height: 36px; width: 180px; padding: 0 28px 0 33px; text-overflow: ellipsis; border-radius: 999px; font-size: 13.5px; font-weight: 600; background-color: var(--line-2); border-color: transparent; }
.branch-switch.on select { background-color: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 30%, transparent); }
.branch-switch.on svg { color: var(--info); }
.branch-note { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; padding: 9px 14px; margin-bottom: 16px; border-radius: 12px; background: var(--info-soft); color: var(--info); font-size: 13.5px; }
.branch-note .i { width: 16px; height: 16px; flex: none; }
.branch-note > span { flex: 1 1 auto; min-width: 0; }
.branch-note button.link { margin-left: auto; height: auto; line-height: inherit; align-self: center; width: auto; flex: none; white-space: nowrap; background: none; border: 0; padding: 0; min-height: 0; color: var(--info); font-weight: 700; text-decoration: underline; cursor: pointer; box-shadow: none; }
@media (max-width: 1400px) { .topbar .today { display: none; } }
@media (max-width: 700px) { .branch-switch select { width: 104px; padding-right: 22px; } }

/* My profile: photo, details, username. Tap a photo to see it big; fit a new photo into the circle. */
.avatar.xxl { width: 132px; height: 132px; font-size: 42px; }
.avatar.can-view { cursor: zoom-in; }
.profile-grid { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 18px; align-items: start; }
.profile-forms { display: grid; gap: 18px; min-width: 0; }
.profile-forms > .card { min-width: 0; }
.profile-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.profile-card .help { margin: 6px 0 0; }
.profile-photo { margin-bottom: 10px; }
.profile-name { font-size: 18px; }
.profile-photo-form { margin-top: 12px; }
.profile-photo-form label.btn { display: inline-flex; margin: 0; cursor: pointer; color: inherit; }
.profile-photo-form label.btn:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.profile-fields p { margin: 0; }
.profile-username > summary { list-style: none; display: inline-flex; cursor: pointer; }
.profile-username > summary::-webkit-details-marker { display: none; }
.profile-username[open] > summary { display: none; }
.profile-username form { max-width: 420px; }
@media (max-width: 760px) {
  .profile-grid, .profile-fields { grid-template-columns: minmax(0, 1fr); }
}
.photo-view { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
.photo-view[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.photo-view::backdrop { background: rgba(2, 6, 23, .9); }
.photo-view-bar { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; color: #fff; }
.photo-view-bar b { font-size: 16px; }
.photo-view-x { margin: 0; width: 42px; height: 42px; min-height: 0; padding: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; box-shadow: none; display: grid; place-items: center; }
.photo-view img { max-width: min(92vw, 640px); max-height: 80vh; border-radius: 6px; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.photo-crop { width: min(400px, calc(100vw - 24px)); padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--ink); box-shadow: var(--shadow-lg); }
.photo-crop::backdrop { background: rgba(15, 23, 42, .6); }
.photo-crop-head { display: grid; gap: 2px; margin-bottom: 14px; }
.photo-crop-head .muted { font-size: 13px; }
.photo-crop-stage { width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #0f172a; }
.photo-crop-stage canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.photo-crop-stage canvas:active { cursor: grabbing; }
.photo-crop-zoom { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; }
.photo-crop-zoom input { flex: 1; padding: 0; min-height: 0; height: 24px; border: 0; box-shadow: none; background: none; }
.photo-crop-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.photo-crop-actions button { margin: 0; }
.profile-forms form > .help { margin: 12px 0 14px; }

/* Show or hide every dashboard number at once. */
.peek-all-row { display: flex; justify-content: flex-end; margin: 0 0 10px; }

/* Tasks: "Choose people" popup to give one task to many people at once. */
.pick-field { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 8px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.pick-field > button { margin: 0; }
.pick-chosen { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.pick-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-size: 12.5px; font-weight: 700; }
.pick-chip button { width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; border-radius: 50%; background: transparent; color: inherit; box-shadow: none; font-size: 14px; line-height: 1; }
.pick-chip button:hover { background: color-mix(in srgb, var(--brand) 18%, transparent); color: inherit; }
.pick-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--ink); box-shadow: var(--shadow-lg); }
.pick-dialog[open] { display: flex; flex-direction: column; }
.pick-dialog::backdrop { background: rgba(15, 23, 42, .45); }
.pick-head, .pick-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; }
.pick-head { border-bottom: 1px solid var(--line); }
.pick-foot { border-top: 1px solid var(--line); }
.pick-foot button { margin: 0; }
.pick-body { padding: 14px 18px; overflow-y: auto; min-height: 0; }
.pick-label { margin: 0 0 8px; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.pick-groups { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pick-group { margin: 0; min-height: 0; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); box-shadow: none; font-size: 13px; font-weight: 700; }
.pick-group span { margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--line-2); font-size: 11.5px; }
.pick-group:hover, .pick-group.on { color: var(--brand-ink); background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); filter: none; }
.pick-list { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.pick-row { display: flex; align-items: center; gap: 10px; margin: 0; padding: 7px 8px; border-radius: 10px; cursor: pointer; font-weight: 400; }
.pick-row:hover { background: var(--line-2); }
.pick-row input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--brand); }
.pick-row .avatar { width: 32px; height: 32px; font-size: 12px; }
.pick-who { display: flex; flex-direction: column; min-width: 0; }
.pick-who b { font-size: 14px; }
.pick-who span { font-size: 12px; color: var(--muted); }
.pick-row[hidden], .pick-chosen [hidden] { display: none; }
/* Store IP address, next to the store's name on the results pages and on the store page. */
.store-ip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; }
.ip-chip { display: inline-flex; align-items: center; gap: 5px; margin: 0; padding: 2px 4px 2px 9px; min-height: 0; border-radius: 8px; border: 1px solid var(--line); background: var(--brand-soft); color: var(--brand-ink); font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: none; cursor: pointer; }
.ip-chip:hover { border-color: var(--brand); color: var(--brand-ink); filter: none; }
.ip-copy { padding: 0 7px; border-radius: 6px; background: var(--brand); color: #fff; font-size: 11px; line-height: 18px; }
.ip-chip.copied .ip-copy { background: var(--ok); }
.ip-inline { font: 600 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--brand-ink); }
.ip-chip svg { width: 13px; height: 13px; }
.ip-chip code { font: 600 12px/18px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink, inherit); }
.ip-edit > summary { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; list-style: none; font-size: 12px; font-weight: 700; color: var(--brand); }
.ip-edit > summary::-webkit-details-marker { display: none; }
.ip-edit > summary svg { width: 13px; height: 13px; }
.ip-edit[open] > summary { color: var(--muted); }
.ip-edit form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.ip-edit input { width: 200px; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ip-edit .muted { font-size: 12px; }
.qpop .cp-row { gap: 2px; }
.qpop .cp-row .cp-btn { width: 36px; }

/* Several photos in one message: a grid like WhatsApp; the 4th says "+N" */
.bf-album { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: min(320px, 62vw); border-radius: 10px; overflow: hidden; }
.bf-album .bf-photo { border-radius: 0; position: relative; aspect-ratio: 1; }
.bf-album .bf-photo[hidden] { display: none; }
.bf-album .bf-photo img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.bf-album.n3 .bf-photo:first-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.bf-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 23, 42, .55); color: #fff; font-size: 26px; font-weight: 800; }
.bf-photo { cursor: zoom-in; }

/* Big photo viewer with arrows and thumbnails */
.gallery { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 10, 18, .94); color: #fff; }
.gallery[open] { display: flex; flex-direction: column; }
.gallery::backdrop { background: rgba(8, 10, 18, .6); }
.gallery-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; }
.gallery-who { display: grid; flex: 1; min-width: 0; }
.gallery-who small { color: rgba(255, 255, 255, .7); }
.gallery-btn { width: 42px; height: 42px; min-height: 0; margin: 0; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; box-shadow: none; cursor: pointer; }
.gallery-btn:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.gallery-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 12px; }
.gallery-stage img { max-width: min(100%, 1100px); max-height: 100%; object-fit: contain; border-radius: 6px; }
.gallery-nav { flex: none; width: 48px; height: 48px; min-height: 0; margin: 0; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; cursor: pointer; }
.gallery-nav[hidden] { display: none; }
.gallery-nav:hover { background: rgba(255, 255, 255, .25); }
.gallery-strip { display: flex; gap: 6px; justify-content: center; padding: 12px; overflow-x: auto; }
.gallery-strip[hidden] { display: none; }
.gallery-thumb { width: 54px; height: 54px; min-height: 0; flex: none; margin: 0; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; box-shadow: none; opacity: .55; cursor: pointer; }
.gallery-thumb.on { border-color: #fff; opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .gallery-nav { position: absolute; top: 50%; } .gallery-nav.prev { left: 8px; } .gallery-nav.next { right: 8px; } .gallery-stage { padding: 0; } }

/* Group info: a panel over the right side of the chat, like WhatsApp Web */
.chat { position: relative; }
.gi-drawer { position: absolute; top: 0; right: 0; bottom: 0; z-index: 20; width: min(400px, 100%); padding: 0; gap: 0; display: flex; flex-direction: column;
  border-left: 1px solid var(--line); border-bottom: 0; background: var(--bg); box-shadow: var(--shadow-lg); animation: gi-in .18s ease-out; }
.gi-drawer[hidden] { display: none; }
@keyframes gi-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .gi-drawer { animation: none; } }
.gi-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--card-2); border-bottom: 1px solid var(--line); font-size: 15.5px; }
.gi-close { width: 34px; height: 34px; min-height: 0; margin: 0; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ink-2); box-shadow: none; cursor: pointer; }
.gi-close:hover { background: var(--line-2); }
.gi-scroll { flex: 1; overflow-y: auto; padding: 12px; display: grid; gap: 12px; align-content: start; }
.gi-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 10px; }
.gi-hero { justify-items: center; text-align: center; gap: 6px; }
.gi-hero h3 { margin: 6px 0 0; font-size: 19px; }
.gi-hero > .muted { margin: 0; font-size: 13px; }
.gi-desc { margin: 4px 0 0; font-size: 14px; white-space: normal; }
.gi-edit { width: 100%; }
.gi-edit summary { list-style: none; display: inline-flex; cursor: pointer; margin-top: 6px; }
.gi-edit summary::-webkit-details-marker { display: none; }
.gi-edit form { display: grid; gap: 4px; text-align: left; margin-top: 10px; }
.gi-edit form button { justify-self: start; margin-top: 6px; }
.gi-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gi-head button { margin: 0; }
.gi-note { font-size: 12.5px; margin: 0; }
.gi-drawer .group-members { max-height: none; overflow: visible; gap: 2px; }
.gi-drawer .group-members li { padding: 6px 4px; border-radius: 10px; }
.gi-drawer .group-members li:hover { background: var(--line-2); }
.gi-drawer .group-members .avatar { width: 40px; height: 40px; font-size: 13px; box-shadow: none; }
.gi-drawer .gm-who { flex: 1; min-width: 0; }
.gm-admin { font-size: 11px; }
.gm-menu { position: relative; }
.gm-menu summary { list-style: none; cursor: pointer; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.gm-menu summary::-webkit-details-marker { display: none; }
.gm-menu summary:hover { background: var(--card); }
.gm-menu summary .i { width: 15px; height: 15px; }
.gm-menu .bubble-menu-list { right: 0; top: 30px; z-index: 5; }
.gm-menu form { margin: 0; }
.group-add { display: grid; gap: 8px; }
.group-add[hidden] { display: none; }
.group-add > button { justify-self: start; margin: 0; }
.gi-settings { display: contents; }
.gi-settings > button { justify-self: start; margin: 0; }
.gi-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; font-weight: 500; cursor: pointer; }
.gi-switch span { display: grid; }
.gi-switch small { color: var(--muted); font-size: 12.5px; }
.gi-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.gi-switch i { flex: none; width: 42px; height: 24px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; }
.gi-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .3); transition: transform .15s; }
.gi-switch input:checked + i { background: var(--mod); }
.gi-switch input:checked + i::after { transform: translateX(18px); }
.gi-switch input:focus-visible + i { outline: 2px solid var(--mod); outline-offset: 2px; }
.avatar-stack.xl, .avatar.group.xl { width: 96px; height: 96px; }
.avatar.group.xl .i { width: 40px; height: 40px; }
.avatar-stack.xl .avatar { font-size: 22px !important; }
.chat-closed .i { width: 15px; height: 15px; vertical-align: -2px; }
.gi-drawer .gm-who b, .gi-drawer .gm-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-store { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); }
.pick-store .i { width: 16px; height: 16px; }

/* ---------- Today's Quran verse and hadith under the top bar, one line at a time (partials/daily_words.html) ---------- */
.dw { display: flex; align-items: center; min-height: 46px; color: #ecfdf5; position: relative; z-index: 5;
  background: linear-gradient(90deg, #064e3b, #065f46 40%, #0f766e); border-bottom: 1px solid rgba(0, 0, 0, .12); }
.dw[hidden] { display: none; }
.dw-tag { flex: none; align-self: stretch; display: inline-flex; align-items: center; gap: 8px; padding: 0 28px 0 24px;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #064e3b;
  background: linear-gradient(135deg, #fde68a, #fbbf24); clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.dw-tag .i { width: 16px; height: 16px; }
.dw-track { flex: 1; min-width: 0; padding: 0 6px 0 10px; cursor: default; }
.dw-line { display: none; align-items: center; gap: 12px; margin: 0; min-width: 0; }
.dw-line.on { display: flex; animation: dw-in .45s ease-out; }
.dw-track:not(:has(.on)) .dw-line:first-child { display: flex; } /* before the script starts */
.dw-src { flex: none; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; color: #064e3b; background: #a7f3d0;
  padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.dw-box { flex: 1; min-width: 0; overflow: hidden; display: block;
  mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); }
.dw-box:has(.dw-text[dir="rtl"]) { direction: rtl; }
.dw-text { display: inline-block; white-space: nowrap; padding: 0 14px; font-size: 14.5px; will-change: transform; }
.dw-ar { font-size: 20px; line-height: 1.6; color: #fef3c7; font-family: "Noto Naskh Arabic", "Traditional Arabic", "Amiri", "Scheherazade New", serif; }
.dw-ur { font-size: 16.5px; line-height: 2; font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", var(--font); }
.dw-en { font-style: italic; color: #d1fae5; }
.dw-x { flex: none; width: 34px; height: 34px; margin: 0 10px; padding: 0; min-height: 0; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .18); color: #fff; box-shadow: none; cursor: pointer; }
.dw-x:hover { background: rgba(0, 0, 0, .35); color: #fff; filter: none; box-shadow: none; }
.dw-x .i { width: 16px; height: 16px; }
@keyframes dw-in { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 760px) {
  .dw { align-items: stretch; }
  .dw-tag { padding: 0 20px 0 12px; }
  .dw-tag span { display: none; }
  .dw-track { padding: 6px 4px 6px 8px; }
  .dw-line.on { flex-direction: column; align-items: flex-start; gap: 2px; }
  .dw-box { width: 100%; }
  .dw-x { margin: auto 6px; }
}
/* People who turn off moving things on their device get every line still, wrapped onto more rows. */
@media (prefers-reduced-motion: reduce) {
  .dw-line { display: flex; animation: none !important; padding: 3px 0; }
  .dw-box { mask-image: none; }
  .dw-text { white-space: normal; }
}
@media print { .dw { display: none !important; } }
/* Admin > Daily ayat & hadith */
.dw-today { display: grid; gap: 14px; }
.dw-today-item p { margin: 6px 0 0; }
.dw-ar-text { font-size: 22px; line-height: 1.7; font-family: "Noto Naskh Arabic", "Traditional Arabic", "Amiri", serif; }
.dw-ur-text, textarea[lang="ur"] { font-size: 17px; line-height: 2; font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", var(--font); }

/* Store problems: photos (screenshots) with a problem and its notes */
.prob-photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.prob-photo { display: block; width: 150px; height: 100px; border-radius: 10px; overflow: hidden; background: var(--line-2); border: 1px solid var(--line); cursor: zoom-in; }
.prob-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bubble .prob-photos { margin: 6px 0 2px; }
.bubble .prob-photo { width: 200px; height: 130px; }
.prob-event-photos { justify-content: center; margin: -4px 0 12px; }
.photo-pick { margin: 8px 0 12px; }
label.photo-pick-btn { display: inline-flex; margin: 0; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1.5px dashed var(--brand); background: var(--brand-soft); color: var(--brand-ink); cursor: pointer; font-weight: 600; font-size: 14px; position: relative; }
.photo-pick label.photo-pick-btn:hover { border-color: var(--brand); }
.photo-pick-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.photo-pick .help { margin-left: 8px; }
.photo-pick-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.photo-pick-list:empty { display: none; }
.photo-pick-item { position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.photo-pick-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-pick-item button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; min-height: 0; padding: 0; border-radius: 50%; background: rgba(15, 23, 42, .7); color: #fff; font-size: 14px; line-height: 20px; border: 0; }
.chat-box .photo-pick { margin: 0; flex-basis: 100%; }
.chat .chat-box.prob-note-box { flex-wrap: wrap; }
.chat .chat-box.prob-note-box textarea { flex: 1; }

/* Fines page (2026-11-01): small screenshot thumbnails in the table, one card per fine for the person fined. */
.fine-table .prob-photos { margin: 0; }
.fine-table .prob-photo { width: 84px; height: 56px; }
.fine-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.fine-card { padding: 16px; }
.fine-card p { margin: 10px 0 4px; }
.fine-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fine-card-top b { font-size: 1.15rem; }
.fine-amount { display: grid; grid-template-columns: 1fr 150px; gap: 10px; }

/* ---------- Advances (Money → Advances, CEO; My pay → My advances) ---------- */
.adv-kpis { margin-bottom: 6px; }
.adv-plan-b { font-size: 20px !important; }
.adv-progress { height: 8px; margin: 12px 0 20px; }
.adv-new { margin-top: 8px; padding: 0; }
.adv-new summary { display: flex; align-items: center; gap: 12px; padding: 18px 24px; cursor: pointer; list-style: none; }
.adv-new summary::-webkit-details-marker { display: none; }
.adv-new summary small { display: block; }
.adv-new details[open] summary { border-bottom: 1px solid var(--line); }
.adv-new form { padding: 20px 24px 24px; }
.adv-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.adv-cols h3 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.adv-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.adv-two > [hidden] { display: none; }
.adv-how-pick { border: 0; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; }
.adv-how-pick legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.adv-choice { display: flex !important; align-items: center; gap: 10px; padding: 10px 14px; margin: 0 !important; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card-2); cursor: pointer; font-weight: 500; }
.adv-choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.adv-check { display: flex !important; align-items: center; gap: 10px; margin-top: 10px; font-weight: 500; }
.adv-preview { margin: 14px 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--info-soft); color: var(--info); font-weight: 600; }
.adv-preview::before { content: "Plan: "; font-weight: 800; }
.adv-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.adv-list-head { margin-top: 28px; }
.adv-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adv-filters input[type=search] { width: 200px; }
.adv-filters select { width: auto; }
.adv-tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 999px; background: var(--line-2); }
.adv-tabs button { background: transparent; color: var(--muted); box-shadow: none; padding: 6px 12px; min-height: 0; border-radius: 999px; font-size: 13px; font-weight: 600; }
.adv-tabs button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.adv-table td .sub { display: block; color: var(--muted); font-size: 12px; }
.adv-table .progress { margin: 0 0 4px; height: 7px; min-width: 110px; }
.adv-bar-cell { min-width: 130px; }
.adv-total td { background: var(--card-2); border-top: 2px solid var(--line); }
.adv-skipped td { color: var(--muted); }
.adv-now td { background: color-mix(in srgb, var(--info-soft) 60%, transparent); }
.adv-statement .adv-given td:nth-child(3) { color: var(--bad); font-weight: 600; }
.adv-statement .adv-pay td:nth-child(4), .adv-statement .adv-cash td:nth-child(4), .ok-text { color: var(--ok); }
.adv-statement .adv-draft td { color: var(--muted); font-style: italic; }
.adv-dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; margin: 0 0 18px; }
.adv-dl dt { color: var(--muted); font-weight: 600; }
.adv-dl dd { margin: 0; font-weight: 600; }
.adv-who { display: flex; align-items: center; gap: 14px; }
.adv-how { margin-top: 24px; }
.adv-how ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.adv-delete { margin-top: 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.my-adv-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.my-adv-row div { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--card-2); border: 1px solid var(--line); }
.my-adv-row span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.my-adv-row b { font-size: 20px; }
.pay-after td { background: var(--card-2); }
.adv-kpis .stat b { font-size: 26px; white-space: nowrap; }
.adv-kpis .stat b.adv-plan-b { white-space: normal; }
.adv-table td a.sub { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; }
@media (min-width: 1100px) { .adv-main { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.adv-coming th, .adv-coming td { padding: 11px 12px; }
.adv-now .sub { color: var(--info); font-weight: 700; }

/* My pay → My profit (member's own figures and PKR share) */
.rate-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 13px; }
.my-profit td .sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.my-profit th, .my-profit td { padding-left: 10px; padding-right: 10px; white-space: nowrap; }
.my-profit-cards { display: none; }
@media (max-width: 720px) {
  .my-profit-wrap { display: none; }
  .my-profit-cards { display: grid; gap: 10px; }
  .mp-card { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--card-2); border: 1px solid var(--line); }
  .mp-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
  .mp-line { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; padding: 2px 0; }
  .mp-line span { color: var(--muted); }
  .mp-total { display: flex; justify-content: space-between; font-weight: 600; }
}

/* Results pages: the month stays on screen while scrolling, and Save is always reachable */
.month-sticky { position: sticky; top: var(--top-h); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; padding: 9px 14px; border: 1px solid color-mix(in srgb, var(--mod) 40%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--mod) 14%, var(--card)); box-shadow: var(--shadow); font-size: 14.5px; color: var(--ink-2); }
.month-sticky > .i { width: 18px; height: 18px; color: var(--mod); flex: none; }
.month-sticky b { color: var(--ink); font-size: 16px; }
.month-sticky-nav { margin-left: auto; display: inline-flex; gap: 4px; }
.month-sticky-nav a { padding: 3px 10px; border-radius: 8px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.month-sticky-nav a:hover { background: var(--line-2); text-decoration: none; }
.results-table .save-col { position: sticky; right: 0; z-index: 1; background: var(--card); box-shadow: -8px 0 10px -8px rgba(0,0,0,.35); border-left: 1px solid var(--line-2); }
.results-table th.save-col { background: color-mix(in srgb, var(--mod) 8%, var(--card)); }
.results-table tr:hover td.save-col { background: color-mix(in srgb, var(--mod) 4%, var(--card)); }
.results-table .save-col:empty { padding: 0; border-left: 0; box-shadow: none; }
.people-card .form-actions { position: sticky; bottom: 0; z-index: 5; margin: 14px -24px -24px; padding: 12px 24px; background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
@media (max-width: 600px) {
  .month-sticky { font-size: 13.5px; padding: 8px 12px; }
  .month-sticky-nav { display: none; }
  .people-card .form-actions .muted { display: none; }
  .people-card .form-actions button { width: 100%; justify-content: center; font-size: 14px; }
  .people-card .form-actions { margin: 14px -18px -18px; padding: 10px 18px; }
}
@media print { .month-sticky { position: static; } .results-table .save-col { display: none; } }
/* Delete link under a store's Save button on Results (opens the delete page to confirm). */
.row-delete { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--bad); text-align: center; }
.row-delete:hover { text-decoration: underline; }
.row-unlock { margin: 6px 0 0; }
.row-unlock button { width: 100%; }
.row-error { display: block; margin-top: 4px; max-width: 180px; font-size: 12px; font-weight: 600; white-space: normal; text-align: left; }
/* Results tables: the column headings stay at the top while scrolling down a long list of stores / people. The
   table scrolls inside its box (which keeps sideways scrolling working), sized to the screen under the month bar. */
.table-wrap.sticky-head { max-height: calc(100vh - var(--top-h, 64px) - 90px); max-height: calc(100dvh - var(--top-h, 64px) - 90px); overflow: auto; }
.table-wrap.sticky-head th { position: sticky; top: 0; z-index: 2; }
.table-wrap.sticky-head th.save-col { z-index: 3; }
@media print { .table-wrap.sticky-head { max-height: none; overflow: visible; } }

/* Fines from Excel: the check page */
.fine-check td:first-child { max-width: 220px; }
.fine-check select { min-width: 170px; max-width: 210px; }
.fine-check .table-input { width: 96px; }
.fine-check input[type=text] { min-width: 150px; }
.fine-check label.check { margin: 0; font-weight: 500; }
.fine-check tr.row-warn td { background: color-mix(in srgb, #f59e0b 14%, transparent); }
.fine-check .bad-text { color: #b45309; }
.fine-actions { display: inline-flex; gap: 6px; align-items: center; }

/* Pay plan: "Their stores" quick table */
.ts-help { font-size: 13.5px; margin: 0 0 12px; }
.ts-wrap { box-shadow: none; }
.ts-table th small { display: block; font-weight: 600; font-size: 11.5px; color: var(--muted); text-transform: none; letter-spacing: 0; }
.ts-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; }
.ts-table .num { text-align: right; }
.ts-table .ts-box { display: inline-block; }
.ts-table .ts-box input { width: 110px; }
.ts-table tr.ts-missing td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.warn-ink { color: var(--warn); }
.ts-save { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; justify-content: flex-end; margin-top: 14px; }
.ts-save label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.ts-save input { width: auto; }
.ts-save button { margin: 0; }
@media (max-width: 720px) {
  .ts-table thead { display: none; }
  .ts-table, .ts-table tbody, .ts-table tr, .ts-table td { display: block; width: 100%; }
  .ts-table tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .ts-table td { border: 0; padding: 4px 0; text-align: left; }
  .ts-table td.num { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
  .ts-table td.off { display: none; }
  .ts-table tr.ts-missing td:first-child { box-shadow: none; }
  .ts-table tr.ts-missing { box-shadow: inset 3px 0 0 var(--warn); }
  .ts-table td.num::before { content: attr(data-label); font-size: 13px; font-weight: 600; color: var(--muted); }
  .ts-save { justify-content: stretch; }
  .ts-save label, .ts-save button { flex: 1 1 100%; }
}
/* Reply to one message, like WhatsApp: a quoted box at the top of the reply (tap it to go to that message) */
.row-acts { align-self: center; flex: none; display: flex; gap: 4px; }
.bubble-quote { display: flex; align-items: stretch; gap: 8px; margin: 2px -4px 5px; padding: 5px 8px 5px 9px; border-left: 4px solid var(--mod); border-radius: 8px;
  background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); text-decoration: none; cursor: pointer; min-width: 160px; }
.bubble-quote:hover { text-decoration: none; background: color-mix(in srgb, var(--ink) 10%, transparent); }
.bubble-quote.me, .cp-reply.me .cp-reply-box { border-left-color: #0ea5e9; }
.bubble-quote.me b, .cp-reply.me b { color: #0284c7; }
.bq-words { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.bq-words b { font-size: 12.5px; font-weight: 800; color: var(--mod); }
.bq-words span { font-size: 13px; color: var(--ink-2, var(--muted)); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bubble-quote img, .cp-reply-box img { width: 42px; height: 42px; flex: none; border-radius: 6px; object-fit: cover; align-self: center; }
.cp-reply { display: flex; align-items: center; gap: 6px; }
.cp-reply[hidden] { display: none; }
.cp-reply-box { flex: 1; min-width: 0; display: flex; gap: 8px; padding: 6px 10px; border-left: 4px solid var(--mod); border-radius: 10px; background: color-mix(in srgb, var(--ink) 6%, var(--card)); }
.cp-reply-box .bq-words span { -webkit-line-clamp: 1; }
.bubble-row.swiping { transition: none; }
.bubble-row:not(.swiping) { transition: transform .18s ease-out; }
.bubble-row.swipe-ready .bubble { box-shadow: 0 0 0 2px color-mix(in srgb, var(--mod) 40%, transparent); }
@media (prefers-reduced-motion: reduce) { .bubble-row:not(.swiping) { transition: none; } }

/* Pay plan: Bonuses card (e.g. feedback removal) */
.bonus-form { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr 1fr; gap: 10px 14px; align-items: start; margin-bottom: 6px; }
.bonus-form p { margin: 0; }
.bonus-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.bonus-form .bonus-reason { grid-column: 1 / -1; }
.bonus-form .form-actions { grid-column: 1 / -1; margin-top: 0; }
.bonus-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bonus-chips .chip { padding: 5px 12px; min-height: 0; margin: 0; color: var(--ink); background: var(--card); cursor: pointer; box-shadow: none; }
.bonus-chips .chip:hover { border-color: var(--brand); color: var(--brand-ink); }
@media (max-width: 720px) { .bonus-form { grid-template-columns: 1fr 1fr; } .bonus-form p:has(#bonus-store) { grid-column: 1 / -1; } }

/* Dashboard: Account search for spy */
.spy-card .card-head { margin-bottom: 6px; }
.spy-card .card-head h2 { display: flex; align-items: center; gap: 8px; }
.spy-help { margin: 0 0 4px; font-size: 13px; }
.spy-form button { display: inline-flex; align-items: center; gap: 6px; }
#spy-result:not(:empty) { margin-top: 10px; }
.msg-inline.ok { background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.msg-inline.ok .i { color: var(--ok); }
.spy-list { margin: 6px 0 2px; padding-left: 18px; font-weight: 600; }
.spy-list small { font-weight: 400; opacity: .8; }
.stock-chip { text-decoration: none; padding-right: 4px; }
.stock-chip:hover { text-decoration: none; }

/* ---- Product research projects (apps.research) ---- */
.board.rs-board5, .rs-board5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1200px) { .rs-board5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .rs-board5 { grid-template-columns: minmax(0, 1fr); } }
a.rs-project { display: block; color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s; }
a.rs-project:hover { transform: translateY(-2px); text-decoration: none; }
.rs-project .rs-name { font-size: 17px; }
.rs-criteria { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 16px; margin: 6px 0 4px; }
.rs-criteria .check { margin: 4px 0; font-weight: 500; }
.rs-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 18px; counter-reset: rs; }
.rs-steps li { counter-increment: rs; flex: 1 1 140px; padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 14px; }
.rs-steps li::before { content: counter(rs); display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--line-2); font-size: 12px; }
.rs-steps li.done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); }
.rs-steps li.done::before { content: "✓"; background: var(--ok-soft); }
.rs-steps li.now { color: var(--ink); border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); }
.rs-steps li.now::before { background: var(--brand); color: #fff; }
.rs-steps li.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.rs-result { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 14px; background: var(--line-2); }
.rs-result.good { background: var(--ok-soft); color: var(--ok); }
.rs-result.bad { background: var(--bad-soft); color: var(--bad); }
.rs-sum td { padding-top: 7px; padding-bottom: 7px; }
.rs-sum tr.rs-net.good td { background: var(--ok-soft); }
.rs-sum tr.rs-net.bad td { background: var(--bad-soft); }
.rs-crit-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.rs-crit-row input[type=text] { flex: 1; margin: 0; }
.rs-crit-row.off input[type=text] { opacity: .55; text-decoration: line-through; }
.rs-add > summary { list-style: none; display: inline-flex; margin-top: 12px; cursor: pointer; }
.rs-add > summary::-webkit-details-marker { display: none; }
.rs-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.rs-stack #rs-calc { max-width: 760px; }
.rs-quotes select { min-width: 160px; margin: 0; }
.rs-stars { color: #e0a100; letter-spacing: 1px; font-size: 16px; white-space: nowrap; }
.rs-client-said { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; }
.rs-star-pick { display: inline-flex; flex-direction: row-reverse; gap: 2px; margin: 2px 0 10px; }
.rs-star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rs-star-pick label { font-size: 32px; line-height: 1; color: var(--line); cursor: pointer; margin: 0; padding: 2px; }
.rs-star-pick input:checked ~ label, .rs-star-pick label:hover, .rs-star-pick label:hover ~ label { color: #e0a100; }
.rs-star-pick input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 6px; }
.rs-choice { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 2px 0 10px; }
.rs-choice .check { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-weight: 600; }
.rs-choice .check input { width: auto; margin: 0; }
.rs-quick { margin: 6px 0 12px; padding: 12px 14px 4px; border: 1px dashed var(--line); border-radius: 12px; }
.rs-quick-head { margin: 0 0 6px; }
.rs-quick .form-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.rs-quick .form-3 p { margin: 0; }
@media (max-width: 600px) { .rs-quick .form-3 { grid-template-columns: minmax(0, 1fr); } }
.rs-bonus { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.rs-bonus input, .rs-bonus select { width: auto; margin: 0; min-width: 0; }
.rs-bonus input[name=amount] { max-width: 130px; }

/* Notifications: "For me to do" / "Other notifications" switch and the sort picker (owner, 2026-11-23). */
.note-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.note-switch a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-weight: 700; }
.note-switch a:hover { text-decoration: none; background: var(--line-2); }
.note-switch a.on { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--mod, #4f46e5), var(--mod-2, #7c3aed)); }
.tabs-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.tabs-row .tabs { margin-bottom: 0; }
.sort-pick { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 0 auto; font-weight: 700; color: var(--ink-2); }
.sort-pick select { width: auto; margin: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
/* Sort: three tick boxes, one chosen; it stays until another is picked (owner, 2026-11-24). */
.sort-pick { flex-wrap: wrap; }
.sort-opt { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-weight: 700; font-size: 14px; }
.sort-opt:hover { text-decoration: none; background: var(--line-2); }
.sort-opt .box { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--line); display: inline-grid; place-items: center; }
.sort-opt .box .i { width: 13px; height: 13px; }
.sort-opt.on { border-color: var(--brand); color: var(--ink); }
.sort-opt.on .box { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Results: stores not entered yet, one box per manager (copy / WhatsApp). */
.missing-list { margin: -8px 0 20px; padding: 14px 18px; }
.missing-list > summary { cursor: pointer; }
.missing-list[open] > summary { margin-bottom: 8px; }
.missing-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 10px; }
.missing-group { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card); display: flex; flex-direction: column; gap: 8px; }
.missing-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.missing-group ol { margin: 0; padding-left: 22px; font-size: 14px; max-height: 260px; overflow: auto; }
.missing-group li { margin: 2px 0; }
.missing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; }
.missing-actions .copied { color: var(--ok); }
.missing-open { margin-left: 6px; font-weight: 600; }
/* Staff pay: CEO's "+ Bonus" / "Open again" under a Check & Done person's Pay box (2026-12-02) */
.done-actions { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.done-actions form { margin: 0; }
