/* The world fills the screen; tools open only when requested. */
body.living-world #app{height:100dvh;min-height:0;position:relative;overflow:hidden}
body.living-world main{position:absolute;inset:0;display:block}
body.living-world .world{position:absolute;inset:0}
body.living-world header{position:absolute;z-index:6;left:16px;right:16px;top:12px;height:62px;padding:0 18px;border:1px solid #d6eeee22;background:#0b202ee8;backdrop-filter:blur(16px);border-radius:13px;box-shadow:0 10px 24px #05172018}
body.living-world .brand{font-size:17px}body.living-world .brand small{font-size:8px}
body.living-world .city-name{display:none}body.living-world .headline-stats{margin-left:auto;gap:28px}
body.living-world .headline-stats strong{font-size:20px}
body.living-world .rail{position:absolute;z-index:7;bottom:67px;left:50%;transform:translateX(-50%);width:auto;height:62px;display:flex;flex-direction:row;gap:4px;padding:5px 8px;border:1px solid #d6eeee22;border-radius:14px;background:#102432ef;box-shadow:0 10px 35px #07152530;backdrop-filter:blur(16px)}
body.living-world .rail-btn{width:64px;height:50px;min-height:0;padding:4px;border-radius:8px;gap:3px;margin:0!important}body.living-world .rail-btn span{font-size:21px;line-height:22px}body.living-world .rail-btn small{font-size:10px}body.living-world .rail-spacer{display:none}
body.living-world footer{position:absolute;z-index:6;bottom:12px;left:16px;right:16px;height:42px;border:1px solid #d6eeee22;border-radius:10px;background:#102432ed;padding:0 14px}body.living-world #next-month{background:#92e8c7;color:#102e2a;padding:9px 13px;border-radius:6px;font-weight:650}body.living-world #next-month span{margin-left:8px}
body.living-world .world-top,body.living-world .weather-control,body.living-world .future-controls,body.living-world #mission-card,body.living-world .map-caption,body.living-world #mobile-coach{display:none!important}
body.living-world #side-panel{display:none;position:absolute;z-index:8;right:16px;top:85px;bottom:143px;width:310px;max-height:none;padding:20px;border:1px solid #d6eeee25;border-radius:13px;background:#102432f5;box-shadow:0 15px 50px #0004}
body.living-world.panel-open #side-panel{display:block}
body.living-world .panel-close{display:block;position:static;margin:0 0 18px auto;padding:6px;color:#9edac8}
body.living-world .build-tray{display:none;bottom:141px;left:16px;right:342px;z-index:7;max-height:48vh;overflow:auto;padding:14px;background:#102432f5}
body.living-world.build-open .build-tray{display:block}body.living-world .build-items{grid-template-columns:repeat(7,minmax(60px,1fr))}body.living-world .build-item{min-height:70px}
body.living-world #close-build-tray{margin-left:12px;white-space:nowrap}
body.living-world .map-actions{bottom:148px;right:18px;z-index:5}body.living-world .map-actions button{width:40px;height:40px}
body.living-world #site-plan{top:88px;right:18px;width:142px;z-index:5}body.living-world #plan-body{display:none}body.living-world #plan-toggle{min-height:38px}
body.living-world #focus-caption{top:88px;left:18px;max-width:280px;background:#102432e8}body.living-world .toast{bottom:147px;z-index:12}
body.living-world #park-return{bottom:144px;left:18px;right:auto}body.living-world #layer-legend{top:135px;right:18px}
#living-panel{position:absolute;z-index:9;top:88px;left:18px;bottom:144px;width:min(365px,calc(100% - 36px));background:#102432f5;border:1px solid #d6eeee25;border-radius:14px;padding:23px;overflow:auto;box-shadow:0 20px 60px #00141f55;scrollbar-width:thin;backdrop-filter:blur(14px)}
#living-panel h2{font-family:'Space Grotesk',sans-serif;font-size:24px;font-weight:500;line-height:1.2;margin:10px 0 16px}#living-panel h3{font-size:13px;color:#d6e8e9;margin:22px 0 10px}#living-panel p{font-size:13px;color:#a9bdc9;line-height:1.65}#living-panel .eyebrow{color:#92d6bf;font-size:9px}
.living-close{position:absolute;right:12px;top:9px;font-size:24px;width:34px;height:34px;color:#bbd1d8}
.living-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.living-grid button,.living-pills button,.friend-actions button{border:1px solid #d7eded20;border-radius:7px;background:#ffffff05;padding:12px;text-align:left;font-size:12px;line-height:1.5}.living-grid small{display:block;color:#809eac;font-size:10px;margin-top:5px}.living-grid button:hover,.living-pills button:hover,.neighbour-list button:hover{background:#8ae6c615}
.living-pills{display:flex;flex-wrap:wrap;gap:7px}.living-pills button{padding:9px 11px}#living-panel select,#living-panel input{font:inherit;color:#def0ee;width:100%;padding:12px;background:#1b3646;border:1px solid #c4e4de32;border-radius:7px;min-height:44px}
#living-panel .view-switch{position:static;display:flex;flex-direction:row;box-shadow:none;padding:0;background:none}#living-panel .view-switch button{padding:10px;font-size:11px}
.neighbour-list{display:grid;gap:7px}.neighbour-list button{text-align:left;border:1px solid #ffffff13;border-radius:8px;padding:11px;background:#ffffff03}.neighbour-list b{font-size:13px;display:block;color:#deedeb}.neighbour-list b span{font-weight:400;font-size:10px;color:#8dd5be;float:right}.neighbour-list small{font-size:11px;display:block;color:#92adb9;line-height:1.5;margin-top:5px}
.friend-actions{display:flex;gap:8px;flex-wrap:wrap}.living-primary{display:inline-block;background:#92e8c7;color:#102e2a!important;border-radius:7px;padding:12px 15px;text-decoration:none;font-size:13px;font-weight:600;margin-top:10px}#visit-form label{display:block;font-size:13px;margin:18px 0 8px}#invite-output{display:block;font-family:monospace;font-size:23px;letter-spacing:2px;color:#acedd8;margin-top:16px;user-select:all}#living-panel .living-note{font-size:11px}#friends-error{color:#f1ac98!important}#presence-list{color:#a4d9ca;font-size:13px}
#cloud-banner{position:absolute;z-index:5;top:86px;left:50%;transform:translateX(-50%);padding:10px 15px;border-radius:8px;background:#12362fe8;color:#b3f2d6;font-size:12px;max-width:65%;text-align:center}
.visiting-city #next-month,.visiting-city #pause,.visiting-city [data-speed],.visiting-city #reset,.visiting-city .build-item,.visiting-city [data-design]{opacity:.4;pointer-events:none}
#neighbour-conversation{position:absolute;z-index:4;bottom:145px;left:18px;max-width:330px;border:1px solid #d0eee522;border-radius:12px;background:#102c38ef;padding:13px 16px;pointer-events:none;box-shadow:0 8px 30px #03162333}#neighbour-conversation small{font-size:9px;color:#8ad8ba;letter-spacing:1.2px}#neighbour-conversation p{font-size:12px;color:#c4d9df;line-height:1.5;margin:7px 0}#neighbour-conversation b{color:#e1f1ed}
.build-open #neighbour-conversation,.panel-open #neighbour-conversation,.at-start #neighbour-conversation{display:none!important}
#elevator-controls{position:absolute;left:50%;bottom:145px;transform:translateX(-50%);z-index:7;display:flex;align-items:center;gap:10px;background:#102432f5;border:1px solid #d6eeee25;border-radius:12px;padding:13px;max-width:calc(100% - 40px)}#elevator-controls b{display:block;font-size:13px;white-space:nowrap}#elevator-controls small{display:block;font-size:10px;color:#98bebc;margin-top:4px}#elevator-controls label{font-size:11px;white-space:nowrap}#elevator-controls select{margin-left:5px;background:#1b3646;color:#e0efec;border:1px solid #abc9c533;padding:8px;border-radius:5px}#elevator-controls button{padding:10px;border-radius:6px;background:#ffffff0b;white-space:nowrap;font-size:12px}
body.living-world.at-start .rail,body.living-world.at-start footer,body.living-world.at-start header{visibility:hidden}
@media(max-width:800px){body.living-world header{left:8px;right:8px;top:8px;height:55px;padding:0 12px}body.living-world .brand{font-size:12px}body.living-world .brand small{display:none}body.living-world .brand-mark{font-size:23px}body.living-world .headline-stats{gap:13px}body.living-world .headline-stats strong{font-size:16px}body.living-world .headline-stats span{font-size:9px}body.living-world #help{width:28px;height:28px}body.living-world .rail{bottom:64px;max-width:calc(100% - 16px);padding:4px;gap:0;height:55px;overflow-x:auto;justify-content:flex-start}body.living-world .rail-btn{width:48px;min-width:48px;height:46px}body.living-world .rail-btn span{font-size:19px}body.living-world .rail-btn small{font-size:9px}body.living-world #save,body.living-world #reset{display:none}body.living-world footer{left:8px;right:8px;bottom:9px;height:42px}body.living-world #time-label{display:none}body.living-world #site-plan{top:74px;right:10px;width:117px}body.living-world #focus-caption{top:74px;left:10px;width:190px;padding:10px}body.living-world #focus-caption small{display:none}body.living-world #focus-caption b{font-size:13px}body.living-world #focus-caption span{font-size:11px}body.living-world .map-actions{right:10px;bottom:131px}body.living-world .map-actions button{width:36px;height:36px}#living-panel{top:74px;bottom:131px;left:10px;width:calc(100% - 20px);max-width:365px;padding:20px}body.living-world #side-panel{top:74px;bottom:132px;right:10px;width:calc(100% - 20px);max-width:350px}body.living-world.build-open #side-panel{bottom:350px}body.living-world .build-tray{left:10px;right:10px;bottom:131px;max-height:205px;padding:10px}body.living-world .build-items{grid-template-columns:repeat(5,minmax(47px,1fr))}body.living-world .build-item{min-height:62px}#neighbour-conversation{bottom:132px;left:10px;max-width:calc(100% - 65px);padding:10px}#neighbour-conversation p{font-size:11px}#elevator-controls{bottom:130px;flex-wrap:wrap;gap:6px;width:calc(100% - 20px);padding:10px}#elevator-controls>div{flex-basis:100%}#elevator-controls button{font-size:11px;padding:9px}#cloud-banner{top:118px;font-size:10px;max-width:80%}body.living-world .toast{bottom:130px;font-size:12px}body.living-world .footer-message{display:none}}

body.living-world.life-view #park-return{display:none!important}

/* Invite visits keep exploration and inspections, with no dead build controls. */
body.invite-city .build-tray,body.invite-city .rail [data-panel="build"],body.invite-city .time-controls,body.invite-city #next-month,body.invite-city #reset,body.invite-city #open-creator,body.invite-city [data-city-edit],body.invite-city [data-world-build],body.invite-city [data-advice-build],body.invite-city #connect-subway,body.invite-city [data-remove-bridge],body.invite-city [data-launch],body.invite-city #choose-bridge,body.invite-city #recovery,body.invite-city #mobile-coach,body.invite-city .coach{display:none!important}
body.invite-city #cloud-banner{top:var(--journey-clear-top,155px)!important;left:18px;transform:none;z-index:12;max-width:min(560px,calc(100% - 36px));box-sizing:border-box;display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;padding:7px 10px;text-align:left;border:1px solid #8bdab366;font-size:13px!important}
#cloud-banner[hidden]{display:none!important}#visit-context{flex:1;min-width:120px;overflow-wrap:anywhere}#visit-return-home{min-height:44px;padding:8px 12px;border:1px solid #a8edca66;border-radius:6px;background:#b3f2d6;color:#102e2a;font-family:inherit;font-size:13px;font-weight:600;line-height:1.2;cursor:pointer}#visit-return-home:disabled{opacity:.65;cursor:wait}#visit-return-home:focus-visible{outline:3px solid #fff;outline-offset:2px}#visit-return-status{flex-basis:100%;font-size:12px;line-height:1.4;color:#fff}
@media(max-width:600px){body.invite-city #cloud-banner{left:10px;max-width:calc(100% - 20px);width:calc(100% - 20px)}}

/* Leave panel headings, close controls and the persistent goal unobstructed.
   The direct return banner reappears after closing the current menu. */
body.invite-city.living-menu-open #cloud-banner,body.invite-city.panel-open #cloud-banner,body.invite-city.advisor-open #cloud-banner,body.invite-city:has(#more-tools:not([hidden])) #cloud-banner{display:none!important}
body.invite-city [data-project-action]:not([data-project-action="checkup"]),body.invite-city [data-suggestion],body.invite-city [data-zone],body.invite-city #erase-zone{display:none!important}

/* A visit has no clock controls; keep its mobile footer from becoming an empty bar. */
@media(max-width:1050px){body.invite-city #app>footer{display:none!important}body.living-world.invite-city .rail{bottom:12px}}
