/* Character selection keeps the native dialog and business controls on one PC screen. */
#characterSelect [hidden]{display:none!important}
#characterSelect .cs-pager[hidden],#characterSelect .cs-detail[hidden]{display:none!important}
@media(min-width:1100px) and (min-height:650px){
 #characterSelect.cs-pc{width:min(1400px,96vw);max-width:96vw;height:min(900px,94dvh);max-height:94dvh;padding:12px;box-sizing:border-box;overflow:hidden}
 #characterSelect.cs-pc .cs-shell{min-width:0;min-height:0}
 #characterSelect.cs-pc .cs-header{padding:12px 20px;margin:0;min-height:78px;gap:14px;align-items:center;box-sizing:border-box}
 #characterSelect.cs-pc .cs-header>div{display:grid;grid-template-columns:auto minmax(260px,1fr);gap:0 24px;align-items:center;min-width:0}
 #characterSelect.cs-pc .cs-header-art{width:44px;height:44px;padding:4px;flex:none}
 #characterSelect.cs-pc .cs-header h2{font-size:23px;line-height:1.3;margin:0 0 4px}
 #characterSelect.cs-pc .cs-eyebrow{font-size:11px;line-height:1.4;letter-spacing:1px;margin:0 0 3px}
 #characterSelect.cs-pc .cs-intro{font-size:13px;line-height:1.5;margin:0;color:#e5e9d0}
 #characterSelect.cs-pc .cs-header :is(.cs-eyebrow,h2){grid-column:1}
 #characterSelect.cs-pc .cs-header .cs-intro{grid-column:2;grid-row:1/3;max-width:430px;justify-self:center}
 #characterSelect.cs-pc .cs-close{min-height:38px;min-width:0;padding:8px 14px;margin-right:42px;font-size:13px;line-height:1.4}
 #characterSelect.cs-pc .cs-scroll{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(360px,1fr);grid-template-rows:38px minmax(0,1fr);gap:14px 16px;padding:16px 20px;overflow:hidden;min-width:0;min-height:0}
 #characterSelect.cs-pc .cs-pager{display:flex;align-items:center;gap:12px;grid-column:1;grid-row:1;min-width:0}
 #characterSelect.cs-pc .cs-pager button,#characterSelect.cs-pc .cs-detail-tabs button{font:13px/1.4 'Microsoft YaHei',sans-serif;border:1px solid #bdae85;border-image:none;background:#faf3de;border-radius:7px;padding:8px 14px;min-height:36px;margin:0;box-shadow:none;letter-spacing:0;min-width:0;transform:none}
 #characterSelect.cs-pc .cs-pager span{font-size:13px;color:#766346;min-width:115px;text-align:center}
 #characterSelect.cs-pc .cs-grid{grid-column:1;grid-row:2;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:12px;min-width:0;min-height:0}
 #characterSelect.cs-pc .cs-card{display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;align-content:center;gap:2px 8px;padding:12px;border-width:1px;border-image:none;box-shadow:inset 0 0 0 2px #fff9e599;border-radius:9px;text-align:left;min-width:0;min-height:0;overflow:visible;transform:none}
 #characterSelect.cs-pc .cs-card.is-selected{padding:11px;border-width:2px;border-color:#53734e;background:#edf0d8;box-shadow:inset 0 0 0 2px #fff8df;color:#3c5f45}
 #characterSelect.cs-pc .cs-portrait{grid-column:1;grid-row:1/3;width:44px;height:60px;padding:0;background:transparent;min-height:0}
 #characterSelect.cs-pc .cs-portrait img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
 #characterSelect.cs-pc .cs-card strong{grid-column:2;grid-row:1;align-self:end;font-size:14px;line-height:1.45;margin:0;overflow-wrap:anywhere}
 #characterSelect.cs-pc .cs-state{grid-column:2;grid-row:2;align-self:start;font-size:13px;line-height:1.4;margin:0;color:#817451}
 #characterSelect.cs-pc .cs-check{width:17px;height:17px;font-size:11px;line-height:17px;top:0;right:0;background:#52734e}
 #characterSelect.cs-pc .cs-detail{grid-column:2;grid-row:1/3;display:flex;flex-direction:column;gap:12px;min-width:0;min-height:0;padding:16px;border:1px solid #c8b78d;border-radius:10px;background:linear-gradient(135deg,#fff9e8dd,#eee6cbd9);box-shadow:inset 0 0 0 3px #fff9e380}
 #characterSelect.cs-pc .cs-detail-tabs{display:flex;gap:10px;flex:none}
 #characterSelect.cs-pc .cs-detail-tabs button[aria-pressed=true]{background:#45684f;border-color:#45684f;color:#fff8dc}
 #characterSelect.cs-pc .cs-detail-role,#characterSelect.cs-pc .cs-detail-sources{min-height:0;flex:1}
 #characterSelect.cs-pc .cs-selected-portrait{display:block;width:100%;height:clamp(140px,23vh,240px);object-fit:contain;mix-blend-mode:multiply;margin:6px auto 14px;filter:drop-shadow(0 4px 4px #7a693c25)}
 #characterSelect.cs-pc .cs-detail h3{font-size:19px;line-height:1.5;margin:0 0 12px;color:#476046}
 #characterSelect.cs-pc .cs-detail p{font-size:14px;line-height:1.7;margin:10px 0;color:#6b614a}
 #characterSelect.cs-pc .cs-detail .cs-detail-next{border-top:1px solid #d6c59c;padding-top:12px;font-size:13px}
 #characterSelect.cs-pc .cs-detail .cs-credit{font-size:14px;line-height:1.9;text-align:left;margin:0 0 16px;color:#6b614a}
 #characterSelect.cs-pc .cs-mounts{padding:0;margin:0;border:0;background:transparent;border-radius:0}
 #characterSelect.cs-pc .cs-mount-heading{gap:8px;margin:0 0 12px}
 #characterSelect.cs-pc .cs-mount-heading strong{font-size:16px;line-height:1.4}
 #characterSelect.cs-pc .cs-mount-heading small{font-size:13px;line-height:1.5;margin-top:4px}
 #characterSelect.cs-pc .cs-mount-heading>span{font-size:13px;line-height:1.5}
 #characterSelect.cs-pc .cs-mount-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 #characterSelect.cs-pc .cs-mount-card{display:grid;grid-template-columns:48px minmax(0,1fr);grid-template-rows:auto auto;column-gap:8px;align-content:center;align-items:center;text-align:left;padding:10px;min-height:68px;border-radius:8px;box-shadow:none;transform:none}
 #characterSelect.cs-pc .cs-mount-card[aria-pressed=true]{padding:9px;background:#ecf0d8;border-color:#54714a}
 #characterSelect.cs-pc .cs-mount-card img{grid-column:1;grid-row:1/3;width:48px;height:44px;background:none;object-fit:contain}
 #characterSelect.cs-pc .cs-mount-card strong{grid-column:2;grid-row:1;font-size:13px;line-height:1.4;margin:0}
 #characterSelect.cs-pc .cs-mount-card small{grid-column:2;grid-row:2;font-size:13px;line-height:1.4;margin:0}
 #characterSelect.cs-pc .cs-mount-card>span{display:none}
 #characterSelect.cs-pc .cs-mount-preview{display:flex;align-items:center;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid #ccb98c}
 #characterSelect.cs-pc .cs-mount-preview img{width:74px;height:60px;object-fit:contain;flex:none}
 #characterSelect.cs-pc .cs-mount-preview strong{font-size:14px;line-height:1.4;display:block;color:#436044}
 #characterSelect.cs-pc .cs-mount-preview small{font-size:12px;line-height:1.5;display:block;color:#8a6f47;margin-top:3px}
 #characterSelect.cs-pc .cs-mount-preview p{font-size:13px;line-height:1.5;margin:4px 0 0}
 #characterSelect.cs-pc .cs-footer{min-height:70px;box-sizing:border-box;padding:12px 20px;gap:20px;flex-wrap:nowrap;align-items:center}
 #characterSelect.cs-pc .cs-footer>div{min-width:0;flex:1}
 #characterSelect.cs-pc .cs-footer strong{font-size:16px;line-height:1.4;margin:0 0 4px}
 #characterSelect.cs-pc .cs-footer span{font-size:13px;line-height:1.5;display:block}
 #characterSelect.cs-pc .cs-confirm{min-height:46px;min-width:0;padding:11px 20px;line-height:1.5;font-size:14px;flex:none;white-space:nowrap;margin:0}
 #characterSelect.cs-pc button:focus-visible{outline:3px solid #357c70;outline-offset:2px}
}
/* Small desktop windows retain every role, mount and source without a second scroll area. */
@media(min-width:1100px) and (min-height:650px) and (max-height:699px){
 #characterSelect.cs-pc .cs-card{grid-template-columns:30px minmax(0,1fr);column-gap:6px;row-gap:2px;padding:8px}
 #characterSelect.cs-pc .cs-card.is-selected{padding:7px}
 #characterSelect.cs-pc .cs-portrait{width:30px;height:44px}
 #characterSelect.cs-pc .cs-card strong{font-size:13px;line-height:1.3}
 #characterSelect.cs-pc .cs-state{font-size:12px;line-height:1.3;white-space:nowrap}
 #characterSelect.cs-pc .cs-detail{gap:10px}
 #characterSelect.cs-pc .cs-selected-portrait{height:92px;margin:2px auto 8px}
 #characterSelect.cs-pc .cs-detail h3{font-size:17px;line-height:1.4;margin-bottom:8px}
 #characterSelect.cs-pc .cs-detail p{font-size:13px;line-height:1.6;margin:8px 0}
 #characterSelect.cs-pc .cs-detail .cs-detail-next{padding-top:8px}
 #characterSelect.cs-pc .cs-mount-heading{margin-bottom:8px}
 #characterSelect.cs-pc .cs-mount-grid{gap:8px}
 #characterSelect.cs-pc .cs-mount-card{grid-template-columns:36px minmax(0,1fr);column-gap:6px;padding:6px;min-height:52px}
 #characterSelect.cs-pc .cs-mount-card[aria-pressed=true]{padding:5px}
 #characterSelect.cs-pc .cs-mount-card img{width:36px;height:34px}
 #characterSelect.cs-pc .cs-mount-preview{margin-top:8px;padding-top:8px;gap:10px}
 #characterSelect.cs-pc .cs-mount-preview img{width:60px;height:48px}
 #characterSelect.cs-pc .cs-mount-preview p{font-size:13px;line-height:1.5;margin:4px 0 0}
}
