/* Fix v43 regressions: explicit page order and non-collapsing squad rows. */
#workspace>.topbar,#workspace>.section-nav,#workspace>.war-subnav,#workspace>.workspace-bar,#workspace>main{order:0}
#navPlayerAnnouncements,#navOfficerAnnouncements{order:-1}
#tw-rule-list{display:grid;grid-auto-rows:max-content;align-content:start;gap:8px;overflow-y:auto;overflow-x:hidden}
#tw-rule-list .tw-rule-editor{height:auto;min-height:100px;max-height:none;grid-template-rows:34px 40px;align-content:start;flex-shrink:0;padding:9px;box-sizing:border-box}
.tw-rule-editor .tw-rule-title{height:34px;min-height:34px}
.tw-rule-editor .tw-tier-range{margin:0;padding:0;height:40px}
.tw-rule-editor .tw-rule-icons{display:contents}
.tw-rule-editor .tw-dc-picker{height:40px}
.tw-rule-editor .tw-dc-trigger,.tw-rule-editor .tw-omicron-visual{height:38px;min-height:38px}
.tw-rule-editor .tw-manual-open{height:40px;align-self:center}
.tw-location-members .character-name{display:none}
.tw-location-members{align-items:start}
.tw-location-members .character-card{justify-content:flex-start;align-self:start;padding-top:0}
.tw-location-card-body{align-items:flex-start}
.tw-location-members .character-art{width:100%;margin-top:0}
.members-list span.good{color:#8cdeb1;font-weight:600}
/* Role buttons have their own fixed row; portraits cannot rise into it. */
.slot .slot-types,.slot .slot-type.leader-type{height:40px;min-height:40px;flex:0 0 40px;margin:0 0 10px;align-items:center;padding:0}
.slot .type-button{min-height:34px;height:34px;flex:none}
.slot .choose{flex:1 0 auto;width:100%;padding:0;gap:8px;min-height:140px;justify-content:flex-start}
.slot .choose>.portrait,.slot .choose>.team-avatar{flex-shrink:0;margin-top:0}
.slot .choose .slot-name{margin:0;min-height:36px}
.slot .unit-controls{flex:none;margin-top:10px}
@media(max-width:1000px){
 #workspace>.topbar{grid-row:1}
 #workspace>.section-nav{grid-row:2}
 #workspace>.war-subnav{grid-row:3}
 #workspace>.workspace-bar{grid-row:4}
 #workspace>main{grid-row:5}
 #workspace>.section-nav,#workspace>.war-subnav{height:auto;min-height:0;position:static;max-width:100%;min-width:0}
}
@media(max-width:620px){
 #tw-rule-list .tw-rule-editor{min-height:100px;grid-template-rows:34px 40px;gap:6px;padding:9px 6px}
 .tw-rule-editor .tw-rule-title small{display:block}
 .tw-location-members:not(:has(.tw-location-ship)){grid-template-columns:repeat(5,minmax(64px,1fr))}
 .slot .choose{min-height:142px}
 .war-subnav>div{gap:6px}
 .section-nav #playerSections,.section-nav #officerSections{height:auto;min-height:40px}
}
