/* Obitel surfaces: restrained glass for controls, opaque reading layers underneath. */
:root{--ob-ink:#f5eee2;--ob-muted:#c4cbd7;--ob-gold:#e8cb92;--ob-violet:#cab1df;--ob-glass:linear-gradient(135deg,#34485bdb,#192b40ed 62%,#30273fe8);--ob-edge:#d7c6aa52;--ob-shadow:inset 0 1px 0 #ffffff24,0 8px 28px #030a182e}
html{scroll-padding-top:24px}body.portal-refined,body.portal-refined:has(#arena),body.portal-refined:has(.portrait-result){background-color:#0c1423;color:var(--ob-ink);background-image:radial-gradient(ellipse at 85% 8%,#79639a18,transparent 52%),linear-gradient(180deg,#0d19265e,#0b1425c9 750px,#0c1423 1800px),url('/assets/sky/reading-nebulae-v2.webp');background-position:center top;background-size:100% 1100px,100% 100%,max(1440px,100vw) auto;background-repeat:no-repeat;background-attachment:scroll}
body.portal-refined>header{box-sizing:border-box;width:calc(100% - 32px);max-width:1180px;padding:12px 20px;gap:10px;margin:16px auto 0;border:1px solid var(--ob-edge);border-radius:24px;background:var(--ob-glass);box-shadow:var(--ob-shadow)}
body.portal-refined>header .portal-brand-logo{width:76px;height:76px}
body.portal-refined>header .portal-nav-button{min-height:44px;padding:10px 15px;font-size:14px;border-radius:14px;color:var(--ob-ink);background:linear-gradient(150deg,#ffffff16,#ffffff05);border-color:#d1d5df45;box-shadow:inset 0 1px #fff2}
body.portal-refined>header .portal-nav-button[aria-current=page]{background:#d8bf8a24;border-color:#e6ca8a;color:#ffe4ad}
body.portal-refined>header .portal-account-button{color:var(--ob-ink);background:#ffffff0b;border-color:#d1d5df45}
body.portal-refined>main{box-sizing:border-box;padding-inline:clamp(16px,3vw,28px)}
body.portal-refined .birth-invitation,body.portal-refined .hd-intro{background:linear-gradient(125deg,#23364bed,#182438f5);border:1px solid var(--ob-edge);border-radius:26px;box-shadow:var(--ob-shadow);padding:clamp(24px,4vw,42px)}
body.portal-refined .birth-invitation{margin:4px 0 24px}body.portal-refined .birth-invitation h1{font:clamp(30px,4.5vw,48px)/1.16 Georgia,serif;max-width:760px;color:#f3dfb4;margin:12px 0 18px}body.portal-refined .birth-invitation p{max-width:660px;line-height:1.65}
body.portal-refined .birth-invitation-action{min-height:48px;box-sizing:border-box;display:inline-flex;align-items:center;border:1px solid #f4dfad;background:linear-gradient(145deg,#f3dfad,#cfb479);color:#15283b;box-shadow:inset 0 1px #fff7,0 5px 20px #d5b87820;border-radius:14px}
body.portal-refined .birth-invitation-note{display:block;margin-top:14px;line-height:1.5;color:var(--ob-muted)}body.portal-refined #score:empty{display:none}
.portal-next-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 28px}.portal-next-steps a{display:flex;flex-direction:column;gap:8px;padding:20px 22px;border:1px solid var(--ob-edge);border-radius:20px;background:#19293ce8;color:var(--ob-ink);text-decoration:none}.portal-next-steps strong{font-size:18px;color:var(--ob-gold)}.portal-next-steps span{font-size:14px;line-height:1.6;color:var(--ob-muted)}
.portal-skip{position:fixed;left:16px;top:8px;z-index:20000;transform:translateY(-200%);background:#f2d9a7;color:#112539;padding:12px 18px;border-radius:12px}.portal-skip:focus{transform:none}
body.portal-refined .hd-back-nav{margin:6px 0 16px;font-size:14px;color:var(--ob-muted)}body.portal-refined .hd-back-nav a{padding:0;border:0;background:none;box-shadow:none}body.portal-refined .hd-section-title{font-size:clamp(28px,4vw,40px);margin:16px 0 22px}body.portal-refined .hd-intro{padding-block:24px;margin-bottom:20px}body.portal-refined .hd-intro h2{font-size:clamp(26px,3.4vw,38px);margin:8px 0 12px}body.portal-refined .hd-intro .celestial-weave{width:130px}
body.portal-refined :is(.portrait-tabs,.portrait-actions,.sky-scene-tools,.cosmic-scene-tools,.map-tools){border-color:var(--ob-edge);border-radius:18px;gap:8px}
body.portal-refined :is(.portrait-tabs button,.cosmic-scene-tools button,.cosmic-steps button,.cosmic-controls button,.map-tools button,.cosmic-time button){min-height:44px;border:1px solid #d7d0e059;border-radius:14px;background:var(--ob-glass);color:#f7eee2;box-shadow:var(--ob-shadow);font-size:14px;line-height:1.35}
body.portal-refined .cosmic-steps button[aria-current=step],body.portal-refined #cosmic-entry button[aria-pressed=true],body.portal-refined .field-shell button[aria-pressed=true]{border-color:#e8c88c;box-shadow:inset 0 0 0 1px #e8c88c55;color:#ffe8bb}
body.portal-refined #cosmic-entry{padding-top:20px}body.portal-refined #cosmic-title{font-size:clamp(28px,4.5vw,48px)}body.portal-refined .cosmic-stage{border-color:#bfacc959;box-shadow:0 20px 60px #0003}body.portal-refined .cosmic-top p{letter-spacing:.09em}body.portal-refined #cosmic-hint{max-width:65ch;line-height:1.55}
body.portal-refined .cosmic-steps{gap:8px;display:flex;flex-wrap:wrap;padding-block:10px}
body.portal-refined :is(.cosmic-scene-tools,.cosmic-steps,.map-tools){-webkit-tap-highlight-color:transparent}
body.portal-refined :is(a,button,summary,input,select,textarea):focus-visible{outline:3px solid #a8ddeb;outline-offset:3px}body.portal-refined button:disabled{cursor:not-allowed;opacity:.55}
body.portal-refined .portal-team-menu{position:relative;margin-left:auto}body.portal-refined .portal-team-menu>summary{padding:10px 14px;min-height:44px;box-sizing:border-box;cursor:pointer}body.portal-refined .portal-team-menu>div{position:absolute;right:0;top:100%;width:220px;padding:12px;z-index:20;background:#17283d;border:1px solid var(--ob-edge);border-radius:16px;box-shadow:0 14px 40px #0005}body.portal-refined .portal-team-menu a{display:block;padding:10px;color:var(--ob-ink)}
body.portal-refined .search{background:#101e30ed;border-bottom:1px solid var(--ob-edge)}body.portal-refined :is(.article,.note){background:linear-gradient(140deg,#24374bec,#17283bec);border-color:var(--ob-edge);box-shadow:var(--ob-shadow)}body.portal-refined .article h3{line-height:1.3}body.portal-refined .article a{color:#e6d1f3}body.portal-refined .article p{color:#d6dce5}
body.portal-refined:has(#guide-search)>header{background:#17283ce8;max-width:1200px;padding:24px 28px}body.portal-refined:has(#guide-search) h1{font-size:clamp(36px,6vw,64px)}body.portal-refined:has(#guide-search) header nav a{min-height:44px;display:inline-flex;align-items:center;padding:6px 10px;border-radius:12px;background:#ffffff09;text-underline-offset:4px}body.portal-refined:has(#guide-search) header nav{gap:8px}
body.portal-refined:is(.portal-account-page,:has(#display-name),:has(#new-ticket))>main{background:#142438ed;border:1px solid var(--ob-edge);border-radius:24px;margin:32px auto;padding:clamp(20px,4vw,32px);width:calc(100% - 32px)}
body.portal-refined:has(#display-name) main>section{background:linear-gradient(135deg,#25394dec,#252b40ed);border-color:var(--ob-edge)}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){body.portal-refined>header{backdrop-filter:blur(16px) saturate(125%);-webkit-backdrop-filter:blur(16px) saturate(125%)}body.portal-refined :is(.cosmic-scene-tools,.map-tools){backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}}
@media(hover:hover){body.portal-refined .portal-nav-button:hover,.portal-next-steps a:hover{border-color:#e6cc98;background-color:#34465a;box-shadow:inset 0 1px #fff4,0 8px 24px #0003}}
@media(max-width:640px){body.portal-refined>header{padding:10px 12px;width:calc(100% - 20px);margin-top:10px;gap:8px;border-radius:20px}body.portal-refined>header .portal-brand-logo{width:56px;height:56px}body.portal-refined>header .portal-nav-button{padding:9px 10px;font-size:13px;min-height:44px}body.portal-refined>header .portal-brand-link{margin-right:auto}.portal-next-steps{grid-template-columns:1fr}.portal-next-steps a{padding:16px 18px}body.portal-refined .hd-intro .celestial-weave{width:80px;opacity:.6}body.portal-refined .birth-invitation{padding:24px 20px}body.portal-refined .birth-invitation h1{font-size:30px}body.portal-refined .cosmic-steps{flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x proximity;max-width:100%;padding:8px 4px}body.portal-refined .cosmic-steps button{flex:0 0 auto;scroll-snap-align:start;font-size:12px}body.portal-refined #cosmic-entry{padding-inline:10px}}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){body.portal-refined>header,body.portal-refined :is(.cosmic-scene-tools,.map-tools){background:#1a2d43;backdrop-filter:none;-webkit-backdrop-filter:none}body.portal-refined,body.portal-refined:has(#arena),body.portal-refined:has(.portrait-result){background-image:none}body.portal-refined a,body.portal-refined button{border-color:#c4b799}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}body.portal-refined :is(button,a,summary){transition:none!important;animation:none!important}}

body[data-sky-preview] .portal-team-menu,body[data-sky-preview] #join,body[data-sky-preview] .sky-rubi-launcher{display:none!important}

body.portal-refined:has(#password-form) :is(#social button,#submit-account,.modes button[aria-pressed=true]){background:linear-gradient(140deg,#efd6aa,#ceb281);border-color:#e6cca0;color:#18283c;-webkit-text-fill-color:#18283c;box-shadow:inset 0 1px #fff5}


/* One family of surfaces throughout the portal, including mounted dialogs. */
html body.portal-refined a,html body.portal-refined a:visited,html body.portal-refined summary{text-decoration:none!important}
html body.portal-refined a:hover{filter:brightness(1.15)}
html body.portal-refined :is(.portrait-result,.portrait-settings,.quest-facet,.sky-unified,.sky-about,.sky-more-symbols,.rubi-wallet,.rubi-guide-entry,.rubi-conversation,.rubi-quick-sheet,.rubi-quick-entry,.rubi-full-report,.rubi-history-row,.rubi-plan-grid>article,.profile-settings>details,.portal-account-page main>section,.portal-account-page main>details,.article,.reader-card,.card,.note,.sky-plan-dialog,.composite-dialog){background:linear-gradient(135deg,#30475bdd,#223349ed 62%,#3b3049e8)!important;border:1px solid #d7c6aa66!important;border-radius:22px;box-shadow:inset 0 1px 0 #ffffff26,0 12px 32px #02081730;color:#f5eee2}
html body.portal-refined :is(.rubi-conversation-head,.rubi-conversation-footer,.rubi-chat-toolbar,.rubi-quick-head,.rubi-quick-footer){background:linear-gradient(125deg,#304354f5,#302e43f5)!important;border-color:#d7c6aa44!important}
html body.portal-refined :is(.portrait-result,.rubi-conversation,.rubi-wallet,.rubi-guide-entry,.rubi-quick-sheet,.profile-settings,.portal-account-page main,.sky-plan-dialog,.composite-dialog) :is(button,a.action,.portrait-button){min-height:44px;border-radius:14px!important;border:1px solid #d7c6aa80!important;background:linear-gradient(140deg,#344657,#303048)!important;color:#f9e9c7!important;-webkit-text-fill-color:#f9e9c7;box-shadow:inset 0 1px #fff3,0 3px 12px #02081720}
html body.portal-refined :is(.portrait-result,.rubi-conversation,.rubi-wallet,.rubi-guide-entry,.rubi-quick-sheet) :is(input:not([type=checkbox]):not([type=radio]),textarea,select){background:#122438d9!important;color:#f6eee3!important;border-color:#acb6c180!important;border-radius:14px;max-width:100%;box-sizing:border-box}
html body.portal-refined :is(.rubi-conversation,.rubi-guide-entry,.rubi-quick-sheet) button:disabled{color:#d2d8e0!important;-webkit-text-fill-color:#d2d8e0;opacity:.65;background:#283b50!important}
html body.portal-refined .rubi-message{background:#20384ce8;color:#f5eee2;border:1px solid #d2c3aa30;border-radius:16px;padding:16px;line-height:1.65}
html body.portal-refined .rubi-message-user{background:#40364de8}
html body.portal-refined .rubi-consent{display:grid!important;grid-template-columns:28px minmax(0,1fr)!important;align-items:start!important;gap:12px!important;padding:16px!important;min-height:0;border-width:1px!important;border-color:#b3a9bf!important;background:#ffffff08!important;box-shadow:inset 0 1px #fff2!important;border-radius:16px}
html body.portal-refined .rubi-consent>details{grid-column:2;min-width:0}
html body.portal-refined .rubi-consent-copy{min-width:0;overflow-wrap:anywhere}
html body.portal-refined .rubi-consent input[type=checkbox]{width:26px!important;height:26px!important;min-width:26px!important}
html body.portal-refined .stage-faq{display:none!important}
@supports(backdrop-filter:blur(1px)){html body.portal-refined :is(.rubi-conversation,.rubi-quick-sheet,.rubi-wallet,.profile-settings>details,.card,.article){backdrop-filter:blur(14px) saturate(115%);-webkit-backdrop-filter:blur(14px) saturate(115%)}}
@media(max-width:600px){html body.portal-refined :is(.rubi-conversation,.rubi-quick-sheet){width:calc(100% - 16px);max-width:calc(100% - 16px);max-height:calc(100dvh - 24px);padding:14px!important}html body.portal-refined .rubi-conversation-head{display:flex;flex-wrap:wrap;gap:8px}html body.portal-refined .rubi-conversation-head h3{flex:1 1 55%;margin:0;font-size:24px}html body.portal-refined .rubi-chat-toolbar{display:flex;flex-wrap:wrap;gap:8px}html body.portal-refined .rubi-chat-toolbar button{flex:1 1 140px;font-size:14px}html body.portal-refined .rubi-conversation-footer textarea{max-height:22dvh;min-height:90px}html body.portal-refined .rubi-consent{font-size:15px!important;line-height:1.5!important}.search{position:relative!important;top:auto!important}}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){html body.portal-refined :is(.portrait-result,.rubi-conversation,.rubi-quick-sheet,.rubi-wallet,.card,.article,.note,.profile-settings>details){background:#203249!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}}

body.portal-refined .rubi-conversation-head>a{order:-1;flex-basis:100%;padding:8px!important;border-radius:14px;background:#ffffff0c;text-decoration:none}body.portal-refined .history-tools{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.history-tools select{max-width:100%;width:280px}.history-tools label{min-width:0}.cosmic-stage>.sky-music-button{position:absolute;top:14px;left:14px;z-index:8}

/* Sol uses the same readable glass surfaces as the existing cabinet. */
body.portal-refined :is(.chat,.talk-intro,.feature-grid article,.models,.vision-letter){background:var(--ob-glass);border:1px solid var(--ob-edge);border-radius:22px;box-shadow:var(--ob-shadow);padding:24px;box-sizing:border-box}
body.portal-refined .talk-intro{align-self:start}body.portal-refined .talk-intro h2{font-size:clamp(28px,3.4vw,44px)}
body.portal-refined .talk :is(button,select){border:1px solid #d7c6aa80;border-radius:14px;min-height:44px;background:linear-gradient(140deg,#4b5365,#32354b);color:#f9e9c7;padding:10px 14px;box-shadow:inset 0 1px #fff3;font:inherit;box-sizing:border-box}
body.portal-refined .talk select{width:100%}body.portal-refined .talk option{background:#223349;color:#f5eee2}body.portal-refined .talk button:disabled{opacity:.55;color:#e0d9d0}
@supports(backdrop-filter:blur(1px)){body.portal-refined :is(.chat,.talk-intro,.feature-grid article,.models,.vision-letter){backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}}

/* Compact sky: two tool rows; time is below the rendered cosmos. */
html body.portal-refined #cosmic-entry:not([data-phase=birth]) .cosmic-scene-tools{top:6px!important;left:8px;right:52px;display:flex;flex-wrap:nowrap;gap:4px;padding:0;z-index:12;border:0;background:none;backdrop-filter:none;pointer-events:none}
html body.portal-refined #cosmic-entry .cosmic-scene-tools>*{pointer-events:auto;flex:none;min-height:40px;height:40px;padding:6px 8px;font-size:12px;border-radius:13px;box-sizing:border-box}
html body.portal-refined #cosmic-entry .cosmic-scene-tools>select{width:90px;max-width:27vw}
html body.portal-refined #cosmic-entry .cosmic-scene-tools>[data-speed]{width:64px}
html body.portal-refined #cosmic-entry .cosmic-scene-tools>[data-action=pause]{width:38px;padding:0;font-size:18px}
html body.portal-refined #cosmic-entry .cosmic-scene-tools>.sky-music-button{width:38px;min-width:38px;padding:0;font-size:0}
html body.portal-refined #cosmic-entry .cosmic-scene-tools>.sky-music-button:before{content:'♪';font-size:21px}
html body.portal-refined #cosmic-entry .cosmic-controls{top:6px;right:8px;z-index:13}
html body.portal-refined #cosmic-entry #cosmic-fullscreen{width:40px;height:40px;min-height:40px;padding:0;font-size:0;border-radius:13px}
html body.portal-refined #cosmic-entry #cosmic-fullscreen:before{content:'⛶';font-size:22px}
html body.portal-refined #cosmic-entry #cosmic-fullscreen[aria-pressed=true]:before{content:'↙'}
html body.portal-refined #cosmic-entry .cosmic-stage .cosmic-steps{position:absolute!important;top:50px!important;left:8px;right:8px;margin:0;padding:0;z-index:8;display:flex;flex-wrap:nowrap;gap:4px;overflow-x:auto;max-width:100%}
html body.portal-refined #cosmic-entry .cosmic-steps button{flex:1 0 auto;padding:6px 8px;min-height:36px;height:36px;font-size:11px;white-space:nowrap;border-radius:12px}
html body.portal-refined #cosmic-entry .cosmic-view-hint{display:none}
html body.portal-refined #cosmic-entry #cosmic-next{font-size:12px;padding:8px 14px;min-height:36px;max-width:160px;bottom:14px;left:auto;right:14px;transform:none}
html body.portal-refined #cosmic-entry .cosmic-time{display:grid;grid-template-columns:minmax(0,1fr) 40px;grid-template-rows:26px 20px;gap:2px 8px;padding:8px 12px!important;height:66px;min-height:66px!important;box-sizing:border-box;background:#0b1524;color:#d3d6e5;margin:0}
html body.portal-refined #cosmic-entry .cosmic-time>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html body.portal-refined #cosmic-entry .cosmic-time input{width:100%;min-width:0;margin:0;grid-column:1;grid-row:1}
html body.portal-refined #cosmic-entry .cosmic-time output{grid-column:1;grid-row:2;min-width:0;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.portal-refined #cosmic-entry .cosmic-time [data-loop]{grid-column:2;grid-row:1 / 3;width:40px;min-width:40px;min-height:44px;padding:0;font-size:23px;border-radius:13px}
html body.portal-refined #cosmic-entry .cosmic-stage.cosmic-fullscreen:not([data-black-hole=true])>.cosmic-scene{height:calc(100% - 66px);bottom:66px}
html body.portal-refined #cosmic-entry .cosmic-stage.cosmic-fullscreen #cosmic-next{bottom:80px}
html body.portal-refined #cosmic-entry .cosmic-stage.cosmic-fullscreen[data-black-hole=true] #cosmic-next{bottom:14px}
html body.portal-refined #cosmic-entry[data-phase=birth] .cosmic-stage>.cosmic-scene{height:100%;bottom:0}
@media(min-width:900px){html body.portal-refined #cosmic-entry .cosmic-scene-tools{max-width:540px}html body.portal-refined #cosmic-entry .cosmic-stage .cosmic-steps{max-width:540px}}
@media(max-width:360px){html body.portal-refined #cosmic-entry .cosmic-scene-tools>select:not([data-speed]){width:64px}html body.portal-refined #cosmic-entry .cosmic-scene-tools>[data-speed]{width:58px}}
/* Touch-first sky: one row, with secondary controls in the disclosure. */
html body.portal-refined #cosmic-entry .cosmic-stage{touch-action:none;overscroll-behavior:contain}
html body.portal-refined #cosmic-entry .cosmic-scene-select[hidden]{display:none!important}
@media(max-width:600px){
 html body.portal-refined #cosmic-entry .cosmic-stage .cosmic-steps{display:flex!important}
 html body.portal-refined #cosmic-entry .cosmic-scene-tools>.cosmic-scene-select{width:112px;max-width:35vw;padding:4px 6px;font-size:12px}
 html body.portal-refined #cosmic-entry:not([data-phase=birth]) .cosmic-scene-tools{top:max(4px,env(safe-area-inset-top))!important;gap:3px}
 html body.portal-refined #cosmic-entry .cosmic-controls{top:max(4px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right))}
 html body.portal-refined #cosmic-entry .cosmic-time{padding:4px 8px!important;grid-template-rows:28px 22px;gap:0 6px;height:58px;min-height:58px!important}
 html body.portal-refined #cosmic-entry .cosmic-stage.cosmic-fullscreen:not([data-black-hole=true])>.cosmic-scene{height:calc(100% - 58px);bottom:58px}
 html body.portal-refined #cosmic-entry .cosmic-stage.cosmic-fullscreen #cosmic-next{bottom:66px}
 html body.portal-refined #cosmic-entry #cosmic-next{min-height:32px;padding:4px 10px;font-size:11px}
 html body.portal-refined #cosmic-entry .cosmic-time input{min-height:28px;touch-action:pan-x}
 html body.portal-refined #cosmic-entry .cosmic-time output{font-size:10px}
 html body.portal-refined #cosmic-entry .cosmic-time [data-loop]{min-height:44px}
}
html body.portal-refined #cosmic-entry .cosmic-evolution{padding:0;margin:4px 0;width:max-content;max-width:calc(100% - 16px);border:0;background:none;overflow:visible;max-height:none}
html body.portal-refined #cosmic-entry .cosmic-evolution>summary{list-style:none;cursor:pointer;padding:8px 12px;min-height:36px;box-sizing:border-box;font:12px/20px system-ui;border:1px solid #cab8d280;border-radius:14px;background:var(--ob-glass);box-shadow:var(--ob-shadow);color:#f7e8c9}
.cosmic-evolution>summary::-webkit-details-marker{display:none}
html body.portal-refined #cosmic-entry .cosmic-evolution>summary:after{content:' ＋'}
html body.portal-refined #cosmic-entry .cosmic-evolution[open]>summary:after{content:' −'}
html body.portal-refined #cosmic-entry .cosmic-orbit-panel{box-sizing:border-box;width:min(300px,calc(100vw - 24px));padding:14px;border:1px solid #cab8d280;border-radius:18px;background:#152337f5;box-shadow:0 10px 30px #0008;font:12px/1.5 system-ui;max-height:38dvh;overflow:auto;overscroll-behavior:contain;touch-action:pan-y}
html body.portal-refined #cosmic-entry .cosmic-stage.cosmic-fullscreen .cosmic-evolution{bottom:80px;left:8px;z-index:10;margin:0;max-height:none;overflow:visible;padding:0}
html body.portal-refined #cosmic-entry .cosmic-stage .cosmic-orbit-panel{position:absolute;bottom:44px;left:0}
html body.portal-refined #cosmic-entry .cosmic-orbit-panel button{min-height:40px;padding:6px 8px;margin:3px 2px;font-size:11px}
@media(max-width:600px){html body.portal-refined #cosmic-entry .cosmic-stage.cosmic-fullscreen .cosmic-evolution{bottom:66px}html body.portal-refined #cosmic-entry .cosmic-evolution>summary{min-height:32px;padding:5px 9px;font-size:11px}}


html body.portal-refined .rubi-consent>.rubi-consent-copy{grid-column:2;width:auto;overflow-wrap:normal}
html body.portal-refined .rubi-consent>details{grid-column:2;grid-row:auto}
body.portal-refined:has(#cosmic-entry)>header{width:calc(100% - 2 * clamp(12px,4vw,32px));max-width:1436px}
body.portal-refined:has(#cosmic-entry)>header .portal-music{margin-inline-start:auto}
body.portal-refined:has(#cosmic-entry)>header .portal-team-menu{margin-inline-start:0}
@media(min-width:781px){
 html body.portal-refined #cosmic-entry .hd-guide{width:100%;max-width:none;margin-inline:0}
 #cosmic-entry .hd-guide .hd-scroll{max-height:none;overflow:visible}
}
@media(max-width:640px){body.portal-refined:has(#cosmic-entry)>header{width:calc(100% - 20px)}}

html body.portal-refined #cosmic-entry:not([data-phase=birth]) .cosmic-scene-tools{max-width:none;width:auto;overflow-x:auto;overflow-y:hidden;pointer-events:auto;touch-action:pan-x;scrollbar-width:thin;white-space:nowrap}
html body.portal-refined #cosmic-entry .cosmic-scene-tools>[hidden]{display:none!important}
html body.portal-refined #cosmic-entry .cosmic-stage .cosmic-steps{top:calc(max(6px,env(safe-area-inset-top)) + 54px)!important;max-width:none}

html body.portal-refined div.rubi-consent:has(>label.rubi-option){display:block!important;min-height:0!important}
html body.portal-refined div.rubi-consent[hidden]{display:none!important}
html body.portal-refined div.rubi-consent>label.rubi-option{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:start;gap:12px;width:100%;box-sizing:border-box}
html body.portal-refined div.rubi-consent>label.rubi-option>span{width:auto;white-space:normal;overflow-wrap:normal;word-break:normal}
html body.portal-refined div.rubi-consent>details{margin-top:8px}

/* Keep disclosure markers and their labels inside the card. */
body.portal-refined :is(.sky-more-symbols,.sky-about)>summary {
  padding-inline: clamp(12px, 2vw, 20px);
}
body.portal-refined .birth-stability>summary {
  cursor: pointer;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 650;
}
.birth-stability-actions { margin-block: 14px; }
.birth-stability-actions + div:empty { display: none; }
.birth-stability > p[role=status] { margin-block-end: 0; }

#sky-guide-library details {
  margin-block: 0;
  padding-block: 0;
}
#sky-guide-library details > summary {
  box-sizing: border-box;
  min-height: 44px;
  padding: 12px 8px;
  line-height: 1.5;
}
html body.portal-refined #cosmic-entry :is(.hd-collapse,[data-loop],[data-action=pause],#cosmic-fullscreen):not([hidden]) {
  display: inline-grid;
  place-items: center;
  padding: 0;
  line-height: 1;
}
html body.portal-refined #cosmic-entry:not([data-phase=birth]) .cosmic-scene-tools {
  box-sizing: border-box;
  padding: 3px 5px;
}
html body.portal-refined #cosmic-entry .cosmic-scene-tools > select[aria-label="Выбрать небесный объект"] {
  width: 12ch;
  max-width: 28vw;
}
html body.portal-refined #cosmic-entry .cosmic-scene-tools > select[data-speed] { width: 8ch; }
html body.portal-refined #cosmic-entry .cosmic-scene-tools > select {
  padding-inline: 6px 2px;
}
