/* ============================================================================
   ITFTS Hub v151 — "Studio" look (loaded last; overrides main.css + refresh.css)
   Warm neutral canvas · rounded white cards · hero KPI · pill controls.
   Colours come from the personal palette set in js/studio.js (--brand,
   --brand2, --accent). Everything is scoped under body.st.
   ========================================================================== */
:root{
  --st-page:#E9E7E2; --st-canvas:#F4F3F0; --st-side:#F7F6F3; --st-bar:#F7F6F3;
  --st-card:#FFFFFF; --st-ink:#1D1915; --st-muted:#7B746D; --st-line:#ECE8E2; --st-soft:#F3F1EC; --st-soft2:#ECEAE5;
  --st-r:24px; --st-r-sm:16px;
  --st-hero:linear-gradient(140deg,var(--brand2) 0%,var(--brand) 100%);
  --st-shadow:0 1px 2px rgba(40,30,20,.04);
  --st-shadow-hero:0 18px 34px -16px color-mix(in srgb,var(--brand) 70%,transparent);
}
body.st.dark{
  --st-page:#100E0D; --st-canvas:#171513; --st-side:#1A1816; --st-bar:#1A1816;
  --st-card:#221F1C; --st-ink:#EFEAE4; --st-muted:#A69D94; --st-line:#312C28; --st-soft:#2A2622; --st-soft2:#332E29;
  --st-shadow:0 1px 2px rgba(0,0,0,.3);
}
body.st{
  --bg:var(--st-canvas); --card:var(--st-card); --ink:var(--st-ink); --muted:var(--st-muted); --line:var(--st-line); --soft:var(--st-soft);
  --shadow:var(--st-shadow); --shadow-l:0 24px 60px -20px rgba(30,20,10,.35);
  font-family:'Inter',-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif!important;
  background:var(--st-page)!important; color:var(--st-ink); letter-spacing:-.005em;
}
body.st *{scrollbar-color:color-mix(in srgb,var(--st-muted) 40%,transparent) transparent}
body.st .content::before,body.st .content::after,body.st .main::before,body.st .main::after,body.st::before,body.st::after{display:none!important}
body.st .st-hidden{display:none!important}

/* ---------- Shell ---------- */
body.st .app{background:var(--st-page);padding:12px;gap:12px;min-height:100vh;box-sizing:border-box}
body.st .sidebar{
  width:248px;background:var(--st-side)!important;color:var(--st-ink)!important;border-radius:var(--st-r);
  height:calc(100vh - 24px)!important;top:12px!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;
  overflow-y:auto;overflow-x:hidden;padding-bottom:10px
}
body.st .sidebar::before,body.st .sidebar::after{display:none!important}
body.st .main{background:transparent;gap:12px;min-width:0}
body.st .content{
  background:var(--st-canvas);border-radius:var(--st-r);padding:30px 30px 60px!important;max-width:none!important;
  min-height:calc(100vh - 110px)
}

/* ---------- Sidebar ---------- */
body.st .brand{padding:22px 18px 14px;gap:12px}
body.st .logo{width:46px;height:46px;border-radius:12px;background:var(--st-card)!important;color:var(--brand)!important;border:1.5px solid var(--st-ink);box-shadow:none!important;font-size:13px;animation:none!important}
body.st .bname b{font-size:19px;font-weight:600;letter-spacing:-.4px;color:var(--st-ink)}
body.st .bname small{font-size:11.5px;color:var(--st-muted);opacity:1;font-weight:500}
body.st .ws-switch{padding:2px 14px 12px}
body.st .ws-switch label,body.st .st-group,body.st .palette-label{font-size:10.5px!important;font-weight:600!important;letter-spacing:1px!important;text-transform:uppercase;color:var(--st-muted)!important}
body.st .ws-select{background:var(--st-card)!important;color:var(--st-ink)!important;border:1px solid var(--st-line)!important;border-radius:999px!important;padding:11px 16px!important;font-weight:600!important;font-size:13px!important;min-height:44px}
body.st .ws-select option{color:#000}
body.st .side-nav{padding:4px 12px;gap:2px;overflow:visible;flex:0 0 auto}
body.st .st-group{padding:16px 12px 6px}
body.st .nav-i{color:var(--st-ink)!important;font-size:14px!important;font-weight:450!important;padding:10px 12px!important;border-radius:14px!important;gap:12px!important;background:none!important;box-shadow:none!important;border:0!important;min-height:42px}
body.st .nav-i::before,body.st .nav-i::after{display:none!important}
body.st .nav-i:hover{background:var(--st-soft2)!important}
body.st .nav-i.active{background:var(--st-hero)!important;color:#fff!important;font-weight:600!important;box-shadow:0 10px 20px -12px var(--brand)!important}
body.st .nav-i .ico{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;font-size:13px;color:inherit;opacity:.9;flex:0 0 20px;background:none!important}
body.st .nav-i .ico svg{width:19px;height:19px}
body.st .nav-i .ct{background:var(--brand2)!important;color:#fff!important;font-size:10.5px!important;font-weight:600!important;padding:2px 8px!important;border-radius:8px!important;min-width:22px;text-align:center}
body.st .nav-i .ct:empty,body.st .nav-i .ct[data-zero]{display:none}
body.st .nav-i.active .ct{background:rgba(255,255,255,.22)!important}
body.st #navOrder{margin:6px 14px 0;color:var(--st-muted);font-size:12px}
body.st #navOrder summary{color:var(--st-muted)!important;font-weight:500!important;font-size:12px;padding:6px 10px}
body.st #navOrder p{color:var(--st-muted)}
body.st .side-foot{border-top:0!important;padding:16px 12px 6px!important;gap:10px!important;margin-top:auto;background:none!important}
body.st .palette-label,body.st #themeToggle{display:none!important}
body.st .st-brandcard{
  position:relative;overflow:hidden;border-radius:20px;padding:18px 16px 16px;color:#fff;background:var(--st-hero);
  display:flex;flex-direction:column;gap:6px
}
body.st .st-brandcard::after{content:"";position:absolute;inset:-40% -60% auto auto;width:240px;height:240px;border-radius:50%;
  background:repeating-radial-gradient(circle,rgba(255,255,255,.08) 0 1px,transparent 1px 14px);pointer-events:none}
body.st .st-bc-ico{width:30px;height:30px;border-radius:50%;background:#fff;color:var(--brand);display:inline-flex;align-items:center;justify-content:center;margin-bottom:8px}
body.st .st-bc-ico svg{width:16px;height:16px}
body.st .st-brandcard b{font-size:18px;font-weight:600;letter-spacing:-.3px;line-height:1.15}
body.st .st-brandcard p{font-size:11.5px;opacity:.78;line-height:1.45;margin-bottom:6px}
body.st .st-bc-btn{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border-radius:999px;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.12);color:#fff;font-weight:600;font-size:13px;font-family:inherit}
body.st .st-bc-btn:hover{background:rgba(255,255,255,.22)}
body.st .st-bc-btn svg{width:16px;height:16px}
body.st #adminFootBtn{background:var(--st-card)!important;color:var(--st-ink)!important;border:1px solid var(--st-line)!important;border-radius:999px!important;box-shadow:none!important;min-height:44px;font-weight:600!important;font-size:13px!important;letter-spacing:0!important;margin:0!important}
body.st #adminFootBtn:hover{background:var(--st-soft2)!important}
body.st #buildBadge{background:none!important;border:0!important;color:var(--st-muted)!important;padding:4px 6px 0!important;margin:0!important;font-weight:600!important;letter-spacing:1px!important}
body.st .st-swatches{display:flex;gap:7px;padding:0 4px;flex-wrap:wrap}
body.st .st-swatch{width:26px;height:26px;border-radius:8px;background:var(--sw);border:2px solid transparent;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08);padding:0;transition:transform .12s}
body.st .st-swatch:hover{transform:scale(1.08)}
body.st .st-swatch[aria-pressed="true"]{border-color:var(--st-card);box-shadow:0 0 0 2px var(--st-ink)}
body.st .st-mode{display:flex;background:var(--st-card);border:1px solid var(--st-line);border-radius:999px;padding:4px;gap:4px}
body.st .st-mode button{flex:1;min-height:36px;border:0;border-radius:999px;background:none;color:var(--st-muted);font-size:12.5px;font-weight:500;display:flex;align-items:center;justify-content:center;gap:6px;font-family:inherit}
body.st .st-mode button svg{width:14px;height:14px}
body.st .st-mode button[aria-pressed="true"]{background:var(--st-hero);color:#fff}

/* ---------- Top bar ---------- */
body.st .topbar{
  background:var(--st-bar)!important;border:0!important;border-radius:var(--st-r);padding:12px 16px!important;gap:10px!important;
  position:sticky;top:12px;box-shadow:none!important;backdrop-filter:none!important;min-height:72px
}
body.st .topbar::before,body.st .topbar::after{display:none!important}
body.st .topbar h1#pageTitle{display:none}
body.st .topbar .ws-chip,body.st .sync-dot{background:var(--st-card)!important;border:1px solid var(--st-line)!important;border-radius:999px!important;padding:8px 14px!important;font-size:12px!important;font-weight:600!important;color:var(--st-ink)!important;box-shadow:none!important}
body.st .topbar .ws-chip{color:var(--brand2)!important}
body.st .search{background:var(--st-card)!important;border:1px solid var(--st-line)!important;border-radius:999px!important;padding:6px 14px!important;max-width:280px;box-shadow:none!important}
body.st #addBtn,body.st #clientTaskBtn{display:none!important}
body.st .qa-wrap .btn{border-radius:999px!important}
body.st #topAccount{gap:10px!important}
body.st #navUserAvatar,body.st #navUserInitial{width:42px!important;height:42px!important;border:2px solid var(--st-card)!important;box-shadow:0 0 0 1px var(--st-line)}
body.st #navUserInitial{background:var(--st-hero)!important;color:#fff!important}
body.st #navUserDisplay{font-size:14px;font-weight:600}
body.st #topAccount button[onclick="logout()"]{border:1px solid var(--st-line)!important;border-radius:999px!important;background:var(--st-card)!important;text-decoration:none!important;padding:0 14px!important;font-weight:600}
body.st .hamburger{background:var(--st-card)!important;border:1px solid var(--st-line)!important;color:var(--st-ink)!important;border-radius:12px!important}
/* Clock-in widget: dark pill with a white action */
body.st .clk-wrap{background:var(--brand)!important;border:0!important;border-radius:999px!important;box-shadow:0 8px 18px -10px var(--brand)!important;padding:5px 5px 5px 14px!important;backdrop-filter:none!important;animation:none!important}
body.st .clk-wrap::before,body.st .clk-wrap::after{display:none!important}
body.st .clk-wrap .clk-btn-in,body.st .clk-wrap button{background:#fff!important;color:var(--brand)!important;border:0!important;border-radius:999px!important;font-weight:600!important;box-shadow:none!important;animation:none!important}
body.st .clk-wrap .clk-btn-out{background:rgba(255,255,255,.16)!important;color:#fff!important}
body.st .clk-wrap *{text-shadow:none!important}

/* ---------- Page heading ---------- */
body.st .st-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px 24px;flex-wrap:wrap;margin:0 0 26px}
body.st .st-head h1{font-size:clamp(30px,3.2vw,46px);font-weight:500;letter-spacing:-.045em;line-height:1.05;color:var(--st-ink)}
body.st .st-head p{margin-top:10px;font-size:15px;color:var(--st-muted)}
body.st .st-head-act{display:flex;gap:10px;flex-wrap:wrap}
body.st .st-pill,body.st .btn{border-radius:999px!important}
body.st .st-head-act .btn{min-height:48px;padding:0 22px!important;font-size:15px!important;font-weight:500!important}

/* ---------- Buttons ---------- */
body.st .btn{font-weight:600;box-shadow:none;transform:none!important;backdrop-filter:none!important;letter-spacing:0}
body.st .btn-brand,body.st .btn-accent{background:var(--st-hero)!important;color:#fff!important;border:0!important;box-shadow:0 10px 22px -12px var(--brand)!important}
body.st .btn-brand:hover,body.st .btn-accent:hover{filter:brightness(1.08)}
body.st .btn-line{background:var(--st-card)!important;color:var(--st-ink)!important;border:1px solid color-mix(in srgb,var(--st-ink) 22%,transparent)!important}
body.st .btn-line:hover{background:var(--st-soft)!important}
body.st .btn-danger{border-radius:999px!important}
body.st .x{background:#fff!important;color:#111!important;border:0!important;box-shadow:0 2px 10px rgba(0,0,0,.15)!important}

/* ---------- Cards / panels ---------- */
body.st .panel,body.st .kpi,body.st .stat-3d,body.st .cli-card,body.st .adm-panel,body.st .pf-wrap{
  background:var(--st-card)!important;border:0!important;border-radius:var(--st-r)!important;box-shadow:var(--st-shadow)!important;backdrop-filter:none!important
}
body.st .panel{padding:24px!important;margin-bottom:16px}
body.st .panel::before,body.st .panel::after,body.st .kpi::after,body.st .kpi::before,body.st .stat-3d::before,body.st .stat-3d::after,body.st .cli-card::after{display:none!important}
body.st .panel h3{font-size:19px!important;font-weight:500!important;text-transform:none!important;letter-spacing:-.02em!important;color:var(--st-ink)!important}
body.st .panel h3 small{color:var(--st-muted);font-weight:500;font-size:13px;margin-left:4px}
body.st .row2{gap:16px}
body.st .row2 .panel:hover,body.st .kpi:hover,body.st .cli-card:hover{transform:none!important}
body.st details.panel>summary{font-size:15px;font-weight:500}

/* KPI cards */
body.st .kpis{gap:16px!important;margin-bottom:16px}
body.st .st-cards.st-four{grid-template-columns:repeat(4,minmax(0,1fr))}
body.st .kpi{position:relative;text-align:left;padding:24px 24px 22px!important;min-height:162px;display:flex;flex-direction:column;align-items:flex-start;color:var(--st-ink);font-family:inherit;cursor:pointer}
body.st .kpi .kt{font-size:17px!important;font-weight:500!important;text-transform:none!important;letter-spacing:-.01em!important;color:var(--st-ink)!important;opacity:1}
body.st .kpi .kv{font-size:50px!important;font-weight:400!important;letter-spacing:-.04em!important;line-height:1!important;margin:auto 0 0!important;padding-top:22px;color:inherit!important}
body.st .kpi .kd{font-size:12.5px!important;color:var(--st-muted)!important;font-weight:500!important;margin-top:12px}
body.st .kpi .kd b{color:var(--brand2)!important;font-weight:600}
body.st .kpi .kd b.st-warn{color:#B4412C!important}
body.st .st-go{position:absolute;top:20px;right:20px;width:36px;height:36px;border-radius:50%;border:1px solid color-mix(in srgb,var(--st-ink) 30%,transparent);display:flex;align-items:center;justify-content:center;color:var(--st-ink)}
body.st .st-go svg{width:15px;height:15px}
body.st .kpi.st-hero{background:var(--st-hero)!important;color:#fff!important;box-shadow:var(--st-shadow-hero)!important}
body.st .kpi.st-hero .kt,body.st .kpi.st-hero .kv{color:#fff!important}
body.st .kpi.st-hero .kd{color:rgba(255,255,255,.78)!important}
body.st .kpi.st-hero .st-go{background:#fff;border-color:#fff;color:var(--brand)}
body.st .kpi.selected{box-shadow:inset 0 0 0 2px var(--brand2)!important}
body.st .kpi.st-hero.selected{box-shadow:var(--st-shadow-hero),inset 0 0 0 2px rgba(255,255,255,.6)!important}
body.st .work-summary{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important}
body.st .work-summary .kpi{min-height:148px}
body.st .work-summary .kv{font-size:46px!important}

/* 3-D stat cards (analytics headers) */
body.st .stat-3d{color:var(--st-ink)!important;padding:22px!important}
body.st .stat-grid .stat-3d:first-child{background:var(--st-hero)!important;color:#fff!important}
body.st .stat-3d .s3-label{text-transform:none!important;font-size:15px!important;font-weight:500!important;letter-spacing:0!important;opacity:1}
body.st .stat-3d .s3-val{font-size:44px!important;font-weight:400!important;letter-spacing:-.04em!important}
body.st .stat-3d .s3-icon{opacity:.14}

/* Status strip (Hub dashboard) */
body.st .st-strip{display:flex;align-items:flex-end;gap:24px;margin:0 0 22px;flex-wrap:wrap}
body.st .st-bars{flex:1 1 560px;display:flex;gap:8px;min-width:0}
body.st .st-bar{position:relative;height:44px;border-radius:999px;display:flex;align-items:center;padding:0 16px;font-size:13px;min-width:70px;margin-top:24px}
body.st .st-bar-l{position:absolute;top:-24px;left:2px;font-size:13px;color:var(--st-muted);white-space:nowrap}
body.st .st-bar-v{font-weight:500}
body.st .st-bar.b-not{background:var(--st-ink);color:var(--st-canvas)}
body.st .st-bar.b-prog{background:var(--accent);color:#2a1a0c}
body.st .st-bar.b-rev{background:repeating-linear-gradient(-45deg,var(--st-soft2) 0 6px,transparent 6px 10px);border:1px solid var(--st-line);color:var(--st-ink)}
body.st .st-bar.b-done{background:transparent;border:1.5px solid color-mix(in srgb,var(--st-ink) 45%,transparent);color:var(--st-ink)}
body.st .st-big{display:flex;gap:30px}
body.st .st-big div{display:flex;flex-direction:column;align-items:flex-start}
body.st .st-big b{font-size:62px;font-weight:300;letter-spacing:-.05em;line-height:.95}
body.st .st-big span{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--st-muted);margin-top:6px}
body.st .st-big svg{width:14px;height:14px}

/* Client overview */
body.st .st-pbars{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:0 0 22px}
body.st .st-pbar-h{display:flex;justify-content:space-between;font-size:13px;color:var(--st-muted);margin-bottom:8px}
body.st .st-pbar-h b{color:var(--st-ink);font-weight:500}
body.st .st-track{height:12px;border-radius:999px;background:var(--st-soft2);overflow:hidden}
body.st .st-track i{display:block;height:100%;border-radius:999px;background:var(--brand)}
body.st .st-track i.p{background:var(--accent)}
body.st .st-track i.s{background:repeating-linear-gradient(-45deg,var(--brand2) 0 3px,transparent 3px 7px)}
body.st .st-track i.d{background:var(--brand2)}
body.st .st-grid-cdash{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(300px,1fr);gap:16px;align-items:start}
body.st .st-col{display:flex;flex-direction:column;gap:0}
body.st .st-ph{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}
body.st .st-ph h3{margin:0!important}
body.st .st-pills{display:grid;grid-template-columns:repeat(7,1fr);gap:10px;align-items:end}
body.st .st-pillcol{display:flex;flex-direction:column;align-items:center;gap:8px}
body.st .st-pn{font-size:13px;color:var(--st-ink)}
body.st .st-pillwrap{height:150px;width:100%;display:flex;align-items:flex-end;justify-content:center}
body.st .st-pillbar{width:min(68px,80%);border-radius:999px;background:var(--brand2)}
body.st .st-pillbar.empty{background:repeating-linear-gradient(-45deg,var(--st-soft2) 0 4px,transparent 4px 8px);border:1px solid var(--st-line)}
body.st .st-pd{font-size:12.5px;color:var(--st-muted);padding:3px 10px;border-radius:999px}
body.st .st-pd.today{background:var(--brand);color:#fff}
body.st .st-pdn{font-size:11.5px;color:var(--st-muted);margin-top:-4px}
body.st .st-pf{display:flex;justify-content:space-between;align-items:center;margin-top:16px}
body.st .st-link{border:0;background:none;color:var(--st-ink);font:inherit;font-size:13px;font-weight:500;display:inline-flex;gap:8px;align-items:center;padding:4px 0}
body.st .st-link svg{width:18px;height:18px}
body.st .st-link.light{color:#fff;margin-top:auto}
body.st .st-row{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border:0;border-bottom:1px solid var(--st-line);background:none;color:var(--st-ink);text-align:left;font:inherit}
body.st .st-row:last-child{border-bottom:0}
body.st .st-row-t{display:flex;flex-direction:column;gap:3px;min-width:0}
body.st .st-row-t b{font-weight:500;font-size:14.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:60ch}
body.st .st-row-t small{font-size:12px;color:var(--st-muted)}
body.st .panel.st-dark{background:var(--st-hero)!important;color:#fff;min-height:100%;display:flex;flex-direction:column}
body.st .panel.st-dark h3{color:#fff!important}
body.st .st-num{font-size:34px;font-weight:300;letter-spacing:-.04em}
body.st .st-dsub{font-size:12.5px;color:rgba(255,255,255,.72);margin:-8px 0 14px}
body.st .st-drow{display:flex;gap:12px;align-items:center;justify-content:space-between;text-align:left;width:100%;padding:16px 0;border:0;border-top:1px solid rgba(255,255,255,.14);background:none;color:#fff;font:inherit}
body.st .st-drow span{display:flex;flex-direction:column;gap:6px;min-width:0}
body.st .st-drow b{font-weight:500;font-size:13.5px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.st .st-drow small{font-size:11.5px;color:rgba(255,255,255,.62)}
body.st .st-drow em{font-style:normal;font-size:11px;padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.88);color:var(--brand);white-space:nowrap}

/* Admin banner */
body.st .st-banner{background:var(--st-hero);color:#fff;border-radius:var(--st-r);padding:30px;display:flex;justify-content:space-between;align-items:center;gap:20px;margin:-6px 0 22px;flex-wrap:wrap}
body.st .st-banner small{font-size:11px;letter-spacing:1.6px;text-transform:uppercase;opacity:.75}
body.st .st-banner h2{font-size:32px;font-weight:600;letter-spacing:-.03em;margin:8px 0 6px}
body.st .st-banner p{opacity:.78;font-size:14px}
body.st .st-bn{display:flex;gap:40px}
body.st .st-bn div{display:flex;flex-direction:column}
body.st .st-bn b{font-size:40px;font-weight:400;letter-spacing:-.03em;line-height:1}
body.st .st-bn span{font-size:12.5px;opacity:.8;margin-top:8px}

/* ---------- Pills, segments, filters ---------- */
body.st .st-filterbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:4px 0 18px;background:var(--st-card);border-radius:22px;padding:10px}
body.st .st-seg{display:flex;gap:2px;background:var(--st-soft);border-radius:999px;padding:4px;flex-wrap:wrap}
body.st .st-seg button{border:0;background:none;padding:8px 16px;border-radius:999px;font:inherit;font-size:13px;color:var(--st-muted);min-height:36px}
body.st .st-seg button:hover{color:var(--st-ink)}
body.st .st-seg button.on{background:var(--brand);color:#fff}
body.st .seg{background:var(--st-soft)!important;border:0!important;border-radius:999px!important;padding:4px;box-shadow:none!important;gap:2px;overflow:visible}
body.st .seg button{border-radius:999px!important;font-weight:500!important;font-size:12.5px!important}
body.st .seg button.active{background:var(--brand)!important;color:#fff!important}
body.st .pill{border-radius:999px!important;font-weight:600!important;font-size:11px!important;padding:4px 11px!important;box-shadow:none!important;letter-spacing:0!important}
body.st .fchip,body.st .tbtn{border-radius:999px!important}

/* ---------- Forms ---------- */
body.st input:not([type=checkbox]):not([type=radio]):not([type=color]),body.st select,body.st textarea,body.st .ms-trigger{
  background:var(--st-soft)!important;border:1px solid transparent!important;border-radius:14px!important;color:var(--st-ink)!important;box-shadow:none!important
}
body.st input:focus,body.st select:focus,body.st textarea:focus{border-color:color-mix(in srgb,var(--brand2) 55%,transparent)!important;background:var(--st-card)!important}
body.st .toolbar select,body.st .panel select{border-radius:999px!important;background-color:var(--st-card)!important;border:1px solid var(--st-line)!important}
body.st label{font-size:12px!important;font-weight:500!important;text-transform:none!important;letter-spacing:0!important;color:var(--st-ink)!important}
body.st input[type=checkbox]{accent-color:var(--brand2)}

/* ---------- Tables ---------- */
body.st .table-wrapper{background:var(--st-card);border-radius:var(--st-r);border:0!important;box-shadow:var(--st-shadow)!important;padding:6px}
body.st table{background:transparent!important}
body.st table thead tr{background:transparent!important;backdrop-filter:none!important}
body.st th{background:var(--st-soft)!important;color:var(--st-muted)!important;font-size:12.5px!important;font-weight:500!important;text-transform:none!important;letter-spacing:0!important;padding:16px 14px!important;border:0!important}
body.st thead th:first-child{border-radius:18px 0 0 18px}
body.st thead th:last-child{border-radius:0 18px 18px 0}
body.st td{border-bottom:1px solid var(--st-line)!important;padding:16px 14px!important;font-size:13.5px!important;background:transparent!important}
body.st tbody tr:last-child td{border-bottom:0!important}
body.st tbody tr:hover td{background:color-mix(in srgb,var(--st-soft) 70%,transparent)!important}
body.st .td-id,body.st td .td-id{color:var(--brand2)!important;font-weight:500!important}

/* ---------- Lists, misc ---------- */
body.st .mini-i{background:var(--st-soft)!important;border-radius:16px!important;border:0!important;box-shadow:none!important}
body.st .mini-i:hover{background:var(--st-soft2)!important}
body.st .post-summary{background:transparent!important;border-radius:0!important;border-bottom:1px solid var(--st-line)!important}
body.st .empty{color:var(--st-muted)}
body.st .hint{color:var(--st-muted)}
body.st .cli-card{padding:22px!important;border:1px solid var(--st-line)!important}
body.st .cli-card .cli-logo{background:var(--st-hero)!important;color:#fff!important;border-radius:14px!important;box-shadow:0 0 0 2px var(--st-card),0 0 0 3.5px var(--brand2)!important}
body.st .cli-card .cli-edit{border-radius:999px!important;background:var(--st-soft)!important;border:0!important}
body.st .adm-item{background:var(--st-soft)!important;border:0!important;border-radius:18px!important}
body.st .wc-panel{background:var(--st-card)!important}

/* ---------- Calendar ---------- */
body.st .cal-grid-wrapper{border-radius:var(--st-r)!important;background:var(--st-card)!important;border:0!important;box-shadow:none!important;overflow:hidden}
body.st .cal-grid .dow{background:transparent!important;color:var(--st-muted)!important;font-weight:500!important;text-transform:none!important;box-shadow:none!important}
body.st .cal-grid .day{background:var(--st-card)!important;border-color:var(--st-line)!important;box-shadow:none!important}
body.st .cal-grid .day.today,body.st .day.today{box-shadow:inset 0 0 0 2px var(--brand2)!important}

/* ---------- Modals ---------- */
body.st .overlay{background:rgba(25,18,12,.45)!important;backdrop-filter:blur(3px)}
body.st .modal{background:var(--st-card)!important;border:0!important;border-radius:28px!important;overflow:hidden;backdrop-filter:none!important}
body.st .modal-h{background:var(--st-hero)!important;color:#fff!important;border-radius:0!important;padding:22px 26px!important}
body.st .modal-h h2{font-size:22px!important;font-weight:600!important;letter-spacing:-.02em;color:#fff!important}
body.st .mbody{padding:24px 26px!important;gap:16px!important}
body.st .mfoot{background:var(--st-card)!important;border-top:1px solid var(--st-line)!important;padding:16px 26px!important}
body.st .editor-section{border:1px solid var(--st-line)!important;border-radius:18px!important}

/* ---------- Login ---------- */
body.st #loginOverlay{background:var(--st-page)!important}
body.st .login-card{border-radius:28px!important;box-shadow:0 30px 60px -30px rgba(40,25,10,.35)!important}
body.st .login-card h2{font-size:30px!important;font-weight:500!important;letter-spacing:-.03em}

/* ---------- Dark mode niceties ---------- */
body.st.dark .btn-line{border-color:var(--st-line)!important}
body.st.dark .st-bar.b-not{background:var(--st-ink);color:#1a1715}
body.st.dark .st-go{border-color:var(--st-line)}

/* ---------- Responsive ---------- */
@media (max-width:1280px){
  body.st .st-cards.st-four{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.st .st-grid-cdash{grid-template-columns:1fr}
  body.st .st-big b{font-size:48px}
}
@media (max-width:860px){
  body.st .app{padding:0;gap:0}
  body.st .sidebar{height:100vh!important;top:0!important;border-radius:0 var(--st-r) var(--st-r) 0;position:fixed!important}
  body.st .topbar{border-radius:0 0 20px 20px;top:0;min-height:0}
  body.st .main{gap:8px}
  body.st .content{border-radius:20px 20px 0 0;padding:20px 14px 90px!important}
  body.st .st-pbars{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.st .st-strip{gap:16px}
  body.st .st-big{gap:20px}
}
@media (max-width:600px){
  body.st .st-cards.st-four,body.st .work-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.st .kpi{min-height:128px;padding:18px!important}
  body.st .kpi .kv{font-size:38px!important}
  body.st .st-head h1{font-size:30px}
  body.st .st-head-act{width:100%}
  body.st .st-head-act .btn{flex:1}
  body.st .st-bars{flex-wrap:wrap}
  body.st .st-bar{flex:1 1 40%!important}
  body.st .st-pillwrap{height:100px}
  body.st .st-banner{padding:22px}
}
@media (prefers-reduced-motion:reduce){body.st *{animation:none!important;transition:none!important}}

/* ---------- Fixes after first visual pass ---------- */
body.st .content{background:var(--st-canvas)!important}
body.st .topbar h1,body.st .topbar h1#pageTitle{display:none!important}
body.st #clock-widget .clk-btn-in,body.st #clock-widget .clk-btn-break{color:var(--brand)!important;background:#fff!important;border:0!important;text-shadow:none!important}
body.st #clock-widget .clk-btn-out{color:#fff!important;background:rgba(255,255,255,.16)!important}
body.st #clock-widget .clk-wrap{box-shadow:0 8px 18px -10px var(--brand)!important}
body.st #clock-widget .clk-live{text-shadow:none!important}
body.st .asp-wrap{background:var(--st-card)!important;border:1px solid var(--st-line)!important;border-radius:999px!important;padding:8px 14px!important;backdrop-filter:none!important}
body.st .asp-trigger{color:var(--st-ink)!important;font-weight:600!important;font-size:12px!important}
body.st .asp-panel{background:var(--st-card)!important;border:1px solid var(--st-line)!important;box-shadow:0 20px 40px -18px rgba(40,25,10,.4)!important;border-radius:18px!important;backdrop-filter:none!important}
body.st .asp-name{color:var(--st-ink)!important}
body.st .asp-time{color:var(--st-muted)!important}
body.st .search input{background:none!important;border:0!important;min-height:0!important;padding:4px 0!important}
body.st tbody tr{background:transparent!important}

body.st .pf-seg-btns{border-radius:999px!important;overflow:hidden}
body.st .pf-stat{border-radius:18px!important;background:var(--st-soft)!important;border:0!important}
body.st .side-nav .nav-i{min-height:40px;padding:9px 12px!important}
body.st .st-group{padding:12px 12px 4px}

/* ---------- Pass 2 ---------- */
body.st{--st-mid:var(--chosen-secondary,var(--brand2))}
body.st .nav-i .ct{background:var(--st-mid)!important}
body.st .st-pillbar,body.st .st-track i.d{background:var(--st-mid)}
body.st .st-track i.s{background:repeating-linear-gradient(-45deg,var(--st-mid) 0 3px,transparent 3px 7px)}
body.st .logo{color:var(--st-ink)!important;border-color:color-mix(in srgb,var(--st-ink) 70%,transparent)}
body.st .asp-trigger *{color:var(--st-ink)!important}
body.st .adm-tabs{display:inline-flex;gap:4px;background:var(--st-card);border-radius:999px;padding:5px;border:1px solid var(--st-line);margin-bottom:12px;flex-wrap:wrap}
body.st .adm-tab{border:0!important;background:none!important;color:var(--st-muted)!important;border-radius:999px!important;padding:10px 22px!important;font:inherit!important;font-weight:500!important;font-size:14px!important;box-shadow:none!important;min-height:40px}
body.st .adm-tab.on{background:var(--st-hero)!important;color:#fff!important}
body.st .adm-sub{color:var(--st-muted);border:0!important;font-size:13px;margin-bottom:16px}
body.st .overlay{backdrop-filter:blur(2px)!important}
body.st .pf-seg-btns{border:1px solid var(--st-line)!important;border-radius:999px!important;padding:3px;background:var(--st-card)}
body.st .pf-seg-btns button{border:0!important;border-radius:999px!important;background:none!important}
body.st .pf-seg-btns button.on{background:var(--brand)!important;color:#fff!important}
body.st .pf-chip{border-radius:999px!important}
body.st .pf-chip.on{background:var(--c,var(--brand))!important;border-color:var(--c,var(--brand))!important;color:#fff!important}
/* World clocks: calm neutral tiles */
body.st .wc-card{background:var(--st-soft)!important;border:0!important;box-shadow:none!important;border-radius:20px!important}
body.st .wc-card::before,body.st .wc-card::after{display:none!important}
body.st .wc-digital{font-weight:500!important;letter-spacing:-.03em}
body.st .wc-zone{background:var(--brand)!important;color:#fff!important}
body.st .wc-swap,body.st .wc-open{border-radius:999px!important;background:var(--st-card)!important;border:1px solid var(--st-line)!important}
body.st .due-badge{border-radius:999px!important;padding:4px 12px!important;white-space:nowrap;font-size:11px!important}

/* =================== v152: Dashboard =================== */
body.st .st-bar.b-track{flex:1 1 auto;background:var(--st-soft2);padding:0;overflow:visible}
body.st .st-bar.b-track i{display:flex;align-items:center;height:100%;padding:0 14px;border-radius:999px;background:#4B5160;color:#fff;font-style:normal;min-width:46px}
body.st .st-bar.b-prog,body.st .st-bar.b-rev,body.st .st-bar.b-done{flex:0 0 100px;justify-content:center;padding:0}
body.st .st-bar.b-prog{background:#3159C9;color:#fff}
body.st .st-bar.b-rev{background:#6A3BD0;color:#fff;border:0}
body.st .st-bar.b-done{background:var(--st-mid);color:#fff;border:0}
body.st .st-dgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:16px}
body.st .st-dgrid>.panel{margin:0;min-height:300px;display:flex;flex-direction:column}
body.st .st-a-week{grid-column:span 2}
body.st .st-a-plan{grid-column:4;grid-row:span 2}
body.st .st-a-week .st-pills{flex:1;align-items:end}
body.st .st-a-week .st-pillwrap{height:120px}
body.st .st-a-week .st-pillbar.empty{width:min(72px,86%)}
body.st .st-rem-big{font-size:26px;font-weight:500;letter-spacing:-.02em;margin:6px 0 10px;color:var(--st-ink)}
body.st .st-rem-big.muted{color:var(--st-muted)}
body.st .st-rem-t{font-size:15px;margin-bottom:8px}
body.st .st-rem-btn{margin-top:auto;width:100%;min-height:48px;gap:8px}
body.st .st-rem-btn svg{width:16px;height:16px}
body.st .st-go.sm{position:static;width:34px;height:34px;background:none;flex:0 0 auto}
body.st .st-plan-list{display:flex;flex-direction:column;gap:2px;margin-bottom:12px;overflow:auto;max-height:420px}
body.st .st-plan-i{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.12)}
body.st .st-plan-ic{width:32px;height:32px;border-radius:50%;background:#fff;color:var(--brand);display:flex;align-items:center;justify-content:center;flex:0 0 32px}
body.st .st-plan-ic svg{width:15px;height:15px}
body.st .st-plan-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
body.st .st-plan-tx b{font-weight:500;font-size:14px;overflow-wrap:anywhere}
body.st .st-plan-tx small{font-size:11.5px;color:rgba(255,255,255,.6)}
body.st .st-plan-i.done .st-plan-tx b{text-decoration:line-through;opacity:.6}
body.st .st-plan-e{border:1px solid rgba(255,255,255,.4);background:none;color:#fff;border-radius:999px;font-size:11px;padding:4px 10px;font-family:inherit}
body.st .st-plan-x{border:0;background:none;color:rgba(255,255,255,.7);font-size:18px;padding:0 4px}
body.st .st-plan-c{width:26px;height:26px;border-radius:50%;border:0;background:rgba(255,255,255,.22);color:#fff;font-size:13px;flex:0 0 26px}
body.st .st-plan-i.done .st-plan-c{background:#fff;color:var(--brand)}
body.st .st-plan-ed,body.st .st-plan-edt{flex:1;min-height:36px!important;border-radius:999px!important;background:rgba(255,255,255,.14)!important;color:#fff!important;border:0!important;padding:0 12px!important}
body.st .st-plan-edt{flex:0 0 110px;color-scheme:dark}
body.st .st-plan-ok{border:0;border-radius:999px;background:#fff;color:var(--brand);padding:8px 14px;font-weight:600;font-family:inherit}
body.st .st-plan-add{margin-top:auto}
body.st .st-plan-in{display:flex;gap:6px;align-items:center;border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:5px}
body.st .st-plan-in input{min-height:38px!important;border-radius:999px!important;background:rgba(255,255,255,.1)!important;border:0!important;color:#fff!important;padding:0 14px!important}
body.st .st-plan-in input::placeholder{color:rgba(255,255,255,.6)}
body.st .st-plan-in input#stPlanTxt{flex:1;min-width:0}
body.st .st-plan-in input#stPlanTime{flex:0 0 104px;width:104px;padding:0 8px!important;color-scheme:dark}
body.st .st-plan-in button{width:38px;height:38px;border-radius:50%;border:0;background:#fff;color:var(--brand);font-size:20px;flex:0 0 38px}
body.st .st-plan-add .st-dsub{margin:8px 0 0 6px}
body.st .st-avg{display:flex;align-items:center;gap:12px;margin-bottom:10px}
body.st .st-avg b{font-size:34px;font-weight:300;letter-spacing:-.04em}
body.st .st-avg span{font-size:11.5px;color:var(--st-muted);line-height:1.3}
body.st .st-vbars{flex:1;display:grid;grid-template-columns:repeat(7,1fr);gap:6px;align-items:end;min-height:140px}
body.st .st-vb{display:flex;flex-direction:column;align-items:center;gap:8px;height:100%}
body.st .st-vtrack{flex:1;width:6px;position:relative;display:flex;align-items:flex-end;background:repeating-linear-gradient(to bottom,var(--st-line) 0 3px,transparent 3px 7px);border-radius:3px;min-height:110px}
body.st .st-vtrack i{display:block;width:100%;background:var(--st-mid);border-radius:3px;position:relative;z-index:1}
body.st .st-vtrack em{position:absolute;bottom:-8px;left:50%;width:6px;height:6px;border-radius:50%;background:var(--st-ink);transform:translateX(-50%)}
body.st .st-vb span{font-size:11px;color:var(--st-muted);margin-top:6px}
body.st .st-vb.today span{color:var(--st-ink);font-weight:700}
body.st .st-ring{position:relative;width:min(200px,100%);margin:0 auto}
body.st .st-ring svg{width:100%;display:block}
body.st .st-ring .ticks line{stroke:var(--st-muted);stroke-width:1;opacity:.45}
body.st .st-ring .bg{fill:none;stroke:var(--st-soft2);stroke-width:14}
body.st .st-ring .fg{fill:none;stroke:var(--st-mid);stroke-width:14;stroke-linecap:round}
body.st .st-ring .dot{fill:var(--st-ink)}
body.st .st-ring-c{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
body.st .st-ring-c b{font-size:32px;font-weight:500;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
body.st .st-st{font-size:11.5px;color:var(--st-muted);display:flex;align-items:center;gap:5px}
body.st .st-st i{width:7px;height:7px;border-radius:50%;background:var(--st-muted)}
body.st .st-st.in i{background:#2E9B57}
body.st .st-st.break i{background:#D69A2D}
body.st .st-tfoot{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:12px;gap:8px}
body.st .st-tbtns{display:flex;align-items:center;gap:8px}
body.st .st-tbtn{width:44px;height:44px;border-radius:50%;border:1px solid var(--st-line);background:var(--st-card);color:var(--st-ink);font-size:13px}
body.st .st-tbtn.go{background:var(--st-hero);color:#fff;border:0}
body.st .st-tbtn.stop{width:54px;height:54px;background:#B9B5AF;color:#fff;border:0}
body.st .st-tlbl{font-size:13px;font-weight:500}
body.st .st-gauge{position:relative;margin:auto 0 0}
body.st .st-gauge svg{width:100%;display:block;color:var(--st-line)}
body.st .st-gauge .bg{fill:none;stroke:url(#stHatch);stroke-width:30}
body.st .st-gauge .fg{fill:none;stroke:var(--brand);stroke-width:30;stroke-linecap:round}
body.st .st-gauge-c{position:absolute;left:0;right:0;bottom:4px;text-align:center}
body.st .st-gauge-c b{display:block;font-size:40px;font-weight:400;letter-spacing:-.04em;line-height:1}
body.st .st-gauge-c span{font-size:11.5px;color:var(--st-muted)}
body.st .st-gleg{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;font-size:12px;margin-top:14px}
body.st .st-gleg span{display:flex;align-items:center;gap:5px}
body.st .st-gleg i{width:9px;height:9px;border-radius:50%;background:var(--brand)}
body.st .st-gleg i.p{background:var(--accent)}
body.st .st-gleg i.h{border-radius:2px;background:repeating-linear-gradient(45deg,var(--st-muted) 0 1px,transparent 1px 3px)}
body.st .wc-panel h3{margin-bottom:2px!important}
body.st .st-wc-sub{margin-bottom:16px;font-size:13px}

/* =================== v152: Analytics =================== */
body.st .an-top{display:flex;justify-content:flex-end;margin:-6px 0 16px}
body.st .an-top .st-seg{background:var(--st-card);border:1px solid var(--st-line)}
body.st .an-k{min-height:190px!important;padding-bottom:0!important;overflow:hidden;cursor:default}
body.st .an-k .kv{padding-top:14px!important}
body.st .an-dl{font-size:12px;color:var(--st-muted);margin:8px 0 6px}
body.st .an-d{font-weight:600}
body.st .an-d.up{color:#2E7D4F}
body.st .an-d.down{color:#B4412C}
body.st .an-d.flat{color:var(--st-muted);font-weight:500}
body.st .an-spark{width:calc(100% + 48px);margin:0 -24px;height:46px;display:block;margin-top:auto}
body.st .an-spark .l{fill:none;stroke-width:1.6;vector-effect:non-scaling-stroke}
body.st .an-spark.good .l{stroke:#3E7A55}.an-spark.good .a{fill:rgba(62,122,85,.12)}
body.st .an-spark.bad .l{stroke:#B4412C}.an-spark.bad .a{fill:rgba(180,65,44,.12)}
body.st .an-info{padding:14px 22px!important}
body.st .an-info summary{font-size:13.5px!important;font-weight:600!important;color:var(--st-mid)}
body.st .an-info ul{margin:10px 0 4px 18px;display:grid;gap:6px;font-size:13px;color:var(--st-muted)}
body.st .an-info b{color:var(--st-ink)}
body.st .an-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,1fr);gap:16px;align-items:start;margin-bottom:8px}
body.st .an-grid>div{min-width:0}
body.st .an-line{width:100%;height:auto;display:block}
body.st .an-line .g line{stroke:var(--st-line)}
body.st .an-line .t text{fill:var(--st-muted);font-size:11px}
body.st .an-line .cur{fill:none;stroke:var(--st-mid);stroke-width:2.2;stroke-linejoin:round}
body.st .an-line .area{fill:color-mix(in srgb,var(--st-mid) 12%,transparent)}
body.st .an-line .prev{fill:none;stroke:var(--st-muted);stroke-width:1.6;stroke-dasharray:4 4;opacity:.7}
body.st .an-line .hit{fill:transparent}
body.st .an-line .hit:hover{fill:var(--st-mid);fill-opacity:.25}
body.st .an-leg{display:flex;gap:18px;font-size:12.5px;color:var(--st-muted);margin-top:8px}
body.st .an-leg span{display:flex;align-items:center;gap:6px}
body.st .an-leg b{color:var(--st-ink)}
body.st .an-leg i{width:16px;height:3px;border-radius:2px;background:var(--st-mid)}
body.st .an-leg i.p{background:repeating-linear-gradient(90deg,var(--st-muted) 0 4px,transparent 4px 7px)}
body.st .an-donut{position:relative;width:150px;margin:4px auto 16px}
body.st .an-donut svg{width:100%;display:block}
body.st .an-dc{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
body.st .an-dc b{font-size:24px;font-weight:500}
body.st .an-dc span{font-size:11px;color:var(--st-muted)}
body.st .an-list div{display:flex;align-items:center;gap:10px;padding:8px 0;font-size:13.5px}
body.st .an-list i{width:9px;height:9px;border-radius:3px}
body.st .an-list span{flex:1}
body.st .an-rank{display:flex;align-items:center;gap:12px;padding:10px 0}
body.st .an-av{width:32px;height:32px;border-radius:50%;flex:0 0 32px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;color:var(--c);background:color-mix(in srgb,var(--c) 18%,var(--st-card))}
body.st .an-rank>b{flex:0 0 32%;font-weight:600;font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.st .an-bar{flex:1;height:7px;border-radius:999px;background:var(--st-soft2);overflow:hidden}
body.st .an-bar i{display:block;height:100%;border-radius:999px;background:var(--st-mid)}
body.st .an-rank>em{font-style:normal;font-weight:600;font-size:13px;min-width:28px;text-align:right}
body.st .an-rank.big{padding:12px 0;border-bottom:1px solid var(--st-line)}
body.st .an-rank.big:last-child{border-bottom:0}
body.st .an-no{width:16px;color:var(--st-muted);font-size:13px}
body.st .an-who{flex:0 0 42%;min-width:0;display:flex;flex-direction:column;gap:2px}
body.st .an-who b{font-size:13.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.st .an-who small{font-size:11.5px;color:var(--st-muted)}
body.st .an-who em{font-style:normal;color:#B4412C}
body.st .an-pct{font-weight:700!important}
body.st .an-h2{font-size:26px;font-weight:500;letter-spacing:-.03em;margin:22px 0 14px}
body.st .an-perf>.panel{margin:0}

@media (max-width:1280px){
  body.st .st-dgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.st .st-a-plan{grid-column:auto;grid-row:auto}
  body.st .an-grid{grid-template-columns:1fr}
}
@media (max-width:860px){
  body.st .st-bar.b-prog,body.st .st-bar.b-rev,body.st .st-bar.b-done{flex:1 1 30%}
  body.st .st-bar.b-track{flex:1 1 100%}
}
@media (max-width:600px){
  body.st .st-dgrid{grid-template-columns:1fr}
  body.st .st-a-week{grid-column:auto}
  body.st .an-who{flex-basis:46%}
}
body.st .st-plan-in input#stPlanTime{flex:0 0 88px;width:88px;font-size:12px}
body.st .st-plan-in input#stPlanTxt{flex:1 1 auto;min-width:90px}

/* =================== v152: Status colours on work lists =================== */
/* Summary cards: dot + label in the status colour, thin colour rule at the bottom */
body.st .kpi.st-sc .kt{display:flex;align-items:center;gap:8px}
body.st .kpi.st-sc .kt::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--sc);flex:0 0 9px}
body.st .kpi.st-sc{box-shadow:inset 0 -4px 0 var(--sc),var(--st-shadow)!important}
body.st .kpi.st-sc .kv{color:var(--st-ink)!important}
body.st .kpi.st-sc.selected{box-shadow:inset 0 0 0 2px var(--sc),inset 0 -4px 0 var(--sc)!important;background:color-mix(in srgb,var(--sc) 6%,var(--st-card))!important}
/* Filter pills */
body.st .st-seg .st-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--sc);margin-right:7px;vertical-align:1px}
body.st .st-seg button.on[style*="--sc"]{background:var(--sc);color:#fff}
body.st .st-seg button.on .st-dot{background:#fff}
/* Status badges: soft tint of the status colour */
body.st .pill.st-spill{background:color-mix(in srgb,var(--sc) 14%,var(--st-card))!important;color:color-mix(in srgb,var(--sc) 82%,var(--st-ink))!important;border:0!important;display:inline-flex;align-items:center;gap:6px}
body.st .pill.st-spill::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--sc);flex:0 0 6px}
body.st.dark .pill.st-spill{color:color-mix(in srgb,var(--sc) 70%,white)!important;background:color-mix(in srgb,var(--sc) 22%,var(--st-card))!important}
/* Rows: a colour stripe down the left edge, separating statuses at a glance */
body.st tr.st-srow td:first-child{box-shadow:inset 4px 0 0 var(--sc)}
body.st tr.st-srow:hover td{background:color-mix(in srgb,var(--sc) 6%,transparent)!important}
/* Calmer rows: lighter type pills, ghost comment link, quieter meta */
body.st td .pill:not(.st-spill){background:var(--st-soft)!important;color:var(--st-muted)!important;border:0!important}
body.st td div[onclick^="editTaskComment"]{background:none!important;border-left:0!important;padding:2px 0 0!important;margin-top:4px!important;color:var(--st-muted)!important}
body.st td div[onclick^="editTaskComment"] span[style*="italic"]{color:var(--st-muted)!important;font-style:normal!important;font-size:11.5px}
body.st td div[onclick^="editTaskComment"] span[style*="italic"]::before{content:"+ "}
body.st td div[onclick^="editTaskComment"]:hover span{color:var(--st-mid)!important}
body.st td{vertical-align:middle}
body.st .td-h{font-weight:500!important;font-size:14px!important}
/* Recurring cards */
body.st .rc-card{background:var(--st-card)!important;border:0!important;border-radius:var(--st-r)!important;box-shadow:var(--st-shadow)!important;padding:20px 22px!important}
body.st .rc-strip,body.st .rc-head{border-radius:20px!important}
body.st .dchip{border-radius:14px!important;background:var(--st-soft)!important;border:1px solid transparent!important;color:var(--st-muted)!important;box-shadow:none!important;background-image:none!important}
body.st .dchip.done{background:#2E8B57!important;color:#fff!important}
body.st .dchip.today{border-color:var(--st-ink)!important}
body.st .dchip.done.today{box-shadow:0 0 0 2px var(--st-card),0 0 0 3.5px #2E8B57!important;border-color:transparent!important}
body.st .rc-streak{background:color-mix(in srgb,#D2912A 16%,var(--st-card))!important;color:#9A6516!important;border:0!important}
body.st .rc-freq,body.st .rc-flag{border-radius:999px!important}
body.st .rc-seg button.on,body.st .rc-seg button.active{background:var(--brand)!important;color:#fff!important}
/* Pending: per-person heading & chips */
body.st .who-row button,body.st .who-row .fchip{border-radius:999px!important}

/* =================== v152: Task calendar =================== */
body.st .st-cal{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start}
body.st .st-calmain{padding:22px!important;margin:0}
body.st .st-calbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}
body.st .st-calbar h2{font-size:22px;font-weight:600;letter-spacing:-.02em;min-width:170px;text-align:center}
body.st .st-circ{width:38px;height:38px;border-radius:50%;border:0;background:var(--st-soft);color:var(--st-ink);font-size:11px}
body.st .st-circ:hover{background:var(--st-soft2)}
body.st .st-calq{display:flex;align-items:center;gap:6px;background:var(--st-soft);border-radius:999px;padding:0 6px 0 14px;color:var(--st-muted);font-size:15px!important;font-weight:400!important}
body.st .st-calq input{background:none!important;border:0!important;min-height:38px!important;width:160px;padding:0 8px!important}
body.st .st-tog{border:1px solid var(--st-line);background:var(--st-card);color:var(--st-muted);border-radius:999px;padding:0 14px;min-height:38px;font:inherit;font-size:13px;font-weight:500}
body.st .st-tog.on{background:var(--st-ink);color:var(--st-card);border-color:var(--st-ink)}
body.st .st-calgrid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
body.st .st-dow{font-size:11.5px;font-weight:600;letter-spacing:.8px;text-transform:uppercase;color:var(--st-muted);padding:4px 6px}
body.st .st-day{min-height:104px;background:var(--st-soft);border-radius:16px;padding:8px;display:flex;flex-direction:column;gap:4px;cursor:pointer;border:1.5px solid transparent;min-width:0;transition:background .12s}
body.st .st-day:hover{background:var(--st-soft2)}
body.st .st-day.blank{background:none;cursor:default}
body.st .st-day.today .st-dn{color:var(--st-mid)}
body.st .st-day.today{border-color:color-mix(in srgb,var(--st-mid) 45%,transparent)}
body.st .st-day.sel{background:var(--st-card);border-color:var(--st-ink);box-shadow:0 8px 20px -14px rgba(0,0,0,.4)}
body.st .st-day.drop-hl{border-color:var(--st-mid);border-style:dashed}
body.st .st-dh{display:flex;justify-content:space-between;align-items:center;margin-bottom:2px}
body.st .st-dn{font-size:13.5px;font-weight:600}
body.st .st-dc{font-size:10.5px;min-width:20px;height:20px;border-radius:999px;background:var(--st-soft2);color:var(--st-muted);display:inline-flex;align-items:center;justify-content:center;padding:0 6px;font-weight:600}
body.st .st-day.sel .st-dc{background:var(--st-ink);color:var(--st-card)}
body.st .st-chip{font-size:11px;font-weight:500;line-height:1.2;padding:5px 9px;border-radius:999px;background:var(--sc);color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
body.st .st-chip.post{border-radius:8px}
body.st .st-chip:hover{filter:brightness(1.08)}
body.st .st-chip.dragging{opacity:.4}
body.st .st-more{font-size:11px;color:var(--st-muted);padding-left:4px}
body.st .st-calleg{display:flex;gap:14px;flex-wrap:wrap;align-items:center;font-size:12px;color:var(--st-muted);margin-top:14px}
body.st .st-calleg span{display:flex;align-items:center;gap:6px}
body.st .st-calleg i{width:9px;height:9px;border-radius:3px}
body.st .st-calleg .hint{margin-left:auto;font-size:11.5px}
body.st .st-calside{display:flex;flex-direction:column;gap:16px;position:sticky;top:100px}
body.st .st-calside .panel{margin:0;padding:22px!important}
body.st .st-eyebrow{font-size:10.5px;font-weight:600;letter-spacing:1.2px;text-transform:uppercase;color:var(--st-muted)}
body.st .st-calday h3{font-size:24px!important;margin:4px 0 14px!important}
body.st .st-srow-i{width:100%;display:flex;align-items:center;gap:12px;text-align:left;border:0;background:var(--st-soft);border-radius:16px;padding:12px 14px;margin-bottom:8px;font:inherit;color:var(--st-ink);box-shadow:inset 4px 0 0 var(--sc)}
body.st .st-srow-i:hover{background:var(--st-soft2)}
body.st .st-srow-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
body.st .st-srow-t b{font-size:13.5px;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.st .st-srow-t small{font-size:11.5px;color:var(--st-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.st .st-dbadge{flex:0 0 44px;height:48px;border-radius:12px;background:var(--st-card);display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}
body.st .st-dbadge small{font-size:9.5px;font-weight:700;color:var(--st-muted);letter-spacing:.6px}
body.st .st-dbadge b{font-size:18px;font-weight:600;margin-top:3px}
body.st .st-srow-i .pill{flex:0 0 auto}
body.st .st-calsoon .st-srow-i .pill{display:none}
body.st .st-none{padding:6px 0 12px}
body.st .st-addday{width:100%;margin-top:4px;min-height:42px}
@media (max-width:1180px){
  body.st .st-cal{grid-template-columns:1fr}
  body.st .st-calside{position:static;display:grid;grid-template-columns:1fr 1fr}
}
@media (max-width:700px){
  body.st .st-calside{grid-template-columns:1fr}
  body.st .st-calgrid{gap:4px}
  body.st .st-day{min-height:58px;padding:5px;border-radius:12px}
  body.st .st-chip{display:none}
  body.st .st-day.has::after{content:"";width:6px;height:6px;border-radius:50%;background:var(--st-mid);margin:auto auto 2px}
  body.st .st-dc{display:none}
  body.st .st-calbar h2{min-width:0;font-size:18px}
  body.st .st-calq{flex:1 1 100%}
  body.st .st-calq input{width:100%}
  body.st .st-calleg .hint{margin-left:0}
}

/* =================== v152: Attendance =================== */
/* The attendance grid keeps its own compact cells (the generic table styles above don't apply) */
body.st table.att-table th,body.st table.att-table td{padding:0!important;font-size:11px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;text-transform:none!important;letter-spacing:0!important}
body.st table.att-table thead th:first-child,body.st table.att-table thead th:last-child{border-radius:0!important}
body.st table.att-table tbody tr:hover td:not(.att-name):not(.att-rowlbl):not(.att-c){background:transparent!important}
body.st .att-table .att-name-h{text-align:left!important;padding:8px 12px!important;color:var(--st-muted)!important;font-weight:500!important;font-size:12px!important;background:var(--st-card)!important}
body.st .att-table .att-dh{padding:6px 0!important;color:var(--st-muted)!important;font-weight:500!important;font-size:10px!important;line-height:1.3!important;white-space:nowrap;border-radius:10px!important}
body.st .att-table .att-dh.we{opacity:.55}
body.st .att-table .att-dh.today{background:var(--st-ink)!important;color:var(--st-card)!important;opacity:1}
body.st .att-table .att-dh.tot{color:var(--st-ink)!important;font-weight:600!important}
body.st .att-table .att-name{padding:0 14px!important;font-size:13.5px!important;font-weight:600!important;background:var(--st-card)!important;border-right:1px solid var(--st-line)!important;color:var(--st-ink)!important}
body.st .att-table .att-rowlbl,body.st .att-table .att-rowh{background:var(--st-card)!important;color:var(--st-muted)!important;font-size:10px!important;font-weight:600!important;letter-spacing:.6px!important;text-transform:uppercase!important;padding-right:8px!important}
body.st .att-table .att-r1 td{border-top:0!important}
body.st .att-table .att-r1 td.att-name{border-top:1px solid var(--st-line)!important}
body.st .att-table .att-c{height:30px;line-height:30px;border-radius:9px!important;background:var(--st-soft)!important;color:var(--st-muted)!important;font-weight:600!important;font-size:11.5px!important;transition:transform .1s}
body.st .att-table .att-c.we{background:color-mix(in srgb,var(--st-soft2) 70%,transparent)!important}
body.st .att-c.s-P,body.st .att-table .att-c.s-P,body.st .att-table .att-c.s-P.we{background:#2E8B57!important;color:#fff!important}
body.st .att-c.s-H,body.st .att-table .att-c.s-H,body.st .att-table .att-c.s-H.we{background:#D2912A!important;color:#fff!important}
body.st .att-c.s-L,body.st .att-table .att-c.s-L,body.st .att-table .att-c.s-L.we{background:#3B6FD8!important;color:#fff!important}
body.st .att-c.s-S,body.st .att-table .att-c.s-S,body.st .att-table .att-c.s-S.we{background:#7A5AD1!important;color:#fff!important}
body.st .att-c.s-A,body.st .att-table .att-c.s-A,body.st .att-table .att-c.s-A.we{background:#C8553D!important;color:#fff!important}
body.st .att-table .att-c.today,body.st .att-table .hrs-cell.today{outline:2px solid var(--st-ink)!important;outline-offset:-2px}
body.st .att-table .hrs-cell{height:26px;line-height:26px;font-size:11px!important;color:var(--st-muted)!important;border-radius:8px!important;cursor:pointer}
body.st .att-table .hrs-cell.has{color:var(--st-ink)!important;font-weight:500!important}
body.st .att-table .hrs-cell:hover{background:var(--st-soft)!important}
body.st .att-table .att-tot{font-size:12.5px!important;font-weight:600!important;color:var(--st-ink)!important;padding:0 8px!important}
body.st .att-table .att-tot.days{color:#2E8B57!important}
body.st .att-table .att-band td:not(.att-c):not(.att-name):not(.att-rowlbl){background:transparent!important}
body.st .att-table tr.att-r2 td{padding-bottom:6px!important}
body.st .st-attscroll{padding:0!important;margin:0!important;overflow-x:auto;border:0!important;box-shadow:none!important;background:none!important}
body.st .st-attbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:14px 18px!important}
body.st .st-keys{display:flex;gap:12px;flex-wrap:wrap}
body.st .st-key{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--st-muted)}
body.st .st-key .att-c{display:inline-flex;width:22px;height:22px;align-items:center;justify-content:center;border-radius:7px;font-size:11px;font-weight:600;cursor:default}
body.st .st-flat{box-shadow:none!important;padding:0!important}
body.st .st-sum{min-width:760px}
body.st .st-sum .n,body.st .sal-tbl .n{text-align:right}
body.st .st-who{display:flex;align-items:center;gap:10px}
body.st .st-who span:last-child{display:flex;flex-direction:column}
body.st .st-who small{font-size:11.5px;color:var(--st-muted)}

/* =================== v152: Payroll =================== */
body.st .pay-grid{display:grid;grid-template-columns:260px minmax(0,1fr) 320px;gap:16px;align-items:start}
body.st .pay-grid>.panel{margin:0}
body.st .pay-who{width:100%;display:flex;align-items:center;gap:12px;padding:12px;border:0;border-radius:18px;background:none;text-align:left;font:inherit;color:var(--st-ink);margin-bottom:4px}
body.st .pay-who:hover{background:var(--st-soft)}
body.st .pay-who.on{background:var(--st-ink);color:var(--st-card)}
body.st .pay-who span:last-child{display:flex;flex-direction:column;min-width:0}
body.st .pay-who b{font-size:14px;font-weight:600}
body.st .pay-who small{font-size:11.5px;opacity:.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.st .pay-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:18px}
body.st .pay-net{font-size:48px;font-weight:400;letter-spacing:-.04em;line-height:1.1;margin-top:4px}
body.st .pay-net small{font-size:14px;color:var(--st-muted);letter-spacing:0;margin-left:10px}
body.st .pay-month{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--st-line);border-radius:999px;padding:4px;background:var(--st-card)}
body.st .pay-month button{width:32px;height:32px;border-radius:50%;border:0;background:none;color:var(--st-ink);font-size:16px}
body.st .pay-month button:hover{background:var(--st-soft)}
body.st .pay-month b{background:var(--st-ink);color:var(--st-card);border-radius:999px;padding:7px 16px;font-size:13px;font-weight:600}
body.st .pay-split{background:color-mix(in srgb,#D2912A 12%,var(--st-card));border-radius:14px;padding:10px 14px;font-size:12.5px;margin-bottom:16px;line-height:1.5}
body.st .pay-tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:12px}
body.st .pay-tile{border-radius:16px;padding:14px;background:color-mix(in srgb,var(--c) 12%,var(--st-card))}
body.st .pay-tile b{display:block;font-size:26px;font-weight:400}
body.st .pay-tile span{font-size:11.5px;color:var(--st-muted)}
body.st .pay-att{width:100%;display:flex;align-items:center;gap:14px;border:1.5px dashed var(--st-line);border-radius:16px;padding:14px 16px;background:none;text-align:left;font:inherit;color:var(--st-ink);margin-bottom:20px}
body.st .pay-att:hover{background:var(--st-soft)}
body.st .pay-att svg{width:18px;height:18px}
body.st .pay-att span:nth-child(2){flex:1;display:flex;flex-direction:column;gap:2px}
body.st .pay-att small{font-size:11.5px;color:var(--st-muted)}
body.st .pay-h{font-size:16px!important;margin:0 0 6px!important}
body.st .pay-line{display:flex;justify-content:space-between;padding:12px 2px;border-bottom:1px solid var(--st-line);font-size:14px}
body.st .pay-line small{font-size:11.5px;color:var(--st-muted)}
body.st .pay-total{display:flex;justify-content:space-between;align-items:center;background:var(--st-ink);color:var(--st-card);border-radius:16px;padding:16px 18px;margin-top:14px;font-size:15px}
body.st .pay-total b{font-size:22px;font-weight:600}
body.st .pay-side{text-align:left}
body.st .pay-big-av{width:84px;height:84px;border-radius:50%;margin:0 auto 10px;display:flex;align-items:center;justify-content:center;font-size:32px;font-weight:600;background:color-mix(in srgb,var(--st-mid) 18%,var(--st-card));color:var(--st-mid)}
body.st .pay-side>h3{text-align:center;margin:0!important}
body.st .pay-side>p.hint{text-align:center;margin:4px 0 14px;font-size:12.5px}
body.st .pay-row{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid var(--st-line);font-size:13px}
body.st .pay-row span{color:var(--st-muted)}
body.st .pay-row b{font-weight:600;overflow-wrap:anywhere;text-align:right}
body.st .pay-side h4{font-size:14px;font-weight:600;margin:16px 0 8px}
body.st .pay-btns{display:flex;gap:8px;flex-wrap:wrap}
body.st .pay-pdf{color:#C8553D!important}
body.st .pay-sh{display:flex;justify-content:space-between;align-items:center;margin-top:8px}
body.st .pay-hist{display:flex;flex-direction:column;gap:8px;margin:10px 0 14px}
body.st .pay-h-i{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--st-line);border-radius:16px;padding:12px}
body.st .pay-h-i.cur{background:color-mix(in srgb,#2E8B57 8%,var(--st-card));border-color:color-mix(in srgb,#2E8B57 40%,transparent)}
body.st .pay-h-d{display:flex;flex-direction:column;align-items:center;min-width:46px;line-height:1.2}
body.st .pay-h-d b{font-size:13px;font-weight:600;white-space:nowrap}
body.st .pay-h-d small{font-size:11px;color:var(--st-muted)}
body.st .pay-h-b{flex:1;display:flex;flex-direction:column;gap:5px;align-items:flex-start;min-width:0}
body.st .pay-h-b>b{font-size:16px;font-weight:600}
body.st .pay-h-b>b small{font-size:11px;color:var(--st-muted);font-weight:400}
body.st .pay-cur,body.st .pay-fut{font-style:normal;font-size:10px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;background:var(--st-ink);color:var(--st-card);border-radius:6px;padding:2px 7px}
body.st .pay-fut{background:#D2912A;color:#fff}
body.st .pay-chips{display:flex;gap:4px;flex-wrap:wrap}
body.st .pay-chip{font-size:11px;font-weight:600;border-radius:999px;padding:2px 8px;background:var(--st-soft2);color:var(--st-muted)}
body.st .pay-chip.up{background:color-mix(in srgb,#2E8B57 15%,var(--st-card));color:#2E7D4F}
body.st .pay-chip.dn{background:color-mix(in srgb,#C8553D 15%,var(--st-card));color:#B4412C}
body.st .pay-note{font-size:11.5px;color:var(--st-muted)}
body.st .pay-del{width:26px;height:26px;border-radius:50%;border:1px solid var(--st-line);background:var(--st-card);color:#C8553D;font-size:15px;flex:0 0 26px}
body.st .pay-all{margin-top:4px}
body.st .sal-tbl table{min-width:0;width:100%}
body.st .sal-tbl td,body.st .sal-tbl th{padding:10px 12px!important}
body.st .sal-tbl input{text-align:right;min-height:38px!important;max-width:150px;margin-left:auto;display:block}
body.st .sal-tbl tfoot td{background:var(--st-soft)!important;border:0!important}
body.st .sal-new{color:#2E7D4F}
body.st .sal-msg{background:color-mix(in srgb,#2E8B57 10%,var(--st-card));border-radius:12px;padding:10px 14px;font-size:12.5px;color:var(--st-ink)}
body.st .st-salnote{font-size:12px;color:var(--st-muted);background:var(--st-soft);border-radius:12px;padding:10px 12px;line-height:1.5}
body.st .st-salnote .st-link{font-size:12px;padding:0;text-decoration:underline;color:var(--st-mid)}
body.st input.st-locked{opacity:.6;cursor:not-allowed}
body.st .ai-btns .btn{font-size:11.5px!important}
@media (max-width:1280px){ body.st .pay-grid{grid-template-columns:240px minmax(0,1fr)} body.st .pay-side{grid-column:1/-1} }
@media (max-width:860px){ body.st .pay-grid{grid-template-columns:1fr} body.st .pay-tiles{grid-template-columns:repeat(3,minmax(0,1fr))} body.st .pay-team{display:flex;gap:6px;overflow-x:auto} body.st .pay-team .st-ph{display:none} body.st .pay-who{flex:0 0 auto;width:auto} }
body.st .st-sum{border-collapse:collapse}
body.st .adm-panel h3{font-size:19px!important;font-weight:500!important;text-transform:none!important;letter-spacing:-.02em!important;color:var(--st-ink)!important}
/* Phone polish */
@media (max-width:600px){
  body.st .work-summary{display:grid!important;grid-template-columns:none!important;grid-auto-flow:column!important;grid-auto-columns:148px!important;overflow-x:auto;padding-bottom:6px;scroll-snap-type:x mandatory}
  body.st .work-summary .kpi{min-height:118px!important;padding:16px!important;scroll-snap-align:start}
  body.st .work-summary .kv{font-size:34px!important;padding-top:12px!important}
  body.st .work-summary .kt{font-size:14px!important}
  body.st .work-summary .st-go{display:none}
  body.st .st-filterbar{padding:8px;border-radius:18px}
  body.st .st-filterbar .hint{display:none}
  body.st .st-seg{flex-wrap:nowrap;overflow-x:auto;max-width:100%}
  body.st .st-seg button{white-space:nowrap}
}
@media (max-width:860px){
  body.st .att-table .att-rowlbl,body.st .att-table .att-rowh{font-size:9px!important;padding-right:4px!important}
  body.st .att-table .att-name{font-size:12.5px!important;padding:0 8px!important}
  body.st .st-attgrid .st-ph{flex-direction:column;align-items:flex-start}
}
@media (max-width:600px){
  body.st #view-attend .st-sum td{padding:7px 0!important}
  body.st #view-attend .st-sum td::before{text-align:left}
  body.st #view-attend .st-sum td:first-child,
  body.st #view-attend .st-sum td:last-child{display:block}
  body.st #view-attend .st-sum td:first-child::before,
  body.st #view-attend .st-sum td:last-child::before{display:none}
}

/* =================== v153: Analytics charts =================== */
body.st .an-dwrap{display:flex;align-items:center;gap:28px;flex-wrap:wrap}
body.st .an-dwrap .an-donut{width:170px;margin:0;flex:0 0 170px}
body.st .an-dwrap .an-dc b{font-size:28px;font-weight:500}
body.st .an-lgs{flex:1;min-width:200px;display:flex;flex-direction:column;gap:2px}
body.st .an-lg{display:grid;grid-template-columns:12px 1fr auto 44px;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--st-line);font-size:13.5px}
body.st .an-lg:last-child{border-bottom:0}
body.st .an-lg i{width:12px;height:12px;border-radius:4px}
body.st .an-lg b{font-weight:600}
body.st .an-lg em{font-style:normal;color:var(--st-muted);text-align:right;font-size:12.5px}
body.st .an-hb{display:flex;flex-direction:column;gap:10px}
body.st .an-hr{display:grid;grid-template-columns:minmax(90px,34%) 1fr;align-items:center;gap:12px}
body.st .an-hl{font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.st .an-ht{display:flex;align-items:center;gap:8px;min-width:0}
body.st .an-ht i{display:block;height:22px;border-radius:6px;background:var(--st-mid);flex:0 0 auto;max-width:calc(100% - 64px)}
body.st .an-ht b{font-size:12.5px;font-weight:600;white-space:nowrap}
body.st .an-ht b small{color:var(--st-muted);font-weight:500}
body.st .an-hr.other .an-hl{color:var(--st-muted)}
body.st .an-hr.other i{background:color-mix(in srgb,var(--st-mid) 35%,var(--st-soft2))}
body.st .an-foot{font-size:11.5px;color:var(--st-muted);margin-top:14px;padding-top:10px;border-top:1px solid var(--st-line)}
body.st .an-sub{margin:-6px 0 14px;font-size:12.5px}
body.st .an-cols{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:14px;align-items:end;height:250px;padding-top:6px}
body.st .an-col{display:flex;flex-direction:column;align-items:center;gap:6px;height:100%;min-width:0}
body.st .an-col b{font-size:14px;font-weight:600}
body.st .an-colt{flex:1;width:100%;max-width:64px;display:flex;align-items:flex-end;background:var(--st-soft);border-radius:10px;overflow:hidden}
body.st .an-colt i{display:block;width:100%;border-radius:10px 10px 0 0}
body.st .an-col span{font-size:12px;color:var(--st-muted);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.st .an-line .cb{fill:var(--st-mid)}
body.st .an-line .cb:hover{fill:var(--brand)}
body.st .an-line .vl{fill:var(--st-ink);font-size:11px;font-weight:600}
body.st .an-leg i.c.sq{height:10px;width:10px;border-radius:3px}
/* Team output chart: square-topped stacked columns instead of pills */
body.st .pf-bar-stack{border-radius:6px 6px 2px 2px!important;overflow:hidden;gap:1px!important;box-shadow:none!important}
body.st .pf-seg{border-radius:0!important;box-shadow:none!important;background-image:none!important;min-height:2px}
body.st .pf-seg::before,body.st .pf-seg::after,body.st .pf-bar-stack::before,body.st .pf-bar-stack::after{display:none!important}
body.st .pf-col:hover{background:var(--st-soft)!important}
body.st .pf-col.today{background:color-mix(in srgb,var(--st-mid) 10%,transparent)!important}
body.st .pf-col.sel{background:color-mix(in srgb,var(--st-mid) 16%,transparent)!important;box-shadow:inset 0 0 0 1px var(--st-mid)!important}
body.st .pf-col.today .pf-day{color:var(--st-mid)!important}
body.st .pf-col.we .pf-day{color:var(--st-muted)!important}
@media (max-width:600px){ body.st .an-dwrap{justify-content:center} body.st .an-cols{gap:6px;height:200px} body.st .an-hr{grid-template-columns:96px 1fr} }
@media (max-width:600px){ body.st .st-ph{flex-wrap:wrap} body.st .st-ph h3{flex:1 1 100%} }

/* =================== v153: Clock Sheet =================== */
body.st .clk-top{margin-bottom:16px}
body.st .clk-top .pay-month b{min-width:0}
body.st .clk-pick{position:relative;width:40px;height:40px;border-radius:50%;border:1px solid var(--st-line);display:inline-flex;align-items:center;justify-content:center;background:var(--st-card);cursor:pointer;color:var(--st-ink)}
body.st .clk-pick svg{width:17px;height:17px}
body.st .clk-pick input{position:absolute;inset:0;opacity:0;cursor:pointer;min-height:0!important;width:100%}
body.st .clk-cards{grid-template-columns:repeat(6,minmax(0,1fr))!important}
body.st .clk-cards .kpi{min-height:140px!important;cursor:default}
body.st .clk-cards .kv{font-size:38px!important}
body.st .clk-note{background:color-mix(in srgb,#D2912A 12%,var(--st-card));border-radius:16px;padding:12px 16px;font-size:13px;margin-bottom:16px}
body.st .clk-leg{display:flex;gap:14px;font-size:12px;color:var(--st-muted)}
body.st .clk-leg span{display:flex;align-items:center;gap:6px}
body.st .clk-leg i{width:12px;height:12px;border-radius:4px;background:var(--st-mid)}
body.st .clk-leg i.u{background:repeating-linear-gradient(-45deg,#D2912A 0 2px,color-mix(in srgb,#D2912A 25%,transparent) 2px 5px)}
body.st .clk-leg i.g{width:2px;height:14px;border-radius:0;background:var(--st-ink)}
body.st .clk-crow{display:grid;grid-template-columns:180px 1fr 120px;gap:16px;align-items:center;padding:10px 0;border-bottom:1px solid var(--st-line)}
body.st .clk-crow:last-child{border-bottom:0}
body.st .clk-cname{display:flex;align-items:center;gap:10px;font-weight:600;font-size:14px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.st .clk-ctrack{position:relative;height:26px;background:var(--st-soft);border-radius:8px;display:flex;overflow:visible}
body.st .clk-ctrack i{display:block;height:100%}
body.st .clk-ctrack i.t{background:var(--st-mid);border-radius:8px 0 0 8px}
body.st .clk-ctrack i.u{background:repeating-linear-gradient(-45deg,#D2912A 0 2px,color-mix(in srgb,#D2912A 25%,transparent) 2px 5px);border-radius:0 8px 8px 0}
body.st .clk-ctrack i.t:only-child,body.st .clk-ctrack i.t+i.u[style="width:0%"]{border-radius:8px}
body.st .clk-ctrack em{position:absolute;top:-4px;bottom:-4px;width:2px;background:var(--st-ink);opacity:.7}
body.st .clk-cval{display:flex;flex-direction:column;align-items:flex-end}
body.st .clk-cval b{font-size:15px;font-weight:600}
body.st .clk-cval small{font-size:11.5px;color:var(--st-muted)}
body.st .clk-person{padding:22px!important}
body.st .clk-ph{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
body.st .clk-who{display:flex;align-items:center;gap:12px}
body.st .clk-who>span:last-child{display:flex;flex-direction:column}
body.st .clk-who b{font-size:17px;font-weight:600}
body.st .clk-who small{font-size:12px;color:var(--st-muted)}
body.st .an-av.big{width:42px;height:42px;flex:0 0 42px;font-size:15px}
body.st .clk-figs{display:flex;gap:8px;flex-wrap:wrap}
body.st .clk-fig{background:var(--st-soft);border-radius:14px;padding:10px 16px;min-width:118px;display:flex;flex-direction:column;gap:2px}
body.st .clk-fig span{font-size:11px;color:var(--st-muted)}
body.st .clk-fig b{font-size:18px;font-weight:600}
body.st .clk-fig.acc b{color:var(--st-mid)}
body.st .clk-fig.warn b{color:#B4412C}
body.st .clk-fig.over b{color:#2E7D4F}
body.st .clk-fig.dim b{color:var(--st-muted);font-size:14px}
body.st .clk-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0 6px;font-size:12.5px;color:var(--st-muted)}
body.st .clk-meta b{color:var(--st-ink)}
body.st .clk-ubar{width:120px;height:8px;border-radius:999px;background:var(--st-soft2);overflow:hidden}
body.st .clk-ubar i{display:block;height:100%;background:var(--st-mid);border-radius:999px}
body.st .clk-chip{font-size:11.5px;font-weight:600;border-radius:999px;padding:3px 10px;background:color-mix(in srgb,var(--sc) 13%,var(--st-card));color:color-mix(in srgb,var(--sc) 85%,var(--st-ink))}
body.st .clk-tasks{display:flex;flex-direction:column;margin-top:8px}
body.st .clk-task{display:grid;grid-template-columns:64px minmax(0,1fr) auto 120px 64px;gap:14px;align-items:center;padding:12px 10px;border:0;border-top:1px solid var(--st-line);background:none;text-align:left;font:inherit;color:var(--st-ink);box-shadow:inset 3px 0 0 var(--sc)}
body.st .clk-task:hover{background:var(--st-soft)}
body.st .clk-tid{font-size:12.5px;color:var(--st-mid);font-weight:600}
body.st .clk-tt{display:flex;align-items:center;gap:8px;min-width:0}
body.st .clk-tt b{font-weight:500;font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.st .clk-post{flex:0 0 auto;font-size:11px;font-weight:600;border-radius:999px;padding:2px 8px;background:color-mix(in srgb,#7A5AD1 14%,var(--st-card));color:#6A4BC0}
body.st .clk-tbar{height:6px;border-radius:999px;background:var(--st-soft2);overflow:hidden}
body.st .clk-tbar i{display:block;height:100%;background:var(--st-mid);border-radius:999px}
body.st .clk-ttime{text-align:right;font-weight:600;font-size:13.5px}
body.st .clk-none{color:var(--st-muted);font-size:13px;padding:12px 4px 2px}
@media (max-width:1280px){ body.st .clk-cards{grid-template-columns:repeat(3,minmax(0,1fr))!important} }
@media (max-width:700px){
  body.st .clk-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.st .clk-crow{grid-template-columns:1fr 90px;gap:8px}
  body.st .clk-ctrack{grid-column:1/-1;grid-row:2}
  body.st .clk-task{grid-template-columns:52px minmax(0,1fr) 56px}
  body.st .clk-task .pill,body.st .clk-task .clk-tbar{display:none}
  body.st .clk-fig{min-width:0;flex:1}
  body.st .clk-leg{flex-wrap:wrap}
}
@media (max-width:700px){ body.st .clk-figs{flex:1 1 100%} body.st .clk-fig{padding:8px 10px} body.st .clk-fig b{font-size:15px;white-space:nowrap} body.st .clk-top .pay-month b{font-size:12px;padding:7px 10px} }
