/* Command and repair controls share the existing portrait visual language. */
#map-open,#focus-mother{display:none!important}
.home-mother{position:relative;width:100%;min-height:76px;display:flex;align-items:center;gap:12px;text-align:left;padding:12px 15px 15px;margin:3px 0 9px;background:linear-gradient(110deg,#233b5e,#172944);border:1px solid #83b2df70;border-radius:12px;color:#dcecff;overflow:hidden}
.mother-emblem{font-size:36px;color:#abcdf2;width:45px;text-align:center}.mother-caption{display:flex;flex-direction:column;gap:3px}.mother-caption small{font:8px ui-monospace;letter-spacing:1.4px;color:#8fafd4}.mother-caption b{font-size:17px;font-weight:550}.mother-caption>span{font-size:9px;color:#a8bed9}.mother-integrity{margin-left:auto;text-align:right;display:flex;flex-direction:column;gap:4px}.mother-integrity b{font-size:19px;font-weight:500}.mother-integrity small{font-size:10px;color:#9cc8d9}.mother-hp-track{position:absolute;bottom:0;left:0;right:0;height:3px;background:#0a162b}.mother-hp-track i{display:block;height:100%;background:#8abbea;transition:width .2s}
.compact #quick-ships .fleet-card{height:108px;min-height:108px}.compact #roster-hint{font-size:8px}.compact #compact-controls{padding-top:7px}.compact #camera-reset{bottom:327px}
.under-fire{border-color:#ff8b79!important;animation:hit-pulse .72s ease-in-out infinite!important}.under-fire .card-name>span,.under-fire .mother-integrity small{color:#ffbaa6!important;font-weight:700}.critical:not(.under-fire){border-color:#e87a70!important;box-shadow:inset 0 0 20px #c1483828}.critical .tiny-health i,.critical .mother-hp-track i{background:#ff8a7a!important}
@keyframes hit-pulse{0%,100%{box-shadow:0 0 0 1px #ffae8c88,inset 0 0 24px #ff6b4226}50%{box-shadow:0 0 18px #ed6a5066,inset 0 0 32px #e94e3447}}
#hit-alert{position:absolute;top:171px;left:16px;right:16px;z-index:35;min-height:40px;text-align:left;padding:10px 13px;border:1px solid #f3997c;background:#713b31f5;color:#ffe7da;border-radius:10px;font-size:12px;font-weight:600;box-shadow:0 4px 28px #0006}#hit-alert[hidden]{display:none}.taking-fire:after{content:'';position:absolute;inset:0;pointer-events:none;z-index:5;box-shadow:inset 0 0 45px #a7333524}.taking-fire .tutorial{top:224px!important}.taking-fire #tutorial-restore{top:220px!important}
.compact #unit-panel .unit-hero:not(.mother-hero){padding:10px 12px;min-height:100px;display:grid;grid-template-columns:82px 1fr;column-gap:10px;text-align:left}.compact #unit-panel .unit-hero:not(.mother-hero)>svg{width:80px;height:65px;grid-row:1/5}.compact #unit-panel .unit-hero:not(.mother-hero) h3{font-size:19px;margin:3px 0}.compact #unit-panel .unit-hero:not(.mother-hero) p{font-size:10px;margin:3px 0}.compact #unit-panel .unit-hero:not(.mother-hero) .role-tag{justify-self:start;font-size:10px}
.formation-choices,.stance-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.formation-choices button,.stance-buttons button{border:1px solid #667d9a55;background:#1d2d46;min-height:43px;border-radius:8px;color:#c4d4e8;padding:8px 5px}.formation-choices button{display:flex;flex-direction:column;gap:3px;align-items:center}.formation-choices small{font-size:8px;letter-spacing:1px;color:#8ba5c2}.formation-choices .active,.stance-buttons .active{background:#31536c;border-color:#a5d3e5;color:#e0f4ff}.command-guide-target{outline:1px solid #a8dfeb;outline-offset:2px;box-shadow:0 0 13px #8eddec45}.command-training{padding:12px;border:1px solid #8cb2d655;border-radius:9px;background:#28445a66;margin:10px 0}.command-training small{display:block;font-size:8px;color:#9cbbd9;letter-spacing:1.2px}.command-training b{display:block;font-size:12px;margin-top:4px}.command-training p{font-size:11px;line-height:1.6;color:#bcd1e3;margin:6px 0 0}.command-stance-note{min-height:30px;line-height:1.6}
.field-repair{display:grid;grid-template-columns:1fr auto;gap:10px;padding:13px;background:#21382e80;border:1px solid #81b49f60;border-radius:10px;margin:14px 0}.field-repair>div{display:flex;flex-direction:column;gap:5px}.field-repair b{font-size:13px}.field-repair small{font-size:9px;color:#9fb9af}.field-repair button,.kit-stock button{padding:8px 10px;background:#3a675a;border:1px solid #83bdaa77;border-radius:7px;color:#d9f0e8}.field-repair button small,.kit-stock button small{display:block;font-size:9px;margin-top:4px}.field-repair p{grid-column:1/-1;font-size:10px;color:#a2baaf;line-height:1.5;margin:0}.kit-stock{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;margin:12px 0}.support-control select{display:block;width:100%;padding:11px;background:#15283b;color:#c5d8e8;border:1px solid #6c8b9a70;border-radius:8px;margin:8px 0}.support-control label{font-size:11px}.support-control p{font-size:10px;color:#a6bed1;line-height:1.6}.hull-metrics{display:block;font-size:9px;color:#91abc6;margin-top:5px}.volume-row output{margin-left:auto;color:#b8dbe9;font:12px ui-monospace}.compact .unit-advanced>summary{font-size:12px}
@media(max-height:760px){.home-mother{min-height:65px;padding:9px 12px 12px}.mother-caption b{font-size:15px}.mother-caption>span{font-size:8px}.compact #quick-ships .fleet-card{height:89px;min-height:89px}.compact #camera-reset{bottom:291px}.compact .tutorial p{font-size:10px}.compact .tutorial{top:172px}.compact .tutorial #tutorial-action{min-height:25px;margin-top:3px}}
@media(prefers-reduced-motion:reduce){.under-fire{animation:none!important;box-shadow:0 0 0 2px #ff9b83!important}}
