#plot-builder{position:absolute;z-index:14;left:50%;bottom:16px;transform:translateX(-50%);width:min(620px,calc(100% - 24px));padding:10px 14px 12px;background:#102e46f5;color:#edfaff;border:1px solid #74e6cf90;border-radius:17px;box-shadow:0 12px 50px #00162160;backdrop-filter:blur(14px);box-sizing:border-box}
.plot-heading{display:flex;align-items:center;gap:8px;min-height:44px}.plot-heading>div{flex:1;min-width:0}.plot-heading b{font-size:16px;display:block}.plot-heading small{font-size:12px;color:#bed4e4;display:block;margin-top:3px}.plot-heading button{min-height:44px;padding:0 8px;color:#a5f7e1;background:none;border:0;font-size:13px;white-space:nowrap}#plot-cancel{font-size:26px;width:44px;padding:0;flex-shrink:0}
.plot-filters{display:flex;gap:8px;margin:6px 0}.plot-filters select,.plot-filters input{min-width:0;height:38px;font-family:inherit;font-size:16px;padding:5px 9px;color:#e3f6ff;border:1px solid #92bad64f;background:#1b3c55;border-radius:8px;box-sizing:border-box}.plot-filters select{width:46%}.plot-filters input{width:54%}.plot-filters input::placeholder{color:#acc5d7}
#plot-cards{display:flex;gap:7px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#78b3c8 transparent;padding:2px 1px 7px;min-height:79px;box-sizing:border-box}#plot-cards button{display:flex;align-items:center;gap:8px;flex:0 0 164px;padding:9px;text-align:left;scroll-snap-align:start;border:1px solid #8db2cc44;border-radius:9px;background:#1b3d55;color:#eefaff;min-height:70px;box-sizing:border-box}#plot-cards button[aria-pressed=true]{border-color:#74f0cc;background:#226355;box-shadow:inset 0 0 0 1px #74f0cc}#plot-cards b{font-size:14px;line-height:1.2;display:block}#plot-cards small{display:block;font-size:12px;color:#c0ddea;margin-top:5px}.plot-card-icon{color:#8ae9d9;flex:0 0 27px}.plot-card-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.plot-empty{font-size:14px;margin:15px 2px}
.plot-selection{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-top:5px;font-size:15px}.plot-selection b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.plot-selection span{font-weight:600;color:#83efd1;white-space:nowrap}#plot-status{font-size:13px;line-height:1.35;margin:4px 0 6px;color:#b7e5de;min-height:18px}.plot-actions{display:flex;align-items:center;gap:12px}.plot-actions>span{flex:1;font-size:13px;color:#b6cddb}#plot-confirm{min-height:44px;min-width:145px;border:0;border-radius:9px;background:#7af0cf;color:#082d35;font-size:16px;font-weight:700;padding:10px 20px}#plot-confirm:disabled{background:#496271;color:#d2dde1;cursor:not-allowed}#plot-builder[data-valid=false]{border-color:#f5bca0}#plot-builder[data-valid=false] #plot-status{color:#ffd1bb}
body.plot-building #side-panel,body.plot-building .build-tray,body.plot-building .rail,body.plot-building footer,body.plot-building #journey-cue,body.plot-building #city-mix,body.plot-building #mission-card,body.plot-building #mobile-coach,body.plot-building #map-tooltip,body.plot-building .map-caption,body.plot-building #park-return{display:none!important}body.plot-building .map-actions{bottom:auto;top:145px;left:12px;right:auto}body.plot-building .toast{bottom:320px}
@media(max-width:800px){#plot-builder{bottom:max(8px,env(safe-area-inset-bottom));width:calc(100% - 16px);padding:7px 10px 10px;border-radius:14px}.plot-heading small{font-size:12px;max-width:190px}.plot-heading button{font-size:12px;padding:0 4px}#plot-cancel{width:36px;font-size:24px}.plot-filters{margin:5px 0}.plot-selection{font-size:14px}#plot-status{font-size:12px}.plot-actions>span{font-size:12px}#plot-confirm{min-width:135px}body.plot-building #site-plan{display:none!important}body.plot-building .map-actions{top:125px}.plot-filters select{width:45%}.plot-filters input{width:55%}}
@media(max-height:500px){#plot-builder{left:auto;right:8px;bottom:8px;transform:none;width:340px;max-height:calc(100dvh - 95px);overflow-y:auto}.plot-heading small{display:none}}

/* Planning stays a small choice over the city, with readable light surfaces. */
#plot-builder{color:#102623;max-height:min(490px,58dvh);overflow-y:auto;overscroll-behavior:contain}
#plot-builder .plot-heading small,#plot-builder .plot-actions>span,#plot-builder #plot-status,#plot-builder #plot-upkeep,#plot-builder #plot-impact{color:#40544a}
#plot-builder .plot-heading button,#plot-builder #plot-browse{color:#2346d7}
#plot-builder #plot-cost{color:#2346d7}
#plot-builder #plot-cards button{background:#e6eadd;color:#102623;border-color:#10262326}
#plot-builder #plot-cards small{color:#40544a}
#plot-builder #plot-cards .plot-card-icon{color:#345d42}
#plot-builder #plot-cards button[aria-pressed=true]{background:#e3edff;border-color:#375bf4;box-shadow:inset 0 0 0 1px #375bf4}
#plot-builder #plot-confirm{background:#375bf4;color:white}
#plot-builder #plot-confirm:disabled{background:#d9ded5;color:#536153}
#plot-builder[data-valid=false] #plot-status{color:#963c23}
#plot-builder .plot-actions{position:sticky;bottom:-12px;background:#f4f2e9;padding:9px 0 3px}
.plot-site-choices{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:4px 0}
.plot-site-choices button{min-height:44px;background:#e8ebdf;border:1px solid #10262330;border-radius:7px;color:#102623;font-family:inherit;font-weight:600;font-size:13px;cursor:pointer}
.plot-site-choices button small{font-size:11px;font-weight:400;margin-left:6px}
.plot-site-choices button[aria-pressed=true]{background:#102623;color:#f4f2e9;border-color:#102623}
#plot-site-hint{font-size:12px;line-height:1.35;color:#40544a;margin:3px 0 8px}
#plot-planning-details{font-size:13px;line-height:1.55;margin:8px 0;color:#40544a}
#plot-planning-details b{color:#102623}#plot-planning-details p{margin:6px 0}
#plot-planning-details a{color:#2346d7;text-underline-offset:3px}
#plot-builder :is(button,a,summary,select,input):focus-visible{outline:3px solid #375bf4;outline-offset:2px}
@media(max-width:800px){#plot-builder{max-height:54dvh}.plot-site-choices button{font-size:12px}#plot-builder .plot-actions{bottom:-10px}}
@media(max-height:500px){#plot-builder{max-height:calc(100dvh - 95px)}}

/* Keep the spending decision visible before opening optional details. */
#plot-budget{font-size:12px;line-height:1.45;margin:5px 0;color:#2346a3;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#plot-budget[data-short=true]{color:#963c23}

/* Keep cancellation and compact-view controls available while choices scroll. */
#plot-builder .plot-heading{position:sticky;top:0;z-index:2;background:#f4f2e9;border-bottom:1px solid #10262318}

#plot-builder .plot-summary{flex:1;min-width:0}
#plot-builder .plot-summary #plot-budget{margin:0 0 4px}
#plot-builder .plot-summary #plot-facts{display:block;color:#40544a;font-size:12px;line-height:1.35}
#plot-builder #plot-cancel{min-width:44px}
