/* Compact web layout. The original command desk is desktop-first; this keeps
   every panel reachable on tablets and phones without altering desktop visuals. */
@media (max-width: 900px) {
  html, body {
    height: auto;
    min-height: 100%;
    overflow: auto;
  }
  body { font-size: 13px; }
  .app-shell {
    display: block;
    height: auto;
    min-height: 100vh;
  }
  .titlebar {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 12px;
    gap: 8px;
    -webkit-app-region: no-drag;
  }
  .brand-block { width: 100%; }
  .brand-mark { width: 34px; height: 34px; flex-basis: 34px; }
  .brand-mark svg { width: 34px; height: 34px; }
  .titlebar-center {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .titlebar-actions { margin-left: auto; flex-wrap: wrap; }
  .operator-avatar { display: none; }
  .ticker-rail { display: none; }
  .workspace {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    min-height: 0;
  }
  .left-rail, .center-stage, .right-rail { width: 100%; min-width: 0; }
  .left-rail { display: block; }
  .rail-heading { padding: 0 3px 4px; }
  .strategy-list {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 5px;
    scroll-snap-type: x proximity;
  }
  .strategy-list > * {
    flex: 0 0 252px;
    min-height: 92px;
    height: auto;
    scroll-snap-align: start;
  }
  .rail-engine { display: none; }
  .center-stage { display: flex; flex-direction: column; gap: 8px; }
  .hero-panel {
    display: block;
    min-height: 0;
    padding: 16px;
  }
  .hero-copy h1 { font-size: 23px; white-space: normal; }
  .hero-copy p { display: block; max-width: none; }
  .hero-controls { margin-top: 12px; flex-wrap: wrap; }
  .hero-counter {
    margin-top: 13px;
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
  }
  .counter-value { font-size: 38px; }
  .hero-stats {
    display: flex !important;
    flex-direction: row;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
  }
  .hero-stat {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 0;
    border-bottom: 0;
  }
  .hero-stat > span { flex: none; }
  .hero-stat em { text-align: left; }
  .hero-corner-label { display: none; }
  .flow-panel { min-height: 244px; }
  .strategy-flow {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0 4px;
  }
  .strategy-flow > * { flex: 0 0 86px; }
  .center-split { display: flex; flex-direction: column; gap: 8px; }
  .signals-panel { min-height: 420px; }
  .factor-panel { display: flex !important; min-height: 410px; }
  .right-rail { display: flex; flex-direction: column; gap: 8px; }
  .radar-panel, .insight-panel, .log-panel { min-height: 300px; }
  .market-list { max-height: 330px; }
  .statusbar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    height: auto;
    padding: 9px 12px;
    gap: 6px 10px;
  }
  .keyboard-hint { display: none; }
  .trade-sheet, .auto-sheet, .settings-sheet { width: 100% !important; max-width: 100%; }
  .toast { right: 12px; bottom: 12px; }
}
