html[data-terminal-shell="dock"] #t-canvas { display: none !important; }
html[data-terminal-shell="dock"] #dock-shell { display: flex; }

.dock-shell {
  display: none;
  flex-direction: column;
  height: calc(100dvh - var(--terminal-header-h, 44px));
  min-height: 0;
  background: #0e1624;
  color: #d5deea;
}

.workspace-bar, .tw-toolbar {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 34px;
  padding: 4px 8px;
  background: #162033;
  overflow-x: auto;
}

.workspace-bar button, .tw-frame, .tw-watch, .palette button, .palette input, .tw-field input {
  background: #223044;
  color: #d5deea;
  border: 1px solid #31445d;
  border-radius: 4px;
  min-height: 28px;
  padding: 0 8px;
}

.workspace-bar button.active, .tw-frame.active { outline: 1px solid #7c5cff; }

.dock-root { flex: 1; min-height: 0; position: relative; }
.dock-root .dv-dockview { height: 100%; }

.terminal-widget {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #101826;
  color: #d5deea;
  font-size: 13px;
}
.tw-chart-surface { position: relative; flex: 1; min-height: 180px; }
.tw-chart-root, .tw-overlay { position: absolute; inset: 0; }
.tw-overlay { z-index: 2; }
.tw-scroll { overflow: auto; flex: 1; }
.tw-note, .tw-status, .tw-volume { padding: 6px 8px; color: #9fb0c4; }
.tw-book-row, .tw-pos, .tw-watch { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 2px 8px; font-variant-numeric: tabular-nums; }
.tw-watch { display: block; width: 100%; text-align: left; }
.tw-book-row .bid { color: #26a69a; text-align: right; }
.tw-book-row .ask { color: #ef5350; }
.tw-spread { text-align: center; color: #f5d76e; padding: 4px; }
.tw-buy { background: #1f8f73; color: white; border: 0; margin: 6px; min-height: 32px; }
.tw-sell { background: #c44747; color: white; border: 0; margin: 6px; min-height: 32px; }
.tw-field { display: flex; justify-content: space-between; gap: 8px; padding: 4px 8px; }
html[data-density="compact"] .workspace-bar, html[data-density="compact"] .tw-toolbar { min-height: 28px; }
html[data-density="compact"] .terminal-widget { font-size: 12px; }

.command-palette {
  position: fixed;
  z-index: 80;
  left: 50%;
  top: 12vh;
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 24px));
  background: #182436;
  border: 1px solid #31445d;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.command-palette input, .command-palette button { width: 100%; text-align: left; }
html[data-theme="light"] .dock-shell, html[data-theme="light"] .terminal-widget { background: #f4f7fb; color: #1c2836; }
html[data-theme="light"] .workspace-bar, html[data-theme="light"] .tw-toolbar { background: #e7eef6; }
html[data-theme="light"] .workspace-bar button, html[data-theme="light"] .tw-frame { background: white; color: #1c2836; }
