/* Keep the room title inside its own grid track, above the work tabs. */
.room-experience:not(.is-lobby):not(.is-room-result) .room-location{box-sizing:border-box;align-self:stretch;height:100%;min-height:0;margin:0;padding:3px 0 6px;overflow:hidden;gap:8px}
.room-experience:not(.is-lobby):not(.is-room-result) .room-location>div{min-height:0}
.room-experience:not(.is-lobby):not(.is-room-result) .room-caption{display:none}
.room-experience:not(.is-lobby):not(.is-room-result) .room-name{margin:0!important;font-size:26px!important;line-height:1.15!important}
.room-experience:not(.is-lobby):not(.is-room-result) .room-seal{box-sizing:border-box;height:min(100%,44px);width:40px;font-size:27px}
/* A full-height standard beside the identity card, rather than a tiny overlay. */
.room-experience .palace-upper>.palace-authority{position:relative;inset:auto!important;flex:0 0 76px;width:76px;min-width:76px;height:108px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;padding:4px;border:3px double #bea475;background:linear-gradient(110deg,#283c53,#0c1829);box-shadow:inset 0 0 0 3px #0b1425;color:#efd7a5;filter:none;z-index:2}
.room-experience .palace-upper>.palace-authority svg{width:68px;height:70px;flex:none}
.room-experience .palace-upper>.palace-authority strong{font:700 18px/22px var(--serif);margin:0;padding:0;border:0;background:none;white-space:nowrap}
.room-experience .palace-upper>.palace-authority small{font-size:8px;line-height:10px}
.room-experience .palace-upper>.palace-authority.is-inactive{opacity:.72;filter:grayscale(.7)}
.room-experience.has-authority-badge .palace-upper{gap:10px}
.room-experience.has-authority-badge .palace-person{padding-right:8px}
.room-experience.has-authority-badge .palace-story{min-width:130px}
/* Legible state figures, not miniature captions. */
.room-experience .palace-person>.palace-faction-status{height:46px;padding:3px 4px}
.palace-faction-status .faction-status-cell{grid-template-rows:17px 20px}
.palace-faction-status .faction-status-label{font-size:12px;line-height:17px}
.palace-faction-status .faction-status-label i{font-size:15px;line-height:17px}
.palace-faction-status .faction-status-value{font-size:17px;line-height:20px}
.palace-faction-status .faction-status-value small{font-size:10px}
@media(min-width:701px){
 .room-experience.has-faction-status{grid-template-rows:58px 170px 56px minmax(0,1fr) 68px}
 .room-experience.has-faction-status[data-facility="map"]{grid-template-rows:58px 170px 0 minmax(0,1fr) 48px}
 .room-experience.has-faction-status[data-facility="map"]:has(.palace-slots:empty):has(.palace-finish:empty){grid-template-rows:58px 170px 0 minmax(0,1fr) 0}
}
@media(min-width:701px) and (max-height:760px){
 .room-experience.has-faction-status{grid-template-rows:50px 160px 34px minmax(0,1fr) 60px}
 .room-experience.has-faction-status[data-facility="map"]{grid-template-rows:50px 164px 0 minmax(0,1fr) 48px}
 .room-experience.has-faction-status[data-facility="map"]:has(.palace-slots:empty):has(.palace-finish:empty){grid-template-rows:50px 164px 0 minmax(0,1fr) 0}
 .room-experience:not(.is-lobby):not(.is-room-result) .room-name{font-size:23px!important}
}
@media(max-width:700px){
 .room-experience.has-authority-badge .palace-person{width:calc(100% - 60px)!important;max-width:calc(100% - 60px)!important;gap:5px}
 .room-experience .palace-upper>.palace-authority{position:absolute;left:auto!important;right:12px!important;top:51px!important;width:54px;min-width:54px;height:108px;padding:2px}
 .room-experience .palace-upper>.palace-authority svg{width:48px;height:68px}
 .room-experience .palace-upper>.palace-authority strong{font-size:14px;line-height:20px}
 .room-experience.has-authority-badge .room-guide{right:82px;width:35px;height:32px;min-height:32px;top:57px}
 .room-experience.has-authority-badge .palace-person>span>strong{padding-right:36px}
 .room-experience.has-authority-badge .palace-birth-inline{display:flex}
 .room-experience.has-authority-badge .palace-person>.palace-faction-status{right:-63px}
 .room-experience .palace-person>.palace-faction-status{height:42px;padding:2px;grid-template-columns:1fr 1.3fr .85fr .85fr}
 .palace-faction-status .faction-status-cell{display:grid;grid-template-rows:15px 20px;gap:0;padding:0 1px}
 .palace-faction-status .faction-status-cell:before,.palace-faction-status .faction-status-cell:after{display:none}
 .palace-faction-status .faction-status-cell>.faction-status-label,.palace-faction-status .faction-status-cell>.faction-status-value{display:flex}
 .palace-faction-status .faction-status-label{font-size:10px;line-height:15px;gap:2px}
 .palace-faction-status .faction-status-label i{font-size:13px;line-height:15px}
 .palace-faction-status .faction-status-value{font-size:14px;line-height:20px;gap:2px}
 .palace-faction-status .faction-status-value small{font-size:9px}
 .palace-faction-status [data-faction-stat="legitimacy"] small,.palace-faction-status [data-faction-stat="readiness"] small{display:none}
 .room-experience.has-faction-status{grid-template-rows:44px 166px 46px minmax(0,1fr) 64px 60px}
 .room-experience.has-faction-status[data-facility="map"]{grid-template-rows:44px 166px 0 minmax(0,1fr) 44px 48px}
}
@media(max-width:700px) and (max-height:740px){.room-experience.has-faction-status{grid-template-rows:44px 166px 20px minmax(0,1fr) 61px 54px}}
@media(max-width:700px) and (max-height:700px){.room-experience.has-faction-status:has(.palace-command){grid-template-rows:44px 166px 0 minmax(0,1fr) 61px 54px}}
@media(max-width:700px) and (max-height:600px){
 .room-experience.has-faction-status,.room-experience.has-faction-status:has(.palace-command),.room-experience.has-faction-status:has(.palace-subnav>[data-tab-depth="3"]):has(.palace-command){grid-template-rows:44px 142px 0 minmax(0,1fr) 48px 44px}
 .room-experience .palace-upper>.palace-authority{height:92px}
 .room-experience .palace-upper>.palace-authority svg{height:55px}
 .room-experience.has-authority-badge .palace-face{width:42px}
 .room-experience.has-authority-badge .palace-stats{gap:1px}
 .room-experience.has-authority-badge .palace-stats b{font-size:13px}
 .room-experience.has-faction-status .palace-command:not([data-management]){grid-template-rows:minmax(38px,1fr) 30px 20px 14px!important;gap:1px;padding-bottom:12px}
}
/* Costs stay as readable, indivisible label/value pairs. */
.palace-sheet .routine-health-risk{display:flex!important;flex-wrap:wrap;gap:5px 9px;font-size:13px!important;line-height:1.5}
.palace-sheet .routine-health-risk>span,.palace-sheet .forecast-fixed{white-space:nowrap!important;word-break:keep-all;font-size:13px!important;line-height:1.5}
.palace-sheet .fixed-report .choice-forecast{display:flex;flex-wrap:wrap;gap:7px}
.palace-sheet .forecast-fixed{flex:0 0 auto;min-width:75px;padding:7px 10px}
.room-action-report .report-rewards>div{min-width:0;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:6px;padding:8px}
.room-action-report .report-rewards>div>span{font-size:13px!important;white-space:nowrap}
.room-action-report .report-rewards>div>b{font-size:21px!important;white-space:nowrap;line-height:1.2}
@media(max-width:700px){.room-action-report .report-rewards{grid-template-columns:repeat(2,minmax(0,1fr))!important}.room-action-report .report-rewards>div{padding:6px;gap:5px}.room-action-report .report-rewards>div>b{font-size:19px!important}}
@media(max-width:700px){.room-experience.has-authority-badge .room-guide{width:44px}.room-experience.has-authority-badge .palace-person>span>strong{padding-right:48px}}
@media(min-width:701px) and (max-height:760px){.room-experience:not(.is-lobby):not(.is-room-result) .room-seal{width:27px;height:26px;font-size:19px;border-width:2px}}
@media(max-width:700px) and (max-height:600px){
 .room-experience.has-faction-status .palace-command[data-management]{grid-template-rows:minmax(38px,1fr) 36px 18px 18px!important;padding:6px 8px 16px;gap:2px}
 .room-experience.has-faction-status .palace-command[data-management]>.palace-command-art{grid-row:1;min-height:38px}
 .room-experience.has-faction-status .palace-command[data-management]>strong{grid-row:2;font-size:14px;line-height:16px}
 .room-experience.has-faction-status .palace-command[data-management]>.palace-command-rate{grid-row:3;font-size:12px;line-height:18px}
 .room-experience.has-faction-status .palace-command[data-management]>.command-paths:empty{display:none}
 .room-experience.has-faction-status .palace-command[data-management]>.palace-command-growth{display:none}
 .room-experience.has-faction-status .palace-command[data-management]>small{grid-row:4;font-size:10px;line-height:18px}
}
.room-experience .palace-command[data-command-authority]:not([data-command-authority="none"]) .palace-command-art i{height:calc(100% - 12px);max-height:66px;min-height:0;bottom:6px;font-size:min(36px,4.5vh);padding:0}
@media(max-width:700px) and (max-height:600px){.room-experience .palace-command[data-command-authority]:not([data-command-authority="none"]) .palace-command-art i{font-size:22px;max-height:38px}}
@media(max-width:700px) and (max-height:600px){
 .room-experience.has-faction-status .palace-command[data-management]{grid-template-rows:minmax(0,1fr) 30px 18px 16px!important}
 .room-experience.has-faction-status .palace-command[data-management]>.palace-command-art{min-height:0!important;height:100%!important;max-height:100%!important}
}
@media(max-width:700px) and (max-height:600px){
 html body.palace-playing .room-experience.has-faction-status .palace-command[data-management]{grid-template-rows:minmax(0,1fr) 40px 20px!important;padding:6px 8px 18px;gap:2px}
}
/* Relationship changes need room for both before/after values and the delta. */
html body .room-action-report .report-rewards.has-wide-rewards{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))!important;gap:8px}
html body .room-action-report .report-rewards.has-wide-rewards>div{min-width:0;min-height:46px;box-sizing:border-box;padding:7px 10px;gap:3px 8px}
html body .room-action-report .report-rewards>div.is-long-reward{flex-direction:column;align-items:flex-start;justify-content:center;text-align:left}
html body .room-action-report .report-rewards>div.is-long-reward>span{max-width:100%;white-space:normal;word-break:keep-all;overflow-wrap:anywhere;line-height:18px;font-size:13px!important}
html body .room-action-report .report-rewards>div.is-long-reward>b{max-width:100%;white-space:normal;word-break:keep-all;overflow-wrap:anywhere;font-size:18px!important;line-height:22px}
@media(max-width:700px){html body .room-action-report .report-rewards.has-wide-rewards{grid-template-columns:minmax(0,1fr)!important;gap:6px}html body .room-action-report .report-rewards.has-wide-rewards>div{padding:6px 10px;min-height:40px}html body .room-action-report .report-rewards>div.is-long-reward>b{font-size:17px!important;line-height:21px}}
.room-experience .palace-upper>.palace-authority.is-inactive svg{height:56px}
.room-experience .palace-upper>.palace-authority.is-inactive small{display:block;flex:none;white-space:nowrap;line-height:12px;font-size:10px;max-width:100%;margin:0;padding:0}
@media(max-width:700px){.room-experience .palace-upper>.palace-authority.is-inactive svg{height:40px}.room-experience .palace-upper>.palace-authority.is-inactive small{font-size:9px;line-height:12px}}

/* A small result set gets larger figures, not a room-wide progress bar. */
html body .room-action-report .report-rewards:not(.has-wide-rewards):not(:has(>div:nth-child(3)))>div:not(.is-long-reward){padding:12px 16px;gap:10px;min-height:66px}
html body .room-action-report .report-rewards:not(.has-wide-rewards):not(:has(>div:nth-child(3)))>div:not(.is-long-reward)>span{font-size:17px!important}
html body .room-action-report .report-rewards:not(.has-wide-rewards):not(:has(>div:nth-child(3)))>div:not(.is-long-reward)>b{font-size:34px!important;line-height:1.15}
html body .room-action-report .report-growth-graphs:not(:has(>.growth-graph:nth-child(3))){width:100%;max-width:760px;align-self:center;margin-inline:auto}
html body .room-action-report .report-growth-graphs:has(>.growth-graph:only-child){max-width:520px;grid-template-columns:minmax(0,1fr)}
html body .room-action-report .report-growth-graphs:not(:has(>.growth-graph:nth-child(3))) .growth-graph{padding:14px 20px;gap:8px;justify-content:center}
html body .room-action-report .report-growth-graphs:not(:has(>.growth-graph:nth-child(3))) .growth-graph header{font-size:22px;line-height:28px;gap:14px;max-width:360px;width:100%;margin-inline:auto}
html body .room-action-report .report-growth-graphs:not(:has(>.growth-graph:nth-child(3))) .growth-graph header b{font-size:25px;line-height:28px}
html body .room-action-report .report-growth-graphs:not(:has(>.growth-graph:nth-child(3))) .growth-graph-values{font-size:23px;line-height:40px;margin:4px auto;max-width:360px;width:100%;gap:12px}
html body .room-action-report .report-growth-graphs:not(:has(>.growth-graph:nth-child(3))) .growth-graph-values strong{font-size:40px;line-height:44px}
html body .room-action-report .growth-graph-track{max-width:360px;width:100%;margin-inline:auto}
@media(max-width:700px){
 html body .room-action-report .report-rewards:not(.has-wide-rewards):not(:has(>div:nth-child(3)))>div:not(.is-long-reward){padding:8px;gap:6px;min-height:52px}
 html body .room-action-report .report-rewards:not(.has-wide-rewards):not(:has(>div:nth-child(3)))>div:not(.is-long-reward)>span{font-size:14px!important}
 html body .room-action-report .report-rewards:not(.has-wide-rewards):not(:has(>div:nth-child(3)))>div:not(.is-long-reward)>b{font-size:28px!important}
 html body .room-action-report .report-growth-graphs:not(:has(>.growth-graph:nth-child(3))) .growth-graph{padding:12px;gap:5px}
 html body .room-action-report .report-growth-graphs:not(:has(>.growth-graph:nth-child(3))) .growth-graph header{font-size:19px;line-height:24px}
 html body .room-action-report .report-growth-graphs:not(:has(>.growth-graph:nth-child(3))) .growth-graph header b{font-size:20px;line-height:24px}
 html body .room-action-report .report-growth-graphs:not(:has(>.growth-graph:nth-child(3))) .growth-graph-values{font-size:20px;line-height:34px}
 html body .room-action-report .report-growth-graphs:not(:has(>.growth-graph:nth-child(3))) .growth-graph-values strong{font-size:34px;line-height:36px}
}


/* Companion growth uses the same readable figures and bounded bars as the player. */
html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-report-abilities{width:100%;max-width:900px;justify-self:center;margin-inline:auto}
html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-report-abilities:has(>.retainer-ability-change:only-child){max-width:520px}
html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-report-abilities:has(>.retainer-ability-change:nth-child(2):last-child){max-width:760px}
html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-ability-change{padding:10px 14px;display:flex;flex-direction:column;justify-content:center;min-width:0}
html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-ability-change>div:first-child{font-size:20px;line-height:26px;gap:8px;width:100%;max-width:360px;margin-inline:auto}
html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-ability-change>div:first-child b{font-size:24px;line-height:26px}
html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-ability-change>p{font-size:21px;line-height:40px;gap:9px;flex-wrap:nowrap;margin:5px auto;width:100%;max-width:360px}
html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-ability-change>p strong{font-size:36px;line-height:40px}
html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-ability-track{width:100%;max-width:360px;height:9px;flex:none;margin-inline:auto;box-sizing:border-box}
@media(max-width:700px){
 html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-report-abilities{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-report-abilities:has(>.retainer-ability-change:only-child){grid-template-columns:minmax(0,1fr)}
 html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-ability-change{padding:7px}
 html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-ability-change>div:first-child{font-size:16px;line-height:21px;gap:5px}
 html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-ability-change>div:first-child b{font-size:20px;line-height:21px}
 html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-ability-change>p{font-size:17px;line-height:30px;gap:5px;margin:4px auto}
 html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-ability-change>p strong{font-size:28px;line-height:30px}
 html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-ability-track{height:8px}
}

html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-report-abilities{min-height:min-content}
@media(max-height:650px){
 html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-ability-change{padding:4px 7px;gap:0}
 html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-ability-change>div:first-child{font-size:16px;line-height:20px}
 html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-ability-change>div:first-child b{font-size:20px;line-height:20px}
 html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-ability-change>p{font-size:16px;line-height:28px;margin:1px auto}
 html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-ability-change>p strong{font-size:27px;line-height:28px}
 html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-ability-track{height:7px}
}
@media(max-height:650px){
 html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-report-card{padding:5px 8px;gap:3px}
 html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-report-identity{margin-bottom:0}
 html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-report-skills{margin-top:0}
}

/* Battle outcomes deserve readable figures, including failed assaults. */
html body .room-action-report .mobile-conquest-receipt{padding:10px 14px;min-width:0}
html body .room-action-report .mobile-conquest-receipt>strong{font-size:16px;line-height:22px}
html body .room-action-report .mobile-conquest-receipt>p{font-size:23px;line-height:1.3;margin:4px 0 0;word-break:keep-all;overflow-wrap:anywhere}
html body .room-action-report.has-companion-pages .companion-result-page>.battle-force-receipt{grid-column:1/-1}
html body .room-action-report .battle-force-receipt.is-compact{gap:8px}
html body .room-action-report .battle-force-receipt.is-compact .battle-force-side{grid-template-columns:auto minmax(0,1fr);gap:4px 12px;padding:10px 14px}
html body .room-action-report .battle-force-receipt.is-compact .battle-force-side>small{font-size:17px;grid-row:1/3}
html body .room-action-report .battle-force-receipt.is-compact .battle-force-side>strong{font-size:14px}
html body .room-action-report .battle-force-receipt.is-compact .battle-force-side>strong>em{font-size:29px;line-height:32px}
html body .room-action-report .battle-force-receipt.is-compact .battle-force-side>strong>i{font-size:13px}
html body .room-action-report .battle-force-receipt.is-compact .battle-force-loss{font-size:14px;line-height:22px}
html body .room-action-report .battle-force-receipt.is-compact .battle-force-loss>b{font-size:22px}
@media(max-width:700px){
 html body .room-action-report .mobile-conquest-receipt{padding:7px 9px}
 html body .room-action-report .mobile-conquest-receipt>strong{font-size:14px;line-height:20px}
 html body .room-action-report .mobile-conquest-receipt>p{font-size:18px;line-height:23px;margin:3px 0 0}
 html body .room-action-report .battle-force-receipt.is-compact{grid-template-columns:minmax(0,1fr);gap:5px}
 html body .room-action-report .battle-force-receipt.is-compact .battle-force-side{padding:5px 9px;gap:1px 9px}
 html body .room-action-report .battle-force-receipt.is-compact .battle-force-side>small{font-size:16px}
 html body .room-action-report .battle-force-receipt.is-compact .battle-force-side>strong{font-size:13px}
 html body .room-action-report .battle-force-receipt.is-compact .battle-force-side>strong>em{font-size:24px;line-height:27px}
 html body .room-action-report .battle-force-receipt.is-compact .battle-force-loss{font-size:12px;line-height:21px}
 html body .room-action-report .battle-force-receipt.is-compact .battle-force-loss>b{font-size:19px}
}

html body .room-action-report.has-companion-pages .companion-result-page>.mobile-conquest-receipt{grid-column:1/-1}

/* Keep the annual heading and record button inside the engraved content frame. */
html body .room-annual-report.annual-visual .annual-content{box-sizing:border-box;padding:8px;max-width:100%}
html body .room-annual-report.annual-visual .annual-content>header{box-sizing:border-box;flex-shrink:0;min-width:0;margin:0;max-width:100%}
html body .room-annual-report.annual-visual .annual-content>header>i{box-sizing:border-box;flex:none}
html body .room-annual-report.annual-visual .annual-content>.report-full{box-sizing:border-box;flex-shrink:0;max-width:100%;align-self:flex-end;margin-right:0;margin-bottom:0;padding:7px 12px;line-height:18px}
@media(max-width:700px){
 html body .room-annual-report.annual-visual .annual-content{padding:4px 6px}
 html body .room-annual-report.annual-visual .annual-content>.report-full{padding:5px 10px;min-height:30px}
}

/* The ledger is a real bordered panel: heading, entries and footer share its inset. */
html body .room-annual-report.annual-visual .annual-content{
 border:1px solid #8d795c;box-shadow:inset 0 0 0 3px #0a1425;
 background:linear-gradient(135deg,#182b3f,#101e30);padding:14px;
 justify-content:flex-start;align-items:stretch;isolation:isolate;
}
html body .room-annual-report.annual-visual .annual-content>header{width:100%;line-height:1.35}
html body .room-annual-report.annual-visual .annual-content>header>strong{min-width:0;overflow-wrap:anywhere}
html body .room-annual-report.annual-visual .annual-content>.report-full{margin-top:auto;align-self:stretch;text-align:center;width:100%}
html body .room-annual-report.annual-visual .annual-content>:is(.annual-record-list,.annual-reward-grid,.annual-inline-pages){flex-shrink:0;max-width:100%;box-sizing:border-box}
@media(max-width:700px){
 html body .room-annual-report.annual-visual .annual-content{padding:8px;gap:5px}
}
@media(min-width:701px) and (max-height:650px){
 html body .room-annual-report.annual-visual .annual-content{padding:8px;gap:4px}
 html body .room-annual-report.annual-visual .annual-content>header{padding-bottom:3px}
 html body .room-annual-report.annual-visual .annual-content>.report-full{padding:5px 10px;min-height:30px}
}
@media(min-width:701px) and (max-height:650px){
 html body .room-annual-report.annual-visual .annual-content>header{display:none}
}

/* Do not stretch companion gains to fill a tall result page. */
html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .companion-result-page.single-companion{align-content:center;justify-content:center}
html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-report-card{height:auto;flex:0 0 auto;align-self:center;grid-template-rows:auto auto;width:100%}
html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-report-abilities{flex:none;align-content:start;grid-auto-rows:auto;min-height:0}
html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-ability-change{height:auto;min-height:0;align-self:start}
html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-report-identity{flex:none;min-height:0}
@media(max-width:700px){
 html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport[data-roomy=true] .retainer-report-identity{grid-template-columns:62px minmax(0,1fr);grid-template-rows:66px auto}
 html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport[data-roomy=true] .retainer-report-portrait{width:62px;height:66px}
}
@media(max-width:700px) and (max-height:650px){
 html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-report-card{padding:3px 6px;gap:2px}
 html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-report-skills>div{padding:2px 3px}
}

/* Long office awards are text, not oversized numeric rewards. */
html body .room-action-report .report-rewards>div.is-office-reward{grid-column:1/-1;min-width:0;height:auto;flex-shrink:0;padding:10px 12px!important;display:grid;grid-template-columns:1fr;gap:5px}
html body .room-action-report .report-rewards>div.is-office-reward>b{font-size:clamp(18px,4.6vw,24px)!important;line-height:1.35!important;white-space:normal!important;word-break:keep-all;overflow-wrap:anywhere;max-width:100%;min-width:0}
@media(max-width:700px){
html body .palace-pages button,html body .companion-result-controls button{min-width:48px;min-height:44px;touch-action:manipulation}
html body .palace-pages{gap:10px}
html body .palace-subnav button{min-height:36px;touch-action:manipulation}
html body .castle-city-sheet button{min-height:40px;touch-action:manipulation}
}
/* Brief native UI feedback: no animation waits before accepting input. */
.aftermath-options{display:grid;gap:10px;padding:8px 4px 12px;max-width:620px;margin:auto}
.aftermath-options>p{margin:0 0 4px;color:#becbd6}
.aftermath-options>button{display:grid;gap:7px;min-height:66px;padding:12px 16px;text-align:left;color:#f3e6cd;border:1px solid #8e8065;background:linear-gradient(110deg,#172d40,#243c50);border-radius:3px;cursor:pointer}
.aftermath-options>button strong{font-size:19px}.aftermath-options>button span{font-size:14px;color:#bed9ec}.aftermath-options>button:disabled{opacity:.5;cursor:not-allowed}
.aftermath-receipt{padding:8px 12px;margin:0;border-left:3px solid #83b6d5;color:#d3e6ef;font-size:15px;flex-shrink:0}
@keyframes result-arrive{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes reward-ink{from{opacity:.25;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes growth-unroll{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0)}}
html body .room-action-report>header{animation:result-arrive .35s ease-out both}
html body .room-action-report .report-rewards>div{animation:reward-ink .4s ease-out both;animation-delay:.12s}
html body .room-action-report .report-rewards>div:nth-child(2){animation-delay:.19s}
html body .room-action-report .report-rewards>div:nth-child(3){animation-delay:.26s}
html body .room-action-report .growth-graph{animation:result-arrive .4s ease-out both;animation-delay:.22s}
html body .palace-command:active,.aftermath-options>button:active{transform:scale(.98);filter:brightness(1.15)}
.aftermath-options>button{animation:result-arrive .3s ease-out both}.aftermath-options>button:nth-of-type(2){animation-delay:.06s}.aftermath-options>button:nth-of-type(3){animation-delay:.12s}
@media(max-width:700px){.aftermath-options{gap:8px}.aftermath-options>button{min-height:60px;padding:10px 12px}.aftermath-options>button strong{font-size:17px}}
@media(prefers-reduced-motion:reduce){html body .room-action-report>header,html body .room-action-report .report-rewards>div,html body .room-action-report .growth-graph,.aftermath-options>button{animation:none!important}html body .palace-command:active,.aftermath-options>button:active{transform:none}}
html body .room-action-report .growth-graph-added{animation:growth-unroll .65s ease-out .3s both}
@media(prefers-reduced-motion:reduce){html body .room-action-report .growth-graph-added{animation:none!important}}
/* Action-specific scene stays behind the report without consuming layout space. */
html body .room-action-report.has-result-art{background-image:linear-gradient(110deg,rgba(8,18,29,.52),rgba(8,18,29,.28) 55%,rgba(8,18,29,.65)),var(--result-art);background-size:cover;background-position:center;background-repeat:no-repeat;background-color:#101c2a}
html body .room-action-report.has-result-art>header{background:linear-gradient(90deg,#0c1c2eed,#14283fc9);padding:8px 12px;border-bottom:1px solid #a9946a88;text-shadow:0 2px 4px #000}
html body .room-action-report.has-result-art .report-rewards>div,html body .room-action-report.has-result-art .growth-graph,html body .room-action-report.has-result-art .retainer-report-card,html body .room-action-report.has-result-art .mobile-conquest-receipt,html body .room-action-report.has-result-art .battle-force-receipt,html body .room-action-report.has-result-art .aftermath-receipt{background-color:rgba(10,27,44,.94);box-shadow:inset 0 0 0 1px #9e896342,0 3px 12px #0004}
html body .room-action-report.has-result-art .companion-result-controls,html body .room-action-report.has-result-art>.report-full{background:#0d2032ed}
@media(max-width:700px){html body .room-action-report.has-result-art{background-position:58% center}html body .room-action-report.has-result-art>header{padding:6px 8px}}
/* Stable, readable growth tiles regardless of reward/page count. */
html body .room-action-report .report-growth-graphs{flex:0 0 auto!important;align-content:start!important;align-items:start!important;grid-auto-rows:auto!important;grid-template-columns:repeat(auto-fit,minmax(150px,240px))!important;justify-content:center;gap:10px;width:100%;max-width:990px;margin-inline:auto}
html body .room-action-report .report-growth-graphs>.growth-graph{height:auto!important;min-height:126px!important;align-self:start;flex:0 0 auto;box-sizing:border-box;justify-content:center;padding:12px 14px!important;border:1px solid color-mix(in srgb,var(--growth-color) 65%,#32445a);border-top:3px solid var(--growth-color);box-shadow:inset 0 0 0 3px #081726,inset 0 0 0 4px #9b886638,0 5px 14px #0006}
html body .room-action-report .growth-graph header{font-size:20px!important;line-height:25px!important}
html body .room-action-report .growth-graph header b{font-size:26px!important;line-height:28px!important}
html body .room-action-report .growth-graph-values{font-size:20px!important;line-height:38px!important;margin:6px 0!important}
html body .room-action-report .growth-graph-values strong{font-size:36px!important;line-height:38px!important}
html body .room-action-report .growth-graph-track{height:9px!important;max-width:230px}
html body .room-action-report .growth-graph:after{font-size:58px!important;opacity:.07;right:10px;bottom:10px}
@media(max-width:700px){
 html body .room-action-report .report-growth-graphs{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px;max-width:420px}
 html body .room-action-report .report-growth-graphs>.growth-graph{min-height:105px!important;padding:8px 10px!important}
 html body .room-action-report .growth-graph header{font-size:17px!important;line-height:22px!important}
 html body .room-action-report .growth-graph header b{font-size:23px!important;line-height:24px!important}
 html body .room-action-report .growth-graph-values{font-size:17px!important;line-height:32px!important;margin:4px 0!important}
 html body .room-action-report .growth-graph-values strong{font-size:30px!important;line-height:32px!important}
}
/* Engraved follow-up orders, with explicit reward strip and roomy hit area. */
.aftermath-options>button{position:relative;isolation:isolate;overflow:hidden;padding:14px 18px 14px 66px;border:1px solid #a28b65;border-left:4px solid #84bbd9;background:linear-gradient(115deg,#28485f,#14273a 75%);box-shadow:inset 0 0 0 3px #0a1828,inset 0 0 0 4px #b49a683d,0 4px 12px #0005}
.aftermath-options>button:before{content:'策';position:absolute;left:14px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:34px;height:40px;border:1px solid #a89b79;outline:1px solid #a89b7944;outline-offset:3px;color:#e4d4ad;font:24px var(--serif);background:#102333}
.aftermath-options>button:nth-of-type(2){border-left-color:#b0a4db;background:linear-gradient(115deg,#36354e,#17283b 75%)}
.aftermath-options>button:nth-of-type(2):before{content:'議'}
.aftermath-options>button:last-child{border-left-color:#8394a3;background:linear-gradient(115deg,#283645,#142230)}
.aftermath-options>button:last-child:before{content:'畢'}
.aftermath-options>button strong{font-family:var(--serif);letter-spacing:.03em;color:#fff0d6}
.aftermath-options>button span{padding-top:6px;border-top:1px solid #a8c9df33;color:#d2e4ef}
html body .room-action-report.has-result-art>header{border:1px solid #b29a6e99;border-left:4px solid var(--report-accent);box-shadow:inset 0 0 0 3px #06142055,0 4px 14px #0004}
html body .room-action-report.has-result-art>header>i{box-shadow:0 0 13px var(--report-glow),inset 0 0 0 2px #071726;color:#f1dfb7}
@media(max-width:700px){.aftermath-options>button{padding:12px 12px 12px 60px}.aftermath-options>button:before{left:13px;width:30px;height:36px;font-size:22px}}
/* Decorated attribute plaques: capped dimensions, strong numerals and seals. */
html body .room-action-report .report-growth-graphs{height:max-content!important;min-height:0!important;max-height:none!important;align-self:center!important;grid-template-columns:repeat(auto-fit,minmax(150px,230px))!important;max-width:950px}
html body .room-action-report .report-growth-graphs>.growth-graph{position:relative;isolation:isolate;overflow:hidden;min-height:148px!important;padding:14px 16px!important;border:1px solid var(--growth-color);border-top:3px solid var(--growth-color);background:radial-gradient(ellipse at 100% 0,color-mix(in srgb,var(--growth-color) 28%,transparent),transparent 65%),repeating-linear-gradient(135deg,#ffffff05 0 1px,transparent 1px 7px),linear-gradient(120deg,#23374df5,#081626f7)!important;box-shadow:inset 0 0 0 3px #091320,inset 0 0 0 4px color-mix(in srgb,var(--growth-color) 45%,transparent),inset 0 -20px 30px #0004,0 6px 18px #0008}
html body .room-action-report .growth-graph header strong{display:flex;align-items:center;gap:7px}
html body .room-action-report .growth-graph header strong:before{content:'武';display:grid;place-items:center;flex:0 0 29px;width:29px;height:32px;color:var(--growth-color);border:1px solid var(--growth-color);background:#08192acc;box-shadow:inset 0 0 0 2px #08121f,0 0 12px color-mix(in srgb,var(--growth-color) 25%,transparent);font:20px var(--serif)}
html body .room-action-report .growth-graph[data-stat="intellect"] header strong:before{content:'智'}
html body .room-action-report .growth-graph[data-stat="leadership"] header strong:before{content:'統'}
html body .room-action-report .growth-graph[data-stat="charm"] header strong:before{content:'魅'}
html body .room-action-report .growth-graph header b{font-size:29px!important;text-shadow:0 0 14px color-mix(in srgb,var(--growth-color) 60%,transparent)}
html body .room-action-report .growth-graph-values strong{font-size:42px!important;line-height:44px!important;text-shadow:0 2px 2px #000,0 0 16px color-mix(in srgb,var(--growth-color) 35%,transparent)}
html body .room-action-report .growth-graph-track{height:11px!important;border:1px solid color-mix(in srgb,var(--growth-color) 50%,#162334);box-shadow:0 0 0 2px #081321,inset 0 1px 5px #000}
html body .room-action-report .growth-graph.is-critical{--growth-color:#f3cd70;background:radial-gradient(ellipse at 90% 0,#eabf5055,transparent 65%),repeating-linear-gradient(135deg,#ffe9a607 0 1px,transparent 1px 7px),linear-gradient(120deg,#51412af5,#201b19fa)!important;box-shadow:inset 0 0 0 3px #171309,inset 0 0 0 4px #d9b75699,0 0 20px #e9bc392b}
@media(max-width:700px){
 html body .room-action-report .report-growth-graphs{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:420px}
 html body .room-action-report .report-growth-graphs>.growth-graph{min-height:122px!important;padding:9px 10px!important}
 html body .room-action-report .growth-graph header strong{gap:5px}
 html body .room-action-report .growth-graph header strong:before{flex-basis:22px;width:22px;height:26px;font-size:17px}
 html body .room-action-report .growth-graph header b{font-size:23px!important}
 html body .room-action-report .growth-graph-values strong{font-size:34px!important;line-height:37px!important}
 html body .room-action-report .growth-graph-track{height:9px!important}
}
/* Embossed ceremonial frames shared by growth, rewards and annual changes. */
html body .room-action-report .growth-graph:before,
html body .room-action-report .report-rewards>div:before,
html body .annual-reward-grid>div:before,
html body .aftermath-receipt:before{content:'';position:absolute;inset:4px;pointer-events:none;z-index:0;background:linear-gradient(currentColor,currentColor) left top/17px 2px no-repeat,linear-gradient(currentColor,currentColor) left top/2px 17px no-repeat,linear-gradient(currentColor,currentColor) right top/17px 2px no-repeat,linear-gradient(currentColor,currentColor) right top/2px 17px no-repeat,linear-gradient(currentColor,currentColor) left bottom/17px 2px no-repeat,linear-gradient(currentColor,currentColor) left bottom/2px 17px no-repeat,linear-gradient(currentColor,currentColor) right bottom/17px 2px no-repeat,linear-gradient(currentColor,currentColor) right bottom/2px 17px no-repeat;color:var(--growth-color,var(--reward-color,#b4a3d6));opacity:.8}
html body .room-action-report .growth-graph{border-width:2px!important;border-top-width:4px!important;box-shadow:inset 0 0 0 5px #071422,inset 0 0 0 6px color-mix(in srgb,var(--growth-color) 60%,transparent),inset 0 0 30px color-mix(in srgb,var(--growth-color) 12%,transparent),0 6px 15px #0009,0 0 13px color-mix(in srgb,var(--growth-color) 25%,transparent)!important}
html body .room-action-report .growth-graph header strong:before{outline:1px solid color-mix(in srgb,var(--growth-color) 45%,transparent);outline-offset:3px;transform:rotate(-4deg);background:linear-gradient(135deg,color-mix(in srgb,var(--growth-color) 25%,#101d2a),#071422);text-shadow:0 0 10px currentColor}
html body .room-action-report .growth-graph:after{font-size:85px!important;opacity:.15!important;transform:rotate(-12deg)}
html body .room-action-report .growth-graph-track{background:repeating-linear-gradient(90deg,#050c17 0 14px,#30405a 14px 15px)!important}
html body .room-action-report .growth-graph-added{box-shadow:0 0 9px var(--growth-color),0 0 3px white;filter:brightness(1.3)}
html body .room-action-report .report-rewards>div,html body .annual-reward-grid>div{--reward-color:#9abce6;position:relative;isolation:isolate;overflow:hidden;border:1px solid var(--reward-color)!important;border-top:3px solid var(--reward-color)!important;background:radial-gradient(ellipse at 90% 0,color-mix(in srgb,var(--reward-color) 24%,transparent),transparent 70%),repeating-linear-gradient(135deg,#ffffff05 0 1px,transparent 1px 7px),linear-gradient(120deg,#20354b,#0a1828)!important;box-shadow:inset 0 0 0 3px #081423,inset 0 0 0 4px color-mix(in srgb,var(--reward-color) 30%,transparent),0 4px 12px #0006!important}
html body .room-action-report .report-rewards>div>* ,html body .annual-reward-grid>div>*{position:relative;z-index:1}
html body .room-action-report .report-rewards>div>b,html body .annual-reward-grid>div>b{text-shadow:0 2px 2px #000,0 0 14px color-mix(in srgb,var(--reward-color) 45%,transparent)}
html body .room-action-report .report-rewards>div.is-loss,html body .annual-reward-grid>div.is-loss{--reward-color:#e5968d}
html body .report-rewards>[data-reward-label="명성"],html body .annual-reward-grid>[data-stat="fame"]{--reward-color:#c5a0e9}
html body .report-rewards>[data-reward-label="건강"]:not(.is-loss),html body .annual-reward-grid>[data-stat="health"]:not(.is-loss){--reward-color:#8ed1cc}
html body .report-rewards>[data-reward-label="재산"]:not(.is-loss),html body .annual-reward-grid>[data-stat="wealth"]:not(.is-loss){--reward-color:#b8c8e9}
html body .room-action-report .report-rewards>div:after,html body .annual-reward-grid>div:after{content:'賞';position:absolute;right:8px;top:50%;transform:translateY(-50%) rotate(-12deg);font:54px var(--serif);color:var(--reward-color);opacity:.12;pointer-events:none}
html body .report-rewards>[data-reward-label="健康"]:after,html body .report-rewards>[data-reward-label="건강"]:after,html body .annual-reward-grid>[data-stat="health"]:after{content:'壽'}
html body .report-rewards>[data-reward-label="명성"]:after,html body .annual-reward-grid>[data-stat="fame"]:after{content:'名'}
html body .report-rewards>[data-reward-label="재산"]:after,html body .annual-reward-grid>[data-stat="wealth"]:after{content:'財'}
html body .aftermath-receipt{--reward-color:#bea7e3;position:relative;isolation:isolate;box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;max-width:950px;margin:0 auto;padding:12px 16px!important;border:1px solid #bca5dd!important;border-left:4px solid #c9aff0!important;background:radial-gradient(ellipse at 0 0,#8063b633,transparent 65%),linear-gradient(110deg,#302b47f5,#101e30f7)!important;box-shadow:inset 0 0 0 3px #101728,inset 0 0 0 4px #b8a0d644,0 5px 15px #0006!important}
html body .aftermath-receipt>i{display:grid;place-items:center;flex:0 0 36px;height:40px;border:1px solid #bda6dd;outline:1px solid #bda6dd44;outline-offset:3px;color:#e5cfff;font:24px var(--serif);background:#161d30}
html body .aftermath-receipt>div{min-width:0;display:grid;gap:4px;flex:1}
html body .aftermath-receipt small{color:#bfaed7;font-size:12px}
html body .aftermath-receipt strong{font:600 19px var(--serif);color:#f3e4fd;overflow-wrap:anywhere}
html body .aftermath-receipt>b{flex:0 1 auto;max-width:45%;font-size:17px;color:#d4e5ff;text-align:right;line-height:1.4}
@media(max-width:700px){html body .aftermath-receipt{gap:9px;padding:10px 12px!important}html body .aftermath-receipt strong{font-size:16px}html body .aftermath-receipt>b{font-size:14px}html body .aftermath-receipt>i{flex-basis:28px;height:34px;font-size:21px}html body .room-action-report .growth-graph:after{font-size:65px!important}}
/* A single aftermath receipt reads as one centered group. */
html body .aftermath-receipt{justify-content:center;text-align:center}
html body .aftermath-receipt>div{flex:0 1 auto;text-align:center}
html body .aftermath-receipt>b{flex:0 1 auto;text-align:center}
/* Companion plaques share the player's engraved attribute language. */
html body .room-action-report .retainer-ability-change{--companion-color:#9ec6ee;position:relative;isolation:isolate;overflow:hidden;border:1px solid var(--companion-color)!important;border-top:3px solid var(--companion-color)!important;background:radial-gradient(ellipse at 100% 0,color-mix(in srgb,var(--companion-color) 30%,transparent),transparent 65%),repeating-linear-gradient(135deg,#ffffff05 0 1px,transparent 1px 7px),linear-gradient(120deg,#22354b,#0a1829)!important;box-shadow:inset 0 0 0 3px #081321,inset 0 0 0 4px color-mix(in srgb,var(--companion-color) 50%,transparent),0 4px 12px #0005}
html body .room-action-report .retainer-ability-change[data-stat="might"]{--companion-color:#eda2a5}
html body .room-action-report .retainer-ability-change[data-stat="intellect"]{--companion-color:#baa8ec}
html body .room-action-report .retainer-ability-change[data-stat="charm"]{--companion-color:#e5aed6}
html body .room-action-report .retainer-ability-change:before{content:'武';position:absolute;right:8px;bottom:4px;font:68px var(--serif);color:var(--companion-color);opacity:.13;transform:rotate(-12deg);pointer-events:none}
html body .room-action-report .retainer-ability-change[data-stat="intellect"]:before{content:'智'}
html body .room-action-report .retainer-ability-change[data-stat="leadership"]:before{content:'統'}
html body .room-action-report .retainer-ability-change[data-stat="charm"]:before{content:'魅'}
html body .room-action-report .retainer-ability-change>p strong{color:#f7ead6;text-shadow:0 2px 2px #000,0 0 14px var(--companion-color)}
html body .room-action-report .retainer-ability-track>b{box-shadow:0 0 8px var(--companion-color);filter:brightness(1.3)}
html body .room-action-report .retainer-report-identity{border-bottom:1px solid #baa37277;padding-bottom:6px}
html body .room-action-report .retainer-report-portrait{box-shadow:0 0 0 2px #0a1624,0 0 0 3px #ad936b,0 0 12px #ccb47733}
html body .room-action-report .retainer-report-skills>div{border:1px solid #b1a3d5;box-shadow:inset 0 0 0 3px #121c30,inset 0 0 0 4px #9b86b744;background:linear-gradient(125deg,#463753,#18263b)}
html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .is-split-companion{max-width:640px;max-height:none;grid-template-rows:auto auto;min-height:0}
html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .is-split-companion .retainer-report-abilities{grid-template-columns:minmax(0,1fr)!important;max-width:300px;width:100%;margin-inline:auto;min-height:0}
html body .room-action-report .is-split-companion .retainer-report-abilities:empty{display:none}
/* Same inset metal trim across room navigation and reading panels; no new spacing. */
html body .palace-subnav button,html body .palace-utility button{box-shadow:inset 0 0 0 2px #071321,inset 0 0 0 3px #ac91633d,0 2px 6px #0004}
html body .palace-subnav button[aria-pressed="true"],html body .palace-utility button[aria-pressed="true"]{border-color:#bba274;box-shadow:inset 0 0 0 2px #102337,inset 0 -3px 0 #b69b66,0 0 12px #7cadd52b}
html body .palace-sheet>header,html body .castle-city-sheet>header{background:radial-gradient(ellipse at 0 0,#ad966825,transparent 70%),linear-gradient(110deg,#23394e,#101e30);border-bottom:1px solid #aa9266;box-shadow:inset 0 -3px 0 #071321}
html body .palace-pages button,html body .companion-result-controls button,html body .annual-inline-pages button{border:1px solid #a28d69;box-shadow:inset 0 0 0 2px #0a192a,inset 0 0 0 3px #aa936638;background:linear-gradient(135deg,#2b455c,#142638)}
html body .palace-finish button{box-shadow:inset 0 0 0 3px #102034,inset 0 0 0 4px #bc9c6377,0 4px 15px #0006;text-shadow:0 2px 3px #000}
/* Companion stats use the same growthGraphs component and tile geometry. */
html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-report-card .report-growth-graphs{grid-template-columns:repeat(auto-fit,minmax(150px,230px))!important;grid-auto-rows:auto!important;max-width:950px!important;width:100%!important;height:max-content!important;margin-inline:auto!important;gap:10px!important;justify-content:center!important}
@media(max-width:700px){html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-report-card .report-growth-graphs{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;max-width:420px!important}}
@media(max-width:700px) and (max-height:680px){
 html body .room-action-report .is-split-companion .retainer-report-identity{display:grid!important;grid-template-columns:30px minmax(0,1fr) 104px!important;gap:5px!important;padding-bottom:3px!important;min-height:0!important;align-items:center}
 html body .room-action-report .is-split-companion .retainer-report-portrait{width:30px!important;height:34px!important;min-height:0!important;grid-row:auto!important}
 html body .room-action-report .is-split-companion .retainer-report-identity small{display:none!important}
 html body .room-action-report .is-split-companion .retainer-report-identity h3{font-size:14px!important;margin:0!important;line-height:18px!important}
 html body .room-action-report .is-split-companion .retainer-report-relations{grid-column:auto!important;display:grid!important;gap:1px!important}
 html body .room-action-report .is-split-companion .retainer-report-relations>div{padding:0 2px!important;min-height:0!important;display:flex!important;justify-content:space-between;gap:2px!important;font-size:10px!important;line-height:14px!important}
 html body .room-action-report .is-split-companion .retainer-report-relations b,html body .room-action-report .is-split-companion .retainer-report-relations span{font-size:10px!important;line-height:14px!important}
}
html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .retainer-report-card{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
html body .room-action-report .retainer-report-identity{background:#10263beF;border:1px solid #a78f64;padding:6px 8px;box-sizing:border-box}
@media(max-width:700px) and (max-height:680px){
 html body .room-action-report.has-retainer-report.has-companion-pages .companion-result-viewport .is-split-companion .retainer-report-identity{height:43px!important;min-height:0!important;max-height:43px!important;margin:0!important;padding:3px 4px!important;grid-template-rows:1fr!important;grid-template-columns:30px minmax(0,1fr) 108px!important;gap:4px!important}
 html body .room-action-report .is-split-companion .retainer-report-identity>*{grid-row:auto!important;grid-column:auto!important}
 html body .room-action-report .is-split-companion .retainer-report-relations{grid-template-columns:1fr!important;width:108px!important;min-width:0!important;margin:0!important}
 html body .room-action-report .is-split-companion .retainer-report-relations em{font-size:10px!important;margin-left:1px!important}
}

/* Realm names: compact choices with explicit territorial context. */
.realm-name-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.realm-name-options>p,.realm-name-options>small{grid-column:1/-1}.realm-name-options>button{min-width:0;padding:12px;display:flex;flex-direction:column;gap:5px;text-align:left}.realm-name-options>button strong{font-size:20px}.realm-name-options>button span{font-size:12px}

.realm-name-options{padding:4px;max-width:620px;margin:auto}.realm-name-options>button{color:#f3e6cd;border:1px solid #8e8065;border-radius:3px;background:linear-gradient(120deg,#223d54,#142333);cursor:pointer;min-height:75px}.realm-name-options>button strong{color:#fff0d6;white-space:nowrap}.realm-name-options>button span{color:#c9dce9;line-height:1.4}.realm-name-options>p{margin:0 0 4px}.realm-name-options>small{color:#c4d1dc;line-height:1.5}@media(max-width:400px){.realm-name-options{gap:7px}.realm-name-options>button{padding:8px;min-height:65px}.realm-name-options>button strong{font-size:18px}.realm-name-options>button span{font-size:11px}}

@media(max-width:500px){.realm-name-options>button{padding:6px 8px;min-height:52px;gap:2px}.realm-name-options>button span{font-size:10px;white-space:nowrap}}
/* A lone follow-up occupies the full result row, with its plaque centered. */
html body .room-action-report .aftermath-receipt{grid-column:1 / -1!important;justify-self:center!important;align-self:center;max-width:480px;width:100%;margin-inline:auto!important}
/* Rewards keep their natural height even when they are the only result block. */
html body .room-action-report .report-rewards{height:max-content!important;min-height:0!important;flex:0 0 auto!important;align-self:center!important;align-content:center!important;align-items:start!important;grid-auto-rows:max-content!important;width:100%;margin-inline:auto!important}
html body .room-action-report .report-rewards>div{height:auto!important;min-height:88px;align-self:start!important;display:flex;align-items:center;justify-content:center;gap:10px;padding:14px 16px!important}
html body .room-action-report .report-rewards>div>span{font-size:18px!important;line-height:1.35}
html body .room-action-report .report-rewards>div>b{font-size:32px!important;line-height:1.2}
html body .room-action-report .report-rewards>div.is-long-reward>b{font-size:22px!important}
@media(max-width:700px){html body .room-action-report .report-rewards>div{min-height:64px;padding:9px 10px!important;gap:7px}html body .room-action-report .report-rewards>div>span{font-size:15px!important}html body .room-action-report .report-rewards>div>b{font-size:26px!important}html body .room-action-report .report-rewards>div.is-long-reward>b{font-size:18px!important}}
/* Reward plaques share the growth-card proportions, independent of count. */
html body .room-action-report .report-rewards.report-rewards{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(0,230px))!important;grid-auto-rows:148px!important;justify-content:center!important;max-width:950px!important;gap:10px!important;height:max-content!important}
html body .room-action-report .report-rewards.report-rewards>div{height:148px!important;min-height:148px!important;max-height:148px!important;display:flex!important;flex-direction:column;justify-content:center;gap:12px!important;padding:14px 16px!important;border-width:2px!important;border-top-width:4px!important;box-shadow:inset 0 0 0 5px #071422,inset 0 0 0 6px color-mix(in srgb,var(--reward-color) 60%,transparent),inset 0 0 30px color-mix(in srgb,var(--reward-color) 12%,transparent),0 6px 15px #0009,0 0 13px color-mix(in srgb,var(--reward-color) 25%,transparent)!important}
html body .room-action-report .report-rewards.report-rewards>div>span{display:flex;align-items:center;justify-content:center;gap:9px;font:600 19px/1.25 var(--serif)!important;color:#e7e4e0}
html body .room-action-report .report-rewards.report-rewards>div>span:before{content:attr(data-seal);display:none}
html body .room-action-report .report-rewards.report-rewards>div:after{content:attr(data-reward-seal);font-size:85px;opacity:.16;right:12px;transform:translateY(-50%) rotate(-12deg)}
html body .room-action-report .report-rewards.report-rewards>div>b{font:600 42px/1.1 var(--serif)!important;color:#e4f0ff;text-align:center}
html body .room-action-report .report-rewards.report-rewards>div.is-loss>b{color:#ffc0b6}
html body .room-action-report .report-rewards.report-rewards>div.is-long-reward,html body .room-action-report .report-rewards.report-rewards>div.is-office-reward{grid-column:span 2!important}
html body .room-action-report .report-rewards.report-rewards>div.is-long-reward>b,html body .room-action-report .report-rewards.report-rewards>div.is-office-reward>b{font-size:24px!important;overflow-wrap:anywhere}
@media(max-width:700px){html body .room-action-report .report-rewards.report-rewards{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:122px!important;max-width:420px!important;gap:7px!important}html body .room-action-report .report-rewards.report-rewards>div{height:122px!important;min-height:122px!important;max-height:122px!important;padding:9px 10px!important;gap:9px!important}html body .room-action-report .report-rewards.report-rewards>div>span{font-size:15px!important}html body .room-action-report .report-rewards.report-rewards>div>b{font-size:34px!important}html body .room-action-report .report-rewards.report-rewards>div.is-long-reward>b,html body .room-action-report .report-rewards.report-rewards>div.is-office-reward>b{font-size:20px!important}}
html body .room-action-report.has-companion-pages>.report-rewards.report-rewards[data-receipt-original],html body .room-action-report .report-rewards.report-rewards[hidden]{display:none!important}

html body .room-action-report .report-rewards.report-rewards>div:not(.is-long-reward):not(.is-office-reward){width:230px!important;max-width:100%;justify-self:center!important;box-sizing:border-box}
@media(max-width:700px){html body .room-action-report .report-rewards.report-rewards>div:not(.is-long-reward):not(.is-office-reward){width:100%!important}html body .room-action-report .report-rewards.report-rewards>div:only-child:not(.is-long-reward):not(.is-office-reward){grid-column:1/-1!important;width:calc((100% - 7px)/2)!important}}

/* Numeric relationship and career rewards use the same fixed plaque as stats. */
html body .room-action-report .report-rewards.report-rewards>div.is-numeric-reward{grid-column:auto!important;align-items:center!important;text-align:center!important}
html body .room-action-report .report-rewards.report-rewards>div.is-numeric-reward>b{display:flex!important;flex-direction:column;align-items:center;gap:5px;white-space:nowrap!important}
html body .room-action-report .report-rewards.report-rewards>div.is-numeric-reward>b>span{font:500 19px/1.2 var(--serif);color:#c5d5e4}
html body .room-action-report .report-rewards.report-rewards>div.is-numeric-reward>b>strong{font:600 36px/1.1 var(--serif)}
@media(max-width:700px){html body .room-action-report .report-rewards.report-rewards>div.is-numeric-reward>b>span{font-size:16px}html body .room-action-report .report-rewards.report-rewards>div.is-numeric-reward>b>strong{font-size:29px}}
/* Captured cities are the battle's headline, not fine print. */
html body .room-action-report .mobile-conquest-receipt{padding:14px 20px!important;box-sizing:border-box}
html body .room-action-report .mobile-conquest-receipt>strong{display:block;font:600 18px/1.3 var(--serif)!important;color:#b9def8}
html body .room-action-report .mobile-conquest-receipt>p{font:600 32px/1.25 var(--serif)!important;margin:7px 0 0!important;color:#fff0d2;word-break:keep-all;overflow-wrap:anywhere}
html body .room-action-report .mobile-conquest-receipt[data-captured-count="0"]>p{font-size:24px!important}
@media(max-width:700px){html body .room-action-report .mobile-conquest-receipt{padding:10px 12px!important}html body .room-action-report .mobile-conquest-receipt>strong{font-size:15px!important}html body .room-action-report .mobile-conquest-receipt>p{font-size:25px!important;margin-top:5px!important}html body .room-action-report .mobile-conquest-receipt[data-captured-count="0"]>p{font-size:20px!important}}
.palace-story.has-invasion{border-color:#e49b80!important;background:linear-gradient(120deg,#492b32,#1a2638)!important;color:#fff2df!important}
.palace-story.has-invasion>span{color:#ffb296!important;font-weight:700}
.palace-story.has-invasion>strong{color:#fff2df!important;font-size:19px!important;line-height:1.3!important}
.palace-story.has-invasion>small{color:#ffd0ac!important}
.person-invasion{display:none}
@media(max-width:700px){.person-invasion{display:block!important;grid-column:1/-1;color:#ffbea4!important;font:600 11px/1.3 var(--serif);white-space:normal}.palace-person-context:has(.person-invasion)>:not(.person-invasion){display:none!important}}
.palace-command.has-lock-reason .palace-command-rate{white-space:normal!important;overflow-wrap:anywhere;line-height:1.3!important;max-width:100%;font-size:14px!important}
@media(max-width:700px){.palace-command.has-lock-reason .palace-command-rate{font-size:12px!important}}
.palace-blocked-reason{margin:10px 0;padding:12px 14px;border:1px solid #c7836b;background:#35232d;color:#ffe0c5;font:600 16px/1.45 var(--serif);overflow-wrap:anywhere}
/* Administration shares the ledger height, with one readable line per metric. */
html body .room-experience .palace-person>.palace-faction-status.has-administration{height:46px;padding:2px 4px;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:20px 20px;gap:0}
html body .room-experience:has(.has-administration) .palace-upper{padding-bottom:0}
html body .has-administration .faction-status-cell{display:flex;align-items:center;justify-content:center;gap:4px;grid-template-rows:none}
html body .has-administration .faction-status-label{font-size:11px;line-height:18px}
html body .has-administration .faction-status-value{font-size:14px;line-height:18px}
html body .has-administration .faction-status-value small{display:none}
@media(max-width:700px){
 html body .room-experience .palace-person>.palace-faction-status.has-administration{height:42px;grid-template-rows:18px 18px}
 html body .has-administration .faction-status-cell{gap:2px}
 html body .has-administration .faction-status-label{font-size:10px}
 html body .has-administration .faction-status-label i{display:none}
 html body .has-administration .faction-status-value{font-size:12px}
}
@media(max-width:700px){
 html body .room-action-report.has-candidate{container-type:normal;overflow:auto;display:flex;flex-direction:column;gap:6px}
 html body .room-action-report.has-candidate>.retainer-decision{flex:0 0 auto;display:flex;flex-direction:column;gap:7px;padding:9px!important;min-height:min-content}
 html body .room-action-report.has-candidate .candidate-identity{display:flex;flex:none;min-height:72px;gap:10px;align-items:center}
 html body .room-action-report.has-candidate .candidate-identity .candidate-portrait{width:68px;height:68px;max-height:none;flex:none}
 html body .room-action-report.has-candidate .candidate-identity>div{min-width:0}
 html body .room-action-report.has-candidate .candidate-identity h3{font-size:23px;margin:2px 0}
 html body .room-action-report.has-candidate .candidate-identity p,html body .room-action-report.has-candidate .candidate-identity small{font-size:12px;line-height:1.3}
 html body .room-action-report.has-candidate .candidate-abilities{display:grid;flex:none;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;gap:4px}
 html body .room-action-report.has-candidate .candidate-abilities>div{padding:3px}
 html body .room-action-report.has-candidate .candidate-abilities dd{font-size:23px}
 html body .room-action-report.has-candidate .candidate-skills{padding:5px 7px;flex:none}
 html body .room-action-report.has-candidate .candidate-skills p,html body .room-action-report.has-candidate .candidate-skills span{font-size:12px}
 html body .room-action-report.has-candidate .candidate-question{flex-wrap:wrap;gap:2px;font-size:12px}
 html body .room-action-report.has-candidate .candidate-actions{flex:none}
 html body .room-action-report.has-candidate .candidate-actions button{min-height:40px}
}
@media(max-width:700px){
 html body .room-action-report.has-candidate>.report-rewards,html body .room-action-report.has-candidate>.report-growth-graphs{display:none!important}
 html body .room-action-report.has-candidate>.report-full{display:none}
 html body .room-action-report.has-candidate{justify-content:center;padding:6px!important}
 html body .room-action-report.has-candidate>.retainer-decision{gap:5px;padding:7px!important}
 html body .room-action-report.has-candidate .candidate-identity{min-height:58px;gap:8px}
 html body .room-action-report.has-candidate .candidate-identity .candidate-portrait{width:56px;height:56px}
 html body .room-action-report.has-candidate .candidate-identity h3{font-size:22px}
 html body .room-action-report.has-candidate .candidate-skills span{display:none}
}
/* Mobile archive reserves a real inset before pagination and the room border. */
@media(max-width:700px){
 html body .room-experience .palace-card-deck.room-hall-redesign{box-sizing:border-box;padding:8px 10px 14px!important;min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-padding-bottom:14px}
 html body .room-hall-redesign .register-hall-grid{flex:none;padding-bottom:2px;box-sizing:border-box}
 html body .room-experience:has(.room-hall-redesign) .palace-pages{margin-top:8px;align-self:center}
 html body .room-experience:has(.room-hall-redesign) .palace-desk{row-gap:6px}
}
@media(max-width:700px) and (max-height:740px){
 html body .room-experience:has(.room-hall-redesign){grid-template-rows:46px 118px 38px minmax(0,1fr) 44px 0}
 html body .room-experience:has(.room-hall-redesign) .room-location{padding:0;gap:3px}
 html body .room-experience:has(.room-hall-redesign) .room-location>i{display:none}
 html body .room-experience:has(.room-hall-redesign) .room-location .room-name{font-size:19px!important}
 html body .room-experience:has(.room-hall-redesign) .palace-desk{grid-template-rows:auto auto minmax(0,1fr) 36px}
 html body .room-hall-redesign .register-hall-card{padding:7px 8px;gap:3px 8px}
 html body .room-hall-redesign .register-hall-stats dl{gap:2px}
}
@media(max-width:700px) and (max-height:740px){
 html body .room-experience:has(.room-hall-redesign){grid-template-rows:46px 100px 30px minmax(0,1fr) 44px 0}
 html body .room-experience:has(.room-hall-redesign) .palace-faction-status{display:none!important}
}
@media(max-width:700px) and (max-height:740px){
 html body .room-hall-redesign .register-hall-card>header{padding-bottom:0;gap:5px}
 html body .room-hall-redesign .register-hall-face{height:34px!important}
 html body .room-hall-redesign .register-hall-stats dl{gap:1px;margin-top:0}
 html body .room-hall-redesign .register-hall-stats .hall-stat-row{line-height:1;gap:0}
 html body .room-hall-redesign .register-hall-stats dd{line-height:1}
 html body .room-hall-redesign .register-hall-card{padding:5px 8px;gap:2px 8px}
 html body .room-hall-redesign .register-score{font-size:22px;margin-top:2px!important}
 html body .room-experience .room-hall-redesign>.hall-actions{height:28px!important;margin-bottom:2px!important}
 html body .room-experience .room-hall-redesign>.hall-actions button{min-height:26px!important}
}
@media(max-width:700px) and (max-height:740px){
 html body .room-experience:has(.room-hall-redesign) .palace-story{display:none!important}
}
.palace-faction-status[role=button]{cursor:pointer}
.palace-faction-status[role=button]:focus-visible{outline:2px solid #e5c483;outline-offset:3px}
.faction-detail-panel{padding:12px;box-sizing:border-box;color:#e4eaf1}
.faction-detail-panel>header{padding:4px 4px 12px;border-bottom:1px solid #ad936566;margin-bottom:12px}
.faction-detail-panel>header span,.faction-detail-panel>header p{font-size:13px;color:#b9cadb;margin:4px 0}
.faction-detail-panel h3{font:600 26px/1.3 var(--serif);color:#efdbb6;margin:6px 0}
.faction-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.faction-detail-grid article{display:grid;grid-template-columns:26px 1fr;gap:5px 7px;padding:10px;border:1px solid #9e886555;background:linear-gradient(120deg,#243c53,#152537);min-width:0}
.faction-detail-grid i{grid-row:1/3;font:22px var(--serif);font-style:normal;color:#cdb88c;align-self:center}
.faction-detail-grid span{font-size:12px;color:#b9ccdf}
.faction-detail-grid strong{font:600 17px/1.3 var(--serif);overflow-wrap:anywhere}
.faction-detail-note{font-size:12px;line-height:1.4;margin:10px 0 0;color:#c0cede}
@media(max-width:700px){.faction-detail-panel{padding:6px}.faction-detail-grid{gap:6px}.faction-detail-grid article{padding:8px 6px;grid-template-columns:21px 1fr}.faction-detail-grid strong{font-size:14px}.faction-detail-panel h3{font-size:22px}}
@media(max-width:700px) and (max-height:650px){
 .palace-sheet:has(.faction-detail-panel) .palace-sheet-body{padding:8px!important;overflow-y:auto}
 .faction-detail-panel>header{padding:0 0 7px;margin-bottom:8px}
 .faction-detail-grid article{padding:6px;gap:3px 5px}
 .faction-detail-note{margin-top:7px;font-size:11px}
}
/* Residence heading stays inside its own row, below the faction ledger. */
html body .room-experience.is-lobby .room-location{box-sizing:border-box;align-self:stretch;min-height:0;height:100%;padding:10px 0 4px;gap:12px}
html body .room-experience.is-lobby .room-seal{box-sizing:border-box;flex-shrink:0;height:min(100%,52px);width:52px;font-size:32px}
html body .room-experience.is-lobby .room-location>div{min-height:0}
@media(max-width:700px){
 html body .room-experience.is-lobby .room-location{padding:7px 0 3px;gap:8px}
 html body .room-experience.is-lobby .room-seal{height:min(100%,38px);width:34px;font-size:23px}
}
@media(max-width:700px) and (max-height:700px){
 html body .room-experience.is-lobby .room-location{visibility:hidden}
}
html.landscape-desktop body .room-experience.is-lobby .room-location{padding-top:14px}
