
:root{
    --glass:        rgba(255,255,255,.07);
    --glass-strong: rgba(255,255,255,.11);
    --glass-hover:  rgba(255,255,255,.14);
    --border:       rgba(255,255,255,.12);
    --border-lit:   rgba(255,255,255,.22);

    --text:  #f8fafc;
    --muted: #94a3b8;
    --blue:  #3b82f6;
    --danger:#ef4444;

    --shadow:    0 16px 56px rgba(0,0,0,.5);
    --shadow-lg: 0 28px 90px rgba(0,0,0,.6);

    --header-h: 64px;
    --ease: cubic-bezier(.22,1,.36,1);
}

*{ margin:0; padding:0; box-sizing:border-box; }

html, body{ height:100%; }

body{
    font-family: "Segoe UI", Inter, system-ui, Roboto, sans-serif;
    color: var(--text);
    overflow: hidden;
}

.app{
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.spacer{ flex: 1; }

.app.is-leaving{ opacity: 0; transform: translateY(6px); }
.app{ transition: opacity .18s ease, transform .18s ease; }

.glass{
    background: var(--glass);
    backdrop-filter: blur(32px) saturate(150%);
    -webkit-backdrop-filter: blur(32px) saturate(150%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.button{
    font: inherit;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    background: var(--glass-strong);
    border: 1px solid var(--border);
    transition: background .18s, border-color .18s, transform .12s;
}
.button:hover{ background: var(--glass-hover); border-color: var(--border-lit); }
.button:active{ transform: translateY(1px); }
.button:disabled{ opacity: .45; cursor: default; }

.button--danger{
    background: rgba(239,68,68,.18);
    border-color: rgba(239,68,68,.32);
}
.button--danger:hover{
    background: rgba(239,68,68,.34);
    border-color: rgba(239,68,68,.5);
}

:focus-visible{
    outline: 2px solid rgba(59,130,246,.7);
    outline-offset: 2px;
}

.avatar{
    width: 46px; height: 46px;
    border-radius: 9px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg,#2563eb,#3b82f6);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.avatar img{ width:100%; height:100%; object-fit: cover; display:block; }
.avatar__initials{ font-size:1rem; font-weight:700; color:#fff; letter-spacing:.02em; }
.avatar--sm{ width:30px; height:30px; border-radius:7px; }
.avatar--sm .avatar__initials{ font-size:.75rem; }

@keyframes riseIn{
    from{ opacity:0; transform: translateY(16px); }
    to  { opacity:1; transform: none; }
}
@keyframes fadeIn{ from{ opacity:0; } to{ opacity:1; } }

.login{
    flex: 1;
    display: flex;
    align-items: stretch;
    min-height: 0;
}

.login__left{
    flex: 0 0 58%;
    display: flex; align-items: center; justify-content: center;
    padding: 48px;
    opacity: 0;
    animation: riseIn .65s var(--ease) .08s forwards;
}
.login__divider{
    width: 1px;
    flex-shrink: 0;
    margin: 48px 0;
    background: linear-gradient(180deg,
        transparent, var(--border) 15%, var(--border) 85%, transparent);
    opacity: 0;
    animation: fadeIn .4s ease .38s forwards;
}
.login__right{
    flex: 1;
    display: flex; align-items: center; justify-content: flex-start;
    padding: 48px 48px 48px 40px;
    min-width: 0;
    opacity: 0;
    animation: riseIn .55s var(--ease) .5s forwards;
}

.brand{
    display: flex; flex-direction: column; align-items: center;
    gap: 14px; text-align: center;
}
.brand__mark{ color: #FFD700; filter: drop-shadow(0 4px 18px rgba(255,215,0,.25)); }
.brand__title{ font-size: 2rem; font-weight: 300; letter-spacing: .01em; }
.brand__sub{ font-size: .95rem; color: var(--muted); max-width: 24ch; line-height: 1.55; }

.users{
    list-style: none;
    width: 320px;
    max-height: calc(100vh - 96px);

    overflow: hidden;
}
.users.is-settled{ overflow-y: auto; overflow-x: hidden; }
.users::-webkit-scrollbar{ width: 4px; }
.users::-webkit-scrollbar-track{ background: transparent; }
.users::-webkit-scrollbar-thumb{ background: var(--border); border-radius: 2px; }

.user{
    opacity: 0;
    animation: riseIn .38s var(--ease) calc(.62s + var(--i) * .075s) both;
    max-height: 74px;
    overflow: hidden;
    transition: max-height .32s var(--ease), opacity .26s ease,
                transform .28s var(--ease), margin .32s var(--ease);
}
.user__button{
    display: flex; align-items: center; gap: 14px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    background: none;
    border: 1px solid transparent;
    color: inherit; font: inherit; text-align: left;
    cursor: pointer;
    transition: background .18s, border-color .18s;
}
.user__button:hover{ background: var(--glass); border-color: var(--border); }
.user__name{ font-size: .95rem; font-weight: 600; }

.user.is-collapsed{
    max-height: 0; opacity: 0; margin: 0;
    transform: scaleY(0);
    pointer-events: none;
}
.user.is-collapsed[data-dir="up"]  { transform-origin: top center; }
.user.is-collapsed[data-dir="down"]{ transform-origin: bottom center; }
.user.is-selected .user__button{ cursor: default; }
.user.is-selected .user__button:hover{ background: none; border-color: transparent; }

.back{
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 24px;
    margin: 0 0 4px 14px;
    border-radius: 6px;
    background: var(--glass);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: background .18s;
    animation: fadeIn .2s ease;
}
.back:hover{ background: var(--glass-hover); }
.back img{ width: 14px; height: 14px; display: block; }

.passrow{ padding: 2px 14px 8px; animation: riseIn .22s ease; }
.passrow__error{
    font-size: .78rem; color: #f87171;
    padding-left: 2px; margin-bottom: 4px;
}
.passrow__error:empty{ display: none; }
.passrow__input{ display: flex; align-items: center; gap: 8px; }

.field{
    flex: 1; min-width: 0;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text);
    font: inherit; font-size: .9rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.field:focus{
    border-color: rgba(59,130,246,.45);
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.field::placeholder{ color: var(--muted); }

.go{
    width: 38px; height: 38px;
    flex-shrink: 0;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(59,130,246,.22);
    border: 1px solid rgba(59,130,246,.38);
    cursor: pointer;
    transition: background .2s, border-color .2s;
}
.go:hover{ background: rgba(59,130,246,.42); border-color: rgba(59,130,246,.6); }
.go:disabled{ opacity: .5; cursor: default; }
.go img{ width: 18px; height: 18px; display: block; }

.settling{
    padding: 4px 14px 10px;
    font-size: .85rem; color: var(--muted);
    animation: fadeIn .4s ease;
}

.topbar{
    display: flex; align-items: center; gap: 12px;
    height: var(--header-h);
    padding: 0 8px;
    flex-shrink: 0;
    animation: fadeIn .4s ease;
}

.topbar--session{
    background: var(--glass);
    backdrop-filter: blur(32px) saturate(150%);
    -webkit-backdrop-filter: blur(32px) saturate(150%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,.35);
    position: relative; z-index: 3;
}

.account{ position: relative; }
.account__pill{
    display: flex; align-items: center; gap: 10px;

    padding: 8px;

    border-radius: 12px;
    background: var(--glass);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid var(--border);
    box-shadow: 0 6px 24px rgba(0,0,0,.3);
    color: inherit; font: inherit;
    cursor: pointer;
    transition: background .18s, border-color .18s;
}
.account__pill:hover{ background: var(--glass-hover); border-color: var(--border-lit); }
.account__name{ font-size: .85rem; font-weight: 600; }
.account__chev{ color: var(--muted); transition: transform .2s var(--ease); }
.account__pill[aria-expanded="true"] .account__chev{ transform: rotate(180deg); }

.menu{
    position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 176px;
    padding: 6px;
    border-radius: 12px;
    background: rgba(15,20,40,.55);
    backdrop-filter: blur(32px) saturate(150%);
    -webkit-backdrop-filter: blur(32px) saturate(150%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    animation: riseIn .18s var(--ease);
    z-index: 20;
}
.menu[hidden]{ display: none; }
.menu__item{
    display: block; width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    background: none; border: none;
    color: inherit; font: inherit; font-size: .85rem; text-align: left;
    cursor: pointer;
    transition: background .15s;
}
.menu__item:hover{ background: var(--glass-hover); }

.home{
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 24px 24px 72px;
    min-height: 0;
}

.panel{
    width: min(760px, 100%);
    max-height: 100%;
    overflow-y: auto;
    padding: 40px 44px;
    border-radius: 20px;
    text-align: center;
    background: var(--glass);
    backdrop-filter: blur(36px) saturate(150%);
    -webkit-backdrop-filter: blur(36px) saturate(150%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    animation: riseIn .45s var(--ease);
}
.panel__title{ font-size: 1.5rem; font-weight: 300; }
.panel__sub{ margin-top: 8px; font-size: .9rem; color: var(--muted); }
.panel__status{
    margin-top: 22px;
    min-height: 1.2em;
    font-size: .85rem; color: var(--muted);
}
.panel__status[data-tone="error"]{ color: #f87171; }

.notice{
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 24px 24px 72px;
    min-height: 0;
}

.panel--notice{
    width: min(480px, 100%);
    padding: 44px 44px 40px;
}
.panel--notice .panel__sub{
    margin-top: 14px;
    max-width: 40ch;
    margin-left: auto; margin-right: auto;
    line-height: 1.6;
}

.notice__mark{
    display: flex; justify-content: center;
    margin-bottom: 22px;
    color: var(--muted);
    opacity: .85;
}

.notice__hint{
    margin-top: 20px !important;
    font-size: .82rem !important;
    opacity: .7;
}

.programs{
    list-style: none;
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
    gap: 8px;
}
.program{
    opacity: 0;
    animation: riseIn .34s var(--ease) calc(.1s + var(--i) * .06s) both;
}
.program__button{
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    width: 100%;
    padding: 18px 10px;
    border-radius: 14px;
    background: none;
    border: 1px solid transparent;
    color: inherit; font: inherit;
    cursor: pointer;
    transition: background .18s, border-color .18s, transform .18s var(--ease);
}
.program__button:hover{
    background: var(--glass);
    border-color: var(--border);
    transform: translateY(-2px);
}
.program__icon{
    width: 64px; height: 64px;
    display: block;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,.45));
    transition: transform .18s var(--ease);
}
.program__icon img{ width: 100%; height: 100%; display: block; }
.program__label{ font-size: .85rem; font-weight: 600; }

.programs.is-launching .program__button{ pointer-events: none; }
.programs.is-launching .program:not(.is-launching){ opacity: .32; }
.program.is-launching .program__icon{ animation: pulse 1.15s ease-in-out infinite; }
.program.is-launching .program__label{ color: var(--text); }

@keyframes pulse{
    0%, 100%{ transform: scale(1)    translateY(0);    filter: drop-shadow(0 8px 20px rgba(0,0,0,.45)); }
    50%     { transform: scale(1.12) translateY(-4px); filter: drop-shadow(0 16px 30px rgba(59,130,246,.45)); }
}

.session__icon{ width: 24px; height: 24px; flex-shrink: 0; }
.session__icon img{ width: 100%; height: 100%; display: block; }
.session__name{ font-size: .9rem; font-weight: 600; }
.session__dot{
    width: 7px; height: 7px; border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px rgba(74,222,128,.8);
}
.session__dot[data-state="ending"]{
    background: #fbbf24; box-shadow: 0 0 10px rgba(251,191,36,.8);
}

*{
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.28) transparent;
}

::-webkit-scrollbar{
    width: 11px;
    height: 11px;
}
::-webkit-scrollbar-track{
    background: rgba(255,255,255,.04);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb{
    border-radius: 999px;
    background: rgba(255,255,255,.20);

    border: 3px solid transparent;
    background-clip: content-box;
    transition: background-color .15s ease;
}
::-webkit-scrollbar-thumb:hover{
    background: rgba(255,255,255,.34);
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:active{
    background: rgba(150,190,255,.55);
    background-clip: content-box;
}

::-webkit-scrollbar-corner{ background: transparent; }

.brandbar{
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px;
    color: rgba(255,255,255,.72);
    user-select: none;
}
.brandbar__mark{ display: grid; place-items: center; opacity: .85; }

.brandbar__text{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    min-width: 0;
}

.brandbar__name{
    font-size: .88rem;
    letter-spacing: .04em;
    white-space: nowrap;
    line-height: 1.15;
}

.brandbar__beta{
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1;

    color: #f2675c;
    white-space: nowrap;
}

.topbar__left{
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}

.headprogress{
    position: absolute;
    top: calc(100% + 6px);

    left: 8px;

    width: max-content;
    max-width: 46vw;
    z-index: 4;
}
.headprogress[hidden]{ display: none; }

.headprogress__text{
    margin: 0 0 6px;
    font-size: .76rem;
    line-height: 1.35;
    color: rgba(255,255,255,.62);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.headprogress .launch-progress{ margin: 0; max-width: none; min-width: 220px; }

.brand__sub{ white-space: nowrap; }

.win.win--onboard{
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(660px, calc(100vw - 40px));
    z-index: 40;
}

.win--onboard .win__body{
    display: flex;
    flex-direction: column;
    min-height: 400px;
    padding: 24px 28px 20px;
}
.win--onboard .onboard__stage.is-current{ flex: 1; }

.win.win--onboard[style*="left"]{ transform: none; }

.onboard__welcome{
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    gap: 16px;
    padding: 10px 4px;
}
.onboard__key{ color: rgba(255,255,255,.55); }

.onboard__heading{
    margin: 0;
    font-size: 1.22rem;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(255,255,255,.92);
}
.onboard__lede{
    margin: 0;
    max-width: 46ch;
    font-size: .9rem;
    line-height: 1.6;
    color: rgba(255,255,255,.66);
}

.onboard__stage{ display: none; }
.onboard__stage.is-current{ display: block; }

.onboard__foot{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.10);
}
.onboard__status{
    flex: 1;
    margin: 0;
    font-size: .8rem;
    color: rgba(255,255,255,.60);
}
.onboard__status[data-tone="error"]{ color: #fca5a5; }

.win{
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(18,26,44,.55);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow:
        0 18px 50px rgba(0,0,0,.45),
        inset 0 1px 0 rgba(255,255,255,.12);
    overflow: hidden;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.win[hidden]{ display: none; }

.win.is-focused{
    border-color: rgba(255,255,255,.30);
    box-shadow:
        0 24px 64px rgba(0,0,0,.55),
        inset 0 1px 0 rgba(255,255,255,.18);
}

.win__bar{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    cursor: grab;
    user-select: none;
    background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
    border-bottom: 1px solid rgba(255,255,255,.10);
}
.win__bar.is-dragging{ cursor: grabbing; }

.win--bare{ cursor: grab; }
.win--bare.is-dragging{ cursor: grabbing; }
.win--bare button,
.win--bare a,
.win--bare input,
.win--bare label{ cursor: pointer; }
.win--bare .panel__title,
.win--bare .panel__sub,
.win--bare .panel__status{ cursor: inherit; }

.win__title{
    font-size: .82rem;
    letter-spacing: .02em;
    color: rgba(255,255,255,.78);
    flex: 1;
}

.win__x{
    width: 22px; height: 22px;
    display: grid; place-items: center;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 6px;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.75);
    font-size: .72rem;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.win__x:hover{ background: rgba(239,68,68,.35); color: #fff; }

.win__body{ padding: 22px 26px 24px; }

.win--prefs{
    width: min(760px, calc(100vw - 40px));
    margin: 0 auto;
}
.win--prefs .win__body{ padding: 0; }

.prefs{
    display: grid;
    grid-template-columns: 172px 1fr;
    grid-template-rows: 1fr auto;

    height: clamp(420px, calc(100vh - 240px), 580px);
}

.prefs__side{
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 10px;
    border-right: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.025);
}
.prefs__tab{
    text-align: left;
    border: 0;
    background: none;
    font: inherit;
    font-size: .85rem;
    color: rgba(255,255,255,.62);
    padding: 9px 12px;
    border-radius: 9px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.prefs__tab:hover{ background: rgba(255,255,255,.07); color: rgba(255,255,255,.9); }
.prefs__tab.is-current{
    background: rgba(59,130,246,.18);
    color: #fff;
    box-shadow: inset 2px 0 0 rgba(96,165,250,.95);
}

.prefs__content{
    padding: 20px 22px 8px;
    min-width: 0;
    min-height: 0;
    display: flex;
}
.prefs__pane{ display: none; }
.prefs__pane.is-current{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.prefs__hint{
    margin: 0 0 14px;
    font-size: .82rem;
    color: rgba(255,255,255,.60);
}

.picker{
    display: grid;
    gap: 10px;

    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 2px;

    align-content: start;

    grid-auto-rows: max-content;
}

.picker--avatars{ grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }

.picker--backgrounds{ grid-template-columns: repeat(3, 1fr); }

.picker__item{
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    background: rgba(255,255,255,.05);
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    transition: border-color .15s ease, transform .12s ease;
}
.picker--backgrounds .picker__item{ aspect-ratio: 16 / 10; }
.picker__item img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.picker__item:hover{ transform: translateY(-2px); border-color: rgba(255,255,255,.35); }

.picker__item.is-chosen{
    border-color: rgba(255,255,255,.85);
    box-shadow: none;
}
.picker__item:not(.is-chosen){ opacity: .74; }
.picker__item:not(.is-chosen):hover{ opacity: 1; }

.picker__item--none{ display: grid; place-items: center; }
.picker__none{ font-size: .78rem; color: rgba(255,255,255,.65); }

.prefs__form{ display: grid; gap: 14px; max-width: 340px; }

.formfield{ display: grid; gap: 6px; }

.formfield__label{
    font-size: .78rem;
    letter-spacing: .01em;
    color: rgba(255,255,255,.62);
}

.formfield__input{
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.16);
    color: var(--text);
    font: inherit;
    font-size: .9rem;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.formfield__input:hover{ background: rgba(255,255,255,.08); }
.formfield__input:focus{
    background: rgba(255,255,255,.09);
    border-color: rgba(96,165,250,.55);
    box-shadow: 0 0 0 3px rgba(59,130,246,.16);
}

.formfield__input:-webkit-autofill{
    -webkit-text-fill-color: var(--text);
    box-shadow: 0 0 0 1000px rgba(30,41,66,.96) inset;
}

.prefs__status{
    min-height: 1.2em;
    grid-column: 2;
    margin: 6px 22px 16px;
    font-size: .82rem;
    color: rgba(255,255,255,.62);
}
.prefs__status[data-tone="error"]{ color: #fca5a5; }
.prefs__status[data-tone="ok"]{ color: #86efac; }

.menu__rule{
    height: 1px;
    margin: 4px 0;
    background: rgba(255,255,255,.12);
}

.bgphoto{
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;

    transition: opacity .55s ease;
}
.bgphoto.is-shown{ opacity: 1; }
.bgphoto.is-leaving{ transition: opacity .28s ease; }

@media (prefers-reduced-motion: reduce){
    .bgphoto,.bgphoto.is-leaving{ transition: none; }
}

body.has-custom-bg .ambient .aur{ display: none; }

body.has-custom-bg .ambient{

    backdrop-filter: blur(7px) saturate(110%) brightness(.74);
    -webkit-backdrop-filter: blur(7px) saturate(110%) brightness(.74);
    background: rgba(8,12,22,.20);
}

@supports not (backdrop-filter: blur(1px)){
    body.has-custom-bg .ambient{ background: rgba(8,12,22,.48); }
}

.launch-progress{
    margin: 14px auto 4px;
    max-width: 320px;
}
.launch-progress[hidden]{ display: none; }

.launch-progress__track{
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: inset 0 1px 2px rgba(0,0,0,.35);
}

.launch-progress__fill{
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(120,190,255,.95), rgba(56,132,232,.95));
    box-shadow: 0 0 10px rgba(96,165,250,.55);

    transition: width .55s cubic-bezier(.25,.8,.3,1);
}

.launch-progress[data-mode="seeking"] .launch-progress__fill{
    width: 100%;
    background-image: repeating-linear-gradient(
        115deg,
        rgba(255,255,255,.30) 0 10px,
        rgba(255,255,255,.08) 10px 20px);
    background-size: 44px 100%;
    background-color: rgba(96,165,250,.30);
    box-shadow: none;
    animation: launch-marquee 900ms linear infinite;
}

@keyframes launch-marquee{
    from{ background-position: 44px 0; }
    to  { background-position:  0   0; }
}

@media (prefers-reduced-motion: reduce){
    .launch-progress[data-mode="seeking"] .launch-progress__fill{ animation: none; }
    .launch-progress__fill{ transition: none; }
}

.stage-host{
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 2;

    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity .35s ease;
}
.stage-host iframe{
    width: 100%; height: 100%;
    border: 0;
    display: block;
    background: #0b1020;
}
body.mode-session .stage-host{
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}
body.mode-session .app{ height: var(--header-h); }

@media (max-width: 860px){
    .login{ flex-direction: column; }
    .login__left{ flex: 0 0 auto; padding: 40px 24px 8px; }
    .login__divider{
        width: auto; height: 1px; margin: 0 40px;
        background: linear-gradient(90deg,
            transparent, var(--border) 15%, var(--border) 85%, transparent);
    }
    .login__right{ padding: 24px; justify-content: center; }
    .users{ width: 100%; max-width: 340px; }
    .panel{ padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce){
    *, *::before, *::after{
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

.filebar, .appbar{
    display: flex; align-items: center; gap: 8px;
    min-width: 0;
}
.filebar__btn{
    box-sizing: border-box;
    display: flex; align-items: center; gap: 8px;
    background: var(--glass);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid var(--border);
    box-shadow: 0 6px 24px rgba(0,0,0,.3);
    color: inherit; font: inherit;
    font-size: .85rem; font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background .18s, border-color .18s;
}

.filebar--home .filebar__btn{
    height: 48px;
    padding: 0 14px;
    border-radius: 12px;
}
.filebar--session .filebar__btn,
.appbar .filebar__btn{
    padding: 8px 14px;
    border-radius: 8px;
}
.filebar__btn:hover{ background: var(--glass-hover); border-color: var(--border-lit); }
.filebar__icon{ color: var(--muted); flex: 0 0 auto; }
.filebar__btn:hover .filebar__icon{ color: inherit; }

@media (max-width: 900px){
    .filebar__btn span{ display: none; }
    .filebar__btn{ padding: 8px; }
}
