.intelligence-expedition-scene{position:relative;min-height:210px;padding:12px;border:1px solid var(--gold);background:#655937 url('./art-web/report-scenes-v1-91acf092be.webp') center top/100% 300%;display:flex;align-items:flex-end;justify-content:flex-end;isolation:isolate}.intelligence-expedition-scene.is-hunt{background-position:center 50%}.intelligence-enemy-preview{max-width:100%;padding:10px;background:#fbf0dce8;border:1px solid #ad915477;color:var(--antique-ink)}.intelligence-enemy-preview h3{font:700 17px var(--serif);margin:0 0 6px}.intelligence-enemy-preview>div{display:grid;grid-template-columns:40px minmax(0,1fr);gap:4px 8px;align-items:center}.intelligence-enemy-preview .report-portrait{grid-row:span 2;width:40px;height:44px}.intelligence-enemy-preview strong{font:600 15px var(--serif);overflow-wrap:anywhere}.intelligence-enemy-preview small{font:11px var(--sans);color:var(--antique-muted)}.intelligence-formation-budget{display:grid;gap:7px;padding:12px 0;text-align:center;border-block:1px solid #ad915455}.intelligence-formation-budget strong{font:700 19px var(--serif)}.intelligence-formation-budget progress{width:100%;height:12px;accent-color:#214e37}.intelligence-formation-budget span,.intelligence-challenge-rules{font:12px/1.5 var(--sans);color:var(--antique-muted)}.intelligence-formation-budget.is-insufficient{color:#803820}.intelligence-preparation-preview h3{font-family:var(--serif)}.intelligence-preparation-preview .primary-button{width:100%}

/* Rescue keeps the existing sheet and chat clearance. The canonical formation
   rows scroll in a bounded body while its one send action remains reachable. */
.action-sheet:has(.intelligence-rescue-preparation){height:100%}
.sheet-content:has(.intelligence-rescue-preparation){min-height:0;flex:1;display:flex;flex-direction:column;overflow:hidden}
.intelligence-rescue-preparation{width:100%;min-width:0;max-width:100%;min-height:0;flex:1;display:flex;flex-direction:column}
.intelligence-rescue-preparation-body{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:var(--space);scrollbar-color:#8c7247 #d5bc87;scrollbar-width:thin}
.intelligence-rescue-preparation .intelligence-expedition-scene{width:100%;min-width:0;max-width:100%}
.intelligence-rescue-preparation .unit-label>span:last-child{min-width:0;overflow-wrap:anywhere}
.intelligence-rescue-preparation .intelligence-preparation-guide{margin:7px 0;font-size:13px;line-height:1.45}
.intelligence-rescue-preparation .intelligence-other-troops{margin:4px 0 8px}
.intelligence-rescue-preparation .intelligence-other-troops>summary{min-height:44px;font:600 14px/1.3 var(--serif);cursor:pointer}
.intelligence-rescue-preparation #expedition-preview{flex:none;min-width:0;border-top:1px solid var(--antique-gold);padding-top:var(--space)}
.intelligence-rescue-preparation .intelligence-rescue-risk{margin:0 0 4px;font:12px/1.4 var(--sans);color:var(--antique-muted)}
.intelligence-rescue-preparation .intelligence-formation-budget{padding:4px 0;gap:3px;text-align:left;border-top:0}
.intelligence-rescue-preparation .intelligence-formation-budget strong{font-size:15px}
.intelligence-rescue-preparation .intelligence-formation-budget progress{height:7px}
.intelligence-rescue-preparation .intelligence-rescue-send-action .cost-row{margin:0 0 4px}
.intelligence-rescue-preparation .intelligence-rescue-send-action .reason{max-height:64px;overflow-y:auto;margin:4px 0}
.intelligence-rescue-preparation .intelligence-rescue-information{margin:4px 0 0}
.intelligence-rescue-preparation .intelligence-rescue-information>summary{min-height:44px;font:600 14px/1.3 var(--serif);cursor:pointer}
.intelligence-rescue-information-body{max-height:min(180px,24dvh);overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:var(--space)}
@media(max-width:699px){.intelligence-rescue-preparation .intelligence-expedition-scene{min-height:144px;height:min(180px,24dvh)}}
.intelligence-formation-choice{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--space);padding:var(--space) 0;border-bottom:1px solid #ad915455}
.intelligence-formation-choice>label,.intelligence-formation-choice>select{grid-column:1/-1;min-width:0;max-width:100%}
.intelligence-formation-choice>label{font:600 14px var(--serif)}
.intelligence-formation-choice>strong{align-self:center;font:600 14px var(--serif)}
.intelligence-formation-choice>.troop-quantity-range{grid-column:1/-1}

/* Rescue uses the sheet's normal scroll: its summary must not squeeze the troop
   controls into the height left over by a fixed, expandable preview. */
.sheet-content:has(.intelligence-rescue-preparation:not(.is-formation)){display:block;overflow-y:auto}
.intelligence-rescue-preparation:not(.is-formation){display:block}
.intelligence-rescue-preparation:not(.is-formation) .intelligence-rescue-preparation-body{overflow:visible}
.intelligence-rescue-preparation:not(.is-formation) .intelligence-rescue-information-body{max-height:none;overflow:visible}
.intelligence-rescue-preparation:not(.is-formation) .intelligence-rescue-send-action .reason{max-height:none;overflow:visible}
