:root{--surface:#ffffff;--surface2:#f1f5fa;--accent:#5865f2;--ink:#18243a;--muted:#6c7c94;--line:#e3e9f2;--paper:#f4f6fc;--shadow:0 10px 32px #18325707;--blue:#5865f2;--radius:18px}
body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;line-height:1.5;background:radial-gradient(ellipse at 80% 0,#e7eaff75,transparent 45%),var(--paper)}
h1,h2,h3,.brand b{font-family:inherit;letter-spacing:-.035em}.content{max-width:1800px;margin:auto}.topbar{background:color-mix(in srgb,var(--surface) 88%,transparent)}.sidebar{background:linear-gradient(170deg,#151e36,#101827 75%)}.brand-mark{background:linear-gradient(135deg,#8a7bff,#5364ec)}
.panel,.kpi-card,.is-panel,.is-audit>div,.is-catalog,.loading-card{background:var(--surface);border-color:var(--line);box-shadow:var(--shadow);border-radius:18px}.is-header h1{font-size:34px}.is-panel{padding:24px}.is-work{gap:20px}.is-audit b{font-variant-numeric:tabular-nums}.is-audit>div{border-top:3px solid color-mix(in srgb,var(--accent) 60%,transparent)}.market-switch{display:flex;gap:6px;margin:14px 0;background:var(--surface2);padding:5px;border:1px solid var(--line);border-radius:13px;width:fit-content}.market-switch button{padding:9px 18px;border:0;background:transparent;color:var(--muted);font:600 13px inherit;border-radius:9px;cursor:pointer}.market-switch button small{margin-left:9px;font-size:10px;opacity:.7}.market-switch .selected{background:var(--surface);color:var(--accent);box-shadow:0 2px 8px #101b2c12}.theme-toggle{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:10px;padding:7px 11px;font-size:13px;cursor:pointer}.button,.icon-button,input,select,textarea{transition:border-color .15s,box-shadow .15s}.button:hover,.theme-toggle:hover{border-color:var(--accent)}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.is-card.selected{border-color:var(--accent);background:var(--blueLight)}.is-card:hover{transform:translateX(2px)}.is-table td,.data-table td{font-variant-numeric:tabular-nums}.is-svg svg text,.is-donut svg text{fill:var(--muted)}.is-svg svg line{stroke:var(--line)}
[data-theme=dark]{--surface:#182236;--surface2:#111c2e;--paper:#0d1423;--ink:#e6edf9;--muted:#a0afc5;--line:#2b3851;--white:#182236;--blue:#8993ff;--accent:#a0a8ff;--blueLight:#273256;--greenLight:#163d37;--shadow:0 10px 32px #00000018;color-scheme:dark}
[data-theme=dark] body{background:radial-gradient(ellipse at 80% 0,#242b4b55,transparent 45%),var(--paper)}[data-theme=dark] .sidebar{border-right:1px solid var(--line)}
[data-theme=dark] :is(.panel,.kpi-card,.is-panel,.is-audit>div,.is-catalog,.loading-card,dialog,.topbar,.icon-button,.button.secondary,.theme-toggle){background-color:var(--surface);color:var(--ink);border-color:var(--line)}
[data-theme=dark] :is(input,select,textarea,.text-input,.select-input,.is-fields input,.is-fields select,.is-save input,.is-save select,.is-catalog-head input,.is-catalog-head select,#isChartMetric){background:var(--surface2);color:var(--ink);border-color:var(--line)}
[data-theme=dark] :is(.is-card,.is-catalog-head,.is-title,.is-save,.is-metrics,.is-method dl,.is-table td,.is-table th,td,th,.tabs,.dialog-head){border-color:var(--line)}[data-theme=dark] :is(.is-card,.is-metrics,.is-settings){background:var(--surface);color:var(--ink)}[data-theme=dark] :is(.is-card.selected,.is-card:hover,.tab-button.active,.pill.blue){background:#293759;color:#c1c8ff}[data-theme=dark] :is(th,thead,.is-table th,.is-periods span,.pill){background:#202d43;color:#b4c2d8}[data-theme=dark] :is(.muted,.is-note,.is-header p,.is-audit span,.is-title small,.is-card span,.is-card small,.is-fields label,.is-method dd,.is-catalog-head,.footer,.crumb,.topbar-right){color:var(--muted)}[data-theme=dark] :is(.is-card strong,.is-table td,.is-title h2,.is-title h3,.kpi-value,.panel h2,.panel h3){color:var(--ink)}[data-theme=dark] .is-badge{background:#293559;color:#b8c1ff}[data-theme=dark] .is-status.ready{background:#163f35;color:#83e7bf}[data-theme=dark] :is(.is-status.blocked,.is-blocked,.notice){background:#3c3021;color:#f0cf93;border-color:#645033}[data-theme=dark] .notice.info{background:#202e4c;color:#b4cafa;border-color:#354b78}[data-theme=dark] .notice.error{background:#402533;color:#ffb1bf;border-color:#64384d}[data-theme=dark] .primary{background:#6b72ef;color:white;border-color:#6b72ef}[data-theme=dark] .is-legend b{color:var(--ink)}[data-theme=dark] tr:hover td{background:#233048}
@media(max-width:700px){.theme-toggle span{display:none}.theme-toggle{padding:6px 9px}.is-panel{padding:16px}.is-header h1{font-size:28px}.market-switch button{padding:8px 12px}.market-switch button small{display:none}.topbar{padding:0 14px}}
