.guide-button {
  display:grid; place-items:center; min-width:46px;
  background:#222925dc; color:#f4f1e8; border:1px solid #787b6e;
}
.guide-button:hover { background:#363a34 }
.workshop {
  width:min(830px,calc(100vw - 28px)); border:1px solid #59645e; border-top:3px solid var(--hot);
  background:linear-gradient(120deg,#232e2c,#141c1c 65%);
}
.workshop .panel-inner { padding:clamp(16px,3vw,31px) }
.workshop h2 { margin:5px 0 12px }
.workshop #panel-actions:empty { display:none }
.workshop .panel-kicker { letter-spacing:.18em }
.workshop #panel-actions .panel-button { justify-self:end; min-width:130px }
.station-strip,.bay-tabs {
  display:flex; align-items:center; gap:12px; border-top:1px solid #44504a;
  border-bottom:1px solid #44504a; margin-bottom:17px;
}
.station-strip { padding:6px 0; font-size:12px }
.station-strip img { height:28px; width:28px; object-fit:contain }
.station-strip b { color:#f4d9c3 }
.station-strip span { margin-left:auto; color:#b7c1b9 }
.bay-tabs button { padding:11px 8px; border-bottom:2px solid transparent; background:transparent; color:#a6afa8; font-weight:650 }
.bay-tabs button[aria-pressed=true] { border-bottom-color:var(--hot); color:#ffe0c6 }
.frame-grid,.module-deck,.module-library { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px }
.frame-card,.module-card {
  margin:0; padding:0; display:flex; flex-direction:column; min-width:0; overflow:hidden;
  border:1px solid #46544f; background:#202a27; text-align:left; color:#f5f2e8;
}
.frame-card:is(:hover,[aria-pressed=true]),button.module-card:is(:hover,:focus-visible) {
  border-color:var(--accent); background:#2b3732;
}
.frame-plate,.component-plate {
  position:relative; display:grid; place-items:center; width:100%; height:clamp(125px,19vh,188px);
  border-bottom:1px solid #3d4a46; overflow:hidden;
  background:radial-gradient(ellipse at center,#354039,#141e20 73%);
}
.frame-plate::before {
  content:""; position:absolute; inset:0; opacity:.32;
  background-image:linear-gradient(#67777040 1px,transparent 1px),linear-gradient(90deg,#67777040 1px,transparent 1px);
  background-size:17px 17px;
}
.frame-plate img { position:relative; height:84%; width:84%; object-fit:contain; filter:drop-shadow(0 5px 5px #0009) }
.frame-plate small,.component-plate small {
  position:absolute; top:9px; left:10px; z-index:1; padding:3px 5px; background:#17201ff2;
  border-left:2px solid var(--accent); color:var(--accent); font:600 10px var(--mono); letter-spacing:.06em;
}
.frame-copy,.module-copy { padding:14px 15px; width:100% }
.frame-copy h3,.module-copy h3 { margin:3px 0 7px; color:#fff2db; font-size:clamp(17px,2.3vw,23px); line-height:1.18 }
.frame-copy>small { color:var(--accent); font:600 11px var(--mono) }
.frame-copy>b,.frame-copy>span { display:block; font-size:13px; margin-top:4px }
.frame-copy>span { color:#bdc8bc; font-size:12px }
.frame-state,.card-foot {
  margin-top:auto; border-top:1px solid #44514a; padding:9px 15px;
  background:#131d1bb5; color:var(--accent); font-size:12px;
}
.frame-card[aria-pressed=true] .frame-state { background:var(--accent); color:#19211b; font-weight:750 }
.component-plate { background:#141e28 }
.module-art { display:block; height:100%; aspect-ratio:1; background-image:url('art/modules.webp'); background-size:400% 300%; background-repeat:no-repeat }
.module-copy p { margin:0; font-size:13px; line-height:1.55; color:#c2ccc3 }
.card-foot { display:flex; width:100%; align-items:center; gap:8px }
.card-foot b { font:600 11px var(--mono); white-space:nowrap }
.card-foot strong { margin-left:auto; color:var(--accent); font:18px/1 var(--mono) }
.rank-pips { display:flex; gap:3px }
.rank-pips i { background:#404c48; width:9px; height:4px }
.rank-pips .on { background:var(--accent) }
.rank-pips .next { border:1px solid var(--accent) }
.module-library { grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px }
.module-library .component-plate { height:88px }
.module-library .module-copy { padding:9px }
.module-library h3 { font-size:15px }
.module-library p { font-size:12px }
.fitted-list { display:grid; grid-template-columns:1fr 1fr; gap:5px; margin:9px 0 }
.fitted { display:flex; align-items:center; gap:6px; font-size:12px; background:#192120 }
.fitted .module-art { height:30px }
@media(max-width:600px) {
  .actions { gap:7px }
  .guide-button { min-width:40px }
  .workshop { width:calc(100vw - 18px) }
  .frame-grid,.module-deck { grid-template-columns:1fr; gap:8px }
  .frame-card,.module-deck .module-card { display:grid; grid-template-columns:88px 1fr }
  .frame-plate,.module-deck .component-plate { grid-row:1/3; height:100%; min-height:90px; border-right:1px solid #3d4a46; border-bottom:0 }
  .frame-plate small,.component-plate small { top:3px; left:3px; font-size:9px; padding:2px 4px }
  .module-deck .module-art { width:94%; height:auto }
  .frame-copy,.module-deck .module-copy { padding:7px 10px }
  .frame-copy h3,.module-deck .module-copy h3 { display:inline-block; font-size:17px; margin:0 4px 3px }
  .module-deck .module-copy h3 { margin-left:0 }
  .frame-copy>span,.frame-copy>b { font-size:11px; margin-top:2px }
  .module-deck .module-copy p { font-size:12px; line-height:1.45 }
  .frame-state,.card-foot { grid-column:2; padding:5px 10px; font-size:11px }
  .module-library { grid-template-columns:1fr 1fr }
  .station-strip { gap:5px; flex-wrap:wrap; font-size:11px }
  .station-strip img { width:20px; height:20px }
}
@media(max-height:450px) and (min-width:601px) {
  .workshop .panel-inner { padding:12px 16px }
  .frame-plate,.component-plate { height:70px }
  .workshop .panel-inner h2 { font-size:21px }
  .station-strip,.bay-tabs { margin-bottom:8px }
  .frame-copy,.module-copy { padding:7px 10px }
}

.briefing{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);margin-top:12px;background:#1a221f}
.briefing>div{display:flex;align-items:center;gap:12px;padding:10px 16px;min-width:0}
.briefing>div+div{border-left:1px solid var(--line)}
.briefing img{width:48px;height:48px;object-fit:contain}
.briefing span>*{display:block}
.briefing small,.briefing em{font:10px var(--mono);color:#aebbb2}
.briefing b{font-size:15px;color:#f4e5d2}
@media(max-width:600px){.briefing>div{padding:8px 4px;gap:4px}.briefing img{width:29px;height:32px}.briefing small,.briefing em{font-size:9px}.briefing b{font-size:12px}}

.thruster-art {background-image:url('art/thruster.webp');background-size:contain;background-position:center}
.endless-bay {margin:18px 0 0;border:1px solid #486966;border-left:3px solid #81d8ce;padding:clamp(16px,3vw,32px);display:flex;align-items:center;justify-content:space-between;gap:16px;background:linear-gradient(105deg,#142525 38%,#132223bf),url('art/eclipse.webp') center 56%/cover}
.endless-bay small {font:600 10px var(--mono);letter-spacing:.18em;color:#85d7d1}
.endless-bay h3 {margin:5px 0;color:#f2ece0;font-size:24px}
.endless-bay p {margin:4px 0;color:#bdcdc6;font-size:13px}
.endless-actions {display:grid;gap:8px;flex-shrink:0}
.endless-actions button {justify-content:center;min-height:42px}
.endless-actions button:disabled {color:#b9c4bf;background:#344440;cursor:default}
.endless-points {font:700 30px var(--mono);color:#87dbcc}
.score-table {padding-left:2em;color:#bfcbc6;font:14px var(--mono)}
.score-table li {padding:8px 0;border-bottom:1px solid #3c504d}
.score-table b {float:right;color:#9ce1d4}
@media(max-width:600px){.endless-bay{display:block}.endless-actions{margin-top:12px;display:flex;flex-wrap:wrap}.endless-actions button{flex:auto}}
