
:root{
  --bg:#F4F6F8;--surface:#FFFFFF;--surface-2:#F9FAFB;--border:#E3E7EC;--border-strong:#CDD4DB;
  --text:#121A21;--text-2:#4A5763;--text-3:#7A8691;
  --primary:#0D5C6B;--primary-hover:#0A4B58;--primary-weak:#E7F2F4;--primary-text:#0D5C6B;
  --accent:#F2A20C;
  --ok:#137A55;--ok-bg:#E7F5EE;--warn:#9A5B00;--warn-bg:#FDF3E1;--bad:#B3261E;--bad-bg:#FCEBEA;
  --shadow:0 1px 2px rgba(16,24,40,.05);
  --r:12px;--r-sm:8px;
  box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);
  color-scheme:light;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#0F1418;--surface:#161D22;--surface-2:#1B242A;--border:#26313A;--border-strong:#35424C;
  --text:#E9EEF1;--text-2:#B2BDC5;--text-3:#87939C;
  --primary:#2FA3B5;--primary-hover:#45B4C5;--primary-weak:#173139;--primary-text:#6CC6D4;
  --ok:#5CC796;--ok-bg:#173328;--warn:#F0BE5A;--warn-bg:#3A2E15;--bad:#F08A80;--bad-bg:#3B1C1A;
  --shadow:none;color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0F1418;--surface:#161D22;--surface-2:#1B242A;--border:#26313A;--border-strong:#35424C;
  --text:#E9EEF1;--text-2:#B2BDC5;--text-3:#87939C;
  --primary:#2FA3B5;--primary-hover:#45B4C5;--primary-weak:#173139;--primary-text:#6CC6D4;
  --ok:#5CC796;--ok-bg:#173328;--warn:#F0BE5A;--warn-bg:#3A2E15;--bad:#F08A80;--bad-bg:#3B1C1A;
  --shadow:none;color-scheme:dark}
html{height:100%;scroll-padding-top:env(safe-area-inset-top,0px)}
*,*::before,*::after{box-sizing:inherit}
body{margin:0;min-height:100%;background:var(--bg);color:var(--text);
  font:15px/1.55 'Manrope',system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
svg{flex:none}

/* ---------- Shell ---------- */
.shell{display:grid;grid-template-columns:248px 1fr;min-height:100vh}
.side{position:sticky;top:env(safe-area-inset-top,0px);height:100vh;background:var(--surface);border-right:1px solid var(--border);
  display:flex;flex-direction:column;padding:20px 14px}
.brand{display:flex;align-items:center;gap:10px;padding:4px 8px 20px;background:none;border:0;cursor:pointer;text-align:left}
.mark{width:34px;height:34px;border-radius:9px;background:var(--text);display:grid;place-items:center;position:relative;overflow:hidden}
.mark::after{content:"";position:absolute;left:0;right:0;bottom:0;height:9px;background:var(--accent)}
.mark span{color:var(--surface);font-weight:800;font-size:16px;position:relative;top:-3px}
.brand b{display:block;font-weight:800;font-size:17px;letter-spacing:.06em}
.brand small{display:block;font-size:11.5px;color:var(--text-3);margin-top:-2px}
.side .cta{margin:0 4px 18px}
.nav{display:flex;flex-direction:column;gap:2px}
.nav a{display:flex;align-items:center;gap:11px;width:100%;padding:10px 12px;border:0;background:none;border-radius:var(--r-sm);
  color:var(--text-2);font-weight:600;cursor:pointer;text-align:left}
.nav a svg{width:19px;height:19px;color:var(--text-3)}
.nav a:hover{background:var(--surface-2)}
.nav a[aria-current="page"]{background:var(--primary-weak);color:var(--primary-text)}
.nav a[aria-current="page"] svg{color:var(--primary-text)}
.nav .count{margin-left:auto;font-size:12px;font-weight:700;background:var(--accent);color:#1b1300;border-radius:999px;padding:1px 8px}
.side .foot{margin-top:auto;border-top:1px solid var(--border);padding-top:14px}
.who{display:flex;align-items:center;gap:10px;padding:6px 8px 12px}
.avatar{width:34px;height:34px;border-radius:50%;background:var(--primary-weak);color:var(--primary-text);display:grid;place-items:center;font-weight:700;font-size:13px}
.who b{display:block;font-size:13.5px;line-height:1.3}
.who small{display:block;font-size:12px;color:var(--text-3)}
.seg{display:flex;background:var(--surface-2);border:1px solid var(--border);border-radius:10px;padding:3px;gap:2px}
.seg button{flex:1;border:0;background:none;border-radius:7px;padding:7px 10px;font-weight:600;font-size:13px;color:var(--text-2);cursor:pointer}
.seg button[aria-pressed="true"]{background:var(--surface);color:var(--text);box-shadow:0 1px 2px rgba(16,24,40,.12)}
.seglabel{font-size:11.5px;color:var(--text-3);margin:0 2px 6px;display:block}

.topbar{display:none}
.bottom{display:none}
.content{min-width:0}
main{max-width:1080px;margin:0 auto;padding:32px 32px 80px}

/* ---------- Type ---------- */
h1{font-size:26px;line-height:1.2;font-weight:750;letter-spacing:-.015em;margin:0}
h2{font-size:16px;font-weight:700;margin:0}
h3{font-size:15px;font-weight:700;margin:0}
p{margin:0}
.muted{color:var(--text-2)}.faint{color:var(--text-3)}
.sm{font-size:13.5px}.xs{font-size:12.5px}
.b{font-weight:700}
.pagehead{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:24px;flex-wrap:wrap}
.pagehead p{color:var(--text-2);margin-top:4px}
.crumb{display:inline-flex;align-items:center;gap:4px;border:0;background:none;padding:0;margin-bottom:12px;color:var(--text-2);font-weight:600;font-size:13.5px;cursor:pointer}
.crumb:hover{color:var(--text)}
.sechead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}

/* ---------- Components ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:42px;padding:0 16px;border-radius:var(--r-sm);
  border:1px solid var(--border-strong);background:var(--surface);color:var(--text);font-weight:650;font-size:14px;cursor:pointer;white-space:nowrap;box-shadow:var(--shadow)}
.btn:hover{background:var(--surface-2)}
.btn svg{width:17px;height:17px}
.btn.primary{background:var(--primary);border-color:var(--primary);color:#fff}
.btn.primary:hover{background:var(--primary-hover)}
.btn.ghost{border-color:transparent;background:none;box-shadow:none;color:var(--text-2)}
.btn.ghost:hover{background:var(--surface-2);color:var(--text)}
.btn.danger{color:var(--bad)}
.btn.sm{height:34px;padding:0 12px;font-size:13px}
.btn.lg{height:48px;padding:0 20px;font-size:15px}
.btn.full{width:100%}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);box-shadow:var(--shadow)}
.pad{padding:20px}
.badge{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 9px;border-radius:6px;font-size:12px;font-weight:700;white-space:nowrap;
  background:var(--surface-2);color:var(--text-2);border:1px solid var(--border)}
.badge svg{width:13px;height:13px}
.badge.ok{background:var(--ok-bg);color:var(--ok);border-color:transparent}
.badge.warn{background:var(--warn-bg);color:var(--warn);border-color:transparent}
.badge.bad{background:var(--bad-bg);color:var(--bad);border-color:transparent}
.badge.info{background:var(--primary-weak);color:var(--primary-text);border-color:transparent}
.dot{width:8px;height:8px;border-radius:50%;display:inline-block;background:var(--text-3)}
.dot.a{background:var(--accent)}.dot.ok{background:var(--ok)}.dot.p{background:var(--primary)}
.empty{text-align:center;padding:40px 20px;color:var(--text-2)}
.empty .ico{width:44px;height:44px;border-radius:12px;background:var(--surface-2);border:1px solid var(--border);display:grid;place-items:center;margin:0 auto 12px;color:var(--text-3)}
.notice{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:var(--r-sm);font-size:14px;background:var(--surface-2);border:1px solid var(--border)}
.notice svg{width:18px;height:18px;margin-top:1px}
.notice.ok{background:var(--ok-bg);color:var(--ok);border-color:transparent}
.notice.warn{background:var(--warn-bg);color:var(--warn);border-color:transparent}
.notice.bad{background:var(--bad-bg);color:var(--bad);border-color:transparent}

/* Stats */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:24px}
.stat{padding:16px 18px}
.stat .k{font-size:13px;color:var(--text-2);font-weight:600}
.stat .v{font-size:24px;font-weight:750;letter-spacing:-.01em;margin-top:4px}
.stat .h{font-size:12.5px;color:var(--text-3)}

/* Layout grids */
.g-main{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}
.stack>*+*{margin-top:16px}

/* Rows / tables */
.rows{list-style:none;margin:0;padding:0}
.rows>li+li{border-top:1px solid var(--border)}
.rowbtn{display:flex;align-items:center;gap:14px;width:100%;padding:14px 20px;border:0;background:none;text-align:left;cursor:pointer}
.rowbtn:hover{background:var(--surface-2)}
.rowbtn .grow{flex:1;min-width:0}
.rowbtn .t{font-weight:650;display:block}
.rowbtn .m{font-size:13px;color:var(--text-3);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chev{color:var(--text-3);width:18px;height:18px}
.tbl{width:100%;border-collapse:collapse;font-size:14px}
.tbl th{font-size:12px;font-weight:700;color:var(--text-3);text-align:left;padding:10px 20px;background:var(--surface-2);border-bottom:1px solid var(--border)}
.tbl td{padding:13px 20px;border-bottom:1px solid var(--border);vertical-align:middle}
.tbl tr:last-child td{border-bottom:0}
.tbl .num{text-align:right;white-space:nowrap}
.tbl tbody tr.click{cursor:pointer}
.tbl tbody tr.click:hover td{background:var(--surface-2)}
.tbl .t{font-weight:650}
.tbl .m{font-size:12.5px;color:var(--text-3)}
.tblwrap{overflow-x:auto;border-radius:var(--r)}
.kv{display:grid;grid-template-columns:1fr 1fr;gap:16px 20px}
.kv dt{font-size:12.5px;color:var(--text-3);font-weight:600}
.kv dd{margin:2px 0 0;font-weight:650;font-size:14px}
.kv.one{grid-template-columns:1fr}

/* How it works */
.how{counter-reset:h;list-style:none;margin:0;padding:0}
.how li{display:grid;grid-template-columns:28px 1fr;gap:12px;padding:10px 0}
.how li::before{counter-increment:h;content:counter(h);width:26px;height:26px;border-radius:50%;border:1px solid var(--border-strong);display:grid;place-items:center;font-size:12.5px;font-weight:700;color:var(--text-2)}
.how b{display:block;font-size:14px}
.how span{font-size:13px;color:var(--text-2)}

/* Forms */
.formcol{max-width:680px}
.wizard{display:flex;gap:8px;margin-bottom:20px}
.wizard div{flex:1}
.wizard i{display:block;height:4px;border-radius:2px;background:var(--border)}
.wizard div.on i{background:var(--primary)}
.wizard span{display:block;font-size:12.5px;font-weight:650;color:var(--text-3);margin-top:8px}
.wizard div.on span{color:var(--text)}
.field{display:flex;flex-direction:column;gap:6px}
.field>label,.lbl{font-size:13.5px;font-weight:650}
.hint{font-size:12.5px;color:var(--text-3)}
input[type=text],input[type=number],input[type=date],input[type=password],input[type=email],input[type=tel],select,textarea{width:100%;height:44px;padding:0 12px;border:1px solid var(--border-strong);border-radius:var(--r-sm);background:var(--surface);transition:border-color .15s,box-shadow .15s}
textarea{height:auto;min-height:88px;padding:10px 12px;resize:vertical}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-weak)}
.f2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.f3{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:14px}
.addon{display:flex}
.addon input{border-top-right-radius:0;border-bottom-right-radius:0}
.addon span{display:flex;align-items:center;padding:0 12px;border:1px solid var(--border-strong);border-left:0;border-radius:0 var(--r-sm) var(--r-sm) 0;background:var(--surface-2);color:var(--text-2);font-size:13.5px;font-weight:600;white-space:nowrap}
.tabs{display:flex;gap:6px;flex-wrap:wrap}
.tabs button{height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--border-strong);background:var(--surface);font-weight:650;font-size:13.5px;color:var(--text-2);cursor:pointer}
.tabs button[aria-pressed="true"]{background:var(--primary-weak);border-color:var(--primary);color:var(--primary-text)}
.itemcard{padding:18px}
.itemcard+.itemcard{margin-top:12px}
.itemhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.check{display:flex;align-items:center;gap:10px;cursor:pointer;font-size:14px}
.check input{width:18px;height:18px;accent-color:var(--primary)}
.actions{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:20px;padding-top:20px;border-top:1px solid var(--border)}

/* Comparison */
.summary{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:16px}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.toolbar .l{display:flex;align-items:center;gap:10px}
.toolbar select{height:36px;width:auto;padding:0 32px 0 10px;font-size:13.5px;font-weight:600}
.cmpwrap{overflow-x:auto}
.cmp{width:100%;border-collapse:separate;border-spacing:0;font-size:14px;min-width:640px}
.cmp th,.cmp td{padding:13px 16px;border-bottom:1px solid var(--border);vertical-align:top;text-align:left}
.cmp thead th{vertical-align:bottom;padding-top:18px;padding-bottom:16px}
.cmp tbody th{font-weight:600;color:var(--text-2);width:190px;font-size:13.5px}
.cmp tbody th small{display:block;font-weight:500;color:var(--text-3);font-size:12px}
.cmp td.best,.cmp th.best{background:color-mix(in srgb,var(--primary-weak) 55%,transparent)}
.cmp thead th.best{box-shadow:inset 0 3px 0 var(--primary)}
.cmp tr.grp th{background:var(--surface-2);font-size:12px;color:var(--text-3);font-weight:700;padding:8px 16px}
.cmp tr:last-child th,.cmp tr:last-child td{border-bottom:0}
.sname{font-weight:700;font-size:15px;color:var(--text);display:block;margin-bottom:6px}
.smeta{display:flex;gap:10px;flex-wrap:wrap;font-size:12.5px;color:var(--text-3);font-weight:500;margin-top:8px}
.smeta span{display:inline-flex;align-items:center;gap:3px}
.smeta svg{width:13px;height:13px}
.amt{font-size:20px;font-weight:800;letter-spacing:-.01em;color:var(--text)}
.sub2{font-size:12.5px;color:var(--text-3);margin-top:2px}
.up{color:var(--text-2);font-size:12.5px;font-weight:650;margin-top:4px}
.notq{color:var(--text-3);font-style:italic}
.flags{display:flex;gap:6px;flex-wrap:wrap}
.qcards{display:none}
.qcard{padding:18px}
.qcard+.qcard{margin-top:12px}
.qcard.best{border-color:var(--primary);box-shadow:0 0 0 1px var(--primary)}
.qcard .top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.qcard .price{margin:14px 0;padding:14px;border-radius:var(--r-sm);background:var(--surface-2)}
.qcard .lines{font-size:13.5px;margin:12px 0;border-top:1px solid var(--border)}
.qcard .lines div{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--border)}

/* Order stepper */
.stepper{display:flex;align-items:flex-start;margin:4px 0 24px;padding:20px;gap:0}
.stepper .s{flex:1;display:flex;flex-direction:column;align-items:center;text-align:center;position:relative;font-size:12.5px;font-weight:650;color:var(--text-3)}
.stepper .s::before{content:"";position:absolute;top:13px;left:-50%;right:50%;height:2px;background:var(--border)}
.stepper .s:first-child::before{display:none}
.stepper .s.done::before,.stepper .s.now::before{background:var(--primary)}
.stepper .c{width:28px;height:28px;border-radius:50%;border:2px solid var(--border-strong);background:var(--surface);display:grid;place-items:center;position:relative;z-index:1;margin-bottom:8px}
.stepper .s.done .c{background:var(--primary);border-color:var(--primary);color:#fff}
.stepper .s.now .c{border-color:var(--primary);box-shadow:0 0 0 4px var(--primary-weak)}
.stepper .s.now .c::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--primary)}
.stepper .s.done,.stepper .s.now{color:var(--text)}
.stepper svg{width:14px;height:14px}
.timeline{list-style:none;margin:0;padding:0}
.timeline li{position:relative;padding:0 0 16px 22px}
.timeline li::before{content:"";position:absolute;left:4px;top:6px;width:8px;height:8px;border-radius:50%;background:var(--primary)}
.timeline li::after{content:"";position:absolute;left:7.5px;top:16px;bottom:0;width:1px;background:var(--border)}
.timeline li:last-child{padding-bottom:0}.timeline li:last-child::after{display:none}
.stars{display:flex;gap:6px}
.stars button{width:42px;height:42px;border-radius:var(--r-sm);border:1px solid var(--border-strong);background:var(--surface);cursor:pointer;color:var(--text-3);display:grid;place-items:center}
.stars button svg{width:20px;height:20px}
.stars button.on{color:var(--accent);border-color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,transparent)}

/* Modal, toast */
.scrim{position:fixed;inset:0;z-index:60;background:rgba(12,18,22,.5);display:flex;align-items:center;justify-content:center;padding:16px}
.dialog{width:100%;max-width:460px;padding:24px}
.dialog .actions{border-top:0;padding-top:0;justify-content:flex-end}
.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,8px);z-index:70;background:var(--text);color:var(--surface);padding:11px 16px;border-radius:10px;font-weight:600;font-size:14px;
  display:flex;gap:8px;align-items:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:calc(100% - 32px)}
.toast.show{opacity:1;transform:translate(-50%,0)}
.toast svg{width:18px;height:18px;color:var(--ok)}
.demo{font-size:12.5px;color:var(--text-3);margin-top:40px;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.demo button{border:0;background:none;padding:0;color:var(--primary-text);font-weight:650;cursor:pointer;font-size:12.5px}

/* ---------- Responsive ---------- */
@media (max-width:1100px){.g-main{grid-template-columns:minmax(0,1fr)}}
.g-main>*{min-width:0}
@media (max-width:1023px){
  .shell{display:block}
  .side{display:none}
  .topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;z-index:30;background:var(--surface);
    border-bottom:1px solid var(--border);padding:10px 16px;padding-top:calc(10px + env(safe-area-inset-top,0px));margin-top:calc(-1 * env(safe-area-inset-top,0px))}
  .topbar .brand{padding:0}
  .topbar .seg{width:auto}
  .bottom{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:30;background:var(--surface);border-top:1px solid var(--border);padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px))}
  .bottom a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;border:0;background:none;padding:6px 2px;font-size:11.5px;font-weight:650;color:var(--text-3);cursor:pointer;border-radius:10px}
  .bottom a svg{width:22px;height:22px}
  .bottom a[aria-current="page"]{color:var(--primary-text)}
  .bottom a.new span.ic{width:40px;height:40px;border-radius:12px;background:var(--primary);color:#fff;display:grid;place-items:center;margin-top:-2px}
  main{padding:20px 16px 110px}
  .toast{bottom:calc(84px + env(safe-area-inset-bottom,0px))}
}
@media (max-width:760px){
  h1{font-size:22px}
  .stats{grid-template-columns:1fr 1fr;gap:10px}
  .stat{padding:14px}
  .stat .v{font-size:20px}
  .summary{grid-template-columns:1fr 1fr;gap:10px}
  .summary .stat:first-child{display:none}
  .summary .stat .v{font-size:16px}
  .f3{grid-template-columns:1fr 1fr}
  .f3 .field:first-child{grid-column:1/-1}
  .cmpwrap{display:none}
  .qcards{display:block}
  .tbl .hide-m{display:none}
  .pagehead .btn{display:none}
  .pagehead .btn.keep{display:inline-flex;width:100%}
  .pagehead>div{width:100%}
  .rowbtn{padding:14px 16px}
  .tbl th,.tbl td{padding-left:16px;padding-right:16px}
  .btn{height:44px}
  .btn.sm{height:36px}
}
@media (max-width:520px){.f3{grid-template-columns:1fr}}
@media (max-width:420px){.f2{grid-template-columns:1fr}.seg button{padding:7px 8px}}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* ---------- Public homepage ---------- */
.pw{max-width:1160px;margin:0 auto;padding:0 32px}
.phead{position:sticky;top:0;z-index:30;background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:blur(8px);border-bottom:1px solid var(--border);padding-top:env(safe-area-inset-top,0px)}
.phead .pw{display:flex;align-items:center;gap:28px;height:68px}
.phead nav{display:flex;gap:4px;flex:1}
.phead nav a{color:var(--text-2);text-decoration:none;font-weight:600;font-size:14px;padding:8px 12px;border-radius:8px}
.phead nav a:hover{color:var(--text);background:var(--surface-2)}
.phead .r{display:flex;gap:8px;margin-left:auto}
.hero2{padding:72px 0 64px;background:linear-gradient(180deg,var(--surface) 0%,var(--bg) 100%);border-bottom:1px solid var(--border)}
.hero2 .pw{display:grid;grid-template-columns:1.05fr 1fr;gap:56px;align-items:center}
.hero2 h1{font-size:46px;line-height:1.08;letter-spacing:-.03em;font-weight:800;max-width:18ch}
.hero2 .lede{font-size:18px;color:var(--text-2);margin:20px 0 32px;max-width:46ch;line-height:1.6}
.hero2 .ctas{display:flex;gap:12px;flex-wrap:wrap}
.hero2 .assure{display:flex;gap:20px;flex-wrap:wrap;margin-top:28px;font-size:13.5px;color:var(--text-2);font-weight:600}
.hero2 .assure span{display:inline-flex;align-items:center;gap:6px}
.hero2 .assure svg{width:16px;height:16px;color:var(--ok)}
.preview{padding:0;overflow:hidden;box-shadow:0 24px 48px -16px rgba(16,24,40,.18),0 2px 6px rgba(16,24,40,.06)}
.preview .ph{padding:18px 20px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;gap:10px}
.preview .ph b{display:block;font-size:15px}
.preview .ph small{color:var(--text-3);font-size:12.5px}
.prow{display:grid;grid-template-columns:1fr auto;gap:4px 16px;padding:14px 20px;border-bottom:1px solid var(--border);align-items:center}
.prow:last-of-type{border-bottom:0}
.prow.low{background:color-mix(in srgb,var(--primary-weak) 60%,transparent);box-shadow:inset 3px 0 0 var(--primary)}
.prow .n{font-weight:700;font-size:14px}
.prow .t{font-weight:800;font-size:17px;text-align:right}
.prow .d{font-size:12.5px;color:var(--text-3);display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.prow .e{font-size:12.5px;color:var(--text-3);text-align:right}
.preview .pf{padding:12px 20px;background:var(--surface-2);border-top:1px solid var(--border);font-size:12.5px;color:var(--text-3)}
.band{padding:22px 0;border-bottom:1px solid var(--border);background:var(--surface)}
.band .pw{display:flex;gap:12px 36px;flex-wrap:wrap;align-items:center;justify-content:space-between;font-size:14px;color:var(--text-2);font-weight:600}
.band b{color:var(--text)}
.psec{padding:80px 0}
.psec.alt{background:var(--surface);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.shead{max-width:640px;margin-bottom:40px}
.shead h2{font-size:32px;line-height:1.15;letter-spacing:-.02em;font-weight:800}
.shead p{font-size:16.5px;color:var(--text-2);margin-top:12px;line-height:1.6}
.flow{display:grid;grid-template-columns:repeat(5,1fr);gap:0;list-style:none;margin:0;padding:0;counter-reset:f}
.flow li{position:relative;padding:0 20px 0 0}
.flow li::before{counter-increment:f;content:counter(f);display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--surface);border:2px solid var(--primary);color:var(--primary-text);font-weight:800;margin-bottom:16px;position:relative;z-index:1}
.flow li::after{content:"";position:absolute;top:20px;left:40px;right:0;height:2px;background:var(--border)}
.flow li:last-child::after{display:none}
.flow b{display:block;font-size:15.5px;margin-bottom:4px}
.flow span{font-size:14px;color:var(--text-2);line-height:1.55}
.three{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.aud{padding:26px}
.aud .ic{width:44px;height:44px;border-radius:11px;background:var(--primary-weak);color:var(--primary-text);display:grid;place-items:center;margin-bottom:18px}
.aud .ic svg{width:22px;height:22px}
.aud h3{font-size:17px;margin-bottom:8px}
.aud p{color:var(--text-2);font-size:14.5px;line-height:1.6}
.aud ul{margin:16px 0 0;padding:0;list-style:none;font-size:14px}
.aud li{display:flex;gap:8px;padding:5px 0}
.aud li svg{width:16px;height:16px;color:var(--ok);margin-top:3px}
.catgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.cat{padding:24px}
.cat .top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px}
.cat h3{font-size:18px}
.cat p{font-size:14px;color:var(--text-2)}
.soon{margin-top:20px;font-size:14px;color:var(--text-2)}
.soon span{display:inline-block;margin:4px 6px 0 0}
.trust{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.tier{padding:24px;position:relative}
.tier .lv{font-size:12.5px;font-weight:700;color:var(--text-3);margin-bottom:10px}
.tier h3{font-size:17px;display:flex;align-items:center;gap:8px;margin-bottom:10px}
.tier h3 svg{width:20px;height:20px;color:var(--primary-text)}
.tier ul{margin:0;padding:0 0 0 18px;font-size:14px;color:var(--text-2);line-height:1.7}
.supband{background:var(--text);color:var(--surface);border-radius:20px;padding:48px;display:grid;grid-template-columns:1.2fr 1fr;gap:40px;align-items:center}
.supband h2{font-size:30px;line-height:1.15;letter-spacing:-.02em;font-weight:800;color:var(--surface)}
.supband p{color:color-mix(in srgb,var(--surface) 72%,transparent);margin-top:12px;font-size:16px;line-height:1.6}
.supband ul{list-style:none;margin:0;padding:0;font-size:15px}
.supband li{display:flex;gap:10px;padding:8px 0;border-bottom:1px solid color-mix(in srgb,var(--surface) 15%,transparent)}
.supband li:last-child{border-bottom:0}
.supband li svg{width:18px;height:18px;color:var(--accent);margin-top:3px}
.supband .btn.light{background:var(--surface);color:var(--text);border-color:var(--surface);margin-top:24px}
.faq{max-width:760px}
.faq details{border-bottom:1px solid var(--border);padding:4px 0}
.faq summary{list-style:none;cursor:pointer;padding:18px 0;font-weight:700;font-size:16px;display:flex;justify-content:space-between;gap:16px;align-items:center}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:22px;font-weight:500;color:var(--text-3);line-height:1}
.faq details[open] summary::after{content:"−"}
.faq details p{color:var(--text-2);padding:0 0 18px;max-width:64ch;line-height:1.65}
.final{text-align:center;padding:80px 0}
.final h2{font-size:36px;letter-spacing:-.02em;font-weight:800;max-width:20ch;margin:0 auto}
.final p{color:var(--text-2);margin:14px auto 28px;max-width:52ch;font-size:16.5px}
.final .ctas{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.pfoot{border-top:1px solid var(--border);background:var(--surface);padding:40px 0 calc(40px + env(safe-area-inset-bottom,0px));font-size:13.5px;color:var(--text-2)}
.pfoot .pw{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:32px}
.pfoot h4{font-size:13px;color:var(--text);margin:0 0 10px}
.pfoot a{display:block;color:var(--text-2);text-decoration:none;padding:3px 0}
.pfoot a:hover{color:var(--text)}
.pfoot .legal{grid-column:1/-1;border-top:1px solid var(--border);padding-top:20px;margin-top:8px;font-size:12.5px;color:var(--text-3);display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.signout{border:0;background:none;color:var(--text-3);font-weight:600;font-size:12.5px;cursor:pointer;padding:8px 2px 0}
.signout:hover{color:var(--text)}
@media (max-width:1023px){
  .phead nav{display:none}
  .hero2 .pw{grid-template-columns:1fr;gap:40px}
  .flow{grid-template-columns:1fr;gap:20px}
  .flow li{display:grid;grid-template-columns:40px 1fr;gap:0 16px;padding:0}
  .flow li::before{margin:0;grid-row:span 2}
  .flow li::after{top:40px;left:19px;width:2px;height:calc(100% - 20px);right:auto}
  .three,.catgrid,.trust{grid-template-columns:1fr}
  .supband{grid-template-columns:1fr;padding:32px}
  .pfoot .pw{grid-template-columns:1fr 1fr}
}
@media (max-width:760px){
  .pw{padding:0 18px}
  .phead .pw{height:60px;gap:12px}
  .phead .r .btn.primary{display:none}
  .hero2{padding:40px 0}
  .hero2 h1{font-size:34px}
  .hero2 .lede{font-size:16px}
  .hero2 .ctas .btn{width:100%}
  .psec{padding:56px 0}
  .shead h2,.final h2{font-size:26px}
  .supband h2{font-size:24px}
  .final .ctas .btn{width:100%}
}

/* ===== Production additions ===== */
a{color:var(--primary-text)}
.i{width:19px;height:19px;flex:none}
.btn .i{width:17px;height:17px}
a.btn{text-decoration:none}
.brand{text-decoration:none;color:var(--text)}
.nav a{display:flex;align-items:center;gap:11px;width:100%;padding:10px 12px;border-radius:var(--r-sm);color:var(--text-2);font-weight:600;text-decoration:none}
.nav a .i{color:var(--text-3)}
.nav a[aria-current="page"] .i{color:var(--primary-text)}
.side{overflow-y:auto}
.side .foot form{margin-top:6px}
.flash{margin-bottom:16px}
.tb-r{display:flex;align-items:center;gap:6px}
.iconbtn{position:relative;width:40px;height:40px;border-radius:10px;display:grid;place-items:center;color:var(--text-2)}
.iconbtn:hover{background:var(--surface-2)}
.pip{position:absolute;top:8px;right:9px;width:8px;height:8px;border-radius:50%;background:var(--accent);border:2px solid var(--surface)}
.menu{position:relative}
.menu summary{list-style:none;cursor:pointer}
.menu summary::-webkit-details-marker{display:none}
.menu-pop{position:absolute;right:0;top:46px;width:240px;padding:8px;z-index:50;box-shadow:0 12px 32px rgba(16,24,40,.16)}
.menu-pop .who{padding:8px 10px 10px;border-bottom:1px solid var(--border);margin-bottom:6px}
.menu-pop a,.menu-pop button{display:flex;align-items:center;gap:10px;width:100%;padding:10px;border-radius:8px;color:var(--text);text-decoration:none;font-weight:600;font-size:14px;border:0;background:none;cursor:pointer}
.menu-pop a:hover,.menu-pop button:hover{background:var(--surface-2)}
.bottom a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 2px;font-size:11.5px;font-weight:650;color:var(--text-3);text-decoration:none;border-radius:10px}
.bottom a .i{width:22px;height:22px}
.bottom .ii{position:relative;display:grid;place-items:center}
.bottom .ii .pip{top:-2px;right:-6px}
.bottom a[aria-current="page"]{color:var(--primary-text)}
.bottom a.new .ic{width:40px;height:40px;border-radius:12px;background:var(--primary);color:#fff;display:grid;place-items:center;margin-top:-2px}
.bottom a.new .ic .i{width:22px;height:22px}
.badge .i{width:13px;height:13px}
.notice .i{width:18px;height:18px;margin-top:1px}
.empty .ico .i{width:22px;height:22px}
.smeta .i{width:13px;height:13px}
.stepper .c .i{width:14px;height:14px}
.stars button .i{width:20px;height:20px}
.err{color:var(--bad);font-size:12.5px;font-weight:600}
input.invalid,select.invalid{border-color:var(--bad)}
.auth{min-height:calc(100vh - 69px);display:grid;place-items:center;padding:40px 16px;background:var(--bg)}
.auth .card{width:100%;max-width:440px;padding:28px}
.auth h1{font-size:24px;margin-bottom:6px}
.auth .sub{color:var(--text-2);margin-bottom:22px}
.auth .alt{text-align:center;font-size:14px;color:var(--text-2);margin-top:18px}
.roles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.roles label{border:1.5px solid var(--border-strong);border-radius:var(--r-sm);padding:12px;cursor:pointer;display:flex;flex-direction:column;gap:2px}
.roles input{position:absolute;opacity:0;pointer-events:none}
.roles label:has(input:checked){border-color:var(--primary);background:var(--primary-weak)}
.roles b{font-size:14px}.roles span{font-size:12.5px;color:var(--text-2)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips label{position:relative}
.chips input{position:absolute;opacity:0}
.chips span{display:inline-flex;align-items:center;height:36px;padding:0 14px;border:1px solid var(--border-strong);border-radius:999px;font-size:13.5px;font-weight:650;color:var(--text-2);cursor:pointer;background:var(--surface)}
.chips input:checked+span{background:var(--primary-weak);border-color:var(--primary);color:var(--primary-text)}
.chips input:focus-visible+span{outline:2px solid var(--primary);outline-offset:2px}
.photos{display:flex;gap:8px;flex-wrap:wrap}
.photos a{display:block;width:84px;height:84px;border-radius:8px;overflow:hidden;border:1px solid var(--border)}
.photos img{width:100%;height:100%;object-fit:cover}
.filter{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}
.filter a{height:34px;padding:0 12px;border-radius:999px;border:1px solid var(--border-strong);display:inline-flex;align-items:center;font-size:13px;font-weight:650;color:var(--text-2);text-decoration:none;background:var(--surface)}
.filter a[aria-current="true"]{background:var(--primary-weak);border-color:var(--primary);color:var(--primary-text)}
.inline-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.inline-form select{height:36px;width:auto;font-size:13px}
.itemrow-remove{display:none}
.itemcard.multi .itemrow-remove{display:inline-flex}
.notif{display:flex;gap:12px;padding:14px 20px;align-items:flex-start;text-decoration:none;color:var(--text)}
.notif.unread{background:color-mix(in srgb,var(--primary-weak) 50%,transparent)}
.notif .when{font-size:12px;color:var(--text-3);margin-left:auto;white-space:nowrap}
.hide-s{}
@media (max-width:760px){
  .hide-s{display:none!important}
  /* Tables become stacked cards on phones */
  .tbl.cards thead{display:none}
  .tbl.cards,.tbl.cards tbody,.tbl.cards tr,.tbl.cards td{display:block;width:100%}
  .tbl.cards tr{padding:12px 16px;border-bottom:1px solid var(--border)}
  .tbl.cards tr:last-child{border-bottom:0}
  .tbl.cards td{border:0;padding:3px 0;display:flex;justify-content:space-between;gap:12px;text-align:right}
  .tbl.cards td::before{content:attr(data-label);color:var(--text-3);font-size:12.5px;font-weight:600;text-align:left}
  .tbl.cards td.lead{display:block;text-align:left;padding-bottom:6px}
  .tbl.cards td.lead::before{display:none}
  .tbl.cards td.num{text-align:right}
  .tbl.cards td:empty{display:none}
  .roles{grid-template-columns:1fr}
  .auth{padding:20px 12px;align-items:start}
  .auth .card{padding:22px}
  .actions{position:sticky;bottom:calc(64px + env(safe-area-inset-bottom,0px));background:var(--bg);margin-left:-16px;margin-right:-16px;padding:12px 16px;z-index:5}
  .actions .btn.lg{flex:1}
  .kv{grid-template-columns:1fr 1fr}
  .stepper{padding:16px 8px}
  .stepper .s{font-size:10.5px}
  .menu-pop{width:220px}
}
body.public .actions{position:static}
.credit-pill{display:flex;align-items:center;gap:8px;margin:0 4px 6px;padding:9px 12px;border-radius:10px;background:var(--primary-weak);color:var(--primary-text);text-decoration:none;font-size:13px;font-weight:650}
.credit-pill b{margin-left:auto}
.credit-pill.low{background:var(--bad-bg);color:var(--bad)}
.balance{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap}
.balance .v{font-size:34px;font-weight:800;letter-spacing:-.02em;line-height:1.1}
.paybox{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--r-sm);padding:12px 14px;font-size:14px}
.paybox b{display:block;font-size:12.5px;color:var(--text-3);margin-bottom:2px}
.amt-pos{color:var(--ok);font-weight:700}.amt-neg{color:var(--text);font-weight:700}
/* Homepage hero photo with floating quote card */
.hero2.with-photo .pw{grid-template-columns:1fr 1.12fr;gap:48px}
.hero-media{position:relative;padding:0 0 56px 56px}
.hero-media .photo{position:relative;border-radius:22px;overflow:hidden;aspect-ratio:5/4;background:var(--surface-2);box-shadow:0 30px 60px -24px rgba(16,24,40,.35)}
.hero-media .photo::after{content:"";position:absolute;inset:0;background:linear-gradient(210deg,transparent 50%,rgba(10,20,26,.35));pointer-events:none}
.hero-media .photo img{width:100%;height:100%;object-fit:cover;display:block}
.hero-media .preview.float{position:absolute;left:0;bottom:0;width:min(330px,62%);z-index:2;box-shadow:0 24px 48px -12px rgba(16,24,40,.38),0 2px 8px rgba(16,24,40,.08)}
.preview.float .ph{padding:12px 14px}
.preview.float .ph b{font-size:13.5px}
.preview.float .ph small{font-size:12px}
.preview.float .prow{padding:9px 14px;gap:2px 12px}
.preview.float .prow .n{font-size:13.5px}
.preview.float .prow .t{font-size:15px}
.preview.float .prow .d span:not(.badge),.preview.float .prow .d .badge.warn{display:none}
.preview.float .prow .e{font-size:12px}
.preview.float .pf{display:none}
.preview.mini{position:absolute;left:0;bottom:0;width:min(280px,75%);font-size:13px}
.preview.mini .ph{padding:10px 12px}.preview.mini .prow{padding:9px 12px}
@media (max-width:1023px){
  .hero2.with-photo .pw{grid-template-columns:1fr}
  .hero-media{padding:0}
  .hero-media .preview.float{position:relative;left:auto;bottom:auto;width:auto;max-width:420px;margin:-64px 16px 0}
}
@media (max-width:760px){
  .hero-media .photo{border-radius:16px;aspect-ratio:3/2}
  .hero-media .preview.float{margin:-44px 10px 0}
}
.chipgroup{display:flex;flex-direction:column;gap:6px}
.chipgroup+.chipgroup{margin-top:10px}
.acts{display:flex;gap:2px;justify-content:flex-end;flex-wrap:nowrap;align-items:center}
.acts .btn.sm{height:32px;padding:0 10px}
.tbl td.acts-cell{white-space:nowrap;width:1%}
.tbl td.lead{min-width:170px}
@media (max-width:760px){.tbl.cards td.acts-cell{width:100%;justify-content:flex-end}.tbl.cards td.acts-cell::before{display:none}}
.g-two{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}
@media (max-width:900px){.g-two{grid-template-columns:minmax(0,1fr)}}
body.quick .bottom{display:none}
@media (max-width:760px){body.quick .actions{bottom:env(safe-area-inset-bottom,0px)} body.quick main{padding-bottom:40px}}
.pfoot .powered{color:var(--text-2)}
.pfoot .powered b{color:var(--text)}
.appfoot{margin-top:40px;padding-top:16px;border-top:1px solid var(--border);font-size:12.5px;color:var(--text-3);text-align:center}
.appfoot b{color:var(--text-2);font-weight:650}
.pfoot a.brand{display:inline-flex;align-items:center;gap:10px;color:var(--text)}
