/* D232: the crew equip panel (gear/panel.js). Desktop: a centred two-column card. Phone (.gp-phone):
   a full-height bottom sheet, one column, 44 px targets, the doll and slots side by side. */
.gear-panel { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(2, 4, 8, 0.62); pointer-events: auto; }
.gear-panel[hidden] { display: none; }
.gp-card {
  width: min(980px, 94vw); height: min(700px, 88vh); display: flex; flex-direction: column; overflow: hidden;
  background: #0a0f17; border: 1px solid #2a3546; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); color: #d6dee9;
  font: 14px/1.35 var(--mono, ui-monospace, monospace);
}
.gp-card header { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid #1d2633; letter-spacing: 0.08em; }
.gp-card header b { color: #fff; }
.gp-card header span { color: #8a96a8; flex: 1; }
.gp-x { width: 36px; height: 36px; border: 1px solid #2a3546; background: transparent; color: #cfd8e3; font-size: 20px; cursor: pointer; }
.gp-wearers { display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto; border-bottom: 1px solid #1d2633; scrollbar-width: thin; }
.gp-who {
  flex: 0 0 auto; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 3px 10px 3px 3px;
  border: 1px solid #263142; background: #0f1520; color: #aeb9c8; cursor: pointer; font: inherit; letter-spacing: 0.05em;
}
.gp-who img { width: 36px; height: 36px; image-rendering: pixelated; background: #141c28; }
.gp-who.on { border-color: #7fd4ff; color: #fff; background: #122033; }
.gp-main { display: grid; grid-template-columns: 300px 1fr; min-height: 0; flex: 1; }
.gp-doll { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px; border-right: 1px solid #1d2633; background: radial-gradient(circle at 50% 30%, #152234, #0a0f17 70%); }
.gp-body { width: 160px; height: 240px; image-rendering: pixelated; }
.gp-slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; width: 100%; }
.gp-slot {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 58px; padding: 4px 2px;
  border: 1px solid var(--rc); background: #0d131d; color: #8a96a8; cursor: pointer; font: 12px var(--mono, monospace); letter-spacing: 0.06em;
}
.gp-slot img { width: 40px; height: auto; max-height: 36px; image-rendering: pixelated; object-fit: contain; }
.gp-slot i { width: 28px; height: 28px; margin: 4px; border: 1px dashed #334055; }
.gp-slot.on { background: #142337; color: #fff; box-shadow: 0 0 0 1px #7fd4ff inset; }
.gp-slot sup { position: absolute; top: 2px; right: 3px; color: #ffd27a; font-size: 12px; }
.gp-sum { margin: 0; color: #9fe8c0; letter-spacing: 0.06em; text-align: center; }
.gp-list { overflow-y: auto; padding: 8px 12px 14px; }
.gp-list h4 { margin: 10px 0 6px; color: #7f8ca0; font-size: 12px; letter-spacing: 0.12em; font-weight: 600; }
.gp-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; align-items: center; padding: 6px 8px; margin-bottom: 6px; border: 1px solid #1f2836; border-left: 3px solid var(--rc); background: #0d131c; }
.gp-icon { width: 84px; height: 56px; object-fit: contain; image-rendering: pixelated; }
.gp-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gp-copy b { color: var(--rc); font-size: 15px; }
.gp-copy small { color: #8a96a8; letter-spacing: 0.06em; }
.gp-copy em { color: #d6dee9; font-style: normal; }
.gp-mods { color: #b9a6ff; font-size: 13px; }
.gp-acts { display: flex; flex-direction: column; gap: 4px; }
.gp-acts button { min-width: 84px; min-height: 30px; border: 1px solid #334055; background: #111925; color: #aeb9c8; font: 600 13px var(--mono, monospace); letter-spacing: 0.08em; cursor: pointer; }
.gp-acts .gp-go { border-color: #7fd4ff; color: #e8f6ff; background: #12304a; }
.gp-empty { color: #6f7b8e; margin: 4px 0 8px; }

/* Phone: a full sheet, one column. */
.gear-panel.gp-phone { place-items: end stretch; }
.gp-phone .gp-card { width: 100vw; height: 100dvh; border: 0; }
.gp-phone .gp-x { width: 44px; height: 44px; }
.gp-phone .gp-main { grid-template-columns: 1fr; overflow-y: auto; }
.gp-phone .gp-doll { display: grid; grid-template-columns: 96px 1fr; align-items: center; border-right: 0; border-bottom: 1px solid #1d2633; padding: 8px 12px; }
.gp-phone .gp-body { width: 96px; height: 144px; grid-row: span 2; }
.gp-phone .gp-slots { grid-template-columns: repeat(3, 1fr); }
.gp-phone .gp-slot { min-height: 48px; }
.gp-phone .gp-slot img { width: 34px; max-height: 26px; }
.gp-phone .gp-sum { text-align: left; font-size: 13px; }
.gp-phone .gp-list { overflow: visible; }
.gp-phone .gp-item { grid-template-columns: 64px 1fr; }
.gp-phone .gp-icon { width: 60px; height: 52px; }
.gp-phone .gp-acts { grid-column: 1 / -1; flex-direction: row; }
.gp-phone .gp-acts button { flex: 1; min-height: 44px; }
