/* V12.6 interior workbench. Scoped to actual panels, never the combat controls
   or the already-approved harbor homepage. All artwork is native SVG/CSS. */
.modal-card .inner-heading{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:4px 38px 12px 0;border-bottom:2px solid #a9b98e;min-height:64px;text-align:left}
.inner-heading>div{min-width:0;flex:1}.inner-heading .inner-heading-art{display:grid;place-items:center;flex:none;width:58px;height:58px;border:1px solid #a4b47f;border-bottom:4px solid #76905a;border-radius:16px 11px 16px 11px;background:linear-gradient(135deg,#e7efc9,#cbdc9d);transform:rotate(-4deg)}
.inner-heading-art>.icon{width:44px;height:44px;transform:rotate(4deg)}
.modal-card .inner-heading h2,.game-panel .inner-heading h2{padding:0;margin:3px 0;background:none;border:0;box-shadow:none;color:#284d3d;text-shadow:none;font-size:24px;letter-spacing:0;line-height:1.25}
.modal-card .inner-heading p,.game-panel .inner-heading p{font-size:12px;line-height:1.45;margin:4px 0 0;color:#516449}
.modal-card .inner-heading .eyebrow{font-size:10px;letter-spacing:.7px;color:#596b4c}
.modal-card.loadout-modal,.modal-card.settings-modal,.modal-card.aspect-modal{max-width:720px}
.loadout-modal .segmented{position:sticky;top:48px;z-index:5;padding:4px;border:1px solid #a9b692;border-radius:11px;margin-bottom:12px}.loadout-modal .segmented button{min-height:44px;font-size:13px}
.weapon-manifest{display:grid;grid-template-columns:92px minmax(0,1fr);gap:12px;align-items:center;padding:12px;border:2px solid #789653;border-bottom:5px solid #688248;border-radius:16px;background:linear-gradient(130deg,#e3edbd,#f3f4dd);margin-bottom:14px;text-align:left}
.weapon-manifest-art{display:grid;place-items:center;height:90px;background:radial-gradient(ellipse,#cadfa0 35%,#edf4d800 70%)}.weapon-manifest-art>.icon{width:86px;height:86px}.weapon-manifest b{display:block;font-size:19px;line-height:1.35;margin:4px 0;overflow-wrap:break-word}.weapon-manifest small{font-size:12px;color:#4f6540}.weapon-manifest p{font-size:12px;line-height:1.5;margin:4px 0 7px}.manifest-tag{display:inline-block;font-size:12px;margin:2px 4px 0 0;border:1px solid #adb98b;border-radius:5px;background:#fffbe8;padding:2px 6px}
.loadout-modal .loadout-grid{gap:9px;grid-template-columns:repeat(4,minmax(0,1fr))}.loadout-modal .loadout-card{padding:10px;gap:5px;text-align:left;min-width:0;position:relative}.loadout-modal .loadout-card-art{width:100%;height:58px;margin:0;padding:0}.loadout-modal .loadout-card-art>.icon{width:52px!important;height:52px!important}.loadout-modal .loadout-card-art>.crew-art{height:65px;width:65px}.loadout-modal .loadout-card>b{font-size:14px;line-height:1.35;margin:0;word-break:normal;overflow-wrap:break-word}.loadout-modal .loadout-card>p{font-size:12px;line-height:1.45;margin:2px 0 5px}.loadout-modal .loadout-card>small{display:inline-block;font-size:12px;border-top:1px solid #c5ccb0;padding-top:5px;color:#4e6541}.loadout-modal .loadout-card.selected>small{color:#345e2f;font-weight:800}.loadout-modal .weapon-adaptation-note{font-size:12px;line-height:1.5;margin:15px 0 2px;padding:10px;background:#e8eadb;border-radius:9px}
.aspect-modal .inner-heading{margin-bottom:8px}.aspect-scope{font-size:12px;line-height:1.5;color:#59694d;margin:0 0 10px}.inner-aspect-list{gap:9px!important}.inner-aspect-list .aspect-card{display:grid;grid-template-columns:70px minmax(0,1fr);gap:10px;padding:10px;text-align:left;min-height:110px}.inner-aspect-list .aspect-mark{width:70px;height:auto;align-self:stretch;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#e5ebd1;border:1px solid #c2ccaa;border-radius:9px;color:#668b48}.inner-aspect-list .aspect-mark>small{align-self:flex-start;font:800 12px/1 system-ui;padding:5px 7px;color:#63814b}.inner-aspect-list .aspect-copy{min-width:0;display:block}.inner-aspect-list .aspect-copy>small{font-size:12px;color:#536b45}.inner-aspect-list .aspect-copy>b{display:block;font-size:16px;line-height:1.35;margin:3px 0}.inner-aspect-list .aspect-copy>p{font-size:12px;line-height:1.45;margin:4px 0}.inner-aspect-list .aspect-copy>em{display:block;font-size:12px;font-style:normal;line-height:1.4;color:#735b3e;border-top:1px dashed #bfbb9c;padding-top:5px;margin:4px 0 0}.aspect-diagram{width:64px;height:54px;display:block;flex:none}.inner-aspect-list .selected .aspect-mark{background:#d4e5a5;border-color:#8dab61;color:#4f773a}
/* Readable spatial build: retain five actual slots, not five crushed columns. */
.ink-build-body .ink-core-grid{gap:7px}.ink-build-body .ink-core-grid li{padding:10px 7px}.ink-build-body .ink-core-grid b{font-size:13px;overflow-wrap:break-word}.ink-build-body .ink-core-grid small,.ink-build-body .ink-core-grid span,.ink-build-body .ink-core-grid em{font-size:12px}.ink-build-body .ink-section-heading>span,.ink-build-body .ink-direction-slots span,.ink-build-body .ink-direction-grid small,.ink-build-body .ink-source-meter small,.ink-build-body .ink-source-meter li,.ink-build-body .ink-source{font-size:12px}.ink-build-body .ink-direction-slots li{grid-template-columns:20px minmax(0,1fr);gap:4px;padding:8px 6px}.ink-build-body .ink-direction-slots b{line-height:1.35;overflow-wrap:break-word}.ink-build-body .ink-source-meter{background:linear-gradient(110deg,#dce9bd,#f1f3dc);border-bottom:3px solid #8da772}.ink-build-body .ink-globals li{border-left:4px solid #93ae69}.ink-build-body .ink-duos{border-left:4px solid #ac93bc}.ink-build-body .ink-duos>summary{font-size:14px}
.settings-sound-group{padding:12px;background:#fffbea;border:1px solid #b2be9c;border-bottom:4px solid #96a67d;border-radius:12px;margin-bottom:12px}.settings-sound-group>h3{display:flex;align-items:center;gap:7px;margin:0 0 8px;font-size:16px}.settings-sound-group>h3>.icon{width:26px;height:26px}.settings-sound-group .settings-row{margin:6px 0;padding:10px 0;min-height:44px;font-size:13px}.settings-sound-group .audio-live-status{margin:0 0 7px;font-size:12px;gap:6px;flex-wrap:wrap}.settings-sound-group .audio-live-status button{min-height:44px;font-size:12px}.settings-sound-group .audio-diagnostics{margin:4px 0 8px;border-style:dashed}.settings-sound-group .audio-diagnostics summary{font-size:12px;min-height:44px}.settings-sound-group input[type=range]{height:44px;max-width:55%;min-width:100px}
.control-quick-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:12px 0 8px}.control-quick-guide article{display:flex;flex-direction:column;align-items:center;gap:4px;border:1px solid #afbba0;border-bottom:3px solid #92a07b;border-radius:10px;background:#ebefdb;padding:9px 4px;text-align:center}.control-quick-guide .icon{width:30px;height:30px}.control-quick-guide b{font-size:14px}.control-quick-guide span{font-size:12px;line-height:1.45;color:#53694a}.control-key-strip{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px;margin:8px 0 14px}.control-key-strip>span{font-size:12px;display:flex;align-items:center;gap:4px}.control-key-strip kbd{border:1px solid #a5b38c;border-bottom:3px solid #8d9a76;border-radius:5px;background:#fffbee;padding:3px 5px;font:700 12px system-ui;min-width:18px;text-align:center}.settings-modal .guide-fold{background:#f9f8e8;border:1px solid #adb99b;border-radius:10px;margin:8px 0}.settings-modal .guide-fold summary{font-size:13px;min-height:44px;line-height:1.4}.settings-modal .guide-list p{font-size:12px;line-height:1.6}.settings-modal .guide-system-scope{padding:8px;border-left:4px solid #7c9e58;background:#e4edcc}.settings-modal .fine-print,.settings-modal .save-note{font-size:12px;line-height:1.55}.settings-modal .ad-preview-setting{font-size:12px}
.journal-modal .inner-heading,.journal-panel .inner-heading{padding-right:40px;margin-bottom:10px}.journal-panel .inner-heading{display:flex;align-items:center;gap:12px;text-align:left}.journal-panel .inner-heading-art{flex:none}.journal-record-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0 0 12px}.journal-record-strip>span{display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap;padding:7px 3px;background:#e4ebd1;border:1px solid #adb999;border-radius:8px;font-size:12px}.journal-record-strip .icon{width:20px;height:20px}.journal-record-strip b{font-size:13px}.journal-modal .journal-tabs,.journal-panel .journal-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:5px 0 8px;border-bottom:2px solid #a4b38c;z-index:5}.journal-modal .journal-tabs button,.journal-panel .journal-tabs button{min-height:44px;font-size:12px;line-height:1.2;padding:4px 2px;gap:3px;flex-direction:column}.journal-tabs button>.icon{width:19px;height:19px}.journal-rule-scope{text-align:left;border-style:solid;border-left:4px solid #a889b9;background:#ede6f0}.journal-modal .journal-instruction,.journal-panel .journal-instruction{font-size:12px;line-height:1.6;padding:10px;border-radius:9px;background:#e9eddc}.journal-modal .journal-section-title,.journal-panel .journal-section-title{font-size:16px;border-left:4px solid #8ba75f;padding-left:8px}.journal-modal .recipe-card,.journal-panel .recipe-card,.journal-modal .study-card,.journal-panel .study-card{border-left:4px solid #a8b78a}.journal-modal .codex-filters button,.journal-panel .codex-filters button{min-height:44px;font-size:12px}.journal-modal .codex-pages,.journal-panel .codex-pages{min-height:44px}.journal-modal .codex-pages button,.journal-panel .codex-pages button{min-height:44px}
/* Outcome and safe-harbor menus: keep their real sticky actions and figures. */
.clear-panel>.clear-emblem{margin-top:0}.clear-panel>.panel-kicker,.camp-panel>.panel-kicker,.pause-panel>.panel-kicker{font-size:11px;letter-spacing:.8px}.clear-panel>h2,.camp-panel>h2,.pause-panel>h2{font-size:22px;line-height:1.3;margin:7px 0 9px;padding:10px}.clear-panel .clear-world,.clear-panel .harbor-run-note{border-left:4px solid #91aa66}.clear-panel .clear-world p,.clear-panel .harbor-run-note small,.camp-panel .camp-card p{font-size:12px;line-height:1.5}.clear-panel .clear-stats{margin:10px 0}.clear-panel .clear-stats>span{padding:8px 4px}.clear-panel .route-card .route-risk,.clear-panel .route-card .route-reward{font-size:12px;line-height:1.45}.camp-panel .camp-card{min-height:88px}.camp-panel .camp-card>strong{font-size:12px}.pause-panel .pause-summary{font-size:12px}
@media(max-width:700px){.loadout-modal .loadout-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.modal-card .inner-heading h2,.game-panel .inner-heading h2{font-size:22px}.modal-card .inner-heading{gap:10px}.inner-heading .inner-heading-art{width:48px;height:48px}.inner-heading-art>.icon{width:37px;height:37px}.weapon-manifest{grid-template-columns:70px minmax(0,1fr);padding:10px;gap:9px}.weapon-manifest-art{height:70px}.weapon-manifest-art>.icon{width:68px;height:68px}.weapon-manifest b{font-size:17px}.journal-record-strip>span{font-size:12px}.inner-aspect-list .aspect-card{grid-template-columns:56px minmax(0,1fr);gap:8px;padding:9px}.inner-aspect-list .aspect-mark{width:56px}.aspect-diagram{width:52px;height:44px}.inner-aspect-list .aspect-copy>b{font-size:15px}}
@media(max-width:480px){.ink-build-body .ink-core-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ink-build-body .ink-core-grid li{display:grid;grid-template-columns:30px minmax(0,1fr);grid-template-rows:auto auto auto;gap:2px 6px;text-align:left;align-items:center;padding:8px}.ink-build-body .ink-core-grid li:first-child{grid-column:1/-1}.ink-build-body .ink-position-icon{grid-column:1;grid-row:1/4;align-self:center}.ink-build-body .ink-core-grid small{grid-column:2;grid-row:1;color:#536b42}.ink-build-body .ink-core-grid b{grid-column:2;grid-row:2;font-size:13px;line-height:1.4}.ink-build-body .ink-core-grid li>span:not(.ink-position-icon){grid-column:2;grid-row:3;font-size:12px}.ink-build-body .ink-core-grid em{grid-column:2;grid-row:4;font-size:12px}.ink-build-body .ink-core-grid li:first-child{grid-template-columns:32px minmax(0,1fr) auto}.ink-build-body .ink-core-grid li:first-child small,.ink-build-body .ink-core-grid li:first-child b{grid-column:2}.ink-build-body .ink-core-grid li:first-child>span:not(.ink-position-icon){grid-column:3;grid-row:2}.ink-build-body .ink-core-grid li:first-child em{grid-column:3;grid-row:1}.ink-build-body .ink-direction-slots{grid-template-columns:1fr}.ink-build-body .ink-direction-slots li{grid-template-columns:20px minmax(0,1fr) auto;align-items:center;min-height:40px}.ink-build-body .ink-direction-slots small{grid-row:1}.ink-build-body .ink-direction-slots span{font-size:12px}.ink-build-body .ink-direction-grid{grid-template-columns:1fr}}
@media(max-height:420px) and (orientation:landscape){.modal-card .inner-heading{min-height:45px;margin-bottom:8px;padding-bottom:7px}.inner-heading .inner-heading-art{width:40px;height:40px}.inner-heading-art>.icon{width:31px;height:31px}.modal-card .inner-heading h2{font-size:21px}.weapon-manifest{grid-template-columns:68px minmax(0,1fr);margin-bottom:9px;padding:8px}.weapon-manifest-art{height:65px}.weapon-manifest-art>.icon{height:63px;width:63px}.loadout-modal .loadout-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.inner-aspect-list{grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:stretch}.inner-aspect-list .aspect-card{display:flex;flex-direction:column;gap:5px;padding:9px}.inner-aspect-list .aspect-mark{width:100%;height:42px;flex-direction:row;justify-content:space-between}.aspect-diagram{width:52px;height:40px}.inner-aspect-list .aspect-copy>b{font-size:14px}.journal-modal .journal-tabs,.journal-panel .journal-tabs{grid-template-columns:repeat(8,minmax(0,1fr))}.journal-modal .journal-tabs button,.journal-panel .journal-tabs button{font-size:12px}.settings-sound-group{padding:9px}.control-quick-guide{margin-top:8px}.clear-panel>.clear-emblem{display:none}}
@media(prefers-reduced-motion:reduce){.inner-heading-art,.aspect-diagram{animation:none;transition:none}}
/* Native320: close is already a sticky float. Do not reserve its width twice,
   and keep the first station's real price/action on screen. */
.modal-card .inner-heading{padding-right:0}
@media(max-width:380px){.modal-card .inner-heading .eyebrow{display:none}.modal-card .inner-heading{min-height:48px;margin-bottom:9px;padding-bottom:9px}.harbor-modal .harbor-wallet{margin:8px 0;padding:8px;min-height:44px}.harbor-modal .harbor-tabs{margin:9px 0}.harbor-research-board .research-board-hint{margin-bottom:8px}.harbor-research-board .research-rank-track{margin:8px 0}.harbor-research-board .research-purchase{margin-top:8px;padding-top:7px}.journal-modal .inner-heading{padding-right:0}}
/* Current run has its own entry; the eight archives stay two compact rows
   rather than leaving a lone third-row Boss tab pinned over the build. */
.journal-build-entry{display:flex;align-items:center;gap:7px;width:100%;min-height:44px;padding:8px;margin:5px 0 7px;border:1px solid #99ae77;border-bottom:3px solid #7e995b;border-radius:10px;background:#e7edcf;color:#365132;text-align:left}.journal-build-entry>.icon{width:24px;height:24px;flex:none}.journal-build-entry>b{font-size:13px;white-space:nowrap}.journal-build-entry>small{font-size:12px;line-height:1.35;margin-left:auto;text-align:right}.journal-build-entry.active{background:#d6e99c;border-color:#779647}
/* Settings native pass: the 44px slider hit box already supplies height. */
.settings-sound-group .settings-row{padding:2px 0;margin:3px 0;min-height:44px}
.settings-sound-group .audio-live-status{padding:6px}
