/* Plus Jakarta Sans served from our own domain (no Google request, faster, no visitor IP sent to a third party) */
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400 800;font-display:swap;src:url(/public/fonts/LDIoaomQNQcsA88c7O9yZ4KMCoOg4Ko20yygg_vb.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{
  --bg:#f1f4f9; --surface:#f1f4f9; --ink:#1a2230; --ink-2:#465367; --ink-3:#566277;
  --accent:#f6c21a; --accent-d:#b98a00; --sel:#e4eaf3; --slate:#46607f; --slate-2:#8aa0bd;
  --yellow:#f6c21a; --yellow-soft:#e4eaf3;
  --ok:#1b6b49; --warn:#855000; --bad:#a93225;
  --sh-l:#ffffff; --sh-d:#cdd6e4; --line:rgba(26,34,48,.08);
  --raise:6px 6px 14px var(--sh-d), -6px -6px 14px var(--sh-l);
  --raise-s:3px 3px 8px var(--sh-d), -3px -3px 8px var(--sh-l);
  --inset:inset 3px 3px 7px var(--sh-d), inset -3px -3px 7px var(--sh-l);
  --r:20px; --nav-h:68px;
}
*{box-sizing:border-box;margin:0}
html{background:var(--bg)}
body{font:14px/1.45 'Plus Jakarta Sans',system-ui,sans-serif;color:var(--ink);background:var(--bg);min-height:100vh;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit;color:inherit}
.app{display:grid;grid-template-columns:240px 1fr;min-height:100vh}
/* sidebar */
.side{position:sticky;top:0;height:100vh;padding:28px 18px;display:flex;flex-direction:column;gap:6px}
.brand{display:flex;gap:12px;align-items:center;padding:0 10px 22px}
.logo{width:42px;height:42px;border-radius:14px;background:var(--yellow);display:grid;place-items:center;font-weight:800;color:#3a2e00;box-shadow:var(--raise-s)}
.brand b{display:block;font-size:15px;letter-spacing:.2px}.brand span{font-size:11px;color:var(--ink-3)}
.nav a{display:flex;gap:12px;align-items:center;padding:12px 14px;border-radius:14px;color:var(--ink-2);text-decoration:none;font-weight:600;margin-bottom:6px}
.nav a svg{width:20px;height:20px;flex:none}
.nav a:hover{color:var(--ink)}
.nav a.on{color:var(--ink);box-shadow:var(--inset)}
.nav a.on svg{color:var(--slate)}
.side .foot{margin-top:auto;font-size:11px;color:var(--ink-3);padding:10px}
/* main */
main{padding:28px 34px 60px;max-width:1320px;width:100%}
.top{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:22px;flex-wrap:wrap}
h1{font-size:26px;letter-spacing:-.4px}.sub{color:var(--ink-3);font-size:13px;margin-top:2px}
.btn{border:0;background:var(--surface);padding:11px 18px;border-radius:14px;font-weight:700;cursor:pointer;box-shadow:var(--raise-s);transition:.15s;display:inline-flex;gap:8px;align-items:center;white-space:nowrap}
.btn:active{box-shadow:var(--inset)}
.btn.pri{background:var(--accent);color:#2b2200;box-shadow:var(--raise-s),0 0 0 1px rgba(185,138,0,.25)}
.btn.sm{padding:7px 12px;font-size:12px;border-radius:11px}
.btn[disabled]{opacity:.45;cursor:not-allowed}
.card{background:var(--surface);border-radius:var(--r);box-shadow:var(--raise);padding:22px}
.card h2{font-size:15px;margin-bottom:14px;display:flex;justify-content:space-between;align-items:center;gap:8px}
.grid{display:grid;gap:22px}
.kpis{grid-template-columns:repeat(4,1fr);margin-bottom:22px}
.kpi small{color:var(--ink-3);font-weight:600;font-size:12px}
.kpi .v{font-size:24px;font-weight:800;letter-spacing:-.6px;margin-top:6px;overflow-wrap:anywhere}
.kpi .d{font-size:12px;color:var(--ink-2);margin-top:4px}
.two{grid-template-columns:1.6fr 1fr}.three{grid-template-columns:1fr 1fr 1fr}
/* workflow */
.flow{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px}
.step{display:flex;gap:12px;align-items:center;padding:16px;border-radius:18px;box-shadow:var(--inset);text-decoration:none;color:inherit}
.step i{width:38px;height:38px;border-radius:12px;background:var(--surface);display:grid;place-items:center;font-style:normal;font-weight:800;color:var(--slate);box-shadow:var(--raise-s);flex:none}
.step b{display:block;font-size:13px}.step span{font-size:12px;color:var(--ink-2)}
/* tables */
.tw{overflow-x:auto}
table{width:100%;border-collapse:collapse}
th{font-size:11px;text-transform:uppercase;letter-spacing:.6px;color:var(--ink-3);text-align:left;padding:11px 10px;white-space:nowrap}
td{padding:12px 10px;border-top:1px solid var(--line);vertical-align:middle}
td.n,th.n{text-align:right;font-variant-numeric:tabular-nums}
.pill{display:inline-block;padding:3px 10px;border-radius:99px;font-size:11px;font-weight:700;box-shadow:var(--inset)}
.pill.ok{color:var(--ok)}.pill.warn{color:var(--warn)}.pill.bad{color:var(--bad)}.pill.mute{color:var(--ink-3)}
.bars .row{display:grid;grid-template-columns:130px minmax(30px,1fr) max-content;gap:12px;align-items:center;margin-bottom:12px;font-size:13px}
.bar{height:12px;border-radius:99px;box-shadow:var(--inset);overflow:hidden}
.bar i{display:block;height:100%;background:linear-gradient(90deg,var(--slate),var(--slate-2));border-radius:99px}
.chart svg{width:100%;height:auto;display:block}
.empty{color:var(--ink-3);padding:18px 0;text-align:center}
.warnbox{border-left:4px solid var(--accent);border-radius:14px;padding:12px 14px;font-size:12.5px;color:var(--ink-2);margin-bottom:16px;box-shadow:var(--inset)}
.tabs{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap}
.tabs button{border:0;background:var(--surface);padding:8px 14px;border-radius:12px;font-weight:700;color:var(--ink-2);cursor:pointer;box-shadow:var(--raise-s)}
.tabs button.on{box-shadow:var(--inset);color:var(--ink);background:var(--yellow-soft)}
/* forms */
dialog{margin:auto;border:0;border-radius:26px;background:var(--surface);color:var(--ink);box-shadow:var(--raise),0 30px 80px rgba(30,45,75,.22);padding:26px;width:min(720px,94vw);max-height:92vh;overflow:auto}
dialog::backdrop{background:rgba(226,232,242,.72);backdrop-filter:blur(4px)}
.fg{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:14px 0}
label{display:block;font-size:12px;font-weight:700;color:var(--ink-2)}
input,select{width:100%;margin-top:6px;border:0;background:var(--surface);padding:11px 14px;border-radius:13px;box-shadow:var(--inset);outline:none}
input:focus,select:focus{box-shadow:var(--inset),0 0 0 2px var(--slate)}
.full{grid-column:1/-1}
.calc{border-radius:16px;box-shadow:var(--inset);padding:14px 16px;font-size:13px}
.calc div{display:flex;justify-content:space-between;padding:3px 0}
.calc .t{font-weight:800;border-top:1px dashed var(--slate-2);margin-top:6px;padding-top:8px}
.actions{display:flex;gap:10px;justify-content:flex-end;margin-top:18px;flex-wrap:wrap}
.toast{background:#1f2937;color:#fff;padding:12px 18px;border-radius:14px;font-weight:600;box-shadow:0 10px 30px rgba(0,0,0,.25);display:flex;gap:16px;align-items:center}
.tabbar{display:none}
.mono{font-variant-numeric:tabular-nums}
.agentcell b{display:block}.agentcell small{color:var(--ink-3)}
/* ---------- mobile: its own layout, not a squeezed desktop ---------- */
@media (max-width:900px){
  .app{display:block}
  .side{display:none}
  main{padding:18px 16px calc(var(--nav-h) + 36px)}
  h1{font-size:21px}
  .kpis{grid-template-columns:1fr 1fr;gap:14px}
  .kpi .v{font-size:19px}
  .two,.three{grid-template-columns:1fr}
  .flow{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -16px 20px;padding:6px 16px 14px;gap:12px}
  .flow .step{min-width:74%;scroll-snap-align:center;flex:none;background:var(--surface);box-shadow:var(--raise-s)}
  .card{padding:18px;border-radius:22px}
  .bars .row{grid-template-columns:90px minmax(20px,1fr) max-content;gap:8px;font-size:12px}
  /* tables become cards */
  .tw{overflow:visible}
  .card.tw{background:none;box-shadow:none;padding:0}
  td.agentcell b,td.agentcell small{display:inline}
  table,thead,tbody,tr,td{display:block}
  thead{display:none}
  tr{background:var(--surface);box-shadow:var(--raise-s);border-radius:18px;padding:12px 14px;margin-bottom:14px}
  td{border:0;padding:5px 0;display:flex;justify-content:space-between;gap:14px;text-align:right}
  td::before{content:attr(data-l);color:var(--ink-3);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;text-align:left;flex:none;padding-top:2px}
  td.n{text-align:right}
  td.act{justify-content:flex-end;padding-top:10px;flex-wrap:wrap}td.act::before{display:none}
  .top .btn.pri{position:fixed;right:16px;bottom:calc(var(--nav-h) + 22px);z-index:30;padding:15px 20px;border-radius:18px;box-shadow:var(--raise),0 8px 22px rgba(60,80,120,.3)}
  /* dialog = bottom sheet */
  dialog{width:100vw;max-width:100vw;margin:auto 0 0;border-radius:28px 28px 0 0;max-height:94vh;padding:22px 18px calc(22px + env(safe-area-inset-bottom,0px))}
  .lsum{top:-22px;margin:12px -18px 0;padding:12px 18px}.lsum-v{font-size:22px}
  .fg{grid-template-columns:1fr}
  .tabbar{display:flex;position:fixed;left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom,0px));height:var(--nav-h);background:var(--surface);border-radius:24px;box-shadow:var(--raise);z-index:40;padding:8px;gap:4px}
  .tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--ink-3);text-decoration:none;font-size:10.5px;font-weight:700;border-radius:18px}
  .tabbar a svg{width:21px;height:21px}
  .tabbar a.on{color:var(--ink);box-shadow:var(--inset)}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
/* ---- v2 additions ---- */
textarea{width:100%;margin-top:6px;border:0;background:var(--surface);padding:11px 14px;border-radius:13px;box-shadow:var(--inset);outline:none;font:inherit;color:inherit;resize:vertical}
textarea:focus{box-shadow:var(--inset),0 0 0 2px var(--slate)}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px;align-items:center}
.chips input{max-width:280px;margin:0}
.chips button{border:0;background:var(--surface);padding:7px 13px;border-radius:12px;font-weight:700;color:var(--ink-2);cursor:pointer;box-shadow:var(--raise-s);font-size:12.5px}
.chips button.on{box-shadow:var(--inset);color:var(--ink);background:var(--yellow-soft)}
.detail{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.kv{display:grid;grid-template-columns:120px 1fr;gap:8px 12px;font-size:13px}
.kv span{color:var(--ink-3);font-weight:600}
.tl{display:grid;gap:12px}.tl .it{border-radius:14px;box-shadow:var(--inset);padding:11px 14px;font-size:13px}
.tl small{color:var(--ink-3);display:block;margin-bottom:2px;font-weight:600}
.file{display:inline-flex;gap:6px;align-items:center;padding:4px 10px;border-radius:99px;box-shadow:var(--inset);font-size:11.5px;font-weight:700;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
.back{display:inline-block;margin-bottom:10px;color:var(--ink-3);font-weight:700;text-decoration:none;font-size:13px}
.menu a{display:flex;gap:12px;align-items:center;padding:14px;border-radius:16px;box-shadow:var(--raise-s);text-decoration:none;color:var(--ink);font-weight:700;margin-bottom:12px}
.menu a svg{width:22px;height:22px}
.rowx{display:grid;grid-template-columns:1.4fr repeat(3,90px) 36px;gap:8px;align-items:center;margin-bottom:8px}
.rowx input,.rowx select{margin:0;padding:9px 10px}
.x{border:0;background:none;color:var(--bad);font-weight:800;font-size:18px;cursor:pointer}
.sm-note{font-size:12px;color:var(--ink-3)}
.link{color:var(--ink);font-weight:700;text-decoration:underline;text-decoration-color:rgba(70,96,127,.55);text-decoration-thickness:1.5px;text-underline-offset:3px;display:inline-block;padding:10px 0;line-height:1.25}
.warnbox .link,.sm-note .link,.sub .link{display:inline;padding:0}
@media (max-width:900px){
  .detail{grid-template-columns:1fr}
  .rowx{grid-template-columns:1fr 1fr 1fr;}
  .rowx>:first-child{grid-column:1/-1}
  .rowx .x{justify-self:end}
}
.integ{padding:10px 16px}.integ svg{flex:none}
.btn svg{vertical-align:middle}
/* ---- v3: polar theme extras, import center, action center ---- */
.btns{display:flex;gap:10px;flex-wrap:wrap}
.btn:hover{color:#000}
.btn svg{width:17px;height:17px}
.act-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line)}
.act-row:first-of-type{border-top:0}.act-row span{flex:1}
.dot{width:10px;height:10px;border-radius:50%;flex:none;background:var(--slate-2)}
.dot.bad{background:var(--bad)}.dot.warn{background:var(--accent)}.dot.info{background:var(--slate-2)}
dialog.wide{width:min(1040px,96vw)}
.iw-top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.steps{display:flex;gap:18px;margin:14px 0 18px;font-size:12.5px;font-weight:700;color:var(--ink-3);flex-wrap:wrap}
.steps span{display:flex;gap:8px;align-items:center}.steps i{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:11px;box-shadow:var(--inset)}
.steps .on{color:var(--ink)}.steps .on i{background:var(--accent);color:#2b2200;box-shadow:var(--raise-s)}.steps .dn i{color:var(--ok)}
.drop{display:grid;gap:8px;place-items:center;text-align:center;padding:38px 20px;border-radius:22px;box-shadow:var(--inset);cursor:pointer;color:var(--ink-2);outline:none;border:2px dashed transparent;transition:.15s}
.drop:hover,.drop:focus,.drop.over{border-color:var(--accent)}
.iwbar{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:14px}
.inl{display:inline-flex;gap:8px;align-items:center;font-size:12.5px}.inl select,.inl input:not([type=checkbox]){margin:0;width:auto;padding:7px 10px}
.inl.chk input{width:auto;margin:0;box-shadow:none}
.iwcols{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:14px}
.iwcols select{font-size:12.5px;padding:9px 10px}
.iwopts{display:flex;gap:10px 22px;flex-wrap:wrap;padding:12px 14px;border-radius:16px;box-shadow:var(--inset)}
.iwtab{max-height:300px;overflow:auto;padding:6px 12px}
.iwtab th{position:sticky;top:0;background:var(--surface)}
.doneok{width:64px;height:64px;border-radius:50%;margin:10px auto 14px;display:grid;place-items:center;font-size:30px;color:var(--ok);box-shadow:var(--raise)}
.hub{display:flex;flex-direction:column;gap:10px;min-height:190px}
.hubic{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;box-shadow:var(--raise-s);color:var(--slate)}.hubic svg{width:22px;height:22px}
.iwpane{margin-bottom:12px}
code{background:var(--sel);padding:1px 5px;border-radius:5px;font-size:11.5px}
@media (max-width:900px){.iwcols{grid-template-columns:1fr}.iwtab{max-height:none}.btns .btn:not(.pri){padding:9px 12px;font-size:12.5px}dialog.wide{width:100vw}.top .btns{width:100%}}
a.btn{text-decoration:none;color:var(--ink)}a.btn.pri{color:#2b2200}

/* ---- v4: audit fixes ---- */
#live{position:fixed;left:50%;bottom:calc(var(--nav-h) + 24px);transform:translateX(-50%);z-index:2000;display:grid;gap:8px;max-width:92vw}
.toastbtn{border:0;background:var(--accent);color:#2b2200;font-weight:800;padding:8px 14px;border-radius:10px;cursor:pointer;min-height:36px}
:focus-visible{outline:2px solid var(--slate);outline-offset:2px}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:none}
.skip{position:absolute;left:-999px;top:8px;background:var(--ink);color:#fff;padding:10px 16px;border-radius:10px;z-index:3000}.skip:focus{left:12px}
main:focus{outline:none}
::placeholder{color:#5f6b80;opacity:1}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
kbd{font:700 11px/1 'Plus Jakarta Sans',system-ui;padding:3px 7px;border-radius:7px;box-shadow:var(--raise-s);color:var(--ink-2)}
tr[hidden]{display:none!important}
/* targets */
.btn.sm,.tabs button,.chips button{min-height:36px}
td select,.tbar select{min-height:36px}
.x{min-width:36px;min-height:36px}
input[type=checkbox]{width:24px!important;height:24px;accent-color:var(--slate)}
td.act .btn{margin-left:8px}td.act .btn:first-child{margin-left:0}
td.act .btn.danger{margin-left:20px}
.btn.danger{color:var(--bad)}
.btn.danger.fill{background:var(--bad);color:#fff;box-shadow:var(--raise-s)}
/* table bar */
.tbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:14px}
.tbar input,.tbar select{margin:0;width:auto;min-width:0;padding:9px 12px}.tbar .tq{width:min(280px,100%)}
.tc{margin-left:auto}.pg{display:flex;gap:6px}
th[data-s]{cursor:pointer;user-select:none}th[data-s]:hover{color:var(--ink)}
th[aria-sort=ascending]::after{content:' ▲';font-size:9px}th[aria-sort=descending]::after{content:' ▼';font-size:9px}
tr.nomatch td{text-align:center}
/* options + combo + tips */
details.opts{padding:0}
details.opts summary{list-style:none;display:inline-flex;gap:8px;align-items:center;min-height:44px;cursor:pointer}
details.opts summary::-webkit-details-marker{display:none}
details.opts summary::before{content:'+';font-weight:800;font-size:16px;line-height:1;color:var(--slate)}details.opts[open] summary::before{content:'−'}
details.opts summary small{color:var(--ink-3);font-weight:600}
details.opts[open]>.fg{margin-top:14px;padding:16px;border-radius:16px;background:rgba(255,255,255,.55);box-shadow:var(--raise-s)}
details.opts>.fg{margin-top:14px}
.tip{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;margin-left:6px;font:700 11px/1 'Plus Jakarta Sans',system-ui;font-style:normal;color:var(--slate);box-shadow:var(--raise-s);cursor:help;position:relative;vertical-align:middle}
.tip:hover::after,.tip:focus::after{content:attr(data-tip);position:absolute;left:50%;top:calc(100% + 8px);transform:translateX(-50%);width:max-content;max-width:min(250px,70vw);padding:9px 12px;border-radius:12px;background:#1f2937;color:#fff;font:500 12px/1.4 'Plus Jakarta Sans',system-ui;text-align:left;z-index:60;white-space:normal;font-style:normal}
/* palette */
.palq{margin:0 0 10px;font-size:15px;padding:14px 16px}
.pall{max-height:52vh;overflow:auto;display:grid;gap:2px}
.pg-h{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.6px;color:var(--ink-3);padding:10px 8px 4px}
.pal-it{display:flex;justify-content:space-between;gap:12px;border:0;background:none;text-align:left;padding:11px 12px;border-radius:12px;cursor:pointer;min-height:44px;align-items:center}
.pal-it span{color:var(--ink-3);font-size:12px}.pal-it.on,.pal-it:hover{box-shadow:var(--inset)}
.sidesearch{display:flex;gap:10px;align-items:center;border:0;background:var(--surface);box-shadow:var(--inset);border-radius:14px;padding:11px 14px;margin:0 4px 16px;color:var(--ink-2);cursor:pointer;font-weight:600}
.sidesearch span{flex:1;text-align:left}
.msearch{display:none}
.busy{display:flex;gap:10px;align-items:center;margin:8px 0}
.spin{width:16px;height:16px;border-radius:50%;border:2px solid var(--sh-d);border-top-color:var(--slate);animation:sp .8s linear infinite;display:inline-block}
@keyframes sp{to{transform:rotate(360deg)}}
.combo{margin-top:6px}
@media (max-width:900px){
  main{padding-bottom:calc(var(--nav-h) + 120px);padding-top:22px}
  .btn,.btn.sm,.tabs button,.chips button,td select,.tbar select,.tbar input,.x,.toastbtn{min-height:44px}
  td.act{gap:10px}td.act .btn,td.act .btn.danger{margin-left:0}
  .msearch{display:grid;place-items:center;position:absolute;top:12px;right:14px;width:44px;height:44px;border:0;border-radius:14px;background:var(--surface);box-shadow:var(--raise-s);color:var(--ink);z-index:20}
  .top h1{padding-right:52px}
  #live{bottom:calc(var(--nav-h) + 100px)}
  .tbar .tc{margin-left:0;width:100%}
  th[data-s]{display:none}
}
@media (min-width:901px){
  td[data-l=Ref],td[data-l=No\.],td[data-l=Code]{white-space:nowrap}
  td.act{white-space:nowrap}td.act .btn.danger{margin-left:14px}
  .pill{white-space:nowrap}
  main{padding-left:28px;padding-right:28px}
  td,th{padding-left:8px;padding-right:8px}
}
/* ---- v5: batch bar, sync status, selection column ---- */
#bbar{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:1500;display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:center;padding:12px 18px;border-radius:20px;background:var(--surface);box-shadow:var(--raise),0 14px 40px rgba(30,45,75,.28);max-width:94vw}
th.selc,td.selc{width:44px;padding-right:0}
td.selc input,th.selc input{margin:0}
.sync{font-size:11px;line-height:1.5;color:var(--ink-3)}.sync .stale{color:var(--warn);font-weight:700}
@media (max-width:900px){#bbar{bottom:calc(var(--nav-h) + 24px)}td.selc{justify-content:flex-start}}
[hidden]{display:none!important}
main{padding-bottom:110px}
@media (max-width:900px){#bbar{left:12px;right:12px;transform:none;max-width:none;justify-content:flex-start;gap:8px;padding:10px 12px;border-radius:18px}#bbar b{flex:1 1 55%;font-size:13px}#bbar .sm-note{flex:1 1 35%;text-align:right;font-size:12px}#bbar .btn{flex:1 1 auto;justify-content:center;padding:8px 10px}}

/* ---- v6: weekly close, setup group, demo bar, totals ---- */
.nav .navgrp summary{display:flex;gap:12px;align-items:center;padding:12px 14px;border-radius:14px;color:var(--ink-2);font-weight:600;cursor:pointer;list-style:none;margin-bottom:6px;min-height:44px}
.nav .navgrp summary::-webkit-details-marker{display:none}
.nav .navgrp summary::before{content:'▸';width:20px;text-align:center;color:var(--slate)}
.nav .navgrp[open] summary::before{content:'▾'}
.nav .navgrp summary:hover{color:var(--ink)}
.nav .navgrp a{margin-left:10px}
.demobar{display:flex;justify-content:space-between;align-items:center;gap:12px 20px;flex-wrap:wrap;border-left:4px solid var(--accent);border-radius:14px;box-shadow:var(--inset);padding:10px 16px;margin-bottom:18px;font-size:13px;color:var(--ink-2)}
.demobar b{color:var(--ink)}
tfoot th,tfoot td{border-top:2px solid var(--line);padding-top:14px;padding-bottom:14px;font-size:13px;color:var(--ink);text-transform:none;letter-spacing:0}
tfoot th{text-align:left}
.btns .inl select{min-height:36px}
@media (max-width:900px){
  tfoot,tfoot tr,tfoot th{display:block}tfoot td:empty{display:none}
  tfoot tr{background:var(--surface);box-shadow:var(--raise-s);border-radius:18px;padding:12px 14px;margin-bottom:14px}
  tfoot th,tfoot td{border:0;padding:4px 0}
  .btns .inl select{min-height:44px}
}
.foot .link{padding:12px 0}

.crumbs{font-size:13px;color:var(--ink-3);margin-bottom:12px;display:flex;gap:6px;flex-wrap:wrap;align-items:center}.crumbs a{color:var(--ink-2);text-decoration:none;padding:4px 2px}.crumbs a:hover{text-decoration:underline}.crumbs b{color:var(--ink);font-weight:700}

/* Settings sections that open and close */
details.fold>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;cursor:pointer}
details.fold>summary::-webkit-details-marker{display:none}
details.fold>summary h2{margin:0;flex:1}
details.fold>summary::after{content:'▸';font-size:15px;color:var(--slate);transition:transform .15s}
details.fold[open]>summary::after{transform:rotate(90deg)}
details.fold[open]>summary{margin-bottom:12px}
details.fold>summary:focus-visible{outline:2px solid var(--slate);outline-offset:4px;border-radius:10px}
main .grid.two:has(details.fold){align-items:start}
@media (prefers-reduced-motion:reduce){details.fold>summary::after{transition:none}}
/* v0.12: pay details with Copy buttons, attached files */
.pay-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 0;border-top:1px solid rgba(0,0,0,.05)}
.pay-row:first-child{border-top:0}
.btn.cp{min-width:76px;flex:none}
/* v0.12.1 controls: dropdown, pagination, drop zone, form feedback */
.dd{position:relative;display:block;margin-top:6px}
.dd.dd-inline{display:inline-block;margin-top:0;vertical-align:middle}
.dd-native{position:absolute!important;opacity:0;pointer-events:none;width:1px!important;height:1px!important;margin:0!important;padding:0!important;overflow:hidden}
.ddb{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;border:0;background:var(--surface);padding:11px 14px;border-radius:13px;box-shadow:var(--inset);cursor:pointer;text-align:left;font-weight:600;min-width:0}
.dd-inline .ddb{width:auto;min-width:120px}
.ddb .ddt{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ddb .ddt.ddph{color:var(--ink-3);font-weight:500}
.ddb svg{flex:none;color:var(--slate);transition:transform .15s}
.ddb[aria-expanded=true] svg{transform:rotate(180deg)}
.ddb:focus-visible{outline:none;box-shadow:var(--inset),0 0 0 2px var(--slate)}
.ddb:disabled{opacity:.55;cursor:not-allowed}
.ddp{position:fixed;z-index:2147483000;background:var(--surface);border-radius:16px;box-shadow:var(--raise),0 18px 40px rgba(30,45,75,.2);padding:6px;display:flex;flex-direction:column;gap:4px}
.ddq{margin:0!important;padding:10px 12px!important}
.ddl{overflow:auto;display:flex;flex-direction:column}
.ddo{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;min-height:44px;border-top:1px solid var(--line);cursor:pointer;font-weight:500;color:var(--ink-2);border-radius:0}
.ddo:first-child{border-top:0;border-radius:12px 12px 0 0}.ddo:last-child{border-radius:0 0 12px 12px}.ddo:only-child{border-radius:12px}
.ddo.on{box-shadow:var(--inset);background:var(--sel);color:var(--ink)}
.ddo.sel{font-weight:800;color:var(--ink)}.ddo.sel svg{color:var(--slate);flex:none}
.ddo.dis{opacity:.45;cursor:not-allowed}.ddo.none{color:var(--ink-3);cursor:default;justify-content:center}
/* pagination */
.pg{display:inline-flex;gap:4px;align-items:center;padding:5px;border-radius:15px;box-shadow:var(--raise-s)}
.pgb{border:0;background:transparent;min-width:36px;height:36px;padding:0 8px;border-radius:11px;font-weight:700;color:var(--slate);cursor:pointer;display:inline-grid;place-items:center;position:relative}
.pgb:hover:not(:disabled){color:var(--ink)}
.pgb:active:not(:disabled){box-shadow:var(--inset)}
.pgb.on{background:var(--accent);color:#2b2200;box-shadow:var(--raise-s),0 0 0 1px rgba(185,138,0,.25)}
.pgb.on::after{content:'';position:absolute;bottom:4px;left:50%;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:#2b2200}
.pgb:disabled{opacity:.35;cursor:not-allowed}
.pgb:focus-visible{outline:2px solid var(--slate);outline-offset:1px}
.pgd{color:var(--ink-3);padding:0 2px}
/* drop zone */
.drop{display:grid;gap:2px;justify-items:center;text-align:center;padding:18px 14px;border-radius:16px;border:2px dashed var(--slate-2);color:var(--ink-2);cursor:pointer;background:rgba(255,255,255,.35);transition:.15s}
.drop span{font-size:12px;color:var(--ink-3)}
.drop:hover,.drop:focus-visible,.drop.over{border-color:var(--slate);background:var(--sel);outline:none}
.drop.over{box-shadow:var(--inset)}
.drop.busy-on{pointer-events:none;display:flex;gap:10px;justify-content:center;align-items:center}
/* form feedback */
.ferr{display:block;margin-top:5px;color:var(--bad);font-weight:700;font-size:12px}
.bad-f{box-shadow:var(--inset),0 0 0 2px var(--bad)!important}
.moneyhint{display:block;margin-top:5px;color:var(--ink-3);font-weight:700;font-size:12px;min-height:0}
.moneyhint:empty{display:none}
.dchips{display:flex;gap:6px;margin-top:6px}
.dchips .btn.sm{min-height:30px;padding:4px 10px}
@media (max-width:900px){.pgb{min-width:44px;height:44px}.dchips .btn.sm{min-height:36px}}
/* bulk policy import */
.pilist{display:grid;gap:10px;margin:10px 0;max-height:52vh;overflow:auto;padding:4px}
.pirow{padding:12px 14px;border-radius:16px;box-shadow:var(--raise-s)}
.pirow.check{box-shadow:var(--raise-s),0 0 0 2px rgba(133,80,0,.25)}.pirow.skip{opacity:.55}
.pihead{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.pifn{font-weight:700;flex:1;min-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.piwhy{color:var(--warn);font-weight:600;font-size:12.5px;margin-top:6px}
label.pref input,label.pref .ddb{box-shadow:var(--inset),0 0 0 2px rgba(246,194,26,.75)}
/* dropdown: explicit sizes (no reliance on computed styles) and Safari resets */
.ddb{-webkit-appearance:none;appearance:none;font:inherit;line-height:1.3;border:0;margin:0}
.ddb .ddt{min-width:0}
.inl .dd{display:inline-block;margin:0}
.inl .ddb,.tbar .ddb,td .ddb{width:auto;min-width:120px;padding:7px 12px;min-height:36px}
.tbar .dd{margin:0}
@media (max-width:900px){.inl .ddb,.tbar .ddb,td .ddb{min-height:44px}}
.rowx .dd,.tbar .dd,.inl .dd{margin:0}
.rowx .ddb{padding:9px 10px}.iwcols .ddb{font-size:12.5px;padding:9px 10px}
.tbar .ddb{padding:9px 12px;min-height:40px}
.drop:focus-visible{border-color:var(--slate-2);outline:2px solid var(--slate);outline-offset:3px;background:rgba(255,255,255,.35)}
.drop:hover,.drop.over{border-color:var(--slate)}
/* notifications bell + task bar */
.brand{position:relative}.bell{margin-left:auto;position:relative;border:0;background:var(--surface);width:42px;height:42px;border-radius:14px;box-shadow:var(--raise-s);cursor:pointer;display:grid;place-items:center;color:var(--slate);flex:none}
.bell:active{box-shadow:var(--inset)}.bell:focus-visible{outline:2px solid var(--slate);outline-offset:2px}
.bell .bn{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:var(--warn);color:#fff;font:800 11px/20px 'Plus Jakarta Sans',system-ui;text-align:center}
.bell.alert{color:#3a2e00;background:var(--yellow)}.bell.alert .bn{background:#3a2e00;color:var(--yellow)}   /* urgent = a calm yellow bell, no blinking, no ringing */
@keyframes bellblink{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.35)}}   /* opacity + transform only: no repaint per frame */
@keyframes bellring{0%,60%,100%{transform:rotate(0)}10%{transform:rotate(14deg)}20%{transform:rotate(-12deg)}30%{transform:rotate(8deg)}40%{transform:rotate(-5deg)}}

.mbell{position:fixed;top:12px;right:66px;z-index:40;display:none}
@media (max-width:900px){.mbell{display:grid!important}.side .bell{display:none}}
.bellpanel{position:fixed;z-index:2147482000;left:20px;top:84px;width:min(440px,calc(100vw - 24px));max-height:min(70vh,640px);overflow:auto;background:var(--surface);border-radius:22px;box-shadow:var(--raise),0 24px 60px rgba(30,45,75,.25);padding:16px 18px}
@media (max-width:900px){.bellpanel{left:12px;right:12px;top:64px;width:auto}}
.bph{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;font-size:16px}
.bpg{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.6px;color:var(--ink-3);padding:12px 2px 4px}
.taskbar{position:fixed;top:0;left:0;right:0;z-index:2147483100;display:flex;flex-direction:column;align-items:center;pointer-events:none;transition:opacity .3s}
.taskbar.out{opacity:0}
.taskbar .tbm{margin-top:10px;padding:8px 16px;border-radius:14px;background:var(--surface);box-shadow:var(--raise-s);font-weight:800;font-size:13px;color:var(--ok)}
.taskbar.run .tbm{color:var(--slate)}.taskbar.fail .tbm{color:var(--bad)}
.taskbar .tbt{position:absolute;top:0;left:0;right:0;height:4px;background:rgba(70,96,127,.12)}
.taskbar .tbt i{display:block;height:100%;width:0;background:var(--ok);border-radius:0 3px 3px 0}
.taskbar.run .tbt i{width:35%;background:var(--slate);animation:tbrun 1.1s ease-in-out infinite alternate}
.taskbar.done .tbt i{animation:tbfill 2s linear forwards}.taskbar.fail .tbt i{width:100%;background:var(--bad)}
@keyframes tbfill{from{width:0}to{width:100%}}@keyframes tbrun{from{transform:translateX(0)}to{transform:translateX(185.7%)}}   /* 65/35 of its own width = same travel as before, without layout */
@media (prefers-reduced-motion:reduce){.taskbar .tbt i{animation:none!important}.taskbar.done .tbt i{width:100%}}
.draftrow{cursor:pointer;border-radius:12px;padding:6px 10px;margin:-6px -10px;flex:1;min-width:0;transition:.15s}
.draftrow:hover,.draftrow:focus-visible{box-shadow:var(--inset);outline:none}

/* table tools: date range, tick boxes, export dialog, new row */
.tbar .dr{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.tbar .dr input{min-height:36px}
.tbar .xall{display:inline-flex;align-items:center;gap:6px;cursor:pointer}
input.xsel,.tbar .xall input{width:18px;height:18px;margin:0 8px 0 0;vertical-align:middle;accent-color:var(--ink-2,#444);cursor:pointer}
.expgrp{display:grid;gap:8px;margin:6px 0 14px}.expopt{display:flex;gap:10px;align-items:center;padding:10px 12px;border-radius:12px;background:var(--bg,#f1f4f9);cursor:pointer}
.expopt input{width:18px;height:18px;margin:0}.expopt span{display:grid}.expopt small{color:var(--ink-3,#777)}.expopt.off{opacity:.5;cursor:not-allowed}
@keyframes justin{0%{background:#fff3b0}100%{background:transparent}}
tr.just-added>td{animation:justin 4.5s ease-out;box-shadow:inset 3px 0 0 #f5d642}
@media (max-width:900px){.tbar .dr input,input.xsel{min-height:44px}input.xsel{width:22px;height:22px}}
.lbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:12px}.lbar .sm-note{flex:1 1 180px}
/* Lines window: ticked total + actions stay on top while the list scrolls */
.lsum{position:sticky;top:-26px;z-index:3;display:flex;gap:14px;flex-wrap:wrap;align-items:center;justify-content:space-between;margin:12px -26px 0;padding:14px 26px;background:var(--surface);box-shadow:0 10px 16px -14px rgba(30,45,75,.35)}
.lsum-t{display:flex;flex-direction:column;gap:2px;min-width:200px}.lsum-v{font-size:26px;font-weight:800;line-height:1.15;color:var(--ink)}
.lsum-a{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
#ltab td.act{white-space:nowrap}
#bbar .bsum{font-size:17px;font-weight:800;color:var(--ink)}
tr.lcx>td{opacity:.55}tr.lcx>td:first-child{opacity:1}

.ps-sort{display:none;margin:0 0 10px;max-width:100%}
@media (max-width:900px){.ps-sort{display:block;min-height:44px}}

/* ---------- floating dock (desktop, v0.20): icons only, a bubble with the name, icons grow under the pointer like the macOS Dock ---------- */
.side .lbl,.side .agency{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.side .dki{width:20px;height:20px}
@media (min-width:901px){
  .app{grid-template-columns:104px minmax(0,1fr)}
  .app>main{grid-column:2}   /* the dock is fixed, so it no longer takes the first grid cell */
  .side{position:fixed;left:16px;top:50%;transform:translateY(-50%);height:auto;max-height:calc(100vh - 32px);width:68px;box-sizing:border-box;padding:12px 0;border-radius:26px;background:var(--surface);box-shadow:var(--raise);align-items:center;gap:2px;z-index:30}
  .side .brand{flex-direction:column;align-items:center;gap:6px;padding:0 0 6px}
  .side .brand>div{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .side .flogo{width:36px;height:36px}
  .side .bell,.sidesearch,.side .nav>a,.side .dk,.side #sync{position:relative;width:44px;height:40px;margin:0;padding:0;display:grid;place-items:center;border:0;border-radius:13px;background:none;box-shadow:none;color:var(--ink-2);cursor:pointer;text-decoration:none;flex:none}
  .side .bell{color:var(--slate)}
  .sidesearch span,.sidesearch kbd,.side br.nodk{display:none}
  .side .nav{display:flex;flex-direction:column;align-items:center;gap:2px;margin:4px 0}
  .side .nav>a svg,.side .dk svg,.side .bell svg,.sidesearch svg{width:20px;height:20px;transform:scale(var(--s,1));transform-origin:left center;transition:transform .16s cubic-bezier(.2,.8,.2,1)}
  .side .nav>a:hover,.side .dk:hover,.sidesearch:hover,.side .bell:hover{color:var(--ink)}
  .side .nav>a.on,.side .dk.on{color:var(--ink);box-shadow:var(--inset)}
  .side .nav>a.on::before,.side .dk.on::before{content:'';position:absolute;left:-10px;top:50%;width:4px;height:4px;margin-top:-2px;border-radius:50%;background:var(--slate)}
  .side .nav>a.on svg,.side .dk.on svg{color:var(--slate)}
  .dsep{width:26px;height:1px;background:var(--line);margin:6px 0;flex:none}
  .side .foot{margin-top:4px;padding:0;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:12px}
  .side #signout{min-height:0}
  /* save status = a small dot; its text is the bubble */
  .side #sync{font-size:0;color:transparent}
  .side #sync::before{content:'';width:9px;height:9px;border-radius:50%;background:#2f9e67;box-shadow:0 0 0 3px rgba(47,158,103,.15);transform:scale(var(--s,1));transition:transform .16s}
  .side #sync.warn::before{background:#d97706;box-shadow:0 0 0 3px rgba(217,119,6,.18)}
  /* the bubble */
  .side [data-tip]::after{content:attr(data-tip);position:absolute;left:calc(100% + 14px + 20px * (var(--s,1) - 1));top:50%;transform:translate(-4px,-50%);opacity:0;pointer-events:none;background:#1f2937;color:#fff;font-size:12px;font-weight:600;line-height:1;letter-spacing:.1px;padding:8px 10px;border-radius:8px;white-space:nowrap;box-shadow:0 8px 20px rgba(15,23,42,.18);transition:opacity .14s,transform .14s;z-index:40}
  .side [data-tip]:hover::after,.side [data-tip]:focus-visible::after{opacity:1;transform:translate(0,-50%)}
  .side .dgrp.open>.dk::after{opacity:0}
  /* Setup fly-out */
  .dgrp{position:relative}
  .dfly{position:absolute;left:calc(100% + 14px);top:50%;transform:translate(-6px,-50%) scale(.98);opacity:0;pointer-events:none;min-width:190px;padding:8px;border-radius:16px;background:var(--surface);box-shadow:var(--raise);display:flex;flex-direction:column;gap:2px;transition:opacity .16s,transform .16s cubic-bezier(.2,.8,.2,1);z-index:41}
  .dgrp.open .dfly{opacity:1;pointer-events:auto;transform:translate(0,-50%)}
  .dfly a{display:flex;gap:10px;align-items:center;padding:9px 12px;border-radius:11px;color:var(--ink-2);text-decoration:none;font-weight:600;font-size:13px}
  .dfly a svg{width:18px;height:18px}
  .dfly a:hover{color:var(--ink);background:var(--sel)}.dfly a.on{color:var(--ink);box-shadow:var(--inset)}
  main{max-width:1400px}
}
@media (min-width:901px) and (prefers-reduced-motion:reduce){.side svg,.side #sync::before,.side [data-tip]::after,.dfly{transition:none}}

/* ---------- Lines window (v0.20): segmented tabs, compact two-level rows, amount and status on the right ---------- */
#ltabs{display:inline-flex;gap:2px;padding:4px;border-radius:13px;background:rgba(26,34,48,.06);flex-wrap:wrap}
#ltabs button{box-shadow:none;background:none;border-radius:10px;padding:7px 14px;color:var(--ink-2);font-weight:600;transition:background .18s,color .18s,box-shadow .18s}
#ltabs button small{color:var(--ink-3);font-weight:500;margin-left:3px}
#ltabs button.on{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(16,24,40,.08),0 0 0 1px rgba(16,24,40,.04)}
#ltab thead th{font-size:12px}
#ltab tbody td{padding:14px 10px}
#ltab .lmain b{display:block;font-weight:600;letter-spacing:.2px}
#ltab .lmain small{display:block;color:var(--ink-3);font-size:13px;margin-top:2px}
#ltab .lright{text-align:right;white-space:nowrap}
#ltab .lright b{display:block;font-weight:700;font-size:15px;margin-bottom:5px}
.lp{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 9px;border-radius:7px;font-size:12px;font-weight:600;white-space:nowrap}
.lp i{width:6px;height:6px;border-radius:50%;background:currentColor}
.lp-due{background:#fdf0eb;color:#b5401d}.lp-vou{background:#eef3fc;color:#2e5bba}.lp-paid{background:#eaf6ef;color:#17794a}.lp-mute{background:rgba(26,34,48,.06);color:var(--ink-2)}
@media (prefers-reduced-motion:reduce){#ltabs button{transition:none}}

/* ---------- dock, v0.20.1: one colour per page so each icon is recognised at a glance; the fly-out grows too; bell top right ---------- */
@media (min-width:901px){
  .side [data-k="dashboard"]{--c:#3d6fd6}.side [data-k="clients"]{--c:#0f8f84}.side [data-k="sales"]{--c:#e0602c}.side [data-k="reconcile"]{--c:#7a5bd4}
  .side [data-k="commissions"]{--c:#16884f}.side [data-k="vouchers"]{--c:#c4860a}.side [data-k="agents"]{--c:#d1477a}.side [data-k="reports"]{--c:#46607f}
  .side [data-k="analysis"]{--c:#4f55e0}.side [data-k="docs"]{--c:#b5562f}.side [data-k="providers"]{--c:#2f7fb8}.side [data-k="import"]{--c:#0f8f84}.side [data-k="settings"]{--c:#6b7a90}
  .side [data-k="history"]{--c:#8a6d3b}.side [data-k="trash"]{--c:#c0453a}
  .side .nav [data-k] svg,.dfly [data-k] svg{color:var(--c,var(--ink-2))}
  .side .nav>a.on svg,.dfly a.on svg{color:var(--c,var(--slate))}
  .side .nav>a.on::before{background:var(--c,var(--slate))}
  /* the hovered row never grows past its panel (Yasmin, 25/11): the row box stays put, only its icon swells (at most +30 %) and the label slides a little */
  .dfly{overflow:hidden}
  .dfly a{transition:background .15s}
  .dfly a svg{transform:scale(calc(1 + (var(--s,1) - 1) * .6));transform-origin:center;transition:transform .16s cubic-bezier(.2,.8,.2,1)}
  .dfly a span{display:inline-block;transform:translateX(calc((var(--s,1) - 1) * 6px));transition:transform .16s cubic-bezier(.2,.8,.2,1)}
  /* notifications: top right of the page, not in the dock */
  .side .bell{display:none}
  .mbell{display:grid!important;place-items:center;top:22px;right:24px;width:44px;height:44px;border:0;border-radius:14px;background:var(--surface);box-shadow:var(--raise-s);color:var(--slate);cursor:pointer}
  .bellpanel{left:auto;right:24px;top:76px}
}
@media (min-width:901px) and (prefers-reduced-motion:reduce){.dfly a,.dfly a svg,.dfly a span{transition:none;transform:none}}

/* ---------- search bar fixed at the top of every page (desktop), bell at its right ---------- */
.topbar{display:none}
@media (min-width:901px){
  .topbar:not([hidden]){display:flex}
  .topbar{position:fixed;top:0;left:104px;right:0;height:76px;align-items:center;gap:12px;padding:0 84px 0 34px;z-index:25;background:color-mix(in srgb,var(--surface) 82%,transparent);-webkit-backdrop-filter:blur(14px) saturate(1.2);backdrop-filter:blur(14px) saturate(1.2)}
  .tsearch{flex:0 1 500px;display:flex;align-items:center;gap:10px;height:38px;padding:0 13px;border:0;border-radius:13px;font-size:13.5px;background:var(--surface);box-shadow:var(--inset);color:var(--ink-3);cursor:text;font-weight:500;text-align:left}
  .tsearch span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .tsearch kbd{font:600 11px/1 inherit;color:var(--ink-3);border-radius:6px;padding:4px 6px;box-shadow:var(--raise-s)}
  .tsearch:hover{color:var(--ink-2)}
  .side .sidesearch{display:none}
  .mbell{top:16px;right:24px;z-index:26}
  .bellpanel{top:76px}
  .app>main{padding-top:92px}
}
body:has(.app[hidden]) .mbell,body:has(.app[hidden]) .topbar{display:none!important}   /* nothing of the app chrome on the sign-in screen */

/* ---------- the yellow drop under the active tab / chip ---------- */
.liq{position:relative;isolation:isolate}
.liqb{position:absolute;left:0;top:0;width:0;height:0;border-radius:12px;background:rgba(246,194,26,.34);mix-blend-mode:multiply;pointer-events:none;z-index:2;will-change:transform,width}
.liqb.drop{border-radius:999px}
.liq>button.on,.liq>a.on{background:var(--surface)}
#ltabs.liq>button.on{background:#fff}
@media (prefers-reduced-motion:reduce){.liqb{transition:none!important}}
/* Overview on one screen, flat (v0.20.3): one raised surface per block, hairlines inside, no card in a card */
.ovtop{margin-bottom:18px;align-items:center}
.ovtop .btns{align-items:center;gap:10px;flex-wrap:wrap}
.ovtop .chips{margin:0}
.ovp{background:var(--surface);border-radius:20px;box-shadow:var(--raise);margin:0 0 18px}
.ovflow{display:grid;grid-template-columns:repeat(4,1fr)}
.ovs{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:12px;align-items:baseline;padding:16px 22px;text-decoration:none;color:inherit;border-radius:20px;transition:background .15s}
.ovs+.ovs{border-left:1px solid var(--line);border-radius:0}
.ovs:last-child{border-radius:0 20px 20px 0}.ovs:first-child{border-radius:20px 0 0 20px}
.ovs:hover{background:rgba(255,255,255,.55)}
.ovn{grid-row:span 2;font-size:28px;font-weight:800;letter-spacing:-.03em;line-height:1;font-variant-numeric:tabular-nums;align-self:center;min-width:44px}
.ovl{font-size:13px;font-weight:700;display:flex;align-items:center;gap:6px}
.ovl i{font-style:normal;font-size:10px;font-weight:800;color:var(--ink-3);width:16px;height:16px;border-radius:50%;border:1px solid var(--line);display:grid;place-items:center}
.ovs small{font-size:12px;color:var(--ink-3)}
.kpis.ovp{gap:0;padding:0}
.kpis.ovp .kpi{padding:18px 22px;box-shadow:none;background:none;border-radius:0}
.kpis.ovp .kpi+.kpi{border-left:1px solid var(--line)}
.kpis.ovp .kpi .v{font-size:22px;font-variant-numeric:tabular-nums}
.kpis.ovp .kpi .d{color:var(--ink-3)}
.ovrow{display:grid;grid-template-columns:minmax(260px,1fr) 2fr;gap:18px;align-items:start}
.ovh{display:flex;align-items:baseline;justify-content:space-between;padding:16px 22px 8px}
.ovh h2{font-size:15px;margin:0}.ovh small{color:var(--ink-3);font-weight:600;font-size:12px}
.ovren{padding-bottom:8px}
.ovr{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto;gap:14px;align-items:center;padding:9px 22px;text-decoration:none;color:inherit;border-top:1px solid var(--line);font-size:13px}
.ovr:hover{background:rgba(255,255,255,.55)}
.ovr b{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ovr span{color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12.5px}
.ovr em{font-style:normal;font-weight:700;font-size:12px;padding:2px 8px;border-radius:999px}
.ovr em.bad{color:var(--bad);background:rgba(169,50,37,.09)}.ovr em.warn{color:var(--warn);background:rgba(133,80,0,.09)}
.ovren .empty{padding:14px 22px}
/* renewals forecast: rounded figure + trend */
.rcard{display:flex;flex-direction:column;gap:6px;padding:16px 22px 18px}
.rcard>small{color:var(--ink-3);font-weight:600;font-size:12px}
.rrow{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.rv{font-size:32px;font-weight:800;color:var(--ink);letter-spacing:-.03em;line-height:1.1}
.rtr{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:700;padding:3px 8px 3px 6px;border-radius:999px}
.rtr svg{width:14px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.rtr-up{color:var(--ok);background:rgba(27,107,73,.1)}
.rtr-down{color:var(--bad);background:rgba(169,50,37,.1)}
.rtr-flat{color:var(--ink-3);background:rgba(86,98,119,.1)}
.rsub{color:var(--ink-3);font-size:12.5px}
@media (max-width:900px){
  .ovflow{grid-template-columns:1fr 1fr}.ovs:nth-child(3){border-left:0}.ovs:nth-child(n+3){border-top:1px solid var(--line)}.ovs{border-radius:0!important}
  .kpis.ovp .kpi:nth-child(3){border-left:0}.kpis.ovp .kpi:nth-child(n+3){border-top:1px solid var(--line)}
  .ovrow{grid-template-columns:1fr}.ovr{grid-template-columns:1fr auto}.ovr span{display:none}
}
.ovrow{align-items:stretch}.ovrow>.ovp{margin-bottom:18px}.rcard{justify-content:center}
/* action strip: label, money, context (v0.20.3) */
.ovs{display:flex;flex-direction:column;gap:4px;align-items:flex-start}
.ovs .ovl{font-size:12px;font-weight:600;color:var(--ink-3)}
.ovs .ovn{font-size:26px;min-width:0}
.ovs small{color:var(--ink-2)}.ovs .ovbad{color:var(--bad)}
.ovflow{grid-template-columns:repeat(3,1fr)}
.ovs .ovn{align-self:flex-start}
.ovcol{display:flex;flex-direction:column;gap:18px}.ovcol>.ovp{margin:0;flex:1}
@media (max-width:900px){.ovflow{grid-template-columns:1fr}.ovs+.ovs{border-left:0;border-top:1px solid var(--line)}}
/* hierarchy: 1 needs you (strong) · 2 the year (quiet) · 3 coming up */
.ovk{font-size:11.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);margin:0 0 8px 4px}
.ovs{padding:18px 24px}
.ovs .ovn{font-size:32px;margin-top:2px}
.ovs .ovl{font-size:13px;color:var(--ink-2);font-weight:700}
.ovgo{margin-top:6px;font-size:12.5px;font-weight:700;color:var(--slate);opacity:.75;transition:opacity .15s,transform .15s}
.ovs:hover .ovgo{opacity:1;transform:translateX(3px)}
.kpis.ovp{box-shadow:var(--raise-s)}
.kpis.ovp .kpi{padding:14px 22px}
.kpis.ovp .kpi .v{font-size:19px;margin-top:4px}
.ovrow{gap:18px}.ovcol{gap:18px}
/* v0.20.3 final: tighter rhythm so the Overview fits a 1280×800 screen */
.ovtop{margin-bottom:10px}.ovk{margin:0 0 6px 4px}.ovp{margin-bottom:14px}
.ovs{position:relative;padding:14px 24px 16px}.ovgo{position:absolute;top:14px;right:22px;margin:0}
.kpis.ovp .kpi{padding:12px 22px}
.ovrow{grid-template-columns:1fr}
.ovh{align-items:center;padding:12px 22px 10px}.ovh>div:first-child{display:flex;align-items:baseline;gap:10px}
.ovh .rcard{display:flex;flex-direction:row;align-items:center;gap:12px;padding:0}
.ovh .rcard>small{text-align:right;line-height:1.35;font-weight:700;color:var(--ink-2)}.ovh .rsub{font-weight:500;font-size:11.5px}
.ovh .rv{font-size:24px}
.ovr{padding:8px 22px}
.ovr>*{text-align:left;justify-self:start}.ovr em{justify-self:end}
/* dock: 20 px between the logo and the icons, a hairline in the middle (v0.20.3) */
@media (min-width:901px){
  .side .brand{padding:0 0 10px;margin-bottom:10px;position:relative}
  .side .brand::after{content:"";position:absolute;left:50%;bottom:0;width:28px;height:1px;margin-left:-14px;background:var(--line)}
  .side .nav{margin-top:0}
}
@media (max-width:900px){ .kpis.ovp .kpi .v{font-size:15.5px} .kpis.ovp .kpi{padding:12px 16px} }
.backb{display:inline-flex;align-items:center;gap:4px;margin:0 0 10px -6px;padding:6px 10px 6px 6px;border-radius:10px;font-size:13px;font-weight:700;color:var(--ink-2);text-decoration:none;transition:background .15s,color .15s}
.backb svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.backb:hover{background:rgba(255,255,255,.6);color:var(--ink)}.backb:hover svg{transform:translateX(-2px)}
/* breathing room (v0.20.3): +20 px between the dock and the content, content uses the width up to 1680 px */
@media (min-width:901px){ .app>main{padding-left:54px;padding-right:40px;max-width:1680px} }
/* Notes: one notepad for the whole desk, at the bottom of the screen (like Notion) */
.notesbtn{position:fixed;right:24px;bottom:22px;z-index:40;display:inline-flex;align-items:center;gap:8px;padding:10px 16px 10px 13px;border:0;border-radius:999px;background:var(--surface);box-shadow:var(--raise);font:inherit;font-size:13px;font-weight:700;color:var(--ink-2);cursor:pointer;transition:transform .15s,color .15s}
.notesbtn:hover{color:var(--ink);transform:translateY(-1px)}
.notesbtn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.notesbtn .nc{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--accent);color:#2b2200;font-size:11px;display:grid;place-items:center}
.notespanel{position:fixed;right:24px;bottom:76px;z-index:41;width:min(380px,calc(100vw - 32px));max-height:min(520px,70vh);display:flex;flex-direction:column;background:var(--surface);border-radius:20px;box-shadow:0 18px 50px rgba(26,34,48,.18),var(--raise-s);animation:npUp .22s cubic-bezier(.2,.8,.2,1)}
.notespanel[hidden]{display:none}
@keyframes npUp{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
.notespanel header{display:flex;align-items:baseline;gap:10px;padding:16px 16px 8px 20px}
.notespanel header b{font-size:15px}.notespanel header small{color:var(--ink-3);font-size:11.5px;flex:1}
.notespanel .nx{border:0;background:none;color:var(--ink-3);font-size:18px;line-height:1;width:28px;height:28px;border-radius:8px;cursor:pointer}
.notespanel .nx:hover{background:rgba(255,255,255,.7);color:var(--ink)}
.notespanel form{padding:4px 16px 10px}
.notespanel input{width:100%;box-sizing:border-box;border:0;border-radius:12px;padding:11px 14px;background:#fff;box-shadow:inset 0 0 0 1px var(--line);font:inherit;font-size:13.5px}
.notespanel input:focus{outline:none;box-shadow:inset 0 0 0 2px var(--slate-2)}
.notespanel ul{list-style:none;margin:0;padding:0 8px 10px;overflow:auto}
.notespanel li{display:grid;grid-template-columns:22px 1fr auto 28px;gap:10px;align-items:start;padding:8px 8px 8px 12px;border-radius:10px;font-size:13.5px}
.notespanel li:hover{background:rgba(255,255,255,.6)}
.notespanel li .tx{white-space:pre-wrap;overflow-wrap:anywhere;padding-top:1px}
.notespanel li small{color:var(--ink-3);font-size:11px;padding-top:3px}
.notespanel li .nx{opacity:0}.notespanel li:hover .nx,.notespanel li .nx:focus{opacity:1}
.notespanel .ck{width:18px;height:18px;margin-top:1px;border-radius:6px;border:1.5px solid var(--slate-2);background:#fff;cursor:pointer;padding:0}
.notespanel li.dn .ck{background:var(--ok);border-color:var(--ok);box-shadow:inset 0 0 0 3px #fff}
.notespanel li.dn .tx{color:var(--ink-3);text-decoration:line-through}
.notespanel li.ne{display:block;color:var(--ink-3);font-size:12.5px;padding:10px 12px}
@media (max-width:900px){ .notesbtn{bottom:calc(var(--nav-h) + 84px);right:16px;padding:10px 12px}.notesbtn span{display:none}.notespanel{right:16px;bottom:calc(var(--nav-h) + 136px)} }
@media (prefers-reduced-motion:reduce){ .notespanel{animation:none} }
.ovr{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) 110px}
/* dock in white liquid glass (v0.20.3): translucent white, blur + saturation, hairline white stroke, inner highlight; the page stays neumorphic */
@media (min-width:901px){
  .side{background:linear-gradient(160deg,rgba(255,255,255,.72),rgba(255,255,255,.38))!important;-webkit-backdrop-filter:blur(22px) saturate(180%);backdrop-filter:blur(22px) saturate(180%);
    border:1px solid rgba(255,255,255,.85);box-shadow:inset 0 1px 0 rgba(255,255,255,.95),inset 0 -1px 0 rgba(26,34,48,.04),0 1px 2px rgba(26,34,48,.05),0 12px 32px rgba(70,96,127,.16)!important}
  .side::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(120% 40% at 30% 0%,rgba(255,255,255,.9),transparent 60%);opacity:.6}
  .side .nav>a.on{background:rgba(255,255,255,.75);box-shadow:inset 0 0 0 1px rgba(255,255,255,.9),0 2px 8px rgba(70,96,127,.14)!important}
  .side .nav>a:hover,.side .dk:hover{background:rgba(255,255,255,.55)}
  .dfly{background:rgba(255,255,255,.7)!important;-webkit-backdrop-filter:blur(22px) saturate(180%);backdrop-filter:blur(22px) saturate(180%);border:1px solid rgba(255,255,255,.85);box-shadow:inset 0 1px 0 #fff,0 12px 32px rgba(70,96,127,.18)!important}
  .side #sync[hidden]{display:none!important}
}
/* Docs page */
.docbar{display:flex;flex-direction:column;gap:12px;margin-bottom:16px}
.docq{display:flex;align-items:center;gap:10px;padding:0 16px;height:48px;border-radius:16px;background:#fff;box-shadow:inset 0 0 0 1px var(--line),0 2px 10px rgba(70,96,127,.08);max-width:720px}
.docq svg{width:18px;height:18px;color:var(--ink-3);flex:none}
.docq input{border:0;outline:0;background:none;font:inherit;font-size:14.5px;flex:1;min-width:0;box-shadow:none;padding:0}
.docq:focus-within{box-shadow:inset 0 0 0 2px var(--slate-2),0 2px 10px rgba(70,96,127,.1)}
.docbar .chips{margin:0}.docbar .chips small{color:var(--ink-3);font-weight:600;margin-left:4px}
.docn{font-weight:600;overflow-wrap:anywhere}
.dkind{font-size:11.5px;font-weight:700;padding:3px 9px;border-radius:999px;white-space:nowrap}
.dk-policy{color:#2f5f9e;background:rgba(47,95,158,.1)}.dk-sale{color:#b5562f;background:rgba(181,86,47,.1)}.dk-agent{color:#9c3f73;background:rgba(156,63,115,.1)}.dk-insurer{color:#1b6b49;background:rgba(27,107,73,.1)}
.dk-voucher{color:#8a6a00;background:rgba(246,194,26,.18)}.dk-statement{color:#5a4fc9;background:rgba(90,79,201,.1)}
/* v0.20.4 breathing: real space under the dock logo (≥ 30 px to the first icon), looser Overview rhythm */
@media (min-width:901px){
  .side .brand{padding-bottom:18px!important;margin-bottom:18px!important}
  .side .brand::after{width:24px;margin-left:-12px;background:rgba(26,34,48,.07)}
}
.ovtop{margin-bottom:30px}
.ovk{margin:0 0 12px 6px}
.ovp{margin-bottom:30px}
.ovs{padding:22px 28px 22px}.ovgo{top:22px;right:26px}
.ovs .ovn{margin:8px 0 4px}
.kpis.ovp .kpi{padding:20px 28px}
.kpis.ovp .kpi .v{margin-top:8px}
.ovh{padding:18px 28px 14px}
.ovr{padding:11px 28px}
/* Notes v2: links (@), projects (#), filters */
.notespanel{width:min(460px,calc(100vw - 32px));max-height:min(640px,78vh)}
.ntabs{display:flex;gap:4px;flex-wrap:wrap;padding:0 16px 8px}
.ntabs button{border:0;background:none;font:inherit;font-size:12px;font-weight:700;color:var(--ink-3);padding:5px 9px;border-radius:999px;cursor:pointer}
.ntabs button small{font-weight:600;opacity:.7;margin-left:2px}
.ntabs button.on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(26,34,48,.1)}
.ntags{display:flex;gap:6px;flex-wrap:wrap;padding:0 18px 8px}.ntags[hidden]{display:none}
.ntag{border:0;background:rgba(90,79,201,.1);color:#5a4fc9;font:inherit;font-size:12px;font-weight:700;padding:1px 7px;border-radius:6px;cursor:pointer}
.nin{position:relative}
.notespanel textarea{width:100%;box-sizing:border-box;border:0;border-radius:12px;padding:11px 14px;background:#fff;box-shadow:inset 0 0 0 1px var(--line);font:inherit;font-size:13.5px;resize:none;line-height:1.4}
.notespanel textarea:focus{outline:none;box-shadow:inset 0 0 0 2px var(--slate-2)}
.nsug{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:2;background:#fff;border-radius:12px;box-shadow:0 12px 30px rgba(26,34,48,.18);padding:4px;display:flex;flex-direction:column}
.nsug[hidden]{display:none}
.nsug button{display:flex;gap:8px;align-items:center;text-align:left;border:0;background:none;font:inherit;font-size:13px;padding:7px 10px;border-radius:8px;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.nsug button.on,.nsug button:hover{background:var(--sel)}
.nsug i{font-style:normal;font-size:10.5px;font-weight:800;padding:1px 6px;border-radius:5px;flex:none}
.nlinkrow{min-height:22px;padding:6px 2px 0}.nhint{font-size:11.5px;color:var(--ink-3)}
.nlink{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:700;padding:2px 8px;border-radius:999px;text-decoration:none;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.nlink button{border:0;background:none;color:inherit;font-size:13px;cursor:pointer;padding:0 0 0 2px}
.nb{display:flex;flex-direction:column;gap:5px;min-width:0}
.nl-client{color:#2f8a72;background:rgba(47,138,114,.12)}.nl-provider{color:#2f7fb8;background:rgba(47,127,184,.12)}.nl-policy{color:#2f5f9e;background:rgba(47,95,158,.12)}
.nl-agent{color:#9c3f73;background:rgba(156,63,115,.12)}.nl-sale{color:#b5562f;background:rgba(181,86,47,.12)}.nl-voucher{color:#8a6a00;background:rgba(246,194,26,.2)}
/* Ask Inflow */
.nmode{display:inline-flex;gap:2px;padding:3px;border-radius:12px;background:rgba(26,34,48,.05)}
.nmode button{display:inline-flex;align-items:center;gap:6px;border:0;background:none;font:inherit;font-size:13px;font-weight:700;color:var(--ink-3);padding:6px 11px;border-radius:9px;cursor:pointer}
.nmode button svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
.nmode button.on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(26,34,48,.12)}
#nmAsk.on svg{color:#c79a00;fill:rgba(246,194,26,.35)}
.notespanel header{align-items:center}
#notesBox[hidden],.askbox[hidden]{display:none}
#notesBox{display:flex;flex-direction:column;min-height:0;overflow:auto}
.askbox{display:flex;flex-direction:column;min-height:0;flex:1}
.notespanel:has(.askbox:not([hidden])){height:min(640px,78vh)}
.asklog{flex:1;overflow:auto;padding:4px 16px 10px;display:flex;flex-direction:column;gap:8px}
.am{max-width:88%;padding:9px 13px;border-radius:14px;font-size:13.5px;line-height:1.45;overflow-wrap:anywhere}
.am-user{align-self:flex-end;background:var(--slate);color:#fff;border-bottom-right-radius:5px}
.am-model{align-self:flex-start;background:#fff;box-shadow:inset 0 0 0 1px var(--line);border-bottom-left-radius:5px}
.am ul{margin:4px 0 4px 18px;padding:0}.am li{margin:2px 0}
.am-wait{display:flex;gap:4px;padding:13px 14px}.am-wait i{width:6px;height:6px;border-radius:50%;background:var(--ink-3);animation:awd 1s infinite}.am-wait i:nth-child(2){animation-delay:.15s}.am-wait i:nth-child(3){animation-delay:.3s}
@keyframes awd{0%,80%,100%{opacity:.25;transform:none}40%{opacity:1;transform:translateY(-3px)}}
.aempty{color:var(--ink-2);font-size:13px;line-height:1.5;padding:8px 2px}.aempty b{display:block;font-size:15px;color:var(--ink);margin-bottom:4px}
.asug{display:flex;flex-direction:column;gap:6px;margin-top:12px}
.asug button{text-align:left;border:0;background:#fff;box-shadow:inset 0 0 0 1px var(--line);font:inherit;font-size:12.5px;color:var(--ink-2);padding:8px 11px;border-radius:10px;cursor:pointer}
.asug button:hover{color:var(--ink);box-shadow:inset 0 0 0 1px var(--slate-2)}
.askg{display:flex;align-items:center;gap:10px;padding:0 18px 8px}
.askg span{flex:none;width:90px;height:5px;border-radius:3px;background:rgba(26,34,48,.08);overflow:hidden}
.askg i{display:block;height:100%;background:var(--ok);border-radius:3px;transition:width .4s}.askg i.mid{background:var(--accent)}.askg i.low{background:var(--bad)}
.askg small{font-size:11px;color:var(--ink-3)}
.askbox form{padding:0 16px 14px}
.notespanel .am li{display:list-item;padding:0;border-radius:0;font-size:inherit;background:none!important}
/* Skaly VA v0.22: conversations + action cards */
.ahead{display:flex;align-items:center;gap:8px;padding:2px 16px 10px;border-bottom:1px solid var(--line);margin-bottom:8px}
.ahead>b{flex:1;font-size:13.5px}
.aback{display:inline-flex;align-items:center;gap:2px;border:0;background:rgba(26,34,48,.05);border-radius:8px;padding:5px 8px 5px 5px;font:inherit;font-size:12px;font-weight:700;color:var(--ink-2);cursor:pointer}
.aback svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.atitle{flex:1;min-width:0;display:flex;align-items:center;gap:8px}.atitle b{font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.asubj{flex:none;font-size:10.5px;font-weight:700;color:#5a4fc9;background:rgba(90,79,201,.1);padding:2px 7px;border-radius:999px}
.agrp{font-size:10.5px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--ink-3);margin:10px 4px 4px}
.aconv{display:flex;align-items:center;border-radius:10px}.aconv:hover,.aconv.on{background:rgba(255,255,255,.75)}
.aconv>button:first-child{flex:1;min-width:0;text-align:left;border:0;background:none;font:inherit;padding:8px 10px;cursor:pointer;display:flex;flex-direction:column;gap:2px}
.aconv b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aconv small{font-size:11px;color:var(--ink-3)}
.aconv .nx{opacity:0}.aconv:hover .nx{opacity:1}
.acard{align-self:flex-start;max-width:92%;display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:rgba(246,194,26,.14);box-shadow:inset 0 0 0 1px rgba(185,138,0,.25);font-size:12.5px;font-weight:600}
.acard.done{background:rgba(27,107,73,.08);box-shadow:inset 0 0 0 1px rgba(27,107,73,.2)}.acard small{color:var(--ok);font-weight:700;white-space:nowrap}
.acard .btn{flex:none}
.aprev{display:inline-block;margin-top:4px;font-size:11.5px;color:var(--ink-3);font-style:italic}
.askbox form[hidden]{display:none}
/* ===== dock v0.22: liquid glass 20 % + blur, light at 45°, same colour for every icon, yellow drop on the current page ===== */
@media (min-width:901px){
  .side{background:linear-gradient(135deg,rgba(255,255,255,.62) 0%,rgba(255,255,255,.22) 38%,rgba(255,255,255,.12) 62%,rgba(255,255,255,.3) 100%) ,rgba(255,255,255,.2)!important;
    -webkit-backdrop-filter:blur(28px) saturate(170%);backdrop-filter:blur(28px) saturate(170%);
    border:1px solid transparent!important;
    box-shadow:inset 1.5px 1.5px 0 rgba(255,255,255,.95),inset -1px -1px 0 rgba(255,255,255,.35),inset 0 0 0 1px rgba(255,255,255,.4),0 1px 2px rgba(26,34,48,.06),0 16px 40px rgba(70,96,127,.16)!important}
  .side::before{background:linear-gradient(135deg,rgba(255,255,255,.75),rgba(255,255,255,0) 32%)!important;opacity:.9!important;border-radius:inherit}
  .side [data-k]{--c:#3d4757}
  .side .nav>a,.side .dk,.side .foot .dk,.side .foot a{color:#3d4757!important}
  .side .nav>a svg,.side .dk svg,.dfly a svg,.side .nav>a.on svg,.side .dk.on svg{color:currentColor!important}
  .side .nav>a.on,.side .dk.on{background:none!important;box-shadow:none!important;color:#14181f!important}
  .side .nav>a.on::before,.side .dk.on::before{content:none!important}
  .side .nav>a:hover:not(.on),.side .dk:hover:not(.on){background:rgba(255,255,255,.45)!important}
  .side .nav>a,.side .dk{z-index:1}
  .dpill{position:absolute;z-index:0;border-radius:13px;background:linear-gradient(135deg,#ffd54a,#f6c21a 55%,#eab308);box-shadow:inset 1px 1px 0 rgba(255,255,255,.6),0 4px 12px rgba(234,179,8,.35);pointer-events:none;opacity:0}
  .dpill.stretch{border-radius:22px}
}
@media (prefers-reduced-motion:reduce){ .dpill{transition:none!important} }
/* Skaly VA: send + mic in the box, typing caret */
.askin textarea{padding-right:84px!important}
.amic,.asend{position:absolute;top:50%;transform:translateY(-50%);width:32px;height:32px;border:0;border-radius:10px;display:grid;place-items:center;cursor:pointer;z-index:1}
.asend{right:8px;background:var(--accent);color:#2b2200}.amic{right:44px;background:rgba(26,34,48,.06);color:var(--ink-2)}
.amic[hidden]{display:none}
.amic svg,.asend svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.amic.rec{background:var(--bad);color:#fff;animation:recp 1.2s ease-in-out infinite}
@keyframes recp{0%,100%{box-shadow:0 0 0 0 rgba(169,50,37,.45)}50%{box-shadow:0 0 0 7px rgba(169,50,37,0)}}
.acaret{display:inline-block;width:7px;height:14px;margin-left:2px;vertical-align:-2px;border-radius:2px;background:var(--ink-3);animation:awd 1s infinite}
/* Skaly VA voice */
.am-model{position:relative;padding-right:34px}
.aspk{position:absolute;right:6px;bottom:6px;width:24px;height:24px;border:0;border-radius:7px;background:none;color:var(--ink-3);display:grid;place-items:center;cursor:pointer;opacity:.6}
.aspk:hover,.aspk.on{opacity:1;color:var(--ink);background:rgba(26,34,48,.06)}
.aspk.on{color:#8a6a00;background:rgba(246,194,26,.25);animation:recp 1.4s ease-in-out infinite}
.aspk svg,.avoice svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.avoice{width:30px;height:30px;border:0;border-radius:9px;background:rgba(26,34,48,.05);color:var(--ink-3);display:grid;place-items:center;cursor:pointer;flex:none}
.avoice.on{background:var(--accent);color:#2b2200}
/* usage in %: 6-hour window + week */
.askg{display:grid!important;grid-template-columns:1fr 1fr;gap:6px 14px;padding:4px 18px 10px!important}
.askg>div{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:2px 8px}
.askg>div>small:first-child{grid-column:1/-1;font-size:10.5px;font-weight:700;color:var(--ink-2)}
.askg span{width:100%!important;height:5px}
.askg #askG6,.askg #askGW{font-size:10.5px;white-space:nowrap}
.askg>div span{grid-column:1/-1}
.askgp{grid-column:1/-1;font-size:10.5px;color:var(--ink-3)}
/* ===== Skaly VA window (v0.22): history column + conversation, like a desktop chat app ===== */
.vaico{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
.vaico .vring{stroke:#1f9d63;stroke-width:1.8}
#nmAsk svg.vaico{width:18px;height:18px;color:var(--ink)}#nmAsk.on svg.vaico{fill:none;color:var(--ink)}
.notespanel.wide{width:min(1080px,calc(100vw - 150px));height:min(760px,calc(100vh - 110px));max-height:none;bottom:76px;right:24px}
.notespanel.wide header{padding:12px 14px 10px 16px;border-bottom:1px solid var(--line)}
.notespanel.wide .askbox{display:grid;grid-template-columns:260px 1fr;flex:1;min-height:0}
.aside{display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--line);background:rgba(255,255,255,.35);border-bottom-left-radius:20px;padding:12px 10px 10px}
.anew{display:flex;align-items:center;gap:8px;border:0;border-radius:12px;background:var(--accent);color:#2b2200;font:inherit;font-size:13px;font-weight:800;padding:10px 12px;cursor:pointer;box-shadow:0 2px 8px rgba(234,179,8,.3)}
.anew svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.asearch{display:flex;align-items:center;gap:8px;margin:10px 0 6px;padding:0 10px;height:36px;border-radius:10px;background:#fff;box-shadow:inset 0 0 0 1px var(--line)}
.asearch svg{width:15px;height:15px;fill:none;stroke:var(--ink-3);stroke-width:2;stroke-linecap:round;flex:none}
.asearch input{border:0;outline:0;background:none;font:inherit;font-size:12.5px;flex:1;min-width:0;padding:0;box-shadow:none}
.alist{flex:1;overflow:auto;margin:0 -4px;padding:0 4px}
.aside .agrp{margin:12px 6px 4px}
.aside .aconv small{display:flex;align-items:center;gap:6px}.aside .aconv .asubj{font-style:normal;font-size:10px;padding:1px 6px}
.aside .askg{display:flex!important;flex-direction:column;gap:8px;padding:10px 6px 2px!important;border-top:1px solid var(--line);margin-top:6px}
.aside .askg>div{grid-template-columns:1fr}
.amain{display:flex;flex-direction:column;min-width:0;min-height:0}
.notespanel.wide .ahead{padding:12px 20px;margin:0}
.ahist{display:none;width:30px;height:30px;border:0;border-radius:9px;background:rgba(26,34,48,.05);color:var(--ink-2);place-items:center;cursor:pointer;flex:none}
.ahist svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.notespanel.wide .atitle b{font-size:14.5px}
.notespanel.wide .asklog{padding:18px max(20px,calc((100% - 720px)/2)) 12px;gap:14px}
.arow{display:flex;gap:10px;align-items:flex-start;max-width:100%}
.aav{flex:none;width:28px;height:28px;border-radius:50%;background:#fff;display:grid;place-items:center;box-shadow:0 1px 3px rgba(26,34,48,.1);margin-top:2px}
.aav .vaico{width:22px;height:22px}
.acol{display:flex;flex-direction:column;gap:8px;min-width:0;flex:1}
.notespanel.wide .am-model{max-width:100%;background:none;box-shadow:none;padding:4px 34px 4px 0;font-size:14px;line-height:1.6}
.notespanel.wide .am-user{max-width:75%;font-size:14px;padding:10px 15px;border-radius:16px;border-bottom-right-radius:5px}
.notespanel.wide .am-wait{padding:12px 0}
.notespanel.wide .acard{max-width:100%}
.notespanel.wide .amain form{padding:6px max(20px,calc((100% - 720px)/2)) 14px}
.notespanel.wide .askin textarea{min-height:58px;border-radius:16px;padding:14px 92px 14px 16px!important;font-size:14px;box-shadow:inset 0 0 0 1px var(--line),0 4px 16px rgba(70,96,127,.08)}
.ahint{display:block;text-align:center;font-size:10.5px;color:var(--ink-3);margin-top:6px}
.aempty .abig{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#fff;box-shadow:0 4px 14px rgba(31,157,99,.18);margin:0 auto 12px}
.aempty .abig .vaico{width:40px;height:40px}
.notespanel.wide .aempty{text-align:center;max-width:520px;margin:auto;padding-top:40px}
.notespanel.wide .aempty b{font-size:20px;margin-bottom:8px}
.notespanel.wide .asug{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:18px}
.notespanel.wide .asug button{padding:12px 14px;border-radius:12px;font-size:13px}
.aempty.sm{font-size:12px;padding:12px 8px;color:var(--ink-3)}
@media (max-width:900px){
  .notespanel.wide{inset:0;width:auto;height:auto;border-radius:0;bottom:0;right:0}
  .notespanel.wide .askbox{grid-template-columns:1fr;position:relative}
  .aside{position:absolute;inset:0 30% 0 0;z-index:3;background:var(--surface);box-shadow:8px 0 30px rgba(26,34,48,.15);transform:translateX(-105%);transition:transform .25s;border-radius:0}
  .askbox.side-open .aside{transform:none}
  .ahist{display:grid}
  .notespanel.wide .asug{grid-template-columns:1fr}
}
.aside .askg>div{display:flex!important;flex-direction:column;align-items:stretch;gap:4px}.aside .askg span{width:100%!important}.aside .askgp{text-align:left}
/* ===== state system (v0.22.1): one clear signal per state, no more “inset shadow = selected” ===== */
:root{--field-b:rgba(26,34,48,.14);--field-bh:rgba(26,34,48,.3);--ring:0 0 0 4px rgba(70,96,127,.16)}
/* fields: rest / hover / focus / saved / invalid / disabled */
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea{background:#fff;box-shadow:inset 0 0 0 1px var(--field-b);transition:box-shadow .15s,background .15s}
input:not([type=checkbox]):not([type=radio]):hover,select:hover,textarea:hover{box-shadow:inset 0 0 0 1px var(--field-bh)}
input:not([type=checkbox]):not([type=radio]):focus,select:focus,textarea:focus{box-shadow:inset 0 0 0 1.5px var(--slate),var(--ring)}
input.saved,select.saved,textarea.saved{box-shadow:inset 0 0 0 1.5px var(--ok),0 0 0 4px rgba(27,107,73,.14)!important;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b6b49' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") no-repeat right 12px center/16px}
input:user-invalid,select:user-invalid,textarea:user-invalid{box-shadow:inset 0 0 0 1.5px var(--bad),0 0 0 4px rgba(169,50,37,.12)}
input:disabled,select:disabled,textarea:disabled{background:rgba(26,34,48,.04);box-shadow:inset 0 0 0 1px rgba(26,34,48,.08);color:var(--ink-3);cursor:not-allowed}
/* collapsible sections (Settings and elsewhere): closed = flat row, hover = lighter, open = raised white card with a yellow bar */
details.fold{transition:background .18s,box-shadow .18s}
details.fold:not([open]){background:transparent!important;box-shadow:inset 0 0 0 1px var(--line)!important}
details.fold:not([open]):hover{background:rgba(255,255,255,.6)!important;box-shadow:inset 0 0 0 1px var(--field-bh)!important}
details.fold[open]{background:#fff!important;box-shadow:inset 3px 0 0 var(--accent),0 1px 2px rgba(26,34,48,.06),0 12px 32px rgba(70,96,127,.12)!important}
details.fold[open]>summary{padding-bottom:14px;margin-bottom:16px;border-bottom:1px solid var(--line)}
details.fold>summary::after{content:'';width:28px;height:28px;flex:none;border-radius:50%;background:rgba(26,34,48,.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23465367' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center/14px;transition:transform .2s cubic-bezier(.3,.7,.4,1),background-color .15s}
details.fold:not([open])>summary:hover::after{background-color:rgba(26,34,48,.12)}
details.fold[open]>summary::after{transform:rotate(90deg);background:var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center/14px}
details.fold[open] input:not([type=checkbox]),details.fold[open] select,details.fold[open] textarea{background-color:#fff}
/* selected chips / tabs: the yellow drop is the signal, not an inset shadow */
.chips button.on,.tabs button.on{box-shadow:none!important}
.chips button:not(.on):hover,.tabs button:not(.on):hover{background:rgba(255,255,255,.7)}
.pal-it.on,.pal-it:hover{box-shadow:none!important;background:var(--sel)}
.btn:active{transform:scale(.98)}
.btn:disabled,.btn[disabled]{opacity:.45;box-shadow:none;cursor:not-allowed}
/* smart controls: switch, segmented buttons, slider + stepper (v0.22.1) */
.ddb{background:#fff!important;box-shadow:inset 0 0 0 1px var(--field-b)!important;transition:box-shadow .15s}
.ddb:hover{box-shadow:inset 0 0 0 1px var(--field-bh)!important}.ddb[aria-expanded=true],.ddb:focus-visible{box-shadow:inset 0 0 0 1.5px var(--slate),var(--ring)!important}
label:has(>.tgl),label:has(>.seg),label:has(>.sld){display:block}
.tgl{display:inline-flex;align-items:center;gap:10px;margin-top:8px;border:0;background:none;padding:0;cursor:pointer;font:inherit;font-size:13px;font-weight:700;color:var(--ink-3)}
.tgl i{position:relative;width:46px;height:28px;border-radius:999px;background:rgba(26,34,48,.16);transition:background .2s;flex:none}
.tgl i::after{content:'';position:absolute;left:3px;top:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(26,34,48,.3);transition:transform .22s cubic-bezier(.34,1.56,.64,1)}
.tgl.on{color:var(--ok)}.tgl.on i{background:var(--ok)}.tgl.on i::after{transform:translateX(18px)}
.tgl:focus-visible i{box-shadow:var(--ring)}
.seg{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px;padding:4px;border-radius:12px;background:rgba(26,34,48,.05);width:fit-content;max-width:100%}
.seg button{border:0;background:none;font:inherit;font-size:13px;font-weight:600;color:var(--ink-2);padding:8px 14px;border-radius:9px;cursor:pointer;transition:background .15s,color .15s,box-shadow .15s}
.seg button:hover:not(.on){background:rgba(255,255,255,.7);color:var(--ink)}
.seg button.on{background:#fff;color:var(--ink);font-weight:800;box-shadow:0 1px 3px rgba(26,34,48,.14),inset 0 0 0 1.5px var(--accent)}
.sld{display:flex;align-items:center;gap:14px;margin-top:8px}
.sld input[type=range]{flex:1;min-width:120px;-webkit-appearance:none;appearance:none;height:6px;border-radius:999px;margin:0;padding:0;box-shadow:none!important;background:linear-gradient(to right,var(--slate) var(--p,0%),rgba(26,34,48,.12) var(--p,0%))}
.sld input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:22px;height:22px;border-radius:50%;background:#fff;border:0;box-shadow:0 0 0 1.5px var(--slate),0 2px 6px rgba(26,34,48,.25);cursor:grab}
.sld input[type=range]::-moz-range-thumb{width:22px;height:22px;border-radius:50%;background:#fff;border:0;box-shadow:0 0 0 1.5px var(--slate),0 2px 6px rgba(26,34,48,.25)}
.sld input[type=range]:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 1.5px var(--slate),var(--ring)}
.sldv{display:flex;align-items:center;gap:2px;padding:3px;border-radius:12px;background:#fff;box-shadow:inset 0 0 0 1px var(--field-b)}
.sldb{width:30px;height:30px;border:0;border-radius:9px;background:rgba(26,34,48,.05);font:inherit;font-size:16px;font-weight:700;color:var(--ink-2);cursor:pointer}
.sldb:hover{background:rgba(26,34,48,.1);color:var(--ink)}.sldb:active{transform:scale(.94)}
.sldn{display:flex;align-items:baseline;gap:2px;padding:0 4px}
.sldn input{width:58px!important;margin:0!important;padding:4px 2px!important;text-align:right;border:0;box-shadow:none!important;background:none!important;font-weight:800;font-size:15px;font-variant-numeric:tabular-nums;-moz-appearance:textfield}
.sldn input::-webkit-inner-spin-button,.sldn input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.sldn em{font-style:normal;font-weight:700;color:var(--ink-3);font-size:13px}
details.fold input[type=checkbox]{-webkit-appearance:none;appearance:none;width:42px!important;height:26px;border-radius:999px;background:rgba(26,34,48,.16);position:relative;cursor:pointer;transition:background .2s;vertical-align:middle;margin:0 8px 0 0;flex:none}
details.fold input[type=checkbox]::after{content:'';position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(26,34,48,.3);transition:transform .22s cubic-bezier(.34,1.56,.64,1)}
details.fold input[type=checkbox]:checked{background:var(--ok)}details.fold input[type=checkbox]:checked::after{transform:translateX(16px)}
@media (prefers-reduced-motion:reduce){.tgl i::after,details.fold input[type=checkbox]::after{transition:none}}
/* rows per page (v0.22.1) */
.tpp{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--ink-3);white-space:nowrap;margin:0}
.tpp select{width:auto!important;margin:0!important;padding:6px 26px 6px 10px!important;border-radius:9px;font-size:12.5px;font-weight:700;color:var(--ink);-webkit-appearance:none;appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23465367' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center/12px!important;cursor:pointer}
/* Reconcile v0.22.8: figures are the tabs, insurers are chips, help behind “?” */
.rtiles{margin-bottom:16px}
.rtile{text-align:left;border:0;font:inherit;color:inherit;cursor:pointer;background:var(--surface);transition:background .15s,box-shadow .15s,transform .15s}
.rtile:hover:not(.on){background:#fff}
.rtile.on{background:#fff;box-shadow:inset 0 0 0 2px var(--accent),0 10px 26px rgba(70,96,127,.14)!important}
.rtile.on small{color:var(--ink)}.rtile.warn .v{color:var(--bad)}
.rins{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.rins button{display:inline-flex;align-items:baseline;gap:8px;border:0;border-radius:12px;padding:9px 14px;background:rgba(255,255,255,.55);box-shadow:inset 0 0 0 1px var(--line);font:inherit;font-size:13px;color:var(--ink-2);cursor:pointer;transition:background .15s,box-shadow .15s}
.rins button:hover:not(.on){background:#fff}
.rins button.on{background:#fff;color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--accent),0 4px 12px rgba(70,96,127,.12)}
.rins button b{font-weight:700}.rins .mono{font-weight:800;color:var(--ink)}
.rlate{font-style:normal;font-size:11px;font-weight:700;color:var(--bad);background:rgba(169,50,37,.08);padding:2px 7px;border-radius:999px}
.rage.bad{font-weight:800;color:var(--bad);background:rgba(169,50,37,.08);padding:2px 8px;border-radius:999px}
.rhelp{display:inline-grid;place-items:center;width:24px;height:24px;margin-left:8px;vertical-align:4px;border:0;border-radius:50%;background:rgba(26,34,48,.07);font:inherit;font-size:13px;font-weight:800;color:var(--ink-2);cursor:pointer}
.rhelp[aria-expanded=true]{background:var(--ink);color:#fff}
.rhelpbox{display:block;max-width:720px;margin-top:10px;padding:12px 14px;border-radius:12px;background:#fff;box-shadow:0 8px 24px rgba(70,96,127,.14);font-size:13px;font-weight:500;line-height:1.5;color:var(--ink-2)}
.rhelpbox[hidden]{display:none}
.btn.rcall{font-size:12.5px}
/* Skaly VA only: notes tab retired, minimise, speaking pulse */
#nmNotes,#nmSub{display:none!important}
.nmode{background:none;padding:0}.nmode #nmAsk{background:none;box-shadow:none;font-size:14px;color:var(--ink)}
.nmin svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.notesbtn .vaico{width:20px;height:20px}
.notesbtn .spk{display:none;align-items:flex-end;gap:2px;height:12px;font-style:normal}
.notesbtn .spk i{width:3px;border-radius:2px;background:#1f9d63;animation:spkb .9s ease-in-out infinite}
.notesbtn .spk i:nth-child(1){height:6px}.notesbtn .spk i:nth-child(2){height:12px;animation-delay:.15s}.notesbtn .spk i:nth-child(3){height:8px;animation-delay:.3s}
.notesbtn.speaking .spk{display:inline-flex}.notesbtn.speaking{box-shadow:0 0 0 3px rgba(31,157,99,.25),var(--raise)}
@keyframes spkb{0%,100%{transform:scaleY(.4)}50%{transform:scaleY(1)}}
.rhelpbox{flex-basis:100%}
/* Skaly VA left column: menu, sections with their own background, aligned gauges */
.amenu{display:flex;flex-direction:column;gap:2px;margin:10px 0 4px;padding:6px;border-radius:12px;background:#fff;box-shadow:inset 0 0 0 1px var(--line)}
.amenu button{display:flex;align-items:center;gap:10px;border:0;background:none;font:inherit;font-size:13px;font-weight:600;color:var(--ink-2);padding:8px 10px;border-radius:9px;cursor:pointer;text-align:left}
.amenu button:hover{background:var(--sel);color:var(--ink)}
.amenu button.on{background:rgba(246,194,26,.18);color:var(--ink);font-weight:800}
.amenu svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.aside .asearch{margin:8px 0 6px}
.aside .alist{background:rgba(255,255,255,.45);border-radius:12px;padding:2px 6px;margin:0}
.aside .askg{background:#fff!important;border:0!important;border-radius:12px;box-shadow:inset 0 0 0 1px var(--line);padding:12px 12px 10px!important;margin-top:8px!important;gap:10px!important;align-items:stretch!important}
.aside .askg>div{display:grid!important;grid-template-columns:1fr auto!important;align-items:center;gap:4px 8px!important;width:100%}
.aside .askg>div>small:first-child{grid-column:1;font-size:11.5px;font-weight:700;color:var(--ink)}
.aside .askg>div>small:last-child{grid-column:1/-1;font-size:10.5px;color:var(--ink-3);white-space:nowrap;margin:0!important;padding:0!important;text-align:left}
.aside .askg>div span{grid-column:1/-1;width:100%!important;height:6px}
.aside .askgp{display:block;font-size:10.5px;color:var(--ink-3);padding-top:6px;border-top:1px solid var(--line);text-align:left!important}
.notespanel header .nmin{margin-left:auto}.asearch input,.docq input{box-shadow:none!important;background:none!important}

/* ======================= v0.23 — white theme, light neumorphism, clear states ======================= */
:root{--bg:#ffffff;--surface:#ffffff;--sel:#f3f5f9;--yellow-soft:#fff4cc;
  --sh-d:rgba(16,24,40,.10);--sh-l:#ffffff;
  --raise:0 1px 2px rgba(16,24,40,.05),0 8px 24px rgba(16,24,40,.07);
  --raise-s:0 1px 2px rgba(16,24,40,.06),0 3px 10px rgba(16,24,40,.06);
  --inset:inset 0 1px 3px rgba(16,24,40,.10),inset 0 0 0 1px rgba(16,24,40,.06);
  --line:rgba(16,24,40,.08)}
html,body{background:#fff}
.card,.kpi,.ovp{background:#fff;border-radius:var(--r)}
.topbar{background:rgba(255,255,255,.86)!important}
.mbell{box-shadow:var(--raise-s)!important}
/* hovers that relied on “lighter than the grey page” */
.ovs:hover,.ovr:hover,.rins button:hover:not(.on),.chips button:not(.on):hover,.tabs button:not(.on):hover,.aconv:hover,.rtile:hover:not(.on){background:var(--sel)!important}
/* selection = fully yellow, rounded, no outline */
.rtile{border-radius:var(--r)!important;box-shadow:var(--raise-s)!important;padding:18px 22px!important}
.rtile.on{background:var(--accent)!important;box-shadow:0 6px 18px rgba(234,179,8,.32)!important}
.rtile.on small,.rtile.on .v,.rtile.on .d{color:#1d1600!important}
.rtile.warn:not(.on) .v{color:var(--bad)}
.rins button{background:#fff;box-shadow:var(--raise-s)}
.rins button.on{background:var(--accent)!important;color:#1d1600!important;box-shadow:0 4px 12px rgba(234,179,8,.3)!important}
.rins button.on .mono{color:#1d1600}.rins button.on .rlate{background:rgba(255,255,255,.55);color:var(--bad)}
/* open sections: soft raise, no yellow side bar */
details.fold[open]{background:#fff!important;box-shadow:var(--raise)!important}
details.fold:not([open]){background:#fff!important;box-shadow:var(--raise-s)!important}
details.fold:not([open]):hover{box-shadow:var(--raise)!important}
/* list toolbar: filters on the left, “1–10 of 71 · Show 10 per page · pages” together on the right, one line */
.tbar .tright{margin-left:auto;display:flex;align-items:center;gap:12px;flex:none;white-space:nowrap}
.tbar .tright .pg{margin:0}
.tbar .tright .pg:empty{display:none}
.tright .tc{margin-left:0}
.docbarp{margin:-4px 0 12px}
/* category menu for Settings-like pages */
.setwrap{display:grid;grid-template-columns:240px minmax(0,1fr);gap:28px;align-items:start}
.setnav{position:sticky;top:100px;display:flex;flex-direction:column;gap:2px;padding:10px;border-radius:var(--r);background:#fff;box-shadow:var(--raise-s)}
.setnav small{font-size:10.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);padding:6px 12px 8px}
.setnav button{text-align:left;border:0;background:none;font:inherit;font-size:13.5px;font-weight:600;color:var(--ink-2);padding:10px 12px;border-radius:12px;cursor:pointer;transition:background .15s,color .15s}
.setnav button:hover:not(.on){background:var(--sel);color:var(--ink)}
.setnav button.on{background:var(--accent);color:#1d1600;font-weight:800}
.setbody .setgrid{display:block!important}
.setbody details.fold{margin:0 0 18px!important}
.setbody details.fold[hidden]{display:none!important}
.setbody details.fold>summary{pointer-events:none}.setbody details.fold>summary::after{display:none}
@media (max-width:900px){.setwrap{grid-template-columns:1fr}.setnav{position:static;flex-direction:row;overflow-x:auto}.setnav small{display:none}.setnav button{white-space:nowrap}}
/* dock: icons grow from their centre, so they stay centred in their container and in the yellow pill */
@media (min-width:901px){
  .side .nav>a,.side .dk,.side .foot .dk,.side .foot a{display:grid!important;place-items:center!important;width:44px!important;height:44px!important;margin:0 auto!important;padding:0!important}
  .side .nav>a svg,.side .dk svg,.side .bell svg,.sidesearch svg{transform-origin:center center!important}
  .side .nav{align-items:center!important}
  .side{display:flex;flex-direction:column;align-items:center}
}
/* Skaly VA: a short contextual offer above its button, once per page */
.vahint{position:fixed;right:24px;bottom:78px;z-index:39;max-width:300px;padding:12px 36px 12px 14px;border-radius:16px 16px 4px 16px;background:#fff;box-shadow:0 10px 30px rgba(16,24,40,.14),0 0 0 1px var(--line);font-size:13px;line-height:1.45;color:var(--ink);cursor:pointer;animation:npUp .25s cubic-bezier(.2,.8,.2,1)}
.vahint b{display:block;font-size:12px;color:#1f9d63;margin-bottom:2px}
.vahint .x{position:absolute;right:8px;top:8px;border:0;background:none;font-size:16px;color:var(--ink-3);cursor:pointer}
@media (max-width:900px){.vahint{right:16px;bottom:calc(var(--nav-h) + 136px)}}
/* selected = fully yellow everywhere (segments, chips, drop), never a yellow outline */
.seg button.on{background:var(--accent)!important;color:#1d1600!important;box-shadow:0 2px 8px rgba(234,179,8,.3)!important}
.liqb{background:var(--accent)!important}
.chips button.on{color:#1d1600}
label:has(>.tgl){display:flex!important;flex-direction:column;align-items:flex-start;gap:2px}
/* ===== Overview bento (v0.24) ===== */
.bento{display:flex;flex-direction:column;gap:16px;margin-top:6px}
.brow{display:flex;gap:16px;height:clamp(200px,30vh,270px)}
.bc{position:relative;flex:1 1 0;min-width:0;border-radius:24px;padding:20px 22px;overflow:hidden;display:flex;flex-direction:column;transition:flex-grow .45s cubic-bezier(.22,1,.36,1),box-shadow .3s,transform .3s;outline:none}
.bc.kpi{background:var(--accent)!important;color:#1d1600;cursor:pointer;box-shadow:0 2px 6px rgba(234,179,8,.18)!important}
.bc.kpi:hover,.bc.kpi.open,.bc.kpi:focus-visible{flex-grow:2.1;box-shadow:0 14px 34px rgba(234,179,8,.35)!important}
.bc.kpi:focus-visible{box-shadow:0 0 0 3px #1d1600,0 14px 34px rgba(234,179,8,.35)!important}
.bc header{display:flex;align-items:center;gap:12px}
.bc .bi{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:rgba(255,255,255,.55);flex:none}
.bc .bi svg{width:22px;height:22px}
.bc.kpi header small{font-size:16px;font-weight:800;color:#1d1600;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bc .bd{margin-top:auto;opacity:0;transform:translateY(8px);transition:opacity .25s ease .05s,transform .3s ease .05s;min-width:260px}
.bc.kpi:hover .bd,.bc.kpi.open .bd,.bc.kpi:focus-visible .bd{opacity:1;transform:none;transition-delay:.15s}
.bc .v{font-size:26px!important;font-weight:800;letter-spacing:-.02em;color:#1d1600!important;margin:0!important}
.bc .d{font-size:12px;color:rgba(29,22,0,.72)!important;margin:2px 0 10px!important}
.br{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.br li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;font-size:12px;align-items:baseline;padding:5px 9px;border-radius:9px;background:rgba(255,255,255,.45)}
.br li span{font-weight:700;white-space:nowrap}.br li i{font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:rgba(29,22,0,.75)}.br li b{font-variant-numeric:tabular-nums;white-space:nowrap}
.bgo{display:inline-block;margin-top:8px;font-size:12px;font-weight:800;color:#1d1600;text-decoration:none}
.bgo:hover{text-decoration:underline}
/* the one white card, always open */
.bc.bw{flex:1.7 1 0;background:#fff;box-shadow:var(--raise);color:var(--ink)}
.bc.bw .bi{background:var(--sel)}
.bc.bw header b{font-size:16px;font-weight:800}.bc.bw header small{margin-left:auto;font-size:12px;color:var(--ink-3);font-weight:600}
.bc.bw .bd{opacity:1;transform:none;margin-top:12px;display:flex;flex-direction:column;gap:6px;min-width:0}
.bw-top .rcard{display:flex;flex-direction:row;align-items:center;gap:10px;padding:0}.bw-top .rcard>small{font-weight:700;color:var(--ink-2)}.bw-top .rv{font-size:24px}
.bw-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:7px 10px;border-radius:10px;background:var(--sel);text-decoration:none;color:inherit;font-size:12.5px}
.bw-row b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bw-row span{color:var(--ink-3)}
.bw-row em{font-style:normal;font-weight:700;font-size:11.5px;padding:2px 8px;border-radius:999px}.bw-row em.bad{color:var(--bad);background:rgba(169,50,37,.09)}.bw-row em.warn{color:var(--warn);background:rgba(133,80,0,.09)}
@media (prefers-reduced-motion:reduce){.bc,.bc .bd{transition:none}}
@media (max-width:900px){.brow{flex-direction:column;height:auto}.bc{flex:none!important;min-height:86px}.bc .bd{display:none}.bc.kpi.open .bd,.bc.bw .bd{display:block;opacity:1;transform:none}}
/* bento previews: visible when the card is closed, replaced by the details when it opens */
.bc .bp{margin-top:auto;transition:opacity .2s}
.bc.kpi:hover .bp,.bc.kpi.open .bp,.bc.kpi:focus-visible .bp{display:none}
.bc.kpi:not(:hover):not(.open):not(:focus-visible) .bd{position:absolute;pointer-events:none}
.bpn{font-size:34px;font-weight:800;letter-spacing:-.03em;color:#1d1600;line-height:1}
.bpn.sm{font-size:24px;margin-bottom:6px}
.bps{font-size:12px;font-weight:600;color:rgba(29,22,0,.7);margin-top:6px}
.bpsv{width:100%;height:56px;display:block}
.bpc{display:flex;gap:10px}.bpc span{display:flex;flex-direction:column;padding:10px 14px;border-radius:14px;background:rgba(255,255,255,.5);font-size:11.5px;font-weight:700;color:rgba(29,22,0,.75)}.bpc b{font-size:26px;color:#1d1600;line-height:1.05}
.bpa{display:flex}.bpa i{width:40px;height:40px;margin-right:-8px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#1d1600;font-style:normal;font-size:13px;font-weight:800;box-shadow:0 0 0 3px var(--accent)}
/* list toolbar: export as a small icon until rows are ticked; Delete only when rows are ticked */
.tbar .exb:not(.on){width:36px;height:36px;padding:0;display:inline-grid;place-items:center}
.tbar .exb svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tbar .btn[hidden]{display:none}
.xall-h{display:inline-flex;margin:0}
.bento.kpis{display:flex;margin-bottom:0}
.xall-h{margin-right:10px!important;vertical-align:middle}.xall-h input{margin:0!important}

/* same yellow bento cards outside the Overview (.ky) */
.bc.ky{background:var(--accent)!important;color:#1d1600;cursor:pointer;box-shadow:0 2px 6px rgba(234,179,8,.18)!important}
.bc.ky:hover,.bc.ky.open,.bc.ky:focus-visible{flex-grow:2.1;box-shadow:0 14px 34px rgba(234,179,8,.35)!important}
.bc.ky:focus-visible{box-shadow:0 0 0 3px #1d1600,0 14px 34px rgba(234,179,8,.35)!important}
.bc.ky header small{font-size:16px;font-weight:800;color:#1d1600;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bc.ky:hover .bd,.bc.ky.open .bd,.bc.ky:focus-visible .bd{opacity:1;transform:none;transition-delay:.15s}
@media (max-width:900px){.brow{flex-direction:column;height:auto}.bc{flex:none!important;min-height:86px}.bc .bd{display:none}.bc.ky.open .bd,.bc.bw .bd{display:block;opacity:1;transform:none}}
.bc.ky:hover .bp,.bc.ky.open .bp,.bc.ky:focus-visible .bp{display:none}
.bc.ky:not(:hover):not(.open):not(:focus-visible) .bd{position:absolute;pointer-events:none}
.rbtn{margin-top:10px;display:flex;gap:8px;flex-wrap:wrap}.rbtn .btn{background:#fff!important}
.rbtn select{min-width:0;flex:1;background:#fff}
.bc.ky .bd .d{font-size:13px!important;color:rgba(29,22,0,.8)!important;margin:0!important}
.rpw .bd{margin-top:10px!important}.rpw label{display:block}
.bc.kpi header small,.bc.ky header small{white-space:normal!important;line-height:1.15}
/* real bento: 4 × 4 grid, sizes vary, the focused card's tracks grow (animated) */
.bento.bgrid{display:grid!important;grid-template-columns:1fr 1fr 1fr 1fr;grid-template-rows:repeat(4,minmax(0,1fr));gap:14px;height:clamp(560px,calc(100vh - 230px),760px);transition:grid-template-columns .5s cubic-bezier(.22,1,.36,1),grid-template-rows .5s cubic-bezier(.22,1,.36,1)}
.bgrid .bc{flex:none!important;min-height:0;padding:16px 18px}
.bgrid .bc.kpi:hover,.bgrid .bc.kpi.open{flex-grow:0}
.bgrid .bc .bd{min-width:0}
.bgrid .bc .bi{width:38px;height:38px;border-radius:12px}.bgrid .bc .bi svg{width:19px;height:19px}
.bgrid .bc.kpi header small{font-size:14.5px}
.bgrid .bpn{font-size:30px}
.bgrid [data-k=collect] .bpn{font-size:44px}
.bgrid [data-k=renew]{padding:22px 24px}
.bgrid .br li{padding:4px 8px;font-size:11.5px}
.bgrid .bc.kpi:not(:hover):not(.open) .bp{display:block}
@media (max-width:900px){.bento.bgrid{display:flex!important;flex-direction:column;height:auto}.bgrid .bc{grid-area:auto!important;min-height:96px}}
.bento.bgrid{height:max(520px,calc(100vh - 226px))!important}
.bgrid .bc .bp{min-height:0;display:flex;flex-direction:column;overflow:hidden}
.bgrid .bpsv{height:auto;max-height:56px;min-height:18px;flex:1 1 auto}
@media (min-width:901px) and (max-width:1180px){.bgrid .bpn{font-size:24px}.bgrid [data-k=collect] .bpn{font-size:34px}.bgrid .bc.kpi header small{font-size:13px}}
/* Analysis bento */
.bc.ky.card{padding:16px 18px;border-radius:24px;margin:0}
.bc.ky header h2{margin:0;font-size:14.5px;font-weight:800;color:#1d1600;line-height:1.2}
.bc.ky header h2 small{display:block;font-size:11px;font-weight:600;color:rgba(29,22,0,.7);margin-top:2px}
.bc.bw header small{margin-left:auto;font-size:12px;color:var(--ink-3);font-weight:600}
.bchart{flex:1;min-height:0;display:flex}.bchart svg{width:100%;height:100%}
.bc.bw .bd:has(.bchart){flex:1;min-height:0}
.bc.ky header h2 small{display:block!important;margin-left:0!important}.bgrid [data-k=aIns] .bpn{font-size:24px!important;line-height:1.1}
/* Docs bento */
.bgrid .docq{max-width:none;margin-top:6px}
.dall{margin-top:12px;align-self:flex-start;border:0;border-radius:12px;padding:9px 14px;background:var(--sel);font:inherit;font-size:13px;font-weight:700;color:var(--ink-2);cursor:pointer}
.dall b{margin-left:6px;color:var(--ink)}.dall.on{background:var(--accent);color:#1d1600}
.bgrid[aria-label=Documents]{margin-bottom:16px}

/* ===== v0.25.3 · responsive bento: every size follows the window, nothing is clipped =====
   Desktop (> 1000px): the 4 × 4 grid stays, each card is a size container, so figures, icons and previews scale with the card itself (cqw / cqh) and secondary text disappears before it gets cut.
   Compact (≤ 1000px): 2 columns, then 1 column ≤ 560px; cards take the height they need, a card opens on tap. */
@media (min-width:1001px){
  .bento.bgrid{height:clamp(640px,calc(100vh - 226px),780px)!important}   /* a short window scrolls instead of squeezing the cards */
  .bgrid .bc{container-type:size}
  .bgrid .bc.kpi header small,.bgrid .bc.ky header small{font-size:clamp(11px,7cqw,15px)}
  .bgrid .bc .bi{width:clamp(26px,min(17cqw,26cqh),40px);height:clamp(26px,min(17cqw,26cqh),40px)}
  .bgrid .bc .bi svg{width:55%;height:55%}
  .bgrid .bpn{font-size:clamp(17px,min(14cqw,26cqh),34px)}
  .bgrid .bpn.sm{font-size:clamp(15px,min(11cqw,17cqh),24px);margin-bottom:4px}
  .bgrid [data-k=collect] .bpn{font-size:clamp(22px,min(19cqw,30cqh),52px)}
  .bgrid .bps{font-size:clamp(10px,5.5cqw,12px);margin-top:4px}
  .bgrid .bpc{gap:clamp(4px,3cqw,10px)}
  .bgrid .bpc span{font-size:clamp(9px,5cqw,11.5px);padding:clamp(3px,3cqh,10px) clamp(6px,5cqw,14px)}
  .bgrid .bpc b{font-size:clamp(15px,min(10cqw,18cqh),26px)}
  .bgrid .bpa i{width:clamp(24px,min(14cqw,22cqh),40px);height:clamp(24px,min(14cqw,22cqh),40px);font-size:clamp(9px,5cqw,13px)}
  .bgrid .bc .v{font-size:clamp(18px,min(11cqw,16cqh),26px)!important}
  .bgrid .br li{font-size:clamp(10px,4.6cqw,11.5px);padding:clamp(2px,1.6cqh,5px) 8px}
  .bgrid .bw-row{font-size:clamp(10.5px,3.6cqw,12.5px);padding:clamp(4px,2cqh,7px) 10px}
  .bgrid .bw-top .rv{font-size:clamp(18px,min(6cqw,9cqh),24px)}
}
@container (max-height:105px){ .bps,.bpsv{display:none} }
@container (max-height:70px){ .bp .bpc,.bp .bpa{display:none} }
@container (max-height:330px){ .bw-row:nth-of-type(n+3){display:none} }
@container (max-height:250px){ .bw-row:nth-of-type(n+2){display:none} }
@media (max-width:1000px){
  .bento.bgrid{display:grid!important;height:auto!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:none!important;grid-auto-rows:auto;gap:12px;transition:none}
  .bgrid .bc{grid-column:auto!important;grid-row:auto!important;min-height:clamp(112px,22vw,150px);padding:14px 16px;container-type:normal}
  .bgrid .bc[data-k=renew],.bgrid .bc.bw,.bgrid .bc.open{grid-column:1/-1!important}
  .bgrid .bc .bd{display:none}
  .bgrid .bc.kpi.open .bd,.bgrid .bc.ky.open .bd,.bgrid .bc.bw .bd{display:block!important;position:static!important;opacity:1;transform:none;pointer-events:auto;min-width:0}
  .bgrid .bc.kpi:not(.open) .bp,.bgrid .bc.ky:not(.open) .bp{display:flex!important}
  .bgrid .bc.kpi.open .bp,.bgrid .bc.ky.open .bp{display:none!important}
  .bgrid .bpn{font-size:clamp(22px,5vw,34px)}
  .bgrid [data-k=collect] .bpn{font-size:clamp(26px,6.4vw,44px)}
  .bgrid .bc.kpi header small,.bgrid .bc.ky header small{font-size:clamp(13px,2.4vw,15px)}
  .bgrid .bpsv{max-height:48px}
}
@media (max-width:560px){ .bento.bgrid{grid-template-columns:minmax(0,1fr)!important} .bgrid .bc{min-height:104px} }

/* ===== v0.25.3 · wide windows: the dock shows the names next to the icons (so Agents and Providers are easy to find) ===== */
@media (min-width:1280px){
  .app{grid-template-columns:224px minmax(0,1fr)}
  .side{width:190px;align-items:stretch;padding:12px 8px}
  .side .brand{flex-direction:row;justify-content:flex-start;padding:0 6px 6px}
  .side .nav{align-items:stretch!important;width:100%}
  .side .nav>a,.side .dk,.side .foot .dk,.side .foot a{display:flex!important;flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;justify-items:normal!important;width:100%!important;height:40px!important;margin:0!important;padding:0 10px!important;gap:12px;box-sizing:border-box}
  .side .nav>a svg,.side .dk svg{flex:none;transform-origin:center}
  .side .lbl,.side .nav>a .lbl,.side .dk .lbl{position:static;width:auto;height:auto;overflow:visible;clip:auto;font-size:13px;font-weight:600;white-space:nowrap}
  .side .nav>a[data-tip]::after,.side .dk[data-tip]::after{display:none}
  .side .dgrp{width:100%}
  .side .nav>a.on::before,.side .dk.on::before{left:-4px}
  .dfly{left:calc(100% + 10px)}
  .side .foot{align-items:stretch;width:100%}
  .side .agency{display:none}
}

/* ===== v0.25.3 · flat bento: no card inside a card (icons, counters and list rows sit directly on the card) ===== */
.bc .bi,.bc.bw .bi{background:none!important;box-shadow:none!important;border-radius:0}
.bgrid .bc .bi{width:auto!important;height:auto!important;display:inline-grid;place-items:center}
.bgrid .bc .bi svg{width:clamp(20px,min(9cqw,14cqh),26px);height:clamp(20px,min(9cqw,14cqh),26px)}
.bgrid .bc header{gap:10px}
.bpc span{background:none!important;padding:0!important;border-radius:0}
.bpc{gap:18px!important}
.br li,.bw-row{background:none!important;border-radius:0;padding-left:0!important;padding-right:0!important;border-top:1px solid rgba(29,22,0,.14)}
.bc.bw .bw-row{border-top-color:var(--line)}
.br li:first-child,.bw-row:first-of-type{border-top:0}
.bw-row em{background:none!important;padding:0!important}

/* a short window: the labelled dock gets tighter instead of overflowing its pill */
@media (min-width:1280px) and (max-height:780px){
  .side .nav>a,.side .dk,.side .foot .dk,.side .foot a{height:34px!important}
  .side .brand{padding-bottom:2px}.side .flogo{width:30px;height:30px}
  .dsep{margin:3px 0}
}
@media (min-width:1280px) and (max-height:640px){
  .side .nav>a,.side .dk,.side .foot .dk,.side .foot a{height:30px!important}
  .side .lbl{font-size:12.5px}
}

/* rows with a text on the left and buttons: the buttons stay at the right edge, at every width */
.act-row .act-end{flex:none;margin-left:auto;display:flex;gap:8px;align-items:center}
@media (max-width:560px){.act-row:has(.act-end){flex-wrap:wrap}.act-row .act-end{margin-left:0}}

/* commission rates card on the client page: sliders, locked (grey) once saved, a small icon to unlock */
.crcard .crrow{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1.1fr) 76px 176px;gap:12px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
.crcard .crrow:first-of-type{border-top:0}
.crcard .crl{font-weight:600;font-size:13px}
.crcard input[type=range]{width:100%;margin:0;padding:0;height:6px;accent-color:#eab308;box-shadow:none}
.crcard .crrow.lk,.crcard .crrow.df{color:var(--ink-3)}
.crcard .crrow.lk input[type=range],.crcard .crrow.df input[type=range]{opacity:.35;filter:grayscale(1)}
.crcard .crv{font-variant-numeric:tabular-nums;text-align:right;font-size:13px}
.crcard .crv input{width:80px;margin:0;padding:6px 8px;text-align:right}
.crcard .crv small{font-weight:600;color:var(--ink-3)}
.crcard .cra{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}
.gearb{display:inline-grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:none;color:var(--ink-3);cursor:pointer;box-shadow:none;transition:color .15s,background .15s}
.gearb svg{width:17px;height:17px}
.gearb:hover,.gearb:focus-visible{color:var(--ink);background:var(--sel)}
@media (max-width:560px){.crcard .crrow{grid-template-columns:1fr auto;grid-template-areas:'l v' 's s' 'a a'}.crcard .crl{grid-area:l}.crcard .crv{grid-area:v}.crcard input[type=range]{grid-area:s}.crcard .cra{grid-area:a;justify-content:flex-start}}

.crcard .crpol{display:block;margin:0 0 4px}.crcard .crpol select{width:100%;margin-top:4px}

/* “Add invoice”: fields that come from the policy are greyed and cannot be changed */
#sf .locked{opacity:.55}
#sf .locked select,#sf .locked input,#sf .locked .ddb{background:var(--sel)!important;cursor:not-allowed}
#sf details.opts.locked>summary{pointer-events:none}

#sf .invsum{padding:12px 16px;border-radius:14px;background:var(--sel);font-size:13px;color:var(--ink-2)}
#sf .invsum .ish{display:flex;align-items:center;gap:6px;font-weight:800;margin-bottom:6px;color:var(--ink)}
#sf .invsum dl{display:grid;grid-template-columns:max-content 1fr;gap:3px 16px;margin:0}
#sf .invsum dt{color:var(--ink-3)}#sf .invsum dd{margin:0;font-weight:600;color:var(--ink)}

/* policy chooser of “+ Add invoice”: one readable card per policy, long names wrap instead of being cut */
.polpick{display:flex;flex-direction:column;gap:8px;margin:8px -6px 0;padding:6px;max-height:60vh;overflow:auto}
.polpick button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;padding:12px 14px;border:0;border-radius:14px;background:var(--surface);box-shadow:var(--raise-s);text-align:left;font:inherit;color:var(--ink);cursor:pointer;white-space:normal;transition:box-shadow .15s}
.polpick button:hover,.polpick button:focus-visible{box-shadow:var(--inset);outline:none}
.polpick b{font-size:15px}.polpick span{font-size:13px;color:var(--ink-2)}.polpick small{font-size:12px;color:var(--ink-3);overflow-wrap:anywhere}

/* ---------- workspace windows (v0.26): floating, draggable, above the Skaly VA panel, reducible to a tab on the edge ---------- */
#winHost{position:fixed;inset:0;z-index:60;pointer-events:none}
.win{position:fixed;display:flex;flex-direction:column;max-height:min(640px,calc(100vh - 110px));min-height:160px;background:var(--surface);border-radius:20px;box-shadow:0 18px 50px rgba(26,34,48,.22),0 0 0 1px rgba(26,34,48,.06);pointer-events:auto;overflow:hidden;animation:npUp .2s cubic-bezier(.2,.8,.2,1)}
.win[hidden]{display:none}.win:not(.front){box-shadow:0 10px 30px rgba(26,34,48,.14),0 0 0 1px rgba(26,34,48,.06)}.win.drag{opacity:.96;box-shadow:0 26px 60px rgba(26,34,48,.3),0 0 0 1px rgba(26,34,48,.08)}
.whead{display:flex;align-items:center;gap:8px;padding:11px 10px 10px 12px;border-bottom:1px solid var(--line);cursor:grab;touch-action:none;user-select:none}.win.drag .whead{cursor:grabbing}
.wgrip{width:14px;height:14px;flex:none;background:radial-gradient(circle,var(--ink-3) 1.2px,transparent 1.5px) 0 0/5px 5px;opacity:.55}
.wtitle{flex:1;min-width:0}.wtitle b{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wtitle small{display:block;color:var(--ink-3);font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wtitle small:empty{display:none}
.wb{border:0;background:none;color:var(--ink-3);font-size:18px;line-height:1;width:30px;height:30px;border-radius:9px;cursor:pointer}.wb:hover{background:rgba(255,255,255,.8);color:var(--ink)}
.wbody{flex:1;min-height:0;overflow:auto;padding:14px 16px 16px;outline:none}
.wtabs{position:fixed;z-index:100000;right:0;top:140px;display:flex;flex-direction:column;gap:6px;pointer-events:auto;max-height:60vh;overflow:auto}.wtabs[hidden]{display:none}
.wtab{display:flex;align-items:center;gap:8px;max-width:210px;padding:9px 6px 9px 14px;border:0;border-radius:14px 0 0 14px;background:var(--surface);box-shadow:var(--raise);font:inherit;font-size:12.5px;font-weight:700;color:var(--ink-2);cursor:pointer;transform:translateX(0);transition:transform .15s}
.wtab:hover{transform:translateX(-4px);color:var(--ink)}.wtab span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wtab i{width:9px;height:9px;border-radius:50%;background:var(--accent);flex:none;animation:wpulse 1.4s infinite}
.wtab .wx{font-size:15px;line-height:1;width:22px;height:22px;display:grid;place-items:center;border-radius:7px;color:var(--ink-3)}.wtab .wx:hover{background:rgba(255,255,255,.9);color:var(--ink)}
@keyframes wpulse{50%{opacity:.35}}
@media (max-width:900px){.win{inset:56px 0 56px 0!important;width:auto!important;height:auto;max-height:none;border-radius:20px 20px 0 0;resize:none}.whead{cursor:default}.wgrip{display:none}.wtabs{top:auto;bottom:0;left:0;right:0;flex-direction:row;overflow-x:auto;padding:8px 10px;background:var(--surface);box-shadow:0 -6px 20px rgba(26,34,48,.1)}.wtab{border-radius:12px;max-width:170px;padding:9px 6px 9px 12px;flex:none}}

/* ---------- document drop (v0.26): + button in the Skaly VA box, drop zone on the whole panel ---------- */
.aplus{right:80px}#askMic[hidden]+.aplus{right:44px}
.askin textarea{padding-right:122px!important}.notespanel.wide .askin textarea{padding-right:130px!important}
.notespanel.dropping{outline:3px dashed var(--accent);outline-offset:-6px}

/* ---------- dock: Library group, Sign out inside Setup ---------- */
.side [data-k="library"]{--c:#46607f}
.dsepx{display:block;height:1px;background:var(--line);margin:6px 8px}
.dfly .dsign{display:flex;gap:10px;align-items:center;width:100%;padding:9px 12px;border:0;border-radius:11px;background:none;color:var(--ink-2);font:inherit;font-weight:600;font-size:13px;cursor:pointer;text-align:left}
.dfly .dsign svg{width:18px;height:18px;color:#c0453a}.dfly .dsign:hover{color:var(--ink);background:var(--sel)}
@media (min-width:901px){.side .foot #signout{display:none!important}}

/* ---------- Skaly VA: Yes / No question in the chat (v0.27) ---------- */
.aq{margin-top:10px;padding:12px 14px;border-radius:16px;background:#fff;box-shadow:inset 0 0 0 1px var(--line),0 4px 14px rgba(70,96,127,.08);font-size:13.5px}
.aqt{font-weight:800;margin-bottom:6px}.aqd{color:var(--ink-2)}.aqd b{color:var(--ink)}.aqi{margin-top:8px;padding:8px 10px;border-radius:10px;background:var(--sel)}
.aqx{margin-top:8px;color:#a23a30}.aql{margin-top:6px}.aqrow{display:flex;flex-wrap:wrap;gap:2px 12px;padding:5px 0;border-top:1px solid var(--line);font-size:13px}.aqrow b{white-space:nowrap}.aqd s{opacity:.6}
.aqb{display:flex;gap:8px;margin-top:12px}.aqb .btn{min-width:84px}

/* ---------- overlays are almost solid (v0.26.3): nothing readable shows through the dock panels ---------- */
.dfly{background:rgba(255,255,255,.98)!important;-webkit-backdrop-filter:blur(30px) saturate(150%);backdrop-filter:blur(30px) saturate(150%);border:1px solid rgba(26,34,48,.07)!important;box-shadow:0 18px 44px rgba(26,34,48,.18),0 2px 8px rgba(26,34,48,.06)!important}

/* the two dates of a range stay together on one line (v0.27.3) */
.tbar .drg{display:inline-flex;align-items:center;gap:10px;flex:none;white-space:nowrap}.tbar .drg .dr{margin:0}

/* Drafts is a tab next to All / Awaiting payment / Paid, with a small count (v0.27.4) */
.tabs button .tc{margin-left:7px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--accent);color:#2b2200;font-size:11px;font-weight:800;display:inline-grid;place-items:center;vertical-align:1px}
.tabs button.on .tc{background:#fff}

/* Reconcile: one insurer dropdown in the list toolbar instead of a row of buttons (v0.27.5) */
.rinsel{position:relative;display:inline-block}
.rinbtn{display:inline-flex;align-items:center;gap:10px;min-height:44px;border:0;border-radius:14px;padding:0 14px;background:#fff;box-shadow:inset 0 0 0 1px var(--line);font:inherit;font-size:14px;font-weight:600;color:var(--ink-2);cursor:pointer;white-space:nowrap}
.rinbtn:hover{color:var(--ink)}.rinbtn.sel{color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--accent)}.rinbtn small{font-weight:800;color:var(--ink)}
.rinpop{position:absolute;top:calc(100% + 8px);left:0;z-index:60;min-width:460px;max-height:min(420px,60vh);overflow:auto;padding:8px;border-radius:16px;background:#fff;box-shadow:0 18px 44px rgba(26,34,48,.18),0 0 0 1px rgba(26,34,48,.07)}
.rinpop[hidden]{display:none}
.rinrow{display:grid;grid-template-columns:1fr auto auto;gap:6px 14px;align-items:baseline;width:100%;padding:10px 12px;border:0;border-radius:11px;background:none;font:inherit;font-size:13.5px;color:var(--ink-2);text-align:left;cursor:pointer}
.rinrow:hover{background:var(--sel)}.rinrow.on{background:var(--accent);color:#2b2200}.rinrow .rinn{font-weight:700}.rinrow .mono{font-weight:800;color:var(--ink)}.rinrow.on .mono{color:#2b2200}
.rinrow i.rlate{font-style:normal;font-size:11.5px}.rinrow.on i.rlate{background:rgba(255,255,255,.55)}
.rinrow i.rlate{white-space:nowrap}.rinrow .rinn{min-width:0}

/* ===== BEGIN agent presence and activity (src/desk/agent-activity.js) — additive block, keep at the end ===== */
.agx-strip{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;margin:0 0 14px}
.agx-l,.agx-r,.agx-bar .agx-l,.agx-bar .agx-r{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.agx-chip{min-height:36px;font-size:13px}
.agx-chip.on{box-shadow:var(--inset);background:var(--yellow-soft);color:var(--ink)}
.agx-count{font-size:14px;color:var(--ink)}.agx-count b{font-size:16px}
.agx-upd{font-size:12px;color:var(--ink-3)}
.agx-pill{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:99px;font-size:12px;font-weight:700;box-shadow:var(--inset);white-space:nowrap}
.agx-pill i{width:8px;height:8px;border-radius:50%;background:currentColor;flex:none}
.agx-pill.ok{color:var(--ok)}.agx-pill.warn{color:var(--warn)}.agx-pill.mute{color:var(--ink-3)}
.agx-pill.away i{background:transparent;box-shadow:inset 0 0 0 2px currentColor}.agx-pill.offline i{background:transparent;box-shadow:inset 0 0 0 2px currentColor}
.agx-pill.online i{animation:agxpulse 2.4s ease-out infinite}
@keyframes agxpulse{0%{box-shadow:0 0 0 0 rgba(27,107,73,.45)}70%,100%{box-shadow:0 0 0 6px rgba(27,107,73,0)}}
.agx-sub{display:block;font-size:12px;color:var(--ink-3);margin-top:2px}
.agx-mute{color:var(--ink-3);font-size:12px}
tr.agx-hide{display:none}
.agx-c{white-space:nowrap}
.agx{display:flex;flex-direction:column;gap:0}
.agx-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;padding-bottom:12px}
.agx-key{font-weight:700;font-size:14px}
.agx-figs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:12px 0;border-top:1px solid var(--line)}
.agx-figs small{display:block;font-size:12px;color:var(--ink-3)}.agx-figs b{font-size:20px;letter-spacing:-.3px}
.agx-sec{padding:12px 0;border-top:1px solid var(--line)}
.agx-sec h3{font-size:12px;text-transform:uppercase;letter-spacing:.6px;color:var(--ink-3);margin-bottom:8px}
.agx-sec p{font-size:14px}
.agx-chart{display:flex;align-items:flex-end;gap:2px;height:64px}
.agx-b{flex:1;min-width:2px;height:100%;display:flex;align-items:flex-end;position:relative}
.agx-b::before{content:"";display:block;width:100%;height:calc(var(--c)*100%);background:#6f87a6;border-radius:3px 3px 0 0;min-height:0}
.agx-b::after{content:"";position:absolute;left:0;right:0;bottom:0;height:calc(var(--c)*var(--a)*100%);background:#2d4260;border-radius:3px 3px 0 0}
.agx-d{gap:3px}
.agx-axis{display:flex;justify-content:space-between;font-size:12px;color:var(--ink-3);margin-top:4px}
.agx-leg{display:flex;gap:14px;font-size:12px;color:var(--ink-2);margin-bottom:6px}.agx-leg i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;vertical-align:-1px}.agx-leg i.c{background:#6f87a6}.agx-leg i.a{background:#2d4260}
.agx details{margin-top:8px}.agx summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--ink-2);min-height:36px;display:flex;align-items:center}
.agx summary:focus-visible,.agx-chip:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.agx-ev{list-style:none;padding:0;margin:0}.agx-ev li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid var(--line);font-size:14px}.agx-ev li:first-child{border-top:0}.agx-ev time{color:var(--ink-3);font-size:12px;white-space:nowrap}
.agx-note{font-size:12px;color:var(--ink-3);padding-top:10px;border-top:1px solid var(--line)}
.agx-empty{padding:28px 8px}
@media (max-width:900px){.agx-chip,.agx .btn.sm{min-height:44px}.agx summary{min-height:44px}}
@media (max-width:520px){.agx-figs b{font-size:17px}}
@media (prefers-reduced-motion:reduce){.agx-pill.online i{animation:none}}
/* ===== END agent presence and activity ===== */
.file svg{width:14px;height:14px;vertical-align:-2px}

/* Vouchers table: one line per row (v0.28.3) */
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.btn.sm.ico{min-width:36px;padding-left:9px;padding-right:9px}
@media (min-width:901px){
  table[data-ctl="vouchers"] td{white-space:nowrap}
  table[data-ctl="vouchers"] td[data-l="Agent"]{max-width:190px;overflow:hidden;text-overflow:ellipsis}
}
/* narrower desktop windows: drop the least useful columns so the buttons always stay in view */
@media (min-width:901px) and (max-width:1500px){
  table[data-ctl="vouchers"] :is(th,td):nth-child(5){display:none}
  table[data-ctl="vouchers"] td[data-l="Status"] small{display:none}
}
@media (min-width:901px) and (max-width:1400px){
  table[data-ctl="vouchers"] :is(th,td):nth-child(3){display:none}
  table[data-ctl="vouchers"] td[data-l="Agent"]{max-width:150px}
}

/* v0.30 document acceptance + audit */
.pirow.acc{box-shadow:var(--raise-s),0 0 0 2px rgba(27,107,73,.18)}
.axsel{min-height:36px;max-width:230px;border-radius:12px;border:1px solid var(--line,#d9dfe8);background:#fff;color:inherit;padding:0 10px;font:inherit}
.axitem{padding:10px 12px;border-radius:14px;box-shadow:var(--raise-s);margin:8px 0;background:#fff}
.axh{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.axh b{flex:1;min-width:180px}
.axrefs{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;align-items:center}
.axref{min-height:36px;padding:0 12px;border:0;border-radius:999px;background:#fff;box-shadow:var(--raise-s);font:inherit;font-size:12.5px;color:var(--ink);cursor:pointer}
.axref:hover,.axref:focus-visible{outline:2px solid var(--ink-3);outline-offset:1px}
.axchips{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 8px}.axtype{margin:10px 0}.axdoc{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:6px 0;border-top:1px solid rgba(0,0,0,.06)}
.axtiles{margin:6px 0}
@media(max-width:900px){.axref,.axsel{min-height:44px}}
.axbar{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;margin:0 0 8px}

/* v0.31 — Apps + Bookkeeping (src/desk/books.js): one 16 px rhythm, one padding scale (8 / 12 / 16), numbers right-aligned and never split */
.dfly .dapps{display:flex;gap:10px;align-items:center;padding:9px 12px;border-radius:11px;color:var(--ink-2);font-weight:600;font-size:13px;background:none;border:0;width:100%;text-align:left;cursor:pointer;font-family:inherit}
.dfly .dapps svg{width:18px;height:18px}.dfly .dapps:hover{color:var(--ink);background:var(--sel)}
.bkapps{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:16px;padding:4px}
.bktile{display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;padding:18px;border-radius:22px;border:0;background:var(--card,#fff);box-shadow:var(--shadow-s,0 2px 10px rgba(20,30,60,.08));cursor:pointer;font-family:inherit;color:var(--ink);min-height:140px}
.bktile:hover{box-shadow:0 6px 22px rgba(20,30,60,.14)}.bktile:focus-visible{outline:2px solid var(--slate,#44546a);outline-offset:2px}
.bktile .bkic{width:40px;height:40px;border-radius:14px;background:var(--y,#f6d453);display:grid;place-items:center;margin-bottom:4px}.bktile .bkic svg{width:22px;height:22px}
.bktile b{font-size:15px}.bktile small{color:var(--ink-3);font-size:12px;line-height:1.4}
.bktile.off{opacity:.45;filter:grayscale(1);cursor:not-allowed;box-shadow:none;border:1px dashed var(--line,#d6dbe5)}.bktile.off:hover{box-shadow:none}
.win .wbody:has(.bk){padding:16px 20px 20px}
.bk{display:flex;flex-direction:column;gap:16px;min-width:0}
.bk>*{margin:0!important}
.bkbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
.bkbar .tabs{overflow-x:auto;max-width:100%;flex:1 1 auto;margin:0}.bkper{display:flex;gap:8px;align-items:center;flex:0 0 auto}.bkper select,.bkper input{font:inherit;font-size:13px;min-height:36px;margin:0}
.bkact{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.bkgrow{flex:1 1 auto}
.bkkpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.bkkpis .kpi{padding:14px 16px;min-width:0}.bkkpis .kpi small{display:block;line-height:1.3}
.bkkpis .kpi .v{font-size:19px;margin-top:6px;white-space:nowrap;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis}
.bkh{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;font-size:15px;line-height:1.3}.bkh small{color:var(--ink-3);font-weight:600;font-size:12px}
.bknote{line-height:1.5;max-width:70ch}
.bkt{padding:4px 8px;overflow-x:auto}
.bkt table{width:100%;border-collapse:collapse;font-size:12.5px}
.bkt th,.bkt td{padding:10px 12px;vertical-align:top;text-align:left;line-height:1.4}
.bkt th{white-space:nowrap}.bkt th.n,.bkt td.n{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.bkt td:first-child{font-weight:600}
.bkt td.act{white-space:nowrap;text-align:right}.bkt td.act .btn+.btn{margin-left:6px}
.bkt tr+tr td{border-top:1px solid var(--line,#e8ecf3)}
.bkfoot td{background:var(--soft,#f1f4f9)}.bkfoot td:first-child{border-radius:10px 0 0 10px}.bkfoot td:last-child{border-radius:0 10px 10px 0}
.bkinbox{padding:12px 16px}.bkrow{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:10px 0;border-top:1px solid var(--line,#e6e9f0);font-size:13px}.bkinbox>b{display:block;padding-bottom:8px}
.bkrules{padding:14px 16px}.bkrules .sm-note{margin-top:8px;line-height:1.55}
.bkdrop{display:flex;flex-direction:column;gap:8px;align-items:center;text-align:center;padding:20px;border:1.5px dashed var(--line,#c8cfdc);border-radius:18px;margin:14px 0;font-size:13px;color:var(--ink-2)}.bkdrop.on{background:var(--sel,#eef1f7);border-color:var(--slate,#44546a)}.bkdrop b{color:var(--ink)}
.bkmsg{margin:12px 0;line-height:1.45}.bksum{margin-top:12px;line-height:1.5}
.bkpick{max-height:230px;overflow:auto;border:1px solid var(--line,#e6e9f0);border-radius:14px;padding:4px 12px;margin-top:8px}
.bkp{display:flex;gap:12px;align-items:center;padding:10px 0;border-top:1px solid var(--line,#e6e9f0);font-size:13px;cursor:pointer}.bkp:first-child{border-top:0}.bkp span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bkp b{white-space:nowrap}.bkp input{width:18px;height:18px;flex:0 0 auto}
@media(max-width:700px){.bkbar{flex-direction:column;align-items:stretch}.bkper{justify-content:space-between}.bkkpis{grid-template-columns:1fr 1fr}.win .wbody:has(.bk){padding:12px}}

/* windows (24/11): resize from any edge or corner, enlarge to the work area, content follows the window's width (data-sz) */
.win .wr{position:absolute;z-index:3;display:block;touch-action:none}
.win .wr-n,.win .wr-s{left:12px;right:12px;height:8px;cursor:ns-resize}.win .wr-n{top:-4px}.win .wr-s{bottom:-4px}
.win .wr-e,.win .wr-w{top:12px;bottom:12px;width:8px;cursor:ew-resize}.win .wr-e{right:-4px}.win .wr-w{left:-4px}
.win .wr-ne,.win .wr-nw,.win .wr-se,.win .wr-sw{width:16px;height:16px}.win .wr-ne{top:-4px;right:-4px;cursor:nesw-resize}.win .wr-nw{top:-4px;left:-4px;cursor:nwse-resize}.win .wr-se{bottom:-4px;right:-4px;cursor:nwse-resize}.win .wr-sw{bottom:-4px;left:-4px;cursor:nesw-resize}
.win{overflow:visible}.win>.whead{border-radius:20px 20px 0 0}.win>.wbody{border-radius:0 0 20px 20px}
.win.wmax{left:108px!important;top:12px!important;width:calc(100vw - 120px)!important;height:calc(100vh - 24px)!important;max-height:none!important}.win.wmax .wr{display:none}.win.wmax .whead{cursor:default}
.win .wb svg{display:block;margin:auto}
@media (max-width:900px){.win .wr,.win [data-a=max]{display:none}.win{overflow:hidden}}

/* Skaly Leads (24/11): flat table with a barely different surface, quiet chips, indigo for the strong colour */
#skl .top h1{display:flex;align-items:center;gap:12px}.skl-logo{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#1fa463}.skl-logo svg{width:22px;height:22px}
.skl-tabs{display:flex;gap:6px;margin:4px 0 14px;flex-wrap:wrap;align-items:center}.skl-tabs button{flex:none;white-space:nowrap;border:0;background:rgba(26,34,48,.06);border-radius:999px;min-height:38px;padding:0 18px;font:inherit;font-weight:700;color:var(--ink-2);cursor:pointer}.skl-tabs button.on{background:#2a3d8f;color:#fff}
.skl-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}.skl-q{flex:1 1 280px;min-height:42px;border-radius:999px;padding:0 18px}.skl-chips{display:flex;gap:6px;flex-wrap:wrap}.skl-chip{border:0;background:rgba(26,34,48,.06);border-radius:999px;min-height:36px;padding:0 14px;font:inherit;font-weight:600;cursor:pointer}.skl-chip.on{background:#2a3d8f;color:#fff}
.skl-sel{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 14px;margin-bottom:12px;border-radius:20px;background:rgba(42,61,143,.1)}.skl-sel b{margin-right:6px}
.skl-t{width:100%;border-collapse:collapse}.skl-t th{text-align:left;font-size:12px;font-weight:700;color:var(--ink-3);padding:10px 8px;border-bottom:1px solid var(--line)}.skl-t td{padding:9px 8px;border-bottom:1px solid var(--line);vertical-align:middle;font-size:14px}.skl-t td small{display:block;color:var(--ink-3);font-size:12.5px;margin-top:1px}.skl-t .n{text-align:right;white-space:nowrap}.skl-t .r{text-align:right}.skl-t tr.sel{background:rgba(42,61,143,.07)}.skl-t tr.oo{opacity:.55}.skl-t input[type=checkbox]{width:18px;height:18px}
.skl-sc{display:inline-block;width:46px;height:6px;border-radius:4px;background:rgba(26,34,48,.1);margin-right:8px;vertical-align:middle;overflow:hidden}.skl-sc i{display:block;height:100%;background:#2a3d8f}
.skl-d,.skl-s{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700;background:rgba(26,34,48,.08)}.d-easy{background:rgba(31,164,99,.15);color:#17794a}.d-hard{background:rgba(224,122,31,.18);color:#9b4d07}.d-cold{background:rgba(42,61,143,.14);color:#2a3d8f}.d-medium{background:rgba(26,34,48,.08)}
.s-offered{background:rgba(246,194,26,.3);color:#6e5200}.s-accepted{background:rgba(31,164,99,.15);color:#17794a}.s-returned{background:rgba(224,122,31,.18);color:#9b4d07}.skl-s.oo{background:rgba(169,50,37,.12);color:#a93225}
.skl-foot{padding:10px 4px;color:var(--ink-3);font-size:13px}.skl-rules{margin-bottom:14px;display:grid;gap:4px}.skl-rules h3{margin:0 0 6px;font-size:16px}.skl-sw{display:flex;gap:12px;align-items:flex-start;padding:8px 0}.skl-sw input{width:20px;height:20px;margin-top:2px}.skl-sw small{display:block;color:var(--ink-3);font-size:13px}
.skl-pick{display:grid;gap:6px;margin:12px 0;max-height:46vh;overflow:auto}.skl-pick button{display:grid;gap:2px;text-align:left;border:0;border-radius:16px;background:rgba(26,34,48,.05);padding:12px 16px;font:inherit;cursor:pointer}.skl-pick button:hover{background:rgba(42,61,143,.12)}.skl-pick small{color:var(--ink-3)}
.skl-plan{display:grid;gap:2px;margin:12px 0;max-height:48vh;overflow:auto}.skl-plan>div{display:flex;justify-content:space-between;gap:16px;padding:9px 4px;border-bottom:1px solid var(--line)}.skl-plan small{display:block;color:var(--ink-3);font-size:12.5px}.skl-plan .r{text-align:right}
.skl-pv{margin:10px 0;font-size:14px;line-height:1.5}.skl-sample{margin-top:8px;padding:10px 12px;border-radius:14px;background:rgba(26,34,48,.05);font-size:13px;color:var(--ink-2)}.skl-pv .bad{color:#a93225}.skl-pause{display:flex;align-items:center;gap:8px;align-self:end;min-height:44px}

/* presence column: a dot and one word, nothing else */
.agx-pill.s{box-shadow:none;background:rgba(26,34,48,.05);padding:4px 12px}.agx-pill.s i{background:currentColor!important;box-shadow:none!important;animation:none}.agx-pill.s.ok{color:#17794a}.agx-pill.s.ok i{background:#1fa463!important}.agx-pill.s.mute{color:#6a7385}.agx-pill.s.mute i{background:#9aa3b2!important}

/* Activity window: tabs and the live feed */
.agx-tabs{display:flex;gap:6px;margin:0 0 12px}.agx-tabs button{border:0;background:rgba(26,34,48,.06);border-radius:999px;min-height:36px;padding:0 16px;font:inherit;font-weight:700;color:var(--ink-2);cursor:pointer}.agx-tabs button.on{background:#2a3d8f;color:#fff}
.agx-fk{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 6px}.agx-fkb{border:0;background:rgba(26,34,48,.06);border-radius:999px;min-height:32px;padding:0 14px;font:inherit;font-size:13px;font-weight:600;cursor:pointer}.agx-fkb.on{background:rgba(42,61,143,.16);color:#2a3d8f}
.agx-live{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:#17794a}.agx-live i{width:8px;height:8px;border-radius:50%;background:#1fa463;animation:agxpulse 2.4s ease-out infinite}
.agx-day{margin:16px 0 4px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}.agx-feed{list-style:none;margin:0;padding:0}
.agx-fi{display:grid;grid-template-columns:46px 12px 1fr;gap:10px;align-items:start;padding:9px 0;border-bottom:1px solid var(--line)}.agx-fi time{font-size:12.5px;color:var(--ink-3);padding-top:2px;font-variant-numeric:tabular-nums}.agx-fd{width:9px;height:9px;border-radius:50%;margin-top:6px;background:#9aa3b2}
.agx-ft{min-width:0;font-size:14px;line-height:1.4}.agx-ft em{font-style:normal;color:#2a3d8f;font-weight:600;margin-left:6px}.agx-ft small{display:block;color:var(--ink-3);font-size:12.5px}
.agx-fi.k-lead .agx-fd{background:#2a3d8f}.agx-fi.k-proposal .agx-fd{background:#f6c21a}.agx-fi.k-sale .agx-fd{background:#1fa463}.agx-fi.k-commission .agx-fd{background:#e07a1f}

/* Tariffs review (v0.35) */
.rvw-q{margin-left:auto;flex:0 1 300px;min-width:180px;border:0;background:#f1f4f9;border-radius:999px;padding:9px 16px;font:inherit}
.rvw-h{margin:16px 0 6px;font-size:14px}.rvw-ul{margin:0;padding-left:18px;color:#566074;font-size:13px}.rvw-ul li{margin:3px 0}
.rvw-plans{max-height:46vh;overflow:auto;display:grid;gap:6px}.rvw-plan{background:#f8f9fc;border-radius:14px;padding:8px 12px}.rvw-plan summary{cursor:pointer;display:flex;gap:10px;align-items:center;flex-wrap:wrap}

/* ---- Workspace (Setup → Workspace): the agency's own settings ---- */
.wsp-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.wsp-nav a{padding:7px 12px;border-radius:999px;background:#fff;border:1px solid var(--sel,#e4eaf3);color:var(--ink-2);text-decoration:none;font-weight:600;font-size:13px}
.wsp-nav a:hover,.wsp-nav a:focus-visible{color:var(--ink);border-color:var(--ink-3)}
.wsp{display:grid;gap:18px;max-width:900px}
.wsp-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:8px}
.wsp-card h2{font-size:17px;margin:0 0 2px}
.wsp-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,300px);gap:14px;align-items:center;padding:12px 0;border-top:1px solid var(--sel,#e4eaf3)}
.wsp-row>span:first-child{display:grid;gap:2px}.wsp-row b{font-weight:600}
.wsp-row input:not([type=checkbox]):not([type=color]),.wsp-row select{width:100%;min-height:38px}
.wsp-bool{grid-template-columns:minmax(0,1fr) auto;cursor:pointer}.wsp-bool input{width:22px;height:22px}
.wsp-color{display:flex;align-items:center;gap:10px}.wsp-color input{width:46px;height:38px;padding:2px;border-radius:10px}
.wsp-logo{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.wsp-logo img{width:56px;height:56px;object-fit:contain;border-radius:12px;background:#fff;border:1px solid var(--sel,#e4eaf3)}
.wsp-preview{display:flex;align-items:center;gap:12px;margin:4px 0 8px}.wsp-pv-bar{width:120px;height:10px;border-radius:6px}.wsp-pv-btn{padding:8px 14px;border-radius:10px;font-weight:700;font-size:13px}
.wsp-store{display:grid;gap:8px}.wsp-meter{height:10px;border-radius:6px;background:var(--sel,#e4eaf3);overflow:hidden}.wsp-meter i{display:block;height:100%;background:var(--brand,#2a3d8f)}.wsp-meter i.warning{background:#d98a00}.wsp-meter i.full{background:#c0392b}
.wsp-card .err{color:#b42318;display:block;margin:-6px 0 8px}
@media (max-width:700px){.wsp-row{grid-template-columns:1fr}}
.wsp-extra{margin-top:10px}.wsp-break{word-break:break-all;font-size:11px}.wsp-log{margin-top:10px}.wsp-log summary{cursor:pointer;font-weight:600;padding:8px 0}
.wsp-mbox{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;padding:12px 0;border-top:1px solid var(--sel,#e4eaf3)}.wsp-mbox label{display:grid;gap:4px;font-weight:600;font-size:13px}.wsp-mbox-act{display:flex;gap:8px;align-items:end;flex-wrap:wrap}
.tm-inv{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;align-items:end;margin-top:10px}.tm-inv label{display:grid;gap:4px;font-weight:600;font-size:13px}
.tm-link{margin-top:12px;padding:10px 12px;border-radius:12px;background:var(--brand-soft,#eef1fa)}.tm-link code{word-break:break-all;font-size:12px}
.rl-form{margin-top:14px;padding-top:12px;border-top:1px solid var(--sel,#e4eaf3)}.rl-perms{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:6px 16px;border:0;padding:0;margin:12px 0}
.rl-perms legend{font-weight:700;margin-bottom:6px}.rl-perms label{display:flex;gap:8px;align-items:center;font-size:13px}.rl-perms label.off{color:var(--ink-3)}
/* ---- Upgrade (Inflow language: pills, large radii, ONE white card, selection = yellow, flat) ---- */
.sb-banner{margin:0 0 14px;padding:10px 16px;border-radius:999px;background:#fff4d6;color:#5c4400;font-weight:600}.sb-banner.bad{background:#fde7e4;color:#7a1d12}.sb-banner a{margin-left:8px}
.up{display:grid;gap:18px;max-width:1240px}
.up-white{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);background:#fff;border-radius:30px;box-shadow:0 1px 0 #fff inset,0 10px 34px rgba(70,96,127,.10);overflow:hidden}
.up-left{padding:30px 34px;display:grid;gap:14px;align-content:start}.up-right{padding:30px 34px;border-left:1px solid var(--line,#e4eaf3);display:grid;gap:12px;align-content:start;color:var(--ink-2)}
.up-seg{display:inline-flex;gap:4px;padding:4px;border-radius:999px;background:#f1f4f9;justify-self:start;flex-wrap:nowrap}
.up-seg button{border:0;background:none;border-radius:999px;min-height:38px;padding:0 18px;font:inherit;font-weight:700;color:var(--ink-2);cursor:pointer;white-space:nowrap;display:inline-flex;align-items:center;gap:7px;transition:background .18s,color .18s}
.up-seg button:hover:not(.on){background:rgba(255,255,255,.7)}.up-seg button.on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(26,34,48,.14)}.up-seg button i{width:7px;height:7px;border-radius:50%;background:var(--accent,#f6c21a)}
.up-h{font-size:28px;line-height:1.15;margin:4px 0 0;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.up-h .pill{font-size:12px}
.up-price{margin:0;font-size:15px;color:var(--ink-2)}.up-price b{font-size:22px;color:var(--ink)}.up-price span{font-size:13px}.up-when{margin:0;color:var(--ink-3);font-size:13px}
.up-ms{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding-top:6px}.up-m{display:grid;gap:4px;font-size:13px;color:var(--ink-2)}.up-m b{font-size:17px;color:var(--ink)}.up-m b em{font-style:normal;font-weight:500;color:var(--ink-3);font-size:13px}
.up-m i{height:7px;border-radius:5px;background:#e4eaf3;overflow:hidden}.up-m u{display:block;height:100%;background:var(--brand,#2a3d8f);border-radius:5px}
.up-cta{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding-top:6px}.up-go{min-width:170px;min-height:46px;font-size:15px}.up-wait{font-size:13px;color:var(--warn,#a15c00);font-weight:600}
.up-descr{margin:0;font-size:15px;line-height:1.5;color:var(--ink)}.up-right ul,.up-p ul{margin:0;padding:0;list-style:none;display:grid;gap:7px}.up-right li,.up-p ul li{position:relative;padding-left:16px;font-size:13.5px}.up-right li::before,.up-p ul li::before{content:'';position:absolute;left:0;top:.62em;width:6px;height:6px;border-radius:50%;background:var(--accent,#f6c21a)}
.up-hist{padding:6px 8px}.up-hist h3{font-size:15px;margin:0 0 8px}.up-hist table{width:100%;border-collapse:collapse}.up-hist th,.up-hist td{text-align:left;padding:9px 8px;border-bottom:1px solid var(--line,#e4eaf3);font-size:13px}.up-hist th{color:var(--ink-3);font-weight:700}.up-hist .n{text-align:right}
.up-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.up-back{border:0;background:none;font:inherit;font-weight:700;color:var(--ink-2);cursor:pointer;padding:8px 4px}.up-back:hover{color:var(--ink)}
.up-tabs{justify-self:auto}
.up-body{display:grid;gap:14px;padding-bottom:110px}.up-note{margin:0;color:var(--ink-3);font-size:13px}
.up-chips,.up-cycle{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.up-chips button,.up-cycle button{border:0;background:#fff;border-radius:999px;min-height:36px;padding:0 15px;font:inherit;font-weight:700;font-size:13px;color:var(--ink-2);cursor:pointer;box-shadow:var(--raise-s,0 1px 3px rgba(26,34,48,.12));white-space:nowrap}
.up-chips button.on,.up-cycle button.on{background:var(--yellow-soft,#fdf1c4);color:var(--ink)}.up-cycle small{color:var(--ink-3)}
.up-grid,.up-plans{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:14px;align-items:stretch}
.up-i,.up-p{display:flex;flex-direction:column;justify-content:space-between;gap:14px;background:#fff;border-radius:26px;padding:20px 22px;box-shadow:0 1px 0 #fff inset,0 6px 20px rgba(70,96,127,.08);transition:background .18s,box-shadow .18s,transform .18s}
.up-i:hover,.up-p:hover{transform:translateY(-2px);box-shadow:0 1px 0 #fff inset,0 12px 28px rgba(70,96,127,.14)}
.up-i.sel,.up-p.sel{background:var(--accent,#f6c21a)}.up-i.own,.up-p.own{background:#f1f4f9;box-shadow:none;transform:none;color:var(--ink-3)}
.up-it{display:grid;gap:5px}.up-it b{font-size:15px}.up-it span{font-size:13px;color:var(--ink-2);line-height:1.45}.up-i.own .up-it span{color:var(--ink-3)}
.up-if{display:flex;align-items:center;justify-content:space-between;gap:10px}.up-if em{font-style:normal;font-weight:800;font-size:15px}.up-if em small{font-weight:600;color:var(--ink-3);margin-left:2px}.up-i.own .up-if em{font-size:12.5px;font-weight:700;color:var(--ink-3)}
.up-add{border:0;border-radius:999px;min-height:36px;padding:0 18px;font:inherit;font-weight:800;font-size:13px;cursor:pointer;background:#f1f4f9;color:var(--ink);transition:background .18s}.up-add:hover{background:#e4eaf3}.up-add[aria-pressed=true]{background:#fff;color:var(--ink)}
.up-ck{width:22px;height:22px;border-radius:50%;background:var(--ink-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat;opacity:.55}
.up-p h3{font-size:19px;margin:0}.up-p h3 small{font-size:11px;font-weight:700;color:var(--ink-3);margin-left:6px}.up-state{font-size:13px;font-weight:700;color:var(--ink-3)}
.up-total{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);z-index:30;display:flex;align-items:center;gap:22px;padding:12px 14px 12px 26px;border-radius:999px;background:rgba(255,255,255,.94);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:0 14px 40px rgba(26,34,48,.16);min-width:420px;justify-content:space-between}
.up-total small{display:block;color:var(--ink-3);font-weight:600}.up-total b{font-size:22px}.up-total span{font-size:13px;color:var(--ink-3)}
.up-lines,.up-steps{margin:10px 0;padding:0;list-style:none;display:grid;gap:8px}.up-steps{list-style:decimal;padding-left:20px}.up-lines li{display:flex;justify-content:space-between;gap:16px;font-size:14px}.up-lines li.t{border-top:1px solid var(--line,#e4eaf3);padding-top:8px;font-size:16px}
.up-form{display:grid;gap:12px}.up-form label{display:grid;gap:4px;font-weight:600;font-size:13px}
.up-plans{grid-template-columns:repeat(auto-fit,minmax(290px,1fr));row-gap:0;align-items:stretch}
.up-plans>.up-p{grid-row:span 5;display:grid;grid-template-rows:subgrid;row-gap:12px;margin-bottom:14px;justify-content:stretch;align-content:start}
.up-plans>.up-p .up-add,.up-plans>.up-p .up-state{align-self:end;justify-self:stretch;text-align:center;display:flex;align-items:center;justify-content:center;min-height:40px}
@supports not (grid-template-rows:subgrid){.up-plans>.up-p{grid-row:auto;display:flex;flex-direction:column}.up-plans>.up-p ul{flex:1}}
@media (max-width:900px){.up-white{grid-template-columns:1fr}.up-right{border-left:0;border-top:1px solid var(--line,#e4eaf3)}.up-ms{grid-template-columns:1fr}.up-total{min-width:0;width:calc(100% - 24px);bottom:calc(var(--nav-h,64px) + 12px)}.up-seg{max-width:100%;overflow:auto}}

/* ---- Overview: NO SCROLL, ever (Yasmin, 25/11). The page is exactly the window: search bar, one button row, and a bento that takes all the room left. ---- */
@media (min-width:901px){
  html:has(.bento.bgrid.kpis),body:has(.bento.bgrid.kpis){overflow:hidden;height:100%}
  body:has(.bento.bgrid.kpis) .app{min-height:0;height:100vh;height:100dvh}
  body:has(.bento.bgrid.kpis) .app>main{height:100vh;height:100dvh;box-sizing:border-box;padding-top:86px!important;padding-bottom:20px!important;display:flex;flex-direction:column;overflow:hidden}
  body:has(.bento.bgrid.kpis) .app>main>*{flex-shrink:0}
  body:has(.bento.bgrid.kpis) .app>main>.ovtop{margin-bottom:12px}
  body:has(.bento.bgrid.kpis) .app>main>.bento.bgrid{flex:1 1 0;height:auto!important;min-height:0;margin-top:0;flex-shrink:1}
  body:has(.bento.bgrid.kpis) .bgrid .bc{overflow:hidden}
}
@media (min-width:901px) and (max-height:820px){ .bgrid .bpn{font-size:24px} .bgrid [data-k=collect] .bpn{font-size:34px} .bgrid .bc{padding:12px 14px} .bgrid [data-k=renew]{padding:16px 18px} .bgrid .bc .bi{width:32px;height:32px} }
@media (min-width:901px) and (max-height:660px){ .bgrid .bps,.bgrid .bpa+.bps{display:none} .bgrid .bpn{font-size:20px} .bgrid [data-k=collect] .bpn{font-size:28px} }

/* ---- Workspace and Team: same language as Upgrade (pill selector on one line, 30px cards, calm rows, equal-height controls) ---- */
.wsp-nav{display:flex;flex-wrap:nowrap;gap:4px;padding:4px;border-radius:999px;background:#f1f4f9;overflow-x:auto;scrollbar-width:none;position:sticky;top:8px;z-index:5;max-width:100%;margin:0 0 20px;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.wsp-nav::-webkit-scrollbar{display:none}
.wsp-nav a{flex:none;white-space:nowrap;border:0;background:none;min-height:36px;padding:0 16px;display:inline-flex;align-items:center;border-radius:999px;color:var(--ink-2);font-weight:700;transition:background .18s,color .18s}
.wsp-nav a:hover,.wsp-nav a:focus-visible{background:#fff;color:var(--ink);border:0;box-shadow:0 1px 3px rgba(26,34,48,.14)}
.wsp{display:grid;gap:18px;max-width:1100px}
.wsp-card,.tm-card{border-radius:30px;padding:26px 32px}
.wsp-card header{margin-bottom:10px;align-items:center}
.wsp-card header .btn{min-width:92px;min-height:40px}
.wsp-row{padding:10px 0;min-height:56px}
.wsp-row input:not([type=checkbox]):not([type=color]),.wsp-row select{min-height:42px}
.tm-inv{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px 14px;margin-top:14px;align-items:end}
.tm-inv .btn{min-height:42px;white-space:nowrap}
.tw table th{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
.tw table td{padding-top:12px;padding-bottom:12px;vertical-align:middle}
.tw .pill{font-size:12px;padding:4px 12px}
.wsp-sim .tm-inv{grid-template-columns:minmax(150px,1.2fr) minmax(190px,1.3fr) repeat(3,minmax(120px,.8fr));align-items:start;gap:12px 14px}
.wsp-sim .tm-inv label{align-content:start;min-width:0}
.wsp-sim .tm-inv select{min-width:0;max-width:100%;text-overflow:ellipsis}
.wsp-sim .tm-inv .dd{width:100%;min-width:0;max-width:100%}.wsp-sim .tm-inv .dd *{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wsp-sim .tm-inv input,.wsp-sim .tm-inv select{min-height:44px;width:100%}
@media (max-width:1100px){.wsp-sim .tm-inv{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.wsp-sim .tm-inv{grid-template-columns:1fr}}

/* ---- Workspace as a list of sections (left) + the chosen section (right) ---- */
.wsp-split{display:grid;grid-template-columns:240px minmax(0,1fr);gap:22px;align-items:start;max-width:1240px}
.wsp-list{position:sticky;top:12px;display:grid;gap:2px;padding:10px;border-radius:28px;background:#fff;box-shadow:0 1px 0 #fff inset,0 8px 26px rgba(70,96,127,.09)}
.wsp-li{display:flex;align-items:center;justify-content:space-between;gap:10px;border:0;background:none;text-align:left;min-height:40px;padding:0 16px;border-radius:999px;font:inherit;font-weight:700;color:var(--ink-2);cursor:pointer;transition:background .18s,color .18s}
.wsp-li:hover:not(.on){background:#f1f4f9;color:var(--ink)}.wsp-li.on{background:var(--yellow-soft,#fdf1c4);color:var(--ink)}
.wsp-dot{width:8px;height:8px;border-radius:50%;background:var(--accent,#f6c21a);flex:none}.wsp-dot[hidden]{display:none}
.wsp{max-width:none}.wsp-card[hidden]{display:none}
@media (max-width:900px){.wsp-split{grid-template-columns:1fr}.wsp-list{position:static;display:flex;overflow-x:auto;border-radius:999px;padding:4px;scrollbar-width:none}.wsp-li{flex:none;white-space:nowrap}}
.wsp-split .wsp-row{padding:5px 0;min-height:48px}
.wsp-split .wsp-row input:not([type=checkbox]):not([type=color]),.wsp-split .wsp-row select{min-height:38px}
.wsp-split .wsp-card{padding:22px 28px}
.wsp-split .wsp-card header{margin-bottom:6px}

/* ---- Setup assistant: progress pill in the top bar + one-step window (Inflow language) ---- */
.ob-pill{display:inline-flex;align-items:center;gap:10px;height:42px;padding:0 16px 0 8px;margin-left:auto;border:0;border-radius:999px;background:#fff;box-shadow:0 1px 0 #fff inset,0 4px 16px rgba(70,96,127,.12);font:inherit;cursor:pointer;color:var(--ink);transition:transform .18s,box-shadow .18s}
.ob-pill:hover{transform:translateY(-1px);box-shadow:0 1px 0 #fff inset,0 8px 22px rgba(70,96,127,.18)}
.ob-pill b{display:block;font-size:13px;line-height:1.1}.ob-pill small{display:block;font-size:11px;color:var(--ink-3);font-weight:600}
.ob-ring{--p:0;width:28px;height:28px;border-radius:50%;background:conic-gradient(var(--accent,#f6c21a) calc(var(--p)*1%),#e4eaf3 0);display:grid;place-items:center;flex:none}.ob-ring i{width:18px;height:18px;border-radius:50%;background:#fff}
.ob{display:grid;gap:14px;padding:4px 2px}
.ob-prog{display:flex;gap:6px}.ob-dot{flex:1;border:0;background:none;padding:6px 0;cursor:pointer}.ob-dot span{display:block;height:6px;border-radius:5px;background:#e4eaf3;transition:background .2s}
.ob-dot.done span{background:var(--accent,#f6c21a)}.ob-dot.later span{background:#cfd6e2}.ob-dot.cur span{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--brand,#2a3d8f)}
.ob-h{margin:2px 0 0;font-size:22px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ob-tip{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:22px;background:#f1f4f9}.ob-tip img{flex:none;margin-top:2px}.ob-tip p{margin:2px 0 6px;font-size:13.5px;line-height:1.5;color:var(--ink-2)}
.ob-ask{border:0;background:#fff;border-radius:999px;min-height:30px;padding:0 14px;font:inherit;font-weight:700;font-size:12.5px;cursor:pointer;box-shadow:0 1px 3px rgba(26,34,48,.14)}
.ob-fields .wsp-row{padding:5px 0;min-height:48px}.ob-fields .wsp-row input:not([type=checkbox]):not([type=color]),.ob-fields .wsp-row select{min-height:38px}
.ob-text{margin:0;color:var(--ink-2);font-size:14.5px;line-height:1.55}.ob-ok{margin:0;color:var(--ok);font-weight:700}
.ob-foot{display:flex;align-items:center;gap:10px;padding-top:6px;border-top:1px solid var(--line,#e4eaf3)}.ob-sp{flex:1}
@media (max-width:900px){.ob-pill small{display:none}.ob-pill{height:38px}}
.ob-foot{position:sticky;bottom:-1px;background:#fff;padding:12px 0 2px;margin-top:4px;z-index:2}

/* picking from a list = chips (never a comma-separated text) */
.wsp-row.wsp-wide{grid-template-columns:1fr;gap:8px;align-items:start}
.wsp-chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.wsp-chip{border:0;background:#f1f4f9;border-radius:999px;min-height:36px;padding:0 16px;font:inherit;font-weight:700;font-size:13px;color:var(--ink-2);cursor:pointer;transition:background .18s,color .18s}
.wsp-chip:hover:not(:disabled):not(.on){background:#e4eaf3;color:var(--ink)}.wsp-chip.on{background:var(--accent,#f6c21a);color:var(--accent-ink,#1a2230)}.wsp-chip:disabled{opacity:.45;cursor:not-allowed}
.wsp-addchip{display:inline-flex;align-items:center;gap:6px}.wsp-addchip input{min-height:36px;width:130px;border-radius:999px;padding:0 14px}

/* ---- Detail panels: title OUTSIDE the card (as in Apple Settings), flat boxes (no raised shadow), tighter gap to the dock ---- */
@media (min-width:901px){main{padding-left:18px}}
.wsp-card{background:none;box-shadow:none;border-radius:0;padding:0}
.wsp-split .wsp-card{padding:0}
.wsp-card>header{padding:0 6px 10px;margin:0;align-items:flex-end}
.wsp-card>header h2{font-size:21px;margin:0}
.wsp-card>header .sm-note{margin:2px 0 0;font-size:13px}
.wsp-box{border-radius:26px;box-shadow:none;border:1px solid var(--line,#e4eaf3);padding:6px 28px 8px}
.wsp-box .wsp-row:first-child{border-top:0}
.wsp-box .wsp-store{padding:18px 0}
.wsp-list{box-shadow:none;border:1px solid var(--line,#e4eaf3)}

.tm-sec{margin:0 0 22px}.tm-sec:last-child{margin-bottom:0}
.tm-sh{padding:0 6px 10px}.tm-sh h2{font-size:21px;margin:0}.tm-sh .sm-note{margin:2px 0 0;font-size:13px}
.tm-card{box-shadow:none;border:1px solid var(--line,#e4eaf3);border-radius:26px}

/* ---- Import hub: flat compact cards on a thirds grid, bare icons, buttons with a little volume (white or yellow gradient) ---- */
.hubs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.hubs .hub{display:grid;grid-template-rows:auto auto 1fr auto;gap:4px;align-content:start;padding:18px 20px 16px;border-radius:22px;box-shadow:none;border:1px solid var(--line,#e4eaf3);background:#fff}
.hubs .hub-wide{grid-column:span 2}
.hubs .hub .hubic{width:auto;height:auto;background:none;box-shadow:none;border-radius:0;padding:0;display:block;color:var(--ink-2);margin:0 0 2px}
.hubs .hub .hubic svg{width:22px;height:22px}
.hubs .hub h2{font-size:16px;line-height:1.25}
.hubs .hub .sm-note{font-size:13px;line-height:1.45;margin:0;color:var(--ink-3)}
.hubact{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px;align-self:end}
.hubs .hub .btn{min-height:36px;padding:0 16px;font-size:13px;font-weight:700;border-radius:999px;border:1px solid #dde3ec;color:var(--ink);background:linear-gradient(#ffffff,#f1f4f9);box-shadow:0 1px 0 #fff inset,0 2px 5px rgba(26,34,48,.09);transition:transform .15s,box-shadow .15s}
.hubs .hub .btn:hover{transform:translateY(-1px);box-shadow:0 1px 0 #fff inset,0 4px 9px rgba(26,34,48,.13)}
.hubs .hub .hubact>:first-child{background:linear-gradient(#ffd95a,#f3b90a);border-color:#e0a800;color:#2a2100;box-shadow:0 1px 0 rgba(255,255,255,.55) inset,0 2px 6px rgba(200,140,0,.28)}
.hubs .hub .hubact>:first-child:hover{box-shadow:0 1px 0 rgba(255,255,255,.55) inset,0 5px 11px rgba(200,140,0,.34)}
@media (max-width:900px){.hubs{grid-template-columns:1fr}.hubs .hub-wide{grid-column:auto}}

.rl-tpl{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:6px 0 10px}

/* the four lead counters stay on ONE line, whatever the width (flat strip, hairlines between) */
.kpis.one{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:0;overflow:hidden}
.kpis.one .kpi{padding:16px 20px;box-shadow:none;background:none;border-radius:0;min-width:0}
.kpis.one .kpi+.kpi{border-left:1px solid var(--line,#e4eaf3)}
.kpis.one .kpi .v{font-size:26px;line-height:1.1;font-variant-numeric:tabular-nums}
.kpis.one .kpi .l,.kpis.one .kpi small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
@media (max-width:700px){.kpis.one .kpi{padding:12px 10px}.kpis.one .kpi .v{font-size:20px}.kpis.one .kpi small{font-size:11px}}

.ob-req{margin:-4px 0 0;font-size:13px;color:var(--warn,#a15c00);font-weight:600}
.ob-pill.need{background:var(--yellow-soft,#fdf1c4)}.ob-pill.need small{color:#7a5a00}
.ob-banner{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 16px;padding:12px 18px;border-radius:22px;background:var(--yellow-soft,#fdf1c4);color:#5c4400;font-size:13.5px}
.ob-banner .btn{margin-left:auto}

/* the demo bar: a pill at the bottom centre, it never moves the page (the Overview must not scroll) */
.sb-banner.demo{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:24;margin:0;padding:8px 10px 8px 20px;border-radius:999px;display:flex;align-items:center;gap:10px;background:#fff;color:var(--ink);box-shadow:0 10px 34px rgba(26,34,48,.16);white-space:nowrap;max-width:calc(100vw - 24px)}
.sb-banner.demo b{font-weight:800}.sb-banner.demo a{margin-left:4px;font-weight:700}
@media (max-width:900px){.sb-banner.demo{bottom:calc(var(--nav-h,64px) + 10px);white-space:normal;border-radius:22px;font-size:13px}}

/* ---- Tutorial: dimmed page, a spotlight on the tool, a bubble, a black bar with two icons ---- */
.tut{position:fixed;inset:0;z-index:9000}
.tut-hit{position:absolute;inset:0}
.tut-spot{position:absolute;pointer-events:none;box-shadow:0 0 0 9999px rgba(8,16,12,.64),0 0 0 3px var(--accent,#f6c21a),0 0 26px 4px rgba(246,194,26,.5);transition:left .35s ease,top .35s ease,width .35s ease,height .35s ease,border-radius .35s}
.tut-bar{position:fixed;top:14px;right:18px;z-index:9100;display:flex;align-items:center;gap:6px;padding:6px 8px 6px 18px;border-radius:999px;background:#0b0f0d;color:#fff;font:600 13px 'Plus Jakarta Sans',sans-serif;box-shadow:0 10px 30px rgba(0,0,0,.4)}
.tut-bar b{color:var(--accent,#f6c21a);margin-left:6px}
.tut-ic{width:36px;height:36px;border-radius:50%;border:0;background:rgba(255,255,255,.1);color:#fff;display:grid;place-items:center;cursor:pointer;transition:background .18s}.tut-ic:hover,.tut-ic:focus-visible{background:rgba(255,255,255,.24)}
.tut-tip{position:fixed;z-index:9050;box-sizing:border-box;background:#fff;color:var(--ink);border-radius:22px;padding:18px 20px 16px;box-shadow:0 20px 56px rgba(0,0,0,.4);animation:tutin .28s ease both}
.tut-tip b{display:block;font-size:16px;margin-bottom:4px}.tut-tip p{margin:0 0 14px;font-size:14px;line-height:1.5;color:var(--ink-2)}
.tut-nav{display:flex;justify-content:space-between;gap:10px}.tut-nav .btn{min-height:38px;padding:0 20px}
@keyframes tutin{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.tut-spot{transition:none}.tut-tip{animation:none}}
@media (max-width:700px){.tut-bar{top:8px;right:8px;padding-left:14px}}
