/* Sphinix v14 — "next level" layer on top of the Hero Card theme.
   Same look as the approved prototype: soft blue-grey ground, white 22px cards, solid blue menu pill,
   big Anek headings, count-up numbers, cards that rise in one after another, hover lift, press feel.
   Everything respects "reduce motion". */
:root{
  --bg:#EEF1F7; --surface:#FFFFFF; --line:#E3E8F1; --ink:#16213A; --muted:#5B6680; --sunk:#F4F6FB;
  --accent:#1F4E8C; --accent-soft:#EAF1FB; --mari:#F6B73C; --spark:#DCE3EE;
  --good:#17723F; --good-soft:#E6F4EC; --bad:#B42318; --bad-soft:#FDECEC; --warn:#8A5A00; --warn-soft:#FFF3DC; --vio:#4A33B0; --vio-soft:#EEE9FC;
  --r:22px; --ease:cubic-bezier(.2,.75,.2,1);
}
@media (prefers-color-scheme:dark){:root{
  --bg:#0B121E; --surface:#121C2C; --line:#22314A; --ink:#E7EDF6; --muted:#9AA8BD; --sunk:#172336; --accent-soft:#1A2B45; --spark:#2A3A55;
  --good:#3DCB85; --good-soft:#123425; --bad:#F27474; --bad-soft:#3A1A1C; --warn:#E8B341; --warn-soft:#3A2D12; --vio:#B4A6F2; --vio-soft:#251F45;
}}
body{background:var(--bg);color:var(--ink)}

/* ---------- motion ---------- */
@keyframes up14{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes growY{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes growX{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes ringIn{from{stroke-dashoffset:var(--full)}}
@keyframes floatA{0%,100%{transform:translate(0,0)}50%{transform:translate(-26px,18px)}}
@keyframes floatB{0%,100%{transform:translate(0,0)}50%{transform:translate(22px,-14px)}}
@keyframes pulse14{0%{box-shadow:0 0 0 0 rgba(217,59,64,.45)}100%{box-shadow:0 0 0 10px rgba(217,59,64,0)}}
@keyframes shine14{from{transform:translateX(-120%)}to{transform:translateX(260%)}}
@keyframes shimmer{from{background-position:-400px 0}to{background-position:400px 0}}
#page{animation:none}
#page>*{animation:up14 .6s var(--ease) both}
#page>*:nth-child(1){animation-delay:.02s}#page>*:nth-child(2){animation-delay:.08s}#page>*:nth-child(3){animation-delay:.14s}#page>*:nth-child(4){animation-delay:.2s}
#page>*:nth-child(5){animation-delay:.26s}#page>*:nth-child(6){animation-delay:.32s}#page>*:nth-child(n+7){animation-delay:.38s}
.kpis>*,.grid>*{animation:up14 .6s var(--ease) both}
.kpis>*:nth-child(2),.grid>*:nth-child(2){animation-delay:.06s}.kpis>*:nth-child(3),.grid>*:nth-child(3){animation-delay:.12s}.kpis>*:nth-child(4),.grid>*:nth-child(4){animation-delay:.18s}.kpis>*:nth-child(n+5),.grid>*:nth-child(n+5){animation-delay:.24s}
.lift,.kpi,.ccard{transition:transform .25s var(--ease),box-shadow .25s}
.lift:hover,.kpi:hover,.ccard:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(22,33,58,.10)}
.btn,.seg button,.seg a,.chip-btn{transition:transform .12s,background-color .2s,color .2s,border-color .2s,box-shadow .2s}
.btn:active,.seg button:active,.chip-btn:active{transform:scale(.96)}
.bar i,.stack-bar i{transform-origin:left;animation:growX .8s var(--ease) both}
.ring-arc{animation:ringIn 1.1s var(--ease) both}
.bdg,.tb-bell .bdg{animation:pulse14 1.8s ease-out infinite}
.skel{border-radius:16px;background:linear-gradient(90deg,var(--sunk) 0,var(--surface) 50%,var(--sunk) 100%);background-size:800px 100%;animation:shimmer 1.3s linear infinite}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* ---------- type ---------- */
h1{font-size:34px;font-weight:800;letter-spacing:-.01em;line-height:1.1}
.page-head{align-items:flex-end;gap:16px;flex-wrap:wrap}
.page-head .sub{font-size:15.5px;color:var(--muted);margin-top:4px}
.card-h h2{font-size:21px;font-weight:700}
.eyebrow{font-size:13px;font-weight:700;letter-spacing:.04em;color:var(--muted)}

/* ---------- shell: menu exactly like the prototype ---------- */
@media (min-width:861px){
  #shell{grid-template-columns:240px 1fr}
  #side{position:sticky;top:0;height:100vh;overflow-y:auto;align-self:start}
}
#side{background:var(--surface);border-right:1px solid var(--line);padding:20px 14px 16px}
.brand .logo{width:42px;height:42px;border-radius:12px;box-shadow:0 8px 18px rgba(31,78,140,.25)}
.bname{font-size:17px;font-weight:800}
#nav .ngrp{font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);opacity:1;margin:14px 12px 4px}
#nav a{font-size:15px;padding:9px 12px;border-radius:12px;gap:12px}
#nav a:hover{background:var(--sunk)}
#nav a.on{background:var(--accent);color:#fff;box-shadow:0 6px 16px rgba(31,78,140,.25);font-weight:600}
#nav a.on svg{opacity:1;stroke:#fff}
@media (prefers-color-scheme:dark){#nav a.on{background:#2F6BBE}}
.side-foot{border-top:0;background:var(--sunk);border-radius:16px;padding:12px;margin-top:14px}
#side .av{background:var(--mari);color:#16213A}
#tbar{padding:18px 28px 0;max-width:1296px}
.qs{height:46px;border-radius:14px;max-width:460px}
.tb-me{height:46px;padding:0 14px 0 6px}
.tb-me .av{width:34px;height:34px}
.tb-bell{width:46px;height:46px}
#main{padding:18px 28px 64px;max-width:1296px;gap:20px}
#annBar{max-width:1296px}

/* ---------- building blocks ---------- */
.card{border-radius:var(--r);border:1px solid var(--line);box-shadow:none;padding:20px}
.card-h{gap:10px}
.kpis{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}
.kpi{border-radius:20px;border:1px solid var(--line);box-shadow:none;padding:18px 18px 14px;gap:8px}
.kpi .k{font-size:14px;font-weight:600;color:#3D4963;gap:10px}
@media (prefers-color-scheme:dark){.kpi .k{color:var(--muted)}}
.kic{width:34px;height:34px;border-radius:10px}
.kpi .kv{display:flex;align-items:flex-end;justify-content:space-between;gap:10px}
.kpi .v{font-size:27px;font-weight:800;margin:0;line-height:1.05}
.kpi .s{font-size:13.5px;color:var(--muted);display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.spark{display:flex;align-items:flex-end;gap:3px;height:34px;flex:none}
.spark i{width:6px;border-radius:3px;transform-origin:bottom;animation:growY .7s var(--ease) both}
.kchip{display:inline-block;font-weight:700;font-size:12.5px;padding:2px 8px;border-radius:99px;background:var(--sunk);color:#3D4963;white-space:nowrap}
.kchip.good{background:var(--good-soft);color:var(--good)}.kchip.bad{background:var(--bad-soft);color:var(--bad)}.kchip.warn{background:var(--warn-soft);color:var(--warn)}
.btn{border-radius:12px;min-height:40px;padding:8px 16px;font-weight:700}
.btn.sm{min-height:34px;padding:5px 12px;border-radius:10px;font-weight:700}
.btn .i,.btn svg.i{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.btn{display:inline-flex;align-items:center;gap:8px;justify-content:center}
.btn.gold{background:var(--mari);color:#16213A;border-color:var(--mari)}
.btn.gold:hover{background:#F2AC22;color:#16213A;border-color:#F2AC22}
.btn.glass{background:rgba(255,255,255,.1);color:#fff;border:1px solid rgba(255,255,255,.35)}
.btn.glass:hover{background:rgba(255,255,255,.2);color:#fff;border-color:rgba(255,255,255,.5)}
.pill{border-radius:99px;font-weight:700;font-size:12.5px;padding:3px 10px}
.pill.good{background:var(--good-soft);color:var(--good)}.pill.bad{background:var(--bad-soft);color:var(--bad)}.pill.warn{background:var(--warn-soft);color:var(--warn)}.pill.info{background:var(--accent-soft);color:var(--accent)}
input:not([type]),input[type=text],input[type=search],input[type=email],input[type=password],input[type=tel],input[type=number],input[type=date],input[type=month],select,textarea{border-radius:12px;border-color:#D5DDEA}
@media (prefers-color-scheme:dark){input:not([type]),input[type=text],input[type=search],input[type=email],input[type=password],input[type=tel],input[type=number],input[type=date],input[type=month],select,textarea{border-color:var(--line)}}
.seg{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:4px;gap:4px}
.seg button,.seg a{border-radius:10px;font-weight:700;font-size:14px;padding:7px 14px}
.seg [aria-pressed="true"],.seg .on{background:var(--accent);color:#fff;box-shadow:0 4px 12px rgba(31,78,140,.22)}
.tbl-wrap{border-radius:var(--r);border:1px solid var(--line);box-shadow:none}
.tbl th{font-size:12.5px;letter-spacing:.04em;text-transform:uppercase;font-weight:700;color:var(--muted);background:#F7F9FC}
@media (prefers-color-scheme:dark){.tbl th{background:var(--sunk)}}
.tbl tbody tr:hover{background:#F7F9FC}
@media (prefers-color-scheme:dark){.tbl tbody tr:hover{background:var(--sunk)}}
.banner{border-radius:16px}
.empty{border:2px dashed var(--line);border-radius:16px;padding:22px 14px;text-align:center;color:var(--muted)}
.note{display:flex;align-items:center;gap:10px;border-radius:14px;padding:10px 14px;font-size:14px;background:var(--accent-soft);color:var(--ink)}
.note svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.note.warn{background:var(--warn-soft);color:var(--warn)}.note.good{background:var(--good-soft);color:var(--good)}
.bar{height:8px;border-radius:99px;background:var(--sunk);overflow:hidden;display:flex}
.bar i{display:block;height:100%;border-radius:99px}
.modal{border-radius:24px}

/* ---------- dashboard (prototype) ---------- */
.hero2{display:flex;flex-wrap:wrap;gap:28px;align-items:center;padding:30px 32px;border-radius:28px;background:linear-gradient(120deg,#13325E 0%,#1F4E8C 55%,#2F6BBE 100%);box-shadow:none}
.hero2::after{display:none}
.hero2 .blob{position:absolute;border-radius:50%;pointer-events:none}
.hero2 .blob.a{right:-80px;top:-120px;width:380px;height:380px;background:radial-gradient(circle,rgba(246,183,60,.55),rgba(246,183,60,0) 68%);animation:floatA 9s ease-in-out infinite}
.hero2 .blob.b{left:30%;bottom:-170px;width:360px;height:360px;background:radial-gradient(circle,rgba(140,180,255,.35),rgba(140,180,255,0) 70%);animation:floatB 11s ease-in-out infinite}
.hero-l{position:relative;flex:1 1 380px;min-width:0;display:flex;flex-direction:column;gap:12px}
.hero-top{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.hero-date{font-size:13px;font-weight:700;letter-spacing:.06em;color:#F6C766}
.hero2 h1{font-size:40px;margin:0;color:#fff}
.hero2 p{margin:0;font-size:17px;color:#DCE6F7;opacity:1}
.hero2 p b{color:#fff}
.hero-q{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.hero-q .btn{min-height:44px}
.hero-seg{background:rgba(255,255,255,.12);border:0;border-radius:99px}
.hero-seg button{border-radius:99px;color:#fff;padding:6px 14px;font-size:13.5px}
.hero-seg [aria-pressed="true"]{background:#fff;color:#1F4E8C;box-shadow:none}
.hero-goal{position:relative;flex:0 0 auto;display:flex;align-items:center;gap:18px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);border-radius:22px;padding:18px 22px;color:#fff;text-decoration:none}
.hero-goal.empty{flex-direction:column;align-items:flex-start;gap:2px}
.hero-goal.empty small{color:#DCE6F7}
.ring{position:relative;flex:none}
.ring-in{position:absolute;inset:0;display:grid;place-items:center;align-content:center;text-align:center;line-height:1}
.hero-goal .ring-in b{font-family:var(--f-head);font-weight:800;font-size:30px;color:#fff}
.hero-goal .ring-in small{display:block;width:100%;font-size:11.5px;color:#DCE6F7;margin-top:4px}
.hg-v{font-weight:700;font-size:24px}
.hg-s{font-size:14px;color:#DCE6F7}
.hg-n{font-size:14px}
.dash-2{grid-template-columns:repeat(auto-fit,minmax(340px,1fr));align-items:start}
.dash-2b{grid-template-columns:repeat(auto-fit,minmax(340px,1fr));align-items:stretch}
.att{border-bottom:1px solid #EEF1F6;border-radius:14px}
@media (prefers-color-scheme:dark){.att{border-bottom-color:var(--line)}}
.att-ic{width:40px;height:40px;border-radius:12px}
.tt{display:flex;flex-direction:column}
.tt-r{display:flex;align-items:center;gap:12px;padding:9px 2px}
.tt-r .av{width:40px;height:40px;flex:none}
.tt-m{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.tt-h{display:flex;justify-content:space-between;align-items:center;gap:8px}
.tt-l{display:flex;align-items:center;gap:8px}.tt-l .bar{flex:1;height:7px}.tt-l small{width:96px;text-align:right;color:var(--muted);font-size:12.5px}
.ok{color:var(--good)}
.cc-leg{display:flex;gap:16px;font-size:13.5px;color:#3D4963}
.cc-leg span{display:flex;align-items:center;gap:6px}.cc-leg i{width:11px;height:11px;border-radius:3px}
.cc{display:flex;align-items:flex-end;gap:10px;padding:0 4px;border-bottom:1px solid var(--line)}
.cc-g{flex:1;min-width:0;height:100%;display:flex;align-items:flex-end;justify-content:center;gap:4px}
.cc-g i{flex:1;max-width:22px;border-radius:7px 7px 3px 3px;transform-origin:bottom;animation:growY .8s var(--ease) both}
.cc-x{display:flex;gap:10px;padding:0 4px}.cc-x span{flex:1;text-align:center;font-size:12.5px;color:var(--muted)}.cc-x span.on{color:var(--ink);font-weight:700}
.stack-bar{display:flex;height:14px;border-radius:99px;overflow:hidden;background:var(--sunk);gap:2px}
.stack-bar i{height:100%}
.st4{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.st{display:flex;flex-direction:column;gap:2px;border:1px solid var(--line);border-radius:16px;padding:12px 14px;text-decoration:none;color:var(--ink)}
.st span{display:flex;align-items:center;gap:7px;font-size:13.5px;font-weight:600;color:#3D4963}.st span i{width:10px;height:10px;border-radius:3px}
@media (prefers-color-scheme:dark){.st span{color:var(--muted)}}
.st b{font-size:26px;font-weight:800}.st small{font-size:12.5px;color:var(--muted)}
.today-bar{display:flex;align-items:center;gap:12px;border-radius:16px;background:var(--accent-soft);padding:12px 14px;font-size:14px}
.today-bar .bar{flex:1;height:10px;position:relative;background:#D3E0F3}
.today-bar .bar i{background:var(--accent)}
.bar.shine::after{content:"";position:absolute;inset:0;width:40%;background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.55),rgba(255,255,255,0));animation:shine14 2.8s ease-in-out infinite}
.li.ren{gap:12px;text-decoration:none;color:inherit;align-items:center;justify-content:flex-start}
.days{flex:none;width:52px;text-align:center;border-radius:12px;padding:6px 0;line-height:1}
.days b{display:block;font-family:var(--f-head);font-weight:800;font-size:20px}.days small{font-size:11px;font-weight:600}
.days.bad{background:var(--bad-soft);color:var(--bad)}.days.warn{background:var(--warn-soft);color:var(--warn)}.days.info{background:var(--accent-soft);color:var(--accent)}
.brief-card{position:relative;overflow:hidden;border-radius:var(--r);padding:22px;background:#16213A;color:#fff;display:flex;flex-direction:column;gap:12px;border:0}
.brief-card .blob{position:absolute;right:-60px;top:-60px;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,rgba(246,183,60,.35),rgba(246,183,60,0) 70%);pointer-events:none}
.bc-top{position:relative;display:flex;align-items:center;gap:10px}
.bc-ic{width:36px;height:36px;border-radius:10px;background:rgba(246,183,60,.18);color:var(--mari);display:grid;place-items:center}
.bc-ic svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
.bc-h{position:relative;margin:0;font-family:var(--f-head);font-weight:700;font-size:22px;line-height:1.25}
.brief-card ol{position:relative;margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px;color:#DCE6F7;font-size:15px}
.brief-card .btn{position:relative;align-self:flex-start}

/* ---------- clients (prototype cards + type boxes) ---------- */
.ktypes{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.ktype{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:18px;background:var(--surface);border:2px solid var(--line);font:inherit;color:var(--ink);cursor:pointer;text-align:left}
.ktype[aria-pressed="true"]{border-color:var(--kc);box-shadow:0 10px 24px rgba(22,33,58,.10)}
.ktype .ki{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;flex:none;background:var(--ks);color:var(--kc)}
.ktype .ki svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ktype .kt{flex:1;min-width:0}.ktype .kt b{display:block;font-size:15.5px}.ktype .kt small{font-size:13px;color:var(--muted)}
.ktype .kn{font-family:var(--f-head);font-weight:800;font-size:26px;color:var(--kc)}
.cgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.ccard{display:flex;flex-direction:column;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:18px;text-decoration:none;color:var(--ink);cursor:pointer}
.cc-top{display:flex;align-items:center;gap:12px}
.cc-logo{flex:none;width:48px;height:48px;border-radius:14px;display:grid;place-items:center;font-family:var(--f-head);font-weight:800;font-size:18px;color:#fff}
.cc-name{flex:1;min-width:0}.cc-name b{display:block;font-size:16px;overflow-wrap:anywhere}.cc-name small{font-size:13px;color:var(--muted)}
.ktag{font-size:11.5px;font-weight:800;letter-spacing:.03em;padding:3px 9px;border-radius:99px}
.ktag.retainer{background:var(--accent-soft);color:var(--accent)}.ktag.project{background:var(--vio-soft);color:var(--vio)}.ktag.saas{background:#E3F4F1;color:#0F5F58}
@media (prefers-color-scheme:dark){.ktag.saas{background:#12302C;color:#6FD4C6}}
.cc-tags{display:flex;gap:6px;flex-wrap:wrap}
.cc-tags .svc{font-size:12.5px;font-weight:600;padding:3px 9px;border-radius:99px;background:var(--sunk);color:#3D4963}
@media (prefers-color-scheme:dark){.cc-tags .svc{color:var(--muted)}}
.cc-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:10px;font-size:13.5px;color:var(--muted)}
.cc-team{display:flex}.cc-team .av{width:28px;height:28px;font-size:11.5px;margin-right:-6px;border:2px solid var(--surface)}
.cc-flag{font-size:13px;font-weight:600;color:var(--bad);background:var(--bad-soft);border-radius:10px;padding:6px 10px}
.vt{display:flex;gap:4px}

/* ---------- income day by day ---------- */
.dd{display:flex;align-items:flex-end;gap:4px;height:150px;border-bottom:1px solid var(--line);min-width:560px}
.dd button{flex:1;min-width:0;height:100%;padding:0;border:0;background:transparent;cursor:pointer;display:flex;flex-direction:column;justify-content:flex-end}
.dd button i{display:block;width:100%;border-radius:5px 5px 0 0;background:var(--good);transform-origin:bottom;animation:growY .7s var(--ease) both}
.dd button.zero i{background:var(--line)}
.dd button.goal i{background:#17915A}
.dd button[aria-pressed="true"] i{background:var(--mari)}
.dd-x{display:flex;gap:4px;min-width:560px;margin-top:4px}.dd-x span{flex:1;text-align:center;font-size:11px;color:var(--muted)}.dd-x span.on{color:var(--ink);font-weight:800}
.dd-wrap{overflow-x:auto}
.dd-goal{position:relative}
.dd-tiles{display:flex;gap:10px;flex-wrap:wrap}
.dd-tile{border-radius:14px;padding:8px 14px;background:var(--sunk)}
.dd-tile small{display:block;font-size:12px;font-weight:700;letter-spacing:.04em;color:var(--muted)}
.dd-tile b{font-family:var(--f-head);font-weight:800;font-size:22px}
.dd-tile.g{background:var(--good-soft)}.dd-tile.g small,.dd-tile.g b{color:var(--good)}
.dd-tile.y{background:var(--warn-soft)}.dd-tile.y small,.dd-tile.y b{color:var(--warn)}

/* ---------- phone ---------- */
@media (max-width:860px){
  #main{padding:14px 16px 60px}
  #tbar{padding:12px 16px 0}
  h1{font-size:28px}
  .hero2{padding:22px 20px;border-radius:22px}
  .hero2 h1{font-size:28px}
  .hero-goal{width:100%;box-sizing:border-box}
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .kpi{padding:14px}.kpi .v{font-size:21px}.kpi .spark{display:none}
  .dash-2,.dash-2b{grid-template-columns:1fr}
  .tt-l small{width:auto}
  .ktypes{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .ktype{flex-direction:column;align-items:flex-start;gap:6px;padding:12px;border-radius:16px}
  .ktype .kt small{display:none}.ktype .kt b{font-size:13.5px}.ktype .ki{width:34px;height:34px}.ktype .kn{font-size:22px}
}
@media print{#page>*,.kpis>*,.grid>*{animation:none!important}}

/* the page area gets focus after every page change (for screen readers); never draw a box around it */
#main:focus,#main:focus-visible{outline:none}

/* ---------- Team & Hajri (prototype) ---------- */
.att-sum{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.as{display:flex;flex-direction:column;align-items:flex-start;min-width:84px;padding:8px 14px;border-radius:14px;font-size:12.5px;font-weight:700;letter-spacing:.02em}
.as b{font-size:22px;line-height:1.1;font-weight:800}
.as.s-P{background:var(--good-soft);color:var(--good)}.as.s-W{background:var(--accent-soft);color:var(--accent)}.as.s-H{background:var(--warn-soft);color:var(--warn)}
.as.s-L{background:var(--vio-soft);color:var(--vio)}.as.s-A{background:var(--bad-soft);color:var(--bad)}.as.s-U{background:var(--sunk);color:var(--muted)}
.att-prog{height:6px;border-radius:99px;background:var(--sunk);overflow:hidden}
.att-prog i{display:block;height:100%;border-radius:99px;background:#17915A;transition:width .5s var(--ease);transform-origin:left;animation:growX .8s var(--ease) both}
.mrow{padding:12px 4px;border-top:1px solid #EEF1F6;border-radius:12px;transition:background .2s}
.mrow:hover{background:#FAFBFE}
@media (prefers-color-scheme:dark){.mrow{border-top-color:var(--line)}.mrow:hover{background:var(--sunk)}}
.mrow .av{width:42px;height:42px;transition:background .25s,color .25s}
.av.s-P{background:var(--good-soft);color:var(--good);box-shadow:none}.av.s-W{background:var(--accent-soft);color:var(--accent);box-shadow:none}.av.s-H{background:var(--warn-soft);color:var(--warn);box-shadow:none}
.av.s-L{background:var(--vio-soft);color:var(--vio);box-shadow:none}.av.s-A{background:var(--bad-soft);color:var(--bad);box-shadow:none}
.mark{background:var(--sunk);border-radius:12px;padding:4px;gap:4px}
.mark button{border:0;background:transparent;border-radius:9px;height:36px;padding:0 12px;min-width:0;font-weight:700;font-size:13.5px;color:#4A5570;transition:background .2s,color .2s,box-shadow .2s,transform .12s}
@media (prefers-color-scheme:dark){.mark button{color:var(--muted)}}
.mark button:hover{background:var(--surface)}
.mark button:active{transform:scale(.93)}
.mark button[aria-pressed="true"]{color:inherit}
.mark button[data-s="P"][aria-pressed="true"]{background:var(--good-soft);color:var(--good);box-shadow:inset 0 0 0 1.5px var(--good)}
.mark button[data-s="W"][aria-pressed="true"]{background:var(--accent-soft);color:var(--accent);box-shadow:inset 0 0 0 1.5px var(--accent)}
.mark button[data-s="H"][aria-pressed="true"]{background:var(--warn-soft);color:var(--warn);box-shadow:inset 0 0 0 1.5px var(--warn)}
.mark button[data-s="L"][aria-pressed="true"]{background:var(--vio-soft);color:var(--vio);box-shadow:inset 0 0 0 1.5px var(--vio)}
.mark button[data-s="A"][aria-pressed="true"]{background:var(--bad-soft);color:var(--bad);box-shadow:inset 0 0 0 1.5px var(--bad)}
/* register: rounded coloured cells like the prototype */
.reg{border-collapse:separate;border-spacing:3px}
.reg th,.reg td{border-bottom:0;height:30px}
.reg thead th{background:transparent}
.reg thead .nm,.reg .nm{background:var(--surface);border-right:0}
.reg td.c{border-radius:6px;font-size:11px;font-weight:700;animation:up14 .35s var(--ease) both}
.reg td.c.s-P{background:#BFE3CD;color:#0F5132}.reg td.c.s-W{background:#C9DBF3;color:#163E73}.reg td.c.s-H{background:#F8DFA6;color:#5C4300}
.reg td.c.s-L{background:#D9D0F7;color:#3A2A8C}.reg td.c.s-A{background:#F5C2C2;color:#8A1C1C}.reg td.c.s-O,.reg td.c.off{background:#EEF1F6;color:#8A94A8}.reg td.c.s-U{background:var(--sunk);color:var(--muted)}
@media (prefers-color-scheme:dark){.reg td.c.s-P{background:#1F4D35;color:#BFE3CD}.reg td.c.s-W{background:#1E3656;color:#C9DBF3}.reg td.c.s-H{background:#4A3A12;color:#F8DFA6}.reg td.c.s-L{background:#32285A;color:#D9D0F7}.reg td.c.s-A{background:#4D2222;color:#F5C2C2}.reg td.c.s-O,.reg td.c.off{background:var(--sunk);color:var(--muted)}}
.reg td.c.click:hover{outline:2px solid var(--accent);outline-offset:0}
.reg th.today{color:var(--accent);box-shadow:none;font-weight:800}
.reg .t{border-left:0}
.legend .c.s-P{background:#BFE3CD;color:#0F5132}.legend .c.s-W{background:#C9DBF3;color:#163E73}.legend .c.s-H{background:#F8DFA6;color:#5C4300}.legend .c.s-L{background:#D9D0F7;color:#3A2A8C}.legend .c.s-A{background:#F5C2C2;color:#8A1C1C}
/* leave requests waiting: cards */
.lv-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px}
.lv-cards .li{flex-direction:column;align-items:flex-start;gap:10px;border:1px solid var(--line);border-radius:18px;padding:16px;border-top:1px solid var(--line)}
.lv-cards .li .row{flex-wrap:wrap}
@media (max-width:640px){.mark{width:100%}.mark button{flex:1 1 0;padding:0 2px;font-size:12px}.as{min-width:0;flex:1 1 30%}}

/* ---------- Client logins (prototype) ---------- */
.lg-safe{display:flex;align-items:center;gap:12px;background:var(--good-soft);border:1px solid #BFE3CD;border-radius:16px;padding:12px 16px;color:#0F5132;font-size:14.5px}
.lg-safe svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media (prefers-color-scheme:dark){.lg-safe{border-color:#1F4D35;color:var(--good)}}
.lg-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:16px;align-items:start}
.lg-card{display:flex;flex-direction:column;gap:4px;padding:18px}
.lg-ch{display:flex;align-items:center;gap:12px;margin-bottom:6px}
.lg-ch .cc-logo{width:42px;height:42px;font-size:15px;border-radius:12px}
.lg-cn{display:block;font-family:var(--f-head);font-weight:700;font-size:18px;color:var(--ink);text-decoration:none}
.lg-cn:hover{color:var(--accent)}
.lg-ch small{font-size:13px;color:var(--muted)}
.lg-rows{display:flex;flex-direction:column}
.lg-r{display:flex;align-items:flex-start;gap:12px;padding:12px 0;border-top:1px solid #EEF1F6}
@media (prefers-color-scheme:dark){.lg-r{border-top-color:var(--line)}}
.lg-r .lg-tag{min-width:38px;height:26px;border-radius:8px;font-size:11px;margin-top:1px}
.lg-m{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.lg-p{font-weight:600;font-size:15px}
.lg-u{display:flex;align-items:center;gap:6px;font-size:14px;color:#3D4963;min-width:0}
.lg-u span{overflow-wrap:anywhere}
@media (prefers-color-scheme:dark){.lg-u{color:var(--muted)}}
.lg-pw{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.lg-dots{font-family:var(--f-body);font-size:15px;letter-spacing:.14em;color:#8A94A8;background:var(--sunk);border:1px solid var(--line);border-radius:8px;padding:3px 10px;transition:background .3s,color .3s,letter-spacing .3s}
.lg-dots.open{letter-spacing:normal;color:var(--ink);background:#FFF6E3;border-color:#F2DDA6;font-family:var(--f-mono);animation:up14 .3s var(--ease) both}
@media (prefers-color-scheme:dark){.lg-dots.open{background:var(--warn-soft);border-color:#5C4300}}
.lg-n{font-size:12.5px;color:var(--muted)}
.lg-b{flex:none;width:32px;height:32px;border-radius:9px;border:1px solid var(--line);background:var(--surface);display:grid;place-items:center;cursor:pointer;color:var(--accent);padding:0;transition:transform .12s,border-color .2s}
.lg-b:hover{border-color:var(--accent)}.lg-b:active{transform:scale(.92)}
.lg-b svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lg-u .lg-b{width:26px;height:26px;border-radius:7px}.lg-u .lg-b svg{width:13px;height:13px}
@media (max-width:640px){.lg-grid{grid-template-columns:1fr}}

/* ---------- professional type: Inter for everything (Gujarati letters fall back to Hind Vadodara) ---------- */
@font-face{font-family:"Inter";src:url(fonts/Inter-var.woff) format("woff");font-weight:400 800;font-style:normal;font-display:swap}
:root{
  --f-body:"Inter","Hind Vadodara",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --f-head:"Inter","Hind Vadodara",system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-mono:"Inter","Hind Vadodara",system-ui,sans-serif;
}
body{font-family:var(--f-body);font-size:15px;line-height:1.55;font-feature-settings:"cv11","ss01";font-optical-sizing:auto;letter-spacing:-.003em}
h1,h2,h3,.bname,.num,.kpi .v{font-family:var(--f-head)}
h1{font-size:30px;font-weight:700;letter-spacing:-.025em;line-height:1.15}
h2,.card-h h2{font-weight:650;letter-spacing:-.015em}
.card-h h2{font-size:18px}
.hero2 h1{font-size:34px;font-weight:700;letter-spacing:-.03em}
.bname{font-weight:700;letter-spacing:-.01em}
.kpi .v{font-size:26px;font-weight:700;letter-spacing:-.025em}
.num,.kpi .v,.tbl td.n,.st b,.kn,.days b,.as b,.dd-tile b,.hg-v,.ring-in b,.lbig{font-variant-numeric:tabular-nums}
.st b,.ktype .kn,.dd-tile b,.as b,.days b,.hero-goal .ring-in b{font-weight:700;letter-spacing:-.02em}
.bc-h{font-weight:650;letter-spacing:-.015em}
.cc-logo{font-weight:700;letter-spacing:-.02em}
.lg-cn{font-weight:650;letter-spacing:-.01em}
#nav a{font-size:14.5px}
.btn{font-weight:600}
.pill,.kchip,.ktag{font-weight:600}
.hero-date,.eyebrow,#nav .ngrp{letter-spacing:.05em}
.bname{font-size:15.5px;white-space:nowrap}
.kpi .v{white-space:nowrap;font-size:24px}
.kpi .kv{min-width:0}.kpi .spark{flex-shrink:1;min-width:0;overflow:hidden}
.kpi .k{line-height:1.25}
