:root{--accent:#59d99c;--line:#8bffbd26;--muted:#a0bdac;--panel:#102017ed;--text:#edf8f2}
.preview-model-hint{font-size:10px;line-height:1.7;color:var(--muted);margin:6px 0 10px}
.preview-2d-pane{position:absolute;inset:0}.preview-minimap-heading{display:none}
body[data-view="3d"]{--minimap-top:74px;--minimap-height:min(332px,42dvh);--right-panel-edge:14px}
body[data-view="3d"] .preview-2d-pane{inset:var(--minimap-top) var(--right-panel-edge) auto auto;z-index:5;width:320px;height:var(--minimap-height);box-sizing:border-box;border:1px solid #8bffbd40;border-radius:9px;overflow:hidden;background:#0e1b14;box-shadow:0 6px 28px #0005}
body[data-view="3d"] #playersPanel{top:calc(var(--minimap-top) + var(--minimap-height) + 12px);right:var(--right-panel-edge);bottom:76px;transform:none;width:320px;min-height:0;max-height:none;box-sizing:border-box}
body[data-view="3d"] #playersPanel .player-list{min-height:0}
body[data-view="3d"] .preview-minimap-heading{display:flex;align-items:center;justify-content:space-between;height:31px;padding:0 9px;border-bottom:1px solid var(--line);font-size:11px;color:#d5f0df}
.preview-minimap-heading strong{font-weight:600}.preview-minimap-heading button{padding:2px 5px;min-height:23px;border:0;background:transparent;color:var(--accent);font-size:10px}
body[data-view="3d"] #legacyView{position:absolute;inset:31px 0 0;width:100%;height:calc(100% - 31px)}
@media(max-width:760px){body[data-view="3d"]{--minimap-top:66px;--minimap-height:min(190px,38dvh);--right-panel-edge:9px}body[data-view="3d"] .preview-2d-pane{width:min(168px,calc(100vw - 190px))}body[data-view="3d"] #playersPanel{width:min(280px,calc(100vw - 18px))}}
@media(max-height:550px) and (min-width:761px){body[data-view="3d"]{--minimap-height:min(190px,38dvh)}body[data-view="3d"] .preview-2d-pane{width:180px}}
body{background:#08120c;font-family:"Segoe UI","Microsoft YaHei",sans-serif}
.preview-topbar{position:absolute;z-index:7;left:10px;right:10px;top:10px;height:46px;padding:0 12px;display:flex;align-items:center;gap:9px;background:#0e1b14df;border:1px solid #ffffff13;border-radius:12px;box-shadow:0 6px 28px #0004;backdrop-filter:blur(10px)}
.preview-topbar .map-identity{position:static;display:flex;align-items:center;gap:13px;margin:0;color:#bfd2c7;font-size:11px;white-space:nowrap}.preview-topbar .radar-wordmark{font-size:15px;letter-spacing:.2px;color:#f2fff8;font-weight:750}.radar-wordmark:before{content:"R";display:inline-grid;place-items:center;width:25px;height:25px;margin-right:8px;background:linear-gradient(140deg,#8effbf,#50ce86);color:#fff;border-radius:7px;font-size:15px}.preview-badge{color:#a4e8c1;font-size:10px;padding:3px 7px;border:1px solid #8bffbd30;border-radius:5px}.preview-spacer{flex:1}
.preview-topbar .view-switch{background:#ffffff06;height:30px;border:1px solid #ffffff12;border-radius:7px;padding:2px}.preview-topbar .view-switch button{height:24px;min-width:35px;width:35px;border-radius:4px;font-size:11px}.preview-topbar .view-switch .active{background:#8bffbd27;color:#afffd1;box-shadow:none}.preview-topbar .connection-tool,.preview-pill{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:29px;height:29px;padding:0 10px;border:1px solid #ffffff14;border-radius:7px;background:#ffffff06;color:#cbdad1;font-size:11px;white-space:nowrap;cursor:pointer}.preview-topbar .connection-tool:hover,.preview-pill:hover{border-color:#8bffbd77;background:#8bffbd18}.preview-left-panels{position:absolute;left:14px;top:74px;bottom:84px;z-index:3;width:211px;display:flex;flex-direction:column;gap:12px;pointer-events:none}.preview-left-panels>*{pointer-events:auto}.preview-stats{flex:none;box-sizing:border-box;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px;row-gap:11px;width:100%;padding:14px 12px;background:#0d1611b8;border:1px solid #ffffff12;border-radius:9px;backdrop-filter:blur(8px);pointer-events:auto}.preview-stats>strong{grid-column:1/-1;font-size:11px;font-weight:600;color:#9aafa3;margin-bottom:1px}.preview-stats .hud-stat{border:0;margin:0;padding:0;gap:6px;font-size:10px;display:flex;flex-direction:row;justify-content:flex-start}.preview-stats .hud-stat b{font-variant-numeric:tabular-nums;font-size:13px;color:#eef0f7;font-weight:650;min-width:17px}.preview-stats .hud-stat>span{color:#98ada1}.preview-stats .hud-stat:before{content:"";width:5px;height:5px;flex:none;border-radius:50%;background:#99edbd}.preview-stats .enemy-stat:before{background:#ff647d}.preview-network{grid-column:1/-1;display:grid;gap:8px;border-top:1px solid var(--line);padding-top:11px;margin-top:1px;min-width:0}.preview-stats .preview-network .hud-stat{justify-content:space-between;align-items:baseline;gap:8px;min-width:0;white-space:nowrap}.preview-stats .preview-network .hud-stat:before{display:none}.preview-stats .preview-network .hud-stat b{font:600 11px Consolas,monospace;min-width:0;text-align:right;color:var(--text)}
.bottom-dock{left:50%;bottom:18px;display:flex;gap:7px;padding:7px;background:#101b15e8;border:1px solid #ffffff19;border-radius:10px;box-shadow:0 5px 30px #0005;backdrop-filter:blur(8px)}.bottom-dock .icon-button{width:34px;height:34px;background:#ffffff07;border:1px solid #ffffff13;color:#b5edcd}.camera-select select{height:34px;width:120px;background:#ffffff07;border:1px solid #ffffff13;font-size:11px;border-radius:6px}.preview-follow{display:flex;min-height:34px;gap:8px;padding:0 9px;border:1px solid #ffffff13;background:#ffffff07;border-radius:6px}.preview-follow label{color:#a0b5a9;font-size:10px}.preview-follow select{max-width:140px;width:120px;border:0;background:transparent;color:#eafff3;height:30px;font-size:11px;padding:0}.preview-combat{display:flex;align-items:center;gap:8px;font-size:11px;padding:0 7px;white-space:nowrap}.preview-combat input{accent-color:#8bffbd;width:15px;height:15px}.map-tools{left:14px;bottom:20px;gap:6px;flex-wrap:wrap;max-width:290px}.map-tools .icon-button{width:32px;height:32px;background:#141e18d9;border-color:#ffffff18;border-radius:7px}.map-tools .preview-pill{height:32px}.players-toggle{right:18px;bottom:20px;width:36px;height:36px;background:#131f18e6;color:#a2ffca;border-color:#a2ffca33;border-radius:9px}
#playersPanel{right:18px;top:55%;width:340px;border:1px solid #ffffff1b;border-radius:8px;background:#171b19b8;backdrop-filter:blur(10px);box-shadow:0 8px 32px #0003;max-height:calc(100dvh - 290px)}.panel-heading{margin:0 14px;padding:14px 0 10px;border-bottom:1px solid #ffffff19}.panel-heading h2{font-size:13px;font-weight:600;color:#dad7df}.player-list{padding:8px 12px}.player-row{border-radius:5px;background:#ffffff03;border-color:#ffffff0b;padding:8px;gap:9px}.player-row:hover{background:#ffffff0b;border-color:#a5ffcc4d}.player-avatar{width:32px;height:32px;border-width:2px}.player-name{font-size:11px}.player-equipment{font-size:9px;margin-top:5px}.player-weapon{font-size:10px;color:#bed4c7}.player-health{height:2px}.player-name small{font-size:9px}.preview-loot-panel{display:flex;flex-direction:column;min-height:0;width:100%;box-sizing:border-box;border:1px solid #ffffff22;border-radius:8px;background:#0b150f70;backdrop-filter:blur(7px);overflow:hidden}.preview-loot-panel[hidden]{display:none}.preview-loot-head{flex:none;display:flex;align-items:center;justify-content:space-between;padding:11px 12px;border-bottom:1px solid #ffffff16}.preview-loot-head strong{font-size:11px;font-weight:600}.preview-loot-head small{font-size:9px;color:#a0b1a7}.preview-loot-body{min-height:0;overflow:auto;padding:4px 10px}.preview-loot-row{display:flex;align-items:center;gap:7px;padding:10px 0;border-bottom:1px solid #ffffff0d;color:var(--loot-color)}.preview-loot-row i{width:5px;height:5px;transform:rotate(45deg);background:currentColor;flex:none}.preview-loot-row div{min-width:0;flex:1}.preview-loot-row span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.preview-loot-row small{display:block;font-size:9px;color:#9aaaa1;margin-top:4px}.preview-loot-row b{font-size:11px;font-weight:650}.preview-demo-notice{position:absolute;left:50%;top:70px;transform:translateX(-50%);z-index:3;pointer-events:none;font-size:11px;color:#dacba9;background:#302818d9;border:1px solid #ad905a55;border-radius:6px;padding:7px 12px}.preview-demo-notice[hidden]{display:none}
.settings-dialog{width:1120px;max-width:calc(100vw - 40px);height:min(760px,calc(100dvh - 90px));max-height:calc(100dvh - 40px);padding:10px;background:linear-gradient(140deg,#142a1d,#0a150f 75%);border:1px solid #84ffb93b;border-radius:9px;box-shadow:0 28px 90px #0009;color:#ebf7f0}.settings-dialog[open]{display:grid;grid-template-columns:184px minmax(0,1fr);grid-template-rows:54px minmax(0,1fr);gap:0 12px}.settings-dialog::backdrop{background:#05090788;backdrop-filter:blur(3px)}.preview-settings-rail{grid-column:1;grid-row:1/3;border:1px solid #84ffb930;border-radius:7px;display:flex;flex-direction:column;background:#09160fa8;overflow:hidden}.preview-settings-brand{display:grid;grid-template-columns:32px 1fr;gap:0 10px;padding:22px 14px;border-bottom:1px solid #84ffb926;align-items:center}.preview-settings-brand b{grid-row:1/3;width:31px;height:33px;display:grid;place-items:center;background:linear-gradient(140deg,#9effc8,#50d98b);border-radius:7px;font-size:16px}.preview-settings-brand strong{font-size:14px;font-weight:700}.preview-settings-brand small{font:9px Consolas,monospace;color:#8eae9c;letter-spacing:1px}.preview-settings-rail .settings-tabs{margin:0;padding:12px 9px;display:flex;flex-direction:column;gap:7px;border:0;background:transparent}.preview-settings-rail [data-tab]{width:100%;text-align:left;height:56px;min-height:56px;padding:8px 15px;font-size:14px;font-weight:650;color:#9dbcaa;border:1px solid transparent;border-radius:7px;background:transparent}.preview-settings-rail [data-tab] small{display:block;margin-top:2px;font:9px Consolas,monospace;letter-spacing:1px}.preview-settings-rail [data-tab].active{color:#eafff3;border-color:#93ffc160;background:linear-gradient(110deg,#38875a9c,#234230);box-shadow:inset 3px 0 #7bffb4}.preview-save{margin:auto 14px 14px;padding-top:14px;border-top:1px solid #84ffb926;color:#90af9d;font-size:10px}.settings-heading{grid-column:2;grid-row:1;padding:0 14px;margin:0;border:1px solid #84ffb930;border-radius:7px 7px 0 0;background:#0c1c13}.settings-heading h1{font-size:16px}.settings-heading #closeSettings{margin-left:auto;background:#8bffbd12;border-color:#8bffbd30}.heading-mark{background:linear-gradient(#a8ffcd,#61ef9e);width:4px;height:16px}.settings-content{grid-column:2;grid-row:2;min-width:0;min-height:0;overflow:auto;padding:14px;border:1px solid #84ffb930;border-top:0;border-radius:0 0 7px 7px;background:#07100b9c}.settings-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}.settings-group{padding:0 12px 13px;border:1px solid #84ffb926;border-radius:9px;background:linear-gradient(140deg,#162e2085,#0c1b1299);min-width:0}.settings-group h2{padding:14px 0 11px;margin:0 0 7px;font-size:12px;color:#e5fff0;border-bottom:1px solid #84ffb922}.check-row,.quality-row,.setting-row{font-size:11px;min-height:37px;color:#aecbba}.check-row input[type=checkbox],.quality-row input[type=checkbox]{appearance:none;position:relative;width:34px;height:19px;flex:none;background:#07120c;border:1px solid #77d9a14a;border-radius:14px;cursor:pointer}.check-row input[type=checkbox]:before,.quality-row input[type=checkbox]:before{content:"";position:absolute;left:2px;top:2px;width:13px;height:13px;border-radius:50%;background:#f1fff7;transition:transform .12s}.check-row input[type=checkbox]:checked,.quality-row input[type=checkbox]:checked{background:#65df99;border-color:#83edb1}.check-row input[type=checkbox]:checked:before,.quality-row input[type=checkbox]:checked:before{transform:translateX(15px)}.settings-content input:not([type=checkbox]):not([type=range]),.settings-content select{background:#09160f;border-color:#84ffb935;font-size:11px}.settings-content input[type=range]{accent-color:#8affbc}.settings-content .field span{color:#accab9}.settings-content .group-divider{margin-top:12px}.settings-content .file-command{font-size:11px}.settings-content .loot-results{max-height:280px}.settings-content .catalog-section{margin-top:16px}.settings-content .price-fields{gap:7px}.settings-content .offsets input{width:100%}.connection-dialog,.battle-dialog{background:#101f16e8;border-color:#84ffb942}.primary-button{background:#8bffbd;border-color:#8bffbd;color:#0f2619}.battle-dialog .battle-team th{background:#213329}.battle-table thead th{background:#192b21}.battle-row td,.battle-row td:first-child{background:#121f18}.battle-row:hover td,.battle-row:hover td:first-child{background:#1d3427}
@media(max-width:1100px){.map-tools{bottom:79px}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.preview-left-panels{width:180px}#playersPanel{width:300px}.bottom-dock{max-width:calc(100% - 80px)}}
@media(max-width:760px){.preview-topbar{left:7px;right:7px;top:7px;padding:0 8px;gap:5px}.preview-topbar .radar-wordmark{font-size:12px}.radar-wordmark:before{display:none}.preview-badge{display:none}.preview-topbar .map-identity{gap:7px;font-size:10px}.preview-topbar .connection-tool{font-size:9px;padding:0 6px}.preview-topbar .preview-pill{font-size:10px;padding:0 6px}.preview-topbar .view-switch button{width:27px;min-width:27px}.preview-left-panels{top:66px;left:9px;width:160px}.preview-stats{padding:11px 9px;gap:9px}.preview-stats .hud-stat{font-size:9px}.preview-stats .hud-stat b{font-size:11px}.preview-stats .preview-network .hud-stat b{font-size:10px}#playersPanel{top:57%;right:9px;width:280px;max-height:calc(100dvh - 340px)}.bottom-dock{gap:5px;padding:5px;bottom:12px;max-width:calc(100vw - 63px)}.preview-follow{gap:5px;padding:0 6px}.preview-follow select{width:92px;max-width:92px}.preview-follow label{display:none}.camera-select select{width:100px;font-size:10px}.preview-combat{font-size:9px;gap:4px;padding:0 3px}.map-tools{left:9px;bottom:69px;gap:4px}.map-tools .icon-button{width:27px;height:29px}.map-tools .preview-pill{height:29px;padding:0 7px}.players-toggle{right:9px;bottom:13px;width:32px;height:34px}.preview-demo-notice{top:65px;max-width:50%;font-size:9px;white-space:nowrap;padding:5px 8px}.settings-dialog{max-width:calc(100vw - 14px);height:calc(100dvh - 26px);max-height:calc(100dvh - 26px);padding:6px}.settings-dialog[open]{grid-template-columns:92px minmax(0,1fr);gap:0 6px}.preview-settings-brand{display:flex;flex-direction:column;padding:17px 5px;gap:6px}.preview-settings-brand strong{font-size:12px}.preview-settings-brand small{font-size:7px}.preview-settings-brand b{display:none}.preview-settings-rail .settings-tabs{padding:9px 5px;gap:5px}.preview-settings-rail [data-tab]{padding:8px;font-size:12px;height:48px;min-height:48px}.preview-settings-rail [data-tab] small{font-size:8px}.preview-save{margin:8px;font-size:9px}.settings-heading{padding:0 10px;min-height:54px}.settings-heading h1{font-size:14px}.settings-content{padding:9px}.settings-grid{grid-template-columns:1fr;gap:10px}.settings-group{padding:0 10px 12px}.preview-topbar .status-dot{width:5px;height:5px}.preview-topbar .view-switch{height:29px}}
@media(max-width:390px){.preview-topbar .map-identity #mapLabel{display:none}.preview-combat{display:none}.camera-select select{width:95px}}
.preview-topbar #openConnection{background:#75eea924;border-color:#8affbc65;color:#e2ffee;padding:0 11px;min-height:32px}.preview-connect-label{font-size:11px;font-weight:650}.preview-topbar #connectionStatus{color:#a8cbb7;font-size:10px}.preview-topbar #openConnection:hover{background:#8affbc3b;border-color:#a5ffcc}
@media(max-width:760px){.preview-topbar #connectionStatus{display:none}.preview-topbar #openConnection{padding:0 8px}.preview-connect-label{font-size:10px}}

/* Share the same team color as the 2D radar markers. */
.player-row{border-left:3px solid var(--player-color)}.player-row .player-avatar{border-color:var(--player-color)}.player-row .player-name>span,.player-row .player-name small{color:var(--player-color)}
.preview-stats[hidden]{display:none}
.preview-panel-tools{position:absolute;z-index:6;right:64px;bottom:20px;display:flex;gap:6px}
.preview-panel-tools .preview-pill{height:32px;background:#141e18e8}
.preview-panel-tools [aria-pressed="true"]{color:#afffd1;border-color:#8bffbd65;background:#254934e8}
@media(max-width:1100px){.preview-panel-tools{bottom:79px;right:18px}}
@media(max-width:760px){.preview-panel-tools{right:9px;bottom:69px;gap:4px}.preview-panel-tools .preview-pill{height:29px;padding:0 7px}}
@media(max-width:480px){.preview-panel-tools{bottom:110px}}
/* Native dropdowns need their own opaque option surface on Windows. */
.bottom-dock select{color-scheme:dark;background-color:#14231b;color:#f2fff8;border-color:#83ad955c}
.bottom-dock select option,.bottom-dock select optgroup{background-color:#14231b;color:#f2fff8}
.bottom-dock select option:checked{background-color:#286344;color:#fff}
.bottom-dock select:focus-visible{outline:2px solid #8bffbd;outline-offset:2px}
