:root{--text:#6b6375;--text-h:#08060d;--bg:#fff;--border:#e5e4e7;--code-bg:#f4f3ec;--accent:#aa3bff;--accent-bg:#aa3bff1a;--accent-border:#aa3bff80;--social-bg:#f4f3ec80;--shadow:#0000001a 0 10px 15px -3px, #0000000d 0 4px 6px -2px;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--heading:system-ui, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, Consolas, monospace;font:18px/145% var(--sans);letter-spacing:.18px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}@media (width<=1024px){:root{font-size:16px}}@media (prefers-color-scheme:dark){:root{--text:#9ca3af;--text-h:#f3f4f6;--bg:#16171d;--border:#2e303a;--code-bg:#1f2028;--accent:#c084fc;--accent-bg:#c084fc26;--accent-border:#c084fc80;--social-bg:#2f303a80;--shadow:#0006 0 10px 15px -3px, #00000040 0 4px 6px -2px}}#root{box-sizing:border-box;flex-direction:column;min-height:100svh;display:flex}body{margin:0;overflow-x:hidden}*{box-sizing:border-box}img,svg{max-width:100%}h1,h2{font-family:var(--heading);color:var(--text-h);font-weight:500}h1{letter-spacing:-1.68px;margin:32px 0;font-size:56px}@media (width<=1024px){h1{margin:20px 0;font-size:36px}}h2{letter-spacing:-.24px;margin:0 0 8px;font-size:24px;line-height:118%}@media (width<=1024px){h2{font-size:20px}}p{margin:0}code,.counter{font-family:var(--mono);color:var(--text-h);border-radius:4px;display:inline-flex}code{background:var(--code-bg);padding:4px 8px;font-size:15px;line-height:135%}:root{--bp-tablet:768px;--bp-desktop:1024px;--bp-large-desktop:1440px;--touch-target:44px}.app-layout{flex-direction:column;width:100%;min-height:100svh;display:flex}.app-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:8px 12px;display:flex}@media (width>=768px){.app-header{padding:12px 20px}}.app-header__left{align-items:center;gap:8px;min-width:0;display:flex}.app-header__nav-toggle{width:var(--touch-target);height:var(--touch-target);border:1px solid var(--border);background:var(--bg);cursor:pointer;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:inline-flex}@media (width>=1024px){.app-header__nav-toggle{display:none}}.app-header__nav-toggle-glyph,.app-header__nav-toggle-glyph:before,.app-header__nav-toggle-glyph:after{background:var(--text-h);border-radius:1px;width:18px;height:2px;transition:transform .15s,opacity .15s;display:block}.app-header__nav-toggle-glyph{position:relative}.app-header__nav-toggle-glyph:before,.app-header__nav-toggle-glyph:after{content:"";position:absolute;left:0}.app-header__nav-toggle-glyph:before{top:-6px}.app-header__nav-toggle-glyph:after{top:6px}.app-header__nav-toggle-glyph--open{background:0 0}.app-header__nav-toggle-glyph--open:before{top:0;transform:rotate(45deg)}.app-header__nav-toggle-glyph--open:after{top:0;transform:rotate(-45deg)}.app-header__title{color:var(--text-h);white-space:nowrap;text-overflow:ellipsis;min-width:0;font-weight:600;overflow:hidden}.app-header__right{align-items:center;gap:8px;min-width:0;display:flex}@media (width>=768px){.app-header__right{gap:12px}}.app-header__user{text-overflow:ellipsis;white-space:nowrap;max-width:30vw;overflow:hidden}@media (width<=479px){.app-header__role{display:none}}.app-header__role{color:var(--text);font-weight:400}.app-header__signout-btn{min-height:var(--touch-target);border:1px solid var(--border);background:var(--bg);color:var(--text-h);cursor:pointer;border-radius:6px;flex-shrink:0;padding:6px 14px}.app-header__signout-btn:disabled{opacity:.6;cursor:not-allowed}.connection-badge{border:1px solid var(--border);white-space:nowrap;border-radius:999px;padding:2px 10px;font-size:13px}.connection-badge--connected{color:#16a34a;border-color:#16a34a}.connection-badge--reconnecting,.connection-badge--connecting{color:#d97706;border-color:#d97706}.connection-badge--disconnected{color:var(--text)}.app-layout__body{flex:1;min-height:0;display:flex}.sidebar-backdrop{z-index:40;opacity:0;cursor:default;background:#00000073;border:none;margin:0;padding:0;transition:opacity .2s;display:none;position:fixed;inset:0}.sidebar-backdrop--visible{opacity:1;display:block}@media (width>=1024px){.sidebar-backdrop{display:none!important}}.sidebar{z-index:50;background:var(--bg);border-right:1px solid var(--border);flex-shrink:0;width:min(80vw,280px);height:100dvh;padding:16px 0;transition:transform .2s;position:fixed;top:0;left:0;overflow-y:auto;transform:translate(-100%);box-shadow:4px 0 16px -4px #00000040}.sidebar--open{transform:translate(0)}@media (width>=1024px){.sidebar{z-index:auto;width:200px;height:auto;box-shadow:none;position:static;transform:none}}.sidebar ul{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.sidebar a{min-height:var(--touch-target);color:var(--text);align-items:center;padding:10px 20px;text-decoration:none;display:flex}.sidebar a.active{color:var(--text-h);background:var(--accent-bg);font-weight:600}.app-layout__content{text-align:left;flex:1;min-width:0;padding:16px}@media (width>=768px){.app-layout__content{padding:24px}}@media (width>=1440px){.app-layout__content{padding:32px 40px}}.auth-layout{flex:1;justify-content:center;align-items:center;min-height:100svh;padding:16px;display:flex}.login-form{flex-direction:column;gap:16px;width:100%;max-width:320px;display:flex}.login-form__field{color:var(--text);flex-direction:column;gap:4px;font-size:14px;display:flex}.login-form__field input{width:100%;min-height:var(--touch-target);border:1px solid var(--border);font:inherit;background:var(--bg);color:var(--text-h);border-radius:6px;padding:8px 12px;font-size:16px}.login-form__error{color:#dc2626;font-size:14px}.login-form button[type=submit]{min-height:var(--touch-target);background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:6px;padding:10px;font-size:16px;font-weight:600}.login-form button[type=submit]:disabled{opacity:.6;cursor:not-allowed}.placeholder-page,.not-found-page{text-align:left;color:var(--text)}.error-boundary{border:1px solid var(--accent-border);text-align:left;border-radius:8px;padding:16px}.error-boundary button{min-height:var(--touch-target);padding:8px 16px}.loading-spinner{color:var(--text);align-items:center;gap:8px;display:inline-flex}.loading-spinner__glyph{border:2px solid var(--border);border-top-color:var(--accent);border-radius:50%;width:14px;height:14px;animation:.8s linear infinite loading-spin}@keyframes loading-spin{to{transform:rotate(360deg)}}.overview-page{flex-direction:column;gap:20px;display:flex}.overview-page__header{flex-wrap:wrap;align-items:center;gap:8px 12px;display:flex}.overview-page__header h1{margin:0}.summary-panel{border:1px solid var(--border);border-radius:10px;padding:16px 20px}.summary-panel h2{flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 12px;display:flex}.summary-panel__note{color:var(--text);margin:12px 0 0;font-size:12px}.stat-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;display:grid}.stat-tile{background:var(--code-bg);border-radius:8px;flex-direction:column;gap:4px;padding:10px 12px;display:flex}.stat-tile__label{color:var(--text);font-size:12px}.stat-tile__value{color:var(--text-h);font-size:20px;font-weight:600}.stat-tile--positive .stat-tile__value{color:#16a34a}.stat-tile--negative .stat-tile__value{color:#dc2626}.stat-tile--warning .stat-tile__value{color:#d97706}.service-health-list{flex-wrap:wrap;gap:8px;display:flex}.service-health-pill{border:1px solid var(--border);border-radius:999px;padding:3px 10px;font-size:12px}.service-health-pill--healthy{color:#16a34a;border-color:#16a34a}.service-health-pill--unhealthy{color:#dc2626;border-color:#dc2626}.service-health-pill--unknown{color:var(--text)}.overall-status{border:1px solid var(--border);border-radius:999px;padding:2px 10px;font-size:12px;font-weight:500}.overall-status--healthy{color:#16a34a;border-color:#16a34a}.overall-status--unhealthy{color:#dc2626;border-color:#dc2626}.overall-status--degraded{color:#d97706;border-color:#d97706}.freshness-badge{border:1px solid var(--border);border-radius:999px;padding:2px 10px;font-size:12px}.freshness-badge--live{color:#16a34a;border-color:#16a34a}.freshness-badge--stale{color:#d97706;border-color:#d97706}.freshness-badge--error{color:#dc2626;border-color:#dc2626}.market-page{flex-direction:column;gap:16px;display:flex}.symbol-tabs{flex-wrap:wrap;gap:8px;display:flex}.symbol-tab{border:1px solid var(--border);min-height:40px;color:var(--text);cursor:pointer;font:inherit;background:0 0;border-radius:999px;padding:8px 16px}.symbol-tab--active{color:var(--text-h);background:var(--accent-bg);border-color:var(--accent-border);font-weight:600}.market-page__not-found{color:var(--text);padding:12px 0}.orders-page{flex-direction:column;gap:16px;display:flex}.orders-filters{flex-wrap:wrap;align-items:flex-end;gap:16px;display:flex}.orders-filters label{color:var(--text);flex-direction:column;flex:140px;gap:4px;font-size:12px;display:flex}.orders-filters input,.orders-filters select{min-height:var(--touch-target);border:1px solid var(--border);width:100%;font:inherit;background:var(--bg);color:var(--text-h);border-radius:6px;padding:8px 10px}.orders-filters button{min-height:var(--touch-target);border:1px solid var(--border);color:var(--text);cursor:pointer;font:inherit;background:0 0;border-radius:6px;padding:7px 14px}.orders-page__count{color:var(--text);margin:0;font-size:13px}.orders-table-wrap{border:1px solid var(--border);border-radius:10px;overflow-x:auto}.orders-table{border-collapse:collapse;white-space:nowrap;width:100%;font-size:13px}.orders-table th,.orders-table td{text-align:left;border-bottom:1px solid var(--border);padding:8px 12px}.orders-table th{color:var(--text);background:var(--code-bg);font-weight:500}.orders-table tbody tr:last-child td{border-bottom:none}.orders-table__empty{color:var(--text);padding:16px}.order-detail__meta,.order-detail__timeline,.order-detail__disclosed-gaps,.order-detail__actions{border:1px solid var(--border);border-radius:10px;margin-top:16px;padding:16px}.order-detail__cancel-btn{min-height:var(--touch-target);color:#fff;cursor:pointer;background:#dc2626;border:none;border-radius:6px;padding:10px 18px;font-weight:600}.order-detail__cancel-btn:disabled{opacity:.5;cursor:not-allowed}.order-detail__cancel-confirm{flex-direction:column;gap:12px;display:flex}.order-detail__cancel-confirm-actions{flex-direction:column;gap:8px;display:flex}@media (width>=480px){.order-detail__cancel-confirm-actions{flex-direction:row}}.order-detail__cancel-confirm-actions button{min-height:var(--touch-target)}.order-detail__grid{grid-template-columns:max-content 1fr;gap:4px 16px;margin:8px 0 0;display:grid}.order-detail__grid dt{color:var(--text);opacity:.7}.order-detail__grid dd{overflow-wrap:break-word;margin:0}.order-timeline{flex-direction:column;gap:8px;margin:8px 0 0;padding:0;list-style:none;display:flex}.order-timeline__step{border-left:3px solid var(--border);flex-wrap:wrap;align-items:baseline;gap:4px 12px;padding:6px 10px;font-size:13px;display:flex}.order-timeline__label{font-weight:500}@media (width>=480px){.order-timeline__label{min-width:220px}}.order-timeline__timestamp{color:var(--text);opacity:.7}.order-timeline__detail{color:var(--text);opacity:.7;font-size:12px}.order-timeline__step--done{border-left-color:#16a34a}.order-timeline__step--pending{border-left-color:var(--border);opacity:.6}.order-timeline__step--rejected,.order-timeline__step--cancelled{border-left-color:#dc2626}.order-timeline__step--skipped{border-left-color:var(--border);opacity:.4;text-decoration:line-through}.order-detail__note{color:var(--text);opacity:.7;margin:4px 0;font-size:12px}.order-detail__cancel-error{color:#dc2626;margin-top:8px;font-size:13px}.positions-page{flex-direction:column;gap:16px;display:flex}.positions-tabs{flex-wrap:wrap;gap:8px;display:flex}.positions-tab{border:1px solid var(--border);min-height:40px;color:var(--text);cursor:pointer;font:inherit;background:0 0;border-radius:999px;padding:8px 16px}.positions-tab--active{color:var(--text-h);background:var(--accent-bg);border-color:var(--accent-border);font-weight:600}.positions-filters{flex-wrap:wrap;align-items:end;gap:12px;display:flex}.positions-filters label{color:var(--text);flex-direction:column;flex:140px;gap:4px;font-size:12px;display:flex}.positions-filters input,.positions-filters select{min-height:var(--touch-target);border:1px solid var(--border);background:var(--bg);width:100%;color:var(--text-h);font:inherit;border-radius:6px;padding:8px 10px}.positions-table-wrap{border:1px solid var(--border);border-radius:10px;overflow-x:auto}.positions-table{border-collapse:collapse;white-space:nowrap;width:100%;font-size:13px}.positions-table th,.positions-table td{text-align:left;border-bottom:1px solid var(--border);padding:8px 12px}.positions-table th{color:var(--text);background:var(--code-bg);font-weight:500}.positions-table tbody tr:last-child td{border-bottom:none}.positions-table__empty{color:var(--text);padding:16px}.positions-table__sort-btn{color:inherit;font:inherit;cursor:pointer;background:0 0;border:none;padding:0;font-weight:500}.positions-table__pnl-positive{color:#16a34a}.positions-table__pnl-negative{color:#dc2626}.portfolio-page{flex-direction:column;gap:16px;display:flex}.portfolio-page__disclosed-gap{color:var(--text);opacity:.75;margin:8px 0 0;font-size:13px;line-height:1.5}.portfolio-page__charts{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;margin-top:8px;display:grid}.portfolio-page__chart h3{color:var(--text-h);margin:0 0 4px;font-size:14px;font-weight:600}.portfolio-page__chart-note{color:var(--text);opacity:.75;margin:0 0 4px;font-size:12px}.line-chart{width:100%;height:auto}.line-chart__empty{color:var(--text);opacity:.75;font-size:13px}.line-chart__axis-label{fill:var(--text);opacity:.7;font-size:10px}.risk-page{flex-direction:column;gap:16px;display:flex}.risk-page__engine-status{border:1px solid var(--border);border-radius:10px;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:16px;display:flex}.risk-page__engine-status-label{color:var(--text);font-weight:500}.risk-page__engine-status-value{font-size:18px;font-weight:600}.risk-page__engine-status-value--unhealthy{color:#dc2626}.risk-page__engine-status-value--unknown{color:#d97706}.risk-page__engine-status-value--healthy{color:#16a34a}.risk-page__subheading{margin:16px 0 8px;font-size:14px;font-weight:600}.kill-switch-page{flex-direction:column;gap:16px;display:flex}.kill-switch-state{border:2px solid var(--border);border-radius:10px;flex-direction:column;gap:12px;padding:20px;display:flex}.kill-switch-state__label{font-size:28px;font-weight:700}.kill-switch-state--enabled{border-color:#16a34a}.kill-switch-state--enabled .kill-switch-state__label{color:#16a34a}.kill-switch-state--disabled{border-color:#dc2626}.kill-switch-state--disabled .kill-switch-state__label{color:#dc2626}.kill-switch-state--unknown{border-color:#d97706}.kill-switch-state--unknown .kill-switch-state__label{color:#d97706}.kill-switch-state__meta{grid-template-columns:max-content 1fr;gap:4px 16px;margin:0;font-size:13px;display:grid}.kill-switch-state__meta dt{color:var(--text);opacity:.7}.kill-switch-state__meta dd{margin:0}.kill-switch-page__readonly-note{color:var(--text);opacity:.75;font-size:13px}.kill-switch-page__actions{flex-direction:column;gap:12px;display:flex}@media (width>=480px){.kill-switch-page__actions{flex-direction:row}}.kill-switch-page__activate-btn{min-height:var(--touch-target);color:#fff;cursor:pointer;background:#dc2626;border:none;border-radius:6px;padding:10px 18px;font-weight:600}.kill-switch-page__activate-btn:disabled{opacity:.5;cursor:not-allowed}.kill-switch-page__deactivate-btn{min-height:var(--touch-target);color:#fff;cursor:pointer;background:#16a34a;border:none;border-radius:6px;padding:10px 18px;font-weight:600}.kill-switch-page__deactivate-btn:disabled{opacity:.5;cursor:not-allowed}.kill-switch-page__confirm{border:1px solid var(--border);border-radius:10px;flex-direction:column;gap:12px;padding:16px;display:flex}.kill-switch-page__reason-label{flex-direction:column;gap:4px;font-size:13px;display:flex}.kill-switch-page__reason-label input{min-height:var(--touch-target);border:1px solid var(--border);background:var(--bg);color:var(--text-h);font:inherit;border-radius:6px;padding:8px 12px;font-size:16px}.kill-switch-page__confirm-actions{flex-direction:column;gap:8px;display:flex}@media (width>=480px){.kill-switch-page__confirm-actions{flex-direction:row}}.kill-switch-page__confirm-actions button{min-height:var(--touch-target)}.kill-switch-page__error{color:#dc2626;font-size:13px}.kill-switch-page__accepted-note{color:var(--text);opacity:.75;font-size:13px}.system-health-page{flex-direction:column;gap:16px;display:flex}.system-health-page__overall{border:1px solid var(--border);border-radius:10px;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:12px 16px;font-weight:500;display:flex}.system-health-page__details{flex-direction:column;gap:4px;display:flex}.error-message__trace{color:var(--text);opacity:.6;margin:-8px 0 0;font-size:11px}
