/* ===== CUBIE FX — PROFILE ===== */
:root{
  --bg:#05070E;
  --card:#0C1020;
  --card2:#10152A;
  --line:rgba(255,255,255,.07);
  --line2:rgba(255,255,255,.13);
  --ink:#EDF0F8;
  --muted:#98A0B6;
  --muted2:#666E85;
  --pu:#7C5CFF;
  --bl:#4A8CFF;
  --grad:linear-gradient(100deg,#5B5BF5,#7C5CFF);
  --green:#22C55E;
  --red:#EF4444;
  --orange:#F59E0B;
  --wrap:1400px;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);
  font-family:"Inter",system-ui,sans-serif;font-size:14px;line-height:1.6;
  -webkit-font-smoothing:antialiased;overflow-x:hidden}
h1,h2,h3,h4,b,strong{font-family:"Manrope",system-ui,sans-serif;letter-spacing:-.02em;margin:0}
a{color:inherit;text-decoration:none}
p{margin:0}
:focus-visible{outline:2px solid var(--pu);outline-offset:2px;border-radius:8px}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-thumb{background:rgba(255,255,255,.09);border-radius:8px}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 22px}
.up{color:var(--green)}.down{color:var(--red)}
.gt{background:linear-gradient(100deg,#6C8CFF,#A78BFA);-webkit-background-clip:text;background-clip:text;color:transparent}

/* NAV */
.nav{position:sticky;top:0;z-index:60;background:rgba(5,7,14,.92);backdrop-filter:blur(20px);border-bottom:1px solid var(--line)}
.nav-in{display:flex;align-items:center;height:66px;gap:16px}
.logo{display:flex;align-items:center;gap:10px}
.logo img{width:30px;height:30px;object-fit:contain}
.logo span{font-family:"Manrope",sans-serif;font-weight:800;font-size:18px}
.logo b{color:var(--bl)}
.nlinks{display:flex;align-items:center;gap:26px;margin:0 auto;font-size:13.5px;font-weight:500;color:var(--muted)}
.nlinks a{position:relative;padding:6px 0}
.nlinks a:hover{color:var(--ink)}
.nlinks a.on{color:var(--ink);font-weight:600}
.nlinks a.on::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;border-radius:2px;background:var(--grad)}
.nright{display:flex;align-items:center;gap:10px}
.iconbtn{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;color:var(--muted);
  background:none;border:0;cursor:pointer;position:relative;flex:none}
.iconbtn:hover{color:var(--ink);background:rgba(255,255,255,.05)}
.iconbtn svg{width:18px;height:18px}
.iconbtn .dot{position:absolute;top:5px;right:6px;width:7px;height:7px;border-radius:50%;background:var(--red)}
.who{display:flex;align-items:center;gap:9px;padding:5px 10px 5px 5px;border-radius:11px;
  background:rgba(255,255,255,.04);border:1px solid var(--line)}
.who .pic{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;flex:none;
  font-family:"Manrope",sans-serif;font-weight:800;font-size:10.5px;color:#fff;background:linear-gradient(140deg,#F59E0B,#EC4899)}
.who b{display:block;font-size:12px;line-height:1.25}
.who span{font-size:10.5px;color:var(--muted2)}
.who svg{width:13px;height:13px;color:var(--muted2)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:10px;
  padding:10px 18px;font-family:"Manrope",sans-serif;font-weight:700;font-size:13px;
  border:0;cursor:pointer;transition:transform .16s,opacity .18s,border-color .18s,background .18s}
.btn svg{width:14px;height:14px}
.btn.grad{background:var(--grad);color:#fff;box-shadow:0 8px 22px rgba(91,91,245,.3)}
.btn.grad:hover{transform:translateY(-2px)}
.btn.outline{background:transparent;border:1px solid var(--line2);color:var(--ink)}
.btn.outline:hover{background:rgba(255,255,255,.05)}
.btn.full{width:100%}
.burger{display:none;background:none;border:0;color:var(--ink);padding:6px;cursor:pointer}
.burger svg{width:22px;height:22px}

/* LAYOUT */
.cols{display:grid;grid-template-columns:250px minmax(0,1fr);gap:18px;padding:20px 0 40px;align-items:start}
.card{background:var(--card);border:1px solid var(--line);border-radius:15px;padding:16px}
.card .hd{display:flex;align-items:center;gap:9px;margin-bottom:14px}
.card .hd h3{font-size:14px;font-weight:800}
.card .hd .right{margin-left:auto;display:flex;gap:8px}
.card .hd .drop{display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.04);
  border:1px solid var(--line);border-radius:8px;padding:5px 10px;font-size:10.5px;color:var(--muted);cursor:pointer}
.card .hd .drop svg{width:10px;height:10px}
.card .hd .link{margin-left:auto;font-size:12px;color:var(--bl);font-weight:600;display:flex;align-items:center;gap:5px}
.card .hd .link svg{width:12px;height:12px}

/* profile rail */
.pcard{background:var(--card);border:1px solid var(--line);border-radius:15px;padding:20px 16px;text-align:center;margin-bottom:14px}
.avatar{position:relative;width:88px;height:88px;margin:0 auto 12px}
.avatar .ph{width:88px;height:88px;border-radius:50%;display:grid;place-items:center;
  font-family:"Manrope",sans-serif;font-weight:800;font-size:28px;color:#fff;
  background:linear-gradient(140deg,#5B5BF5,#A855F7);border:3px solid rgba(124,92,255,.4)}
.avatar .pro{position:absolute;right:-2px;bottom:2px;background:var(--grad);color:#fff;
  font-size:9px;font-weight:800;padding:3px 9px;border-radius:999px;border:2px solid var(--card)}
.pcard .nm{font-size:16px;font-weight:800;display:block}
.pcard .role{font-size:11.5px;color:#A78BFA;font-weight:600;display:block;margin-bottom:9px}
.pcard .meta{display:flex;align-items:center;justify-content:center;gap:6px;font-size:11px;color:var(--muted2);padding:2px 0}
.pcard .meta svg{width:12px;height:12px}

.pmenu{background:var(--card);border:1px solid var(--line);border-radius:15px;padding:8px}
.pnav{display:flex;align-items:center;gap:11px;padding:9px 12px;border-radius:10px;
  color:var(--muted);font-size:12.5px;font-weight:500;transition:background .16s,color .16s}
.pnav svg{width:15px;height:15px;flex:none}
.pnav:hover{background:rgba(255,255,255,.045);color:var(--ink)}
.pnav.on{background:rgba(124,92,255,.18);color:#C4B5FD;font-weight:600}
.pnav.danger{color:#F87171}
.pnav.danger:hover{background:rgba(239,68,68,.1)}
.pnav .soon{margin-left:auto;font-size:9px;color:var(--muted2)}

.strength{background:var(--card);border:1px solid var(--line);border-radius:15px;padding:16px;text-align:center;margin-top:14px}
.strength .st{font-size:12.5px;font-weight:800;color:#A78BFA;margin-bottom:12px;display:block}
.ring{position:relative;width:104px;height:104px;margin:0 auto 10px}
.ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.ring .mid{position:absolute;inset:0;display:grid;place-content:center;text-align:center}
.ring .mid b{font-size:22px;font-weight:800;font-family:"Manrope",sans-serif}
.ring .mid span{font-size:10px;color:#4ADE80;font-weight:700}
.strength p{font-size:10.5px;color:var(--muted2);line-height:1.6;margin-bottom:10px}
.strength a{font-size:11.5px;color:#A78BFA;font-weight:700}

/* guest cards */
.unlock{background:linear-gradient(170deg,rgba(124,92,255,.16),rgba(12,16,32,.6));
  border:1px solid rgba(124,92,255,.3);border-radius:15px;padding:18px;margin-bottom:14px}
.unlock .tagline{font-size:9.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted2);font-weight:800;margin-bottom:12px}
.unlock .ui{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;margin-bottom:12px;
  background:rgba(124,92,255,.2);color:#C4B5FD}
.unlock .ui svg{width:19px;height:19px}
.unlock b{display:block;font-size:15px;font-weight:800;margin-bottom:8px}
.unlock p{font-size:11.5px;color:var(--muted2);line-height:1.65;margin-bottom:13px}
.unlock ul{list-style:none;padding:0;margin:0 0 14px;display:grid;gap:8px}
.unlock li{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}
.unlock li svg{width:12px;height:12px;color:#4ADE80;flex:none}
.unlock .acts{display:flex;gap:8px}
.unlock .acts .btn{flex:1;padding:9px 10px;font-size:12px}

.willget b{display:block;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#A78BFA;margin-bottom:12px}
.willget span{display:flex;align-items:center;gap:9px;font-size:11.5px;color:var(--muted);padding:4px 0}
.willget .wi{width:22px;height:22px;border-radius:7px;display:grid;place-items:center;flex:none;background:rgba(124,92,255,.15);color:#A78BFA}
.willget .wi svg{width:12px;height:12px}

.pro{background:linear-gradient(170deg,rgba(245,158,11,.13),rgba(12,16,32,.6));
  border:1px solid rgba(245,158,11,.3);border-radius:15px;padding:16px;margin:14px 0}
.pro .ph2{display:flex;align-items:center;gap:9px;margin-bottom:8px}
.pro .ph2 svg{width:18px;height:18px;color:#FBBF24}
.pro .ph2 b{font-size:14px;font-weight:800}
.pro p{font-size:11px;color:var(--muted2);line-height:1.6;margin-bottom:12px}
.pro a{display:block;text-align:center;background:var(--grad);color:#fff;border-radius:10px;padding:10px;
  font-family:"Manrope",sans-serif;font-weight:700;font-size:12.5px}

/* head */
.phead{display:flex;align-items:center;gap:14px;margin-bottom:14px;flex-wrap:wrap}
.phead h1{font-size:19px;font-weight:800}
.phead .sub{font-size:12px;color:var(--muted2);margin-top:2px}
.phead .right{margin-left:auto}

/* stat cards */
.stats6{display:grid;grid-template-columns:repeat(6,1fr);gap:11px;margin-bottom:14px}
.sc{background:var(--card);border:1px solid var(--line);border-radius:13px;padding:14px}
.sc .sl{display:block;font-size:11px;color:var(--muted2);margin-bottom:6px}
.sc .sv{display:block;font-size:19px;font-weight:800;font-family:"Manrope",sans-serif;line-height:1.2}
.sc .sd{display:block;font-size:10.5px;margin-top:5px;color:var(--muted2)}

/* about */
.r2{display:grid;grid-template-columns:1.45fr 1fr;gap:14px;margin-bottom:14px}
.r3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;margin-bottom:14px}
.r2b{display:grid;grid-template-columns:1.35fr 1fr;gap:14px;margin-bottom:14px}
.r4{display:grid;grid-template-columns:.85fr 1fr 1.1fr 1.15fr;gap:14px;margin-bottom:14px}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.arow{display:flex;align-items:center;gap:10px;padding:7px 0;font-size:12px}
.arow svg{width:14px;height:14px;color:var(--muted2);flex:none}
.arow span{color:var(--muted2);width:74px;flex:none}
.arow b{font-size:12px;font-weight:600}

/* completion */
.comp{display:flex;align-items:center;gap:16px}
.checklist{display:grid;gap:7px;flex:1}
.checklist span{display:flex;align-items:center;gap:9px;font-size:11.5px;color:var(--muted)}
.checklist .ok{margin-left:auto;color:#4ADE80}
.checklist svg{width:13px;height:13px}

/* radar */
.radar{display:block;margin:0 auto}
.radar-wrap{position:relative}

/* account overview */
.aov{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:12px}
.aov div{background:rgba(255,255,255,.03);border:1px solid var(--line);border-radius:11px;padding:11px;text-align:center}
.aov span{display:block;font-size:10px;color:var(--muted2)}
.aov b{font-size:14px;font-weight:800}
.chart-wrap{position:relative}
.chart-wrap svg{width:100%;display:block}
.chart-in{padding-left:28px}
.axis-y{position:absolute;left:0;top:0;bottom:18px;display:flex;flex-direction:column;
  justify-content:space-between;font-size:9px;color:var(--muted2)}
.axis-x{display:flex;justify-content:space-between;font-size:9px;color:var(--muted2);padding-left:28px;margin-top:6px}

/* bars */
.prow{display:flex;align-items:center;gap:10px;padding:7px 0;font-size:11.5px}
.prow .nm{width:60px;flex:none;font-weight:700}
.prow .track{flex:1;height:7px;border-radius:99px;background:rgba(255,255,255,.06);overflow:hidden}
.prow .track i{display:block;height:100%;border-radius:99px;background:var(--grad)}
.prow .v1{width:70px;text-align:right;color:var(--muted)}
.prow .v2{width:40px;text-align:right;font-weight:700}

/* activity */
.act{display:flex;align-items:flex-start;gap:11px;padding:10px 0;border-top:1px solid rgba(255,255,255,.05)}
.act:first-of-type{border-top:0}
.act .ai{width:28px;height:28px;border-radius:9px;flex:none;display:grid;place-items:center;
  background:rgba(255,255,255,.05);color:var(--muted2)}
.act .ai svg{width:14px;height:14px}
.act b{display:block;font-size:12px}
.act p{font-size:11px;color:var(--muted2)}
.act .tm{margin-left:auto;font-size:10.5px;color:var(--muted2);white-space:nowrap;flex:none}

/* badges */
.badge-row{display:grid;grid-template-columns:repeat(4,1fr);gap:11px}
.bdg{text-align:center}
.hex{width:52px;height:52px;margin:0 auto 8px;display:grid;place-items:center;
  clip-path:polygon(50% 0%,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%);
  border:0;font-size:20px}
.hx1{background:linear-gradient(150deg,rgba(245,158,11,.35),rgba(245,158,11,.1));color:#FBBF24}
.hx2{background:linear-gradient(150deg,rgba(124,92,255,.35),rgba(124,92,255,.1));color:#A78BFA}
.hx3{background:linear-gradient(150deg,rgba(239,68,68,.32),rgba(239,68,68,.1));color:#F87171}
.hx4{background:linear-gradient(150deg,rgba(34,197,94,.32),rgba(34,197,94,.1));color:#4ADE80}
.hx5{background:linear-gradient(150deg,rgba(74,140,255,.32),rgba(74,140,255,.1));color:#60A5FA}
.bdg b{display:block;font-size:11.5px;font-weight:800}
.bdg span{font-size:10px;color:var(--muted2)}
.badge-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}
.badge-grid .hex{width:44px;height:44px;font-size:17px;margin-bottom:0}
.badge-grid .more{display:grid;place-items:center;font-size:11px;color:var(--muted2);
  background:rgba(255,255,255,.04);border-radius:11px;height:44px}

/* security */
.srow{display:flex;align-items:center;gap:10px;padding:9px 0;border-top:1px solid rgba(255,255,255,.05)}
.srow:first-of-type{border-top:0}
.srow .si{width:26px;height:26px;border-radius:8px;flex:none;display:grid;place-items:center;
  background:rgba(255,255,255,.05);color:var(--muted2)}
.srow .si svg{width:13px;height:13px}
.srow b{display:block;font-size:12px}
.srow span{font-size:10.5px;color:var(--muted2)}
.srow .ok{margin-left:auto;color:#4ADE80}
.srow .ok svg{width:14px;height:14px}
.conn{display:flex;align-items:center;gap:10px;padding:9px 0;border-top:1px solid rgba(255,255,255,.05);font-size:12px}
.conn:first-of-type{border-top:0}
.conn .ci{width:24px;height:24px;border-radius:7px;flex:none;display:grid;place-items:center;
  background:rgba(255,255,255,.05);font-size:10px;font-weight:800;font-family:"Manrope",sans-serif}
.conn .st2{margin-left:auto;font-size:11px;font-weight:600;display:flex;align-items:center;gap:5px}
.conn .st2 i{width:7px;height:7px;border-radius:50%;background:#4ADE80}
.conn .st2.no{color:#F87171}
.conn .st2.no i{background:#F87171}

/* stat mini grid */
.mini4{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.mini4 div{background:rgba(255,255,255,.03);border:1px solid var(--line);border-radius:10px;padding:10px}
.mini4 span{display:block;font-size:10px;color:var(--muted2)}
.mini4 b{font-size:13px;font-weight:800}

/* why complete */
.why{display:grid;grid-template-columns:repeat(6,1fr);gap:11px;margin-bottom:14px}
.wc{background:var(--card);border:1px solid var(--line);border-radius:13px;padding:14px}
.wc .wi{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;margin-bottom:9px;
  background:rgba(124,92,255,.14);color:#A78BFA}
.wc .wi svg{width:16px;height:16px}
.wc b{display:block;font-size:12px;font-weight:800;margin-bottom:4px}
.wc p{font-size:10.5px;color:var(--muted2);line-height:1.55}

.bigcta{display:flex;align-items:center;gap:18px;background:linear-gradient(100deg,rgba(91,91,245,.15),rgba(12,16,32,.6));
  border:1px solid rgba(124,92,255,.3);border-radius:16px;padding:20px 24px;flex-wrap:wrap}
.bigcta .bi{width:46px;height:46px;border-radius:13px;flex:none;display:grid;place-items:center;
  background:rgba(245,158,11,.18);color:#FBBF24}
.bigcta .bi svg{width:22px;height:22px}
.bigcta b{display:block;font-size:17px;font-weight:800}
.bigcta p{font-size:12.5px;color:var(--muted2)}
.bigcta .btn{margin-left:auto}

/* ===== EDIT FORM ===== */
.frow{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.f{margin-bottom:14px}
.f label{display:block;font-size:11.5px;font-weight:600;color:var(--muted);margin-bottom:6px}
.f input,.f select,.f textarea{width:100%;background:rgba(255,255,255,.04);border:1px solid var(--line);
  border-radius:10px;padding:11px 13px;color:var(--ink);font-family:"Inter",sans-serif;font-size:13px;
  appearance:none;outline:none;transition:border-color .16s}
.f textarea{min-height:92px;resize:vertical}
.f input:focus,.f select:focus,.f textarea:focus{border-color:var(--pu);background:rgba(124,92,255,.06)}
.f select option{background:#10152A}
.f.bad input,.f.bad textarea{border-color:var(--red);background:rgba(239,68,68,.06)}
.f .err{display:none;font-size:11px;color:#F87171;margin-top:5px}
.f.bad .err{display:block}
.counter{text-align:right;font-size:10.5px;color:var(--muted2);margin-top:4px}
.photo-row{display:flex;align-items:center;gap:16px;margin-bottom:18px;flex-wrap:wrap}
.photo-row .ph3{width:74px;height:74px;border-radius:50%;display:grid;place-items:center;flex:none;
  font-family:"Manrope",sans-serif;font-weight:800;font-size:24px;color:#fff;
  background:linear-gradient(140deg,#5B5BF5,#A855F7);border:3px solid rgba(124,92,255,.4)}
.photo-row .note{font-size:10.5px;color:var(--muted2);margin-top:6px}
.form-foot{display:flex;gap:10px;justify-content:flex-end;padding-top:16px;border-top:1px solid var(--line);margin-top:6px}

/* toast */
.toast{position:fixed;left:50%;bottom:26px;transform:translate(-50%,90px);z-index:95;
  background:var(--card2);border:1px solid var(--line2);border-radius:12px;padding:12px 20px;
  font-size:13px;font-weight:600;box-shadow:0 20px 50px rgba(0,0,0,.6);transition:transform .26s,opacity .26s;opacity:0}
.toast.show{transform:translate(-50%,0);opacity:1}
.toast.ok{border-color:rgba(34,197,94,.4);color:#4ADE80}

/* footer */
.footer{border-top:1px solid var(--line);background:#080B14;padding:34px 0 22px}
.fbase{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:12px;color:var(--muted2)}
.fbase a{color:#A78BFA;font-weight:600}

@media (max-width:1280px){
  .stats6,.why{grid-template-columns:repeat(3,1fr)}
  .r2,.r2b,.r3,.r4{grid-template-columns:1fr 1fr}
}
@media (max-width:980px){
  .nlinks{display:none;position:absolute;top:66px;left:0;right:0;flex-direction:column;align-items:flex-start;
    gap:15px;background:rgba(8,11,20,.98);padding:20px 22px;border-bottom:1px solid var(--line)}
  .nlinks.open{display:flex}
  .burger{display:grid}
  .who b,.who span{display:none}
  .cols{grid-template-columns:1fr}
  .r2,.r2b,.r3,.r4,.about-grid,.frow{grid-template-columns:1fr}
  .badge-grid{grid-template-columns:repeat(4,1fr)}
}
@media (max-width:620px){
  .stats6,.why,.badge-row{grid-template-columns:1fr 1fr}
  .aov{grid-template-columns:1fr}
  .comp{flex-direction:column;align-items:flex-start}
  .bigcta .btn{margin-left:0;width:100%}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* ============================================
   Honest states

   Several things on this page looked complete whatever the data said.
   These rules make the difference between done and not done visible.
   ============================================ */

/* ---------- completion checklist ----------
   An unmet item shows an empty circle rather than a faded tick. */
.checklist span.todo .ok{display:none}
.checklist span.todo::after{
  content:"";width:15px;height:15px;border-radius:50%;flex:none;
  border:1.5px dashed rgba(255,255,255,.22);margin-left:auto;
}
.checklist span.todo{color:var(--muted2)}
.checklist span.done .ok{opacity:1}

/* ---------- badges ----------
   A badge that has not been earned is dimmed and says how far along you
   are. Previously all four rendered as earned. */
.bdg.locked{opacity:.55}
.bdg.locked .hex{filter:grayscale(1)}
.bdg.locked b{color:var(--muted)}
.bdg.earned .hex{box-shadow:0 6px 18px rgba(124,92,255,.28)}

/* ---------- security rows ---------- */
.srow .si{width:9px;height:9px;border-radius:50%;flex:none;margin-right:2px}
.srow .si.ok{background:var(--green)}
.srow .si.warn{background:var(--orange)}
.srow .si.off{background:rgba(255,255,255,.2)}
.sstate{
  margin-left:auto;font-size:10.5px;font-weight:700;border-radius:20px;
  padding:2px 9px;line-height:1.6;
}
.sstate.ok{background:rgba(34,197,94,.12);color:var(--green)}
.sstate.warn{background:rgba(245,158,11,.12);color:var(--orange)}
.sstate.off{background:rgba(255,255,255,.05);color:var(--muted2)}

.conn-note{font-size:11px;color:var(--muted2);margin:10px 0 0;line-height:1.6}

/* ---------- buy against sell ---------- */
.side-split{display:flex;flex-direction:column;gap:12px;margin-top:14px}
.split-row .split-top{display:flex;justify-content:space-between;font-size:12.5px;margin-bottom:6px}
.split-row .split-top span{color:var(--muted);font-weight:600}
.split-bar{height:6px;border-radius:6px;background:rgba(255,255,255,.05);overflow:hidden}
.split-bar i{display:block;height:100%;background:var(--grad);border-radius:6px}
.split-note{font-size:10.5px;color:var(--muted2);display:block;margin-top:5px}

/* ---------- empty chart ---------- */
.chart-empty{
  font-size:12px;color:var(--muted2);text-align:center;
  padding:44px 16px;margin:0;
}

/* Anchored rail entries land the section under the navbar rather than
   behind it. */
[id^="sec-"]{scroll-margin-top:calc(var(--nav-h) + 24px)}

/* ---------- page shell ----------
   The page now ships the .app wrapper that layout.js used to build after
   paint. Inside it the wrap no longer needs its own width cap or side
   padding — .main provides both — so it is released here rather than
   with the inline styles layout.js was applying. */
.app > .main > .wrap{max-width:none;padding:0}

/* A signed-out visitor gets no sidebar, so the aside stays empty. An
   empty 248px column beside the content is worse than none. */
.app > aside.side:empty{display:none}

/* The rail scrolls to a section rather than loading a page, so the
   heading should land below the navbar, not behind it. */
[id^="sec-"]{scroll-margin-top:calc(var(--nav-h) + 24px)}
