.terminal-showcase {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  background: var(--bg);
  color: var(--fg);
  font:
    12px/1.4 -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  container-type: inline-size;
  text-align: left;
  pointer-events: none;
  transition: opacity 0.2s;
}
.terminal-showcase.showcase-ready {
  opacity: 1;
}
.terminal-screen-glass > .terminal-showcase {
  inset: 9px 0 0;
  filter: blur(var(--display-blur, 0px)) hue-rotate(var(--display-hue, 0deg));
}
.desktop-display .display-panel {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.desktop-display .display-panel > img {
  position: absolute;
  inset: 7px;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  object-fit: cover;
  object-position: top;
}
.desktop-display .display-panel > .terminal-showcase {
  inset: 7px;
  border-radius: 5px;
}
.showcase-gallery.has-live-showcase {
  aspect-ratio: 1.6;
}
.showcase-gallery.has-live-showcase > #terminal-capture {
  opacity: 0;
}
.showcase-gallery.has-live-showcase > .terminal-showcase {
  z-index: 1;
}
.showcase-gallery.has-live-showcase > .capture-brand,
.showcase-gallery.has-live-showcase > .capture-statement {
  display: none;
}
.desktop-capture:not(.showcase-gallery) > .terminal-showcase {
  display: none;
}
.showcase-bar {
  height: 6%;
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 2cqw;
  padding: 0 1.5cqw;
  border-bottom: 1px solid var(--line);
  font-size: 1cqw;
  white-space: nowrap;
}
.showcase-bar img {
  width: 1.8cqw !important;
  height: 1.8cqw !important;
  min-width: 14px;
  min-height: 14px;
  object-fit: contain !important;
  filter: none !important;
  border: 0;
  border-radius: 0;
  flex-shrink: 0;
}
.desktop-display .showcase-bar img {
  width: 2.2cqw !important;
  height: 2.2cqw !important;
  min-width: 10px;
  min-height: 10px;
}
.stacked-devices { aspect-ratio: 1.4; }
@media (max-width: 700px) {
  .stacked-devices { aspect-ratio: 1.12; }
  .desktop-display .display-panel > img {
    inset: 4px;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
  }
  .desktop-display .display-panel > .terminal-showcase { inset: 4px; }
}
.dark .showcase-bar img {
  filter: invert(1) !important;
}
.showcase-active-tab {
  padding: 0.6cqw 1cqw;
  background: var(--sub);
  border: 1px solid var(--line);
  border-radius: 30px;
}
.showcase-bar-end {
  margin-left: auto;
}
.showcase-panes {
  height: 94%;
  padding: 0.8cqw;
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.6fr);
  gap: 0.8cqw;
}
.showcase-panes > section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 1.7cqw;
  overflow: hidden;
}
.showcase-panes header {
  height: 3.5cqw;
  min-height: 25px;
  display: flex;
  align-items: center;
  gap: 0.6cqw;
  padding: 0 1.1cqw;
  border-bottom: 1px solid var(--line);
  font-size: 1cqw;
  color: var(--muted);
}
.showcase-panes header > span {
  margin-right: auto;
}
.showcase-panes header > i {
  width: 0.5cqw;
  height: 0.5cqw;
  border-radius: 50%;
  background: #ce7d78;
}
.showcase-panes header > i:nth-last-child(2) {
  background: #bca45e;
}
.showcase-panes header > i:last-child {
  background: #65b594;
}
.showcase-price {
  margin: 1.7cqw;
  padding: 1.5cqw;
  background: var(--sub);
  border: 1px solid var(--line);
  border-radius: 1.6cqw;
}
.showcase-ticker {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1cqw;
}
.showcase-ticker b {
  font-size: 1.6cqw;
}
.showcase-ticker small {
  display: block;
  font-size: 0.9cqw;
  font-weight: 400;
  color: var(--muted);
}
.showcase-ticker > span {
  font-size: 0.7cqw;
  color: var(--muted);
}
.showcase-quote {
  display: block;
  font-size: 3cqw;
  margin-top: 1cqw;
  letter-spacing: -0.05em;
}
.showcase-positive {
  font-size: 0.8cqw;
  color: #3aaa77;
  margin: 0;
}
.showcase-chart-tabs {
  display: flex;
  gap: 1cqw;
  font-size: 0.8cqw;
  align-items: center;
  margin: 1.8cqw 0;
}
.showcase-chart-tabs b {
  background: var(--bg);
  padding: 0.6cqw 1cqw;
  border-radius: 20px;
}
.showcase-price svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 32cqw;
}
.showcase-grid {
  fill: none;
  stroke: var(--line);
  stroke-width: 0.8;
}
.showcase-price svg text {
  fill: var(--muted);
  font:
    9px -apple-system,
    sans-serif;
}
.showcase-watchlist {
  margin: 1.5cqw;
  font-size: 1cqw;
  display: flex;
  gap: 1cqw;
  flex-wrap: wrap;
}
.showcase-watchlist > span {
  width: 100%;
}
.showcase-watchlist > b {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 1cqw;
  padding: 1cqw;
}
.showcase-watchlist small {
  display: block;
  color: var(--muted);
}
.showcase-timeline {
  padding: 2cqw 2.5cqw 1cqw;
  display: flex;
  justify-content: space-between;
  font:
    0.9cqw ui-monospace,
    monospace;
}
.showcase-date-rail {
  height: 1px;
  background: var(--line);
  margin: 1cqw 2.5cqw;
  position: relative;
}
.showcase-date-rail i {
  position: absolute;
  left: calc(var(--preview-progress, 0.25) * 100%);
  top: -0.4cqw;
  width: 0.8cqw;
  height: 0.8cqw;
  border-radius: 50%;
  background: var(--muted);
  transition: left 1s ease;
}
.showcase-source {
  font:
    0.75cqw ui-monospace,
    monospace;
  color: var(--muted);
  margin: 2cqw 2cqw 1cqw;
}
.showcase-fx {
  display: flex;
  gap: 0.6cqw;
  padding: 0 2cqw;
}
.showcase-fx > span {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--sub);
  border-radius: 1.2cqw;
  padding: 0.7cqw;
}
.showcase-fx small,
.showcase-fx b {
  display: block;
  font:
    0.85cqw ui-monospace,
    monospace;
}
.showcase-fx small {
  font-size: 0.7cqw;
  color: var(--muted);
  margin-bottom: 0.4cqw;
}
.showcase-globe {
  position: relative;
  width: 100%;
  height: 31cqw;
  min-height: 150px;
}
.showcase-globe canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.showcase-globe .globe-pin {
  display: none;
}
.showcase-event {
  display: flex;
  justify-content: space-between;
  gap: 1cqw;
  margin: 0 2cqw;
  padding: 1.2cqw 1cqw;
  border: 1px solid var(--line);
  border-radius: 1.2cqw;
  font-size: 0.85cqw;
}
.showcase-event span {
  color: var(--muted);
}
.showcase-playing .showcase-chart-ink {
  animation: showcase-reveal 1.7s cubic-bezier(0.2, 0.7, 0.25, 1) both;
}
@keyframes showcase-reveal {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: 0.4;
  }
  to {
    clip-path: inset(0);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .terminal-showcase,
  .showcase-date-rail i {
    transition: none;
  }
  .showcase-playing .showcase-chart-ink {
    animation: none;
  }
}
/* The hero's hardware canvas starts transparent; the nested globe does not. */
.terminal-showcase .showcase-globe canvas{opacity:1;transition:none}
/* Fit both research panels into the visible laptop screen at every desktop height. */
.terminal-screen-glass .showcase-panes{height:calc(100% - 34px);min-height:0}
.terminal-screen-glass .showcase-bar{height:34px;min-height:34px}
.terminal-screen-glass .showcase-global{display:grid;grid-template-rows:34px 30px 6px 50px minmax(0,1fr);min-height:0}
.terminal-screen-glass .showcase-global>header{height:34px;min-height:0}
.terminal-screen-glass .showcase-timeline{padding:7px 2cqw 4px;align-items:center}
.terminal-screen-glass .showcase-date-rail{margin:2px 2cqw}
.terminal-screen-glass .showcase-source,.terminal-screen-glass .showcase-event{display:none}
.terminal-screen-glass .showcase-fx{padding:5px 2cqw 0}
.terminal-screen-glass .showcase-fx>span{padding:5px 9px}
.terminal-screen-glass .showcase-globe{height:100%;min-height:0}
.terminal-screen-glass .showcase-market{min-height:0}
.terminal-screen-glass .showcase-price{margin:12px;height:calc(100% - 60px);padding:14px;display:flex;flex-direction:column;min-height:0}
.terminal-screen-glass .showcase-quote{font-size:clamp(22px,2.7cqw,38px);margin-top:4px}
.terminal-screen-glass .showcase-chart-tabs{margin:8px 0}
.terminal-screen-glass .showcase-price svg{flex:1;min-height:0;max-height:none;width:100%}
.terminal-screen-glass .showcase-watchlist{display:none}

/* The new workspace is the loading frame; never flash the retired capture. */
.terminal-screen-glass > .terminal-showcase{opacity:1;transition:none}
@media(min-width:1440px){
  .future-terminal{width:min(1440px,100%);left:50%;right:auto;transform-origin:50% 100%;margin-left:max(-720px,-50%)}
  .terminal-screen-closeup{left:0;width:100%}
}
