/* Crew inventory (Oct 23 2026) — two surfaces:
   1. Hangar → Crew Hub: the gear icon on the crew card and its settings panel (#chSetBack), in the
      Hangar's blue look. Holds activity visibility, inventory sharing and the recruitment signal.
   2. Inventory popup (#ivPanel): the MY CARGO / CREW tabs in the masthead and the Crew page, in the
      popup's teal look (uses the tokens inventory-panel.css defines on #ivPanel).
   Note: the site has a global `header`/`footer` rule — these panels use plain divs on purpose. */

/* ── 1. Crew Hub gear + settings panel ───────────────────────────────────────────────── */
/* The crew selector + gear live in the page head, top right of the "Hangar / 03" row (Tim, Oct 23) — not on the crew card. */
.ch-header-tools{display:flex;align-items:center;gap:10px;align-self:flex-start}
.ch-header-tools[hidden]{display:none}
.ch-gear{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;padding:0;border-radius:8px;border:1px solid rgba(0,200,255,.28);background:rgba(0,200,255,.06);color:#00c8ff;cursor:pointer;transition:background .13s,border-color .13s}
.ch-gear:hover{background:rgba(0,200,255,.18);border-color:#00c8ff}
.ch-gear:focus-visible{outline:2px solid #00c8ff;outline-offset:2px}
.ch-page-head-banner .ch-gear{background:rgb(9,17,31)}
.ch-page-head-banner .ch-gear:hover{background:rgb(13,28,43)}

.ch-set-back{position:fixed;inset:0;z-index:8500;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(3,8,16,.78);backdrop-filter:blur(3px)}
.ch-set-back[hidden]{display:none}
.ch-set-panel{box-sizing:border-box;width:min(540px,100%);max-height:calc(100vh - 40px);overflow:auto;border-radius:12px;border:1px solid rgba(0,200,255,.28);background:linear-gradient(145deg,rgba(13,25,43,.98),rgba(7,14,27,.98));box-shadow:0 24px 70px rgba(0,0,0,.65),inset 0 1px rgba(255,255,255,.03)}
.ch-set-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 22px 16px;border-bottom:1px solid rgba(0,200,255,.13)}
.ch-set-eyebrow{display:block;margin-bottom:6px;font:12px 'Share Tech Mono',monospace;letter-spacing:2.5px;color:#00c8ff}
.ch-set-head h3{margin:0;font:600 28px/1 'Saira Semi Condensed',sans-serif;letter-spacing:.5px;color:#e7f4ff;text-transform:uppercase}
.ch-set-head h3 em{font-style:normal;color:#00c8ff}
.ch-set-close{background:none;border:0;color:#79a0bb;font:300 32px/1 'Saira Semi Condensed',sans-serif;cursor:pointer;padding:0 0 0 8px;transition:color .13s}
.ch-set-close:hover{color:#e7f4ff}
.ch-set-body{padding:4px 22px 20px}
.ch-set-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 0;border-bottom:1px solid rgba(0,200,255,.09)}
.ch-set-row:last-child{border-bottom:0}
.ch-set-row.hidden{display:none}
.ch-set-text{min-width:0}
.ch-set-text strong{display:block;font:600 16px 'Saira Semi Condensed',sans-serif;letter-spacing:.5px;text-transform:uppercase;color:#e7f4ff}
.ch-set-text small{display:block;margin-top:5px;font-size:12.5px;line-height:1.55;color:#79a0bb}
.ch-set-row .ch-signal-btn{flex:0 0 auto;height:auto;min-height:34px;max-width:170px;padding:8px 14px;white-space:normal;text-align:center;line-height:1.35}

.ch-switch{position:relative;flex:0 0 auto;width:48px;height:26px;padding:0;border-radius:13px;border:1px solid rgba(121,160,187,.42);background:rgba(121,160,187,.14);cursor:pointer;transition:background .15s,border-color .15s}
.ch-switch-knob{position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:50%;background:#79a0bb;transition:transform .15s,background .15s}
.ch-switch[aria-checked="true"]{background:rgba(0,200,255,.26);border-color:#00c8ff}
.ch-switch[aria-checked="true"] .ch-switch-knob{transform:translateX(22px);background:#00c8ff}
.ch-switch[aria-checked="mixed"] .ch-switch-knob{transform:translateX(11px);opacity:.55}
.ch-switch:disabled{opacity:.45;cursor:default}
.ch-switch:focus-visible{outline:2px solid #00c8ff;outline-offset:3px}
@media(max-width:520px){
  .ch-set-head{padding:16px 16px 14px}
  .ch-set-head h3{font-size:24px}
  .ch-set-body{padding:2px 16px 16px}
  .ch-set-row{gap:12px}
  .ch-set-row .ch-signal-btn{max-width:130px}
}

/* ── 2a. Inventory popup: MY CARGO / CREW tabs in the masthead ───────────────────────── */
#ivPanel .masthead{flex-wrap:nowrap}
#ivPanel .masthead .brand{flex:0 0 auto}
#ivPanel .iv-tabs{display:flex;align-items:stretch;align-self:stretch;gap:4px;margin:-22px auto -21px 46px;min-width:0}
#ivPanel .iv-tab{display:inline-flex;align-items:center;gap:8px;height:auto;margin:0;padding:0 22px;background:none;border:0;border-bottom:3px solid transparent;color:#84959a;font:600 14px var(--ui);letter-spacing:1.1px;text-transform:uppercase;cursor:pointer;transition:color .15s,background .15s,border-color .15s}
#ivPanel .iv-tab:hover{color:#d0dcd9;background:rgba(139,191,174,.05)}
#ivPanel .iv-tab.on{color:#b6d9c9;border-bottom-color:#8bbfae;background:linear-gradient(0deg,rgba(139,191,174,.1),rgba(139,191,174,0))}
#ivPanel .iv-tab.locked{color:#586c6f;cursor:pointer}
#ivPanel .iv-tab.locked:hover{color:#7b9094;background:none}
#ivPanel .iv-tab-lock{display:none;width:13px;height:13px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#ivPanel .iv-tab.locked .iv-tab-lock{display:inline-block}
#ivPanel .iv-tab-count{font:10px var(--num);letter-spacing:0;opacity:.7}
#ivPanel.iv-crew-view .top-actions .head-btn,#ivPanel.iv-crew-view .top-actions .add{visibility:hidden;pointer-events:none}
#ivPanel .iv-tab:focus-visible{outline:2px solid var(--green-strong);outline-offset:-4px}

/* ── 2b. Crew tab = the My cargo page with the crew's positions swapped in; these just switch bits on/off ── */
#ivPanel:not(.iv-crew-view) .iv-crew-only{display:none}
#ivPanel.iv-crew-view .iv-mine-only{display:none!important}
#ivPanel .controls .iv-crew-first{margin-right:auto}
#ivPanel .iv-crew-quiet{margin-top:14px;padding:11px 14px;border:1px dashed #2b3b41;font:12.5px/1.6 var(--ui);color:#71888d}
#ivPanel .iv-crew-quiet b{font:600 11px var(--ui);letter-spacing:1px;color:#7f9696}
#ivPanel.iv-crew-view .top-actions .head-btn,#ivPanel.iv-crew-view .top-actions .add{visibility:hidden;pointer-events:none}

/* ── 2e. Inventory popup: "Move to run" dialog ───────────────────────────────────────── */
#ivPanel .iv-mv-list{display:grid;gap:8px;margin:6px 0 4px}
#ivPanel .iv-mv-opt{display:grid;grid-template-columns:20px minmax(0,1fr);gap:12px;align-items:start;padding:11px 14px;margin:0;background:#0d1720;border:1px solid #2b3b41;cursor:pointer;transition:border-color .15s,background .15s;text-transform:none;letter-spacing:0}
#ivPanel .iv-mv-opt:hover{border-color:#4d7369}
#ivPanel .iv-mv-opt:has(input:checked){background:#17272e;border-color:#6fa392}
#ivPanel .iv-mv-opt input{margin:3px 0 0;width:15px;height:15px;accent-color:#8cc8af}
#ivPanel .iv-mv-text{display:block;min-width:0}
#ivPanel .iv-mv-main{display:block;font:600 14px var(--ui);color:#cfe0d9;text-transform:uppercase;letter-spacing:.3px}
#ivPanel .iv-mv-sub{display:block;margin-top:3px;font:12px var(--ui);color:#7f9696;overflow-wrap:anywhere}
