/* World map occupies the app viewport; controls float above the map. */
#up-panel[data-page=world]{inset:0!important;max-width:none;max-height:none;width:100%;height:100dvh;margin:0;border:0;border-radius:0;display:block;overflow:hidden}
#up-panel[data-page=world]>header,#up-panel[data-page=world]>nav,#up-panel[data-page=world]>#up-status{display:none}
#up-panel[data-page=world] #up-body{position:relative;inset:0;height:100%;width:100%;padding:0;display:block;overflow:hidden}
.world-full-layout{position:absolute;inset:0;display:block;overflow:hidden;background:var(--sky-surface)}
#world-map{position:absolute;inset:0;width:100%;height:100%;background:var(--sky-surface)}
.world-topbar{position:absolute;z-index:3;top:max(10px,env(safe-area-inset-top));inset-inline:12px;display:flex;gap:8px;align-items:stretch;pointer-events:none}
#up-panel .world-topbar>button{height:48px;width:44px;flex:none;font:24px system-ui;padding:0;background:var(--up-bg);color:var(--up-text);border-color:var(--up-line);border-radius:12px;box-shadow:0 4px 20px #0004;pointer-events:auto}
.world-search-box{flex:1;min-width:0;max-width:440px;display:flex!important;flex-direction:column;justify-content:center;padding:6px 12px!important;border:1px solid var(--up-line);border-radius:12px;background:var(--up-bg);color:var(--up-text);box-shadow:0 4px 20px #0004;pointer-events:auto}
.world-brand{font:700 10px/1.2 'Barlow Condensed',sans-serif;letter-spacing:1.8px;color:var(--seasonal-orange,var(--up-accent));margin-bottom:2px}
#up-panel #world-search{width:100%;min-width:0;min-height:23px;padding:0;border:0;background:transparent;font-size:12px;line-height:1.4;border-radius:0;box-shadow:none}
#up-panel #world-search:focus{outline-offset:2px}
#world-status{position:absolute;top:70px;left:14px;max-width:calc(100% - 100px);padding:5px 8px;border-radius:6px;background:var(--up-bg);color:var(--up-text);box-shadow:0 2px 12px #0003;font-size:10px!important;line-height:1.5!important;pointer-events:none;margin:0!important;z-index:2}
#world-map-notice{position:absolute;top:111px;left:14px;max-width:calc(100% - 80px);padding:8px;background:var(--up-bg);border:1px solid var(--up-line);border-radius:6px;font-size:11px!important;z-index:3}
.world-dock{position:absolute;z-index:4;bottom:max(25px,calc(env(safe-area-inset-bottom) + 18px));left:50%;transform:translateX(-50%);display:flex!important;gap:3px;width:min(490px,calc(100% - 24px));padding:7px!important;border:1px solid var(--up-line);border-radius:18px;background:var(--up-bg);box-shadow:0 6px 30px #0005}
#up-panel .world-dock button{flex:1;min-width:0;min-height:54px;border:0;background:transparent;padding:3px!important;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font:24px/1 system-ui;color:var(--up-text)}
#up-panel .world-dock button span{font:10px/1.4 'IBM Plex Mono',monospace;white-space:nowrap}
#up-panel .world-dock button[aria-pressed=true]{background:var(--up-surface);color:var(--seasonal-orange,var(--up-accent))}
.world-credit{position:absolute;bottom:102px;left:10px;z-index:2;font-size:9px!important;line-height:1.5!important;margin:0!important;padding:1px 5px;background:var(--sky-panel);color:var(--sky-text);max-width:calc(100% - 70px);border-radius:3px}
.world-credit a{color:inherit}
.world-sheet,.world-flight-preview{position:absolute;z-index:5;left:12px;bottom:110px;width:min(390px,calc(100% - 24px));max-height:calc(100% - 240px);overflow:auto;overscroll-behavior:contain;padding:16px;border:1px solid var(--up-line);border-radius:16px;background:var(--up-bg);color:var(--up-text);box-shadow:0 8px 35px #0005;scrollbar-width:thin}
.world-sheet[hidden]{display:none!important}.world-sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.world-sheet-heading h3{margin:0!important;font-size:18px!important}
#up-panel .world-sheet-heading button{padding:0;min-height:36px;min-width:36px;font-size:23px;line-height:1}
#up-panel .world-sheet label:not(.world-check){display:flex;flex-direction:column;gap:7px;min-width:0}
.world-check{display:flex;gap:12px;align-items:center;margin:12px 0}.world-check input{width:20px;height:20px;min-height:20px!important;padding:0!important;accent-color:var(--up-accent)}
.world-altitude-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.world-altitude-fields input{width:100%;min-width:0}.world-sheet-small{font-size:11px!important;color:var(--up-muted)}
#world-plane-list{display:flex;flex-direction:column;gap:7px}#world-plane-list button{text-align:left;font-size:11px!important;overflow-wrap:anywhere}
.world-flight-preview:empty{display:none}.world-flight-preview{width:min(360px,calc(100% - 24px));padding-right:45px}#world-selected h2{font-size:25px!important;margin-bottom:6px!important}#world-selected p{font-size:11px!important;margin:4px 0!important}#world-selected small{display:block;font-size:10px;line-height:1.5;margin:8px 0;color:var(--up-muted)}
#world-selected .world-preview-close{position:absolute;top:9px;right:9px;min-width:30px;min-height:30px;padding:0;font-size:22px}
.world-user-dot{width:16px;height:16px;border-radius:50%;background:#2389f2;border:3px solid #fff;box-shadow:0 0 0 6px #2389f238,0 2px 8px #0009;pointer-events:none}
#world-map .maplibregl-ctrl-top-right{top:128px;right:5px}#world-map .maplibregl-ctrl-group{background:#f4f7fa}
#up-panel #world-map .maplibregl-ctrl-group button{min-height:36px;min-width:36px;padding:0;border:0;background:#f4f7fa;color:#172638}
#world-map .maplibregl-ctrl-attrib{font:9px Arial,sans-serif;color:#172638}#world-map .maplibregl-ctrl-attrib a{color:#172638}
.world-rank{display:grid;grid-template-columns:45px minmax(0,1fr) auto;align-items:center;gap:16px;padding:17px 0;border-bottom:1px solid var(--up-line)}.world-rank-number{font-size:29px;color:var(--up-accent)}.world-rank small{display:block}.world-rank h3{margin:0!important}.world-rank p{margin:4px 0!important}.world-top{justify-content:space-between}.world-top>div{flex:1}.world-follow-note{margin:12px 0;padding:12px;border:1px solid var(--up-line);font:12px monospace;color:var(--up-text)}
#root .sky-quick-actions{flex-wrap:wrap}.sky-auto-location input{width:18px;height:18px;accent-color:rgb(var(--accent-rgb))}
@media(max-width:700px){.world-topbar{inset-inline:8px;gap:5px}#up-panel .world-topbar>button{width:38px;min-width:38px;min-height:46px}.world-search-box{padding:6px 9px!important}#up-panel #world-search{font-size:11px}.world-brand{font-size:9px}#world-status{left:9px;font-size:9px!important}.world-sheet,.world-flight-preview{bottom:108px;left:10px;width:calc(100% - 20px);max-height:48dvh;padding:14px}.world-rank{grid-template-columns:30px minmax(0,1fr);gap:10px}.world-rank>button{grid-column:2;justify-self:start}.world-rank-number{font-size:23px}.world-top>div{flex-basis:100%}.world-dock{width:calc(100% - 16px);gap:1px}.world-dock button span{font-size:9px!important}#root .sky-workspace-header{flex-wrap:wrap}#root .sky-quick-actions{width:100%;gap:6px}#root .sky-quick-actions button{flex:1;font-size:10px;padding:10px 8px}}

.world-dock svg{width:23px;height:23px;flex:none}.world-topbar svg{width:22px;height:22px;margin:auto}

/* Selected flight history and credited aircraft photo stay inside a scrollable map card. */
#world-selected{padding-right:16px;overflow-wrap:anywhere}#world-selected h2,#world-selected .world-plane-type{padding-right:34px}
#world-selected .world-flight-actions{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}#world-selected .world-flight-actions button{flex:1;font-size:11px;min-height:38px;padding:8px}
.world-history{border-top:1px solid var(--up-line);padding-top:10px;margin-top:10px}#world-selected .world-history h3{font:600 16px/1.4 'Barlow Condensed',sans-serif;text-transform:uppercase;letter-spacing:1px;margin:0 0 7px}
.world-trail-legend{display:flex;gap:5px;flex-wrap:wrap;margin:8px 0}.world-trail-legend span{border-top:3px solid;padding-top:3px;font-size:9px;color:var(--up-text)}
.world-aircraft-photo{margin:12px 0 0;border-top:1px solid var(--up-line);padding-top:10px}.world-aircraft-photo img{display:block;width:100%;height:145px;object-fit:cover;border-radius:7px;background:var(--up-surface)}.world-aircraft-photo figcaption{font-size:10px;line-height:1.6;color:var(--up-muted);margin-top:5px}.world-aircraft-photo figcaption span,.world-aircraft-photo figcaption a{display:block}.world-aircraft-photo a{color:var(--up-text)}
@media(max-width:700px){.world-aircraft-photo img{height:125px}}

#world-selected:has(.world-history-status[data-status=simulated]) .world-aircraft-photo img{object-fit:contain;background:linear-gradient(140deg,#28143b,#13121d)}
@media(max-width:700px){}@media(max-width:700px){}

/* Compact flight preview keeps the map and trail status visible. */
#world-selected{width:min(350px,calc(100% - 24px));padding:10px;max-height:min(260px,34dvh)}
#world-selected[data-expanded=true]{max-height:min(520px,62dvh)}
#world-selected .world-preview-summary{display:grid;grid-template-columns:minmax(0,1fr) 72px;gap:10px;align-items:start}
#world-selected h2{font-size:21px!important;line-height:1.1;margin:0 0 4px!important;padding-right:0}
#world-selected .world-plane-type{padding-right:0;font-size:10px!important}
#world-selected .world-plane-motion{font-size:10px!important;line-height:1.4}
#world-selected .world-aircraft-photo{margin:28px 0 0;padding:0;border:0;min-width:0}
#world-selected .world-aircraft-photo img{width:72px;height:46px;border-radius:4px}
#world-selected[data-expanded=false] .world-aircraft-photo figcaption,#world-selected[data-expanded=false] .world-plane-time,#world-selected[data-expanded=false] .world-history{display:none}
#world-selected .world-history-status{font-size:10px!important;line-height:1.4;margin:8px 0 0!important;color:var(--up-muted)}
#world-selected .world-flight-actions{display:grid;grid-template-columns:1fr 1fr auto;gap:5px;margin:8px 0 0}
#world-selected .world-flight-actions button{min-width:0;min-height:34px;padding:5px;font-size:10px;line-height:1.3}
#world-selected[data-expanded=true] .world-preview-summary{display:block}
#world-selected[data-expanded=true] .world-aircraft-photo{margin-top:8px}
#world-selected[data-expanded=true] .world-aircraft-photo img{width:100%;height:125px}
#world-selected .world-history{margin-top:8px;padding-top:8px}
#world-selected .world-history h3{font-size:14px}
@media(max-width:700px){#world-selected{bottom:104px;left:8px;width:calc(100% - 16px);max-height:min(210px,31dvh)}#world-selected[data-expanded=true]{max-height:60dvh}}

#world-selected[data-expanded=false] .world-history-status{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* Airports and flight timing remain visible without opening the full details. */
#world-selected{max-height:min(310px,40dvh)}
#world-selected .world-route-info{margin-top:7px;border-top:1px solid var(--up-line);padding-top:6px}
.world-route-airports,.world-route-times{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
#world-selected .world-route-info small{font-size:8px;line-height:1.25;margin:0;color:var(--up-muted)}
.world-route-airports>div,.world-route-times>div{min-width:0}
.world-route-airports strong{display:block;font:700 20px/1.05 'Barlow Condensed',sans-serif;letter-spacing:.8px}
.world-route-airports span{display:block;font-size:9px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.world-route-to{text-align:right;position:relative}.world-route-to::before{content:'→';position:absolute;left:-17px;top:9px;color:var(--up-muted);font:17px sans-serif}
.world-route-times{margin-top:6px}.world-route-times strong{display:block;font-size:10px;line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#world-selected .world-route-info .world-route-label{display:block;margin-top:4px;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.world-route-airport{pointer-events:none!important;display:flex;flex-direction:column;align-items:center;max-width:135px;border:1px solid #edbd65;border-radius:5px;padding:3px 6px;background:#1a1428ed;color:#fff1d7;box-shadow:0 2px 6px #0007;font:10px/1.3 'IBM Plex Mono',monospace}
.world-route-airport strong{font-weight:700;font-size:12px}.world-route-airport span{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}
@media(max-width:700px){#world-selected{max-height:min(285px,38dvh)}#world-selected[data-expanded=true]{max-height:60dvh}#world-selected .world-history-status{font-size:9px!important;-webkit-line-clamp:1}.world-route-airports strong{font-size:19px}}
#world-selected .world-flight-actions{grid-template-columns:1fr 1fr 1fr auto}
#world-selected .world-flight-actions button{font-size:9px}
#world-selected .world-follow-plane[aria-pressed=true]{background:var(--up-text);color:var(--up-bg)}
.world-replay-controls{padding:8px 0;border-block:1px solid var(--up-line);margin:8px 0}.world-replay-controls input{width:100%;accent-color:var(--up-accent)}
.world-replay-actions{display:flex;flex-wrap:wrap;gap:5px}.world-replay-actions button,.world-replay-actions select{flex:1;min-width:80px;font-size:10px!important}
#world-selected[data-replay=true] .world-history-status{color:#ffca6e}#world-selected .world-data-quality{font-size:10px!important}
.world-report-dialog{position:fixed;z-index:12000;inset:12% 12px auto;margin:auto;width:min(440px,calc(100% - 24px));max-height:78dvh;overflow:auto;padding:18px;border:1px solid var(--up-line,#666);border-radius:12px;background:var(--up-bg,#111);color:var(--up-text,#eee);box-shadow:0 0 0 100vmax #000a}
.world-report-dialog[hidden]{display:none}.world-report-dialog form{display:grid;gap:10px}.world-report-dialog input,.world-report-dialog textarea,.world-report-dialog select{width:100%;min-width:0;background:var(--up-surface,#181818);color:inherit;border:1px solid var(--up-line,#666);padding:8px}.world-report-dialog p{font-size:11px;line-height:1.5}.world-report-airports{display:grid;grid-template-columns:1fr 1fr;gap:10px}.world-report-airports label{font-size:10px}

#world-selected .world-route-airports>.ap-flight-airport,.sky-flight-airports>.ap-flight-airport{display:block;min-width:0;min-height:58px;text-align:left;font:inherit;color:inherit;background:transparent;border:1px solid transparent;border-radius:8px;padding:5px;margin:-6px;cursor:pointer}#world-selected .world-route-airports>.ap-flight-airport:last-child,.sky-flight-airports>.ap-flight-airport:last-child{text-align:right}#world-selected .world-route-airports>.ap-flight-airport:not(:disabled):hover,.sky-flight-airports>.ap-flight-airport:not(:disabled):hover{background:var(--sky-surface,#202020);border-color:var(--sky-border,#555)}#world-selected .world-route-airports>.ap-flight-airport:focus-visible,.sky-flight-airports>.ap-flight-airport:focus-visible{outline:2px solid var(--sky-accent,#2fd37a);outline-offset:2px}#world-selected .world-route-airports>.ap-flight-airport:disabled,.sky-flight-airports>.ap-flight-airport:disabled{cursor:default;opacity:1}.ap-flight-airport:not(:disabled)>span::after{content:" ⓘ";font-size:.85em;opacity:.8}
