:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #0b0e14; color: #edf1f6; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #0b0e14; }
button, input { font: inherit; }
.hidden { display: none !important; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 0%, #172337 0%, #0b0e14 48%); }
.auth-panel { width: min(100%, 560px); border: 1px solid #263347; background: #111722; padding: 30px; box-shadow: 0 22px 60px rgb(0 0 0 / 28%); }
.brand-row { display: flex; gap: 13px; align-items: center; }
.brand-row h1 { margin: 1px 0 0; font-size: 22px; letter-spacing: 0; font-weight: 720; }
.eyebrow { margin: 0; color: #8493a9; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.brand-mark { width: 34px; height: 34px; display: flex; align-items: end; gap: 3px; padding: 7px; border: 1px solid #396490; background: #11233a; }
.brand-mark span { flex: 1; background: #49a8f7; }
.brand-mark span:nth-child(1) { height: 35%; }.brand-mark span:nth-child(2) { height: 62%; }.brand-mark span:nth-child(3) { height: 100%; }
.system-state { margin-left: auto; display: inline-flex; gap: 7px; align-items: center; color: #9eb0c4; font-size: 10px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.system-state i { width: 7px; height: 7px; border-radius: 50%; background: #43d197; box-shadow: 0 0 0 3px rgb(67 209 151 / 12%); }
.divider { height: 1px; background: #263347; margin: 28px 0; }
.auth-copy h2, .empty-state h2 { margin: 0; font-size: 22px; font-weight: 650; }.auth-copy p, .empty-state p { color: #9daabd; line-height: 1.55; }
form { margin-top: 27px; } label { display: block; color: #b7c3d2; font-size: 12px; font-weight: 650; margin-bottom: 8px; }
.code-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }.code-row input { min-width: 0; background: #0c1119; border: 1px solid #35445b; color: #f4f7fb; height: 44px; padding: 0 13px; border-radius: 4px; font-size: 20px; letter-spacing: .18em; }.code-row input:focus { outline: 2px solid #3e8dd1; outline-offset: 1px; }
.button { height: 44px; border: 0; border-radius: 4px; padding: 0 17px; cursor: pointer; font-size: 13px; font-weight: 700; }.button:disabled { opacity: .55; cursor: progress; }.button.primary { width: 100%; margin-top: 12px; background: #2385d7; color: white; }.button.primary:hover { background: #3195e8; }.button.secondary { background: #26364b; color: #e4ecf4; }.button.secondary:hover { background: #334761; }
.auth-message { min-height: 20px; margin: 12px 0 0; color: #9daabd; font-size: 13px; }.auth-message[data-kind="error"] { color: #ff8c8c; }.auth-message[data-kind="success"] { color: #74dfae; }
footer { margin-top: 28px; padding-top: 16px; border-top: 1px solid #263347; display: flex; gap: 14px; flex-wrap: wrap; color: #6e7d91; font-size: 11px; } footer span::before { content: "•"; color: #3d79ab; margin-right: 6px; }
.dashboard-shell { min-height: 100vh; display: grid; grid-template-columns: 230px minmax(0, 1fr); background: #0b0e14; }
.sidebar { min-height: 100vh; padding: 24px 15px 18px; border-right: 1px solid #263347; background: #0e131b; display: flex; flex-direction: column; }.brand-row.compact { padding: 0 8px; }.brand-row.compact .brand-mark { width: 30px; height: 30px; }.brand-row.compact h1 { font-size: 17px; }.side-nav { margin-top: 42px; display: grid; gap: 4px; }.nav-item { min-height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 10px; color: #92a1b4; text-decoration: none; font-size: 13px; border-left: 2px solid transparent; }.nav-item:hover { color: #e8edf3; background: #151d28; }.nav-item.active { color: #eff7ff; border-left-color: #31b6e6; background: #142432; }.nav-item b { margin-left: auto; color: #78cfec; font-size: 11px; }.nav-glyph { width: 19px; color: #5d7189; font-size: 9px; font-weight: 750; letter-spacing: .04em; }.nav-item.active .nav-glyph { color: #61d5f5; }.sidebar-footer { margin-top: auto; padding: 17px 8px 0; border-top: 1px solid #263347; }.service-line { display: flex; align-items: center; gap: 7px; margin: 10px 0 7px; color: #abb8c7; font-size: 11px; }.service-line i { width: 7px; height: 7px; border-radius: 50%; background: #d69a3b; box-shadow: 0 0 0 3px rgb(214 154 59 / 10%); }.muted-copy { color: #5f6f83; font-size: 10px; }
.workspace { width: min(1440px, 100%); padding: 30px; margin: 0 auto; }.dashboard-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 25px; border-bottom: 1px solid #263347; }.dashboard-header h2 { margin: 4px 0 0; font-size: 24px; font-weight: 680; }.header-actions { display: flex; align-items: center; gap: 18px; }.prototype-badge, .panel-status, .connection { padding: 5px 7px; border: 1px solid #37465a; color: #90a1b4; font-size: 9px; font-weight: 750; letter-spacing: .08em; white-space: nowrap; }.prototype-badge { border-color: #755e36; color: #ddbd7b; background: #211c13; }.text-button { border: 0; color: #b7c3d2; background: transparent; cursor: pointer; font-size: 13px; }.text-button:hover { color: white; }
.control-strip { margin-top: 18px; min-height: 78px; display: flex; align-items: center; gap: 24px; padding: 15px 17px; border: 1px solid #283749; background: #111722; }.mode-block { min-width: 300px; }.section-label { display: block; margin-bottom: 7px; color: #7e8ea3; font-size: 10px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }.mode-switch { display: inline-flex; border: 1px solid #324155; background: #0c1119; }.mode-option { padding: 7px 10px; color: #8b9aac; font-size: 11px; border-right: 1px solid #324155; }.mode-option:last-child { border-right: 0; }.mode-option.selected { color: #e8fbff; background: #155168; }.mode-option.muted { color: #5f6d7e; }.engine-status { display: flex; align-items: center; gap: 9px; padding-left: 21px; border-left: 1px solid #2b384a; }.engine-status > i { width: 9px; height: 9px; border-radius: 50%; background: #d69a3b; box-shadow: 0 0 0 4px rgb(214 154 59 / 10%); }.engine-status .section-label { margin: 0 0 2px; }.engine-status strong { display: block; color: #d3dde8; font-size: 12px; }.emergency-button { margin-left: auto; height: 34px; padding: 0 13px; border: 1px solid #603538; color: #a06a6d; background: #24181a; font-size: 11px; font-weight: 700; cursor: not-allowed; }
.summary-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }.summary-card { position: relative; overflow: hidden; min-height: 130px; padding: 17px; border: 1px solid #293748; background: #111722; }.summary-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--accent); }.summary-card span, .summary-card small { display: block; color: #91a0b2; font-size: 11px; }.summary-card strong { display: block; margin: 19px 0 8px; color: #eff5fa; font-size: 28px; font-weight: 680; }.summary-card em { color: #748397; font-style: normal; font-size: 15px; }.accent-cyan { --accent: #31b6e6; }.accent-green { --accent: #42c58b; }.accent-amber { --accent: #d9a448; }.accent-violet { --accent: #9d8de7; }
.content-grid { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1.43fr) minmax(330px, .9fr); gap: 14px; }.panel { min-width: 0; border: 1px solid #293748; background: #111722; }.panel-heading { min-height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 17px; border-bottom: 1px solid #293748; }.panel-heading h3 { margin: 4px 0 0; font-size: 15px; font-weight: 650; }.panel-status { border-color: #4e4936; color: #cab26f; background: #1d1a12; }.panel-status.safe { border-color: #37604f; color: #79d0a1; background: #142019; }.small-action { border: 1px solid #34465b; background: #172230; color: #6f8297; padding: 6px 9px; font-size: 11px; cursor: not-allowed; }.market-empty { min-height: 178px; display: flex; align-items: center; gap: 24px; padding: 22px 28px; }.market-empty h4, .position-empty h4 { margin: 0 0 7px; font-size: 15px; }.market-empty p, .position-empty p { max-width: 330px; margin: 0; color: #8190a3; line-height: 1.55; font-size: 12px; }.pulse-visual { width: 132px; height: 76px; flex: 0 0 auto; display: flex; align-items: end; gap: 7px; padding: 0 11px; border-bottom: 1px solid #2c4052; }.pulse-visual span { width: 14px; background: #1e6382; }.pulse-visual span:nth-child(1) { height: 21%; }.pulse-visual span:nth-child(2) { height: 47%; }.pulse-visual span:nth-child(3) { height: 34%; background: #267ea5; }.pulse-visual span:nth-child(4) { height: 72%; background: #2aa6d6; }.pulse-visual span:nth-child(5) { height: 100%; background: #58d7ef; }.market-table { border-top: 1px solid #293748; }.table-head, .table-placeholder { display: grid; grid-template-columns: 1.3fr 1fr .7fr 1fr; gap: 12px; padding: 10px 17px; }.table-head { color: #68798d; font-size: 10px; font-weight: 700; text-transform: uppercase; }.table-placeholder { color: #596a7d; border-top: 1px solid #202c3a; font-size: 11px; }
.venues-panel { min-height: 300px; }.venue-list { padding: 5px 17px; }.venue-row { min-height: 75px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid #253243; }.venue-logo { width: 29px; height: 29px; display: grid; place-items: center; color: #e8ecf2; font-size: 13px; font-weight: 750; }.venue-logo.bybit { background: #544221; color: #ffbd5b; }.venue-logo.future { border: 1px dashed #526176; color: #73849a; }.venue-row div { min-width: 0; }.venue-row strong, .venue-row small { display: block; }.venue-row strong { color: #e4ebf2; font-size: 12px; }.venue-row small { margin-top: 4px; color: #75869a; font-size: 10px; }.connection { margin-left: auto; font-size: 8px; }.connection.off { border-color: #573b3d; color: #bd7476; background: #24191b; }.connection.future-state { border-color: #3d4b5a; color: #8291a1; }.venue-foot, .position-footer { display: flex; align-items: center; gap: 9px; padding: 13px 17px; color: #7d8da0; font-size: 11px; border-top: 1px solid #293748; }.venue-foot { justify-content: space-between; }.venue-foot strong, .position-footer strong { color: #dce6ee; font-weight: 650; }
.positions-panel { min-height: 277px; }.position-empty { min-height: 142px; display: flex; align-items: center; gap: 15px; padding: 21px 17px; }.empty-token { width: 50px; height: 50px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #34475b; color: #87a2b9; font-size: 18px; }.position-footer { justify-content: space-between; gap: 10px; flex-wrap: wrap; }.position-footer strong { margin-right: 12px; }
.journal-panel { min-height: 277px; }.event-list { margin: 0; padding: 6px 17px 11px; list-style: none; }.event-list li { display: grid; grid-template-columns: 57px 1fr; gap: 11px; padding: 12px 0; border-bottom: 1px solid #253243; }.event-list li:last-child { border-bottom: 0; }.event-list time { color: #5dc4e0; font-size: 9px; font-weight: 750; letter-spacing: .05em; }.event-list strong, .event-list span { display: block; }.event-list strong { color: #dfe8f1; font-size: 11px; }.event-list span { margin-top: 4px; color: #77889c; font-size: 10px; }.event-list .muted-event time { color: #617285; }.event-list .muted-event strong { color: #a0adbb; }
@media (max-width: 1060px) { .dashboard-shell { grid-template-columns: 1fr; }.sidebar { min-height: auto; padding: 14px 20px; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid #263347; }.side-nav, .sidebar-footer { display: none; }.workspace { padding: 22px; }.summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.content-grid { grid-template-columns: 1fr; }.venues-panel { min-height: auto; } }
@media (max-width: 640px) { .auth-panel { padding: 22px; }.system-state { display: none; }.code-row { grid-template-columns: 1fr; }.button.secondary { width: 100%; }.workspace { padding: 16px; }.dashboard-header { align-items: flex-start; gap: 15px; }.dashboard-header h2 { font-size: 20px; }.prototype-badge { display: none; }.control-strip { align-items: stretch; flex-direction: column; gap: 15px; }.mode-block { min-width: 0; }.mode-switch { display: grid; grid-template-columns: repeat(3, 1fr); }.mode-option { text-align: center; padding-inline: 5px; font-size: 9px; }.engine-status { padding-left: 0; border-left: 0; }.emergency-button { margin-left: 0; }.summary-grid { grid-template-columns: 1fr 1fr; gap: 8px; }.summary-card { min-height: 118px; padding: 13px; }.summary-card strong { font-size: 23px; }.market-empty { padding: 18px; gap: 15px; }.pulse-visual { width: 82px; padding: 0 5px; gap: 4px; }.market-empty p { display: none; }.panel-heading { padding-inline: 13px; }.table-head, .table-placeholder { padding-inline: 13px; grid-template-columns: 1.3fr .8fr .55fr .75fr; gap: 6px; }.position-footer { padding-inline: 13px; }.header-actions { gap: 4px; } }

/* Dashboard prototype v2: one responsive top navigation and calm, separated surfaces. */
.dashboard-shell { display: block; background: #0b0e13; }
.sidebar { position: sticky; top: 0; z-index: 5; min-height: 0; height: 67px; padding: 0 max(22px, calc((100vw - 1440px) / 2 + 30px)); flex-direction: row; align-items: center; gap: 38px; border-right: 0; border-bottom: 1px solid #283342; background: #10161e; }
.brand-row.compact { flex: 0 0 auto; padding: 0; }
.side-nav { margin: 0; display: flex; align-items: stretch; align-self: stretch; gap: 2px; }
.nav-item { min-height: 0; height: 100%; padding: 0 12px; gap: 7px; border-left: 0; border-bottom: 2px solid transparent; }
.nav-item:hover { background: #18212c; }.nav-item.active { border-left: 0; border-bottom-color: #41c5d8; background: transparent; color: #edf7f9; }
.sidebar-footer { display: flex; align-items: center; gap: 10px; margin: 0 0 0 auto; padding: 0; border-top: 0; }.sidebar-footer .eyebrow, .sidebar-footer .muted-copy { display: none; }.service-line { margin: 0; font-size: 10px; }
.workspace { padding: 28px 30px 42px; }.dashboard-header { padding-bottom: 22px; border-bottom: 0; }.dashboard-header h2 { font-size: 25px; }
.control-strip { border-color: #354354; border-radius: 7px; background: #151c25; box-shadow: 0 12px 26px rgb(0 0 0 / 13%); }
.summary-grid { gap: 14px; }.summary-card { min-height: 125px; border-color: #354354; border-radius: 7px; background: #151c25; box-shadow: 0 10px 20px rgb(0 0 0 / 10%); }.summary-card::before { display: none; }.summary-card strong { margin-top: 17px; }.summary-card small { color: #8291a4; }.accent-cyan strong { color: #8bdef1; }.accent-green strong { color: #8bdbb1; }.accent-amber strong { color: #edcd88; }.accent-violet strong { color: #c6bdf0; }
.content-grid { gap: 16px; }.panel { border-color: #354354; border-radius: 7px; background: #151c25; box-shadow: 0 10px 24px rgb(0 0 0 / 10%); overflow: hidden; }.panel-heading { min-height: 66px; padding: 16px 18px 8px; border-bottom: 0; }.panel-heading h3 { font-size: 16px; }.panel-status { border-radius: 4px; }
.market-empty { min-height: 163px; padding: 14px 28px 20px; }.pulse-visual { border-bottom: 0; border-radius: 5px; background: #101720; padding: 10px 12px; height: 80px; }.market-table { margin: 0 16px 16px; border: 0; border-radius: 5px; overflow: hidden; background: #101720; }.table-head { padding: 10px 13px; }.table-placeholder { padding: 12px 13px; border-top-color: #263344; }
.venue-list { padding: 3px 13px 9px; }.venue-row { min-height: 67px; margin-top: 7px; padding: 0 8px; border: 0; border-radius: 5px; background: #101720; }.venue-foot { margin: 0 13px 13px; padding: 12px 4px 0; border-top: 0; }.positions-panel, .journal-panel { min-height: 270px; }.position-empty { min-height: 135px; padding: 14px 18px 20px; }.position-footer { margin: 0 13px 13px; padding: 11px 4px 0; border-top: 0; }.empty-token { border-radius: 5px; background: #101720; }
.event-list { display: grid; gap: 7px; padding: 4px 14px 14px; }.event-list li { grid-template-columns: 57px 1fr; padding: 11px; border: 0; border-radius: 5px; background: #101720; }.event-list .muted-event { background: #121923; }
@media (max-width: 1060px) { .sidebar { height: 62px; padding-inline: 22px; gap: 24px; flex-direction: row; }.side-nav { display: flex; }.sidebar-footer { display: flex; }.workspace { padding: 23px 22px 36px; } }
@media (max-width: 720px) { .sidebar { gap: 14px; padding-inline: 16px; overflow: hidden; }.sidebar .eyebrow { display: none; }.brand-row.compact h1 { font-size: 15px; }.side-nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }.side-nav::-webkit-scrollbar { display: none; }.nav-item { flex: 0 0 auto; padding-inline: 10px; font-size: 12px; }.nav-glyph { display: none; }.sidebar-footer { display: none; }.workspace { padding: 20px 16px 32px; } }
@media (max-width: 640px) { .dashboard-header { padding-bottom: 16px; }.control-strip { border-radius: 6px; }.summary-grid { gap: 10px; }.summary-card, .panel { border-radius: 6px; }.content-grid { gap: 12px; }.market-table { margin: 0 12px 12px; }.venue-list { padding-inline: 10px; }.venue-foot, .position-footer { margin-inline: 12px; }.event-list { padding-inline: 10px; } }
