#languageSwitcher{display:flex;align-items:center;gap:5px;box-sizing:border-box;width:132px;min-height:42px;padding:4px 6px;background:#153b50ed;color:#fff;border:1px solid #b6d6e155;border-radius:12px;box-shadow:0 5px 16px #0019}
#languageSwitcher select{width:100%;min-width:0;min-height:32px;border:0;padding:4px 0;background:transparent;color:inherit;font:600 12px system-ui;cursor:pointer}#languageSwitcher option{background:#133849;color:#fff}#languageSwitcher select:focus-visible{outline:2px solid #8bdfc4;border-radius:4px}
#languageNotice{position:fixed;inset-inline-start:50%;bottom:110px;transform:translateX(-50%);z-index:2147483200;max-width:calc(100vw - 40px);padding:12px 18px;background:#123c4b;color:#fff;border:1px solid #8abbb3;border-radius:12px;font:14px/1.5 system-ui;box-shadow:0 8px 30px #0018}
[dir=rtl] .layout{direction:rtl}[dir=rtl] .mapwrap{direction:ltr}[dir=rtl] aside,[dir=rtl] .v4Panel,[dir=rtl] #card,[dir=rtl] #ownerAccessDialog,[dir=rtl] .v4Top{direction:rtl;text-align:start}
[dir=rtl] .v4Nav{direction:rtl}[dir=rtl] #username,[dir=rtl] #currentCityName,[dir=rtl] .regional-city-labels button{unicode-bidi:isolate}
[dir=rtl] .hud{direction:rtl;text-align:start}
@media(max-width:720px){#languageSwitcher{width:96px;min-height:44px}#languageSwitcher select{font-size:12px}}
@media(max-width:720px){.v4Nav{display:flex;gap:0}.v4Nav button{width:auto;flex:1 1 auto;min-width:0;justify-content:center;padding-inline:2px}.v4Nav button span{max-width:100%;min-height:2.3em;white-space:normal;overflow-wrap:normal;word-break:normal;hyphens:none;line-height:1.15;text-align:center}}
@media(max-width:720px){.city-view .earthControls{top:76px;display:grid;grid-template-columns:46px 46px;gap:4px;align-items:start}.city-view .earthControls button{width:42px!important;min-width:42px!important;height:42px}.city-view #earthNorth{order:0}.city-view #earthTilt{order:1}.city-view #earthPlus{order:2}.city-view #earthMinus{order:3}.city-view #touchCameraMode{order:4}.city-view #ownerAccessButton{order:5}.city-view #nearbyCities{order:6}.city-view #cityPanelToggle{order:7;font-size:0!important;padding:0!important}.city-view #cityPanelToggle::before{content:'☰';font-size:18px}.city-view #languageSwitcher{order:8;grid-column:1/-1;width:96px;min-height:44px}.city-view #languageSwitcher>span{display:none}}
@media(max-height:600px){.city-view .earthControls{top:76px;display:grid;grid-template-columns:repeat(4,42px) 96px;gap:4px;align-items:start}.city-view .earthControls button{width:42px!important;min-width:42px!important;height:38px}.city-view #earthNorth{order:0}.city-view #earthTilt{order:1}.city-view #earthPlus{order:2}.city-view #earthMinus{order:3}.city-view #touchCameraMode{order:4;display:block}.city-view #ownerAccessButton{order:5}.city-view #nearbyCities{order:6;font-size:0!important;padding:0!important}.city-view #nearbyCities::before{content:'🏙';font-size:18px}.city-view #cityPanelToggle{order:7;font-size:0!important;padding:0!important}.city-view #cityPanelToggle::before{content:'☰';font-size:18px}.city-view #languageSwitcher{order:8;grid-column:5;grid-row:1/span 2;width:96px;align-self:center;min-height:38px}.city-view #languageSwitcher select{min-height:28px}}

@media(max-height:600px){.city-view #languageSwitcher>span{display:none}}

/* Shared map and 3D control layout. */
@media(max-width:720px){body .earthControls{top:76px;display:grid;grid-template-columns:46px 46px;gap:4px;align-items:start}body .earthControls button{width:42px!important;min-width:42px!important;height:42px}body #earthNorth{order:0}body #earthTilt{order:1}body #earthPlus{order:2}body #earthMinus{order:3}body #touchCameraMode{order:4}body #ownerAccessButton{order:5}body #nearbyCities{order:6}body #cityPanelToggle{order:7;font-size:0!important;padding:0!important}body #cityPanelToggle::before{content:'☰';font-size:18px}body #languageSwitcher{order:8;grid-column:1/-1;width:96px;min-height:44px}body #languageSwitcher>span{display:none}}
@media(max-height:600px){body .earthControls{top:76px;display:grid;grid-template-columns:repeat(4,42px) 96px;gap:4px;align-items:start}body .earthControls button{width:42px!important;min-width:42px!important;height:38px}body #earthNorth{order:0}body #earthTilt{order:1}body #earthPlus{order:2}body #earthMinus{order:3}body #touchCameraMode{order:4}body #ownerAccessButton{order:5}body #nearbyCities{order:6;font-size:0!important;padding:0!important}body #nearbyCities::before{content:'🏙';font-size:18px}body #cityPanelToggle{order:7;font-size:0!important;padding:0!important}body #cityPanelToggle::before{content:'☰';font-size:18px}body #languageSwitcher{order:8;grid-column:5;grid-row:1/span 2;width:96px;align-self:center;min-height:38px}body #languageSwitcher select{min-height:28px}}

@media(max-height:600px){body #languageSwitcher>span{display:none}}

@media(max-width:720px){body #nearbyCities{font-size:0!important;padding:0!important}body #nearbyCities::before{content:"🏙";font-size:18px}}
/* Very narrow phones keep whole labels on two comfortable rows. */
@media(max-width:480px){.v4Nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px}.v4Nav button{width:100%;min-height:48px;padding:4px 2px}.v4Nav button span{font-size:10px;min-height:2.3em}.v4Panel{bottom:178px}.city-view .hud,.hud{bottom:174px}.city-view .squareAttribution{bottom:162px}}

/* Objective cards must keep readable text inside the light panel. */
.civicObjective{color:#f1f7f8}.civicObjective strong{color:inherit}
