/*! Solar System Repair Co. | Source: https://orbitalforest.com */
/* One physical enclosure around a continuous computer display. */
#game-shell[data-scene="workshop"] .workshop-terminal {
  position: absolute; inset: auto; top: 50%; left: 50%;
  display: grid; grid-template-rows: auto minmax(0, 1fr);
  width: min(1000px, calc(100% - 24px)); height: min(680px, calc(100% - 24px));
  max-height: calc(100% - 24px); overflow: hidden; padding: 5px;
  border: 25px solid transparent; border-radius: 0;
  border-image: url("assets/mission-terminal-frame-v1.webp") 121 127 / 25px stretch;
  background: #041b20; background-clip: padding-box;
  transform: translate(-50%, -50%); box-shadow: none;
  filter: drop-shadow(0 9px 18px #000a);
  color: #c7e5d7; font-family: "Courier New", monospace;
}
#game-shell[data-scene="workshop"] .upgrade-terminal {
  border-image-source: url("assets/field-kit-frame-v1.webp"); border-image-slice: 113 117;
}
#game-shell[data-scene="workshop"] .workshop-terminal::before,
#game-shell[data-scene="workshop"] .workshop-terminal::after { content: none; }
#game-shell[data-scene="workshop"] .workshop-terminal-screen {
  min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain;
  scrollbar-color: #528579 #071a20; scrollbar-width: thin;
  background: repeating-linear-gradient(0deg, #b0f4cd04 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at 50% 0, #143b3e, #061c21 85%);
}
#game-shell[data-scene="workshop"] .souvenir-terminal .workshop-terminal-screen {
  background: repeating-linear-gradient(0deg, #eacb7e04 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at 50% 0, #263b35, #0a221f 85%);
}
#game-shell[data-scene="workshop"] .workshop-terminal :is(.shop-titlebar, .shop-footer, .shop-wallet, .shop-card, .collection-card, .shop-item-badge, .collection-card-art) {
  border: 0; border-image: none; border-radius: 0; box-shadow: none;
  background: transparent; padding: 0; color: inherit;
}
#game-shell[data-scene="workshop"] .workshop-terminal .shop-titlebar {
  min-height: 44px; padding: 0 10px 5px; gap: 12px; margin: 0;
  color: #f0c176; font-size: 11px; letter-spacing: .08em;
}
#game-shell[data-scene="workshop"] .workshop-terminal :is(.shop-titlebar button, .shop-buy-button) {
  min-height: 44px; border: 1px solid #7aaf9c; border-image: none;
  border-radius: 2px; padding: 7px 11px; background: #143c3a;
  box-shadow: none; text-shadow: none; color: #d7f4d4;
  font: 700 11px/1.2 "Courier New", monospace; letter-spacing: .03em;
}
#game-shell[data-scene="workshop"] .workshop-terminal :is(.shop-titlebar button, .shop-buy-button):hover:not(:disabled),
#game-shell[data-scene="workshop"] .workshop-terminal :is(.shop-titlebar button, .shop-buy-button):focus-visible {
  background: #285b50; outline: 2px solid #edc67e; outline-offset: 2px;
}
#game-shell[data-scene="workshop"] .workshop-terminal .shop-buy-button:active:not(:disabled) { background: #071f20; transform: translateY(1px); }
#game-shell[data-scene="workshop"] .workshop-terminal .shop-buy-button:disabled { opacity: .65; }
#game-shell[data-scene="workshop"] .workshop-terminal .shop-heading {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding: 18px 20px 16px; border-bottom: 1px solid #6fa29355;
}
#game-shell[data-scene="workshop"] .workshop-terminal .shop-heading > div:first-child { min-width: 0; }
#game-shell[data-scene="workshop"] .workshop-terminal .eyebrow { font-size: 10px; color: #82b8a5; }
#game-shell[data-scene="workshop"] .workshop-terminal h1 {
  margin-top: 5px; color: #d9efd1; font: 700 clamp(22px, 2.8vw, 32px)/1.15 "Courier New", monospace;
}
#game-shell[data-scene="workshop"] .workshop-terminal .shop-heading > div:first-child p:last-child {
  display: block; margin-top: 8px; color: #a6c8b9; font-size: 12px; line-height: 1.45;
}
#game-shell[data-scene="workshop"] .workshop-terminal .shop-wallet { min-width: 110px; text-align: right; padding-top: 2px; }
#game-shell[data-scene="workshop"] .workshop-terminal .shop-wallet span { font-size: 9px; color: #9cc3ad; }
#game-shell[data-scene="workshop"] .workshop-terminal .shop-wallet strong { color: #f0cd85; font-size: 20px; }
#game-shell[data-scene="workshop"] .workshop-terminal .shop-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 0 14px;
}
#game-shell[data-scene="workshop"] .workshop-terminal .shop-filters {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 20px;
  border-bottom: 1px solid #6fa29355;
}
#game-shell[data-scene="workshop"] .workshop-terminal .shop-filters button {
  min-height: 44px; flex: 1 1 auto; padding: 7px 10px; border: 1px solid #528579;
  border-radius: 2px; background: transparent; box-shadow: none; color: #a6c8b9;
  font: 700 11px/1.2 "Courier New", monospace;
}
#game-shell[data-scene="workshop"] .workshop-terminal .shop-filters button[aria-pressed="true"] {
  background: #285b50; color: #f0cd85; border-color: #d4b674;
}
#game-shell[data-scene="workshop"] .workshop-terminal .shop-filters button:focus-visible {
  outline: 2px solid #edc67e; outline-offset: 2px;
}
#game-shell[data-scene="workshop"] .workshop-terminal .shop-card {
  display: grid; grid-template-columns: 100px minmax(0, 1fr) auto;
  grid-template-areas: "badge heading price" "badge copy copy" "badge effect action";
  gap: 8px 10px; padding: 20px 12px; min-width: 0;
  border-bottom: 1px solid #6fa29344;
}
#game-shell[data-scene="workshop"] .workshop-terminal .shop-card:nth-child(odd) { border-right: 1px solid #6fa29344; }
#game-shell[data-scene="workshop"] .workshop-terminal .shop-item-badge {
  display: flex; align-items: center; justify-content: center; width: 100px; height: 112px;
  align-self: center; overflow: visible;
}
#game-shell[data-scene="workshop"] .workshop-terminal .shop-item-badge img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
#game-shell[data-scene="workshop"] .workshop-terminal .shop-item-heading strong { white-space: normal; overflow: visible; font: 700 14px/1.3 "Courier New", monospace; color: #d9efd1; }
#game-shell[data-scene="workshop"] .workshop-terminal .shop-item-heading span { font-size: 9px; color: #82b8a5; }
#game-shell[data-scene="workshop"] .workshop-terminal .shop-item-copy { font-size: 12px; line-height: 1.45; color: #acc7bd; }
#game-shell[data-scene="workshop"] .workshop-terminal .shop-item-price { font-size: 12px; color: #f0cd85; }
#game-shell[data-scene="workshop"] .workshop-terminal .shop-item-effect { font-size: 10px; line-height: 1.35; color: #a2e6b1; }
#game-shell[data-scene="workshop"] .workshop-terminal .shop-card.is-owned .shop-buy-button { color: #a2e6b1; border-color: #436e56; }
#game-shell[data-scene="workshop"] .workshop-terminal .shop-footer { display: flex; gap: 12px; justify-content: space-between; padding: 12px 20px; font-size: 10px; color: #9bbbaf; }
#game-shell[data-scene="workshop"] .workshop-terminal .collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0 16px 16px; }
#game-shell[data-scene="workshop"] .workshop-terminal .collection-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 110px; padding: 14px 10px; border-bottom: 1px solid #6fa29344; }
#game-shell[data-scene="workshop"] .workshop-terminal .collection-card-art { display: grid; place-items: center; width: 64px; height: 64px; font-size: 28px; color: #56736a; }
#game-shell[data-scene="workshop"] .workshop-terminal .collection-card-location { color: #b0c786; font-size: 10px; }
#game-shell[data-scene="workshop"] .workshop-terminal .collection-card strong { font-size: 13px; color: #e1dfb7; }
#game-shell[data-scene="workshop"] .workshop-terminal .collection-card p { font-size: 11px; color: #a5bcae; line-height: 1.4; }
#game-shell[data-scene="workshop"] .workshop-terminal .collection-card.is-missing strong { color: #a5bcae; }
@media (max-width: 700px), (max-height: 550px) {
  #game-shell[data-scene="workshop"] .workshop-terminal { width: calc(100% - 12px); height: calc(100% - 12px); max-height: calc(100% - 12px); border-width: 15px; border-image-width: 15px; padding: 2px; }
  #game-shell[data-scene="workshop"] .workshop-terminal .shop-titlebar { padding: 0 5px 4px; font-size: 9px; }
  #game-shell[data-scene="workshop"] .workshop-terminal .shop-heading { padding: 12px; gap: 10px; }
  #game-shell[data-scene="workshop"] .workshop-terminal .shop-wallet { min-width: 85px; }
  #game-shell[data-scene="workshop"] .workshop-terminal .shop-wallet strong { font-size: 16px; }
  #game-shell[data-scene="workshop"] .workshop-terminal .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 6px 8px; }
  #game-shell[data-scene="workshop"] .workshop-terminal .shop-grid { padding: 0 6px; }
  #game-shell[data-scene="workshop"] .workshop-terminal .shop-filters { padding: 8px 12px; gap: 4px; }
  #game-shell[data-scene="workshop"] .workshop-terminal .shop-card { grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "badge heading" "badge price" "copy copy" "effect action"; padding: 14px 10px; }
  #game-shell[data-scene="workshop"] .workshop-terminal .shop-item-badge { width: 76px; height: 84px; }
  #game-shell[data-scene="workshop"] .workshop-terminal .shop-item-price { justify-self: start; }
  #game-shell[data-scene="workshop"] .workshop-terminal .shop-footer { padding: 12px; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  #game-shell[data-scene="workshop"] .workshop-terminal .shop-heading { flex-wrap: wrap; }
  #game-shell[data-scene="workshop"] .workshop-terminal .shop-wallet { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; }
  #game-shell[data-scene="workshop"] .workshop-terminal .shop-grid,
  #game-shell[data-scene="workshop"] .workshop-terminal .collection-grid { grid-template-columns: minmax(0, 1fr); }
  #game-shell[data-scene="workshop"] .workshop-terminal .shop-card:nth-child(odd) { border-right: 0; }
  #game-shell[data-scene="workshop"] .workshop-terminal .collection-card { min-height: 95px; }
}
@media (min-width: 481px) and (max-height: 450px) {
  #game-shell[data-scene="workshop"] .workshop-terminal .shop-heading { padding: 8px 12px; align-items: center; }
  #game-shell[data-scene="workshop"] .workshop-terminal h1 { margin: 0; font-size: 20px; }
  #game-shell[data-scene="workshop"] .workshop-terminal .shop-heading .eyebrow,
  #game-shell[data-scene="workshop"] .workshop-terminal .shop-heading > div:first-child p:last-child { display: none; }
  #game-shell[data-scene="workshop"] .workshop-terminal .shop-card { padding: 12px 8px; gap: 6px 8px; }
  #game-shell[data-scene="workshop"] .workshop-terminal .collection-card { min-height: 84px; padding: 10px 8px; }
}
