
/* TERMINAL: read-only unified monitoring, completely isolated from trading styles. */
.terminal-screen{--tt-ink:#e6f1ff;--tt-soft:#91a8c6;--tt-border:#233754;--tt-inner:#0b1424;--tt-glow:#65c3ff;overflow:hidden;color:var(--tt-ink);padding:clamp(12px,3vw,24px)}
.terminal-screen .tt-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:15px}
.terminal-screen .tt-eyebrow{font-size:10px;letter-spacing:.17em;text-transform:uppercase;color:#65d3e7;font-weight:800}
.terminal-screen .tt-title{font-size:clamp(22px,4vw,30px);font-weight:850;line-height:1.1;letter-spacing:-.04em;margin:6px 0}
.terminal-screen .tt-sub{font-size:12px;color:var(--tt-soft);line-height:1.6;margin:0;max-width:670px}
.terminal-screen .tt-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center}
.terminal-screen .tt-mode{background:#0c2931;border:1px solid #236473;color:#95ede6;border-radius:100px;font-size:11px;font-weight:800;padding:8px 11px;white-space:nowrap}
.terminal-screen .tt-refresh{border:1px solid #376182;border-radius:10px;background:#112945;color:#e6f3ff;padding:10px 12px;font-size:12px;cursor:pointer}
.terminal-screen .tt-refresh:disabled{opacity:.5;cursor:wait}
.terminal-screen .tt-strip{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:14px 0 20px}
.terminal-screen .tt-source{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--tt-border);background:#0b1526;border-radius:100px;padding:7px 10px;color:var(--tt-soft);font-size:10px}
.terminal-screen .tt-dot{width:6px;height:6px;background:#60718a;box-shadow:0 0 8px #60718a;border-radius:50%}
.terminal-screen .tt-source.tt-up .tt-dot{background:#46d9a3;box-shadow:0 0 8px #46d9a3}
.terminal-screen .tt-source.tt-error .tt-dot{background:#f58a87;box-shadow:0 0 8px #f58a87}
.terminal-screen .tt-section-heading{font-size:13px;letter-spacing:.015em;color:#dce9fc;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:18px 0 10px;font-weight:750}
.terminal-screen .tt-section-heading small{color:var(--tt-soft);font-weight:400;font-size:10px}
.terminal-screen .tt-card{background:linear-gradient(155deg,#121f34,#0b1425);border:1px solid var(--tt-border);border-radius:16px;min-width:0;padding:15px;position:relative}
.terminal-screen .tt-markets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.terminal-screen .tt-market-head{display:flex;justify-content:space-between;align-items:flex-start;gap:6px}
.terminal-screen .tt-market-name{font-size:11px;color:var(--tt-soft);font-weight:650;letter-spacing:.08em}
.terminal-screen .tt-price{font-size:clamp(23px,3.8vw,35px);letter-spacing:-.05em;font-weight:850;font-variant-numeric:tabular-nums;margin-top:7px;line-height:1.15}
.terminal-screen .tt-pill{font-size:10px;font-weight:700;color:#93c9f0;background:#19314b;border:1px solid #355373;border-radius:7px;padding:5px 7px;white-space:nowrap}
.terminal-screen .tt-chart{height:124px;margin:13px -3px 6px;position:relative;overflow:hidden}
.terminal-screen .tt-chart svg{width:100%;height:100%;display:block;overflow:visible}
.terminal-screen .tt-chart-empty{font-size:11px;color:var(--tt-soft);padding:36px 0;text-align:center}
.terminal-screen .tt-chart-note{font-size:10px;color:var(--tt-soft);display:flex;align-items:center;justify-content:space-between;gap:6px}
.terminal-screen .tt-ai-layout{display:grid;grid-template-columns:minmax(210px,.83fr) 1.3fr;gap:12px}
.terminal-screen .tt-core{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:230px;background:radial-gradient(ellipse at 50% 35%,#143f60,#101b31 48%,#0b1527 85%);overflow:hidden}
.terminal-screen .tt-orb{width:122px;height:122px;border-radius:50%;display:grid;place-items:center;position:relative;background:radial-gradient(circle at 38% 30%,#38b8fa6b,#073157 58%,#050d1b 76%);box-shadow:0 0 54px #2785e94a,inset 0 0 35px #54b5e566}
.terminal-screen .tt-orb::before,.terminal-screen .tt-orb::after{content:"";position:absolute;inset:-16px;border:1px solid #55c9e599;border-radius:50%;transform:rotate(-22deg) scaleY(.55);animation:ttOrbit 10s linear infinite}
.terminal-screen .tt-orb::after{inset:-26px;border-color:#37ad9d77;transform:rotate(35deg) scaleY(.7);animation-duration:14s;animation-direction:reverse}
.terminal-screen .tt-orb-center{position:relative;z-index:2;font-size:15px;font-weight:900;letter-spacing:.12em;color:#d9faff;text-shadow:0 0 20px #42c8ff}
@keyframes ttOrbit{0%{transform:rotate(0) scaleY(.58)}100%{transform:rotate(360deg) scaleY(.58)}}
.terminal-screen .tt-core-caption{font-size:11px;font-weight:700;margin-top:24px;color:#c7eaff}
.terminal-screen .tt-core-detail{font-size:10px;color:var(--tt-soft);text-align:center;margin-top:6px;max-width:240px;line-height:1.5}
.terminal-screen .tt-signals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.terminal-screen .tt-signal-box{border:1px solid #253a55;background:#0b1525;border-radius:11px;padding:12px;min-width:0}
.terminal-screen .tt-signal-label{font-size:11px;color:var(--tt-soft)}
.terminal-screen .tt-direction{display:block;font-weight:850;font-size:22px;margin:7px 0;font-variant-numeric:tabular-nums}
.terminal-screen .tt-mini{color:var(--tt-soft);font-size:11px;line-height:1.55;overflow-wrap:anywhere}
.terminal-screen .tt-buy{color:#53e6ac}.terminal-screen .tt-sell{color:#ff7f99}.terminal-screen .tt-wait{color:#f3c76e}.terminal-screen .tt-off{color:#8da1ba}
.terminal-screen .tt-systems{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.terminal-screen .tt-system-title{display:flex;justify-content:space-between;gap:10px;align-items:center}
.terminal-screen .tt-system-title b{font-size:12px}
.terminal-screen .tt-system-signal{font-weight:850;font-size:14px}
.terminal-screen .tt-system-sub{font-size:10px;color:var(--tt-soft);margin:4px 0 13px;line-height:1.45}
.terminal-screen .tt-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.terminal-screen .tt-metric{border-top:1px solid #243953;padding-top:8px;min-width:0}
.terminal-screen .tt-metric small{font-size:10px;color:var(--tt-soft);display:block}
.terminal-screen .tt-metric strong{font-size:14px;display:block;font-variant-numeric:tabular-nums;margin-top:3px;overflow-wrap:anywhere}
.terminal-screen .tt-system-footer{color:var(--tt-soft);font-size:10px;margin-top:12px;line-height:1.5}
.terminal-screen .tt-heatmap{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.terminal-screen .tt-heat{border:1px solid #2c3a51;background:#0d192a;border-radius:8px;padding:9px 7px;min-height:62px;display:flex;flex-direction:column;justify-content:space-between;min-width:0}
.terminal-screen .tt-heat.tt-heat-buy{background:#0d2e2c;border-color:#21775d}
.terminal-screen .tt-heat.tt-heat-sell{background:#351c30;border-color:#9e4366}
.terminal-screen .tt-heat.tt-heat-disabled{opacity:.42}
.terminal-screen .tt-heat-name{font-size:10px;line-height:1.2;font-weight:650;overflow-wrap:anywhere}
.terminal-screen .tt-heat-side{font-size:10px;font-weight:800;margin-top:8px}
.terminal-screen .tt-list{display:grid;gap:6px}
.terminal-screen .tt-trade{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid #23344e}
.terminal-screen .tt-trade:last-child{border:0}
.terminal-screen .tt-trade-name{font-size:11px;font-weight:750}
.terminal-screen .tt-trade-meta{font-size:10px;color:var(--tt-soft);margin-top:3px}
.terminal-screen .tt-trade-right{text-align:right;font-size:12px;font-weight:800;white-space:nowrap}
.terminal-screen .tt-footer{color:var(--tt-soft);line-height:1.5;font-size:10px;margin:16px 0 0}
.terminal-screen .tt-error-text{color:#ff98ab;font-size:11px;line-height:1.5}
@media(max-width:960px){.terminal-screen .tt-systems{grid-template-columns:repeat(2,minmax(0,1fr))}.terminal-screen .tt-heatmap{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:610px){
 .terminal-screen .tt-markets{grid-template-columns:1fr}
 .terminal-screen .tt-ai-layout{grid-template-columns:1fr}
 .terminal-screen .tt-core{min-height:205px}
 .terminal-screen .tt-systems{grid-template-columns:1fr}
 .terminal-screen .tt-heatmap{grid-template-columns:repeat(3,minmax(0,1fr))}
 .terminal-screen .tt-card{padding:12px}
 .terminal-screen .tt-chart{height:120px}
 .terminal-screen .tt-price{font-size:30px}
}
@media(prefers-reduced-motion:reduce){.terminal-screen .tt-orb::before,.terminal-screen .tt-orb::after{animation:none}}


/* Compact mobile command center. The overview fits the visible iPhone viewport;
   full logs and 41-strategy details live in separate internal views. */
.terminal-screen .tt-health,.terminal-screen .tt-view-switch,.terminal-screen .tt-mobile-summary,
.terminal-screen .tt-mobile-heading{display:none}
.terminal-screen .tt-pane{min-width:0}
.terminal-screen .tt-view-button:focus-visible,.terminal-screen .tt-quick-card:focus-visible{
 outline:2px solid #62c8fc;outline-offset:2px
}
@media(max-width:610px){
  body.tt-mobile-open{
    height:100dvh;min-height:100dvh;overflow:hidden;padding-bottom:0
  }
  body.tt-mobile-open>header{display:none}
  body.tt-mobile-open main{
    display:block!important;width:100%;max-width:none;min-height:0;
    padding:0!important;margin:0!important;gap:0
  }
  body.tt-mobile-open .nav{
    height:calc(60px + env(safe-area-inset-bottom));
    padding:7px 9px calc(7px + env(safe-area-inset-bottom));
    align-items:flex-start;flex-wrap:nowrap;justify-content:flex-start;gap:3px
  }
  body.tt-mobile-open .nav button{padding:8px 10px;font-size:11px;white-space:nowrap}
  body.tt-mobile-open #terminal-section{
    display:flex;flex-direction:column;gap:0;
    width:100%;max-width:none;min-height:0;
    height:calc(100dvh - 60px - env(safe-area-inset-bottom));
    padding:calc(7px + env(safe-area-inset-top)) 10px 5px;
    margin:0;border:0;border-radius:0;
    overflow:hidden;
    background:radial-gradient(ellipse at 85% 5%,#10233a,#090d16 60%)
  }
  .terminal-screen .tt-top{
    display:flex;flex:0 0 auto;flex-wrap:nowrap;align-items:center;gap:7px;
    margin:0 0 5px
  }
  .terminal-screen .tt-top>div:first-child{min-width:0;flex:1}
  .terminal-screen .tt-eyebrow,.terminal-screen .tt-sub,.terminal-screen .tt-mode{display:none}
  .terminal-screen .tt-title{
    font-size:18px;letter-spacing:-.035em;line-height:1.1;margin:1px 0 0;
    white-space:nowrap
  }
  .terminal-screen .tt-actions{gap:6px;flex-wrap:nowrap;align-items:center}
  .terminal-screen .tt-health{
    display:inline-flex;font-size:9px;color:#72d9af;background:#10271f;
    padding:6px 8px;border:1px solid #245641;border-radius:7px;white-space:nowrap
  }
  .terminal-screen .tt-health.tt-health-warning{color:#ffd28a;border-color:#695139;background:#342719}
  .terminal-screen .tt-refresh{
    display:grid;place-items:center;width:30px;height:30px;padding:0;font-size:0;
    border-radius:8px;flex-shrink:0
  }
  .terminal-screen .tt-refresh::before{content:"↻";font-size:23px;line-height:1}
  .terminal-screen .tt-strip{display:none}
  .terminal-screen .tt-view-switch{
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;
    flex:0 0 auto;margin:3px 0 5px;padding:3px;
    background:#111d31;border:1px solid #253754;border-radius:11px
  }
  .terminal-screen .tt-view-button{
    color:#90a9c5;font-size:10px;font-weight:700;line-height:1.1;
    min-height:29px;padding:7px 2px;background:transparent;
    border:0;border-radius:7px;cursor:pointer;white-space:nowrap
  }
  .terminal-screen .tt-view-button.is-active{background:#274969;color:#f0f8ff}
  .terminal-screen .tt-pane{display:none;min-height:0}
  .terminal-screen .tt-pane.is-active{
    display:flex;flex-direction:column;flex:1 1 auto;
    min-height:0;max-height:100%;overscroll-behavior:contain
  }
  .terminal-screen .tt-pane.is-active:not([data-tt-pane="overview"]){
    overflow-y:auto;-webkit-overflow-scrolling:touch;padding:0 2px 12px
  }
  .terminal-screen .tt-pane[data-tt-pane="overview"].is-active{overflow:hidden}
  .terminal-screen .tt-section-heading{
    font-size:10px;margin:7px 0 5px;font-weight:800;
    line-height:1.2;flex:0 0 auto
  }
  .terminal-screen .tt-section-heading small{font-size:9px}
  .terminal-screen .tt-card{border-radius:10px;padding:8px}
  .terminal-screen .tt-markets{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;
    flex:0 0 auto
  }
  .terminal-screen .tt-market-name{font-size:9px;letter-spacing:.02em}
  .terminal-screen .tt-price{font-size:18px;margin-top:2px;line-height:1.1}
  .terminal-screen .tt-pill{display:none}
  .terminal-screen .tt-chart{height:48px;margin:5px -2px 2px}
  .terminal-screen .tt-chart-empty{padding:10px 0;font-size:9px}
  .terminal-screen .tt-chart-note{font-size:8px;gap:0}
  .terminal-screen .tt-chart-note span:first-child{display:none}
  .terminal-screen .tt-ai-layout{display:block;flex:0 0 auto}
  .terminal-screen .tt-core{display:none}
  .terminal-screen .tt-ai-layout>.tt-card:not(.tt-core){
    padding:0;background:transparent;border:0;border-radius:0
  }
  .terminal-screen .tt-signals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
  .terminal-screen .tt-signal-box{border-radius:8px;padding:6px 8px;min-width:0}
  .terminal-screen .tt-signal-label{
    font-size:9px;line-height:1.1;white-space:nowrap;
    overflow:hidden;text-overflow:ellipsis
  }
  .terminal-screen .tt-direction{
    display:inline-block;font-size:16px;line-height:1;margin:4px 0 2px
  }
  .terminal-screen .tt-signal-box .tt-mini{
    font-size:9px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
  }
  .terminal-screen #ttAnalysisNote{display:none}
  .terminal-screen .tt-mobile-heading{display:flex}
  .terminal-screen .tt-mobile-summary{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;
    min-height:0;flex:0 0 auto
  }
  .terminal-screen .tt-quick-card:last-child:nth-child(odd){grid-column:1/-1}
  .terminal-screen .tt-quick-card{
    text-align:left;display:flex;align-items:center;justify-content:space-between;gap:6px;
    background:#101e31;border:1px solid #2a3f5b;border-radius:9px;
    color:#e5f4ff;padding:7px 8px;min-height:48px;width:100%;
    min-width:0;cursor:pointer
  }
  .terminal-screen .tt-quick-main{min-width:0;display:block}
  .terminal-screen .tt-quick-name{
    display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;
    font-size:10px;line-height:1.2;color:#b6cbe2
  }
  .terminal-screen .tt-quick-value{
    display:block;font-size:12px;font-weight:850;line-height:1.25;
    margin-top:3px;font-variant-numeric:tabular-nums;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis
  }
  .terminal-screen .tt-quick-meta{
    display:block;font-size:9px;line-height:1.15;color:#8faac8;
    margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
  }
  .terminal-screen .tt-quick-side{
    flex:0 0 auto;align-self:center;font-size:9px;font-weight:850;
    border:1px solid #29455a;border-radius:6px;padding:3px 5px;
  }
  .terminal-screen [data-tt-pane="systems"] .tt-systems{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .terminal-screen [data-tt-pane="systems"] .tt-card{padding:10px}
  .terminal-screen [data-tt-pane="systems"] .tt-system-title b{font-size:11px}
  .terminal-screen [data-tt-pane="systems"] .tt-system-sub{font-size:9px;margin:3px 0 9px}
  .terminal-screen [data-tt-pane="systems"] .tt-metrics{gap:6px}
  .terminal-screen [data-tt-pane="systems"] .tt-metric small{font-size:9px}
  .terminal-screen [data-tt-pane="systems"] .tt-metric strong{font-size:11px}
  .terminal-screen [data-tt-pane="systems"] .tt-system-footer{font-size:9px;margin-top:7px}
  .terminal-screen [data-tt-pane="strategies"] .tt-heatmap{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .terminal-screen [data-tt-pane="strategies"] .tt-heat{min-height:66px;padding:9px 7px}
  .terminal-screen [data-tt-pane="trades"] .tt-trade{padding:9px 0}
  .terminal-screen .tt-footer{font-size:9px;margin:11px 0 0}
}
@media(max-width:380px){
 .terminal-screen .tt-price{font-size:16px}
 .terminal-screen .tt-chart{height:35px}
 .terminal-screen .tt-signal-box{padding:5px 6px}
 .terminal-screen .tt-quick-card{min-height:43px;padding:5px 6px}
 .terminal-screen .tt-quick-value{font-size:11px}
}
@media(max-height:730px) and (max-width:610px){
 .terminal-screen .tt-chart{height:29px}
 .terminal-screen .tt-market-name{font-size:8px}
 .terminal-screen .tt-quick-card{min-height:40px;padding:4px 6px}
 .terminal-screen .tt-signal-box{padding:4px 6px}
 .terminal-screen .tt-section-heading{margin:4px 0 3px}
}


/* One AI CORE pulse. Visualizes only existing scanner signals, never sends orders. */
.terminal-screen .tt-ai-layout{display:block}
.terminal-screen .tt-ai-layout>.tt-card{min-width:0}
.terminal-screen .tt-brain{
  --pulse:#72cfff;--pulse-muted:#215481;
  display:flex;align-items:center;gap:18px;min-height:136px;
  margin-top:12px;padding:12px 21px;
  background:radial-gradient(ellipse at 15% 50%,#153757,#0c1628 55%,#0a1424);
  border-color:#28506b;isolation:isolate;overflow:hidden
}
.terminal-screen .tt-brain.tt-brain-buy{--pulse:#50e6a9;--pulse-muted:#146a5a;border-color:#27715d}
.terminal-screen .tt-brain.tt-brain-sell{--pulse:#fc7eab;--pulse-muted:#783053;border-color:#8f3b60}
.terminal-screen .tt-brain.tt-brain-wait{--pulse:#e5c576;--pulse-muted:#816027;border-color:#6a5737}
.terminal-screen .tt-brain.tt-brain-idle{--pulse:#8097b4;--pulse-muted:#43536b;border-color:#2b3f55}
.terminal-screen .tt-brain-visual{
  display:grid;place-items:center;position:relative;flex:0 0 108px;
  width:108px;height:108px;filter:drop-shadow(0 0 14px var(--pulse-muted))
}
.terminal-screen .tt-brain-sphere{
  width:75px;height:75px;border-radius:50%;display:grid;place-items:center;
  position:relative;z-index:2;
  border:1px solid var(--pulse);
  background:
    repeating-conic-gradient(from 0deg,transparent 0deg 12deg,var(--pulse-muted) 14deg 15deg,transparent 17deg 28deg),
    radial-gradient(circle at 32% 25%,var(--pulse),#0a2c40 24%,#081729 72%);
  box-shadow:0 0 22px var(--pulse-muted),inset 0 0 22px var(--pulse-muted);
  animation:ttBrainGlow 3s ease-in-out infinite
}
.terminal-screen .tt-brain-sphere::before{
  content:"";position:absolute;inset:13px;border-radius:50%;
  border:1px dashed var(--pulse);opacity:.6
}
.terminal-screen .tt-brain-sphere span{
  font-size:16px;font-weight:900;letter-spacing:.12em;color:#f1ffff;
  text-shadow:0 0 13px var(--pulse);position:relative
}
.terminal-screen .tt-brain-halo{
  position:absolute;inset:7px;border:1px solid var(--pulse);
  border-radius:50%;opacity:.7;transform:rotate(-35deg) scaleY(.57);
  animation:ttBrainOrbit 9s linear infinite;pointer-events:none
}
.terminal-screen .tt-brain-halo-two{
  inset:-3px;opacity:.35;transform:rotate(50deg) scaleY(.78);
  animation-duration:14s;animation-direction:reverse
}
.terminal-screen .tt-brain-info{min-width:0;flex:1;position:relative;z-index:3}
.terminal-screen .tt-brain-eyebrow{font-size:11px;letter-spacing:.08em;color:#a4bbd3;font-weight:800}
.terminal-screen .tt-brain-line{display:flex;align-items:center;gap:12px;margin:6px 0}
.terminal-screen .tt-brain-line strong{font-size:25px;letter-spacing:-.02em;line-height:1}
.terminal-screen .tt-brain-line span{
  font-size:10px;color:#b2c7de;border:1px solid #284460;
  border-radius:100px;padding:4px 8px;white-space:nowrap
}
.terminal-screen .tt-brain-votes{font-size:12px;color:#edf3fb;font-variant-numeric:tabular-nums;font-weight:800}
.terminal-screen .tt-brain-caption{font-size:10px;color:#9db0c9;margin-top:7px;line-height:1.35}
@keyframes ttBrainOrbit{0%{transform:rotate(0deg) scaleY(.59)}100%{transform:rotate(360deg) scaleY(.59)}}
@keyframes ttBrainGlow{0%,100%{box-shadow:0 0 14px var(--pulse-muted),inset 0 0 22px var(--pulse-muted)}
50%{box-shadow:0 0 29px var(--pulse-muted),inset 0 0 26px var(--pulse-muted)}}
@media(max-width:610px){
  .terminal-screen .tt-brain{
    gap:9px;min-height:76px;margin-top:6px;padding:5px 9px;
    border-radius:10px;flex:0 0 auto
  }
  .terminal-screen .tt-brain-visual{width:64px;height:64px;flex-basis:64px}
  .terminal-screen .tt-brain-sphere{width:47px;height:47px}
  .terminal-screen .tt-brain-sphere::before{inset:9px}
  .terminal-screen .tt-brain-sphere span{font-size:11px}
  .terminal-screen .tt-brain-halo{inset:5px}
  .terminal-screen .tt-brain-halo-two{inset:-1px}
  .terminal-screen .tt-brain-eyebrow{font-size:9px;letter-spacing:.04em}
  .terminal-screen .tt-brain-line{margin:2px 0 4px;gap:8px}
  .terminal-screen .tt-brain-line strong{font-size:18px}
  .terminal-screen .tt-brain-line span{font-size:9px;padding:2px 5px}
  .terminal-screen .tt-brain-votes{font-size:10px;line-height:1.2}
  .terminal-screen .tt-brain-caption{font-size:9px;margin-top:3px;line-height:1.15}
}
@media(max-width:380px), (max-height:760px) and (max-width:610px){
  .terminal-screen .tt-brain{min-height:66px;padding:3px 7px;gap:7px}
  .terminal-screen .tt-brain-visual{width:55px;height:55px;flex-basis:55px}
  .terminal-screen .tt-brain-sphere{width:40px;height:40px}
  .terminal-screen .tt-brain-line strong{font-size:16px}
  .terminal-screen .tt-brain-caption{display:none}
}
@media(prefers-reduced-motion:reduce){
  .terminal-screen .tt-brain-halo,.terminal-screen .tt-brain-sphere{animation:none}
}


/* iPhone overview: use the formerly empty lower space for a larger AI CORE.
   Flex growth consumes only unused space and keeps all existing cards visible. */
@media (max-width:610px){
  .terminal-screen .tt-pane[data-tt-pane="overview"].is-active > .tt-brain{
    flex:1 1 auto;
    min-height:66px;
    max-height:none;
    margin-top:6px;
    padding:5px 10px;
    gap:10px;
  }
  .terminal-screen .tt-pane[data-tt-pane="overview"]{
    --tt-brain-size:clamp(55px, calc(100dvh - 795px), 170px);
  }
  .terminal-screen .tt-pane[data-tt-pane="overview"] .tt-brain-visual{
    width:var(--tt-brain-size);
    height:var(--tt-brain-size);
    flex:0 0 var(--tt-brain-size);
  }
  .terminal-screen .tt-pane[data-tt-pane="overview"] .tt-brain-sphere{
    width:77%;height:77%;
  }
  .terminal-screen .tt-pane[data-tt-pane="overview"] .tt-brain-halo{
    inset:9%;
  }
  .terminal-screen .tt-pane[data-tt-pane="overview"] .tt-brain-halo-two{
    inset:1%;
  }
  .terminal-screen .tt-pane[data-tt-pane="overview"] .tt-brain-sphere::before{
    inset:17%;
  }
  .terminal-screen .tt-pane[data-tt-pane="overview"] .tt-brain-sphere span{
    font-size:clamp(11px, calc(var(--tt-brain-size) * .125), 22px);
  }
}
@media (min-width:400px) and (max-width:610px) and (min-height:880px){
  .terminal-screen .tt-pane[data-tt-pane="overview"] .tt-brain-eyebrow{font-size:10px}
  .terminal-screen .tt-pane[data-tt-pane="overview"] .tt-brain-line strong{font-size:24px}
  .terminal-screen .tt-pane[data-tt-pane="overview"] .tt-brain-votes{font-size:12px}
  .terminal-screen .tt-pane[data-tt-pane="overview"] .tt-brain-caption{font-size:10px}
}
/* Short screens keep the previous compact orb size to prevent clipping. */
@media (max-width:610px) and (max-height:780px){
  .terminal-screen .tt-pane[data-tt-pane="overview"]{--tt-brain-size:55px}
}
