.refugees-page .refugee-main{min-width:0}.refugee-buildings{overflow-y:auto;min-height:0;flex:1;padding-bottom:12px;scrollbar-gutter:stable}.orange-target{color:#ffbd6a;font-size:11px;line-height:1.6}
.building-totals{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;text-align:right;gap:4px;max-width:48%;font-size:10px;line-height:1.5}.refugee-building>summary .building-totals strong{font-size:11px;white-space:nowrap}.refugee-building>summary .building-occupancy{margin-left:10px}.refugees-page .target-actions{flex-shrink:0}
.refugee-building{border:1px solid var(--line);margin-bottom:10px;background:var(--surface)}.refugee-building>summary{display:flex;align-items:center;gap:12px;padding:10px;cursor:pointer;list-style:none}.refugee-building>summary:after{content:'+';margin-left:8px;color:var(--cyan)}.refugee-building[open]>summary:after{content:'−'}.refugee-building>summary img{width:42px;height:42px;object-fit:contain}.refugee-building>summary strong{font-size:13px}.building-profession{display:flex;flex-direction:column;gap:5px;min-width:0}.building-occupancy{margin-left:auto;white-space:nowrap;color:var(--muted)}
.refugee-slot-header,.refugee-slot{display:grid;grid-template-columns:38px 100px minmax(170px,1fr) minmax(170px,1fr) minmax(140px,1fr) minmax(160px,1.3fr);gap:12px;padding:12px;align-items:start;border-top:1px solid var(--line)}.refugee-slot-header{color:var(--muted);font-size:10px;padding-top:8px;padding-bottom:8px}.refugee-slot{font-size:11px}.refugee-slot.is-planned{background:#061017;box-shadow:inset 2px 0 var(--cyan)}.refugee-slot>div{min-width:0}.slot-number{display:flex;align-items:center;gap:5px;color:var(--muted);min-height:30px}.slot-number input{margin:0}.slot-rarity{width:100%;font-size:11px}.slot-rarity.purple{color:#ce9fff}.slot-rarity.orange{color:#ffbd6a}.slot-compare{font-size:10px;white-space:normal;line-height:1.4;margin-top:8px;width:100%}.slot-label{display:none}.slot-empty-note{grid-column:3/-1;color:var(--muted);align-self:center;line-height:1.7}.slot-bonuses{display:flex;flex-direction:column;gap:7px;line-height:1.5}.slot-bonuses span{display:block}.slot-bonuses strong{display:block}.fragment-costs{display:flex;flex-direction:column;gap:6px;line-height:1.5}.refugee-progress{display:flex;flex-direction:column;gap:6px}.refugee-progress .stepper input{width:52px}.refugee-progress .stepper button{width:29px}.refugee-progress .stepper{width:fit-content}.progress-description{font-size:10px;color:var(--muted);line-height:1.5}.refugee-stars{display:flex;gap:3px}.refugee-star{display:block;width:21px;height:21px;background:#616573;padding:2px;clip-path:polygon(50% 0%,61.225% 34.549%,97.55% 34.549%,68.164% 55.902%,79.39% 90.451%,50% 69.1%,20.61% 90.451%,31.836% 55.902%,2.45% 34.549%,38.775% 34.549%)}.refugee-star>span{display:block;width:100%;height:100%;background:conic-gradient(from 36deg,#161920 calc(360deg - var(--fill)),var(--amber) 0);clip-path:inherit}
.refugees-page #planPanel{display:flex;flex-direction:column;gap:12px}.refugees-page #planPanel>.side-panel{margin:0}.refugees-page .warehouse-content label:not(.consume-option){display:flex;flex-direction:column;gap:7px;margin-bottom:14px}.refugees-page .warehouse-content input[type=number]{width:100%}.refugee-plan-row{padding:9px 0;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:8px;font-size:11px}.refugee-plan-heading{display:flex;align-items:start;justify-content:space-between;gap:6px}.refugee-plan-row .plan-actions{display:flex;gap:5px}.refugee-plan-row .plan-actions button{margin-top:5px}.refugees-page .planning-sidebar{gap:12px}
.comparison-dialog{width:790px}.comparison-controls{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:22px 0}.comparison-controls label{display:flex;flex-direction:column;gap:10px;font-size:12px}.comparison-controls .refugee-progress{margin-top:9px}.comparison-block{border-top:1px solid var(--line);padding:18px 0 8px}.comparison-block h3{margin:0 0 12px;font-size:14px}.comparison-block p{line-height:1.7}.comparison-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.comparison-cost-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}.comparison-cost-grid>div{border:1px solid var(--line);padding:10px;display:flex;flex-direction:column;gap:9px;font-size:11px}.comparison-cost-grid small{color:var(--muted)}.refugees-page .detail-table-scroll{overflow:auto}.refugees-page .bonus-table{width:100%}.refugees-page .bonus-table th{text-align:left}.refugees-page .bonus-table td{text-align:right}.refugees-page .bonus-table caption{text-align:left;padding:14px 0;color:var(--muted)}
@media(min-width:1001px) and (max-width:1350px){.refugee-slot-header,.refugee-slot{grid-template-columns:32px 85px minmax(145px,1fr) minmax(145px,1fr);gap:10px}.refugee-slot-header>span:nth-last-child(-n+2){display:none}.refugee-slot .slot-cost{grid-column:3}.refugee-slot .slot-effects{grid-column:4}.refugee-slot .slot-cost .slot-label,.refugee-slot .slot-effects .slot-label{display:block;margin-bottom:8px;color:var(--muted);font-size:10px}}
@media(max-width:1000px){.refugees-page .planning-sidebar{display:block}.refugee-slot-header,.refugee-slot{grid-template-columns:32px 90px minmax(145px,1fr) minmax(145px,1fr);gap:10px}.refugee-slot-header>span:nth-last-child(-n+2){display:none}.refugee-slot .slot-cost{grid-column:3}.refugee-slot .slot-effects{grid-column:4}.refugee-slot .slot-cost .slot-label,.refugee-slot .slot-effects .slot-label{display:block;margin-bottom:8px;color:var(--muted);font-size:10px}}
@media(max-width:767px){.refugee-slot-header{display:none}.refugee-slot{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;padding:12px}.refugee-slot .slot-number{grid-column:1;grid-row:1}.refugee-slot .slot-rarity-cell{grid-column:2;grid-row:1}.slot-label{display:block;color:var(--muted);font-size:10px;margin-bottom:8px}.refugee-slot .slot-cost{grid-column:1}.refugee-slot .slot-effects{grid-column:2}.slot-empty-note{grid-column:1/-1}.refugee-building>summary{gap:8px}.refugee-building>summary img{width:34px;height:34px}.refugee-building>summary strong{font-size:12px}.building-occupancy{font-size:10px}.comparison-controls{grid-template-columns:1fr;gap:16px}.comparison-cost-grid{grid-template-columns:1fr}.comparison-dialog{padding:16px}.comparison-dialog .bonus-table th,.comparison-dialog .bonus-table td{padding:9px 5px;font-size:10px}.comparison-actions>button{flex:1;min-width:130px}.refugees-page .matrix-title{flex-wrap:wrap}.refugees-page .app-header nav{flex-wrap:wrap}.refugees-page .app-header nav small{display:none}.refugee-buildings{overflow:visible}.refugee-slot .stepper input{width:48px}.refugee-slot .stepper button{width:34px}}
@media(max-width:767px){.refugee-building>summary{display:grid;grid-template-columns:34px minmax(0,1fr) auto}.refugee-building>summary img{grid-column:1;grid-row:1/3}.refugee-building>summary .building-profession{grid-column:2;grid-row:1}.refugee-building>summary .building-occupancy{grid-column:2;grid-row:2;margin:0}.refugee-building>summary .building-totals{grid-column:2;grid-row:3;margin:0;max-width:none}.refugee-building>summary:after{grid-column:3;grid-row:1/3;margin:0}}

.plan-coverage-hint{display:block;margin-top:6px}

.refugee-plan-range{font-size:9px;line-height:1.5}

.refugees-page .planning-sidebar{display:flex;flex-direction:column}
.refugees-page .refugee-plan-heading .building-link{font-size:11px;line-height:1.5;text-align:left;white-space:normal}
