:root{--primary:#8b89ff;--primary-hover:#a3a1ff;--primary-tint:#4c4af34d;--up:#1dd0ac;--up-bg:#1dd0ac24;--down:#f0428f;--down-bg:#d01d7333;--neutral-bg:#2a2a5c;--bg:#17173c;--surface:#1d1d48;--surface-2:#252556;--border:#30306a;--text:#ececfa;--text-muted:#9a9ac4;--text-subtle:#7676a8;--radius-card:12px;--radius-control:8px;--font-ui:"Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--font-mono:"JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;--on-accent:#0d0d2b;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}:root[data-theme=light]{--primary:#4c4af3;--primary-hover:#3a38d6;--primary-tint:#4c4af31a;--up:#08806a;--up-bg:#0ea4871f;--down:#d01d73;--down-bg:#d01d731a;--neutral-bg:#e6e6f5;--bg:#fff;--surface:#f4f4fc;--surface-2:#eaeaf8;--border:#d9d9ee;--text:#17173c;--text-muted:#5c5c85;--text-subtle:#8c8cae;--on-accent:#fff;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}html,body,#root{height:100%}body{background:var(--bg);color:var(--text);font:400 14px/1.5 var(--font-ui);-webkit-font-smoothing:antialiased;margin:0;overflow:hidden}button,input,select{font:inherit;color:inherit}:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.mono{font-family:var(--font-mono);font-variant-numeric:tabular-nums}.up{color:var(--up)}.down{color:var(--down)}.label{font:600 11.5px/1 var(--font-ui);letter-spacing:.04em;text-transform:uppercase;color:var(--text-muted)}.meta{color:var(--text-muted);font-size:12.5px}.hint{color:var(--text-muted);margin:12px 0 0;font-size:13px}.app{grid-template-rows:auto minmax(0,1fr) auto;height:100dvh;display:grid}.top{background:var(--surface);border-bottom:1px solid var(--border);scrollbar-width:none;align-items:center;gap:16px;padding:8px 16px;display:flex;overflow-x:auto}.top::-webkit-scrollbar{display:none}.top>*{flex:none}.spacer{min-width:0;flex:1!important}.logo{font:600 15px/1 var(--font-ui);letter-spacing:-.01em;align-items:center;gap:8px;display:inline-flex}.logo svg{width:22px;height:22px}.pair{border-radius:var(--radius-control);height:32px;font:600 15px/1 var(--font-ui);cursor:default;background:0 0;border:0;margin:0 -10px;padding:0 10px}.px{font-size:15px;font-weight:600}.chg{font-size:13px}.body{grid-template-columns:48px minmax(0,1fr) 264px;min-height:0;display:grid;position:relative}.chart-wrap{min-width:0;min-height:0;position:relative}.chart{touch-action:none;position:absolute;inset:0}.side-scrim{display:none}.penbar{z-index:3;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);align-items:center;gap:4px;padding:4px;display:flex;position:absolute;top:8px;right:84px}.penbar-sep{background:var(--border);width:1px;height:20px;margin:0 2px}.swatch,.weight{cursor:pointer;background:0 0;border:0;border-radius:6px;place-items:center;width:28px;height:28px;display:grid}.swatch:before{content:"";background:var(--c);border-radius:50%;width:14px;height:14px}.weight i{background:var(--text-muted);border-radius:2px;width:14px;display:block}.swatch:hover,.weight:hover{background:var(--surface-2)}.swatch[aria-pressed=true],.weight[aria-pressed=true]{background:var(--primary-tint)}.swatch[aria-pressed=true]:before{box-shadow:0 0 0 2px var(--surface), 0 0 0 3.5px var(--c)}.weight[aria-pressed=true] i{background:var(--primary)}.tool.small{width:28px;height:28px}.tool.small svg{width:18px;height:18px}.foot{background:var(--surface);border-top:1px solid var(--border);justify-content:space-between;align-items:center;padding:6px 16px;display:flex}.seg{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-control);gap:2px;padding:3px;display:inline-flex}.seg button,.seg select{min-width:36px;height:28px;color:var(--text-muted);font:500 13px/1 var(--font-mono);cursor:pointer;background:0 0;border:0;border-radius:6px;padding:0 9px}.seg .ui{font-family:var(--font-ui)}.seg select{appearance:none;font-family:var(--font-ui);padding-right:9px}.seg select option{background:var(--surface);color:var(--text)}.seg button:hover,.seg select:hover{color:var(--text)}.seg button[aria-pressed=true],.seg select.on{background:var(--primary-tint);color:var(--primary)}.tools{background:var(--surface);border-right:1px solid var(--border);scrollbar-width:none;flex-direction:column;gap:2px;padding:6px;display:flex;overflow-y:auto}.tools-gap{flex:1;min-height:8px}.tool{border-radius:var(--radius-control);width:36px;height:36px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;flex:none;place-items:center;display:grid}.tool svg,.chip .show-m svg{fill:none;stroke:currentColor;stroke-width:1.6px;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px}.tool:hover{background:var(--surface-2);color:var(--text)}.tool[aria-pressed=true]{background:var(--primary-tint);color:var(--primary)}.tool.danger{background:var(--down-bg);color:var(--down)}.side{background:var(--surface);border-left:1px solid var(--border);flex-direction:column;min-height:0;padding:16px;display:flex}.side .label{margin:20px 0 8px}.search{position:relative}.search svg{width:16px;height:16px;stroke:var(--text-muted);position:absolute;top:10px;left:11px}.input{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-control);width:100%;height:36px;padding:0 12px 0 36px;font-size:14px}.input::placeholder{color:var(--text-subtle)}.input:focus{border-color:var(--primary);outline:none}.list{min-height:0;margin:0 -8px;padding:0 8px;overflow-y:auto}.wl{border:0;border-top:1px solid var(--border);text-align:left;background:0 0;align-items:center;width:100%;font-size:13px;display:flex}button.wl{cursor:pointer;justify-content:space-between;padding:10px 0}button.wl:hover .meta{color:var(--primary)}.wl:first-child{border-top:0}.wl-main{text-align:left;cursor:pointer;background:0 0;border:0;flex:1;justify-content:space-between;align-items:center;gap:8px;min-width:0;padding:10px 0;display:flex}.sym{font-weight:600}.wl.active .sym{color:var(--primary)}.wl-px{text-align:right}.wl-px small{min-height:17px;font-size:12px;line-height:1.4;display:block}.watch .wl-main{padding:6px 0}.watch .sym{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.watch .wl-px{white-space:nowrap;flex:none;align-items:baseline;gap:6px;display:flex}.watch .wl-px small{text-align:right;min-width:54px;min-height:0}.wl-sec{border-top:1px solid var(--border);align-items:center;gap:2px;margin-top:6px;display:flex}.wl-sec-name{min-width:0;color:var(--text-muted);font:600 11px/1.2 var(--font-sans,inherit);letter-spacing:.06em;text-transform:uppercase;text-align:left;cursor:pointer;background:0 0;border:0;flex:1;align-items:center;gap:8px;padding:8px 0 6px;display:flex}.wl-sec-name small{color:var(--text-subtle);font-weight:400}.wl-sec-arrow{border:solid var(--text-subtle);border-width:0 1.5px 1.5px 0;width:6px;height:6px;margin:0 2px 2px;transition:transform .12s;transform:rotate(45deg)}.wl-sec.closed .wl-sec-arrow{margin-bottom:0;transform:rotate(-45deg)}.watch .wl-sec .wl-x{background:0 0;margin:0;font-size:13px;position:static;transform:none}.watch .wl-sec:hover .wl-x{opacity:1}.wl-sec-input{flex:1;min-width:0;height:28px;margin:4px 0;font-size:12px}.wl-group .wl:first-of-type{border-top:0}.watch .wl-sec-pick{background:var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238a94a3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8.5a1.5 1.5 0 0 1 1.5-1.5h3l1.5 1.8h6.5A1.5 1.5 0 0 1 19 10.3v5.2a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 5 15.5z'/%3E%3C/svg%3E") center / 20px no-repeat;color:#0000;appearance:none;cursor:pointer;opacity:0;border:0;border-radius:6px;width:24px;height:24px;margin-top:-12px;padding:0;position:absolute;top:50%;right:26px}.watch .wl-sec-pick option{color:var(--text);background:var(--surface)}.watch .wl:hover .wl-sec-pick,.watch .wl-sec-pick:focus-visible{opacity:1}@media (hover:none){.watch .wl-sec-pick{opacity:1;right:34px}.watch .wl-sec .wl-x{opacity:1}}.watch .wl{position:relative}.watch .wl-x{background:var(--surface);margin:0;position:absolute;top:50%;right:0;transform:translateY(-50%)}.side .alerts-head .btn{white-space:nowrap;flex:none}@media (hover:none){.watch .wl-main{padding:9px 40px 9px 0}.watch.has-sec .wl-main{padding-right:68px}}.wl-x{width:24px;height:24px;color:var(--text-subtle);cursor:pointer;opacity:0;background:0 0;border:0;border-radius:6px;margin-left:4px;font-size:16px;line-height:1}.wl:hover .wl-x,.wl-x:focus-visible{opacity:1}.wl-x:hover{background:var(--surface-2);color:var(--text)}.pill{font:600 12px/1 var(--font-ui);border-radius:999px;align-items:center;gap:6px;padding:4px 10px;display:inline-flex}.pill:before{content:"";background:currentColor;border-radius:50%;width:6px;height:6px}.pill.live{background:var(--up-bg);color:var(--up)}.pill.loading{background:var(--primary-tint);color:var(--primary)}.pill.offline{background:var(--down-bg);color:var(--down)}@media (width<=860px){.hide-m{display:none}.show-m{display:inline}.chip{height:40px;font-family:var(--font-mono);gap:6px;padding:0 10px}.top{padding:8px 12px;padding-top:max(8px, env(safe-area-inset-top));flex-wrap:wrap;gap:8px 12px;overflow:visible}.top .spacer{height:0;flex:0 0 100%!important}.top .tf{scrollbar-width:none;flex:1 1 0;min-width:0;overflow-x:auto}.top .tf::-webkit-scrollbar{display:none}.seg button,.seg select{flex:none;height:32px}.body{grid-template-columns:44px minmax(0,1fr)}.tools{padding:4px;padding-left:max(4px, env(safe-area-inset-left))}.penbar{scrollbar-width:none;gap:2px;max-width:calc(100% - 8px);left:50%;right:auto;overflow-x:auto;transform:translate(-50%)}.penbar>*{flex:none}.pair{cursor:pointer;background:var(--surface-2);margin:0}.pair:after{content:"";border:solid var(--text-muted);border-width:0 1.5px 1.5px 0;width:6px;height:6px;margin:0 2px 3px 8px;display:inline-block;transform:rotate(45deg)}.side-scrim{z-index:4;background:#080a0e99;display:block;position:absolute;inset:0}.side{z-index:5;width:min(320px,88%);display:none;position:absolute;inset:0 0 0 auto;box-shadow:-12px 0 32px #0006}.side.open{display:flex}.input{font-size:16px}.wl-x{opacity:1;width:32px;height:32px}.foot{padding-bottom:max(6px, env(safe-area-inset-bottom))}}@media (hover:none){.tool:hover:not([aria-pressed=true]):not(.danger){color:var(--text-muted);background:0 0}.seg button:hover:not([aria-pressed=true]){color:var(--text-muted)}}@media (prefers-reduced-motion:no-preference){.tool,.seg button,.input,.wl-x{transition:background .12s,color .12s,border-color .12s}}.show-m{display:none}.chip{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-control);height:36px;color:var(--text-muted);font:500 13px/1 var(--font-ui);cursor:pointer;align-items:center;gap:8px;padding:0 12px;display:inline-flex}.chip:hover,.chip.on{color:var(--text)}.chip.on{border-color:var(--primary)}.chip b{background:var(--primary-tint);min-width:18px;color:var(--primary);font:600 11px/1 var(--font-mono);text-align:center;border-radius:999px;padding:3px 5px}.pop-scrim{z-index:24;position:fixed;inset:0}.pop{z-index:25;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);flex-direction:column;width:300px;max-width:calc(100vw - 16px);max-height:min(560px,100dvh - 140px);padding:6px;display:flex;position:fixed;box-shadow:0 12px 32px #00000073}.pop-head{gap:4px;padding:2px 2px 6px;display:flex}.pop-head .btn{flex:none;padding:0 10px;font-size:13px}.pop-list{min-height:0;overflow-y:auto}.pop-group{padding:12px 10px 6px}.pop-empty{margin:0;padding:12px 10px}.pop-item{border-radius:var(--radius-control);text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:12px;width:100%;padding:8px 10px;display:flex}.pop-item:hover{background:var(--surface-2)}.pop-item .sym,.pop-item .meta{display:block}.pop-item .meta{font-size:12px}.check{border:1.5px solid var(--text-subtle);border-radius:5px;flex:none;width:18px;height:18px;position:relative}.pop-item[aria-checked=true] .check{background:var(--primary);border-color:var(--primary)}.pop-item[aria-checked=true] .check:after{content:"";border:solid var(--on-accent);border-width:0 2px 2px 0;width:4px;height:9px;position:absolute;top:1.5px;left:5px;transform:rotate(45deg)}.tool:disabled{opacity:.35;cursor:default;color:var(--text-muted);background:0 0}.scrim{z-index:20;background:#080a0e99;place-items:start center;padding:18vh 16px 0;display:grid;position:fixed;inset:0}.dialog{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);width:min(360px,100%);padding:20px}.dialog-title{font:600 15px/1.3 var(--font-ui);margin-bottom:12px}.input.plain{padding-left:12px}.error{color:var(--down);margin:8px 0 0;font-size:13px}.dialog-actions{justify-content:flex-end;gap:8px;margin-top:16px;display:flex}.btn{border-radius:var(--radius-control);height:36px;font:600 14px/1 var(--font-ui);cursor:pointer;background:0 0;border:1px solid #0000;padding:0 16px}.btn-primary{background:var(--primary);color:var(--on-accent)}.btn-primary:hover{background:var(--primary-hover)}.btn-ghost{color:var(--primary)}.btn-ghost:hover{background:var(--primary-tint)}@media (width<=860px){.show-m{display:inline}.chip{height:40px;font-family:var(--font-mono);gap:6px;padding:0 10px}}.actions{order:10;gap:2px;display:inline-flex}.toast{z-index:30;background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-control);text-align:center;max-width:calc(100vw - 32px);padding:10px 16px;font-size:13.5px;position:fixed;bottom:52px;left:50%;transform:translate(-50%);box-shadow:0 12px 32px #00000073}@media (width<=860px){.actions{order:0;margin-left:auto}.top .chg{display:none}}.pop-row{align-items:center;gap:2px;display:flex}.pop-row .pop-item{flex:1;min-width:0}.pop-row .tool.small{flex:none;width:32px;height:32px}.pop-edit{flex-wrap:wrap;align-items:center;gap:6px;padding:2px 10px 10px 40px;display:flex}.input.num{width:56px;height:32px;font-family:var(--font-mono);text-align:center;padding:0 8px}.pop-edit .btn{height:32px;padding:0 8px;font-size:13px}.list.alerts{flex:none;max-height:30%}.alert-px{color:var(--warning,#f5a623)}.fired{z-index:30;background:var(--surface);border-radius:var(--radius-card);border:1px solid #f5a623;flex-direction:column;gap:4px;width:min(380px,100vw - 24px);padding:14px 16px 8px;font-weight:600;display:flex;position:fixed;top:64px;left:50%;transform:translate(-50%);box-shadow:0 12px 32px #00000080}.fired .btn{align-self:flex-end;height:32px;padding:0 10px}.cond{background:var(--bg);border:1px solid var(--border);max-width:100%;height:28px;color:var(--text-muted);cursor:pointer;border-radius:6px;padding:0 8px;font-size:12.5px}.cond option{background:var(--surface);color:var(--text)}.alert-row{flex-wrap:wrap;padding-bottom:10px}.alert-row .wl-main{flex:0 0 100%;padding-bottom:6px}.alert-row .cond.rep{flex:0 0 58px;padding:0 4px}.list.alerts{max-height:40%}.tg{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-control);color:var(--text-muted);flex-direction:column;align-items:flex-start;gap:8px;margin-bottom:4px;padding:12px;font-size:13px;display:flex}.tg .btn{align-items:center;height:32px;padding:0 12px;font-size:13px;text-decoration:none;display:inline-flex}.tg .btn-ghost{padding:0}.tg .btn-ghost:hover{background:0 0;text-decoration:underline}.fired.offer{border-color:var(--primary);padding-bottom:14px;font-weight:500}.offer-actions{justify-content:flex-end;gap:8px;margin-top:8px;display:flex}.fired .offer-actions .btn{align-self:auto;padding:0 14px}.chart.picking{cursor:crosshair}.replay-hint,.replaybar{z-index:3;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);align-items:center;gap:4px;max-width:calc(100% - 8px);display:flex;position:absolute;left:50%;transform:translate(-50%);box-shadow:0 8px 24px #0006}.replay-hint{border-color:var(--primary);white-space:nowrap;gap:12px;padding:6px 6px 6px 14px;font-size:13.5px;top:8px}.replay-hint .btn{height:28px;padding:0 10px;font-size:13px}.replaybar{scrollbar-width:none;padding:4px;bottom:36px;overflow-x:auto}.replaybar>*{flex:none}.replaybar .play{background:var(--primary-tint);color:var(--primary)}.replay-date{color:var(--text-muted);padding:0 8px;font-size:12.5px}.pill.replay{background:var(--primary-tint);color:var(--primary)}@media (width<=860px){.replaybar{gap:2px}.replay-date{padding:0 4px;font-size:11.5px}.replay-hint{white-space:normal}.actions{gap:0}}@media (width<=480px){.top .logo{display:none}}.slot{display:contents}.panes{background:var(--border);gap:1px;min-width:0;min-height:0;display:grid}.panes .chart-wrap{background:var(--bg)}.panes.l-2h{grid-template-columns:repeat(2,minmax(0,1fr))}.panes.l-2v{grid-template-rows:repeat(2,minmax(0,1fr))}.panes.l-3{grid-template-columns:repeat(3,minmax(0,1fr))}.panes.l-4{grid-template:repeat(2,minmax(0,1fr))/repeat(2,minmax(0,1fr))}.panes.multi .chart-wrap.active:after{content:"";z-index:2;border:1px solid var(--primary);pointer-events:none;position:absolute;inset:0}.pane-tag{z-index:2;background:var(--surface);border:1px solid var(--border);font:600 12px/1.3 var(--font-ui);color:var(--text-muted);pointer-events:none;border-radius:6px;padding:3px 8px;position:absolute;top:6px;right:78px}.chart-wrap.active .pane-tag{color:var(--primary)}.layout-pop{width:260px}.layout-grid{gap:6px;padding:0 10px 4px;display:flex}.layout-opt{background:var(--bg);border:1px solid var(--border);cursor:pointer;border-radius:6px;gap:2px;width:40px;height:32px;padding:5px;display:grid}.layout-opt i{background:var(--text-subtle);border-radius:1.5px}.layout-opt.lo-2h,.layout-opt.lo-3{grid-auto-flow:column}.layout-opt.lo-4{grid-template:1fr 1fr/1fr 1fr}.layout-opt:hover{border-color:var(--text-subtle)}.layout-opt[aria-pressed=true]{border-color:var(--primary)}.layout-opt[aria-pressed=true] i{background:var(--primary)}.pop-item.cmp-on{cursor:default}.pop-item.cmp-on:hover{background:0 0}.dot{border-radius:50%;flex:none;width:10px;height:10px}.top{gap:10px}.top .seg select.ui{text-overflow:ellipsis;max-width:118px}@media (width<=1360px) and (width>=861px){.top .chg{display:none}.chip{padding:0 9px}.seg button,.seg select{min-width:30px;padding:0 7px}}@media (width<=1180px) and (width>=861px){.top .logo span{display:none}.top .actions .tool{width:32px}.top{gap:8px}}.tool-group{flex:none;position:relative}.tool-more{cursor:pointer;background:0 0;border:0;width:14px;height:14px;padding:0;position:absolute;bottom:0;right:-2px}.tool-more:after{content:"";border:3px solid #0000;border-right-color:var(--text-subtle);border-bottom-color:var(--text-subtle);position:absolute;bottom:3px;right:3px}.tool-more:hover:after,.tool-more[aria-expanded=true]:after{border-right-color:var(--primary);border-bottom-color:var(--primary)}.tools-sep{background:var(--border);flex:none;height:1px;margin:4px}.tool.fav{color:var(--text)}.tool-pop{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;width:290px;max-height:calc(100dvh - 16px);overflow-y:auto}.drag-guide{z-index:3;pointer-events:none;position:absolute;inset:0;overflow:hidden}.drag-guide[hidden]{display:none}.drag-guide i{border:0 dashed var(--text-muted);opacity:.8;position:absolute}.drag-guide .h{border-top-width:1px;left:0;right:0}.drag-guide .v{border-left-width:1px;top:0;bottom:0}.drag-guide b{background:var(--text);color:var(--bg);font:500 11px/1.3 var(--font-mono);white-space:nowrap;border-radius:3px;padding:2px 5px;position:absolute}.drag-guide .p{right:2px;transform:translateY(-50%)}.drag-guide .t{bottom:4px;transform:translate(-50%)}@media (width<=860px){.top .pair{text-overflow:ellipsis;white-space:nowrap;flex:0 auto;min-width:0;max-width:52vw;overflow:hidden}}.tool-item{gap:10px}.tool-item[aria-current=true] .sym{color:var(--primary)}.tool-ico{width:20px;height:20px;color:var(--text-muted);flex:none}.tool-ico svg{fill:none;stroke:currentColor;stroke-width:1.6px;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px}.tool.star{color:var(--text-subtle)}.tool.star.on{color:#f5a623;background:0 0}@media (width<=860px){.tool-pop{max-width:calc(100vw - 58px);left:50px!important}}.tpl-save{align-items:center;gap:6px;padding:6px 10px 8px;display:flex}.tpl-save .input{flex:1;min-width:0}.layout-pop{max-height:calc(100vh - 80px);overflow-y:auto}.heat{z-index:30;background:var(--bg);flex-direction:column;display:flex;position:fixed;inset:0}.heat-head{border-bottom:1px solid var(--border);background:var(--surface);scrollbar-width:none;align-items:center;gap:12px;padding:10px 14px;display:flex;overflow-x:auto}.heat-head>*{flex:none}.heat-head .spacer{flex:1}.heat-title{font:600 15px/1 var(--font-ui)}.heat-legend{color:var(--text-muted);align-items:center;gap:8px;font-size:12px;display:flex}.heat-legend i{border-radius:4px;width:90px;height:8px}.heat-body{flex:1;min-height:0;margin:8px;position:relative;overflow:hidden}.heat-tile{border:1px solid var(--bg);color:#fff;cursor:pointer;border-radius:3px;flex-direction:column;justify-content:center;align-items:center;gap:.15em;padding:0;line-height:1.1;transition:filter .12s;display:flex;position:absolute;overflow:hidden}.heat-tile:hover{filter:brightness(1.18)}.heat-tile b{font-weight:600}.heat-tile span{opacity:.92;font-size:.55em}.heat-note{text-align:center;max-width:420px;color:var(--text-muted);margin:20vh auto 0}.heat-foot{padding:8px 14px calc(8px + env(safe-area-inset-bottom));color:var(--text-subtle);border-top:1px solid var(--border);font-size:12px}@media (width<=860px){.heat-legend,.heat-title{display:none}}.heat-head>.tool{background:var(--surface);position:sticky;right:0}.heat-ctl{display:contents}@media (width<=860px){.heat{bottom:var(--mnav-h,calc(58px + env(safe-area-inset-bottom)))}.heat-head{padding:max(8px, env(safe-area-inset-top)) 10px 8px;flex-wrap:wrap;gap:8px;overflow-x:visible}.heat-head>.seg:first-child{scrollbar-width:none;flex:1 1 0;min-width:0;overflow-x:auto}.heat-head>.tool{order:1;position:static}.heat-head .spacer{display:none}.heat-ctl{scrollbar-width:none;flex:1 0 100%;order:2;align-items:center;gap:8px;min-width:0;display:flex;overflow-x:auto}.heat-ctl>*{flex:none}.heat-ctl:empty,.heat-foot{display:none}.scr-filters{padding:6px 10px}.scr{font-size:12px}.scr td{padding:8px}.scr th button{padding:9px 8px}.scr:not(.models) th:first-child,.scr:not(.models) td:first-child{z-index:1;background:var(--bg);position:sticky;left:0}.scr:not(.models) th:nth-child(2),.scr:not(.models) td:nth-child(2){z-index:1;background:var(--bg);box-shadow:1px 0 0 var(--border);position:sticky;left:36px}.scr:not(.models) th:first-child,.scr:not(.models) th:nth-child(2){z-index:3;background:var(--surface)}.scr.models td:first-child,.scr.models th:first-child{z-index:1;background:var(--bg);box-shadow:1px 0 0 var(--border);padding-left:10px;position:sticky;left:0}.scr.models th:first-child{z-index:3;background:var(--surface)}.scr-range{width:56px}.scrim{padding-top:max(48px, calc(env(safe-area-inset-top) + 8px))}.scrim>.dialog{max-height:calc(100dvh - max(48px, env(safe-area-inset-top) + 8px) - var(--mnav-h,70px) - 10px);overscroll-behavior:contain;overflow-y:auto}}.scr-search{width:130px;height:34px}.scr-filters{scrollbar-width:none;border-bottom:1px solid var(--border);align-items:center;gap:6px;padding:8px 14px;display:flex;overflow-x:auto}.scr-filters>*{flex:none}.scr-count{color:var(--text-subtle);margin-left:auto;padding-left:12px;font-size:12px}.scr-body{flex:1;min-height:0;overflow:auto}.scr{border-collapse:collapse;white-space:nowrap;width:100%;font-size:13px}.scr th{z-index:1;background:var(--surface);border-bottom:1px solid var(--border);text-align:right;padding:0;position:sticky;top:0}.scr th button{width:100%;color:var(--text-muted);font:500 12px/1 var(--font-ui);text-align:inherit;cursor:pointer;background:0 0;border:0;padding:9px 12px}.scr th button:hover,.scr th[aria-sort=ascending] button,.scr th[aria-sort=descending] button{color:var(--text)}.scr th i{width:12px;color:var(--primary);font-style:normal;display:inline-block}.scr th:nth-child(2),.scr td:nth-child(2){text-align:left}.scr td{text-align:right;border-bottom:1px solid var(--border);padding:7px 12px}.scr td:first-child,.scr th:first-child{width:36px;padding:0 0 0 8px}.scr tbody tr{cursor:pointer}.scr tbody tr:hover{background:var(--surface)}.scr .up{color:var(--up)}.scr .down{color:var(--down)}.scr .muted,.scr-name .muted{color:var(--text-subtle)}.scr-range{background:linear-gradient(90deg, var(--down), var(--border) 50%, var(--up));vertical-align:middle;border-radius:2px;width:90px;height:4px;display:inline-block;position:relative}.scr-range i{background:var(--text);border-radius:2px;width:3px;height:12px;margin-left:-1px;position:absolute;top:-4px}.app{grid-template-rows:auto minmax(0,1fr) auto}.foot{gap:12px}.foot .spacer{flex:1}.foot-chip{height:26px;font-size:12px}.btn.small{height:28px;padding:0 10px;font-size:12px}.foot>*{white-space:nowrap}@media (width<=860px){.foot .meta{display:none}}.alerts-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.alerts-head .btn{text-transform:none;letter-spacing:0}.alert-row .cond{flex:1 1 0;min-width:0}.chip.repeat{flex:none;width:30px;height:28px;margin-left:6px;padding:0;font-size:15px}.ind-dialog{flex-direction:column;gap:10px;display:flex}.ind-dialog label>span{color:var(--text-muted);margin-bottom:3px;font-size:12px;display:block}.ind-dialog .cond,.ind-dialog .input{width:100%;height:34px}.ind-grid{grid-template-columns:1fr 1fr;gap:10px;display:grid}.ind-check{align-items:center;gap:8px;display:flex}.ind-check>span{color:var(--text)!important;margin:0!important;font-size:13px!important}.ind-dialog .hint{margin:0}.scr.models th,.scr.models td{text-align:left}.scr.models td:first-child,.scr.models th:first-child{width:auto;padding:7px 12px 7px 16px}.scr.models th{font:500 12px/1 var(--font-ui);color:var(--text-muted);padding:9px 12px}.scr .wait{color:#f5a623}.devices{border-top:1px solid var(--border);flex-basis:100%;margin-top:6px;padding-top:8px;font-size:12px}.devices-head{color:var(--text-subtle);margin-bottom:4px}.device{justify-content:space-between;align-items:center;gap:8px;min-height:28px;display:flex}.devices{align-self:stretch}.seg.venues{flex-wrap:wrap;gap:2px;margin:6px 0 2px;display:flex}.seg.venues button{flex:auto;padding:4px 6px;font-size:12px}.emoji-grid{grid-template-columns:repeat(8,1fr);gap:2px;max-height:232px;margin-bottom:12px;display:grid;overflow-y:auto}.emoji-btn{border-radius:var(--radius-control);cursor:pointer;background:0 0;border:0;height:36px;padding:0;font-size:20px;line-height:1}.emoji-btn:hover,.emoji-btn:focus-visible{background:var(--bg)}.input.area{resize:vertical;height:auto;font:13px/1.5 var(--font-ui);padding-top:8px;padding-bottom:8px}.dialog .hint{margin:8px 0 0}.chart.erasing canvas{cursor:crosshair!important}.chip .show-m{line-height:0;display:none}@media (width<=860px){.chip .show-m{align-items:center;line-height:1;display:inline-flex}.top .tf{flex:0 0 100%;order:2}.top .seg.kind{margin-left:auto}}.tv-dialog{width:min(620px,100%);max-height:76vh;overflow-y:auto}.tv-steps{margin:0 0 12px;padding-left:20px;font-size:14px;line-height:1.5}.tv-steps li{margin-bottom:12px}.tv-steps li>div{margin-top:8px}.tv-mark{cursor:grab;align-items:center;text-decoration:none;display:inline-flex}.tv-table{gap:6px;margin:12px 0;display:grid}.tv-row{grid-template-columns:1.1fr 1fr 1.3fr;align-items:center;gap:10px;font-size:13px;display:grid}.tv-row small{color:var(--text-muted)}.tv-head{color:var(--text-muted);font-size:12px}.tv-row .input.bad{border-color:var(--down)}.ind-filters{gap:8px;margin-top:12px;display:grid}.ind-filter{align-items:center;gap:6px;display:flex}.ind-filter .input{flex:none;width:58px;padding:0 8px}.ind-filter .cond{flex:1;min-width:0}.ind-filter .wl-x{opacity:1;flex:none}.ind-add{justify-self:start;height:30px;padding:0 10px;font-size:13px}.bt{z-index:18;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);flex-direction:column;width:min(430px,100vw - 24px);max-height:min(78vh,720px);font-size:13px;display:flex;position:fixed;bottom:46px;right:12px;box-shadow:0 12px 32px #00000073}.bt-head{border-bottom:1px solid var(--border);align-items:center;gap:10px;padding:10px 12px;display:flex}.bt-head .mono{color:var(--text-muted);flex:1;font-size:12px}.bt-head .wl-x{opacity:1}.bt-body{grid-template-columns:repeat(3,1fr);gap:10px;padding:12px;display:grid;overflow-y:auto}.bt-body label{gap:4px;min-width:0;display:grid}.bt-body label>span{color:var(--text-muted);font-size:12px}.bt-body .ind-check{align-items:center;gap:8px;display:flex}.bt-body .input{padding:0 8px}.bt-wide{grid-column:1/-1}.bt-body .hint{margin:0}.bt-actions{align-items:center;gap:12px;display:flex}.bt-actions .btn{flex:none}.bt-result{gap:10px;display:grid}.bt-stats{grid-template-columns:repeat(4,1fr);gap:8px;display:grid}.bt-stats div{background:var(--bg);border-radius:var(--radius-control);gap:2px;padding:8px;display:grid}.bt-stats span{color:var(--text-muted);font-size:11px}.bt-stats b{font:600 13px/1.2 var(--font-mono)}.bt-curve{background:var(--bg);border-radius:var(--radius-control);width:100%;height:110px}.bt-trades{gap:2px;max-height:190px;display:grid;overflow-y:auto}.bt-trade{grid-template-columns:1.5fr 1.6fr .7fr .8fr;gap:8px;padding:3px 4px;font-size:11px;display:grid}.bt-trade span:last-child{text-align:right}.bt-th{color:var(--text-muted)}.cal-date{font:600 14px/1 var(--font-ui);white-space:nowrap;text-transform:capitalize}.cal-nav button{min-width:32px}.scr.cal th,.scr.cal td{text-align:left;white-space:normal;width:auto;padding:8px 12px}.scr.cal th{color:var(--text-muted);font:500 12px/1 var(--font-ui)}.scr.cal th:first-child,.scr.cal td:first-child{width:auto;padding-left:14px}.scr.cal .scr-name,.scr.cal td.mono{white-space:nowrap}.scr.cal th:nth-child(n+4),.scr.cal td:nth-child(n+4){text-align:right}.scr tr.plain{cursor:default}.clock{color:var(--text-muted);align-items:center;gap:6px;font-size:12px;display:inline-flex}.clock select{max-width:92px;height:26px;font:inherit;color:inherit;border-radius:var(--radius-control);cursor:pointer;background:0 0;border:1px solid #0000;padding:0 4px}.clock select:hover,.clock select:focus-visible{border-color:var(--border);color:var(--text)}.clock option{color:var(--text);background:var(--surface)}@media (width<=860px){.clock .mono{display:none}.clock select{max-width:74px}}.mnav,.msheet,.msheet-scrim{display:none}@media (width<=860px){.chip.hide-m,.chip.m-off,.foot{display:none}.mnav{padding:4px 4px max(4px, env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--border);z-index:30;grid-template-columns:repeat(5,1fr);display:grid;position:relative}.mnav button{border-radius:var(--radius-control);color:var(--text-muted);font:500 11px/1 var(--font-ui);cursor:pointer;background:0 0;border:0;justify-items:center;gap:3px;padding:6px 2px;display:grid}.mnav svg{fill:none;stroke:currentColor;stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px}.mnav button[aria-pressed=true]{color:var(--primary);background:var(--primary-tint)}.msheet-scrim{z-index:28;background:#080a0e80;display:block;position:fixed;inset:0}.msheet{left:8px;right:8px;bottom:calc(62px + env(safe-area-inset-bottom));z-index:29;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);padding:8px;display:grid;position:fixed;box-shadow:0 12px 32px #00000073}.msheet-head{color:var(--text-muted);justify-content:space-between;align-items:center;padding:6px 10px 10px;font-size:12px;display:flex}.msheet-item{border-radius:var(--radius-control);min-height:46px;color:var(--text);font:500 15px/1.2 var(--font-ui);text-align:left;cursor:pointer;background:0 0;border:0;justify-content:space-between;align-items:center;padding:0 10px;display:flex}.msheet-item[aria-pressed=true]{color:var(--primary)}.msheet-item[aria-pressed=true]:after{content:"✓"}.msheet-clock .clock .mono{display:inline}.msheet-clock .clock select{max-width:150px}.top .tf{flex:1 1 0;order:0;min-width:0}.top .seg.kind{margin-left:0}.top .seg.kind select.ui{width:76px}.top .pair,.top .px,.top .actions{flex:none}.top .px{white-space:nowrap}.top .chg{white-space:nowrap;flex-wrap:wrap;flex:1 1 0;min-width:0;height:18px;line-height:18px;display:flex;overflow:hidden}.top .chg:before{content:"";width:0;height:18px}.body{grid-template-columns:minmax(0,1fr)}.tools{display:none}[data-draw="1"] .body{grid-template-columns:44px minmax(0,1fr)}[data-draw="1"] .tools{display:flex}.heat{bottom:calc(58px + env(safe-area-inset-bottom))}.bt{width:auto;left:8px;right:8px;bottom:calc(66px + env(safe-area-inset-bottom));max-height:62vh}}@media (width<=960px) and (height<=500px){.top{flex-wrap:nowrap;padding-top:4px;padding-bottom:4px;overflow-x:auto}.top>*{flex:none}.top .spacer{display:none}.top .tf{flex:none}.mnav{padding-top:2px;padding-bottom:max(2px, env(safe-area-inset-bottom))}.mnav button{padding:4px 2px}.mnav span{display:none}.heat{bottom:calc(38px + env(safe-area-inset-bottom))}}.pr-dialog{width:min(680px,100%);max-height:86vh;overflow-y:auto}.pr-now-box{gap:28px;margin-bottom:8px;display:flex}.pr-now-box>div{flex-direction:column;gap:2px;display:flex}.pr-big{font:600 28px/1.1 var(--font-mono,monospace)}.pr-cap{color:var(--text-muted);align-items:center;gap:6px;font-size:12px;display:flex}.pr-dot{border-radius:2px;width:9px;height:9px;display:inline-block}.pr-dot.pr-m,rect.pr-m{background:var(--primary);fill:var(--primary)}.pr-dot.pr-a,rect.pr-a{background:var(--text-subtle);fill:var(--text-subtle)}.pr-nav,.pr-sub{flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0 8px;display:flex}.pr-sub{color:var(--text-muted);font-size:12px}.pr-date{text-align:center;min-width:150px;font-weight:600}.pr-zone{color:var(--text-muted);font-size:12px}.pr-chart svg{width:100%;height:auto;display:block}.pr-tip{color:var(--text-muted);min-height:18px;margin-bottom:4px;font-size:12px}.pr-grid{stroke:var(--border);stroke-dasharray:3 3}.pr-base{stroke:var(--border)}.pr-axis{font:10px var(--font-mono,monospace);fill:var(--text-subtle)}.pr-pick{cursor:pointer}.pr-pick:hover rect:first-child{fill:var(--primary-tint)}rect.pr-now{fill:var(--primary)}.gate{z-index:1000;background:color-mix(in srgb, var(--bg) 88%, transparent);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.gate-box{border:1px solid var(--border);background:var(--surface);text-align:center;border-radius:14px;width:min(420px,100%);padding:24px}.gate-box h2{margin:0 0 8px;font-size:18px}.gate-box p,.gate-box .hint{margin:0 0 14px}.gate-box .btn{justify-content:center;align-items:center;text-decoration:none;display:inline-flex}.gate-actions{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.tg.min{background:0 0;border:0;padding:0}.tg-head{width:100%;color:var(--text-muted);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:8px;padding:0;display:flex}.tg.min .tg-head{padding:4px 0}.tg-head span{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.tg-dot{background:var(--success,#26a69a);border-radius:50%;flex:none;width:7px;height:7px}.tg-head[aria-expanded=false] .wl-sec-arrow{margin-bottom:0;transform:rotate(-45deg)}.wl-tag{color:var(--text-subtle);margin-left:6px;font-size:10px;font-weight:400}.roombar{z-index:15;border:1px solid var(--primary);background:var(--surface);white-space:nowrap;scrollbar-width:none;border-radius:999px;align-items:center;gap:8px;max-width:calc(100vw - 16px);padding:6px 8px 6px 12px;font-size:12px;display:flex;position:fixed;top:56px;left:50%;overflow-x:auto;transform:translate(-50%);box-shadow:0 6px 24px #00000059}.roombar-title{align-items:center;gap:6px;font-weight:600;display:inline-flex}.roombar-note{color:var(--text-muted)}.roombar-check{color:var(--text-muted);cursor:pointer;align-items:center;gap:4px;display:inline-flex}.roombar .chip,.roombar .cond{flex:none;height:26px;padding:0 10px;font-size:12px}@media (width<=860px){.roombar{top:auto;bottom:calc(72px + env(safe-area-inset-bottom))}}.recent{margin-bottom:4px}.recent-list{border-bottom:1px solid var(--border);flex-wrap:wrap;gap:6px;padding-bottom:8px;display:flex}.recent-list .chip{height:28px;padding:0 10px;font-size:12px}.dialog.share{width:min(460px,100%)}.share-pic{object-fit:contain;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg);width:100%;max-height:34vh;display:block}.share-nets{grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0;display:grid}.share-net{border-color:var(--border);background:var(--surface-2);color:var(--text);place-items:center;padding:0 8px;text-decoration:none;display:grid}.share-net:hover{border-color:var(--primary)}.dialog.share .dialog-actions{flex-wrap:wrap}@media (width<=860px){.scrim:has(.dialog.share){padding-top:12px}.dialog.share{max-height:calc(100dvh - 12px - 84px - env(safe-area-inset-bottom));overscroll-behavior:contain;padding:16px;overflow-y:auto}.share-pic{max-height:24dvh}.dialog.share .dialog-actions{justify-content:space-between;margin-top:12px}}@media (display-mode:window-controls-overlay){.top{padding-left:max(16px, calc(env(titlebar-area-x,0px) + 8px));padding-right:max(16px, calc(100vw - env(titlebar-area-x,0px) - env(titlebar-area-width,100vw) + 8px));min-height:env(titlebar-area-height,0px);-webkit-app-region:drag;app-region:drag}.top button,.top select,.top input,.top a,.top .seg{-webkit-app-region:no-drag;app-region:no-drag}}@media (display-mode:standalone),(display-mode:fullscreen){.app{height:100%}}@media (width<=860px){.tools{overscroll-behavior:none;gap:0}.tools>.tool,.tools>.tool-group{flex:0 36px;height:auto;min-height:26px}.tools>.tool-group{display:flex}.tools>.tool-group>.tool{flex:auto;align-self:stretch;height:auto}.tools .tools-sep{margin:2px 4px}.tools .tools-gap{min-height:0}}.penbar .tool.degree{width:auto;min-width:32px;font:600 12px/1 var(--font-mono);padding:0 6px}.wl-grip{cursor:grab;touch-action:none;background:radial-gradient(circle, var(--text-subtle) 1px, transparent 1.5px) center / 5px 5px repeat-y;opacity:0;background-position:50%;background-size:5px 5px;flex:none;align-self:stretch;width:14px;margin-left:-6px;transition:opacity .12s}.wl:hover .wl-grip,.wl.dragging .wl-grip{opacity:.9}@media (pointer:coarse){.wl-grip{opacity:.6;width:22px}}.wl.dragging{opacity:.45}.wl.drop-before{box-shadow:inset 0 2px 0 var(--primary)}.wl.drop-after{box-shadow:inset 0 -2px 0 var(--primary)}.wl-sec.drop{background:var(--primary-tint);border-radius:var(--radius-control)}.dialog.settings{width:min(400px,100%);max-height:calc(100dvh - 24vh);overflow-y:auto}.set-title{justify-content:space-between;align-items:center;margin-bottom:4px;display:flex}.set-group{font:600 11px/1.3 var(--font-ui);letter-spacing:.06em;text-transform:uppercase;color:var(--text-subtle);margin:14px 0 4px}.set-row{align-items:center;gap:10px;min-height:34px;font-size:14px;display:flex}.set-name{flex:none;width:76px}.set-colors{flex-wrap:wrap;align-items:center;gap:2px;display:flex}.set-color{border:1px solid var(--border);cursor:pointer;background:0 0;border-radius:6px;width:28px;height:28px;padding:2px}.set-check{cursor:pointer}.set-check input,.set-row input[type=range]{accent-color:var(--primary)}.set-check input{width:16px;height:16px;margin:0}.set-row input[type=range]{flex:1;min-width:0}.set-value{text-align:right;width:56px;font:12px var(--font-mono,ui-monospace, monospace);color:var(--text-muted);flex:none}.dialog.objects{width:min(400px,100%);max-height:calc(100dvh - 24vh);overflow-y:auto}.obj-list{margin:0;padding:0;list-style:none}.obj-row{border-radius:8px;align-items:center;gap:2px;display:flex}.obj-row[aria-current=true]{background:var(--primary-tint)}.obj-row[data-hidden=true] .obj-main{opacity:.45}.obj-main{min-width:0;min-height:38px;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;flex:1;align-items:center;gap:8px;padding:0 8px;font-size:14px;display:flex}.obj-main:disabled{cursor:default}.obj-main:not(:disabled):hover{background:var(--surface-2)}.obj-icon{width:18px;height:18px;color:var(--text-muted);flex:none}.obj-icon svg{fill:none;stroke:currentColor;stroke-width:1.5px;width:18px;height:18px}.obj-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.obj-note{text-overflow:ellipsis;white-space:nowrap;max-width:40%;color:var(--text-subtle);flex:none;font-size:12px;overflow:hidden}.voice-count{align-items:center;gap:6px;display:inline-flex}.voice-count .tg-dot[data-wait=true]{background:var(--warning,#f3874a)}.alertbar-name{width:20px;height:20px;color:var(--warning,#f3874a);margin:0 2px 0 4px;display:inline-flex}.alertbar-name svg{fill:none;stroke:currentColor;stroke-width:1.5px;width:20px;height:20px}.input.alertbar-price{width:112px;height:30px;font:13px var(--font-mono,ui-monospace, monospace);padding:0 8px}.callview{z-index:14;pointer-events:none;flex-direction:column;align-items:flex-end;gap:6px;max-width:calc(100vw - 32px);display:flex;position:fixed;top:104px;right:16px}.callview>*{pointer-events:auto}.call-head{border:1px solid var(--border);background:var(--surface);border-radius:999px;align-items:center;gap:8px;padding:2px 2px 2px 10px;display:flex}.call-note{color:var(--text-muted);font-size:12px}.call-tiles{flex-wrap:wrap;justify-content:flex-end;gap:6px;display:flex}.call-tile{aspect-ratio:4/3;border:1px solid var(--border);background:#000;border-radius:10px;width:168px;margin:0;position:relative;overflow:hidden}.call-tile video{object-fit:cover;width:100%;height:100%;display:block}.call-tile[data-self=true] video{transform:scaleX(-1)}.call-tile figcaption{text-overflow:ellipsis;white-space:nowrap;color:#fff;background:#0000008c;border-radius:6px;max-width:calc(100% - 12px);padding:1px 6px;font-size:11px;position:absolute;bottom:4px;left:6px;overflow:hidden}.call-screen{width:min(360px,100%);position:relative}.call-screen[data-big=true]{width:min(62vw,980px)}.call-screen .call-tile{aspect-ratio:16/9;width:100%}.call-screen .call-tile video{object-fit:contain}.call-size{position:absolute;top:6px;right:6px}.call-show{z-index:14;position:fixed;top:104px;right:16px}@media (width<=860px){.callview,.call-show{top:150px;right:8px}.call-tile{width:104px}.call-screen[data-big=true]{width:calc(100vw - 16px)}}.dialog.invite{flex-direction:column;gap:8px;width:min(380px,100%);display:flex}.invite-list{border:1px solid var(--border);border-radius:10px;max-height:min(40vh,320px);margin:0;padding:0 4px;list-style:none;overflow-y:auto}.invite-list .hint{padding:10px 6px}.hint.danger{color:var(--down)}.callview{touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab}.callview[data-moved=true]{align-items:flex-start}.callview[data-moved=true] .call-tiles{justify-content:flex-start}.callview:active{cursor:grabbing}.chat-badge{background:var(--down);color:#fff;border-radius:999px;margin-left:6px;padding:0 6px;font-size:11px;font-weight:600}.chat{z-index:16;border:1px solid var(--border);background:var(--surface);border-radius:14px;flex-direction:column;width:min(360px,100vw - 32px);height:min(520px,100dvh - 180px);display:flex;position:fixed;bottom:56px;right:16px;box-shadow:0 10px 40px #00000073}.chat-head{border-bottom:1px solid var(--border);align-items:center;gap:8px;padding:8px 8px 8px 14px;display:flex}.chat-head .cond{flex:1;min-width:0}.chat-list{flex-direction:column;flex:1;gap:8px;min-height:0;margin:0;padding:10px 12px;list-style:none;display:flex;overflow-y:auto}.chat-msg{background:var(--surface-2);overflow-wrap:anywhere;border-radius:12px;align-self:flex-start;max-width:88%;padding:6px 10px 8px;font-size:14px}.chat-msg[data-own=true]{background:var(--primary-tint);align-self:flex-end}.chat-msg[data-private=true]{outline:1px dashed var(--primary)}.chat-msg p{white-space:pre-wrap;margin:2px 0 0}.chat-meta{color:var(--text-muted);align-items:baseline;gap:6px;font-size:12px;display:flex}.chat-meta b{color:var(--text)}.chat-meta time{margin-left:auto;font-size:11px}.chat-to{color:var(--primary)}.chat-image{cursor:zoom-in;background:#000;border:0;border-radius:8px;margin-top:4px;padding:0;display:block;overflow:hidden}.chat-image img{max-width:100%;max-height:240px;display:block}.chat-image .hint{padding:24px 16px;display:block}.chat-doc{border:1px solid var(--border);width:100%;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border-radius:8px;align-items:baseline;gap:8px;margin-top:4px;padding:8px 10px;display:flex}.chat-doc-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.chat-doc-size{color:var(--text-muted);flex:none;font-size:12px}.chat-geo{color:var(--primary);margin-top:4px;display:block}.chat-menu{border:1px solid var(--border);background:var(--surface);border-radius:12px;flex-direction:column;min-width:220px;padding:6px;display:flex;position:absolute;bottom:56px;left:8px;box-shadow:0 8px 28px #00000073}.chat-menu button{color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;padding:10px 12px;font-size:14px}.chat-menu button:hover{background:var(--surface-2)}.chat-form{border-top:1px solid var(--border);align-items:center;gap:6px;padding:8px;display:flex}.chat-form .input{flex:1;min-width:0}@media (width<=860px){.chat{left:8px;right:8px;bottom:calc(var(--mnav-h,56px) + 62px);width:auto;height:min(60dvh,520px)}}.dialog.rooms{flex-direction:column;gap:8px;width:min(420px,100%);display:flex}.rooms-list{max-height:min(50vh,380px);margin:0;padding:0;list-style:none;overflow-y:auto}.rooms-row{border-radius:10px;align-items:center;gap:10px;padding:8px 10px;display:flex}.rooms-row+.rooms-row{border-top:1px solid var(--border);border-radius:0}.rooms-row[aria-current=true]{background:var(--primary-tint)}.rooms-main{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.rooms-note,.rooms-here{color:var(--text-muted);font-size:12px}button.roombar-title{color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;padding:0;font-weight:600}.chat-del{height:18px;color:var(--text-subtle);font:inherit;cursor:pointer;opacity:.55;background:0 0;border:0;border-radius:6px;align-items:center;padding:0 2px;font-size:11px;display:inline-flex}.chat-del svg{width:14px;height:14px}.chat-del:hover,.chat-del.danger{opacity:1;color:var(--down)}
