@charset "UTF-8";
.dock [hidden] { display: none !important; }
.dock { width: min(1330px, calc(100% - 68px)); padding: 38px 0 66px; }
.dock button, .dock input, .dock select { font: inherit; color: var(--ink); }
.dock button { background: #172730; border: 1px solid #405562; padding: 8px 13px; font-size: 13px; line-height: 1.5; cursor: pointer; }
.dock button:hover:not(:disabled) { border-color: #ff986e; }
.dock button:focus-visible, .dock input:focus-visible, .dock select:focus-visible { outline: 2px solid #ff9165; outline-offset: 3px; }
.dock button:disabled { opacity: .5; cursor: default; }
.dock .primary { background: var(--orange); border-color: var(--orange); color: #0b151a; font-weight: 750; padding: 12px 24px; }
.dock .quiet { border: 0; background: transparent; color: #bed0d7; text-decoration: underline; text-underline-offset: 4px; }
.dock .danger { color: #efad98; border-color: #78594e; background: transparent; }
.splash { isolation: isolate; position: relative; min-height: clamp(460px, 53vw, 640px); display: grid; align-items: center; border: 1px solid var(--edge); overflow: hidden; }
.splash-art { position: absolute; z-index: -2; object-fit: cover; object-position: 60% center; width: 100%; height: 100%; }
.splash::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #071018f5, #08121bba 38%, #0a111718 85%); }
.splash-copy { padding: clamp(25px, 6vw, 84px); }
.splash-copy h1 { font-size: clamp(43px, 5.6vw, 78px); }
.splash-copy > p { color: #d2e0e4; margin-top: 20px; font-size: 16px; }
.splash-copy #boot-status { color: #ffbc9c; font-size: 13px; }
.splash-copy #retry-boot { margin-top: 15px; }
.dock-heading, .pilot, .inventory-head, .editor-heading, .actions, .paint-row, .pending-actions { display: flex; align-items: center; }
.dock-heading, .inventory-head, .editor-heading, .actions { justify-content: space-between; gap: 16px; }
.dock-heading { margin: 0 0 27px; }
.dock-heading h1 { font-size: clamp(33px, 4vw, 56px); }
.dock-heading p { margin-top: 8px; font: 13px "Segoe UI", "Malgun Gothic", sans-serif; color: #b8c9d1; }
.pilot { gap: 10px; max-width: 50%; }
.pilot a { overflow-wrap: anywhere; font-size: 14px; }
.pilot a:hover { color: var(--orange); }
.pilot button { white-space: nowrap; }
.notice { padding: 12px 16px; border: 1px solid #526e77; color: #d6e8eb; background: #172b35; font-size: 13px; line-height: 1.7; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.notice[data-kind="error"] { background: #39261e; border-color: #915c42; color: #ffd4ba; }
.notice[data-kind="success"] { background: #15312d; border-color: #44746a; color: #c9eae0; }
.dock-layout { display: grid; grid-template-columns: minmax(200px, .7fr) minmax(0, 2.3fr); gap: 20px; align-items: start; }
.inventory, .bench { min-width: 0; border: 1px solid var(--edge); background: #101b23; }
.inventory-head { padding: 18px 15px; gap: 6px; }
.inventory h2 { font-size: 18px; }
.dock .new-unit { font-size: 12px; color: #ffab87; background: transparent; border-color: #785642; padding: 5px 8px; }
.kind-switch, .bench-modes { display: flex; border-bottom: 1px solid var(--edge); }
.kind-switch button, .bench-modes button { border: 0; border-bottom: 2px solid transparent; background: transparent; color: #a1b4bf; padding: 12px; flex: 1; }
.kind-switch button span { color: #c0d0d6; font-family: Consolas, monospace; }
.kind-switch [aria-pressed="true"], .bench-modes [aria-pressed="true"] { border-bottom-color: var(--orange); color: var(--ink); background: #1a2a34; }
#unit-list, #squad-list { list-style: none; padding: 0; margin: 0; }
#unit-list { max-height: 64vh; overflow-y: auto; }
#unit-list li + li { border-top: 1px solid var(--edge); }
#unit-list button { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; padding: 13px 15px; border: 0; border-left: 3px solid transparent; background: #101b23; }
#unit-list button[aria-pressed="true"] { border-left-color: var(--orange); background: #1b2d38; }
.paint-chip { width: 12px; height: 12px; border: 1px solid #c2d2d680; flex: 0 0 auto; }
.unit-label { display: grid; gap: 3px; min-width: 0; }
.unit-label strong { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.unit-label small, .hint, .empty, .save-state, #squad-capacity { color: #a4bac5; font-size: 12px; }
.empty { padding: 19px 16px; }
.preview { background: linear-gradient(#8fa6ae09 1px,transparent 1px), linear-gradient(90deg,#8fa6ae09 1px,transparent 1px), radial-gradient(ellipse at 65% 40%,#263c49,#101d26 72%); background-size: 24px 24px,24px 24px,auto; position: relative; display: grid; grid-template-columns: minmax(150px,.8fr) minmax(0,1.2fr); align-items: center; padding: 14px 20px 18px 28px; min-height: 245px; border-bottom: 1px solid var(--edge); overflow: hidden; isolation: isolate; }
.preview-caption { min-width: 0; z-index: 1; }
#unit-class { display: inline-block; color: #edaa83; font-size: 12px; margin-bottom: 9px; }
#preview-name { font-size: clamp(24px,3.4vw,43px); overflow-wrap: anywhere; line-height: 1.25; }
#unit-art { width: 100%; max-height: 310px; display: block; }
#spec { align-self: end; grid-column: 1/-1; font-size: 12px; color: #b3c4cb; }
.bench-modes button { flex: 0 1 auto; min-width: 125px; }
.edit-body { padding: clamp(20px,3vw,34px); }
.editor-heading { margin-bottom: 21px; }
.editor-heading h2 { font-size: 23px; }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 18px; }
.field-grid label, .add-row label { display: grid; gap: 7px; font-size: 12px; color: #b7cad2; }
.dock input[type="text"], .dock select { background: #0a151c; border: 1px solid #465c68; border-radius: 0; min-height: 42px; padding: 9px 11px; width: 100%; min-width: 0; font-size: 14px; }
.paint-row { margin-top: 20px; gap: 10px; flex-wrap: wrap; }
.paint-row > label { font-size: 13px; }
.paint-row input { width: 43px; height: 31px; padding: 1px; cursor: pointer; border: 1px solid #68818c; background: transparent; }
#paint-value { font: 11px Consolas, monospace; color: #b4c5cc; }
.preset-colors { display: flex; gap: 8px; }
.preset-colors button { width: 27px; height: 27px; padding: 0; border: 2px solid #233641; }
.preset-colors button[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 1px; }
fieldset { border: 0; border-top: 1px solid var(--edge); margin: 25px 0 0; padding: 18px 0 0; min-width: 0; }
legend { padding: 0 10px 0 0; font-size: 14px; font-weight: 700; color: #d8e2e6; }
.actions { border-top: 1px solid var(--edge); margin-top: 26px; padding-top: 20px; flex-wrap: wrap; }
.warning { color: #ffc39d; font-size: 13px; margin-top: 15px; }
.meter { height: 6px; background: #2b3d47; margin-bottom: 22px; }
.meter span { height: 100%; display: block; background: var(--orange); }
#squad-list li { display: flex; gap: 13px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--edge); }
.slot-num { color: #ff9d74; font: 13px Consolas, monospace; }
.squad-controls { margin-left: auto; display: inline-flex; gap: 5px; flex-shrink: 0; }
.squad-controls button { min-width: 34px; padding: 6px 8px; }
.add-row { display: flex; gap: 10px; margin: 24px 0 8px; align-items: end; }
.add-row label { flex: 1; min-width: 0; }
.add-row button { min-height: 42px; }
@media (max-width: 850px) {
  .dock { width: calc(100% - 36px); }
  .dock-layout { grid-template-columns: minmax(180px,.7fr) minmax(0,1.8fr); gap: 12px; }
  .preview { grid-template-columns: minmax(90px,.7fr) minmax(0,1.3fr); padding: 16px; min-height: 200px; }
}
@media (max-width: 690px) {
  .dock { padding-top: 25px; }
  .dock-layout { grid-template-columns: 1fr; }
  #unit-list { max-height: 190px; }
  .inventory-head { padding: 12px 15px; }
  .kind-switch button { padding: 9px; }
  .dock-heading { align-items: start; }
  .pilot { gap: 3px; flex-direction: column; align-items: end; text-align: right; }
  .pilot a { font-size: 12px; }
  .pilot .quiet { padding: 4px; font-size: 11px; }
  .preview { min-height: 180px; }
  .notice { align-items: start; flex-direction: column; }
  .splash { align-items: end; min-height: 525px; }
  .splash::after { background: linear-gradient(0deg,#08111aff 0%,#08111ace 40%,#08111a13 100%); }
  .splash-copy > p { font-size: 14px; }
}
@media (max-width: 420px) {
  .dock { width: calc(100% - 24px); }
  .field-grid { grid-template-columns: 1fr; gap: 12px; }
  .preview { grid-template-columns: minmax(80px,.8fr) minmax(0,1.4fr); min-height: 150px; padding: 12px; }
  .edit-body { padding: 17px; }
  .add-row { align-items: stretch; flex-direction: column; }
  #squad-list li { gap: 8px; flex-wrap: wrap; }
  .squad-controls { margin-left: auto; }
}

