/* Calmer surfaces and clearer actions without changing the editor's layout. */
.export-settings .share-name{margin:8px 0!important}.export-settings select{display:block;width:100%;margin-top:7px;padding:10px 12px;min-height:44px;border:1px solid #c7d4bf;border-radius:8px;background:#fffef8;color:#244c3d;font:14px var(--sans)}.export-dialog button:not(.modal-x){border-radius:8px;min-height:44px}
.game-dialog.export-dialog{width:min(1060px,95vw)!important;max-width:1060px!important}.export-dialog #export-canvas{margin:14px 0;border-radius:10px;background:#e8eee7;box-shadow:0 5px 20px #173a3d12}.export-settings{display:grid;grid-template-columns:1fr 1fr;gap:14px}.export-dialog .share-primary-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.export-dialog .share-primary-actions button{margin:0!important;min-height:46px}.export-premium{padding:12px 0;border-top:1px solid #d3decc;border-bottom:1px solid #d3decc;margin:18px 0}.export-premium summary{cursor:pointer;color:#31583f;font-weight:600;min-height:30px}.export-premium p{font-size:12px!important}.export-dialog [role=status]{font-size:13px;line-height:1.5}.export-dialog .reddit-destination{margin-top:20px}@media(max-width:600px){.export-settings,.export-dialog .share-primary-actions{grid-template-columns:1fr}.game-dialog.export-dialog{padding:20px!important}.export-dialog h2{font-size:27px!important}}
.activity-launches .career-launch{grid-column:1/-1;flex-direction:row;gap:12px;min-height:40px;padding:7px!important;background:#eef1df}.career-summary{width:100%;padding:10px;border:1px solid #bac9a5;background:#f1f5e5;color:#244c3d;text-align:left;font-weight:600;min-height:42px;border-radius:8px}.career-panel{border:1px solid #cbd7c2;border-radius:12px;background:#f7f9f0;padding:15px;margin-bottom:14px}.career-panel h3{margin:6px 0 16px}.career-budget{display:flex;justify-content:space-between;gap:8px}.career-budget small,.career-budget strong{display:block}.career-budget small{font-size:9px;letter-spacing:.07em;color:#5c735f}.career-budget strong{font-size:17px;margin-top:5px}.career-panel meter{width:100%;height:15px;margin-top:10px}.career-panel p{font-size:12px;line-height:1.5}.career-panel .small-note{font-size:10px;color:#596c5c}.career-panel button{min-height:42px;padding:8px;border:1px solid #c3d0bc;border-radius:8px;background:#fffdf5;color:#284f3d}
.activity-launches{display:grid;grid-template-columns:1.15fr 1fr;gap:7px;margin:10px 0}.activity-launches .region-start-button{margin:0!important;padding:10px 6px!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:13px;min-height:54px}.activity-launches small{font-size:8px;letter-spacing:.07em;opacity:.8}
.topbar{box-shadow:0 2px 18px #12382d12}.topbar nav a{transition:background .16s,color .16s}.page:not(.play-page) p{line-height:1.7}.page .btn,.support-plans button,.support-plans article>a{border-radius:9px}.support-plans article,.signup-card{border-radius:14px}.section-intro{border-bottom-color:#d3ddd3}.about-grid article,.community-grid>div{border-color:#d3ddd3}.page a:focus-visible,.topbar a:focus-visible{outline:3px solid #c79e4e;outline-offset:4px}
.control-desk{border-radius:16px!important;box-shadow:0 12px 36px #173a3d18!important;border:1px solid #d5dfd9!important}
.desk-tabs{gap:4px;padding:7px!important;background:#edf1e9!important}.desk-tabs button{border-radius:9px!important;transition:background .15s,color .15s}.desk-tabs button[aria-selected=true]{background:#fffef9!important;color:#1e4b3d!important;box-shadow:0 2px 7px #173a3d0d}
.control-desk .region-start-button{border-radius:9px;line-height:1.35}.map-tools{border-radius:12px!important;box-shadow:0 4px 16px #173a3d12!important}.map-tools button{border-radius:7px}.game-dialog{border-radius:18px!important;box-shadow:0 24px 70px #132f3433}.game-dialog button:focus-visible,.control-desk button:focus-visible{outline:3px solid #cc9d42;outline-offset:3px}
.viewer-launch{display:flex;justify-content:space-between;align-items:center;gap:8px;background:#1f4c40!important;color:#fff!important;border:0!important}.viewer-launch small{font-size:10px;letter-spacing:.08em;font-weight:500;color:#d4e9c2}
.release-launch{font-size:12px!important;color:#41664e!important}.release-notes{display:grid;gap:12px}.release-notes section{padding:16px;background:#f0f4e9;border:1px solid #d5dfca;border-radius:12px}.release-notes h3{margin:0 0 8px;font-size:18px}.release-notes p{margin:0;font-size:14px;line-height:1.6}.release-notes button{margin-top:12px}
.viewer-train{pointer-events:none;z-index:3}.viewer-train .train-bullet{height:22px;display:grid;place-items:center;box-sizing:border-box;background:var(--train-color);color:var(--train-ink);font:700 11px/1 sans-serif;border:2px solid #fff;box-shadow:0 1px 5px #142d3050}
.finished-map-card canvas{max-height:300px;object-fit:contain}
.finished-map-actions button{border:1px solid #c5d5c4;border-radius:9px;background:#f6f8f0;color:#24483d;padding:10px 14px;cursor:pointer}.finished-map-actions button.modal-primary{background:#234d40;color:#fff;border-color:#234d40}.finished-map-actions button:disabled{opacity:.5;cursor:wait}.share-card-options{border:0;background:none;color:#41634c;text-decoration:underline;cursor:pointer;padding:8px 0}
.finished-map-card canvas,.upgrade-preview canvas{display:block;width:100%;height:auto;border-radius:10px;background:#e6ece6;border:1px solid #d6dfd1}.finished-map-card h2{font-size:24px!important;margin:0 0 8px!important}.finished-map-card p{line-height:1.45}.finished-map-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.finished-map-actions button{min-height:44px;margin:0!important}.finished-map-actions button:last-child{grid-column:1/-1}.finished-map-card .small-note{font-size:11px!important}.share-card-options{font-size:12px!important}.journey-invitation:has(.finished-map-card){width:min(420px,calc(100vw - 24px));max-height:85dvh;overflow:auto;padding:16px}.journey-invitation .finished-map-card canvas{max-height:210px;object-fit:contain}.optional-trial{margin:16px 0;padding:14px;border:1px solid #d6dfd1;border-radius:10px}.optional-trial summary{cursor:pointer;font-weight:600;line-height:1.5}.upgrade-preview{margin:18px 0}.upgrade-preview canvas{max-height:360px;object-fit:contain}@media(max-width:500px){.finished-map-actions{grid-template-columns:1fr}.journey-invitation:has(.finished-map-card){max-height:78dvh}.finished-map-card h2{font-size:21px!important}}
.game-dialog.viewer-dialog{width:min(1400px,96vw)!important;max-width:none!important;height:92dvh!important;max-height:96dvh!important;padding:0!important;overflow:hidden!important;background:#f7f9f3}.viewer-dialog .modal-x{display:none}.viewer-dialog #modal-content{height:100%;padding:0!important}.viewer-shell{height:100%;display:flex;flex-direction:column}.viewer-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px}.viewer-header h2{font-size:22px!important;margin:5px 0 0!important;letter-spacing:-.6px}.viewer-header button{flex-shrink:0;background:#214c40!important;color:#fff!important;border:0;border-radius:9px;padding:12px 15px;min-height:44px}.viewer-header .overline{font-size:10px;letter-spacing:.15em}
#viewer-map{flex:1;min-height:180px;position:relative;background:#e6ece6}.viewer-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 18px;border-top:1px solid #d6dfd6}.viewer-controls button,.viewer-controls select{min-height:42px;border:1px solid #ccd8cb;border-radius:8px;padding:8px 11px;background:#fffef8;color:#234b3f;font-size:12px!important;margin:0!important;width:auto!important}.viewer-controls button[aria-pressed=true]{background:#e5eedc}.viewer-controls label{display:flex!important;align-items:center;gap:8px;font-size:12px;margin:0 0 0 auto!important}.viewer-controls select{max-width:240px}#viewer-status,.viewer-note{margin:0!important;padding:0 20px 9px!important;line-height:1.4!important;font-size:12px!important;color:#466052}.viewer-note{font-size:10px!important;color:#617468;padding-bottom:12px!important}.viewer-shell .maplibregl-ctrl-attrib{font-size:10px!important}.viewer-shell .maplibregl-ctrl button{padding:0!important;margin:0!important}
@media(max-width:700px){.game-dialog.viewer-dialog{width:100vw!important;height:100dvh!important;max-height:100dvh!important;max-width:100vw!important;border-radius:0!important}.viewer-header{padding:12px}.viewer-header h2{font-size:17px!important}.viewer-header button{max-width:112px;padding:8px;font-size:12px!important}.viewer-controls{gap:6px;padding:8px 10px}.viewer-controls button{flex:1 1 42%;font-size:11px!important;min-height:40px}.viewer-controls label{width:100%;justify-content:space-between}.viewer-controls select{max-width:65%}#viewer-status,.viewer-note{padding-left:12px!important;padding-right:12px!important}.control-desk{border-radius:16px 16px 0 0!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.desk-tabs button,.topbar nav a{transition:none}}
.share-card-framing{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;font-size:13px}.share-card-framing select{max-width:75%;padding:10px;border:1px solid #c6d4c1;border-radius:8px;background:#fff;color:#23463b}
.playable-share{padding:12px 16px;border:1px solid #b8d3bf;border-radius:12px;background:#edf5eb;margin:0 0 18px}.playable-share p{margin:0 0 8px!important}.playable-share p:empty{display:none}.playable-share input{width:100%;box-sizing:border-box;font-size:14px!important}.playable-share button{min-height:44px}.playable-share [hidden]{display:none!important}
.building-active .build-prompt{gap:8px;flex-wrap:wrap;justify-content:flex-start;max-width:calc(100% - 404px)}.building-active .build-prompt>span{display:block;flex-basis:100%;text-align:left;border-radius:9px;line-height:1.45;max-width:480px}.build-prompt button:disabled{opacity:.45}.build-prompt #plot-undo{background:#fffef8;color:#205948;border:1px solid #b8cbb0;min-height:44px}
@media(max-width:1000px){.building-active .transit-game .build-prompt{left:12px;right:12px;max-width:none;bottom:calc(132px + env(safe-area-inset-bottom));top:auto}.building-active .build-prompt>span{font-size:11px;max-width:none;padding:7px 10px}.building-active .build-prompt button{min-height:44px}}
