
:root{--z:1;--bg:#0B0D12;--surface:#12161D;--surface2:#191E28;--border:#1F2530;--text:#EDEFF3;--muted:#98A1AE;--accent:#FFB547;--accentText:#0B0D12;--up:#4ADE80;--down:#FF7A59;--warn:#FFB547;--roleOwner:#F0B429;--roleAdmin:#F2555A;--roleMod:#4D9BFF;--r:14px;--r-sm:8px;--maxw:1280px;--cell:12px;
--font:'Instrument Sans',system-ui,sans-serif;--font-h:'Instrument Sans',system-ui,sans-serif;--mono:'Geist Mono',ui-monospace,monospace;--hw:700;color-scheme:dark}
*{box-sizing:border-box}
[hidden]{display:none !important}
html,body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
a:hover{color:var(--accent)}
h1,h2,h3{font-family:var(--font-h);font-weight:var(--hw);letter-spacing:-0.02em;margin:0}
h1{font-size:30px}h2{font-size:18px}h3{font-size:15px}
.mono,.num{font-family:var(--mono);font-variant-numeric:tabular-nums}
.muted{color:var(--muted)}
.up{color:var(--up)}.down{color:var(--down)}.warn{color:var(--warn)}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 20px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.top{background:var(--surface);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:20}
.top .wrap{display:flex;align-items:center;gap:20px;min-height:62px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px}
.brand{display:flex;align-items:center;gap:10px;font-family:var(--font-h);font-weight:700;font-size:19px;letter-spacing:-0.02em}
.brand:hover{color:var(--text)}
.brand b{font-weight:inherit;color:var(--accent)}
.mark{width:30px;height:30px;border-radius:var(--r-sm);background:var(--accent);display:grid;place-items:center;flex:0 0 30px}
.mark img{width:30px;height:30px;border-radius:var(--r-sm);object-fit:cover}
.mark.cube{background:none;border-radius:0}.mark.cube svg{display:block}
.tag{font-family:var(--font);font-weight:400;font-size:13px;color:var(--muted)}
.nav{display:flex;gap:2px;flex-wrap:wrap;flex:1 1 auto}
.nav a{padding:9px 13px;border-radius:var(--r-sm);font-size:14px;font-weight:500;color:var(--muted)}
.nav a:hover{color:var(--text);background:var(--surface2)}
.nav a.on{color:var(--text);background:var(--surface2);font-weight:600}
.tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
/* Account menu under your name in the header. */
.acctwrap{position:relative}
.acct-toggle{gap:6px;max-width:220px}
.acct-toggle .acctname{overflow:hidden;text-overflow:ellipsis}
.acct-toggle .caret{flex:0 0 auto;opacity:.7;transition:transform .15s}
.acctwrap.open .acct-toggle{border-color:var(--accent)}
.acctwrap.open .caret{transform:rotate(180deg)}
.acctwrap:has(.acctmenu .chip) .acctname::after{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--accent);margin-left:7px;vertical-align:1px}
.acctmenu{display:none;position:absolute;right:0;top:calc(100% + 8px);z-index:60;min-width:200px;padding:6px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r);box-shadow:0 16px 36px rgba(0,0,0,.35)}
.acctwrap.open .acctmenu{display:block}
.accthead{display:none}
.acctmenu a,.acctmenu button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:9px 11px;border:0;border-radius:var(--r-sm);background:transparent;color:var(--text);font:inherit;font-size:14px;font-weight:500;text-align:left;cursor:pointer}
.acctmenu a:hover,.acctmenu button:hover,.acctmenu a:focus-visible,.acctmenu button:focus-visible{background:var(--surface2);color:var(--accent);outline:none}
.acctmenu .chip{font-size:11px;padding:1px 7px}
.acctmenu form{margin:6px 0 0;padding-top:6px;border-top:1px solid var(--border)}
.acctmenu form button{color:var(--muted)}
/* Scrollbars in the site's colors: a soft thumb that warms to the accent when you grab it. */
html{scrollbar-color:color-mix(in srgb,var(--muted) 38%,var(--bg)) var(--bg)}
body *{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--muted) 35%,transparent) transparent}
@supports not (scrollbar-color:auto){
  ::-webkit-scrollbar{width:12px;height:12px}
  ::-webkit-scrollbar-track{background:transparent}
  html::-webkit-scrollbar-track{background:var(--bg)}
  ::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--muted) 38%,transparent);border-radius:999px;border:3px solid transparent;background-clip:padding-box}
  ::-webkit-scrollbar-thumb:hover{background-color:var(--accent)}
  ::-webkit-scrollbar-corner{background:transparent}
}
.search{display:flex;align-items:center;gap:8px;height:40px;padding:0 12px;border-radius:var(--r-sm);background:var(--bg);border:1px solid var(--border);width:230px}
.search input{background:transparent;border:0;outline:none;color:var(--text);font:inherit;font-size:14px;width:100%}
form.search{position:relative}
.pg-hide{display:none!important}
.chatmsg.flagged .chattext{color:var(--muted);text-decoration:line-through;text-decoration-color:color-mix(in srgb,var(--muted) 70%,transparent)}
.chatmsg.flagged .chattext img{opacity:.5}
.chatmsg.flagged>img{opacity:.5}
.chatmuted{display:flex;align-items:center;gap:8px;padding:14px;border-top:1px solid var(--border);color:var(--warn);font-size:14px;font-weight:500}
.chatmuted[hidden],#chat-form[hidden]{display:none}
.chatflag{display:flex;gap:6px;align-items:flex-start;margin-top:4px;font-size:12px;color:var(--warn);line-height:1.35}
.chatflag::before{content:'';flex:0 0 12px;height:12px;margin-top:1px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 2 21h20zm-1 7h2v6h-2zm0 8h2v2h-2z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 2 21h20zm-1 7h2v6h-2zm0 8h2v2h-2z'/%3E%3C/svg%3E") center/contain no-repeat}
.fgroup{border:1px solid var(--border);border-radius:var(--r-sm);padding:10px 12px;background:var(--surface2)}
.fghead{display:flex;align-items:center;gap:10px}
.fgon input{width:18px;height:18px;accent-color:var(--accent);margin:0;display:block}
.fglabel{flex:1 1 auto;min-width:0;height:34px;font-weight:600}
.fgcount{flex:0 0 auto}
.fgwords summary,.fgnew summary{cursor:pointer;font-size:13px;color:var(--muted);margin-top:8px}
.fgnew summary{margin-top:0}
.fgwords textarea{width:100%;margin-top:8px;font-family:var(--mono,monospace);font-size:13px}
.fgtest{margin-top:16px;padding-top:14px;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:6px}
.fgtest input{flex:1 1 auto;min-width:0}
.flagacts{gap:6px;flex:0 0 auto;align-items:center}
.flagrow .actkind{white-space:nowrap}
.grid.sgrid{contain:inline-size}
.card.scard{padding:16px;display:flex;flex-direction:column;gap:14px;container-type:inline-size;min-width:0}
.scimg{position:relative;height:140px;border-radius:var(--r-sm);background:var(--surface2);display:grid;place-items:center}
.scname{font-size:16px}.stat.scstat{font-size:22px}
.scprice{display:flex;justify-content:space-between;align-items:flex-end;gap:8px}.scmarket{text-align:right}
.scbtns{display:flex;gap:8px}.scbtns .btn{flex:1 1 0}
/* Narrow store cards (five to a row): shorter picture, stacked prices, short button labels. */
@container (max-width:220px){
  .scimg{height:110px}.stat.scstat{font-size:19px}
  .scprice{flex-direction:column;align-items:flex-start;gap:4px}.scmarket{text-align:left}
  .sclong{display:none}.scbtns{gap:6px}.scbtns .btn{padding:0 8px}
}
/* Phones: store cards two to a row and much shorter, so the store isn't a long scroll. */
@media (max-width:720px){
  .grid.sgrid{grid-template-columns:1fr 1fr;gap:10px}
  .card.scard{padding:10px;gap:8px;border-radius:var(--r-sm)}
  .scimg{height:92px}.scimg .icon.md{width:72px;height:72px}
  .scimg .pill{font-size:11px;padding:2px 7px;top:6px;right:6px}
  .scname{font-size:14px;line-height:1.25}.sccreator{font-size:12px}
  .scprice{flex-direction:column;align-items:flex-start;gap:4px}.scmarket{text-align:left}
  .stat.scstat{font-size:17px}.scard .sub{font-size:12px}.sclong{display:none}
  .scbtns{gap:6px}.scbtns .btn{height:34px;padding:0 8px;font-size:13px}
  /* An odd one out at the end spans the row as a wide card (picture left, details right), so no card sits alone. */
  .sgrid>.scard:last-child:nth-child(odd){grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 12px;align-content:start}
  .sgrid>.scard:last-child:nth-child(odd)>*{grid-column:2}
  .sgrid>.scard:last-child:nth-child(odd)>.scimg{grid-column:1;grid-row:1/span 6;height:auto;min-height:120px}
  .sgrid>.scard:last-child:nth-child(odd)>.scimg .icon.md{width:96px;height:96px}
}
.tfilter{width:240px}
.sdrop{position:absolute;top:calc(100% + 6px);left:0;right:0;min-width:300px;z-index:60;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-sm);box-shadow:0 12px 32px rgba(0,0,0,.35);padding:6px;max-height:calc(70vh / var(--z));overflow:auto}
.sopt{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:calc(var(--r-sm) - 2px);color:var(--text)}
.sopt.on{background:var(--surface2)}
.sopt .icon{width:32px;height:32px;flex:none}
.sname{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.sname mark{background:none;color:var(--accent);font-weight:600}
.stag{font-size:12px;color:var(--muted);flex:none}
.sall{display:block;padding:8px;margin-top:4px;border-top:1px solid var(--border);font-size:13px;color:var(--muted);text-align:center}
.sall:hover{color:var(--text)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 14px;border-radius:var(--r-sm);border:1px solid var(--border);background:var(--surface2);color:var(--text);font:inherit;font-size:14px;font-weight:500;cursor:pointer;white-space:nowrap}
.btn:hover{border-color:var(--muted);color:var(--text)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accentText);font-weight:600}
.btn.primary:hover{background:color-mix(in srgb,var(--accent) 80%,#fff);border-color:color-mix(in srgb,var(--accent) 80%,#fff);color:var(--accentText);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 30%,transparent),0 6px 18px color-mix(in srgb,var(--accent) 28%,transparent);transform:translateY(-1px)}
.btn.primary:active{transform:none;box-shadow:none}
.btn{transition:background .15s,border-color .15s,box-shadow .15s,transform .15s,color .15s}
.picker{border:0;padding:4px;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:10px;max-height:360px;overflow-y:auto}
.pick{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 8px 10px;border:1px solid var(--border);border-radius:var(--r-sm);background:var(--surface2);cursor:pointer;text-align:center;transition:border-color .15s,background .15s,transform .15s}
.pick:hover{border-color:var(--muted);transform:translateY(-1px)}
.pick input{position:absolute;opacity:0;pointer-events:none}
.pick:has(input:checked){border-color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,var(--surface2));box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 35%,transparent)}
.pick:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
.icon.pk{width:64px;height:64px;flex:0 0 64px;background:transparent}
.pk-n{font-size:12.5px;font-weight:500;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pk-p{font-family:var(--mono);font-size:12px;color:var(--muted)}
.pk-own{position:absolute;top:6px;right:6px;font-size:10px;font-weight:600;padding:1px 6px;border-radius:999px;background:var(--accent);color:var(--accentText)}
.pick-bar{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end;margin-top:14px;padding-top:14px;border-top:1px solid var(--border)}
.pick-sel{flex:1 1 200px;display:flex;flex-direction:column;gap:2px;min-width:0}.pick-sel strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.txgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,440px),1fr));gap:12px}
.tradead{position:relative;display:flex;flex-direction:column;gap:10px;padding:12px 14px;border:1px solid var(--border);border-radius:var(--r);background:var(--surface);transition:border-color .15s}
.tradead:hover{border-color:var(--muted)}
.tradead.mine{border-color:color-mix(in srgb,var(--accent) 45%,var(--border))}
.txopen{position:absolute;inset:0;z-index:1;border-radius:inherit}
.txlift{position:relative;z-index:2}
.tradead-h{display:flex;gap:10px;align-items:center;min-width:0}
.tradead-h .avatar{border-radius:var(--r-sm);flex:none}
.tradead-h .chatname{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tradead-act{margin-left:auto;display:flex;gap:6px;align-items:center}
.tradead-b{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px;align-items:center}
.txside-h{display:flex;gap:8px;align-items:baseline;margin-bottom:6px;flex-wrap:wrap}
.txside-h .num{font-size:13px;font-weight:600}
.tradead-arrow{color:var(--muted);font-size:16px}
.txtiles{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.txtile{position:relative;width:46px;height:46px;display:grid;place-items:center;border:1px solid var(--border);border-radius:var(--r-sm);background:var(--surface2)}
.txtile .icon{width:38px;height:38px}
.txtile .invcount{font-size:10px}
.txmore{font-size:12px;font-weight:600;color:var(--muted)}
.txtag{font-size:11.5px;padding:3px 8px;border-radius:999px;border:1px solid var(--border);color:var(--muted)}
.txdiff{font-size:11.5px;font-weight:600}
.txfilters{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.txfilt{display:flex;align-items:center;gap:8px;height:40px;width:280px;padding:0 10px}
.txfilt-l{font-size:12px;font-weight:600;color:var(--muted);flex:none}
.txfilt.on{border:1px solid var(--accent);border-radius:var(--r-sm);background:color-mix(in srgb,var(--accent) 10%,var(--surface))}
.txfilt.on .icon{width:26px;height:26px;flex:none}
.txfilt-n{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.txfilt-x{font-size:18px;color:var(--muted);padding:0 4px}.txfilt-x:hover{color:var(--text)}
.tagpick span.on{border-color:var(--accent);color:var(--accent);font-weight:600}
/* Insights: stat tiles that double as tabs, compact item tables */
.insight-tabs{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.insight-tab{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;padding:14px 16px;border:1px solid var(--border);border-radius:var(--r);background:var(--surface);color:var(--text);cursor:pointer;font:inherit;transition:border-color .15s,background .15s}
.insight-tab:hover{border-color:var(--muted)}
.insight-tab.on{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,var(--surface))}
.insight-v{font-size:22px;font-weight:600;line-height:1.3}
.insight-tab .sub{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.insight-hint{margin:0 0 12px}
.itable td,.itable th{padding-top:7px;padding-bottom:7px}
/* Hidden-as-you-type text boxes for secrets that aren't passwords (webhook links), so password managers leave them alone. */
.secretbox{-webkit-text-security:disc;text-security:disc}
.icell{display:inline-flex;flex-direction:column;align-items:flex-end;gap:2px;line-height:1.2}.icell b{font-weight:600}.icell>span{font-family:var(--font);font-size:11.5px;font-weight:400;color:var(--muted);white-space:nowrap}
.itable-i{display:flex;gap:10px;align-items:center;min-width:0}
.itable-s{display:block;font-size:11.5px;color:var(--muted);margin-top:1px}
.itable-i .icon{width:28px;height:28px;flex:none}
.itable[data-page] tbody tr:nth-child(n+11){display:none}
.showall{display:flex;justify-content:center;margin-top:10px}
@media (max-width:640px){.insight-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.insight-tab{padding:10px 12px}.insight-v{font-size:18px}}
#txresults{transition:opacity .15s}#txresults.busy{opacity:.6}
.txfilt input{background:transparent;border:0;outline:none;color:var(--text);font:inherit;font-size:14px;width:100%;min-width:0}
.txdetail{display:flex;flex-direction:column;gap:16px}
.txdetail-b{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.txdetail h2{font-size:15px;margin:0}
.txsum{margin-left:auto;font-weight:600}
.dropstats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.dropstat{display:flex;flex-direction:column;gap:4px;padding:14px 16px;min-width:0}.dropstat .stat{font-size:22px}
.dropstat-i{display:flex;align-items:center;gap:8px;min-width:0;font-family:var(--font);font-size:16px;font-weight:600;color:var(--text)}.dropstat-i .icon{width:30px;height:30px;flex:none}
.dropstat-i span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dropstat-i:hover span{color:var(--accent)}
.dropwin a{text-decoration:none}
.dropn{display:inline-flex;align-items:center;gap:10px;justify-content:flex-end}
.dropbar{display:inline-block;width:72px;height:6px;border-radius:99px;background:var(--surface2);overflow:hidden;flex:none}.dropbar>span{display:block;height:100%;border-radius:inherit;background:var(--accent)}
.droptable td .itemcell .sub{font-size:11.5px}
.dropwins{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.dropwin-c{display:flex;flex-direction:column;gap:6px;min-width:0}.dropwin-c .stat{font-size:22px}.dropwin-c .dropbar{width:100%}
@media (max-width:900px){.dropstats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.dropwins{grid-template-columns:repeat(3,minmax(0,1fr))}.dropwin.seg{width:100%;flex-wrap:nowrap}.dropwin.seg a{flex:1;justify-content:center;padding:0 6px}}
.txgrid{display:flex;flex-wrap:wrap;gap:8px;max-height:calc(52vh / var(--z));overflow:auto;padding:2px}
.txtile.big{width:64px;height:64px;transition:border-color .15s,transform .15s}.txtile.big .icon{width:52px;height:52px}
a.txtile:hover,a.txtile:focus-visible{border-color:var(--accent);transform:translateY(-1px);outline:none}
.tradead .txtile{z-index:2}
/* The hover card on item squares (data-itip): name, then value. Positioned by the page script. */
.itemtip{position:fixed;z-index:300;pointer-events:none;padding:7px 11px 8px;border-radius:var(--r-sm);background:var(--surface);border:1px solid var(--border);box-shadow:0 8px 24px rgba(0,0,0,.35);white-space:nowrap;opacity:0;transform:translateY(3px);transition:opacity .12s,transform .12s}
.itemtip.on{opacity:1;transform:none}
.itemtip b{display:block;font-size:13px;font-weight:600;color:var(--text)}.itemtip span{display:block;font-size:12px;color:var(--muted);margin-top:1px}
.itemtip::after{content:"";position:absolute;left:var(--ax,50%);bottom:-6px;width:10px;height:10px;margin-left:-5px;background:var(--surface);border-right:1px solid var(--border);border-bottom:1px solid var(--border);transform:rotate(45deg)}
.itemtip.below::after{bottom:auto;top:-6px;transform:rotate(225deg)}
.txtags{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.tradead-f{display:flex;gap:10px;align-items:center;justify-content:flex-end;flex-wrap:wrap;border-top:1px solid var(--border);padding-top:14px}
.addlg,.uidlg{border:1px solid var(--border);border-radius:var(--r);background:var(--surface);color:var(--text);box-shadow:0 24px 64px rgba(0,0,0,.5);padding:22px}
.addlg{width:min(860px,calc(100vw / var(--z) - 32px));max-height:calc(100vh / var(--z) - 48px);overflow:auto}
.addlg.wide{width:min(1240px,calc(100vw / var(--z) - 32px))}
.addlg .txnew-h{font-size:22px;margin:0;padding-right:32px}
.btn.waiting{opacity:.45;cursor:not-allowed}
.txpost{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.txwait{font-size:14px;color:var(--muted)}.txwait b{color:var(--text);font-weight:600}
.uidlg{width:min(420px,calc(100vw / var(--z) - 32px))}
.addlg::backdrop,.uidlg::backdrop{background:rgba(5,8,14,.7);backdrop-filter:blur(3px)}
.addlg[open],.uidlg[open]{animation:dlgin .18s cubic-bezier(.2,.8,.2,1)}
.addlg[open]::backdrop,.uidlg[open]::backdrop{animation:dlgfade .18s ease-out}
@keyframes dlgin{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}
@keyframes dlgfade{from{opacity:0}to{opacity:1}}
/* Placeholder rows while a page loads after an in-place switch */
.skel{min-height:calc(70vh / var(--z,1))}
.sk{display:block;background:var(--surface2,var(--surface));border-radius:6px;animation:skp 1.2s ease-in-out infinite}
.sk-h{height:26px;width:260px;max-width:60%;margin-bottom:12px}
.sk-p{height:14px;width:520px;max-width:85%;margin-bottom:24px}
.sk-box{border:1px solid var(--border);border-radius:var(--r);background:var(--surface);overflow:hidden}
.sk-row{display:flex;align-items:center;gap:16px;padding:14px 18px;border-top:1px solid var(--border)}
.sk-row:first-child{border-top:0}
.sk-row .sk{background:var(--border)}
.sk-ic{width:36px;height:36px;border-radius:8px;flex:none}
.sk-n{height:12px;flex:1 1 auto;max-width:240px}
.sk-v{height:12px;width:80px;flex:none;margin-left:auto}
.sk-v+.sk-v{margin-left:0}
@keyframes skp{50%{opacity:.45}}
@keyframes railp{50%{opacity:.72}}
@media (max-width:720px){.sk-v:nth-of-type(n+4){display:none}}
@media (prefers-reduced-motion:reduce){.sk,.rail.refreshing>*{animation:none}}
@media (prefers-reduced-motion:reduce){.addlg[open],.uidlg[open],.addlg[open]::backdrop,.uidlg[open]::backdrop{animation:none}}
.addlg-x{position:sticky;top:0;float:right;z-index:3;margin:-12px -10px 0 0;padding:4px 8px;background:none;border:0;color:var(--muted);font-size:24px;cursor:pointer;line-height:1}.addlg-x:hover{color:var(--text)}
.uidlg h2{font-size:17px;margin:0 0 8px}
.uidlg-m{margin:0 0 18px;color:var(--muted);line-height:1.5}
.uidlg-i{width:100%;margin:-6px 0 18px}
.uidlg-b{display:flex;justify-content:flex-end;gap:8px}
.btn.danger{background:var(--down);border-color:var(--down);color:#fff}
.toast{position:fixed;left:50%;bottom:24px;z-index:200;display:flex;align-items:center;gap:10px;max-width:min(460px,calc(100vw / var(--z,1) - 32px));transform:translate(-50%,16px) scale(.98);opacity:0;pointer-events:none;padding:11px 18px 11px 12px;border-radius:12px;background:var(--surface);border:1px solid var(--border);box-shadow:0 14px 36px rgba(0,0,0,.35);font-size:14px;font-weight:500;line-height:1.35;transition:opacity .2s,transform .25s cubic-bezier(.2,.8,.2,1)}
.toast:not(.ok):not(.error){padding-left:18px}
.toast.show{opacity:1;transform:translate(-50%,0) scale(1)}
.toast-i{flex:none;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;color:var(--bg)}
.toast.ok{border-color:color-mix(in srgb,var(--up) 45%,var(--border))}.toast.ok .toast-i{background:var(--up)}
.toast.error{border-color:color-mix(in srgb,var(--down) 55%,var(--border))}.toast.error .toast-i{background:var(--down)}
@media (max-width:640px){.toast{bottom:64px}}
.tagpick{display:inline-flex;cursor:pointer}
.tagpick input{position:absolute;opacity:0;pointer-events:none}
.tagpick span{padding:7px 14px;border-radius:999px;border:1px solid var(--border);background:var(--surface2);font-size:13px;transition:border-color .15s,background .15s}
.tagpick:hover span{border-color:var(--muted)}
.tagpick input:checked+span{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 16%,var(--surface2));color:var(--accent);font-weight:600}
.tagpick input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
.pickbox{display:flex;flex-direction:column;gap:6px}
.pickbox .pick{flex:1}
.pickcount{display:none;align-items:center;gap:8px;font-size:13px}.pickcount input{width:80px;height:30px}
.pickbox:has(input[type=checkbox]:checked) .pickcount{display:flex}
.txpicker .pick.off{opacity:.45}
/* New trade ad: the two sides next to each other, with a live summary bar under them. */
.txform{display:flex;flex-direction:column;gap:16px}
.txsides{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.txside-card{display:flex;flex-direction:column;gap:12px;min-width:0;height:620px}
.txside-top{display:flex;flex-direction:column;gap:2px}.txside-top h2{margin:0}
.txsearch{width:100%}.txside-card .txtags{margin:0}
.txsides .picker{grid-template-columns:repeat(auto-fill,minmax(112px,1fr));flex:1 1 0;min-height:0;max-height:none;align-content:start}
.txsides .pick{padding:10px 6px 8px}.txsides .pick .icon.pk{width:56px;height:56px}
.txbar{position:sticky;bottom:0;z-index:2;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) minmax(170px,auto) auto;gap:18px;align-items:center;padding:14px 18px;border:1px solid var(--border);border-radius:var(--r);background:var(--surface2);box-shadow:0 -10px 30px rgba(0,0,0,.25)}
.addlg .txbar{bottom:-22px}@media (max-width:640px){.addlg .txbar{bottom:-16px}}
.txbar-side{display:flex;flex-direction:column;gap:4px;min-width:0}
.txbar-v,.txbar-dv{font-size:18px;font-weight:600}
.txbar-t{display:flex;gap:5px;flex-wrap:wrap;align-items:center;min-height:30px}
.txbar-i{position:relative;width:30px;height:30px;border-radius:6px;background:var(--surface);border:1px solid var(--border);display:grid;place-items:center;font-size:11px;color:var(--muted)}
.txbar-i img{width:26px;height:26px;object-fit:contain}.txbar-i .invcount{top:-6px;right:-7px;font-size:9px;padding:0 4px}
.txbar-arrow{color:var(--muted);font-size:20px}
.txbar-diff{display:flex;flex-direction:column;gap:2px;padding-left:18px;border-left:1px solid var(--border);min-height:44px;justify-content:center}
.txbar-dv.up{color:var(--up)}.txbar-dv.down{color:var(--down)}
.txbar-go{display:flex;flex-direction:column;align-items:flex-end;gap:4px;text-align:right}
.txform>.txbar{align-self:stretch}
@media (max-width:640px){.txside-card .txtags{flex-wrap:nowrap;gap:5px}.txside-card .tagpick{flex:1 1 auto}.txside-card .tagpick span{display:block;width:100%;text-align:center;padding:7px 8px;font-size:12px;white-space:nowrap}}@media (max-width:380px){.txside-card .txtags{gap:4px}.txside-card .tagpick span{padding:7px 4px;font-size:11.5px}}
.txsides .pickcount{gap:6px;white-space:nowrap}.txsides .pickcount input{flex:1 1 auto;min-width:0;width:auto;height:28px}
@media (max-width:900px){.txsides{grid-template-columns:1fr}.txside-card{height:auto}.txsides .picker{flex:none;max-height:340px}
  .txbar{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;padding:12px 14px}.txbar-diff,.txbar-go{grid-column:1/-1}.txbar-diff{padding-left:0;border-left:0;border-top:1px solid var(--border);padding-top:10px}
  .txbar-go{flex-direction:row-reverse;justify-content:space-between;align-items:center;text-align:left}}
@media (max-width:640px){.txbar{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:4px 10px;padding:10px 12px}.txbar-t,.txbar-go .sub{display:none}
  .txbar-v{font-size:16px}.txbar-side .label{font-size:11px}
  .txbar-diff{grid-column:1/3;flex-direction:column;align-items:flex-start;gap:0;border:0 !important;padding:0 !important;min-height:0}.txbar-dv{font-size:15px}.txbar-diff .sub{font-size:12px}
  .txbar-go{grid-column:3;justify-self:end;align-self:center}}
@media (max-width:640px){.addlg{padding:16px}.addlg .card{padding:14px}.txpicker{grid-template-columns:repeat(2,minmax(0,1fr))}.txdetail-b{grid-template-columns:1fr}.txfilt{width:100%}.tradead-b{grid-template-columns:1fr}.tradead-arrow{transform:rotate(90deg);justify-self:center}}
.stepper{display:flex;gap:6px;align-items:center}.stepper input{width:70px;text-align:center}.stepper .btn{width:34px;padding:0}
.qty-edit input{width:76px;height:32px;text-align:right}
.pick.off{opacity:.45;cursor:not-allowed}.pick.off:hover{transform:none;border-color:var(--border)}
.addlg.narrow{width:min(600px,calc(100vw / var(--z) - 32px))}
.iconbtn{display:inline-grid;place-items:center;width:32px;height:32px;padding:0;border-radius:var(--r-sm);border:1px solid transparent;background:none;color:var(--muted);font:inherit;font-size:14px;cursor:pointer;transition:color .15s,background .15s,border-color .15s}
.iconbtn:hover,.iconbtn:focus-visible{color:var(--accent);background:var(--surface2);border-color:var(--border)}
td.pf-edit{width:44px;padding-left:4px;padding-right:8px;text-align:right}
.pf-note{display:block;font-size:11px}
.pf-steam{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:14px 18px}
.invres{flex:1 1 100%;display:flex;align-items:center;gap:10px;padding:11px 12px 11px 14px;border-radius:var(--r-sm);font-size:14px;font-weight:500;line-height:1.35;border:1px solid;animation:invres-in .25s ease-out}
.card>.head+.invres{margin:-2px 0 14px}
.invres svg{flex:0 0 auto}.invres span{flex:1 1 auto;min-width:0}
.invres.good{color:var(--up);background:color-mix(in srgb,var(--up) 12%,transparent);border-color:color-mix(in srgb,var(--up) 45%,transparent)}
.invres.warn{color:var(--warn);background:color-mix(in srgb,var(--warn) 12%,transparent);border-color:color-mix(in srgb,var(--warn) 45%,transparent)}
.invres.bad{color:var(--down);background:color-mix(in srgb,var(--down) 12%,transparent);border-color:color-mix(in srgb,var(--down) 45%,transparent)}
.invres.info{color:var(--text);background:var(--surface2);border-color:var(--border)}
.invres span{color:var(--text)}
.invres-x{flex:0 0 auto;width:28px;height:28px;border:0;border-radius:6px;background:none;color:var(--muted);font-size:20px;line-height:1;cursor:pointer}
.invres-x:hover{color:var(--text);background:color-mix(in srgb,var(--text) 8%,transparent)}
@keyframes invres-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.invres{animation:none}}
.pf-dlg-h{display:flex;gap:14px;align-items:center;margin:0 0 18px;padding-right:32px}.pf-dlg-h .icon{width:56px;height:56px;flex:0 0 56px}
.pf-form{display:flex;flex-direction:column;gap:20px}
.lot{display:flex;align-items:center;gap:8px;margin-bottom:8px}.lot input{height:36px}.lot input[name=lq]{width:76px;text-align:right}.lot input[name=lc]{width:110px}
.lot-x,.lot-cur{color:var(--muted);font-size:13px}.lot-cur{margin-right:-4px}
[data-lot-rest].warn{color:var(--down)}
.pf-dlg-b{display:flex;gap:8px;align-items:center;border-top:1px solid var(--border);padding-top:16px}
.btn.danger-t{color:var(--down)}
.btn.busy{cursor:progress;opacity:.85}.btn.busy .spin-ic{animation:spin .8s linear infinite}
.btn.busy:not(:has(.spin-ic))::before{content:"";width:12px;height:12px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.modal-back{position:fixed;inset:0;z-index:100;background:rgba(5,8,14,.72);backdrop-filter:blur(3px);display:grid;place-items:center;padding:16px}
.modal{width:min(440px,100%);box-shadow:0 20px 60px rgba(0,0,0,.45)}
.chatbar{position:fixed;left:0;bottom:0;top:63px;z-index:45;width:320px;background:var(--surface);border-right:1px solid var(--border);display:none;flex-direction:column}
.chathead{display:flex;align-items:center;gap:8px;min-height:52px;padding:0 20px 0 14px;border-bottom:1px solid var(--border)}
/* Round handle sitting on the sidebar's edge: quiet until hovered, always easy to find. */
.chatedge{position:absolute;top:13px;right:-13px;z-index:2;width:26px;height:26px;border-radius:50%;border:1px solid var(--border);background:var(--surface);color:var(--muted);display:grid;place-items:center;cursor:pointer;padding:0;box-shadow:0 2px 8px rgba(0,0,0,.25);transition:color .15s,border-color .15s,background .15s,transform .15s}
.chatedge:hover{color:var(--accent);border-color:var(--accent);transform:scale(1.08)}
.chatedge:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.chatrail{position:fixed;left:0;bottom:0;top:63px;z-index:44;width:48px;background:var(--surface);border-right:1px solid var(--border);display:none;justify-content:center;padding-top:46px}
.chatrail button:not(.chatedge){display:flex;flex-direction:column;align-items:center;gap:6px;width:38px;padding:10px 0;border:0;border-radius:var(--r-sm);background:transparent;color:var(--muted);font:inherit;font-size:11px;font-weight:600;cursor:pointer}
.chatrail button:not(.chatedge):hover{background:var(--surface2);color:var(--text)}
.chatrail span{writing-mode:vertical-rl;letter-spacing:.06em}
.chattab{position:fixed;left:12px;bottom:12px;z-index:44;display:none;align-items:center;gap:6px;height:38px;padding:0 14px;border-radius:999px;border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;font-size:13px;font-weight:600;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.3);touch-action:none;user-select:none;-webkit-user-select:none;transition:left .18s ease,right .18s ease,top .18s ease}
.chattab.dragging{transition:none;opacity:.9;cursor:grabbing}
.jobs td{vertical-align:top}
.dq{border-bottom:1px solid color-mix(in srgb,var(--border) 60%,transparent)}
.dq:last-child{border-bottom:0}
.dq>summary{display:flex;align-items:baseline;gap:12px;padding:9px 4px;cursor:pointer;list-style:none;font-size:13.5px}
.dq>summary::-webkit-details-marker{display:none}
.dq>summary>span:first-child{flex:1;min-width:0}
.dq>summary::before{content:'›';color:var(--muted);transition:transform .15s;display:inline-block;width:8px}
.dq[open]>summary::before{transform:rotate(90deg)}
.dq[data-empty]>summary{cursor:default}
.dq[data-empty]>summary::before{visibility:hidden}
.dqlist{display:flex;flex-wrap:wrap;gap:6px 16px;padding:2px 4px 12px 24px;font-size:13px}
.dqlist a{text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--text) 30%,transparent)}
.dqrow{display:flex;justify-content:space-between;gap:12px;padding:7px 4px;font-size:13.5px;border-bottom:1px solid color-mix(in srgb,var(--border) 45%,transparent)}
.dqrow:last-child{border-bottom:0}
.jobstate{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:600}
.jobstate i{width:8px;height:8px;border-radius:50%}
.jobcell{display:flex;align-items:center;justify-content:space-between;gap:8px 12px;flex-wrap:wrap}
.jobsw-f{margin:0;flex:0 0 auto}
.jobsw{position:relative;width:38px;height:22px;padding:0;border:0;border-radius:999px;background:var(--border);cursor:pointer;transition:background .15s}
.jobsw i{position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:var(--surface);box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .15s}
.jobsw.on{background:var(--up)}.jobsw.on i{transform:translateX(16px)}
.jobsw:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* On/off settings in the owner's tabs: a row with the name (and a note) on the left and a switch on the right. */
.setrow{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid color-mix(in srgb,var(--border) 60%,transparent);cursor:pointer}
.setrow:last-of-type{border-bottom:0}.setrow>span{display:flex;flex-direction:column;gap:2px;min-width:0}.setrow-t{font-weight:500}
input.switch{appearance:none;-webkit-appearance:none;flex:0 0 auto;position:relative;width:38px;height:22px;margin:0;border-radius:999px;background:var(--border);cursor:pointer;transition:background .15s}
input.switch::after{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:var(--surface);box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .15s}
input.switch:checked{background:var(--up)}input.switch:checked::after{transform:translateX(16px)}
input.switch:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* A person in staff lists: name (linked) with the Steam ID under it. */
.who{display:inline-flex;flex-direction:column;line-height:1.3;min-width:0}.who a{font-weight:600}.who .sub{font-size:12px}
.banrow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid color-mix(in srgb,var(--border) 60%,transparent)}
.banrow:last-child{border-bottom:0}.banrow>.sub{flex:1 1 auto;text-align:right}
.actlog{max-height:520px;overflow:auto;border:1px solid var(--border);border-radius:var(--r-sm)}
.actrow{display:flex;align-items:baseline;gap:12px;padding:9px 12px;border-bottom:1px solid color-mix(in srgb,var(--border) 60%,transparent);font-size:13.5px}
.actrow:last-of-type{border-bottom:0}
.actrow[hidden]{display:none}
.actrow.bad .actmsg{color:var(--down)}
.actrow.fixed .actmsg{color:var(--muted)}
.actkind.k-fixed{display:inline-flex;align-items:center;justify-content:center;gap:4px;background:color-mix(in srgb,var(--up) 18%,transparent);color:var(--up)}
.actkind.k-fixed::before{content:'';width:11px;height:11px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat}
.actrow.fixed{background:color-mix(in srgb,var(--up) 5%,transparent)}
.actmsg{flex:1 1 auto;min-width:0;word-break:break-word}
/* Owner's Data tab: figures, then updates and activity side by side on wide screens, deeper looks under small tabs. */
.datapage{max-width:1320px}
.statrow{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:16px}
@media (max-width:720px){.statrow{gap:10px}.statrow .card{padding:14px}}
.datagrid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:16px;align-items:stretch}
@media (max-width:1180px){.datagrid{grid-template-columns:minmax(0,1fr)}}
.actcard{display:flex;flex-direction:column;min-width:0}
.actwrap{position:relative;flex:1 1 auto;min-height:420px}
.actwrap .actlog{position:absolute;inset:0;max-height:none}
.logf{height:34px;font-size:13px;padding:0 30px 0 10px}
.jobwhat>summary{font-weight:600;cursor:pointer;list-style:none;display:inline-flex;align-items:center;gap:6px}
.jobwhat>summary::-webkit-details-marker{display:none}
.jobwhat>summary::after{content:'';width:6px;height:6px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg) translate(-2px,-2px);transition:transform .15s}
.jobwhat[open]>summary::after{transform:rotate(-135deg) translate(-1px,-1px)}
.jobwhat>summary:hover{color:var(--accent)}
.jobwhat>.sub{white-space:normal;max-width:420px;margin-top:3px}
.jobdetail{margin-top:2px;white-space:normal}
.jobs td{padding-top:11px;padding-bottom:11px}
.show-sm{display:none}
@container (max-width:700px){.show-sm{display:block}}
.warnchip{font-size:11px;padding:1px 7px;margin-left:4px;background:color-mix(in srgb,var(--warn) 18%,transparent);color:var(--warn)}
.acttime{flex:0 0 auto;font-size:12px;white-space:nowrap}
.actkind{flex:0 0 96px;text-align:center;font-size:11px;font-weight:600;padding:2px 0;border-radius:999px;background:var(--surface2);color:var(--muted)}
.actkind.k-prices{background:color-mix(in srgb,var(--accent) 16%,transparent);color:var(--accent)}
.actkind.k-books,.actkind.k-drops{background:color-mix(in srgb,var(--up) 14%,transparent);color:var(--up)}
.actkind.k-problem{background:color-mix(in srgb,var(--down) 16%,transparent);color:var(--down)}
.actkind.k-who{flex-basis:120px;padding:2px 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}
.ovgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
@media (max-width:640px){.ovgrid{grid-template-columns:1fr 1fr;gap:10px}.ovgrid .ovtile{padding:14px}.ovgrid .stat{font-size:20px!important}}
.itemhead{position:relative;display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start}
.ihpic{position:relative;flex:0 0 auto;line-height:0}
.pic3d{position:absolute;right:-6px;bottom:-6px;display:inline-flex;align-items:center;gap:4px;height:26px;padding:0 9px;border-radius:999px;background:var(--accent);color:var(--accentText);font-size:12px;font-weight:700;line-height:1;box-shadow:0 2px 10px rgba(0,0,0,.35);transition:transform .12s}
.ihpic{cursor:zoom-in}.ihpic:hover .pic3d{transform:scale(1.06)}.ihpic:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:var(--r)}
.addlg.view3d{width:min(900px,calc(100vw / var(--z) - 32px))}
.v3dbox{display:flex;flex-direction:column;gap:12px}
.v3dhead{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;padding-right:32px}.v3dname{margin:0;font-size:20px}
.v3dstage{position:relative;height:min(640px,calc(100vh / var(--z) - 170px));min-height:280px;border-radius:var(--r);background:radial-gradient(ellipse at 50% 40%,var(--surface2),var(--surface) 70%);overflow:hidden;color:var(--muted)}
.v3dstage canvas{position:absolute;inset:0}
.v3dwait{position:absolute;left:50%;top:50%;width:28px;height:28px;margin:-14px;border:3px solid currentColor;border-right-color:transparent;border-radius:50%;opacity:.6;animation:v3dspin .8s linear infinite}
.v3dstage:not([data-state=loading]) .v3dwait{display:none}
.v3dfail{display:none;position:absolute;inset:0;margin:0;place-items:center;text-align:center;padding:16px}.v3dstage[data-state=error] .v3dfail{display:grid}
@keyframes v3dspin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.v3dwait{animation:none}}
.ihmain{flex:1 1 320px;min-width:0;display:flex;flex-direction:column;gap:10px}
.ihmain h1{padding-right:48px}
.ihmain .itemdesc{margin-top:-4px}
.ihchips{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ihchips .btn{height:28px}
.ihstats{display:flex;flex-wrap:wrap;gap:12px 32px;margin-top:6px;padding-top:14px;border-top:1px solid var(--border)}
.ihstat .stat{font-size:28px;line-height:1.15}
.ihstar{position:absolute;top:14px;right:14px;margin:0}
/* The small watch star at the start of item table rows (same behaviour as the item page star). */
th.c-star,td.c-star{width:34px;padding-left:10px!important;padding-right:0!important}
td.c-star form{margin:0;display:flex}
.rowstar{width:26px;height:26px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);font-size:17px;line-height:1;cursor:pointer;text-decoration:none;opacity:.55;transition:color .15s,opacity .15s,background .15s}
tr:hover .rowstar,.rowstar:focus-visible{opacity:1}
.rowstar:hover{color:var(--accent);opacity:1;background:color-mix(in srgb,var(--accent) 12%,transparent)}
.rowstar.on{color:var(--accent);opacity:1}
.starbtn{width:40px;height:40px;display:grid;place-items:center;font-size:22px;line-height:1;border-radius:var(--r-sm);border:1px solid var(--border);background:transparent;color:var(--muted);cursor:pointer;transition:color .15s,border-color .15s}
.starbtn:hover{color:var(--accent);border-color:var(--accent)}
.starbtn.on{color:var(--accent);border-color:color-mix(in srgb,var(--accent) 50%,var(--border));background:color-mix(in srgb,var(--accent) 12%,transparent)}
@media (max-width:640px){.ihpic .icon.lg{width:64px;height:64px;flex-basis:64px}.pic3d{height:22px;padding:0 7px;font-size:11px;right:-8px;bottom:-8px}.pic3d svg{display:none}.v3dstage{height:min(520px,calc(100vh / var(--z) - 190px))}.itemhead{display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px 14px;align-items:center}.ihmain{display:contents}.ihmain>*{grid-column:1/-1}.ihmain>h1{grid-column:2;font-size:24px}.itemhead .icon.lg{width:64px;height:64px;flex-basis:64px;font-size:26px}.ihstats{gap:12px 20px}.ihstat{flex:1 1 calc(50% - 10px)}.ihstat .stat{font-size:22px}}
.holders{list-style:none;margin:0;padding:0;counter-reset:h}
.holders li{counter-increment:h;display:grid;grid-template-columns:28px minmax(0,1fr) auto 64px;gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid var(--border)}
.holders li:last-child{border-bottom:0}
.holders li::before{content:counter(h);color:var(--muted);font-size:12.5px;font-family:var(--mono, inherit);text-align:center}
.h-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.h-name a{color:inherit;text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--muted) 50%,transparent);text-underline-offset:3px}
.h-name a:hover{color:var(--accent)}
.h-amt{text-align:right;font-weight:600}
.h-pct{text-align:right;font-size:12.5px}
.descedit{max-width:640px}.descedit summary{cursor:pointer;font-size:13px;color:var(--muted);width:max-content}.descedit summary:hover{color:var(--accent)}.descedit[open] summary{margin-bottom:8px}.descedit textarea{width:100%;font:inherit;padding:10px 12px;border:1px solid var(--border);border-radius:var(--r-sm);background:var(--bg);color:var(--text);resize:vertical}
.itemdesc{margin:0;max-width:640px;color:var(--muted);line-height:1.55;white-space:pre-line}
.invgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:8px}
.invgrid[data-page]>:nth-child(n+25){display:none}
.invsum{display:flex;align-items:baseline;gap:6px 12px;flex-wrap:wrap;margin:-4px 0 14px}
.invsum-v{font-size:22px;font-weight:700}
.phead{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.phead h1{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.phead-who{flex:1 1 220px;min-width:0}
.pmeta{display:flex;flex-wrap:wrap;gap:4px 18px;margin-top:10px;font-size:14px;color:var(--muted)}
.pmeta-f{color:inherit;text-decoration:none;transition:color .15s}.pmeta-f:hover{color:var(--text)}
.pmeta-f b{color:var(--text);font-weight:600;margin-right:5px}.pmeta-f.val b{color:var(--accent)}
.pblock .head{margin-bottom:10px}
#trading,#inventory,#watchlist{scroll-margin-top:84px}
.pcols{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}
.pcols:not(:has(.pside)){grid-template-columns:minmax(0,1fr)}
@media (max-width:1000px){.pcols{grid-template-columns:minmax(0,1fr)}}
.wlist{list-style:none;margin:0;padding:0}
.wlist li{display:grid;grid-template-columns:minmax(0,1fr) auto 58px;gap:10px;align-items:center;padding:7px 0;border-bottom:1px solid var(--border)}
.wlist li:last-child{border-bottom:0}
.wlist a{display:flex;gap:10px;align-items:center;min-width:0;color:inherit;text-decoration:none}
.wlist a:hover .wlist-n{color:var(--accent)}
.wlist .icon{width:32px;height:32px;flex:none}
.wlist-n{font-size:13.5px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wlist-c{text-align:right;font-size:12.5px}
.invitem{position:relative;display:flex;flex-direction:column;gap:3px;padding:8px;border:1px solid var(--border);border-radius:var(--r-sm);background:var(--bg);color:inherit;text-decoration:none;min-width:0;transition:border-color .15s}
.invitem:hover{border-color:var(--accent)}
.invitem .icon{width:100%;height:auto;aspect-ratio:1;flex:none;background:transparent}
.invcount{position:absolute;top:8px;right:8px;font-size:11px;font-weight:700;padding:1px 6px;border-radius:999px;background:var(--accent);color:var(--accentText)}
.invname{font-size:12.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.invprice{font-size:12.5px;color:var(--muted)}
.card .tile{background:var(--bg)}
.avatar-letter{display:grid;place-items:center;font-weight:700;color:var(--muted)}
/* Avatars: the picker on your profile (click your picture), the owner's grid in Admin, the small one in the header. */
.pfav{position:relative;flex:none}
.pfav>summary{list-style:none;cursor:pointer;position:relative;display:block;border-radius:var(--r-sm)}.pfav>summary::-webkit-details-marker{display:none}
.pfav .pfh-av{display:grid;place-items:center;font-size:26px;object-fit:cover}
.pfav-pen{position:absolute;right:-6px;bottom:-6px;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--surface2);border:1px solid var(--border);color:var(--muted);transition:color .15s,border-color .15s}
.pfav>summary:hover .pfav-pen,.pfav[open] .pfav-pen{color:var(--accent);border-color:var(--accent)}
.pfav-pop{position:absolute;z-index:30;top:calc(100% + 10px);left:0;width:min(452px,calc(100vw / var(--z) - 40px));padding:14px;border:1px solid var(--border);border-radius:var(--r);background:var(--surface);box-shadow:0 18px 50px rgba(0,0,0,.45)}
.pfav-h{display:flex;flex-direction:column;gap:2px;margin-bottom:10px}
.pfav-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(56px,1fr));gap:6px;max-height:300px;overflow-y:auto;scrollbar-width:thin;padding:2px}
.pfav-opt{aspect-ratio:1;padding:0;border:2px solid transparent;border-radius:10px;background:var(--surface2);cursor:pointer;overflow:hidden;display:grid;place-items:center;transition:border-color .12s,transform .12s}
.pfav-opt img{width:100%;height:100%;object-fit:cover;display:block}.pfav-opt .avatar-letter{font-size:22px}
.pfav-opt:hover{border-color:var(--muted);transform:scale(1.05)}.pfav-opt.on{border-color:var(--accent)}
.avgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:8px}
.avtile{position:relative;aspect-ratio:1;border-radius:10px;overflow:hidden;background:var(--surface2);border:1px solid var(--border)}
.avtile img{width:100%;height:100%;object-fit:cover;display:block}.avtile.off img{opacity:.45;filter:grayscale(.6)}
.avx{position:absolute;top:4px;right:4px;width:22px;height:22px;border-radius:50%;border:0;background:color-mix(in srgb,var(--bg) 80%,transparent);color:var(--text);font-size:11px;cursor:pointer;opacity:0;transition:opacity .15s,background .15s}
.avtile:hover .avx,.avx:focus-visible,.avtile.off .avx{opacity:1}.avx:hover{background:var(--down);color:var(--accentText)}.avback:hover{background:var(--up)}
.avtag{position:absolute;left:4px;bottom:4px;font-size:10px;font-weight:600;padding:1px 6px;border-radius:999px;background:var(--accent);color:var(--accentText)}
.acctav{width:20px;height:20px;border-radius:5px;object-fit:cover;margin:-2px 2px -2px -4px}
@media (hover:none){.avx{opacity:1}}
.chatname{color:inherit;text-decoration:none}.chatname:hover{color:var(--accent);text-decoration:underline}
@media (max-width:640px){.invgrid{grid-template-columns:repeat(3,minmax(0,1fr))}.phead-act:empty{display:none}}
.sitebanner{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px;padding:10px 10px 10px 16px;border-radius:var(--r-sm);border:1px solid color-mix(in srgb,var(--accent) 40%,var(--border));background:color-mix(in srgb,var(--accent) 10%,var(--surface));font-size:14px}
.sitebanner.warn{border-color:color-mix(in srgb,var(--warn) 50%,var(--border));background:color-mix(in srgb,var(--warn) 14%,var(--surface))}
.sitebanner .btn{flex:0 0 auto}
.ovtile{display:block;color:inherit;text-decoration:none;min-width:0}
.ovtile .sub{overflow-wrap:anywhere}
.ovtile.link{transition:border-color .15s}
.ovtile.link:hover{border-color:var(--accent)}
@media (max-width:640px){.actrow{flex-wrap:wrap}.actkind{flex-basis:auto;padding:2px 8px}}
.emo{display:inline-block;width:20px;height:20px;vertical-align:-4px;margin:0 1px}
.emo.custom{width:auto;min-width:20px;max-width:72px;height:24px;vertical-align:-6px;font-size:0;overflow:hidden}
.chattext.big .emo{width:34px;height:34px;vertical-align:middle}
.chattext.big .emo.custom{width:auto;height:44px}
.emogrid button .emo{width:26px;height:26px;margin:0;vertical-align:middle}
.emogrid button .emo.custom{width:auto;max-width:34px;height:28px}
.emotabs button .emo{width:19px;height:19px;margin:0;vertical-align:middle}
.emotabs button .emo.custom{width:auto;max-width:24px;height:19px}
.emotelist{display:flex;flex-wrap:wrap;gap:10px}
.emoteitem{display:flex;align-items:center;gap:10px;padding:6px 6px 6px 10px;border:1px solid var(--border);border-radius:var(--r-sm);background:var(--surface2)}
.emoteitem img{width:auto;max-width:56px;height:32px;object-fit:contain}
.chaticon{flex:0 0 auto;width:30px;height:30px;border:0;border-radius:var(--r-sm);background:transparent;color:var(--muted);display:grid;place-items:center;cursor:pointer;padding:0;transition:color .15s,background .15s}
.chaticon:hover,.chaticon[aria-expanded=true]{color:var(--accent);background:var(--surface2)}
.chaticon:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.chatmsg{position:relative;display:flex;gap:8px;padding:4px 6px;margin:0 -6px;border-radius:var(--r-sm)}
.chatmsg.pending{opacity:.55}
.chatmsg:hover{background:color-mix(in srgb,var(--surface2) 55%,transparent)}
.chattext{font-size:14px;word-break:break-word}
.chattext.big{font-size:28px;line-height:1.2}
.chattext.removed{font-style:italic;color:var(--muted);font-size:13px}
.chatacts{position:absolute;top:-12px;right:6px;z-index:2;display:flex;gap:2px;padding:2px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-sm);box-shadow:0 4px 14px rgba(0,0,0,.25);opacity:0;pointer-events:none;transition:opacity .12s}
.chatmsg:hover .chatacts,.chatacts:focus-within{opacity:1;pointer-events:auto}
.chatmore,.chatreply{flex:0 0 auto;width:26px;height:24px;border:0;border-radius:4px;background:transparent;color:var(--muted);font-size:16px;line-height:1;cursor:pointer;padding:0;display:grid;place-items:center;transition:background .12s,color .12s}
.chatmore:hover,.chatreply:hover{background:var(--surface2);color:var(--accent)}
@media (hover:none){.chatacts{position:static;align-self:flex-start;opacity:.75;pointer-events:auto;border:0;background:none;box-shadow:none;padding:0}}
.chattop{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 6px}
main.bare{min-height:calc(100vh / var(--z,1));min-height:calc(100dvh / var(--z,1));display:flex}
.hold{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 16px 24px;overflow:hidden;text-align:center}
.hold-glow{position:absolute;left:50%;top:42%;width:min(680px,calc(140vw / var(--z,1)));aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--accent) 22%,transparent) 0%,transparent 62%);filter:blur(10px);pointer-events:none}
.hold-card{position:relative;max-width:460px;width:100%;padding:36px 32px 32px;border:1px solid var(--border);border-radius:calc(var(--r) + 6px);background:color-mix(in srgb,var(--surface) 88%,transparent);box-shadow:0 24px 60px rgba(0,0,0,.28)}
.hold-brand{justify-content:center;font-size:20px;margin-bottom:22px}
.hold h1{font-size:28px;margin:14px 0 8px}
.hold p{margin:0;color:var(--muted);font-size:15px;line-height:1.6}
.hold-dots{display:flex;gap:7px;justify-content:center}
.hold-dots i{width:8px;height:8px;border-radius:50%;background:var(--accent);animation:holddot 1.2s ease-in-out infinite}
.hold-dots i:nth-child(2){animation-delay:.15s}.hold-dots i:nth-child(3){animation-delay:.3s}
@keyframes holddot{0%,80%,100%{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-4px)}}
html[data-mode=light] .hold-card{box-shadow:0 18px 40px rgba(14,22,38,.12)}
.hold .hold-note{margin-top:14px;padding:8px 12px;border-radius:var(--r-sm);background:color-mix(in srgb,var(--warn) 14%,transparent);color:var(--text);font-size:13px}
.hold-staff{position:relative;margin-top:22px;font-size:13px;color:var(--muted)}
.hold-staff:hover{color:var(--accent)}
@media (prefers-reduced-motion:reduce){.hold-dots i{animation:none;opacity:.7}}
.chip.role{font-size:10px;font-weight:700;padding:1px 6px;letter-spacing:.02em;--rc:var(--accent);background:color-mix(in srgb,var(--rc) 18%,transparent);color:var(--rc)}
.chip.role.owner{--rc:var(--roleOwner)}.chip.role.admin{--rc:var(--roleAdmin)}.chip.role.mod{--rc:var(--roleMod)}
html[data-mode=light] .chip.role{background:var(--rc);color:#fff}
.chatquote{display:flex;align-items:center;gap:6px;width:100%;min-width:0;margin:2px 0 6px;padding:5px 9px;border:0;border-left:3px solid var(--accent);border-radius:2px var(--r-sm) var(--r-sm) 2px;background:color-mix(in srgb,var(--accent) 13%,var(--surface2));font:inherit;font-size:12px;color:color-mix(in srgb,var(--text) 72%,var(--muted));cursor:pointer;text-align:left;transition:background .12s}
.chatquote::before{content:'';flex:0 0 12px;height:12px;background:currentColor;opacity:.8;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14L4 9l5-5'/%3E%3Cpath d='M4 9h10a6 6 0 0 1 6 6v5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14L4 9l5-5'/%3E%3Cpath d='M4 9h10a6 6 0 0 1 6 6v5'/%3E%3C/svg%3E") center/contain no-repeat}
.chatquote:hover{background:color-mix(in srgb,var(--accent) 17%,var(--surface2))}
.chatmsg:has(>div>.chatquote){margin-top:6px}
.chatquote:hover .chatquote-t{color:var(--text)}.chatquote:disabled{cursor:default}
.chatquote-n{font-weight:600;color:var(--accent);flex:0 0 auto}
.chatquote-t{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}
.chatquote-t.gone{font-style:italic}
.chatquote .emo{width:14px;height:14px;vertical-align:-2px}.chatquote .emo.custom{height:16px;max-width:40px}
.chatmsg.mentioned{background:color-mix(in srgb,var(--accent) 9%,transparent);box-shadow:inset 2px 0 0 var(--accent)}
.chatmsg.flash{animation:chatflash 1.4s ease-out}
@keyframes chatflash{0%,30%{background:color-mix(in srgb,var(--accent) 22%,transparent)}100%{background:transparent}}
.chatflag-x{margin-left:auto;flex:0 0 auto;border:0;background:none;padding:0 0 0 8px;font:inherit;font-size:12px;font-weight:600;color:var(--muted);text-decoration:underline;cursor:pointer}
.chatflag-x:hover{color:var(--text)}
.chatreplying{display:flex;align-items:center;gap:8px;padding:6px 10px 6px 14px;border-top:1px solid var(--border);background:var(--surface2);font-size:12.5px;color:var(--muted)}
.chatreplying[hidden]{display:none}.chatreplying b{color:var(--text)}
.chatreplying-t{flex:1 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.chatreplying .chaticon{width:24px;height:24px}
.chatreplying+.chatform{border-top:0}
.chatstaff{display:flex;align-items:center;gap:8px;margin:8px 10px 0;padding:8px 10px;border:1px solid color-mix(in srgb,var(--warn) 45%,var(--border));border-radius:var(--r-sm);background:color-mix(in srgb,var(--warn) 12%,var(--surface));color:var(--text);font-size:12.5px;font-weight:500}
.chatstaff[hidden]{display:none}.chatstaff svg{color:var(--warn);flex:0 0 auto}
.chatstaff span:first-of-type{flex:1 1 auto}
.chatstaff-go{font-weight:700;color:var(--warn)}
.chatstaff:hover{border-color:var(--warn);color:var(--text)}
#chat.todo .chatrail button:not(.chatedge),#chat.todo .chattab{position:relative}
#chat.todo .chatrail button:not(.chatedge)::after,#chat.todo .chattab::after{content:'';position:absolute;top:4px;right:4px;width:8px;height:8px;border-radius:50%;background:var(--warn);box-shadow:0 0 0 2px var(--surface)}
.emotip{position:fixed;z-index:200;pointer-events:none;padding:4px 8px;border-radius:6px;background:var(--text);color:var(--bg);font-size:12px;font-weight:600;white-space:nowrap;box-shadow:0 4px 14px rgba(0,0,0,.3)}
.emotip[hidden]{display:none}
.chatmenu{position:absolute;right:12px;z-index:4;min-width:180px;padding:5px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r);box-shadow:0 12px 36px rgba(0,0,0,.4);display:flex;flex-direction:column}
.chatmenu button{display:block;width:100%;text-align:left;border:0;background:transparent;color:var(--text);font:inherit;font-size:13px;padding:7px 10px;border-radius:var(--r-sm);cursor:pointer}
.chatmenu button:hover,.chatmenu button:focus-visible{background:var(--surface2);outline:0}
.chatmenu button.danger{color:var(--down)}
.chatmenu-h{font-size:11px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;padding:8px 10px 3px;border-top:1px solid var(--border);margin-top:4px}
.chatmenu-h:first-child{border-top:0;margin-top:0}
.chatrules{position:absolute;top:58px;left:10px;right:10px;z-index:3;padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r);box-shadow:0 12px 36px rgba(0,0,0,.4)}
.chatrules[hidden],.emopick[hidden]{display:none}
.chatrules ol{margin:10px 0 12px;padding-left:20px;display:flex;flex-direction:column;gap:7px;font-size:13.5px;line-height:1.4}
.chatform{position:relative;display:flex;gap:8px;padding:10px;border-top:1px solid var(--border)}
.chatinput{position:relative;flex:1 1 auto;display:flex;min-width:0}
.chatbox{flex:1 1 auto;width:100%;min-width:0;min-height:40px;max-height:98px;overflow-y:auto;padding:9px 40px 9px 12px;border-radius:var(--r-sm);border:1px solid var(--border);background:var(--bg);color:var(--text);font-size:14px;line-height:20px;white-space:pre-wrap;word-break:break-word;outline:0;cursor:text}
.chatbox:focus{border-color:color-mix(in srgb,var(--accent) 60%,var(--border))}
.chatbox:empty::before{content:attr(data-placeholder);color:var(--muted);pointer-events:none}
.chatbox[contenteditable=false]{opacity:.6}
.chatbox .emo{vertical-align:-4px}
.chatinput .chaticon{position:absolute;right:4px;bottom:5px}
.emopick{position:absolute;left:10px;right:10px;bottom:calc(100% + 6px);z-index:3;background:var(--surface);border:1px solid var(--border);border-radius:var(--r);box-shadow:0 12px 36px rgba(0,0,0,.4);display:flex;flex-direction:column;overflow:hidden}
.emotabs{display:flex;gap:2px;padding:6px;border-bottom:1px solid var(--border)}
.emotabs button,.emogrid button{display:grid;place-items:center;border:0;border-radius:var(--r-sm);background:transparent;cursor:pointer;padding:0;line-height:1}
.emotabs button{flex:1 1 0;height:32px;font-size:17px;opacity:.5;filter:grayscale(.7);transition:opacity .12s,filter .12s,background .12s}
.emotabs button:hover,.emotabs button[aria-selected=true]{opacity:1;filter:none}
.emotabs button[aria-selected=true]{background:var(--surface2)}
.emogrid{display:grid;grid-template-columns:repeat(8,1fr);gap:2px;padding:2px 8px 8px;height:220px;overflow-y:auto;align-content:start}
.emogrid button{aspect-ratio:1;font-size:21px;transition:transform .1s,background .1s}
.emogrid button:hover,.emogrid button:focus-visible{background:var(--surface2);transform:scale(1.15);outline:0}
.emohead{grid-column:1/-1;font-size:11px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;padding:8px 2px 4px}
@media (min-width:1200px){
  html.chat-on.chat-open .chatbar{display:flex}
  html.chat-on:not(.chat-open) .chatrail{display:flex}
  /* Same offset whether the chat is open or collapsed, so collapsing never moves the page.
     The page stays centred and only shifts right as far as it must to clear the 320px chat. */
  html.chat-on main,html.chat-on footer{padding-left:clamp(0px,calc(700px + var(--maxw) - 100vw / var(--z)),320px)}
}
@media (max-width:1199px){
  html.chat-on .chattab{display:flex}
  html.chat-drawer .chatbar{display:flex;width:min(360px,100vw);box-shadow:12px 0 40px rgba(0,0,0,.35)}
  /* In the drawer the collapse button sits inside the header, after the rules button, not over it. */
  html.chat-drawer .chatedge{right:12px;top:13px;box-shadow:none}
  html.chat-drawer .chathead{padding-right:50px}
  html.chat-drawer .chattab{display:none}
}
@media (max-width:480px){html.chat-drawer .chatbar{width:100vw}}
/* While the chat drawer is open the page behind it stays put; scrolling inside the chat never carries over to the page. */
html.chat-drawer,html.chat-drawer body{overflow:hidden;overscroll-behavior:none}
#chat-list{overscroll-behavior:contain}
.btn.sm{height:34px;padding:0 11px;font-size:13px}
.btn.ghost{background:transparent}
main{padding:28px 0 64px}
.stack{display:flex;flex-direction:column;gap:20px}
.row{display:flex;flex-wrap:wrap;gap:16px}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);padding:20px 22px}
.card h2{margin-bottom:14px}
.head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.head h2{margin:0}
.label{font-size:13px;color:var(--muted)}
.big{font-family:var(--mono);font-size:50px;font-weight:600;letter-spacing:-0.03em;line-height:1.05}
.stat{font-family:var(--mono);font-size:24px;font-weight:600}
.chip{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:var(--surface2);font-size:13px;color:var(--text)}
.chip.accent{background:color-mix(in srgb,var(--accent) 18%,transparent);color:var(--accent);font-weight:600}
.chip.danger{background:color-mix(in srgb,var(--down) 16%,transparent);color:var(--down);font-weight:600}
.tablebox{position:relative;overflow-x:auto;border:1px solid var(--border);border-radius:var(--r);background:var(--surface)}
table{width:100%;border-collapse:collapse;font-size:14px}
th{font-size:12px;font-weight:500;color:var(--muted);text-align:right;padding:var(--cell) 14px;border-bottom:1px solid var(--border);white-space:nowrap;user-select:none}
th.l,td.l{text-align:left}
th[data-sort]{cursor:pointer}
th[data-sort]:hover{color:var(--text)}
th .arr{opacity:.4}
td{padding:var(--cell) 14px;border-bottom:1px solid color-mix(in srgb,var(--border) 60%,transparent);text-align:right;white-space:nowrap}
tr:last-child td{border-bottom:0}
tbody tr:hover td{background:color-mix(in srgb,var(--surface2) 55%,transparent)}
.itemcell{display:flex;align-items:center;gap:12px}
.icon{width:38px;height:38px;flex:0 0 38px;border-radius:var(--r-sm);background:var(--surface2);object-fit:contain}
/* Light mode: a soft lit backdrop so dark items (tattoos, black clothing) stay visible. */
html[data-mode=light] .icon,html[data-mode=light] .imgbox{background:radial-gradient(circle at 50% 40%,#ffffff 0%,#e9eef5 58%,#d3dbe6 100%)}
html[data-mode=light] img.icon{filter:drop-shadow(0 1px 1.5px rgba(14,22,38,.18))}
/* Store cards: the picture sits straight on the card's image area, a little larger. */
.imgbox .icon{background:transparent !important;width:112px;height:112px;flex:0 0 112px}
.icon.lg{width:112px;height:112px;flex:0 0 112px;border-radius:var(--r)}
.icon.md{width:88px;height:88px;flex:0 0 88px}
.sub{font-size:12px;color:var(--muted)}
.liq{display:flex;align-items:center;gap:10px;justify-content:flex-start}
.liqn{font-weight:600;min-width:22px;text-align:right}
.b{font-weight:600}
.ic{display:flex;flex-direction:column;gap:2px}
.chip.xs{font-size:11px;padding:2px 7px}
.spk path{fill:none;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
.spk.up path{stroke:var(--up)}.spk.down path{stroke:var(--down)}
.bar{width:56px;height:6px;border-radius:3px;background:var(--surface2);overflow:hidden;display:block}
.bar>span{display:block;height:6px;border-radius:3px}
.seg{display:flex;gap:4px;padding:4px;border-radius:calc(var(--r-sm) + 4px);background:var(--surface);border:1px solid var(--border);flex-wrap:wrap}
.seg button,.seg a{height:34px;padding:0 13px;border-radius:var(--r-sm);border:0;background:transparent;color:var(--muted);font:inherit;font-size:13px;font-weight:500;cursor:pointer;display:inline-flex;align-items:center}
.seg .on{background:var(--surface2);color:var(--text);font-weight:600}
.editor{display:grid;grid-template-columns:168px minmax(340px,440px) minmax(0,1fr);gap:18px;align-items:start}
.edmenu{display:flex;flex-direction:column;gap:2px;position:sticky;top:80px}
.edmenu button{display:flex;align-items:center;justify-content:space-between;gap:8px;height:38px;padding:0 12px;border:0;border-radius:var(--r-sm);background:transparent;color:var(--muted);font:inherit;font-size:14px;font-weight:500;cursor:pointer;text-align:left}
.edmenu button:hover{color:var(--text);background:var(--surface)}
.edmenu button.on{background:var(--surface2);color:var(--text);font-weight:600}
.eddot{width:7px;height:7px;border-radius:50%;background:var(--accent);visibility:hidden;flex:none}
.edmenu button.dirty .eddot{visibility:visible}
.edform{min-width:0}
.edform .chg>label::after,.edform label.chg::after{content:"";display:inline-block;width:6px;height:6px;margin-left:7px;border-radius:50%;background:var(--accent);vertical-align:middle}
.edform ol.chg,.edform #nav-list.chg{box-shadow:-3px 0 0 var(--accent);padding-left:8px}
.edpreview{position:sticky;top:80px;gap:10px;min-width:0}
.edpreview.pvbig{position:fixed;inset:12px;z-index:150;padding:14px;background:var(--bg);border:1px solid var(--border);border-radius:var(--r);box-shadow:0 20px 60px rgba(0,0,0,.45);display:flex;flex-direction:column}
.edpreview.pvbig .pvframe{flex:1 1 auto;height:auto;min-height:0}
html.pv-big{overflow:hidden}
.edbar{padding:10px 12px;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.edbar .btn[disabled]{opacity:.4;cursor:default}
.chgn{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;margin-left:8px;border-radius:10px;background:var(--accentText);color:var(--accent);font-size:12px;font-weight:700}
.edhist{flex:1 0 100%;text-align:right;text-decoration:underline}
.edtools{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.edtools .seg button{height:28px}
.pvframe{position:relative;height:calc(100vh / var(--z,1) - 230px);min-height:520px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r);overflow:hidden}
.pvframe iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0;background:var(--bg);display:block;transform-origin:0 0}
.pvframe.phone{display:flex;justify-content:center;padding:14px 0;background:var(--surface2)}
.pvframe.phone iframe{position:static;width:390px;max-width:100%;height:100%;border:1px solid var(--border);border-radius:18px}
.contrast{display:flex;flex-direction:column;gap:6px;margin-top:12px}.contrast:empty{display:none}
@media (max-width:1180px){.editor{grid-template-columns:1fr}.edmenu{position:static;flex-direction:row;overflow-x:auto;scrollbar-width:thin}.edmenu button{flex:none}.edpreview{position:static}.pvframe{height:70vh}}
.bklist{max-height:340px;overflow:auto;border:1px solid var(--border);border-radius:var(--r-sm);padding:6px;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:2px 10px;background:var(--bg)}
.bklist label{display:flex;gap:8px;align-items:center;padding:5px 6px;border-radius:6px;font-size:13px;cursor:pointer}.bklist label:hover{background:var(--surface2)}.bklist label[hidden]{display:none}
.ownerbar{position:fixed;right:16px;bottom:16px;z-index:60;display:flex;align-items:center;gap:6px;padding:6px;border-radius:999px;background:var(--surface);border:1px solid var(--border);box-shadow:0 8px 28px color-mix(in srgb,var(--bg) 60%,transparent);font-size:13px;max-width:calc(100vw / var(--z,1) - 32px)}
.ownerbar.viewing{border-color:var(--accent)}
.ob-tag{display:inline-flex;align-items:center;gap:5px;height:30px;padding:0 10px 0 12px;border:0;border-radius:999px;background:var(--accent);color:var(--accentText);font:inherit;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}
.ob-body{display:flex;align-items:center;gap:6px;min-width:0;overflow-x:auto;scrollbar-width:none}
.ob-body>a{padding:0 10px;height:30px;display:inline-flex;align-items:center;border-radius:999px;color:var(--text);white-space:nowrap}.ob-body>a:hover{background:var(--surface2)}
.ob-seg{display:flex;align-items:center;gap:2px;padding:2px;border-radius:999px;background:var(--bg);border:1px solid var(--border)}
.ob-l{color:var(--muted);padding:0 6px 0 8px;white-space:nowrap}
.ob-seg button{height:26px;padding:0 10px;border:0;border-radius:999px;background:transparent;color:var(--muted);font:inherit;font-size:12px;cursor:pointer;white-space:nowrap}
.ob-seg button.on{background:var(--surface2);color:var(--text);font-weight:600}
html.ob-min .ob-body{display:none}
.ob-chev{transition:transform .15s}html.ob-min .ob-chev{transform:rotate(180deg)}
/* Phones: the owner bar sits above the chat button's usual spot, and the chat button stays on top wherever it's dragged. */
@media (max-width:720px){.ownerbar{left:12px;right:12px;bottom:60px;max-width:none}.ob-l{display:none}html.ob-min .ownerbar{left:auto}.chattab{z-index:61}}
/* The owner bar steps aside while the chat drawer is open (it would cover the Send button). */
html.chat-drawer .ownerbar{display:none}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(236px,1fr));gap:16px}
.tablebox{container-type:inline-size}
@container (max-width:1360px){.liq .sub{display:none}}
/* The 7-day trend is drawn 72px wide in tables; with the default columns the table needs ~1040px, all columns ~1120px. */
.c-spark .spk{width:72px}
table.fh-c-spark .c-spark,table.fh-c-bid .c-bid,table.fh-c-supply .c-supply,table.fh-c-sold .c-sold,table.fh-c-trend24 .c-trend24,table.fh-c-ask .c-ask,table.fh-c-liquidity .c-liquidity,table.fh-c-cap .c-cap,table.fh-c-rank .c-rank{display:none}
@container (max-width:1050px){.c-spark{display:none}}
@container (max-width:1120px){.c-bid{display:none}}
@container (max-width:1020px){.c-sold{display:none}}
@container (max-width:920px){.c-trend24{display:none}}
@container (max-width:820px){.c-ask{display:none}}
/* Phones: name, price and 7-day change fit without sideways scrolling; the rest is on the item page. */
@container (max-width:700px){.c-liquidity{display:none}}
@container (max-width:580px){.c-cap{display:none}}
@container (max-width:420px){.c-rank{display:none}}
@container (max-width:700px){.hide-sm{display:none}}
.show-xs{display:none}
@container (max-width:520px){.hide-xs{display:none}.show-xs{display:inline}.qty-edit input{width:56px}td .btn.sm{padding:0 10px}}
@container (max-width:580px){th,td{padding-left:8px;padding-right:8px}td.l .itemcell{gap:10px}td.l .itemcell>span{white-space:normal;min-width:0}td.l .itemcell>span>span:first-child{overflow-wrap:anywhere}}
/* Phones: item tables keep every column and scroll sideways (7-day chart included); the item name stays pinned on the left. */
@container (max-width:700px){table[data-fit]{width:max-content;min-width:100%}table[data-fit] .c-spark,table[data-fit] .c-bid,table[data-fit] .c-sold,table[data-fit] .c-trend24,table[data-fit] .c-ask,table[data-fit] .c-liquidity,table[data-fit] .c-cap{display:table-cell}
table[data-fit] .c-item{position:sticky;left:0;z-index:1;background:var(--surface);max-width:46cqw;min-width:150px}table[data-fit] th.c-item{z-index:2}table[data-fit] .c-spark .spk{max-width:none;min-width:72px}tbody tr:hover td.c-item{background:color-mix(in srgb,var(--surface2) 55%,var(--surface))}
table[data-fit] .c-item::after{content:'';position:absolute;top:0;bottom:0;right:0;width:1px;background:var(--border)}
/* The watch star stays pinned too, just left of the item name. */
table[data-fit] .c-star{position:sticky;left:0;z-index:1;background:var(--surface)}table[data-fit] th.c-star{z-index:2}tbody tr:hover td.c-star{background:color-mix(in srgb,var(--surface2) 55%,var(--surface))}
table[data-fit] .c-star~.c-item{left:34px}}
/* Phones: the table filters stay on one row (they scroll sideways if a screen is very narrow). */
@media (max-width:720px){.seg[data-rowfilter]{flex:1 1 100%;flex-wrap:nowrap;overflow-x:auto;max-width:100%;scrollbar-width:none}.seg[data-rowfilter]::-webkit-scrollbar{display:none}.seg[data-rowfilter] button{flex:1 0 auto;justify-content:center;padding:0 8px;white-space:nowrap}}
.hero{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:16px}
.hero[data-n="3"]{grid-template-columns:1.3fr 1fr 1fr}.hero[data-n="2"]{grid-template-columns:1.3fr 1fr}.hero[data-n="1"]{grid-template-columns:minmax(0,560px)}
.tile{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);padding:16px 18px;display:flex;flex-direction:column;min-width:0}
.tile h2{font-size:14px;font-weight:600;display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px}
.tile h2 a{font-size:12px;font-weight:500;color:var(--muted)}.tile h2 a:hover{color:var(--accent)}
/* The market cap box opens the market cap page: the whole box is the link. */
a.tilelink{color:var(--text);text-decoration:none;transition:border-color .15s,background .15s}
a.tilelink:hover{border-color:var(--muted)}a.tilelink:hover .tlmore{color:var(--accent)}
.tlmore{font-size:12px;font-weight:500;color:var(--muted);transition:color .15s}
/* Market cap page */
.capstats{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:16px}
.cappanel{display:flex;flex-direction:column;gap:6px;padding:20px 22px 16px;overflow:hidden;position:relative}
.cappanel-h{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.cappanel-h .label{display:inline-flex;align-items:center;gap:8px}
.cappanel .capv{margin:2px 0 0;font-size:40px}
.capchips{display:flex;flex-wrap:wrap;gap:6px}
.cappanel-spark{margin:6px -22px 0;height:64px}.cappanel-spark .capspark{display:block;width:100%;height:64px}
.capfacts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--border);margin:0 -22px;padding:12px 22px 0}
.capfact{display:flex;flex-direction:column;gap:3px;min-width:0;padding-right:12px}
.capfact+.capfact{border-left:1px solid var(--border);padding-left:16px}
.capfact .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.capfact .num{font-size:16px;font-weight:600}
.livedot{width:8px;height:8px;border-radius:50%;background:var(--up);box-shadow:0 0 0 0 color-mix(in srgb,var(--up) 60%,transparent);animation:livep 2s ease-out infinite}
@keyframes livep{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--up) 55%,transparent)}70%{box-shadow:0 0 0 7px transparent}100%{box-shadow:0 0 0 0 transparent}}
@media (prefers-reduced-motion:reduce){.livedot{animation:none}}
.caprecs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.caprec{display:flex;flex-direction:column;gap:4px;min-width:0;padding:14px 16px;border:1px solid var(--border);border-radius:var(--r-sm);background:var(--surface2)}
.caprec .capv-s{font-size:20px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.caprec .sub{font-size:12px}
.caprange{margin-top:18px}.caprange-bar{position:relative;height:8px;margin:0 3px;border-radius:99px;background:linear-gradient(90deg,var(--down),var(--warn),var(--up));opacity:.85}
.caprange-bar i{position:absolute;top:-6px;width:4px;height:20px;margin-left:-2px;border-radius:2px;background:var(--text)}
.caprange-l{display:flex;justify-content:space-between;gap:12px;margin-top:8px;font-size:12px;color:var(--muted)}.caprange-l span:last-child{text-align:right}
@media (max-width:1000px){.capstats{grid-template-columns:1fr}}
@media (max-width:640px){.cappanel{padding:16px 16px 12px}.cappanel .capv{font-size:32px}.cappanel-spark,.capfacts{margin-left:-16px;margin-right:-16px}.capfacts{padding:10px 16px 0}.capfact+.capfact{padding-left:10px}.capfact .num{font-size:14px}.capfact .label{white-space:normal;font-size:11px;line-height:1.3}
  .caprecs{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.caprec{padding:12px}.caprec .capv-s{font-size:17px}}
.tl{display:flex;align-items:center;gap:10px;padding:6px 8px;margin:0 -8px;border-radius:var(--r-sm);min-width:0}
.tl:hover{background:var(--surface2)}
.tl .icon{width:30px;height:30px;flex:0 0 30px}
.tl .tlt{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.tl .nm{font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tl .pr{font-family:var(--mono);font-size:11.5px;color:var(--muted)}
.tl .ch{font-family:var(--mono);font-size:12px;font-weight:600;min-width:58px;text-align:right}
.capv{font-family:var(--mono);font-size:36px;font-weight:600;letter-spacing:-0.03em;line-height:1.1;margin:2px 0 8px}
.capspark{margin:10px 0 6px;display:block;width:100%;height:56px}
@media (max-width:1180px){.hero,.hero[data-n]{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.hero,.hero[data-n]{grid-template-columns:1fr}.capv{font-size:30px}}
.pill{position:absolute;top:10px;right:10px;padding:4px 9px;border-radius:999px;font-size:12px;font-weight:600}
.form{display:flex;flex-direction:column;gap:12px}
.field{display:flex;flex-direction:column;gap:6px}
[data-rowfilter]{scroll-margin-top:84px}
.ulfield{position:relative}.ulfield .sdrop{min-width:0}#user-lookup.busy{opacity:.6;transition:opacity .15s}
.pfhead{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.pfh-av{width:64px;height:64px;border-radius:var(--r-sm);flex:0 0 auto}
.pfh-main{flex:1 1 260px;min-width:0;display:flex;flex-direction:column;gap:4px}
.pfh-name{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pfh-name h1{margin:0;overflow-wrap:anywhere}
.pfh-name:has(.pfh-edit[open]) h1{display:none}
.pfh-edit{display:contents}
.pfh-edit[open]{display:block;width:100%}
.pfh-pen{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:32px;height:32px;padding:0 8px;border-radius:var(--r-sm);border:1px solid var(--border);color:var(--muted);cursor:pointer;list-style:none;font-size:13px;user-select:none}
.pfh-pen::-webkit-details-marker{display:none}
.pfh-pen:hover{color:var(--text);border-color:var(--accent)}
.pfh-pen.off{opacity:.45;cursor:not-allowed}.pfh-pen.off:hover{color:var(--muted);border-color:var(--border)}
.pfh-edit[open] .pfh-pen{display:none}
.pfh-form{display:flex;gap:8px;align-items:center;max-width:460px}
.pfh-form .btn{height:38px}
.pfh-form input{flex:1 1 auto;min-width:0;height:38px;font-size:18px;font-weight:600}
.pfh-hint{margin:6px 0 0}
.pfh-edit:not([open]) .pfh-form,.pfh-edit:not([open]) .pfh-hint{display:none}
.pfh-act{display:flex;gap:10px;flex-wrap:wrap}
.pfset{display:grid;grid-template-columns:1fr 1fr;gap:20px 32px;margin-top:6px}
.pfset-col{display:flex;flex-direction:column;gap:20px;min-width:0}
.pfset-g{display:flex;flex-direction:column;gap:10px}
.pfset-g>.label{font-weight:600;color:var(--text);font-size:14px}
.pfcheck{display:flex;gap:10px;align-items:flex-start;font-size:14px;cursor:pointer}
.pfcheck input{margin-top:3px;accent-color:var(--accent)}
.pfset-foot{grid-column:1/-1;display:flex;justify-content:flex-end;padding-top:14px;border-top:1px solid var(--border)}
/* Your profile: settings and inventory as the main column, your lists in a side column (one column on smaller screens). */
.pfgrid{display:grid;grid-template-columns:minmax(0,1fr) 360px;grid-template-areas:"set side" "inv side";gap:16px;align-items:start}
.pfsetcard{grid-area:set}.pfinv{grid-area:inv;min-width:0}.pfside{grid-area:side;display:flex;flex-direction:column;gap:16px;min-width:0}
.pfinv>.card{margin:0}
.pfport{display:flex;justify-content:space-between;align-items:center;gap:12px;color:var(--text);text-decoration:none;transition:border-color .15s}
.pfport:hover{border-color:var(--muted)}
.pfcard .head{margin-bottom:6px}.pfcard h2{margin:0}
.pfrow{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--border)}.pfrow:last-child{border-bottom:0}
.pfrow .tl{flex:1 1 auto;min-width:0;padding:7px 0}
.pfx{flex:none;width:28px;height:28px;border-radius:var(--r-sm);border:0;background:transparent;color:var(--muted);cursor:pointer;font-size:13px;opacity:.6;transition:opacity .15s,background .15s,color .15s}
.pfrow:hover .pfx,.pfx:focus-visible{opacity:1}.pfx:hover{background:var(--surface2);color:var(--down)}
.pfalert{justify-content:space-between;padding:8px 0}.pfalert>div{min-width:0}.pfal-n{font-weight:500;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pfnote{justify-content:space-between;padding:8px 0;font-size:14px}.pfnote.unread{font-weight:600}.pfnote .sub{flex:none}
@media (max-width:1100px){.pfgrid{grid-template-columns:minmax(0,1fr);grid-template-areas:"set" "side" "inv"}}
@media (hover:none){.pfx{opacity:1}}
.pfdel{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.pfdel h2{margin:0 0 4px}.pfdel>div{flex:1 1 320px}
@media (max-width:760px){.pfh-av{width:48px;height:48px}.pfhead{gap:14px}.pfh-main{flex-basis:180px}.pfset{grid-template-columns:1fr}.pfset-foot{justify-content:stretch}.pfset-foot .btn{flex:1}.pfh-act{width:100%}.pfh-act .btn,.pfh-act form{flex:1}.pfh-act form .btn{width:100%}}
.field label{font-size:13px;color:var(--muted)}
/* Search, date and file boxes inside forms look like the other fields (the header search keeps its own look). */
.field input[type=search],.field input[type=datetime-local]{height:40px;padding:0 12px;border-radius:var(--r-sm);border:1px solid var(--border);background:var(--bg);color:var(--text);font:inherit;font-size:14px;color-scheme:inherit;width:100%}
.field input[type=file],form input[type=file]{font:inherit;font-size:13px;color:var(--muted);max-width:100%}
input[type=file]::file-selector-button{height:34px;margin-right:10px;padding:0 12px;border-radius:var(--r-sm);border:1px solid var(--border);background:var(--surface2);color:var(--text);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
input[type=file]::file-selector-button:hover{border-color:var(--accent)}
input[type=checkbox]:not(.switch),input[type=radio]{accent-color:var(--accent)}
input[type=text],input[type=number],input[type=password],input[type=url],select,textarea{height:40px;padding:0 12px;border-radius:var(--r-sm);border:1px solid var(--border);background:var(--bg);color:var(--text);font:inherit;font-size:14px}
textarea{height:auto;padding:10px 12px;font-family:var(--mono);font-size:13px}
.notice{padding:12px 14px;border-radius:var(--r-sm);background:var(--surface2);font-size:14px}
.notice.warn{background:color-mix(in srgb,var(--warn) 14%,transparent);color:var(--text)}
footer{border-top:1px solid var(--border)}
footer .wrap{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-top:22px;padding-bottom:22px;font-size:13px;color:var(--muted)}
.flinks{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center}.flinks a{display:inline-flex;align-items:center;gap:6px}.flinks a:hover{color:var(--text)}.flinks svg{flex:0 0 auto}
.chart{width:100%;height:auto;display:block}
.chart .grid line{stroke:var(--border)}
.chart text{fill:var(--muted);font-family:var(--mono);font-size:11px}
[id]{scroll-margin-top:90px}
.chartwrap{position:relative;touch-action:pan-y}.chartwrap svg{display:block;width:100%;height:auto}
.ctip{position:absolute;top:8px;pointer-events:none;background:var(--surface2);border:1px solid var(--border);border-radius:var(--r-sm);padding:8px 11px;font-size:12px;line-height:1.5;white-space:nowrap;box-shadow:0 6px 20px rgba(0,0,0,.25);z-index:5}
.ctip .d{color:var(--muted);margin-bottom:3px}.ctip .r{display:flex;align-items:center;gap:8px}.ctip .r b{margin-left:auto;padding-left:14px;font-family:var(--mono);font-weight:600}
.ctip i{width:10px;height:3px;border-radius:2px;display:inline-block}
.legend{display:flex;flex-wrap:wrap;gap:6px;margin:-4px 0 8px}
button.lg{display:inline-flex;align-items:center;gap:7px;height:28px;padding:0 10px;border-radius:999px;border:1px solid var(--border);background:transparent;color:var(--muted);font:inherit;font-size:12px;cursor:pointer}
button.lg i{width:12px;height:3px;border-radius:2px;display:inline-block}
button.lg.on{color:var(--text);background:var(--surface2)}button.lg:not(.on){opacity:.55}button.lg:not(.on) i{background:var(--muted) !important}
.chartwrap g.off{display:none}
.empty{padding:28px;text-align:center;color:var(--muted)}
.icon-fb{display:inline-flex;align-items:center;justify-content:center;font-weight:600;font-size:15px;color:var(--muted)}
.icon.lg.icon-fb{font-size:40px}.icon.md.icon-fb{font-size:30px}
.doc{max-width:760px;margin:12px auto 40px;color:color-mix(in srgb,var(--text) 84%,var(--bg))}
.doc h1{text-align:center;font-size:32px;color:var(--text);margin:8px 0 30px}
.doc h2{font-size:20px;font-weight:700;color:var(--text);margin:38px 0 12px}
.doc h3{font-size:16px;font-weight:600;color:var(--text);margin:24px 0 8px}
.doc p,.doc li{font-size:16px;line-height:1.65}
.doc p{margin:0 0 14px}.doc ul{margin:0 0 14px;padding-left:22px}.doc li{margin:0 0 6px}
.doc strong{color:var(--text);font-weight:600}
.doc a{color:var(--accent);text-decoration:underline}
.doc .lead{margin-bottom:22px}
.doc table{font-size:15px;margin:4px 0 16px}.doc th,.doc td{text-align:left;white-space:normal;padding:10px 12px;border-bottom:1px solid var(--border);vertical-align:top}
.doc th{font-size:13px}
@media (max-width:720px){.big{font-size:38px}h1{font-size:24px}}
@media (min-width:1366px){html{zoom:1}:root{--z:1}}@media (min-width:1398px){html{zoom:0.973}:root{--z:0.973}}@media (min-width:1430px){html{zoom:0.945}:root{--z:0.945}}@media (min-width:1440px){html{zoom:0.937}:root{--z:0.937}}@media (min-width:1462px){html{zoom:0.918}:root{--z:0.918}}@media (min-width:1494px){html{zoom:0.891}:root{--z:0.891}}@media (min-width:1526px){html{zoom:0.863}:root{--z:0.863}}@media (min-width:1536px){html{zoom:0.855}:root{--z:0.855}}@media (min-width:1558px){html{zoom:0.836}:root{--z:0.836}}@media (min-width:1590px){html{zoom:0.809}:root{--z:0.809}}@media (min-width:1600px){html{zoom:0.8}:root{--z:0.8}}@media (min-width:1622px){html{zoom:0.8}:root{--z:0.8}}@media (min-width:1654px){html{zoom:0.8}:root{--z:0.8}}@media (min-width:1680px){html{zoom:0.8}:root{--z:0.8}}@media (min-width:1686px){html{zoom:0.8}:root{--z:0.8}}@media (min-width:1718px){html{zoom:0.8}:root{--z:0.8}}@media (min-width:1750px){html{zoom:0.8}:root{--z:0.8}}@media (min-width:1782px){html{zoom:0.8}:root{--z:0.8}}@media (min-width:1814px){html{zoom:0.8}:root{--z:0.8}}@media (min-width:1846px){html{zoom:0.8}:root{--z:0.8}}@media (min-width:1878px){html{zoom:0.8}:root{--z:0.8}}@media (min-width:1910px){html{zoom:0.8}:root{--z:0.8}}@media (min-width:1920px){html{zoom:0.8}:root{--z:0.8}}@media (min-width:1942px){html{zoom:0.8}:root{--z:0.8}}@media (min-width:1974px){html{zoom:0.8}:root{--z:0.8}}@media (min-width:2006px){html{zoom:0.8}:root{--z:0.8}}@media (min-width:2038px){html{zoom:0.8}:root{--z:0.8}}@media (min-width:2048px){html{zoom:0.8}:root{--z:0.8}}@media (min-width:2070px){html{zoom:0.809}:root{--z:0.809}}@media (min-width:2102px){html{zoom:0.821}:root{--z:0.821}}@media (min-width:2134px){html{zoom:0.834}:root{--z:0.834}}@media (min-width:2166px){html{zoom:0.846}:root{--z:0.846}}@media (min-width:2198px){html{zoom:0.859}:root{--z:0.859}}@media (min-width:2230px){html{zoom:0.871}:root{--z:0.871}}@media (min-width:2262px){html{zoom:0.884}:root{--z:0.884}}@media (min-width:2294px){html{zoom:0.896}:root{--z:0.896}}@media (min-width:2326px){html{zoom:0.909}:root{--z:0.909}}@media (min-width:2358px){html{zoom:0.921}:root{--z:0.921}}@media (min-width:2390px){html{zoom:0.934}:root{--z:0.934}}@media (min-width:2422px){html{zoom:0.946}:root{--z:0.946}}@media (min-width:2454px){html{zoom:0.959}:root{--z:0.959}}@media (min-width:2486px){html{zoom:0.971}:root{--z:0.971}}@media (min-width:2518px){html{zoom:0.984}:root{--z:0.984}}@media (min-width:2550px){html{zoom:0.996}:root{--z:0.996}}@media (min-width:2560px){html{zoom:1}:root{--z:1}}@media (min-width:2582px){html{zoom:1.009}:root{--z:1.009}}@media (min-width:2614px){html{zoom:1.021}:root{--z:1.021}}@media (min-width:2646px){html{zoom:1.034}:root{--z:1.034}}@media (min-width:2678px){html{zoom:1.046}:root{--z:1.046}}@media (min-width:2710px){html{zoom:1.059}:root{--z:1.059}}@media (min-width:2742px){html{zoom:1.071}:root{--z:1.071}}@media (min-width:2774px){html{zoom:1.084}:root{--z:1.084}}@media (min-width:2806px){html{zoom:1.096}:root{--z:1.096}}@media (min-width:2838px){html{zoom:1.109}:root{--z:1.109}}@media (min-width:2870px){html{zoom:1.121}:root{--z:1.121}}@media (min-width:2902px){html{zoom:1.134}:root{--z:1.134}}@media (min-width:2934px){html{zoom:1.146}:root{--z:1.146}}@media (min-width:2966px){html{zoom:1.159}:root{--z:1.159}}@media (min-width:2998px){html{zoom:1.171}:root{--z:1.171}}@media (min-width:3030px){html{zoom:1.184}:root{--z:1.184}}@media (min-width:3062px){html{zoom:1.196}:root{--z:1.196}}@media (min-width:3094px){html{zoom:1.209}:root{--z:1.209}}@media (min-width:3126px){html{zoom:1.221}:root{--z:1.221}}@media (min-width:3158px){html{zoom:1.234}:root{--z:1.234}}@media (min-width:3190px){html{zoom:1.246}:root{--z:1.246}}@media (min-width:3222px){html{zoom:1.259}:root{--z:1.259}}@media (min-width:3254px){html{zoom:1.271}:root{--z:1.271}}@media (min-width:3286px){html{zoom:1.284}:root{--z:1.284}}@media (min-width:3318px){html{zoom:1.296}:root{--z:1.296}}@media (min-width:3350px){html{zoom:1.309}:root{--z:1.309}}@media (min-width:3382px){html{zoom:1.321}:root{--z:1.321}}@media (min-width:3414px){html{zoom:1.334}:root{--z:1.334}}@media (min-width:3440px){html{zoom:1.344}:root{--z:1.344}}@media (min-width:3446px){html{zoom:1.346}:root{--z:1.346}}@media (min-width:3478px){html{zoom:1.359}:root{--z:1.359}}@media (min-width:3510px){html{zoom:1.371}:root{--z:1.371}}@media (min-width:3542px){html{zoom:1.384}:root{--z:1.384}}@media (min-width:3574px){html{zoom:1.396}:root{--z:1.396}}@media (min-width:3606px){html{zoom:1.409}:root{--z:1.409}}@media (min-width:3638px){html{zoom:1.421}:root{--z:1.421}}@media (min-width:3670px){html{zoom:1.434}:root{--z:1.434}}@media (min-width:3702px){html{zoom:1.446}:root{--z:1.446}}@media (min-width:3734px){html{zoom:1.459}:root{--z:1.459}}@media (min-width:3766px){html{zoom:1.471}:root{--z:1.471}}@media (min-width:3798px){html{zoom:1.484}:root{--z:1.484}}@media (min-width:3830px){html{zoom:1.496}:root{--z:1.496}}@media (min-width:3840px){html{zoom:1.5}:root{--z:1.5}}@media (min-aspect-ratio:2/1) and (min-width:2560px){html{zoom:1}:root{--z:1}}@media (min-aspect-ratio:2/1) and (min-width:2560px) and (min-height:1332px){html{zoom:1.025}:root{--z:1.025}}@media (min-aspect-ratio:2/1) and (min-width:2560px) and (min-height:1364px){html{zoom:1.049}:root{--z:1.049}}@media (min-aspect-ratio:2/1) and (min-width:2560px) and (min-height:1396px){html{zoom:1.074}:root{--z:1.074}}@media (min-aspect-ratio:2/1) and (min-width:2560px) and (min-height:1428px){html{zoom:1.098}:root{--z:1.098}}@media (min-aspect-ratio:2/1) and (min-width:2560px) and (min-height:1460px){html{zoom:1.123}:root{--z:1.123}}@media (min-aspect-ratio:2/1) and (min-width:2560px) and (min-height:1492px){html{zoom:1.148}:root{--z:1.148}}@media (min-aspect-ratio:2/1) and (min-width:2560px) and (min-height:1524px){html{zoom:1.172}:root{--z:1.172}}@media (min-aspect-ratio:2/1) and (min-width:2560px) and (min-height:1556px){html{zoom:1.197}:root{--z:1.197}}@media (min-aspect-ratio:2/1) and (min-width:2560px) and (min-height:1588px){html{zoom:1.222}:root{--z:1.222}}@media (min-aspect-ratio:2/1) and (min-width:2560px) and (min-height:1620px){html{zoom:1.246}:root{--z:1.246}}@media (min-aspect-ratio:2/1) and (min-width:2560px) and (min-height:1652px){html{zoom:1.271}:root{--z:1.271}}@media (min-aspect-ratio:2/1) and (min-width:2560px) and (min-height:1684px){html{zoom:1.295}:root{--z:1.295}}@media (min-aspect-ratio:2/1) and (min-width:2560px) and (min-height:1716px){html{zoom:1.32}:root{--z:1.32}}@media (min-aspect-ratio:2/1) and (min-width:2560px) and (min-height:1748px){html{zoom:1.345}:root{--z:1.345}}@media (min-aspect-ratio:2/1) and (min-width:2560px) and (min-height:1780px){html{zoom:1.369}:root{--z:1.369}}@media (min-aspect-ratio:2/1) and (min-width:2560px) and (min-height:1812px){html{zoom:1.394}:root{--z:1.394}}@media (min-aspect-ratio:2/1) and (min-width:2560px) and (min-height:1844px){html{zoom:1.418}:root{--z:1.418}}@media (min-aspect-ratio:2/1) and (min-width:2560px) and (min-height:1876px){html{zoom:1.443}:root{--z:1.443}}@media (min-aspect-ratio:2/1) and (min-width:2560px) and (min-height:1908px){html{zoom:1.468}:root{--z:1.468}}@media (min-aspect-ratio:2/1) and (min-width:2560px) and (min-height:1940px){html{zoom:1.492}:root{--z:1.492}}@media (min-aspect-ratio:2/1) and (min-width:2560px) and (min-height:1972px){html{zoom:1.5}:root{--z:1.5}}@media (min-aspect-ratio:2/1) and (min-width:2560px) and (min-height:2004px){html{zoom:1.5}:root{--z:1.5}}@media (min-aspect-ratio:11/5) and (min-width:2560px) and (min-height:1172px){html{zoom:1}:root{--z:1}}@media (min-aspect-ratio:11/5) and (min-width:2560px) and (min-height:1204px){html{zoom:1.019}:root{--z:1.019}}@media (min-aspect-ratio:11/5) and (min-width:2560px) and (min-height:1236px){html{zoom:1.046}:root{--z:1.046}}@media (min-aspect-ratio:11/5) and (min-width:2560px) and (min-height:1268px){html{zoom:1.073}:root{--z:1.073}}@media (min-aspect-ratio:11/5) and (min-width:2560px) and (min-height:1300px){html{zoom:1.1}:root{--z:1.1}}@media (min-aspect-ratio:11/5) and (min-width:2560px) and (min-height:1332px){html{zoom:1.127}:root{--z:1.127}}@media (min-aspect-ratio:11/5) and (min-width:2560px) and (min-height:1364px){html{zoom:1.154}:root{--z:1.154}}@media (min-aspect-ratio:11/5) and (min-width:2560px) and (min-height:1396px){html{zoom:1.181}:root{--z:1.181}}@media (min-aspect-ratio:11/5) and (min-width:2560px) and (min-height:1428px){html{zoom:1.208}:root{--z:1.208}}@media (min-aspect-ratio:11/5) and (min-width:2560px) and (min-height:1460px){html{zoom:1.235}:root{--z:1.235}}@media (min-aspect-ratio:11/5) and (min-width:2560px) and (min-height:1492px){html{zoom:1.262}:root{--z:1.262}}@media (min-aspect-ratio:11/5) and (min-width:2560px) and (min-height:1524px){html{zoom:1.29}:root{--z:1.29}}@media (min-aspect-ratio:11/5) and (min-width:2560px) and (min-height:1556px){html{zoom:1.317}:root{--z:1.317}}@media (min-aspect-ratio:11/5) and (min-width:2560px) and (min-height:1588px){html{zoom:1.344}:root{--z:1.344}}@media (min-aspect-ratio:11/5) and (min-width:2560px) and (min-height:1620px){html{zoom:1.371}:root{--z:1.371}}@media (min-aspect-ratio:11/5) and (min-width:2560px) and (min-height:1652px){html{zoom:1.398}:root{--z:1.398}}@media (min-aspect-ratio:11/5) and (min-width:2560px) and (min-height:1684px){html{zoom:1.425}:root{--z:1.425}}@media (min-aspect-ratio:11/5) and (min-width:2560px) and (min-height:1716px){html{zoom:1.452}:root{--z:1.452}}@media (min-aspect-ratio:11/5) and (min-width:2560px) and (min-height:1748px){html{zoom:1.479}:root{--z:1.479}}@media (min-aspect-ratio:11/5) and (min-width:2560px) and (min-height:1780px){html{zoom:1.5}:root{--z:1.5}}@media (min-aspect-ratio:11/5) and (min-width:2560px) and (min-height:1812px){html{zoom:1.5}:root{--z:1.5}}@media (min-aspect-ratio:11/5) and (min-width:2560px) and (min-height:1844px){html{zoom:1.5}:root{--z:1.5}}@media (min-aspect-ratio:11/5) and (min-width:2560px) and (min-height:1876px){html{zoom:1.5}:root{--z:1.5}}@media (min-aspect-ratio:11/5) and (min-width:2560px) and (min-height:1908px){html{zoom:1.5}:root{--z:1.5}}@media (min-aspect-ratio:11/5) and (min-width:2560px) and (min-height:1940px){html{zoom:1.5}:root{--z:1.5}}@media (min-aspect-ratio:11/5) and (min-width:2560px) and (min-height:1972px){html{zoom:1.5}:root{--z:1.5}}@media (min-aspect-ratio:11/5) and (min-width:2560px) and (min-height:2004px){html{zoom:1.5}:root{--z:1.5}}
/* Right-hand column (src/web/rail.js): only on wide screens, where the page grows by its width so the main column keeps its size. */
.rail{display:none}
.railcard .tl{padding:7px 0}
.railsub{margin:6px 0 2px;font-size:11px}
.railtabs{display:inline-flex;gap:2px;padding:2px;border-radius:999px;background:var(--surface2)}
.railtabs button{border:0;background:transparent;color:var(--muted);font:inherit;font-size:12px;font-weight:600;padding:3px 10px;border-radius:999px;cursor:pointer;transition:background .15s,color .15s}
.railtabs button.on{background:var(--surface);color:var(--text);box-shadow:0 1px 2px rgba(0,0,0,.25)}.railtabs button:not(.on):hover{color:var(--text)}
.railhint{margin:8px 0 0;font-size:12px}
.railtxs{display:flex;flex-direction:column;gap:8px}
.railtx{display:flex;flex-direction:column;gap:8px;padding:9px 10px 10px;border:1px solid var(--border);border-radius:var(--r-sm);background:var(--surface2);color:var(--text);text-decoration:none;transition:border-color .15s}
.railtx:hover{border-color:color-mix(in srgb,var(--accent) 55%,var(--border))}.railtx:hover b{color:var(--accent)}
.railtx-h{display:flex;align-items:center;gap:7px;font-size:13px;min-width:0}.railtx-h b{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.railtx-h .avatar,.railtx-h .avatar-letter{border-radius:50%;flex:none}
.railtx-d{margin-left:auto;font-size:11px;font-weight:600;padding:1px 6px;border-radius:999px;background:color-mix(in srgb,currentColor 12%,transparent)}
.railtx-b{display:grid;grid-template-columns:minmax(0,1fr) 14px minmax(0,1fr);align-items:stretch;gap:4px}
.railtx-x{align-self:center;text-align:center;color:var(--muted);font-size:13px}
.railtx-s{display:flex;flex-direction:column;gap:5px;min-width:0;padding:7px 7px 7px;border-radius:var(--r-sm);background:var(--surface)}
.railtx-l{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--up)}
.railtx-s.want .railtx-l{color:var(--accent)}
.railtx-v{font-size:12.5px;font-weight:600}
.railtx-tag{font-size:11px;color:var(--muted);line-height:28px}
/* The ×count badge pokes out of the square's corner: the row keeps room for it so it isn't cut off. */
.railtx .txtiles{gap:3px;flex-wrap:nowrap;overflow:hidden;min-height:30px;padding:6px 6px 0 0;margin:-6px -6px 0 0}
.railtx .txtile{width:30px;height:30px;flex:none;background:var(--surface2)}.railtx .txtile .icon{width:24px;height:24px}.railtx .txtile .invcount{top:-5px;right:-5px;font-size:9px;padding:0 4px}.railtx .txmore{font-size:11px;color:var(--muted)}
.railnews{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;align-items:center;padding:7px 0;color:var(--text);text-decoration:none}
.railnews img,.railnews-ph{width:72px;height:44px;border-radius:6px;object-fit:cover;background:var(--surface2);border:1px solid var(--border)}
.railnews-t{display:flex;flex-direction:column;gap:2px;min-width:0}.railnews-t b{font-weight:600;font-size:13px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.railnews:hover b{color:var(--accent)}
.railfeat,.featstrip{display:flex;color:var(--text);text-decoration:none;border:1px solid var(--border);background:var(--surface);transition:border-color .15s}
.railfeat:hover,.featstrip:hover{border-color:var(--muted)}
.spl{font-size:10px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.spb{display:flex;min-width:0}.spb b{font-weight:600}.spb span{color:var(--muted)}
.railfeat{flex-direction:column;gap:8px;padding:14px 16px;border-radius:var(--r)}
.railfeat .spb{flex-direction:column;gap:3px;font-size:14px}.railfeat .spb span{font-size:13px}
.railfeat .btn{align-self:stretch;justify-content:center}
.featstrip{align-items:center;gap:12px;margin:0 0 18px;padding:8px 10px 8px 14px;border-radius:var(--r-sm);font-size:13px}
.featstrip .spb{flex:1 1 auto;gap:8px;white-space:nowrap;overflow:hidden}.featstrip .spb span{overflow:hidden;text-overflow:ellipsis}
.featstrip .btn{flex:0 0 auto}
@media (max-width:520px){.featstrip .spb span{display:none}}
@media (min-width:1560px){
  :root:has(.withrail){--maxw:1604px}
  .withrail{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}
  .withrail>.pagecol{min-width:0}
  /* Stays in view while scrolling, exactly where it starts (header 63px + the page's 28px top padding), so it never shifts. */
  .withrail>.rail{display:flex;flex-direction:column;gap:16px;position:sticky;top:91px;max-height:calc(100vh / var(--z) - 107px);overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;min-width:0}
  .withrail>.rail>*{min-width:0;flex:none}
  /* Taller than the screen: it scrolls with the page instead (never a scrollbar of its own). Set by fitRail() in the page script. */
  .withrail>.rail.tall{position:static;max-height:none;overflow-y:visible}
  .withrail>.rail.refreshing>*{animation:railp 1.4s ease-in-out infinite}
  .withrail .featstrip{display:none}
  /* With the column, the page centres in the space beside the chat (open or collapsed alike), so both sides match. */
  html.chat-on:has(.withrail) main,html.chat-on:has(.withrail) footer,html.chat-on:has(.withrail) header.top{padding-left:320px}
}
/* Ultrawide screens (21:9 and wider): the page grows into most of the extra width instead of leaving big empty sides. */
@media (min-aspect-ratio:11/5) and (min-width:2560px){
  :root{--maxw:calc(1280px + max(0px, (100vw / var(--z) - 2560px) * .75))}
  :root:has(.withrail){--maxw:calc(1604px + max(0px, (100vw / var(--z) - 2560px) * .75))}
}
.mbar{display:none}
@media (min-width:721px){.top .wrap>.search{margin-right:-12px}}
/* Phones: logo, search and menu buttons on one row, the page links on a second row that scrolls sideways if needed.
   Search opens under the bar; currency, light/dark, Insights, Admin and the account live in the menu. */
@media (max-width:720px){
  .top .wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;min-height:0;padding:8px 16px 6px}
  .brand{grid-row:1;font-size:18px}
  .mbar{display:flex;gap:6px;grid-row:1;grid-column:2}
  .mbtn{position:relative;width:38px;height:38px;display:grid;place-items:center;border-radius:var(--r-sm);border:1px solid var(--border);background:var(--surface2);color:var(--text);cursor:pointer;padding:0}
  .mbtn[aria-expanded=true]{border-color:var(--accent);color:var(--accent)}
  .mdot{position:absolute;top:6px;right:6px;width:8px;height:8px;border-radius:50%;background:var(--accent)}
  .top .search{display:none;grid-column:1/-1;grid-row:2;width:100%;margin-top:4px}
  html.search-open .top .search{display:flex}
  .tfilter{width:100%;order:-1}
  .nav{grid-column:1/-1;grid-row:3;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:2px 12px 0;gap:0}
  .nav::-webkit-scrollbar{display:none}
  .nav a{padding:8px 11px;font-size:14px;white-space:nowrap;flex:0 0 auto}
  /* The menu: a small card under the menu button. Account first, then pages, then currency and light/dark side by side. */
  .tools{display:none;position:absolute;top:calc(100% + 6px);right:12px;z-index:30;width:min(250px,calc(100vw - 24px));padding:8px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r);box-shadow:0 16px 36px rgba(0,0,0,.35);gap:6px;grid-template-columns:1fr 1fr}
  html.menu-open .tools{display:grid}
  .tools>a{grid-column:1/-1;justify-content:flex-start;height:42px;padding:0 12px;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .tools>.acct{order:-1;font-weight:600}
  .tools>select,.tools>button{height:40px!important;width:100%;font-size:14px!important}
  /* The account menu's links sit straight in the menu card: your name and pages first, Sign out last. */
  .acctwrap,.acctmenu{display:contents}
  .acct-toggle{display:none}
  .acctmenu>*{grid-column:1/-1}
  .accthead{display:block;order:-2;padding:4px 12px 2px;font-size:12px;font-weight:600;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .acctmenu>a{order:-1;height:42px;padding:0 12px}
  .acctmenu form{order:1;margin:2px 0 0;padding-top:6px}
  .acctmenu form button{height:42px;padding:0 12px}
}

/* custom */
