.studio-gate {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: 100vh;
    place-items: center;
    overflow: hidden;
    padding: 2.5rem 1rem;
}
.studio-sky,
.studio-lights {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.studio-sky {
    z-index: 0;
    overflow: hidden;
    background: #061428 url("../images/hero/bg_hero.png") center 40% / cover no-repeat;
}
.studio-sky video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}
.studio-sky::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 20, 40, 0.28) 0%, rgba(6, 20, 40, 0.38) 55%, rgba(6, 20, 40, 0.62) 100%);
}
.studio-lights { z-index: 0; }
.studio-login,
.studio-panel {
    position: relative;
    z-index: 1;
}
.studio-login {
    width: min(28rem, 100%);
    border-radius: 1.7rem;
    border: 1px solid rgba(186, 230, 253, 0.22);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 32%),
        rgba(12, 35, 68, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 24px 60px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(16px);
    padding: 1.75rem 1.6rem 1.55rem;
}
.studio-kicker {
    margin-top: 0.85rem;
    text-align: center;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: #7dd3fc;
}
.studio-login h1 { margin-top: 0.2rem; text-align: center; font-size: 1.35rem; font-weight: 600; line-height: 1.35; }
.field { display: block; margin-top: 0.95rem; }
.field-name {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.88);
}
.field-name svg,
.studio-submit svg,
.nav svg,
.studio-out svg,
.studio-title svg,
.studio-sub svg,
.stat-ico svg,
.row-ico svg { width: 1.05rem; height: 1.05rem; flex: none; }
.field input,
.field select,
.field textarea {
    margin-top: 0.4rem;
    width: 100%;
    border-radius: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #061428;
    color: #fff;
    padding: 0.65rem 0.85rem;
}
.field input,
.field select { height: 2.75rem; }
.field input[type="file"] { height: auto; padding: 0.55rem 0.75rem; }
.captcha-note { margin: 0.4rem 0 0; font-size: 0.75rem; color: rgba(255, 255, 255, 0.48); }
.studio-submit {
    margin-top: 1.05rem;
    display: flex;
    width: 100%;
    height: 2.9rem;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 0.95rem;
    font-weight: 600;
    background: linear-gradient(135deg, #7dd3fc 0%, #0ea5e9 46%, #1d4ed8 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 12px 28px rgba(14, 116, 235, 0.4);
}
html.is-desk,
html.is-desk body { height: 100%; overflow: hidden; }
#app:not(.hidden) {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
    background: #071422;
}
.topbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 4rem;
    flex: none;
    padding: 0 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 18, 36, 0.92);
    backdrop-filter: blur(16px);
}
.icon-btn {
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e0f2fe;
}
.icon-btn svg { width: 1.15rem; height: 1.15rem; }
.brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 600;
}
.brand img { width: 2rem; height: 2rem; border-radius: 999px; object-fit: cover; }
.badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.4rem; margin-left: auto; }
.badge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    height: 1.85rem;
    padding: 0 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, 0.35);
    background: rgba(56, 189, 248, 0.14);
    color: #e0f2fe;
    font-size: 0.78rem;
}
.badge-soft {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.78);
}
.frame { position: relative; display: flex; flex: 1; min-height: 0; }
.side-backdrop {
    position: absolute;
    inset: 0;
    z-index: 25;
    border: 0;
    background: rgba(4, 10, 24, 0.55);
}
.side {
    display: flex;
    width: 16.5rem;
    flex: none;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: #081426;
}
.side-nav { flex: 1; overflow: auto; padding: 0.85rem 0.7rem 0.4rem; }
.side-group {
    margin: 0.85rem 0.55rem 0.35rem;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: rgba(186, 230, 253, 0.55);
}
.side-group:first-child { margin-top: 0.2rem; }
.side-link {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.65rem;
    height: 2.45rem;
    padding: 0 0.7rem;
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.9rem;
    text-align: left;
}
.side-link svg { width: 1.05rem; height: 1.05rem; flex: none; color: #7dd3fc; }
.side-link:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.side-link.is-on {
    color: #fff;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.18), rgba(29, 78, 216, 0.08));
}
.account-wrap { position: relative; padding: 0.7rem; }
.account {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    text-align: left;
}
.account:hover { background: rgba(255, 255, 255, 0.07); }
.avatar {
    display: grid;
    width: 2.1rem;
    height: 2.1rem;
    flex: none;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #38bdf8, #1d4ed8);
    font-size: 0.85rem;
    font-weight: 600;
}
.account-copy { display: flex; min-width: 0; flex-direction: column; }
.account-copy strong,
.menu-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.88rem; }
.account-copy small,
.menu-role { color: rgba(255, 255, 255, 0.5); font-size: 0.72rem; }
.account-more { width: 1rem; height: 1rem; margin-left: auto; flex: none; color: rgba(255, 255, 255, 0.45); }
.account-menu {
    position: absolute;
    right: 0.7rem;
    bottom: calc(100% - 0.15rem);
    left: 0.7rem;
    z-index: 5;
    padding: 0.45rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #10203a;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.account-menu p { margin: 0; padding: 0.35rem 0.55rem 0; }
.account-menu button {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.5rem;
    height: 2.3rem;
    margin-top: 0.35rem;
    padding: 0 0.55rem;
    border-radius: 0.65rem;
    color: #fecaca;
    font-size: 0.86rem;
}
.account-menu button svg { width: 1rem; height: 1rem; }
.account-menu button:hover { background: rgba(255, 255, 255, 0.06); }
.stage {
    flex: 1;
    min-width: 0;
    overflow: auto;
    padding: 1.4rem 1.25rem 2.5rem;
}
.view-head h1 { margin: 0; font-size: 1.45rem; font-weight: 600; }
.view-head p { margin: 0.25rem 0 0; color: rgba(255, 255, 255, 0.55); font-size: 0.88rem; }
.sheet {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1.1rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0c2344;
}
.bone {
    height: 4.6rem;
    border-radius: 1rem;
    background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.1), rgba(255,255,255,.04));
    background-size: 200% 100%;
    animation: bone-move 1.2s ease infinite;
}
.bone-stat { height: 7.2rem; }
@keyframes bone-move {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
}
#app.is-slim .side { width: 4.8rem; }
#app.is-slim .side-group,
#app.is-slim .side-link span,
#app.is-slim .account-copy,
#app.is-slim .account-more { display: none; }
#app.is-slim .side-link,
#app.is-slim .account { justify-content: center; padding-inline: 0; }
@media (min-width: 640px) {
    .sheet { grid-template-columns: 1fr 1fr; }
    .sheet .span-2 { grid-column: 1 / -1; }
}
@media (max-width: 959px) {
    .topbar { height: auto; min-height: 4rem; flex-wrap: wrap; padding-block: 0.55rem; }
    .badges { flex-basis: 100%; margin-left: 0; justify-content: flex-start; }
    .side {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 30;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
    }
    #app.is-drawer .side { transform: none; }
    .stage { padding: 1rem 0.85rem 2rem; }
}
@media (prefers-reduced-motion: reduce) {
    .bone { animation: none; }
    .side { transition: none; }
}
.stat-grid,
.card-grid { display: grid; gap: 0.75rem; margin-top: 1rem; }
.stat-grid { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.stat,
.row-card,
.patch-form {
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 42%),
        #0c2344;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.stat { padding: 1rem 1.05rem 1.1rem; }
.stat-ico,
.row-ico {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: 0.8rem;
    border: 1px solid rgba(125, 211, 252, 0.28);
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
}
.stat-label { margin-top: 0.75rem; font-size: 0.82rem; color: rgba(224, 242, 254, 0.78); }
.stat-value { margin-top: 0.15rem; font-size: 1.85rem; font-weight: 600; }
.row-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.95rem 1rem; }
.row-main { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.row-main p { margin: 0; }
.row-meta { margin-top: 0.15rem; font-size: 0.82rem; color: rgba(255, 255, 255, 0.58); }
.row-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.btn-sky,
.btn-line {
    height: 2.2rem;
    padding: 0 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
}
.btn-sky { background: linear-gradient(90deg, #38bdf8, #2563eb); }
.btn-line { border: 1px solid rgba(255, 255, 255, 0.2); }
.btn-warn { border-color: rgba(251, 191, 36, 0.45); color: #fde68a; }
.patch-form {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1.15rem;
}
@media (min-width: 640px) {
    .patch-form { grid-template-columns: 1fr 1fr; }
    .patch-form .span-2 { grid-column: 1 / -1; }
}
.empty {
    border-radius: 1rem;
    border: 1px dashed rgba(125, 211, 252, 0.28);
    padding: 1rem;
    color: rgba(255, 255, 255, 0.55);
}
