.trade-camp-panel{display:grid;gap:18px;max-width:760px}.trade-camp-intro{display:flex;gap:18px;align-items:center}.trade-camp-intro h3{margin:0 0 8px;color:#f0d196}.trade-camp-intro p,.trade-camp-hint,.trade-camp-section p{font-size:13px;line-height:1.65;color:#baccc3;margin:0}.trade-camp-preview{width:110px;height:92px;flex:none;filter:drop-shadow(0 6px 4px #102d2d80)}.trade-camp-status{display:grid;gap:8px;border:1px solid #718a70;border-radius:12px;background:#2d4a40;padding:15px;font-size:14px;line-height:1.6}.trade-camp-status strong{color:#f1d393}.trade-camp-status.damaged{border-color:#c98c60;background:#493f33}.trade-camp-section{display:grid;gap:14px;border-top:1px solid #49645a;padding-top:18px}.trade-camp-section h4{margin:0;color:#f0d196}.trade-camp-panel form{display:grid;gap:14px}.trade-camp-panel label{display:grid;gap:8px;font-size:13px;font-weight:600}.trade-camp-panel select{width:100%;max-width:100%}.trade-camp-materials{display:flex;flex-wrap:wrap;gap:9px}.trade-camp-materials .trade-material{display:flex;align-items:center;gap:8px;border:1px solid currentColor;border-radius:8px;padding:8px 10px;background:#203e39}.trade-camp-materials .trade-material>img{width:34px;height:42px;object-fit:cover;border-radius:5px}.trade-camp-materials .trade-material b{font-size:13px}.trade-camp-materials .trade-material small{display:block;font-size:11px;margin-top:4px}.trade-camp-open{margin-bottom:10px}.trade-camp-panel button:not(.wide){justify-self:start}@media(max-width:480px){.trade-camp-intro{gap:10px;align-items:flex-start}.trade-camp-preview{width:78px;height:72px}.trade-camp-panel{gap:15px}.trade-camp-materials{display:grid;grid-template-columns:1fr}.trade-camp-materials .trade-material{min-width:0}.trade-camp-intro h3{font-size:20px}}

.trade-board-buildings .trade-build-controls{grid-template-columns:repeat(var(--trade-build-columns,5),minmax(0,1fr))}.trade-building-status-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;max-width:100%}.trade-building-heading .trade-camp-open{margin:0;flex:none;font-size:11px;padding:7px 10px}.trade-board-buildings .trade-building-heading .trade-camp-open{font-size:13px;padding:6px 9px}

.trade-acquire-destinations{display:flex;flex-wrap:wrap;gap:9px;margin:14px 0}.trade-acquire-destinations [aria-pressed="true"]{background:#56644a;border-color:#efcf95;color:#fff0c9}
.trade-camp-panel .trade-camp-repair-notice,.trade-camp-storage-info .trade-camp-repair-notice,.trade-acquire-dialog .trade-camp-repair-notice{color:#ff9d8d;font-size:15px;line-height:1.5;font-weight:800;margin:0}
.trade-building-heading .trade-camp-open.damaged{color:#ff9d8d;border-color:#db7668}
.trade-camp-status.fortified{border-color:#edcf83;background:#38513d}.trade-camp-fortify>.primary{background:#e9bd72;color:#193337;border-color:#f4d391}
.trade-camp-map-prompt{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:10px 0;padding:12px 15px;border:1px solid #f2cf81;border-radius:10px;background:#304f42;color:#ffedbd}.trade-camp-map-prompt strong{font-size:15px}.trade-camp-map-prompt p{margin:5px 0 0;font-size:13px;line-height:1.5}.trade-camp-map-prompt>div:last-child{display:flex;gap:8px;flex-shrink:0}.trade-camp-connection-target{cursor:pointer}.camp-map-road-glow{stroke:#ffe49b;stroke-width:15;stroke-linecap:round;opacity:.8;filter:drop-shadow(0 0 5px #ffe49b)}.camp-map-road-hit{stroke:transparent;stroke-width:24;pointer-events:stroke}.camp-map-building-glow{fill:none;stroke:#ffe49b;stroke-width:5;filter:drop-shadow(0 0 6px #ffe49b)}.camp-map-building-hit{fill:transparent;pointer-events:all}.trade-camp-connection-target:hover .camp-map-road-glow,.trade-camp-connection-target:focus .camp-map-road-glow{stroke:#fff6d8;stroke-width:19}.trade-camp-connection-target:hover .camp-map-building-glow,.trade-camp-connection-target:focus .camp-map-building-glow{stroke:#fff6d8;stroke-width:7}.camp-map-planned rect{fill:#35594a;stroke:#ffe49b;stroke-width:3;stroke-dasharray:4 2}.camp-map-planned text{fill:#ffedbd;font-size:16px;font-weight:800}.camp-map-planned .camp-map-caption{font-size:12px}@media(max-width:700px){.trade-camp-map-prompt{align-items:stretch;flex-direction:column}.trade-camp-map-prompt>div:last-child{flex-wrap:wrap}}
.trade-camp-connection-preview{margin:0;border:1px solid #607969;border-radius:12px;overflow:hidden;background:#173633}.trade-camp-connection-map{display:block;width:100%;height:220px;max-height:38vh}.camp-connection-existing line{stroke-width:4;stroke-linecap:round;opacity:.6}.camp-connection-branch line{stroke:#ffd181;stroke-width:5;stroke-dasharray:7 5;stroke-linecap:round}.camp-connection-selected{stroke:#fff0bd;stroke-width:9;stroke-linecap:round}.camp-connection-join{fill:none;stroke:#fff0bd;stroke-width:2.5}.trade-camp-connection-preview figcaption{display:flex;flex-wrap:wrap;gap:9px 16px;padding:11px 14px;border-top:1px solid #49665b;color:#d9e1cb;font-size:12px;line-height:1.5}.camp-preview-selected-key::before,.camp-preview-branch-key::before{content:"";display:inline-block;width:18px;margin-right:7px;vertical-align:middle;border-top:4px solid #fff0bd}.camp-preview-branch-key::before{border-top:3px dashed #ffd181}@media(max-width:480px){.trade-camp-connection-map{height:190px}.trade-camp-connection-preview figcaption{font-size:11px;padding:9px}}

/* Camp remains a storage-only column beside the unchanged four main halls. */
#modal[data-trade-shipping]{container-name:trade-shipping;container-type:inline-size}
#modal[data-trade-shipping] .trade-shipping-inventory-bottom{display:flex;flex-direction:column}
#modal[data-trade-shipping] .trade-shipping-inventory-bottom>.trade-shipping-inventory{margin-top:auto}
#modal[data-trade-shipping] .trade-shipping-with-camp{grid-template-columns:minmax(0,1fr)}
#modal[data-trade-shipping] .trade-shipping-with-camp>.trade-camp-warehouse{grid-column:1/-1;grid-row:auto;min-width:0;align-self:stretch;display:flex;flex-direction:column}
#modal[data-trade-shipping] .trade-camp-warehouse>.trade-shipping-inventory{display:flex;flex:1;align-items:center;justify-content:center;min-width:0}
#modal[data-trade-shipping] .trade-camp-warehouse .trade-storage-slots{width:100%}
#modal[data-trade-shipping] .trade-camp-warehouse.damaged{border-color:#c98c60}
#modal[data-trade-shipping] .trade-camp-warehouse .trade-shipping-hall-title{gap:5px;font-size:12px}
#modal[data-trade-shipping] .trade-camp-warehouse .trade-storage-slots{grid-template-columns:repeat(auto-fit,minmax(44px,1fr));gap:5px}
#modal[data-trade-shipping] .trade-camp-warehouse .trade-storage-slot{min-width:44px;min-height:44px;max-width:64px}
@container trade-shipping (min-width:620px){
 #modal[data-trade-shipping] .trade-shipping-with-camp{grid-template-columns:repeat(2,minmax(0,1fr)) 114px}
 #modal[data-trade-shipping] .trade-shipping-with-camp>.trade-camp-warehouse{grid-column:3;grid-row:1/span 2;padding:10px 8px}
 #modal[data-trade-shipping] .trade-camp-warehouse .trade-shipping-hall-title{flex-direction:column;align-items:center}
 #modal[data-trade-shipping] .trade-camp-warehouse .trade-storage-slots{grid-template-columns:56px;justify-content:center;margin:10px 0}
 #modal[data-trade-shipping] .trade-camp-warehouse .trade-storage-slot{width:56px;min-width:0;min-height:0;max-width:56px}
}

/* Compact bonus controls keep the first warehouse row close to its stock. */
#modal[data-trade-shipping] .trade-mill-instant-compact{margin-top:8px;padding:7px 0 0;gap:5px;border:0;border-top:1px solid #69837180;border-radius:0;background:transparent}
#modal[data-trade-shipping] .trade-mill-instant-compact h4{font-size:11px;line-height:1.3;margin:0}
#modal[data-trade-shipping] .trade-mill-instant-compact .trade-building-bonus-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 7px;align-items:end}
#modal[data-trade-shipping] .trade-mill-instant-compact label{margin:0;gap:2px;font-size:11px;line-height:1.3}
#modal[data-trade-shipping] .trade-mill-instant-compact select{min-width:0;min-height:44px;padding:6px;font-size:12px}
#modal[data-trade-shipping] .trade-mill-instant-compact button{grid-column:auto;min-width:0;min-height:44px;margin:0;padding:6px;font-size:12px;line-height:1.3}
#modal[data-trade-shipping] .trade-mill-instant-compact p{grid-column:1/-1;margin:0!important;font-size:11px!important;line-height:1.35!important}
@media(min-width:1000px) and (pointer:fine){
 #modal[data-trade-shipping] .trade-shipping-overview{align-content:start}
 #modal[data-trade-shipping] .trade-mill-instant-compact select,#modal[data-trade-shipping] .trade-mill-instant-compact button{min-height:30px;padding:4px 6px;font-size:11px}
 #modal[data-trade-shipping] .trade-production-drag-handle{display:inline-flex;align-items:center;gap:6px;min-height:30px;margin-right:auto;padding:4px 8px;font-size:11px;line-height:1.3;cursor:grab;touch-action:none;user-select:none}
 #modal[data-trade-shipping] .trade-production-drag-handle:focus-visible{outline:2px solid #efcf95;outline-offset:2px}
 #modal[data-trade-shipping].trade-production-moving,#modal[data-trade-shipping].trade-production-moving .trade-production-drag-handle{cursor:grabbing;user-select:none}
}
