/*! Solar System Repair Co. | Source: https://orbitalforest.com */
/* One portrait/message row, then destination and pay across the screen. */
#game-shell[data-scene="workshop"] .mission-computer-card .call-copy.dialogue-panel {
  --caller-size: 134px;
  grid-template-columns: var(--caller-size) minmax(0, 1fr);
  gap: 14px 18px;
  align-content: start;
}
#game-shell[data-scene="workshop"] .mission-computer-card .call-copy .dialogue-portrait {
  width: var(--caller-size); height: var(--caller-size);
  border-image: none; overflow: hidden;
}
#game-shell[data-scene="workshop"] .mission-computer-card .call-copy .dialogue-portrait img {
  width: 100%; height: 100%; object-fit: contain;
}
#game-shell[data-scene="workshop"] .mission-computer-card .call-copy > :is(.mission-facts, .terminal-actions, .call-controls) {
  grid-column: 1 / -1; margin: 0; min-width: 0;
}
#game-shell[data-scene="workshop"] .mission-computer-card .call-copy .mission-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; padding-top: 8px; border-top: 1px solid #31575c;
}
#game-shell[data-scene="workshop"] .mission-computer-card .call-copy .mission-facts :is(dt, dd) {
  white-space: normal; overflow-wrap: anywhere;
}
#game-shell[data-scene="workshop"] .mission-computer-card .call-copy .terminal-actions button { min-height: 48px; width: 100%; }
#game-shell[data-scene="workshop"] .mission-computer-card .call-copy .call-controls:has(> button[hidden]) { display: none; }
#game-shell[data-scene="workshop"] .workshop-aside .review-code { margin-bottom: 8px; }
#game-shell[data-ui-layout]:not([data-ui-layout="desktop"]) .mission-computer-card .call-copy.dialogue-panel {
  --caller-size: 96px; gap: 8px 12px; padding: 10px;
}
#game-shell[data-ui-layout]:not([data-ui-layout="desktop"]) .mission-computer-card .call-copy .dialogue-content {
  gap: 6px;
}
#game-shell[data-ui-layout]:not([data-ui-layout="desktop"]) .mission-computer-card .call-copy .call-line {
  padding: 0; line-height: 1.4;
}
#game-shell[data-ui-layout]:not([data-ui-layout="desktop"]) .mission-computer-card .call-copy .caller-meta { flex-wrap: wrap; gap: 4px; }
/* A small world layer shares the Workshop camera. No input or animation loop. */
.workshop-dust { position: absolute; inset: 0; z-index: 5; overflow: hidden; pointer-events: none; }
.workshop-dust i {
  position: absolute; left: var(--mote-x); top: var(--mote-y);
  width: var(--mote-size); height: var(--mote-size); border-radius: 50%;
  background: #fff2ce; opacity: 0;
  box-shadow: 0 0 3px #ffdd9b44;
  animation: workshop-mote var(--mote-time) ease-in-out var(--mote-delay) infinite;
  will-change: transform, opacity;
}
@keyframes workshop-mote {
  0%, 100% { opacity: 0; transform: translate3d(0, 10px, 0); }
  25% { opacity: .34; }
  50% { opacity: .55; transform: translate3d(var(--mote-drift), -18px, 0); }
  75% { opacity: .28; }
  90% { transform: translate3d(calc(var(--mote-drift) * -.25), -42px, 0); }
}
body.is-page-hidden .workshop-dust i,
#game-shell:not([data-scene="workshop"]) .workshop-dust i,
#game-shell:not([data-workshop-view="explore"]) .workshop-dust i { animation-play-state: paused; }
body.reduce-motion .workshop-dust { display: none; }
@media (prefers-reduced-motion: reduce) { .workshop-dust { display: none; } }
/* Clear legacy absolute-terminal height limits inside the dispatch grid. */
#game-shell[data-scene="workshop"] .mission-computer-card .mission-terminal {
  min-height: 0; max-height: none; align-self: stretch;
}
#game-shell[data-scene="workshop"] .mission-computer-card .call-copy .caller-meta {
  margin: 0; justify-content: space-between; align-items: start;
}
#game-shell[data-scene="workshop"][data-ui-layout]:not([data-ui-layout="desktop"]) .mission-computer-card .mission-terminal {
  height: 100%; overflow-y: auto; overscroll-behavior: contain;
}
/* On phones the request gets the full width below the portrait and heading. */
#game-shell[data-scene="workshop"][data-ui-layout]:not([data-ui-layout="desktop"]) .mission-computer-card .call-copy .dialogue-content { display: contents; }
#game-shell[data-scene="workshop"][data-ui-layout]:not([data-ui-layout="desktop"]) .mission-computer-card .call-copy .dialogue-portrait { grid-row: 1 / 4; }
#game-shell[data-scene="workshop"][data-ui-layout]:not([data-ui-layout="desktop"]) .mission-computer-card .call-copy .caller-meta { grid-column: 2; grid-row: 1; }
#game-shell[data-scene="workshop"][data-ui-layout]:not([data-ui-layout="desktop"]) .mission-computer-card .call-copy h1 { grid-column: 2; grid-row: 2; }
#game-shell[data-scene="workshop"][data-ui-layout]:not([data-ui-layout="desktop"]) .mission-computer-card #call-review-code { grid-column: 2; grid-row: 3; }
#game-shell[data-scene="workshop"][data-ui-layout]:not([data-ui-layout="desktop"]) .mission-computer-card .call-copy .call-line { grid-column: 1 / -1; grid-row: 4; }
#game-shell :is(#backyard-dialogue-console, #beach-dialogue-console) .mission-dialogue-close {
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
}
