/* Sigma Capital visual layer for the existing MT5 connector workflows. */
:root {
  color-scheme: dark;
  --bg: #08110d;
  --surface: #101a15;
  --surface-2: #14211a;
  --surface-3: #1a2b22;
  --line: rgba(174, 210, 194, .12);
  --line-2: rgba(174, 210, 194, .2);
  --text: #edf5ef;
  --muted: #a1b0a7;
  --quiet: #809087;
  --accent: #6ee3a4;
  --green: #6ee3a4;
  --amber: #e9c778;
  --red: #f08082;
  --radius: 13px;
  --shadow: 0 18px 54px rgba(0, 0, 0, .24);
  font-family: Inter, "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body { background-color: var(--bg); }
body { color: var(--text); font-size: 13px; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { text-decoration-color: rgba(110, 227, 164, .32); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.brand { gap: 10px; }
.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 0;
  border-radius: 0;
  background: #78e2a6;
  -webkit-mask: url("/assets/sigma-capital-logo.svg") center / 32px 32px no-repeat;
  mask: url("/assets/sigma-capital-logo.svg") center / 32px 32px no-repeat;
  box-shadow: none;
  color: transparent;
}
.brand-mark svg { display: none; }
.brand-copy { gap: 3px; }
.brand-copy strong { color: #edf5ef; font-size: 14px; font-weight: 720; letter-spacing: -.025em; }
.brand-copy small { color: #83a394; font-size: 8px; font-weight: 720; letter-spacing: .13em; }

.app-shell { min-height: 100vh; background: radial-gradient(ellipse at 88% -16%, rgba(64, 153, 109, .12), transparent 38rem), var(--bg); }
.sidebar {
  width: 236px;
  flex-basis: 236px;
  padding: 19px 13px 13px;
  border-right-color: var(--line);
  background: linear-gradient(180deg, rgba(12, 22, 17, .98), rgba(8, 16, 12, .98));
}
.sidebar > .brand { margin: 0 5px 28px; }
.sidebar-label { margin: 0 10px 9px; color: #739182; font-size: 9px; letter-spacing: .14em; }
.side-nav { gap: 4px; }
.nav-item {
  min-height: 42px;
  gap: 11px;
  padding: 0 11px;
  border-radius: 9px;
  color: #a3b2a9;
  font-size: 12px;
  font-weight: 560;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.nav-item svg { width: 17px; height: 17px; }
.nav-item:hover { border-color: rgba(174, 210, 194, .08); background: rgba(255, 255, 255, .035); color: var(--text); }
.nav-item.active { border-color: rgba(110, 227, 164, .2); background: linear-gradient(100deg, rgba(49, 146, 96, .2), rgba(32, 78, 53, .1)); color: #91edb9; }
.nav-count { min-width: 22px; height: 22px; border-color: rgba(174, 210, 194, .16); border-radius: 7px; color: #bfd2c5; font-size: 10px; }
.sidebar-footer { min-height: 50px; gap: 9px; padding-top: 9px; border-top-color: var(--line); }
.footer-profile-mark { width: 32px; height: 32px; border-color: rgba(110, 227, 164, .2); border-radius: 9px; background: #14251b; color: #a6efc2; font-size: 10px; }
.footer-profile-copy strong { color: #dce9e0; font-size: 11px; }
.footer-profile-copy small { color: #91a398; font-size: 9px; }
.footer-login-link { width: 34px; height: 34px; border-radius: 8px; }
.sidebar-profile-summary { display: flex; min-width: 0; flex: 1; align-items: center; gap: 9px; padding: 2px 4px 2px 0; }
.sidebar-profile-summary .footer-profile-copy { flex: 1; }

.sidebar { overflow: hidden; }
.side-nav { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 4px; overflow-y: auto; scrollbar-color: rgba(174, 210, 194, .18) transparent; scrollbar-width: thin; }
.sidebar-spacer { display: none; }
.nav-group { position: relative; flex: 0 0 auto; }
.nav-group-toggle { display: flex; min-height: 40px; align-items: center; gap: 11px; padding: 0 11px; border: 1px solid transparent; border-radius: 9px; color: #a3b2a9; cursor: pointer; font-size: 12px; font-weight: 560; list-style: none; transition: background 160ms ease, color 160ms ease, border-color 160ms ease; }
.nav-group-toggle::-webkit-details-marker { display: none; }
.nav-group-toggle > svg:first-child { width: 17px; height: 17px; flex: 0 0 auto; }
.nav-group-toggle > span { min-width: 0; flex: 1; }
.nav-group-toggle:hover, .nav-group[open] > .nav-group-toggle { border-color: rgba(174, 210, 194, .08); background: rgba(255, 255, 255, .035); color: var(--text); }
.nav-group.is-active > .nav-group-toggle { border-color: rgba(110, 227, 164, .2); background: linear-gradient(100deg, rgba(49, 146, 96, .2), rgba(32, 78, 53, .1)); color: #91edb9; }
.nav-chevron { width: 14px; height: 14px; flex: 0 0 auto; color: #71877a; transition: transform 150ms ease; }
.nav-group[open] > .nav-group-toggle .nav-chevron { transform: rotate(180deg); }
.nav-submenu { display: grid; gap: 2px; margin: 3px 0 5px 19px; padding: 2px 0 2px 10px; border-left: 1px solid rgba(174, 210, 194, .15); }
.nav-submenu a { display: flex; min-height: 31px; align-items: center; padding: 0 10px; border: 1px solid transparent; border-radius: 7px; color: #94a69b; font-size: 11px; font-weight: 520; text-decoration: none; transition: background 140ms ease, color 140ms ease; }
.nav-submenu a:hover { background: rgba(255, 255, 255, .035); color: var(--text); }
.nav-submenu a.active { background: rgba(110, 227, 164, .09); color: #a5edc0; }
[data-account-section], [data-automation-section] { scroll-margin-top: 70px; }
.sidebar-mobile-toggle { display: none; }
.sidebar-mobile-backdrop { display: none; }

.settings-grid { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(340px, 1.2fr); align-items: start; gap: 12px; }
.settings-profile-panel, .settings-shortcuts-panel { padding-bottom: 12px; }
.settings-profile { display: flex; align-items: center; gap: 11px; padding: 16px 15px 8px; }
.settings-profile > div { display: grid; gap: 3px; }
.settings-profile > div strong { color: #e5f0e8; font-size: 13px; font-weight: 620; }
.settings-profile > div small { color: #91a398; font-size: 10px; }
.settings-note { margin: 5px 15px 13px; color: #9aaba0; font-size: 11px; line-height: 1.6; }
.settings-account-names-panel { margin-top: 12px; }
.settings-mt5-accounts { display: grid; gap: 6px; padding: 0 11px 11px; }
.settings-mt5-account-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(180px, 1.2fr) auto; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: #0e1618; }
.settings-mt5-account-meta { display: grid; min-width: 0; gap: 3px; }
.settings-mt5-account-meta strong { overflow: hidden; color: #dce7df; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.settings-mt5-account-meta small { overflow: hidden; color: #829087; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.settings-mt5-account-row input { width: 100%; min-width: 0; height: 32px; padding: 0 9px; border: 1px solid #34413d; border-radius: 6px; background: #0a1113; color: #e1e9e3; font-size: 10px; }
.settings-mt5-account-row input:focus { border-color: #8eb95b; outline: none; box-shadow: 0 0 0 2px rgb(173 221 106 / 9%); }
.settings-mt5-account-row input:disabled { color: #64736c; cursor: not-allowed; }
.settings-profile-panel > .button { margin-left: 15px; }
.settings-shortcut-list { display: grid; padding: 4px 12px; }
.settings-shortcut-list a { display: grid; gap: 3px; padding: 11px 8px; border-bottom: 1px solid var(--line); text-decoration: none; }
.settings-shortcut-list a:last-child { border-bottom: 0; }
.settings-shortcut-list a strong { color: #e2eee6; font-size: 11px; font-weight: 620; }
.settings-shortcut-list a span { color: #8fa196; font-size: 9px; }
.settings-shortcut-list a:hover strong { color: var(--accent); }
.runtime-banner.waking { border-color: rgba(241, 191, 106, .32); background: rgba(60, 44, 21, .45); }
.runtime-banner.paused { border-color: rgba(230, 183, 95, .28); background: rgba(51, 40, 22, .48); }
.runtime-dot.waking { background: #e6b75f; box-shadow: 0 0 0 4px rgba(230, 183, 95, .13); animation: runtime-pulse 1.4s ease-in-out infinite; }
.runtime-dot.paused { background: #e6b75f; box-shadow: 0 0 0 4px rgba(230, 183, 95, .13); }
@keyframes runtime-pulse { 50% { box-shadow: 0 0 0 8px rgba(230, 183, 95, 0); } }

.app-main { min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 58px;
  padding: 0 clamp(18px, 2.2vw, 34px);
  border-bottom-color: var(--line);
  background: rgba(8, 17, 13, .88);
  backdrop-filter: blur(16px);
}
.breadcrumb { gap: 10px; color: #7f9588; font-size: 11px; }
.breadcrumb strong { color: #e1eee6; font-size: 12px; font-weight: 620; }
.topbar-actions { gap: 9px; }
.mode-tag, .topbar-live, .readonly-badge, .pending-tag { min-height: 27px; border-color: var(--line-2); border-radius: 8px; background: #111e17; color: #a9c4b3; font-size: 9px; }
.icon-button { width: 38px; height: 38px; border-color: var(--line); border-radius: 9px; color: #aec2b5; }
.icon-button:hover { border-color: var(--line-2); background: var(--surface-2); color: var(--text); }
.button { min-height: 40px; border-radius: 9px; font-size: 12px; font-weight: 650; transition: background 160ms ease, border-color 160ms ease, transform 160ms ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { border-color: #74dda1; background: #69d99a; color: #082016; }
.button-primary:hover { border-color: #8fefb8; background: #80e6aa; }
.button-compact { min-height: 36px; padding: 0 12px; }
.workspace { width: min(100%, 1640px); padding: 22px clamp(18px, 2.2vw, 34px) 22px; }
.page-heading { min-height: 56px; margin-bottom: 14px; }
.page-heading .eyebrow { color: #77b694; font-size: 9px; letter-spacing: .15em; }
.page-heading h1 { margin-top: 5px; color: #f0f6f1; font-size: clamp(23px, 2.1vw, 29px); font-weight: 660; letter-spacing: -.045em; }
.page-description { max-width: 680px; margin-top: 6px; color: #a3b2a9; font-size: 12px; line-height: 1.5; }
.updated-label { color: #91a398; font-size: 10px; }
.updated-label strong { color: #c8d7cd; font-size: 10px; }
.runtime-banner { min-height: 43px; gap: 10px; margin-bottom: 14px; padding: 0 14px; border-color: rgba(110, 227, 164, .19); border-radius: 10px; background: linear-gradient(100deg, rgba(24, 57, 39, .62), rgba(15, 30, 21, .72)); }
.runtime-banner.offline { border-color: rgba(240, 128, 130, .22); background: rgba(62, 28, 30, .54); }
.runtime-banner > strong { color: #e5f3e9; font-size: 11px; }
.runtime-banner > span:nth-of-type(2) { color: #b1c3b7; font-size: 11px; }
.runtime-state { color: #9de5b7; font-size: 9px; }

.metrics-grid { gap: 12px; margin-bottom: 14px; }
.metric-card {
  min-height: 88px;
  gap: 4px 12px;
  padding: 13px 15px;
  border-color: var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, #111c16, #0e1812);
  box-shadow: inset 0 1px rgba(255, 255, 255, .018);
}
.metric-card:first-child { border-color: rgba(110, 227, 164, .18); background: linear-gradient(135deg, rgba(34, 85, 57, .48), #101b15 78%); }
.metric-label { color: #a1b1a7; font-size: 11px; }
.metric-value { color: #f0f7f1; font-size: clamp(18px, 1.7vw, 23px); font-weight: 620; }
.metric-note { color: #8da095; font-size: 10px; }
.metric-value.positive { color: var(--green); }
.metric-value.negative { color: var(--red); }
.dashboard-grid { gap: 13px; }
.panel { border-color: var(--line); border-radius: 12px; background: linear-gradient(145deg, rgba(17, 28, 22, .98), rgba(13, 22, 17, .98)); box-shadow: 0 8px 28px rgba(0, 0, 0, .12); }
.panel-heading { min-height: 55px; gap: 14px; padding: 9px 15px; border-bottom-color: var(--line); }
.section-eyebrow { color: #83a293; font-size: 9px; font-weight: 690; letter-spacing: .13em; }
.panel-heading h2 { color: #e5efe8; font-size: 14px; font-weight: 620; }
.count-tag { min-width: 22px; height: 22px; border-color: var(--line-2); border-radius: 7px; background: #15231a; color: #b4e6c7; font-size: 10px; }
.panel-link { color: #87dfa8; font-size: 11px; }
.panel-link:hover { color: #b4f2c9; }
.table-wrap { scrollbar-color: #355844 transparent; }
.account-table thead, .positions-table thead, .history-table thead { background: #101a14; }
.account-table th, .positions-table th, .history-table th { height: 36px; padding: 0 11px; border-bottom-color: var(--line); color: #87a091; font-size: 9px; letter-spacing: .1em; }
.account-table td, .positions-table td, .history-table td { height: 48px; padding: 8px 11px; border-bottom-color: rgba(174, 210, 194, .08); color: #c5d3ca; font-size: 11px; }
.account-table tbody tr:hover, .positions-table tbody tr:hover, .history-table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.account-name-copy strong { color: #e4eee7; font-size: 11px; }
.account-name-copy span, .docker-id { color: #8da095 !important; font-size: 9px !important; }
.account-mark { width: 30px; height: 30px; border-color: rgba(110, 227, 164, .16); border-radius: 8px; background: #14251a; }
.account-mark svg { width: 16px; height: 16px; }
.server-value { color: #d5e2d9 !important; }
.balance-value { color: #ecf5ef !important; font-size: 11px !important; }
.status-pill { min-height: 24px; gap: 7px; padding: 0 9px; border-radius: 999px; font-size: 10px; }
.status-pill::before { width: 6px; height: 6px; }
.empty-table-cell { height: 64px !important; color: #94a69b !important; font-size: 11px !important; }
.account-panel-footer { min-height: 36px; padding: 0 15px; border-top-color: var(--line); color: #8da095; font-size: 10px; }
.main-footer { margin-top: 14px; color: #81958a; font-size: 10px; }

.account-detail-top { gap: 13px; }
.account-identity-panel, .account-ea-panel { border-radius: 12px; }
.account-identity-grid { gap: 11px; padding: 15px; }
.account-identity-grid > div { gap: 5px; }
.account-identity-grid span { color: #83a293; font-size: 9px; }
.account-identity-grid strong { color: #e0ebe3; font-size: 12px; }
.account-active-pair { padding: 2px 15px 6px; color: #edf6ef; font-size: 21px; }
.account-ea-meta { padding: 0 15px 15px; color: #a2b2a8; font-size: 11px; }
.account-metrics .metric-card { min-height: 83px; }
.balance-range-controls { gap: 5px; padding: 10px 15px 5px; }
.balance-range-button { min-height: 31px; padding: 0 10px; border-color: var(--line); border-radius: 8px; background: #111d16; color: #a3b3a8; font-size: 10px; }
.balance-range-button:hover { border-color: var(--line-2); color: var(--text); }
.balance-range-button.is-active, .balance-range-button[aria-pressed="true"] { border-color: rgba(110, 227, 164, .3); background: rgba(42, 108, 68, .22); color: #a5edbf; }
.balance-chart-wrap { padding: 6px 9px 0; }
.balance-chart-wrap svg { height: 236px; }
.chart-grid { stroke: rgba(174, 210, 194, .12); }
.balance-area { fill: rgba(110, 227, 164, .1); }
.balance-line { stroke: #72e2a3; stroke-width: 2.5; }
.balance-points circle { fill: #102117; stroke: #9cf0bb; }
.balance-y-axis { fill: #91a398; font-size: 10px; }
.balance-y-title { fill: #bbccc0; font-size: 10px; }
.balance-axis { color: #8da095; font-size: 10px; }
.chart-note { margin: 8px 15px 13px; color: #8fa297; font-size: 10px; }
.positions-table td, .history-table td { height: 43px; }

.automation-account-bar { min-height: 66px; margin-bottom: 13px; padding: 13px 16px; border-radius: 12px; }
.automation-account-bar strong { color: #e6f0e9; font-size: 13px; }
.automation-account-bar small { color: #9aaca0; font-size: 10px; }
.automation-layout { gap: 13px; }
.automation-layout .panel { border-radius: 12px; }
.automation-layout .panel-heading { min-height: 55px; }
.ea-upload-form, .ea-config-form { gap: 12px; padding: 15px; }
.form-field { gap: 6px; }
.form-field label { color: #c0d0c5; font-size: 11px; }
.form-field input, .form-field select, .ea-target-fields input, .ea-target-fields select,
.ea-parameter-field input, .ea-parameter-field select {
  min-height: 39px;
  padding: 0 10px;
  border-color: var(--line-2);
  border-radius: 8px;
  background: #0b1510;
  color: #e5efe8;
  font-size: 12px;
}
.field-hint, .field-error { font-size: 10px; }
.form-error { border-radius: 8px; font-size: 11px; }
.ea-live-note, .chart-note { line-height: 1.55; }
.ea-action-row { gap: 8px; }
.ea-action-row .button { min-height: 39px; }
.ea-status-panel { margin-top: 13px; }

.fundamental-page { gap: 12px; }
.fundamental-toolbar { gap: 12px; padding-bottom: 10px; border-bottom-color: var(--line); }
.fundamental-toolbar-meta { color: #9aaca0; font-size: 10px; }
.fundamental-content > *, .fundamental-panel .panel { border-color: var(--line); border-radius: 12px; }
.news-filter, .calendar-filter { min-height: 32px; padding: 0 10px; border-color: var(--line); border-radius: 8px; background: #111d16; color: #a8b8ad; font-size: 10px; }
.news-filter.is-active, .calendar-filter.is-active { border-color: rgba(110, 227, 164, .26); background: rgba(42, 108, 68, .2); color: #a7efc0; }

.login-shell, .backend-outage { background: radial-gradient(ellipse at 77% 0, rgba(54, 142, 97, .16), transparent 34rem), var(--bg); }
.login-story { border-right-color: var(--line); background: rgba(8, 18, 12, .76); }
.login-story-copy .eyebrow, .login-main .eyebrow { color: #81bc98; }
.login-story-copy h1 { color: #edf5ef; }
.login-story-copy p, .login-intro { color: #a5b5aa; }
.login-card, .backend-outage-card { border-color: var(--line); border-radius: 16px; background: rgba(15, 27, 19, .92); box-shadow: var(--shadow); }
.login-card h2 { color: #edf5ef; }
.login-card-foot, .login-copyright { color: #91a398; }
.login-form input { min-height: 42px; border-color: var(--line-2); border-radius: 8px; background: #0b1510; color: #e5efe8; font-size: 12px; }
.login-form label { color: #bdcdc2; font-size: 11px; }
.login-secondary-link { color: #8ae5ad; }

.landing-page { background: radial-gradient(ellipse at 78% 4%, rgba(54, 142, 97, .15), transparent 38rem), var(--bg); }
.landing-header { position: sticky; top: 0; z-index: 20; border-bottom-color: var(--line); background: rgba(8, 17, 13, .86); backdrop-filter: blur(16px); }
.landing-main { width: min(1180px, calc(100% - 48px)); }
.landing-kicker { color: #83c79e; font-size: 10px; letter-spacing: .14em; }
.landing-hero { gap: clamp(32px, 6vw, 82px); padding-top: clamp(48px, 8vw, 96px); }
.landing-copy h1 { color: #eef6f0; letter-spacing: -.06em; }
.landing-copy h1 span { color: #78e2a6; }
.landing-intro { color: #a5b5aa; }
.landing-proof li { color: #bfd0c4; }
.landing-proof svg { color: #7de4a7; }
.account-preview { border-color: rgba(174, 210, 194, .18); border-radius: 16px; background: linear-gradient(155deg, rgba(21, 38, 27, .96), rgba(11, 21, 14, .98)); box-shadow: 0 28px 90px rgba(0, 0, 0, .32); }
.preview-topbar, .preview-divider { border-color: var(--line); }
.preview-label, .preview-state-ready { border-color: rgba(110, 227, 164, .24); background: rgba(44, 114, 70, .18); color: #a6edbf; }
.capability-card, .workflow-steps article { border-color: var(--line); border-radius: 12px; background: rgba(15, 27, 19, .78); }
.capability-card h2, .workflow-heading h2, .landing-bottom-cta h2 { color: #eaf4ed; }
.capability-card p, .workflow-steps p { color: #a0b0a5; }
.workflow-steps article > span { color: #78dba0; }
.landing-bottom-cta { border-color: var(--line); border-radius: 14px; background: linear-gradient(110deg, rgba(27, 66, 43, .55), rgba(15, 27, 19, .88)); }
.landing-footer { color: #8da095; }

@media (max-width: 1050px) {
  .sidebar { width: 214px; flex-basis: 214px; }
  .workspace { padding-right: 20px; padding-left: 20px; }
}
@media (max-width: 820px) {
  .sidebar { width: 205px; flex-basis: 205px; align-items: stretch; padding-right: 11px; padding-left: 11px; }
  .sidebar > .brand { margin-right: 4px; margin-left: 4px; }
  .sidebar .brand-copy, .footer-profile-copy { display: grid; }
  .sidebar-label { display: block; }
  .footer-login-link { display: grid; }
  .sidebar-label { margin: 0 8px 7px; }
  .side-nav { align-items: stretch; overflow-y: auto; }
  .nav-item { min-height: 40px; justify-content: flex-start; padding: 0 11px; }
  .nav-item > span { display: initial; }
  .nav-count { display: inline-grid !important; }
  .nav-group { width: auto; }
  .nav-group-toggle { justify-content: flex-start; padding: 0 11px; }
  .nav-group-toggle > span, .nav-group-toggle > .nav-chevron { display: block; }
  .nav-submenu { position: static; min-width: 0; margin: 3px 0 5px 19px; padding: 2px 0 2px 10px; border: 0; border-left: 1px solid rgba(174, 210, 194, .15); border-radius: 0; background: transparent; box-shadow: none; }
  .nav-submenu a { min-height: 32px; }
  .sidebar-footer { justify-content: flex-start; width: auto; }
  .sidebar-mobile-toggle { display: none; }
  .topbar { padding-right: 16px; padding-left: 16px; }
  .workspace { padding-right: 16px; padding-left: 16px; }
  .automation-layout, .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 51; display: flex; width: min(270px, 86vw); height: 100vh; height: 100dvh; align-items: stretch; padding: 16px 12px 11px; border: 0; border-right: 1px solid var(--line-2); background: #0b1510; box-shadow: 18px 0 48px rgba(0, 0, 0, .34); transform: translateX(-105%); transition: transform 180ms ease; }
  .sidebar.is-mobile-open { transform: translateX(0); }
  .sidebar > .brand { display: flex; margin: 0 4px 20px; }
  .sidebar .brand-copy, .footer-profile-copy { display: grid; }
  .sidebar-label { display: block; }
  .footer-login-link { display: grid; }
  .sidebar-label { margin: 0 8px 7px; }
  .sidebar-spacer { display: block; min-height: 6px; flex: 0 0 6px; }
  .side-nav { height: auto; align-items: stretch; justify-content: flex-start; overflow-y: auto; }
  .nav-group { width: auto; }
  .nav-group-toggle { justify-content: flex-start; min-height: 40px; gap: 11px; padding: 0 11px; }
  .nav-group-toggle > span, .nav-group-toggle > .nav-chevron { display: block; }
  .nav-submenu { position: static; min-width: 0; margin: 3px 0 5px 19px; padding: 2px 0 2px 10px; border: 0; border-left: 1px solid rgba(174, 210, 194, .15); border-radius: 0; background: transparent; box-shadow: none; }
  .nav-submenu a { min-height: 34px; }
  .sidebar-footer { display: flex; }
  .sidebar-mobile-toggle { display: inline-grid; }
  .sidebar-mobile-backdrop { position: fixed; inset: 0; z-index: 50; display: block; border: 0; background: rgba(0, 0, 0, .55); }
  .sidebar-mobile-backdrop[hidden] { display: none; }
  .app-main { padding-bottom: 0; }
  .topbar { min-height: 52px; padding-right: 11px; padding-left: 11px; }
  .breadcrumb { font-size: 10px; }
  .breadcrumb strong { font-size: 11px; }
  .topbar-actions { gap: 4px; }
  .topbar-live, .mode-tag { min-height: 24px; padding: 0 6px; font-size: 8px; }
  .topbar-actions .button { min-height: 34px; padding: 0 9px; font-size: 10px; }
  .workspace { padding: 14px 11px 15px; }
  .page-heading { align-items: flex-start; margin-bottom: 11px; }
  .page-heading h1 { font-size: 23px; }
  .page-description { max-width: 72vw; font-size: 11px; }
  .updated-label { display: none; }
  .runtime-banner { flex-wrap: wrap; min-height: 42px; padding: 8px 10px; }
  .runtime-banner > span:nth-of-type(2) { flex: 1 1 100%; padding-left: 17px; font-size: 10px; }
  .runtime-state { font-size: 8px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .metric-card { min-height: 76px; padding: 10px; }
  .metric-label { font-size: 10px; }
  .metric-value { font-size: clamp(16px, 5vw, 20px); }
  .metric-note { font-size: 9px; }
  .panel-heading { min-height: 49px; padding: 8px 11px; }
  .panel-heading h2 { font-size: 13px; }
  .section-eyebrow { font-size: 8px; }
  .account-table { min-width: 610px; }
  .account-detail-content .account-table, .positions-table { min-width: 0; }
  .balance-chart-wrap svg { height: 190px; }
  .automation-layout { grid-template-columns: 1fr; }
  .fundamental-toolbar { align-items: flex-start; flex-direction: column; }
  .landing-main { width: min(100% - 28px, 1180px); }
  .landing-header { min-height: 62px; padding-right: 14px; padding-left: 14px; }
  .landing-header .brand-mark { width: 34px; height: 34px; flex-basis: 34px; }
  .landing-nav-cta { display: none; }
  .landing-hero { padding-top: 38px; }
  .landing-copy h1 { font-size: clamp(36px, 11vw, 52px); }
  .landing-intro { font-size: 14px; }
  .landing-bottom-cta { align-items: flex-start; flex-direction: column; gap: 15px; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-mt5-account-row { grid-template-columns: minmax(0, 1fr) auto; }
  .settings-mt5-account-meta { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
