/* Orbita: radial colour fields and visible, restrained orbital contours. */
:root{--orbit-art:url('/assets/orbit-contours.svg?v=899c9cae7ac0b0f6');--orbit-pearl:url('/assets/orbit-contours-pearl.svg?v=aad272c28c892ee2');--orbita-mesh:radial-gradient(ellipse at 0% 5%,#79628638,transparent 56%),radial-gradient(ellipse at 100% 45%,#68507433,transparent 62%),radial-gradient(ellipse at 12% 100%,#5269792e,transparent 55%)}
body.dark{--bg:#15111d;--soft:#342a40;--panel:#302638e8;--solid:#2c2435;--line:#d4bae533;--muted:#b9aec7;background-color:var(--bg);background-image:var(--orbit-art),var(--orbita-mesh);background-size:600px 900px,auto,auto,auto;background-position:center top;background-repeat:no-repeat;background-attachment:fixed}
body.dark #app,.personal-page{background:transparent}.page{position:relative;isolation:isolate}.page:after{content:none}
.topbar,.top-nav{background:#1c1724dc;backdrop-filter:blur(24px);border-bottom-color:#d5b7e42c}
.night-layout:not(.day-city) .city-main{background-color:#15111d!important;background-image:var(--orbit-art),var(--orbita-mesh)!important;background-size:600px 900px,auto,auto,auto!important;background-position:center -80px,center,center,center!important;background-repeat:no-repeat!important}
.city-intro,.city-footnote,.now-map-bar{position:relative}
/* Contours are painted on surfaces, not behind the page in a negative layer. */
.personal-info:after,.connections-page:before,.chat-list-panel:before{content:none}
body.dark .personal-hero{--muted:#63546e;background:radial-gradient(ellipse at 8% 35%,#fffafd,transparent 60%),radial-gradient(ellipse at 100% 100%,#d5c6e6,transparent 75%),#eee6f4;box-shadow:inset 0 1px 0 #fff,0 18px 55px #110b1c40}
.personal-info{overflow:visible;background-image:var(--orbit-pearl);background-position:right top;background-size:420px 560px;background-repeat:no-repeat}.personal-info .profile-status{z-index:2}
.post-header{background-color:var(--surface-raised)}
body.dark .personal-page .post {
 --text:#332c3d;--muted:#66566f;--line:#35233c18;--soft:#d9cedf60;
 --glass-selection:#65467d;--surface-hover:var(--soft);--surface-picked:#e9e0ed;
 --post-like:#a62f68;
 background:radial-gradient(ellipse at 0 0,#fffaff,transparent 70%),
  radial-gradient(ellipse at 100% 100%,#dcd1e8,transparent 70%),#f0e8f5;
 border-color:#fff9;box-shadow:inset 0 1px 0 #fff,var(--surface-depth);
}
.personal-page .post-header {
 background:var(--orbit-pearl) right -70px / 420px 560px no-repeat;
}
body.dark .chat-layout{background:#15111d66}.chat-list-panel{background-image:var(--orbit-art);background-size:520px 780px;background-position:right -80px;background-repeat:no-repeat}
body.dark .chat-main{background-color:#15111d;background-image:var(--orbit-art),var(--orbita-mesh);background-size:600px 900px,auto,auto,auto;background-position:right top;background-repeat:no-repeat}
.side-widget,.settings-card{background-image:var(--orbit-art);background-size:450px 675px;background-position:right -100px;background-repeat:no-repeat}
/* Keep small text distinct from the artwork and from pearl surfaces. */
.personal-hero .profile-status{background:#282131e6;color:#f1fff8;border-color:#d8eee44d}
.personal-hero .profile-handle{color:#685674}.personal-hero .personal-stats span{color:#66516f}
.profile-photo-count{background:#211a2cdb}
body.dark .chat-item{background:var(--surface-reading);border:1px solid var(--surface-edge)}
body.dark .chat-item.active{background:var(--surface-picked);border-color:var(--glass-edge)}
body.dark .message-bubble time{color:#ddd0e6}body.dark .message.mine .message-bubble time{color:#654a70}
.chat-invitation-from,.chat-invitation p{color:#66516f}.chat-invitation time{color:#6b5676}
body:not(.dark){background-color:#ece4f2;background-image:var(--orbit-pearl),radial-gradient(ellipse at 0% 10%,#d5c2e78c,transparent 65%),radial-gradient(ellipse at 100% 85%,#b4cdd967,transparent 65%);background-size:600px 800px,auto,auto;background-position:right top;background-repeat:no-repeat}
/* The same direction exists inside the real app and around the desktop phone. */
body:has(#mobile-app){background-color:#110e17;background-image:var(--orbit-art),var(--orbita-mesh);background-size:900px 1350px,auto,auto,auto;background-position:center -120px;background-attachment:fixed;background-repeat:no-repeat}
body:has(#mobile-app):before{content:none}.preview-stage{position:relative;z-index:1}
@media(max-width:700px){body.dark{background-position:center 30px,center,center,center}.night-layout:not(.day-city) .city-main{background-size:510px 765px,auto,auto,auto!important;background-position:calc(50% - 25px) -115px,center,center,center!important}.personal-info{background-size:390px 520px}.chat-list-panel{background-size:480px 720px}}
