/* Load after elsewhere.css. Scoped to the actual station dialog so travel,
   inventory, journals, shops, and engineering retain one paper-and-ink language. */
.station-dialog {
  --bel-paper:#e8e1ca;--bel-ink:#294d49;--bel-muted:#536553;
  --bel-rule:#7182674a;--bel-copper:#795436;--bel-deep:#385e55;
  width:min(1040px,calc(100% - 48px));max-width:none;max-height:calc(100dvh - 44px);
  padding:30px 34px;background:var(--bel-paper);color:var(--bel-ink);
  border:6px solid #d4c9ac;border-radius:0;backdrop-filter:none;
  box-shadow:0 0 0 1px #faf0d352,0 30px 100px #001a1b80;overflow:auto;
  font-family:var(--sans,DM,Arial,sans-serif);font-weight:400;
  scrollbar-color:#acb298 var(--bel-paper);scrollbar-width:thin;
}
.station-dialog::backdrop {background:#102c3175;backdrop-filter:blur(6px)}
.station-dialog button {font-family:inherit;border-radius:0;box-shadow:none}
.station-dialog button:focus-visible,.station-dialog summary:focus-visible {
  outline:2px solid var(--bel-copper);outline-offset:3px;
}
.station-dialog button:disabled {opacity:.44;cursor:default}
.station-dialog .station-dialog-header {gap:20px;align-items:flex-start}
.station-dialog .station-dialog-header .eyebrow {
  display:block;color:var(--bel-copper);font-size:9px;letter-spacing:.24em;line-height:1.7;
}
.station-dialog .station-dialog-header h2 {
  font-family:Instrument,Georgia,serif;font-size:54px;font-weight:400;
  letter-spacing:-.018em;line-height:1.05;margin:10px 0 4px;
}
.station-dialog .close-dialog {
  width:42px;height:42px;min-height:42px;flex-shrink:0;
  background:none;border:0;color:var(--bel-ink);font-size:27px;font-weight:300;
}
.station-dialog .close-dialog:hover {background:#98ac8e25}
.station-dialog .station-wallet {
  display:flex;align-items:center;gap:18px;color:var(--bel-muted);
  border:0;padding:12px 0 16px;font-size:11px;letter-spacing:.025em;
}
.station-dialog .wallet-credits {margin-left:auto;color:var(--bel-ink);font-variant-numeric:tabular-nums}
.station-dialog .field-tabs {
  display:flex;gap:0;position:sticky;top:0;z-index:2;margin:0;padding:0;
  background:var(--bel-paper);border:0;border-bottom:1px solid var(--bel-rule);
  border-radius:0;backdrop-filter:none;
}
.station-dialog .field-tab {
  flex:1;min-width:0;min-height:46px;padding:12px 10px;margin:0 0 -1px;
  border:0;border-bottom:2px solid transparent;background:none;color:var(--bel-muted);
  font-size:10px;letter-spacing:.10em;font-weight:400;
}
.station-dialog .field-tab:hover {color:var(--bel-ink);background:#afbea025}
.station-dialog .field-tab.active {color:var(--bel-ink);background:none;border-bottom-color:var(--bel-copper)}
.station-dialog .station-dialog-body {padding-top:24px}
.station-dialog .eyebrow {color:var(--bel-copper);font-size:9px;letter-spacing:.17em;line-height:1.5}
.station-dialog .station-copy {font-size:13px;line-height:1.65;color:var(--bel-muted);margin:10px 0 18px}
.station-dialog .belongings-art {display:block;width:100%;height:100%;overflow:visible;pointer-events:none}
.station-dialog .belongings-traveler {
  display:grid;grid-template-columns:124px 1fr;align-items:center;gap:20px;
  padding:0 0 22px;margin:0 0 24px;border-bottom:1px solid var(--bel-rule);
}
.station-dialog .traveler-outfit-art {width:118px;height:122px}
.station-dialog .traveler-outfit strong {display:block;font-size:19px;font-weight:400;margin-top:8px;line-height:1.35}
.station-dialog .traveler-outfit p {font-size:12px;color:var(--bel-muted);line-height:1.5;margin:8px 0}
.station-dialog .equipment-summary {display:flex;flex-wrap:wrap;gap:8px 12px;margin:15px 0 0}
.station-dialog .equipment-summary span {
  display:block;padding:0 12px 0 0;margin:0;background:none;border:0;
  border-right:1px solid var(--bel-rule);border-radius:0;
  color:var(--bel-muted);font-size:10px;letter-spacing:.025em;line-height:1.5;
}
.station-dialog .equipment-summary span:last-child {padding-right:0;border-right:0}
.station-dialog .inventory-layout {display:grid;grid-template-columns:minmax(0,1.65fr) minmax(240px,1fr);gap:28px}
.station-dialog .inventory-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-content:start}
.station-dialog .item-card {
  display:flex;flex-direction:column;align-items:flex-start;text-align:left;position:relative;
  min-height:196px;padding:11px 12px;gap:5px;margin:0;overflow:visible;
  background:#ede7d4;border:1px solid #71826733;border-radius:0;color:var(--bel-ink);box-shadow:none;
}
.station-dialog .item-card:hover {background:#e0e2cc;border-color:#91a085}
.station-dialog .item-card.selected {background:#dce0c9;border-color:#829477;box-shadow:none}
.station-dialog .item-card.selected::after {
  content:'';position:absolute;top:11px;right:11px;width:5px;height:5px;
  background:var(--bel-copper);border-radius:50%;
}
.station-dialog .item-picture {width:100%;height:102px;display:grid;place-items:center;margin:0 0 3px}
.station-dialog .item-picture .belongings-art {width:min(128px,100%);height:100%}
.station-dialog .item-card small {font-size:8px;color:var(--bel-muted);text-transform:uppercase;letter-spacing:.13em;line-height:1.5}
.station-dialog .item-card strong {font-size:12px;font-weight:400;line-height:1.35;color:var(--bel-ink);margin:0}
.station-dialog .item-count {font-size:10px;color:var(--bel-muted);margin-top:auto;padding-top:4px;letter-spacing:.02em}
.station-dialog .item-detail {
  align-self:start;position:sticky;top:65px;padding:0 0 0 25px;
  border:0;border-left:1px solid var(--bel-rule);border-radius:0;background:none;
}
.station-dialog .detail-art {height:150px;max-width:205px;margin:0 auto 15px}
.station-dialog .item-detail>.eyebrow {color:var(--bel-copper);font-size:9px}
.station-dialog .item-detail h3 {
  font-family:Instrument,Georgia,serif;font-size:34px;font-weight:400;
  line-height:1.05;letter-spacing:-.015em;margin:11px 0 15px;color:var(--bel-ink);
}
.station-dialog .item-detail .station-copy {font-size:12px;line-height:1.7}
.station-dialog .empty-belongings {grid-column:1/-1;max-width:290px;margin:28px 0 50px;font-size:15px}
.station-dialog .primary,.station-dialog .station-action,.station-dialog .compact-action {
  min-width:0;min-height:42px;padding:11px 15px;margin:10px 0 0;
  border:1px solid var(--bel-rule);border-radius:0;background:none;
  color:var(--bel-ink);font-size:12px;line-height:1.45;font-weight:400;letter-spacing:.02em;
  text-align:center;justify-content:center;
}
.station-dialog .station-action {width:100%}
.station-dialog .primary {width:100%;background:var(--bel-deep);border-color:var(--bel-deep);color:#f1ead5}
.station-dialog .primary:hover {background:#274c46;border-color:#274c46}
.station-dialog .station-action:hover,.station-dialog .compact-action:hover {background:#aebc9b38;border-color:#7c9074}
.station-dialog .compact-action {width:auto;white-space:normal}
.station-dialog .quiet-action {
  display:inline-flex;align-items:center;min-height:40px;padding:9px 0;margin:7px 15px 0 0;
  width:auto;border:0;border-bottom:1px solid var(--bel-rule);background:none;
  color:var(--bel-ink);font-size:11px;letter-spacing:.025em;text-align:left;
}
.station-dialog .quiet-action:hover {background:none;color:#86613f;border-color:var(--bel-copper)}
.station-dialog .optional-gear {margin-top:25px;border-top:1px solid var(--bel-rule);border-bottom:1px solid var(--bel-rule)}
.station-dialog .optional-gear-summary {
  display:flex;flex-wrap:wrap;align-items:center;gap:6px 15px;position:relative;
  min-height:52px;padding:15px 29px 15px 0;list-style:none;cursor:pointer;
  color:var(--bel-ink);font-size:12px;line-height:1.4;
}
.station-dialog .optional-gear-summary::-webkit-details-marker {display:none}
.station-dialog .optional-gear-summary::after {content:'+';position:absolute;right:4px;top:50%;transform:translateY(-50%);font-size:20px;font-weight:300;color:var(--bel-copper)}
.station-dialog .optional-gear[open]>.optional-gear-summary::after {content:'−'}
.station-dialog .optional-gear-summary small {color:var(--bel-muted);font-size:10px;line-height:1.5}
.station-dialog .optional-gear-body {padding:0 0 20px}
.station-dialog .field-condition {display:flex;flex-wrap:wrap;gap:8px 25px;padding:14px 0;border-top:1px solid var(--bel-rule);font-size:10px;color:var(--bel-muted)}
.station-dialog .armory-readout,.station-dialog .optional-supply {
  display:grid;grid-template-columns:116px 1fr;gap:20px;align-items:center;
  margin:0;padding:14px 0 20px;border:0;border-bottom:1px solid var(--bel-rule);
  border-radius:0;background:none;
}
.station-dialog .optional-art {width:112px;height:100px}
.station-dialog .optional-gear-info h3 {font-family:Instrument,Georgia,serif;font-size:28px;line-height:1.2;font-weight:400;margin:4px 0}
.station-dialog .optional-gear-info .station-copy {font-size:12px;margin:7px 0;color:var(--bel-muted)}
.station-dialog .optional-gear-info .eyebrow {font-size:9px;letter-spacing:.16em;color:var(--bel-copper)}
.station-dialog .shop-item {
  display:grid;grid-template-columns:90px minmax(0,1fr) 125px;align-items:center;
  gap:20px;margin:0;padding:20px 0;border-bottom:1px solid var(--bel-rule);
}
.station-dialog .shop-illustration {width:86px;height:88px}
.station-dialog .shop-item h3 {font-family:Instrument,Georgia,serif;font-size:27px;font-weight:400;line-height:1.1;margin:0 0 9px}
.station-dialog .shop-item .station-copy {font-size:12px;margin:0;line-height:1.6}
.station-dialog .shop-item button {width:125px;margin:0;background:var(--bel-deep);color:#f0e9d4;border-color:var(--bel-deep);font-size:11px;padding:10px}
.station-dialog .shop-item button:hover {background:#294e47}
.station-dialog .station-footnote {margin:23px 0 0;padding:0;border:0;font-size:10px;line-height:1.6;color:var(--bel-muted)}
.station-dialog .station-feedback {
  position:sticky;bottom:-1px;margin:18px 0 0;padding:12px 15px;
  background:#d6ddc5;border:1px solid #9eaf8c;border-radius:0;
  color:var(--bel-ink)!important;font-size:12px!important;line-height:1.5!important;
}
.station-dialog .station-feedback:empty {display:none}
.station-dialog .cargo-summary {font-size:12px;line-height:1.6;color:var(--bel-ink);padding:13px 16px;margin:0 0 22px;background:#c8d1b538;border:1px solid var(--bel-rule);border-radius:0}
.station-dialog .journal-hero,.station-dialog .journal-card,.station-dialog .travel-card,.station-dialog .upgrade-card {
  padding:22px 0;margin:0 0 5px;border:0;border-bottom:1px solid var(--bel-rule);border-radius:0;background:none;
}
.station-dialog .journal-hero h3,.station-dialog .journal-card h3,.station-dialog .travel-card h3,.station-dialog .upgrade-card h3 {
  font-family:Instrument,Georgia,serif;font-size:34px;line-height:1.1;font-weight:400;letter-spacing:-.012em;margin:11px 0;color:var(--bel-ink);
}
.station-dialog .journal-card .eyebrow,.station-dialog .travel-card .eyebrow {font-size:9px;letter-spacing:.16em;color:var(--bel-copper)}
.station-dialog .signal-progress {gap:16px}
.station-dialog .signal-progress>div {border-color:var(--bel-rule)}
.station-dialog .signal-progress span {color:#869477;font-size:24px}
.station-dialog .signal-progress strong {color:var(--bel-ink);font-size:12px}
.station-dialog .signal-progress small {color:var(--bel-muted);font-size:11px}
.station-dialog .signal-progress .complete {border-color:#628572}
.station-dialog .signal-progress .complete span {color:#4d7865}
.station-dialog .journal-check {color:var(--bel-muted);font-size:12px}
.station-dialog .record-value {font-family:Instrument,Georgia,serif;font-size:34px;font-weight:400;color:var(--bel-copper)}
.station-dialog .travel-card-footer {font-size:11px;line-height:1.5;color:var(--bel-muted)}
.station-dialog .travel-card-footer .compact-action {min-width:118px;margin:0}
.station-dialog .upgrade-levels i {height:3px;border-radius:0;background:#a4b39155}
.station-dialog .upgrade-levels .complete {background:#739473}
.station-dialog .station-map {width:min(100%,410px);max-height:58dvh;background:#d4dac343;padding:16px;border:1px solid var(--bel-rule);border-radius:0}
.station-dialog .received-signal {background:#d7dabf66;border:1px solid var(--bel-rule);border-radius:0;padding:20px}
.station-dialog .received-signal span {color:var(--bel-copper);font-size:9px}
.station-dialog .received-signal strong {color:var(--bel-ink);font-size:29px;font-weight:400}
.station-dialog .channel-card {background:#e0e0c9;border:1px solid var(--bel-rule);border-radius:0;padding:16px}
.station-dialog .channel-card .eyebrow {font-size:9px;color:var(--bel-muted)}
.station-dialog .channel-card strong {color:#879179;font-family:Instrument,Georgia,serif;font-size:42px}
.station-dialog .channel-card strong.matched {color:#3e715d}
.station-dialog .completion-mark {font-size:58px;color:var(--bel-copper)}
.station-dialog .station-dialogue {font-size:16px;line-height:1.85;color:var(--bel-ink);max-width:650px;white-space:pre-line}

@media(max-width:780px) {
  .station-dialog {width:calc(100% - 28px);padding:24px;max-height:calc(100dvh - 28px)}
  .station-dialog .inventory-layout {grid-template-columns:minmax(0,1.3fr) minmax(200px,1fr);gap:22px}
  .station-dialog .inventory-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .station-dialog .item-detail {padding-left:20px}
  .station-dialog .item-card {min-height:182px}
  .station-dialog .shop-item {grid-template-columns:75px minmax(0,1fr) 104px;gap:14px}
  .station-dialog .shop-illustration {width:72px;height:76px}
  .station-dialog .shop-item button {width:104px}
}
@media(max-width:580px) {
  .station-dialog {padding:20px;border-width:4px}
  .station-dialog .station-dialog-header h2 {font-size:43px}
  .station-dialog .station-dialog-header .eyebrow {font-size:8px;letter-spacing:.17em}
  .station-dialog .field-tab {font-size:9px;letter-spacing:.03em;padding:12px 5px}
  .station-dialog .belongings-traveler {grid-template-columns:88px 1fr;gap:14px}
  .station-dialog .traveler-outfit-art {width:88px;height:104px}
  .station-dialog .traveler-outfit strong {font-size:16px}
  .station-dialog .inventory-layout {grid-template-columns:1fr}
  .station-dialog .item-detail {position:static;border-left:0;border-top:1px solid var(--bel-rule);padding:24px 0 0}
  .station-dialog .detail-art {height:132px}
  .station-dialog .shop-item {grid-template-columns:67px minmax(0,1fr);gap:10px 15px}
  .station-dialog .shop-illustration {width:65px;height:70px}
  .station-dialog .shop-item button {grid-column:2;width:100%}
  .station-dialog .shop-item h3 {font-size:25px}
  .station-dialog .armory-readout,.station-dialog .optional-supply {grid-template-columns:85px 1fr;gap:15px}
  .station-dialog .optional-art {width:82px;height:82px}
  .station-dialog .optional-gear-summary small {flex-basis:100%}
  .station-dialog .signal-progress {gap:10px}
  .station-dialog .signal-progress strong {font-size:10px}
}
