/* Contextual controls share the existing teal / warm-gold HUD palette. */
/* Circular command seal: consistent aspect ratio, readable label, no clipped corners. */
.next-action-dock{width:160px;gap:10px}
#next-action{width:140px;height:140px;aspect-ratio:1;box-sizing:border-box;clip-path:none;border-radius:50%;border:2px solid #d5b877;background:radial-gradient(circle at 36% 24%,#40564e,#122e34 65%,#0a2028);box-shadow:0 0 0 4px #071e25,0 0 0 5px #9e875454,inset 0 0 0 6px #d3bb7912,0 10px 28px #0008;padding:20px 14px;gap:8px;transition:background .16s,box-shadow .16s}
#next-action:before{display:none}#next-action:hover:not(:disabled){background:radial-gradient(circle at 36% 24%,#607257,#23444a 70%);box-shadow:0 0 0 4px #071e25,0 0 0 6px #e9cf8899,inset 0 0 0 6px #e4ca8922,0 10px 28px #0008}
#next-action:active:not(:disabled){box-shadow:0 0 0 4px #071e25,0 0 0 5px #d7b56d,inset 0 4px 15px #0007}#next-action:focus-visible{outline:3px solid #f6e9be;outline-offset:7px}#next-action:disabled{opacity:.5;cursor:not-allowed}
#next-action svg{width:30px;height:30px;display:block}#next-action-label{font:600 11px/1.35 'Segoe UI',sans-serif;letter-spacing:.04em;max-width:108px;text-align:center;overflow-wrap:normal}#next-action .action-key{font:9px 'Segoe UI',sans-serif;letter-spacing:.1em;color:#acbcb1;border-top:1px solid #bba77055;padding-top:4px}
@media(max-height:760px),(max-width:1100px){.next-action-dock{width:130px}#next-action{width:116px;height:116px;padding:15px 10px;gap:5px}#next-action svg{width:26px;height:26px}#next-action-label{font-size:10px;max-width:93px}#next-action .action-key{font-size:8px}}
@media(max-width:800px){.next-action-dock{width:116px}#next-action{width:104px;height:104px;padding:12px 8px}#next-action-label{font-size:9px;max-width:86px}#next-action svg{width:24px;height:24px}}
#set-production{display:none!important}
#production-options{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:10px 0;max-height:300px;overflow:auto}
.city-management .production-option{margin:0;text-align:left;padding:10px;display:flex;flex-direction:column;gap:5px;font-size:12px;min-width:0;text-transform:none;letter-spacing:0}
.production-option small{color:#a9beb7;font-size:10px;line-height:1.45}.production-option[aria-pressed=true]{border-color:#e7c47d;background:#345448}.production-option:disabled{opacity:.5}
.production-hint,.context-note{font-size:11px;line-height:1.6;color:#a6bebb}.production-hint{padding:8px 0}.context-tags,.hex-legend{display:flex;flex-wrap:wrap;gap:6px;font-size:10px;color:#bfd3c4}.context-tags span,.hex-legend span{padding:5px 7px;background:#ffffff09;border:1px solid #a8bb8d22}
.hex-heading{display:flex;align-items:center;justify-content:space-between;margin:7px 0 12px}.hex-heading h2{font:22px Georgia,serif;margin:4px 0;color:#f1ddb4}.hex-heading small{font-size:9px;letter-spacing:.14em;color:#cdb77f}.hex-heading>svg{width:32px;height:32px;color:#d2b87d}
.hex-plan{display:block;width:100%;max-height:290px;background:radial-gradient(ellipse,#34544755,transparent 72%)}.hex-parcel{cursor:pointer;outline:none}.hex-parcel polygon{fill:#28433d;stroke:#b0aa7477;stroke-width:1.3}.hex-parcel.vegetated polygon{fill:#3d5840}.hex-parcel.cleared polygon{fill:#756449}.hex-parcel:hover polygon,.hex-parcel:focus-visible polygon{fill:#65795a;stroke:#fff0b3;stroke-width:2.5}.hex-parcel[aria-pressed=true] polygon{fill:#7d7448;stroke:#f0d58d;stroke-width:2.5}.hex-center polygon{fill:#234754}.hex-plan text{fill:#ede3c5;font:10px 'Segoe UI',sans-serif;text-anchor:middle;pointer-events:none}.hex-plan .hex-direction{fill:#a8beb5;font-size:11px}.hex-plan .hex-center-small{font-size:6px;letter-spacing:.8px}.hex-river{stroke:#67cee4;stroke-width:4;fill:none;pointer-events:none}.hex-cliff{stroke:#e9c397;stroke-width:2;stroke-dasharray:4 3;fill:none;pointer-events:none}
#hex-parcel-detail{padding:12px;background:#071e24;border-left:2px solid #d7b477;min-height:96px}#hex-parcel-detail strong{font-size:13px;color:#eddbaf}#hex-parcel-detail p,#hex-parcel-detail small{font-size:11px;line-height:1.6;color:#bdd0c5;margin:6px 0 0}.hex-legend{margin:10px 0}.hex-legend .river{color:#67cee4}.hex-facts p{display:flex;justify-content:space-between;gap:16px;font-size:11px;line-height:1.5}.hex-facts b{font-weight:400;color:#9db8b0}.culture-compact{margin:14px 0;padding:12px;border:1px solid #ac93b34d;background:#32294344}.culture-compact strong,.culture-compact small{display:block;margin-bottom:7px}.culture-compact small{font-size:11px;color:#bdb2d2}.culture-compact button{width:100%}
.context-dialog{width:min(1020px,94vw);max-height:90vh;box-sizing:border-box;padding:24px;border:1px solid #b79c60;background:#102b31;color:#eee1c3;box-shadow:0 24px 100px #000a}.context-dialog::backdrop{background:#020e15bb}.context-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.context-dialog header small{letter-spacing:.16em;color:#c8b27c;font-size:10px}.context-dialog h2{font:28px Georgia,serif;margin:8px 0 18px}.context-dialog button{cursor:pointer;background:#263e43;border:1px solid #af925e;color:#eddfb9;padding:8px 12px}.context-dialog button:disabled{opacity:.5;cursor:default}.culture-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:18px}.culture-toolbar label{font-size:11px;color:#c9b581}.culture-toolbar input,.culture-toolbar select{display:block;width:100%;box-sizing:border-box;margin:7px 0;padding:10px;color:#e8e1ca;background:#092127;border:1px solid #6c8178}.culture-current{display:grid;grid-template-columns:1fr 1fr;gap:16px}.culture-catalogue{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.culture-catalogue article{padding:16px;background:#18353a;border:1px solid #68796866;display:flex;flex-direction:column;align-items:start}.culture-catalogue article[hidden]{display:none}.culture-catalogue h4{font:20px Georgia,serif;margin:8px 0}.culture-catalogue p{font-size:11px;line-height:1.5}.culture-catalogue small{font-size:9px;color:#bca7cb}.culture-catalogue strong{font-size:12px;color:#c4d9ac}.culture-catalogue button{margin-top:auto}
.tree-icon-popup{position:fixed;z-index:10;width:265px;box-sizing:border-box;padding:14px;color:#ebdfc3;background:#102d34;border:1px solid #c7a869;box-shadow:0 12px 40px #000b;pointer-events:none;text-align:left;font:12px/1.6 'Segoe UI',sans-serif}.tree-icon-popup strong{display:block;color:#f0d797;font:17px Georgia,serif;margin-bottom:7px}.tree-icon-popup small{display:block;color:#b1c6c0}.tree-unlocks [data-unlock-index]{cursor:help}.tree-unlocks [data-unlock-index]:focus-visible{outline:2px solid #f0d797;outline-offset:2px}.tree-sidebar .tree-unlock-list,.tree-sidebar h4:has(+.tree-unlock-list){display:none}
.tree-icon-popup{max-height:min(440px,70vh);overflow:auto;pointer-events:auto}.tree-icon-popup p{margin:6px 0}.tree-icon-popup strong:not(:first-child){margin-top:14px;padding-top:10px;border-top:1px solid #667d6c66}
@media(max-width:800px){.context-dialog{padding:16px}.culture-current,.culture-catalogue{grid-template-columns:1fr}.culture-toolbar{grid-template-columns:1fr}.hex-plan{max-height:225px}}
#open-map-size{font:inherit;color:#e8c98b;border:1px solid #b89a5755;border-radius:3px;padding:5px 7px;white-space:nowrap}#open-map-size:hover{background:#36514e}#setup-map-size{width:100%;font-size:12px}
#hex-inspector .parcel-occupied polygon{fill:#71623d;stroke:#e6c783}
