/* Neeatly One cabinet (17.11 cab1711). Light only by the owner's word («Apple светлый», «без тёмной темы»).
   iOS grouped surfaces: grey ground, white tiles, inset separators; glass only on the bars; motion on transform and
   opacity. One accent (Neeatly deep blue), role colours only on the departments' own marks. */
:root{
  color-scheme:light only;
  --ground:#f2f2f7; --tile:#fff; --ink:#1d1d1f; --ink2:#3a3a3c; --mut:#6e6e73; --mut2:#8e8e93;
  --sep:rgba(60,60,67,.13); --fill:rgba(118,118,128,.12); --fill2:rgba(118,118,128,.08);
  --acc:#2459c6; --acc-d:#163f93; --acc-l:#e9effc;
  --ok:#1f9d55; --warn:#c77700; --bad:#d93025;
  --grad:linear-gradient(120deg,#2d63c8 0%,#1f4a92 40%,#0d2e62 80%,#08224b 100%);
  --r:18px; --rs:12px;
  --sh:0 1px 2px rgba(0,0,0,.04),0 6px 20px rgba(13,46,98,.06);
  --font:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,"Segoe UI",Roboto,Arial,sans-serif;
  --safe-b:env(safe-area-inset-bottom,0px);
  --ease:cubic-bezier(.32,.72,0,1);
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;background:var(--ground)}
body{font-family:var(--font);color:var(--ink);background:var(--ground);font-size:17px;line-height:1.4;letter-spacing:-.012em;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow-x:hidden;-webkit-tap-highlight-color:transparent}
img,svg{display:block}
a{color:var(--acc);text-decoration:none}
button,input,textarea,select{font:inherit;color:inherit;letter-spacing:inherit}
button{background:none;border:0;cursor:pointer;text-align:inherit}
[hidden]{display:none!important}
svg.i{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
:focus-visible{outline:2px solid var(--acc);outline-offset:2px;border-radius:8px}

/* ── solo screens: loading, sign-in, building ───────────────────────────────────────────────────────────────── */
.center-v{min-height:100vh;min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:32px 20px}
.spin{width:28px;height:28px;border-radius:50%;border:3px solid var(--fill);border-top-color:var(--acc);animation:rot .8s linear infinite}
@keyframes rot{to{transform:rotate(360deg)}}
.solo{width:100%;max-width:420px;text-align:center;display:flex;flex-direction:column;align-items:center}
.solo-mark{width:64px;height:64px;border-radius:16px;margin-bottom:22px;box-shadow:var(--sh)}
.solo-isl{width:min(300px,78vw);height:auto;margin-bottom:8px;animation:float 6s ease-in-out infinite}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
.solo h1{font-size:30px;line-height:1.12;font-weight:700;letter-spacing:-.03em}
.solo .sub{color:var(--mut);margin:10px 0 24px;font-size:17px}
.solo-form{width:100%;display:flex;flex-direction:column;gap:10px}
.solo-form input{height:52px;border-radius:14px;border:0;background:var(--tile);padding:0 16px;box-shadow:inset 0 0 0 1px var(--sep);font-size:17px}
.solo-form input:focus{outline:0;box-shadow:inset 0 0 0 2px var(--acc)}
.note{font-size:14px;color:var(--mut);min-height:20px;margin-top:4px}
.note.warn{color:var(--warn)}
.note.ok{color:var(--ok)}
.link-quiet{margin-top:28px;font-size:15px}
/* 17.11 login1711: sign-in by login and password, «forgot», the mailed link as the spare way */
.in-alt{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 18px;margin-top:14px}
.in-alt .txtbtn{font-size:15px;min-height:40px;padding:0 4px}
.in-alt .txtbtn[hidden],.solo-form input[hidden]{display:none}
.steps{list-style:none;width:100%;max-width:320px;text-align:left;background:var(--tile);border-radius:var(--r);padding:6px 16px;box-shadow:var(--sh)}
.steps li{display:flex;align-items:center;gap:12px;padding:13px 0;font-size:16px;color:var(--mut2);transition:color .3s}
.steps li+li{border-top:1px solid var(--sep)}
.steps li::before{content:"";width:22px;height:22px;border-radius:50%;flex:none;box-shadow:inset 0 0 0 2px var(--fill);transition:background .3s,box-shadow .3s}
.steps li.on{color:var(--ink)}
.steps li.on::before{box-shadow:inset 0 0 0 2px var(--acc);background:radial-gradient(circle,var(--acc) 0 4px,transparent 5px);animation:pulse 1.4s ease-in-out infinite}
.steps li.ok{color:var(--ink)}
.steps li.ok::before{background:var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat;box-shadow:none}
@keyframes pulse{50%{transform:scale(.88)}}

/* ── buttons ─────────────────────────────────────────────────────────────────────────────────────────────────── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:50px;padding:0 20px;border-radius:14px;font-weight:600;font-size:17px;
  transition:transform .15s var(--ease),background .2s,opacity .2s;user-select:none;-webkit-user-select:none}
.btn:active{transform:scale(.97)}
.btn:disabled{opacity:.45;pointer-events:none}
.btn-fill{background:var(--acc);color:#fff}
.btn-fill:hover{background:var(--acc-d)}
.btn-tint{background:var(--acc-l);color:var(--acc)}
.btn-sm{height:36px;padding:0 14px;border-radius:10px;font-size:15px}
.btn-wide{width:100%}
.txtbtn{color:var(--acc);font-size:17px;padding:6px 2px}
.txtbtn:active{opacity:.5}

/* ── shell: sidebar on a desk, tab bar on a phone ───────────────────────────────────────────────────────────── */
#vApp{min-height:100vh;min-height:100dvh}
.side{display:none}
.main{padding:0 16px calc(96px + var(--safe-b));max-width:760px;margin:0 auto}
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:40;display:grid;grid-template-columns:repeat(4,1fr);padding:6px 4px calc(6px + var(--safe-b));
  background:rgba(249,249,251,.82);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);border-top:.5px solid rgba(0,0,0,.14)}
.tabbar button{display:flex;flex-direction:column;align-items:center;gap:3px;padding:4px 0 2px;color:var(--mut2);font-size:10.5px;font-weight:500;letter-spacing:0;position:relative}
.tabbar button svg.i{width:26px;height:26px;transition:transform .2s var(--ease)}
.tabbar button:active svg.i{transform:scale(.88)}
.tabbar button.on{color:var(--acc)}
.badge-n{position:absolute;top:0;left:calc(50% + 6px);min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--bad);color:#fff;font-size:11.5px;font-weight:600;line-height:18px;text-align:center}
.tabv{display:none}
.tabv.on{display:block;animation:fade .22s ease}
@keyframes fade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

@media(min-width:900px){
  .tabbar{display:none}
  .side{display:flex;flex-direction:column;position:fixed;top:0;left:0;bottom:0;width:260px;padding:22px 14px 18px;z-index:30;
    background:rgba(247,247,250,.86);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);border-right:.5px solid rgba(0,0,0,.1)}
  .brand{display:flex;align-items:center;gap:9px;font-weight:700;font-size:19px;letter-spacing:-.03em;color:var(--ink);padding:0 10px 18px}
  .brand img{width:28px;height:28px;border-radius:8px}
  .brand b{font-weight:600;color:#1f4a92;margin-left:-4px}
  .brand img.lg-a{width:auto;height:28px;border-radius:0}
  .side-co{display:flex;align-items:center;gap:12px;padding:10px;border-radius:14px;background:var(--tile);box-shadow:var(--sh);margin-bottom:18px;width:100%;transition:transform .15s var(--ease)}
  .side-co:active{transform:scale(.98)}
  .side-co img{width:54px;height:54px;object-fit:contain;flex:none}
  .side-co>span{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}
  .side-co b{font-size:15px;line-height:1.2;font-weight:650;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .side-nav{display:flex;flex-direction:column;gap:2px}
  .side-nav button{display:flex;align-items:center;gap:12px;height:40px;padding:0 10px;border-radius:10px;font-size:15px;font-weight:500;color:var(--ink2);position:relative;transition:background .15s}
  .side-nav button svg.i{color:var(--acc);width:21px;height:21px}
  .side-nav button:hover{background:var(--fill2)}
  .side-nav button.on{background:var(--acc);color:#fff}
  .side-nav button.on svg.i{color:#fff}
  .side-nav .badge-n{position:static;margin-left:auto}
  .side-nav button.on .badge-n{background:#fff;color:var(--acc)}
  .side-foot{margin-top:auto;padding:0 10px}
  .main{margin-left:260px;max-width:none;padding:0 40px 48px}
}

/* ── page head (iOS large title) ─────────────────────────────────────────────────────────────────────────────── */
.head{padding:calc(14px + env(safe-area-inset-top,0px)) 4px 14px}
.head .eye{font-size:13px;font-weight:600;color:var(--mut);text-transform:uppercase;letter-spacing:.02em}
.head h1{font-size:34px;line-height:1.12;font-weight:700;letter-spacing:-.03em;margin-top:2px;word-break:break-word}
.head h1.deep{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
.head .meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:10px}
.head+.sec,.head+.banner,.head+.today-grid>.col>.sec:first-child,.today-grid>.col>.sec:first-child{margin-top:6px}
@media(min-width:900px){.head{padding:36px 4px 18px}.head h1{font-size:38px}}

/* status chip: the one switch of the whole business */
.state{display:inline-flex;align-items:center;gap:7px;height:30px;padding:0 12px;border-radius:15px;background:rgba(31,157,85,.11);color:#14743e;font-size:14px;font-weight:600}
.state::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 3px rgba(31,157,85,.18);animation:pulse 2.4s ease-in-out infinite}
.state.off{background:var(--fill);color:var(--mut)}
.state.off::before{background:var(--mut2);box-shadow:none;animation:none}
.state.stop{background:rgba(217,48,37,.1);color:var(--bad)}
.state.stop::before{background:var(--bad);box-shadow:none;animation:none}
button.state:active{transform:scale(.96)}

/* status plaque (the landing's: Pearl, Gold, Platinum, Diamond) */
.plaque{position:relative;overflow:hidden;display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:12px;font-size:12px;font-weight:700;letter-spacing:.02em;white-space:nowrap}
.plaque::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 30%,rgba(255,255,255,.75) 48%,transparent 66%);transform:translateX(-120%);animation:shine 6s ease-in-out infinite}
@keyframes shine{0%,62%{transform:translateX(-120%)}100%{transform:translateX(120%)}}
.pq-start{background:linear-gradient(120deg,#fff,#efe9f8 32%,#e2edfb 62%,#fbf3ea);color:#3b3556;box-shadow:inset 0 0 0 1px rgba(59,53,86,.1)}
.pq-gold{background:linear-gradient(120deg,#fff4cf,#e8c25f 42%,#fbe6a2 68%,#d6a845);color:#432d00}
.pq-platinum{background:linear-gradient(120deg,#f7f9fc,#c7cfdb 42%,#eef2f7 68%,#aeb8c8);color:#1f2734}
.pq-diamond{background:linear-gradient(120deg,#0d2e62,#2a62cc 40%,#86b8ff 58%,#173d82);color:#fff}
@media(prefers-reduced-motion:reduce){.plaque::after,.state::before,.solo-isl{animation:none}}

/* ── groups and rows (the iOS list) ──────────────────────────────────────────────────────────────────────────── */
.sec{margin-top:26px}
.sec-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:0 4px 8px}
.sec-h h2{font-size:21px;font-weight:700;letter-spacing:-.025em}
.sec-h .cap{font-size:13px;color:var(--mut);text-transform:uppercase;letter-spacing:.02em;font-weight:500}
.sec-h a,.sec-h button{font-size:15px;color:var(--acc)}
.sec-f{font-size:13px;color:var(--mut);padding:7px 16px 0;line-height:1.35}
.grp{background:var(--tile);border-radius:var(--r);overflow:hidden;box-shadow:var(--sh)}
.row{display:flex;align-items:center;gap:12px;min-height:52px;padding:10px 16px;width:100%;position:relative;transition:background .15s}
.row+.row::before{content:"";position:absolute;top:0;right:0;left:var(--inset,16px);height:.5px;background:var(--sep)}
button.row:active,a.row:active{background:var(--fill2)}
@media(hover:hover){button.row:hover,a.row:hover{background:rgba(118,118,128,.05)}}
.row .tx{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:1px}
.row .tx b{font-weight:500;font-size:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink)}
.row .tx span{font-size:14.5px;color:var(--mut);overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.32}
.row .tx span.one{-webkit-line-clamp:1}
.row .tx:has(+.val){flex:0 0 auto;max-width:62%}
.row .val{flex:1 1 0;min-width:0;color:var(--mut);font-size:16px;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.row .when{color:var(--mut2);font-size:14px;flex:none;align-self:flex-start;margin-top:2px}
.chev{width:9px;height:15px;flex:none;color:#c4c4c7}
.row.red .tx b{color:var(--bad)}
.row.acc .tx b{color:var(--acc)}
.row.on{background:var(--acc-l)}
.row.muted .tx b{color:var(--mut)}
.ico{width:30px;height:30px;border-radius:8px;display:flex;align-items:center;justify-content:center;color:#fff;flex:none}
.ico svg.i{width:18px;height:18px;stroke-width:2}
.ico.big{width:40px;height:40px;border-radius:10px}
.ico.big svg.i{width:22px;height:22px}
.av{width:40px;height:40px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:16px;color:#fff;
  background:linear-gradient(160deg,#a9b4c6,#7d8799)}
.lock{width:16px;height:16px;color:var(--mut2);flex:none}

/* the department mark: SVI's faceless agent in the role colour */
.rob{width:44px;height:44px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;position:relative;
  background:radial-gradient(circle at 50% 35%,#fff,var(--rc-l,#eef3ff) 70%)}
.rob svg{width:28px;height:auto}
.rob.lg{width:64px;height:64px}
.rob.lg svg{width:40px}
.rob.sm{width:34px;height:34px}
.rob.sm svg{width:22px}
.rob.off{filter:grayscale(1);opacity:.6}
.rob .dot{position:absolute;right:2px;bottom:2px;width:11px;height:11px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 2px #fff}
.rob.lg .dot{width:14px;height:14px;right:3px;bottom:3px}

/* pills */
.pill{display:inline-flex;align-items:center;height:24px;padding:0 9px;border-radius:12px;font-size:13px;font-weight:600;white-space:nowrap;flex:none}
.p-new{background:rgba(36,89,198,.12);color:var(--acc)}
.p-booked{background:rgba(199,119,0,.13);color:#9a5c00}
.p-visited{background:rgba(31,157,85,.13);color:#14743e}
.p-lost{background:var(--fill);color:var(--mut)}

/* switch (iOS) */
.sw{width:51px;height:31px;border-radius:16px;background:rgba(120,120,128,.16);position:relative;flex:none;transition:background .25s}
.sw::after{content:"";position:absolute;top:2px;left:2px;width:27px;height:27px;border-radius:50%;background:#fff;box-shadow:0 3px 8px rgba(0,0,0,.15),0 1px 1px rgba(0,0,0,.16);transition:transform .3s var(--ease)}
.sw.on{background:#34c759}
.sw.on::after{transform:translateX(20px)}
.sw:disabled{opacity:.5}

/* segmented control */
.seg{display:flex;background:var(--fill);border-radius:10px;padding:2px;position:relative}
.seg button{flex:1;text-align:center;height:32px;border-radius:8px;font-size:14px;font-weight:500;position:relative;z-index:1;transition:color .2s;white-space:nowrap;padding:0 6px}
.seg button.on{background:var(--tile);box-shadow:0 3px 8px rgba(0,0,0,.08),0 0 0 .5px rgba(0,0,0,.04);font-weight:600}
.seg button small{color:var(--mut);font-weight:500;margin-left:4px}

/* fields inside groups */
.fld{display:block;padding:12px 16px}
.fld+.fld{border-top:.5px solid var(--sep)}
.fld>span{display:block;font-size:13px;color:var(--mut);margin-bottom:4px}
.fld input,.fld textarea{width:100%;border:0;background:none;font-size:17px;outline:0;resize:none}
.fld textarea{min-height:96px;line-height:1.4}
.fld .tok{display:inline-block;padding:0 6px;border-radius:6px;background:var(--acc-l);color:var(--acc);font-size:14px}
.acts{display:flex;align-items:center;gap:12px;padding:12px 4px 0}
.acts .note{margin:0}

/* ── Today ───────────────────────────────────────────────────────────────────────────────────────────────────── */
.today-grid{display:grid;gap:0}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.stat{background:var(--tile);border-radius:var(--r);padding:16px;box-shadow:var(--sh);display:flex;flex-direction:column;gap:2px;text-align:left;transition:transform .15s var(--ease)}
button.stat:active{transform:scale(.97)}
.stat .k{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:600;color:var(--mut)}
.stat .k .ico{width:26px;height:26px;border-radius:7px}
.stat .k .ico svg.i{width:16px;height:16px}
.stat b{font-size:40px;line-height:1.1;font-weight:700;letter-spacing:-.03em;margin-top:8px;font-variant-numeric:tabular-nums}
.stat small{font-size:13.5px;color:var(--mut)}
.member{display:flex;align-items:center;gap:14px;background:var(--tile);border-radius:var(--r);padding:12px 14px;box-shadow:var(--sh);width:100%;transition:transform .15s var(--ease)}
.member:active{transform:scale(.98)}
.tier-card{display:flex;align-items:center;gap:14px;background:var(--tile);border-radius:var(--r);padding:14px 16px;box-shadow:var(--sh);width:100%;text-align:left;transition:transform .15s var(--ease)}
.tier-card:active{transform:scale(.98)}
.tier-card img{width:64px;height:64px;object-fit:contain;flex:none}
.tier-card .tx{flex:1;min-width:0}
.tier-card .tx b{display:block;font-size:17px;font-weight:600}
.meter{height:6px;border-radius:3px;background:var(--fill);overflow:hidden;margin:9px 0 6px}
.meter i{display:block;height:100%;border-radius:3px;background:var(--acc);transition:width .6s var(--ease)}
.meter.warn i{background:#e8a33d}
.meter.over i,.meter.stopped i{background:var(--bad)}
.meter-l{font-size:13.5px;color:var(--mut);font-variant-numeric:tabular-nums}
.banner{display:flex;gap:12px;align-items:flex-start;border-radius:var(--r);padding:14px 16px;background:rgba(217,48,37,.08);color:#8f1d15;margin-top:12px}
.banner.warn{background:rgba(232,163,61,.13);color:#7a4a00}
.banner .tx{flex:1;font-size:15px;line-height:1.38}
.banner .btn{flex:none}
.start-card{background:var(--tile);border-radius:var(--r);box-shadow:var(--sh);padding:18px 16px 16px}
.start-card h3{font-size:19px;font-weight:650;letter-spacing:-.02em}
.start-card p{font-size:15px;color:var(--mut);margin:6px 0 14px;line-height:1.4}
.linkbox{display:flex;align-items:center;gap:10px;background:var(--ground);border-radius:12px;padding:6px 6px 6px 14px}
.linkbox code{flex:1;min-width:0;font:500 15px/1.3 var(--font);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink2)}
.btn-row{display:flex;gap:10px;margin-top:10px}
.btn-row .btn{flex:1}
.bub-wrap{display:flex;flex-direction:column;gap:6px;margin-top:4px}
@media(min-width:900px){
  .today-grid{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:0 28px;align-items:start;max-width:1120px}
  .today-grid>.col{min-width:0}
}

/* ── lists with a detail (Clients, Departments) ─────────────────────────────────────────────────────────────── */
.split{display:block}
.pane-list{min-width:0}
.pane-detail{display:none}
.empty{padding:28px 20px;text-align:center;color:var(--mut);font-size:15px;line-height:1.45}
.empty svg.i{width:40px;height:40px;margin:0 auto 10px;color:#c4c4c7;stroke-width:1.5}
@media(min-width:900px){
  .split{display:grid;grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:24px;align-items:start;max-width:1240px}
  .pane-detail{display:block;position:sticky;top:0;min-height:200px;padding-top:36px}
  .split .pane-list .head{padding-right:0}
}

/* ── pushed screen on a phone (detail, a department's chat) ─────────────────────────────────────────────────── */
.push{position:fixed;inset:0;z-index:45;background:var(--ground);display:flex;flex-direction:column;transform:translateX(100%);transition:transform .38s var(--ease);will-change:transform}
.push.on{transform:none}
.push-bar{display:flex;align-items:center;gap:6px;min-height:52px;padding:calc(4px + env(safe-area-inset-top,0px)) 8px 4px;
  background:rgba(242,242,247,.86);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);border-bottom:.5px solid rgba(0,0,0,.1);flex:none;z-index:2}
.back{display:flex;align-items:center;gap:2px;color:var(--acc);font-size:17px;height:44px;padding:0 8px 0 2px;flex:none}
.back svg{width:13px;height:21px}
.push-t{flex:1;text-align:center;font-weight:600;font-size:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:60px}
.push-body{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:0 16px calc(24px + var(--safe-b))}
@media(min-width:900px){.push{display:none}}

/* detail card (a request, a conversation) */
.dcard{display:flex;flex-direction:column;gap:0}
.d-hero{display:flex;flex-direction:column;align-items:center;text-align:center;padding:22px 8px 6px;gap:8px}
.d-hero .av{width:64px;height:64px;font-size:26px}
.d-hero h2{font-size:24px;font-weight:700;letter-spacing:-.025em}
.d-hero p{font-size:15px;color:var(--mut)}
.d-acts{display:flex;justify-content:center;gap:10px;padding:8px 0 4px}
.d-acts a,.d-acts button{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:76px;padding:10px 8px;border-radius:12px;background:var(--tile);box-shadow:var(--sh);color:var(--acc);font-size:12.5px;font-weight:500}
.d-acts svg.i{width:22px;height:22px}
.quote{padding:14px 16px;font-size:16px;line-height:1.45;white-space:pre-wrap;word-break:break-word}
.tl{list-style:none;padding:6px 16px}
.tl li{display:flex;gap:12px;padding:9px 0;font-size:15px;line-height:1.35;position:relative}
.tl li::before{content:"";width:10px;height:10px;border-radius:50%;margin-top:5px;flex:none;background:#c4c4c7}
.tl li.done::before{background:var(--ok)}
.tl li.todo::before{background:#e8a33d}
.tl li+li::after{content:"";position:absolute;left:4.5px;top:-6px;height:12px;width:1px;background:var(--sep)}
.tl li span{color:var(--mut)}
.tl a{font-weight:600}

/* transcript and chat bubbles */
.msgs{display:flex;flex-direction:column;gap:4px;padding:12px 0}
.b{max-width:80%;padding:8px 13px;border-radius:19px;font-size:16px;line-height:1.36;white-space:pre-wrap;word-wrap:break-word;animation:pop .28s var(--ease)}
.b.them{align-self:flex-start;background:var(--tile);color:var(--ink);border-bottom-left-radius:6px;box-shadow:0 1px 1px rgba(0,0,0,.04)}
.b.us{align-self:flex-end;background:var(--acc);color:#fff;border-bottom-right-radius:6px}
.b.us+.b.us,.b.them+.b.them{margin-top:-1px}
.b.note{align-self:center;max-width:92%;background:none;color:var(--mut);font-size:13px;text-align:center;padding:6px 8px;animation:none}
.b.learn{align-self:center;max-width:92%;background:rgba(31,157,85,.1);color:#14743e;font-size:13.5px;border-radius:12px;text-align:center}
.b.typing{display:flex;gap:4px;padding:13px 14px}
.b.typing i{width:7px;height:7px;border-radius:50%;background:#b8b8bd;animation:typ 1.2s infinite}
.b.typing i:nth-child(2){animation-delay:.15s}.b.typing i:nth-child(3){animation-delay:.3s}
@keyframes typ{0%,60%,100%{opacity:.35;transform:none}30%{opacity:1;transform:translateY(-3px)}}
@keyframes pop{from{opacity:0;transform:translateY(6px) scale(.98)}to{opacity:1;transform:none}}
.b.us.own{background:#163f93}
.by{align-self:flex-end;font-size:11.5px;color:var(--mut);margin:6px 6px 0}
.composer.reply textarea{background:var(--tile)}
.day{align-self:center;font-size:12px;color:var(--mut2);font-weight:600;padding:10px 0 4px}

/* a department's chat */
.chat{display:flex;flex-direction:column;height:100%;min-height:0}
.chat-scroll{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:0 14px}
.chat-in{flex:none;padding:8px 10px calc(8px + var(--safe-b));background:rgba(249,249,251,.92);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-top:.5px solid rgba(0,0,0,.1)}
.hints{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 8px;scrollbar-width:none}
.hints::-webkit-scrollbar{display:none}
.hints button{flex:none;height:32px;padding:0 13px;border-radius:16px;background:var(--tile);box-shadow:inset 0 0 0 1px var(--sep);font-size:14px;color:var(--acc);white-space:nowrap}
.hints button:active{background:var(--acc-l)}
.composer{display:flex;align-items:flex-end;gap:8px}
.composer textarea{flex:1;min-height:38px;max-height:140px;border-radius:19px;border:0;background:var(--tile);box-shadow:inset 0 0 0 1px var(--sep);padding:8px 14px;font-size:16px;line-height:1.35;resize:none;outline:0}
.composer textarea:focus{box-shadow:inset 0 0 0 1px var(--acc)}
.send{width:38px;height:38px;border-radius:50%;background:var(--acc);color:#fff;display:flex;align-items:center;justify-content:center;flex:none;transition:transform .15s,opacity .2s}
.send:disabled{opacity:.35}
.send:active{transform:scale(.9)}
.send svg{width:18px;height:18px}
.cap-line{font-size:12px;color:var(--mut2);text-align:center;padding-top:6px}
.chat-head{display:flex;align-items:center;gap:12px;flex:1;min-width:0}
.chat-head .tx{min-width:0;display:flex;flex-direction:column}
.chat-head .tx b{font-size:16px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-head .tx span{font-size:12.5px;color:var(--mut)}
.ibtn{width:44px;height:44px;display:flex;align-items:center;justify-content:center;color:var(--acc);flex:none;border-radius:50%}
.ibtn:active{background:var(--fill2)}
.ibtn.on{background:var(--acc-l)}
/* desk: the chat is a tile of its own, (i) opens the department's settings beside it */
.desk-chat{display:none}
@media(min-width:900px){
  .desk-chat{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;height:calc(100vh - 60px)}
  .desk-chat.info{grid-template-columns:minmax(0,1fr) 340px}
  .desk-chat .chat{background:#eef0f5;border-radius:22px;overflow:hidden;box-shadow:var(--sh)}
  .desk-chat .chat-top{display:flex;align-items:center;gap:8px;padding:10px 10px 10px 16px;background:rgba(255,255,255,.8);border-bottom:.5px solid rgba(0,0,0,.08)}
  .desk-chat .chat-in{border-radius:0}
  .desk-info{overflow-y:auto;padding-bottom:24px}
  .team-split{grid-template-columns:minmax(300px,360px) minmax(0,1fr)}
}

/* ── Settings ────────────────────────────────────────────────────────────────────────────────────────────────── */
.set{max-width:680px}
.me-card{display:flex;align-items:center;gap:16px;background:var(--tile);border-radius:var(--r);padding:16px;box-shadow:var(--sh);width:100%;text-align:left;transition:transform .15s var(--ease)}
.me-card:active{transform:scale(.985)}
.me-card img{width:76px;height:76px;object-fit:contain;flex:none}
.me-card .tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px;align-items:flex-start}
.me-card .tx b{font-size:20px;font-weight:650;letter-spacing:-.02em;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.me-card .tx span{font-size:14px;color:var(--mut)}
.plan-hero{position:relative;overflow:hidden;border-radius:22px;padding:22px 20px 20px;background:linear-gradient(160deg,#fff 0%,#f4f7fd 60%,#e9effa 100%);box-shadow:var(--sh);display:flex;align-items:center;gap:16px}
.plan-hero img{width:120px;height:120px;object-fit:contain;flex:none}
.plan-hero .tx{flex:1;min-width:0}
.plan-hero h2{font-size:26px;font-weight:700;letter-spacing:-.03em;margin:8px 0 2px}
.plan-hero .price{font-size:16px;color:var(--mut)}
.use{padding:14px 16px}
.use+.use{border-top:.5px solid var(--sep)}
.use .top{display:flex;justify-content:space-between;gap:12px;font-size:16px}
.use .top b{font-weight:500}
.use .top span{color:var(--mut);font-variant-numeric:tabular-nums;white-space:nowrap}
.up{padding:16px;display:flex;flex-direction:column;gap:10px}
.up+.up{border-top:.5px solid var(--sep)}
.up .top{display:flex;align-items:center;gap:12px}
.up .top img{width:52px;height:52px;object-fit:contain;flex:none}
.up .top .tx{flex:1;min-width:0}
.up .top b{font-size:17px;font-weight:600;display:block;color:var(--ink)}
.up .top .tx>span{font-size:14px;color:var(--mut)}
.up ul{list-style:none;display:flex;flex-wrap:wrap;gap:6px}
.up li{font-size:13.5px;padding:4px 10px;border-radius:10px;background:var(--ground);color:var(--ink2)}
.up li.plus{background:rgba(31,157,85,.1);color:#14743e}
.base{padding:14px 16px;font-size:15px;line-height:1.5;white-space:pre-wrap;word-break:break-word;max-height:360px;overflow-y:auto;color:var(--ink2)}
.qr-box{display:flex;justify-content:center;padding:18px}
.qr-box canvas,.qr-box img{width:200px!important;height:200px!important;border-radius:8px}

/* ── sheet: a bottom card on a phone, a dialog on a desk ────────────────────────────────────────────────────── */
.dim{position:fixed;inset:0;z-index:60;background:rgba(0,0,0,.32);opacity:0;pointer-events:none;transition:opacity .3s}
.dim.on{opacity:1;pointer-events:auto}
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:61;max-height:92vh;max-height:92dvh;display:flex;flex-direction:column;background:var(--ground);border-radius:14px 14px 0 0;
  transform:translateY(105%);transition:transform .42s var(--ease);padding-bottom:var(--safe-b);visibility:hidden}
.sheet.on{transform:none;visibility:visible}
.grab{width:36px;height:5px;border-radius:3px;background:rgba(60,60,67,.3);margin:6px auto 0;flex:none}
.sh-top{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:6px 16px 10px;flex:none}
.sh-top b{font-size:17px;font-weight:600;text-align:center}
.sh-top .txtbtn{justify-self:start}
.sh-body{overflow-y:auto;padding:4px 16px 20px;-webkit-overflow-scrolling:touch}
.sh-body .grp+.grp,.sh-body .grp+.btn,.sh-body .btn+.btn{margin-top:12px}
.sh-body p.lead{font-size:15px;color:var(--mut);margin:0 4px 14px;line-height:1.4;text-align:center}
@media(min-width:900px){
  .sheet{left:50%;right:auto;bottom:auto;top:50%;width:440px;border-radius:18px;transform:translate(-50%,-46%) scale(.96);opacity:0;transition:transform .3s var(--ease),opacity .2s;padding-bottom:0;box-shadow:0 30px 80px rgba(0,0,0,.25)}
  .sheet.on{transform:translate(-50%,-50%);opacity:1}
  .grab{display:none}
  .sh-top{padding-top:14px}
}

.toast{position:fixed;left:50%;bottom:calc(100px + var(--safe-b));z-index:80;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:rgba(30,30,32,.9);color:#fff;
  font-size:15px;font-weight:500;padding:10px 18px;border-radius:20px;transition:opacity .25s,transform .35s var(--ease);max-width:calc(100vw - 32px);text-align:center}
.toast.on{opacity:1;transform:translate(-50%,0)}
@media(min-width:900px){.toast{bottom:32px;margin-left:130px}}
.pane-detail .dcard{max-width:720px;margin:0 auto}

/* ── 17.11 cab1711pm (owner 13:09 «иногда выделяются неприятным голубым цветом квадратами… нет плавной анимации, а
   резкая смена»): no tap squares, the focus ring only for the keyboard and round, sheets slide out instead of
   vanishing; the library, the agents inside a department, the first entry ─────────────────────────────────────── */
*,*::before,*::after{-webkit-tap-highlight-color:transparent}
:focus{outline:none}
:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(36,89,198,.28);border-radius:12px}
input:focus-visible,textarea:focus-visible{box-shadow:none}
.row:focus-visible{box-shadow:inset 0 0 0 2px rgba(36,89,198,.35);border-radius:0}
button,a{-webkit-touch-callout:none}
::selection{background:rgba(36,89,198,.18)}
/* the sheet keeps its visibility until it has slid away (it vanished at once before) */
.sheet{transition:transform .42s var(--ease),visibility 0s linear .42s}
.sheet.on{transition:transform .42s var(--ease),visibility 0s}
@media(min-width:900px){
  .sheet{transition:transform .3s var(--ease),opacity .2s,visibility 0s linear .3s}
  .sheet.on{transition:transform .3s var(--ease),opacity .2s,visibility 0s}
}
.toast{transition:opacity .25s,transform .35s var(--ease)}
.row,.stat,.tier-card,.me-card,.btn,.hints button,.seg button{transition:transform .18s var(--ease),background-color .2s,color .2s,box-shadow .2s,opacity .2s}
.seg button{transition:background-color .22s var(--ease),box-shadow .22s var(--ease),color .2s}
.tabv.on{animation:fade .28s var(--ease)}

.push-body.swap{animation:fade .22s var(--ease)}

/* Diamond: a black diamond with white glints (owner 13:09 «чёрный бриллиант… с белыми линиями… как блики») */
.pq-diamond{background:
  linear-gradient(115deg,transparent 0 22%,rgba(255,255,255,.28) 23%,transparent 27%,transparent 52%,rgba(255,255,255,.18) 53%,transparent 56%,transparent 74%,rgba(255,255,255,.3) 75%,transparent 78%),
  linear-gradient(135deg,#2b2b30 0%,#0b0b0d 38%,#3a3a42 55%,#0d0d10 72%,#26262b 100%);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}

/* a page head with an action (Clients: a client of his own) */
.head-act{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.plus-btn{width:36px;height:36px;border-radius:50%;background:var(--acc-l);color:var(--acc);display:flex;align-items:center;justify-content:center;flex:none;margin-bottom:4px;transition:transform .18s var(--ease),background-color .2s}
.plus-btn:active{transform:scale(.9)}
.plus-btn svg.i{width:20px;height:20px;stroke-width:2.2}

/* Today: tell the team about the business / it is reading */
.about-card{display:flex;align-items:center;gap:14px;background:var(--tile);border-radius:var(--r);padding:14px 16px;box-shadow:var(--sh)}
.about-card .tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.about-card .tx b{font-size:16px;font-weight:600}
.about-card .tx span{font-size:14px;color:var(--mut);line-height:1.35}
.about-card.reading{background:linear-gradient(120deg,#fff,#f1f5fe)}
.spin.sm{width:20px;height:20px;border-width:2.5px;flex:none}

/* Departments: the library row and the library */
.lib-ico{background:linear-gradient(135deg,#1d1d1f,#3a3a3c);color:#fff}
.lib-pane{max-width:760px;padding-bottom:40px}
.lib-head{display:flex;align-items:center;gap:14px;background:var(--tile);border-radius:var(--r);box-shadow:var(--sh);padding:14px 16px;margin-top:14px}
.lib-meter{display:flex;align-items:baseline;gap:3px;flex:none;min-width:58px}
.lib-meter b{font-size:30px;font-weight:700;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.lib-meter span{font-size:15px;color:var(--mut);font-weight:600}
.lib-head .tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.lib-head .tx b{font-size:15px;font-weight:600}
.lib-head .tx span{font-size:13.5px;color:var(--mut);line-height:1.35}
.lib-item{align-items:flex-start;padding-top:12px;padding-bottom:12px}
.lib-item .rob{margin-top:2px}
.lib-item .tx b{white-space:normal;display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.lib-item .ag{font-size:12.5px;color:var(--mut2);margin-top:3px;line-height:1.3}
.fit{font-style:normal;font-size:11.5px;font-weight:600;color:#14743e;background:rgba(31,157,85,.12);padding:2px 7px;border-radius:8px;letter-spacing:0}
.tgl{width:34px;height:34px;border-radius:50%;flex:none;align-self:center;position:relative;background:var(--acc-l);color:var(--acc);
  transition:background-color .25s var(--ease),color .25s,transform .18s var(--ease)}
.tgl svg.i{position:absolute;inset:0;margin:auto;width:18px;height:18px;stroke-width:2.4;transition:opacity .2s,transform .3s var(--ease)}
.tgl svg.i:first-child{opacity:0;transform:scale(.4) rotate(-30deg)}
.tgl.on{background:var(--ok);color:#fff}
.tgl.on svg.i:first-child{opacity:1;transform:none}
.tgl.on svg.i:last-child{opacity:0;transform:scale(.4) rotate(90deg)}
.tgl.fixed{background:rgba(31,157,85,.14);color:#14743e;display:flex}
.tgl.fixed svg.i{opacity:1;transform:none}
.tgl:active{transform:scale(.88)}
.shake{animation:shake .4s var(--ease)}
@keyframes shake{20%{transform:translateX(-5px)}40%{transform:translateX(5px)}60%{transform:translateX(-3px)}80%{transform:translateX(2px)}}

/* inside a department: the whole department or one of its agents */
.agents{display:flex;gap:6px;overflow-x:auto;padding:10px 12px;scrollbar-width:none;flex:none;border-bottom:.5px solid rgba(0,0,0,.06);background:rgba(255,255,255,.6)}
.agents::-webkit-scrollbar{display:none}
.agents button{flex:none;height:32px;padding:0 13px;border-radius:16px;font-size:14px;font-weight:500;color:var(--ink2);background:var(--fill2);white-space:nowrap;
  transition:background-color .22s var(--ease),color .22s,transform .18s var(--ease)}
.agents button:active{transform:scale(.95)}
.agents button.on{background:var(--ink);color:#fff}
.push-body.chat{display:flex;flex-direction:column}
.ag-line{font-size:13px!important;color:var(--mut2)!important}

/* ── the first entry: three steps over the cabinet ─────────────────────────────────────────────────────────── */
.ob{position:fixed;inset:0;z-index:55;display:flex;align-items:flex-start;justify-content:center;overflow-y:auto;-webkit-overflow-scrolling:touch;
  background:rgba(242,242,247,.72);backdrop-filter:saturate(180%) blur(24px);-webkit-backdrop-filter:saturate(180%) blur(24px);opacity:0;transition:opacity .4s var(--ease)}
.ob.on{opacity:1}
.ob-card{width:100%;max-width:560px;min-height:100%;background:var(--ground);padding:calc(16px + env(safe-area-inset-top,0px)) 20px calc(28px + var(--safe-b));
  transform:translateY(24px);transition:transform .5s var(--ease)}
.ob.on .ob-card{transform:none}
@media(min-width:700px){
  .ob{align-items:center;padding:32px}
  .ob-card{min-height:0;border-radius:28px;box-shadow:0 40px 100px rgba(13,46,98,.18);padding:22px 32px 30px}
}
.ob-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.ob-dots{display:flex;gap:6px}
.ob-dots i{width:22px;height:5px;border-radius:3px;background:var(--fill);transition:background-color .3s,width .3s var(--ease)}
.ob-dots i.ok{background:var(--acc)}
.ob-dots i.on{background:var(--acc);width:34px}
.ob-eye{font-size:13px;color:var(--mut);font-weight:600}
.ob-body{display:flex;flex-direction:column;align-items:stretch}
.ob-body.in-next{animation:obIn .42s var(--ease)}
.ob-body.in-back{animation:obBack .42s var(--ease)}
@keyframes obIn{from{opacity:0;transform:translateX(28px)}to{opacity:1;transform:none}}
@keyframes obBack{from{opacity:0;transform:translateX(-28px)}to{opacity:1;transform:none}}
.ob-hero{width:64px;height:64px;border-radius:20px;background:var(--grad);color:#fff;display:flex;align-items:center;justify-content:center;margin:6px auto 16px;box-shadow:0 12px 30px rgba(36,89,198,.3)}
.ob-hero svg.i{width:30px;height:30px;stroke-width:1.9}
.ob h1{font-size:30px;line-height:1.12;font-weight:700;letter-spacing:-.03em;text-align:center}
.ob-p{color:var(--mut);font-size:16px;text-align:center;margin:8px auto 20px;max-width:420px;line-height:1.4}
.ob-seg{margin-bottom:12px}
.ob-form{display:flex;flex-direction:column;gap:10px}
.ob-form input,.ob-form textarea{width:100%;border:0;background:var(--tile);border-radius:14px;padding:14px 16px;font-size:17px;box-shadow:inset 0 0 0 1px var(--sep);outline:0;resize:none;line-height:1.4;
  transition:box-shadow .2s}
.ob-form input{height:52px}
.ob-form input:focus,.ob-form textarea:focus{box-shadow:inset 0 0 0 2px var(--acc)}
.ob-form .note{min-height:18px;margin:0 4px}
.ob-skip{align-self:center;margin-top:10px;color:var(--mut)}
.ob-count{display:flex;justify-content:center;margin:-8px 0 14px}
.ob-count b{font-size:14px;font-weight:600;background:var(--tile);border-radius:12px;padding:5px 12px;box-shadow:var(--sh);font-variant-numeric:tabular-nums}
.ob-grid{display:grid;grid-template-columns:1fr;gap:8px}
@media(min-width:700px){.ob-grid{grid-template-columns:1fr 1fr}}
.ob-dep{display:flex;align-items:center;gap:12px;background:var(--tile);border-radius:16px;padding:11px 12px;text-align:left;box-shadow:inset 0 0 0 1.5px transparent,var(--sh);
  transition:box-shadow .25s var(--ease),transform .18s var(--ease),background-color .25s}
.ob-dep:active{transform:scale(.98)}
.ob-dep .tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.ob-dep .tx b{font-size:15px;font-weight:600}
.ob-dep .tx span{font-size:12.5px;color:var(--mut);line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ob-dep .fit{align-self:flex-start;margin-top:4px}
.ob-dep .ck{width:24px;height:24px;border-radius:50%;flex:none;box-shadow:inset 0 0 0 1.5px #c7c7cc;display:flex;align-items:center;justify-content:center;color:#fff;transition:background-color .25s,box-shadow .25s}
.ob-dep .ck svg.i{width:14px;height:14px;stroke-width:3;opacity:0;transform:scale(.5);transition:opacity .2s,transform .3s var(--ease)}
.ob-dep.on{box-shadow:inset 0 0 0 1.5px var(--acc),var(--sh);background:#fbfcff}
.ob-dep.on .ck{background:var(--acc);box-shadow:none}
.ob-dep.on .ck svg.i{opacity:1;transform:none}
.ob-dep.fixed{opacity:1;cursor:default}
.ob-bar{position:sticky;bottom:calc(-28px - var(--safe-b));display:grid;grid-template-columns:1fr 2fr;gap:10px;margin:16px -20px calc(-28px - var(--safe-b));padding:12px 20px calc(16px + var(--safe-b));
  background:rgba(242,242,247,.9);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
@media(min-width:700px){.ob-bar{position:static;margin:18px 0 0;padding:0;background:none;backdrop-filter:none;-webkit-backdrop-filter:none}}
.ob-link{background:var(--tile);box-shadow:var(--sh)}
.ob-read{display:flex;align-items:center;justify-content:center;gap:10px;font-size:14.5px;color:var(--mut);margin:18px 0 4px}
.ob-read.ok{color:#14743e}
.ob-read.ok svg.i{width:18px;height:18px;stroke-width:2.6}
.ob-read.warn{color:var(--warn)}
.ob-first{display:flex;flex-direction:column;gap:6px;background:#eef0f5;border-radius:18px;padding:12px;margin-top:12px;animation:fade .4s var(--ease)}
.ob-done{margin-top:20px}
@media(prefers-reduced-motion:reduce){.ob-body.in-next,.ob-body.in-back,.tabv.on,.pane-detail>*,.shake{animation:none}}

/* 17.11 cab1711pm, after the first walk */
.tgl.fixed svg.i{opacity:1!important;transform:none!important}
.lib-head .tx span{font-size:14.5px;color:var(--mut);line-height:1.38}
.btn-row .btn{white-space:nowrap;padding:0 10px;min-width:0}
@media(max-width:600px){.lib-head{flex-wrap:wrap}.lib-head .tx{flex:1 1 60%}.lib-head .btn{width:100%}}

/* ── 17.11 cab1711ev (owner 16:50) ─────────────────────────────────────────────────────────────────────────────
   «иконке… не монотонный цвет а чуть поярче и градиентом»: iOS Settings tiles, lit from the top */
.ico{box-shadow:inset 0 0 0 .5px rgba(0,0,0,.08),0 1px 2px rgba(0,0,0,.08)}
.ico svg.i{stroke-width:2.1;filter:drop-shadow(0 .5px .5px rgba(0,0,0,.12))}
.lib-ico{background:linear-gradient(180deg,#5a5a62,#1d1d1f)}
/* «плашка бриллиант но текст почему-то в ней серый хотя должен быть белый»: a row's grey text rule reached the plaque;
   every plaque keeps its own ink and size wherever it stands */
.plaque.pq-start,.tx .plaque.pq-start{color:#3b3556!important}
.plaque.pq-gold,.tx .plaque.pq-gold{color:#432d00!important}
.plaque.pq-platinum,.tx .plaque.pq-platinum{color:#1f2734!important}
.plaque.pq-diamond,.tx .plaque.pq-diamond{color:#fff!important;text-shadow:0 1px 1px rgba(0,0,0,.45)}
.tx .plaque,.meta .plaque,.side-co .plaque{font-size:12px!important;font-weight:700}

/* «добавим агентам анимаций, чтобы глаз туда обратно там ездил»: the eye looks around, the antenna breathes */
.rob .eye{animation:look 8s cubic-bezier(.45,.05,.35,1) var(--d,0s) infinite;transform-box:fill-box;transform-origin:center}
.rob .ant{animation:ant 3.4s ease-in-out var(--d,0s) infinite;transform-box:fill-box;transform-origin:center}
@keyframes look{0%,12%{transform:translateX(0)}22%,40%{transform:translateX(13.6px)}42%{transform:translateX(13.6px) scaleY(.12)}44%,50%{transform:translateX(13.6px)}60%,72%{transform:translateX(6.8px)}82%,86%{transform:translateX(0)}88%{transform:translateX(0) scaleY(.12)}90%,100%{transform:translateX(0)}}
@keyframes ant{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.78)}}
.rob.busy .eye{animation:scan .9s ease-in-out infinite alternate}
@keyframes scan{from{transform:translateX(0)}to{transform:translateX(13.6px)}}
.rob.busy .ant{animation-duration:1s}
.rob.off .eye,.rob.off .ant{animation:none}
.mate .rob svg{animation:bob 4.6s ease-in-out var(--d,0s) infinite}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
@media(prefers-reduced-motion:reduce){.rob .eye,.rob .ant,.mate .rob svg{animation:none}}

/* ── Today ── */
.head .meta .co{font-size:17px;font-weight:650;letter-spacing:-.015em;margin-right:2px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sec-h h2 .cnt{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 7px;border-radius:11px;background:var(--bad);color:#fff;font-size:13px;font-weight:700;vertical-align:3px;margin-left:4px;letter-spacing:0}
.pulse{position:relative;overflow:hidden;color:#fff;border-radius:24px;padding:18px 18px 16px;
  background:radial-gradient(120% 120% at 100% 0%,rgba(96,160,255,.55) 0%,rgba(96,160,255,0) 55%),linear-gradient(150deg,#2d63c8 0%,#1a4796 45%,#0b2a5c 100%);
  box-shadow:0 18px 40px rgba(13,46,98,.24),0 2px 6px rgba(13,46,98,.12)}
.p-eye{font-size:13px;font-weight:600;opacity:.78;text-transform:uppercase;letter-spacing:.04em}
.p-nums{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:6px}
.p-num{display:flex;flex-direction:column;align-items:flex-start;color:#fff;padding:2px 0;border-radius:14px;transition:transform .18s var(--ease),opacity .2s}
.p-num:active{transform:scale(.96);opacity:.85}
.p-num b{font-size:48px;font-weight:700;letter-spacing:-.045em;line-height:1.04;font-variant-numeric:tabular-nums}
.p-num span{font-size:15px;opacity:.82;font-weight:500}
.bars{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;height:92px;margin-top:16px}
.bar{display:flex;flex-direction:column;align-items:center;gap:6px;min-height:0}
.bar .col{flex:1;width:100%;max-width:28px;display:flex;flex-direction:column;justify-content:flex-end;gap:2px;min-height:0}
.bar .col i{display:block;border-radius:6px;background:rgba(255,255,255,.32);transform-origin:bottom;animation:grow .7s var(--ease) both}
.bar .col i.r{background:#ffcf6e}
.bar .col i.r[style="height:0%"]{display:none}
.bar.now .col i.t{background:#fff}
.bar span{font-size:11px;opacity:.72;font-weight:600;text-transform:uppercase;line-height:1}
.bar.now span{opacity:1}
@keyframes grow{from{transform:scaleY(0)}to{transform:none}}
.p-week{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-top:14px;padding-top:12px;border-top:.5px solid rgba(255,255,255,.22);font-size:14px}
.p-week span{opacity:.75;flex:none}
.p-week b{font-weight:600;text-align:right}
.calm{display:flex;align-items:center;gap:12px;background:var(--tile);border-radius:var(--r);padding:14px 16px;box-shadow:var(--sh);color:var(--ink2);font-size:15.5px;line-height:1.35}
.calm svg.i{width:30px;height:30px;padding:6px;border-radius:50%;flex:none;background:linear-gradient(180deg,#4fdc7c,#20a94e);color:#fff;stroke-width:3}
.qa{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.qa-b{display:flex;flex-direction:column;align-items:center;gap:8px;background:var(--tile);border-radius:18px;padding:14px 4px 12px;box-shadow:var(--sh);font-size:12.5px;font-weight:600;color:var(--ink2);text-align:center;line-height:1.2;transition:transform .18s var(--ease)}
.qa-b:active{transform:scale(.95)}
.qa-b .ico{width:46px;height:46px;border-radius:13px}
.qa-b .ico svg.i{width:25px;height:25px}
.qa-b span{overflow:hidden;text-overflow:ellipsis;max-width:100%;padding:0 2px}
.row.feed{align-items:flex-start;padding-top:11px;padding-bottom:11px}
.row.feed .rob{margin-top:1px}
.row.feed .tx b{white-space:normal;font-size:15.5px;font-weight:400;line-height:1.3;color:var(--ink2)}
.row.feed .tx b em{font-style:normal;font-weight:650;color:var(--ink)}
.row.feed .tx span{font-size:14px;margin-top:2px}
.crew{display:flex;gap:10px;overflow-x:auto;margin:0 -16px;padding:2px 16px 12px;scroll-snap-type:x mandatory;scrollbar-width:none;scroll-padding:0 16px}
.crew::-webkit-scrollbar{display:none}
.mate{flex:0 0 136px;scroll-snap-align:start;display:flex;flex-direction:column;align-items:center;gap:5px;background:var(--tile);border-radius:20px;padding:16px 10px 13px;box-shadow:var(--sh);text-align:center;transition:transform .18s var(--ease)}
.mate:active{transform:scale(.96)}
.mate .rob{margin-bottom:4px}
.mate b{font-size:15px;font-weight:600;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mate .one{font-size:12.5px;color:var(--mut);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.3;min-height:2.6em}
.mate.add .rob.plus{background:var(--fill2);color:var(--acc)}
.mate.add .rob.plus svg.i{width:28px;height:28px;stroke-width:2}
@media(min-width:900px){
  .crew{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));overflow:visible;margin:0;padding:2px 0 0}
  .mate{flex:none}
  .p-num b{font-size:54px}
}
@media(prefers-reduced-motion:reduce){.bar .col i{animation:none}}

/* ── the department chat: attach, tray, collage, files, time, pins, search, menu, viewer ── */
.cbtn{width:38px;height:38px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;color:var(--mut);transition:transform .15s var(--ease),color .2s,background-color .2s}
.cbtn:active{transform:scale(.88);background:var(--fill2)}
.cbtn svg.i{width:23px;height:23px;stroke-width:1.9}
.cbtn.rec{color:#fff;background:var(--bad);animation:recp 1.4s ease-in-out infinite}
@keyframes recp{0%,100%{box-shadow:0 0 0 0 rgba(217,48,37,.35)}50%{box-shadow:0 0 0 7px rgba(217,48,37,0)}}
.composer{gap:4px}
.composer textarea{margin:0 2px}
.tray{display:none;gap:8px;overflow-x:auto;padding:2px 2px 10px;scrollbar-width:none}
.tray.on{display:flex}
.tray::-webkit-scrollbar{display:none}
.ti{position:relative;flex:none;width:68px;height:68px;border-radius:14px;overflow:hidden;background:var(--tile);box-shadow:inset 0 0 0 1px var(--sep)}
.ti.nw{animation:pop .25s var(--ease)}
.ti img{width:100%;height:100%;object-fit:cover}
.ti:not(.pic){width:150px}
.tf{display:flex;align-items:center;gap:8px;height:100%;padding:0 30px 0 10px;min-width:0}
.tf svg.i{width:24px;height:24px;color:var(--acc);flex:none}
.tf b{font-size:12.5px;font-weight:600;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.25;word-break:break-all}
.ti.err{box-shadow:inset 0 0 0 2px var(--bad)}
.ti.err img{opacity:.4}
.tp{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.28)}
.tp i{--p:0;width:30px;height:30px;border-radius:50%;background:conic-gradient(#fff calc(var(--p)*1%),rgba(255,255,255,.3) 0);-webkit-mask:radial-gradient(circle,transparent 10px,#000 11px);mask:radial-gradient(circle,transparent 10px,#000 11px)}
.ti:not(.pic) .tp{background:rgba(255,255,255,.6)}
.ti:not(.pic) .tp i{background:conic-gradient(var(--acc) calc(var(--p)*1%),var(--fill) 0)}
.tx-x{position:absolute;top:4px;right:4px;width:22px;height:22px;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.tx-x svg.i{width:12px;height:12px;stroke-width:3}

.b{position:relative;-webkit-touch-callout:none}
@media(hover:none){.msgs .b[data-mid]{-webkit-user-select:none;user-select:none}}
.b .mt{display:inline}
.mtime{float:right;display:inline-flex;align-items:center;gap:3px;font-size:11px;line-height:1;margin:9px -3px -3px 10px;opacity:.55;font-variant-numeric:tabular-nums;white-space:nowrap;pointer-events:none}
.mtime svg.i{width:11px;height:11px;stroke-width:2.4}
.b code{font:13.5px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;background:rgba(118,118,128,.14);border-radius:5px;padding:1px 4px}
.b.us code{background:rgba(255,255,255,.2)}
.b code.blk{display:block;padding:8px 10px;margin:4px 0;white-space:pre-wrap;overflow-x:auto}
.b a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.b.has-media{padding:3px;max-width:min(340px,80%)}
.b.has-media .mt{display:block;padding:6px 10px 4px}
.b.has-media .mtime{margin:0 8px 6px 10px}
.b.has-media .fls{padding:4px 4px 0}
.b.only-media{background:transparent!important;box-shadow:none!important;padding:0}
.b.only-media .mtime{position:absolute;right:8px;bottom:8px;margin:0;float:none;opacity:1;color:#fff;background:rgba(0,0,0,.42);padding:4px 7px;border-radius:10px;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.clg{display:flex;flex-direction:column;gap:2px;width:min(334px,70vw);border-radius:16px;overflow:hidden;background:rgba(118,118,128,.12)}
.b.only-media .clg{border-radius:18px}
.b.us.only-media .clg{border-bottom-right-radius:6px}
.b.them.only-media .clg{border-bottom-left-radius:6px}
.crow{display:flex;gap:2px;width:100%}
.clg.cside{flex-direction:row}
.ccol{display:flex;flex-direction:column;gap:2px;flex-basis:0;min-width:0}
.ph{position:relative;flex-basis:0;min-width:0;min-height:0;overflow:hidden;background:rgba(118,118,128,.18);cursor:zoom-in}
.ph img{width:100%;height:100%;object-fit:cover;transition:transform .3s var(--ease),opacity .3s}
.ph:active img{transform:scale(.97);opacity:.9}
.fls{display:flex;flex-direction:column;gap:6px;margin:2px 0 4px}
.fl{display:flex;align-items:center;gap:10px;min-width:0;max-width:280px;text-decoration:none!important;color:inherit}
.fl-i{width:40px;height:40px;border-radius:10px;flex:none;display:flex;align-items:center;justify-content:center;font-size:10.5px;font-weight:800;letter-spacing:.02em;color:#fff;background:linear-gradient(180deg,#3d9bff,#0a63e8)}
.b.us .fl-i{background:rgba(255,255,255,.22)}
.fl-t{display:flex;flex-direction:column;min-width:0}
.fl-t b{font-size:14.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fl-t span{font-size:12.5px;opacity:.65}
.b.fail{opacity:.6}
.retry{color:var(--acc);font-weight:600;font-size:13px;margin-left:6px}
.earlier{align-self:center;font-size:13.5px;font-weight:600;color:var(--acc);background:var(--tile);border-radius:14px;padding:6px 14px;box-shadow:var(--sh);margin:6px 0}
.b.held{transform:scale(.97);transition:transform .2s var(--ease)}
.b.flash{animation:flash 1.2s var(--ease)}
@keyframes flash{0%,100%{box-shadow:0 0 0 0 rgba(36,89,198,0)}30%{box-shadow:0 0 0 4px rgba(36,89,198,.35)}}
.b.hit{box-shadow:0 0 0 2px rgba(255,190,40,.7)}
.b.hit-on{box-shadow:0 0 0 3px #ffb81f}
.pins-slot:empty{display:none}
.pinbar{display:flex;align-items:center;gap:10px;width:100%;padding:7px 14px;background:rgba(255,255,255,.86);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:.5px solid rgba(0,0,0,.08);text-align:left;flex:none;animation:fade .25s var(--ease)}
.pinbar .rail{display:flex;flex-direction:column;gap:2px;width:3px;align-self:stretch;flex:none}
.pinbar .rail i{flex:1;border-radius:2px;background:rgba(36,89,198,.25)}
.pinbar .rail i.on{background:var(--acc)}
.pinbar .tx{flex:1;min-width:0;display:flex;flex-direction:column}
.pinbar .tx b{font-size:13px;font-weight:600;color:var(--acc)}
.pinbar .tx .one{font-size:14px;color:var(--ink2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pinbar svg.i{width:18px;height:18px;color:var(--mut2);flex:none}
.pinbar img{width:34px;height:34px;border-radius:7px;object-fit:cover;flex:none}
.pin-sheet{padding:4px 0}
.pin-sheet .b{max-width:100%}
.srch{display:flex;align-items:center;gap:6px;padding:8px 10px;background:rgba(255,255,255,.9);border-bottom:.5px solid rgba(0,0,0,.08);flex:none;animation:fade .2s var(--ease)}
.srch[hidden]{display:none!important}
.srch-f{flex:1;display:flex;align-items:center;gap:6px;height:36px;padding:0 10px;border-radius:10px;background:var(--fill);color:var(--mut);min-width:0}
.srch-f svg.i{width:17px;height:17px;flex:none}
.srch-f input{flex:1;min-width:0;border:0;background:none;outline:0;font-size:16px;color:var(--ink);-webkit-appearance:none;appearance:none}
.srch-n{font-size:12.5px;color:var(--mut);white-space:nowrap;font-variant-numeric:tabular-nums}
.sbtn{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--acc);flex:none}
.sbtn:active{background:var(--fill2)}
.sbtn svg.i{width:20px;height:20px;stroke-width:2.2}
.srch .txtbtn{font-size:15px;padding:0 4px}
.chat{position:relative}
.chat.drag::after{content:"";position:absolute;inset:8px;border:2px dashed var(--acc);border-radius:18px;background:rgba(36,89,198,.06);pointer-events:none;z-index:5}
.mmenu{position:fixed;z-index:90;min-width:190px;background:rgba(250,250,252,.94);backdrop-filter:saturate(180%) blur(24px);-webkit-backdrop-filter:saturate(180%) blur(24px);border-radius:14px;
  box-shadow:0 12px 40px rgba(0,0,0,.18),0 0 0 .5px rgba(0,0,0,.08);overflow:hidden;opacity:0;transform:scale(.92);transform-origin:top center;transition:opacity .18s,transform .22s var(--ease)}
.mmenu.on{opacity:1;transform:none}
.mmenu button{display:flex;align-items:center;gap:12px;width:100%;padding:12px 16px;font-size:16px;color:var(--ink)}
.mmenu button+button{border-top:.5px solid var(--sep)}
.mmenu button:active{background:var(--fill2)}
.mmenu svg.i{width:19px;height:19px;color:var(--ink2)}
.lbx{position:fixed;inset:0;z-index:95;background:rgba(0,0,0,.94);display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:opacity .25s,visibility 0s linear .25s}
.lbx.on{opacity:1;visibility:visible;transition:opacity .25s,visibility 0s}
.lbx-img{max-width:100%;max-height:100%;object-fit:contain;transform:scale(.96);transition:transform .3s var(--ease)}
.lbx.on .lbx-img{transform:none}
.lbx-top{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;gap:6px;padding:calc(8px + env(safe-area-inset-top,0px)) 10px 8px 18px;background:linear-gradient(rgba(0,0,0,.5),transparent);color:#fff;z-index:2}
.lbx-n{flex:1;font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}
.lbx-b{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;background:rgba(255,255,255,.12)}
.lbx-b svg.i{width:22px;height:22px;stroke-width:2.2}
.lbx-p,.lbx-nx{position:absolute;top:50%;margin-top:-22px;z-index:2}
.lbx-p{left:12px}.lbx-nx{right:12px}
.lbx.one .lbx-p,.lbx.one .lbx-nx{display:none}
@media(hover:none){.lbx-p,.lbx-nx{display:none}}
.p-quiet{margin-top:14px;font-size:15px;opacity:.82;line-height:1.35}
@media(min-width:900px){.today-grid .crew{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}}
.lbx-img{max-width:calc(100% - 24px);max-height:calc(100% - 120px)}
.lbx{background:#000}
/* 17.11 cab1711ev: the tab bar is solid enough that nothing reads through it (coordinator review) */
.tabbar{background:rgba(249,249,251,.97);backdrop-filter:saturate(180%) blur(30px);-webkit-backdrop-filter:saturate(180%) blur(30px);box-shadow:0 -.5px 0 rgba(0,0,0,.12)}
@media(max-width:899px){.main{padding-bottom:calc(104px + var(--safe-b))}}
.mmenu button.del,.mmenu button.del svg.i{color:var(--bad)}

/* 17.11 score1711 (owner 18:55): the first card holds our two measurable numbers; clients come second, lighter */
.p-num small{font-size:13px;opacity:.7;font-weight:500;margin-top:2px;font-variant-numeric:tabular-nums}
.pulse.score .p-num span{font-size:15px;line-height:1.25;opacity:.9}
.pulse.score .p-num b{display:inline-block;transform-origin:left bottom}
.pulse.score .p-num b.bump{animation:bump .6s var(--ease)}
@keyframes bump{0%{transform:none}35%{transform:scale(1.12);text-shadow:0 0 18px rgba(255,255,255,.55)}100%{transform:none}}
.pulse.score .p-week b{font-weight:500;line-height:1.35}
.pulse.lite{background:var(--tile);color:var(--ink);box-shadow:var(--sh);padding:16px 16px 14px}
.pulse.lite .p-eye{color:var(--mut);opacity:1}
.pulse.lite .p-num{color:var(--ink)}
.pulse.lite .p-num b{font-size:34px}
.pulse.lite .p-num span{color:var(--mut);opacity:1;font-size:14px}
.pulse.lite .bars{height:70px}
.pulse.lite .bar .col i{background:rgba(36,89,198,.22)}
.pulse.lite .bar .col i.r{background:#e9962e}
.pulse.lite .bar.now .col i.t{background:var(--acc)}
.pulse.lite .bar span{color:var(--mut)}
.pulse.lite .p-week{border-top-color:var(--sep);font-size:13.5px}
.pulse.lite .p-week span{color:var(--mut);opacity:1}
.pulse.lite .p-quiet{color:var(--mut);opacity:1;font-size:14px;margin-top:8px}
@media(min-width:900px){.pulse.lite .p-num b{font-size:38px}}
@media(prefers-reduced-motion:reduce){.pulse.score .p-num b.bump{animation:none}}

/* 17.11 fact1711: what the team knows, one line per fact, change or remove */
.facts{max-height:560px;overflow-y:auto}
.fact{display:flex;align-items:flex-start;gap:4px;padding:10px 8px 10px 16px;position:relative}
.fact+.fact::before{content:"";position:absolute;top:0;left:16px;right:0;height:.5px;background:var(--sep)}
.fact .ft{flex:1;min-width:0;font-size:15px;line-height:1.42;color:var(--ink2);word-break:break-word;padding-top:5px}
.fact.head .ft{font-weight:650;color:var(--ink)}
.fbtn{width:32px;height:32px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;color:var(--mut2);transition:background-color .2s,color .2s,transform .15s var(--ease)}
.fbtn svg.i{width:17px;height:17px;stroke-width:2}
.fbtn:active{transform:scale(.88);background:var(--fill2)}
.fbtn.del:active{color:var(--bad)}
@media(hover:hover){.fbtn:hover{background:var(--fill2);color:var(--acc)}.fbtn.del:hover{color:var(--bad)}}
.btn-red{background:var(--bad);color:#fff}

/* ── 18.11 crm1811: Clients as one CRM list: the stage strip, search, rows with the last and the next step ─────── */
.cl-search{display:flex;align-items:center;gap:8px;height:38px;padding:0 10px;margin:0 0 12px;border-radius:12px;background:var(--fill);color:var(--mut2)}
.cl-search svg.i{width:18px;height:18px;flex:none}
.cl-search input{flex:1;min-width:0;border:0;background:none;outline:0;font-size:16px;color:var(--ink);height:100%;-webkit-appearance:none;appearance:none}
.cl-search input::-webkit-search-cancel-button{-webkit-appearance:none;display:none}
.cl-search input::placeholder{color:var(--mut2)}
.cl-x{width:22px;height:22px;border-radius:50%;background:rgba(118,118,128,.28);color:#fff;display:flex;align-items:center;justify-content:center;flex:none}
.cl-x svg.i{width:12px;height:12px;stroke-width:3}
.cl-search input:placeholder-shown+.cl-x{display:none}
.cl-allbtn{display:inline-flex;align-items:baseline;gap:6px;font-size:15px;font-weight:600;color:var(--mut);padding:0 4px 8px;transition:color .2s}
.cl-allbtn b{font-weight:600}
.cl-allbtn.on{color:var(--ink)}
.funnel{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.fs{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 10px 9px;border-radius:14px;background:var(--tile);box-shadow:var(--sh);text-align:left;
  transition:transform .18s var(--ease),box-shadow .2s,background-color .2s}
.fs:active{transform:scale(.96)}
.fs b{font-size:22px;font-weight:700;letter-spacing:-.02em;line-height:1.1;color:var(--ink)}
.fs span{font-size:12.5px;font-weight:500;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.fs::before{content:"";position:absolute;top:12px;right:10px;width:8px;height:8px;border-radius:50%;background:var(--sc,#c4c4c7)}
.fs-new{--sc:#3d7bf0}.fs-booked{--sc:#e8a33d}.fs-visited{--sc:#2bb36a}.fs-lost{--sc:#b8b8be}
.fs.on{box-shadow:0 0 0 2px var(--sc),var(--sh)}
.fs.on span{color:var(--ink)}
.fs+.fs::after{content:"";position:absolute;left:-7px;top:50%;width:6px;height:6px;border-top:1.5px solid #c4c4c7;border-right:1.5px solid #c4c4c7;transform:translate(-30%,-50%) rotate(45deg)}
.fs-lost::after{display:none}
.cl-row{align-items:flex-start;padding-top:12px;padding-bottom:12px}
.cl-row .av{margin-top:2px}
.cl-l1{display:flex!important;align-items:baseline;gap:8px;min-width:0;-webkit-line-clamp:unset!important}
.cl-l1 b{flex:0 1 auto;min-width:0}
.cl-l1 em{font-style:normal;font-size:12.5px;color:var(--mut2);white-space:nowrap;flex:none}
.row .tx span.cl-last{color:var(--mut);font-size:14px}
.row .tx span.cl-next{font-size:14px;color:var(--ink2);font-weight:500}
.row .tx span.cl-next::before{content:"→ ";color:var(--mut2)}
.row .tx span.cl-next.mine{color:#9a5c00}
.row .tx span.cl-next.mine::before{content:"● ";color:#e8a33d;font-size:10px;vertical-align:1px}
.row .tx span.cl-next.none{color:var(--mut2);font-weight:400}
.cl-side{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:none}
.cl-side .when{margin-top:0}
.cl-empty{background:var(--tile);border-radius:var(--r);box-shadow:var(--sh);padding:34px 22px 26px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px}
.cl-empty svg.i{width:44px;height:44px;color:#b9bec9;stroke-width:1.5;margin-bottom:4px}
.cl-empty h3{font-size:20px;font-weight:700;letter-spacing:-.02em}
.cl-empty p{font-size:15px;color:var(--mut);line-height:1.45;max-width:380px}
.cl-empty .btn{margin-top:10px}
.cl-empty .btn svg.i{width:18px;height:18px;color:#fff;margin:0;stroke-width:2.2}
.d-hero .pill{margin-top:2px}
.stage-seg button.on{color:var(--ink)}
.nx{display:flex;align-items:center;gap:12px;padding:14px 16px}
.nx-dot{width:10px;height:10px;border-radius:50%;background:#3d7bf0;flex:none}
.nx.mine .nx-dot{background:#e8a33d;box-shadow:0 0 0 4px rgba(232,163,61,.18)}
.nx.none .nx-dot{background:#c4c4c7}
.nx-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.nx-t b{font-size:16px;font-weight:600;line-height:1.3}
.nx.mine .nx-t b{color:#9a5c00}
.nx.none .nx-t b{color:var(--mut);font-weight:500}
.nx-t span{font-size:14px;color:var(--mut)}
.note-box{display:flex;flex-direction:column;align-items:flex-end;padding:4px 6px 6px}
.note-box textarea{width:100%;border:0;background:none;outline:0;resize:none;font-size:16px;line-height:1.4;padding:10px 10px 6px;min-height:52px;color:var(--ink)}
.note-box textarea::placeholder{color:var(--mut2)}
.note-box .btn{margin:0 6px 6px}
.d-acts button{cursor:pointer}
@media(min-width:900px){.funnel{gap:10px}.fs{padding:12px 12px 10px}}

/* 18.11 flow1811: the paid period ended, «Renew access» instead of the cabinet */
#vEnd .solo-isl{filter:grayscale(.55) saturate(.7);opacity:.9;animation:none}
#vEnd.soon .solo-isl{filter:none;opacity:1}
.end-card{width:100%;background:var(--tile);border-radius:var(--r);box-shadow:var(--sh);margin:0 0 20px;text-align:left}
.end-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;font-size:16px}
.end-row+.end-row{box-shadow:inset 0 1px 0 var(--sep)}
.end-row span{color:var(--mut)}
.end-row b{font-weight:600;text-align:right}
#vEnd .btn{width:100%;height:52px}
.end-fine{font-size:13px;color:var(--mut);margin:14px 0 8px;line-height:1.45}
