/* Nexmora — design tokens & components (no build step needed)
   Theme:  <html data-theme="light|dark" data-accent="cobalt|purple|emerald|navy"> — rendered by the server (App\Support\Theme).
   :root holds the light palette, so a page is never left with a different look if an attribute is missing.
   The first part of this file is the component base; the "WORKSPACE SKIN" block at the end adds the palette, waves, sidebar
   and login, and its component rules apply only where data-theme is set (workspace + login).
   Buyer pages (layouts/public) never set data-theme and define their own tokens in that layout, so they do not change with this file. */
:root{
  /* fixed: dark ink for toasts, gold for the ka-ching coin. Surfaces, text and accent are in the WORKSPACE SKIN block (:root there). */
  --navy:#1E2340;--navy2:#141829;--gold:#E8B44C;--on-accent:#FFFFFF;
  /* status */
  --emerald:#0B7F58;--emerald-ink:#0B6B4C;--ok-bg:#DDF6EC;--ok-soft:#F2FBF7;--ok-line:#BFE8D6;
  --amber-bg:#FDF1D8;--amber:#8A4B06;--amber-soft:#FFFBF0;--amber-line:#F5D9A3;
  --rose-bg:#FCE4E7;--rose:#A51F33;--rose-line:#F3C3CA;--danger:#C2283D;
  --violet:#5B2AA8;--violet-bg:#F1E8FF;--grey-bg:#EEF0F5;--toggle-off:#C9CFDB;
  color-scheme:light;
}

html[data-theme="dark"]{
  /* status colours for dark; surfaces, text and accent are in the WORKSPACE SKIN block */
  --emerald:#0B7F58;--emerald-ink:#7FE0BC;--ok-bg:#123A2D;--ok-soft:#10271F;--ok-line:#1F5A45;
  --amber-bg:#40300F;--amber:#F4C777;--amber-soft:#2A2110;--amber-line:#5E4718;
  --rose-bg:#45181F;--rose:#FF9CA8;--rose-line:#6E2A35;--danger:#C2283D;
  --violet:#C6A5F5;--violet-bg:#2E2148;--toggle-off:#46506B;
  color-scheme:dark;
}
html[data-theme="dark"][data-accent="purple"]{--cobalt:#8A4BCB;--cobalt2:#7440B0;--link:#D3B0F7;--link2:#E4CDFB;--soft:#261740;--tint:#33204D;--tint-ink:#DCC0F9;--ring:#6A3F99}
html[data-theme="dark"][data-accent="emerald"]{--cobalt:#0B7F58;--cobalt2:#096A49;--link:#6FDDB3;--link2:#9BEACB;--soft:#0F2A21;--tint:#103A2C;--tint-ink:#8FE6C3;--ring:#1F6B50}
html[data-theme="dark"][data-accent="navy"]{--cobalt:#4567C9;--cobalt2:#3657B3;--link:#A9BCF0;--link2:#C8D4F7;--soft:#161F3B;--tint:#1C2A4E;--tint-ink:#BECDF5;--ring:#3D5596}

*{box-sizing:border-box}html,body{margin:0}body{font-family:var(--font);color:var(--ink);background:var(--bg);font-size:14px;line-height:1.5}
h1,h2,h3,h4{font-family:var(--font-head);letter-spacing:-.02em;margin:0}h1{font-size:26px}h2{font-size:17px}h3{font-size:15px}p{margin:0}
a{color:var(--link);text-decoration:none}a:hover{color:var(--link2)}
[x-cloak]{display:none!important}
.app{display:flex;min-height:100vh}
.side{width:248px;flex:none;background:var(--side-bg);color:var(--side-ink);padding:18px 14px;display:flex;flex-direction:column;gap:2px;position:sticky;top:0;height:100vh;overflow-y:auto}
.side .brand{display:flex;align-items:center;gap:10px;padding:4px 6px 12px;color:var(--ink);font:800 17px var(--font)}
.side .group{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--side-muted);margin:14px 10px 6px}
.side a.item{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:9px;color:var(--side-ink);font-weight:500;font-size:13.5px;transition:background-color .12s,color .12s}
.side a.item:hover{background:var(--soft);color:var(--ink)}.side a.item.on{background:var(--grad-ink);color:#fff}
.side a.item svg{width:18px;height:18px;flex:none}
.side .count{margin-left:auto;font-size:11px;background:var(--tint);color:var(--tint-ink);padding:1px 8px;border-radius:999px}
.side .count.alert{background:var(--danger);color:#fff}
.side .me{margin-top:auto;padding:12px;border-radius:12px;background:var(--card2);border:1px solid var(--line);display:flex;gap:10px;align-items:center;font-size:12.5px}
.avatar{width:34px;height:34px;border-radius:50%;background:var(--tint);color:var(--tint-ink);display:inline-flex;align-items:center;justify-content:center;font:700 13px var(--font-head);flex:none}
.main{flex:1;min-width:0;display:flex;flex-direction:column}
.topbar{display:flex;align-items:center;gap:12px;padding:12px 28px;background:var(--card);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}
.topbar .search{flex:1 1 260px;max-width:420px;display:flex;align-items:center;gap:8px;height:38px;padding:0 12px;background:var(--well);border-radius:10px}
.topbar .search input{flex:1;min-width:0;border:0;background:transparent;font:400 14px var(--font);outline:none;color:var(--ink)}
.topbar .search input::placeholder{color:var(--muted)}
.page{padding:24px 28px 48px;display:flex;flex-direction:column;gap:16px;max-width:1400px;width:100%}
.head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px}
.head p{color:var(--muted);margin-top:4px}
.crumb{font-size:13px;color:var(--muted)}
.card{background:var(--card);border:1px solid var(--line);border-radius:16px}
.card-h{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--line3)}
.card-b{padding:16px}
.grid{display:grid;gap:12px}.g2{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.g3{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.g4{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
.kpi{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:16px}.kpi .l{font-size:12.5px;color:var(--muted)}.kpi .v{font:800 24px var(--font-head);margin-top:6px}.kpi .n{font-size:12px;font-weight:600;margin-top:2px}

/* ---- Buttons: lift on hover, sink when pressed, spinner while working (<x-btn>) ---- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 16px;border-radius:10px;border:1px solid var(--line2);background:var(--card);color:var(--ink);font:600 13.5px var(--font);cursor:pointer;white-space:nowrap;text-decoration:none;user-select:none;-webkit-tap-highlight-color:transparent;box-shadow:var(--sh-btn);transition:transform .12s ease,box-shadow .12s ease,background-color .12s ease,border-color .12s ease,opacity .12s ease}
.btn:hover{border-color:var(--muted);color:var(--ink);transform:translateY(-1px);box-shadow:var(--sh-btn-h)}
.btn:active{transform:scale(.97);box-shadow:var(--sh-btn-a);transition-duration:.1s}
.btn:focus-visible,.pill:focus-visible,.x:focus-visible,.toggle:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
.btn.sm{height:32px;padding:0 10px;font-size:12.5px;border-radius:8px}.btn.lg{height:46px;padding:0 20px;font-size:14.5px}
.btn.primary{background:var(--cobalt);border-color:var(--cobalt);color:var(--on-accent)}.btn.primary:hover{background:var(--cobalt2);border-color:var(--cobalt2);color:var(--on-accent)}
.btn.success{background:var(--emerald);border-color:var(--emerald);color:#fff}.btn.success:hover{background:#096A49;border-color:#096A49;color:#fff}
.btn.danger{color:var(--rose);border-color:var(--rose-line)}.btn.danger:hover{color:var(--rose);border-color:var(--rose)}
.btn.danger.solid{background:var(--danger);color:#fff;border-color:var(--danger)}.btn.danger.solid:hover{background:#A51F33;border-color:#A51F33;color:#fff}
.btn.ghost{border-color:transparent;background:transparent;box-shadow:none}.btn.ghost:hover{background:var(--well);border-color:transparent;box-shadow:none;transform:none}.btn.ghost:active{transform:translateY(1px)}
.btn.gold{background:var(--gold);border-color:var(--gold);color:var(--navy)}.btn.gold:hover{color:var(--navy);border-color:#D9A236;background:#D9A236}
.btn[disabled],.btn.is-busy,.btn[aria-disabled="true"]{opacity:.6;cursor:not-allowed;transform:none;box-shadow:none;pointer-events:none}
.btn .btn-t{display:inline-flex;align-items:center;gap:8px}
.btn .btn-w,.btn .spin{display:none}
.btn.is-busy .spin{display:inline-block}.btn.is-busy.has-w .btn-t{display:none}.btn.is-busy .btn-w{display:inline}
.btn .btn-ok{display:none;align-items:center;gap:6px}.btn.is-done .btn-ok{display:inline-flex;animation:nxpop .25s ease}.btn.is-done .btn-t,.btn.is-done .btn-w,.btn.is-done .spin{display:none}
@keyframes nxpop{from{transform:scale(.6);opacity:0}to{transform:none;opacity:1}}
.spin{width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:nxspin .6s linear infinite;flex:none}
@keyframes nxspin{to{transform:rotate(360deg)}}

.field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:var(--ink2)}
.field small{font-weight:400;color:var(--muted);font-size:12px}
.input,select.input,textarea.input{height:40px;border:1px solid var(--line2);border-radius:10px;padding:0 12px;font:400 14px var(--font);background:var(--field);color:var(--ink);width:100%}
.input::placeholder{color:var(--muted);opacity:.8}
textarea.input{height:auto;padding:10px 12px;line-height:1.55}.input:focus{outline:2px solid var(--ring);border-color:var(--cobalt)}
.input.mono{font-family:ui-monospace,Menlo,monospace;font-size:13px}
.input:disabled{opacity:.6}
.err{color:var(--rose);font-size:12.5px;font-weight:500}
.check{display:flex;gap:8px;align-items:center;font-size:13.5px;font-weight:500;color:var(--ink)}
.check input,.opt input[type=checkbox]{accent-color:var(--cobalt)}
.badge{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:6px;font-size:11px;font-weight:800;letter-spacing:.03em;white-space:nowrap}
.b-green{background:var(--ok-bg);color:var(--emerald-ink)}.b-amber{background:var(--amber-bg);color:var(--amber)}.b-rose{background:var(--rose-bg);color:var(--rose)}.b-grey{background:var(--grey-bg);color:var(--ink2)}.b-blue{background:var(--tint);color:var(--tint-ink)}
.tabs{display:inline-flex;flex-wrap:wrap;gap:4px;background:var(--card);border:1px solid var(--line);padding:4px;border-radius:12px}
.tabs button,.tabs a{height:36px;padding:0 14px;border:0;border-radius:8px;font:600 13.5px var(--font);cursor:pointer;background:transparent;color:var(--ink2);display:inline-flex;align-items:center;transition:background-color .12s,color .12s,transform .1s}
.tabs button:hover,.tabs a:hover{background:var(--well)}.tabs button:active,.tabs a:active{transform:translateY(1px)}
.tabs .on,.tabs .on:hover{background:var(--tint);color:var(--tint-ink)}
.seg{display:inline-flex;gap:4px;background:var(--well);padding:4px;border-radius:10px}.seg button{height:32px;padding:0 12px;border:0;border-radius:7px;font:600 13px var(--font);background:transparent;color:var(--muted);cursor:pointer;transition:background-color .12s,color .12s,transform .1s}.seg button:active{transform:translateY(1px)}.seg .on{background:var(--card);color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.12)}
table.t{width:100%;border-collapse:collapse;font-size:13.5px}
table.t th{background:var(--card2);text-align:left;font-size:12px;color:var(--ink2);font-weight:700;padding:10px 14px;border-bottom:1px solid var(--line3);white-space:nowrap}
table.t td{padding:11px 14px;border-bottom:1px solid var(--line3);vertical-align:top}
table.t tr:hover td{background:var(--hover)}
.scroll-x{overflow-x:auto}
.muted{color:var(--muted)}.small{font-size:12.5px}.mono{font-family:ui-monospace,Menlo,monospace}.right{text-align:right}.b{font-weight:700}
.row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.spacer{margin-left:auto}
.stack{display:flex;flex-direction:column;gap:12px}
.toggle{width:44px;height:26px;border:0;border-radius:999px;padding:3px;cursor:pointer;display:inline-flex;background:var(--toggle-off);flex:none;transition:.15s}
.toggle span{width:20px;height:20px;border-radius:50%;background:#fff;transition:.15s;box-shadow:0 1px 2px rgba(0,0,0,.25)}.toggle.on{background:var(--cobalt);justify-content:flex-end}.toggle:active span{transform:scale(.92)}
.opt{display:flex;gap:12px;align-items:flex-start}.opt .t{font-weight:600}.opt .d{font-size:12.5px;color:var(--muted);margin-top:2px}
fieldset.box{margin:0;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--card2);display:flex;flex-direction:column;gap:14px}
fieldset.box legend{font-size:13px;font-weight:700;padding:0 6px}
.overlay{position:fixed;inset:0;background:rgba(7,13,31,.45);z-index:50;display:flex}
html[data-theme="dark"] .overlay{background:rgba(0,0,0,.62)}
.overlay.lock{background:rgba(7,13,31,.72);backdrop-filter:blur(6px);z-index:80}
.drawer{margin-left:auto;width:100%;max-width:600px;height:100%;background:var(--card);display:flex;flex-direction:column}
.drawer.wide{max-width:880px}
.drawer .dh,.modal .dh{display:flex;align-items:center;gap:12px;padding:16px 22px;border-bottom:1px solid var(--line3)}
.drawer .db,.modal .db{flex:1;overflow-y:auto;padding:18px 22px;display:flex;flex-direction:column;gap:14px}
.drawer .df,.modal .df{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:14px 22px;border-top:1px solid var(--line3)}
.modal{margin:8vh auto auto;width:100%;max-width:620px;background:var(--card);border-radius:16px;overflow:hidden;max-height:84vh;display:flex;flex-direction:column;box-shadow:var(--sh-pop)}
.modal.narrow{max-width:460px}
.x{width:38px;height:38px;border:1px solid var(--line2);border-radius:10px;background:var(--card);color:var(--ink);cursor:pointer;flex:none;transition:transform .1s,background-color .12s}.x:hover{background:var(--well)}.x:active{transform:translateY(1px)}
.flash{padding:12px 14px;border-radius:10px;font-weight:600;font-size:13.5px}.flash.ok{background:var(--ok-bg);color:var(--emerald-ink)}.flash.bad{background:var(--rose-bg);color:var(--rose)}.flash.info{background:var(--tint);color:var(--tint-ink)}
.empty{padding:36px 16px;text-align:center;color:var(--muted)}
.pill{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border-radius:999px;border:1px solid var(--line2);background:var(--card);font:600 12.5px var(--font);cursor:pointer;color:var(--ink2);transition:transform .1s,background-color .12s,border-color .12s}.pill:hover{border-color:var(--muted)}.pill:active{transform:translateY(1px)}.pill.on{background:var(--cobalt);border-color:var(--cobalt);color:var(--on-accent)}
.bar{height:8px;background:var(--line3);border-radius:99px;overflow:hidden}.bar>span{display:block;height:100%;background:var(--cobalt)}
.chart{height:200px;display:flex;align-items:flex-end;gap:6px;padding-top:10px}.chart .c{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;height:100%;justify-content:flex-end}.chart .c i{display:block;width:100%;background:var(--cobalt);border-radius:4px 4px 1px 1px;min-height:2px}.chart .c b{font-size:10.5px;color:var(--muted);font-weight:500}
.toast{position:fixed;right:20px;top:76px;z-index:60;width:340px;max-width:calc(100% - 40px);background:var(--navy);color:#fff;border-radius:16px;padding:16px;box-shadow:0 18px 48px rgba(7,13,31,.35);display:flex;gap:12px}
html[data-theme="dark"] .toast{border:1px solid var(--line2)}
.toast .coin{width:44px;height:44px;border-radius:12px;background:var(--gold);color:var(--navy);display:flex;align-items:center;justify-content:center;font-weight:800;flex:none}

/* ---- Small corner toasts (green = done, red = failed), disappear by themselves ---- */
.toasts{position:fixed;right:18px;bottom:18px;z-index:90;display:flex;flex-direction:column;gap:8px;align-items:flex-end;pointer-events:none;max-width:calc(100% - 36px)}
.tst{pointer-events:auto;display:flex;align-items:flex-start;gap:10px;min-width:220px;max-width:380px;padding:11px 12px 11px 14px;border-radius:12px;font-weight:600;font-size:13.5px;line-height:1.4;box-shadow:var(--sh-pop);border:1px solid transparent;animation:nxin .18s ease-out}
.tst.ok{background:#0B6B4C;color:#fff}.tst.bad{background:#A51F33;color:#fff}.tst.info{background:var(--navy);color:#fff}
html[data-theme="dark"] .tst{border-color:rgba(255,255,255,.14)}
.tst .tst-i{flex:none;width:18px;height:18px;border-radius:50%;background:rgba(255,255,255,.22);display:inline-flex;align-items:center;justify-content:center;font-size:11px;margin-top:1px}
.tst .tst-m{flex:1;min-width:0;overflow-wrap:anywhere}
.tst button{flex:none;border:0;background:transparent;color:inherit;opacity:.75;cursor:pointer;font-size:16px;line-height:1;padding:0 2px}.tst button:hover{opacity:1}
.tst.leaving{opacity:0;transform:translateY(6px);transition:opacity .2s,transform .2s}
@keyframes nxin{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ---- Theme switch & accent picker ---- */
.swatches{display:flex;flex-wrap:wrap;gap:10px}
.swatch{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 14px 0 10px;border-radius:999px;border:1px solid var(--line2);background:var(--card);color:var(--ink);font:600 13px var(--font);cursor:pointer;transition:transform .1s,border-color .12s,box-shadow .12s}
.swatch:hover{border-color:var(--muted)}.swatch:active{transform:translateY(1px)}
.swatch i{width:20px;height:20px;border-radius:50%;display:block;border:2px solid var(--card);box-shadow:0 0 0 1px var(--line2)}
.swatch.on{border-color:var(--cobalt);box-shadow:0 0 0 2px var(--ring)}

/* ---- Password strength ---- */
.meter{display:flex;gap:4px;margin-top:2px}.meter i{flex:1;height:5px;border-radius:99px;background:var(--line3);transition:background-color .15s}
.meter[data-s="1"] i:nth-child(-n+1){background:#C2283D}.meter[data-s="2"] i:nth-child(-n+2){background:#D98A0B}.meter[data-s="3"] i:nth-child(-n+3){background:#0E9F6E}.meter[data-s="4"] i{background:#0B7F58}
.rules{margin:0;padding:0;list-style:none;display:grid;gap:3px;font-size:12.5px;color:var(--muted);font-weight:500}.rules li::before{content:"○ "}.rules li.ok{color:var(--emerald-ink)}.rules li.ok::before{content:"✓ "}

.code-input{letter-spacing:.5em;text-align:center;font:700 22px ui-monospace,Menlo,monospace;height:54px}
.hamb{display:none}
@media (max-width:900px){.side{position:fixed;left:-260px;z-index:40;transition:.2s}.side.open{left:0}.hamb{display:inline-flex}.page{padding:16px}.topbar{padding:10px 16px}.toasts{right:12px;bottom:12px}}
@media (prefers-reduced-motion:reduce){.btn,.pill,.x,.tabs button,.seg button,.swatch{transition:none}.btn:hover,.btn:active,.pill:active,.x:active{transform:none}.tst{animation:none}.spin{animation-duration:1.2s}}
.pop{display:flex;flex-wrap:wrap}

/* =====================================================================================================
   WORKSPACE SKIN (v5) — waves, soft surfaces, gradient accent.
   Everything below applies only where <html data-theme> is set: the workspace and the login pages.
   Buyer pages (layouts/public) never set data-theme, so they keep the tokens and components above.
   ===================================================================================================== */
:root{
  /* brand gradient: patterns, logo, login header */
  --g1:#3B82F6;--g2:#6D5BF5;
  /* the same gradient one step deeper, for surfaces that carry white text (4.5:1 and more) */
  --g1-ink:#2563EB;--g2-ink:#5B46E8;
  --grad:linear-gradient(135deg,var(--g1),var(--g2));--grad-ink:linear-gradient(135deg,var(--g1-ink),var(--g2-ink));
  --font:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif;--font-head:var(--font);
  --radius:14px;--ease:cubic-bezier(.32,.72,0,1);
}
/* light is the default (:root), so a page without data-theme still gets this palette */
:root,html[data-theme="light"]{
  --bg:#F6F8FF;--card:#FFFFFF;--card2:#FAFBFF;--field:#FFFFFF;--hover:#F8FAFF;--well:#EEF1FB;
  --line:#E3E7F3;--line2:#D3D9EA;--line3:#ECEFF8;
  --ink:#1E2340;--ink2:#454B69;--muted:#636A86;
  --cobalt:#4263EB;--cobalt2:#3451D1;--link:#3451D1;--link2:#2A41B0;
  --soft:#F1F4FF;--tint:#E3E9FF;--tint-ink:#2F45B8;--ring:#BFCBFF;--grey-bg:#ECEFF8;
  --side-bg:#FFFFFF;--side-ink:#454B69;--side-muted:#6B7290;--pat-a:.10;--pat-b:.13;
  --sh-card:0 1px 2px rgba(30,35,64,.04),0 10px 28px -12px rgba(66,99,235,.14);
  --sh-btn:0 1px 2px rgba(30,35,64,.06),0 2px 6px rgba(30,35,64,.05);
  --sh-btn-h:0 2px 4px rgba(30,35,64,.08),0 10px 20px -8px rgba(66,99,235,.28);
  --sh-btn-a:0 1px 1px rgba(30,35,64,.08);
  --sh-pop:0 24px 60px -12px rgba(30,35,64,.28);
}
html[data-theme="dark"]{
  --bg:#141829;--card:#1B2036;--card2:#20263F;--field:#161B2E;--hover:#232A45;--well:#262D49;
  --line:#2E3654;--line2:#3D4668;--line3:#283050;
  --ink:#E8EAF6;--ink2:#C5CADF;--muted:#9CA4C2;
  --cobalt:#4C6AF0;--cobalt2:#3F5BDB;--link:#A9B8FF;--link2:#C6D0FF;
  --soft:#1F2748;--tint:#26315F;--tint-ink:#C2CCFF;--ring:#4A5DB8;--grey-bg:#2E3654;
  --side-bg:#171C30;--side-ink:#C5CADF;--side-muted:#8F97B8;--pat-a:.20;--pat-b:.22;
  --sh-card:0 1px 2px rgba(0,0,0,.25),0 12px 30px -14px rgba(0,0,0,.5);
  --sh-btn:0 1px 2px rgba(0,0,0,.35),0 2px 6px rgba(0,0,0,.22);
  --sh-btn-h:0 2px 4px rgba(0,0,0,.4),0 10px 20px -8px rgba(0,0,0,.5);
  --sh-btn-a:0 1px 1px rgba(0,0,0,.4);
  --sh-pop:0 24px 60px -12px rgba(0,0,0,.65);
}
/* Accents replace the gradient and the solid accent. */
html[data-theme][data-accent="purple"]{--g1:#8B5CF6;--g2:#D946EF;--g1-ink:#7C3AED;--g2-ink:#A21CAF}
html[data-theme][data-accent="emerald"]{--g1:#10B981;--g2:#0EA5A4;--g1-ink:#047857;--g2-ink:#0F766E}
html[data-theme][data-accent="navy"]{--g1:#3B5BDB;--g2:#1E3A8A;--g1-ink:#1E40AF;--g2-ink:#312E81}
html[data-theme="light"][data-accent="purple"]{--cobalt:#7C3AED;--cobalt2:#6527D3;--link:#6D28D9;--link2:#5B21B6;--soft:#F8F4FF;--tint:#EDE3FF;--tint-ink:#5B21B6;--ring:#D6C2FB}
html[data-theme="light"][data-accent="emerald"]{--cobalt:#047857;--cobalt2:#036249;--link:#047857;--link2:#036249;--soft:#EFFAF5;--tint:#D6F3E6;--tint-ink:#065F46;--ring:#A9E2CB}
html[data-theme="light"][data-accent="navy"]{--cobalt:#1E40AF;--cobalt2:#1E3A8A;--link:#1E40AF;--link2:#1E3A8A;--soft:#F1F4FB;--tint:#DDE4F5;--tint-ink:#1E3A8A;--ring:#B9C6E8}

/* ---- type ---- */
html[data-theme] :where(body,button,input,select,textarea,.btn,.pill,.swatch,.tabs button,.tabs a,.seg button,.kpi .v,.avatar){font-family:var(--font)}
html[data-theme] :where(h1,h2,h3,h4){font-family:var(--font);letter-spacing:-.025em}
html[data-theme] h1{font-weight:800;text-wrap:balance}
html[data-theme] .kpi .v,html[data-theme] table.t td{font-variant-numeric:tabular-nums}
html[data-theme] body{-webkit-font-smoothing:antialiased}

/* ---- shell: sidebar ---- */
html[data-theme] .app{min-height:100dvh}
html[data-theme] .side{background:var(--side-bg);color:var(--side-ink);border-right:1px solid var(--line);padding:16px 14px;height:100dvh;overflow-x:hidden;isolation:isolate}
html[data-theme] .side>*{position:relative;z-index:1}
.nx-pattern{pointer-events:none}
.nx-side-art{position:absolute!important;left:0;top:0;width:100%;height:150px;z-index:0!important}
.nx-side-art.foot{top:auto;bottom:0;height:100%;transform:scaleY(-1)}.nx-side-art.foot .bub{display:none}
.nx-side-art .w1{fill:var(--g1);opacity:var(--pat-a)}.nx-side-art .w2{fill:var(--g2);opacity:var(--pat-b)}.nx-side-art .bub{fill:var(--g2);opacity:var(--pat-b)}
html[data-theme] .side .brand{display:flex;align-items:center;gap:10px;padding:6px 6px 14px;color:var(--ink);font:800 19px var(--font);letter-spacing:-.03em}
html[data-theme] .side .brand:hover{color:var(--ink)}
html[data-theme] .side .group{font-size:10.5px;font-weight:700;letter-spacing:.12em;color:var(--side-muted);margin:12px 12px 4px}
html[data-theme] .side a.item{padding:8px 12px;border-radius:12px;color:var(--side-ink);font-weight:600;font-size:13.5px;transition:background-color .25s var(--ease),color .25s var(--ease),transform .25s var(--ease)}
html[data-theme] .side a.item:hover{background:var(--soft);color:var(--ink)}
html[data-theme] .side a.item:active{transform:scale(.985)}
html[data-theme] .side a.item.on,html[data-theme] .side a.item.on:hover{background:var(--grad-ink);color:#fff;box-shadow:0 8px 18px -8px color-mix(in srgb,var(--g2-ink) 70%,transparent)}
html[data-theme] .side a.item:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
html[data-theme] .side .count{background:var(--tint);color:var(--tint-ink);font-weight:700}
html[data-theme] .side .count.alert{background:var(--danger);color:#fff}
html[data-theme] .side a.item.on .count{background:rgba(255,255,255,.24);color:#fff}
html[data-theme] .side .me{flex:none;position:relative;overflow:hidden;background:var(--card2);border:1px solid var(--line);border-radius:16px;color:var(--muted);isolation:isolate}
html[data-theme] .side .me>*{position:relative;z-index:1}
html[data-theme] .side .me b{color:var(--ink)}
html[data-theme] .side .me .btn.ghost{color:var(--muted)}html[data-theme] .side .me .btn.ghost:hover{background:var(--well);color:var(--ink)}
html[data-theme] .avatar{background:var(--grad-ink);color:#fff;border-radius:12px}
.side-back{display:none}

/* ---- shell: top bar ---- */
html[data-theme] .topbar{background:color-mix(in srgb,var(--card) 80%,transparent);-webkit-backdrop-filter:saturate(1.4) blur(14px);backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid var(--line)}
html[data-theme] .topbar .search{height:40px;padding:0 16px;border-radius:999px;background:var(--well);border:1.5px solid transparent;transition:border-color .2s var(--ease),box-shadow .2s var(--ease),background-color .2s var(--ease)}
html[data-theme] .topbar .search:focus-within{background:var(--card);border-color:var(--cobalt);box-shadow:0 0 0 4px color-mix(in srgb,var(--ring) 50%,transparent)}
html[data-theme] .topbar .search input{font:500 14px var(--font)}

/* ---- surfaces ---- */
html[data-theme] .card{border-radius:16px;box-shadow:var(--sh-card)}
html[data-theme] .kpi{border-radius:16px;box-shadow:var(--sh-card)}
html[data-theme] .kpi .v{font-weight:800;letter-spacing:-.03em}
html[data-theme] .modal{border-radius:20px}
html[data-theme] .drawer{border-radius:20px 0 0 20px;overflow:hidden;box-shadow:var(--sh-pop)}
html[data-theme] fieldset.box,html[data-theme] .box{border-radius:14px}
html[data-theme] .flash{border-radius:12px}
html[data-theme] .badge{border-radius:8px}
html[data-theme] .tabs{border-radius:14px;box-shadow:var(--sh-card)}html[data-theme] .tabs button,html[data-theme] .tabs a{border-radius:10px}
html[data-theme] .seg{border-radius:12px}html[data-theme] .seg button{border-radius:9px}
html[data-theme] .x{border-radius:12px}
html[data-theme] .toast{background:#1E2340;border-radius:18px}
html[data-theme] table.t th{font-weight:700;color:var(--muted);letter-spacing:.01em}
html[data-theme] .chart .c i,html[data-theme] .bar>span{background:var(--grad)}

/* ---- buttons and fields ---- */
html[data-theme] .btn{border-radius:12px;transition:transform .25s var(--ease),box-shadow .25s var(--ease),background-color .2s var(--ease),border-color .2s var(--ease),filter .2s var(--ease),opacity .2s var(--ease)}
html[data-theme] .btn.sm{border-radius:10px}
html[data-theme] .btn.primary,html[data-theme] .btn.primary:hover{background:var(--grad-ink);border-color:transparent;color:#fff}
html[data-theme] .btn.primary{box-shadow:0 1px 2px rgba(30,35,64,.10),0 8px 18px -8px color-mix(in srgb,var(--g2-ink) 65%,transparent)}
html[data-theme] .btn.primary:hover{filter:brightness(1.07);box-shadow:0 2px 4px rgba(30,35,64,.12),0 14px 26px -10px color-mix(in srgb,var(--g2-ink) 75%,transparent)}
html[data-theme] .btn.primary:active{filter:brightness(.96)}
html[data-theme] .pill.on{background:var(--grad-ink);border-color:transparent;color:#fff}
html[data-theme] .toggle.on{background:var(--grad-ink)}
html[data-theme] .input,html[data-theme] select.input,html[data-theme] textarea.input{border-radius:12px;transition:border-color .2s var(--ease),box-shadow .2s var(--ease)}
html[data-theme] .input:focus{outline:none;border-color:var(--cobalt);box-shadow:0 0 0 4px color-mix(in srgb,var(--ring) 50%,transparent)}

/* ---- login pages (layouts/guest): gradient header with waves and blobs, form below (mobile) or beside (desktop) ---- */
.auth2{min-height:100dvh;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr;background:var(--card);--auth-wave:var(--card)}
.auth2 .hero{position:relative;min-height:40dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:32px 24px 96px;background:var(--grad);color:#fff;overflow:hidden;isolation:isolate}
.auth2 .hero .wordmark{font:800 28px var(--font);letter-spacing:-.035em;color:#fff}
.auth2 .hero .tag{display:none}
.nx-hero-art{position:absolute;inset:0;z-index:-1}
.nx-hero-art .blobs{position:absolute;inset:0;width:100%;height:100%}
.nx-hero-art .blob{fill:#1B2A8F;opacity:.15}.nx-hero-art .blob.b3{opacity:.10}
.nx-hero-art .bub{fill:#fff;opacity:.13}.nx-hero-art .bub.s{opacity:.22}
.nx-hero-art .waves{position:absolute;left:0;bottom:-1px;width:200%;height:104px}
.nx-hero-art .w-back{fill:var(--g2-ink);opacity:.6;animation:nxwave 34s linear infinite}
.nx-hero-art .w-front{fill:var(--auth-wave);animation:nxwave 22s linear infinite}
@keyframes nxwave{to{transform:translateX(-1440px)}}
.auth2 .panel{display:flex;flex-direction:column;align-items:center;padding:4px 24px 28px;background:var(--card)}
.auth2 form{width:100%;max-width:400px;display:flex;flex-direction:column;gap:14px}
.auth2 form h1{font-size:26px;text-align:center}
.auth2 form .lead{text-align:center;color:var(--muted);margin-top:-6px}
.auth2 .foot{margin-top:auto;padding-top:24px;font-size:12px;color:var(--muted);text-align:center}
.afield{position:relative;display:block}
.afield>svg{position:absolute;left:18px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none;transition:color .2s var(--ease)}
html[data-theme] .afield .input{height:52px;border-radius:999px;padding:0 50px;background:var(--well);border:1.5px solid transparent;font-size:15px;font-weight:500}
html[data-theme] .afield .input:focus{background:var(--card)}
.afield:focus-within>svg{color:var(--cobalt)}
.afield .eye{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:38px;height:38px;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background-color .2s var(--ease),color .2s var(--ease)}
.afield .eye:hover{background:var(--line3);color:var(--ink)}.afield .eye:focus-visible{outline:2px solid var(--ring)}
.afield .eye .off,.afield .eye[aria-pressed="true"] .on{display:none}.afield .eye[aria-pressed="true"] .off{display:block}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.auth2 .between{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;font-size:13.5px}
.auth2 .between a,.auth2 .alt a{font-weight:600}
html[data-theme] .auth2 .btn.primary.lg{height:52px;border-radius:999px;font-size:15px;font-weight:700;width:100%}
html[data-theme] .auth2 .btn.outline{height:48px;border-radius:999px;width:100%;border:1.5px solid var(--line2);box-shadow:none;font-weight:600}
.auth2 .alt{text-align:center;font-size:13.5px;color:var(--muted)}
html[data-theme] .auth2 .code-input{height:60px;border-radius:18px;background:var(--well);border:1.5px solid transparent;font-size:24px}
@media (min-width:900px){
  .auth2{grid-template-columns:minmax(400px,44%) minmax(0,1fr);grid-template-rows:1fr;background:var(--bg);--auth-wave:var(--bg)}
  .auth2 .hero{min-height:100dvh;align-items:flex-start;justify-content:space-between;padding:44px 48px 150px;background:var(--grad-ink)} /* deeper gradient: it carries body text here (AA) */
  .auth2 .hero .brandrow{display:flex;align-items:center;gap:12px}
  .auth2 .hero .wordmark{font-size:24px}
  .auth2 .hero .tag{display:block;max-width:420px}
  .auth2 .hero .tag h2{font:800 36px/1.12 var(--font);letter-spacing:-.035em;color:#fff;text-wrap:balance}
  .auth2 .hero .tag p{margin-top:14px;color:rgba(255,255,255,.94);font-size:15px;line-height:1.6;max-width:38ch}
  .nx-hero-art .waves{height:130px}
  .auth2 .panel{justify-content:center;padding:40px;background:var(--bg)}
  .auth2 form{max-width:440px;padding:40px;background:var(--card);border:1px solid var(--line);border-radius:28px;box-shadow:var(--sh-card)}
  .auth2 form h1{text-align:left;font-size:28px}.auth2 form .lead{text-align:left}
  .auth2 .foot{margin-top:28px;padding-top:0}
}
@media (max-width:899px){.auth2 .hero .brandrow{display:flex;flex-direction:column;align-items:center;gap:10px}}

/* ---- forced "Change password" screen (layouts/lock) ---- */
html[data-theme] .overlay.lock{background:color-mix(in srgb,var(--ink) 55%,transparent)}
html[data-theme="dark"] .overlay.lock{background:rgba(8,10,20,.72)}

@media (max-width:900px){
  html[data-theme] .side{left:0;transform:translateX(-105%);transition:transform .34s var(--ease);box-shadow:none;width:272px}
  html[data-theme] .side.open{transform:none;box-shadow:var(--sh-pop)}
  .side-back{display:block;position:fixed;inset:0;z-index:35;background:color-mix(in srgb,var(--ink) 45%,transparent);opacity:0;pointer-events:none;transition:opacity .3s var(--ease)}
  .side-back.open{opacity:1;pointer-events:auto}
  html[data-theme="dark"] .side-back{background:rgba(0,0,0,.6)}
  html[data-theme] .drawer{border-radius:0}
}
@media (prefers-reduced-motion:reduce){
  .nx-hero-art .w-back,.nx-hero-art .w-front{animation:none}
  html[data-theme] .side,html[data-theme] .side a.item,html[data-theme] .btn,.side-back{transition:none}
}

/* ---- date range picker: dropdown on desktop, bottom sheet on a phone (partials/date-picker) ---- */
.dp{position:relative}
.sheet-back{display:none}
.dp-pop{position:absolute;right:0;top:46px;z-index:30;width:520px;max-width:calc(100vw - 32px);box-shadow:var(--sh-pop)}
.dp-head{display:none}
.dp-list{flex:1 1 200px;padding:8px;border-right:1px solid var(--line3)}
.dp-list .btn{width:100%;justify-content:flex-start}
.dp-list .btn.on{background:var(--tint);color:var(--tint-ink)}
.dp-custom{flex:1 1 240px;padding:14px}
.dp-apply .btn{width:100%}

/* ---- phones ---- */
@media (max-width:640px){
  .sheet-back{display:block;position:fixed;inset:0;z-index:58;background:color-mix(in srgb,var(--ink) 45%,transparent)}
  html[data-theme="dark"] .sheet-back{background:rgba(0,0,0,.6)}
  .dp-pop{position:fixed;left:0;right:0;bottom:0;top:auto;width:100%;max-width:none;max-height:86dvh;overflow-y:auto;overscroll-behavior:contain;z-index:59;flex-direction:column;flex-wrap:nowrap;border-radius:22px 22px 0 0!important;border-bottom:0;transform:none!important;padding-bottom:env(safe-area-inset-bottom)}
  .dp-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px 8px;position:sticky;top:0;z-index:1;background:var(--card);font-size:16px}
  .dp-list{flex:none;display:grid;grid-template-columns:1fr 1fr;gap:2px;border-right:0;border-bottom:1px solid var(--line3);padding:4px 10px 10px}
  .dp-list .btn{height:40px}
  .dp-custom{flex:none;padding:14px 16px 0}
  .dp-apply{position:sticky;bottom:0;background:var(--card);padding:10px 0 14px}
  .dp-btn{max-width:100%;white-space:normal;height:auto;min-height:40px;padding-block:6px}

  /* stat cards: two columns, numbers never cut */
  html[data-theme] .grid.g4{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  html[data-theme] .grid.g4>.kpi:last-child:nth-child(odd){grid-column:1/-1}
  html[data-theme] .kpi{padding:12px 14px;min-width:0}
  html[data-theme] .kpi .v{font-size:clamp(17px,5.4vw,22px);overflow-wrap:anywhere}
  html[data-theme] .head{align-items:stretch}
  html[data-theme] h1{font-size:22px}

  /* tables become lists of cards: the column name is printed before each value (data-label is set by nexmora.js) */
  html[data-theme] .scroll-x{overflow-x:visible}
  html[data-theme] table.t:not(.t-keep),html[data-theme] table.t:not(.t-keep) tbody{display:block;width:100%}
  html[data-theme] table.t:not(.t-keep) thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  html[data-theme] table.t:not(.t-keep) tr{display:block;padding:12px 14px;border-bottom:1px solid var(--line3)}
  html[data-theme] table.t:not(.t-keep) tr:last-child{border-bottom:0}
  html[data-theme] table.t:not(.t-keep) td{display:grid;grid-template-columns:minmax(84px,36%) minmax(0,1fr);column-gap:12px;padding:3px 0;border:0;text-align:right;overflow-wrap:anywhere;background:transparent!important}
  html[data-theme] table.t:not(.t-keep) td::before{content:attr(data-label);grid-column:1;grid-row:1/span 12;text-align:left;font-size:12px;font-weight:600;color:var(--muted);line-height:1.6}
  html[data-theme] table.t:not(.t-keep) td:not([data-label]),html[data-theme] table.t:not(.t-keep) td[data-label=""],html[data-theme] table.t:not(.t-keep) td:first-child,html[data-theme] table.t:not(.t-keep) td[colspan]{display:block}
  html[data-theme] table.t:not(.t-keep) td:not([data-label])::before,html[data-theme] table.t:not(.t-keep) td[data-label=""]::before,html[data-theme] table.t:not(.t-keep) td:first-child::before,html[data-theme] table.t:not(.t-keep) td[colspan]::before{display:none}
  html[data-theme] table.t:not(.t-keep) td:first-child{text-align:left;font-size:14.5px;padding-bottom:6px}
  html[data-theme] table.t:not(.t-keep) td[colspan]{text-align:center}
  html[data-theme] table.t:not(.t-keep) td[data-label=""]{text-align:left;padding-top:8px}
  html[data-theme] table.t:not(.t-keep) td .row{justify-content:flex-end}
  html[data-theme] table.t:not(.t-keep) td[data-label=""] .row{justify-content:flex-start}
  html[data-theme] table.t:not(.t-keep) td select.input{min-width:0!important;width:100%}

  /* general */
  html[data-theme] .modal{margin:auto 0 0;max-width:none;max-height:92dvh;border-radius:22px 22px 0 0}
  html[data-theme] .tabs{display:flex;overflow-x:auto;flex-wrap:nowrap;max-width:100%;scrollbar-width:none}
  html[data-theme] .tabs button,html[data-theme] .tabs a{flex:none}
  html[data-theme] .seg{display:flex;max-width:100%;overflow-x:auto;scrollbar-width:none}
  html[data-theme] .seg button{flex:none}
  html[data-theme] .tabs::-webkit-scrollbar,html[data-theme] .seg::-webkit-scrollbar{display:none}
  html[data-theme] .card-h .input{width:100%!important}
  html[data-theme] .toast{left:12px;right:12px;width:auto;max-width:none}
  html[data-theme] table.t:not(.t-keep) td[data-label]:not([data-label=""]):not(:first-child)>*{justify-self:end}
  /* drawers: nothing inside may be wider than the phone */
  html[data-theme] .drawer{max-width:100vw}
  html[data-theme] .drawer .dh,html[data-theme] .modal .dh{flex-wrap:wrap;padding:14px 16px}
  html[data-theme] .drawer .dh>*,html[data-theme] .drawer .db>*,html[data-theme] .row>*{min-width:0}
  html[data-theme] .drawer .dh>div:first-child{flex:1 1 100%;order:2}
  html[data-theme] .drawer .dh>.x,html[data-theme] .drawer .dh>button.x{margin-left:auto}
  html[data-theme] .drawer .db,html[data-theme] .modal .db{padding:14px 16px;overflow-x:hidden}
  html[data-theme] .drawer .df,html[data-theme] .modal .df{padding:12px 16px}
  html[data-theme] .card-h{padding:12px 14px}
  html[data-theme] .card-h>*,html[data-theme] .head>*,html[data-theme] .card-h .row>*{min-width:0;max-width:100%}
  html[data-theme] .card-h .row{width:100%}
  html[data-theme] .card-h select.input,html[data-theme] .head select.input{width:100%!important}
  html[data-theme] .card-b{padding:14px}
}

/* ---- sound hint (shown once when a ka-ching arrives before the first tap) ---- */
.steps{margin:0;padding-left:18px;display:grid;gap:4px;font-size:13px;color:var(--ink2)}

/* ---- avatars ---- */
.avatar{overflow:hidden;line-height:1;font-weight:700}
.avatar img{width:100%;height:100%;object-fit:cover;display:block}
html[data-theme] .avatar{border-radius:50%}
.who{display:inline-flex;align-items:center;gap:8px;min-width:0;text-align:left}

/* ---- account menu (top bar, right) ---- */
.um{position:relative;display:flex}
.um-btn{padding:2px;border:2px solid transparent;border-radius:50%;background:transparent;cursor:pointer;display:inline-flex;transition:border-color .2s var(--ease),transform .2s var(--ease)}
.um-btn:hover,.um-btn[aria-expanded="true"]{border-color:var(--ring)}.um-btn:active{transform:scale(.96)}
.um-btn:focus-visible,.um-item:focus-visible,.side .me:focus-visible{outline:2px solid var(--cobalt);outline-offset:2px}
.um-pop{position:absolute;right:0;top:48px;z-index:45;width:300px;max-width:calc(100vw - 24px);padding:8px;display:flex;flex-direction:column;gap:2px;box-shadow:var(--sh-pop)}
.um-head{display:flex;gap:12px;align-items:center;padding:10px 10px 12px;border-bottom:1px solid var(--line3);margin-bottom:6px}
.um-head span>b,.um-head span>.small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.um-item{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border:0;border-radius:10px;background:transparent;color:var(--ink);font:600 13.5px var(--font);text-align:left;cursor:pointer;text-decoration:none;transition:background-color .2s var(--ease)}
.um-item:hover{background:var(--soft);color:var(--ink)}
.um-item svg{color:var(--muted);flex:none}
.um-theme{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px}
.um-out{margin:6px 0 0;padding-top:6px;border-top:1px solid var(--line3)}
html[data-theme] .side button.me{width:100%;text-align:left;font:inherit;cursor:pointer;transition:border-color .2s var(--ease),transform .2s var(--ease)}
html[data-theme] .side button.me:hover{border-color:var(--ring)}html[data-theme] .side button.me:active{transform:scale(.99)}
.me-more{margin-left:auto;color:var(--muted);font-size:18px;line-height:1}

/* ---- guided "Allow notifications" ---- */
.push-guide{display:flex;flex-direction:column;gap:10px}
.push-steps{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.push-steps li{display:flex;align-items:center;gap:10px;font-weight:600;font-size:13.5px;color:var(--muted)}
.push-steps .n{width:24px;height:24px;flex:none;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;background:var(--well);color:var(--ink2)}
.push-steps .is-run{color:var(--ink)}.push-steps .is-run .n{background:var(--tint);color:var(--tint-ink);animation:nxpulse 1.1s ease-in-out infinite}
.push-steps .is-ok{color:var(--ink)}.push-steps .is-ok .n{background:var(--ok-bg);color:var(--emerald-ink)}
.push-steps .is-fail{color:var(--rose)}.push-steps .is-fail .n{background:var(--rose-bg);color:var(--rose)}
@keyframes nxpulse{50%{opacity:.45}}
.diag{margin:0;padding:10px 12px;border-radius:10px;background:var(--well);color:var(--ink2);font:500 11.5px/1.6 ui-monospace,Menlo,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto}
.push-sheet-wrap .sheet-back{display:block;position:fixed;inset:0;z-index:70;background:color-mix(in srgb,var(--ink) 45%,transparent)}
.push-sheet{position:fixed;z-index:71;left:50%;bottom:24px;transform:translateX(-50%);width:min(440px,calc(100vw - 24px));max-height:88dvh;overflow-y:auto;padding:22px 20px 18px;display:flex;flex-direction:column;gap:12px;text-align:center;box-shadow:var(--sh-pop);border-radius:22px!important}
.push-sheet h2{font-size:20px;text-wrap:balance}
.push-sheet-art{width:56px;height:56px;margin:0 auto;border-radius:18px;background:var(--grad);display:flex;align-items:center;justify-content:center;font-size:26px}
.push-sheet .push-guide,.push-sheet .flash,.push-sheet .push-diag{text-align:left}
.push-sheet-actions{display:flex;flex-direction:column;gap:6px;position:sticky;bottom:-18px;background:var(--card);padding:8px 0 4px}
.push-sheet-actions .btn{width:100%}
.push-sheet .push-retry{display:none!important} /* the big button of the sheet is the retry */

/* ---- profile picture crop ---- */
.crop{position:relative;width:220px;height:220px;border-radius:16px;overflow:hidden;background:var(--well);touch-action:none;cursor:grab;user-select:none}
.crop:active{cursor:grabbing}
.crop img{position:absolute;left:0;top:0;max-width:none;transform-origin:0 0;pointer-events:none}
.crop-ring{position:absolute;inset:0;border-radius:50%;box-shadow:0 0 0 999px color-mix(in srgb,var(--card) 62%,transparent);border:2px solid #fff;pointer-events:none}
.avatar-field input[type=range]{accent-color:var(--cobalt);width:220px;max-width:100%}

@media (max-width:640px){
  .um-pop{position:fixed;left:0;right:0;bottom:0;top:auto;width:100%;max-width:none;z-index:59;border-radius:22px 22px 0 0!important;border-bottom:0;padding:10px 10px calc(12px + env(safe-area-inset-bottom));transform:none!important}
  .um-item{padding:13px 12px;font-size:14.5px}
  /* a blurred bar would become the box that position:fixed is measured from, and the menu sheet would stick to the bar */
  html[data-theme] .topbar{-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--card)}
  /* top bar on a phone: menu, search, avatar. The theme switch is inside the account menu. */
  .topbar .search{flex:1 1 0;min-width:0}.topbar>.spacer{display:none}.um{flex:none}
  .push-sheet{left:0;right:0;bottom:0;transform:none;width:100%;border-radius:22px 22px 0 0!important;border-bottom:0;padding-bottom:calc(18px + env(safe-area-inset-bottom))}
}
@media (prefers-reduced-motion:reduce){.push-steps .is-run .n{animation:none}}

/* ---- account menu: theme and accent ---- */
.um-theme{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px 12px;padding:8px 12px}
.um-theme .seg{justify-self:end}
.um-accents{display:flex;gap:8px;justify-self:end}
.um-accent{width:30px;height:30px;padding:0;border-radius:50%;border:2px solid transparent;background:transparent;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:border-color .2s var(--ease),transform .2s var(--ease)}
.um-accent i{width:20px;height:20px;border-radius:50%;display:block}
.um-accent:hover{border-color:var(--line2)}.um-accent:active{transform:scale(.94)}.um-accent.on{border-color:var(--ink)}
.um-accent:focus-visible,.um-theme .seg button:focus-visible{outline:2px solid var(--cobalt);outline-offset:2px}
/* the four accents themselves (each one's own --g1 → --g2 gradient); they do not follow the current accent */
.um-accent[data-a=cobalt] i{background:linear-gradient(135deg,#3B82F6,#6D5BF5)}.um-accent[data-a=purple] i{background:linear-gradient(135deg,#8B5CF6,#D946EF)}.um-accent[data-a=emerald] i{background:linear-gradient(135deg,#10B981,#0EA5A4)}.um-accent[data-a=navy] i{background:linear-gradient(135deg,#3B5BDB,#1E3A8A)}
/* the sidebar ends with its menu: no profile card (the account menu is the avatar at the top right) */
html[data-theme] .side{padding-bottom:16px}

/* ---- pagination (resources/views/pagination/nexmora.blade.php) ---- */
.pager{display:flex;align-items:center;justify-content:space-between;gap:12px 16px;flex-wrap:wrap}
.pager-info{font-size:13px;color:var(--muted)}.pager-info b{color:var(--ink);font-weight:700}
.pager-nav{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.pager-pages{display:flex;align-items:center;gap:4px}
.pager-btn,.pager-page{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;min-width:36px;padding:0 12px;border-radius:999px;border:1px solid var(--line2);background:var(--card);color:var(--ink);font:600 13px var(--font);text-decoration:none;cursor:pointer;transition:border-color .2s var(--ease),background-color .2s var(--ease),transform .15s var(--ease)}
.pager-page{padding:0 8px}
.pager-btn svg{width:16px;height:16px;flex:none}
.pager-btn:hover,.pager-page:hover{border-color:var(--cobalt);color:var(--ink)}.pager-btn:active,.pager-page:active{transform:translateY(1px)}
.pager-btn:focus-visible,.pager-page:focus-visible{outline:2px solid var(--cobalt);outline-offset:2px}
.pager-btn.is-off{opacity:.45;cursor:default;pointer-events:none}
.pager-page.is-on{background:var(--grad-ink);border-color:transparent;color:#fff;cursor:default}
.pager-gap{padding:0 4px;color:var(--muted)}
/* an icon is never allowed to grow with its container: every svg without a size gets one */
html[data-theme] svg:not([width]):not([class]){width:18px;height:18px}
@media (max-width:640px){
  .pager{justify-content:center}.pager-info{width:100%;text-align:center}
  .pager-pages .pager-page:not(.is-on){display:none}.pager-gap{display:none}
  .pager-btn{height:42px;padding:0 16px}.pager-page.is-on{height:42px;min-width:42px}
}

/* ---- Dashboard: figures, chart, ranking ---- */
/* Chart colours by order source, in a fixed order (a colour always means the same source). Checked with the
   dataviz palette validator on the card surface of each theme: lightness band, chroma, colour-blind separation. */
html[data-theme]{--viz-1:#2a78d6;--viz-2:#eb6834;--viz-3:#1baf7a;--viz-4:#eda100}
html[data-theme="dark"]{--viz-1:#3987e5;--viz-2:#d95926;--viz-3:#199e70;--viz-4:#c98500}
.viz-s-form{background:var(--viz-1)}.viz-s-bcl{background:var(--viz-2)}.viz-s-staff_whatsapp{background:var(--viz-3)}.viz-s-manual{background:var(--viz-4)}

.kpis{display:grid;gap:12px;grid-template-columns:repeat(5,minmax(0,1fr))}
.kpis .kpi{min-width:0}.kpis .kpi .v{overflow-wrap:anywhere}.kpis .kpi .n{min-height:18px}
@media (max-width:1180px){.kpis{grid-template-columns:repeat(6,minmax(0,1fr))}.kpis .kpi{grid-column:span 2}.kpis .kpi:nth-child(n+4){grid-column:span 3}}
@media (max-width:640px){
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .kpis .kpi,.kpis .kpi:nth-child(n+4){grid-column:auto}
  .kpis .kpi:first-child{grid-column:1/-1} /* the headline figure across, then 2 × 2 */
  html[data-theme] .kpis .kpi:first-child .v{font-size:26px}
}
.dash-two{grid-template-columns:minmax(0,3fr) minmax(0,2fr);align-items:start}
@media (max-width:980px){.dash-two{grid-template-columns:minmax(0,1fr)}}

.viz-h{align-items:center;gap:12px;flex-wrap:wrap}
.viz-sum{position:relative;z-index:2;margin:0 0 14px;padding-bottom:12px;border-bottom:1px solid var(--line3);background:var(--card)}
.viz-total{margin:0;font-size:13.5px;color:var(--ink2)}
.viz-total b{font:800 22px var(--font);letter-spacing:-.02em;color:var(--ink);font-variant-numeric:tabular-nums;margin-right:2px}
.viz-delta{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:999px;font-weight:700;font-size:12px;white-space:nowrap}
.viz-delta.up{background:var(--ok-bg);color:var(--emerald-ink)}.viz-delta.down{background:var(--rose-bg);color:var(--rose)}
.viz-legend{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12.5px;color:var(--ink2)}
.viz-legend li{display:inline-flex;align-items:center;gap:6px}
.viz-sw{width:10px;height:10px;border-radius:3px;flex:none;display:inline-block}
.viz-plot{position:relative;z-index:1;height:240px;margin-top:6px;padding:22px 0 26px 46px}
.viz-grid{position:absolute;left:46px;right:0;top:22px;bottom:26px}
.viz-line{position:absolute;left:0;right:0;height:0;border-top:1px solid var(--line3)}
.viz-line span{position:absolute;right:calc(100% + 8px);top:-8px;font-size:11px;line-height:16px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.viz-cols{position:relative;height:100%;display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr))}
.viz-col{position:relative;height:100%;padding:0;border:0;background:transparent;display:flex;align-items:flex-end;justify-content:center;cursor:default;font:inherit;color:inherit;border-radius:6px 6px 0 0;min-width:0}
/* 1.20.15: no box around the chosen column — its bar is a little darker (and today's no longer faded) */
.viz-col.is-on .viz-stack{opacity:1;filter:saturate(1.2) brightness(.88)}
/* the chart popup (Dashboard + shared chart): inside the plot, placed by nxPopPlace(), two short lines at most */
.chart-pop{position:absolute;left:0;top:0;z-index:6;width:max-content;max-width:min(270px,100%);padding:7px 10px;border-radius:10px;background:var(--card);border:1px solid var(--line2);box-shadow:var(--sh-pop);font-size:12.5px;line-height:1.45;color:var(--ink2);text-align:left;pointer-events:none;font-variant-numeric:tabular-nums}
.chart-pop b{color:var(--ink);font-weight:700}
.chart-pop-2{display:block;color:var(--muted);white-space:nowrap}
.chart-pop.is-off{visibility:hidden}
.viz-bar{position:relative;width:min(28px,70%);min-height:0;display:block;transition:height .25s var(--ease)}
.viz-stack{position:absolute;inset:0;display:flex;flex-direction:column-reverse;gap:2px;border-radius:4px 4px 0 0;overflow:hidden}
.viz-stack i{display:block;min-height:2px;flex-basis:0}
.viz-col.is-today .viz-stack{opacity:.5}
/* long range: line + soft area; the columns stay as the hover targets, with a dot on the line */
.viz-area{position:absolute;left:46px;right:0;top:22px;bottom:26px;width:calc(100% - 46px);height:calc(100% - 48px);overflow:visible;pointer-events:none}
.viz-area-fill{fill:var(--viz-1);opacity:.12}.viz-area-line{fill:none;stroke:var(--viz-1);stroke-width:2;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.viz-cols.is-area .viz-stack{display:none}.viz-cols.is-area .viz-bar{width:0}
.viz-cols.is-area .viz-col.is-on .viz-bar::after{content:"";position:absolute;left:-6px;top:-6px;width:8px;height:8px;border-radius:50%;background:var(--viz-1);border:2px solid var(--card)}
.viz-cols.is-area .viz-col.is-on::before{content:"";position:absolute;left:50%;top:0;bottom:0;width:1px;background:var(--line2)}

.viz-peak{position:absolute;bottom:calc(100% + 3px);left:50%;transform:translateX(-50%);font-size:11px;font-weight:700;color:var(--ink);white-space:nowrap;font-variant-numeric:tabular-nums}
.viz-x{position:absolute;top:calc(100% + 6px);left:50%;transform:translateX(-50%);font-size:11px;color:var(--muted);white-space:nowrap;visibility:hidden}
.viz-x.kw{visibility:visible}.viz-col.is-today .viz-x{color:var(--ink);font-weight:700}





.viz-key{width:10px;height:3px;border-radius:2px;flex:none;display:inline-block}
@media (max-width:640px){
  .viz-plot{height:220px;padding-left:40px}.viz-grid{left:40px}.viz-area{left:40px;width:calc(100% - 40px)}
  .viz-x.kw{visibility:hidden}.viz-x.kn{visibility:visible}
  .viz-total b{display:block;font-size:24px}
}
@media (prefers-reduced-motion:reduce){.viz-bar{transition:none}}

.rank{display:grid;gap:5px}
.rank-h{display:flex;align-items:baseline;gap:8px;font-size:13.5px}
.rank-n{width:20px;height:20px;border-radius:50%;background:var(--well);color:var(--ink2);font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;flex:none;align-self:center}
.rank-t{flex:1;min-width:0;font-weight:600;overflow-wrap:anywhere}
.rank-v{font-variant-numeric:tabular-nums;white-space:nowrap}
.rank-sub{list-style:none;margin:2px 0 0;padding:8px 10px;border-radius:10px;background:var(--well);display:grid;gap:4px;font-size:12.5px}
.rank-sub li{display:flex;justify-content:space-between;gap:10px}.rank-sub li span:last-child{color:var(--muted);white-space:nowrap}

/* ---- sidebar: pages with sections (submenu instead of a tab bar on the page) ---- */
.side-nav{display:flex;flex-direction:column;gap:4px;margin-top:6px} /* a flat list: the same gap between every item, no group headings */
.side .item-row{display:flex;align-items:stretch;gap:2px}
.side .item-row a.item{flex:1;min-width:0}
.side-tog{width:34px;flex:none;border:0;border-radius:10px;background:transparent;color:var(--side-muted);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background-color .2s var(--ease),color .2s var(--ease)}
.side-tog:hover{background:var(--soft);color:var(--ink)}
.side-tog:focus-visible,.side .sub-item:focus-visible,.side-collapse:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
.side-tog svg{transition:transform .25s var(--ease)}.side-tog svg.is-open{transform:rotate(90deg)}
.side .sub{display:flex;flex-direction:column;gap:1px;margin:2px 0 6px 20px;padding-left:10px;border-left:1.5px solid var(--line2)}
.side .sub-item{display:block;padding:7px 10px;border-radius:9px;color:var(--side-ink);font-size:13px;font-weight:500;line-height:1.3;transition:background-color .2s var(--ease),color .2s var(--ease)}
.side .sub-item:hover{background:var(--soft);color:var(--ink)}
.side .sub-item.on{background:var(--tint);color:var(--tint-ink);font-weight:700}
.side-collapse{align-self:flex-end;border:0;background:transparent;color:var(--side-muted);font:600 11.5px var(--font);cursor:pointer;padding:2px 8px;border-radius:8px}
.side-collapse:hover{color:var(--ink);background:var(--soft)}
.crumb{font-size:12.5px;color:var(--muted);font-weight:600;margin-bottom:2px}
@media (max-width:640px){.side .sub-item{padding:10px 12px;font-size:14px}.side-tog{width:44px}}
@media (prefers-reduced-motion:reduce){.side-tog svg{transition:none}}

/* ---- the bell (top bar) and the notification list ---- */
.bell{position:relative;display:flex}
.bell-btn{position:relative;width:40px;height:40px;border:0;border-radius:50%;background:transparent;color:var(--ink2);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background-color .2s var(--ease),transform .15s var(--ease)}
.bell-btn:hover,.bell-btn[aria-expanded="true"]{background:var(--soft);color:var(--ink)}.bell-btn:active{transform:scale(.95)}
.bell-btn:focus-visible,.notice:focus-visible,.bell-all:focus-visible{outline:2px solid var(--cobalt);outline-offset:2px}
.bell-count{position:absolute;top:2px;right:0;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--danger);color:#fff;font:700 10.5px/18px var(--font);text-align:center;box-shadow:0 0 0 2px var(--card)}
.bell-pop{position:absolute;right:0;top:48px;z-index:45;width:380px;max-width:calc(100vw - 24px);padding:0;display:flex;flex-direction:column;box-shadow:var(--sh-pop);overflow:hidden}
.bell-head{display:flex;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid var(--line3)}.bell-head b{flex:1;font-size:14.5px}
.bell-x{display:none}
.bell-list{max-height:min(60vh,440px);overflow-y:auto;display:flex;flex-direction:column}
.bell-list.is-page{max-height:none}
.notice{display:flex;align-items:flex-start;gap:10px;width:100%;padding:11px 14px;border:0;border-bottom:1px solid var(--line3);background:transparent;color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:background-color .2s var(--ease)}
.notice:hover{background:var(--soft)}.notice.is-new{background:color-mix(in srgb,var(--tint) 45%,transparent)}
.notice-i{width:30px;height:30px;border-radius:10px;flex:none;display:inline-flex;align-items:center;justify-content:center;background:var(--well);color:var(--ink2)}
.notice-i.tone-good{background:var(--ok-bg);color:var(--emerald-ink)}.notice-i.tone-warn{background:var(--amber-bg);color:var(--amber)}.notice-i.tone-bad{background:var(--rose-bg);color:var(--rose)}.notice-i.tone-info{background:var(--tint);color:var(--tint-ink)}
.notice-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.notice-t b{font-size:13.5px;font-weight:600;overflow-wrap:anywhere}.notice.is-new .notice-t b{font-weight:800}
.notice-t span{font-size:12.5px;color:var(--ink2);overflow-wrap:anywhere}.notice-t small{font-size:11.5px;color:var(--muted)}
.notice-dot{width:8px;height:8px;border-radius:50%;background:var(--cobalt);flex:none;margin-top:6px}
.bell-all{display:block;padding:11px 14px;text-align:center;font-weight:700;font-size:13px}
@media (max-width:640px){
  .bell-pop{position:fixed;left:0;right:0;bottom:0;top:auto;width:100%;max-width:none;z-index:59;border-radius:22px 22px 0 0!important;border-bottom:0;transform:none!important;padding-bottom:env(safe-area-inset-bottom)}
  .bell-x{display:inline-flex}.bell-list{max-height:62dvh}.notice{padding:13px 14px}
  /* 1.19.29: the close button is a whole 44 px target inside the header's 16 px padding, centred on the title */
  .bell-head{min-height:60px;padding:8px 16px;gap:10px}
  .bell-x{width:44px;height:44px;flex:none;align-items:center;justify-content:center;margin:0;padding:0;box-sizing:border-box}
}

/* the confirm dialog (nxConfirm in nexmora.js): hidden until asked, above drawers and modals */
/* The confirm question of every data-confirm button (nxConfirm in nexmora.js): a layer over the whole screen,
   on <body>, above everything, the box in the middle — on a phone too */
.nx-ask{position:fixed;inset:0;z-index:2147483000;align-items:center;justify-content:center;padding:16px}
.nx-ask[hidden],.nx-ask .db[hidden]{display:none}
.nx-ask .modal,html[data-theme] .nx-ask .modal{margin:auto;width:100%;max-width:420px;max-height:calc(100dvh - 32px);border-radius:18px}
.nx-ask .dh{border-bottom:0}
.nx-ask .dh h2{font-size:17px;line-height:1.35}
.nx-ask .db{padding-top:0}
.nx-ask .db p{line-height:1.55;color:var(--ink2)}
.nx-ask .df{justify-content:flex-end;flex-direction:row-reverse}
html.nx-noscroll,html.nx-noscroll body,html:has(.nx-confirm-back),html:has(.nx-confirm-back) body{overflow:hidden}
/* progress of a queued job on a card */
.job-bar{display:flex;flex-direction:column;gap:6px}
.job-bar .bar>span{transition:width .4s var(--ease)}
@media (prefers-reduced-motion:reduce){.job-bar .bar>span{transition:none}}

/* version under the sidebar (click = What's new) */
.side-foot{margin-top:auto;padding:14px 4px 0;position:relative;z-index:1}
.side-ver{display:inline-flex;align-items:center;gap:7px;border:0;background:none;padding:6px 8px;border-radius:9px;font:500 11.5px var(--font);color:var(--muted);cursor:pointer;text-align:left}
.side-ver:hover{background:var(--tint);color:var(--ink2)}
.side-ver:focus-visible{outline:2px solid var(--cobalt);outline-offset:2px}
.side-ver-dot{width:8px;height:8px;border-radius:50%;background:var(--cobalt);flex:none;box-shadow:0 0 0 3px var(--tint)}

/* ---- Live Office (public/js/office.js): an isometric room in SVG, coloured by these tokens ---- */
html[data-theme]{--of-floor:#EEF2FF;--of-grid:#DCE3FA;--of-rug:#E2E8FF;--of-wall-a:#FAFBFF;--of-wall-b:#F1F4FF;--of-window:#D6E6FF;
  --of-desk-t:#FFFFFF;--of-desk-l:#D9DFF5;--of-desk-r:#C7CFEC;--of-chair:#8E99C4;--of-screen:#2B3160;--of-body:#5B6BD6;--of-head:#FFE1C4;--of-ink:#1E2340;
  --of-leaf:#3FA47A;--of-leaf2:#2F8A64;--of-pot:#C98F5A;--of-board:#232A55;--of-board-ink:#FFFFFF;--of-board-dim:#B9C2F0}
html[data-theme="dark"]{--of-floor:#1E2440;--of-grid:#283055;--of-rug:#252C50;--of-wall-a:#232949;--of-wall-b:#1C2240;--of-window:#2F4476;
  --of-desk-t:#3A4270;--of-desk-l:#2C3359;--of-desk-r:#252B4D;--of-chair:#5A6392;--of-screen:#0F1326;--of-body:#7F8CF0;--of-head:#F2CBA6;--of-ink:#EEF1FF;
  --of-leaf:#3FA47A;--of-leaf2:#2F8A64;--of-pot:#8E6A45;--of-board:#0F1326;--of-board-ink:#FFFFFF;--of-board-dim:#9AA4D8}
.office{display:flex;gap:16px;align-items:flex-start}
.office-room{position:relative;flex:1;min-width:0;border-radius:20px;background:var(--card);border:1px solid var(--line);overflow:hidden;box-shadow:var(--sh-card,none)}
.office-stage{line-height:0}
.of-svg{display:block;width:100%;height:auto;max-height:calc(100dvh - 210px)}
.office-fx{position:absolute;inset:0;pointer-events:none}
.office:fullscreen{background:var(--bg);padding:16px;align-items:stretch}
.office:fullscreen .of-svg{max-height:calc(100dvh - 40px)}
.office-demo{position:absolute;left:14px;top:14px;display:none}
.is-demo .office-demo{display:inline-flex}
.office-empty{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);max-width:min(420px,90%);padding:14px 16px;border-radius:14px;background:var(--card);border:1px solid var(--line2);box-shadow:var(--sh-pop);text-align:center}
.office-empty[hidden],.office-panel[hidden]{display:none}
.office-panel{flex:none;width:260px}
.office-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0}
.office-stats div{padding:10px 12px;border-radius:12px;background:var(--card2)}
.office-stats dt{font-size:11.5px;color:var(--muted)}
.office-stats dd{margin:2px 0 0;font:800 17px var(--font-head);color:var(--ink)}
.of-floor{fill:var(--of-floor)}.of-grid{fill:none;stroke:var(--of-grid);stroke-width:1}.of-rug{fill:var(--of-rug)}
.of-wall-a{fill:var(--of-wall-a)}.of-wall-b{fill:var(--of-wall-b)}.of-window{fill:var(--of-window)}
.of-desk.of-t{fill:var(--of-desk-t)}.of-desk.of-l{fill:var(--of-desk-l)}.of-desk.of-r{fill:var(--of-desk-r)}
.of-chair.of-t,.of-chair.of-l,.of-chair.of-r{fill:var(--of-chair)}.of-chair.of-r{opacity:.85}
.of-screen.of-t,.of-screen.of-r{fill:var(--of-screen)}.of-screen.of-l{fill:var(--g1)}
.of-mug.of-t,.of-mug.of-l,.of-mug.of-r{fill:var(--g2)}.of-paper.of-t{fill:var(--of-desk-t)}.of-paper.of-l,.of-paper.of-r{fill:var(--of-desk-l)}
.of-pot.of-t,.of-pot.of-l,.of-pot.of-r{fill:var(--of-pot)}.of-pot.of-r{opacity:.8}.of-leaf{fill:var(--of-leaf)}.of-leaf2{fill:var(--of-leaf2)}
.of-body{fill:var(--of-body)}.of-leader .of-body{fill:var(--g2-ink,var(--g2))}.of-head{fill:var(--of-head)}
.of-initials{font:800 10px var(--font);fill:var(--of-ink)}
.of-dot{fill:#22B573;stroke:var(--of-desk-t);stroke-width:2}.of-busy .of-dot{fill:#E8A23A}.of-away .of-dot{fill:#9AA3B8}.of-offline .of-dot{fill:#C9CEDB}
.of-desk-g{cursor:pointer;outline:none}
.of-desk-g:hover .of-desk.of-t,.of-desk-g:focus-visible .of-desk.of-t,.of-desk-g.is-on .of-desk.of-t{stroke:var(--cobalt);stroke-width:2.5}
.of-person{animation:of-breathe 3.6s ease-in-out infinite;transform-box:fill-box;transform-origin:50% 100%}
.of-away .of-person,.of-offline .of-person{animation:none}
@keyframes of-breathe{50%{transform:translateY(-1.5px)}}
.of-board{cursor:pointer;outline:none}.of-board-bg{fill:var(--of-board)}.of-board:hover .of-board-bg,.of-board:focus-visible .of-board-bg{stroke:var(--g1);stroke-width:2}
.of-board-h{font:800 10px var(--font);letter-spacing:.14em;fill:var(--of-board-dim)}.of-board-n{font:800 15px var(--font-head);fill:var(--of-board-ink)}.of-board-l{font:600 9.5px var(--font);fill:var(--of-board-dim)}
.of-tag{position:absolute;transform:translate(-50%,4px);display:inline-flex;align-items:center;gap:6px;padding:3px 5px 3px 9px;border-radius:999px;background:var(--card);border:1px solid var(--line2);font:700 12px var(--font);color:var(--ink);white-space:nowrap;box-shadow:0 2px 8px rgba(20,24,60,.08)}
.of-tag.is-leader{border-color:var(--cobalt)}.of-tag.is-inbox{background:var(--tint)}
.of-count{min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--grad-ink);color:#fff;font:800 11px/20px var(--font);text-align:center;display:inline-block}
.of-fly{position:absolute;transform:translate(-50%,-50%);padding:5px 10px;border-radius:10px;background:var(--card);border:1.5px solid var(--cobalt);color:var(--ink);font:700 12px var(--font);white-space:nowrap;box-shadow:0 8px 20px rgba(20,24,60,.18)}
.of-fly.is-money{border:0;background:#0E7A55;color:#fff;font-weight:800;font-size:13px}
.of-bubble{position:absolute;transform:translate(-50%,-100%);padding:6px 10px;border-radius:12px 12px 12px 3px;background:var(--card);border:1px solid var(--line2);font:600 12px var(--font);color:var(--ink);white-space:nowrap;box-shadow:0 6px 16px rgba(20,24,60,.14);display:inline-flex;gap:4px;align-items:center;animation:of-pop .25s var(--ease)}
.of-bubble i{width:6px;height:6px;border-radius:50%;background:var(--muted);animation:of-type 1s infinite}.of-bubble i:nth-child(2){animation-delay:.15s}.of-bubble i:nth-child(3){animation-delay:.3s}
@keyframes of-type{0%,60%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
@keyframes of-pop{from{opacity:0;transform:translate(-50%,-80%) scale(.8)}}
.of-confetti{position:absolute;width:8px;height:8px;border-radius:2px;transform:translate(-50%,-50%)}
.of-confetti.c0{background:var(--g1)}.of-confetti.c1{background:var(--g2)}.of-confetti.c2{background:#F2B33D}.of-confetti.c3{background:#22B573}
@media (prefers-reduced-motion:reduce){.of-person,.of-bubble,.of-bubble i{animation:none}}
@media (max-width:900px){.office{flex-direction:column}.office-panel{width:100%}.of-tag{font-size:10.5px;padding:2px 4px 2px 7px}.of-count{min-width:17px;height:17px;line-height:17px;font-size:10px}.of-svg{max-height:none}}

/* workflow builder: steps can be dragged with a mouse, a pen or a finger */
.wf-canvas{touch-action:none;cursor:grab}.wf-canvas.is-panning{cursor:grabbing}
.wf-step{cursor:pointer;touch-action:none;transition:box-shadow .15s var(--ease)}.wf-step:hover{box-shadow:0 8px 22px rgba(14,20,36,.12) !important}
.wf-step.is-dragging{cursor:grabbing;box-shadow:0 16px 36px rgba(14,20,36,.22) !important}

/* the address of a form, as buyers see it */
.slug-box{display:flex;align-items:center;border:1px solid var(--line2);border-radius:12px;background:var(--card);overflow:hidden;min-height:44px}
.slug-box:focus-within{border-color:var(--cobalt);box-shadow:0 0 0 3px var(--tint)}
.slug-pre{padding:0 2px 0 12px;color:var(--muted);font-size:14px;white-space:nowrap}
.slug-in{flex:1;min-width:60px;border:0;outline:0;background:transparent;font:600 14px var(--font);color:var(--ink);padding:10px 4px}
.slug-copy{margin-right:6px}
@media (max-width:640px){.slug-pre{font-size:12.5px;padding-left:10px}}

/* ---- product list of the form editor: one calm card per product (Edit opens the panel) ---- */
.pcards{list-style:none;margin:0;padding:12px 16px 4px;display:flex;flex-direction:column;gap:10px}
.pcard{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--card);transition:box-shadow .15s var(--ease),border-color .15s var(--ease)}
.pcard:hover{border-color:var(--line2);box-shadow:0 4px 14px rgba(14,20,36,.06)}
.pcard.is-off{opacity:.62}
.pcard.is-sorting,.orow.is-sorting{box-shadow:0 14px 30px rgba(14,20,36,.18);border-color:var(--cobalt);position:relative;z-index:2}
.is-sorting-list{user-select:none}
.pcard-grip{flex:none;width:28px;height:36px;border:0;border-radius:8px;background:transparent;color:var(--muted);display:inline-flex;align-items:center;justify-content:center;cursor:grab;touch-action:none;opacity:.45;transition:opacity .15s,background-color .15s}
.pcard:hover .pcard-grip,.orow:hover .pcard-grip,.pcard-grip:focus-visible{opacity:1;background:var(--tint)}
.pcard-grip svg{stroke-width:3}
.pcard-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.pcard-top{display:flex;align-items:center;gap:8px;min-width:0}
.pcard-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px}
.pcard-meta{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:12.5px;color:var(--ink2)}
.pcard-price{flex:none;display:flex;flex-direction:column;align-items:flex-end;line-height:1.2}
.pcard-price b{font:800 16px var(--font-head)}.pcard-price s{font-size:12px;color:var(--muted)}
.pcard-more{position:relative;flex:none}
.menu-pop{position:absolute;right:0;top:36px;z-index:20;min-width:190px;padding:6px;display:flex;flex-direction:column;gap:2px;box-shadow:var(--sh-pop)}
.menu-pop button,.menu-pop a{border:0;background:transparent;text-align:left;padding:9px 10px;border-radius:8px;font:500 13.5px var(--font);color:var(--ink);cursor:pointer}
.menu-pop button:hover,.menu-pop a:hover,.menu-pop button:focus-visible{background:var(--tint)}
.menu-pop .danger{color:var(--rose)}
/* Automations list: one calm row per workflow */
.chips{display:flex;flex-wrap:wrap;gap:4px;max-width:220px}
.chip{display:inline-block;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:3px 9px;border-radius:999px;background:var(--tint);border:1px solid var(--line2);font:600 12px var(--font);color:var(--ink2)}
.chip-bad{background:var(--rose-bg);border-color:var(--rose-line);color:var(--rose)}
.auto-name{max-width:240px}.auto-name .truncate{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink)}
.auto-acts{justify-content:flex-end;flex-wrap:nowrap;gap:6px}
.flash.row{display:flex;align-items:center;gap:10px}
@media (max-width:640px){
  .pcards{padding:10px 10px 2px}
  .pcard{flex-wrap:wrap;gap:8px 10px;padding:12px}
  .pcard-main{flex:1 1 calc(100% - 120px)}
  .pcard-price{order:3;margin-left:auto}
  .pcard-grip{opacity:.8}
}
/* the product panel */
.ppanel{max-width:880px}
.ppanel-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ppanel-tabs{margin:0 22px;align-self:flex-start;max-width:calc(100% - 44px)}
.ppanel-dirty{color:#9A6A00;font-weight:700}
html[data-theme="dark"] .ppanel-dirty{color:#F2C46B}
.ppanel-split{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}
.ppanel-more summary{cursor:pointer;font-weight:700;font-size:13.5px;color:var(--link);list-style:none}
.ppanel-more summary::before{content:"▸ "}.ppanel-more[open] summary::before{content:"▾ "}
.olist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.orow{border:1px solid var(--line);border-radius:12px;padding:8px 10px;background:var(--card);display:flex;flex-direction:column;gap:6px}
.orow-line{display:flex;align-items:center;gap:8px}
.orow-line>.input{flex:1;min-width:0}
.orow-price{flex:none !important;width:96px}
.orow-more{display:flex;flex-direction:column;gap:10px;padding:6px 0 4px 36px}
.link-row{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr) 68px;gap:8px;align-items:center}
.link-acts{justify-content:flex-end}
.link-acts{display:flex;gap:2px}
.codebox{display:flex;align-items:flex-start;gap:8px;padding:10px 12px;border:1px solid var(--line2);border-radius:12px;background:var(--card2)}
.codebox code{flex:1;min-width:0;font-size:12.5px;line-height:1.5;word-break:break-all;white-space:pre-wrap}
.pprev{position:sticky;top:0}
.pprev-card{border:2px solid var(--cobalt);border-radius:16px;background:#fff;color:#0E1424;box-shadow:0 0 0 4px var(--tint);overflow:hidden}
.pprev-head{display:flex;gap:10px;padding:12px;align-items:flex-start}
.pprev-dot{width:16px;height:16px;border-radius:50%;border:5px solid var(--cobalt);flex:none;margin-top:3px}
.pprev-img{width:40px;height:40px;border-radius:10px;object-fit:cover;flex:none}
.pprev-ban{display:flex;align-items:center;justify-content:center;max-height:180px;background:#F8FAFC;overflow:hidden}.pprev-ban img{display:block;width:100%;max-height:180px;object-fit:contain}
.pprev-head2{flex-direction:column;align-items:stretch;gap:6px}.pprev-row{display:flex;align-items:center;gap:8px}.pprev-row .pprev-dot{margin-top:0}.pprev-row .pprev-badge{margin-bottom:0}.pprev-row .pprev-price{margin-left:auto}
.pprev-feat2{padding-left:12px}
.pprev-badge{display:inline-block;padding:2px 8px;border-radius:999px;background:#FFF1CC;color:#7A4B00;font:800 10px var(--font);text-transform:uppercase;margin-bottom:3px}
.pprev-name{display:block;font:800 15px/1.25 var(--font-head)}
.pprev-price{flex:none;text-align:right;display:flex;flex-direction:column}.pprev-price b{font:800 18px var(--font-head);color:var(--cobalt)}.pprev-price s{font-size:11.5px;color:#6B7385}
.pprev-feat{list-style:none;margin:0;padding:0 12px 10px 38px;font-size:12.5px;display:grid;gap:3px}.pprev-feat li::before{content:"✓ ";color:#0E7A55;font-weight:800}
.pprev-opts{padding:10px 12px 12px;border-top:1px dashed #D8DCE6;display:flex;flex-direction:column;gap:6px}
.pprev-chip{padding:6px 10px;border-radius:9px;border:1.5px solid #D8DCE6;font-size:12px;font-weight:600}
@media (max-width:900px){.ppanel-split{grid-template-columns:1fr}.pprev{position:static}}
@media (max-width:640px){
  .ppanel{max-width:none}
  .link-row{grid-template-columns:1fr 68px}.link-row input:first-child{grid-column:1/-1}
  .orow-more{padding-left:0}
  .orow-price{width:76px}
}

/* Automations → New automation: template gallery */
html[data-theme] .tpl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:12px}
html[data-theme] .tpl-card{display:flex;flex-direction:column;gap:10px;min-width:0;text-align:left;transition:border-color .15s var(--ease),transform .15s var(--ease)}
html[data-theme] .tpl-card:hover{border-color:var(--cobalt)}
html[data-theme] .tpl-desc{line-height:1.5;flex:1}
html[data-theme] .tpl-steps{gap:6px;flex-wrap:wrap;align-items:center}
html[data-theme] .tpl-step{width:28px;height:28px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;font:800 10.5px var(--font)}
html[data-theme] .tpl-scratch{cursor:pointer;border-style:dashed;align-items:flex-start}
html[data-theme] .tpl-plus{width:40px;height:40px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:var(--tint);color:var(--tint-ink)}

/* 2-step code page (layouts/card) and the "Confirm it's you" modal (livewire/security-confirm) */
html[data-theme] body.nx-cardpage{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:16px;background:var(--bg)}
html[data-theme] .nx-mini{width:min(380px,100%);padding:22px 22px 18px;border-radius:18px}
html[data-theme] .nx-mini .code-input,html[data-theme] .nx-confirm .code-input{height:52px;border-radius:14px;font-size:22px;letter-spacing:.45em}
html[data-theme] .linkbtn{background:none;border:0;padding:0;font:inherit;color:var(--link);cursor:pointer;text-decoration:underline;text-underline-offset:2px}
html[data-theme] .nx-confirm{width:min(380px,calc(100vw - 32px));padding:20px;border-radius:18px;box-shadow:var(--shadow-lg,0 20px 50px rgba(15,23,42,.25))}
html[data-theme] .nx-confirm-back{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(15,20,40,.45)}
/* Row actions: icon-only buttons (x-icon-btn) and the ⋯ menu (x-row-menu) — the same in every list */
html[data-theme] .acts{display:flex;align-items:center;justify-content:flex-end;gap:2px;flex-wrap:nowrap}
html[data-theme] .ibtn{position:relative;width:36px;height:36px;flex:none;display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:10px;background:transparent;color:var(--ink2);cursor:pointer;text-decoration:none;transition:background .15s var(--ease),color .15s var(--ease)}
html[data-theme] .ibtn:hover{background:var(--tint);color:var(--ink)}
html[data-theme] .ibtn:focus-visible{outline:2px solid var(--cobalt);outline-offset:1px}
html[data-theme] .ibtn.danger{color:var(--rose)}
html[data-theme] .ibtn.danger:hover{background:var(--rose-bg)}
html[data-theme] .ibtn[data-tip]:hover::after,html[data-theme] .ibtn[data-tip]:focus-visible::after,html[data-theme] .ibtn.tip-on::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);padding:4px 8px;border-radius:7px;background:var(--ink);color:var(--card);font:600 11.5px/1.3 var(--font);white-space:nowrap;pointer-events:none;z-index:40}
html[data-theme] .menu-pop a,html[data-theme] .menu-pop button{display:flex;align-items:center;gap:9px;text-decoration:none}
html[data-theme] .menu-pop svg{flex:none;color:var(--ink3,var(--ink2))}
html[data-theme] .menu-pop .danger svg{color:var(--rose)}
html[data-theme] .menu-pop .m-only{display:none}
@media (max-width:640px){
  html[data-theme] .acts .ibtn:not(.keep){display:none}
  html[data-theme] .menu-pop .m-only{display:flex}
}
html[data-theme] .m-only-menu{display:none}
@media (max-width:640px){html[data-theme] .m-only-menu{display:block}}
html[data-theme] .ibtn.hot{background:var(--grad-ink);color:#fff}html[data-theme] .ibtn.hot:hover{color:#fff;filter:brightness(1.06)}

/* "Buyers can pay with" (partials/pay-logos) */
html[data-theme] .paylogos{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:6px}
html[data-theme] .paylogo{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 10px;border-radius:8px;border:1px solid var(--line2,#E3E8F2);background:#fff;font:600 12px var(--font,inherit);color:var(--ink2,#475069)}
html[data-theme] .paylogo.is-logo{padding:0 8px}
html[data-theme] .paylogo img{display:block;height:20px;width:auto;filter:none}
html[data-theme] .paylogos.muted{justify-content:center;margin-top:10px;gap:6px}
html[data-theme] .paylogos.muted .paylogo{height:28px;padding:0 7px;font-size:11px}
html[data-theme] .paylogos.muted .paylogo:not(.is-logo){color:var(--muted,#6B7280);background:transparent}
html[data-theme] .paylogos.muted .paylogo img{height:18px}

/* Edit form → Basic information: two columns, the cover image on the right (one column on a phone, the cover after the link) */
html[data-theme] .basic-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);grid-template-areas:"a c" "b c";gap:16px 20px;align-items:start}
html[data-theme] .basic-grid .bg-a{grid-area:a}html[data-theme] .basic-grid .bg-b{grid-area:b}html[data-theme] .basic-grid .bg-c{grid-area:c}
@media (max-width:760px){html[data-theme] .basic-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"a" "c" "b"}}
html[data-theme] .dropzone{position:relative;display:flex;align-items:center;justify-content:center;min-height:190px;border:1.5px dashed var(--line2);border-radius:14px;background:var(--well);overflow:hidden;transition:border-color .15s var(--ease),background .15s var(--ease)}
html[data-theme] .dropzone.over,html[data-theme] .dropzone:hover{border-color:var(--cobalt);background:var(--tint)}
html[data-theme] .dropzone.has{border-style:solid;background:var(--card2)}
html[data-theme] .dropzone img{display:block;width:100%;max-height:320px;object-fit:contain}
html[data-theme] .dropzone input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer}
html[data-theme] .dz-empty{display:flex;flex-direction:column;align-items:center;gap:4px;color:var(--ink2);text-align:center;padding:16px}
html[data-theme] .dz-busy{position:absolute;bottom:8px;left:0;right:0;text-align:center}
html[data-theme] textarea.autogrow{resize:vertical;min-height:84px;overflow:hidden}

/* Orders row actions (1.11.0): Confirm paid, Follow Up; a phone number with its WhatsApp icon (x-wa-phone) */
html[data-theme] .ibtn.ok{color:var(--emerald-ink)}html[data-theme] .ibtn.ok:hover{background:var(--ok-bg);color:var(--emerald-ink)}
html[data-theme] .acts .fu-btn{gap:6px;margin-right:4px;color:var(--amber);border-color:var(--amber);background:var(--amber-bg);white-space:nowrap}
@media (max-width:640px){html[data-theme] .acts .fu-btn{display:none}}
html[data-theme] .wa-phone{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
html[data-theme] .wa-link{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin:-4px 0;border-radius:7px;color:var(--emerald-ink);text-decoration:none}
html[data-theme] .wa-link:hover{background:var(--ok-bg)}html[data-theme] .wa-link:focus-visible{outline:2px solid var(--cobalt);outline-offset:1px}
html[data-theme] .card.is-editing{box-shadow:0 0 0 2px var(--cobalt)}

/* Settings → Change password, folded under Security (1.13.0) */
html[data-theme] details.fold>summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none}
html[data-theme] details.fold>summary::-webkit-details-marker{display:none}
html[data-theme] details.fold>summary svg{transition:transform .2s var(--ease);color:var(--ink2)}
html[data-theme] details.fold[open]>summary svg{transform:rotate(180deg)}

/* every button sinks when pressed (1.14.0) */
html[data-theme] .btn:active{transform:scale(.97);box-shadow:var(--sh-btn-a);transition-duration:.1s}
@media (prefers-reduced-motion:reduce){html[data-theme] .btn:active{transform:none}.btn.is-done .btn-ok{animation:none}}

/* Meta Ads → Ads → Projects (1.15.0) */
html[data-theme] .pdot{display:inline-block;width:10px;height:10px;border-radius:50%;background:currentColor;flex:none}
html[data-theme] .ap-sum{display:flex;flex-wrap:wrap;gap:8px}
html[data-theme] .ap-chip{display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--card);font-size:13px}
html[data-theme] .ap-chip.is-off{color:var(--ink2)}
html[data-theme] .ap-row{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(200px,.9fr);gap:12px;align-items:center;padding:12px 16px;border-top:1px solid var(--line)}
html[data-theme] .fold .ap-row{padding:10px 0}
html[data-theme] .ap-who,html[data-theme] .ap-num{min-width:0}
html[data-theme] .ap-who b{overflow-wrap:anywhere}
html[data-theme] .ap-num{display:flex;flex-direction:column}
html[data-theme] .ap-id{background:none;border:0;padding:0;color:inherit;font-size:12px;cursor:copy}
html[data-theme] .ap-id:hover{color:var(--ink);text-decoration:underline}
html[data-theme] .ap-pick{display:flex;align-items:center;gap:8px;min-width:0}
html[data-theme] .ap-pick .input{flex:1;min-width:0}
html[data-theme] .ap-pick.is-off .input{color:var(--ink2)}
html[data-theme] .ap-add,html[data-theme] .ap-rule{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
html[data-theme] .ap-add .input{flex:1;min-width:180px}
html[data-theme] .ap-rule .input{flex:1;min-width:120px}
@media (max-width:640px){html[data-theme] .ap-row{grid-template-columns:1fr;gap:8px}html[data-theme] .ap-pick,html[data-theme] .ap-add .input,html[data-theme] .ap-rule .input{width:100%;flex-basis:100%}}

/* Meta Ads → Ads → Forms: the form picker (1.16.0) */
html[data-theme] .ap-forms{position:relative;display:flex;flex-direction:column;gap:6px;min-width:0}
html[data-theme] .fp-chips{display:flex;flex-wrap:wrap;gap:6px}
html[data-theme] .fp-chip{display:inline-flex;align-items:center;gap:4px;max-width:100%;padding:3px 6px 3px 10px;border-radius:999px;background:var(--tint);color:var(--tint-ink);font-size:12px;font-weight:600}
html[data-theme] .fp-chip span{overflow-wrap:anywhere}
html[data-theme] .fp-x{display:inline-flex;border:0;background:none;padding:2px;border-radius:50%;color:var(--ink2);cursor:pointer}
html[data-theme] .fp-x:hover{background:var(--card);color:var(--rose)}
html[data-theme] .fp-none{font-size:13px;color:var(--ink2)}
html[data-theme] .fp-list{position:absolute;z-index:30;top:100%;left:0;right:0;margin-top:4px;max-height:280px;overflow:auto;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px rgba(15,23,42,.16);padding:4px}
html[data-theme] .fp-opt{display:flex;flex-direction:column;align-items:flex-start;width:100%;text-align:left;border:0;background:none;padding:8px 10px;border-radius:8px;color:var(--ink);cursor:pointer;font:inherit;font-size:13px}
html[data-theme] .fp-opt small{color:var(--ink2);font-size:11px}
html[data-theme] .fp-opt:hover,html[data-theme] .fp-opt:focus-visible{background:var(--tint)}
html[data-theme] .fp-opt.on{font-weight:700}
html[data-theme] .fp-opt.on::after{content:'✓ chosen';font-size:11px;color:var(--link)}
/* Sales & analysis → By form: a form name is a button that filters the chart */
html[data-theme] .linkish{border:0;background:none;padding:0;font:inherit;color:var(--link);cursor:pointer;text-align:left;overflow-wrap:anywhere}
html[data-theme] .linkish:hover{text-decoration:underline}
html[data-theme] table.t tr.is-on td{background:var(--tint)}
/* a drawer with several body sections scrolls as one (Integrations → Meta) */
html[data-theme] .db-wrap{flex:1;min-height:0;overflow-y:auto}
html[data-theme] .db-wrap > .db{flex:none;overflow:visible}
/* .seg with links (Integrations → Messaging: WhatsApp · Email · SMS) */
html[data-theme] .seg a{display:inline-flex;align-items:center;height:32px;padding:0 12px;border-radius:7px;font:600 13px var(--font);color:var(--muted);text-decoration:none}
html[data-theme] .seg a:hover{color:var(--ink)}
html[data-theme] .seg a.on{background:var(--card);color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.12)}

/* 1.18.0: a header cell follows its column (the bare th rule was left-aligning "right" headers) */
html[data-theme] table.t th.right{text-align:right}
html[data-theme] table.t th.center,html[data-theme] table.t td.center{text-align:center}
html[data-theme] .flash.warn{background:var(--amber-bg);color:var(--amber)}
html[data-theme] .flash.warn a{color:inherit;text-decoration:underline}
/* Payment forms list: fixed widths for the short columns, everything on one middle line */
html[data-theme] table.forms-t td{vertical-align:middle}
html[data-theme] table.forms-t .c-type{width:110px}
html[data-theme] table.forms-t .c-gw{width:100px}
html[data-theme] table.forms-t .c-live{width:124px}
html[data-theme] table.forms-t .c-num{width:96px}
html[data-theme] table.forms-t .c-money{width:116px}
html[data-theme] table.forms-t .c-status{width:72px}
html[data-theme] table.forms-t .c-acts{width:168px}
html[data-theme] table.forms-t td.right,html[data-theme] table.forms-t td.center{white-space:nowrap}
html[data-theme] table.forms-t td:first-child{min-width:220px}
/* Sales & analysis → Sales report (1.18.0) */
html[data-theme] .sr-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px 12px;align-items:end}
html[data-theme] .sr-grid .field{margin:0;min-width:0}
html[data-theme] .sr-grid .sr-search,html[data-theme] .sr-grid .sr-range{grid-column:span 2}
html[data-theme] .sr-search .row{flex-wrap:nowrap}
html[data-theme] .sr-search .row .input{flex:1;min-width:0}
html[data-theme] .sr-range .dp,html[data-theme] .sr-range .dp-btn{width:100%;justify-content:space-between}
html[data-theme] .sr-cols{flex-basis:100%}
html[data-theme] .sr-colgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:6px 12px}
html[data-theme] .sr-hours{display:flex;align-items:flex-end;gap:2px;height:50px}
html[data-theme] .sr-hours span{flex:1;background:var(--viz-1, var(--cobalt));border-radius:2px 2px 0 0;min-width:2px}
html[data-theme] table.sr-table td{white-space:nowrap;max-width:320px;overflow:hidden;text-overflow:ellipsis}
@media (max-width:640px){html[data-theme] .sr-grid{grid-template-columns:1fr 1fr}html[data-theme] .sr-grid .sr-search,html[data-theme] .sr-grid .sr-range{grid-column:1/-1}html[data-theme] table.sr-table td{white-space:normal;max-width:none}}
html[data-theme] table.t td.right{white-space:nowrap}
/* Orders list like OnPay (1.19.0) */
html[data-theme] .ord-total{font-size:13px;color:var(--ink2);white-space:nowrap}
html[data-theme] .ord-more{border-top:1px solid var(--line3)}
html[data-theme] .ord-pages{padding-top:8px;padding-bottom:8px}
html[data-theme] .ord-allsel{margin:0 16px 8px}
html[data-theme] table.ord-t td{vertical-align:top}
html[data-theme] table.ord-t .ord-ck{width:36px;padding-right:0}
html[data-theme] table.ord-t .ord-ck input{width:16px;height:16px}
html[data-theme] table.ord-t .ic{display:flex;align-items:center;gap:4px}
html[data-theme] table.ord-t .linkish{font-size:inherit}
html[data-theme] .ord-pop{position:absolute;z-index:40;top:100%;left:0;min-width:240px;max-width:340px;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px rgba(15,23,42,.18);padding:10px 12px;display:flex;flex-direction:column;gap:6px;text-align:left}
html[data-theme] .st-big{font-size:12px;padding:5px 10px}
html[data-theme] .bulk{position:relative;display:inline-block;text-align:left}
html[data-theme] .bulk .btn[disabled]{opacity:.55;cursor:not-allowed}
html[data-theme] .bulk-menu{position:absolute;right:0;top:100%;margin-top:4px;z-index:40;min-width:210px;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px rgba(15,23,42,.18);padding:4px;display:flex;flex-direction:column}
html[data-theme] .bulk-menu button{border:0;background:none;text-align:left;padding:9px 12px;border-radius:8px;font:600 13px var(--font);color:var(--ink);cursor:pointer;white-space:nowrap}
html[data-theme] .bulk-menu button:hover{background:var(--tint)}
html[data-theme] .bulk-menu button.danger{color:var(--rose)}
html[data-theme] table.ord-t .m-only{display:none}
@media (max-width:640px){
  html[data-theme] .ord-msum{margin-top:6px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
}
html[data-theme] .ord-selbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 16px 10px}
/* Automations → "Send access links": how the links leave (1.19.1) */
html[data-theme] .wf-via{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
html[data-theme] .wf-via .badge{gap:4px}
html[data-theme] fieldset.wf-radio{border:0;margin:0;padding:0;min-width:0}
html[data-theme] fieldset.wf-radio legend{padding:0;margin-bottom:6px}
html[data-theme] fieldset.wf-radio input[type=radio]{accent-color:var(--cobalt);width:16px;height:16px}
/* "What's new": CHANGELOG.md drawn as Markdown (1.19.2) */
html[data-theme] .wn-md{line-height:1.6;margin-top:6px}
html[data-theme] .wn-md ul,html[data-theme] .wn-md ol{margin:0;padding-left:18px}
html[data-theme] .wn-md ul ul{margin-top:2px}
html[data-theme] .wn-md p{margin:0 0 4px}
html[data-theme] .wn-md strong{font-weight:700;color:var(--ink)}
html[data-theme] .wn-md code{font-family:var(--mono,ui-monospace,monospace);font-size:.92em;background:var(--well);padding:1px 5px;border-radius:5px;overflow-wrap:anywhere}
html[data-theme] .wn-md a{color:var(--link)}
/* App pictures (1.19.3): the official logo in a white rounded box, else a Phosphor icon on a tint — AppLogo */
html[data-theme] .app-logo{width:var(--s,32px);height:var(--s,32px);flex:none;border-radius:9px;background:#fff;border:1px solid var(--line2);display:inline-flex;align-items:center;justify-content:center;overflow:hidden}
html[data-theme] .app-logo img{width:68%;height:68%;object-fit:contain;display:block}
html[data-theme] .app-logo.is-icon{background:var(--tint);color:var(--tint-ink);border-color:transparent}
html[data-theme] .app-logo.is-icon svg{display:block}
html[data-theme] .app-logo.t-flow{background:var(--violet-bg);color:var(--violet)}
html[data-theme] .app-logo.t-sales{background:var(--amber-bg);color:var(--amber)}
html[data-theme] .app-logo.t-go{background:var(--ok-bg);color:var(--emerald-ink)}
/* Automations → Add action (like BCL's Add Node) */
html[data-theme] .wf-add-sec{font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:14px 0 8px}
html[data-theme] .wf-add-sec:first-child{margin-top:4px}
html[data-theme] .wf-act{display:flex;gap:12px;align-items:flex-start;text-align:left;cursor:pointer;width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--card);font:inherit;color:inherit;transition:border-color .15s var(--ease),box-shadow .15s var(--ease)}
html[data-theme] .wf-act:hover,html[data-theme] .wf-act:focus-visible{border-color:var(--cobalt);box-shadow:0 4px 14px rgba(14,20,36,.08)}
html[data-theme] .wf-act-b{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
html[data-theme] .wf-act-h{display:flex;align-items:center;gap:8px}
html[data-theme] .wf-act-h b{flex:1;min-width:0}
html[data-theme] .wf-dot{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:700;white-space:nowrap;color:var(--muted)}
html[data-theme] .wf-dot::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
html[data-theme] .wf-dot.on{color:var(--emerald-ink)}
html[data-theme] .wf-add .seg button .n{font-size:11px;font-weight:700;opacity:.7;margin-left:4px}
html[data-theme] .wf-conn{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
html[data-theme] .wf-conn span{flex:1;min-width:180px}
/* Error pages (1.19.7): errors/403, 404, 419, 500 — in the app layout or the small card */
html[data-theme] .err-page{display:flex;justify-content:center;padding-top:6vh}
html[data-theme] .err-card{max-width:520px;width:100%;text-align:center;padding:30px 26px;display:flex;flex-direction:column;align-items:center;gap:10px}
html[data-theme] .nx-mini .err-card{border:0;box-shadow:none;padding:12px 0 0}
html[data-theme] .err-card h1{font-size:22px;margin:0}
html[data-theme] .err-code{font:800 12px var(--font);letter-spacing:.12em;color:var(--muted);margin:0}
html[data-theme] .err-ic{width:64px;height:64px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center}
html[data-theme] .err-warn{background:var(--amber-bg);color:var(--amber)}
html[data-theme] .err-info{background:var(--tint);color:var(--tint-ink)}
html[data-theme] .err-bad{background:var(--rose-bg);color:var(--rose)}
html[data-theme] .err-acts{justify-content:center;gap:10px;flex-wrap:wrap;margin-top:6px}
/* Order status colours (1.19.8, Order::BADGES): Paid = solid green with white bold text — #15803D gives 5:1 with white (AA) */
html[data-theme]{--paid-bg:#15803D}
html[data-theme] .badge.b-paid{background:var(--paid-bg);color:#fff;font-weight:800}
/* x-wa-phone (1.19.16): the WhatsApp outline icon in WhatsApp green, no filled circle — 16 px (18 px on a phone)
   inside a 32 px transparent touch area. The negative margins keep the line height and show 6 px between the number
   and the icon; hover = a very soft green round + the "WhatsApp" tooltip. */
html[data-theme]{--wa:#25D366;--wa-soft:rgba(37,211,102,.1)}
html[data-theme] .wa-phone{display:inline-flex;align-items:center;gap:0;white-space:nowrap;vertical-align:middle}
html[data-theme] .wa-link{position:relative;flex:none;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;margin:-8px -8px -8px -2px;border-radius:50%;background:transparent;color:var(--wa);text-decoration:none;filter:none}
html[data-theme] .wa-link svg{width:16px;height:16px}
html[data-theme] .wa-link:hover,html[data-theme] .wa-link:focus-visible{background:var(--wa-soft);color:var(--wa)}
html[data-theme] .wa-link:focus-visible{outline:2px solid var(--cobalt);outline-offset:0}
html[data-theme] .wa-link[data-tip]:hover::after,html[data-theme] .wa-link[data-tip]:focus-visible::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 2px);left:50%;transform:translateX(-50%);padding:4px 8px;border-radius:7px;background:var(--ink);color:var(--card);font:600 11.5px/1.3 var(--font);white-space:nowrap;pointer-events:none;z-index:40}
html[data-theme] .ord-mhead{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
html[data-theme] .ord-mst{display:none}
@media (max-width:640px){
  html[data-theme] .wa-link{margin:-8px -7px -8px -1px}
  html[data-theme] .wa-link svg{width:18px;height:18px}
}
/* Staff → Members: invitation state and delivery log (1.19.9) */
html[data-theme] .inv-log summary{cursor:pointer;color:var(--link);margin-top:2px}
html[data-theme] .inv-log ul{margin:4px 0 0;padding-left:0;list-style:none;display:grid;gap:2px;color:var(--ink2)}
html[data-theme] .inv-log .bad{color:var(--rose);font-weight:700}
/* Staff invitation page (1.19.9, livewire/accept-invite) */
html[data-theme] .inv-steps{display:flex;gap:6px;flex-wrap:wrap;list-style:none;margin:0;padding:0}
html[data-theme] .inv-steps li{font-size:11.5px;font-weight:700;padding:4px 9px;border-radius:999px;background:var(--grey-bg);color:var(--ink2)}
html[data-theme] .inv-steps li.on{background:var(--tint);color:var(--tint-ink)}
html[data-theme] .inv-steps li.ok{background:var(--ok-bg);color:var(--emerald-ink)}
html[data-theme] .inv-qr{display:flex;justify-content:center;padding:12px;background:#fff;border-radius:12px;border:1px solid var(--line2)}
html[data-theme] .inv-qr svg{width:200px;height:200px}
html[data-theme] .inv-codes{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:12px;border-radius:12px;background:var(--well);font-size:13px}
/* Dashboard → "Pasang Nexmora sebagai app" (1.19.10, nxInstallCard) */
html[data-theme] .inst-card{display:flex;align-items:center;gap:14px;flex-wrap:wrap;border-color:var(--ring)}
html[data-theme] .inst-txt{flex:1;min-width:200px;display:flex;flex-direction:column;gap:2px}
html[data-theme] .inst-acts{gap:8px}
/* Orders summary cards + status tabs (1.19.14, like BCL Transactions) */
html[data-theme] .kpi-link{align-self:flex-start;background:none;border:0;padding:0;font:600 13px var(--font);color:var(--link);cursor:pointer;text-align:left}
html[data-theme] .kpi-link:hover{text-decoration:underline}
html[data-theme] .ord-tabs{padding-top:0;padding-bottom:8px}
html[data-theme] .ord-tn{margin-left:4px;font-weight:500;color:var(--muted);font-variant-numeric:tabular-nums}
html[data-theme] .seg .on .ord-tn{color:var(--ink)}

/* BCL.my account cards (1.19.20): title + badges, Import now + ⋯ menu, status in 3 columns, masked webhook */
html[data-theme] .bcl-card{padding:16px;display:flex;flex-direction:column;gap:12px}
html[data-theme] .bcl-head{display:flex;align-items:flex-start;gap:12px}
html[data-theme] .bcl-title{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
html[data-theme] .bcl-title h3{margin:0;font-size:16px;line-height:1.3;overflow-wrap:anywhere}
html[data-theme] .bcl-badges{display:flex;flex-wrap:wrap;gap:6px}
html[data-theme] .bcl-acts{display:flex;align-items:center;gap:6px;flex:none;position:relative}
html[data-theme] .bcl-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line3);border-radius:12px;overflow:hidden}
html[data-theme] .bcl-stats>div{display:flex;flex-direction:column;gap:3px;padding:10px 12px;min-width:0}
html[data-theme] .bcl-stats>div+div{border-left:1px solid var(--line3)}
html[data-theme] .bcl-stats span{font-size:11.5px;text-transform:uppercase;letter-spacing:.04em}
html[data-theme] .bcl-stats b{font-size:13px;font-weight:600;display:flex;align-items:center;gap:6px;overflow-wrap:anywhere}
html[data-theme] .bcl-dot{width:8px;height:8px;border-radius:50%;flex:none;background:var(--muted)}
html[data-theme] .bcl-dot.on{background:var(--emerald)}
html[data-theme] .bcl-hook{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:12px;background:var(--bg)}
html[data-theme] .bcl-hook-h{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px}
html[data-theme] .bcl-hook-row{display:flex;align-items:center;gap:8px}
html[data-theme] .bcl-url{flex:1;min-width:0;padding:7px 10px;border:1px solid var(--line3);border-radius:8px;background:var(--card);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-theme] .bcl-hook-foot{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
html[data-theme] .bcl-howto{flex:1;min-width:0}
html[data-theme] .bcl-howto ol{margin:8px 0;padding-left:18px;display:flex;flex-direction:column;gap:4px}
html[data-theme] .bcl-howto code{overflow-wrap:anywhere}
html[data-theme] .bcl-hook-foot .linkish{flex:none;font-size:12.5px}
html[data-theme] .bcl-acts .menu-pop{min-width:232px}
html[data-theme] .bcl-acts .menu-pop button{display:flex;align-items:center;gap:8px;white-space:nowrap}
html[data-theme] .menu-pop .menu-sep{border:0;border-top:1px solid var(--line3);margin:4px 2px}
html[data-theme] .menu-pop button[disabled]{opacity:.5;cursor:default}
@media (max-width:640px){
  html[data-theme] .bcl-card{padding:14px}
  html[data-theme] .bcl-stats{grid-template-columns:1fr}
  html[data-theme] .bcl-stats>div+div{border-left:0;border-top:1px solid var(--line3)}
  html[data-theme] .bcl-stats>div{flex-direction:row;justify-content:space-between;align-items:center;gap:12px}
  html[data-theme] .bcl-hook-foot{flex-direction:column;gap:8px}
}

/* Integrations → Activity log (1.19.21): tabs with counts, filters, one full-width list, details under ⌄ */
html[data-theme] .alog{display:flex;flex-direction:column;gap:14px}
html[data-theme] .alog-tabs button{display:inline-flex;align-items:center;gap:6px}
html[data-theme] .alog-n{font-size:11.5px;font-weight:700;padding:1px 7px;border-radius:999px;background:var(--line3);color:var(--ink2)}
html[data-theme] .alog-n.bad{background:var(--rose-bg, var(--line3));color:var(--rose)}
html[data-theme] .alog-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
html[data-theme] .alog-filters select.input{width:auto;min-width:150px}
html[data-theme] .alog-q{flex:1 1 220px;min-width:0}
html[data-theme] .alog-list{padding:0;overflow:visible}
html[data-theme] .alog-row{display:grid;grid-template-columns:96px 30px minmax(0,1fr) auto 36px;gap:4px 12px;align-items:start;padding:12px 16px;border-bottom:1px solid var(--line3)}
html[data-theme] .alog-row:last-child{border-bottom:0}
html[data-theme] .alog-row.st-failed{box-shadow:inset 3px 0 0 var(--rose)}
html[data-theme] .alog-time{font-size:12.5px;color:var(--muted);white-space:nowrap;padding-top:6px}
html[data-theme] .alog-logo{margin-top:1px}
html[data-theme] .alog-main{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding-top:4px}
html[data-theme] .alog-title{margin:0;font-size:13.5px;font-weight:600;color:var(--ink);overflow-wrap:anywhere}
html[data-theme] .alog-title.clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html[data-theme] .alog-sub{margin:0;display:flex;align-items:center;gap:6px;min-width:0;max-width:100%;font-size:12.5px;color:var(--muted)}
html[data-theme] .alog-prev{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-theme] .alog-sub .chip{flex:none}
html[data-theme] .alog-rep{cursor:pointer;font-size:12px}
html[data-theme] .alog-badge{margin-top:5px;white-space:nowrap}
html[data-theme] .alog-detail{grid-column:3/-1;display:flex;flex-direction:column;gap:8px;padding:10px 12px;margin-top:4px;border-radius:10px;background:var(--bg)}
html[data-theme] .alog-detail p{margin:0}
html[data-theme] .alog-err{font-size:13px;color:var(--rose);overflow-wrap:anywhere}
html[data-theme] .alog-dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:4px 14px;margin:0;font-size:12.5px}
html[data-theme] .alog-dl dt{color:var(--muted)}
html[data-theme] .alog-dl dd{margin:0;overflow-wrap:anywhere}
html[data-theme] .alog-body{margin:0;max-height:320px;overflow:auto;padding:10px 12px;border:1px solid var(--line3);border-radius:8px;background:var(--card);font:12.5px/1.5 var(--font);white-space:pre-wrap;overflow-wrap:anywhere}
html[data-theme] .alog-foot{display:flex;justify-content:center}
@media (max-width:640px){
  html[data-theme] .alog-filters>*{flex:1 1 100%}
  html[data-theme] .alog-filters select.input{width:100%}
  html[data-theme] .alog-row{grid-template-columns:30px minmax(0,1fr) 36px;padding:12px}
  html[data-theme] .alog-logo{grid-column:1;grid-row:1 / span 2}
  html[data-theme] .alog-time{grid-column:2;grid-row:1;padding-top:0;display:flex}
  html[data-theme] .alog-main{grid-column:2;grid-row:2;padding-top:0}
  html[data-theme] .alog-badge{grid-column:2;grid-row:3;justify-self:start;margin-top:2px}
  html[data-theme] .alog-more{grid-column:3;grid-row:1 / span 2}
  html[data-theme] .alog-detail{grid-column:1/-1}
}
/* Dashboard "Draf B — bersih & ringan" (1.19.24): phone first, two columns from 980 px.
   Bars #10B981 / #D1FAE5, ad share #0EA5E9 (shapes, not text); text that carries a meaning uses --emerald-ink / --rose (AA). */
html[data-theme]{--d-bar:#10B981;--d-bar-soft:#D1FAE5;--d-share:#0EA5E9;--d-share-soft:#E0F2FE;--d-muted:#64748B;--d-ads:#7DD3FC;--d-ads-hot:#0EA5E9;--d-grid:#F1F5F9;--d-plot-h:150px}
html[data-theme="dark"]{--d-bar:#10B981;--d-bar-soft:#1E4A3C;--d-share:#38BDF8;--d-share-soft:#16324A;--d-muted:#A3AEC2;--d-ads:#2B6A8C;--d-ads-hot:#38BDF8;--d-grid:#283049}
html[data-theme] .dsh{gap:18px}
html[data-theme] .dsh-top{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px}
html[data-theme] .dsh-hi p{margin:0;font-size:14px;color:var(--d-muted)}
html[data-theme] .dsh-hi h1{margin:2px 0 0;font-size:24px;line-height:1.2}
html[data-theme] .dsh-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
html[data-theme] .dsh-filters .dp-btn{min-height:44px;gap:8px;font-weight:600}
html[data-theme] .dsh-filters select.input{min-height:44px}
html[data-theme] .dsh-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:start}
html[data-theme] .dsh-card{background:var(--card);border:1px solid var(--line3);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px;min-width:0}
html[data-theme] .dsh-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
html[data-theme] .dsh-h h2{margin:0;font-size:16px;font-weight:700;display:flex;align-items:center;gap:8px}
html[data-theme] .dsh-hrow{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:-6px}
html[data-theme] .dsh-sub{font-size:12.5px;color:var(--d-muted);margin:0}
html[data-theme] .dsh-sub b{color:var(--ink)}
html[data-theme] .dsh-lbl{margin:0;font-size:13px;font-weight:600;color:var(--d-muted)}
html[data-theme] .dsh-link{font-size:13px;font-weight:600;white-space:nowrap;min-height:44px;display:inline-flex;align-items:center;margin:-12px 0}
html[data-theme] .dsh-card>.dsh-link{margin:0;align-self:flex-start;min-height:32px}
/* hero */
html[data-theme] .dsh-hero{gap:6px}
html[data-theme] .dsh-hero-v{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
html[data-theme] .dsh-big{font-size:44px;line-height:1.1;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
html[data-theme] .dsh-pill{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:999px;font-size:13px;font-weight:700}
html[data-theme] .dsh-pill.up{background:var(--ok-bg);color:var(--emerald-ink)}html[data-theme] .dsh-pill.down{background:var(--rose-bg);color:var(--rose)}
/* 2 × 2 box with inner lines */
html[data-theme] .dsh-box{display:grid;grid-template-columns:1fr 1fr;background:var(--card);border:1px solid var(--line3);border-radius:16px;overflow:hidden}
html[data-theme] .dsh-cell{padding:14px 16px;display:flex;flex-direction:column;gap:4px;min-width:0;color:inherit;text-decoration:none}
html[data-theme] .dsh-cell:nth-child(odd){border-right:1px solid var(--line3)}
html[data-theme] .dsh-cell:nth-child(-n+2){border-bottom:1px solid var(--line3)}
html[data-theme] a.dsh-cell:hover{background:var(--hover)}
html[data-theme] .dsh-v{margin:0;font-size:22px;font-weight:800;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
html[data-theme] .dsh-note{margin:0;font-size:12px;color:var(--d-muted)}
html[data-theme] .dsh-v.up,html[data-theme] .dsh-note.up,html[data-theme] .dsh-roas.up{color:var(--emerald-ink)}
html[data-theme] .dsh-v.down,html[data-theme] .dsh-note.down,html[data-theme] .dsh-roas.down{color:var(--rose)}
/* sales by day */
html[data-theme] .dsh-legend{list-style:none;margin:-4px 0 0;padding:0;display:flex;gap:14px;font-size:12px;color:var(--d-muted)}
html[data-theme] .dsh-legend li{display:inline-flex;align-items:center;gap:6px}
html[data-theme] .dsh-legend i{width:9px;height:9px;border-radius:50%;display:inline-block}
html[data-theme] .dsh-legend .sw-rev{background:var(--d-bar)}html[data-theme] .dsh-legend .sw-ads{background:var(--d-ads-hot)}
/* 1.19.30: the axis column (42 px) + the plot; --d-plot-h is the height the ticks and the bars share */
html[data-theme] .dsh-plot{position:relative;padding-left:42px}
html[data-theme] .dsh-axis{position:absolute;left:0;top:10px;width:38px;height:var(--d-plot-h)}
html[data-theme] .dsh-axis span{position:absolute;right:0;transform:translateY(50%);font-size:10.5px;line-height:1;color:var(--d-muted);white-space:nowrap;font-variant-numeric:tabular-nums}
html[data-theme] .dsh-lines{position:absolute;left:42px;right:0;top:10px;height:var(--d-plot-h);pointer-events:none}
html[data-theme] .dsh-lines i{position:absolute;left:0;right:0;height:0;border-top:1px solid var(--d-grid)}
html[data-theme] .dsh-bars{position:relative;z-index:1;display:flex;align-items:stretch;gap:4px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;padding-top:10px}
html[data-theme] .dsh-bar{position:relative;flex:1 0 30px;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:30px;padding:0 0 2px;border:0;border-radius:8px;background:transparent;font:inherit;color:inherit;cursor:pointer}
/* 1.20.15: the chosen day = its bars in the strong colours (like today's), no box around the column */
html[data-theme] .dsh-bar.on .dsh-bt .b-rev{background:var(--d-bar)}html[data-theme] .dsh-bar.on .dsh-bt .b-ads{background:var(--d-ads-hot)}
html[data-theme] .dsh-bar.on .dsh-bd{color:var(--ink);font-weight:700}
html[data-theme] .dsh-bar:focus-visible{outline:2px solid var(--cobalt);outline-offset:1px}
html[data-theme] .dsh-bt{flex:none;height:var(--d-plot-h);width:100%;max-width:34px;display:flex;align-items:flex-end;justify-content:center;gap:3px}
html[data-theme] .dsh-bt span{display:block;flex:1 1 0;max-width:14px;border-radius:5px 5px 2px 2px}
html[data-theme] .dsh-bt .b-rev{background:var(--d-bar-soft)}html[data-theme] .dsh-bt .b-ads{background:var(--d-ads)}
html[data-theme] .dsh-bar.hot .dsh-bt .b-rev{background:var(--d-bar)}html[data-theme] .dsh-bar.hot .dsh-bt .b-ads{background:var(--d-ads-hot)}
html[data-theme] .dsh-bar.hot .dsh-bd{color:var(--ink);font-weight:700}
html[data-theme] .dsh-bd{font-size:11.5px;font-weight:600;color:var(--d-muted);white-space:nowrap}
html[data-theme] .dsh-bdd{font-size:10.5px;color:var(--d-muted);margin-top:-4px}
/* the day's numbers: a small card over the top of the bars (inside the scroll box, so never clipped) (--at = the bar's place, 0–100) */
/* ads by project */
html[data-theme] .dsh-seg button{min-height:32px}
html[data-theme] .dsh-ads{display:flex;flex-direction:column;gap:14px}
html[data-theme] .dsh-ad{display:flex;flex-direction:column;gap:6px}
html[data-theme] .dsh-adh{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:14px}
html[data-theme] .dsh-adh b{min-width:0;overflow-wrap:anywhere}
html[data-theme] .dsh-roas{font-size:13px;font-weight:700;white-space:nowrap;color:var(--d-muted)}
html[data-theme] .dsh-track{height:8px;border-radius:999px;background:var(--d-share-soft);overflow:hidden}
html[data-theme] .dsh-track span{display:block;height:100%;border-radius:999px;background:var(--d-share)}
html[data-theme] .dsh-adf{display:flex;justify-content:space-between;gap:10px;font-size:12.5px;color:var(--d-muted);flex-wrap:wrap}
/* latest orders + approvals */
html[data-theme] .dsh-list{display:flex;flex-direction:column}
html[data-theme] .dsh-row{display:flex;align-items:center;gap:12px;padding:10px 0;min-height:56px;border-top:1px solid var(--line3);color:inherit;text-decoration:none}
html[data-theme] .dsh-list .dsh-row:first-child{border-top:0}
html[data-theme] a.dsh-row:hover{background:var(--hover)}
html[data-theme] .dsh-av{width:38px;height:38px;flex:none;border-radius:50%;background:var(--tint);color:var(--tint-ink);display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:700}
html[data-theme] .dsh-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
html[data-theme] .dsh-main b{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-theme] .dsh-main .dsh-sub{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-theme] .dsh-amt{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:none;font-size:14px;font-variant-numeric:tabular-nums}
html[data-theme] .dsh-approve{border-color:var(--ring)}
html[data-theme] .dsh-approve .dsh-row .btn{min-height:40px}
/* 1.20.2 — explicit rows, no free columns: a phone keeps one column in the order of the markup */
html[data-theme] .dsh-wrap{max-width:1400px;width:100%;margin-inline:auto}
@media (min-width:641px){
  html[data-theme] .dsh-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:stretch}
  html[data-theme] .dsh-grid .g-hero{grid-area:1/1;justify-content:center}
  html[data-theme] .dsh-grid .g-box{grid-area:1/2}
  html[data-theme] .dsh-grid .g-chart{grid-area:2/1/3/-1}
  html[data-theme] .dsh-grid .g-recent{grid-area:3/1/4/-1}
  html[data-theme] .dsh-grid .g-ads{grid-area:4/1/5/-1}
  html[data-theme] .dsh-grid .g-ads .dsh-ads{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px 28px;align-items:start}
  html[data-theme] .dsh-grid .g-ads .dsh-ads>.empty{grid-column:1/-1}
}
@media (min-width:1024px){
  html[data-theme] .dsh-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
  html[data-theme] .dsh-grid .g-hero{grid-area:1/1}
  html[data-theme] .dsh-grid .g-box{grid-area:1/2/2/4;grid-template-columns:repeat(4,minmax(0,1fr))}
  html[data-theme] .dsh-grid .g-box .dsh-cell{border-bottom:0;border-right:1px solid var(--line3);justify-content:center}
  html[data-theme] .dsh-grid .g-box .dsh-cell:last-child{border-right:0}
  html[data-theme] .dsh-grid .g-chart{grid-area:2/1/3/3}
  /* as tall as the chart, never taller: the list scrolls inside */
  html[data-theme] .dsh-grid .g-recent{grid-area:2/3/3/4;height:0;min-height:100%;overflow:hidden}
  html[data-theme] .dsh-grid .g-recent .dsh-list{flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
  html[data-theme] .dsh-grid .g-ads{grid-area:3/1/4/-1}
  html[data-theme] .dsh-grid .g-ads .dsh-ads{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
}
@media (max-width:640px){
  html[data-theme] .dsh-top{flex-direction:column;align-items:stretch}
  html[data-theme] .dsh-filters{display:grid;grid-template-columns:minmax(0,1fr) auto}
  html[data-theme] .dsh-filters .dp,html[data-theme] .dsh-filters .dp-btn{width:100%;justify-content:flex-start}
  html[data-theme] .dsh-filters .dp-btn span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html[data-theme] .dsh-filters .dp-btn svg+span+svg{display:none} /* the caret: the whole button is the control */
  html[data-theme] .dsh-filters .dp-btn{padding-left:12px;padding-right:12px;gap:6px;font-size:13.5px}
  html[data-theme] .dsh-filters select.input{width:auto;max-width:150px;font-size:13px;padding-left:10px;padding-right:26px}
  html[data-theme] .dsh-big{font-size:40px}
  html[data-theme] .dsh-v{font-size:20px}
  html[data-theme] .dsh-cell{padding:12px 14px}
}

/* Sales & analysis (1.19.29): one row of filters — on a phone: dates · Filters (+ count) · Export, the four
   dropdowns in a bottom sheet, the filters that are on as chips. Payment success = 4 figures (2 × 2 on a phone). */
html[data-theme] .rep-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
html[data-theme] .rep-inline{display:contents}
html[data-theme] .rep-fbtn,html[data-theme] .rep-chips,html[data-theme] .rep-sheet,html[data-theme] .rep-back{display:none}
html[data-theme] .rep-fbtn{align-items:center;gap:6px;min-height:44px;font-weight:600}
html[data-theme] .rep-n{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--cobalt);color:#fff;font-size:11.5px;font-weight:700}
html[data-theme] .rep-export{gap:6px}
html[data-theme] .rep-success{display:flex;flex-direction:column;gap:10px}
html[data-theme] .rep-ps-h h3{font-size:16px}
html[data-theme] .rep-ps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
html[data-theme] .rep-ps .kpi{display:flex;flex-direction:column;gap:4px;min-width:0}
html[data-theme] .rep-ps .v{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
@media (max-width:980px){html[data-theme] .rep-ps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){
  html[data-theme] .rep-head{flex-direction:column;align-items:stretch}
  html[data-theme] .rep-bar{flex-wrap:nowrap;width:100%;gap:6px}
  html[data-theme] .rep-inline{display:none}
  html[data-theme] .rep-bar .dp{flex:1;min-width:0}
  html[data-theme] .rep-bar .dp-btn{width:100%;min-height:44px;justify-content:flex-start;gap:6px;padding:0 10px;font-weight:600;font-size:13px}
  html[data-theme] .rep-bar .dp-btn span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
  html[data-theme] .rep-bar .dp-btn svg+span+svg{display:none}
  html[data-theme] .rep-fbtn{display:inline-flex;flex:none;gap:5px;padding:0 10px;font-size:13px}
  html[data-theme] .rep-export{flex:none;width:44px;min-height:44px;padding:0;justify-content:center}
  html[data-theme] .rep-export-t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  html[data-theme] .rep-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:-6px}
  html[data-theme] .rep-chip{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 8px 0 12px;border-radius:999px;border:1px solid var(--line2);background:var(--card);font:600 12.5px var(--font);color:var(--ink);cursor:pointer;max-width:100%}
  html[data-theme] .rep-chip svg{flex:none;color:var(--muted)}
  html[data-theme] .rep-back{display:block}
  html[data-theme] .rep-sheet{display:flex;flex-direction:column;position:fixed;left:0;right:0;bottom:0;z-index:59;max-height:86dvh;padding:0 0 env(safe-area-inset-bottom);border-radius:22px 22px 0 0!important;border-bottom:0;box-shadow:var(--sh-pop)}
  html[data-theme] .rep-sh{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 16px;min-height:60px;border-bottom:1px solid var(--line3);font-size:16px}
  html[data-theme] .rep-x{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center}
  html[data-theme] .rep-sb{display:grid;gap:12px;padding:14px 16px;overflow-y:auto}
  html[data-theme] .rep-sb .input{width:100%;min-height:44px}
  html[data-theme] .rep-sa{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:10px 16px 16px;border-top:1px solid var(--line3)}
  html[data-theme] .rep-sa .btn{min-height:44px;justify-content:center}
  html[data-theme] .rep-ps{gap:10px}
  html[data-theme] .rep-ps .v{font-size:18px}
}
@media (max-width:380px){html[data-theme] .rep-bar .dp-btn>svg:first-child{display:none}}
/* Lead form editor (1.20.0): five tabs; the builder = palette | canvas | settings, and bottom sheets under 900 px */
html[data-theme] .lfe-head{align-items:flex-end}
html[data-theme] .lfe-acts{gap:8px}
html[data-theme] .lfe-tabs{align-self:flex-start;max-width:100%}
html[data-theme] .lfe-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
html[data-theme] .lfe-full{grid-column:1/-1}
html[data-theme] .lfe-inner{padding:0;gap:10px 12px}
html[data-theme] fieldset.field{border:0;padding:0;margin:0;min-width:0}html[data-theme] fieldset.field legend{padding:0;margin-bottom:8px;font-weight:600}
html[data-theme] .lfe-slug{display:flex;align-items:stretch;border:1px solid var(--line2);border-radius:12px;overflow:hidden;background:var(--field)}
html[data-theme] .lfe-slug .input{border:0;border-radius:0;min-width:0}
html[data-theme] .lfe-host{display:flex;align-items:center;padding:0 10px;background:var(--well);color:var(--muted);font-size:12.5px;white-space:nowrap;max-width:55%;overflow:hidden;text-overflow:ellipsis}
html[data-theme] .lfe-sw{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--line3);border-radius:12px}
html[data-theme] .lfe-sw p{margin:2px 0 0}
html[data-theme] .lfe-drop{position:relative;display:flex;align-items:center;justify-content:center;min-height:150px;border:1.5px dashed var(--line2);border-radius:14px;background:var(--well);cursor:pointer;overflow:hidden}
html[data-theme] .lfe-drop img{width:100%;max-height:220px;object-fit:cover;display:block}
html[data-theme] .lfe-drop-t{display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--ink2);font-weight:600;text-align:center;padding:16px}
html[data-theme] .lfe-drop-t small{font-weight:400;color:var(--muted)}
html[data-theme] .lfe-drop:focus-within{outline:2px solid var(--cobalt);outline-offset:2px}
html[data-theme] .lfe-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
html[data-theme] .lfe-mode{position:relative;display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid var(--line2);border-radius:12px;cursor:pointer;font-weight:400}
html[data-theme] .lfe-mode input{position:absolute;opacity:0;pointer-events:none}
html[data-theme] .lfe-mode b{font-size:14px;color:var(--ink)}html[data-theme] .lfe-mode small{color:var(--muted);font-size:12.5px}
html[data-theme] .lfe-mode.on{border-color:var(--cobalt);background:var(--tint);box-shadow:0 0 0 1px var(--cobalt)}
html[data-theme] .lfe-mode:focus-within{outline:2px solid var(--cobalt);outline-offset:2px}
html[data-theme] .lfe-color{width:64px;padding:4px;height:42px}
html[data-theme] .lfe-vars{display:flex;flex-wrap:wrap;gap:6px}html[data-theme] .lfe-vars .chip{cursor:pointer;gap:6px}
html[data-theme] .lfe-foot{display:flex;justify-content:flex-end;gap:8px}
html[data-theme] .lfb-addbtn,html[data-theme] .lfb-sh,html[data-theme] .lfb-back{display:none}
html[data-theme] .lfb-body{display:grid;grid-template-columns:210px minmax(0,1fr) 290px;align-items:start}
html[data-theme] .lfb-pal,html[data-theme] .lfb-set{padding:14px;display:flex;flex-direction:column;gap:10px;min-width:0}
html[data-theme] .lfb-pal{border-right:1px solid var(--line3)}html[data-theme] .lfb-set{border-left:1px solid var(--line3);position:sticky;top:76px}
html[data-theme] .lfb-g{margin:4px 0 0;font-size:11.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
html[data-theme] .lfb-types{display:grid;gap:4px}
html[data-theme] .lfb-type{display:flex;align-items:center;gap:8px;min-height:38px;padding:0 10px;border:1px solid var(--line3);border-radius:10px;background:var(--card);font:600 13px var(--font);color:var(--ink);cursor:pointer;text-align:left}
html[data-theme] .lfb-type:hover{border-color:var(--cobalt);background:var(--tint)}html[data-theme] .lfb-type svg{color:var(--muted);flex:none}
html[data-theme] .lfb-canvas{list-style:none;margin:0;padding:14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-height:220px;background:var(--well)}
html[data-theme] .lfb-item{grid-column:1/-1;position:relative;display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:start;gap:4px;padding:8px 8px 8px 4px;border:1px solid var(--line3);border-radius:12px;background:var(--card)}
html[data-theme] .lfb-item.w-half{grid-column:auto}
html[data-theme] .lfb-item.on{border-color:var(--cobalt);box-shadow:0 0 0 1px var(--cobalt)}
html[data-theme] .lfb-handle{width:28px;height:36px;border:0;background:none;color:var(--muted);cursor:grab;display:inline-flex;align-items:center;justify-content:center;touch-action:none;border-radius:8px}
html[data-theme] .lfb-handle:active{cursor:grabbing}
html[data-theme] .lfb-pick{display:flex;flex-direction:column;gap:6px;min-width:0;padding:4px;border:0;background:none;text-align:left;font:inherit;color:inherit;cursor:pointer;border-radius:8px}
html[data-theme] .lfb-pick:focus-visible,html[data-theme] .lfb-handle:focus-visible{outline:2px solid var(--cobalt)}
html[data-theme] .lfb-l{font-weight:600;font-size:13.5px;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px}
html[data-theme] .lfb-l .req{color:var(--rose);font-style:normal}
html[data-theme] .lfb-type-tag{font-size:11px;font-weight:600;color:var(--muted)}
html[data-theme] .lfb-fake{display:flex;align-items:center;gap:8px;min-height:36px;padding:0 10px;border:1px solid var(--line2);border-radius:10px;background:var(--field);color:var(--muted);font-size:12.5px;overflow:hidden;white-space:nowrap}
html[data-theme] .lfb-fake.textarea{min-height:56px;align-items:flex-start;padding-top:8px}
html[data-theme] .lfb-fake.signature{min-height:56px;border-style:dashed;justify-content:center}
html[data-theme] .lfb-fake.radio,html[data-theme] .lfb-fake.checkbox{border:0;background:none;padding:0;flex-wrap:wrap}
html[data-theme] .lfb-fake .opt{padding:4px 10px;border:1px solid var(--line2);border-radius:999px}
html[data-theme] .lfb-help{font-size:12px;color:var(--muted)}
html[data-theme] .lfb-h{font-size:16px}html[data-theme] .lfb-p{font-size:13px;color:var(--ink2);white-space:pre-line}
html[data-theme] .lfb-div{display:block;height:0;border-top:1px solid var(--line2);margin:14px 0}
html[data-theme] .lfb-acts{display:flex;gap:2px}
html[data-theme] .lfb-err{grid-column:2/-1}
html[data-theme] .lfb-move{gap:6px;flex-wrap:wrap}
@media (max-width:900px){
  html[data-theme] .lfe-grid{grid-template-columns:minmax(0,1fr)}
  html[data-theme] .lfe-modes{grid-template-columns:minmax(0,1fr)}
  html[data-theme] .lfb-addbtn{display:inline-flex;min-height:44px}
  html[data-theme] .lfb-body{grid-template-columns:minmax(0,1fr)}
  html[data-theme] .lfb-canvas{padding:10px;grid-template-columns:minmax(0,1fr)}
  html[data-theme] .lfb-item.w-half{grid-column:1/-1}
  html[data-theme] .lfb-pal,html[data-theme] .lfb-set{display:none}
  html[data-theme] .lfb-pal.open,html[data-theme] .lfb-set.open{display:flex;position:fixed;left:0;right:0;bottom:0;top:auto;z-index:59;max-height:82dvh;overflow-y:auto;overscroll-behavior:contain;padding:0 16px calc(16px + env(safe-area-inset-bottom));background:var(--card);border:0;border-radius:22px 22px 0 0;box-shadow:var(--sh-pop)}
  html[data-theme] .lfb-sh{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;z-index:1;min-height:60px;margin:0 -16px;padding:8px 16px;background:var(--card);border-bottom:1px solid var(--line3);font-size:16px}
  html[data-theme] .lfb-x{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center}
  html[data-theme] .lfb-types{grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-theme] .lfb-type{min-height:44px}
  html[data-theme] .lfb-back{display:block}
  html[data-theme] .lfb-acts .ibtn{display:inline-flex!important}
}
@media (max-width:640px){
  html[data-theme] .lfe-head{flex-direction:column;align-items:stretch}
  html[data-theme] .lfe-acts{display:grid;grid-template-columns:1fr 1fr}
  html[data-theme] .lfe-acts .btn{justify-content:center;min-height:44px}
  html[data-theme] .lfe-foot{display:grid;grid-template-columns:1fr 1fr}html[data-theme] .lfe-foot .btn{justify-content:center;min-height:44px}
  html[data-theme] .lfe-host{max-width:45%;font-size:11.5px}
}
html[data-theme] .lfe-line{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}html[data-theme] .lfe-line .input{flex:1;min-width:0}html[data-theme] .lfe-line .ibtn{flex:none}

/* 1.20.1 — Key in WhatsApp sale: the products / options of the form and the live summary */
html[data-theme] .ks-list{display:flex;flex-direction:column;gap:8px}
html[data-theme] .ks-prod{border:1px solid var(--line);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:6px;background:var(--card)}
html[data-theme] .ks-prod.on{border-color:var(--cobalt);box-shadow:0 0 0 1px var(--cobalt) inset}
html[data-theme] .ks-ph{display:flex;align-items:flex-start;gap:10px}
html[data-theme] .ks-pick{flex:1;min-width:0;display:flex;align-items:flex-start;gap:8px;cursor:pointer;overflow-wrap:anywhere}
html[data-theme] .ks-pick input{margin-top:3px;flex:none}
html[data-theme] .ks-price{font-weight:700;white-space:nowrap}
html[data-theme] .ks-pm{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
html[data-theme] .ks-pm:empty{display:none}
html[data-theme] .ks-qty{display:flex;align-items:center;gap:6px;font-size:13px;margin-left:auto}
html[data-theme] .ks-qty .input{width:80px;height:36px}
html[data-theme] .ks-group{border:0;padding:0;margin:2px 0 0;min-width:0}
html[data-theme] .ks-group legend{font-size:13px;font-weight:600;padding:0;margin-bottom:6px}
html[data-theme] .ks-opts{display:flex;flex-wrap:wrap;gap:6px}
html[data-theme] .ks-opt{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:6px 10px;border:1px solid var(--line);border-radius:999px;font-size:13px;cursor:pointer;max-width:100%}
html[data-theme] .ks-opt span{overflow-wrap:anywhere}
html[data-theme] .ks-opt.on{border-color:var(--cobalt);background:var(--tint)}
html[data-theme] .ks-opt:has(input:disabled){opacity:.55;cursor:not-allowed}
html[data-theme] .ks-sum{border:1px dashed var(--line2);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:6px}
html[data-theme] .ks-line,html[data-theme] .ks-row{display:flex;justify-content:space-between;gap:10px}
html[data-theme] .ks-line>span:first-child{min-width:0;overflow-wrap:anywhere}
html[data-theme] .ks-line>span:last-child,html[data-theme] .ks-row>span:last-child{white-space:nowrap}
html[data-theme] .ks-total{font-weight:800;font-size:16px;border-top:1px solid var(--line);padding-top:8px;margin-top:2px}
html[data-theme] .unl-card{border-color:var(--amber-line);background:var(--amber-soft)}

/* 1.20.3 — Orders on a phone: a real table that scrolls sideways (like the desktop), first column and header fixed */
html[data-theme] table.ord-t .ordm,html[data-theme] .ordm-hint{display:none}
@media (max-width:640px){
  html[data-theme] table.ord-t .ordd{display:none}
  html[data-theme] table.ord-t .ordm{display:table-cell}
  html[data-theme] .ordm-hint{display:block;margin:0 16px 8px;font-size:12.5px;font-weight:600;color:var(--muted);text-align:right}
  html[data-theme] .ord-scroll{overflow:auto;max-height:calc(100dvh - 140px);-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;border-top:1px solid var(--line3)}
  html[data-theme] table.ord-t{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;font-size:13px}
  html[data-theme] table.ord-t th,html[data-theme] table.ord-t td{padding:10px 12px;white-space:nowrap;vertical-align:middle;background:var(--card);border-bottom:1px solid var(--line3)}
  html[data-theme] table.ord-t thead th{position:sticky;top:0;z-index:3;background:var(--card2);font-size:12px}
  html[data-theme] table.ord-t tr:hover td{background:var(--card)}
  html[data-theme] table.ord-t .ordm-first{position:sticky;left:0;z-index:2;width:150px;min-width:150px;max-width:150px;padding-left:10px;padding-right:8px}
  html[data-theme] table.ord-t thead .ordm-first{z-index:4}
  html[data-theme] .ord-scroll .ordm-first{transition:box-shadow .15s var(--ease)}
  html[data-theme] .ord-scroll.is-scrolled .ordm-first{box-shadow:6px 0 8px -6px rgba(15,23,42,.28)}
  html[data-theme] .ordm-fc{display:flex;align-items:center;gap:8px;min-width:0}
  html[data-theme] .ordm-fc input{width:16px;height:16px;flex:none;margin:0}
  html[data-theme] .ordm-name{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;max-width:112px;padding:0;border:0;background:none;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
  html[data-theme] .ordm-name b{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13.5px}
  html[data-theme] .ordm-name .badge{font-size:10.5px;padding:1px 7px}
  html[data-theme] .ordm-ct{display:flex;align-items:center;gap:6px}
  html[data-theme] .ordm-cut{display:inline-block;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
  html[data-theme] .ordm-cut.full{max-width:none;white-space:normal;overflow-wrap:anywhere;min-width:200px}
  html[data-theme] .ordm-ab{display:flex;align-items:center;gap:6px}
  html[data-theme] .ordm-ab .ibtn{width:36px;height:36px;display:inline-flex!important}
  html[data-theme] .ordm-ab .ibtn.danger{background:var(--rose-bg);border-color:var(--rose-line);color:var(--rose)}
  html[data-theme] .ordm-ab .pcard-more{position:relative}
  /* the scroll box would clip a dropdown: the menu opens as a sheet at the bottom of the screen */
  html[data-theme] .ordm-ab .menu-pop{position:fixed;left:12px;right:12px;top:auto;bottom:12px;z-index:60;min-width:0}
  html[data-theme] .ordm-ab .menu-pop>*{min-height:44px}
}

/* 1.20.4 — Orders: tidy filter bar (one height, one radius) and a ruled table (every cell boxed, zebra rows, "#" column) */
html[data-theme]{--t-line:#E2E8F0;--t-head:#F8FAFC;--t-zebra:#FBFCFE}
html[data-theme="dark"]{--t-line:#2E3654;--t-head:#20263F;--t-zebra:#1E2339}
html[data-theme] .ord-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
html[data-theme] .ord-bar .btn,html[data-theme] .ord-bar .dp-btn,html[data-theme] .ord-search{height:40px;min-height:40px;border-radius:10px}
html[data-theme] .ord-search{display:flex;align-items:stretch;flex:1 1 320px;max-width:460px;border:1px solid var(--line);background:var(--field);overflow:hidden}
html[data-theme] .ord-search:focus-within{border-color:var(--cobalt);box-shadow:0 0 0 3px var(--ring)}
html[data-theme] .ord-field{flex:0 0 40%;max-width:160px;min-width:0;border:0;border-right:1px solid var(--line);background:var(--card2);color:var(--ink);font:600 13px var(--font);padding:0 10px;outline:0}
html[data-theme] .ord-q{flex:1;min-width:0;border:0;background:transparent;color:var(--ink);font:14px var(--font);padding:0 12px;outline:0}
html[data-theme] .ord-fbtn{gap:6px}
html[data-theme] .ord-fbtn.on{border-color:var(--cobalt);color:var(--cobalt)}
html[data-theme] table.ord-t{border-collapse:separate;border-spacing:0}
html[data-theme] table.ord-t th,html[data-theme] table.ord-t td{border-bottom:1px solid var(--t-line);border-right:1px solid var(--t-line)}
html[data-theme] table.ord-t tr>:first-child{border-left:1px solid var(--t-line)}
html[data-theme] table.ord-t thead th{background:var(--t-head);border-top:1px solid var(--t-line)}
html[data-theme] table.ord-t tbody tr:nth-child(even) td{background:var(--t-zebra)}
html[data-theme] table.ord-t tbody tr:hover td{background:var(--hover)}
html[data-theme] table.ord-t .ord-n{width:44px;text-align:right;color:var(--muted);font-variant-numeric:tabular-nums;font-size:12.5px}
html[data-theme] table.ord-t th.ord-n{text-align:right}
@media (max-width:640px){
  html[data-theme] .head .ord-headacts{width:100%}
  html[data-theme] .head .ord-headacts .btn{width:100%;min-height:44px;justify-content:center}
  html[data-theme] .ord-bar{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  html[data-theme] .ord-bar .btn,html[data-theme] .ord-bar .dp-btn,html[data-theme] .ord-search{height:44px;min-height:44px}
  html[data-theme] .ord-search{grid-column:1/-1;max-width:none;flex:none}
  html[data-theme] .ord-date{grid-column:1/-1;min-width:0}
  html[data-theme] .ord-date .dp,html[data-theme] .ord-date .dp-btn{width:100%;justify-content:flex-start;padding-block:0}
  html[data-theme] .ord-date .dp-btn span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html[data-theme] .ord-date .dp-btn svg:last-child{margin-left:auto}
  html[data-theme] .ord-fbtn{width:100%;justify-content:center}
  html[data-theme] .ord-q{font-size:16px} /* no zoom-in on iPhone */
  html[data-theme] table.ord-t th,html[data-theme] table.ord-t td{border-bottom:1px solid var(--t-line)}
  html[data-theme] table.ord-t thead th{background:var(--t-head)}
  html[data-theme] table.ord-t tbody tr td{background:var(--card)}
  html[data-theme] table.ord-t tbody tr:nth-child(even) td{background:var(--t-zebra)}
  html[data-theme] table.ord-t tr:hover td{background:inherit}
  html[data-theme] table.ord-t .ordm-first{width:182px;min-width:182px;max-width:182px}
  html[data-theme] .ordm-n{flex:none;min-width:20px;text-align:right;font-size:11.5px;color:var(--muted);font-variant-numeric:tabular-nums}
  html[data-theme] .ordm-name{max-width:116px}
  html[data-theme] table.ord-t td.ordm:not(.ordm-first){min-width:96px}
}

/* 1.20.7 — Tracking health (Edit form → Facebook Pixel, Integrations → Meta) */
html[data-theme] .th-ev{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;padding:3px 0;border-bottom:1px dashed var(--line3)}
html[data-theme] .th-ev:last-child{border-bottom:0}
html[data-theme] table.t tr.th-bad td{background:var(--rose-bg)}

/* 1.20.9 — Staff → member → Activity */
html[data-theme] .sa-row{display:grid;grid-template-columns:120px minmax(0,1fr);gap:10px;padding:8px 0;border-bottom:1px solid var(--line3)}
html[data-theme] .sa-row:last-child{border-bottom:0}
html[data-theme] .sa-what{min-width:0;overflow-wrap:anywhere}
@media (max-width:640px){html[data-theme] .sa-row{grid-template-columns:1fr;gap:2px}}

/* 1.20.10 — HTML editor: Optimize page */
.pm-modal{max-width:560px;width:100%}
.pm-count{font-size:16px}
.pm-list{display:flex;flex-direction:column;gap:6px;max-height:260px;overflow:auto}
.pm-row{display:flex;align-items:center;gap:8px;padding:6px 8px;border:1px solid var(--line3);border-radius:10px}
.pm-kind{flex:none;font:700 10.5px var(--font);padding:2px 6px;border-radius:6px;background:var(--tint);color:var(--tint-ink)}
.pm-url{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.pm-size{flex:none;white-space:nowrap}

/* ---- 1.20.15: the chart popup on a phone: smaller type, still two lines ---- */
@media (max-width:640px){.chart-pop{font-size:12px;padding:6px 9px}.chart-pop-split{display:none}}
