/* ORBUNI X · hosted sections (24 Nov 2026). Sections whose logic still comes from the tested classic code now render INSIDE
   the new shell. Their markup lives outside #portal, so none of the old #portal styles apply; this file is their whole look,
   built only from the --ox-* tokens. Tables become feed rows on phones. Also skins the shared dialog (#dlg) and detail card. */
.ox-host{--bg:var(--ox-bg);--p1:var(--ox-p1);--p2:var(--ox-p2);--p3:var(--ox-p3);--line:var(--ox-line);--line2:var(--ox-line);--ln:var(--ox-line);
  --txt:var(--ox-tx);--dim:var(--ox-dim);--faint:var(--ox-faint);--gold:var(--ox-gold);--sans:var(--ox-font);--disp:var(--ox-disp);--r:16px;--rl:20px;
  font:15px/1.45 var(--ox-font);color:var(--ox-tx);padding:0 0 calc(110px + env(safe-area-inset-bottom));min-height:60vh;overflow-wrap:break-word}
.ox-host *{box-sizing:border-box}
.ox-host .view{display:block}
.ox-host h1,.ox-host h2,.ox-host h3,.ox-host h4{font-family:var(--ox-disp);letter-spacing:-.01em;line-height:1.2;margin:0;color:var(--ox-tx)}
.ox-host h2{font-size:22px;font-weight:800}.ox-host h3{font-size:17px;font-weight:700}.ox-host h4{font-size:15px;font-weight:700}
.ox-host p{margin:0 0 8px;color:var(--ox-dim)}
.ox-host a{color:var(--ox-blue);text-decoration:none}
.ox-host b,.ox-host strong{color:var(--ox-tx)}
.ox-host [style*="color:var(--faint)"],.ox-host small{color:var(--ox-dim)!important}
/* sections + panels: hairline-separated blocks, no boxed cards on phones */
.ox-host .panel,.ox-host [class*="-card"]:not(.ox-av),.ox-host .o6-hero,.ox-host .nas-hero,.ox-host .cj-hero,.ox-host .note,.ox-host .alert{
  background:transparent!important;border:0;border-bottom:.5px solid var(--ox-line);border-radius:0;box-shadow:none!important;padding:14px 16px;margin:0;color:var(--ox-tx)}
@media (min-width:701px){.ox-host .panel{border:.5px solid var(--ox-line);border-radius:16px;margin:12px 16px;padding:14px 16px}}
.ox-host .ph{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 10px;padding:0;border:0;background:none}
.ox-host .ph h3,.ox-host .ph b{font-size:17px;font-weight:800}
.ox-host .grid,.ox-host .g3,.ox-host .g4,.ox-host .g21,.ox-host .f2,.ox-host [class*="-kpis"],.ox-host [class*="-stats"]{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr))}
.ox-host [class*="-kpis"]>*,.ox-host [class*="-stats"]>*,.ox-host .dstat,.ox-host .fd-kpi{background:var(--ox-p1);border:.5px solid var(--ox-line);border-radius:14px;padding:12px 14px}
.ox-host [class*="-kpis"] b,.ox-host [class*="-stats"] b{display:block;font:800 22px/1.1 var(--ox-disp)}
/* list head: X-style pill filters + search */
.ox-host .lhead{display:flex;flex-direction:column;gap:10px;padding:10px 16px;border-bottom:.5px solid var(--ox-line);position:relative}
.ox-host .lh-chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;touch-action:pan-x}
.ox-host .lh-chips::-webkit-scrollbar{display:none}
.ox-host .lh-chip,.ox-host .r6-tabs button,.ox-host [class*="-tabs"]>button{flex:none;display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 14px;border-radius:999px;border:.5px solid var(--ox-line);background:transparent;color:var(--ox-tx);font:600 14px/1 var(--ox-font);cursor:pointer}
.ox-host .lh-chip.on,.ox-host .r6-tabs button.on,.ox-host [class*="-tabs"]>button.on{background:var(--ox-tx);color:var(--ox-bg);border-color:transparent}
.ox-host .lh-n,.ox-host .r6-n{font-style:normal;font-size:12px;opacity:.7}
.ox-host .r6-tabs{display:flex;gap:8px;padding:10px 16px 0;overflow-x:auto;scrollbar-width:none}
.ox-host .r6-tabs svg,.ox-host .lh-chip svg{width:16px;height:16px}
.ox-host .lh-tools,.ox-host .hdr-btns{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.ox-host input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]),.ox-host select,.ox-host textarea,
#dlg input:not([type=checkbox]):not([type=radio]):not([type=file]),#dlg select,#dlg textarea,html.ox-on #orbcard input,html.ox-on #orbcard select,html.ox-on #orbcard textarea{
  width:100%;min-height:44px;background:var(--ox-p1,#16181c);border:.5px solid var(--ox-line,rgba(255,255,255,.14));border-radius:12px;color:var(--ox-tx,#e7e9ea);font:15px/1.3 var(--ox-font,-apple-system,Inter,sans-serif);padding:10px 14px;outline:0;-webkit-appearance:none;appearance:none}
.ox-host textarea,#dlg textarea{min-height:96px;resize:vertical}
.ox-host input:focus,.ox-host select:focus,.ox-host textarea:focus,#dlg input:focus,#dlg select:focus,#dlg textarea:focus{border-color:var(--ox-blue,#1d9bf0);box-shadow:0 0 0 3px color-mix(in srgb,var(--ox-blue,#1d9bf0) 25%,transparent)}
.ox-host .lh-search,.ox-host [class*="search"] input{border-radius:999px!important}
.ox-host label,.ox-host .fld>span,.ox-host .fld>label{display:block;font:600 13px/1.3 var(--ox-font);color:var(--ox-dim);margin:10px 0 6px}
.ox-host .fld{margin:0 0 4px}
/* buttons: X pills. Primary = white (dark) / black (light); gold only for money + create */
.ox-host .btn,#dlg .btn,html.ox-on #orbcard .btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:0 16px;border-radius:999px;border:.5px solid var(--ox-line,rgba(255,255,255,.2));
  background:transparent;color:var(--ox-tx,#e7e9ea);font:700 14px/1 var(--ox-font,-apple-system,Inter,sans-serif);cursor:pointer;white-space:nowrap;text-decoration:none;transition:background .15s,transform .12s;box-shadow:none}
.ox-host .btn:hover,#dlg .btn:hover,html.ox-on #orbcard .btn:hover{background:color-mix(in srgb,var(--ox-tx,#fff) 8%,transparent)}
.ox-host .btn:active,#dlg .btn:active,html.ox-on #orbcard .btn:active{transform:scale(.97)}
.ox-host .btn:focus-visible,#dlg .btn:focus-visible,html.ox-on #orbcard .btn:focus-visible{outline:2px solid var(--ox-blue,#1d9bf0);outline-offset:2px}
.ox-host .btn-p,#dlg .btn-p,html.ox-on #orbcard .btn-p{background:var(--ox-tx,#e7e9ea);color:var(--ox-bg,#000);border-color:transparent}
.ox-host .btn-p:hover,#dlg .btn-p:hover,html.ox-on #orbcard .btn-p:hover{background:color-mix(in srgb,var(--ox-tx,#e7e9ea) 88%,var(--ox-bg,#000))}
.ox-host .btn-s{min-height:32px;padding:0 13px;font-size:13px}
.ox-host .btn-w,#dlg .btn-w{width:100%;min-height:46px}
.ox-host .btn:disabled,#dlg .btn:disabled{opacity:.45;cursor:not-allowed}
.ox-host .badge{display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:999px;font:700 12px/1 var(--ox-font);background:var(--ox-p2);color:var(--ox-dim)}
.ox-host .b-mint,.ox-host .badge.mint{background:color-mix(in srgb,var(--ox-green) 18%,transparent);color:var(--ox-green)}
.ox-host .b-gold,.ox-host .badge.gold{background:color-mix(in srgb,var(--ox-gold) 18%,transparent);color:var(--ox-gold)}
.ox-host .b-red{background:color-mix(in srgb,var(--ox-red) 18%,transparent);color:var(--ox-red)}
/* tables: clean rows on desktop, feed rows on phones */
.ox-host .tbl{width:100%;border-collapse:collapse;font-size:14px}
.ox-host .tbl th{text-align:start;font:600 12.5px/1 var(--ox-font);color:var(--ox-dim);padding:10px 12px;border-bottom:.5px solid var(--ox-line)}
.ox-host .tbl td{padding:12px;border-bottom:.5px solid var(--ox-line);vertical-align:top;color:var(--ox-tx)}
.ox-host .tbl tr[onclick]{cursor:pointer}.ox-host .tbl tbody tr:hover{background:color-mix(in srgb,var(--ox-tx) 3%,transparent)}
@media all{
 .ox-host .panel:has(>.tbl),.ox-host .panel:has(.tbl){padding:0}
 .ox-host .tbl,.ox-host .tbl tbody,.ox-host .tbl tr,.ox-host .tbl td{display:block;width:100%}
 .ox-host .tbl thead{display:none}
 .ox-host .tbl tr{padding:12px 16px;border-bottom:.5px solid var(--ox-line)}
 .ox-host .tbl td{padding:2px 0;border:0;max-width:none!important;white-space:normal!important}
 .ox-host .tbl td:first-child{font-size:15px}
 .ox-host .tbl td:last-child:not(:first-child){padding-top:8px}
}
.ox-host .empty{text-align:center;padding:48px 24px;color:var(--ox-dim)}
.ox-host .empty-ico{font-size:0;width:44px;height:44px;margin:0 auto 12px;border-radius:50%;background:var(--ox-p2)}
.ox-host .empty-t,.ox-host .empty b{display:block;font:800 20px/1.2 var(--ox-disp);color:var(--ox-tx);margin-bottom:6px}
.ox-host .spin{display:inline-block;width:16px;height:16px;border:2px solid var(--ox-line);border-top-color:var(--ox-tx);border-radius:50%;animation:oxspin .8s linear infinite;vertical-align:-3px}
@keyframes oxspin{to{transform:rotate(360deg)}}
.ox-host .err,.ox-host .alert.bad{color:var(--ox-red)}
.ox-host .av{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--ox-p2);color:var(--ox-tx);font:700 13px/1 var(--ox-font);background-size:cover;flex:none}
.ox-host img{max-width:100%;height:auto;border-radius:12px}
.ox-host hr{border:0;border-top:.5px solid var(--ox-line);margin:12px 0}
.ox-host [style*="background:var(--p1)"],.ox-host [style*="background:var(--p2)"]{border-radius:14px}
/* the shared dialog + the detail card, restyled as X sheets while a new portal is on */
html.ox-on #dlg{background:var(--ox-bg,#000);color:#e7e9ea;border:.5px solid rgba(255,255,255,.14);border-radius:20px;padding:20px;max-width:min(520px,calc(100vw - 24px));width:100%;box-shadow:0 20px 60px rgba(0,0,0,.6);font:15px/1.45 -apple-system,BlinkMacSystemFont,Inter,sans-serif;--ox-tx:#e7e9ea;--ox-bg:#000;--ox-p1:#16181c;--ox-line:rgba(255,255,255,.14);--ox-dim:#8b98a5;--dim:#8b98a5;--ln:rgba(255,255,255,.14);--line:rgba(255,255,255,.14)}
html.ox-on #dlg::backdrop{background:rgba(91,112,131,.4)}
html.ox-on #dlg h3{font:800 20px/1.2 -apple-system,BlinkMacSystemFont,Inter,sans-serif;color:#e7e9ea}
html.ox-on #orbcard{--gold:#F2B544;--txt:#e7e9ea;--dim:#8b98a5;--line:rgba(255,255,255,.12);--ox-tx:#e7e9ea;--ox-bg:#000;--ox-p1:#16181c;--ox-line:rgba(255,255,255,.14);font-family:-apple-system,BlinkMacSystemFont,Inter,sans-serif}
html.ox-on #orbcard .oc-head h3{font:800 22px/1.15 -apple-system,BlinkMacSystemFont,Inter,sans-serif;letter-spacing:-.01em}
html[data-theme=light].ox-on #dlg{background:#fff;color:#0f1419;--ox-tx:#0f1419;--ox-bg:#fff;--ox-p1:#f7f9f9;--ox-line:rgba(15,20,25,.12);--dim:#536471;--ln:rgba(15,20,25,.12)}
html[data-theme=light].ox-on #dlg h3{color:#0f1419}
/* the hosted page header: back arrow + title (X sub-page); on phones it replaces the top bar */
#ox .ox-h .ox-back{margin-inline-end:8px}
#ox .ox-h:has(.ox-back){display:flex;align-items:center;gap:6px}
@media (max-width:700px){
 html.ox-hosting #ox .ox-top{display:none}
 html.ox-hosting #ox .ox-col .ox-h{display:flex!important;top:0;padding-top:calc(8px + env(safe-area-inset-top));min-height:53px}
 html.ox-hosting #ox .ox-col{padding-top:0!important}
 html.ox-hosting #ox .ox-fab{display:none!important}
}
html.ox-hosting #ox .ox-fab{display:none}
/* lead/student "full record" headers from the classic code sometimes carry their own back buttons; hide duplicates */
.ox-host .back-btn,.ox-host .crumb,.ox-host .s-back{display:none!important}
/* icons + decorative leftovers from the classic markup */
.ox-host svg{width:20px;height:20px;flex:none;vertical-align:-4px}
.ox-host .empty-ico svg,.ox-host [class*="-ic"] svg{width:22px;height:22px}
.ox-host [class*="-hero"] svg,.ox-host [class*="-art"] svg,.ox-host [class*="-pic"] svg{width:28px;height:28px}
.ox-host .empty svg{width:28px;height:28px;color:var(--ox-dim)}
.ox-host .lhead,.ox-host .lh-chips,.ox-host .lh-tools,.ox-host .ph,.ox-host [class*="-hero"]{background:transparent!important;background-image:none!important}
.ox-host em,.ox-host .grad,.ox-host [class*="-hero"] h2 *,.ox-host [style*="-webkit-background-clip"]{background:none!important;-webkit-text-fill-color:currentColor!important;font-style:normal}
.ox-host [class*="-hero"]{padding:18px 16px!important}
.ox-host [class*="-hero"] h2{font:800 24px/1.15 var(--ox-disp);margin:4px 0 6px}
.ox-host [class*="-eye"],.ox-host .s{font:600 13px/1.3 var(--ox-font);color:var(--ox-dim);text-transform:none;letter-spacing:0}
.ox-host [class*="-hero"]>div:has(>svg:only-child),.ox-host [class*="-hero-a"]{display:none}
.ox-host [class*="-kpis"]>*,.ox-host [class*="-stats"]>*{font-size:13px;color:var(--ox-dim)}
.ox-host [class*="-kpis"]>* b,.ox-host [class*="-kpis"]>* strong,.ox-host [class*="-stats"]>* b{font:800 22px/1.1 var(--ox-disp);color:var(--ox-tx)}
.ox-host .lh-search,.ox-host .lhead input{height:40px;min-height:40px!important}
.ox-host :has(>svg){gap:6px}
.ox-host button:not(.btn):not([class*="tab"]):not(.lh-chip){display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border-radius:999px;border:.5px solid var(--ox-line);background:transparent;color:var(--ox-tx);font:600 14px/1 var(--ox-font);cursor:pointer;margin:2px 4px 2px 0}
