:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #09111f; color: #e8edf7; }
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; background: radial-gradient(circle at 85% 0%, rgba(50, 101, 192, .22), transparent 28rem), #09111f; }
main { width: min(1540px, 100%); margin: 0 auto; padding: 42px 24px 72px; }
.page-header, .panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.page-header { margin-bottom: 24px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.055em; }
h2 { margin-bottom: 7px; font-size: 20px; letter-spacing: -.025em; }
p, small { color: #9daec8; }
.eyebrow { margin-bottom: 7px; color: #73a7ff; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.education-badge { padding: 9px 12px; border: 1px solid #725022; border-radius: 999px; background: #241b0d; color: #f9c675; font-size: 12px; font-weight: 700; white-space: nowrap; }
.panel { margin-top: 20px; padding: 24px; border: 1px solid #1d2b42; border-radius: 18px; background: rgba(14, 25, 45, .92); box-shadow: 0 18px 48px rgba(0, 0, 0, .22); }
.panel-heading label { width: min(180px, 100%); margin: 0; }
.tradingview-chart { height: 620px; margin-top: 20px; overflow: hidden; border: 1px solid #213450; border-radius: 12px; background: #101c31; }
label { display: block; color: #c7d4e9; font-size: 13px; font-weight: 700; }
label small { display: block; margin: 5px 0 0; font-weight: 500; }
input, select { width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid #2a3c5b; border-radius: 9px; background: #0b1729; color: #eff4ff; font: inherit; }
input:focus, select:focus { border-color: #5790ed; outline: 3px solid rgba(87, 144, 237, .2); }
.analyse-panel { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(420px, 1.3fr); gap: 34px; align-items: center; }
.form-grid { display: grid; grid-template-columns: minmax(180px, .6fr) minmax(280px, 1.4fr); gap: 14px; align-items: end; }
.feed-note { min-height: 55px; padding: 12px 14px; border: 1px solid #26436a; border-radius: 9px; background: #0b1729; }
.feed-note strong, .feed-note span { display: block; }
.feed-note strong { color: #b9d4ff; font-size: 13px; }
.feed-note span { margin-top: 4px; color: #9daec8; font-size: 12px; line-height: 1.35; }
button { margin-top: 18px; padding: 12px 16px; border: 0; border-radius: 9px; background: linear-gradient(135deg, #397ee8, #5a9bff); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
button:hover { filter: brightness(1.1); }
button:disabled { cursor: wait; opacity: .65; }
.flash { margin: 0 0 20px; padding: 14px 16px; border-radius: 11px; }
.flash.success { border: 1px solid #256f51; background: #103b2c; color: #a7f2cf; }
.flash.error { border: 1px solid #80434a; background: #411d25; color: #ffbec4; }
.latest-analysis { border-color: #2c5ca5; }
.close-link, a { color: #82b2ff; text-decoration: none; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.metric-grid > div { min-height: 90px; padding: 15px; border: 1px solid #233653; border-radius: 11px; background: #0b1729; }
.metric-grid span, .meta { color: #93a4bd; font-size: 12px; }
.metric-grid strong { display: block; margin-top: 8px; color: #f5f8ff; font-size: 16px; overflow-wrap: anywhere; }
.analysis-copy { max-width: 1000px; line-height: 1.7; color: #d8e1ef; }
.meta { margin-bottom: 0; }
.table-controls { display: flex; align-items: center; gap: 13px; margin: 20px 0 12px; }
.table-controls label { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.table-controls select { width: auto; margin: 0; padding: 7px 30px 7px 9px; }
.table-controls input { width: min(260px, 30vw); margin: 0; padding: 8px 10px; }
.table-controls .search-label { margin-left: auto; }
.table-summary { margin-right: auto; color: #9daec8; font-size: 13px; white-space: nowrap; }
.pagination { display: flex; align-items: center; gap: 5px; }
.pagination button { min-width: 32px; height: 32px; margin: 0; padding: 4px 8px; border: 1px solid #2b4264; border-radius: 8px; background: #14233b; color: #c8d7ee; font-size: 13px; }
.pagination button.active { border-color: #5590ef; background: #397ee8; color: #fff; }
.pagination button:disabled { opacity: .4; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 1280px; border-collapse: collapse; }
th, td { padding: 13px 10px; border-bottom: 1px solid #1d2d47; color: #d4dfef; font-size: 13px; text-align: left; vertical-align: top; }
th { color: #89a0c1; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; user-select: none; white-space: nowrap; }
th::after { margin-left: 5px; color: #6684af; content: '↕'; }
th[data-order="asc"]::after { color: #8db9ff; content: '↑'; }
th[data-order="desc"]::after { color: #8db9ff; content: '↓'; }
tr:hover td { background: rgba(56, 91, 146, .11); }
.bias { display: inline-block; padding: 4px 8px; border-radius: 99px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.bias.bullish { background: #123f30; color: #83efc0; }
.bias.bearish { background: #4a1f2a; color: #ffadb7; }
.bias.neutral { background: #2d3544; color: #c7d1e1; }
.mode { display: inline-block; padding: 4px 8px; border-radius: 99px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.mode.automatic { background: #173e5d; color: #9bd2ff; }
.mode.manual { background: #2d3544; color: #c7d1e1; }
details { max-width: 360px; color: #b6c5dc; line-height: 1.45; }
summary { color: #82b2ff; cursor: pointer; }
.empty-state, .no-results { padding: 28px; color: #9daec8; font-style: italic; text-align: center; }
@media (max-width: 820px) { main { padding: 25px 15px 50px; } .page-header, .panel-heading, .analyse-panel { display: block; } .education-badge { display: inline-block; margin-top: 12px; } .panel-heading label { margin-top: 16px; } .tradingview-chart { height: 470px; } .analyse-panel { gap: 0; } .analyse-panel form { margin-top: 22px; } .form-grid, .metric-grid { grid-template-columns: 1fr; } .table-controls { align-items: stretch; flex-direction: column; } .table-controls .search-label { margin-left: 0; } .table-controls input { width: 100%; } .table-summary { margin-right: 0; } .pagination { flex-wrap: wrap; } }
