/* Update invitation + old-to-new transition layer. Additive; classic UI untouched unless body.uh-evolving or the update layer is open. */
#uh-update-card{border:1px solid #556d99;border-radius:16px;padding:26px 28px;margin:18px 0 22px;background:linear-gradient(125deg,#1d2e4b,#162136);box-shadow:0 20px 70px #0004;color:#eff3ff;max-width:960px}
#uh-update-card .uh-upd-eyebrow{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:#aac2ee;margin:0 0 8px}
#uh-update-card h2{font-size:clamp(24px,4vw,34px);line-height:1.15;letter-spacing:-.03em;margin:0 0 10px}
#uh-update-card p{color:#c1cfe3;margin:0 0 6px;max-width:640px}
#uh-update-card .uh-upd-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:18px}
#uh-update-card .uh-upd-foot{font-size:12px;color:#a9bad3;margin-top:14px}
button.uh-upd-primary{background:#a8c5ff;border:0;border-radius:10px;padding:12px 20px;color:#0d1c35;font-weight:700;font:inherit;cursor:pointer;min-height:44px}
button.uh-upd-quiet{background:transparent;color:#d2dcf0;border:1px solid #536887;border-radius:10px;padding:10px 16px;font:inherit;cursor:pointer;min-height:44px}
button.uh-upd-primary:focus-visible,button.uh-upd-quiet:focus-visible,#uh-update-pill:focus-visible,#uh-update-bar button:focus-visible,#uh-update-bar a:focus-visible{outline:3px solid #ffc18b;outline-offset:3px}
#uh-update-pill{position:fixed;right:16px;bottom:16px;z-index:30;background:#a8c5ff;color:#0d1c35;border:0;border-radius:999px;padding:10px 18px;font:inherit;font-weight:700;box-shadow:0 8px 28px #0006;cursor:pointer;min-height:44px}
#uh-update-status{color:#ffd9a8;font-size:13px;margin-top:10px;min-height:1.2em}
/* Evolution: real classic elements pick up the new design language, staggered, then the new app fades in. */
body.uh-evolving .uh-header,body.uh-evolving .uh-nav,body.uh-evolving .scene-controls,body.uh-evolving .uh-card,body.uh-evolving #file-workspace .uh-search input,body.uh-evolving #uh-update-card{transition:border-radius .9s,box-shadow .9s,transform .9s,background .9s,border-color .9s,filter .9s}
body.uh-evolving .uh-card,body.uh-evolving #uh-update-card{border-radius:24px;border-color:#94b6ff;box-shadow:0 18px 44px #0007,0 0 0 1px #94b6ff55,0 0 42px #94b6ff26;transform:translateY(-8px);background:#131f32;animation:uh-arrive 1.9s both}
body.uh-evolving .uh-card:nth-of-type(2){animation-delay:.2s}body.uh-evolving .uh-card:nth-of-type(3){animation-delay:.4s}
body.uh-evolving .uh-nav button{border-radius:999px;transition:border-radius .9s,background .9s,box-shadow .9s;animation:uh-pill-glow 1.6s both}
body.uh-evolving .uh-nav button:nth-child(2){animation-delay:.25s}
body.uh-evolving .uh-nav button.on{background:#94b6ff;color:#0d1c35}
body.uh-evolving .scene-controls button{animation:uh-pill-glow 1.6s both;animation-delay:.5s}
body.uh-evolving .uh-header .uh-logo{border-radius:14px;background:#94b6ff;color:#172d52;box-shadow:0 0 30px #94b6ff66;transition:border-radius .8s,background .8s,box-shadow .8s}
body.uh-evolving{animation:uh-warm 2.6s both}
@keyframes uh-arrive{0%{transform:translateY(0) scale(1);filter:brightness(1)}35%{transform:translateY(-22px) scale(.985);filter:brightness(1.6)}100%{transform:translateY(-8px) scale(1);filter:brightness(1.06)}}
@keyframes uh-pill-glow{0%{box-shadow:0 0 0 #94b6ff00}45%{box-shadow:0 0 26px #94b6ff88}100%{box-shadow:0 0 10px #94b6ff33}}
@keyframes uh-warm{0%{background:#081525}100%{background:#0b1220}}
@media(prefers-reduced-motion:reduce){body.uh-evolving *,body.uh-evolving{animation:none!important;transition:none!important}}
/* Floating card so the invitation is seen without scrolling, above the bottom nav on phones. */
#uh-update-card{position:fixed;left:16px;right:16px;bottom:16px;margin:0 auto;width:auto;max-width:560px;z-index:50;max-height:calc(100vh - 32px);overflow:auto;padding:20px 22px;background:#162136;box-shadow:0 24px 80px #000a}
#uh-update-card h2{font-size:clamp(20px,3.4vw,26px)}
#uh-update-card p{font-size:14px}
@media(max-width:760px){#uh-update-card{bottom:calc(84px + env(safe-area-inset-bottom,0px));max-height:calc(100vh - 110px)}#uh-update-pill{bottom:calc(84px + env(safe-area-inset-bottom,0px))}}
