body>header{gap:12px}.header-button{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid #344353;background:#151c24;color:#d7e2ed;padding:6px 10px;border-radius:5px;font:12px Arial;cursor:pointer;white-space:nowrap}.header-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6}#settings-button{font-size:20px;padding:3px 9px}#notification-count{position:absolute;right:-5px;top:-6px;background:#ee5866;color:white;border-radius:10px;padding:2px 4px;font-size:9px}#account-save-status{font-size:10px;color:#8698aa;white-space:nowrap}.controls{flex-wrap:wrap}.controls select{min-width:0}
.radar-dialog{width:min(460px,calc(100vw - 30px));max-height:85vh;overflow:auto;background:#121922;color:#e5edf5;border:1px solid #405062;border-radius:12px;padding:22px;box-shadow:0 24px 100px #0009;font:13px Arial}.radar-dialog::backdrop{background:#03060bc9}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:12px}.dialog-heading h2{margin:0;font-size:18px}.radar-dialog button,.radar-dialog select{border:1px solid #3b4b60;background:#1d2a38;color:#e1eaf3;border-radius:5px;padding:8px 12px;cursor:pointer;font:12px Arial}.radar-dialog button:hover{border-color:#a193ff}.radar-dialog button:disabled{opacity:.5;cursor:wait}.dialog-heading button{font-size:21px;padding:1px 8px}.radar-dialog label{display:flex;flex-direction:column;gap:8px;margin:16px 0;color:#b3c1cf}.radar-dialog input,.radar-dialog select{width:100%;min-width:0}.radar-dialog input[type=range]{padding:0;accent-color:#a193ff}.dialog-note{color:#899aad;font:11px/1.6 Arial}.dialog-actions{display:flex;gap:8px;flex-wrap:wrap}.dialog-error{color:#ff8091;line-height:1.5}.radar-dialog [hidden]{display:none!important}.radar-dialog [role=tab]{border-color:#a193ff;background:#2d2948}.radar-dialog ul{list-style:none;padding:0;margin:10px 0}.radar-dialog li{padding:12px 10px;border-bottom:1px solid #2b3948;line-height:1.5}.radar-dialog li small{display:block;color:#8496aa;font-size:10px;margin-top:4px}.radar-dialog li.unread{background:#29253f;border-left:3px solid #a193ff}.notifications-dialog{width:min(560px,calc(100vw - 30px))}#active-alerts li{display:flex;justify-content:space-between;align-items:center;gap:12px}#active-alerts button{font-size:10px;padding:4px 7px}#alert-toast{position:fixed;right:20px;top:64px;max-width:400px;padding:15px 20px;background:#302747;border:1px solid #ad92ef;border-radius:8px;color:#f6efff;z-index:20;font:13px/1.5 Arial;box-shadow:0 10px 35px #0009}#alert-toast[hidden]{display:none}
@media(max-width:850px){body>header{flex-wrap:wrap;height:auto;min-height:52px;padding:10px;gap:8px}body>header .status,#account-save-status{display:none}.header-button{font-size:11px;padding:5px 8px}body>header .brand{font-size:13px;margin-right:auto}.controls input{flex:1;min-width:120px}.controls select,.controls button{padding:8px;font-size:11px}}
.panel-chart.alert-ready{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M6 10a6 6 0 0 1 12 0v6l2 3H4l2-3zm4 12h4' fill='%23151b22' stroke='%23ffcf62' stroke-width='1.7'/%3E%3Ccircle cx='12' cy='23' r='1.6' fill='%23ffcf62'/%3E%3C/svg%3E") 12 23,crosshair}
.panel-chart.alert-saving{cursor:progress}.chart-toolbar #chart-alert-tool[aria-pressed="true"]{background:#55421c;border-color:#ffcf62;color:#ffdf94}.chart-toolbar #chart-alert-tool{font-size:14px}.chart-toolbar #chart-alert-tool:disabled{opacity:.6;cursor:progress}
body>header .brand{text-transform:none;white-space:nowrap}.app-tabs{display:flex;align-items:center;gap:4px}.app-tabs button{background:transparent;color:#8f9bab;border:1px solid transparent;border-radius:5px;padding:7px 11px;font:12px Arial;cursor:pointer}.app-tabs button[aria-selected="true"]{background:#242039;border-color:#655594;color:#ded5ff}.app-tabs button:hover{color:#fff}.app-tabs button:focus-visible{outline:2px solid #a193ff;outline-offset:2px}#screener-panel[hidden],#radar-panel[hidden]{display:none!important}#radar-panel{height:calc(100vh - 52px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:#0b0e11;color:#c7d1dc}#radar-panel h1{font:500 26px Arial;margin:0}#radar-panel p{font:13px Arial;color:#8593a2;margin:0}
.chart-toolbar .chart-tool-icon,.chart-toolbar .ruler-toggle{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:28px;height:26px;padding:4px;background:#171d24;border:1px solid #424b54;border-radius:4px;color:#bbc5cd;cursor:pointer}.chart-toolbar .chart-tool-icon svg,.chart-toolbar .ruler-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.chart-toolbar .chart-tool-icon:hover,.chart-toolbar .ruler-toggle:hover{background:#26313c;color:#e5edf5}.chart-toolbar .chart-tool-icon[aria-pressed="true"],.chart-toolbar .ruler-toggle.active{background:#293e51;color:#82c9ff;border-color:#609bc4}.chart-toolbar .chart-tool-icon:focus-visible,.chart-toolbar .ruler-toggle:focus-visible{outline:2px solid #82c9ff;outline-offset:2px}
.chart-extra-tools{display:inline-flex;gap:4px;align-items:center}#line-tool[aria-pressed="true"]{border-color:#58baff;color:#58baff;background:#18364b}#chart-settings-dialog input[type=color]{height:36px;padding:3px;cursor:pointer}.chart-toolbar{flex-wrap:wrap}
#book-details header{cursor:grab;user-select:none;touch-action:none}#book-details header.dragging{cursor:grabbing}#book-details header button{cursor:pointer}
.panel-chart.book-hover{cursor:pointer}#book-details .book-help{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;padding:0;margin-left:6px;border:1px solid #8e849d;border-radius:50%;font:10px Arial;color:#ccc;background:transparent}#book-details .book-help:hover,#book-details .book-help:focus-visible{color:#fff;border-color:#d5a6f3}#book-living-help{border-left:2px solid #aa75d0;padding-left:8px}#book-living-help[hidden]{display:none}
.book-status{position:absolute;bottom:24px;right:58px;z-index:3;background:#15131d;color:#c181f0;border:1px solid #473354;border-radius:3px;padding:3px 5px;font:9px Arial;cursor:pointer}#book-details{position:fixed;right:20px;top:125px;width:min(320px,calc(100vw - 30px));max-height:75vh;overflow:auto;z-index:50;background:#14141d;border:1px solid #6e438c;box-shadow:0 12px 40px #0009;border-radius:6px;padding:12px;font:11px Arial;color:#aaa}#book-details header{display:flex;align-items:center;justify-content:space-between;color:#e3d4ef;font-size:12px;margin-bottom:8px}#book-details button{background:#211b29;color:#d7b3ed;border:1px solid #513361;border-radius:3px;cursor:pointer;padding:4px 8px}.book-detail-row{display:flex;justify-content:space-between;gap:8px;padding:9px 0;border-bottom:1px solid #30303a}.book-detail-row strong{color:#e3e3e8}.book-detail-row .book-gold{color:#ffc400}.book-detail-row .book-green{color:#28c996}.book-detail-row .book-blue{color:#609bff}#book-details p{font-size:10px;line-height:1.5;color:#9793a1}.book-level-list{display:flex;flex-wrap:wrap;gap:4px}.book-level-list button{font-size:10px}
.panel-chart.alert-hover,.panel-chart.alert-dragging{cursor:ns-resize}.market-alert-badge{color:#ffcf62;font-size:10px;white-space:nowrap}#alerts-only-filter{font-size:10px;padding:4px 6px;white-space:nowrap}#alerts-only-filter[aria-pressed="true"]{background:#55421c;border-color:#ffcf62;color:#ffdf94}.table-head{flex-wrap:wrap;gap:6px}#alert-distance-order{font:10px Arial;padding:4px;max-width:150px;background:#121922;color:#ffcf62;border:1px solid #405062;border-radius:4px}
.table-card .table-head{padding:5px 8px;min-height:32px;gap:5px;flex-wrap:nowrap;flex-shrink:0;font-size:9px;letter-spacing:.3px}
.table-card .table-head #shown{font-size:9px;white-space:nowrap;letter-spacing:0}
.table-card #alerts-only-filter,.table-card #toggle-market-filters,.table-card #alert-distance-order{height:22px;padding:2px 5px;font:9px Arial;border:1px solid #344353;border-radius:4px;background:#19222b;color:#a8b5c3;min-width:0}
.table-card #alert-distance-order{max-width:112px;color:#ffcf62}
.table-card #alerts-only-filter[aria-pressed="true"]{background:#55421c;border-color:#ffcf62;color:#ffdf94}
.table-card #toggle-market-filters[aria-pressed="true"]{background:#292442;border-color:#8e7eff;color:#ded7ff}
.chart-panel footer{height:14px;min-height:14px;flex:0 0 14px;padding:1px 6px;align-items:center;line-height:11px}
.panel-chart .book-status{padding:1px 4px;font-size:8px;line-height:11px}
.table-card .market-filters{max-height:45vh;overflow-y:auto;flex-shrink:0}
.table-card th[data-sort="trades"],.table-card td.trades{font-size:9px;padding-left:4px;padding-right:4px}
.table-card table{table-layout:fixed}
.table-card th,.table-card td{padding-left:4px;padding-right:4px;font-size:10px;overflow:hidden;text-overflow:ellipsis}
.table-card th{font-size:8px;letter-spacing:0}
.table-card th:first-child{width:25%}
.table-card th:nth-child(2){width:19%}
.table-card th:nth-child(3){width:14%}
.table-card th:nth-child(4){width:14%}
.table-card th:nth-child(6){width:13%}
.table-card th:nth-child(7){width:15%}
.table-card th:last-child,.table-card td:last-child:not(.loading){display:none}
.table-card .contract small{overflow:hidden;text-overflow:ellipsis;font-size:8px}
#market-columns-dialog{width:320px;max-width:90vw}
#market-columns-dialog p{font:12px/1.5 Arial;color:#93a3b4}
#market-columns-dialog .column-choices{display:grid;gap:5px;margin:14px 0}
#market-columns-dialog .column-choices label{display:flex;align-items:center;gap:10px;margin:0;padding:7px;font-size:12px;cursor:pointer}
#market-columns-dialog .column-choices input{width:15px;height:15px;margin:0;accent-color:#8e7eff}
.alert-filter-controls{display:flex;align-items:center;gap:6px;margin-bottom:10px}
.column-filter-options{font:11px Arial;color:#a4afbc;margin-bottom:12px}
.column-filter-options summary{cursor:pointer;padding:4px 0}
#market-column-options{display:flex;flex-wrap:wrap;gap:8px 12px;padding:8px 0}
#market-column-options label{display:flex;align-items:center;gap:5px;cursor:pointer}
#market-column-options input{margin:0;accent-color:#8e7eff}
