:root{
  --green:#175A33; --green-deep:#175A33; --green-ink:#175A33; --green-soft:#ffffff;
  --char:#3D3D3D; --muted:#7a8580; --orange:#F49C13; --orange-soft:#fdf0d9;
  --bg:#ffffff; --card:#ffffff; --line:#e3e9e5; --red:#c8433a; --red-soft:#fbe6e4;
  --radius:20px; --shadow:0 1px 2px rgba(0,0,0,.04),0 8px 24px rgba(0,0,0,.06);
  --font:'Montserrat',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
}
*{box-sizing:border-box;margin:0}
html,body{height:100%}
body{font-family:var(--font);background:var(--bg);color:var(--char);font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
h1,h2,h3{font-weight:700;letter-spacing:-.01em}
.num{font-variant-numeric:tabular-nums}

/* shell */
.shell{display:grid;grid-template-columns:260px 1fr;min-height:100vh;padding:14px;gap:14px;background:linear-gradient(135deg,var(--green) 0%,var(--green-deep) 60%,var(--green-ink) 100%)}
.side{background:rgba(0,0,0,.55);border:1px solid rgba(255,255,255,.07);border-radius:var(--radius);color:rgba(255,255,255,.75);padding:20px 14px;display:flex;flex-direction:column;gap:18px;position:sticky;top:14px;height:calc(100vh - 28px)}
.brand{display:flex;align-items:center;gap:10px;padding:0 8px 16px;border-bottom:1px solid rgba(255,255,255,.08)}
.logo-mark{width:34px;height:34px;border-radius:10px;background:var(--orange);display:grid;place-items:center;color:var(--green-ink);font-weight:800;font-size:18px;flex:none;overflow:hidden}
.logo-mark img{width:100%;height:100%;object-fit:contain}
.brand b{font-size:16px;color:#fff;display:block;line-height:1.1}
.brand small{font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.75)}
.workspace{background:rgba(255,255,255,.06);border-radius:14px;padding:10px 12px;display:flex;flex-direction:column}
.workspace small{font-size:10px;color:rgba(255,255,255,.75)}
.workspace b{font-size:13px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.navlabel{font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.75);padding:0 10px}
.nav{display:flex;flex-direction:column;gap:4px}
.nav button{display:flex;align-items:center;gap:12px;background:none;border:0;color:rgba(255,255,255,.75);padding:11px 12px;border-radius:12px;text-align:left;font-weight:500;width:100%}
.nav button:hover{background:rgba(255,255,255,.06)}
.nav button.on{background:rgba(255,255,255,.1);color:#fff;font-weight:600}
.nav .ic{width:30px;height:30px;border-radius:9px;background:rgba(255,255,255,.07);display:grid;place-items:center;flex:none}
.nav button.on .ic{background:var(--orange);color:var(--green-ink)}
.nav svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pill{margin-left:auto;font-size:10px;font-weight:700;padding:2px 8px;border-radius:99px;background:var(--orange);color:var(--green-ink)}
.pill.ok{background:#fff;color:#175A33}
.side .grow{flex:1}
.user{display:flex;gap:10px;align-items:center;padding:10px;border-radius:14px;background:rgba(255,255,255,.05)}
.avatar{width:36px;height:36px;border-radius:50%;background:var(--orange);color:var(--green-ink);font-weight:800;display:grid;place-items:center;flex:none}
.user b{display:block;color:#fff;font-size:13px}
.user small{color:rgba(255,255,255,.75);font-size:11px}

.main{background:var(--bg);border-radius:var(--radius);padding:28px;min-width:0;overflow:hidden}
.top{display:flex;align-items:center;gap:12px;margin-bottom:22px;flex-wrap:wrap}
.top h1{font-size:28px;flex:1;min-width:160px}
.top .sub{color:var(--muted);font-size:13px;font-weight:500;display:block;margin-top:2px}
.iconbtn.menu-btn{display:none}

/* controls */
.btn{border:0;border-radius:12px;padding:11px 18px;font-weight:600;background:var(--green);color:#fff;display:inline-flex;align-items:center;gap:8px;transition:transform .08s,background .15s}
.btn:hover{background:var(--green-deep)} .btn:active{transform:scale(.98)}
.btn.orange{background:var(--orange);color:#2a1a00} .btn.orange:hover{background:#e08d0a}
.btn.ghost{background:var(--card);color:var(--char);border:1px solid var(--line)} .btn.ghost:hover{background:#f3f6f4}
.btn.sm{padding:7px 12px;font-size:12px;border-radius:10px}
.btn.danger{background:var(--red-soft);color:var(--red)}
.btn:disabled{opacity:.5;cursor:not-allowed}
.iconbtn{width:42px;height:42px;border-radius:50%;border:1px solid var(--line);background:var(--card);display:grid;place-items:center}
input,select{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:11px 14px;width:100%;outline:none}
input:focus,select:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(23,90,51,.15)}
label{display:block;font-size:12px;font-weight:600;color:var(--muted);margin-bottom:6px}
.field{margin-bottom:14px}
.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}

/* cards */
.grid{display:grid;gap:16px}
.kpis{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:16px}
.card{background:var(--card);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow);border:1px solid var(--line);min-width:0}
.card.dark{background:linear-gradient(145deg,var(--green) 0%,var(--green-ink) 100%);color:#fff}
.card.tint{background:#fff}
.card h3{font-size:15px;margin-bottom:14px;display:flex;align-items:center;gap:8px}
.kpi small{color:var(--muted);font-weight:500;font-size:12px}
.card.dark .kpi small,.card.dark small{color:rgba(255,255,255,.75)}
.kpi .v{font-size:25px;font-weight:700;margin:6px 0 4px;letter-spacing:-.02em;white-space:nowrap}
.kpi .d{font-size:11px;font-weight:600;color:var(--green)}
.card.dark .d{color:#fff}
.two{grid-template-columns:2fr 1fr;margin-bottom:16px}
.trial-big{font-size:46px;font-weight:700;letter-spacing:-.03em;line-height:1}
.trial-big span{font-size:14px;color:var(--muted);font-weight:600;margin-left:6px}
.bar{height:8px;border-radius:99px;background:#e6e9e7;overflow:hidden;margin:14px 0}
.bar i{display:block;height:100%;background:var(--green);border-radius:99px}
.chart{display:flex;align-items:flex-end;gap:8px;height:190px;padding-top:10px}
.chart .col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:6px;min-width:0}
.chart .b{width:100%;max-width:38px;border-radius:8px 8px 3px 3px;background:var(--green);position:relative;transition:height .4s}
.chart .col.cur .b{background:var(--green)}
.chart .col:hover .b{background:var(--orange)}
.chart .col span{font-size:10px;color:var(--muted);font-weight:600}
.chart .tip{position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);background:var(--green-ink);color:#fff;font-size:10px;padding:3px 8px;border-radius:7px;white-space:nowrap;display:none;z-index:2}
.chart .col:hover .tip{display:block}
.empty{text-align:center;color:var(--muted);padding:34px 10px}
.empty b{display:block;color:var(--char);font-size:15px;margin-bottom:4px}

/* table */
.tablewrap{overflow-x:auto;margin:0 -4px}
table{width:100%;border-collapse:collapse;min-width:640px}
th{text-align:left;font-size:11px;color:var(--muted);font-weight:600;padding:8px 10px;white-space:nowrap}
td{padding:12px 10px;border-top:1px solid var(--line);white-space:nowrap}
td.r,th.r{text-align:right}
tfoot td{font-weight:700;background:#fff;border-top:2px solid var(--green)}
tr.clickable:hover td{background:#f6f8f6;cursor:pointer}
.tag{font-size:11px;font-weight:600;padding:4px 10px;border-radius:8px;background:var(--orange-soft);color:#8a5200}
.tag.g{background:#fff;border:1px solid var(--green);color:var(--green)}
.tag.r{background:var(--red-soft);color:var(--red)}
.tools{display:flex;gap:10px;align-items:center;margin-bottom:14px;flex-wrap:wrap}
.tools input{max-width:280px}
.tools .sp{flex:1}

/* modal */
.modal{position:fixed;inset:0;background:rgba(0,0,0,.55);backdrop-filter:blur(4px);display:grid;place-items:center;padding:16px;z-index:50}
.sheet{background:var(--card);border-radius:24px;padding:26px;width:100%;max-width:520px;max-height:92vh;overflow:auto;box-shadow:0 30px 80px rgba(0,0,0,.3)}
.sheet h2{font-size:20px;margin-bottom:4px}
.sheet .hint{color:var(--muted);font-size:12px;margin-bottom:18px}
.sheet .actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}
.preview{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;font-size:12px;display:grid;grid-template-columns:1fr auto;gap:5px 14px}
.preview b{text-align:right}
.check{display:flex;align-items:center;gap:10px;font-weight:600;font-size:13px;color:var(--char)}
.check input{width:18px;height:18px;accent-color:var(--green)}

/* auth */
.auth{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr;background:var(--card)}
.hero{background:linear-gradient(150deg,var(--green) 0%,var(--green-ink) 100%);color:#fff;padding:56px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}
.hero{gap:28px}
.hero::after{content:"";position:absolute;right:-120px;bottom:-120px;width:380px;height:380px;border-radius:50%;background:var(--orange);opacity:.14}
.hero h1{font-size:40px;line-height:1.1;margin:28px 0 16px;max-width:460px}
.hero p{color:rgba(255,255,255,.75);max-width:440px}
.hero ul{list-style:none;padding:0;margin-top:26px;display:grid;gap:12px}
.hero li{display:flex;gap:10px;align-items:center;font-weight:500}
.hero li::before{content:"✓";width:22px;height:22px;border-radius:50%;background:var(--orange);color:var(--green-ink);display:grid;place-items:center;font-size:12px;font-weight:800;flex:none}
.priceline{display:inline-flex;align-items:baseline;gap:6px;background:rgba(255,255,255,.1);padding:10px 18px;border-radius:14px;margin-top:6px;position:relative;z-index:1}
.priceline b{font-size:26px}
.formside{display:grid;place-items:center;padding:32px}
.formbox{width:100%;max-width:380px}
.formbox h2{font-size:26px;margin-bottom:6px}
.formbox .btn{width:100%;justify-content:center;padding:14px}
.fine{font-size:11px;color:var(--muted);margin-top:14px;text-align:center}

#toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,30px);background:var(--green-ink);color:#fff;padding:12px 20px;border-radius:14px;font-weight:600;opacity:0;pointer-events:none;transition:.25s;z-index:99}
#toast.show{opacity:1;transform:translate(-50%,0)}
.banner{background:var(--orange-soft);color:#8a5200;border-radius:14px;padding:12px 16px;margin-bottom:16px;display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-weight:600;font-size:13px}
.banner.red{background:var(--red-soft);color:var(--red)}
.banner .btn{margin-left:auto}
.plan{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.price{font-size:44px;font-weight:800;letter-spacing:-.03em}
.price small{font-size:14px;font-weight:600;color:var(--muted)}
.feat{list-style:none;padding:0;display:grid;gap:9px;margin:16px 0 20px}
.feat li::before{content:"✓ ";color:var(--green);font-weight:800}

/* payslip */
.payslip{background:#fff;color:#222;padding:30px;border-radius:12px}
.payslip .hd{display:flex;justify-content:space-between;border-bottom:3px solid var(--green);padding-bottom:12px;margin-bottom:16px}
.payslip table{min-width:0;font-size:13px}
.payslip td{border-top:1px solid #eee;padding:7px 4px}

/* responsive */
@media (max-width:1100px){.kpis{grid-template-columns:repeat(2,1fr)}.two{grid-template-columns:1fr}}
@media (max-width:860px){
  .shell{grid-template-columns:1fr;padding:0;background:var(--bg)}
  .side{position:fixed;inset:0 auto 0 0;width:270px;height:100%;border-radius:0 20px 20px 0;transform:translateX(-105%);transition:.25s;z-index:40;background:var(--green-ink)}
  .side.open{transform:none}
  .scrim{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:30}
  .main{border-radius:0;padding:18px 16px 90px}
  .iconbtn.menu-btn{display:grid}
  .top h1{font-size:22px}
  .auth{grid-template-columns:1fr}.hero{padding:32px 24px}.hero h1{font-size:28px}
  .plan{grid-template-columns:1fr}
  .row{grid-template-columns:1fr}
  .tabbar{display:flex}
}
.tabbar{display:none;position:fixed;left:12px;right:12px;bottom:12px;background:var(--green-ink);border-radius:20px;padding:8px;z-index:20;justify-content:space-around;box-shadow:0 10px 30px rgba(0,0,0,.3)}
.tabbar button{background:none;border:0;color:rgba(255,255,255,.75);display:flex;flex-direction:column;align-items:center;gap:3px;font-size:10px;font-weight:600;padding:6px 8px;border-radius:12px}
.tabbar button.on{color:#fff;background:rgba(255,255,255,.1)}
.tabbar svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

@media print{
  body *{visibility:hidden} .printable,.printable *{visibility:visible}
  .printable{position:absolute;inset:0;padding:0;background:#fff}
  .modal{background:none;backdrop-filter:none}
  .sheet{box-shadow:none;max-width:none;max-height:none}
  #toast{display:none}
}

.only-m{display:none}
@media (max-width:860px){.only-m{display:block}}

/* full payroll schedule */
.seg{display:inline-flex;background:#f1f3f2;border-radius:12px;padding:3px;gap:2px}
.seg button{border:0;background:none;padding:8px 14px;border-radius:10px;font-weight:600;font-size:12px;color:var(--muted)}
.seg button.on{background:var(--green);color:#fff}
.sched{max-height:62vh;overflow:auto;border:1px solid var(--line);border-radius:14px;margin:0}
table.wide{min-width:2300px;font-size:12.5px}
.wide thead th{position:sticky;top:0;background:#fff;z-index:2;vertical-align:bottom;border-bottom:2px solid var(--green);line-height:1.25}
.wide thead tr.grp th{top:0;font-size:10px;letter-spacing:.18em;color:var(--green);border-bottom:1px solid var(--line)}
.wide small{font-weight:500;color:var(--muted)}
.wide .stick{position:sticky;left:0;background:#fff;z-index:1;box-shadow:1px 0 0 var(--line)}
.wide thead th:first-child{left:0;z-index:3}
.wide tfoot td{position:sticky;bottom:0}
.wide td.b{font-weight:700}
.wide td.owe{color:var(--red);font-weight:700}
.cellin{width:120px;padding:6px 8px;text-align:right;border-radius:8px;font-size:12.5px}

/* ============ v3 layout – floating frame, ring stats, promo card ============ */
:root{--side:#175A33;--side2:rgba(255,255,255,.14);--page:#e9ecea;--panel:#f5f6f5}
body{background:radial-gradient(900px 520px at 108% 108%,rgba(23,90,51,.55),transparent 62%),radial-gradient(700px 420px at -6% -8%,rgba(255,255,255,.95),transparent 60%),var(--page);background-attachment:fixed}
.shell{display:grid;grid-template-columns:250px minmax(0,1fr);gap:0;max-width:1580px;margin:0 auto;padding:28px;min-height:100vh;background:none}
.side{position:sticky;top:28px;height:calc(100vh - 56px);border-radius:22px 0 0 22px;background:var(--side);border:0;padding:24px 16px;gap:14px;overflow:auto}
.brand{padding:0 6px 6px;border:0;display:block}
.company{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid rgba(255,255,255,.22);border-radius:12px;padding:10px 12px;background:transparent}
.company small{display:block;font-size:10px;color:rgba(255,255,255,.75)}
.company b{color:#fff;font-size:14px;display:block;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.plus{width:34px;height:34px;border-radius:50%;border:0;background:var(--orange);color:#2a1a00;font-size:22px;font-weight:700;line-height:1;display:grid;place-items:center;flex:none}
.plus:hover{background:#ffb02e}
.chg{text-align:center;color:var(--orange);font-size:12px;font-weight:600;text-decoration:none;margin:-4px 0 4px}
.chg:hover{text-decoration:underline}
.nav{gap:2px}
.nav button{padding:11px 12px;border-radius:10px;color:rgba(255,255,255,.75);font-weight:500;font-size:14px;gap:14px}
.nav button:hover{background:rgba(255,255,255,.05);color:#fff}
.nav button.on{background:var(--side2);color:#fff;font-weight:600}
.nav .ic{width:20px;height:20px;background:none!important;border-radius:0;color:rgba(255,255,255,.6)}
.nav button.on .ic{color:var(--orange)}
.nav svg{width:18px;height:18px}
.nav .navlabel{padding:18px 12px 8px;color:rgba(255,255,255,.6);font-size:12px;letter-spacing:0;text-transform:none}
.user{background:rgba(255,255,255,.05)}
.main{border-radius:0 22px 22px 0;background:var(--panel);padding:26px 30px 34px;min-height:calc(100vh - 56px);box-shadow:0 30px 70px rgba(0,0,0,.14)}
.top{align-items:flex-start;gap:16px;margin-bottom:24px}
.ttl{flex:1;min-width:0}
.top h1{font-size:26px;font-weight:500;flex:none;min-width:0;letter-spacing:-.01em}
.top h1 b{font-weight:700}
.ttl .sub{display:block;color:var(--muted);font-size:14px;font-weight:500;margin-top:6px}
.hl{color:var(--orange);font-weight:700}
.topr{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.iconbtn.sq{border-radius:12px;width:42px;height:42px;border:0;background:#fff;color:#7d8a83;position:relative;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.iconbtn.sq:hover{color:var(--green)}
.svgb svg,.search svg,.chead svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dot{position:absolute;top:8px;right:9px;width:9px;height:9px;border-radius:50%;background:var(--orange);border:2px solid #fff}
.search{display:flex;align-items:center;gap:8px;background:#fff;border-radius:12px;padding:0 14px;height:42px;color:#9aa59f;width:260px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.search input{border:0;background:none;padding:0;box-shadow:none!important;height:100%}
.card{border:0;border-radius:14px;box-shadow:0 1px 2px rgba(0,0,0,.04);background:#fff}
.sect{font-size:16px;font-weight:600;margin:0 0 12px}
.perf{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:20px}
.stat{background:#fff;border-radius:12px;padding:16px;display:flex;align-items:center;justify-content:space-between;gap:8px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.stat small{display:block;color:var(--muted);font-size:12px;font-weight:500}
.stat b{display:block;font-size:19px;font-weight:700;margin:6px 0 3px;letter-spacing:-.02em;white-space:nowrap}
.stat em{font-style:normal;font-size:11px;font-weight:600;color:var(--green)}
.stat em.warn{color:#d78305}.stat em.bad{color:var(--red)}
.ring{width:46px;height:46px;flex:none}
.dgrid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px}
.chead{display:flex;align-items:center;gap:12px;margin-bottom:6px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.chead h3{margin:0;font-size:15px;font-weight:600;flex:1}
.chead .ibox{width:34px;height:34px;border:1px solid var(--line);border-radius:8px;display:grid;place-items:center;color:#a2ada7;flex:none}
.chead .ico{color:#a2ada7;display:grid;border-left:1px solid var(--line);padding-left:12px;height:22px;align-items:center}
.sel{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:8px;padding:8px 12px;font-size:12px;color:var(--char);font-weight:500}
.sel svg{color:#a2ada7;width:16px;height:16px}
.ltabs{display:flex;gap:22px;padding:14px 2px 6px;overflow-x:auto}
.ltabs button{background:none;border:0;color:#8e9993;font-size:13px;font-weight:500;padding:4px 0;border-bottom:2px solid transparent}
.ltabs button.on{color:var(--green);font-weight:700;border-color:var(--orange)}
.chartwrap{position:relative}
#csvg{width:100%;height:auto;display:block}
.ctip{display:none;position:absolute;top:6px;width:180px;background:#fff;border-radius:10px;padding:10px 12px;font-size:11px;box-shadow:0 8px 24px rgba(0,0,0,.16);pointer-events:none;gap:4px;flex-direction:column}
.ctip b{display:block;margin-bottom:4px;font-size:12px}.ctip span{display:block;margin-top:2px;color:var(--muted)}
.legend{display:flex;gap:18px;font-size:11px;color:var(--muted);padding:2px 4px 0}
.legend i,.ctip i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px}
i.solid{background:var(--green)}i.dash{background:#c9d0cc}
.chartnote{font-size:12px;color:var(--muted);text-align:center;margin:-2px 0 8px}
.promo{position:relative;overflow:hidden;border-radius:14px;padding:22px;color:#fff;background:#175A33;display:flex;flex-direction:column;gap:16px}
.promo .rings{position:absolute;right:-90px;top:-70px;width:250px;height:250px;border-radius:50%;border:34px solid rgba(244,156,19,.92);box-shadow:inset 0 0 0 26px rgba(255,255,255,.14),0 0 0 26px rgba(255,255,255,.09);opacity:.9;filter:blur(.4px)}
.promo>*{position:relative}
.promo .rings{position:absolute}
.ph{display:flex;align-items:center;gap:12px}
.plogo{width:44px;height:44px;border-radius:12px;background:#fff;display:grid;place-items:center;overflow:hidden}
.plogo img{width:34px;height:34px;border-radius:8px}
.ph b{display:block;letter-spacing:.14em;font-size:14px}.ph small{color:rgba(255,255,255,.75);font-size:12px}
.promo h3{font-size:22px;line-height:1.2;max-width:230px;margin-top:10px}
.promo h3 .hl{color:#ffc15a}
.promo ul{list-style:none;padding:14px 0 0;border-top:1px solid rgba(255,255,255,.14);display:grid;gap:11px;font-size:13px;margin-top:auto}
.promo li::before{content:"+";display:inline-grid;place-items:center;width:18px;height:18px;margin-right:10px;border-radius:5px;background:rgba(244,156,19,.25);color:var(--orange);font-weight:800}
.btn.block{width:100%;justify-content:center;padding:14px;font-size:15px}
table.plain th{font-weight:500;padding:12px 10px}
table.plain td{padding:14px 10px;border-top:1px solid #eef1ef}
.who{display:flex;align-items:center;gap:12px}
.av{width:36px;height:36px;border-radius:9px;background:#f1f3f2;color:var(--green);font-weight:700;font-size:12px;display:grid;place-items:center;flex:none}
.who b{display:block;font-weight:600}.who small{color:var(--muted);font-size:11px}
.rate{color:var(--green);font-weight:700}
.linkbtn{background:none;border:0;color:var(--green);font-weight:600;padding:4px 8px;border-radius:6px}
.linkbtn:hover{background:#f1f3f2;text-decoration:underline}
.more{text-align:center;padding:12px 0 2px;border-top:1px solid #eef1ef}
.note{background:#fff7ea;border-left:3px solid var(--orange);padding:10px 12px;border-radius:8px;margin-bottom:8px;font-size:13px;font-weight:500}
.btn:not(.ghost):not(.orange):not(.danger){background:var(--green)}
.pill{background:var(--orange)}
.empty{padding:40px 10px}
@media (max-width:1280px){.perf{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:1100px){.dgrid{grid-template-columns:1fr}.promo{min-height:380px}.search{width:200px}}
@media (max-width:860px){
  .shell{display:block;padding:0}
  .side{position:fixed;top:0;left:0;height:100%;width:270px;border-radius:0 22px 22px 0;transform:translateX(-105%);z-index:40}
  .side.open{transform:none}
  .main{border-radius:0;box-shadow:none;padding:18px 16px 100px;min-height:100vh}
  .top{flex-wrap:wrap}.topr{width:100%;justify-content:flex-start}.search{flex:1;width:auto;min-width:150px}
  .top h1{font-size:21px}
  .perf{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:480px){.perf{grid-template-columns:1fr}}
.promo .rings{right:-135px;top:-115px;width:240px;height:240px;border-width:30px;box-shadow:inset 0 0 0 22px rgba(255,255,255,.14),0 0 0 22px rgba(255,255,255,.09)}
.promo .ph{padding-right:30px}

.promo .ph{flex-direction:column;align-items:flex-start;gap:8px;padding-right:0}
.pstat{color:rgba(255,255,255,.8);font-size:12px;font-weight:500}

.logout{display:flex;align-items:center;gap:10px;width:100%;background:transparent;border:1px solid rgba(255,255,255,.28);color:#fff;border-radius:12px;padding:10px 14px;font-weight:600;font-size:13px;justify-content:center}
.logout:hover{background:rgba(255,255,255,.12)}
.logout svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.autherr{color:var(--red);font-size:12px;font-weight:600;min-height:0;margin:-2px 0 12px}
.autherr:empty{display:none}
.formbox .fine .linkbtn{font-size:12px}

/* responsive two-card rows + amounts that always fit their card */
.two-up{grid-template-columns:repeat(2,minmax(0,1fr))}
.bignum{font-size:clamp(22px,2.6vw,34px);overflow-wrap:anywhere;line-height:1.1}
@media (max-width:760px){.two-up{grid-template-columns:minmax(0,1fr)}.bignum{font-size:clamp(24px,8vw,34px)}}
