/* C reference geometry: left city rail, central command/roster, right hero/action.
   Source reference 1536x1024, fluid grid adapts without scaling text. */
body[data-phase=domestic]:not([data-domestic-map=true]) .app {
 padding:0;height:100dvh;overflow:hidden;
 background:linear-gradient(180deg,#07171c18 12%,#081a204d 35%,#07181c66 72%,#091a2018),var(--sg-art) center/cover;
}
body[data-phase=domestic]:not([data-domestic-map=true]) .topbar{flex:0 0 88px;padding-right:28px;gap:22px}
body[data-phase=domestic]:not([data-domestic-map=true]) .session-bar{position:absolute;right:24px;top:104px;z-index:4;padding:0}
body[data-phase=domestic]:not([data-domestic-map=true]) #session-status{display:none}
body[data-phase=domestic]:not([data-domestic-map=true]) .page-footer{display:none}
.domestic-view[data-design=c-sliced]{
 display:grid;grid-template-columns:minmax(220px,21%) minmax(0,43%) minmax(0,36%);
 grid-template-rows:144px 66px minmax(0,1fr) 74px;
 flex:1;min-height:0;margin:0;border:0;border-radius:0;overflow:hidden;background:none;
 font-family:"Microsoft YaHei",sans-serif;
}
.domestic-view .policy-heading{grid-column:2/4;grid-row:1;padding:22px 28px 12px;margin:0;display:flex;align-items:center;background:linear-gradient(90deg,#0b212ba6,transparent);border:0}
.policy-title h2{font:48px/1.2 KaiTi,STKaiti,serif!important;letter-spacing:5px;margin:0 0 12px}
.policy-title>p{color:#adbeb3;font:20px/1.5 KaiTi,serif;margin:0;letter-spacing:2px}
.policy-map-link{align-self:flex-end;margin-left:auto;min-height:32px;font-size:12px;padding:6px 12px}
.domestic-view .policy-task-choice{grid-column:2/4;grid-row:2;display:flex;flex-wrap:nowrap;margin:0 24px;padding:0 0 10px;background:none;border:0;border-bottom:1px solid #b59b6288;gap:10px}
.domestic-view .policy-task-choice button{flex:0 0 150px;min-width:0;margin:0}
.domestic-view .policy-task-guide{display:block;margin:0 0 0 auto;padding:0;font-size:12px;white-space:nowrap;color:#c0b897;border:0;background:none;align-self:center}
.domestic-view .policy-hall{display:contents}
.domestic-view .policy-cities{grid-column:1;grid-row:1/4;padding:38px 16px 28px 24px;height:auto;min-height:0;border:0;background:linear-gradient(180deg,#19262cbf 0%,#17242bc9 56%,#17242b77 83%,#17242b18);overflow:hidden}
.domestic-view .policy-roster{grid-column:2;grid-row:3;padding:24px 22px 20px 28px;margin:18px 0 16px 0;min-height:0;height:auto;border:0;background:linear-gradient(180deg,#28343a99,#17232bb8 65%,#17232b66);backdrop-filter:blur(2px)}
.domestic-view .sg-panel-heading{border:0;padding:0 0 18px;margin:0;justify-content:flex-start;gap:16px}
.domestic-view .sg-panel-heading h3{font-size:25px;color:#e3cda0}
.domestic-view .policy-cities .sg-panel-heading small{display:none}
.domestic-view .sg-panel-heading small{font-size:12px}
.domestic-view .policy-scroll{padding:5px;min-height:0;flex:1;scrollbar-width:thin;scrollbar-color:#5b827744 transparent}
.domestic-view .policy-city{min-height:112px;padding:8px 5px!important;gap:12px!important}
.domestic-view .policy-city .sg-roster-art{width:100px;height:96px;flex:0 0 100px;border:0}
.domestic-view .sg-roster-copy strong{font-size:25px!important}
.domestic-view .policy-city .sg-roster-copy small{white-space:pre-line;font-size:12px!important;line-height:1.9!important}
.policy-roster-columns{display:grid;grid-template-columns:1fr 70px 85px;padding:10px 12px;color:#b6beb1;font-size:13px;border-top:1px solid #b0b5a31c;border-bottom:1px solid #a28d5544;background:linear-gradient(90deg,#adc4b20a,#adc4b21a,#adc4b208)}
.domestic-view .policy-person{display:grid;grid-template-columns:64px minmax(0,1fr) 70px 85px;gap:14px;padding:10px 8px!important;min-height:100px}
.domestic-view .sg-roster-row:not([aria-pressed=true]):hover{background:#adcbb313!important;border-color:#b7d0b633!important;box-shadow:inset 0 0 12px #b7d0b609!important}
.domestic-view .sg-roster-row[aria-pressed=true] .policy-int{color:#a5e7c0;text-shadow:0 0 9px #9ae8ba44}
.domestic-view .policy-commands .sg-art-action{filter:saturate(.78) brightness(.93)}
.domestic-view .policy-commands .sg-art-action:hover:not(:disabled){filter:saturate(.9) brightness(1.08)}
.domestic-view .policy-person .sg-roster-art{width:64px;height:78px;border:1px solid #b3a17866}
.policy-person .sg-roster-copy small{display:none}.policy-int{color:#c6c7b5;font-size:19px}.policy-availability{color:#aab6aa;font-size:13px}
.domestic-view .policy-office{grid-column:3;grid-row:3;margin:18px 24px 16px 0;padding:0 0 0 24px;border-left:1px solid #ac905a77;display:flex;align-items:stretch;gap:0;overflow:auto;min-height:0;background:radial-gradient(ellipse at 72% 20%,#a49c7733,transparent 43%),linear-gradient(180deg,#0e222850,#0b1e24c9 45%,#091d22eb 80%);backdrop-filter:blur(1px)}
.domestic-view .policy-office .policy-person-info{position:relative;display:block;flex:0 0 235px;min-height:235px;padding:0;margin:0;border:0;overflow:hidden;isolation:isolate}
.domestic-view .policy-portrait{position:absolute;inset:0;min-height:0;z-index:-1;overflow:hidden;mask-image:linear-gradient(#000 64%,#000b 84%,transparent)}
.policy-hero-art{position:absolute;right:0;top:0;height:360px;width:260px;object-fit:contain;object-position:right top;filter:drop-shadow(-10px 0 20px #c4b99020) drop-shadow(0 8px 12px #0006)}
.domestic-view .policy-person-summary{position:relative;max-width:68%;padding:14px 0 0;z-index:1}
.domestic-view .policy-person-summary h3{font:38px KaiTi,serif;color:#f0d8a8;margin:0 0 14px;letter-spacing:3px;text-shadow:0 2px 4px #07171d}
.policy-hero-stats{font-size:13px;color:#c4c9b5;text-shadow:0 1px 3px #07171d;margin:0 0 12px}
.policy-hero-state{font-size:12px;color:#9ec0a9}
.domestic-view .policy-original-portrait{inset:8px 0 0 auto;width:130px;z-index:-1;mask-image:linear-gradient(#000 75%,transparent)}
.domestic-view .policy-original-portrait .portrait{width:100%;height:180px;object-fit:contain;border:0}
.domestic-view .policy-commands{display:flex;flex-direction:column;width:100%;gap:10px;padding:0;background:none}
.domestic-view .policy-commands h3{font:26px KaiTi,serif;letter-spacing:2px;color:#e5cca0;margin:0}
.domestic-view .policy-caption{font-size:13px;line-height:1.7;color:#bcc4af;margin:0}
.policy-outcomes{display:grid;grid-template-columns:1fr 1fr;border:1px solid #a7ac7e40;border-radius:3px;margin:2px 0;background:linear-gradient(110deg,#182f2b99,#071b20aa);box-shadow:inset 0 1px 0 #ced1a814,0 2px 7px #0002}
.policy-outcomes>div{display:flex;gap:14px;align-items:center;padding:13px 12px}.policy-outcomes>div+div{border-left:1px solid #c2aa6233}
.policy-outcomes small{font-size:13px;color:#e3d8b7}.policy-outcomes strong{font-size:22px;font-weight:500;color:#9de2b8}
.domestic-view .policy-feedback{font:12px/1.6 "Microsoft YaHei",sans-serif;color:#c0bd9d;min-height:20px;margin:0}
.domestic-view .policy-commands .policy-order{min-height:58px;font:26px KaiTi,serif}
.policy-secondary{display:flex;justify-content:flex-end;gap:12px;margin-top:2px}.policy-secondary button{font-size:12px;background:none;border:0;border-bottom:1px solid #8c967144;padding:4px 8px;min-height:28px;color:#a6b7ab}
.domestic-view .policy-ending{grid-column:1/4;grid-row:4;margin:0;padding:8px 28px;background:linear-gradient(0deg,#081b24d9,transparent);border:0;gap:24px;position:static}
.domestic-view .policy-ending p{margin-left:22%;font:13px/1.6 KaiTi,serif;color:#c8c3a4;letter-spacing:1px}
.domestic-view .policy-ending button{flex:0 0 180px}
.policy-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
@media(min-width:761px) and (max-height:850px){
 .domestic-view[data-design=c-sliced]{grid-template-rows:110px 58px minmax(0,1fr) 64px}
 .domestic-view .policy-office .policy-person-info{flex-basis:175px;min-height:175px}
 .policy-hero-art{height:300px;width:220px}.domestic-view .policy-roster,.domestic-view .policy-office{margin-top:12px}
 .policy-title h2{font-size:40px!important}.domestic-view .policy-caption,.policy-outcomes>div{font-size:12px}
 .policy-outcomes>div{padding:8px}.domestic-view .policy-commands{gap:7px}
}
@media(min-width:761px) and (max-width:1200px){
 .domestic-view[data-design=c-sliced]{grid-template-columns:22% 40% 38%}
 .domestic-view .policy-task-guide{font-size:10px}.domestic-view .policy-task-choice button{flex-basis:110px}
 .domestic-view .policy-city .sg-roster-art{width:70px;height:82px;flex-basis:70px}
 .domestic-view .policy-person{grid-template-columns:48px minmax(0,1fr) 35px 60px;gap:8px}
 .domestic-view .policy-person .sg-roster-art{width:48px;height:62px}
 .policy-roster-columns{grid-template-columns:1fr 35px 60px}.domestic-view .sg-roster-copy strong{font-size:21px!important}
 .domestic-view .policy-cities{padding-left:12px;padding-right:10px}.domestic-view .policy-roster{padding:18px 12px}.domestic-view .policy-office{padding-left:16px;margin-right:16px}
}
@media(max-width:760px){
 body[data-phase=domestic]:not([data-domestic-map=true]) .app{height:auto;overflow:visible;min-height:100dvh;padding:0}
 body[data-phase=domestic]:not([data-domestic-map=true]) .topbar{flex-basis:auto;min-height:64px;padding:10px 12px}
 body[data-phase=domestic]:not([data-domestic-map=true]) .scenario-controls{display:none}
 body[data-phase=domestic]:not([data-domestic-map=true]) .session-bar{position:static;justify-content:flex-end;padding:6px 12px}
 .domestic-view[data-design=c-sliced]{display:grid;grid-template-columns:42% 58%;grid-template-rows:auto auto 330px auto auto;overflow:visible}
 .domestic-view .policy-heading{grid-column:1/3;grid-row:1;padding:16px}.policy-title h2{font-size:32px!important}.policy-title>p{font-size:15px;letter-spacing:0}
 .domestic-view .policy-task-choice{grid-column:1/3;grid-row:2;margin:0 12px;padding:8px 0;flex-wrap:wrap;gap:6px}.domestic-view .policy-task-choice button{flex:1;min-height:44px;padding:7px;white-space:nowrap}
 .domestic-view .policy-task-guide{flex:1 0 100%;font-size:11px;margin:4px 0;white-space:normal}
 .domestic-view .policy-cities{grid-column:1;grid-row:3;padding:14px 6px 12px 10px;margin:0;height:330px}
 .domestic-view .policy-roster{grid-column:2;grid-row:3;padding:14px 8px;margin:0;height:330px}
 .domestic-view .sg-panel-heading{display:block;padding-bottom:8px}.domestic-view .sg-panel-heading h3{font-size:20px}.domestic-view .sg-panel-heading small{display:none}
 .domestic-view .policy-city{gap:7px!important;min-height:78px;padding:6px 3px!important}.domestic-view .policy-city .sg-roster-art{width:48px;height:62px;flex-basis:48px}
 .domestic-view .sg-roster-copy strong{font-size:18px!important}.domestic-view .policy-city .sg-roster-copy small{font-size:10px!important;line-height:1.6!important}
 .domestic-view .policy-person{grid-template-columns:34px minmax(0,1fr) 22px;gap:6px;min-height:75px;padding:6px 3px!important}.domestic-view .policy-person .sg-roster-art{width:34px;height:44px}
 .policy-int{font-size:14px}.policy-availability{grid-column:2/4;font-size:10px}.policy-roster-columns{display:none}
 .domestic-view .policy-office{grid-column:1/3;grid-row:4;padding:18px 20px 8px;margin:0;border:0;overflow:visible;background:#0b232a88}
 .domestic-view .policy-office .policy-person-info{min-height:240px;flex-basis:240px}.policy-hero-art{height:350px;width:260px}
 .domestic-view .policy-person-summary h3{font-size:36px}.domestic-view .policy-ending{grid-row:5;grid-column:1/3;padding:12px 16px;flex-wrap:wrap}.domestic-view .policy-ending p{margin:0;flex-basis:100%}.domestic-view .policy-ending button{margin-left:auto;flex-basis:160px}
}

/* Reference-scale optical adjustment: hero and command share the right column. */
@media(min-width:1201px) and (min-height:951px){
 .policy-title h2{font-size:56px!important}.policy-title>p{font-size:22px}
 .domestic-view .policy-cities .policy-scroll{flex:0 1 600px}
 .domestic-view .policy-roster .policy-scroll{flex:0 1 440px}
 .domestic-view .policy-city{min-height:124px}.domestic-view .policy-city .sg-roster-art{width:110px;height:108px;flex-basis:110px}
 .domestic-view .policy-city .sg-roster-copy small{font-size:14px!important}
 .domestic-view .policy-office .policy-person-info{flex-basis:280px;min-height:280px}
 .policy-hero-art{height:430px;width:310px}
 .domestic-view .policy-person-summary h3{font-size:42px}
 .domestic-view .policy-commands h3{font-size:30px}.domestic-view .policy-caption{font-size:16px;line-height:1.8}
 .policy-outcomes>div{padding:16px 12px}.policy-outcomes small{font-size:16px}.policy-outcomes strong{font-size:26px}
 .domestic-view .policy-feedback{font-size:14px}.domestic-view .policy-commands .policy-order{min-height:64px;font-size:28px}
}
#domestic-view .policy-ending .original-end-button{background:#0d252dd9!important;border:1px solid #bda475!important;border-image:none!important;box-shadow:inset 0 0 0 3px #0b1c2299!important;color:#e8d6af!important}
#domestic-view .policy-commands .policy-order{min-height:58px!important;font:26px/1.35 KaiTi,serif!important}
@media(min-width:1201px) and (min-height:951px){#domestic-view .policy-commands .policy-order{min-height:64px!important;font-size:28px!important}}

@media(min-width:1201px){.domestic-view .policy-task-choice button{flex-basis:170px}.domestic-view .policy-heading{padding-left:56px}.domestic-view .policy-order{width:86%;align-self:flex-end}}
.domestic-view .sg-panel-heading h3::before{content:"";display:inline-block;width:25px;height:25px;margin-right:12px;vertical-align:-3px;background:url('assets/ui/strategy/icon-officer.svg') center/contain no-repeat}
.domestic-view .policy-cities .sg-panel-heading h3::before{background-image:url('assets/ui/strategy/icon-city.svg')}
@media(max-width:760px){.domestic-view .sg-panel-heading h3::before{width:18px;height:18px;margin-right:6px}}
@media(min-width:761px) and (min-height:851px) and (max-height:950px){
 .domestic-view .policy-office .policy-person-info{flex-basis:200px;min-height:200px}
 .domestic-view .policy-commands{gap:8px}
}
