/* HK Client Tracker: the HK Upload Desk look (dark warm glass, gold gradient, Instrument Serif + Manrope), phone first. */
:root{
  --bg:#0b0a09; --panel:rgba(26,23,20,.66); --panel2:rgba(38,33,28,.6); --line:rgba(222,196,152,.13); --line2:rgba(222,196,152,.22);
  --text:#f4efe6; --muted:#a39a8b; --faint:#7d7568; --gold:#d6b27a; --cream:#efdcb3; --bronze:#a9793f;
  --green:#9ccaa6; --amber:#e7b866; --red:#e38b7f; --blue:#9cb8e3; --violet:#c3a6e6;
  --r:20px; --grad:linear-gradient(120deg,#f6e6c3,#d6b27a 48%,#9d7444); --ink:#17130e;
  --shadow:0 24px 60px -24px rgba(0,0,0,.85), 0 0 0 1px var(--line) inset;
  --safe-b:env(safe-area-inset-bottom,0px); --safe-t:env(safe-area-inset-top,0px);
  font-family:"Manrope",system-ui,-apple-system,sans-serif; color-scheme:dark;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{-webkit-text-size-adjust:100%}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text)}
body{overflow-x:hidden;line-height:1.45;-webkit-font-smoothing:antialiased;background:var(--bg)}
/* the two soft lights stay still while the page scrolls: one fixed layer (a fixed background is repainted on every frame) */
body::before{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;
  background:radial-gradient(1100px 700px at 85% -10%,rgba(214,178,122,.13),transparent 60%),
             radial-gradient(900px 600px at -10% 110%,rgba(169,121,63,.10),transparent 60%)}
body.locked{overflow:hidden}
.noise{position:fixed;inset:0;z-index:0;pointer-events:none;opacity:.05;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
body>*{position:relative;z-index:1}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;text-align:inherit}
h1,h2,h3{margin:0;font-weight:700;letter-spacing:-.01em}
h1{font-family:"Instrument Serif",Georgia,serif;font-weight:400;letter-spacing:0;font-size:clamp(2.1rem,7.5vw,3.3rem);line-height:1.02}
h2{font-size:1.02rem}
h3{font-size:.92rem}
p{margin:0}
.muted{color:var(--muted)} .faint{color:var(--faint)} .small{font-size:.84rem}
.mono{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:.8rem;word-break:break-all}
.glass{background:var(--panel);backdrop-filter:blur(22px) saturate(160%);-webkit-backdrop-filter:blur(22px) saturate(160%);
  box-shadow:var(--shadow);border-radius:var(--r)}
.grad-text{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;background-size:200% 100%;
  animation:shine 7s linear infinite;font-style:italic}
@keyframes shine{to{background-position:200% 0}}
.chip{display:inline-flex;align-items:center;gap:.4rem;font-size:.7rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;
  color:var(--cream);padding:.36rem .72rem;border-radius:99px;background:rgba(214,178,122,.1);box-shadow:0 0 0 1px rgba(214,178,122,.28) inset}
.link{color:var(--cream);font-weight:700;border-bottom:1px solid rgba(239,220,179,.35)}
input,select,textarea{font:500 16px "Manrope",system-ui,sans-serif;color:var(--text);background:rgba(255,255,255,.05);border:0;
  box-shadow:0 0 0 1px var(--line2) inset;border-radius:12px;padding:.7rem .8rem;width:100%;outline:none;min-height:44px}
input:focus,select:focus,textarea:focus{box-shadow:0 0 0 1.5px var(--gold) inset}
select{appearance:none;-webkit-appearance:none;padding-right:2rem;
  background:rgba(255,255,255,.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d6b27a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right .6rem center/16px no-repeat}
input[type=month],input[type=date]{min-width:0;color-scheme:dark}
textarea{resize:vertical;min-height:64px}
::placeholder{color:var(--faint)}

/* buttons */
.btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;cursor:pointer;color:var(--text);
  font:700 .95rem "Manrope",system-ui,sans-serif;padding:.8rem 1.15rem;border-radius:14px;transition:transform .15s,background .25s;white-space:nowrap;min-height:44px}
.btn:active{transform:scale(.97)}
.btn.primary{color:var(--ink);background:var(--grad);background-size:180% 100%;box-shadow:0 10px 30px -8px rgba(214,178,122,.7)}
.btn.ghost{background:rgba(255,255,255,.05);box-shadow:0 0 0 1px var(--line2) inset}
.btn.ghost:hover{background:rgba(255,255,255,.09)}
.btn.danger{background:rgba(227,139,127,.12);color:#f2b2a8;box-shadow:0 0 0 1px rgba(227,139,127,.35) inset}
.btn.small{padding:.55rem .9rem;font-size:.86rem;border-radius:12px;min-height:40px}
.btn.wide{width:100%}
.btn[disabled]{opacity:.4;pointer-events:none}
.btn-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}

/* icons (CSS masks) */
[class^="i-"],[class*=" i-"]{display:inline-block;width:18px;height:18px;background:currentColor;flex:none;
  -webkit-mask:var(--m) center/contain no-repeat;mask:var(--m) center/contain no-repeat}
.i-home{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M4 11l8-7 8 7v9a1 1 0 01-1 1h-4v-6h-6v6H5a1 1 0 01-1-1z%27/%3E%3C/svg%3E")}
.i-users{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Ccircle cx=%279%27 cy=%278%27 r=%273.5%27/%3E%3Cpath d=%27M2.5 20a6.5 6.5 0 0113 0%27/%3E%3Cpath d=%27M16 4.5a3.5 3.5 0 010 7M18 14a5.5 5.5 0 013.5 6%27/%3E%3C/svg%3E")}
.i-clock{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%279%27/%3E%3Cpath d=%27M12 7v5l3 2%27/%3E%3C/svg%3E")}
.i-gear{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%273%27/%3E%3Cpath d=%27M12 2v3M12 19v3M4.2 4.2l2.1 2.1M17.7 17.7l2.1 2.1M2 12h3M19 12h3M4.2 19.8l2.1-2.1M17.7 6.3l2.1-2.1%27/%3E%3C/svg%3E")}
.i-plus{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M12 5v14M5 12h14%27/%3E%3C/svg%3E")}
.i-minus{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M5 12h14%27/%3E%3C/svg%3E")}
.i-return{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M9 14l-5-5 5-5%27/%3E%3Cpath d=%27M4 9h10a6 6 0 010 12h-3%27/%3E%3C/svg%3E")}
.i-exit{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M15 4h3a2 2 0 012 2v12a2 2 0 01-2 2h-3%27/%3E%3Cpath d=%27M10 17l-5-5 5-5M5 12h11%27/%3E%3C/svg%3E")}
.i-pause{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M9 5v14M15 5v14%27/%3E%3C/svg%3E")}
.i-play{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M7 4l13 8-13 8z%27/%3E%3C/svg%3E")}
.i-up{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M12 19V5M6 11l6-6 6 6%27/%3E%3C/svg%3E")}
.i-down{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M12 5v14M6 13l6 6 6-6%27/%3E%3C/svg%3E")}
.i-swap{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M7 4L3 8l4 4M3 8h14M17 20l4-4-4-4M21 16H7%27/%3E%3C/svg%3E")}
.i-pen{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M4 20h4L19 9l-4-4L4 16z%27/%3E%3C/svg%3E")}
.i-cal{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Crect x=%273.5%27 y=%275%27 width=%2717%27 height=%2715%27 rx=%273%27/%3E%3Cpath d=%27M3.5 10h17M8 3v4M16 3v4%27/%3E%3C/svg%3E")}
.i-dot{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%273%27/%3E%3C/svg%3E")}
.i-eye{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z%27/%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%273%27/%3E%3C/svg%3E")}
.i-eye-off{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M3 3l18 18%27/%3E%3Cpath d=%27M10.6 5.1A10 10 0 0112 5c6.5 0 10 7 10 7a17 17 0 01-3 3.9M6.6 6.6C3.7 8.4 2 12 2 12s3.5 7 10 7a9.6 9.6 0 004.4-1%27/%3E%3C/svg%3E")}
.i-arrow{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M5 12h14M13 6l6 6-6 6%27/%3E%3C/svg%3E")}
.i-search{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Ccircle cx=%2711%27 cy=%2711%27 r=%277%27/%3E%3Cpath d=%27M20 20l-4-4%27/%3E%3C/svg%3E")}
.i-refresh{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M20 11a8 8 0 10-2.3 5.7%27/%3E%3Cpath d=%27M20 4v7h-7%27/%3E%3C/svg%3E")}
.i-lock{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Crect x=%274%27 y=%2710%27 width=%2716%27 height=%2711%27 rx=%273%27/%3E%3Cpath d=%27M8 10V7a4 4 0 018 0v3%27/%3E%3C/svg%3E")}
.i-check{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M5 12l5 5L20 7%27/%3E%3C/svg%3E")}
.i-x{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M6 6l12 12M18 6L6 18%27/%3E%3C/svg%3E")}
.i-ig{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Crect x=%273%27 y=%273%27 width=%2718%27 height=%2718%27 rx=%275%27/%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%274%27/%3E%3Ccircle cx=%2717.5%27 cy=%276.5%27 r=%27.6%27/%3E%3C/svg%3E")}
.i-send{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M21 3L10 14%27/%3E%3Cpath d=%27M21 3l-7 18-4-7-7-4z%27/%3E%3C/svg%3E")}

.i-film{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Crect x=%273%27 y=%274%27 width=%2718%27 height=%2716%27 rx=%273%27/%3E%3Cpath d=%27M7 4v16M17 4v16M3 9h4M3 15h4M17 9h4M17 15h4%27/%3E%3C/svg%3E")}
.i-bolt{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M13 2L4 14h7l-1 8 9-12h-7z%27/%3E%3C/svg%3E")}

/* frame */
.bar{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:calc(10px + var(--safe-t)) 16px 10px;background:linear-gradient(180deg,rgba(11,10,9,.92),rgba(11,10,9,.72));
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;min-height:44px;gap:.6rem;font-family:"Instrument Serif",Georgia,serif;font-size:1.35rem;white-space:nowrap}
.brand img{border-radius:50%;box-shadow:0 0 20px rgba(214,178,122,.35)}
.brand b{font-weight:400;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.tabs{display:none;gap:4px;background:rgba(255,255,255,.04);padding:4px;border-radius:14px;box-shadow:0 0 0 1px var(--line) inset}
.tabs a,.dock a{display:flex;align-items:center;gap:.45rem;font-weight:700;font-size:.88rem;color:var(--muted);border-radius:10px;transition:color .2s,background .2s}
.tabs a{padding:.5rem .85rem;min-height:44px}
.tabs a.on{color:var(--ink);background:var(--grad)}
.sync-pill{display:inline-flex;align-items:center;min-height:44px;gap:.45rem;font-size:.76rem;font-weight:700;color:var(--muted);padding:.42rem .7rem;
  border-radius:99px;background:rgba(255,255,255,.05);box-shadow:0 0 0 1px var(--line) inset;white-space:nowrap}
.sync-pill .dot{width:8px;height:8px;border-radius:50%;background:var(--faint)}
.sync-pill.ok .dot{background:var(--green);box-shadow:0 0 10px var(--green)}
.sync-pill.bad{color:#f2b2a8}.sync-pill.bad .dot{background:var(--red);box-shadow:0 0 10px var(--red)}
.sync-pill.busy .dot,.btn.busy i{animation:pulse .8s ease-in-out infinite}
@keyframes pulse{50%{opacity:.25}}
.dock{position:fixed;left:0;right:0;bottom:0;z-index:20;display:grid;grid-template-columns:repeat(5,1fr);gap:2px;
  padding:6px 8px calc(6px + var(--safe-b));background:rgba(14,12,10,.88);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  border-top:1px solid var(--line)}
.dock a{flex-direction:column;gap:3px;font-size:.68rem;padding:.4rem 0;justify-content:center}
.dock a i{width:22px;height:22px}
.dock a.on{color:var(--cream)}
.dock a.on i{background:var(--gold)}
.page{max-width:1100px;margin:0 auto;padding:14px 16px calc(96px + var(--safe-b))}
.boot{min-height:70vh;display:grid;place-items:center}
.spinner{width:34px;height:34px;border-radius:50%;border:3px solid rgba(214,178,122,.2);border-top-color:var(--gold);animation:spin .9s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* hero + kpis */
.hero{margin:14px 2px 18px}
.hero .eyebrow{color:var(--muted);font-size:.84rem;font-weight:600;margin-bottom:6px}
.hero.small{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 2px 14px}
.hero.small h1{font-size:2.2rem}
.kpis{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.kpi{display:flex;flex-direction:column;gap:2px;padding:14px 14px 13px;min-height:104px;transition:transform .15s}
.kpi:active{transform:scale(.98)}
.k-label{display:flex;align-items:center;gap:.35rem;font-size:.7rem;font-weight:800;letter-spacing:.11em;text-transform:uppercase;color:var(--muted)}
.k-label i{width:14px;height:14px}
.k-num{font-family:"Instrument Serif",Georgia,serif;font-size:2.35rem;line-height:1.05;color:var(--cream)}
.k-sub{font-size:.78rem;color:var(--muted)}
.wide-kpi{grid-column:1/-1;min-height:0}
.k-row{font-size:.92rem;color:var(--muted);display:flex;flex-wrap:wrap;gap:.25rem .45rem;align-items:baseline;margin-top:4px}
.k-row b{font-family:"Instrument Serif",Georgia,serif;font-weight:400;font-size:1.7rem;margin-left:.4rem}
.k-row b:first-child{margin-left:0}
.up{color:var(--green)} .down{color:var(--red)} .gold{color:var(--gold)}
.money{transition:filter .25s}
.money.veiled{filter:blur(9px);user-select:none}
.nudge{display:flex;align-items:center;gap:12px;padding:14px 16px;margin:14px 0 0;font-size:.88rem;color:var(--muted)}
.nudge b{color:var(--cream)}
.nudge>i:first-child{color:var(--gold);width:22px;height:22px}
.nudge>i:last-child{color:var(--gold);margin-left:auto}

/* blocks + lists */
.block{margin-top:26px}
.block-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 2px 10px}
.empty{padding:16px;color:var(--muted);font-size:.9rem}
.list{display:flex;flex-direction:column;gap:8px}
.row{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;transition:transform .15s,background .2s}
.row:hover{background:var(--panel2)}
.row:active{transform:scale(.99)}
.ava{flex:none;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:.86rem;letter-spacing:.02em;
  color:var(--ink);background:var(--grad)}
.ava.ads{background:linear-gradient(135deg,#cfe0f7,#8fb0de 60%,#5c7fb3)}
.ava.big{width:56px;height:56px;font-size:1.05rem}
.who{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.nm{font-weight:700;font-size:.98rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.meta{display:flex;flex-wrap:wrap;gap:5px}
.sub{font-size:.78rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tag{display:inline-flex;align-items:center;font-size:.66rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
  padding:.18rem .48rem;border-radius:7px;background:rgba(255,255,255,.06);color:var(--muted);box-shadow:0 0 0 1px var(--line) inset}
.tag.smm{color:var(--cream);background:rgba(214,178,122,.1)}
.tag.ads{color:var(--blue);background:rgba(156,184,227,.1)}
.tag.pkg{color:var(--text)}
.tag.paused,.tag.st-paused{color:#f3d99a;background:rgba(231,184,102,.14)}
.tag.ended,.tag.st-ended{color:#f2b2a8;background:rgba(227,139,127,.12)}
.tag.st-active{color:var(--green);background:rgba(156,202,166,.12)}
.tag.new{color:var(--ink);background:var(--green)}
.tag.back{color:var(--violet);background:rgba(195,166,230,.12)}
.when{display:flex;flex-direction:column;align-items:flex-end;gap:3px;flex:none;text-align:right}
.due{font-size:.78rem;font-weight:800;padding:.22rem .55rem;border-radius:99px;background:rgba(255,255,255,.06);color:var(--muted);white-space:nowrap}
.due.warm{color:#f3d99a;background:rgba(231,184,102,.15)}
.due.hot{color:var(--ink);background:var(--amber)}
.due-date{font-size:.74rem;color:var(--muted)}

/* clients filters */
.filters{display:flex;flex-direction:column;gap:10px;position:sticky;top:calc(58px + var(--safe-t));z-index:5;padding:6px 0 8px;
  background:linear-gradient(180deg,rgba(11,10,9,.94) 70%,rgba(11,10,9,0))}
.search{display:flex;align-items:center;gap:8px;padding:0 12px;border-radius:14px}
.search i{color:var(--muted)}
.search input{background:none;box-shadow:none;padding:.75rem 0}
.seg{display:flex;gap:3px;padding:3px;border-radius:13px;background:rgba(255,255,255,.04);box-shadow:0 0 0 1px var(--line) inset;overflow-x:auto;scrollbar-width:none}
.seg::-webkit-scrollbar{display:none}
.seg button{flex:1;padding:.55rem .7rem;border-radius:10px;font-weight:700;font-size:.84rem;color:var(--muted);white-space:nowrap;text-align:center;min-height:38px}
.seg button b{font-weight:800;opacity:.7;margin-left:.15rem}
.seg button.on{color:var(--ink);background:var(--grad)}
.seg.big button{padding:.75rem .6rem;font-size:.9rem}
.seg.tiny{display:inline-flex;margin-top:4px}
.seg.tiny button{padding:.35rem .8rem;min-height:32px;font-size:.8rem}
.filter-row{display:flex;gap:8px;align-items:center}
.filter-row .seg{flex:1 1 auto;min-width:0}
@media (max-width:759px){.sort>span{display:none}.sort select{max-width:158px}}
.sort{display:flex;align-items:center;gap:6px;font-size:.8rem;color:var(--muted);flex:none}
.sort select{width:auto;min-height:40px;padding:.5rem 2rem .5rem .7rem;font-size:16px}
.count{margin:4px 2px 8px}

/* history */
.months{padding:14px 14px 10px}
.legend{font-size:.76rem;color:var(--muted);display:flex;align-items:center;gap:6px}
.lg{display:inline-block;width:10px;height:10px;border-radius:3px}
.lg.j,.mb.j{background:var(--green)} .lg.l,.mb.l{background:var(--red)}
.mbars{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;height:130px;align-items:end}
.mbar{display:flex;flex-direction:column;align-items:center;gap:6px;height:100%}
.mb-cols{flex:1;width:100%;display:flex;gap:4px;align-items:flex-end;justify-content:center}
.mb{width:40%;max-width:22px;min-height:3px;border-radius:5px 5px 2px 2px;position:relative;opacity:.85}
.mb b{position:absolute;top:-17px;left:50%;transform:translateX(-50%);font-size:.7rem;color:var(--muted)}
.mb-lab{font-size:.72rem;color:var(--muted);font-weight:700}
.chips{display:flex;gap:6px;overflow-x:auto;margin:16px 0 4px;padding-bottom:4px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip-btn{flex:none;padding:.5rem .9rem;border-radius:99px;font-size:.84rem;font-weight:700;color:var(--muted);background:rgba(255,255,255,.04);box-shadow:0 0 0 1px var(--line) inset;min-height:38px}
.chip-btn.on{color:var(--ink);background:var(--grad)}
.day{font-size:.8rem;color:var(--muted);font-weight:700;margin:18px 4px 8px;letter-spacing:.02em}
.timeline{display:flex;flex-direction:column;padding:4px 0}
.ev{display:flex;gap:12px;padding:10px 14px;width:100%;align-items:flex-start}
.ev+.ev{border-top:1px solid var(--line)}
.ev-ic{flex:none;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.06)}
.ev-ic i{width:16px;height:16px}
.ev-ic.up{color:var(--green);background:rgba(156,202,166,.12)}
.ev-ic.down{color:var(--red);background:rgba(227,139,127,.12)}
.ev-ic.gold{color:var(--gold);background:rgba(214,178,122,.14)}
.ev-ic.mid{color:var(--amber);background:rgba(231,184,102,.1)}
.ev-body{display:flex;flex-direction:column;gap:2px;min-width:0}
.ev-name{font-weight:700;font-size:.92rem;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.ev-what{font-size:.86rem}
.ev-when{font-size:.74rem;color:var(--muted)}

/* settings */
.card{padding:16px;margin-bottom:12px;display:flex;flex-direction:column;gap:12px}
.card .block-head{margin:0}
.card.inner{background:rgba(255,255,255,.03);box-shadow:0 0 0 1px var(--line) inset;border-radius:16px;margin:14px 0 0}
.sync-box{padding:12px;border-radius:14px;background:rgba(156,202,166,.07);box-shadow:0 0 0 1px rgba(156,202,166,.18) inset;font-size:.86rem;display:flex;flex-direction:column;gap:6px}
.sync-box.bad{background:rgba(227,139,127,.08);box-shadow:0 0 0 1px rgba(227,139,127,.25) inset}
.prices{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
.prices label,.edit-grid label,.note{display:flex;flex-direction:column;gap:5px;font-size:.76rem;font-weight:700;color:var(--muted)}
.since-list{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.since-row{display:flex;align-items:center;gap:12px;padding:10px 12px}
.since-row input{width:auto;flex:none;max-width:170px}
@media (max-width:759px){.since-row{flex-wrap:wrap;row-gap:8px}.since-row .who{flex:1 1 calc(100% - 60px)}
  .since-row input{flex:1 1 auto;max-width:none;margin-left:54px}}
.saved{color:var(--green);opacity:0;transition:opacity .3s}
.saved.on{opacity:1}

/* client sheet */
.sheet-wrap{position:fixed;inset:0;z-index:50}
.scrim{position:absolute;inset:0;background:rgba(0,0,0,.55);opacity:0;transition:opacity .3s}
.sheet{position:absolute;left:0;right:0;bottom:0;max-height:92vh;max-height:92dvh;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;
  border-radius:24px 24px 0 0;padding:18px 16px calc(24px + var(--safe-b));background:rgba(22,19,16,.97);
  transform:translateY(100%);transition:transform .32s cubic-bezier(.2,.8,.2,1);display:flex;flex-direction:column;gap:12px}
.sheet::before{content:"";align-self:center;width:42px;height:5px;border-radius:9px;background:rgba(255,255,255,.18);margin:-8px 0 2px;flex:none}
.sheet-wrap.on .scrim{opacity:1}
.sheet-wrap.on .sheet{transform:none}
.sheet-head{display:flex;align-items:center;gap:12px}
.sh-title{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.sh-title h2{font-family:"Instrument Serif",Georgia,serif;font-weight:400;font-size:1.8rem;line-height:1.05}
.x{flex:none;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.06);align-self:flex-start}
.ig{justify-content:flex-start}
.facts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.fact{display:flex;flex-direction:column;gap:3px;padding:12px;border-radius:16px;background:rgba(255,255,255,.035);box-shadow:0 0 0 1px var(--line) inset;min-width:0}
.f-label{font-size:.68rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.f-val{font-weight:700;font-size:.98rem}
.f-sub{font-size:.8rem;color:var(--muted)}
.f-sub .due{font-size:.72rem}
input.inline{min-height:36px;padding:.35rem .5rem;font-size:16px;margin-top:2px}
.dates{margin:-2px 2px 0}
.lock{display:flex;gap:8px;align-items:flex-start;padding:12px;border-radius:14px;background:rgba(255,255,255,.03);box-shadow:0 0 0 1px var(--line) inset}
.lock i{flex:none;margin-top:2px;color:var(--gold)}
.edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.edit-grid .span2{grid-column:1/-1}
.acts{margin-top:4px}
.on-date{display:flex;align-items:center;gap:6px;font-size:.8rem;color:var(--muted);margin-left:auto}
.on-date input{width:auto;min-height:40px;padding:.4rem .5rem}
.sheetcols summary{cursor:pointer;font-weight:700;font-size:.88rem;color:var(--cream);padding:6px 2px}
.sheetcols dl{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:8px 2px 0;font-size:.84rem}
.sheetcols dt{color:var(--muted)} .sheetcols dd{margin:0}

/* toast */
.toast{position:fixed;left:50%;bottom:calc(84px + var(--safe-b));transform:translate(-50%,20px);z-index:90;opacity:0;
  padding:.7rem 1.1rem;border-radius:14px;background:rgba(30,26,21,.96);box-shadow:var(--shadow);font-weight:700;font-size:.88rem;
  transition:opacity .3s,transform .3s;max-width:calc(100vw - 32px);text-align:center}
.toast.on{opacity:1;transform:translate(-50%,0)}
.toast.bad{color:#f2b2a8}

/* login */
.login-body{min-height:100vh;min-height:100dvh}
.login{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:24px 16px}
.login-card{width:100%;max-width:420px;padding:28px 22px;display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.login-logo{border-radius:50%;box-shadow:0 0 30px rgba(214,178,122,.35)}
.stack{display:flex;flex-direction:column;gap:10px;width:100%}
.msg{min-height:1.2em;font-size:.88rem;color:var(--cream)}
.keylogin{width:100%}
.keylogin summary{cursor:pointer;color:var(--muted);font-size:.86rem;font-weight:700;padding:6px 0}
.keylogin form{margin-top:8px}

/* wider screens: iPad, desktop */
@media (min-width:760px){
  .tabs{display:flex}
  .dock{display:none}
  .page{padding:20px 24px 48px}
  .kpis{grid-template-columns:repeat(4,1fr)}
  .wide-kpi{grid-column:1/-1}
  .list{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .list>.empty{grid-column:1/-1}
  .filters{flex-direction:row;flex-wrap:wrap;top:calc(62px + var(--safe-t))}
  .filters .search{flex:1 1 280px}
  .filters>.seg{flex:0 1 auto}
  .filter-row{flex:1 1 100%}
  .toast{bottom:28px}
  .sheet-wrap .sheet{left:auto;top:0;bottom:0;width:min(520px,92vw);max-height:none;border-radius:24px 0 0 24px;transform:translateX(100%);padding:22px 22px 28px}
  .sheet::before{display:none}
  .sheet-wrap.on .sheet{transform:none}
}
@media (min-width:1100px){
  .kpis{grid-template-columns:repeat(4,1fr) 1.4fr}
  .wide-kpi{grid-column:auto}
  .list{grid-template-columns:1fr 1fr 1fr}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* uploads + ads (25 Oct 2026) */
.bar-right{display:flex;align-items:center;gap:8px}
.gear{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:var(--muted);background:rgba(255,255,255,.05);box-shadow:0 0 0 1px var(--line) inset}
.gear.on{color:var(--ink);background:var(--grad)}
.kpis.two{grid-template-columns:1fr 1fr;margin-top:10px}
.kpis.three{grid-template-columns:repeat(3,1fr);margin:12px 0 4px}
.kpis.three .kpi{min-height:92px;padding:12px}
.k-num small{font-size:1.1rem;color:var(--muted);margin-left:2px}
.k-num.down{color:var(--red)}
.k-sub b{font-weight:800}
.lead-note{margin:-6px 2px 14px}
.week{padding:14px 14px 12px;display:flex;flex-direction:column;gap:10px}
.week .block-head{margin:0}
.wk-row{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.wk{display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 0;border-radius:12px;text-align:center}
.wk.on{background:rgba(214,178,122,.12);box-shadow:0 0 0 1px rgba(214,178,122,.35) inset}
.wk-bar{width:16px;height:46px;border-radius:6px;background:rgba(255,255,255,.06);display:flex;align-items:flex-end;overflow:hidden}
.wk-bar span{display:block;width:100%;background:var(--green);border-radius:6px}
.wk-bar span.has-miss{background:linear-gradient(180deg,var(--amber),var(--green))}
.wk-num{font-size:.7rem;font-weight:800;color:var(--text)}
.wk-lab{font-size:.68rem;color:var(--muted);font-weight:700}
.wk.sun .wk-num{color:var(--faint)}
.pill{display:inline-flex;align-items:center;gap:4px;font-size:.72rem;font-weight:800;padding:.24rem .55rem;border-radius:99px;white-space:nowrap;
  background:rgba(255,255,255,.06);color:var(--muted)}
.pill.ok{color:var(--green);background:rgba(156,202,166,.13)}
.pill.sched{color:var(--blue);background:rgba(156,184,227,.13)}
.pill.warm{color:#f3d99a;background:rgba(231,184,102,.15)}
.pill.bad{color:#f6b9b0;background:rgba(227,139,127,.18)}
.pill.off{color:var(--faint)}
.pill-link{display:inline-flex}
.row.static{cursor:default}
.row.static:active{transform:none}
.link-sel{width:auto;max-width:46%;min-height:38px;font-size:16px;padding:.45rem 1.8rem .45rem .6rem;flex:none}
.card.inner .link-sel{max-width:100%;width:100%}
.dots{display:flex;gap:8px;flex-wrap:wrap}
.dot-day{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:.66rem;font-weight:800;color:var(--muted)}
.dot-day i{width:14px;height:14px;border-radius:50%;background:rgba(255,255,255,.1)}
.dot-day.ok i{background:var(--green)} .dot-day.sched i{background:var(--blue)} .dot-day.bad i{background:var(--red)} .dot-day.warm i{background:var(--amber)}
.accts{display:flex;flex-direction:column;gap:6px}
.acct{display:flex;align-items:center;gap:8px;font-size:.84rem;font-weight:700;padding:8px 10px;border-radius:12px;background:rgba(255,255,255,.04);box-shadow:0 0 0 1px var(--line) inset}
.acct .faint{font-weight:500;font-size:.74rem}
.mini{margin-left:auto;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.06);font-size:1rem;line-height:1}
@media (max-width:759px){.dock a{font-size:.64rem}.kpis.three .k-num{font-size:1.9rem}}
@media (min-width:760px){.kpis.two{grid-template-columns:1fr 1fr}}

/* the month: lock + package progress (25 Oct 2026) */
.useg{margin:0 0 12px}
.pill i{width:12px;height:12px}
.pbar{position:relative;display:block;height:8px;border-radius:99px;background:rgba(255,255,255,.08);overflow:visible;flex:1;min-width:60px}
.pbar .fill{position:absolute;left:0;top:0;bottom:0;border-radius:99px;background:linear-gradient(90deg,#7fb58c,var(--green))}
.pbar .fill.behind{background:linear-gradient(90deg,#c9786d,var(--red))}
.pbar .mark{position:absolute;top:-3px;bottom:-3px;width:2px;border-radius:2px;background:var(--cream);opacity:.85}
.prow{display:grid;grid-template-columns:110px 56px 1fr;align-items:center;gap:4px 10px;padding:6px 0;border-top:1px solid var(--line)}
.prow:first-of-type{border-top:0}
.prow .pl{font-size:.84rem;font-weight:700}
.prow .pv{font-weight:800;font-size:.9rem}
.prow .pv.muted{font-weight:600;font-size:.8rem;grid-column:2/-1}
.prow .ps{grid-column:2/-1;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.mline{display:flex;align-items:center;gap:8px;margin:2px 0}
.mrow .who{gap:4px}
.lockrow{padding:10px 12px;gap:10px}
.rowmain{display:flex;align-items:center;gap:12px;flex:1;min-width:0;text-align:left}
.lockbtns{display:flex;flex-direction:column;gap:6px;flex:none}
.lockbtns .btn{min-height:34px;padding:.4rem .75rem;font-size:.8rem}
@media (min-width:760px){.lockbtns{flex-direction:row}}

/* the Auto tab: the Meta ads AI's switch (14 Nov 2026) */
.i-power{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M12 3v8%27/%3E%3Cpath d=%27M6.3 7.2a8 8 0 1 0 11.4 0%27/%3E%3C/svg%3E")}
.i-sun{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%274%27/%3E%3Cpath d=%27M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4%27/%3E%3C/svg%3E")}
.i-moon{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5z%27/%3E%3C/svg%3E")}
.i-copy{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Crect x=%279%27 y=%279%27 width=%2711%27 height=%2711%27 rx=%272%27/%3E%3Cpath d=%27M5 15V6a2 2 0 0 1 2-2h8%27/%3E%3C/svg%3E")}
.i-chat{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M4 19l1.4-4A7.5 7.5 0 1 1 9 18.6z%27/%3E%3C/svg%3E")}
.i-link{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1%27/%3E%3Cpath d=%27M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1%27/%3E%3C/svg%3E")}

.ahero .eyebrow{margin-bottom:2px}
.adown{display:flex;align-items:center;gap:14px;padding:14px 16px;margin-bottom:12px}
.adown-ic{flex:none;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;color:var(--gold);background:rgba(214,178,122,.1);box-shadow:0 0 0 1px rgba(214,178,122,.25) inset}
.adown-t{display:flex;flex-direction:column;gap:2px}
.astrip{padding:14px;display:flex;flex-direction:column;gap:14px;margin-bottom:12px}
.am{display:flex;flex-direction:column;gap:8px}
.amode button{display:flex;flex-direction:column;align-items:center;gap:1px;padding:.5rem .4rem;min-height:52px;transition:background .25s,color .25s}
.amode button b{font-size:.92rem;font-weight:800;margin:0;opacity:1}
.amode button small{font-size:.66rem;font-weight:600;opacity:.75;white-space:normal;line-height:1.15}
.amode button.m-on.on{background:linear-gradient(120deg,#cfe8d5,#9ccaa6 60%,#6ea57b)}
.amode button.m-off.on{background:rgba(255,255,255,.14);color:var(--text)}
.amode button.armed,.btn.armed{background:var(--amber);color:var(--ink)}
.am-line{margin:0 2px}
/* a write on its way (the door's job, 15 Nov 2026): the wanted value stays, quietly busy */
.amode button.busy,.btn.small.busy{opacity:.78;cursor:progress}.amode button.busy small,.btn.small.busy{animation:softpulse 1.1s ease-in-out infinite}@keyframes softpulse{50%{opacity:.55}}
.am-other{margin:2px 2px 0;font-size:.76rem}.apc-p{margin:0;font-style:italic}
@media (prefers-reduced-motion:reduce){.amode button.busy small,.btn.small.busy{animation:none}}
@media (max-width:759px){.am-line{display:none}.ahero h1{font-size:2rem}}
.anums{display:grid;grid-template-columns:repeat(3,1fr);gap:10px 12px;padding-top:12px;border-top:1px solid var(--line)}
@keyframes abreath{0%{box-shadow:0 0 0 0 rgba(156,202,166,.55)}70%{box-shadow:0 0 0 9px rgba(156,202,166,0)}100%{box-shadow:0 0 0 0 rgba(156,202,166,0)}}
.afilters{gap:8px}
.achips{margin:0;padding-bottom:2px}
.chip-btn b{font-weight:800;opacity:.6;margin-left:.2rem}
.ahead2{margin-top:22px}
/* a row */
.arow{display:flex;align-items:center;gap:10px;padding:10px 12px 10px 12px;transition:box-shadow .3s,background .3s}
.arow.is-on{box-shadow:var(--shadow),0 0 0 1px rgba(214,178,122,.32) inset}
.arow-main{display:flex;align-items:center;gap:12px;flex:1;min-width:0;text-align:left;padding:2px 0}
.arow-main:active{transform:scale(.99)}
.arow .ava,.sheet-head .ava{position:relative}
.ava .dp{position:absolute;inset:0;width:100%;height:100%;border-radius:50%;object-fit:cover;opacity:0;transition:opacity .25s ease}
.ava .dp.on{opacity:1}
.ava.has-dp{box-shadow:0 0 0 2px var(--bg),0 0 0 3.5px var(--line2)}
.adot{z-index:1;position:absolute;top:-1px;right:-1px;width:12px;height:12px;border-radius:50%;background:var(--red);box-shadow:0 0 0 2.5px var(--bg)}
.astep{display:flex;align-items:center;gap:8px;min-width:0}
.astep .sub{min-width:0}
.adots{display:inline-flex;align-items:center;gap:3px;flex:none}
.adots i{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.14);transition:background .3s}
.adots i.done{background:var(--gold)}
.adots i.now{width:9px;height:9px;background:var(--gold);box-shadow:0 0 0 3px rgba(214,178,122,.2);animation:anow 2.2s ease-in-out infinite}
.adots.idle i.done,.adots.idle i.now{background:var(--faint);box-shadow:none;animation:none;opacity:.8}
.adots.stuck i.now{background:var(--amber);box-shadow:0 0 0 3px rgba(231,184,102,.22)}
@keyframes anow{50%{box-shadow:0 0 0 5px rgba(214,178,122,.06)}}
.atka{align-self:flex-start;display:inline-flex;font-size:.66rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;padding:.16rem .5rem;border-radius:7px;
  color:var(--amber);background:rgba(231,184,102,.12)}
.atka.parkhi{color:var(--violet);background:rgba(195,166,230,.13)}
.atka.harsh{color:var(--gold);background:rgba(214,178,122,.14)}
.atka.client{color:var(--blue);background:rgba(156,184,227,.13)}
.atka.mac{color:var(--muted);background:rgba(255,255,255,.07)}
/* the big switch */

/* the ON sheet */
.aform{display:flex;flex-direction:column;gap:16px}
.af{display:flex;flex-direction:column;gap:8px}
.aplans{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.aplan{display:flex;align-items:center;gap:8px;padding:14px;border-radius:16px;background:rgba(255,255,255,.04);box-shadow:0 0 0 1px var(--line) inset;font-size:.95rem}
.aplan.on{box-shadow:0 0 0 1.5px var(--gold) inset;background:rgba(214,178,122,.08)}
.aplan.on>i:first-child{color:var(--gold)} .aplan.on>i:last-child{margin-left:auto;color:var(--gold)}
.aplan.soon{opacity:.45} .aplan.soon small{margin-left:auto;font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.gsearch{border-radius:12px}
.glist{display:flex;flex-direction:column;gap:6px;max-height:228px;overflow-y:auto;overscroll-behavior:contain;padding:2px}
.gpick{display:flex;align-items:center;gap:10px;padding:12px;border-radius:12px;background:rgba(255,255,255,.04);box-shadow:0 0 0 1px var(--line) inset;font-size:.9rem;font-weight:600;min-height:48px;transition:background .2s,box-shadow .2s}
.gpick>i:first-child{color:var(--green);flex:none}
.gpick span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gpick .gtick{opacity:0;color:var(--gold);transition:opacity .2s}
.gpick.on{background:rgba(214,178,122,.09);box-shadow:0 0 0 1.5px var(--gold) inset}
.gpick.on .gtick{opacity:1}
.gnone{padding:8px 4px}
.aline{padding:12px 14px;border-radius:14px;font-size:.9rem;line-height:1.5;background:rgba(214,178,122,.07);box-shadow:0 0 0 1px rgba(214,178,122,.18) inset}
.aline b{color:var(--cream)}
.abig{min-height:60px;font-size:1.06rem;border-radius:18px}
.abig i{width:20px;height:20px}
.center{text-align:center}
/* one client */
.ahead-sw{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 14px 14px 16px;border-radius:18px}
.ahead-sw>span{display:flex;flex-direction:column;gap:2px}
.astuck{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border-radius:14px;font-size:.88rem;background:rgba(231,184,102,.1);box-shadow:0 0 0 1px rgba(231,184,102,.25) inset}
.astuck b{color:var(--amber)}
.astuck.parkhi{background:rgba(195,166,230,.1);box-shadow:0 0 0 1px rgba(195,166,230,.25) inset}.astuck.parkhi b{color:var(--violet)}
.atl{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.atl li{position:relative;display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:10px;padding:7px 0;font-size:.9rem;color:var(--muted)}
.atl li::before{content:"";position:absolute;left:10px;top:-7px;height:14px;width:2px;background:var(--line2)}
.atl li:first-child::before{display:none}
.atl li i{justify-self:center;width:10px;height:10px;border-radius:50%;background:transparent;box-shadow:0 0 0 2px var(--line2) inset}
.atl li.done{color:var(--text)} .atl li.done i{background:var(--gold);box-shadow:none} .atl li.done::before{background:rgba(214,178,122,.5)}
.atl li.now{color:var(--text);font-weight:700} .atl li.now i{width:14px;height:14px;background:var(--gold);box-shadow:0 0 0 4px rgba(214,178,122,.2);animation:anow 2.2s ease-in-out infinite}
.atl li.stuck i{background:var(--amber);box-shadow:0 0 0 4px rgba(231,184,102,.2)}
.atl-d{font-size:.78rem;color:var(--muted);text-align:right}
.atl-d b{font-weight:700;color:var(--cream)}
.anow{margin:0;padding:0 0 0 18px;display:flex;flex-direction:column;gap:6px;font-size:.9rem}
.anow li::marker{color:var(--gold)}
.aacts{margin-top:6px}
.aalert{display:flex;flex-direction:column;gap:6px;padding:10px 0;border-top:1px solid var(--line)}
.aalert:first-of-type{border-top:0;padding-top:0}
.aa-h{display:flex;align-items:center;justify-content:space-between;gap:8px}
.adraft{display:flex;flex-direction:column;gap:6px;align-items:flex-start;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.04);box-shadow:0 0 0 1px var(--line) inset}
.adraft p{font-size:.88rem;white-space:pre-wrap}
.ajob{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:6px 0}
.alinks{display:flex;flex-direction:column;gap:6px}
.alink{display:flex;align-items:center;gap:10px;width:100%;padding:12px 14px;border-radius:14px;font-size:.9rem;font-weight:600;background:rgba(255,255,255,.035);box-shadow:0 0 0 1px var(--line) inset;text-align:left}
.alink>i:first-child{color:var(--gold)}
.alink span:not(.pill){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.alink .i-arrow{color:var(--muted);width:16px;height:16px}
.ah-row{display:grid;grid-template-columns:78px 1fr;grid-template-areas:"m p" "d d";align-items:center;gap:2px 10px;padding:8px 0;border-top:1px solid var(--line)}
.ah-row:first-of-type{border-top:0}
.ah-m{grid-area:m;font-weight:800;font-size:.88rem}
.ah-d{grid-area:d}
.ah-p{grid-area:p;display:flex;align-items:center;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.aevs{display:flex;flex-direction:column;gap:4px;padding:2px 4px}
.atoast{display:flex;align-items:center;gap:14px;padding:.55rem .6rem .55rem 1.1rem;overflow:hidden}
.tbtn{font-weight:800;color:var(--cream);padding:.45rem .85rem;border-radius:10px;background:rgba(214,178,122,.16);min-height:36px}
@keyframes ashrink{to{transform:scaleX(0)}}
@media (min-width:760px){
  .astrip{flex-direction:row;align-items:stretch;gap:18px}
  .am{flex:1.2;min-width:0}
  .anums{flex:1;border-top:0;border-left:1px solid var(--line);padding:0 0 0 18px}
  #alist .list{grid-template-columns:1fr 1fr}
}
@media (min-width:1100px){
  .anums{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:759px){.arow .nm{font-size:.95rem}.arow .ava{width:38px;height:38px;font-size:.8rem}}

/* light look (14 Nov 2026): the same layout, warm paper instead of dark glass; the top bar's sun / moon switches it */
:root[data-theme="light"]{
  --bg:#f6f2ea; --panel:rgba(255,255,255,.74); --panel2:rgba(255,255,255,.92); --line:rgba(92,70,36,.11); --line2:rgba(92,70,36,.2);
  --text:#1f1a13; --muted:#6e6556; --faint:#9b9282; --gold:#b38848; --cream:#8a6428; --bronze:#8f6430;
  --green:#3d8a55; --amber:#b27a22; --red:#c0503f; --blue:#43679f; --violet:#7c58ad;
  --shadow:0 18px 40px -26px rgba(74,52,18,.38), 0 0 0 1px var(--line) inset; color-scheme:light;
}
:root[data-theme="light"] body::before{background:radial-gradient(1100px 700px at 85% -10%,rgba(214,178,122,.22),transparent 60%),
  radial-gradient(900px 600px at -10% 110%,rgba(214,178,122,.14),transparent 60%)}
:root[data-theme="light"] .noise{opacity:.025}
:root[data-theme="light"] .bar{background:linear-gradient(180deg,rgba(246,242,234,.94),rgba(246,242,234,.78))}
:root[data-theme="light"] .dock{background:rgba(250,247,241,.92)}
:root[data-theme="light"] .filters{background:linear-gradient(180deg,rgba(246,242,234,.96) 70%,rgba(246,242,234,0))}
:root[data-theme="light"] .sheet{background:rgba(251,249,245,.98)}
:root[data-theme="light"] .sheet::before{background:rgba(0,0,0,.14)}
:root[data-theme="light"] .scrim{background:rgba(40,30,15,.28)}
:root[data-theme="light"] .toast{background:rgba(31,26,19,.94);color:#f7f1e6}
:root[data-theme="light"] .toast .tbtn{color:#efdcb3}
:root[data-theme="light"] .toast.bad{color:#f6b9b0}
:where(:root[data-theme="light"]) :is(input,select,textarea,.sync-pill,.gear,.seg,.chip-btn,.tabs,.x,.mini,.acct,.fact,.lock,.wk-bar,.pbar,.aplan,.gpick,.alink,.adraft,.ev-ic,.due,.pill,.tag){background-color:rgba(60,44,20,.05)}
:root[data-theme="light"] :is(.card.inner,.btn.ghost,.amode button.m-off.on){background-color:rgba(60,44,20,.045)}
:where(:root[data-theme="light"]) .dot-day i{background:rgba(60,44,20,.12)}
:root[data-theme="light"] .btn.ghost:hover{background:rgba(60,44,20,.08)}
:root[data-theme="light"] :is(.tag.paused,.tag.st-paused,.due.warm,.pill.warm){color:#8a5a12;background:rgba(214,160,60,.16)}
:root[data-theme="light"] :is(.tag.ended,.tag.st-ended,.pill.bad,.sync-pill.bad,.btn.danger){color:#a8402f}
:root[data-theme="light"] .tag.new{color:#fff}
:where(:root[data-theme="light"]) .adots i{background:rgba(60,44,20,.14)}
:root[data-theme="light"] .adot{box-shadow:0 0 0 2.5px #fff}
@keyframes abreathl{0%{box-shadow:0 0 0 0 rgba(61,138,85,.45)}70%{box-shadow:0 0 0 9px rgba(61,138,85,0)}100%{box-shadow:0 0 0 0 rgba(61,138,85,0)}}
:root[data-theme="light"] input[type=month],:root[data-theme="light"] input[type=date]{color-scheme:light}
:root[data-theme="light"] .brand img,:root[data-theme="light"] .login-logo{box-shadow:0 0 16px rgba(179,136,72,.3)}
.demo-rib{position:fixed;top:calc(64px + var(--safe-t));left:50%;transform:translateX(-50%);z-index:60;font-size:.64rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;padding:.2rem .6rem;border-radius:99px;color:var(--ink);background:var(--grad);pointer-events:none;opacity:.9}

/* ---------------------------------------------------------------- Auto tab: strong + smart (14 Nov 2026, evening)
   Harsh: "Panel ko strong, smooth, no bugs wala banana. And smart brain ho iske paas." Calm, light, short words. */
.ahero{align-items:flex-end}
.afresh{white-space:nowrap;padding-bottom:6px}
/* Poochho */
.aask{display:flex;align-items:center;gap:8px;padding:0 6px 0 14px;border-radius:16px;margin-bottom:8px}
.aask>i{color:var(--gold);flex:none}
.aask input{background:none;box-shadow:none;padding:.8rem 0;min-width:0}
.askgo{flex:none;width:44px;height:44px;border-radius:12px;display:grid;place-items:center;color:var(--ink);background:var(--grad)}
.askgo[disabled]{opacity:.5}
.aans{margin-bottom:12px}
.aans:empty{display:none}
.aans-in{position:relative;display:flex;flex-direction:column;gap:4px;padding:12px 52px 12px 16px;border-radius:16px;font-size:.92rem;line-height:1.5;
  background:rgba(214,178,122,.08);box-shadow:0 0 0 1px rgba(214,178,122,.2) inset;animation:arise .25s ease}
.aans-in.wait{color:var(--muted)}
.aans-in.bad{background:rgba(227,139,127,.08);box-shadow:0 0 0 1px rgba(227,139,127,.25) inset}
.aans-in .x.sm{position:absolute;top:2px;right:2px;width:44px;height:44px;background:none}
@keyframes arise{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
/* Aaj kya dekhna hai */
.abrain{padding:14px 14px 8px;margin-bottom:12px}
.abrain .block-head{margin-bottom:6px}
.ab-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.ab-list li+li{border-top:1px solid var(--line)}
.ab-l{width:100%;display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:10px;padding:10px 2px;min-height:52px;text-align:left;border-radius:10px;transition:background .2s}
.ab-l:active{background:rgba(214,178,122,.08)}
.ab-n{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:.72rem;font-weight:800;color:var(--ink);background:var(--grad)}
.ab-l.k-renew .ab-n,.ab-l.k-telegram .ab-n,.ab-l.k-clips .ab-n{background:rgba(255,255,255,.1);color:var(--text)}
.ab-t{font-size:.9rem;line-height:1.4;min-width:0;overflow-wrap:anywhere}
.ab-b{display:inline-flex;align-items:center;gap:2px;font-size:.8rem;font-weight:800;color:var(--cream);white-space:nowrap}
.ab-b i{width:14px;height:14px}
.ab-calm{display:flex;align-items:center;gap:10px;padding:6px 0 10px;font-size:.95rem;color:var(--muted)}
.ab-calm i{color:var(--green)}
/* Tumhari haan: the waiting replies */
.aaps{margin-bottom:14px}
.aaps.in{margin:0}
.apl{display:flex;flex-direction:column;gap:10px}
.apc{display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:18px;background:var(--panel);box-shadow:var(--shadow);overflow:hidden;
  transition:height .3s ease,opacity .25s ease,margin .3s ease,padding .3s ease}
.apc.leaving{opacity:0;padding-top:0;padding-bottom:0;margin-bottom:-10px;pointer-events:none}
.apc-h{display:flex;align-items:center;gap:10px}
.apc-w{flex:1;min-width:0;display:flex;flex-direction:column}
.apc-w b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.apc-s{font-size:.9rem;line-height:1.45}
.apc-d{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.04);box-shadow:0 0 0 1px var(--line) inset}
.apc-d p{font-size:.9rem;white-space:pre-wrap;overflow-wrap:anywhere}
.apc-d textarea{min-height:110px;resize:vertical;line-height:1.45}
.apc-e{font-size:.86rem;color:var(--red);font-weight:600}
.apc-old{margin:0;color:var(--amber);font-weight:600}
.apc-b{display:flex;flex-wrap:wrap;gap:8px}
.apc-b .btn{flex:1 1 auto;min-height:44px}
.apc-b .apno{flex:0 1 auto}
.tag.yes{color:var(--ink);background:var(--gold)}
/* her next step */
.anext{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:16px;
  background:rgba(214,178,122,.08);box-shadow:0 0 0 1px rgba(214,178,122,.22) inset}
.anext-l{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:.92rem;line-height:1.4}
.anext .btn{flex:none;min-height:44px}
.asmart{margin:0 2px 8px}
.asmart b{color:var(--cream)}
/* strong: every tap target 44 px in the tab and its sheets */
.ahero~* .btn.small,.asheet .btn.small,.afilters .chip-btn,.amode button,.asheet .seg button,.asheet .x,.tbtn{min-height:44px}
.asheet .x{width:44px;height:44px}
.tbtn{min-width:64px}
.arow{min-height:68px}
.arow-main{min-height:48px}
/* smooth: 300 rows scroll at 60 fps (no blur behind each row; rows off screen are not laid out) */
.arow.glass{backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--panel2);content-visibility:auto;contain-intrinsic-size:auto 76px}
.arow .who{min-width:0;display:flex;flex-direction:column;gap:3px;overflow:hidden}
.arow .nm,.arow .sub{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.arow .nm{line-height:1.3}
.gpick span,.alink span:not(.pill),.apc-w b{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.arow .meta{display:flex;flex-wrap:wrap;gap:4px}
.ava .dp{content-visibility:visible}
/* the sheet ends above the phone's keyboard; the page behind never scrolls with it */
.scrim{touch-action:none}
@media (max-width:759px){
  .sheet{bottom:var(--kb,0px);max-height:calc(92dvh - var(--kb,0px))}
}

:root[data-theme="light"] .arow.glass{background:rgba(255,255,255,.86)}
:root[data-theme="light"] .apc{background:rgba(255,255,255,.86)}
:root[data-theme="light"] :is(.apc-d,.aans-in){background-color:rgba(60,44,20,.04)}
:root[data-theme="light"] .anext{background:rgba(179,136,72,.08)}
:root[data-theme="light"] .tag.yes{color:#fff}
@media (prefers-reduced-motion:reduce){.apc{transition:none}.aans-in{animation:none}}
/* iPad: the top bar's six tabs fit (the sync pill shows its dot only; the words come back from 1100 px) */
@media (min-width:760px) and (max-width:1099px){
  .sync-pill:not([role=menuitem]) .txt{display:none}
  .sync-pill:not([role=menuitem]){width:44px;justify-content:center;padding:0}
  .tabs a{padding:.5rem .62rem}
  .brand span{display:none}
  .brand{min-width:44px;justify-content:center}
}
@media (min-width:760px){.sheet-wrap .sheet{padding-top:calc(22px + var(--safe-t))}}
.ava.has-dp,.apc-h .ava{position:relative}
.aask input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
@media (min-width:760px){
  .aaps:not(.in) .apl{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
  .apc-b .btn{flex:0 1 auto}
}
:root[data-theme="light"] .ab-l.k-renew .ab-n,:root[data-theme="light"] .ab-l.k-telegram .ab-n,:root[data-theme="light"] .ab-l.k-clips .ab-n{background:rgba(60,44,20,.08)}

/* Brief J (15 Nov 2026): the simple home of the Auto tab (?home=simple | aaj) and her folded sheet */
.shero{margin:8px 2px 14px}
.shero h1{font-size:2.5rem}
.sbtns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 14px}
.srow-main:active,.sfoldh:active{transform:scale(.985)}
.ssearch{min-height:54px;margin:0 0 14px;border-radius:16px}
.ssearch input{font-size:1.05rem;padding:.9rem 0}
.slist{display:flex;flex-direction:column;border-radius:20px;background:var(--panel);box-shadow:var(--shadow);overflow:hidden;margin:0 0 12px}
.srow{display:flex;align-items:center;gap:12px;min-height:78px;padding:10px 14px}
.srow+.srow{border-top:1px solid var(--line)}
.srow-main{display:flex;align-items:center;gap:14px;flex:1;min-width:0;text-align:left;min-height:56px}
.srow .ava{width:48px;height:48px;position:relative}
.srow .who{display:flex;flex-direction:column;gap:3px;min-width:0}
.srow .nm{font-size:1.08rem;font-weight:700;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.srow .sl{font-size:.875rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.srow .sl.gold{color:var(--gold);font-weight:700}
.sfoldh{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:56px;padding:0 16px;margin:0 0 12px;border-radius:16px;
  background:var(--panel);box-shadow:0 0 0 1px var(--line) inset;font-weight:700;font-size:.95rem;color:var(--muted);text-align:left}
.sfoldh>span:first-child{flex:1}
.i-chev{--m:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M6 9l6 6 6-6%27/%3E%3C/svg%3E")}
.sfoldh i{width:18px;height:18px;transition:transform .25s}
.sfoldh.open i,.sfold.open .sfoldh i{transform:rotate(180deg)}
.sfoldh.open{margin-bottom:8px;color:var(--text)}
.scount{margin:-4px 4px 8px}
.saaj{display:flex;flex-direction:column;gap:2px;margin:0 0 14px;padding:4px 6px;border-radius:18px;background:var(--panel);box-shadow:0 0 0 1px var(--line) inset}
.saaj-l{display:flex;align-items:center;gap:10px;min-height:48px;padding:6px 10px;text-align:left}
.saaj-l+.saaj-l{border-top:1px solid var(--line)}
.saaj-t{flex:1;min-width:0;font-size:.92rem;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.saaj-more{align-self:flex-end;min-height:32px;padding:0 10px 4px;margin-top:-6px;font-weight:700;color:var(--cream)}
.asx .aaps>.block-head{display:none}
.asx .sxsec{margin:14px 0}
.asx .astrip{margin-top:14px}
.asx .slist{margin-top:14px}
.asx .empty,.sfirst{margin-top:14px}
.sfirst{display:flex;flex-direction:column;gap:10px}
.sfolds{display:flex;flex-direction:column;margin-top:14px;border-radius:18px;background:var(--panel);box-shadow:0 0 0 1px var(--line) inset;overflow:hidden}
.sfold+.sfold{border-top:1px solid var(--line)}
.sfolds .sfoldh{margin:0;border-radius:0;background:none;box-shadow:none;color:var(--text)}
.sfolds .sfoldh .muted{flex:none}
.sfold-b{display:none;padding:0 16px 16px}
.sfold.open .sfold-b{display:block}
.sjobs{display:flex;flex-direction:column;gap:6px;margin-top:10px}
@media (prefers-reduced-motion:reduce){.sfoldh i{transition:none}.srow-main:active,.sfoldh:active{transform:none}}
/* Brief K1 (15 Nov 2026): the simple home is THE home; English words; polish for the phone */

.sfolds .sfoldh{min-height:64px;font-size:1rem}
.sfoldh{min-height:60px}
.stoday{display:flex;align-items:center;gap:14px;min-height:72px;margin:18px 0 4px;padding:12px 14px 12px 16px;border-radius:18px;background:var(--panel);box-shadow:0 0 0 1px var(--line) inset}
.stoday-t{flex:1;min-width:0;font-size:.9rem;color:var(--muted);line-height:1.35}
:is(.srow-main,.sfoldh,.saaj-l,.saaj-more,.gpick,.apc .btn,.asheet .btn,.alink,.amode button,.seg button,.x):focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.srow-main:focus-visible{outline-offset:-2px;border-radius:14px}
.sfolds .sfoldh:focus-visible{outline-offset:-3px}
@media (min-width:760px){
  .shome{max-width:640px;margin:0 auto}
  .shome .slist{display:flex}
}
.srow .sl{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.3}
/* a sheet is a flex column: nothing in it may shrink (the folds collapsed to 0 px under 12 reply cards, QA 15 Nov 2026) */
.asheet>*{flex-shrink:0}
.srow .nm{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.25}
.srow .sl{display:block;-webkit-line-clamp:unset;overflow:visible}
.saaj-more{min-height:44px;padding:0 10px;margin-top:-4px}
.shero{margin:2px 2px 10px}
.sbtns{margin-bottom:12px}
.ssearch{margin-bottom:12px}
.sfoldh{margin-bottom:10px}
/* a 360 px phone: the top bar was 384 px wide and the whole page zoomed out (QA 15 Nov 2026) */
@media (max-width:380px){.bar{gap:6px}.bar-right{gap:6px}.brand{font-size:1.12rem;gap:.4rem}.sync-pill{padding:.42rem .5rem;gap:.35rem;font-size:.72rem}}
@media (max-width:380px){.shero h1{font-size:2.1rem}.srow{min-height:68px;padding:7px 12px}.srow .ava{width:44px;height:44px}
  .ssearch{min-height:50px}.sfoldh{min-height:54px}}

/* ===================================================================== HK Glass on the Auto tab (15 Nov 2026)
   hk-glass.css (MetaAdsAgent/design, linked after this file) draws the pieces; these lines only fit them into the tracker's frame
   and replace the old Auto rules (.asw, .sbtn, .srow, .sfoldh, the old toast). The look itself is not changed here. */
body.hkg{--hkg-dock-h:64px}
body.hkg::before,body.hkg .noise{display:none}
.hkg .bar{background:var(--hkg-overlay);-webkit-backdrop-filter:blur(16px) saturate(1.4);backdrop-filter:blur(16px) saturate(1.4);border-bottom:1px solid var(--hkg-line);min-width:0}
.hkg .bar .brand{min-width:0;flex:0 1 auto;overflow:hidden}
.hkg .bar .brand span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hkg .bar-right{flex:none;gap:4px}
.bar-stat{display:inline-flex;align-items:center;gap:6px;font:700 12px/1 var(--hkg-sans);color:var(--hkg-text-2);padding:0 4px}
.bar-stat .dot{width:8px;height:8px;border-radius:50%;background:var(--hkg-text-3)}
.bar-stat.ok .dot{background:var(--hkg-ok-fill)}.bar-stat.bad{color:var(--hkg-bad)}.bar-stat.bad .dot{background:var(--hkg-bad-fill)}
.bar-menu{position:relative}
.bar-menu>summary{list-style:none;cursor:pointer}.bar-menu>summary::-webkit-details-marker{display:none}
.bar-pop{position:absolute;right:0;top:calc(100% + 6px);z-index:60;min-width:228px;display:grid;padding:6px;border-radius:var(--hkg-r-m);
  background:var(--hkg-sheet);box-shadow:var(--hkg-shadow-2,0 18px 40px -18px rgba(0,0,0,.45)),inset 0 0 0 1px var(--hkg-line)}
.bar-pop>*{appearance:none;border:0;background:none;display:grid;grid-template-columns:22px 1fr;align-items:center;column-gap:10px;min-height:48px;padding:6px 10px;
  border-radius:12px;font:600 15px/1.25 var(--hkg-sans);color:var(--hkg-text);text-align:left;text-decoration:none;cursor:pointer}
.bar-pop>*:active{background:var(--hkg-well)}
.bar-pop i{width:18px;height:18px;background:var(--hkg-text-2)}
.bar-pop small{grid-column:2;font:500 13px/1.2 var(--hkg-sans);color:var(--hkg-text-3)}
.hkg .dock{background:var(--hkg-overlay);-webkit-backdrop-filter:blur(16px) saturate(1.4);backdrop-filter:blur(16px) saturate(1.4);border-top:1px solid var(--hkg-line)}
.hkg .dock a{font-size:12px;color:var(--hkg-text-2)}
.hkg .dock a.on{color:var(--hkg-gold-ink)}.hkg .dock a.on i{background:var(--hkg-gold-ink)}
/* the page: one column of glass, the home fits one phone screen */
.hkg .shome{max-width:560px;margin:0 auto}
.hkg .shome .hkg-h{padding-top:4px}
.hkg .shome .hkg-display{margin:0}
.hkg .hkg-count{min-height:104px}
.hkg .hkg-count--word .hkg-count__n{font-size:24px;line-height:1.1;text-align:center;padding:0 4px}
.hkg .hkg-count .sbtn-top{order:0}
.hkg .hkg-count.busy{opacity:.7}
.hkg .hkg-search i{width:20px;height:20px;flex:none;background:var(--hkg-text-3)}
/* rows: 68-72 px, one line with "…", the mini journey under it */
.hkg .srow.hkg-row{min-height:68px;padding:8px 12px 8px 14px}
.hkg .srow .hkg-row__hit{display:flex;align-items:center;gap:12px;flex:1;min-width:0;background:none;border:0;padding:0;text-align:left;color:inherit;font:inherit;cursor:pointer;min-height:48px}
.hkg .srow .hkg-row__main{display:flex;flex-direction:column;min-width:0;flex:1}
.hkg .srow .hkg-row__t,.hkg .srow .hkg-row__s{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.hkg .srow .hkg-jmini{margin-top:5px}
.hkg .srow .hkg-jmini.is-idle{opacity:.45}
.hkg .srow.is-off .hkg-row__hit{opacity:.62}
:is(.shome,.asheet) .ava{width:44px;height:44px;flex:none;border-radius:50%;display:grid;place-items:center;font:800 15px/1 var(--hkg-sans);color:var(--hkg-gold-ink);
  background:var(--hkg-gold-tint,var(--hkg-well));box-shadow:inset 0 0 0 1px var(--hkg-line);overflow:hidden;position:relative}
:is(.shome,.asheet) .ava.big{width:56px;height:56px;font-size:19px}
:is(.shome,.asheet) .ava .dp{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .25s}.hkg .ava .dp.on{opacity:1}
.hkg .empty{margin:0;color:var(--hkg-text-2);text-align:center;padding:20px 16px}
.hkg .empty.hkg-card{display:block}
/* the two folds on the home and the folds in her sheet: one look (summary of hkg-fold) */
.hkg-foldbtn{appearance:none;border:0;width:100%;display:flex;align-items:center;gap:12px;min-height:56px;padding:0 16px;background:var(--hkg-sheen),var(--hkg-surface);
  border-radius:var(--hkg-r-l);box-shadow:var(--hkg-shadow-1);font:700 16px/1.2 var(--hkg-sans);color:var(--hkg-text);text-align:left;cursor:pointer}
.hkg-foldbtn>span:first-child{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hkg-foldbtn__n{font:600 14px/1 var(--hkg-sans);color:var(--hkg-text-2)}
.hkg-foldbtn i{width:16px;height:16px;flex:none;background:var(--hkg-text-2);transition:transform .2s}
.hkg-foldbtn.open i,.sfold.open>.hkg-foldbtn i{transform:rotate(180deg)}
.sfolds.hkg-list .hkg-foldbtn{border-radius:0;box-shadow:none;background:none}
.sfolds.hkg-list .sfold+.sfold{box-shadow:0 -1px 0 var(--hkg-line)}
.hkg .sfold .sfold-b{display:none}.hkg .sfold.open .sfold-b{display:block}
/* the sheet: solid, the tracker's frame */
.hkg .asheet{background:var(--hkg-sheet);color:var(--hkg-text);display:flex;flex-direction:column;gap:16px;padding:12px 16px calc(24px + var(--hkg-safe-b))}
.hkg .asheet>*{flex:none}
.hkg .asheet .sheet-head{min-width:0}.hkg .asheet .sh-title{min-width:0;flex:1}
.hkg .asheet .hkg-title{margin:0;overflow-wrap:anywhere;word-break:normal}
.hkg .asheet .sheet-head .x{flex:none}
.hkg .ahead-sw{display:flex;align-items:center;gap:12px}
.hkg .ahead-sw>span{display:flex;flex-direction:column;flex:1;min-width:0}
.hkg .hkg-switch.big{transform:none}
.ajrail{margin-top:2px}
.hkg-journey>li.is-now.is-off::before{box-shadow:inset 0 0 0 6px var(--hkg-text-3)}
.ajnow .hkg-btn{margin-top:4px}
.ajais{display:grid;gap:4px}
.ajwho.wait{color:var(--hkg-warn)}.ajwho.stuck{color:var(--hkg-bad)}
.ajnote{margin:0}
.ajfeed{list-style:none;margin:0;padding:0;display:grid}
.ajfeed>li{display:flex;gap:12px;align-items:baseline;justify-content:space-between;min-height:40px;padding:8px 0;border-top:1px solid var(--hkg-line)}
.ajfeed>li:first-child{border-top:0}
.ajf-t{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px}
.ajf-d{flex:none;font-size:13px;color:var(--hkg-text-3)}
.ajsec{display:grid;gap:8px;padding:8px 0}
.ajacts{display:grid;gap:10px}
.ajact{display:flex;align-items:center;gap:12px}.ajact .hkg-btn{flex:none;min-width:116px}.ajact .hkg-hint{flex:1;min-width:0}
.hkg .stoday{display:flex;align-items:center;gap:12px}.hkg .stoday-t{display:grid;gap:2px;flex:1;min-width:0}
/* toasts: above the dock, one or two lines (hkg-toast); the old .toast frame steps aside */
.hkg .hkg-toast.toast{left:50%;right:auto;bottom:calc(var(--hkg-dock-h) + 16px + var(--hkg-safe-b));max-width:min(92vw,440px)}
.hkg .hkg-toast.toast.on{transform:translate(-50%,0)}
.hkg .hkg-toast>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media (min-width:1024px){ body.hkg{--hkg-dock-h:0px} }
/* desktop: the list left, her drawer right (QUALITY O25) */
@media (min-width:1024px){
  .hkg .shome{max-width:none;margin:0;width:auto}
  .hkg .sheet-wrap .asheet{width:min(560px,50vw);top:calc(var(--hk-barh,72px) + 8px);bottom:8px;border-radius:24px 0 0 24px}
}
.hkg .hkg-search input,.hkg .hkg-search input:focus{border:0;background:none;box-shadow:none;padding:0;min-height:0;outline:0}
/* a row's one line never loses its end (manager, 15 Nov 2026: "Access · waiting on Parkhi, 1 …" at 390): the name and the mini
   journey sit beside the switch, the line runs under them the full width (under the switch too); 13 px under 380 px wide */
.hkg .srow.hkg-row{min-height:70px;padding:7px 12px 7px 14px}
.hkg .srow>.hkg-switch{position:absolute;top:8px;right:12px}
.hkg .srow .hkg-row__main{display:flex;flex-direction:column;gap:0}
.hkg .srow .hkg-row__t{order:0;padding-right:78px;line-height:21px}
.hkg .srow .hkg-jmini{order:1;margin-top:5px;max-width:min(128px,calc(100% - 78px))}
.hkg .srow .hkg-row__s{order:2;margin-top:7px;line-height:19px}
.hkg .srow .hkg-row__main:not(:has(.hkg-jmini)) .hkg-row__s{margin-top:16px}
@media (max-width:380px){.hkg .srow .hkg-row__s{font-size:13px}}
/* the home fits one phone screen with its two folds (DESIGN rule 1; QA "the two folds on the first screen"): the old K1 margins
   came on top of hkg-stack's 16 px gaps */
.hkg .shome .shero,.hkg .shome .sbtns,.hkg .shome .ssearch,.hkg .shome .sfoldh{margin:0}
.hkg .shome #saaj:empty,.hkg .shome #sbtns:empty{display:none}
.hkg .shome #alist{gap:12px}
.hkg .shome .hkg-count{min-height:96px}
/* a busy switch keeps its taps (the JS ignores them): with pointer-events off a second tap fell through to the row and opened her sheet */
.hkg .srow>.hkg-switch.is-busy{pointer-events:auto}
/* the reply cards and the AI sheet's mode strip in HK Glass (hkg-card, hkg-pill, hkg-btn, hkg-seg, hkg-facts) */
.hkg .apl{display:grid;gap:12px}
.hkg .apc{gap:12px;padding:16px;color:var(--hkg-text)}
.hkg .apc-h{gap:12px}.hkg .apc-w{gap:2px}
.hkg .apc-s{margin:0;font-size:15px;line-height:1.45;color:var(--hkg-text)}
.hkg .apc-d{gap:6px;padding:12px;border-radius:var(--hkg-r-m);background:var(--hkg-well);box-shadow:none}
.hkg .apc-d p{margin:0;font-size:15px;line-height:1.45}
.hkg .apc-d textarea{font-size:16px}
.hkg .apc-old,.hkg .apc-e{margin:0}
.hkg .apc-b{display:flex;gap:8px;flex-wrap:wrap}.hkg .apc-b .hkg-btn{flex:1 1 0;min-width:0}
.hkg .aaps .block-head{display:flex;align-items:baseline;justify-content:space-between;margin:0 2px 8px}
.hkg .aaps .block-head h2{margin:0}
.hkg .astrip{display:grid;gap:14px;padding:16px;margin:0}
.hkg .astrip .am{display:grid;gap:10px}
.hkg .astrip .am-line,.hkg .astrip .am-other{margin:0}
.hkg .amode>button{min-height:44px}
.hkg .amode>button.on{color:var(--hkg-text);background:var(--hkg-seg-on);box-shadow:0 2px 8px -3px rgba(60,40,10,.35),inset 0 0 0 1px var(--hkg-line)}
.hkg .amode>button.armed{color:var(--hkg-on-gold);background:var(--hkg-gold-grad)}
.hkg .anums{padding-top:12px;border-top:1px solid var(--hkg-line);align-items:center}
.hkg .anums dt{font:400 26px/1 "Instrument Serif",Georgia,serif;color:var(--hkg-text);text-align:center;min-width:28px}
.hkg .anums dd{color:var(--hkg-text-2);font-size:14px}
.hkg .abrain{padding:14px 14px 8px;margin:0}.hkg .abrain .block-head{display:flex;justify-content:space-between;align-items:baseline;margin:0 2px 4px}.hkg .abrain h2{margin:0}
.hkg .ab-l{color:var(--hkg-text)}.hkg .ab-l+.ab-l,.hkg .ab-list>li+li{border-top:1px solid var(--hkg-line)}
.hkg .ab-n,.hkg .ab-l[class*="k-"] .ab-n{font-size:12px;color:var(--hkg-text);background:var(--hkg-well-2)}
.hkg .ab-b{color:var(--hkg-gold-ink);font-weight:700;font-size:14px}
.hkg .aask{margin:0}.hkg .aask .askgo{flex:none;width:44px;height:44px;display:grid;place-items:center;border:0;background:none;color:var(--hkg-text-2)}
.hkg .aans-in{background:var(--hkg-well);color:var(--hkg-text);border-radius:var(--hkg-r-m);padding:12px 44px 12px 14px;position:relative}
.hkg .aans-in p{margin:0}
.hkg .amode>button{display:grid;place-items:center;gap:0;padding:0 8px;min-height:44px;font:700 14px/1.15 var(--hkg-sans);text-align:center}
/* O15 + O17 (15 Nov 2026): Turn on = one card of what was picked, "Change" opens the choices in place; labels 12 px */
.hkg .f-label{font-size:12px;color:var(--hkg-text-2)}
.hkg .aplan.soon small{font-size:12px}
.aon-card{display:flex;align-items:center;gap:10px;padding:14px 14px 14px 16px}
.aon-sum{flex:1;min-width:0;margin:0;font-size:15px;line-height:1.4;color:var(--hkg-text)}
.aon-sum b{font-weight:800}
.aon-miss{color:var(--hkg-text-2);font-style:italic}
.aon-chg{flex:none}
.aon-choices[hidden]{display:none}
.aon-choices{display:flex;flex-direction:column;gap:16px}
/* O8 (15 Nov 2026): the tracker's own quiet words and pills on HK Glass's inks (4.5:1 in both themes), 12 px or more */
.hkg .faint{color:var(--hkg-text-3)} .hkg .muted{color:var(--hkg-text-2)}
.hkg .pill{font-size:12px}
.hkg .pill.ok{color:var(--hkg-ok);background:none;box-shadow:inset 0 0 0 1px var(--hkg-line-2)}   /* the ok tint on the sheet ground was 4.22:1 */
.hkg .pill.warm{color:var(--hkg-warn);background:var(--hkg-warn-bg)}
.hkg .pill.bad{color:var(--hkg-bad);background:var(--hkg-bad-bg)}
.hkg .pill.off{color:var(--hkg-text-3)}
.hkg .tabs a{color:var(--hkg-text-2)}
.hkg .tabs a.on{color:var(--hkg-text);background:var(--hkg-seg-on);box-shadow:inset 0 0 0 1px var(--hkg-gold-line)}
.hkg .apn{vertical-align:middle;margin-left:6px;font-size:13px}.hkg .apn:empty{display:none}
/* full matrix, 15 Nov 2026: short phones (360x740) keep the two folds on the first screen; the logo's tap area 44 px; the side sheet
   (tablet / desktop) clears the notch */
@media (max-height:760px) and (max-width:759px){.hkg .hkg-count{min-height:64px}.hkg .shome.hkg-stack{gap:8px}.hkg .shome .hkg-display{font-size:32px;line-height:1.05}}
.hkg .bar .brand{min-width:44px;flex:0 0 auto}
@media (min-width:760px){.hkg .sheet-wrap .asheet{padding-top:calc(22px + var(--hkg-safe-t))}}
/* 360 px phones: the three count buttons keep their label on ONE line (it wrapped to two and pushed the folds 9 px
   under the first screen at 360x740; the manager, 15 Nov 2026). Nothing under 12 px. */
@media (max-width:380px){.hkg .shome .hkg-count__l{font-size:12px;white-space:nowrap}.hkg .shome .hkg-count--word .hkg-count__n{font-size:20px;line-height:1.15;white-space:nowrap}}
@media (max-height:760px) and (max-width:759px){.hkg .shome.hkg-stack{gap:6px}}
/* ---------------------------------------------------------------- round 2 on her page (15 Nov 2026, QUALITY M1-M3, S1-S8, T2-T5) */
/* M1: the confirm is ordinary text in the card (it wraps), the two buttons under it; nothing wider than the card */
.ajconf{display:grid;gap:10px;min-width:0;max-width:100%;padding:12px 0 2px;border-top:1px solid var(--hkg-line)}
.ajconf-t{margin:0;font-size:15px;line-height:1.45;color:var(--hkg-text);overflow-wrap:anywhere;white-space:normal}
.ajconf-b{display:grid;gap:8px;min-width:0}
.ajconf-b .hkg-btn{white-space:normal;min-width:0;max-width:100%;height:auto;min-height:48px;line-height:1.25;text-align:center}
.ajnow .ajconf .hkg-btn{margin-top:0}
.ajact.is-conf{display:block}.ajact.is-conf .ajconf{border-top:0;padding-top:0}
.astrip .ajconf{padding-top:10px}
.hkg .ajnow,.hkg .ajnow>*{min-width:0;max-width:100%}
.hkg .ajnow .hkg-btn{white-space:normal;height:auto;min-height:48px;line-height:1.25}
/* M2: a waiting reply is its own line in the card (it opens her reply); on the home a small gold pill beside her name */
.ajrep{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:8px 12px;border:0;border-radius:var(--hkg-r-m);background:var(--hkg-well);
  color:var(--hkg-text);font:600 15px/1.35 var(--hkg-sans);text-align:left;cursor:pointer}
.ajrep>span{flex:1;min-width:0}.ajrep .i-arrow{flex:none;width:16px;height:16px;background:var(--hkg-text-2)}
.ajrep:focus-visible{outline:2px solid var(--hkg-gold);outline-offset:2px}
.hkg .srow .stl{display:flex;align-items:center;gap:8px;min-width:0;padding-right:78px;order:0}
.hkg .srow .stl .hkg-row__t{padding-right:0;flex:0 1 auto;min-width:0}
.hkg .srow .srep{flex:none;font-size:12px;line-height:1;padding:4px 8px;white-space:nowrap}
/* T5: the switch sits in her page's header, the rail leads */
.hkg .asheet .ajhead{gap:12px;align-items:flex-start}
.hkg .asheet .ajhead>.ava{margin-top:4px}
.hkg .ajhead-r{display:flex;flex-direction:column;align-items:flex-end;gap:10px;flex:none}
.hkg .asheet .ajhead .hkg-switch{flex:none}
.hkg .sdesk-ai{display:grid;gap:6px}.hkg .sdesk-ai p{margin:0}
.hkg .ajauto{margin:2px 0 0;font-size:13px;line-height:1.35;color:var(--hkg-text-2)}
.hkg .am-plain{list-style:none;margin:0;padding:0;display:grid;gap:4px}
/* S7: a switched-off row is quiet by its inks, never by opacity (initials 2.46:1, the line 3.34:1 in dark) */
.hkg .srow.is-off .hkg-row__hit{opacity:1}
.hkg .srow.is-off .ava{color:var(--hkg-text-2);background:var(--hkg-well)}
.hkg .srow.is-off .ava .dp.on{opacity:.6}
.hkg .srow.is-off .hkg-row__t,.hkg .srow.is-off .hkg-row__s{color:var(--hkg-text-2)}
/* the demo's ribbon never lies over a sheet's head: it sits at the page's foot and steps away while a sheet is open */
.demo-rib{top:auto;bottom:calc(var(--hkg-dock-h,0px) + 6px + var(--hkg-safe-b,0px));font-size:12px;letter-spacing:.08em;color:#1b1408;background:#ecd3a1;opacity:1}
body:has(.sheet-wrap.on) .demo-rib,body:has(.st-sheet.is-open) .demo-rib,body:has(.ov-sheet.is-open) .demo-rib,body:has(.hkg-toast.is-open) .demo-rib{display:none}
/* T4: a desktop uses the width: the list left, a calm second column (the day's lines, the AI) right; her page opens over it */
.sdesk{display:none}
/* I-O1 (HK Glass 1.2 hkg-page--split): from 1024 px the list left (5 parts), the chosen client right (7 parts) */
@media (min-width:1024px){
  .hkg .sdeskwrap{display:grid;grid-template-columns:minmax(320px,5fr) minmax(0,7fr);gap:24px;align-items:start;max-width:1240px;margin:0 auto}
  .hkg .sdeskwrap>.shome{width:auto;max-width:none;margin:0;min-width:0}
  .hkg .sdesk{display:grid;gap:16px;min-width:0;position:sticky;top:calc(var(--hk-barh,72px) + 16px)}
  .hkg .sdesk .hkg-eyebrow{margin:0}
  .hkg .sdesk-yes{display:grid;gap:12px}.hkg .sdesk-yes .hkg-h{display:flex;align-items:center;gap:10px}.hkg .sdesk-yes p{margin:0}
  /* her page docks over the right column: no dim layer, the list stays live beside it, the page still scrolls */
  .hkg .sheet-wrap.apanew{pointer-events:none}
  .hkg .sheet-wrap.apanew .scrim{display:none}
  .hkg .sheet-wrap.apanew .asheet{pointer-events:auto;overscroll-behavior:contain;left:var(--hk-deskx,42vw);right:auto;width:var(--hk-deskw,56vw);top:calc(var(--hk-barh,72px) + 12px);bottom:12px;
    border-radius:24px;box-shadow:0 12px 40px rgba(40,30,15,.14);border:1px solid var(--hkg-line,rgba(0,0,0,.08))}
  body.locked:has(.sheet-wrap.apanew){overflow:auto}
  body:has(.sheet-wrap.apanew.on) .sdesk{visibility:hidden}
}
/* the two tab faults from the new bar / ground: Uploads' empty day card touched the Today card; Ads' four numbers left a fifth column empty at 1440 */
.page .card+.empty,.page section+.empty,.page .glass+.empty{margin-top:12px}
@media (min-width:1100px){.kpis:not(:has(>:nth-child(5))){grid-template-columns:repeat(4,1fr)}}
/* round 2: 360x740 with three ON clients: the two folds stay on the first screen (a reply pill made rows no taller; 4 px over) */
@media (max-height:760px) and (max-width:759px){.hkg .shome #alist{gap:8px}.hkg .shome .sfoldh{min-height:50px}}
/* I-O2: the Clients tab slid sideways on an iPad (22 px at 768, 37 px at 1180): a grid's 1fr kept a row at its content's width */
@media (min-width:760px){.list{grid-template-columns:repeat(2,minmax(0,1fr))}.list>*{min-width:0}}
@media (min-width:1100px){.list{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* the rail's eight names, shown where the docked page has room, stay at 12 px (QA floor) */
.hkg .asheet .hkg-journey>li>span{font-size:12px}
/* iPad: a drawer is 480 px at most: the replies that need his yes go one under the other there, never two cramped cards a row */
.asheet .aaps .apl{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
/* B3 (15 Nov 2026): the old tabs (Home, Clients, Uploads, Ads, History, her old sheet) on an iPad and a phone:
   12 px text at least, 44 px taps, words that read at 4.5:1. Only the old tabs' own classes. */
.k-label,.tag,.mb b,.mb-lab,.wk-num,.wk-lab,.dot-day,.pill,.due-date,.ev-when,.f-label,.acct .faint,.ab-n,.chip{font-size:.75rem}
.f-sub .due,.due{font-size:.78rem}
.seg button{min-height:44px}
.seg.tiny button{min-height:44px}
.chip-btn{min-height:44px;display:inline-flex;align-items:center}
.sort select{min-height:44px}
.btn.small,.lockbtns .btn{min-height:44px}
.link.small{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;margin:-12px -4px}
.wk{min-width:44px;min-height:44px}
.wk-row{gap:2px}
.row .ava:not(.dp),.ev .ava:not(.dp),.seg button.on,.chip-btn.on,.tag.new{color:#000}
.seg button{min-width:44px}
.seg button b{opacity:1}
.wk.sun .wk-num{color:var(--muted)}
:root[data-theme="light"] .tag.new{background:#2f7345;color:#fff}
.x,.asheet .x{width:44px;height:44px}
input.inline{min-height:44px}
.sheet-head .ava:not(.dp):not(.asheet *),.sh-title .ava:not(.dp):not(.asheet *){color:#000}   /* never the Auto tab's own sheet: its initials are HK Glass's */
.tag.st-active{color:#2f6f45}
:root[data-theme="dark"] .tag.st-active{color:var(--green)}
.fact .faint,.f-sub .faint,.row .faint{color:var(--muted)}
.filters .seg button{padding-left:.95rem;padding-right:.95rem}
/* wide screens: the filter chips keep their own width (a squeezed chip let "Active 83" touch its edge); the search gives way */
@media (min-width:760px){.filters>.seg{flex:0 0 auto}.filters .seg button{flex:1 0 auto}}

/* her picture on the History and "Latest changes" rows: the event's mark sits on its corner (15 Nov 2026) */
.ev-who{position:relative;flex:none;width:40px;height:40px}
.ev-who .ava{width:40px;height:40px;font-size:.8rem}
.ev-who .ev-ic{position:absolute;right:-5px;bottom:-5px;width:20px;height:20px;background:var(--bg);box-shadow:0 0 0 1.5px var(--line2)}
.ev-who .ev-ic i{width:12px;height:12px}

/* a name and a date are never cut (Harsh, 15 Nov 2026): the name wraps, the month line has the room, the two buttons stack */
.row .nm,.ev-name{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.25}
.row .sub{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
@media (min-width:760px){.lockbtns{flex-direction:column}}
.lockrow .who{min-width:0}

/* Home's sections (15 Nov 2026): the wrapper .hkg-sections gives the ONE gap between sections; the old blocks inside it carry none */
.hkg-sections>.hero,.hkg-sections>.block,.hkg-sections>.kpis,.hkg-sections>.nudge,.hkg-sections>.empty{margin-bottom:0}
.hkg-sections>.hero{margin-left:2px;margin-right:2px}
.hkg-sections>*+.kpis,.hkg-sections>*+.nudge,.hkg-sections>*+.block{margin-top:var(--hkg-gap-section)}
.hkg-sections>.hero:first-child{margin-top:14px}

.hkg-group[id],#monthover{scroll-margin-top:calc(84px + var(--safe-t, 0px))}   /* a link to a group lands under the top bar, not behind it */

/* the finger swipe between tabs: the page's up-and-down scroll stays the browser's own; a sideways drag is ours (15 Nov 2026) */
main.page{touch-action:pan-y}

/* the ON sheet's one question ("Where is her ad?"): three plain choices, one under the other */
.aonstep{display:grid;gap:8px}
.aonstep .gpick{min-height:48px;justify-content:space-between}

/* "Names matched from the Wealth Sheet": a full-size Undo on every row */
#matchlist .hkg-btn{min-height:44px;min-width:64px}
#matched>.hkg-btn{white-space:normal;height:auto;min-height:44px;padding-top:8px;padding-bottom:8px;text-align:center}   /* its words wrap on a narrow phone */
#matchlist .hkg-row__t,#matchlist .hkg-row__s{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}   /* a name and a date are never cut */

/* a demo client (Harsh's own test client): a small quiet mark beside her name */
.demo-pill{min-height:20px;padding:0 8px;font-size:12px;margin-left:6px;vertical-align:middle;color:var(--hkg-text-2)}

/* a client's name is never cut (Harsh, 15 Nov 2026): on a narrow Auto row the name wraps and the marks go under it */
.hkg .srow .stl{flex-wrap:wrap;row-gap:4px}
.hkg .srow .stl .hkg-row__t{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
