/* Protected gathering only: keep the existing sheet, frames and real actions. */
.action-sheet:has(.gathering-panel){top:0;max-height:100%}
.gathering-panel{color:var(--antique-ink);padding:0 6px;min-width:0}
.gathering-hero{position:relative;min-width:0;aspect-ratio:1.9;margin:-6px -6px 0;isolation:isolate}
.gathering-hero-image{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.gathering-hero-fallback{display:flex;justify-content:center;align-items:center;height:100%;min-height:160px}
.gathering-hero-fallback>.world-site-sprite{display:block;position:static;width:60%;height:160px;transform:none}
.gathering-panel .gathering-hero-fallback>.gathering-worker-art{width:32%;height:170px}
.gathering-protection{position:absolute;left:0;bottom:10px;display:grid;justify-items:center;max-width:42%;text-align:center;line-height:1.15;font:700 13px/1.15 var(--serif)}
.gathering-protection-art{width:64px;height:64px;object-fit:contain;filter:drop-shadow(0 2px 1px #43301866)}
.gathering-protection>span{padding:4px 8px;background:var(--ornate-paper) center/300px;border:1px solid var(--antique-gold);box-shadow:0 1px 3px #60482944;border-radius:2px}
.gathering-cargo-strip{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);border:1px solid #9b7b4566;border-radius:4px;background:#ab803016;box-shadow:inset 0 0 0 2px #fff2;padding:6px 4px;margin:0 0 6px}
.gathering-cargo,.gathering-worker{display:flex;align-items:center;min-width:0;gap:6px}
.gathering-worker{border-left:1px solid #9b7b4566;padding-left:6px}
.gathering-cargo>span:last-child,.gathering-worker>span:last-child{display:grid;min-width:0;gap:2px;font:14px/1.2 var(--serif)}
.gathering-cargo strong,.gathering-worker strong{font:700 26px/1 var(--serif);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.gathering-cargo-art>.standard-item-art{width:54px;height:54px}
.gathering-worker-portrait{position:relative;display:block;width:64px;height:62px;overflow:hidden;flex:none}
.gathering-panel .gathering-worker-portrait .gathering-worker-art{position:absolute;left:50%;top:0;display:block;width:180px;max-width:none;height:120px;object-fit:contain;transform:translateX(-50%)}
.gathering-journey{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;text-align:center;padding:4px 0 0}
.gathering-journey-stop{position:relative;display:grid;grid-template-rows:65px auto;justify-items:center;gap:1px;font:14px/1.2 var(--serif)}
.gathering-journey-stop:not(:last-child)::after{content:'›';position:absolute;left:calc(75% + 4px);top:48px;width:50%;border-top:3px dotted #a57e39;color:#805317;font:700 22px/.1 var(--serif);text-align:right;pointer-events:none}
.gathering-journey-art{display:block;width:100%;height:65px;position:relative}
.gathering-panel .gathering-journey-art>:is(.building-sprite,.world-site-sprite){display:block;position:static;width:100%;height:100%;transform:none;background-repeat:no-repeat}
.gathering-total{display:grid;gap:3px;text-align:center;margin:10px 0 18px;font:13px/1.3 var(--sans);color:var(--antique-muted)}
.gathering-total strong{font:700 17px/1.25 var(--serif);color:var(--antique-ink)}
.gathering-verdict{position:relative;display:flex;align-items:center;justify-content:center;min-height:46px;padding:6px 14px;gap:6px;color:#fff0c6;text-shadow:0 1px #122116;isolation:isolate;text-align:center}
.gathering-verdict::before{content:'';position:absolute;inset:-8px 0;z-index:-1;pointer-events:none;border:20px solid transparent;border-image:var(--ornate-primary) 40% 13% fill / 20px 22px / 0 stretch}
.gathering-verdict.is-internal::before,.gathering-verdict.is-equal::before{border-image-source:var(--ornate-secondary)}
.gathering-verdict strong{font:700 17px/1.25 var(--serif)}
.gathering-verdict .standard-item-art{display:block;width:36px;height:36px}
.sheet-content .gathering-slot-note{margin:12px 0 2px;text-align:center;color:var(--antique-muted);font-size:12px}
.gathering-warehouse{display:grid;grid-template-columns:86px minmax(0,1fr);align-items:center;gap:8px;margin-top:18px;border-block:1px solid #9b7b4566;padding:12px 0}
.gathering-warehouse-art{height:104px}
.gathering-panel .gathering-warehouse-art>.building-sprite{display:block;position:static;width:100%;height:100%;transform:none;background-repeat:no-repeat}
.sheet-content .gathering-warehouse h3{font:20px/1.1 var(--serif);margin:0 0 5px}
.gathering-space{display:block;font:700 19px/1.2 var(--serif);overflow-wrap:anywhere}
.sheet-content .gathering-warehouse p{font:12px/1.4 var(--sans);margin:7px 0 0;color:var(--antique-muted)}
.gathering-current-status{margin:8px 0}
.gathering-panel .gathering-overflow{margin:8px 0}
.gathering-details{border-bottom:1px solid #9b7b4566;margin:0 0 10px}
.gathering-details>summary{display:flex;align-items:center;min-height:48px;gap:8px;font:700 17px/1.2 var(--serif);cursor:pointer;list-style:none}
.gathering-details>summary::-webkit-details-marker{display:none}
.gathering-details>summary>.icon{width:23px;height:23px;color:#886331;flex:none}
.gathering-details-arrow{margin-left:auto;font-size:30px;line-height:1;transition:transform .15s}
.gathering-details[open] .gathering-details-arrow{transform:rotate(90deg)}
.gathering-details>summary:focus-visible{outline:2px solid var(--antique-gold);outline-offset:-2px}
.gathering-details-body{padding:0 2px 10px}
.gathering-details-body .gathering-estimate{margin-top:10px}
.gathering-availability{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 10px;font:11px/1.35 var(--sans);color:var(--antique-muted)}
.gathering-actions{margin:8px 0 4px;padding:8px 0 4px;display:grid;gap:5px}
.gathering-actions>.cost-row{display:none}
.gathering-actions>.primary-button{width:100%;min-height:48px}
@media(min-width:760px){.gathering-panel{padding-inline:8px}.gathering-hero{max-height:275px;aspect-ratio:2}.gathering-cargo-art>.standard-item-art{width:68px;height:68px}.gathering-cargo-strip{padding:8px 12px}.gathering-protection-art{width:76px;height:76px}.gathering-journey-stop{grid-template-rows:84px auto}.gathering-journey-art{height:84px}.gathering-journey-stop:not(:last-child)::after{top:65px}.gathering-warehouse{grid-template-columns:110px minmax(0,1fr)}.gathering-verdict strong{font-size:20px}}
@media(prefers-reduced-motion:reduce){.gathering-details-arrow{transition:none}}
@media(forced-colors:active){.gathering-verdict{color:CanvasText;border:1px solid ButtonText;text-shadow:none}.gathering-verdict::before{display:none}.gathering-protection>span{background:Canvas;color:CanvasText}.gathering-details>summary:focus-visible{outline-color:Highlight}}
