body.dashboard-active .observation-account-panel {
  --obs-bg: var(--terminal-bg);
  --obs-panel: var(--terminal-panel);
  --obs-raised: var(--terminal-panel-2);
  --obs-line: var(--terminal-line);
  --obs-text: var(--terminal-text);
  --obs-muted: var(--terminal-muted);
  --obs-green: var(--terminal-green);
  --obs-red: var(--terminal-red);
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 8px 0 20px;
  color: var(--obs-text);
}

body.dashboard-active .observation-account-panel[hidden] { display: none; }
body.dashboard-active .observation-account-panel :is(strong, time, .observation-realized-trend) { font-variant-numeric: tabular-nums; }
body.dashboard-active .observation-account-panel :is(button, input, select):focus-visible { outline: 2px solid var(--obs-green); outline-offset: 3px; }
body.dashboard-active .observation-account-panel .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

body.dashboard-active .observation-account-hero { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 10px 0 18px; border-bottom: 1px solid var(--obs-line); }
body.dashboard-active .observation-account-hero > div { min-width: 0; }
body.dashboard-active .observation-account-kicker { color: var(--obs-green); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
body.dashboard-active .observation-account-hero h3 { margin: 9px 0 8px; color: var(--obs-text); font-size: clamp(25px, 2.3vw, 36px); line-height: 1.2; letter-spacing: -.03em; }
body.dashboard-active .observation-account-hero h3 span { color: var(--obs-green); }
body.dashboard-active .observation-account-hero p { max-width: 680px; margin: 0; color: var(--obs-muted); font-size: 13px; line-height: 1.7; }
body.dashboard-active .observation-hero-actions { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: 10px; }
body.dashboard-active .observation-hero-actions > span { color: var(--obs-muted); font-size: 11px; white-space: nowrap; }
body.dashboard-active .observation-hero-actions button { min-height: 38px; padding: 8px 14px; border: 1px solid var(--obs-green); border-radius: 6px; background: var(--obs-green); color: var(--obs-bg); font-weight: 700; cursor: pointer; }
body.dashboard-active .observation-hero-actions button:hover { filter: brightness(1.08); }
body.dashboard-active .observation-hero-actions button:disabled { opacity: .6; cursor: wait; }

body.dashboard-active .observation-v2-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
body.dashboard-active .observation-v2-summary article { min-width: 0; min-height: 128px; display: grid; align-content: space-between; gap: 7px; padding: 17px 18px; border: 1px solid var(--obs-line); border-radius: 8px; background: var(--obs-panel); }
body.dashboard-active .observation-v2-summary span { color: var(--obs-muted); font-size: 12px; }
body.dashboard-active .observation-v2-summary strong { color: var(--obs-text); font-size: clamp(22px, 2vw, 29px); font-weight: 600; line-height: 1.1; overflow-wrap: anywhere; }
body.dashboard-active .observation-v2-summary .is-mint strong { color: var(--obs-green); }
body.dashboard-active .observation-v2-summary strong b { color: inherit; font: inherit; }
body.dashboard-active .observation-v2-summary strong em { color: var(--obs-muted); font-size: 14px; font-style: normal; }
body.dashboard-active .observation-v2-summary small { color: var(--obs-muted); font-size: 11px; line-height: 1.5; }
body.dashboard-active .observation-v2-summary small b { color: var(--obs-text); }
body.dashboard-active .observation-source-card strong { font-size: 22px; }

body.dashboard-active .observation-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 256px; gap: 18px; min-width: 0; align-items: start; }
body.dashboard-active .observation-strategy-main { display: grid; gap: 14px; min-width: 0; align-content: start; }
body.dashboard-active .observation-strategy-panel,
body.dashboard-active .observation-market-overview { min-width: 0; overflow: hidden; border: 1px solid var(--obs-line); border-radius: 8px; background: var(--obs-panel); }
body.dashboard-active .observation-panel-head,
body.dashboard-active .observation-market-overview > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 14px 18px; border-bottom: 1px solid var(--obs-line); }
body.dashboard-active .observation-panel-head > div,
body.dashboard-active .observation-market-overview > header > div { display: flex; align-items: center; gap: 9px; min-width: 0; }
body.dashboard-active .observation-panel-head > div > i { width: 3px; height: 16px; border-radius: 2px; background: var(--obs-green); }
body.dashboard-active .observation-panel-head h4,
body.dashboard-active .observation-market-overview h4 { margin: 0; color: var(--obs-text); font-size: 15px; }
body.dashboard-active .observation-panel-head > div > span { min-width: 23px; padding: 2px 6px; border: 1px solid var(--obs-line); border-radius: 4px; color: var(--obs-muted); background: var(--obs-raised); font-size: 10px; text-align: center; }
body.dashboard-active .observation-panel-head > small,
body.dashboard-active .observation-market-overview > header > span { color: var(--obs-muted); font-size: 10px; }
body.dashboard-active .observation-table-tools { display: flex; justify-content: end; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--obs-line); }
body.dashboard-active .observation-search { min-width: min(285px, 100%); display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--obs-line); border-radius: 6px; background: var(--obs-bg); color: var(--obs-muted); }
body.dashboard-active .observation-search:focus-within { border-color: var(--obs-green); }
body.dashboard-active .observation-search svg { width: 15px; flex: 0 0 15px; }
body.dashboard-active .observation-search input { width: 100%; min-height: 36px; padding: 0; border: 0; background: transparent; color: var(--obs-text); box-shadow: none; outline: none; font-size: 12px; }
body.dashboard-active .observation-platform-filter select { min-width: 110px; min-height: 38px; padding: 0 28px 0 10px; border: 1px solid var(--obs-line); border-radius: 6px; background: var(--obs-raised); color: var(--obs-text); font-size: 11px; cursor: pointer; }
body.dashboard-active .observation-account-status { margin: 0; padding: 8px 18px; border-bottom: 1px solid var(--obs-line); color: var(--obs-muted); font-size: 11px; }
body.dashboard-active .observation-v2-strategies { min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--terminal-line-strong) transparent; }
body.dashboard-active .observation-v2-strategies > p { margin: 0; padding: 30px 18px; color: var(--obs-muted); text-align: center; }
body.dashboard-active .observation-v2-table { width: 100%; min-width: 880px; border-collapse: collapse; table-layout: fixed; }
body.dashboard-active .observation-v2-table th { height: 42px; padding: 0 12px; border-bottom: 1px solid var(--obs-line); background: var(--obs-raised); color: var(--obs-muted); font-size: 11px; font-weight: 500; text-align: left; }
body.dashboard-active .observation-v2-table th:nth-child(1) { width: 25%; }
body.dashboard-active .observation-v2-table th:nth-child(2) { width: 18%; }
body.dashboard-active .observation-v2-table th:nth-child(3) { width: 20%; }
body.dashboard-active .observation-v2-table th:nth-child(4) { width: 17%; }
body.dashboard-active .observation-v2-table th:nth-child(5) { width: 20%; }
body.dashboard-active .observation-v2-table td { padding: 13px 12px; border-bottom: 1px solid var(--obs-line); vertical-align: middle; }
body.dashboard-active .observation-v2-row { cursor: pointer; transition: background-color .16s ease; }
body.dashboard-active .observation-v2-row:hover,
body.dashboard-active .observation-v2-row:focus-within,
body.dashboard-active .observation-v2-row.is-expanded { background: var(--obs-raised); }
body.dashboard-active .observation-v2-row-toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 34px; padding: 0; border: 0; background: transparent; color: var(--obs-text); cursor: pointer; text-align: left; box-shadow: none; }
body.dashboard-active .observation-v2-name { min-width: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 700; }
body.dashboard-active .observation-v2-meta { display: block; margin-top: 3px; color: var(--obs-muted); font-size: 11px; }
body.dashboard-active .observation-v2-chevron { width: 8px; height: 8px; flex: 0 0 8px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); transition: transform .16s ease; }
body.dashboard-active .observation-v2-row.is-expanded .observation-v2-chevron { transform: rotate(225deg); }
body.dashboard-active .observation-v2-freshness { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; margin-top: 8px; }
body.dashboard-active .observation-v2-freshness time { color: var(--obs-muted); font-size: 11px; }
body.dashboard-active .observation-v2-state { display: inline-flex; align-items: center; gap: 5px; color: var(--obs-red); font-size: 11px; white-space: nowrap; }
body.dashboard-active .observation-v2-state::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ''; }
body.dashboard-active .observation-v2-state.is-online { color: var(--obs-green); }
body.dashboard-active .observation-v2-inline-stat { display: grid; gap: 3px; min-width: 0; }
body.dashboard-active .observation-v2-inline-stat + .observation-v2-inline-stat { margin-top: 7px; }
body.dashboard-active .observation-v2-row .observation-v2-inline-stat:first-child span { display: none; }
body.dashboard-active .observation-v2-inline-stat span { color: var(--obs-muted); font-size: 11px; }
body.dashboard-active .observation-v2-inline-stat strong { color: var(--obs-text); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
body.dashboard-active .observation-v2-inline-stat strong.positive,
body.dashboard-active .observation-v2-daily-row .positive,
body.dashboard-active .observation-v2-monthly-row .positive,
body.dashboard-active .observation-v2-trade-stats .positive { color: var(--obs-green); }
body.dashboard-active .observation-v2-inline-stat strong.negative,
body.dashboard-active .observation-v2-daily-row .negative,
body.dashboard-active .observation-v2-monthly-row .negative,
body.dashboard-active .observation-v2-trade-stats .negative { color: var(--obs-red); }
body.dashboard-active .observation-realized-trend { display: grid; gap: 5px; min-width: 0; }
body.dashboard-active .observation-realized-bars { position: relative; display: flex; gap: 2px; min-width: 0; }
body.dashboard-active .observation-realized-bars::before { position: absolute; inset: 50% 0 auto; border-top: 1px solid var(--terminal-line-strong); content: ''; }
body.dashboard-active .observation-realized-column { position: relative; flex: 1 1 0; min-width: 0; height: 100%; }
body.dashboard-active .observation-realized-bars i { position: absolute; left: 0; right: 0; bottom: 50%; background: var(--obs-green); }
body.dashboard-active .observation-realized-bars i.is-negative { top: 50%; bottom: auto; background: var(--obs-red); }
body.dashboard-active .observation-realized-bars i.is-zero { top: 50%; bottom: auto; border-top: 1px solid var(--obs-muted); background: transparent; }
body.dashboard-active .observation-realized-trend small { color: var(--obs-muted); font-size: 10px; overflow-wrap: anywhere; }

body.dashboard-active .observation-v2-detail-row td { padding: 0; background: var(--obs-bg); }
body.dashboard-active .observation-v2-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 20px; }
body.dashboard-active .observation-v2-detail-head { grid-column: 1 / -1; display: flex; align-items: start; justify-content: space-between; gap: 16px; }
body.dashboard-active .observation-v2-detail-head h4 { margin: 0 0 5px; color: var(--obs-text); font-size: 16px; }
body.dashboard-active .observation-v2-detail-head small { color: var(--obs-muted); font-size: 11px; line-height: 1.5; }
body.dashboard-active .observation-v2-back,
body.dashboard-active .observation-v2-more { min-height: 36px; padding: 7px 11px; border: 1px solid var(--obs-line); border-radius: 6px; background: var(--obs-raised); color: var(--obs-text); cursor: pointer; }
body.dashboard-active .observation-v2-back { flex: 0 0 auto; }
body.dashboard-active .observation-v2-scope-note { grid-column: 1 / -1; margin: 0; padding: 12px; border: 1px solid var(--obs-line); border-left: 2px solid var(--obs-green); border-radius: 6px; background: var(--obs-panel); color: var(--obs-muted); font-size: 12px; line-height: 1.7; }
body.dashboard-active .observation-v2-detail-metrics { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
body.dashboard-active .observation-v2-detail-metrics > div { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--obs-line); border-radius: 6px; background: var(--obs-panel); }
body.dashboard-active .observation-v2-detail-metrics span { display: block; margin-bottom: 4px; }
body.dashboard-active .observation-v2-detail-section { min-width: 0; }
body.dashboard-active .observation-v2-detail-section h4 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 10px; color: var(--obs-text); font-size: 13px; }
body.dashboard-active .observation-v2-detail-section h4 small { color: var(--obs-muted); font-size: 11px; font-weight: 400; }
body.dashboard-active .observation-v2-detail-section > p { margin: 8px 0 0; color: var(--obs-muted); font-size: 12px; line-height: 1.6; }
body.dashboard-active .observation-v2-series { grid-column: 1 / -1; padding: 15px; border: 1px solid var(--obs-line); border-radius: 8px; background: var(--obs-panel); }
body.dashboard-active .observation-v2-series .observation-realized-bars { margin-top: 14px; }
body.dashboard-active .observation-v2-series .observation-realized-trend small { display: none; }
body.dashboard-active .observation-v2-monthly-list,
body.dashboard-active .observation-v2-daily-list,
body.dashboard-active .observation-v2-trade-list { display: grid; gap: 0; max-height: 250px; overflow-y: auto; border: 1px solid var(--obs-line); border-radius: 6px; background: var(--obs-panel); }
body.dashboard-active .observation-v2-monthly-row,
body.dashboard-active .observation-v2-daily-row,
body.dashboard-active .observation-v2-trade { display: flex; justify-content: space-between; gap: 12px; min-width: 0; padding: 10px 12px; border-bottom: 1px solid var(--obs-line); color: var(--obs-muted); font-size: 11px; }
body.dashboard-active .observation-v2-monthly-row:last-child,
body.dashboard-active .observation-v2-daily-row:last-child,
body.dashboard-active .observation-v2-trade:last-child { border-bottom: 0; }
body.dashboard-active .observation-v2-monthly-row > div { display: grid; gap: 3px; text-align: right; }
body.dashboard-active .observation-v2-monthly-row small { color: var(--obs-muted); font-size: 11px; }
body.dashboard-active .observation-v2-trade { display: block; }
body.dashboard-active .observation-v2-trade-heading { display: flex; justify-content: space-between; gap: 10px; color: var(--obs-text); }
body.dashboard-active .observation-v2-trade-heading time { color: var(--obs-muted); }
body.dashboard-active .observation-v2-trade-stats { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 6px; color: var(--obs-muted); font-size: 10px; }
body.dashboard-active .observation-v2-more { margin-top: 8px; }
body.dashboard-active .observation-v2-more:disabled { cursor: wait; opacity: .6; }
body.dashboard-active .observation-table-foot { padding: 12px 18px; color: var(--obs-muted); font-size: 10px; line-height: 1.6; }
body.dashboard-active .observation-disclosure { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--obs-line); border-radius: 8px; background: var(--obs-panel); }
body.dashboard-active .observation-disclosure svg { width: 20px; flex: 0 0 20px; color: var(--obs-green); }
body.dashboard-active .observation-disclosure strong { color: var(--obs-text); font-size: 12px; }
body.dashboard-active .observation-disclosure p { margin: 4px 0 0; color: var(--obs-muted); font-size: 10px; line-height: 1.6; }
body.dashboard-active .observation-disclosure > span { display: none; }
body.dashboard-active .observation-market-overview { position: sticky; top: 0; }
body.dashboard-active .observation-market-overview > header svg { width: 17px; color: var(--obs-muted); }
body.dashboard-active .observation-market-overview > p { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--obs-line); color: var(--obs-muted); font-size: 10px; }
body.dashboard-active .observation-market-quotes { display: grid; min-height: 80px; }
body.dashboard-active .observation-market-quotes.is-empty { padding: 18px; color: var(--obs-muted); }
body.dashboard-active .observation-market-quotes .public-quote-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 8px; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--obs-line); border-radius: 0; background: transparent; box-shadow: none; }
body.dashboard-active .observation-market-quotes .public-quote-head { grid-column: 1; grid-row: 1 / span 2; }
body.dashboard-active .observation-market-quotes .public-quote-head i,
body.dashboard-active .observation-market-quotes .public-quote-foot time { display: none; }
body.dashboard-active .observation-market-quotes .public-quote-price { grid-column: 2; grid-row: 1; margin: 0; font-size: 13px; text-align: right; }
body.dashboard-active .observation-market-quotes .public-quote-foot { grid-column: 2; grid-row: 2; justify-content: end; font-size: 9px; }
body.dashboard-active .observation-market-overview > small { display: block; padding: 12px 14px; color: var(--obs-muted); font-size: 10px; line-height: 1.6; }

@media (max-width: 1180px) {
  body.dashboard-active .observation-v2-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.dashboard-active .observation-dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  body.dashboard-active .observation-market-overview { position: static; }
  body.dashboard-active .observation-market-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  body.dashboard-active .observation-account-hero { align-items: start; flex-direction: column; gap: 14px; }
  body.dashboard-active .observation-hero-actions { justify-content: start; }
  body.dashboard-active .observation-v2-strategies { overflow: visible; }
  body.dashboard-active .observation-v2-table { min-width: 0; table-layout: auto; }
  body.dashboard-active .observation-v2-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  body.dashboard-active .observation-v2-table tbody { display: grid; gap: 9px; padding: 10px; }
  body.dashboard-active .observation-v2-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; border: 1px solid var(--obs-line); border-radius: 8px; background: var(--obs-panel); }
  body.dashboard-active .observation-v2-row td { display: grid; gap: 6px; min-width: 0; padding: 11px; border: 0; }
  body.dashboard-active .observation-v2-row td::before { color: var(--obs-muted); font-size: 10px; content: attr(data-label); }
  body.dashboard-active .observation-v2-row .observation-v2-name-cell { grid-column: 1 / -1; border-bottom: 1px solid var(--obs-line); }
  body.dashboard-active .observation-v2-row .observation-v2-name-cell::before { display: none; }
  body.dashboard-active .observation-v2-row .observation-v2-inline-stat:first-child span { display: none; }
  body.dashboard-active .observation-v2-detail-row { display: block; }
  body.dashboard-active .observation-v2-detail-row td { display: block; border: 1px solid var(--obs-line); border-radius: 8px; }
  body.dashboard-active .observation-v2-detail { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px; }
  body.dashboard-active .observation-v2-detail-head,
  body.dashboard-active .observation-v2-scope-note,
  body.dashboard-active .observation-v2-detail-metrics,
  body.dashboard-active .observation-v2-series { grid-column: auto; }
  body.dashboard-active .observation-v2-detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  body.dashboard-active .observation-v2-summary { gap: 8px; }
  body.dashboard-active .observation-v2-summary article { min-height: 108px; padding: 12px; }
  body.dashboard-active .observation-v2-summary strong { font-size: 21px; }
  body.dashboard-active .observation-table-tools { flex-direction: column; }
  body.dashboard-active .observation-search { min-width: 0; }
  body.dashboard-active .observation-platform-filter select { width: 100%; }
  body.dashboard-active .observation-v2-row { grid-template-columns: minmax(0, 1fr); }
  body.dashboard-active .observation-v2-detail-metrics { grid-template-columns: minmax(0, 1fr); }
  body.dashboard-active .observation-v2-detail-head { flex-wrap: wrap; }
  body.dashboard-active .observation-v2-trade-heading { flex-wrap: wrap; }
  body.dashboard-active .observation-market-quotes { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  body.dashboard-active .observation-v2-row,
  body.dashboard-active .observation-v2-chevron { transition: none; }
}
body.dashboard-active .observation-v2-quarantine-notice {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-left: 3px solid #fbbf24;
  border-radius: 4px;
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
