.preset-toolbar{display:flex;align-items:center;gap:8px;margin-left:auto}
.preset-toolbar button{min-height:44px;padding:9px 16px;font:13px 'Malgun Gothic',sans-serif;color:#eddfb8;border:1px solid #bbaa7266;border-radius:5px;background:#233a43}
.preset-toolbar small{font-size:11px;margin-left:4px;color:#ddca84}
.empty-company{position:absolute;left:8%;top:22%;max-width:45%;color:#c6cfbd}
.empty-company>span{font:14px Georgia;letter-spacing:5px;color:#d3bc83}
.empty-company h2{font-size:28px;color:#eee3c6;margin:15px 0}
.empty-company p{font-size:14px;line-height:1.7}
.portrait-slot.vacant{display:flex;align-items:center;justify-content:center;border-style:dashed;background:#112735bb;color:#a8b7ad}
.portrait-slot.vacant>.ui-icon{width:22px;height:22px;margin-top:-12px}
.command-screen .roster-hero-pool{display:grid;grid-template-columns:1fr;gap:8px}
.hero-register-card{display:flex;align-items:center;gap:10px;padding:7px;background:#142e3b;border:1px solid #9b9c6f45;border-radius:6px;min-width:0}
.hero-register-card>img{width:48px;height:56px;object-fit:cover;object-position:top;border-radius:4px;background:#283b40}
.hero-register-card>span{min-width:0;flex:1;display:flex;flex-direction:column;gap:6px}
.hero-register-card b{font-size:14px}.hero-register-card small{font-size:11px;color:#bac6bd;line-height:1.4}
.hero-register-card>button{width:44px;min-width:44px;min-height:44px;display:grid;place-items:center;padding:0;background:#d1bf81;color:#1e3338;border:1px solid #f1dfab;border-radius:5px}
.hero-register-card>button:disabled{background:#233841;color:#9aaa9b;border-color:#78887677;opacity:.6}
.remove-registered{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;width:100%;margin-top:14px;font-size:13px;color:#d5b4a8}
.preset-status{overflow:hidden;text-overflow:ellipsis;max-width:200px}.preset-status>b{display:block!important;margin:5px 0 0!important;font-size:11px!important;letter-spacing:0}
.preset-form,.preset-library{font:14px/1.65 'Malgun Gothic',sans-serif}
.preset-form label{display:block;font-weight:700;margin:18px 0 7px}.preset-form input{width:100%;font:16px 'Malgun Gothic',sans-serif;padding:12px;min-height:48px;box-sizing:border-box}
.preset-form-actions{display:flex;gap:8px;margin:16px 0}.preset-form-actions button{flex:1;min-height:48px;font-size:14px;color:#182e36;background:#d7c790;border-color:#e2cf98}
.preset-feedback{color:#f1c388;min-height:20px}.preset-form>small,.preset-library>small{color:#bcc8bd}
.preset-entry{padding:14px 0;border-bottom:1px solid #b6a77b44}.preset-entry>div:first-child{display:flex;justify-content:space-between;gap:12px}.preset-entry b{overflow-wrap:anywhere}.preset-entry small{white-space:nowrap;color:#c3c8b0}
.preset-faces{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin:10px 0}
.preset-faces img,.preset-faces span{width:100%;height:62px;object-fit:cover;object-position:top;background:#243b43;border:1px solid #a9a27855;border-radius:4px;box-sizing:border-box}
.preset-faces span{display:grid;place-items:center;color:#9eafaa}.preset-entry>button{width:100%;min-height:44px;color:#ecdaac}.preset-empty{padding:24px 0;text-align:center}
.strategy-candidate-row{display:flex;gap:5px;min-width:0;align-items:stretch}
.strategy-candidate-row>.strategy-unit{flex:1;min-width:0;width:auto}
.strategy-enlist{width:44px;min-width:44px;min-height:48px;align-self:center;padding:4px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #cbbb8066;border-radius:5px;background:#1f3947;color:#edda9b}
.strategy-enlist.selected{background:#d1be7d;color:#173039;border-color:#f4e0a0}.strategy-enlist b{font-size:18px}.strategy-enlist small{font-size:10px}.strategy-enlist .ui-icon{width:20px}
.strategy-pick:empty{display:none}
@media(max-width:700px) and (orientation:portrait){
 :root .command-screen.has-presets{grid-template-rows:100px 94px 88px minmax(0,1fr) 74px}
 .command-screen.has-presets .game-topbar{height:100px;display:grid;grid-template-columns:40px 1fr 40px;grid-template-rows:44px 44px;gap:3px 8px;padding:3px 12px}
 .has-presets .game-back,.has-presets .round-control{width:38px;height:40px;min-height:40px}
 .has-presets .game-page-title{grid-column:2;grid-row:1}.has-presets .game-topbar>.round-control{grid-column:3;grid-row:1}
 .has-presets .preset-toolbar{grid-column:1/-1;grid-row:2;margin:0;gap:8px}.preset-toolbar button{flex:1;min-height:40px;padding:7px 10px}
 .command-screen.has-presets .commander-stage{height:94px}
 .empty-company{left:17px;top:10px;max-width:92%}.empty-company>span{font-size:11px}.empty-company h2{font-size:18px;margin:6px 0}.empty-company p{font-size:11px;margin:0}
 .has-presets .commander-identity h2{font-size:23px}
 .strategy-candidate-row{gap:3px}.strategy-candidate-row .strategy-unit{padding:5px 4px;gap:5px}.strategy-candidate-row .strategy-face{width:30px;min-width:30px}
 .strategy-candidate-row .strategy-relations{display:none}.strategy-candidate-row .strategy-unit-copy>b{font-size:11px}.strategy-candidate-row .strategy-class{font-size:10px}
 .strategy-enlist{width:36px;min-width:36px;min-height:48px}
}
@media(max-width:1100px) and (max-height:600px) and (orientation:landscape){
 :root .command-screen.has-presets{height:100dvh;min-height:340px;overflow:hidden}
 :root .command-screen.has-presets .command-panel{position:absolute;left:auto;right:12px;top:59px;bottom:98px;width:55%;height:auto!important;max-height:none;display:flex;flex-direction:column}
 .command-screen.has-presets .command-panel-content{height:auto;min-height:0;flex:1;overflow:auto}
 .command-screen.has-presets .command-tabs{height:46px;min-height:46px}
 .preset-toolbar{gap:6px}.preset-toolbar button{min-height:40px;padding:8px 10px;font-size:12px}
 .empty-company{left:20px;top:20px;max-width:85%}.empty-company h2{font-size:19px}.empty-company p{font-size:12px}
 .strategy-candidate-row .strategy-unit{padding:5px;gap:4px}.strategy-candidate-row .strategy-face{width:30px;min-width:30px}.strategy-candidate-row .strategy-relations{display:none}
}
