/* Owner device review, section 17. One speech component with two anchor positions. */
.orb-speech,body.today-viewport .orb-speech{overflow:visible!important;max-height:none!important;height:auto!important;max-width:min(320px,calc(100vw - 32px))!important;overflow-wrap:anywhere;pointer-events:auto!important;cursor:pointer;transition:opacity .18s ease;isolation:isolate;margin:0!important;clip-path:none!important}
.orb-speech:after{top:auto!important;bottom:-7px!important;left:var(--tail-x,50%)!important;margin:0 0 0 -7px!important;width:12px!important;height:12px!important;pointer-events:none}
.orb-speech[data-position=center]{left:50%!important;right:auto!important;transform:translateX(-50%)!important;--tail-x:50%}
.orb-speech.is-closing{opacity:0!important;pointer-events:none!important}
body .dev-panel,body:has(.profile-menu) .dev-panel,body.planet-focus .dev-panel,body:has(.reader-choosing) .dev-panel{display:block!important;opacity:1!important;transform:none!important;color:#e8ffff!important;background:#11121f!important;font-size:13px!important;z-index:1000;position:fixed;top:calc(12px + env(safe-area-inset-top,0px));right:12px;max-width:min(350px,calc(100vw - 40px));border:1px solid #b9edff;border-radius:12px;padding:8px 12px;max-height:80dvh;overflow:auto}
.dev-panel summary{color:#bfffff;cursor:pointer;text-shadow:0 0 8px #58ddff88;font-variant-numeric:tabular-nums}.dev-panel label{display:block;margin:10px 0}
body[data-screen=focus] #nav.prerelease-dock{width:72px!important;height:72px!important;bottom:calc(20px + env(safe-area-inset-bottom,0px))!important;transition:bottom .3s ease}
body[data-screen=focus] #nav.prerelease-dock>.dock-orb{left:0!important;bottom:0!important;width:72px!important;height:72px!important;min-width:72px!important;min-height:72px!important;clip-path:none!important;transition:bottom .3s ease}
body[data-screen=focus] #nav.prerelease-dock>.dock-orb>[data-orb]{width:72px!important;height:72px!important}
body[data-screen=focus] #nav .focus-back{left:-62px!important;bottom:17px!important}


body.card-half-orb .dock-orb{clip-path:none!important}
body[data-screen=main] #nav.prerelease-dock{display:flex!important}
body[data-screen=main] #nav.prerelease-dock>button{display:flex!important}
body[data-screen=main] #nav.prerelease-dock>.dock-orb{display:block!important}
body[data-screen=main] #nav .focus-back,body[data-screen=main] #nav .focus-menu{display:none!important}
body .chat-dialog #chat-send,body .chat-dialog[data-input-position=orb] #chat-send{bottom:22px!important;height:58px!important}
body .chat-dialog .chat-focus-back{bottom:32px!important}
body .chat-dialog .chat-messages{padding-bottom:125px!important;scroll-padding-bottom:125px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.chat-bubble{animation:message-appear .24s ease-out}.transparent-chat .chat-bubble{background:transparent!important;box-shadow:none!important;border:0!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.message-receipt{display:inline-block;width:13px;height:13px;margin-left:8px;vertical-align:baseline;color:#cff3ff;stroke-width:1.5}
body.chat-viewport:not(:has(.chat-dialog)){overflow:auto!important}body.chat-viewport #app:not(.chat-dialog){overflow-y:auto!important;max-height:100dvh;box-sizing:border-box;padding-bottom:140px;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain}
@keyframes message-appear{from{opacity:0;translate:0 5px}to{opacity:1;translate:0 0}}
.magic-orb output,.magic-orb.shaking output{text-shadow:0 0 9px #fff,0 0 28px #a6a1ff,0 0 48px #7d80ff!important;animation:none!important}
.magic-orb.shaking output{animation:magic-number .09s steps(2,end) infinite!important}
.magic-orb[data-phase=locked]:after{content:'';position:absolute;inset:-10%;border:2px solid #bdfcff;border-radius:50%;box-shadow:0 0 24px #a0eaff,inset 0 0 24px #c2b0ff;pointer-events:none;animation:magic-lock .7s ease-out forwards}
@keyframes magic-lock{from{opacity:1;scale:.85}to{opacity:0;scale:1.2}}
.profile-menu .badge-orbits button,.badge-orbits button:nth-child(n){background:none!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;filter:none!important}
.profile-menu .badge-orbits button{opacity:var(--badge-visibility,1)!important;transition:opacity .2s ease}
.badge-orbits[style*="--badge-visibility: 0"] button{pointer-events:none}
.profile-menu{padding-bottom:150px!important}
.reader-cover{padding-top:36px!important;padding-bottom:28px!important;overflow:visible!important}.reader-screen,[data-reader-stage]{overflow:visible!important}
.reader-art .orba-glare-foil{background:linear-gradient(120deg,transparent 25%,#ffffff20 49%,transparent 70%)!important;mix-blend-mode:screen!important}
.planet-focus .planet-solo:has(canvas[data-planet="6"]){--planet-diameter:min(92vw,68dvh,640px)}
.planet-focus .planet-solo .planet-reading{width:min(92vw,640px)!important;max-width:640px!important}
.orb-collection-page{width:min(640px,100%);margin:auto;padding-bottom:150px}.orb-gallery-item{text-align:center;padding:30px 16px;border-bottom:1px solid #ffffff20}.orb-gallery-item [data-inventory-orb]{width:240px;height:240px;margin:24px auto}.orb-gallery-item dl{display:grid;grid-template-columns:1fr 1fr;text-align:left;gap:6px;font-size:13px;overflow-wrap:anywhere}.orb-gallery-item dd{margin:0;font-variant-numeric:tabular-nums}.orb-gallery-item dt{opacity:.7}
.shared-profile{text-align:center;max-width:640px;margin:auto;padding:50px 16px 150px}.shared-profile [data-public-orb]{width:260px;height:260px;margin:25px auto}.shared-profile .profile-achievements{display:flex;justify-content:center;gap:16px}.profile-achievements button{background:none!important;border:0!important;color:#ddc8ff}.shared-profile-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}
.sphere-fallback{position:absolute;left:23%;top:23%;width:54%;height:54%;border-radius:50%;background-color:#292a35;background-size:auto 100%;box-shadow:inset -18px -8px 24px #000a,inset 8px 4px 15px #fff2,0 0 20px #aaccff22;pointer-events:none;z-index:0;animation:sphere-texture 100s linear infinite}
@keyframes sphere-texture{to{background-position:200% 0}}
@media(prefers-reduced-motion:reduce){.chat-bubble,.magic-orb.shaking output,.sphere-fallback,.magic-orb[data-phase=locked]:after{animation:none!important}}

body[data-screen=focus] .daily-opening>button[data-page=today]{display:none!important}
.magic-orb output{inset:50% 0 8%!important;font-size:clamp(34px,12vw,65px)}
body[data-screen=focus] .planet-exit{display:none!important}

.shared-profile .profile-hero{height:auto!important;min-height:0!important;padding:0 0 16px!important}.shared-profile .profile-hero h1{position:relative!important;inset:auto!important;transform:none!important;margin:24px 0 8px!important}.shared-profile .profile-hero>p{position:relative!important;inset:auto!important;transform:none!important}

/* WORK-105 urgent device hotfix: viewport, one composer, full focus dock. */
html.telegram-mini-app:root,html.telegram-mini-app:root body{overflow:hidden!important;overscroll-behavior:none!important;touch-action:pan-x pan-y}
html.telegram-mini-app #app:not(.chat-dialog){max-height:var(--orba-visible-height,100dvh);overflow-y:auto!important;overscroll-behavior:none;box-sizing:border-box}
body.chat-viewport #app.chat-dialog{inset:var(--orba-visible-top,0px) 0 auto!important;height:var(--orba-visible-height,var(--tg-viewport-stable-height,100dvh))!important;min-height:0!important;transform:none!important;translate:none!important;animation:none!important}
body .chat-dialog .chat-peer{top:0!important;transform:none!important;translate:none!important}
body .chat-dialog .chat-peer [data-peer-orb]{top:calc(var(--chat-diameter,200px)/-2)!important;transform:none!important;translate:none!important}
body .chat-dialog .chat-own[data-orb]{bottom:calc(var(--chat-diameter,200px)/-2)!important;transform:none!important;translate:none!important}
body .chat-dialog .chat-composer{position:absolute;left:max(10px,calc(50% - 360px));right:max(10px,calc(50% - 360px));bottom:22px;display:flex;align-items:center;gap:10px;z-index:150}
body .chat-dialog .chat-composer .chat-focus-back{position:static!important;inset:auto!important;flex:0 0 38px;margin:0!important;transform:none!important;translate:none!important}
body .chat-dialog .chat-composer #chat-send{position:relative!important;inset:auto!important;flex:1;min-width:0;width:auto!important;margin:0!important;height:58px!important;transform:none!important}
.message-receipt{margin-left:0;margin-right:8px}
body[data-screen=focus] #nav.prerelease-dock>.dock-orb{transform:none!important;translate:none!important;clip-path:none!important}
#app.profile-menu{position:fixed!important;inset:var(--orba-visible-top,0px) 0 auto!important;height:var(--orba-visible-height,100dvh)!important;box-sizing:border-box;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:none}
.badge-orbits button,.profile-achievements button,.badge-orbits button *,.profile-achievements button *{background:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important;filter:none!important;fill:transparent!important;text-shadow:none!important}

/* Main capsule owns its Orb geometry; focus/chat half-spheres have separate rules. */
body[data-screen=main] #nav.prerelease-dock>.dock-orb{position:relative!important;inset:auto!important;align-self:center;display:flex;align-items:center;justify-content:center;flex-direction:row;gap:0;width:48px;height:46px;min-width:48px;min-height:46px;margin:0 0 0 8px!important;padding:0;transform:none!important;translate:none!important;clip-path:none!important;flex-shrink:0}
body[data-screen=main] #nav.prerelease-dock>.dock-orb>[data-orb]{position:relative!important;inset:auto!important;width:46px!important;height:46px!important;flex:none;transform:none!important;translate:none!important;margin:0!important}
