*,*::before,*::after{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--body);font-size:var(--fs-m);line-height:1.55;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;font-size-adjust:from-font}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
a{color:inherit;text-decoration:none}
input,textarea,select{font:inherit;color:inherit}
:focus-visible{outline:2.5px solid var(--kohl);outline-offset:2px;border-radius:var(--r-1)}
.ic{width:20px;height:20px;flex:none}
.num{font-family:var(--display);font-variant-numeric:tabular-nums;font-feature-settings:"tnum"}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
h1,h2,h3,p{margin:0}
.display{font-family:var(--display);font-weight:650;letter-spacing:-.01em;text-wrap:balance}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 16px;border-radius:var(--r-2);font-weight:600;font-size:var(--fs-s);transition:background .15s,transform .1s,box-shadow .15s;white-space:nowrap}
.btn:active{transform:translateY(1px)}
.btn .ic{width:18px;height:18px}
.btn-kohl{background:var(--kohl);color:var(--on-kohl);box-shadow:inset 0 -1px 0 rgba(0,0,0,.2)}
.btn-kohl:hover{background:var(--kohl-press)}
.btn-lamp{background:var(--lamp);color:#fff}
.btn-quiet{background:var(--sheet);border:1px solid var(--rule-2);color:var(--ink)}
.btn-quiet:hover{background:var(--sheet-2)}
.btn-ghost{color:var(--ink-2)}
.btn-ghost:hover{background:var(--sunk);color:var(--ink)}
.btn-lg{min-height:48px;font-size:var(--fs-m);padding:0 20px;border-radius:var(--r-3)}
.btn[disabled]{opacity:.45;cursor:not-allowed}
.iconbtn{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:var(--r-2);color:var(--ink-2)}
.iconbtn:hover{background:var(--sunk);color:var(--ink)}

.console{display:grid;grid-template-columns:76px minmax(300px,360px) minmax(0,1fr) 320px;height:100dvh;overflow:hidden}
.console.no-panel{grid-template-columns:76px minmax(300px,360px) minmax(0,1fr)}
.console.wide{grid-template-columns:76px minmax(0,1fr)}

.rail{display:flex;flex-direction:column;align-items:center;gap:4px;padding:14px 0 12px;background:var(--kohl);color:var(--on-kohl)}
:root[data-theme="dark"] .rail{background:#10132A;color:var(--ink)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .rail{background:#10132A;color:var(--ink)}}
.mark{font-family:var(--display);font-weight:750;font-size:21px;letter-spacing:-.02em;line-height:1;margin-bottom:14px;display:grid;place-items:center;width:46px;height:46px;border-radius:14px;position:relative}
.mark::after{content:"";position:absolute;right:7px;top:8px;width:7px;height:7px;border-radius:50%;background:var(--lamp-dot);box-shadow:0 0 0 2px var(--kohl)}
.navi{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;width:64px;padding:9px 0 7px;border-radius:var(--r-3);font-size:11px;font-weight:500;opacity:.72;transition:opacity .15s,background .15s}
.navi:hover{opacity:1;background:rgba(255,255,255,.07)}
.navi[aria-current="page"]{opacity:1;background:rgba(255,255,255,.13)}
.navi .ic{width:22px;height:22px}
.navi .count{position:absolute;top:4px;right:8px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--lamp-dot);color:#1b1000;font-family:var(--display);font-size:11px;font-weight:700;display:grid;place-items:center}
.rail .spacer{flex:1}
.credit-chip{width:62px;padding:8px 4px;border-radius:var(--r-3);background:rgba(255,255,255,.08);text-align:center;font-size:10.5px;line-height:1.3}
.credit-chip b{display:block;font-family:var(--display);font-size:14px;font-weight:650;letter-spacing:-.01em}
.credit-chip.low{background:var(--lamp-wash);color:var(--lamp)}

.pane{min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--sheet);border-right:1px solid var(--rule)}
.pane-head{padding:16px 16px 10px;display:flex;flex-direction:column;gap:12px;border-bottom:1px solid var(--rule)}
.pane-title{display:flex;align-items:center;justify-content:space-between;gap:8px}
.pane-title h1{font-family:var(--display);font-size:var(--fs-2xl);font-weight:650;letter-spacing:-.015em;line-height:1.1}
.pane-title .sub{font-size:var(--fs-xs);color:var(--ink-3)}
.search{display:flex;align-items:center;gap:8px;height:40px;padding:0 12px;border-radius:var(--r-2);background:var(--sunk);color:var(--ink-3)}
.search input{flex:1;min-width:0;border:0;background:transparent;outline:none;color:var(--ink)}
.search .ic{width:18px;height:18px}
.tabs{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}
.tab{flex:none;display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:16px;font-size:var(--fs-s);font-weight:500;color:var(--ink-2);background:transparent;border:1px solid var(--rule)}
.tab[aria-selected="true"]{background:var(--ink);color:var(--sheet);border-color:var(--ink)}
.tab .n{font-family:var(--display);font-weight:650}
.tab.lamp .n{color:var(--lamp)}
.tab.lamp[aria-selected="true"] .n{color:var(--lamp-dot)}

.list{flex:1;overflow-y:auto;overscroll-behavior:contain}
.row{position:relative;display:grid;grid-template-columns:44px 1fr auto;gap:12px;align-items:center;padding:12px 16px 12px 18px;border-bottom:1px solid var(--rule);cursor:pointer;transition:background .12s}
.row:hover{background:var(--sheet-2)}
.row[aria-current="true"]{background:var(--kohl-wash)}
.row::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:0 3px 3px 0;background:transparent}
.row.st-human::before{background:var(--lamp-dot)}
.row.st-claimed::before{background:var(--ink-3)}
.row .who{min-width:0}
.row .name{font-weight:600;font-size:var(--fs-m);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:6px}
.row .line{font-size:var(--fs-s);color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row .line .by{color:var(--ink-3)}
.row .meta{display:flex;flex-direction:column;align-items:flex-end;gap:5px;font-size:var(--fs-xs);color:var(--ink-3)}
.row .reason{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;color:var(--lamp);margin-top:2px}
.waitclock{font-family:var(--display);font-weight:650;font-size:13px;color:var(--lamp);font-variant-numeric:tabular-nums}
.statemark{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:600;padding:1px 7px 1px 6px;border-radius:9px}
.statemark.ai{color:var(--agent-ink);background:var(--agent-wash)}
.statemark.sold{color:var(--sold);background:var(--sold-wash)}
.statemark.me{color:var(--ink-2);background:var(--sunk)}
.statemark .ic{width:12px;height:12px}

.av{position:relative;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-family:var(--display);font-weight:600;font-size:16px;color:var(--ink-2);background:var(--sunk)}
.av .ch{position:absolute;right:-3px;bottom:-3px;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:var(--sheet);box-shadow:0 0 0 2px var(--sheet)}
.av .ch .ic{width:15px;height:15px}
.av .ch.messenger{color:#3A6FF0}
.av .ch.web{color:var(--ink-2)}
.av-lg{width:64px;height:64px;font-size:22px}

.thread{min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--ground)}
.thread-head{display:flex;align-items:center;gap:12px;padding:10px 16px;min-height:64px;background:var(--sheet);border-bottom:1px solid var(--rule)}
.thread-head .who{flex:1;min-width:0}
.thread-head .name{font-weight:650;font-size:var(--fs-l);line-height:1.25}
.thread-head .sub{font-size:var(--fs-xs);color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.thread-head .back{display:none}
.msgs{flex:1;overflow-y:auto;padding:20px clamp(12px,3vw,32px) 12px;display:flex;flex-direction:column;gap:6px;overscroll-behavior:contain}
.day{align-self:center;font-size:var(--fs-xs);color:var(--ink-3);margin:10px 0 4px}
.sys{align-self:center;max-width:90%;text-align:center;font-size:12px;color:var(--ink-2);background:var(--sheet);border:1px dashed var(--rule-2);padding:5px 12px;border-radius:12px;margin:8px 0}
.sys.handoff{color:var(--lamp);border-color:color-mix(in srgb,var(--lamp) 40%,transparent);background:var(--lamp-wash);border-style:solid}
.m{display:flex;flex-direction:column;max-width:min(78%,480px);gap:3px}
.m.in{align-self:flex-start}
.m.out{align-self:flex-end;align-items:flex-end}
.bub{padding:9px 13px;border-radius:18px;line-height:1.5;font-size:var(--fs-m);white-space:pre-wrap;overflow-wrap:anywhere}
.m.in .bub{background:var(--bubble-in);border-bottom-left-radius:6px;box-shadow:var(--sh-1)}
.m.out.ai .bub{background:var(--bubble-ai);border-bottom-right-radius:6px}
.m.out.staff .bub{background:var(--bubble-staff);border-bottom-right-radius:6px}
.m .by{font-size:11px;color:var(--ink-3);display:flex;align-items:center;gap:5px;padding:0 4px}
.m .by .ic{width:12px;height:12px}
.m.ai .by b{color:var(--agent-ink);font-weight:600}
.m.staff .by b{color:var(--sold);font-weight:600}
.m.enter{animation:pop .28s var(--ease) both}
@keyframes pop{from{opacity:0;transform:translateY(6px) scale(.98)}}

.audio{display:flex;align-items:center;gap:10px;min-width:220px}
.audio .pl{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--kohl);color:var(--on-kohl)}
.audio .pl .ic{width:14px;height:14px;fill:currentColor}
.wave{flex:1;height:24px;display:flex;align-items:center;gap:2px}
.wave i{display:block;width:3px;border-radius:2px;background:var(--ink-3);opacity:.6}
.transcript{font-size:12.5px;color:var(--ink-2);border-top:1px solid var(--rule);margin-top:8px;padding-top:6px}
.transcript b{font-weight:600;color:var(--ink-3);font-size:11px;display:block}
.photo{width:180px;height:200px;border-radius:14px;overflow:hidden;display:grid;place-items:center;background:var(--sunk)}
.photo svg{width:100%;height:100%}
.seen{max-width:220px;font-size:12px;color:var(--ink-2);background:var(--sheet);border:1px solid var(--rule);border-radius:10px;padding:6px 10px}
.seen b{color:var(--agent-ink);font-weight:600}

.pcard{width:232px;border-radius:16px;overflow:hidden;background:var(--sheet);border:1px solid var(--rule);box-shadow:var(--sh-1);text-align:left}
.pcard .img{height:150px;background:var(--sunk);display:grid;place-items:center;overflow:hidden}
.pcard .img svg{width:100%;height:100%}
.pcard .body{padding:10px 12px 12px;display:flex;flex-direction:column;gap:3px}
.pcard .t{font-weight:600;font-size:13.5px;line-height:1.35}
.pcard .code{font-size:11px;color:var(--ink-3);font-family:var(--display);letter-spacing:.02em}
.pcard .price{display:flex;align-items:baseline;gap:8px}
.pcard .price b{font-family:var(--display);font-size:18px;font-weight:650;letter-spacing:-.01em}
.pcard .price s{font-size:12px;color:var(--ink-3)}
.pcard .sizes{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.sz{min-width:28px;height:22px;padding:0 6px;border-radius:6px;border:1px solid var(--rule-2);font-size:11.5px;font-family:var(--display);display:grid;place-items:center;color:var(--ink-2)}
.sz.out{color:var(--ink-3);text-decoration:line-through;border-style:dashed;opacity:.7}
.pcard .acts{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--rule)}
.pcard .acts span,.pcard .acts button{padding:9px 0;text-align:center;font-size:13px;font-weight:600;color:var(--kohl)}
.pcard .acts > :first-child{border-right:1px solid var(--rule)}
.carousel{display:flex;gap:8px;overflow-x:auto;max-width:min(560px,100%);padding:2px 2px 6px;scroll-snap-type:x mandatory}
.carousel .pcard{flex:none;scroll-snap-align:start}
.quick{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;max-width:420px}
.quick span,.quick button{padding:6px 12px;border-radius:16px;border:1px solid var(--kohl);color:var(--kohl);font-size:13px;font-weight:500;background:var(--sheet)}

.receipt{width:270px;background:var(--sheet);border-radius:16px;border:1px solid var(--rule);overflow:hidden;box-shadow:var(--sh-1)}
.receipt .top{padding:12px 14px 10px;display:flex;justify-content:space-between;align-items:baseline;background:var(--sold-wash);color:var(--sold)}
.receipt .top b{font-family:var(--display);font-weight:650;font-size:15px}
.receipt .top span{font-size:12px;font-weight:600}
.receipt .lines{padding:10px 14px;display:flex;flex-direction:column;gap:6px;font-size:13px}
.receipt .ln{display:flex;justify-content:space-between;gap:10px}
.receipt .ln span:first-child{color:var(--ink-2)}
.receipt .ln.total{border-top:1px dashed var(--rule-2);padding-top:8px;margin-top:2px;font-weight:650}
.receipt .ln.total span:last-child{font-family:var(--display);font-size:17px}
.receipt .addr{padding:0 14px 12px;font-size:12px;color:var(--ink-3)}

.dock{background:var(--sheet);border-top:1px solid var(--rule);padding:10px 14px calc(12px + var(--safe-b))}
.modebar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;border-radius:var(--r-3);margin-bottom:10px;font-size:var(--fs-s)}
.modebar .txt{flex:1;min-width:180px;line-height:1.4}
.modebar .txt b{font-weight:650}
.modebar.ai{background:var(--agent-wash);color:var(--agent-ink)}
.modebar.wait{background:var(--lamp-wash);color:var(--lamp)}
.modebar.mine{background:var(--sunk);color:var(--ink-2)}
.pulse{width:9px;height:9px;border-radius:50%;background:currentColor;flex:none;position:relative}
.pulse::after{content:"";position:absolute;inset:-4px;border-radius:50%;border:2px solid currentColor;opacity:0;animation:ring 1.8s ease-out infinite}
@keyframes ring{0%{opacity:.7;transform:scale(.6)}100%{opacity:0;transform:scale(1.6)}}
.composer{display:flex;align-items:flex-end;gap:6px}
.composer textarea{flex:1;resize:none;min-height:44px;max-height:140px;padding:11px 14px;border-radius:22px;border:1px solid var(--rule-2);background:var(--sheet-2);outline:none;line-height:1.45}
.composer textarea:focus{border-color:var(--kohl);background:var(--sheet)}
.sendbtn{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--kohl);color:var(--on-kohl);flex:none}
.sendbtn[disabled]{opacity:.35}
.draft{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--agent-ink);font-weight:600;margin:0 0 8px 4px}

.side{min-width:0;min-height:0;overflow-y:auto;background:var(--sheet);border-left:1px solid var(--rule)}
.side-sec{padding:18px 18px;border-bottom:1px solid var(--rule)}
.side-sec h3{font-size:var(--fs-xs);font-weight:600;color:var(--ink-3);letter-spacing:.02em;margin-bottom:10px;display:flex;justify-content:space-between;align-items:center}
.prof{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px}
.prof .name{font-family:var(--display);font-size:var(--fs-xl);font-weight:650}
.kv{display:grid;grid-template-columns:auto 1fr;gap:6px 12px;font-size:var(--fs-s)}
.kv dt{color:var(--ink-3)}
.kv dd{margin:0;text-align:right;font-weight:500}
.ordermini{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--rule);border-radius:var(--r-3);margin-bottom:8px;font-size:var(--fs-s);cursor:pointer}
.ordermini:hover{background:var(--sheet-2)}
.ordermini .no{font-family:var(--display);font-weight:650}
.helper{display:flex;flex-direction:column;gap:8px}
.helper .chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:16px;background:var(--agent-wash);color:var(--agent-ink);font-size:12.5px;font-weight:600}
.chip .ic{width:15px;height:15px}
.answer{font-size:var(--fs-s);background:var(--sheet-2);border:1px solid var(--rule);border-radius:var(--r-3);padding:12px;line-height:1.55}
.answer .h{font-size:11px;font-weight:600;color:var(--agent-ink);margin-bottom:4px;display:flex;gap:6px;align-items:center}

.state{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;padding:2px 9px;border-radius:10px;white-space:nowrap}
.state::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.state.draft{color:var(--lamp);background:var(--lamp-wash)}
.state.confirmed{color:var(--kohl);background:var(--kohl-wash)}
.state.packed{color:var(--agent-ink);background:var(--agent-wash)}
.state.shipped{color:var(--agent-ink);background:var(--agent-wash)}
.state.delivered{color:var(--sold);background:var(--sold-wash)}
.state.cancelled,.state.returned{color:var(--bad);background:var(--bad-wash)}

.empty{flex:1;display:grid;place-items:center;text-align:center;padding:40px;color:var(--ink-3)}
.empty .display{font-size:var(--fs-xl);color:var(--ink);margin-bottom:6px}

.page{min-width:0;min-height:0;overflow-y:auto;background:var(--ground)}
.page-in{max-width:1080px;margin:0 auto;padding:28px clamp(16px,4vw,40px) 60px}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:22px}
.page-head h1{font-family:var(--display);font-size:var(--fs-3xl);font-weight:650;letter-spacing:-.02em;line-height:1.05}
.page-head p{color:var(--ink-2);margin-top:6px;max-width:56ch}
.card{background:var(--sheet);border:1px solid var(--rule);border-radius:var(--r-4);box-shadow:var(--sh-1)}

.table{width:100%;border-collapse:collapse;font-size:var(--fs-s)}
.table th{text-align:left;font-weight:600;font-size:var(--fs-xs);color:var(--ink-3);padding:10px 16px;border-bottom:1px solid var(--rule)}
.table td{padding:12px 16px;border-bottom:1px solid var(--rule);vertical-align:middle}
.table tr:last-child td{border-bottom:0}
.table tr.click{cursor:pointer}
.table tr.click:hover td{background:var(--sheet-2)}
.table .r{text-align:right}

.ostages{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:18px}
.ostage{padding:14px 16px;border-radius:var(--r-3);background:var(--sheet);border:1px solid var(--rule);text-align:left}
.ostage[aria-selected="true"]{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.ostage .k{font-size:var(--fs-xs);color:var(--ink-3)}
.ostage .v{font-family:var(--display);font-size:26px;font-weight:650;line-height:1.1;letter-spacing:-.01em}
.ostage.alert .v{color:var(--lamp)}

.pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}
.prod{background:var(--sheet);border:1px solid var(--rule);border-radius:var(--r-4);overflow:hidden;display:flex;flex-direction:column;text-align:left}
.prod .img{aspect-ratio:1/1;background:var(--sunk);overflow:hidden}
.prod .img svg{width:100%;height:100%}
.prod .body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:6px}
.prod .t{font-weight:600;line-height:1.35}
.prod .row2{display:flex;justify-content:space-between;align-items:baseline}
.prod .row2 b{font-family:var(--display);font-size:18px;font-weight:650}
.stockline{font-size:12px;color:var(--ink-3)}
.stockline.low{color:var(--lamp);font-weight:600}

.wallet{display:grid;grid-template-columns:1.1fr 1fr;gap:16px;margin-bottom:18px}
.bal{padding:24px;display:flex;flex-direction:column;gap:6px;background:var(--kohl);color:var(--on-kohl);border:0}
.bal .k{font-size:var(--fs-s);opacity:.8}
.bal .v{font-family:var(--display);font-size:46px;font-weight:650;letter-spacing:-.02em;line-height:1}
.bal .est{font-size:var(--fs-s);opacity:.85}
.bal .bar{height:6px;border-radius:3px;background:rgba(255,255,255,.18);overflow:hidden;margin-top:10px}
.bal .bar i{display:block;height:100%;background:var(--lamp-dot);border-radius:3px}
.math{padding:20px 22px}
.math h3{font-family:var(--display);font-size:var(--fs-l);font-weight:650;margin-bottom:10px}
.mrow{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px dashed var(--rule-2);font-size:var(--fs-s)}
.mrow:last-child{border-bottom:0}
.mrow b{font-family:var(--display);font-weight:650}
.amt{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.amt button{padding:14px 8px;border-radius:var(--r-3);border:1px solid var(--rule-2);background:var(--sheet);font-family:var(--display);font-size:20px;font-weight:650}
.amt button[aria-pressed="true"]{border-color:var(--kohl);box-shadow:inset 0 0 0 1.5px var(--kohl);background:var(--kohl-wash)}
.field{display:flex;flex-direction:column;gap:6px;font-size:var(--fs-s);font-weight:600}
.field input,.field textarea,.field select{height:46px;padding:0 14px;border-radius:var(--r-2);border:1px solid var(--rule-2);background:var(--sheet);font-weight:400;outline:none}
.field textarea{height:auto;padding:12px 14px;min-height:90px;line-height:1.5}
.field input:focus,.field textarea:focus{border-color:var(--kohl);box-shadow:0 0 0 3px var(--kohl-wash)}
.field .hint{font-weight:400;font-size:12px;color:var(--ink-3)}
.field .err{font-weight:500;font-size:12px;color:var(--bad)}

.desk{display:grid;grid-template-columns:1fr 380px;gap:16px;align-items:start}
.rule{padding:16px 18px;border-bottom:1px solid var(--rule)}
.rule:last-child{border-bottom:0}
.rule h4{margin:0 0 4px;font-size:var(--fs-s);font-weight:650}
.rule p{color:var(--ink-2);font-size:var(--fs-s)}
.rule.changed{background:var(--agent-wash)}
.rule .diff del{color:var(--bad);background:var(--bad-wash);text-decoration:line-through}
.rule .diff ins{color:var(--sold);background:var(--sold-wash);text-decoration:none}
.helperchat{display:flex;flex-direction:column;height:560px}
.helperchat .msgs{background:var(--sheet-2);border-radius:0}
.preview-phone{border:1px solid var(--rule);border-radius:var(--r-4);background:var(--ground);padding:10px}
.vers{font-size:var(--fs-s)}
.vers li{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--rule)}

dialog{border:0;padding:0;border-radius:var(--r-4);background:var(--sheet);color:var(--ink);box-shadow:var(--sh-3);width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 48px);opacity:1;transform:none;transition:opacity .22s var(--ease),transform .22s var(--ease),display .22s allow-discrete,overlay .22s allow-discrete}
dialog[open]{@starting-style{opacity:0;transform:translateY(10px) scale(.98)}}
dialog::backdrop{background:rgba(12,14,26,.45);backdrop-filter:blur(2px)}
.dlg-head{display:flex;justify-content:space-between;align-items:center;padding:18px 20px 8px}
.dlg-head h2{font-family:var(--display);font-size:var(--fs-xl);font-weight:650}
.dlg-body{padding:6px 20px 20px;display:flex;flex-direction:column;gap:14px}
.dlg-foot{padding:14px 20px;border-top:1px solid var(--rule);display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}

.toast{position:fixed;left:50%;bottom:calc(20px + var(--safe-b));transform:translateX(-50%);background:var(--ink);color:var(--sheet);padding:10px 16px;border-radius:12px;font-size:var(--fs-s);box-shadow:var(--sh-3);z-index:50;display:flex;gap:12px;align-items:center;animation:pop .25s var(--ease)}
.toast button{color:var(--lamp-dot);font-weight:650}

.tabbar{display:none}

.holdmenu{position:absolute;inset:auto;margin:0;padding:6px;border:1px solid var(--rule);border-radius:var(--r-3);background:var(--sheet);box-shadow:var(--sh-3);min-width:200px}
.holdmenu button{display:flex;width:100%;padding:10px 12px;border-radius:var(--r-2);font-size:var(--fs-s)}
.holdmenu button:hover{background:var(--sunk)}

@media (max-width:1180px){
  .console{grid-template-columns:76px minmax(280px,340px) minmax(0,1fr)}
  .side{position:fixed;right:0;top:0;bottom:0;width:340px;z-index:20;box-shadow:var(--sh-3);transform:translateX(100%);transition:transform .25s var(--ease)}
  .side.open{transform:none}
  .desk{grid-template-columns:1fr}
}
@media (max-width:760px){
  .console,.console.no-panel,.console.wide{grid-template-columns:1fr;grid-template-rows:1fr auto}
  .rail{display:none}
  .tabbar{display:grid;grid-template-columns:repeat(5,1fr);background:var(--sheet);border-top:1px solid var(--rule);padding:4px 0 calc(4px + var(--safe-b));grid-row:2}
  .tabbar a{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;padding:6px 0;color:var(--ink-3);position:relative}
  .tabbar a[aria-current="page"]{color:var(--kohl)}
  .tabbar .ic{width:22px;height:22px}
  .tabbar .count{position:absolute;top:2px;left:calc(50% + 6px);min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:var(--lamp-dot);color:#1b1000;font-family:var(--display);font-size:10.5px;font-weight:700;display:grid;place-items:center}
  .console.in-thread .pane{display:none}
  .console:not(.in-thread) .thread{display:none}
  .console.in-thread .tabbar{display:none}
  .console.in-thread{grid-template-rows:1fr}
  .thread-head .back{display:inline-grid}
  .side{width:100%}
  .m{max-width:88%}
  .ostages{grid-template-columns:repeat(3,minmax(0,1fr))}
  .wallet{grid-template-columns:1fr}
  .table .hide-s{display:none}
  .page-in{padding-top:18px}
  .page-head h1{font-size:var(--fs-2xl)}
}
@media (pointer:coarse){
  .btn{min-height:44px}
  .chip{height:40px}
  .draft{min-height:44px}
  .tab{height:38px}
}
@media (max-width:760px){
  .modebar{padding:8px 10px;gap:8px}
  .modebar .txt{min-width:0;font-size:12.5px}
  .modebar .btn{min-height:40px;padding:0 12px}
  .modebar.wait .txt .reason-line{display:none}
}
.othumb{width:36px;height:40px;border-radius:8px;overflow:hidden;flex:none;background:var(--sunk)}
.othumb svg{width:100%;height:100%}
.examples{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.examples button{padding:7px 12px;border-radius:16px;border:1px dashed var(--agent);color:var(--agent-ink);font-size:12.5px;background:var(--sheet);text-align:left}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}
}
::view-transition-group(root){animation-duration:.22s}
.ob{min-height:100dvh;display:grid;place-items:center;padding:24px 16px;background:radial-gradient(1200px 500px at 50% -10%,var(--kohl-wash),transparent),var(--ground)}
.ob-card{width:min(560px,100%);background:var(--sheet);border:1px solid var(--rule);border-radius:var(--r-5);box-shadow:var(--sh-3);overflow:hidden}
.ob-top{display:flex;align-items:center;gap:14px;padding:20px 24px 0}
.ob-mark{background:var(--kohl);color:var(--on-kohl);margin:0;width:44px;height:44px}
.ob-prog{flex:1;display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--ink-3)}
.ob-steps{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}
.ob-steps i{height:4px;border-radius:2px;background:var(--sunk)}
.ob-steps i.done{background:var(--kohl)}
.ob-steps i.cur{background:linear-gradient(90deg,var(--kohl) 50%,var(--sunk) 50%)}
.ob-body{padding:22px 24px;display:flex;flex-direction:column;gap:14px;min-height:300px}
.ob-h{font-size:var(--fs-2xl);line-height:1.2}
.ob-p{color:var(--ink-2);font-size:var(--fs-s);display:flex;gap:6px;align-items:center}
.ob-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:16px 24px;border-top:1px solid var(--rule)}
.obchip{padding:8px 14px;border-radius:18px;border:1px solid var(--rule-2);font-size:13px;background:var(--sheet)}
.obchip[aria-pressed="true"]{background:var(--kohl);color:var(--on-kohl);border-color:var(--kohl)}
.fbbtn{background:#1877F2;color:#fff}
.obpages,.obopts{display:flex;flex-direction:column;gap:8px}
.obpage{display:flex;align-items:center;gap:12px;width:100%;padding:14px 16px;border-radius:var(--r-3);border:1px solid var(--rule-2);text-align:left;background:var(--sheet)}
.obpage > div{flex:1}
.obpage b{display:block}
.obpage span{font-size:12px;color:var(--ink-3)}
.obpage.sel{border-color:var(--kohl);box-shadow:inset 0 0 0 1.5px var(--kohl);background:var(--kohl-wash)}
.obpage .ic:first-child{color:#1877F2}
.obtest{border:1px solid var(--rule);border-radius:var(--r-4);padding:14px;display:flex;flex-direction:column;gap:6px;background:var(--sheet)}
.obtest .m{max-width:86%}
.obtest .m.out{align-self:flex-end}
