.ui-art{display:inline-grid;place-items:center;width:48px;height:48px;flex:0 0 48px;vertical-align:middle;position:relative;pointer-events:none}
.ui-art img,.ui-art-fallback{grid-area:1/1;width:48px;height:48px;object-fit:contain}
.ui-art-fallback{display:grid;place-items:center;color:#e7c785;font-size:24px}
.ui-art.art-loaded .ui-art-fallback{visibility:hidden}.ui-art.art-failed img{display:none}
.art-row{display:flex;align-items:center;gap:9px;margin:8px 0;min-width:0}.art-row>div{min-width:0;flex:1}.art-row small{display:block;line-height:1.45;color:#b4c9c0}
.worker-action.with-art{display:grid;grid-template-columns:48px 1fr;column-gap:8px}.worker-action.with-art>.ui-art{grid-row:1/3}.worker-action.with-art b,.worker-action.with-art small{grid-column:2}
.worker-action.locked .ui-art{filter:grayscale(.8);opacity:.55}.production-option>.ui-art{align-self:flex-start}
.resident-art{display:flex;gap:12px;flex-wrap:wrap}.resident-art>span{display:flex;align-items:center;gap:4px;font-size:11px}
#worker-action-art:empty{display:none}#worker-action-art{border-left:2px solid #ac985b;padding-left:8px}
.hex-legend .ui-art{width:28px;height:28px;flex-basis:28px}.hex-legend .ui-art img,.hex-legend .ui-art-fallback{width:28px;height:28px}
@media(max-width:800px){.resident-art{gap:6px}.art-row{gap:6px}}
/* Keep the primary command visible while expanded worker details scroll. */
body.builder-selected #builder-controls{max-height:min(38vh,340px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:5px}
body.builder-selected .unit-dock{max-height:calc(100dvh - var(--top) - 32px);box-sizing:border-box}
@media(max-height:760px){body.builder-selected #builder-controls{max-height:28vh}}
.production-meter{width:160px;display:flex;align-items:center;gap:9px;padding:10px;color:#f1dfb2;border:1px solid #bca26199;border-radius:12px;background:linear-gradient(145deg,#214349f5,#091e27fa);box-shadow:0 4px 24px #0008,inset 0 1px #fff1;text-align:left}
.production-meter[hidden]{display:none}.production-meter-panel{width:100%;margin:0 0 16px;box-sizing:border-box}
body.drawer-open #city-production-meter{display:none}
#city-production-meter{flex-direction:column;text-align:center;cursor:pointer}#city-production-meter:hover{border-color:#ffe0a2;background:#244349}
.production-orbit{position:relative;display:grid;place-items:center;width:64px;height:64px;flex:0 0 64px}.production-orbit svg{position:absolute;inset:0;width:64px;height:64px;transform:rotate(-90deg);overflow:visible}.production-orbit circle{fill:none;stroke-width:4}.orbit-track{stroke:#b4ba9b24}.orbit-fill{stroke:#eed18a;stroke-linecap:round;filter:drop-shadow(0 0 4px #d4b76a88);transition:stroke-dasharray .55s ease}.production-orbit b{font:24px Georgia,serif;color:#ffe9b6}
.production-meter-copy{display:block;min-width:0;width:100%}.production-meter-copy>*{display:block}.production-meter-copy strong{font:15px Georgia,serif;margin:4px 0;overflow-wrap:anywhere}.production-meter-copy small{font-size:9px;line-height:1.5;color:#afc7c4}.production-meter-copy em{font-style:normal;font-size:8px;letter-spacing:.06em;color:#ecd28f;margin-bottom:5px}.production-fill{height:5px;border-radius:5px;background:#020e16;margin-top:7px;overflow:hidden}.production-fill i{display:block;height:100%;background:linear-gradient(90deg,#658f82,#f2da93);box-shadow:0 0 9px #efcf87;transition:width .55s ease}
.tracker-icon{background:conic-gradient(from -90deg,#e4cb87 var(--research-fill,0%),#112c34 0);box-shadow:inset 0 0 0 3px #112c34}.tracker-card .progress{height:4px}.tracker-card .progress i{box-shadow:0 0 7px currentColor;transition:width .55s ease}
.parcel-art-legend{display:flex;flex-wrap:wrap;gap:6px;font-size:10px}.parcel-art-legend span{display:inline-flex;align-items:center}.parcel-art-legend .ui-art,.parcel-art-legend .ui-art img{width:28px;height:28px;flex-basis:28px}
.hex-plan .parcel-footprint polygon{fill:#598d7280;stroke:#ffe0a0;stroke-width:3;filter:drop-shadow(0 0 4px #edcc7a99)}
.map-tooltip.is-pinned{pointer-events:auto;z-index:45;border-color:#edca81;max-height:calc(100vh - 120px);overflow:auto;box-shadow:0 10px 35px #0009;padding-top:30px}
.tooltip-close{position:absolute;right:5px;top:5px;width:26px;height:26px;padding:0;font-size:20px}.tooltip-pinned-label{color:#e8ce91!important;letter-spacing:.1em}
.yield-symbol{display:inline-grid;place-items:center;width:28px;height:28px;flex:0 0 28px;vertical-align:middle}.yield-symbol>*{grid-area:1/1}.yield-symbol.art-loaded>svg{visibility:hidden}.yield-symbol>svg{width:24px;height:24px}.empire-yield>.yield-symbol{width:32px;height:32px;flex-basis:32px}.empire-yield>.yield-symbol img{width:32px;height:32px}
.yield-art{width:28px;height:28px;object-fit:contain;vertical-align:middle;flex-shrink:0}.empire-yield>.yield-art{width:32px;height:32px}.tracker-icon>.yield-art{width:26px;height:26px}.yield-chips .yield-art,.site-yields .yield-art,.tooltip-yields .yield-art{width:24px;height:24px}.site-yields span,.tooltip-yields span{display:inline-flex;align-items:center;gap:3px}
.site-benefits{margin:10px 0;padding:12px;border:1px solid #ccb26a80;border-radius:6px;background:linear-gradient(135deg,#2c4643,#10272d);line-height:1.5}.site-benefits>strong{display:block;font:18px Georgia,serif;color:#f1d59a;margin:5px 0}.site-benefits small{font-size:10px;color:#b6cac3}.site-benefits p{font-size:12px;margin:8px 0}.site-yields{display:flex;flex-wrap:wrap;gap:6px}.site-yields span{border:1px solid #a5ae7166;border-radius:4px;padding:3px 6px;color:#efdb9e;font-weight:bold}#map-tooltip:has(.site-benefits){width:290px}#map-tooltip .site-benefits{margin:0 0 10px}
@media(max-width:1100px),(max-height:760px){#city-production-meter{width:120px;padding:7px;gap:3px}#city-production-meter .production-orbit{width:48px;height:48px;flex-basis:48px}#city-production-meter .production-orbit svg{width:48px;height:48px}#city-production-meter .production-orbit b{font-size:21px}#city-production-meter .production-meter-copy strong{font-size:12px}}
@media(prefers-reduced-motion:reduce){.orbit-fill,.production-fill i,.tracker-card .progress i{transition:none}}
/* Larger, consistent illustrated symbols and readable labels. */
.yield-symbol{width:32px;height:32px;flex-basis:32px}.yield-symbol .yield-art{width:32px;height:32px}
.empire-yield>.yield-symbol{width:38px;height:38px;flex-basis:38px}.empire-yield>.yield-symbol img{width:38px;height:38px}
.tracker-icon .yield-symbol,.tracker-icon .yield-art{width:32px;height:32px}.tracker-card strong{font-size:16px}.tracker-card em{font-size:12px}
.site-benefits small{font-size:12px}.site-benefits p{font-size:13px}.site-benefits>strong{font-size:20px}.site-yields{font-size:13px}
.map-tooltip{font-size:13px}.map-tooltip small{font-size:12px}.map-tooltip strong{font-size:20px}
.production-option strong{font-size:14px}.production-option small{font-size:12px;line-height:1.5}
#city-title{font-size:18px}.hex-heading h2{font-size:24px}
@media(max-width:1100px){.empire-yield>.yield-symbol,.empire-yield>.yield-symbol img{width:28px;height:28px;flex-basis:28px}.empire-yield{gap:4px}.tracker-card strong{font-size:15px}}
@media(max-width:800px){.empire-yield small{font-size:9px}.production-option strong{font-size:13px}.production-option small{font-size:11px}}
