@import "https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Cormorant+Garamond:wght@500;600;700&display=swap";:root{color:#253c46;font-synthesis:none;--ink:#233944;--muted:#586b70;--line:#d9ddd7;--paper:#f5f5ee;--gold:#d4b274;--ocean:#267897;--red:#b13c3b;background:#172b35;font-family:Barlow,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;background:0 0;border:0;justify-content:center;align-items:center;gap:8px;display:inline-flex}button:disabled{cursor:default;opacity:.4}button:not(:disabled):hover{filter:brightness(.94)}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,.board-svg:focus-visible{outline-offset:3px;outline:3px solid #be8b37}button,summary,input{touch-action:manipulation}h1,h2,h3,p{margin:0}a{color:inherit;text-decoration:none}svg{flex-shrink:0}button[aria-pressed=true]{font-weight:600}.app-shell{flex-direction:column;height:100dvh;min-height:480px;display:flex;overflow:hidden}.app-header{color:#f2ecdc;background:#172b35;border-bottom:1px solid #405059;flex-shrink:0;justify-content:space-between;align-items:center;gap:20px;height:86px;padding:0 28px;display:flex}.brand{align-items:center;gap:13px;min-width:240px;display:flex}.brand-mark{width:43px;height:43px;color:var(--gold);border:1px solid #a38c62;border-radius:50%;place-items:center;display:grid}.brand h1{letter-spacing:.4px;font-family:Cormorant Garamond,Georgia,serif;font-size:31px;font-weight:600;line-height:1}.brand-subtitle{letter-spacing:3.4px;color:#c1ad83;margin-top:8px;font-size:9px;display:block}.board-switch{border:1px solid #475860;border-radius:6px;padding:4px;display:flex}.board-switch button{color:#c3cfd0;border-radius:3px;gap:9px;height:36px;padding:0 17px;font-size:13px}.board-switch button.active{color:#172b35;background:#ded4bb}.header-actions{justify-content:flex-end;align-items:center;gap:18px;min-width:240px;display:flex}.sandbox-badge{letter-spacing:.6px;color:#cad1cc;align-items:center;gap:8px;font-size:11px;display:flex}.sandbox-badge:before{content:"";background:#c1a46a;border-radius:50%;width:6px;height:6px}.icon-button{border-radius:4px;width:36px;height:36px}.header-actions .icon-button{color:#b8c6c9}.workspace{flex:1;min-height:0;display:flex}.map-column{flex-direction:column;flex:1;min-width:0;display:flex}.board-toolbar{background:#eeefe8;border-bottom:1px solid #d3d8d2;flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;height:58px;padding:0 20px;display:flex}.tool-switch{gap:4px;display:flex}.tool-switch button{border-radius:3px;padding:9px 12px;font-size:12px}.tool-switch .active{background:var(--ink);color:#fff}.layer-controls{align-items:center;gap:12px;display:flex}.layer-controls button{color:#536661;border-bottom:2px solid #0000;min-height:34px;padding:4px 0;font-size:12px}.layer-controls button[aria-pressed=true]{color:var(--ink);border-color:#a28754}.board-stage{contain:layout paint;background:#1e647e;flex:1;min-height:0;position:relative;overflow:hidden}.board-stage:before{content:"";pointer-events:none;background:radial-gradient(at 45% 40%,#2c7d99,#1c5d76);position:absolute;inset:0}.board-svg{touch-action:none;cursor:grab;-webkit-user-select:none;user-select:none;width:100%;height:100%;display:block;position:relative;outline-offset:-4px!important}.board-svg:active{cursor:grabbing}.mode-draw .board-svg{cursor:crosshair}.map-caption{z-index:1;pointer-events:none;color:#eef2e5;text-shadow:0 1px 2px #1e647e;position:absolute;top:24px;left:26px}.map-caption>span{letter-spacing:2.5px;color:#c1d8db;font-size:9px}.map-caption h2{margin-top:5px;font-family:Cormorant Garamond,Georgia,serif;font-size:25px;font-weight:500;line-height:1.2}.map-controls{background:#f3f2e8;border:1px solid #b9c5bd;border-radius:4px;align-items:center;height:39px;display:flex;position:absolute;bottom:20px;left:22px;box-shadow:0 3px 12px #163b492a}.map-controls button{width:36px;height:36px}.map-controls button:last-child{border-left:1px solid #d5d8cc;width:42px;margin-left:4px}.zoom-value{font-variant-numeric:tabular-nums;text-align:center;min-width:44px;font-size:11px}.map-attribution{color:#c1dadd;letter-spacing:1px;pointer-events:none;align-items:center;gap:10px;font-size:9px;display:flex;position:absolute;bottom:30px;right:22px}.map-attribution span{opacity:.5}.terrain-plain{fill:#36281f;stroke:none}.terrain-port{fill:none;stroke:#31565c;stroke-linecap:round;stroke-linejoin:round}.terrain-sea{fill:none;stroke:#c9e4df;opacity:.45}.terrain-desert{fill:#d4a554;stroke:#8c773f;stroke-width:.75px}.terrain-forest{fill:#3f684e;stroke:none}.terrain-jungle{fill:#65874b;stroke:none}.terrain-jungle-detail{fill:none;stroke:#65874b;stroke-width:1.5px;stroke-linecap:round}.terrain-mountain{fill:#93745a;stroke:none}.terrain-alpine{fill:none;stroke:#58695f;stroke-width:1.3px;stroke-linejoin:round}.terrain-alpine-detail{fill:#58695f;stroke:none}.terrain-volcano{fill:#93745a;stroke:none}.terrain-volcano-detail{fill:#9f4939;stroke:none}.terrain-volcano-plume{fill:none;stroke:#9f4939;stroke-width:1.3px;stroke-linecap:round}.terrain-rock{fill:none;stroke:#62665d;stroke-width:1.2px;stroke-linejoin:round}.terrain-rock-background{fill:#cfcdbe;stroke:none}.map-art-underground .terrain-rock{stroke:#42463e;stroke-width:2.2px}.city-label{fill:#293f41;paint-order:stroke;stroke:#eee6d0;stroke-width:1.5px;stroke-linejoin:round;letter-spacing:.2px;font-family:Barlow,Segoe UI,sans-serif;font-weight:600}.major-label{stroke-width:1.8px;fill:#532f2c;font-family:Cormorant Garamond,Georgia,serif;font-weight:700}.region-label{letter-spacing:.3px;text-transform:uppercase;fill:#8d7756;opacity:.78;paint-order:stroke;stroke:#eee6d0;stroke-width:2px;font-family:Cormorant Garamond,Georgia,serif;font-weight:600}.entrance-label{fill:#5a542d;paint-order:stroke;stroke:#eee6d0;stroke-width:2px;font-family:Barlow,sans-serif;font-weight:600}.compass text{fill:#e5dbc4;font-family:Georgia,serif;font-size:15px}.hide-labels .city-label,.hide-labels .entrance-label{display:none}.selected-marker{filter:drop-shadow(0 1px 2px #193e4e88)}.board-status{color:#516968;background:#e9ede5;border-top:1px solid #d0d7ce;flex-shrink:0;align-items:center;gap:9px;height:39px;padding:0 20px;font-size:11px;display:flex}.board-status [role=status]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.status-dot{background:#708771;border-radius:50%;flex-shrink:0;width:5px;height:5px}.mobile-panel-toggle{display:none}.sidebar{background:var(--paper);border-left:1px solid var(--line);scrollbar-width:thin;scrollbar-color:#c7cdc3 transparent;flex-direction:column;flex-shrink:0;width:304px;min-height:0;display:flex;overflow:auto}.sidebar-heading{padding:26px 24px 20px}.eyebrow{letter-spacing:2.2px;color:#606952;font-size:9px;font-weight:600}.sidebar-heading h2{margin-top:7px;font-family:Cormorant Garamond,Georgia,serif;font-size:27px;font-weight:600;line-height:1.15}.search-panel{flex-direction:column;flex:1;min-height:175px;padding:0 20px;display:flex}.search-field{color:#7b8985;background:#fffefa;border:1px solid #d4d8cd;border-radius:4px;flex-shrink:0;align-items:center;gap:9px;height:40px;padding:0 10px;display:flex}.search-field input{min-width:0;color:var(--ink);outline-offset:5px;background:0 0;border:0;flex:1;font-size:12px}.search-field input::-webkit-search-cancel-button{display:none}.search-field button{padding:3px}.results-label{letter-spacing:1px;color:#596959;justify-content:space-between;padding:20px 2px 10px;font-size:9px;display:flex}.results-label span:last-child{letter-spacing:0}.city-list{scrollbar-width:thin;scrollbar-color:#cbd0c4 transparent;min-height:100px;max-height:360px;margin:0 -8px;overflow:auto}.city-result{text-align:left;border-radius:3px;justify-content:flex-start;gap:12px;width:100%;min-height:54px;padding:10px;display:flex}.city-result.selected{background:#e4e8db}.city-result:not(.selected):hover{background:#eaeee4}.city-result-text{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.city-result strong{font-size:12px;font-weight:600}.city-result small{color:#566a59;font-size:10px}.city-ref{color:#586b5b;font-size:10px}.city-symbol{background:var(--red);flex-shrink:0;width:8px;height:8px;margin:0 3px;display:block}.city-symbol.small{border-radius:50%}.city-symbol.major{clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);width:14px;height:13px;margin:0}.empty-state{color:var(--muted);padding:20px;font-size:13px;line-height:1.5}.location-card{background:#e8ebdf;border:1px solid #d9dece;border-radius:3px;margin:18px 20px 14px;padding:16px}.location-top{justify-content:space-between;align-items:center;display:flex}.location-top .eyebrow{letter-spacing:1.5px;font-size:8px}.location-ref{color:#5d684c;font-size:10px}.location-card h3{margin-top:8px;font-family:Cormorant Garamond,Georgia,serif;font-size:25px;font-weight:600}.location-description{color:#59644f;justify-content:space-between;margin-top:6px;font-size:11px;display:flex}.cargo-tags{flex-wrap:wrap;gap:5px;margin-top:14px;display:flex}.cargo-tags span{background:#f8f7ed;border:1px solid #d2d8c7;border-radius:3px;padding:4px 9px;font-size:10px}.portal-button{margin-top:14px;padding:0;font-size:11px;text-decoration:underline}.legend{border-top:1px solid #d4dace;margin:0 20px}.legend summary{cursor:pointer;justify-content:space-between;align-items:center;padding:16px 0;font-size:11px;font-weight:600;list-style:none;display:flex}.legend summary::-webkit-details-marker{display:none}.legend[open] summary svg{transform:rotate(180deg)}.legend-list{flex-direction:column;gap:8px;display:flex}.legend-list>div{align-items:center;gap:9px;font-size:11px;display:flex}.legend-symbol{text-align:center;color:#71805d;width:20px;font-size:16px}.legend-list strong{margin-left:auto;font-size:10px;font-weight:500}.legend p{color:var(--muted);margin:15px 0;font-size:10px;line-height:1.6}.sidebar-footer{border-top:1px solid var(--line);color:#586b5a;margin-top:auto;padding:16px 20px;font-size:10px}.sidebar-footer>div:first-child{align-items:center;gap:7px;display:flex}.save-indicator{background:#789679;border-radius:50%;width:5px;height:5px}.save-indicator.error{background:#b13c3b}.track-count{color:#65725d;margin-top:5px;margin-left:12px;font-size:9px;display:block}.saved-actions{gap:17px;margin-top:12px;display:flex}.saved-actions button{gap:5px;padding:0;font-size:10px}.app-footer{color:#9bafb4;letter-spacing:.8px;background:#172b35;flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;height:34px;padding:0 26px;font-size:9px;display:flex}.footer-slash{color:#aa9266;padding:0 9px}.app-footer>span:last-child{letter-spacing:0;color:#acb3a4}.route-panel{padding:0 20px}.field-label{justify-content:space-between;font-size:11px;font-weight:600;display:flex}.field-label span{color:var(--muted);font-weight:400}.color-options{justify-content:space-between;margin:13px 0 22px;display:flex}.color-options button{background:var(--track-color);color:#fff;border:3px solid var(--paper);border-radius:50%;width:29px;height:29px}.color-options button[aria-pressed=true]{outline:1px solid var(--track-color);outline-offset:2px}.route-summary{border-top:1px solid var(--line);border-bottom:1px solid var(--line);gap:24px;padding:18px 0;display:flex}.route-summary>div{flex-direction:column;gap:7px;display:flex}.route-summary span{color:var(--muted);font-size:10px}.route-summary strong{font-variant-numeric:tabular-nums;font-size:26px;font-weight:500}.route-summary small{color:var(--muted);font-size:11px;font-weight:400}.subtle{color:var(--muted);font-size:12px;line-height:1.55}.route-panel>.subtle{margin:18px 0}.primary-button{color:#f7f7ec;background:#274d52;border:1px solid #274d52;border-radius:3px;width:100%;min-height:40px;padding:10px 15px;font-size:12px;font-weight:500;display:flex}.inline-actions{align-items:center;gap:12px;margin-top:12px;display:flex}.inline-actions>button{padding:5px 0;font-size:10px}.estimate-note{border-top:1px solid var(--line);color:#7b7965;margin-top:16px;padding:14px 0 0;font-size:10px;line-height:1.5}.estimate-note strong{color:#696b54;margin-bottom:4px;font-weight:600;display:block}.help-dialog{background:var(--paper);color:var(--ink);border:1px solid #b9c5b3;border-radius:6px;width:min(480px,100vw - 32px);max-height:calc(100dvh - 40px);padding:28px;box-shadow:0 20px 80px #001c2850}.help-dialog::backdrop{background:#112831aa}.dialog-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.help-dialog h2{font-family:Cormorant Garamond,Georgia,serif;font-size:29px;font-weight:600}.help-dialog p{margin:14px 0;font-size:13px;line-height:1.6}.help-dialog dl{font-size:12px;line-height:1.5}.help-dialog dt{margin-top:14px;font-weight:600}.help-dialog dd{color:var(--muted);margin:4px 0}.help-dialog .primary-button{margin-top:20px}.help-dialog .inline-actions .primary-button{width:auto;margin:0;padding:10px 15px}@media (min-width:1600px){.sidebar{width:330px}.sidebar-heading{padding-top:30px}.city-list{max-height:480px}.app-header{height:90px}}@media (max-width:1050px){.app-header{padding:0 20px}.brand,.header-actions{min-width:0}.sidebar{width:270px}.header-actions{gap:8px}.sandbox-badge{display:none}.board-toolbar{padding:0 12px}.layer-controls{gap:10px}.tool-switch button{padding:8px}.layer-controls button{font-size:11px}.map-attribution{letter-spacing:0;font-size:8px;right:12px}.map-caption{top:18px;left:18px}.map-caption h2{font-size:21px}}@media (max-width:760px){.app-header{grid-template-rows:60px 50px;grid-template-columns:1fr auto;gap:0;height:118px;padding:0 16px;display:grid}.brand h1{font-size:27px}.brand-mark{width:35px;height:35px}.brand-mark svg{width:22px}.brand-subtitle{letter-spacing:2.5px;margin-top:5px;font-size:8px}.board-switch{grid-area:2/1/auto/3;justify-self:center}.board-switch button{height:30px;padding:0 20px;font-size:12px}.header-actions{grid-area:1/2}.workspace{position:relative}.sidebar{display:none}.sidebar.open{z-index:5;width:min(320px,100%);display:flex;position:absolute;top:0;bottom:39px;right:0;box-shadow:-12px 0 28px #123f5633}.sidebar-heading{padding:18px 20px 15px}.sidebar-heading h2{font-size:24px}.search-panel{min-height:140px}.city-list{max-height:240px}.location-card{margin-top:14px}.mobile-panel-toggle{white-space:nowrap;color:#234a50;flex-shrink:0;margin-left:auto;padding:5px 0;font-size:11px;font-weight:600;display:flex}.board-status{gap:6px;padding:0 12px}.board-status [role=status]{font-size:10px}.status-dot{display:none}.board-toolbar{gap:6px;height:50px;padding:0 10px}.tool-switch button{gap:5px;padding:8px;font-size:11px}.layer-controls{gap:9px}.layer-controls button{font-size:10px}.layer-controls button:last-child span{display:none}.layer-controls button:last-child{width:25px}.map-caption{top:16px;left:16px}.map-caption>span{font-size:8px}.map-caption h2{font-size:21px}.map-controls{height:35px;bottom:14px;left:12px}.map-controls button{width:30px;height:32px}.map-controls button:last-child{width:34px}.zoom-value{min-width:35px;font-size:10px}.map-attribution{flex-direction:column;align-items:flex-end;gap:2px;font-size:7px;bottom:18px}.map-attribution span{display:none}.app-footer{letter-spacing:0;height:27px;padding:0 12px;font-size:8px}.app-footer>span:first-child{font-size:0}.app-footer>span:first-child:before{content:"IRON DRAGON";letter-spacing:1.2px;font-size:8px}.footer-slash{display:none}.help-dialog{padding:22px}.app-shell{min-height:420px}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}.artwork-plane{transform-origin:0 0;will-change:transform;pointer-events:none;visibility:hidden;position:absolute;top:0;left:0}.atlas-texture{width:100%;max-width:none;height:100%;display:block}.source-plane{pointer-events:none;position:absolute;inset:0;overflow:hidden}.cargo-symbol{vertical-align:middle;object-fit:contain;flex:none;display:inline-block}.game-city-list .cargo-symbol,.source-goods .cargo-symbol{width:16px;height:16px}.layout-pane .cargo-symbol{filter:brightness(0)invert(.93)}.source-goods{text-align:left;color:var(--muted);display:block}
