@font-face {
            font-family: "DM Sans";
            font-style: normal;
            font-weight: 400 700;
            font-display: swap;
            src: url("/static/fonts/dm-sans-latin-ext.woff2") format("woff2");
            unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
        }
        @font-face {
            font-family: "DM Sans";
            font-style: normal;
            font-weight: 400 700;
            font-display: swap;
            src: url("/static/fonts/dm-sans-latin.woff2") format("woff2");
            unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
        }
        @font-face {
            font-family: "Space Grotesk";
            font-style: normal;
            font-weight: 400 700;
            font-display: swap;
            src: url("/static/fonts/space-grotesk-vietnamese.woff2") format("woff2");
            unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
        }
        @font-face {
            font-family: "Space Grotesk";
            font-style: normal;
            font-weight: 400 700;
            font-display: swap;
            src: url("/static/fonts/space-grotesk-latin-ext.woff2") format("woff2");
            unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
        }
        @font-face {
            font-family: "Space Grotesk";
            font-style: normal;
            font-weight: 400 700;
            font-display: swap;
            src: url("/static/fonts/space-grotesk-latin.woff2") format("woff2");
            unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
        }
        @property --ambient-hue { syntax: "<angle>"; inherits: true; initial-value: 210deg; }
        @property --ambient-accent-hue { syntax: "<angle>"; inherits: true; initial-value: 278deg; }
        @property --ambient-level { syntax: "<number>"; inherits: true; initial-value: .2; }
        @property --ambient-accent-level { syntax: "<number>"; inherits: true; initial-value: .16; }
        @property --ambient-secondary-level { syntax: "<number>"; inherits: true; initial-value: .1; }
        @property --ambient-x { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
        @property --ambient-y { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
        @property --ambient-flash-hue { syntax: "<angle>"; inherits: true; initial-value: 278deg; }
        @property --ambient-flash-level { syntax: "<number>"; inherits: true; initial-value: .13; }
        @property --ambient-flash-secondary-level { syntax: "<number>"; inherits: true; initial-value: .08; }
        :root {
            color-scheme: dark;
            --bg: #07111e;
            --panel: #0c1928;
            --panel-raised: #13263b;
            --line: #263a50;
            --text: #f4f2ff;
            --muted: #a3a1b4;
            --green: #b9a4ff;
            --green-dark: #211a35;
            --blue: #d0c2ff;
            --red: #ff7777;
            --amber: #ffd27a;
            --radius: 16px;
            --ambient-base-hue: 269deg;
            --ambient-base-accent-hue: 286deg;
            --ambient-level: .17;
            --ambient-accent-level: .055;
            --ambient-secondary-level: .025;
            --ambient-flash-level: .07;
            --ambient-flash-secondary-level: .035;
        }
        :root[data-accent="blue"] { --green: #75c7ff; --green-dark: #112a3c; --blue: #c1e4ff; }
        :root[data-accent="violet"] { --green: #b9a4ff; --green-dark: #211a35; --blue: #d0c2ff; }
        :root[data-accent="teal"] { --green: #73d8b4; --green-dark: #102a25; --blue: #b0ffdf; }
        :root[data-accent="rose"] { --green: #ff9eb7; --green-dark: #351923; --blue: #ffd0dc; }
        :root[data-accent="orange"] { --green: #ffb55f; --green-dark: #382417; --blue: #ffe0b8; }
        :root[data-reduce-motion="on"] *,
        :root[data-reduce-motion="on"] *::before,
        :root[data-reduce-motion="on"] *::after {
            scroll-behavior: auto !important;
            animation-duration: .01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: .01ms !important;
        }
        * { box-sizing: border-box; }
        html.theme-transitioning *,
        html.theme-transitioning *::before,
        html.theme-transitioning *::after {
            transition-property: color, background-color, border-color, fill, stroke !important;
            transition-duration: 360ms !important;
            transition-timing-function: cubic-bezier(.22, 1, .36, 1) !important;
        }
        @media (prefers-reduced-motion: reduce) {
            html.theme-transitioning *,
            html.theme-transitioning *::before,
            html.theme-transitioning *::after { transition-duration: .01ms !important; }
        }
        body {
            position: relative;
            isolation: isolate;
            margin: 0;
            min-height: 100vh;
            color: var(--text);
            background: var(--bg);
            font-family: "DM Sans", system-ui, sans-serif;
            transition:
                --ambient-hue 1.2s cubic-bezier(.22, 1, .36, 1),
                --ambient-accent-hue 1.2s cubic-bezier(.22, 1, .36, 1),
                --ambient-level 1.2s cubic-bezier(.22, 1, .36, 1),
                --ambient-accent-level 1.2s cubic-bezier(.22, 1, .36, 1),
                --ambient-secondary-level 1.2s cubic-bezier(.22, 1, .36, 1),
                --ambient-x 1.2s cubic-bezier(.22, 1, .36, 1),
                --ambient-y 1.2s cubic-bezier(.22, 1, .36, 1),
                --ambient-flash-hue 1s cubic-bezier(.22, 1, .36, 1),
                --ambient-flash-level 1s cubic-bezier(.22, 1, .36, 1),
                --ambient-flash-secondary-level 1s cubic-bezier(.22, 1, .36, 1);
        }
        body::before, body::after {
            content: "";
            position: fixed;
            z-index: -1;
            inset: -24%;
            pointer-events: none;
            will-change: transform, opacity;
        }
        body::before {
            background:
                radial-gradient(ellipse at 82% 76%, hsl(var(--ambient-base-hue, 269deg) 86% 56% / .17), transparent 52%),
                radial-gradient(ellipse at 87% 80%, hsl(var(--ambient-base-accent-hue, 286deg) 96% 66% / .12), transparent 32%),
                radial-gradient(ellipse at calc(98% - var(--ambient-x, 0%)) 2%, hsl(var(--ambient-hue, 268deg) 92% 62% / var(--ambient-level, .17)), transparent 39%),
                radial-gradient(ellipse at calc(2% + var(--ambient-x, 0%)) calc(100% - var(--ambient-y, 0%)), hsl(var(--ambient-accent-hue, 190deg) 88% 58% / var(--ambient-accent-level, .055)), transparent 32%),
                radial-gradient(ellipse at 52% 52%, hsl(calc(var(--ambient-hue, 268deg) + 34deg) 86% 48% / var(--ambient-secondary-level, .025)), transparent 50%);
            background-size: 100% 100%;
            animation: ambient-drift 36s cubic-bezier(.45, 0, .55, 1) infinite alternate;
            transition: opacity 1.2s cubic-bezier(.22, 1, .36, 1);
        }
        body::after {
            inset: -35%;
            background: radial-gradient(ellipse at 92% 3%, hsl(var(--ambient-flash-hue, 278deg) 90% 58% / var(--ambient-flash-level, .07)), hsl(var(--ambient-flash-hue, 278deg) 100% 34% / var(--ambient-flash-secondary-level, .035)) 42%, transparent 70%);
            animation: ambient-breathe 18s cubic-bezier(.45, 0, .55, 1) infinite alternate;
            transition: opacity 1.2s cubic-bezier(.22, 1, .36, 1);
        }
        body[data-ambient-state="active"]::before { opacity: .96; }
        body[data-ambient-state="success"]::before { opacity: 1; }
        body[data-ambient-state="failure"]::before { opacity: 1; }
        body.failure-alert::after {
            --ambient-flash-hue: 0deg;
            --ambient-flash-level: .58;
            --ambient-flash-secondary-level: .34;
            animation: failure-flash .9s ease-in-out 2;
        }
        body.failure-alert .shell { animation: failure-shake .9s ease-in-out 1; }
        button, input, select { font: inherit; }
        button { color: inherit; }
        .shell { width: min(1040px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 64px; }
        #siteShell:not(.auth-locked) { width: 100%; max-width: 1680px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
        header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 24px; }
        .brand { display: flex; align-items: center; gap: 12px; }
        .brand-name {
            position: relative; isolation: isolate; padding: 0; border: 0; background: transparent; color: var(--text);
            font: 700 18px "Space Grotesk", sans-serif; letter-spacing: -.04em; cursor: pointer;
        }
        .brand-name::before {
            position: absolute; z-index: 0; inset: -12px -20px; border-radius: 50%;
            background: radial-gradient(ellipse, rgba(87,176,255,.68), rgba(48,125,255,.28) 42%, transparent 74%);
            content: ""; opacity: 0; filter: blur(10px); pointer-events: none;
        }
        .brand-label { position: relative; z-index: 2; display: inline-block; }
        .brand-fire {
            display: none; position: absolute; z-index: 1; inset: -18px -26px;
            border-radius: 50%; pointer-events: none;
        }
        .brand-fire::before {
            content: ""; position: absolute; inset: 8% 5%; border-radius: 50%;
            background:
                radial-gradient(ellipse at 50% 68%, rgba(255,250,178,.98) 0 8%, rgba(255,166,40,.9) 20%, rgba(242,58,18,.65) 42%, transparent 68%),
                radial-gradient(ellipse at 18% 76%, rgba(255,119,24,.8) 0 10%, transparent 46%),
                radial-gradient(ellipse at 82% 73%, rgba(255,194,48,.82) 0 9%, transparent 45%);
            filter: blur(5px) saturate(1.4);
        }
        .brand-fire::after {
            content: ""; position: absolute; inset: 0;
            background:
                radial-gradient(circle at 15% 37%, #fff2ad 0 1.5px, transparent 2.5px),
                radial-gradient(circle at 28% 13%, #ff9b3d 0 1.5px, transparent 2.5px),
                radial-gradient(circle at 76% 20%, #fff2ad 0 1.5px, transparent 2.5px),
                radial-gradient(circle at 91% 54%, #ff8131 0 1.5px, transparent 2.5px),
                radial-gradient(circle at 69% 91%, #fff2ad 0 1.5px, transparent 2.5px),
                radial-gradient(circle at 34% 86%, #ff8131 0 1.5px, transparent 2.5px);
        }
        .brand-name:hover { color: var(--blue); }
        .brand-caption { margin-top: 2px; color: var(--muted); font-size: 12px; }
        .header-actions { display: flex; align-items: center; gap: 10px; }
        .main-nav { display: flex; align-items: center; gap: 5px; }
        .mobile-nav-shell { display: none; }
        .profile-menu { position: relative; }
        .profile-menu-trigger {
            position: relative; display: grid; place-items: center; width: 38px; height: 38px; overflow: hidden;
            border: 1px solid #345277; border-radius: 50%; background: #172b42;
            color: #b6dcff; cursor: pointer; font: 600 14px "Space Grotesk", sans-serif;
        }
        .profile-menu-trigger img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
        .profile-menu-trigger img[hidden], .profile-avatar img[hidden] { display: none !important; }
        .profile-menu-trigger:hover, .profile-menu-trigger:focus-visible { border-color: #83c8ff; box-shadow: 0 0 0 3px rgba(115,186,255,.12); }
        .profile-menu-panel {
            position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; display: grid;
            min-width: 180px; padding: 5px; border: 1px solid #345277; border-radius: 10px;
            background: #080e18; box-shadow: 0 12px 30px rgba(0,0,0,.4);
        }
        .profile-menu-panel[hidden] { display: none !important; }
        .profile-menu-panel button {
            padding: 9px 10px; border: 0; border-radius: 6px; background: transparent;
            color: #c7d9ec; cursor: pointer; text-align: left; font-size: 11px;
        }
        .profile-menu-panel button:hover, .profile-menu-panel button:focus-visible { background: #1b3049; color: #fff; }
        .profile-menu-message { padding: 4px 10px 7px; color: #efbd70; font-size: 10px; line-height: 1.4; }
        .profile-menu-message[hidden] { display: none !important; }
        .nav-button {
            min-height: 38px; padding: 0 11px; border: 1px solid transparent; border-radius: 9px;
            background: transparent; color: #a9bad0; cursor: pointer; font-size: 12px;
        }
        .nav-button:hover, .nav-button.active { border-color: #345277; background: #172b42; color: #b6dcff; }
        .page-section[hidden] { display: none !important; }
        .auth-gate {
            position: fixed; z-index: 50; inset: 0; display: grid; place-items: center;
            overflow-x: hidden; overflow-y: auto; padding: 16px;
            background:
                radial-gradient(ellipse at 18% 18%, hsl(var(--ambient-hue, 210deg) 80% 55% / .12), transparent 38%),
                radial-gradient(ellipse at 84% 82%, hsl(var(--ambient-accent-hue, 278deg) 80% 55% / .1), transparent 40%),
                var(--bg);
            backdrop-filter: blur(16px);
        }
        .auth-gate::before { content: ""; position: absolute; inset: -35%; pointer-events: none; }
        .auth-gate::before {
            background:
                radial-gradient(ellipse at 28% 36%, hsl(var(--ambient-hue, 210deg) 78% 58% / .15), transparent 31%),
                radial-gradient(ellipse at 72% 62%, hsl(var(--ambient-accent-hue, 278deg) 78% 58% / .12), transparent 34%);
            filter: blur(32px);
        }
        .auth-gate[hidden] { display: none !important; }
        .auth-loading-screen {
            position: fixed; z-index: 60; inset: 0; display: grid; place-items: center;
            padding: 24px; background: var(--bg); color: var(--text);
        }
        .auth-loading-screen[hidden] { display: none !important; }
        .auth-loading-card { display: grid; justify-items: center; gap: 16px; text-align: center; }
        .auth-loading-spinner {
            width: 38px; height: 38px; border: 3px solid rgba(155,209,255,.2);
            border-top-color: var(--green); border-radius: 50%; animation: upload-spinner .8s linear infinite;
        }
        .auth-loading-card p { margin: 0; color: var(--muted); font-size: 12px; }
        .auth-card {
            position: relative; z-index: 1; isolation: isolate; width: min(440px, 100%); max-height: calc(100vh - 32px);
            overflow-y: auto; margin: auto; padding: 26px;
            border: 1px solid var(--line); border-radius: 17px;
            background: radial-gradient(ellipse at 100% 0%, hsl(var(--ambient-hue, 210deg) 72% 55% / .12), transparent 48%), var(--panel);
            box-shadow: 0 24px 80px rgba(0,0,0,.48);
        }
        .auth-card::before {
            content: ""; position: absolute; z-index: 0; top: 0; left: 12%; width: 76%; height: 1px;
            background: linear-gradient(90deg, transparent, #9bd1ff 50%, transparent);
            opacity: .72;
            pointer-events: none;
        }
        .auth-card > * { position: relative; z-index: 1; }
        .auth-startup-status {
            margin-bottom: 18px; color: #9bcfff; font: 600 10px "Space Grotesk", sans-serif;
            letter-spacing: .12em; text-transform: uppercase;
        }
        .is-loading { position: relative; color: transparent !important; pointer-events: none; }
        .is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 15px; height: 15px; margin: -8px; border: 2px solid rgba(255,255,255,.28); border-top-color: #fff; border-radius: 50%; animation: upload-spinner .7s linear infinite; }
        .maintenance-mode .auth-card { border-color: #d6a85f; box-shadow: 0 24px 100px rgba(255,174,75,.22); }
        .maintenance-mode .auth-card::before { background: linear-gradient(90deg, transparent, #ffd27a, transparent); }
        .site-announcement {
            margin: 0 0 16px; padding: 11px 14px; border: 1px solid #365775;
            border-radius: 10px; background: linear-gradient(100deg, rgba(23,52,77,.96), rgba(21,34,53,.96));
            color: #d8ecff; font-size: 12px; line-height: 1.5;
        }
        .auth-announcement { margin: 0 0 15px; padding: 10px 12px; }
        .site-announcement[hidden], .maintenance-screen[hidden] { display: none !important; }
        body.safe-shutdown-active #dropzone { opacity: .62; }
        body.safe-shutdown-active #chooseFiles,
        body.safe-shutdown-active #submitBtn { cursor: not-allowed; opacity: .55; }
        .maintenance-screen {
            position: fixed; z-index: 45; inset: 0; display: grid; place-items: center;
            padding: 24px; overflow: hidden; color: var(--text);
            background:
                radial-gradient(ellipse at 18% 18%, hsl(var(--ambient-hue, 210deg) 80% 55% / .14), transparent 38%),
                radial-gradient(ellipse at 84% 82%, hsl(var(--ambient-accent-hue, 278deg) 80% 55% / .1), transparent 40%),
                var(--bg);
        }
        .maintenance-card {
            width: min(560px, 100%); padding: clamp(24px, 5vw, 42px);
            border: 1px solid #293c53; border-radius: 18px;
            background: rgba(7,13,21,.98); box-shadow: 0 24px 80px rgba(0,0,0,.4);
            animation: sign-in-reveal .55s cubic-bezier(.18,.8,.25,1) both;
        }
        .maintenance-kicker { color: #a9c7e5; font: 600 10px "Space Grotesk", sans-serif; letter-spacing: .16em; text-transform: uppercase; }
        .maintenance-card h1 { margin: 13px 0 10px; font: 600 clamp(27px, 5vw, 38px) "Space Grotesk", sans-serif; }
        .maintenance-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
        .maintenance-announcement {
            margin: 22px 0 14px; padding: 15px 16px; border-left: 3px solid #9bd1ff;
            border-radius: 0 9px 9px 0; background: #13243a; color: #e2f2ff;
            font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere;
        }
        .maintenance-announcement[hidden] { display: none; }
        .maintenance-footnote { margin-top: 17px !important; font-size: 11px !important; }
        .maintenance-admin-trigger {
            position: fixed; right: 12px; bottom: 12px; z-index: 2; width: 34px; height: 34px;
            border: 1px solid rgba(155,209,255,.2); border-radius: 9px;
            background: rgba(20,36,54,.28); color: #c4dff8; opacity: .08;
            cursor: pointer; transition: opacity .2s ease, background-color .2s ease;
        }
        .maintenance-admin-trigger:hover, .maintenance-admin-trigger:focus-visible {
            opacity: .9; background: rgba(20,36,54,.9);
        }
        .auth-gate:not([hidden]) { animation: auth-backdrop-in .55s ease-out both; }
        .auth-gate.is-exiting:not([hidden]) { animation: auth-gate-exit .58s ease-in both; }
        .auth-gate.is-exiting:not([hidden]) .auth-card { animation: auth-card-exit .55s cubic-bezier(.4,0,.8,.35) both; }
        .auth-gate:not([hidden]) .auth-card { animation: login-arrive .85s cubic-bezier(.16,1,.3,1) both; }
        .auth-gate:not([hidden]) .auth-card > * { animation: login-content-arrive .48s cubic-bezier(.2,.75,.25,1) both; }
        .auth-gate:not([hidden]) .auth-card > *:nth-child(2) { animation-delay: .08s; }
        .auth-gate:not([hidden]) .auth-card > *:nth-child(3) { animation-delay: .13s; }
        .auth-gate:not([hidden]) .auth-card > *:nth-child(4) { animation-delay: .18s; }
        .auth-gate:not([hidden]) .auth-card > *:nth-child(5) { animation-delay: .24s; }
        .auth-gate:not([hidden]) .auth-card > *:nth-child(6) { animation-delay: .3s; }
        .auth-gate:not([hidden]) .auth-card > *:nth-child(7) { animation-delay: .35s; }
        .auth-gate:not([hidden]) .auth-form:not([hidden]) > label,
        .auth-gate:not([hidden]) .auth-form:not([hidden]) > .account-contact,
        .auth-gate:not([hidden]) .auth-form:not([hidden]) > button {
            animation: login-content-arrive .46s cubic-bezier(.2,.75,.25,1) both;
        }
        .auth-gate:not([hidden]) .auth-form:not([hidden]) > :nth-child(2) { animation-delay: .08s; }
        .auth-gate:not([hidden]) .auth-form:not([hidden]) > :nth-child(3) { animation-delay: .15s; }
        .auth-gate:not([hidden]) .auth-form:not([hidden]) > :nth-child(4) { animation-delay: .22s; }
        .auth-gate:not([hidden]) .auth-form:not([hidden]) > :nth-child(5) { animation-delay: .29s; }
        .auth-gate:not([hidden]) .auth-form:not([hidden]) > :nth-child(6) { animation-delay: .36s; }
        .auth-card h1 { margin: 10px 0 8px; font-size: 29px; }
        .auth-card p { color: var(--muted); font-size: 12px; line-height: 1.6; }
        .auth-form { display: grid; gap: 12px; margin-top: 18px; }
        .auth-form[hidden] { display: none !important; }
        .saved-account-section { display: grid; gap: 9px; margin-top: 18px; }
        .saved-account-section[hidden] { display: none !important; }
        .saved-account-heading { display: flex; justify-content: space-between; gap: 10px; color: #d8e9fa; font-size: 11px; }
        .saved-account-heading span { color: #819bb5; font-size: 10px; }
        .saved-account-list { display: grid; gap: 8px; }
        .saved-account-row {
            display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px;
            border: 1px solid #273e57; border-radius: 10px; background: rgba(18,34,51,.8);
        }
        .saved-account-login {
            display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1;
            padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; text-align: left;
        }
        .saved-account-login:hover .saved-account-copy strong { color: #b6dcff; }
        .saved-account-avatar {
            display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px;
            border: 1px solid #3c6388; border-radius: 50%; background: #142942; color: #b6dcff;
            font-size: 13px; font-weight: 700;
        }
        .saved-account-copy { display: grid; gap: 3px; min-width: 0; }
        .saved-account-copy strong { overflow: hidden; color: #e4effa; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
        .saved-account-copy small { color: #91a8bf; font-size: 9px; }
        .saved-account-action { flex: 0 0 auto; padding: 5px 7px; border: 1px solid #344b63; border-radius: 7px; background: transparent; color: #9db4ca; cursor: pointer; font-size: 9px; }
        .saved-account-action:hover { border-color: #9bd1ff; color: #e5f4ff; }
        .saved-account-message { margin: 0 !important; color: #efbd70 !important; font-size: 10px !important; }
        .saved-account-message:empty { display: none; }
        .saved-account-row button:disabled { opacity: .55; cursor: wait; }
        .auth-form label, .account-field label { display: grid; gap: 6px; color: #bacbe0; font-size: 11px; }
        .auth-form .remember-option { display: flex; align-items: center; gap: 8px; color: #bacbe0; font-size: 10px; }
        .auth-form .remember-option input { width: 15px; min-height: 15px; margin: 0; accent-color: #83c8ff; }
        .auth-form .remember-storage-note { margin: -7px 0 0 23px; color: #91a8bf; font-size: 9px; line-height: 1.45; }
        .terms-copy { padding: 10px; border: 1px solid #2b3042; border-radius: 9px; background: #0a0b12; color: var(--muted); font-size: 10px; line-height: 1.5; }
        .terms-copy summary { color: #d6d1e9; cursor: pointer; font-weight: 600; }
        .terms-copy p { margin: 8px 0 0; font-size: 10px; }
        .auth-form .terms-accept { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 10px; line-height: 1.5; }
        .auth-form .terms-accept input { width: 15px; min-width: 15px; min-height: 15px; margin: 1px 0 0; accent-color: #9d88ff; }
        .auth-form input, .account-field input { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #30445e; border-radius: 9px; outline: none; background: #0b1522; color: var(--text); }
        .auth-form input:focus, .account-field input:focus {
            border-color: #6eacdf; box-shadow: 0 0 0 3px rgba(115,186,255,.12), 0 0 22px rgba(95,169,235,.12);
            transition: border-color .2s ease, box-shadow .2s ease;
        }
        .auth-error, .account-message { min-height: 18px; color: var(--red); font-size: 11px; }
        .auth-switch { width: 100%; margin-top: 14px; border: 0; background: transparent; color: #a9d4ff; cursor: pointer; font-size: 11px; }
        .auth-switch:hover { color: #fff; text-shadow: 0 0 14px rgba(155,209,255,.65); }
        .auth-guest-button { width: 100%; justify-content: center; margin-top: 10px; }
        .auth-theme-toggle { margin-top: 4px; opacity: .82; }
        .sign-in-arrival > header { animation: sign-in-reveal .6s cubic-bezier(.18,.8,.25,1) both; }
        .sign-in-arrival .page-section:not([hidden]) > * { animation: sign-in-reveal .68s cubic-bezier(.18,.8,.25,1) both; }
        .sign-in-arrival .page-section:not([hidden]) > :nth-child(2) { animation-delay: .08s; }
        .sign-in-arrival .page-section:not([hidden]) > :nth-child(3) { animation-delay: .16s; }
        .sign-in-arrival .page-section:not([hidden]) > :nth-child(4) { animation-delay: .24s; }
        .welcome-banner {
            position: fixed; z-index: 55; right: 20px; bottom: 20px; width: min(340px, calc(100vw - 40px));
            display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 16px;
            border: 1px solid #31506f; border-radius: 12px;
            background: linear-gradient(105deg, rgba(30,67,99,.96), rgba(22,36,58,.98));
            box-shadow: 0 14px 44px rgba(0,0,0,.38);
        }
        .welcome-banner[hidden] { display: none; }
        .welcome-banner.is-entering { animation: welcome-toast-in .6s cubic-bezier(.18,.9,.25,1.1) both; }
        @keyframes welcome-toast-in { from { opacity: 0; transform: translateX(40px) scale(.94); } to { opacity: 1; transform: translateX(0) scale(1); } }
        :root[data-reduce-graphics="on"] *, :root[data-reduce-graphics="on"] *::before, :root[data-reduce-graphics="on"] *::after {
            animation: none !important; transition: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
            text-shadow: none !important; scroll-behavior: auto !important;
        }
        :root[data-reduce-graphics="on"] body::before, :root[data-reduce-graphics="on"] body::after { display: none !important; }
        :root[data-reduce-graphics="on"] .egg-layer { display: none !important; }
        :root[data-reduce-graphics="on"] body.easter-egg #brandEasterEgg .brand-fire { display: none !important; }
        :root[data-reduce-graphics="on"] .auth-gate { background: var(--bg) !important; }
        :root[data-reduce-graphics="on"] .auth-loading-spinner { animation: none !important; border-top-color: #9bd1ff; }
        :root[data-reduce-graphics="on"] .welcome-banner, :root[data-reduce-graphics="on"] .upload-progress-dock { box-shadow: none !important; }
        .welcome-mark { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: #83d7bd; color: #071b1a; font-weight: 700; }
        .welcome-copy { display: grid; gap: 3px; min-width: 0; }
        .welcome-copy strong { color: #eaf6ff; font: 600 13px "Space Grotesk", sans-serif; }
        .welcome-copy span { color: #abc2d9; font-size: 10px; }
        .welcome-dismiss { margin-left: auto; padding: 5px 8px; border: 0; background: transparent; color: #abc2d9; cursor: pointer; font-size: 10px; }
        .upload-progress-dock {
            position: fixed; left: 50%; bottom: 16px; z-index: 38;
            width: min(560px, calc(100vw - 28px)); padding: 13px 15px;
            border: 1px solid #365775; border-radius: 13px;
            background: rgba(12,24,39,.97); box-shadow: 0 16px 48px rgba(0,0,0,.45);
            color: var(--text); transform: translateX(-50%);
        }
        .upload-progress-dock[hidden] { display: none !important; }
        .coffee-link {
            position: fixed; left: 18px; bottom: 18px; z-index: 39;
            display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
            padding: 0 15px 0 12px; border: 1px solid #d49b33; border-radius: 999px;
            background: linear-gradient(135deg, #ffe08a, #ffc34e); color: #30220b;
            box-shadow: 0 10px 28px rgba(0,0,0,.26); text-decoration: none;
            font-size: 11px; font-weight: 700;
            transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
        }
        .coffee-link svg { width: 19px; height: 19px; flex: 0 0 19px; }
        .coffee-link:hover { transform: translateY(-3px); filter: saturate(1.08); box-shadow: 0 14px 32px rgba(0,0,0,.32); }
        .coffee-link:focus-visible { outline: 3px solid #73baff; outline-offset: 3px; }
        #uploadProgressDock:not([hidden]) ~ .coffee-link { bottom: 136px; }
        .upload-dock-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
        .upload-dock-copy { display: grid; gap: 4px; min-width: 0; }
        .upload-dock-copy strong { color: #dceeff; font: 600 12px "Space Grotesk", sans-serif; }
        .upload-dock-copy span { overflow: hidden; color: #9db3cb; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
        .upload-dock-percent { color: #a9d4ff; font: 600 11px "Space Grotesk", sans-serif; white-space: nowrap; }
        .upload-dock-meter { height: 5px; margin: 10px 0; overflow: hidden; border-radius: 5px; background: #23344a; }
        .upload-dock-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #72bbff, #7fe0c4); transition: width .2s ease; }
        .upload-dock-actions { display: flex; justify-content: flex-end; }
        .upload-dock-actions button { padding: 6px 9px; border: 1px solid #345277; border-radius: 7px; background: #172b42; color: #c4e0ff; cursor: pointer; font-size: 9px; font-weight: 600; }
        @media (max-width: 560px) {
            .upload-progress-dock { bottom: 10px; padding: 11px 12px; }
            .upload-dock-copy span { max-width: 70vw; }
            .coffee-link { left: 12px; bottom: 12px; min-height: 40px; padding: 0 11px; font-size: 10px; }
            #uploadProgressDock:not([hidden]) ~ .coffee-link { bottom: 128px; }
        }
        @keyframes auth-gate-exit { to { opacity: 0; backdrop-filter: blur(0); } }
        @keyframes auth-card-exit { to { opacity: 0; transform: translateY(-22px) scale(.97); filter: blur(5px); } }
        @keyframes sign-in-reveal { from { opacity: 0; transform: translateY(18px); filter: blur(5px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
        .plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 22px 0 18px; }
        .plan-card {
            position: relative; display: flex; flex-direction: column; padding: 20px; overflow: hidden;
            border: 1px solid var(--line); border-radius: 15px; background: var(--panel);
            transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
            animation: page-enter .5s cubic-bezier(.2,.7,.25,1) both;
        }
        .plan-card:nth-child(2) { animation-delay: .06s; }
        .plan-card:nth-child(3) { animation-delay: .12s; }
        .plan-card:nth-child(4) { animation-delay: .18s; }
        .plan-card:hover { transform: translateY(-6px); border-color: #5797d3; box-shadow: 0 18px 42px rgba(37,111,188,.22); }
        .plan-card.featured { border-color: #5f9fdc; box-shadow: 0 0 0 1px rgba(133,195,255,.18) inset, 0 12px 38px rgba(70,140,215,.18); }
        .plan-card.current { border-color: #7fe0c4; }
        .plan-card.featured::before {
            content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
            background: linear-gradient(90deg, #73baff, #8ee0d0, #aaa1ff, #73baff); background-size: 220% 100%;
            animation: shimmer 3.2s linear infinite;
        }
        .plan-badge { align-self: flex-start; margin-bottom: 8px; padding: 3px 8px; border-radius: 20px; background: #1d3a58; color: #bfe0ff; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
        .plan-card h2 { font-size: 17px; }
        .plan-price { margin: 10px 0 14px; font: 700 30px "Space Grotesk", sans-serif; letter-spacing: -.03em; }
        .plan-price small { color: var(--muted); font: 500 11px "DM Sans", sans-serif; letter-spacing: 0; }
        .plan-features { display: grid; flex: 1; gap: 9px; margin: 0 0 18px; padding: 0; list-style: none; color: #bccbe0; font-size: 12px; line-height: 1.45; }
        .plan-features li { position: relative; padding-left: 19px; }
        .plan-features li::before { content: "✓"; position: absolute; left: 0; color: #7fe0c4; font-weight: 700; }
        .plan-card .account-button { width: 100%; min-height: 40px; }
        .plan-message { min-height: 18px; color: #ffd27a; font-size: 12px; }
        .plan-perks { margin-top: 10px; color: var(--muted); font-size: 11px; }
        .plan-perks a { color: #a9d4ff; cursor: pointer; text-decoration: underline; }
        .plan-perks .fast-on { color: #7fe0c4; }
        @media (max-width: 960px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
        @media (max-width: 560px) { .plan-grid { grid-template-columns: 1fr; } }
        @media (max-width: 560px) {
            .admin-grid, .admin-list-grid, .admin-capacity, .admin-health-grid { grid-template-columns: 1fr; }
            .admin-form--wide { grid-column: auto; }
            .admin-panel-header { flex-direction: column; }
            .admin-account-row { flex-wrap: wrap; }
            .admin-account-main { flex-basis: calc(100% - 18px); }
        }
        .shell.auth-locked { display: none; }
        .account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
        .account-panel--wide { grid-column: 1 / -1; }
        .account-panel { padding: 21px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
        .account-panel h2 { margin: 0 0 7px; font: 600 16px "Space Grotesk", sans-serif; }
        .account-panel > p { margin: 0 0 15px; color: var(--muted); font-size: 11px; line-height: 1.55; }
        .profile-row { display: flex; align-items: center; gap: 14px; margin: 14px 0; }
        .profile-avatar { position: relative; display: grid; place-items: center; width: 72px; height: 72px; flex: 0 0 72px; overflow: hidden; border: 1px solid #345277; border-radius: 50%; background: #172b42; color: #b6dcff; font: 600 22px "Space Grotesk", sans-serif; }
        .profile-avatar img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
        .profile-share-card { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; padding: 12px; border: 1px solid #2b3042; border-radius: 10px; background: #0a0b12; }
        .profile-share-card > div { display: grid; gap: 4px; flex: 1 1 150px; }
        .profile-share-card span { color: var(--muted); font-size: 9px; }
        .profile-share-card strong { color: #dcd4ff; font: 600 13px "Space Grotesk", sans-serif; letter-spacing: .08em; overflow-wrap: anywhere; }
        .profile-share-card a { color: #a9dfff; font-size: 10px; }
        .profile-background-preview { position: relative; display: grid; place-items: end start; min-height: 150px; margin: 12px 0; overflow: hidden; border: 1px solid #303653; border-radius: 12px; background: radial-gradient(ellipse at 18% 125%, #00b7ff 0 8%, #0647dc 26%, transparent 62%), repeating-radial-gradient(ellipse at 12% 145%, transparent 0 11px, rgba(29,162,255,.38) 12px 17px, transparent 18px 26px), linear-gradient(118deg, #101547 0%, #050609 72%); }
        .profile-background-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
        .profile-background-preview img[hidden] { display: none !important; }
        .profile-background-preview__caption { position: relative; z-index: 1; padding: 12px; color: rgba(255,255,255,.78); font: 600 10px "Space Grotesk", sans-serif; letter-spacing: .16em; text-shadow: 0 2px 8px #000; }
        .profile-background-actions { display: flex; flex-wrap: wrap; gap: 8px; }
        .my-profile-panel { max-width: 880px; margin: 0 auto; }
        .my-profile-banner { min-height: 260px; margin: 0 0 14px; }
        .my-profile-identity { display: flex; align-items: center; gap: 15px; margin: 0 4px 16px; }
        .my-profile-avatar { width: 84px; height: 84px; flex-basis: 84px; }
        .my-profile-copy { display: grid; gap: 5px; min-width: 0; }
        .my-profile-copy h2 { margin: 0; overflow-wrap: anywhere; }
        .my-profile-copy a { color: #a9dfff; font-size: 11px; overflow-wrap: anywhere; }
        .my-profile-copy span { color: var(--muted); font-size: 10px; }
        .my-profile-qr { display: flex; align-items: center; gap: 14px; margin: 14px 0; padding: 12px; border: 1px solid #39344d; border-radius: 12px; background: #0b0b12; }
        .my-profile-qr[hidden] { display: none !important; }
        .my-profile-qr img { display: block; width: 148px; height: 148px; border: 5px solid #f7f8ff; border-radius: 10px; background: #f7f8ff; image-rendering: pixelated; }
        .my-profile-qr-copy { display: grid; gap: 8px; }
        .my-profile-qr-copy strong { color: #e7e3f5; font: 600 13px "Space Grotesk", sans-serif; }
        .my-profile-qr-copy span { color: var(--muted); font-size: 10px; line-height: 1.5; }
        .my-profile-qr-copy a { color: #a9dfff; font-size: 10px; }
        .account-field { display: grid; gap: 12px; }
        .account-contact { color: var(--muted); font-size: 11px; line-height: 1.6; }
        .account-field--spaced { margin-top: 16px; }
        .account-button { min-height: 38px; padding: 0 13px; border: 1px solid #39344d; border-radius: 9px; background: #171521; color: #d4caff; cursor: pointer; font-size: 11px; font-weight: 600; transition: transform .18s ease, border-color .18s ease, box-shadow .2s ease, background-color .18s ease; }
        .account-button:not(:disabled):hover { transform: translateY(-2px); border-color: #a893ff; box-shadow: 0 7px 20px rgba(133,105,230,.24); }
        .auth-form .account-button {
            border-color: transparent; color: #0a0812;
            background: linear-gradient(110deg, #ad95ff, #8977f5 48%, #58d6c5 100%);
            box-shadow: 0 7px 24px rgba(123,94,224,.24);
        }
        .auth-form .account-button:not(:disabled):hover {
            transform: translateY(-2px); border-color: rgba(255,255,255,.42);
            background: linear-gradient(110deg, #c2b2ff, #a596ff 48%, #7ae4d5 100%);
            box-shadow: 0 10px 28px rgba(123,94,224,.36), 0 0 0 1px rgba(255,255,255,.08) inset;
        }
        .auth-form .account-button:disabled { opacity: .88; }
        .auth-form .account-button:disabled::after {
            content: ""; display: inline-block; width: 13px; height: 13px; margin-left: 8px;
            vertical-align: -2px; border: 2px solid rgba(10,8,18,.25); border-top-color: #0a0812;
            border-radius: 50%; animation: upload-spinner .7s linear infinite;
        }
        .account-button:not(:disabled):active { transform: translateY(0) scale(.98); }
        .account-button:disabled { opacity: .55; cursor: wait; }
        .conversion-settings { display: grid; gap: 10px; margin: 12px 0 0; padding: 12px; border: 1px solid #263851; border-radius: 10px; background: #0c1725; }
        .conversion-settings label { display: grid; gap: 5px; color: #bacbe0; font-size: 11px; }
        .conversion-settings select { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid #30445e; border-radius: 8px; background: #101b2a; color: var(--text); }
        .priority-option { display: flex !important; align-items: center; gap: 8px !important; color: var(--muted) !important; }
        .priority-option input { accent-color: #9bd1ff; }
        .account-field .priority-option input { width: 15px; min-width: 15px; min-height: 15px; padding: 0; margin: 0; }
        .priority-option[hidden] { display: none !important; }
        .local-render-note { margin: -5px 0 4px; color: #83d7bd; font-size: 10px; line-height: 1.5; }
        .storage-meter { height: 8px; margin: 10px 0 14px; overflow: hidden; border-radius: 8px; background: #1a2b3f; }
        .storage-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #64c8ff, #a884ff); transition: width .35s ease; }
        .server-storage-meter span { background: linear-gradient(90deg, #73d8b4, #9bd1ff); }
        .storage-progress { height: 6px; margin: 8px 0; overflow: hidden; border-radius: 8px; background: #1a2b3f; }
        .storage-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #64c8ff, #73d8b4); transition: width .12s linear; }
        .storage-progress-label { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; }
        .storage-folder-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 15px 0 10px; }
        .storage-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; color: var(--muted); font-size: 10px; }
        .storage-breadcrumbs button { padding: 5px 7px; border: 1px solid #30445e; border-radius: 7px; background: #101b2a; color: #cce6ff; cursor: pointer; }
        .storage-breadcrumbs span { color: #70839b; }
        .storage-folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-bottom: 11px; }
        .storage-folders[hidden] { display: none !important; }
        .storage-folder { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px; min-width: 0; padding: 8px; border: 1px solid #30445e; border-radius: 10px; background: linear-gradient(145deg, #122238, #0b1421); }
        .storage-folder-open { overflow: hidden; padding: 7px 4px; border: 0; background: transparent; color: #d9ebff; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
        .storage-folder-action { padding: 6px 7px; border: 1px solid #345277; border-radius: 7px; background: #14263b; color: #d9ebff; cursor: pointer; font-size: 9px; }
        .storage-move-dialog { width: min(420px, calc(100vw - 24px)); padding: 20px; border: 1px solid #345277; border-radius: 14px; background: #091321; color: #eef3ff; }
        .storage-move-dialog::backdrop { background: rgba(2, 7, 16, .78); backdrop-filter: blur(5px); }
        .storage-move-dialog form { display: grid; gap: 14px; }
        .storage-move-dialog select { min-height: 40px; padding: 8px; border: 1px solid #345277; border-radius: 8px; background: #101b2a; color: #eef3ff; }
        .storage-move-actions { display: flex; justify-content: flex-end; gap: 8px; }
        .storage-upload-form select { width: 100%; min-height: 38px; padding: 8px; border: 1px solid #30445e; border-radius: 8px; background: #101b2a; color: var(--text); }
        .storage-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); align-items: stretch; gap: 11px; max-height: 300px; overflow-y: auto; }
        .storage-files.has-open-menu { max-height: none; overflow: visible; mask-image: none; }
        .storage-file { position: relative; z-index: 0; display: flex; min-width: 0; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid #26303f; border-radius: 12px; background: linear-gradient(155deg, #11131a, #090a0f); }
        .storage-file.is-menu-open { z-index: 2; }
        .storage-file-thumb-link { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid rgba(151,137,205,.17); border-radius: 9px; background: radial-gradient(ellipse at 84% 2%, rgba(136,104,241,.2), transparent 55%), #08090e; color: #d6d1e9; text-decoration: none; }
        .storage-file-thumb-link img { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
        .storage-file-thumb-link img[hidden] { display: none !important; }
        .storage-file-placeholder { display: grid; place-items: center; width: 48px; height: 60px; border: 1px solid #746b9e; border-radius: 5px 5px 8px 8px; background: linear-gradient(145deg, #202032, #101117); color: #c4b9ff; box-shadow: 0 7px 20px rgba(0,0,0,.3); }
        .storage-file-placeholder[hidden] { display: none !important; }
        .storage-file-placeholder svg { width: 26px; height: 26px; }
        .storage-file-play { position: absolute; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(8,8,14,.72); color: #fff; font-size: 13px; padding-left: 2px; }
        .storage-file-title { display: grid; gap: 4px; min-width: 0; }
        .storage-file-name { overflow: hidden; color: #e7e3f5; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
        .storage-file-details { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 7px; color: var(--muted); font-size: 9px; }
        .storage-file-date { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .storage-file-actions { display: grid; gap: 5px; margin-top: 0; }
        .storage-file button, .storage-file-menu-panel button, .storage-file-actions a { padding: 6px 8px; border: 1px solid #39344d; border-radius: 7px; background: #171521; color: #d4caff; text-decoration: none; cursor: pointer; font-size: 9px; }
        .storage-file-actions button { min-height: 32px; padding: 0 9px; }
        .cloud-preview-dialog { width: min(1040px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 24px); padding: 0; overflow: visible; border: 1px solid #345277; border-radius: 16px; background: transparent; color: #eef3ff; }
        .cloud-preview-dialog::backdrop { background: rgba(2, 7, 16, .82); backdrop-filter: blur(7px); }
        .cloud-preview-shell { display: flex; max-height: calc(100vh - 26px); flex-direction: column; overflow: hidden; border-radius: 15px; background: #091321; box-shadow: 0 24px 80px rgba(0,0,0,.55); }
        .cloud-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #263851; }
        .cloud-preview-title { overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
        .cloud-preview-close, .cloud-player-button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 12px; border: 1px solid #345277; border-radius: 9px; background: linear-gradient(180deg, #19324d, #12243a); color: #e2f1ff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
        .cloud-preview-close:hover, .cloud-player-button:hover { border-color: #66bfff; background: #1b3854; }
        .cloud-preview-close:active, .cloud-player-button:active { transform: translateY(1px); }
        .cloud-preview-close:focus-visible, .cloud-player-button:focus-visible, .cloud-player input:focus-visible { outline: 2px solid #79ceff; outline-offset: 2px; }
        .cloud-preview-content { display: grid; min-height: 180px; flex: 1; place-items: center; padding: 18px; overflow: auto; }
        .cloud-preview-content > video, .cloud-preview-content > img, .cloud-preview-content > iframe { display: block; max-width: 100%; max-height: calc(100vh - 190px); border: 0; border-radius: 8px; object-fit: contain; }
        .cloud-preview-content > iframe { width: 100%; height: min(75vh, 760px); background: white; }
        .cloud-preview-content > pre { width: 100%; max-height: 70vh; margin: 0; overflow: auto; color: #d3e1f3; white-space: pre-wrap; overflow-wrap: anywhere; }
        .cloud-player { width: 100%; max-width: 960px; }
        .cloud-player-stage { display: grid; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 190px); place-items: center; overflow: hidden; border: 1px solid rgba(133,177,220,.2); border-radius: 12px; background: radial-gradient(ellipse at 50% 45%, #15263a, #05090f 75%); box-shadow: inset 0 0 36px rgba(0,0,0,.34); }
        .cloud-player video, .cloud-player audio { display: block; width: 100%; max-height: calc(100vh - 190px); border-radius: 8px; background: #000; }
        .cloud-player-stage video { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; }
        .cloud-player-controls { display: grid; grid-template-columns: auto minmax(100px, 1fr) auto auto minmax(64px, 92px) auto; align-items: center; gap: 9px; margin-top: 10px; padding: 9px; border: 1px solid rgba(105,151,198,.2); border-radius: 12px; background: linear-gradient(135deg, rgba(15,30,47,.98), rgba(8,17,29,.98)); box-shadow: 0 8px 24px rgba(0,0,0,.16); }
        .cloud-player-button { min-height: 34px; padding: 0 11px; white-space: nowrap; }
        .cloud-player-play { min-width: 70px; border-color: rgba(100,200,255,.48); background: linear-gradient(180deg, #174268, #11314f); }
        .cloud-player-play:hover { border-color: #8bd4ff; background: #1b4d73; }
        .cloud-player-controls input[type="range"] { min-width: 0; height: 20px; margin: 0; accent-color: #64c8ff; cursor: pointer; }
        .cloud-player-controls input[type="range"]:disabled { cursor: default; opacity: .5; }
        .cloud-player-seek { width: 100%; }
        .cloud-player-volume { width: 100%; accent-color: #73d8b4 !important; }
        .cloud-player-time { min-width: 74px; color: #b9c9dc; font-size: 11px; font-variant-numeric: tabular-nums; text-align: center; white-space: nowrap; }
        .cloud-player-status { min-height: 0; margin: 7px 3px 0; color: #ffc5a8; font-size: 11px; line-height: 1.4; }
        .cloud-player-status:empty { display: none; }
        .cloud-player:fullscreen { display: flex; width: 100%; max-width: none; height: 100%; flex-direction: column; justify-content: center; padding: 18px; background: #03070d; }
        .cloud-player:fullscreen .cloud-player-stage { height: calc(100vh - 120px); max-height: none; aspect-ratio: auto; }
        .cloud-player:fullscreen video { max-height: 100%; }
        .job-delete { min-height: 32px; padding: 0 9px; border: 1px solid #684052; border-radius: 7px; background: #2b1c2a; color: #ffc5d3; cursor: pointer; font-size: 10px; }
        .feedback-card { margin-top: 16px; }
        .feedback-card textarea { display: block; width: 100%; min-height: 110px; padding: 12px; resize: vertical; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--text); font: inherit; font-size: 12px; }
        .feedback-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 9px; }
        .feedback-status { color: var(--muted); font-size: 11px; }
        :root[data-theme="light"] .cloud-preview-dialog { color: #10223a; }
        :root[data-theme="light"] .cloud-preview-shell { background: #f8fbff; }
        :root[data-theme="light"] .cloud-preview-content > pre { color: #172d48; }
        @media (max-width: 560px) {
            .cloud-preview-content { padding: 10px; }
            .cloud-player-controls { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding: 8px; }
            .cloud-player-play { grid-column: 1; }
            .cloud-player-time { grid-column: 2; }
            .cloud-player-mute { grid-column: 3; }
            .cloud-player-seek { grid-row: 2; grid-column: 1 / -1; }
            .cloud-player-volume { grid-row: 3; grid-column: 1; max-width: 92px; }
            .cloud-player-fullscreen { grid-row: 3; grid-column: 3; }
            .cloud-player-stage { max-height: calc(100vh - 190px); }
            .cloud-preview-dialog { width: calc(100vw - 12px); max-height: calc(100vh - 12px); }
            .cloud-preview-shell { max-height: calc(100vh - 14px); }
        }
        .storage-share-panel { width: 100%; }
        .storage-page-hero {
            position: relative; overflow: hidden; border: 1px solid rgba(104,168,229,.3);
            border-radius: 20px; background: radial-gradient(ellipse at 90% 0, rgba(55,139,220,.24), transparent 48%),
                linear-gradient(135deg, rgba(15,34,56,.98), rgba(12,22,38,.94));
            box-shadow: 0 20px 56px rgba(1,7,16,.2);
        }
        .what-hero.storage-page-hero { margin: 0 0 14px; padding: 22px 26px; }
        .storage-page-hero > * { position: relative; z-index: 1; }
        .storage-page-hero h1 { max-width: 640px; font-size: clamp(26px, 4vw, 38px); }
        .storage-page-hero p { max-width: 680px; }
        .storage-dashboard { display: grid; grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr); align-items: start; gap: 16px; }
        .storage-summary-panel, .storage-library-panel { min-width: 0; border-color: rgba(100,150,202,.22); background: linear-gradient(155deg, var(--panel), rgba(12,24,40,.94)); }
        .storage-summary-panel { box-shadow: 0 18px 40px rgba(0,0,0,.13); }
        .storage-library-panel { box-shadow: 0 18px 46px rgba(0,0,0,.18); }
        .storage-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
        .storage-panel-heading h2 { margin: 0 0 4px; }
        .storage-panel-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
        .storage-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
        .storage-usage-card { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-raised); }
        .storage-usage-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; }
        .storage-usage-heading strong { color: var(--text); font: 600 16px "Space Grotesk", sans-serif; }
        .storage-usage-card > p { min-height: 30px; margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
        .storage-usage-card .storage-meter { margin: 10px 0 0; }
        .storage-upload-section { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
        .storage-upload-form { grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 10px; }
        .storage-upload-form label { min-width: 0; }
        .storage-upload-form input[type="file"] { width: 100%; min-width: 0; }
        .storage-upload-form .account-button { width: 100%; }
        .storage-library-heading { align-items: center; }
        .storage-library-heading .account-button { flex: 0 0 auto; white-space: nowrap; }
        .storage-icon-button {
            position: relative; display: inline-grid; width: 42px; min-width: 42px; height: 42px;
            flex: 0 0 42px; place-items: center; padding: 0; border: 1px solid var(--line);
            border-radius: 11px; background: var(--panel-raised); color: var(--text); cursor: pointer;
        }
        .storage-icon-button svg { width: 19px; height: 19px; }
        .storage-icon-button:hover:not(:disabled) { border-color: #73baff; background: rgba(65,148,207,.16); color: #bce2ff; }
        .storage-icon-button:disabled { opacity: .5; cursor: not-allowed; }
        .storage-icon-button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
        .storage-icon-tooltip {
            position: absolute; z-index: 30; top: calc(100% + 8px); right: 0;
            width: max-content; max-width: min(240px, 80vw); padding: 6px 8px;
            border: 1px solid var(--line); border-radius: 7px; background: var(--panel);
            box-shadow: 0 8px 22px rgba(0,0,0,.25); color: var(--text);
            font: 500 10px "DM Sans", sans-serif;
            opacity: 0; pointer-events: none; transform: translateY(-3px);
            transition: opacity .14s ease, transform .14s ease; white-space: nowrap;
        }
        .storage-icon-button:hover .storage-icon-tooltip,
        .storage-icon-button:focus-visible .storage-icon-tooltip { opacity: 1; transform: translateY(0); }
        .storage-library-actions, .storage-folder-actions { gap: 8px; }
        .storage-library-actions .storage-icon-button,
        .storage-folder-actions .storage-icon-button { flex: 0 0 42px; }
        .storage-share-center-dialog { width: min(700px, calc(100vw - 24px)); max-height: min(82vh, 760px); }
        .storage-share-center-form { display: grid; gap: 14px; max-height: calc(min(82vh, 760px) - 40px); overflow: auto; }
        .storage-share-center-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
        .storage-share-center-heading h2 { margin: 0; }
        .storage-share-center-description { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
        .storage-share-center-search { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 600; }
        .storage-share-center-search input { min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-raised); color: var(--text); font: inherit; }
        .storage-share-center-list { display: grid; gap: 9px; }
        .storage-share-center-item { display: grid; gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-raised); }
        .storage-share-center-file { display: grid; gap: 3px; min-width: 0; }
        .storage-share-center-file strong { overflow-wrap: anywhere; font-size: 12px; }
        .storage-share-center-file small, .storage-share-center-status { color: var(--muted); font-size: 10px; line-height: 1.45; }
        .storage-share-center-controls, .storage-share-center-link-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
        .storage-share-center-controls select { min-height: 34px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--text); font: inherit; }
        .storage-share-center-item .account-button { min-height: 34px; padding: 0 9px; font-size: 10px; }
        .storage-share-center-url { width: 100%; min-height: 36px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--text); font-size: 10px; }
        .storage-share-center-empty { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
        .storage-unlock-notice { display: grid; gap: 9px; margin-top: 12px; padding: 12px; border: 1px solid rgba(233,175,99,.4); border-radius: 10px; background: rgba(111,72,30,.12); }
        .storage-unlock-notice[hidden] { display: none !important; }
        .storage-unlock-notice p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
        .storage-unlock-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
        .storage-unlock-form label { display: grid; gap: 5px; color: var(--text); font-size: 10px; font-weight: 600; }
        .storage-unlock-form input[type="password"] { min-height: 38px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); }
        .storage-unlock-remember { display: flex !important; grid-column: 1 / -1; align-items: center; gap: 7px !important; color: var(--muted) !important; font-size: 10px !important; }
        .storage-unlock-remember input { width: 15px; height: 15px; margin: 0; accent-color: var(--green); }
        .storage-unlock-status { grid-column: 1 / -1; }
        .storage-library-tools { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(120px, 145px) auto; align-items: center; gap: 8px; margin: 10px 0; }
        .storage-library-tools input, .storage-library-tools select { min-height: 38px; padding: 0 11px; border: 1px solid #39344d; border-radius: 9px; outline: none; background: #0b0b12; color: var(--text); font-size: 11px; }
        .storage-library-tools input, .storage-library-tools select { width: 100%; min-width: 0; }
        .storage-library-tools input:focus { border-color: #73baff; box-shadow: 0 0 0 3px rgba(115,186,255,.12); }
        .storage-library-toggle { white-space: nowrap; }
        .storage-filter-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 7px 0 12px; }
        .storage-filter-bar button { display: inline-flex; width: 100%; min-width: 0; align-items: center; justify-content: space-between; gap: 5px; min-height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-raised); color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 600; white-space: nowrap; }
        .storage-filter-bar button:hover, .storage-filter-bar button[aria-pressed="true"] { border-color: #4e94c8; background: rgba(65,148,207,.16); color: #bce2ff; }
        .storage-filter-bar button span { min-width: 17px; padding: 2px 5px; border-radius: 999px; background: rgba(128,171,207,.15); color: inherit; font-size: 9px; text-align: center; }
        .storage-folder-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
        .what-hero.storage-page-hero { margin-bottom: 18px; padding: clamp(20px, 3vw, 30px); }
        .storage-dashboard { grid-template-columns: minmax(290px, .82fr) minmax(0, 1.3fr); gap: 18px; }
        .storage-summary-panel, .storage-library-panel { border-color: rgba(123,159,205,.25); }
        .storage-panel-heading { margin-bottom: 15px; }
        .storage-panel-heading h2 { font-size: 16px; }
        .storage-panel-heading p { max-width: 54ch; font-size: 12px; }
        .storage-overview { gap: 10px; }
        .storage-usage-card { padding: 15px; border-radius: 13px; }
        .storage-usage-heading { font-size: 12px; font-weight: 600; }
        .storage-usage-heading strong { font-size: 19px; }
        .storage-usage-card > p { min-height: 3em; font-size: 11px; }
        .storage-upload-section { margin-top: 20px; padding-top: 19px; }
        .storage-upload-section .storage-panel-heading { margin-bottom: 12px; }
        .storage-upload-form { gap: 12px; }
        .storage-upload-form label { gap: 7px; color: var(--text); font-size: 12px; font-weight: 600; }
        .storage-upload-form select,
        .storage-upload-form input[type="file"] {
            min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px;
            background: var(--panel-raised); color: var(--text); font-size: 12px;
        }
        .storage-upload-form input[type="file"] { cursor: pointer; }
        .storage-upload-form input[type="file"]::file-selector-button {
            min-height: 28px; margin: -2px 10px -2px -3px; padding: 0 10px; border: 1px solid var(--line);
            border-radius: 6px; background: var(--panel); color: var(--text); cursor: pointer; font: inherit;
        }
        .storage-upload-form .account-button { min-height: 42px; }
        .storage-library-heading { margin-bottom: 17px; }
        .storage-library-tools { gap: 9px; margin: 12px 0; }
        .storage-library-tools input, .storage-library-tools select {
            min-height: 42px; border-color: var(--line); border-radius: 10px; background: var(--panel-raised); font-size: 12px;
        }
        .storage-library-tools input::placeholder { color: var(--muted); opacity: .85; }
        .storage-filter-bar { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 14px; }
        .storage-filter-bar button {
            width: auto; min-height: 36px; flex: 1 1 92px; justify-content: flex-start;
            padding: 0 10px; border-radius: 9px; font-size: 11px;
        }
        .storage-filter-bar button span { margin-left: auto; }
        .storage-folder-toolbar { margin: 17px 0 11px; }
        .storage-breadcrumbs { font-size: 11px; }
        .storage-breadcrumbs button { min-height: 32px; padding: 0 9px; border-color: var(--line); border-radius: 8px; background: var(--panel-raised); color: var(--text); }
        .storage-folder { padding: 9px; border-color: var(--line); border-radius: 11px; background: var(--panel-raised); }
        .storage-folder-open { color: var(--text); font-weight: 600; }
        .storage-folder-action { min-height: 34px; border-color: var(--line); border-radius: 8px; background: var(--panel); color: var(--text); font-size: 10px; }
        .storage-library-status { margin: 10px 0; font-size: 11px; }
        .storage-files { gap: 12px; }
        .storage-file { gap: 10px; padding: 11px; border-color: var(--line); border-radius: 13px; background: linear-gradient(155deg, var(--panel-raised), var(--panel)); }
        .storage-file-name { font-size: 12px; }
        .storage-file-details { font-size: 10px; }
        .storage-file button, .storage-file-menu-panel button, .storage-file-actions a { border-color: var(--line); background: var(--panel); color: var(--text); font-size: 10px; }
        .storage-library-panel > .account-note { margin-top: 18px !important; line-height: 1.6; }
        .storage-page-hero .eyebrow { color: var(--green); }
        .storage-page-hero p,
        .storage-panel-heading p,
        .storage-usage-card > p,
        .storage-library-panel > .account-note { line-height: 1.6; }
        .storage-library-tools input:focus-visible,
        .storage-library-tools select:focus-visible,
        .storage-upload-form select:focus-visible,
        .storage-upload-form input[type="file"]:focus-visible,
        .storage-folder-actions button:focus-visible,
        .storage-filter-bar button:focus-visible,
        .storage-breadcrumbs button:focus-visible,
        .storage-folder button:focus-visible,
        .storage-view-toggle button:focus-visible {
            outline: 2px solid var(--green); outline-offset: 2px;
        }
        @media (max-width: 560px) {
            .storage-library-heading { align-items: flex-start; flex-direction: column; }
            .storage-folder-toolbar { flex-direction: column; }
            .storage-breadcrumbs { width: 100%; }
            .storage-folder-actions { width: 100%; }
            .storage-folder-actions .account-button { flex: 1 1 0; }
            .storage-folder-actions .storage-icon-button { flex: 0 0 42px; }
            .storage-unlock-form { grid-template-columns: minmax(0, 1fr); }
            .storage-unlock-form .account-button { width: 100%; }
            .storage-filter-bar button { flex-basis: calc(50% - 4px); }
            .storage-usage-card > p { min-height: 0; }
        }
        :root[data-theme="light"] .storage-filter-bar button:hover,
        :root[data-theme="light"] .storage-filter-bar button[aria-pressed="true"] { border-color: #8ab8dc; background: #e6f2fb; color: #205780; }
        .storage-files.is-collapsed { max-height: 250px; overflow: hidden; mask-image: linear-gradient(to bottom, #000 72%, transparent); }
        .storage-files.is-expanded { max-height: none; overflow: visible; mask-image: none; }
        .storage-files.has-open-menu { max-height: none; overflow: visible; mask-image: none; }
        .storage-view-toggle { display: inline-flex; flex: 0 0 auto; gap: 3px; padding: 3px; border: 1px solid #39344d; border-radius: 9px; background: #0b0b12; }
        .storage-view-toggle button { min-height: 32px; padding: 0 10px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; }
        .storage-view-toggle button[aria-pressed="true"] { border-color: #345277; background: #172b42; color: #c5e3ff; }
        .storage-files.is-list-view { grid-template-columns: minmax(0, 1fr); gap: 0; }
        .storage-files.is-list-view .storage-file { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 7px; border-width: 0 0 1px; border-radius: 0; background: transparent; }
        .storage-files.is-list-view .storage-file:first-child { border-top: 1px solid var(--line); }
        .storage-files.is-list-view .storage-file-title { grid-column: 1; grid-row: 1; }
        .storage-files.is-list-view .storage-file-name { font-size: 12px; }
        .storage-files.is-list-view .storage-file-details { justify-content: flex-start; gap: 14px; font-size: 10px; }
        .storage-files.is-list-view .storage-file-menu { position: static; grid-column: 2; grid-row: 1; justify-self: end; align-self: center; }
        .storage-library-status { margin: 8px 0; color: var(--muted); font-size: 10px; }
        .storage-library-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 8px; }
        .storage-library-backdrop { position: fixed; z-index: 199; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(3,8,15,.76); backdrop-filter: blur(6px); cursor: default; }
        .storage-library-backdrop[hidden] { display: none !important; }
        body.storage-library-expanded { overflow: hidden; }
        .storage-library-panel.is-fullscreen { position: fixed; z-index: 200; inset: 12px; display: flex; min-width: 0; min-height: 0; flex-direction: column; overflow: auto; border-color: #345277; box-shadow: 0 28px 90px rgba(0,0,0,.6); }
        .storage-library-panel.is-fullscreen .storage-files { flex: 0 0 auto; max-height: none; overflow: visible; mask-image: none; }
        :root[data-compact-queue="on"] .queue-list { gap: 3px; }
        :root[data-compact-queue="on"] .job { gap: 7px; padding: 5px 8px 5px 10px; border-radius: 8px; }
        :root[data-compact-queue="on"] .job-details { margin: 2px 0 3px; }
        :root[data-theme="light"] .storage-view-toggle { border-color: #c5d5e4; background: #f3f7fb; }
        :root[data-theme="light"] .storage-view-toggle button[aria-pressed="true"] { border-color: #9bc8ec; background: #e6f2ff; color: #205780; }
        @media (max-width: 900px) {
            .storage-dashboard { grid-template-columns: minmax(0, 1fr); }
            .storage-summary-panel { position: static; }
        }
        @media (max-width: 560px) {
            .what-hero.storage-page-hero { padding: 18px; border-radius: 16px; }
            .storage-library-panel.is-fullscreen { inset: max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)); padding: 15px; border-radius: 14px; }
            .storage-library-actions { width: 100%; }
            .storage-library-actions .account-button:not(.storage-icon-button) { flex: 1 1 auto; }
            .storage-library-tools { grid-template-columns: minmax(0, 1fr) auto; }
            .storage-library-tools input { grid-column: 1 / -1; }
            .storage-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .storage-folder-toolbar { align-items: flex-start; }
            .storage-folder-actions { gap: 5px; }
            .storage-overview { grid-template-columns: minmax(0, 1fr); }
            .storage-folder-actions .account-button:not(.storage-icon-button) { padding-right: 8px; padding-left: 8px; }
        }
        .storage-file-menu { position: absolute; top: 8px; right: 8px; z-index: 4; }
        .storage-file-menu-button {
            display: grid; place-items: center; width: 38px; height: 38px; padding: 0 !important;
            border: 1px solid rgba(166,191,222,.44) !important; border-radius: 50% !important;
            background: rgba(7,13,23,.84) !important; color: #e7f2ff !important; cursor: pointer;
            box-shadow: 0 4px 12px rgba(0,0,0,.28);
        }
        .storage-file-menu-button svg { width: 19px; height: 19px; }
        .storage-file-menu-button:hover, .storage-file-menu-button[aria-expanded="true"] { border-color: #9bd1ff !important; background: #172b42 !important; }
        .storage-file-menu-panel {
            position: absolute; top: calc(100% + 6px); right: 0; display: grid; gap: 7px;
            width: min(230px, calc(100vw - 32px)); max-height: min(65vh, 420px); padding: 9px;
            overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
            box-shadow: 0 16px 38px rgba(0,0,0,.42);
        }
        .storage-file-menu-panel.is-viewport-positioned {
            position: fixed; z-index: 220; top: var(--storage-menu-top, 8px); left: var(--storage-menu-left, 8px);
            right: auto; width: min(230px, calc(100vw - 24px)); max-height: min(var(--storage-menu-max-height, 420px), 65dvh, 420px, calc(100dvh - 16px));
        }
        .storage-file-menu-panel[hidden] { display: none !important; }
        .storage-file-menu-panel .storage-file-actions a,
        .storage-file-menu-panel .storage-file-actions button {
            display: flex; align-items: center; width: 100%; min-height: 40px; padding: 0 10px;
            text-align: left; font-size: 11px;
        }
        .storage-file-menu-panel .storage-file-actions button { min-height: 40px; }
        .storage-share-panel { display: grid; gap: 7px; padding-top: 8px; border-top: 1px solid var(--line); }
        .storage-share-panel[hidden] { display: none !important; }
        .storage-share-note { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
        .storage-share-panel input { width: 100%; min-width: 0; min-height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel-raised); color: var(--text); font-size: 10px; }
        .storage-share-link { display: grid; gap: 6px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; }
        .storage-share-link > strong { font-size: 11px; }
        .storage-share-link-status { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
        .storage-share-actions { display: flex; flex-wrap: wrap; gap: 6px; }
        .storage-share-actions button, .storage-share-revoke-all { min-height: 32px; padding: 0 9px; border: 1px solid #39344d; border-radius: 7px; background: #171521; color: #d4caff; cursor: pointer; font-size: 10px; }
        .storage-share-actions button:disabled { opacity: .55; cursor: not-allowed; }
        .admin-panel { display: none; }
        .admin-panel.visible { display: block; }
        .admin-panel { padding: clamp(16px, 2vw, 24px); }
        .admin-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
        .admin-panel-header h2 { margin-bottom: 5px; }
        .admin-panel-header p { margin-bottom: 0; }
        .admin-state { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid #315c4c; border-radius: 999px; background: #10251f; color: #8fe0c2; font-size: 10px; white-space: nowrap; }
        .admin-state.is-maintenance { border-color: #78603a; background: #2a2113; color: #ffd27a; }
        .admin-capacity { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 14px; }
        .admin-health-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 14px; }
        .admin-health-grid small { color: var(--muted); font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
        .admin-backup-actions { display: flex; flex-wrap: wrap; gap: 8px; }
        .admin-backup-restore { border-color: #74434b !important; background: #321d26 !important; color: #ffc2c2 !important; }
        .admin-server-restart-button { border-color: #74434b !important; background: #321d26 !important; color: #ffc2c2 !important; }
        .admin-stat { display: grid; gap: 5px; padding: 11px 13px; border: 1px solid #263851; border-radius: 10px; background: #0d1725; }
        .admin-stat span { color: var(--muted); font-size: 9px; }
        .admin-stat strong { color: #d9ecff; font: 600 14px "Space Grotesk", sans-serif; }
        .admin-grid, .admin-list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
        .admin-form, .admin-list-card { display: grid; align-content: start; gap: 9px; min-width: 0; padding: 14px; border: 1px solid #263851; border-radius: 10px; background: #0d1725; }
        .admin-form--wide { grid-column: 1 / -1; }
        .admin-form h3, .admin-list-card h3 { margin: 0; font: 600 12px "Space Grotesk", sans-serif; color: #d9ecff; }
        .admin-form > p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
        .admin-form label { color: #bacbe0; font-size: 10px; }
        .admin-form input, .admin-form select, .admin-form textarea { width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid #30445e; border-radius: 7px; background: #0b1522; color: var(--text); font-size: 11px; }
        .admin-form textarea { min-height: 60px; resize: vertical; }
        .admin-maintenance-toggle { display: flex; align-items: center; gap: 8px; }
        .admin-maintenance-toggle input { width: 15px; min-height: 15px; accent-color: #9bd1ff; }
        .admin-list-grid { margin-top: 12px; }
        .admin-account-list, .admin-resource-list { display: grid; gap: 7px; }
        .admin-account-row, .admin-resource-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px; border: 1px solid #263851; border-radius: 8px; background: rgba(8,17,29,.55); }
        .admin-account-main { display: grid; flex: 1; min-width: 0; gap: 3px; }
        .admin-account-main strong, .admin-resource-name { overflow: hidden; color: #d8e5f4; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
        .admin-account-main span, .admin-resource-meta { color: var(--muted); font-size: 9px; }
        .admin-account-quota { color: #c7d9ec; font-size: 10px; white-space: nowrap; }
        .admin-account-row button, .admin-resource-row button { flex: 0 0 auto; padding: 5px 8px; border: 1px solid #30445e; border-radius: 6px; background: #14263b; color: #b6dcff; cursor: pointer; font-size: 9px; }
        .admin-account-row button.admin-delete-account { border-color: #74434b; background: #321d26; color: #ffc2c2; }
        .admin-account-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
        .admin-account-row.is-banned { border-color: rgba(240,93,104,.45); background: rgba(61,22,33,.35); }
        .admin-account-row.is-suspended { border-color: rgba(231,183,92,.38); }
        .admin-account-status { width: fit-content; padding: 3px 7px; border: 1px solid #36516e; border-radius: 99px; color: #a8d9ff !important; font-size: 9px !important; }
        .admin-account-status.is-suspended { border-color: #755a32; background: rgba(231,183,92,.08); color: #f0c979 !important; }
        .admin-account-status.is-banned { border-color: #7b3c48; background: rgba(229,72,77,.1); color: #ff9aa0 !important; }
        .admin-account-reason { color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }
        .admin-account-actions { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
        .admin-account-actions select { min-height: 27px; padding: 3px 7px; border: 1px solid #30445e; border-radius: 6px; background: #0b1522; color: var(--text); font-size: 9px; }
        .admin-account-row button.admin-ban-account { border-color: #74434b; background: #321d26; color: #ffc2c2; }
        .admin-account-row button:disabled { opacity: .55; cursor: wait; }
        .admin-account-menu { min-width: 0; }
        .admin-account-menu[open] { flex: 1 1 100%; }
        .admin-account-menu > summary { display: flex; align-items: center; width: fit-content; min-height: 32px; padding: 5px 9px; border: 1px solid #30445e; border-radius: 6px; background: #14263b; color: #b6dcff; cursor: pointer; font-size: 9px; list-style: none; }
        .admin-account-menu > summary::-webkit-details-marker { display: none; }
        .admin-account-menu > summary::after { content: "+"; margin-left: 8px; color: #8abce8; font-size: 12px; }
        .admin-account-menu[open] > summary::after { content: "-"; }
        .admin-account-menu > summary.admin-delete-account { border-color: #74434b; background: #321d26; color: #ffc2c2; }
        .admin-account-menu > summary:focus-visible { outline: 2px solid #69b9ef; outline-offset: 2px; }
        .admin-account-menu-panel { display: grid; gap: 8px; width: min(520px, 100%); margin-top: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
        .admin-account-menu-panel form { display: grid; gap: 8px; margin: 0; padding: 8px; border: 1px solid var(--line); border-radius: 7px; }
        .admin-account-menu-panel label { display: grid; min-width: 0; gap: 4px; color: var(--muted); font-size: 9px; }
        .admin-account-menu-panel input:not([type="checkbox"]), .admin-account-menu-panel select { width: 100%; min-width: 0; min-height: 32px; padding: 5px 7px; border: 1px solid #30445e; border-radius: 6px; background: #0b1522; color: var(--text); font: 500 10px "DM Sans", sans-serif; }
        .admin-account-menu-panel input[type="color"] { padding: 3px; }
        .admin-account-menu-panel input[type="checkbox"] { width: 15px; min-height: 15px; margin: 0; accent-color: #79bdf0; }
        .admin-account-menu-panel .admin-account-inline-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
        .admin-account-inline-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
        .admin-account-inline-confirm { display: flex !important; align-items: center; grid-template-columns: auto 1fr; gap: 7px !important; }
        .admin-account-form-note, .admin-account-feedback { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
        .admin-account-feedback { flex: 1 1 100%; grid-column: 1 / -1; color: #ffd27a; overflow-wrap: anywhere; }
        .admin-resource-group { display: grid; gap: 6px; }
        .admin-resource-group + .admin-resource-group { margin-top: 8px; }
        .admin-resource-group h4 { display: flex; justify-content: space-between; margin: 0; color: #a9c4df; font: 600 10px "Space Grotesk", sans-serif; }
        .admin-empty { padding: 8px 2px; color: #7187a0; font-size: 10px; }
        .admin-table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 10px; }
        .admin-table th, .admin-table td { padding: 7px; border-bottom: 1px solid #263851; text-align: left; vertical-align: top; }
        .admin-table th { color: #b6dcff; font-weight: 600; }
        .admin-table td { color: var(--muted); }
        .storage-share-panel { display: grid; grid-template-columns: minmax(0,1fr); grid-column: 1 / -1; align-items: start; gap: 8px; }
        .storage-share-panel[hidden] { display: none; }
        .storage-share-panel input { width: 100%; min-width: 0; padding: 7px 9px; border: 1px solid #30445e; border-radius: 6px; background: #09121e; color: #b6dcff; font-size: 10px; }
        .storage-share-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
        .cloud-save-state { color: #8edfc0; font-size: 10px; }
        .cloud-retry { padding: 5px 7px; border: 1px solid #785d4a; border-radius: 6px; background: #30271f; color: #ffd29a; cursor: pointer; font-size: 9px; }
        .account-note { margin-top: 12px !important; color: #849ab3 !important; }
        .intro { padding: 39px 0 26px; }
        .eyebrow { color: var(--green); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; }
        h1 { max-width: 700px; margin: 11px 0 10px; font: 600 clamp(34px, 6vw, 55px)/1.05 "Space Grotesk", sans-serif; letter-spacing: -.055em; }
        .intro p { max-width: 600px; margin: 0; color: #a3aea7; font-size: 15px; line-height: 1.65; }
        .home-hero {
            display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(310px, .92fr);
            align-items: center; gap: clamp(26px, 4vw, 58px); min-height: 478px;
            padding: clamp(42px, 7vw, 78px) 0 48px;
        }
        .home-copy { position: relative; z-index: 1; }
        .home-kicker {
            display: inline-flex; align-items: center; gap: 9px; min-height: 31px; padding: 0 11px;
            border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
            color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
        }
        .home-kicker::before { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 13px var(--green); content: ""; }
        .home-hero h1 { max-width: 620px; margin-top: 20px; font-size: clamp(44px, 6vw, 72px); line-height: 1; }
        .home-title-accent {
            display: block; color: var(--green);
            background: linear-gradient(105deg, var(--green), var(--blue));
            background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
        }
        .home-hero p { max-width: 520px; margin: 20px 0 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
        .home-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
        .home-button {
            display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px;
            padding: 0 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
            color: #b6dcff; cursor: pointer; text-decoration: none; font-size: 13px; font-weight: 700;
        }
        .home-button.primary { border-color: transparent; background-color: var(--green); color: #071729; }
        .home-button:hover { filter: brightness(1.12); }
        .home-coverage { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; color: var(--muted); font-size: 10px; }
        .home-coverage span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
        .home-showcase {
            position: relative; display: grid; place-items: center; min-height: 374px; padding: 24px;
            overflow: hidden; border: 1px solid var(--line); border-radius: 30px;
            perspective: 1200px; perspective-origin: 50% 46%;
            background:
                radial-gradient(ellipse at 78% 18%, rgba(139,116,255,.18), transparent 38%),
                radial-gradient(ellipse at 17% 88%, rgba(82,190,203,.12), transparent 40%),
                linear-gradient(145deg, var(--panel), var(--panel-raised));
            box-shadow: inset 0 1px rgba(255,255,255,.06), 0 28px 70px rgba(0,0,0,.2);
        }
        .home-showcase::before {
            position: absolute; inset: 0; background-image: linear-gradient(rgba(160,190,220,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(160,190,220,.055) 1px, transparent 1px);
            background-size: 28px 28px; content: ""; opacity: .45;
            mask-image: linear-gradient(135deg, #000, transparent 80%);
        }
        .home-showcase::after {
            position: absolute; z-index: 0; width: min(74%, 340px); aspect-ratio: 1;
            border: 1px solid rgba(150,190,230,.16); border-radius: 50%;
            background: radial-gradient(circle, rgba(116,190,255,.1), transparent 68%);
            box-shadow: 0 0 70px rgba(102,166,255,.09);
            content: ""; pointer-events: none; transform: rotateX(68deg) rotateZ(-18deg);
            animation: showcase-orbit 28s linear infinite;
        }
        .showcase-card {
            position: relative; z-index: 1; width: min(100%, 390px); padding: 19px;
            overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: var(--panel);
            box-shadow: 0 22px 55px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.06);
            transform-style: preserve-3d; animation: showcase-card-float 9s ease-in-out infinite;
        }
        .showcase-card::before {
            position: absolute; z-index: 0; inset: 0;
            background: linear-gradient(112deg, transparent 32%, rgba(220,240,255,.055) 48%, transparent 62%);
            content: ""; pointer-events: none; transform: translateX(-115%);
            animation: showcase-card-sheen 11s ease-in-out infinite;
        }
        .showcase-card > * { position: relative; z-index: 1; }
        .showcase-top, .showcase-heading, .showcase-footer { transform: translateZ(12px); }
        .showcase-top, .showcase-heading, .showcase-file, .showcase-footer { display: flex; align-items: center; }
        .showcase-top { gap: 9px; padding-bottom: 15px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
        .showcase-mark { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; background: var(--green-dark); color: var(--green); font: 700 12px "Space Grotesk", sans-serif; letter-spacing: 0; }
        .showcase-demo { display: flex; align-items: center; gap: 5px; margin-left: auto; color: var(--green); font-size: 8px; }
        .showcase-demo::before { width: 6px; height: 6px; border-radius: 50%; background: var(--green); content: ""; }
        .showcase-heading { justify-content: space-between; gap: 12px; padding: 18px 0 15px; }
        .showcase-heading div { display: grid; gap: 4px; }
        .showcase-heading small { color: var(--green); font-size: 8px; font-weight: 700; letter-spacing: .13em; }
        .showcase-heading strong { font: 600 17px "Space Grotesk", sans-serif; letter-spacing: -.035em; }
        .showcase-count { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font: 600 8px "Space Grotesk", sans-serif; white-space: nowrap; }
        .showcase-story { display: grid; min-height: 220px; }
        .showcase-scene {
            grid-area: 1 / 1; display: grid; align-content: start; gap: 8px; opacity: 0;
            transform: translate3d(0, 18px, -54px) rotateX(-8deg) rotateY(3deg) scale(.97);
            transform-origin: 50% 50%; animation: showcase-scene-flight 25s cubic-bezier(.2,.7,.25,1) infinite;
            animation-delay: 0s;
            pointer-events: none;
        }
        .showcase-scene:nth-child(2) { animation-delay: -20s; }
        .showcase-scene:nth-child(3) { animation-delay: -15s; }
        .showcase-scene:nth-child(4) { animation-delay: -10s; }
        .showcase-scene:nth-child(5) { animation-delay: -5s; }
        .showcase-scene-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
        .showcase-scene-heading small { color: var(--green); font-size: 8px; font-weight: 700; letter-spacing: .12em; }
        .showcase-scene-heading span { color: var(--muted); font-size: 7px; font-weight: 700; letter-spacing: .06em; }
        .showcase-scene-title { margin: 0 0 2px; font: 600 16px "Space Grotesk", sans-serif; letter-spacing: -.035em; }
        .showcase-scene-note { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
        .showcase-file {
            display: flex; min-width: 0; align-items: center; gap: 10px; padding: 8px 9px; border: 1px solid var(--line);
            border-radius: 12px; background: var(--panel-raised);
        }
        .showcase-file-icon { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 9px; background: rgba(89,184,255,.13); color: #71c9ff; font: 700 8px "Space Grotesk", sans-serif; }
        .showcase-file-icon.result { background: rgba(94,201,161,.12); color: #70d7ae; }
        .showcase-file-icon.image { background: rgba(176,137,255,.14); color: #c1a3ff; }
        .showcase-file-icon.video { background: rgba(255,176,111,.14); color: #ffb16f; }
        .showcase-file-icon.cloud { background: rgba(121,157,255,.14); color: #99b4ff; }
        .showcase-file-icon.crop { background: rgba(94,201,161,.13); color: #70d7ae; }
        .showcase-file-name { display: grid; min-width: 0; gap: 3px; }
        .showcase-file-name strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
        .showcase-file-name small { color: var(--muted); font-size: 8px; }
        .showcase-file-type { margin-left: auto; padding: 5px 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 8px; font-weight: 700; }
        .showcase-converting { display: grid; gap: 6px; padding: 1px 3px; color: var(--muted); font-size: 7px; font-weight: 700; letter-spacing: .09em; }
        .showcase-process-label { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
        .showcase-progress-value { color: var(--blue); font-size: 7px; }
        .showcase-progress { height: 4px; overflow: hidden; border-radius: 999px; background: rgba(115,186,255,.12); }
        .showcase-progress span {
            display: block; width: 68%; height: 100%; border-radius: inherit;
            background: linear-gradient(90deg, #73baff, #8ee0d0);
            box-shadow: 0 0 10px rgba(115,186,255,.4); animation: showcase-progress-glow 2.6s ease-in-out infinite alternate;
        }
        .showcase-action-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
        .showcase-action { display: grid; gap: 6px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-raised); }
        .showcase-action strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
        .showcase-action small { color: var(--muted); font-size: 8px; }
        .showcase-action-icon { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 8px; background: rgba(176,137,255,.14); color: #c1a3ff; font: 700 7px "Space Grotesk", sans-serif; }
        .showcase-action:nth-child(2) .showcase-action-icon { background: rgba(255,137,174,.14); color: #ff9abb; }
        .showcase-library { display: grid; gap: 7px; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-raised); }
        .showcase-library-heading { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 8px; font-weight: 700; }
        .showcase-library-heading strong { color: var(--text); font-size: 9px; }
        .showcase-library .showcase-file { padding: 6px; border-color: rgba(89,135,180,.2); background: var(--panel); }
        .showcase-library .showcase-file-icon { width: 26px; height: 26px; flex-basis: 26px; font-size: 7px; }
        .showcase-library .showcase-file-type { color: #70d7ae; font-size: 7px; }
        .showcase-video-track { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-raised); }
        .showcase-video-track > div:first-child { display: flex; justify-content: space-between; color: var(--muted); font-size: 7px; font-weight: 700; }
        .showcase-video-frames { position: relative; display: flex; height: 31px; gap: 3px; overflow: hidden; padding: 3px; border-radius: 6px; background: rgba(115,186,255,.1); }
        .showcase-video-frames::after {
            position: absolute; top: 3px; bottom: 3px; left: 0; width: 20%;
            background: linear-gradient(90deg, transparent, rgba(230,248,255,.32), transparent);
            content: ""; pointer-events: none; transform: translateX(-120%);
            animation: showcase-timeline-scan 3.2s ease-in-out infinite;
        }
        .showcase-video-frames span { flex: 1; border-radius: 3px; background: linear-gradient(145deg, rgba(115,186,255,.65), rgba(116,224,199,.3)); }
        .showcase-video-frames span:nth-child(even) { background: linear-gradient(145deg, rgba(176,137,255,.6), rgba(89,184,255,.28)); }
        .showcase-local-tools { display: grid; gap: 7px; }
        .showcase-local-tool { display: flex; align-items: center; gap: 9px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-raised); }
        .showcase-local-tool > span:first-child { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 8px; background: rgba(94,201,161,.13); color: #70d7ae; font: 700 7px "Space Grotesk", sans-serif; }
        .showcase-local-tool:nth-child(2) > span:first-child { background: rgba(89,184,255,.13); color: #71c9ff; }
        .showcase-local-tool-copy { display: grid; gap: 3px; }
        .showcase-local-tool-copy strong { font-size: 8px; }
        .showcase-local-tool-copy small { color: var(--muted); font-size: 8px; }
        .showcase-footer { justify-content: space-between; gap: 8px; margin-top: 15px; color: var(--muted); font-size: 8px; }
        .showcase-footer span:last-child { color: var(--green); font-weight: 700; }
        @keyframes showcase-card-float {
            0%, 100% { transform: translate3d(0, 0, 0) rotateX(0) rotateY(0); }
            50% { transform: translate3d(0, -7px, 10px) rotateX(1deg) rotateY(-1deg); }
        }
        @keyframes showcase-card-sheen {
            0%, 50% { transform: translateX(-115%); }
            72%, 100% { transform: translateX(115%); }
        }
        @keyframes showcase-orbit {
            from { transform: rotateX(68deg) rotateZ(-18deg); }
            to { transform: rotateX(68deg) rotateZ(342deg); }
        }
        @keyframes showcase-scene-flight {
            0% { opacity: 0; transform: translate3d(0, 18px, -54px) rotateX(-8deg) rotateY(3deg) scale(.97); }
            3% { opacity: 1; transform: translate3d(0, 0, 0) rotateX(0) rotateY(0) scale(1); }
            15% { opacity: 1; transform: translate3d(0, 0, 0) rotateX(0) rotateY(0) scale(1); }
            20% { opacity: 0; transform: translate3d(0, -12px, 38px) rotateX(5deg) rotateY(-2deg) scale(1.015); }
            99% { opacity: 0; transform: translate3d(0, 18px, -54px) rotateX(-8deg) rotateY(3deg) scale(.97); }
            100% { opacity: 0; transform: translate3d(0, 18px, -54px) rotateX(-8deg) rotateY(3deg) scale(.97); }
        }
        @keyframes showcase-progress-glow {
            from { box-shadow: 0 0 6px rgba(115,186,255,.28); filter: brightness(.94); }
            to { box-shadow: 0 0 13px rgba(115,186,255,.58); filter: brightness(1.12); }
        }
        @keyframes showcase-timeline-scan {
            0% { transform: translateX(-120%); opacity: 0; }
            12% { opacity: .85; }
            72% { transform: translateX(520%); opacity: .7; }
            84%, 100% { transform: translateX(520%); opacity: 0; }
        }
        :root[data-reduce-motion="on"] .showcase-card,
        :root[data-reduce-motion="on"] .showcase-card::before,
        :root[data-reduce-motion="on"] .home-showcase::after,
        :root[data-reduce-motion="on"] .showcase-progress span,
        :root[data-reduce-motion="on"] .showcase-video-frames::after,
        :root[data-reduce-motion="on"] .showcase-scene { animation: none !important; }
        :root[data-reduce-motion="on"] .showcase-scene { opacity: 0; transform: none; }
        :root[data-reduce-motion="on"] .showcase-scene:first-child { opacity: 1; }
        .home-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 17px; }
        .home-section-heading h2 { margin: 7px 0 0; font: 600 clamp(21px, 3vw, 27px)/1.15 "Space Grotesk", sans-serif; letter-spacing: -.04em; }
        .home-section-heading > span { padding-bottom: 3px; color: var(--muted); font-size: 10px; }
        .home-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 62px; }
        .highlight-card {
            position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr);
            align-content: center; column-gap: 14px; min-height: 152px; padding: 20px; overflow: hidden;
            border: 1px solid var(--line); border-radius: 17px;
            background: linear-gradient(145deg, var(--panel), var(--panel-raised));
        }
        .highlight-icon {
            display: grid; grid-row: span 2; width: 42px; height: 42px; margin: 0; place-items: center;
            border: 1px solid var(--line); border-radius: 12px; background: var(--green-dark);
            color: var(--blue); font: 600 18px "Space Grotesk", sans-serif;
        }
        .highlight-icon svg { width: 19px; height: 19px; }
        .highlight-card strong { display: block; align-self: end; font-size: 13px; line-height: 1.35; }
        .highlight-card p { align-self: start; margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
        .home-proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -34px 0 64px; }
        .home-proof span { padding: 8px 12px; border: 1px solid rgba(89,135,180,.3); border-radius: 999px; background: rgba(15,29,46,.72); color: #c4d8ed; font-size: 11px; }
        .what-hero { padding: 58px 0 25px; }
        .what-hero p { max-width: 600px; margin: 0; color: #a3b5cb; font-size: 15px; line-height: 1.7; }
        .what-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin: 22px 0 28px; }
        .what-card { padding: 21px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
        .what-card h2 { margin-bottom: 8px; }
        .what-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
        .tools-page-hero { padding: 34px 0 18px; }
        .tools-page-hero h1 { font-size: clamp(30px, 4.4vw, 44px); }
        .tools-page-hero p { max-width: 680px; }
        .tools-navigation-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 8px; }
        .tools-navigation-heading > div { display: grid; gap: 3px; }
        .tools-navigation-heading > div span { color: #8fa9c6; font-size: 9px; font-weight: 700; letter-spacing: .13em; }
        .tools-navigation-heading > div strong { color: var(--text); font: 600 14px "Space Grotesk", sans-serif; }
        .tools-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 7px; margin: 0 0 18px; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: rgba(10,19,31,.76); }
        .tools-tab { min-width: 0; min-height: 48px; padding: 0 12px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 600; text-align: center; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
        .tools-tab:hover { border-color: rgba(116,172,224,.32); color: var(--text); transform: translateY(-1px); }
        .tools-tab[aria-selected="true"] { border-color: #38618b; background: linear-gradient(125deg, rgba(62,139,211,.3), rgba(99,84,178,.2)); color: #dff0ff; box-shadow: inset 0 1px rgba(255,255,255,.04), 0 7px 18px rgba(30,82,133,.15); }
        .tools-panel[hidden] { display: none !important; }
        .tools-panel { animation: page-enter .24s ease both; }
        #toolsMusicPanel, #toolsCropperPanel { margin-top: 18px; }
        .tool-library { padding: clamp(18px, 2.5vw, 28px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
        .tools-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
        .tools-panel-heading h2 { margin: 2px 0 5px; font-size: 20px; }
        .tools-panel-heading p { max-width: 620px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
        .tools-panel-kicker { color: #8fcaff; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
        .music-studio-panel { padding: clamp(16px, 2.5vw, 26px); border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(ellipse at 100% 0, rgba(82,107,211,.12), transparent 40%), var(--panel); }
        .music-studio-heading { align-items: center; margin-bottom: 20px; }
        .music-studio-heading h2 { margin: 5px 0 7px; font: 700 clamp(22px, 3vw, 30px) "Space Grotesk", sans-serif; letter-spacing: -.04em; }
        .music-studio-heading p { max-width: 610px; }
        .music-studio-local-badge { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid rgba(83,207,164,.25); border-radius: 999px; background: rgba(42,154,118,.1); color: #8be1c3; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
        .music-studio-local-badge span { width: 7px; height: 7px; border-radius: 50%; background: #75dfb8; box-shadow: 0 0 10px rgba(117,223,184,.72); }
        .music-studio-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .82fr); align-items: start; gap: 14px; }
        .music-studio-preview-card, .music-studio-controls { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(7,14,24,.66); }
        .music-studio-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
        .music-studio-preview-heading span:first-child, .music-studio-controls-heading span { color: #8fafff; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
        .music-studio-preview-heading span:last-child { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
        .music-studio-stage { position: relative; display: grid; min-height: 220px; aspect-ratio: 16 / 9; place-items: center; overflow: hidden; border: 1px solid rgba(139,157,223,.2); border-radius: 13px; background: radial-gradient(ellipse at 50% 50%, #182345, #070c16 72%); }
        .music-studio-stage[data-aspect="square"] { width: min(100%, 460px); min-height: 0; margin-inline: auto; }
        .music-studio-stage[data-aspect="portrait"] { width: min(100%, 360px); min-height: 0; margin-inline: auto; }
        .music-studio-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
        .music-studio-empty { position: relative; z-index: 1; display: grid; justify-items: center; gap: 7px; padding: 18px; text-align: center; pointer-events: none; }
        .music-studio-empty strong { color: #f1f1ff; font: 600 15px "Space Grotesk", sans-serif; }
        .music-studio-empty p { margin: 0; color: #a3acc5; font-size: 11px; }
        .music-studio-file { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 11px 12px; border: 1px dashed rgba(139,157,223,.3); border-radius: 12px; background: rgba(255,255,255,.025); cursor: pointer; }
        .music-studio-file > span { display: grid; min-width: 0; gap: 4px; }
        .music-studio-file strong { color: var(--text); font-size: 11px; }
        .music-studio-file small { color: var(--muted); font-size: 9px; }
        .music-studio-file input { max-width: 58%; color: var(--muted); font-size: 10px; }
        .music-studio-audio { display: block; width: 100%; height: 44px; margin-top: 10px; }
        .music-studio-title-label, .music-studio-controls > label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 600; }
        .music-studio-title-label { margin-top: 11px; }
        .music-studio-title-label input, .music-studio-controls select { width: 100%; min-width: 0; min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--text); font: inherit; }
        .music-studio-render-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
        .music-studio-render-actions .primary-btn, .music-studio-render-actions .account-button { flex: 1 1 170px; margin: 0; }
        .music-studio-render-actions [hidden] { display: none !important; }
        .music-studio-download { display: inline-flex; min-height: 42px; align-items: center; padding: 0 12px; border: 1px solid rgba(107,207,173,.4); border-radius: 10px; background: rgba(42,154,118,.12); color: #a5f0d1; font-size: 10px; font-weight: 700; text-decoration: none; }
        .music-studio-status { min-height: 18px; margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
        .music-studio-status[data-state="error"] { color: var(--red); }
        .music-studio-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 10px; }
        .music-studio-controls-heading { display: grid; grid-column: 1 / -1; gap: 5px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
        .music-studio-toggle, .music-studio-option-group, .music-studio-note { grid-column: 1 / -1; }
        .music-studio-option-group { min-width: 0; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); }
        .music-studio-option-group summary { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 8px; padding: 0 11px; color: var(--text); cursor: pointer; font-size: 10px; font-weight: 650; list-style-position: inside; }
        .music-studio-option-group summary span { color: var(--muted); font-size: 9px; font-weight: 400; }
        .music-studio-option-content { display: grid; gap: 10px; padding: 0 10px 10px; }
        .music-studio-option-content > label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 600; }
        .music-studio-controls-heading strong { color: var(--text); font: 600 16px "Space Grotesk", sans-serif; }
        .music-studio-controls output { justify-self: end; color: #d5c6ff; font-variant-numeric: tabular-nums; }
        .music-studio-resolution-note { color: var(--muted); font-size: 9px; font-weight: 400; }
        .music-studio-controls input[type="range"] { width: 100%; accent-color: #ac88ff; }
        .music-studio-controls textarea { width: 100%; min-height: 72px; padding: 9px 10px; resize: vertical; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--text); font: inherit; }
        .music-studio-controls input[type="color"] { width: 100%; height: 38px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); }
        .music-studio-color-grid, .music-studio-control-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
        .music-studio-color-grid label, .music-studio-control-pair label { display: grid; min-width: 0; align-content: start; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 600; }
        .music-studio-toggle { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; }
        .music-studio-toggle input { width: 16px; height: 16px; accent-color: #ac88ff; }
        .music-studio-image-upload { display: grid; gap: 7px; padding: 10px; border: 1px dashed rgba(139,157,223,.3); border-radius: 10px; color: var(--text); font-size: 10px; font-weight: 600; cursor: pointer; }
        .music-studio-image-upload input { width: 100%; max-width: 100%; color: var(--muted); font-size: 9px; }
        .music-studio-image-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
        .music-studio-image-actions span, .music-studio-drag-help { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
        .music-studio-image-actions .account-button { min-height: 34px; padding: 0 9px; font-size: 9px; }
        .music-studio-stage.has-overlay-image { cursor: grab; touch-action: pan-y; }
        .music-studio-stage.has-overlay-image:active { cursor: grabbing; }
        .music-studio-note { margin: 0; padding: 10px; border: 1px solid rgba(231,183,92,.2); border-radius: 10px; background: rgba(231,183,92,.06); color: #b9ad91; font-size: 9px; line-height: 1.55; }
        .tools-search-label { display: block; margin: 0 0 7px; color: #bdcfe4; font-size: 11px; font-weight: 600; }
        .tool-browser-search { width: 100%; min-height: 44px; margin-bottom: 16px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: #0d1725; color: var(--text); }
        .tool-browser-search:focus { border-color: #73baff; box-shadow: 0 0 0 3px rgba(115,186,255,.12); }
        .tool-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
        .tool-card { display: flex; min-width: 0; min-height: 132px; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, rgba(27,48,72,.8), rgba(14,24,38,.9)); color: var(--text); cursor: pointer; text-align: left; transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease; }
        .tool-card:hover:not(:disabled), .tool-card.selected { border-color: #527fa9; background: linear-gradient(145deg, rgba(35,71,107,.78), rgba(16,31,49,.94)); box-shadow: 0 9px 24px rgba(0,0,0,.15); transform: translateY(-2px); }
        .tool-card:disabled { cursor: not-allowed; opacity: .58; }
        .tool-card strong { font-size: 13px; line-height: 1.4; }
        .tool-card small { color: var(--muted); font-size: 10px; line-height: 1.5; }
        .tool-card-label, .tool-card-action { color: #8fcaff; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
        .tool-card-action { margin-top: auto; letter-spacing: 0; text-transform: none; }
        .quick-tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
        .jokes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
        .joke-card { position: relative; display: flex; min-height: 330px; min-width: 0; flex-direction: column; align-items: flex-start; gap: 13px; overflow: hidden; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(155deg, rgba(31,49,72,.72), rgba(13,23,37,.96) 68%), var(--panel-raised); box-shadow: 0 16px 36px rgba(0,0,0,.14); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
        .joke-card:hover { transform: translateY(-4px); border-color: rgba(135,180,220,.48); box-shadow: 0 22px 44px rgba(0,0,0,.23); }
        .joke-card h3 { margin: 0; font: 700 clamp(17px, 2vw, 21px) "Space Grotesk", sans-serif; letter-spacing: -.025em; }
        .joke-card > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
        .joke-card-label { color: #9dcfff; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
        .joke-card-video { grid-column: 1 / -1; min-height: 0; align-items: stretch; padding: 25px; border-color: rgba(165,127,255,.38); background: radial-gradient(ellipse at 100% 0, rgba(165,127,255,.2), transparent 48%), linear-gradient(155deg, rgba(42,34,72,.82), rgba(15,21,39,.98) 72%); }
        .joke-card-video:hover { transform: none; border-color: rgba(190,158,255,.56); box-shadow: 0 16px 36px rgba(0,0,0,.14); }
        .joke-destroyer-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
        .joke-destroyer-title { display: flex; align-items: center; }
        .joke-local-badge { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid rgba(112,222,184,.24); border-radius: 999px; background: rgba(42,154,118,.1); color: #9ce8ca; font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
        .joke-local-badge span { width: 7px; height: 7px; border-radius: 50%; background: #75dfb8; box-shadow: 0 0 9px rgba(117,223,184,.64); }
        .joke-card-video .joke-destroyer-intro { max-width: 760px; }
        .joke-destroyer-toolbar { margin: 3px 0; }
        .joke-destroyer-intensity { display: grid; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 600; }
        .joke-destroyer-intensity > span:first-child { display: flex; justify-content: space-between; color: var(--text); }
        .joke-destroyer-intensity output { color: #d3baff; }
        .joke-destroyer-intensity input { width: 100%; margin: 0; accent-color: #b393ff; }
        .joke-intensity-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }
        .joke-destroyer-dropzone { display: grid; min-height: 148px; justify-items: center; align-content: center; gap: 8px; padding: 20px; border: 1px dashed rgba(190,158,255,.42); border-radius: 15px; background: linear-gradient(120deg, rgba(128,91,205,.1), rgba(75,107,164,.08)); cursor: pointer; text-align: center; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
        .joke-destroyer-dropzone:hover, .joke-destroyer-dropzone.is-dragging { transform: translateY(-1px); border-color: #c2a8ff; background: rgba(128,91,205,.16); }
        .joke-destroyer-dropzone:focus-within { outline: 3px solid rgba(179,147,255,.24); outline-offset: 3px; }
        .joke-drop-icon { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(190,158,255,.3); border-radius: 11px; background: rgba(137,95,217,.18); color: #dfd0ff; font-size: 21px; }
        .joke-drop-title { color: var(--text); font-size: 12px; font-weight: 700; }
        .joke-drop-hint { color: var(--muted); font-size: 10px; line-height: 1.5; }
        .joke-destroyer-selection { display: grid; gap: 8px; }
        .joke-destroyer-selection-label { color: var(--muted); font-size: 10px; font-weight: 600; }
        .joke-destroyer-file-list { display: grid; max-height: 190px; gap: 6px; overflow: auto; }
        .joke-destroyer-file { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid rgba(143,202,255,.12); border-radius: 9px; background: rgba(5,11,20,.3); }
        .joke-destroyer-file-details { display: grid; min-width: 0; gap: 3px; }
        .joke-destroyer-file-details strong { overflow: hidden; color: var(--text); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
        .joke-destroyer-file-details small { color: var(--muted); font-size: 9px; }
        .joke-destroyer-remove { width: 30px; height: 30px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 19px; line-height: 1; }
        .joke-destroyer-remove:hover:not(:disabled) { border-color: rgba(255,132,147,.45); color: #ff9ca8; }
        .joke-destroyer-actions { display: flex; flex-wrap: wrap; gap: 9px; }
        .joke-destroyer-actions button { min-height: 43px; margin: 0; }
        .joke-destroyer-actions .joke-destroy-button { flex: 1 1 200px; border-color: rgba(190,158,255,.4); background: linear-gradient(120deg, #7a55c4, #5369b2); }
        .joke-destroyer-actions .joke-destroy-button:hover:not(:disabled) { background: linear-gradient(120deg, #8965d0, #6177c0); }
        .joke-destroyer-actions .joke-destroy-button:disabled { cursor: not-allowed; opacity: .5; }
        .joke-destroyer-progress { display: grid; gap: 7px; }
        .joke-destroyer-progress progress { width: 100%; height: 9px; overflow: hidden; border: 0; border-radius: 999px; accent-color: #b393ff; }
        .joke-destroyer-progress progress::-webkit-progress-bar { border-radius: 999px; background: rgba(5,11,20,.55); }
        .joke-destroyer-progress progress::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, #8e68dc, #65d8ae); }
        .joke-destroyer-status { min-height: 18px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
        .joke-destroyer-status[data-state="error"] { color: var(--red); }
        .joke-destroyer-results { display: grid; gap: 10px; padding-top: 15px; border-top: 1px solid rgba(190,158,255,.16); }
        .joke-destroyer-results[hidden], #jokeDestroyClearResults[hidden] { display: none !important; }
        .joke-destroyer-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
        .joke-destroyer-results-heading h4 { margin: 0; color: var(--text); font: 600 13px "Space Grotesk", sans-serif; }
        .joke-destroyer-results-heading .account-button { min-height: 34px; margin: 0; padding: 0 10px; font-size: 10px; }
        .joke-destroy-result-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 9px; }
        .joke-destroy-result { display: grid; min-width: 0; grid-template-columns: minmax(72px, 110px) minmax(0, 1fr); align-items: center; gap: 10px; padding: 9px; border: 1px solid rgba(112,222,184,.2); border-radius: 11px; background: rgba(5,11,20,.3); }
        .joke-destroy-result:has(audio) { grid-template-columns: minmax(0, 1fr); }
        .joke-destroy-result-preview { display: block; width: 100%; max-height: 76px; border-radius: 7px; background: #080d15; object-fit: contain; }
        audio.joke-destroy-result-preview { max-width: 100%; height: 40px; }
        .joke-destroy-result-details { display: grid; min-width: 0; gap: 5px; }
        .joke-destroy-result-details strong { overflow-wrap: anywhere; color: var(--text); font-size: 10px; }
        .joke-destroy-result-details small { color: var(--muted); font-size: 9px; }
        .joke-destroy-download { display: inline-flex; width: fit-content; min-height: 30px; align-items: center; padding: 0 9px; border: 1px solid rgba(112,222,184,.28); border-radius: 7px; background: rgba(42,154,118,.1); color: #9ce8ca; font-size: 9px; font-weight: 700; text-decoration: none; }
        .joke-destroy-result.is-error { display: block; border-color: rgba(255,132,147,.25); color: #ffabb4; font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
        @media (max-width: 900px) {
            .jokes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .joke-card-video { grid-column: 1 / -1; }
        }
        @media (max-width: 760px) {
            .joke-destroyer-heading { align-items: flex-start; flex-direction: column; }
            .joke-destroyer-results-heading { align-items: flex-start; }
        }
        .joke-card-nothing { grid-column: 1 / -1; min-height: 0; background: radial-gradient(ellipse at 100% 0, rgba(103,220,181,.13), transparent 45%), linear-gradient(155deg, rgba(27,48,54,.78), rgba(14,24,36,.98) 72%); }
        .joke-external-link { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: auto; padding: 0 14px; border: 1px solid rgba(190,158,255,.48); border-radius: 11px; background: linear-gradient(120deg, rgba(137,95,217,.32), rgba(96,85,180,.2)); color: #e0d1ff; font-size: 12px; font-weight: 700; text-decoration: none; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
        .joke-external-link:hover { transform: translateY(-1px); border-color: #c2a8ff; background: linear-gradient(120deg, rgba(137,95,217,.46), rgba(96,85,180,.3)); }
        .joke-card .joke-disclaimer { color: var(--muted); font-size: 10px; }
        .joke-output { display: flex; width: 100%; min-height: 94px; align-items: center; margin: 2px 0; padding: 14px; border: 1px solid rgba(143,202,255,.16); border-radius: 12px; background: rgba(5,11,20,.48); color: var(--text); font-size: 12px; line-height: 1.7; box-shadow: inset 0 1px rgba(255,255,255,.025); }
        .joke-card .account-button { width: 100%; min-height: 46px; margin-top: auto; border-radius: 11px; font-size: 12px; }
        .quick-tool-card { display: grid; align-content: start; gap: 12px; min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel-raised); }
        .quick-tool-card h3 { margin: 0; font-size: 14px; }
        .quick-tool-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
        .quick-tool-card label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 600; }
        .quick-tool-card input:not([type="color"]), .quick-tool-card select, .quick-tool-card textarea { width: 100%; min-width: 0; min-height: 40px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; outline: none; background: var(--bg); color: var(--text); font: inherit; }
        .quick-tool-card input[type="color"] { width: 100%; height: 42px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); cursor: pointer; }
        .quick-tool-card textarea { min-height: 88px; resize: vertical; }
        .quick-tool-card input:focus, .quick-tool-card select:focus, .quick-tool-card textarea:focus { border-color: #73baff; box-shadow: 0 0 0 3px rgba(115,186,255,.12); }
        .quick-tool-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
        .quick-tool-actions { display: flex; flex-wrap: wrap; gap: 8px; }
        .quick-tool-actions button { min-height: 38px; }
        .quick-tool-status { min-height: 16px; }
        .quick-tool-status[data-state="error"] { color: var(--red); }
        .quick-color-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
        .quick-color-values output { min-width: 0; overflow-wrap: anywhere; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font-family: ui-monospace, Consolas, monospace; font-size: 11px; }
        .quick-color-palette { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
        .quick-color-swatch { min-width: 0; height: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--swatch); cursor: pointer; }
        .quick-tool-download { display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--text); font-size: 11px; font-weight: 600; text-decoration: none; }
        .tool-empty { grid-column: 1 / -1; margin: 0; padding: 24px; border: 1px dashed var(--line); border-radius: 11px; color: var(--muted); font-size: 12px; text-align: center; }
        .layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(280px, .72fr); gap: 18px; align-items: start; }
        .card {
            border: 1px solid var(--line); border-radius: var(--radius);
            background: var(--panel); box-shadow: 0 18px 60px rgba(0,0,0,.12);
            animation: card-arrive .65s cubic-bezier(.18,.8,.25,1) both;
            transition: border-color .25s ease, box-shadow .25s ease;
        }
        .upload-card { padding: 24px; }
        .section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
        .section-heading-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
        h2 { margin: 0; font: 600 18px "Space Grotesk", sans-serif; letter-spacing: -.025em; }
        .section-subtitle { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
        .limit-chip { flex: 0 0 auto; padding: 7px 10px; color: #becfe2; background: #14243a; border: 1px solid var(--line); border-radius: 9px; font-size: 11px; }
        .guest-conversion-notice { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(115deg, rgba(35,116,190,.18), rgba(35,116,190,.05)); }
        .guest-conversion-notice[hidden] { display: none; }
        .guest-conversion-notice strong { display: block; font-size: 14px; }
        .guest-conversion-notice p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
        .guest-upgrade-status:empty { display: none; }
        .guest-upgrade-status { display: block; margin-top: 5px; color: #ffb2b2; font-size: 11px; }
        .guest-conversion-notice .account-button { flex: 0 0 auto; }
        .cropper-card { margin: 0 0 20px; padding: clamp(17px, 2.5vw, 28px); }
        .cropper-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
        .cropper-heading h2 { margin: 3px 0 0; font-size: 20px; }
        .cropper-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
        .cropper-workspace { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 18px; align-items: stretch; }
        .cropper-workspace.is-empty { grid-template-columns: minmax(0,1fr); }
        .cropper-workspace.is-empty .cropper-controls { display: none; }
        .cropper-stage-area { min-width: 0; }
        .cropper-stage-wrap { min-height: clamp(280px, 42vw, 520px); display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: radial-gradient(ellipse at center, rgba(43,76,112,.28), rgba(4,10,18,.58)); }
        .cropper-stage-wrap[hidden] { display: none; }
        .cropper-empty { display: grid; min-height: clamp(280px, 38vw, 420px); align-content: center; justify-items: center; gap: 12px; padding: 28px; border: 1px dashed #52718f; border-radius: 14px; background: linear-gradient(145deg, rgba(22,47,73,.6), rgba(10,21,34,.82)); color: var(--muted); font-size: 12px; text-align: center; }
        .cropper-empty[hidden] { display: none !important; }
        .cropper-empty-icon { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid #426b92; border-radius: 14px; background: rgba(47,104,153,.2); color: #a8d8ff; font-size: 25px; }
        .cropper-empty strong { color: var(--text); font-size: 16px; }
        .cropper-empty p { margin: 0; line-height: 1.6; }
        .cropper-empty small { color: var(--muted); font-size: 10px; }
        .cropper-choose-button { min-height: 44px; margin: 3px 0; padding: 0 18px; }
        .cropper-stage { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
        .cropper-stage img { display: block; max-width: 100%; max-height: min(68vh, 620px); object-fit: contain; }
        .cropper-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
        .cropper-controls { display: grid; align-content: start; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(12,22,36,.72); }
        .cropper-controls-heading strong, .cropper-controls-heading small { display: block; }
        .cropper-controls-heading strong { color: var(--text); font-size: 13px; }
        .cropper-controls-heading small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
        .cropper-controls label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; }
        .cropper-controls select { width: 100%; min-height: 44px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); }
        .cropper-controls select option { background: var(--panel); color: var(--text); }
        .cropper-download-button { width: 100%; min-height: 48px; margin-top: 2px; }
        .cropper-status { min-height: 18px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
        .dropzone {
            position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
            min-height: 192px; padding: 24px; text-align: center; border: 1px dashed #3d5877;
            border-radius: 14px; background: linear-gradient(145deg, rgba(73,153,255,.09), rgba(23,34,49,.72));
            transition: border-color .22s ease, background .22s ease, box-shadow .22s ease, transform .22s ease;
        }
        .dropzone:hover { border-color: #689ed0; box-shadow: 0 0 28px rgba(78,157,225,.1), inset 0 0 24px rgba(78,157,225,.05); }
        .dropzone.drag-over {
            border-color: var(--green); background: rgba(73,153,255,.14);
            box-shadow: 0 0 32px rgba(83,177,255,.2), inset 0 0 30px rgba(83,177,255,.12);
            animation: dropzone-pulse .85s ease-in-out infinite alternate;
        }
        .drop-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 12px; border-radius: 12px; background: #1d3048; color: var(--green); font-size: 21px; }
        .dropzone:hover .drop-icon, .dropzone.drag-over .drop-icon { animation: upload-icon-ready .62s ease-in-out infinite alternate; }
        .drop-title { font-size: 14px; font-weight: 600; }
        .drop-hint { margin-top: 5px; color: var(--muted); font-size: 12px; }
        .choose-btn { margin-top: 15px; padding: 8px 13px; border: 1px solid #3b5d81; border-radius: 9px; background: #182b41; color: var(--green); cursor: pointer; font-size: 12px; font-weight: 600; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease; }
        .choose-btn:hover { transform: translateY(-2px); border-color: var(--green); background: #203b59; box-shadow: 0 6px 18px rgba(68,152,222,.2); }
        .choose-btn:active { transform: translateY(0) scale(.97); }
        #file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
        .selected-files { display: none; margin-top: 11px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #0c1724; }
        .selected-files.visible { display: block; }
        .selected-files strong { color: #dceaff; font-size: 12px; font-weight: 500; }
        .selected-files span { display: block; overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
        .rotation-editor { display: grid; gap: 12px; margin-top: 14px; padding: 14px; border: 1px solid #345579; border-radius: 12px; background: linear-gradient(145deg, rgba(21,43,66,.82), rgba(11,20,32,.94)); }
        .rotation-editor[hidden] { display: none !important; }
        .rotation-editor-heading { display: flex; justify-content: space-between; gap: 12px; color: #eaf4ff; font-size: 12px; }
        .rotation-editor-heading span, .rotation-preview-empty { color: var(--muted); font-size: 11px; }
        .rotation-preview-stage { display: grid; min-height: 185px; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: radial-gradient(ellipse at center, rgba(43,76,112,.28), rgba(4,10,18,.58)); }
        .rotation-preview-stage img, .rotation-preview-stage video { max-width: min(72%, 380px); max-height: 210px; object-fit: contain; transform: rotate(90deg); transition: transform .15s ease; }
        .rotation-preview-empty { margin: 12px; text-align: center; }
        .rotation-controls { display: grid; grid-template-columns: minmax(0,1fr) 112px; gap: 12px; align-items: end; }
        .rotation-controls[hidden] { display: none !important; }
        .rotation-controls label { display: grid; gap: 5px; color: #bdcfe4; font-size: 11px; }
        .rotation-controls input[type="range"] { width: 100%; accent-color: #73baff; }
        .rotation-controls input[type="number"] { width: 100%; min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #0d1725; color: var(--text); }
        .trim-length { margin: 0; color: var(--muted); font-size: 11px; }
        .trim-position { margin: 0; color: #b9d3ec; font-size: 11px; font-variant-numeric: tabular-nums; }
        .trim-actions { display: flex; flex-wrap: wrap; gap: 8px; }
        .trim-actions[hidden] { display: none !important; }
        .trim-actions button { min-height: 38px; margin: 0; padding: 7px 10px; }
        .trim-loop-toggle { display: flex; align-items: center; gap: 8px; color: #bdcfe4; font-size: 11px; }
        .trim-loop-toggle[hidden] { display: none !important; }
        .trim-loop-toggle input { accent-color: #73baff; }
        .trim-timeline, .trim-marker-times { grid-column: 1 / -1; }
        .trim-timeline { position: relative; height: 38px; margin: 0 11px; touch-action: pan-y; }
        .trim-timeline-track { position: absolute; top: 16px; right: 0; left: 0; height: 6px; overflow: hidden; border-radius: 99px; background: #33465e; }
        .trim-timeline-selection { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #5bbdff, #7ae0c3); }
        .trim-timeline input[type="range"] { position: absolute; inset: 0; z-index: 2; width: 100%; height: 38px; margin: 0; appearance: none; background: transparent; pointer-events: none; }
        .trim-timeline input[type="range"]:last-of-type { z-index: 3; }
        .trim-timeline input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: transparent; }
        .trim-timeline input[type="range"]::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: -7px; appearance: none; border: 3px solid #eef8ff; border-radius: 50%; background: #2685d1; box-shadow: 0 1px 7px rgba(0,0,0,.55); cursor: ew-resize; pointer-events: auto; }
        .trim-timeline input[type="range"]::-moz-range-track { height: 6px; background: transparent; }
        .trim-timeline input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 3px solid #eef8ff; border-radius: 50%; background: #2685d1; box-shadow: 0 1px 7px rgba(0,0,0,.55); cursor: ew-resize; pointer-events: auto; }
        .trim-timeline input[type="range"]:disabled::-webkit-slider-thumb, .trim-timeline input[type="range"]:disabled::-moz-range-thumb { background: #68798c; cursor: default; }
        .trim-marker-times { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
        .trim-marker-times strong { color: var(--text); }
        .field-label { display: block; margin: 19px 0 7px; color: #bdcfe4; font-size: 11px; font-weight: 600; }
        select, input[type="text"] {
            width: 100%; min-height: 44px; padding: 0 13px; color: var(--text);
            border: 1px solid var(--line); border-radius: 10px; outline: none; background: #0d1725;
        }
        select:focus, input[type="text"]:focus, input[type="search"]:focus { border-color: #73baff; box-shadow: 0 0 0 3px rgba(115,186,255,.12); }
        .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }
        .conversion-picker { display: grid; gap: 10px; }
        .upload-card:focus-within { position: relative; z-index: 8; }
        .conversion-selection { display: flex; min-width: 0; flex-direction: column; gap: 4px; padding: 13px 15px; border: 1px solid #345579; border-radius: 11px; background: linear-gradient(115deg, rgba(35,95,151,.22), rgba(16,29,45,.76)); }
        .conversion-selection-label { color: #8fcaff; font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
        .conversion-selection strong { overflow-wrap: anywhere; color: #eef5ff; font-size: 14px; }
        .conversion-selection small { color: var(--muted); font-size: 11px; }
        .conversion-menu {
            display: grid; gap: 12px; min-width: 0; padding: 13px;
            border: 1px solid #344c69; border-radius: 13px; background: #101b2a;
            box-shadow: 0 12px 32px rgba(0,0,0,.2);
        }
        .conversion-menu[hidden] { display: none; }
        .conversion-search { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; outline: none; background: #0a1320; color: var(--text); font-size: 12px; }
        .conversion-search:focus { border-color: #73baff; box-shadow: 0 0 0 3px rgba(115,186,255,.12); }
        .conversion-browser { display: grid; grid-template-columns: minmax(135px, .3fr) minmax(0, 1fr); gap: 13px; align-items: start; min-width: 0; }
        .category-nav { display: grid; align-content: start; gap: 5px; max-height: 350px; margin: 0; padding-right: 5px; overflow: auto; }
        .category-btn { width: 100%; min-height: 36px; padding: 7px 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #9fb1c7; cursor: pointer; font-size: 10px; text-align: left; }
        .category-btn.active, .category-btn[aria-pressed="true"] { border-color: #345277; background: #1a304a; color: #a8d4ff; }
        .conversion-results-wrap { min-width: 0; }
        .conversion-help { margin: 0 1px 8px; color: var(--muted); font-size: 10px; line-height: 1.5; }
        .conversion-result-summary { margin: 0 1px 8px; color: var(--muted); font-size: 10px; line-height: 1.45; }
        .conversion-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-height: 320px; overflow: auto; overscroll-behavior: contain; }
        .conversion-option { display: flex; min-width: 0; min-height: 62px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; padding: 9px 10px; border: 1px solid transparent; border-radius: 8px; background: rgba(23,39,59,.64); text-align: left; cursor: pointer; }
        .conversion-option:hover, .conversion-option.selected { border-color: #345277; background: #1a2d43; }
        .conversion-option:disabled { cursor: not-allowed; opacity: .62; }
        .conversion-option:disabled:hover { transform: none; box-shadow: none; background: transparent; }
        .conversion-option strong { color: #e4edfa; font-size: 11px; font-weight: 500; }
        .conversion-option small { max-width: 100%; overflow: hidden; color: #8fa9c6; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
        .no-conversions { padding: 18px 8px; color: var(--muted); text-align: center; font-size: 11px; }
        .operation-note { min-height: 0; margin: 0; color: #a9c4e0; font-size: 11px; }
        .dev-code { display: none; margin-top: 14px; }
        .dev-code.visible { display: block; }
        .code-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
        .code-label-row .field-label { margin-top: 0; }
        .inline-code-btn { padding: 6px 9px; border: 1px solid #3b5d81; border-radius: 7px; background: #182b41; color: var(--green); cursor: pointer; font-size: 10px; font-weight: 600; }
        .code-hint { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
        .primary-btn {
            display: flex; width: 100%; min-height: 47px; align-items: center; justify-content: center; gap: 9px;
            margin-top: 18px; padding: 10px 16px; border: 0; border-radius: 11px;
            background: linear-gradient(115deg, #8acbff, #8ee0d0 48%, #aaa1ff);
            background-size: 220% 220%; background-position: 0% 50%;
            color: #071729; cursor: pointer; font-weight: 700; font-size: 13px;
            box-shadow: 0 7px 22px rgba(72,151,221,.17);
            transition: transform .2s ease, background-position .55s ease, box-shadow .25s ease, filter .2s ease;
        }
        .primary-btn:hover { transform: translateY(-2px) scale(1.008); background-position: 100% 50%; filter: saturate(1.16); box-shadow: 0 11px 28px rgba(72,151,221,.3); }
        .primary-btn:active { transform: translateY(0) scale(.99); }
        .primary-btn:disabled {
            opacity: .9; cursor: wait; transform: none; filter: saturate(.9);
            animation: upload-button-working 1.5s ease-in-out infinite;
        }
        .primary-btn:disabled::after {
            content: ""; width: 14px; height: 14px; flex: 0 0 14px;
            border: 2px solid rgba(7,23,41,.25); border-top-color: #071729; border-radius: 50%;
            animation: upload-spinner .7s linear infinite;
        }
        .transfer { display: none; margin-top: 19px; padding: 15px; border: 1px solid #344c69; border-radius: 12px; background: #0b1420; }
        .transfer.visible { display: block; }
        .transfer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
        .transfer-title { font-size: 12px; font-weight: 600; }
        .transfer-percent { color: var(--green); font: 600 13px "Space Grotesk", sans-serif; }
        .transfer-row + .transfer-row { margin-top: 12px; }
        .transfer-label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; color: #b0bbb3; font-size: 10px; }
        .transfer-label strong { color: #eff5f0; font-weight: 500; }
        .meter { height: 7px; overflow: hidden; border-radius: 9px; background: #1a2b3f; }
        .meter-fill { width: 0; height: 100%; border-radius: inherit; transition: width .25s ease; }
        .meter-fill.sent { background: var(--blue); }
        .meter-fill.received { background: var(--green); }
        .transfer-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 10px; }
        .transfer-tools { display: flex; justify-content: flex-end; margin-top: 12px; }
        .advanced-toggle {
            padding: 7px 10px; border: 1px solid #345277; border-radius: 8px;
            background: #14263b; color: #acd5ff; cursor: pointer; font-size: 10px; font-weight: 600;
        }
        .advanced-toggle:hover, .advanced-toggle[aria-expanded="true"] { border-color: #6eacdf; background: #1a3450; }
        .transfer-advanced { margin-top: 13px; padding-top: 13px; border-top: 1px solid #263851; }
        .transfer-advanced[hidden] { display: none; }
        .transfer-advanced.is-opening > * { animation: insight-arrive .48s cubic-bezier(.2,.75,.25,1) both; }
        .transfer-advanced.is-opening > *:nth-child(2) { animation-delay: .06s; }
        .transfer-advanced.is-opening > *:nth-child(3) { animation-delay: .12s; }
        .transfer-advanced.is-opening > *:nth-child(4) { animation-delay: .18s; }
        .transfer-advanced.is-opening > *:nth-child(5) { animation-delay: .24s; }
        .speed-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
        .speed-card { padding: 10px; border: 1px solid #263851; border-radius: 9px; background: #101b2a; }
        .speed-card span { display: block; color: var(--muted); font-size: 9px; }
        .speed-card strong { display: block; margin-top: 4px; color: #b6dcff; font: 600 16px "Space Grotesk", sans-serif; }
        .speed-card.received-speed strong { color: #81ddc2; }
        .chart-card { margin-top: 9px; padding: 11px; border: 1px solid #263851; border-radius: 10px; background: #0e1826; }
        .chart-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
        .chart-heading strong { font-size: 10px; }
        .chart-heading span { color: var(--muted); font-size: 9px; }
        .transfer-chart { display: block; width: 100%; height: 112px; }
        .chart-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 5px; color: var(--muted); font-size: 9px; }
        .legend-item { display: inline-flex; align-items: center; gap: 5px; }
        .legend-swatch { width: 8px; height: 8px; border-radius: 50%; background: #9bd1ff; }
        .legend-swatch.received { background: #73d8b4; }
        .transfer-error { display: none; margin-top: 12px; color: var(--red); font-size: 11px; line-height: 1.5; white-space: pre-wrap; }
        .transfer-error.visible { display: block; }
        .transfer-files { display: grid; gap: 6px; max-height: 130px; overflow-y: auto; margin-top: 12px; }
        .transfer-file-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; background: #111e2d; }
        .transfer-file-name { overflow: hidden; color: #c4d3e4; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
        .transfer-file-state { color: #92a9c2; font-size: 9px; }
        .side-card { padding: 21px; }
        .side-title { margin-bottom: 16px; font: 600 15px "Space Grotesk", sans-serif; }
        .guide-step { display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 10px; padding: 14px 0; border-top: 1px solid #263851; }
        .guide-step:first-of-type { padding-top: 0; border-top: 0; }
        .guide-number { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #345277; border-radius: 9px; background: #14263b; color: #a8d4ff; font: 600 10px "Space Grotesk", sans-serif; }
        .guide-step strong { display: block; color: #e0ecfa; font-size: 11px; }
        .guide-step p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
        .guide-callout { margin-top: 11px; padding: 12px; border: 1px solid #284563; border-radius: 10px; background: linear-gradient(135deg, rgba(38,87,132,.22), rgba(17,27,42,.8)); color: #b6cde4; font-size: 10px; line-height: 1.65; }
        .guide-callout strong { display: block; margin-bottom: 3px; color: #c8e4ff; font-size: 11px; }
        .queue-card { margin-top: 16px; padding: 16px 18px; }
        .queue-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
        .queue-count { padding: 5px 9px; border: 1px solid #345277; border-radius: 999px; background: #14263b; color: var(--green); font-size: 10px; white-space: nowrap; }
        .queue-list { display: grid; gap: 6px; }
        .empty-state { padding: 22px 12px; text-align: center; color: var(--muted); font-size: 12px; }
        @keyframes queue-arrive { from { opacity: 0; transform: translateY(7px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
        @keyframes queue-glow { 0%, 100% { box-shadow: 0 0 0 rgba(72,157,235,0); } 50% { box-shadow: 0 0 20px rgba(72,157,235,.11); } }
        @keyframes queue-progress-glide { to { background-position: -36px 0; } }
        @keyframes queue-status-pop { 0% { transform: scale(.94); } 55% { transform: scale(1.08); } 100% { transform: scale(1); } }
        .job {
            position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px;
            min-width: 0; padding: 8px 10px 8px 12px; border: 1px solid #263851; border-radius: 10px; background: linear-gradient(110deg, rgba(18,34,53,.96), rgba(10,19,31,.98));
            transition: border-color .22s ease, background .22s ease, transform .22s ease;
        }
        .job::before { position: absolute; top: 8px; bottom: 8px; left: 0; width: 2px; border-radius: 3px; background: #526a82; content: ""; }
        .job:hover { transform: translateY(-1px); border-color: #416489; }
        .job--queued::before { background: var(--amber); }
        .job--receiving::before, .job--scanning::before, .job--processing::before { background: #63b6ff; box-shadow: 0 0 9px rgba(99,182,255,.75); }
        .job--completed::before { background: var(--green); box-shadow: 0 0 8px rgba(115,216,180,.55); }
        .job--failed::before { background: var(--red); }
        .job--processing { animation: queue-glow 3.4s ease-in-out infinite; }
        .job--entering { animation: queue-arrive .38s cubic-bezier(.2,.75,.25,1) both; animation-delay: var(--job-delay, 0ms); }
        .job--status-change .status { animation: queue-status-pop .32s ease-out; }
        .job-main { min-width: 0; }
        .job-topline { display: flex; align-items: center; min-width: 0; gap: 8px; }
        .job-name { min-width: 0; overflow: hidden; color: #e6f1ff; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
        .status { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; padding: 3px 6px; border-radius: 999px; font-size: 8px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
        .status::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
        .status-queued { color: var(--amber); background: #302b20; }
        .status-receiving { color: #d1b5ff; background: #302448; }
        .status-scanning { color: #b7c8dc; background: #202d3b; }
        .status-processing { color: #9bd1ff; background: #17314b; }
        .status-completed { color: var(--green); background: #17372f; }
        .status-failed { color: #ff9cac; background: #321f28; }
        .job-details { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; min-width: 0; margin: 4px 0 6px; color: var(--muted); font-size: 9px; line-height: 1.25; }
        .job-detail { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
        .job-detail--format { color: #a9c9e8; }
        .job-progress-line { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 7px; }
        .job-progress { height: 4px; margin: 0; overflow: hidden; border-radius: 5px; background: #25364a; }
        .job-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #63b6ff, #73d8b4, #a29aff); background-size: 180% 100%; transition: width .4s cubic-bezier(.2,.75,.25,1); }
        .job--processing .job-progress span, .job--receiving .job-progress span, .job--scanning .job-progress span { animation: queue-progress-glide 1s linear infinite; }
        .job--completed .job-progress span { background: linear-gradient(90deg, #55bc9a, #9de5ca); }
        .job--failed .job-progress span { background: linear-gradient(90deg, #e15e76, #ff9cac); }
        .job-progress-value { min-width: 27px; color: #a8c7e3; font-size: 9px; font-variant-numeric: tabular-nums; text-align: right; }
        .job-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 5px; }
        .download-link { display: inline-flex; align-items: center; min-height: 28px; padding: 0 8px; border: 1px solid #315b4d; border-radius: 7px; background: rgba(36,94,75,.2); color: var(--green); text-decoration: none; font-size: 9px; font-weight: 700; }
        .job-delete { min-height: 28px; padding: 0 8px; border: 1px solid #684052; border-radius: 7px; background: #2b1c2a; color: #ffc5d3; cursor: pointer; font-size: 9px; }
        .job-error { margin-top: 5px; color: var(--red); font-size: 9px; }
        .cloud-save-state, .cloud-retry { font-size: 9px; }
        .cloud-save-state { color: var(--muted); }
        .cloud-retry { padding: 5px 7px; border: 1px solid #345277; border-radius: 7px; background: #14263b; color: #b6dcff; cursor: pointer; }
        :root[data-theme="light"] .job { border-color: #c8d8e9; background: linear-gradient(110deg, #fff, #f3f8fd); }
        :root[data-theme="light"] .job-name { color: #152d49; }
        :root[data-theme="light"] .job-detail--format { color: #315a7f; }
        :root[data-theme="light"] .job-progress { background: #dce7f1; }
        :root[data-theme="light"] .job-progress-value { color: #3f5c78; }
        :root[data-theme="light"] .job-delete { background: #fff5f7; color: #9b2942; }
        @media (prefers-reduced-motion: reduce) {
            .job, .job--processing { animation: none !important; transition: none; }
            .job-progress span { animation: none !important; }
        }
        .footer { margin-top: 21px; color: #657168; text-align: center; font-size: 10px; }
        .footer a, .terms-copy a, .terms-accept a, .site-footer a { color: #5aa9ff; text-decoration: underline; }
        .site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; padding: 18px 16px 24px; font-size: 12px; color: #8fa3c4; text-align: center; }
        .site-footer .account-button { min-height: 36px; padding: 8px 14px; }
        @media (max-width: 520px) {
            .site-footer { gap: 10px 14px; padding: 16px 14px 22px; }
            .site-footer > span:first-child { flex-basis: 100%; }
        }
        :root[data-theme="light"] .site-footer { color: #3d4f6b; }
        :root[data-theme="light"] .site-footer a { color: #0b5fd0; }
        .easter-egg-toast { position: fixed; z-index: 60; right: 20px; bottom: 20px; max-width: min(360px, calc(100vw - 40px)); padding: 13px 16px; border: 1px solid #4c82b6; border-radius: 12px; background: rgba(8,14,24,.97); color: #d6ecff; box-shadow: 0 14px 44px rgba(0,0,0,.38); font-size: 12px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
        .easter-egg-toast.visible { opacity: 1; transform: translateY(0); }
        body.easter-egg-priming #brandEasterEgg::before { opacity: 1; animation: brand-charge-glow 1.25s ease-out both; }
        body.easter-egg-priming #brandEasterEgg .brand-label {
            color: #e9f6ff; text-shadow: 0 0 8px #fff, 0 0 20px #59baff, 0 0 42px #347cff;
            animation: brand-charge-shake 1.25s cubic-bezier(.36,.07,.19,.97) both;
        }
        body.easter-egg-priming::before { position: fixed; inset: 0; z-index: 68; background: radial-gradient(circle at var(--egg-x, 10%) var(--egg-y, 5%), rgba(255,245,206,.1), rgba(83,166,255,.15) 9%, rgba(31,79,135,.22) 20%, rgba(5,9,21,.82) 82%); content: ""; opacity: 0; pointer-events: none; animation: egg-charge-pulse 1.25s cubic-bezier(.2,.7,.2,1) both; }
        body.easter-egg-priming .shell { animation: egg-preblast 1.25s cubic-bezier(.36,.07,.19,.97) both; }
        body.easter-egg #brandEasterEgg { pointer-events: none; }
        body.easter-egg #brandEasterEgg .brand-label { animation: brand-explosion 1.25s cubic-bezier(.16,.7,.28,1) forwards; transform-origin: left center; }
        body.easter-egg-rebuild #brandEasterEgg .brand-label { animation: brand-rebuild 1s cubic-bezier(.2,1.4,.3,1) both; }
        body.easter-egg .shell { animation: egg-camera-shake 2.8s cubic-bezier(.36,.07,.19,.97) both; }
        body.easter-egg::before { position: fixed; inset: 0; z-index: 69; background: radial-gradient(circle at var(--egg-x, 10%) var(--egg-y, 5%), #fff 0, #fff0c2 7%, #bfe3ff 15%, rgba(91,165,232,.55) 35%, transparent 70%); content: ""; opacity: 0; pointer-events: none; animation: egg-flash 1s ease-out forwards; }
        .egg-layer { position: fixed; inset: 0; z-index: 70; overflow: hidden; pointer-events: none; }
        .egg-vignette { position: absolute; z-index: 0; inset: 0; background: radial-gradient(circle at var(--egg-x) var(--egg-y), transparent 0, rgba(3,7,18,.38) 24%, rgba(2,5,14,.96) 100%); opacity: 0; animation: egg-vignette 5.5s ease-out both; }
        .egg-fireball { position: absolute; z-index: 1; left: var(--egg-x); top: var(--egg-y); width: clamp(190px, 38vw, 460px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 48% 47%, #fff 0 2%, rgba(255,247,208,.98) 5%, rgba(255,193,103,.96) 12%, rgba(255,101,49,.82) 24%, rgba(154,82,255,.38) 42%, transparent 70%), radial-gradient(ellipse, rgba(95,188,255,.56), transparent 68%); filter: blur(5px) saturate(1.5) brightness(1.3); mix-blend-mode: screen; opacity: 0; transform: translate(-50%, -50%) scale(.03); will-change: transform, opacity, filter; animation: egg-fireball 1.9s cubic-bezier(.12,.75,.2,1) .02s both; }
        .egg-supernova { position: absolute; z-index: 2; left: var(--egg-x); top: var(--egg-y); width: clamp(260px, 52vw, 640px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff 0 1%, rgba(218,245,255,.98) 3%, rgba(142,208,255,.9) 9%, rgba(145,123,255,.58) 21%, rgba(255,117,190,.28) 38%, transparent 68%); filter: blur(4px) saturate(1.6); mix-blend-mode: screen; opacity: 0; transform: translate(-50%, -50%) scale(.03); will-change: transform, opacity, filter; animation: egg-supernova 3.6s cubic-bezier(.12,.75,.2,1) .18s both; }
        .egg-supernova::before, .egg-supernova::after { position: absolute; inset: 0; border-radius: inherit; content: ""; }
        .egg-supernova::before { background: conic-gradient(from 12deg, transparent 0 7%, rgba(134,212,255,.82) 10%, transparent 17%, rgba(255,169,220,.68) 23%, transparent 30%, rgba(190,169,255,.82) 37%, transparent 44%, rgba(142,216,255,.72) 52%, transparent 60%, rgba(255,194,153,.62) 67%, transparent 75%, rgba(163,191,255,.8) 83%, transparent 91%); filter: blur(7px); -webkit-mask: radial-gradient(ellipse, transparent 0 24%, #000 42% 62%, transparent 78%); mask: radial-gradient(ellipse, transparent 0 24%, #000 42% 62%, transparent 78%); animation: egg-supernova-ejecta 8s linear infinite; }
        .egg-supernova::after { inset: 17%; border: 2px solid rgba(210,242,255,.8); box-shadow: 0 0 28px 8px rgba(127,196,255,.72), inset 0 0 28px 8px rgba(190,166,255,.5); }
        .egg-letterbox { position: absolute; z-index: 5; inset: 0; }
        .egg-letterbox::before, .egg-letterbox::after { position: absolute; right: 0; left: 0; height: clamp(30px, 9vh, 84px); background: #03050a; content: ""; transform: scaleY(0); box-shadow: 0 0 34px rgba(0,0,0,.8); }
        .egg-letterbox::before { top: 0; transform-origin: top; animation: egg-letterbox 5.8s cubic-bezier(.2,.8,.2,1) both; }
        .egg-letterbox::after { bottom: 0; transform-origin: bottom; animation: egg-letterbox 5.8s cubic-bezier(.2,.8,.2,1) both; }
        .egg-shard { position: absolute; z-index: 3; clip-path: polygon(50% 0, 100% 80%, 10% 100%); filter: drop-shadow(0 0 10px #5ba5e8); will-change: transform, opacity; }
        .egg-smoke { position: absolute; z-index: 2; border-radius: 50%; background: radial-gradient(ellipse at 28% 42%, rgba(184,197,218,.32), transparent 40%), radial-gradient(ellipse at 65% 36%, rgba(84,97,121,.4), transparent 52%), radial-gradient(ellipse at 52% 68%, rgba(18,27,43,.82), transparent 70%); filter: blur(9px) contrast(1.15); will-change: transform, opacity; }
        .egg-flashbang { position: absolute; z-index: 6; inset: 0; background: radial-gradient(circle at var(--egg-x, 10%) var(--egg-y, 5%), rgba(255,255,255,.94), rgba(255,214,154,.55) 12%, rgba(120,190,255,.35) 30%, transparent 68%); opacity: 0; animation: egg-flash 1.15s ease-out .02s both; }
        .egg-ring { position: absolute; z-index: 2; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 5px solid #d8f2ff; border-radius: 50%; box-shadow: 0 0 42px #5ba5e8, inset 0 0 24px #5ba5e8; will-change: transform, opacity; }
        .egg-streak { position: absolute; z-index: 3; height: 2px; border-radius: 50%; background: linear-gradient(90deg, #fff, #9edaff 42%, transparent); box-shadow: 0 0 12px #83cfff; transform-origin: left center; will-change: transform, opacity; animation: egg-streak-burst 1s cubic-bezier(.12,.8,.3,1) both; }
        .egg-lens-flare { position: absolute; z-index: 4; top: var(--egg-y); left: 0; width: 100%; height: 2px; transform: scaleY(0); transform-origin: center; background: linear-gradient(90deg, transparent 4%, rgba(255,195,120,.8) 35%, #fff 50%, rgba(144,208,255,.85) 65%, transparent 96%); box-shadow: 0 0 24px 5px rgba(255,220,168,.65); animation: egg-lens-flare 1.6s ease-out both; }
        .egg-particle { position: absolute; z-index: 3; font-weight: 800; line-height: 1; color: #bfe6ff; text-shadow: 0 0 12px #5ba5e8, 0 0 26px #ff9d4a; will-change: transform, opacity; }
        .egg-ember { position: absolute; z-index: 3; width: 6px; height: 6px; border-radius: 50%; background: #ffb347; box-shadow: 0 0 10px 3px #ff7a1a; will-change: transform, opacity; }
        @keyframes brand-charge-glow { 0% { opacity: 0; transform: scale(.55); } 28% { opacity: 1; transform: scale(1.1); } 68% { opacity: .78; transform: scale(.94); } 100% { opacity: 1; transform: scale(1.12); } }
        @keyframes brand-charge-shake { 0%, 100% { transform: translateX(0) rotate(0) scale(1); } 14% { transform: translateX(-2px) rotate(-2deg) scale(1.02); } 28% { transform: translateX(2px) rotate(2deg) scale(1.04); } 42% { transform: translateX(-2px) rotate(-1.5deg) scale(1.02); } 56% { transform: translateX(2px) rotate(1.5deg) scale(1.06); } 72% { transform: translateX(-1px) rotate(-1deg) scale(1.04); } 88% { transform: translateX(1px) rotate(1deg) scale(1.08); } }
        @keyframes egg-preblast { 0%, 34% { transform: translate(0) scale(1); } 52% { transform: translate(-2px, 1px) scale(1.002); } 62% { transform: translate(3px, -2px) scale(1.004); } 73% { transform: translate(-4px, 2px) scale(1.006); } 84% { transform: translate(5px, -3px) scale(1.008); } 94%, 100% { transform: translate(0) scale(1); } }
        @keyframes egg-camera-shake { 0%, 100% { transform: translate(0) scale(1); } 4% { transform: translate(-19px, 13px) rotate(-.25deg) scale(1.025); } 8% { transform: translate(17px, -14px) rotate(.2deg) scale(1.02); } 13% { transform: translate(-13px, -8px) scale(1.016); } 19% { transform: translate(11px, 9px) rotate(.15deg) scale(1.012); } 27% { transform: translate(-7px, 5px) scale(1.008); } 38% { transform: translate(5px, -4px); } 52% { transform: translate(-3px, 2px); } 68% { transform: translate(1px, -1px); } }
        @keyframes egg-flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
        @keyframes egg-charge-pulse { 0%, 20% { opacity: 0; } 56% { opacity: .5; } 82% { opacity: .94; } 100% { opacity: .84; } }
        @keyframes egg-fireball { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.03); filter: blur(2px) saturate(1.2) brightness(1.8); } 8% { opacity: 1; transform: translate(-50%, -50%) scale(.22); } 25% { opacity: .96; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(6.2); filter: blur(34px) saturate(1.7) brightness(.7); } }
        @keyframes egg-supernova { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.03); filter: blur(8px) saturate(1.4) brightness(2); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(.2); } 30% { opacity: .96; transform: translate(-50%, -50%) scale(.75); } 68% { opacity: .6; transform: translate(-50%, -50%) scale(2.8); filter: blur(13px) saturate(1.7) brightness(1.2); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(5.8); filter: blur(30px) saturate(1.8) brightness(.7); } }
        @keyframes egg-supernova-ejecta { to { transform: rotate(360deg); } }
        @keyframes egg-vignette { 0%, 5% { opacity: 0; } 13% { opacity: 1; } 55% { opacity: .84; } 100% { opacity: 0; } }
        @keyframes egg-letterbox { 0%, 8% { transform: scaleY(0); } 18%, 84% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
        @keyframes egg-streak-burst { 0% { transform: rotate(var(--egg-angle)) translateX(0) scaleX(.05); opacity: 0; } 9% { opacity: 1; transform: rotate(var(--egg-angle)) translateX(0) scaleX(1); } 100% { transform: rotate(var(--egg-angle)) translateX(var(--egg-distance)) scaleX(.35); opacity: 0; } }
        @keyframes egg-lens-flare { 0% { opacity: 0; transform: scaleY(0); } 12% { opacity: 1; transform: scaleY(22); } 34% { opacity: .7; transform: scaleY(10); } 100% { opacity: 0; transform: scaleY(0); } }
        @keyframes brand-rebuild { 0% { opacity: 0; transform: scale(.2) rotate(-20deg); filter: blur(12px); } 60% { opacity: 1; transform: scale(1.18) rotate(3deg); filter: blur(0); text-shadow: 0 0 26px #8acbff; } 100% { opacity: 1; transform: scale(1) rotate(0); text-shadow: none; } }
        body.easter-egg #brandEasterEgg .brand-fire { display: block; animation: brand-fire-burst 1.9s ease-out forwards; }
        body.easter-egg #brandEasterEgg .brand-fire::before { animation: brand-flame-flicker .14s ease-in-out infinite alternate; }
        body.easter-egg #brandEasterEgg .brand-fire::after { animation: brand-fire-sparks 1.45s ease-out forwards; }
        @keyframes brand-explosion {
            0% { transform: scale(1) rotate(0); filter: blur(0); text-shadow: none; }
            18% { transform: scale(.82) rotate(-12deg); text-shadow: 0 0 20px #fff, 0 0 34px #8acbff; }
            46% { transform: scale(1.4) rotate(14deg); filter: blur(1px); text-shadow: 0 0 30px #fff0c2, 0 0 58px #ff9d4a, 0 0 82px #8ee0d0; }
            100% { opacity: 0; transform: scale(2.5) rotate(38deg); filter: blur(16px); letter-spacing: .24em; }
        }
        @keyframes brand-fire-burst {
            0% { opacity: 0; transform: scale(.35); }
            18% { opacity: 1; transform: scale(.9); }
            58% { opacity: 1; transform: scale(1.5); }
            100% { opacity: 0; transform: scale(2.3); }
        }
        @keyframes brand-flame-flicker {
            from { transform: scaleY(.82) rotate(-3deg); }
            to { transform: scaleY(1.12) rotate(3deg); }
        }
        @keyframes brand-fire-sparks {
            0% { opacity: 0; transform: scale(.45); }
            18% { opacity: 1; }
            100% { opacity: 0; transform: scale(1.7); }
        }
        @media (prefers-reduced-motion: reduce) {
            body.easter-egg-priming::before, body.easter-egg-priming .shell,
            body.easter-egg-priming #brandEasterEgg::before, body.easter-egg-priming #brandEasterEgg .brand-label,
            body.easter-egg .shell, body.easter-egg::before, body.easter-egg #brandEasterEgg .brand-label,
            body.easter-egg #brandEasterEgg .brand-fire, body.easter-egg #brandEasterEgg .brand-fire::before,
            body.easter-egg #brandEasterEgg .brand-fire::after, body.easter-egg-rebuild #brandEasterEgg .brand-label { animation: none; }
            body.easter-egg #brandEasterEgg .brand-fire { display: none; }
            .egg-layer { display: none; }
        }
        @keyframes ambient-drift {
            0% { transform: translate3d(-1.5%, -1%, 0) scale(1); opacity: .88; }
            50% { transform: translate3d(.5%, .25%, 0) scale(1.025); opacity: 1; }
            100% { transform: translate3d(1.5%, 1%, 0) scale(1.05); opacity: .94; }
        }
        @keyframes ambient-breathe {
            0% { transform: translate3d(1%, -1%, 0) scale(.96) rotate(-2deg); opacity: .54; }
            50% { transform: translate3d(-.5%, .5%, 0) scale(1.01) rotate(0); opacity: .76; }
            100% { transform: translate3d(-1%, 1%, 0) scale(1.06) rotate(2deg); opacity: .64; }
        }
        @keyframes failure-flash { 0%, 100% { opacity: .3; transform: scale(.96); } 38%, 72% { opacity: 1; transform: scale(1.06); } }
        @keyframes failure-shake { 0%, 100% { transform: translateX(0); } 16% { transform: translateX(-4px); } 32% { transform: translateX(4px); } 48% { transform: translateX(-3px); } 64% { transform: translateX(3px); } 80% { transform: translateX(-1px); } }
        @media (prefers-reduced-motion: reduce) {
            body::before, body::after { animation: none; will-change: auto; }
            body.failure-alert::after { animation: none; opacity: .55; }
            body.failure-alert .shell { animation: none; }
        }
        @keyframes page-enter {
            0% { opacity: 0; transform: translate3d(0, 16px, 0) scale(.985); }
            68% { opacity: 1; transform: translate3d(0, -2px, 0) scale(1.003); }
            100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
        }
        @keyframes auth-backdrop-in { from { opacity: 0; backdrop-filter: blur(0); } to { opacity: 1; backdrop-filter: blur(16px); } }
        @keyframes login-arrive {
            0% { opacity: 0; transform: perspective(900px) translateY(32px) scale(.92) rotateX(8deg); box-shadow: 0 0 0 rgba(91,165,232,0); }
            58% { opacity: 1; transform: perspective(900px) translateY(-5px) scale(1.012) rotateX(-1deg); box-shadow: 0 0 72px rgba(91,165,232,.24), 0 24px 80px rgba(0,0,0,.32); }
            100% { transform: perspective(900px) translateY(0) scale(1) rotateX(0); box-shadow: 0 24px 80px rgba(0,0,0,.48), 0 0 38px rgba(91,165,232,.1); }
        }
        @keyframes login-content-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
        @keyframes auth-edge-scan { 0%, 100% { opacity: .35; transform: scaleX(.45); } 50% { opacity: 1; transform: scaleX(1); } }
        @keyframes dropzone-pulse { from { border-color: #73baff; } to { border-color: #9fe6d7; } }
        @keyframes upload-icon-ready { from { transform: translateY(2px) scale(.96); box-shadow: 0 0 0 rgba(115,186,255,0); } to { transform: translateY(-4px) scale(1.08); box-shadow: 0 0 22px rgba(115,186,255,.32); } }
        @keyframes upload-button-working { 0%, 100% { box-shadow: 0 7px 22px rgba(72,151,221,.2); } 50% { box-shadow: 0 10px 30px rgba(72,151,221,.42), 0 0 0 3px rgba(142,224,208,.12); } }
        @keyframes upload-spinner { to { transform: rotate(360deg); } }
        @keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
        @keyframes shimmer { from { background-position: 150% 0; } to { background-position: -150% 0; } }
        .page-section:not([hidden]) { animation: page-enter .42s cubic-bezier(.2,.7,.25,1) both; }
        .home-hero .eyebrow { animation: page-enter .45s ease-out both; }
        .home-hero h1 { animation: page-enter .5s .04s ease-out both; }
        .home-hero p { animation: page-enter .5s .09s ease-out both; }
        .home-actions { animation: page-enter .5s .14s ease-out both; }
        .home-showcase { animation: card-arrive .7s .12s cubic-bezier(.18,.8,.25,1) both; }
        .highlight-card, .what-card { transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
        .highlight-card:hover, .what-card:hover { transform: translateY(-7px) scale(1.015); border-color: #5797d3; box-shadow: 0 18px 42px rgba(37,111,188,.2), 0 0 0 1px rgba(133,195,255,.1) inset; }
        .highlight-card:nth-child(1) { animation: page-enter .42s .05s both; }
        .highlight-card:nth-child(2) { animation: page-enter .42s .12s both; }
        .highlight-card:nth-child(3) { animation: page-enter .42s .19s both; }
        .home-button.primary { background-image: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.22) 45%, transparent 70%); background-size: 220% 100%; background-position: 150% 0; }
        .home-button.primary:hover { animation: shimmer .7s ease; }
        .nav-button, .primary-btn, .advanced-toggle, .inline-code-btn, .category-btn, .conversion-option, .download-link {
            transition: transform .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
        }
        .choose-btn:hover, .primary-btn:not(:disabled):hover, .advanced-toggle:hover { transform: translateY(-1px); }
        .drop-icon { animation: drift 3.2s ease-in-out infinite; }
        .speed-card { transition: border-color .2s ease, transform .2s ease; }
        .speed-card:hover { transform: translateY(-2px); border-color: #3d638a; }
        .layout > .card:nth-child(2) { animation-delay: .12s; }
        .queue-card { animation: card-arrive .7s .18s cubic-bezier(.18,.8,.25,1) both; }
        .conversion-option:hover { transform: translateX(4px); box-shadow: inset 3px 0 #73baff; }
        .primary-btn:not(:disabled) {
            background-image: linear-gradient(110deg, transparent 18%, rgba(255,255,255,.24) 46%, transparent 72%), linear-gradient(115deg, #8acbff, #8ee0d0 48%, #aaa1ff);
            background-size: 230% 100%, 220% 220%; background-position: 150% 0, 0% 50%;
        }
        .primary-btn:not(:disabled):hover {
            background-position: -130% 0, 100% 50%;
            transition: background-position .7s ease, transform .18s ease, box-shadow .25s ease, filter .2s ease;
            box-shadow: 0 11px 28px rgba(67,151,224,.32);
        }
        @keyframes card-arrive { from { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(4px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
        @keyframes insight-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
        button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
            outline: 2px solid #9bd1ff; outline-offset: 3px;
        }
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
            .showcase-card, .showcase-card::before, .home-showcase::after,
            .showcase-progress span, .showcase-video-frames::after { animation: none !important; }
            .showcase-scene { animation: none !important; opacity: 0; transform: none; }
            .showcase-scene:first-child { opacity: 1; }
        }
        @media (max-width: 760px) {
            .shell { width: min(100% - 28px, 560px); padding-top: 16px; }
            .layout { grid-template-columns: 1fr; }
            .intro { padding: 28px 0 20px; }
            .side-card { order: 2; }
            .home-highlights { grid-template-columns: 1fr; margin-bottom: 38px; }
            .home-highlights .highlight-card { min-height: 0; padding: 15px; }
            .home-proof { justify-content: flex-start; margin: -14px 0 44px; }
            .what-grid { grid-template-columns: 1fr; }
            .account-grid { grid-template-columns: 1fr; }
            .account-panel--wide { grid-column: auto; }
            .settings-section-header { flex-wrap: wrap; }
        }
        @media (max-width: 860px) {
            .home-hero { grid-template-columns: 1fr; gap: 30px; min-height: 0; padding-top: 50px; }
            .home-copy { max-width: 700px; }
            .home-hero h1 { max-width: 700px; font-size: clamp(44px, 8vw, 68px); }
            .home-showcase { width: 100%; max-width: 590px; min-height: 350px; margin: 0 auto; }
        }
        @media (max-width: 480px) {
            .shell { width: calc(100% - 22px); }
            header { align-items: flex-start; flex-wrap: wrap; }
            .header-actions { width: 100%; justify-content: space-between; }
            .main-nav { flex: 1; min-width: 0; gap: 2px; overflow-x: auto; scrollbar-width: none; }
            .main-nav::-webkit-scrollbar { display: none; }
            .main-nav .nav-button { flex: 0 0 auto; }
            .nav-button { padding: 0 5px; font-size: 10px; }
            .upload-card, .queue-card { padding: 17px; }
            .limit-chip { font-size: 9px; }
            .dropzone { min-height: 165px; }
            .home-hero { gap: 24px; padding-top: 42px; }
            .home-hero h1 { font-size: clamp(42px, 12vw, 56px); }
            .home-hero p { font-size: 14px; }
            .home-showcase { min-height: 320px; padding: 14px; border-radius: 23px; }
            .showcase-card { padding: 15px; }
            .home-section-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
            .storage-files { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
            .storage-library-tools select { flex-basis: 130px; }
            .my-profile-banner { min-height: 210px; }
            .my-profile-avatar { width: 66px; height: 66px; flex-basis: 66px; }
            .my-profile-qr img { width: 116px; height: 116px; }
        }
        .main-nav .nav-button { white-space: nowrap; flex: 0 0 auto; }
        .main-nav .nav-button[hidden] { display: none !important; }
        :root[data-theme="light"] {
            color-scheme: light;
            --bg: #f2f6fb;
            --panel: #ffffff;
            --panel-raised: #e8eff7;
            --line: #c9d5e2;
            --text: #17283d;
            --muted: #52677e;
            --green: #1769a6;
            --green-dark: #e2f0fb;
            --blue: #286fae;
            --red: #b42335;
            --amber: #805300;
        }
        :root[data-theme="light"][data-accent="blue"] { --green: #1769a6; --green-dark: #e2f0fb; --blue: #286fae; }
        :root[data-theme="light"][data-accent="violet"] { --green: #6948b2; --green-dark: #eee8fb; --blue: #584095; }
        :root[data-theme="light"][data-accent="teal"] { --green: #087b63; --green-dark: #e0f4ec; --blue: #116d5c; }
        :root[data-theme="light"][data-accent="rose"] { --green: #b94364; --green-dark: #fbe8ed; --blue: #a43553; }
        :root[data-theme="light"][data-accent="orange"] { --green: #b65e10; --green-dark: #fff0dc; --blue: #974c0b; }
        :root[data-palette="dark-sunset"] {
            --bg: #160d18; --panel: #231421; --panel-raised: #35202d; --line: #563548;
            --text: #fff2eb; --muted: #c7a6a5; --ambient-base-hue: 20deg; --ambient-base-accent-hue: 346deg;
            --ambient-hue: 24deg; --ambient-accent-hue: 330deg;
            --ambient-level: .19; --ambient-accent-level: .075; --ambient-secondary-level: .04;
            --ambient-flash-level: .085; --ambient-flash-secondary-level: .045;
        }
        :root[data-palette="dark-milkyway"] {
            --bg: #0d0b20; --panel: #17152e; --panel-raised: #242143; --line: #39365d;
            --text: #f4f0ff; --muted: #aaa5c6; --ambient-base-hue: 269deg; --ambient-base-accent-hue: 222deg;
            --ambient-hue: 266deg; --ambient-accent-hue: 194deg;
            --ambient-level: .2; --ambient-accent-level: .08; --ambient-secondary-level: .045;
            --ambient-flash-level: .09; --ambient-flash-secondary-level: .05;
        }
        :root[data-palette="dark-green"] {
            --bg: #071711; --panel: #0d2119; --panel-raised: #163127; --line: #294b3c;
            --text: #effbf4; --muted: #a4c2b0; --ambient-base-hue: 146deg; --ambient-base-accent-hue: 174deg;
            --ambient-hue: 145deg; --ambient-accent-hue: 178deg;
            --ambient-level: .18; --ambient-accent-level: .075; --ambient-secondary-level: .04;
            --ambient-flash-level: .08; --ambient-flash-secondary-level: .045;
        }
        :root[data-palette="light-sunrise"] {
            --bg: #fff7ec; --panel: #fffdf8; --panel-raised: #ffeedc; --line: #ead5bc;
            --text: #382a20; --muted: #806a58; --ambient-base-hue: 28deg; --ambient-base-accent-hue: 342deg;
            --ambient-hue: 28deg; --ambient-accent-hue: 342deg;
            --ambient-level: .11; --ambient-accent-level: .075; --ambient-secondary-level: .05;
            --ambient-flash-level: .045; --ambient-flash-secondary-level: .025;
        }
        :root[data-palette="light-green"] {
            --bg: #f1faf4; --panel: #fcfffd; --panel-raised: #e5f4e9; --line: #c6dfcd;
            --text: #1c3528; --muted: #587563; --ambient-base-hue: 142deg; --ambient-base-accent-hue: 174deg;
            --ambient-hue: 142deg; --ambient-accent-hue: 174deg;
            --ambient-level: .1; --ambient-accent-level: .07; --ambient-secondary-level: .04;
            --ambient-flash-level: .04; --ambient-flash-secondary-level: .025;
        }
        :root[data-palette="light-orange"] {
            --bg: #fff6ec; --panel: #fffdfa; --panel-raised: #ffecd8; --line: #efd2b2;
            --text: #382b20; --muted: #806750; --ambient-base-hue: 30deg; --ambient-base-accent-hue: 12deg;
            --ambient-hue: 30deg; --ambient-accent-hue: 12deg;
            --ambient-level: .11; --ambient-accent-level: .075; --ambient-secondary-level: .045;
            --ambient-flash-level: .045; --ambient-flash-secondary-level: .025;
        }
        :root[data-palette="light-purple"] {
            --bg: #f7f4ff; --panel: #fdfcff; --panel-raised: #eee9fb; --line: #d8cfee;
            --text: #2e2940; --muted: #6c6384; --ambient-base-hue: 266deg; --ambient-base-accent-hue: 222deg;
            --ambient-hue: 266deg; --ambient-accent-hue: 222deg;
            --ambient-level: .1; --ambient-accent-level: .07; --ambient-secondary-level: .045;
            --ambient-flash-level: .04; --ambient-flash-secondary-level: .025;
        }
        :root[data-theme="light"] body { background: var(--bg); }
        :root[data-theme="light"] body::after { opacity: .16; }
        :root[data-theme="light"] .auth-gate,
        :root[data-theme="light"] .maintenance-screen {
            background: radial-gradient(ellipse at 18% 18%, hsl(var(--ambient-hue, 210deg) 78% 55% / .1), transparent 38%), radial-gradient(ellipse at 84% 82%, hsl(var(--ambient-accent-hue, 278deg) 78% 55% / .08), transparent 40%), var(--bg);
        }
        :root[data-theme="light"] .auth-card,
        :root[data-theme="light"] .maintenance-card,
        :root[data-theme="light"] .card,
        :root[data-theme="light"] .account-panel,
        :root[data-theme="light"] .plan-card,
        :root[data-theme="light"] .highlight-card,
        :root[data-theme="light"] .what-card,
        :root[data-theme="light"] .profile-menu-panel,
        :root[data-theme="light"] .conversion-menu,
        :root[data-theme="light"] .transfer,
        :root[data-theme="light"] .speed-card,
        :root[data-theme="light"] .chart-card,
        :root[data-theme="light"] .admin-stat,
        :root[data-theme="light"] .admin-form,
        :root[data-theme="light"] .admin-list-card {
            border-color: var(--line);
            background: #fff;
            color: var(--text);
            box-shadow: 0 12px 35px rgba(31,55,81,.1);
        }
        :root[data-theme="light"] .brand-name,
        :root[data-theme="light"] .auth-card h1,
        :root[data-theme="light"] .maintenance-card h1,
        :root[data-theme="light"] h1,
        :root[data-theme="light"] h2,
        :root[data-theme="light"] h3,
        :root[data-theme="light"] .drop-title,
        :root[data-theme="light"] .highlight-card strong { color: var(--text); }
        :root[data-theme="light"] .brand-caption,
        :root[data-theme="light"] .intro p,
        :root[data-theme="light"] .home-hero p,
        :root[data-theme="light"] .what-hero p,
        :root[data-theme="light"] .what-card p,
        :root[data-theme="light"] .section-subtitle,
        :root[data-theme="light"] .drop-hint,
        :root[data-theme="light"] .account-panel > p,
        :root[data-theme="light"] .account-note,
        :root[data-theme="light"] .storage-library-status { color: var(--muted) !important; }
        :root[data-theme="light"] .nav-button,
        :root[data-theme="light"] .profile-menu-panel button,
        :root[data-theme="light"] .category-btn,
        :root[data-theme="light"] .plan-features,
        :root[data-theme="light"] .guide-step strong,
        :root[data-theme="light"] .guide-callout,
        :root[data-theme="light"] .transfer-label,
        :root[data-theme="light"] .welcome-copy strong,
        :root[data-theme="light"] .admin-form label { color: #344c65; }
        :root[data-theme="light"] .nav-button:hover,
        :root[data-theme="light"] .nav-button.active,
        :root[data-theme="light"] .profile-menu-panel button:hover,
        :root[data-theme="light"] .profile-menu-panel button:focus-visible,
        :root[data-theme="light"] .category-btn.active,
        :root[data-theme="light"] .conversion-option:hover,
        :root[data-theme="light"] .conversion-option.selected { border-color: #aac8e1; background: #eaf3fb; color: #174f7b; }
        :root[data-theme="light"] .auth-form label,
        :root[data-theme="light"] .auth-form .remember-option,
        :root[data-theme="light"] .auth-form .terms-accept,
        :root[data-theme="light"] .account-field label,
        :root[data-theme="light"] .field-label,
        :root[data-theme="light"] .conversion-option strong,
        :root[data-theme="light"] .storage-file-name,
        :root[data-theme="light"] .job-name,
        :root[data-theme="light"] .admin-stat strong,
        :root[data-theme="light"] .admin-form h3,
        :root[data-theme="light"] .admin-list-card h3,
        :root[data-theme="light"] .admin-account-main strong,
        :root[data-theme="light"] .admin-resource-name { color: var(--text); }
        :root[data-theme="light"] .auth-form input:not([type="checkbox"]),
        :root[data-theme="light"] .account-field input,
        :root[data-theme="light"] .admin-form input,
        :root[data-theme="light"] .admin-form select,
        :root[data-theme="light"] .admin-form textarea,
        :root[data-theme="light"] .storage-library-tools input,
        :root[data-theme="light"] .storage-library-tools select,
        :root[data-theme="light"] .storage-share-panel input,
        :root[data-theme="light"] .conversion-search,
        :root[data-theme="light"] select,
        :root[data-theme="light"] input[type="text"],
        :root[data-theme="light"] input[type="search"] {
            border-color: #c5d2df;
            background: #fff;
            color: var(--text);
        }
        :root[data-theme="light"] .profile-menu-trigger,
        :root[data-theme="light"] .account-button,
        :root[data-theme="light"] .home-button,
        :root[data-theme="light"] .choose-btn,
        :root[data-theme="light"] .advanced-toggle,
        :root[data-theme="light"] .storage-file button,
        :root[data-theme="light"] .storage-file-menu-panel button,
        :root[data-theme="light"] .storage-file-actions a,
        :root[data-theme="light"] .admin-account-row button,
        :root[data-theme="light"] .admin-resource-row button { border-color: #c4d4e2; background: #eaf2f9; color: #205780; }
        :root[data-theme="light"] .auth-form .account-button,
        :root[data-theme="light"] .home-button.primary { background-color: #8acbff; background-image: linear-gradient(110deg, #8acbff, #8ee0d0 48%, #aaa1ff); color: #10263a; }
        :root[data-theme="light"] .dropzone { border-color: #9cb8d1; background: linear-gradient(145deg, rgba(73,153,255,.09), rgba(231,239,247,.82)); }
        :root[data-theme="light"] .selected-files,
        :root[data-theme="light"] .storage-file,
        :root[data-theme="light"] .admin-account-row,
        :root[data-theme="light"] .admin-resource-row,
        :root[data-theme="light"] .job,
        :root[data-theme="light"] .transfer-file-row,
        :root[data-theme="light"] .chart-card,
        :root[data-theme="light"] .storage-share-panel input { border-color: var(--line); background: #f6f9fc; color: var(--text); }
        :root[data-theme="light"] .storage-file button,
        :root[data-theme="light"] .storage-file-menu-panel button,
        :root[data-theme="light"] .storage-file-actions a,
        :root[data-theme="light"] .admin-account-row button,
        :root[data-theme="light"] .admin-resource-row button { color: #205780; }
        :root[data-theme="light"] .storage-page-hero { border-color: #b7d0e4; background: radial-gradient(ellipse at 90% 0, rgba(55,139,220,.16), transparent 48%), linear-gradient(135deg, #eaf4fc, #f6f9fd); }
        :root[data-theme="light"] .storage-summary-panel,
        :root[data-theme="light"] .storage-library-panel { background: #fff; }
        :root[data-theme="light"] .storage-usage-card,
        :root[data-theme="light"] .storage-folder,
        :root[data-theme="light"] .storage-breadcrumbs button,
        :root[data-theme="light"] .storage-library-tools input,
        :root[data-theme="light"] .storage-library-tools select,
        :root[data-theme="light"] .storage-upload-form select,
        :root[data-theme="light"] .storage-upload-form input[type="file"] { border-color: #c5d2df; background: #f6f9fc; color: var(--text); }
        :root[data-theme="light"] .storage-folder-action,
        :root[data-theme="light"] .storage-upload-form input[type="file"]::file-selector-button { border-color: #c5d2df; background: #eaf2f9; color: #205780; }
        :root[data-theme="light"] .storage-file { background: #f6f9fc; }
        :root[data-theme="light"] .storage-file button,
        :root[data-theme="light"] .storage-file-menu-panel button,
        :root[data-theme="light"] .storage-file-actions a { border-color: #c4d4e2; background: #eaf2f9; color: #205780; }
        :root[data-theme="light"] .stat-card,
        :root[data-theme="light"] .stats-live-status { border-color: var(--line); background: #f5f9fd; }
        :root[data-theme="light"] .admin-account-actions select { border-color: #c4d4e2; background: #fff; color: var(--text); }
        :root[data-theme="light"] .admin-account-status { border-color: #b7d0e4; color: #205780 !important; }
        :root[data-theme="light"] .admin-account-status.is-suspended { border-color: #d9c48f; background: #fff9e9; color: #74530c !important; }
        :root[data-theme="light"] .admin-account-status.is-banned { border-color: #e0a3a3; background: #fff1f1; color: #a02d38 !important; }
        :root[data-theme="light"] .profile-avatar,
        :root[data-theme="light"] .profile-menu-trigger { border-color: #b5cadc; background: #e3edf6; color: #275d85; }
        :root[data-theme="light"] .profile-share-card,
        :root[data-theme="light"] .my-profile-qr,
        :root[data-theme="light"] .terms-copy { border-color: var(--line); background: #f6f9fc; color: var(--muted); }
        :root[data-theme="light"] .profile-share-card strong,
        :root[data-theme="light"] .terms-copy summary { color: var(--text); }
        :root[data-theme="light"] .profile-share-card a { color: #205780; }
        :root[data-theme="light"] .my-profile-copy a,
        :root[data-theme="light"] .my-profile-qr-copy a { color: #205780; }
        :root[data-theme="light"] .my-profile-qr img { border-color: #dfe7ef; background: #fff; }
        :root[data-theme="light"] .my-profile-qr-copy strong { color: var(--text); }
        :root[data-theme="light"] .storage-file-thumb-link { border-color: #cad7e3; background: radial-gradient(ellipse at 84% 2%, rgba(136,104,241,.12), transparent 55%), #edf2f7; }
        :root[data-theme="light"] .storage-file-placeholder { border-color: #aab9d1; background: linear-gradient(145deg, #eef1f8, #dfe6f0); color: #485a87; }
        :root[data-theme="light"] .site-announcement,
        :root[data-theme="light"] .maintenance-announcement,
        :root[data-theme="light"] .welcome-banner,
        :root[data-theme="light"] .guide-callout { border-color: #bed3e4; background: #eaf3fa; color: #294761; }
        :root[data-theme="light"] .welcome-copy strong,
        :root[data-theme="light"] .welcome-copy span,
        :root[data-theme="light"] .welcome-dismiss,
        :root[data-theme="light"] .transfer-file-name,
        :root[data-theme="light"] .storage-file-size,
        :root[data-theme="light"] .job-meta { color: #52677e; }
        :root[data-theme="light"] .upload-progress-dock { border-color: #c5d5e4; background: rgba(255,255,255,.97); color: var(--text); }
        :root[data-theme="light"] .upload-dock-copy strong { color: var(--text); }
        :root[data-theme="light"] .upload-dock-copy span { color: var(--muted); }
        :root[data-theme="light"] .upload-dock-meter,
        :root[data-theme="light"] .storage-meter,
        :root[data-theme="light"] .storage-progress,
        :root[data-theme="light"] .meter { background: #dce6ef; }
        :root[data-theme="light"] .plan-badge,
        :root[data-theme="light"] .limit-chip,
        :root[data-theme="light"] .home-proof span { border-color: #c5d5e4; background: #eaf2f9; color: #345b7c; }
        :root[data-theme="light"] .admin-table th,
        :root[data-theme="light"] .admin-table td { border-color: var(--line); color: #344c65; }
        :root[data-theme="light"] .easter-egg-toast { border-color: #9dbbd4; background: rgba(255,255,255,.97); color: #1b3a55; }
        :root[data-theme="light"] .auth-startup-status,
        :root[data-theme="light"] .maintenance-kicker,
        :root[data-theme="light"] .guide-callout strong { color: #28618f; }
        :root[data-theme="light"] .auth-switch { color: #285e87; }
        :root[data-theme="light"] .guest-conversion-notice { background: linear-gradient(115deg, rgba(35,116,190,.12), rgba(35,116,190,.04)); }
        :root[data-theme="light"] .auth-switch:hover { color: #17466b; text-shadow: none; }
        :root[data-theme="light"] .maintenance-admin-trigger { border-color: #a8c0d4; background: rgba(255,255,255,.6); color: #315b7a; }
        :root[data-theme="light"] .drop-icon { background: #eaf2f9; color: #205780; }
        :root[data-theme="light"] .guide-number,
        :root[data-theme="light"] .queue-count,
        :root[data-theme="light"] #uploadDockReturn {
            border-color: #c4d4e2;
            background: #eaf2f9;
            color: #205780;
        }
        :root[data-theme="light"] .conversion-settings {
            border-color: var(--line);
            background: #f6f9fc;
            color: var(--text);
        }
        :root[data-theme="light"] .conversion-settings label { color: #344c65; }
        :root[data-theme="light"] .conversion-settings select {
            border-color: #c5d2df;
            background: #fff;
            color: var(--text);
        }
        :root[data-theme="light"] .admin-state { border-color: #b6d8ca; background: #e7f5ee; color: #236248; }
        :root[data-theme="light"] .admin-state.is-maintenance { border-color: #e4c990; background: #fff5df; color: #805300; }

        /* Account and convert cleanup, plus light-mode contrast fixes */
        .priority-option { gap: 10px; align-items: flex-start; font-size: 12px !important; line-height: 1.5; }
        .priority-option input { margin-top: 3px; flex: 0 0 auto; }
        .priority-option small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
        .account-panel--danger { border-color: rgba(255,107,107,.4); }
        .account-panel--danger h2 { color: #ff8f8f; }
        .account-button--danger { border-color: #b34444; background: #7a2323; color: #fff; }
        .account-button--danger:hover { background: #a02e2e; border-color: #d65b5b; }
        .profile-tag { display: inline-block; margin-left: 8px; padding: 2px 9px; border: 1px solid var(--tag, #6f8fb3); border-radius: 999px; color: var(--tag, #6f8fb3); font-size: 11px; font-weight: 600; }
        #publicProfileForm textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #0d1725; color: var(--text); font: inherit; resize: vertical; }
        #publicProfileForm input[type="color"], #adminSiteForm input[type="color"] { width: 64px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: transparent; cursor: pointer; }
        :root[data-theme="light"] #publicProfileForm textarea { background: #fff; border-color: #c5d2df; }
        .conversion-picker { margin-top: 4px; }
        .primary-btn { margin-top: 20px; }
        .cropper-empty .cropper-choose-button { margin: 3px 0; }
        .cropper-download-button { margin-top: 0; }
        :root[data-theme="light"] .tools-tabs { border-color: #c8d8e7; background: #f0f5fa; }
        :root[data-theme="light"] .tools-tab { color: #50677e; }
        :root[data-theme="light"] .tools-tab[aria-selected="true"] { border-color: #a6c8e4; background: linear-gradient(125deg, #e2f1ff, #edf1ff); color: #174f7b; }
        :root[data-theme="light"] .tools-navigation-heading > div span { color: #52677e; }
        :root[data-theme="light"] .music-studio-panel { border-color: #c8d8e7; background: radial-gradient(ellipse at 100% 0, rgba(82,107,211,.08), transparent 40%), #f8fbfe; }
        :root[data-theme="light"] .music-studio-preview-card, :root[data-theme="light"] .music-studio-controls { border-color: #cad8e6; background: rgba(255,255,255,.8); }
        :root[data-theme="light"] .music-studio-stage { border-color: #c5d2e0; background: radial-gradient(ellipse at 50% 50%, #dce8f9, #edf3f9 72%); }
        :root[data-theme="light"] .music-studio-empty strong, :root[data-theme="light"] .music-studio-controls-heading strong { color: #20364d; }
        :root[data-theme="light"] .music-studio-empty p, :root[data-theme="light"] .music-studio-preview-heading span:last-child { color: #52677e; }
        :root[data-theme="light"] .music-studio-title-label input, :root[data-theme="light"] .music-studio-controls select { border-color: #c5d5e4; background: #fff; color: #20364d; }
        :root[data-theme="light"] .music-studio-controls textarea { border-color: #c5d5e4; background: #fff; color: #20364d; }
        :root[data-theme="light"] .music-studio-controls input[type="color"] { border-color: #c5d5e4; background: #fff; }
        :root[data-theme="light"] .music-studio-image-upload { border-color: #c5d5e4; }
        :root[data-theme="light"] .music-studio-stage.has-overlay-image { cursor: grab; }
        :root[data-theme="light"] .music-studio-option-group { border-color: #cad8e6; background: rgba(255,255,255,.65); }
        :root[data-theme="light"] .music-studio-option-group summary { color: #20364d; }
        :root[data-theme="light"] .music-studio-note { border-color: #e4d2a8; background: #fff9e9; color: #705a30; }
        :root[data-theme="light"] .music-studio-controls-heading { border-bottom-color: #d5e0ea; }
        :root[data-theme="light"] .tool-library { border-color: #c8d8e7; background: #f8fbfe; }
        :root[data-theme="light"] .joke-card { border-color: #d0dce8; background: linear-gradient(155deg, #fff, #f3f7fb); box-shadow: 0 14px 32px rgba(46,75,105,.09); }
        :root[data-theme="light"] .joke-card-video { border-color: #c7b5ee; background: radial-gradient(ellipse at 100% 0, rgba(165,127,255,.14), transparent 48%), linear-gradient(155deg, #fff, #f6f2ff); }
        :root[data-theme="light"] .joke-card-nothing { background: radial-gradient(ellipse at 100% 0, rgba(103,220,181,.13), transparent 45%), linear-gradient(155deg, #fff, #eff9f5); }
        :root[data-theme="light"] .joke-card-label { color: #52677e; }
        :root[data-theme="light"] .joke-external-link { border-color: #c7b5ee; background: linear-gradient(120deg, #eee5ff, #f4f0ff); color: #503184; }
        :root[data-theme="light"] .joke-output { border-color: #d0dce8; background: rgba(255,255,255,.76); color: #20364d; }
        :root[data-theme="light"] .joke-local-badge { border-color: rgba(42,154,118,.25); background: #ecf8f2; color: #1d765a; }
        :root[data-theme="light"] .joke-destroyer-intensity > span:first-child { color: #20364d; }
        :root[data-theme="light"] .joke-destroyer-intensity output { color: #6444a5; }
        :root[data-theme="light"] .joke-destroyer-dropzone { border-color: #c7b5ee; background: linear-gradient(120deg, #f4efff, #f3f7fc); }
        :root[data-theme="light"] .joke-drop-icon { border-color: #d5c7ee; background: #eee7fb; color: #6444a5; }
        :root[data-theme="light"] .joke-drop-title, :root[data-theme="light"] .joke-destroyer-file-details strong, :root[data-theme="light"] .joke-destroyer-results-heading h4, :root[data-theme="light"] .joke-destroy-result-details strong { color: #20364d; }
        :root[data-theme="light"] .joke-destroyer-file, :root[data-theme="light"] .joke-destroy-result { border-color: #d8e2eb; background: rgba(255,255,255,.75); }
        :root[data-theme="light"] .joke-destroyer-remove { border-color: #d0dce8; }
        :root[data-theme="light"] .joke-destroyer-results { border-top-color: #d8d0e7; }
        :root[data-theme="light"] .joke-destroyer-progress progress::-webkit-progress-bar { background: #e4eaf0; }
        :root[data-theme="light"] .joke-destroy-download { border-color: #b9dfce; background: #ecf8f2; color: #1d765a; }
        :root[data-theme="light"] .tool-card { border-color: #d0dce8; background: linear-gradient(145deg, #fff, #f0f6fb); color: #20364d; }
        :root[data-theme="light"] .tool-card:hover:not(:disabled), :root[data-theme="light"] .tool-card.selected { border-color: #87b6da; background: linear-gradient(145deg, #e8f5ff, #f1f4ff); }
        :root[data-theme="light"] .tool-card-label, :root[data-theme="light"] .tool-card-action, :root[data-theme="light"] .tools-panel-kicker { color: #286a9c; }
        :root[data-theme="light"] .conversion-selection { border-color: #b9d0e4; background: linear-gradient(115deg, #eaf5ff, #f5f8fc); }
        :root[data-theme="light"] .conversion-selection strong { color: #20364d; }
        :root[data-theme="light"] .conversion-selection-label { color: #286a9c; }
        :root[data-theme="light"] .conversion-option { border-color: #e0e8f0; background: #f7fafc; }
        :root[data-theme="light"] .conversion-option strong { color: #20364d; }
        :root[data-theme="light"] .conversion-option small { color: #60758a; }
        :root[data-theme="light"] .conversion-option:hover, :root[data-theme="light"] .conversion-option.selected { border-color: #aac8e1; background: #eaf3fb; }
        :root[data-theme="light"] .cropper-empty { border-color: #9cb8d1; background: linear-gradient(145deg, #f5faff, #eaf3fa); }
        :root[data-theme="light"] .cropper-empty-icon { border-color: #a9c8e2; background: #e6f3fd; color: #286a9c; }
        :root[data-theme="light"] .cropper-stage-wrap { border-color: #c5d5e4; background: radial-gradient(ellipse at center, #eaf3fb, #f8fbfe); }
        :root[data-theme="light"] .rotation-editor { border-color: #c8d8e7; background: linear-gradient(145deg, #f5faff, #edf4fa); }
        :root[data-theme="light"] .rotation-editor-heading { color: #20364d; }
        :root[data-theme="light"] .rotation-preview-stage { border-color: #c5d5e4; background: radial-gradient(ellipse at center, #eaf3fb, #f8fbfe); }
        :root[data-theme="light"] .rotation-controls label { color: #38536f; }
        :root[data-theme="light"] .rotation-controls input[type="number"] { border-color: #c5d5e4; background: #fff; color: #20364d; }
        :root[data-theme="light"] .trim-position, :root[data-theme="light"] .trim-loop-toggle { color: #38536f; }
        :root[data-theme="light"] .trim-timeline-track { background: #d3dfeb; }
        :root[data-theme="light"] .trim-marker-times strong { color: #20364d; }
        :root[data-theme="light"] .cropper-controls { border-color: #c8d8e7; background: #f3f8fc; }
        :root[data-theme="light"] .plan-perks a { color: #1f5f96; }
        :root[data-theme="light"] .plan-perks .fast-on { color: #1d7a5f; }
        :root[data-theme="light"] .plan-message { color: #7a4d00; }
        :root[data-theme="light"] .account-note { color: #52677e; }
        :root[data-theme="light"] .guide-step,
        :root[data-theme="light"] .transfer-advanced { border-color: #c5d5e4; }
        :root[data-theme="light"] .primary-btn { background: linear-gradient(115deg, #3d9bff, #2f7fe0 55%, #5a6df0); color: #fff; box-shadow: 0 7px 20px rgba(47,127,224,.28); }
        :root[data-theme="light"] .choose-btn,
        :root[data-theme="light"] .inline-code-btn { background: #eaf2f9; border-color: #9cb8d1; color: #205780; }
        :root[data-theme="light"] .account-panel--danger { border-color: #e0a3a3; }
        :root[data-theme="light"] .account-panel--danger h2 { color: #b02a2a; }
        :root[data-theme="light"] .priority-option small { color: #52677e; }

        /* Tools page layout and mobile support */
        .layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
        .conversion-activity { display: flex; min-width: 0; flex-direction: column; gap: 16px; }
        .conversion-activity .transfer, .conversion-activity .queue-card { margin-top: 0; }
        .conversion-activity .queue-card { flex: 1; min-height: 220px; }
        .field-label { margin: 22px 0 8px; }
        .conversion-settings { margin-top: 14px; padding: 14px; }
        .conversion-settings select { min-height: 42px; }
        .primary-btn { min-height: 50px; font-size: 14px; }
        .selected-files strong { display: block; }
        .guide-step { align-items: flex-start; }
        .job { overflow-wrap: anywhere; }
        @media (max-width: 760px) { .shell { overflow-x: clip; } }
        img, canvas, video { max-width: 100%; }
        @media (max-width: 960px) {
            .layout { grid-template-columns: 1fr; }
            .side-card { position: static; order: 2; }
        }
        @media (max-width: 760px) {
            .shell { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
            header { gap: 12px; padding-bottom: 14px; }
            .brand-caption { display: none; }
            .intro h1 { font-size: 28px; }
            .intro p { font-size: 14px; }
            .section-heading { flex-direction: column; gap: 10px; margin-bottom: 16px; }
            .section-heading-actions { align-self: flex-end; }
            .limit-chip { font-size: 11px; }
            .guest-conversion-notice { align-items: flex-start; flex-direction: column; }
            .cropper-workspace { grid-template-columns: 1fr; }
            .cropper-stage-wrap { min-height: 260px; }
            .cropper-empty { min-height: 300px; padding: 22px; }
            .upload-card, .queue-card, .side-card { padding: 16px; border-radius: 14px; }
            .dropzone { min-height: 150px; padding: 18px 14px; }
            .drop-hint { font-size: 12px; }
            .choose-btn, .account-button, .primary-btn, .conversion-option, .category-btn,
            .advanced-toggle, .download-link, .storage-file button, .storage-file-actions a, .inline-code-btn { min-height: 44px; }
            .tools-tabs {
                display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none;
                scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
            }
            .tools-tabs::-webkit-scrollbar { display: none; }
            .tools-tab { flex: 0 0 auto; min-width: max-content; scroll-snap-align: start; }
            .tools-tab { padding: 0 11px; }
            .music-studio-layout { grid-template-columns: minmax(0, 1fr); }
            .music-studio-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .music-studio-controls-heading, .music-studio-note { grid-column: 1 / -1; }
            .tool-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .quick-tools-grid { grid-template-columns: 1fr; }
            .jokes-grid { grid-template-columns: 1fr; }
            .joke-card-video { grid-column: 1; padding: 17px; }
            .joke-destroyer-title { align-items: flex-start; }
            .joke-destroy-result-list { grid-template-columns: minmax(0, 1fr); }
            .quick-tool-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .tools-panel-heading { flex-direction: column; }
            .nav-button { min-height: 44px; padding: 0 12px; font-size: 12px; scroll-snap-align: start; }
            .main-nav { scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
                -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
            .profile-menu-trigger { width: 44px; height: 44px; }
            .profile-menu-panel button { min-height: 44px; font-size: 13px; }
            .conversion-menu { max-height: none; }
            .conversion-results { max-height: 38vh; overflow-x: hidden; }
            .conversion-option { min-width: 0; }
            .conversion-option small { max-width: 100%; text-align: left; }
            .conversion-browser { grid-template-columns: minmax(0, 1fr); }
            .category-nav { display: flex; flex-wrap: nowrap; max-height: none; overflow-x: auto; padding: 0 0 4px; scrollbar-width: none; }
            .category-nav::-webkit-scrollbar { display: none; }
            .category-btn { width: auto; min-height: 44px; flex: 0 0 auto; padding: 0 12px; font-size: 12px; text-align: center; }
            .conversion-option strong { font-size: 13px; }
            .conversion-option small { font-size: 10px; }
            .queue-card { padding: 13px 12px; }
            .job { grid-template-columns: minmax(0,1fr) auto; gap: 7px; padding: 8px 8px 8px 10px; }
            .job-topline { gap: 5px; }
            .job-name { font-size: 10px; }
            .job-details { column-gap: 7px; font-size: 8px; }
            .job-actions { gap: 4px; }
            .job-actions .download-link, .job-actions .job-delete { padding-right: 6px; padding-left: 6px; font-size: 8px; }
            .speed-cards { grid-template-columns: 1fr; }
            .storage-library-tools input, .storage-library-tools select { flex: 1 1 100%; }
            .storage-overview { grid-template-columns: minmax(0, 1fr); }
            .storage-upload-form { grid-template-columns: minmax(0, 1fr); }
            .storage-library-heading { align-items: stretch; flex-direction: column; }
            .storage-library-heading .account-button { align-self: flex-start; }
            .account-grid .account-field input, .account-field input, .account-field select, .account-field textarea { min-height: 44px; }
            .admin-table { display: block; overflow-x: auto; }
            .welcome-banner { right: 10px; left: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); width: auto; }
            .upload-progress-dock { bottom: calc(10px + env(safe-area-inset-bottom)); }
            .coffee-link { left: auto; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: 44px; padding: 0; justify-content: center; }
            .coffee-link span { display: none; }
            #uploadProgressDock:not([hidden]) ~ .coffee-link { bottom: calc(128px + env(safe-area-inset-bottom)); }
            .plan-card:hover { transform: none; }
        }
        /* 16px inputs stop iOS from zooming when a field is focused */
        @media (max-width: 760px) and (pointer: coarse) {
            input, select, textarea, .conversion-search { font-size: 16px !important; }
        }
        @media (hover: none) {
            .dropzone:hover, .choose-btn:hover, .plan-card:hover, .coffee-link:hover { transform: none; }
        }
        :root[data-theme="light"] .conversion-menu { background: #fff; border-color: #c5d5e4; box-shadow: 0 18px 45px rgba(30,60,90,.22); }
        /* Preferences and server stats */
        :root[data-text-size="large"] body { zoom: 1.1; }
        :root[data-text-size="xlarge"] body { zoom: 1.22; }
        :root[data-compact="on"] .account-panel, :root[data-compact="on"] .what-card, :root[data-compact="on"] .upload-card { padding: 14px; }
        :root[data-compact="on"] .account-grid { gap: 8px; }
        :root[data-compact="on"] .what-hero { padding-top: 6px; padding-bottom: 6px; }
        :root[data-high-contrast="on"] { --muted: #e2e6f0; --line: #6f7aa8; }
        :root[data-high-contrast="on"][data-theme="light"] { --muted: #1c2b3d; --line: #51647c; }
        :root[data-hide-coffee="on"] .coffee-link,
        :root[data-hide-coffee="on"] .mobile-support-link { display: none !important; }
        .pref-group { display: grid; gap: 0; }
        .pref-group .priority-option { padding: 7px 0; border-bottom: 1px solid var(--line); }
        .pref-group .priority-option:last-child { border-bottom: 0; }
        .priority-option small { display: block; margin-top: 2px; font-size: 11px; opacity: .85; }
        .pref-select { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
        .pref-select select { width: min(58%, 460px); min-width: 140px; min-height: 36px; padding: 0 10px; }
        .settings-layout { display: grid; grid-template-columns: 176px minmax(0, 1fr); align-items: start; gap: 14px; }
        .settings-sidebar { position: sticky; top: 16px; display: grid; gap: 3px; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
        .settings-sidebar button { min-height: 36px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; text-align: left; font-size: 11px; font-weight: 600; }
        .settings-sidebar button:hover, .settings-sidebar button[aria-current="true"] { border-color: #345277; background: #172b42; color: #c5e3ff; }
        :root[data-theme="light"] .settings-sidebar button:hover,
        :root[data-theme="light"] .settings-sidebar button[aria-current="true"] { border-color: #9bc8ec; background: #e6f2ff; color: #205780; }
        .settings-content { display: grid; gap: 0; min-width: 0; }
        .settings-section { scroll-margin-top: 18px; }
        .settings-content .settings-section[hidden] { display: none !important; }
        .settings-content .settings-section { padding: 17px 19px; border-radius: 12px; }
        .settings-section-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
        .settings-section-header h2 { margin: 0 0 4px; }
        .settings-section-header p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
        .settings-option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
        .settings-option-grid > section { min-width: 0; }
        .settings-option-grid > section + section { padding-left: 18px; border-left: 1px solid var(--line); }
        .settings-subheading { margin: 0 0 4px; color: var(--text); font: 600 12px "Space Grotesk", sans-serif; }
        .settings-theme-button { flex: 0 0 auto; }
        .settings-reset { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
        .settings-reset[hidden] { display: none !important; }
        .settings-reset-copy { min-width: min(100%, 280px); }
        .settings-reset-copy p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
        .settings-reset-actions { display: grid; gap: 5px; }
        .settings-reset-actions .account-message { min-height: 0; }
        .community-opt-in { display: grid; gap: 8px; padding: 18px; border: 1px solid #315b80; border-radius: 15px; background: linear-gradient(135deg, rgba(33,92,140,.24), var(--panel)); }
        .community-opt-in[hidden], .community-layout[hidden] { display: none !important; }
        .community-opt-in strong { color: #d8efff; font: 600 16px "Space Grotesk", sans-serif; }
        .community-opt-in p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
        .community-layout { display: grid; grid-template-columns: minmax(290px, .82fr) minmax(0, 1.45fr); align-items: stretch; gap: 13px; }
        .community-sidebar { display: grid; align-content: start; gap: 12px; min-width: 0; max-height: min(75vh, 840px); overflow: auto; }
        .community-search-label { color: var(--muted); font-size: 10px; font-weight: 700; }
        .community-tab-panel > input[type="search"] {
            width: 100%; min-width: 0; min-height: 42px; padding: 0 12px;
            border: 1px solid var(--line); border-radius: 10px; background: var(--panel-raised);
            color: var(--text); font: 500 12px "DM Sans", sans-serif;
            transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
        }
        .community-tab-panel > input[type="search"]::placeholder { color: #788da5; opacity: 1; }
        .community-tab-panel > input[type="search"]:focus-visible { border-color: #5e9bcc; outline: none; box-shadow: 0 0 0 3px rgba(105,185,239,.15); }
        .community-list, .community-list-section { display: grid; gap: 7px; min-width: 0; }
        .community-list-section { padding-top: 10px; border-top: 1px solid var(--line); }
        .community-list-section h2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
        .community-list-section h2 span { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-raised); color: var(--text); font-size: 9px; }
        .community-person-row { display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: start; gap: 8px; min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: rgba(18,34,53,.55); }
        .community-avatar { display: block; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
        .community-avatar--initial { display: grid; place-items: center; border: 1px solid #37688f; background: #14283b; color: #bce2ff; font-size: 13px; font-weight: 700; }
        .community-person-copy { display: grid; gap: 2px; min-width: 0; padding-top: 2px; }
        .community-person-copy strong { overflow: hidden; color: var(--text); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
        .community-person-copy > span, .community-person-bio { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
        .community-person-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; }
        .community-person-actions button, .community-person-actions a, .community-thread-actions button, .community-thread-actions a {
            display: inline-flex; align-items: center; justify-content: center; min-height: 29px; padding: 0 8px;
            border: 1px solid #345277; border-radius: 7px; background: #14263b; color: #c5e3ff;
            text-decoration: none; cursor: pointer; font-size: 9px; font-weight: 600;
        }
        .community-person-actions button:disabled { opacity: .5; cursor: not-allowed; }
        .community-person-actions button:hover:not(:disabled), .community-person-actions a:hover,
        .community-thread-actions button:hover, .community-thread-actions a:hover { border-color: #69b9ef; background: #193752; }
        .community-conversation-row {
            display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px;
            width: 100%; min-width: 0; min-height: 58px; padding: 9px 10px;
            border: 1px solid var(--line); border-radius: 11px; background: var(--panel-raised);
            color: var(--text); cursor: pointer; font: inherit; text-align: left;
            transition: border-color .16s ease, background .16s ease, transform .16s ease;
        }
        .community-conversation-row:hover { transform: translateY(-1px); border-color: #477ba5; background: #14263b; }
        .community-conversation-row:focus-visible { outline: 2px solid #8bc9ff; outline-offset: 2px; }
        .community-conversation-copy { display: grid; gap: 3px; min-width: 0; text-align: left; }
        .community-conversation-copy strong { overflow: hidden; color: var(--text); font: 600 11px "Space Grotesk", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
        .community-conversation-copy small { overflow: hidden; color: var(--muted); font: 400 9px "DM Sans", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
        .community-unread {
            display: inline-flex; min-width: 20px; height: 20px; align-items: center; justify-content: center;
            padding: 0 5px; border: 1px solid rgba(139,201,255,.24); border-radius: 999px;
            background: rgba(64,137,190,.2); color: #c8e8ff; font: 700 9px "DM Sans", sans-serif; font-variant-numeric: tabular-nums;
        }
        .community-list .account-note {
            margin: 0 !important; padding: 10px 11px; border: 1px dashed var(--line); border-radius: 10px;
            background: var(--panel-raised); color: var(--muted) !important; font-size: 10px; line-height: 1.5;
        }
        .community-chat { display: flex; min-width: 0; min-height: 520px; flex-direction: column; }
        .community-empty { display: grid; flex: 1; align-content: center; justify-items: center; gap: 9px; min-height: 440px; text-align: center; }
        .community-empty > span { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #396d95; border-radius: 16px; background: rgba(54,137,194,.15); color: #9dd5ff; font-size: 20px; }
        .community-empty h2 { margin: 0; font: 600 17px "Space Grotesk", sans-serif; }
        .community-empty p { max-width: 310px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
        .community-thread { display: flex; flex: 1; min-height: 0; flex-direction: column; }
        .community-empty[hidden], .community-thread[hidden] { display: none !important; }
        .community-thread-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
        .community-person { display: flex; align-items: center; gap: 9px; min-width: 0; }
        .community-person > span:last-child { display: grid; gap: 3px; min-width: 0; }
        .community-person strong { color: var(--text); font-size: 12px; }
        .community-person small { color: var(--muted); font-size: 9px; }
        .community-thread-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
        .community-thread-actions .account-button--danger { border-color: #70404a; background: #321d26; color: #ffc2c2; }
        .community-message-list { display: flex; flex: 1; min-height: 250px; max-height: 55vh; flex-direction: column; gap: 9px; padding: 14px 2px; overflow: auto; }
        .community-message { max-width: min(86%, 580px); align-self: flex-start; padding: 9px 11px 6px; border: 1px solid var(--line); border-radius: 12px 12px 12px 4px; background: var(--panel-raised); }
        .community-message.is-mine { align-self: flex-end; border-color: #315c80; border-radius: 12px 12px 4px 12px; background: rgba(28,75,112,.38); }
        .community-message p { margin: 0; color: var(--text); font-size: 11px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
        .community-message footer { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin-top: 6px; color: var(--muted); font-size: 8px; }
        .community-message footer button { padding: 2px 4px; border: 0; background: transparent; color: #a7d8ff; cursor: pointer; font-size: 8px; }
        .community-receipt { color: #8bd8bc; }
        .community-no-messages { align-self: center; }
        .community-compose { display: grid; gap: 8px; padding-top: 11px; border-top: 1px solid var(--line); }
        .community-compose textarea { width: 100%; min-height: 65px; padding: 10px; resize: vertical; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-raised); color: var(--text); }
        .community-compose-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
        .community-compose-footer span { color: var(--muted); font-size: 9px; }
        .community-block-list { display: grid; gap: 6px; }
        .community-block-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line); }
        .community-block-row > span { display: grid; gap: 3px; }
        .community-block-row strong { font-size: 10px; }
        .community-block-row small { color: var(--muted); font-size: 9px; }
        .admin-report-card { grid-column: 1 / -1; }
        .admin-report-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
        .admin-report-heading .account-button { min-height: 30px; }
        .admin-report-list { display: grid; gap: 8px; }
        .admin-report-item { display: grid; gap: 7px; padding: 10px; border: 1px solid #30445e; border-radius: 9px; background: rgba(8,17,29,.55); }
        .admin-report-item > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 0; }
        .admin-report-item > header strong { color: #d8e5f4; font-size: 10px; }
        .admin-report-item > header span, .admin-report-item p, .admin-report-item blockquote { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
        .admin-report-item blockquote { padding: 8px; border-left: 2px solid #568db5; background: rgba(35,72,101,.2); color: #cad9e8; }
        .admin-report-actions { display: flex; flex-wrap: wrap; gap: 5px; }
        .admin-report-actions button { padding: 5px 8px; border: 1px solid #30445e; border-radius: 6px; background: #14263b; color: #b6dcff; cursor: pointer; font-size: 9px; }
        :root[data-theme="light"] .community-opt-in { border-color: #b8d3e8; background: linear-gradient(135deg, #edf7ff, #fff); }
        :root[data-theme="light"] .community-opt-in strong,
        :root[data-theme="light"] .community-person-copy strong,
        :root[data-theme="light"] .community-person strong { color: #193951; }
        :root[data-theme="light"] .community-person-row,
        :root[data-theme="light"] .admin-report-item { border-color: var(--line); background: #f6f9fc; }
        :root[data-theme="light"] .community-person-actions button,
        :root[data-theme="light"] .community-person-actions a,
        :root[data-theme="light"] .community-thread-actions button,
        :root[data-theme="light"] .community-thread-actions a,
        :root[data-theme="light"] .admin-report-actions button { border-color: #c4d4e2; background: #eaf2f9; color: #205780; }
        :root[data-theme="light"] .community-message { border-color: #d0dce7; background: #f3f7fa; }
        :root[data-theme="light"] .community-message.is-mine { border-color: #a9cce5; background: #e7f3fc; }
        :root[data-theme="light"] .community-message p { color: #1b2d3e; }
        :root[data-theme="light"] .admin-report-item > header strong { color: #1b2d3e; }
        @media (max-width: 760px) {
            .community-layout { grid-template-columns: minmax(0, 1fr); }
            .community-sidebar { max-height: none; overflow: visible; }
            .community-chat { min-height: 440px; }
            .community-thread-header { align-items: flex-start; flex-direction: column; }
            .community-thread-actions { justify-content: flex-start; }
            .community-compose-footer { align-items: flex-start; flex-direction: column; }
            .community-compose-footer .account-button { width: 100%; }
        }
        .admin-page-grid { grid-template-columns: minmax(0, 1fr); }
        @media (max-width: 760px) {
            .settings-layout { grid-template-columns: minmax(0, 1fr); }
            .settings-sidebar { position: static; display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }
            .settings-sidebar::-webkit-scrollbar { display: none; }
            .settings-sidebar button { flex: 0 0 auto; }
            .settings-option-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
            .settings-option-grid > section + section { padding: 12px 0 0; border: 0; border-top: 1px solid var(--line); }
        }
        .stats-dashboard { display: grid; gap: 18px; max-width: 1120px; }
        .stats-page-hero { position: relative; padding: 16px 0 14px; }
        .stats-page-hero .eyebrow { color: #91cfff; }
        .stats-page-hero h1 { font-size: clamp(28px, 4vw, 40px); }
        .stats-page-hero p { max-width: 620px; }
        .stats-live-status {
            min-height: 70px; margin-bottom: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 15px;
            background: radial-gradient(ellipse at 0 50%, rgba(54,146,226,.13), transparent 42%), var(--panel);
            box-shadow: 0 10px 26px rgba(0,0,0,.12); transition: border-color .2s ease, background .2s ease;
        }
        .stats-live-status[data-state="online"] { border-color: rgba(62,207,142,.38); }
        .stats-live-status[data-state="warning"] { border-color: rgba(231,183,92,.42); }
        .stats-live-status[data-state="offline"] { border-color: rgba(229,72,77,.42); }
        .stats-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
        .stats-section-heading h2 { margin: 0; font-size: 16px; }
        .stats-section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
        .stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
        .stats-grid-compact { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
        .stat-card { display: flex; min-width: 0; min-height: 124px; flex-direction: column; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(145deg, var(--panel-raised), rgba(11,22,38,.72)); transition: border-color .18s ease, box-shadow .18s ease; }
        .stat-card:hover { border-color: rgba(105,180,241,.38); box-shadow: 0 9px 20px rgba(0,0,0,.12); }
        .stat-card span { display: block; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
        .stat-card strong { display: block; margin: 9px 0 3px; font: 700 clamp(21px, 2.4vw, 27px) "Space Grotesk", sans-serif; line-height: 1.15; overflow-wrap: anywhere; }
        .stat-card small { margin-top: auto; padding-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
        .stat-meter { height: 8px; margin-top: 10px; overflow: hidden; border-radius: 99px; background: rgba(128,140,170,.25); }
        .stat-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--green)); transition: width .5s ease; }
        .stat-meter i.warn { background: #f0a030; }
        .stat-meter i.bad { background: #e5484d; }
        .stats-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
        .stats-status-copy { display: grid; min-width: 200px; flex: 1; gap: 3px; }
        .stats-status-copy strong { color: var(--text); font-size: 12px; font-weight: 600; }
        .stats-status-copy span { color: var(--muted); font-size: 10px; }
        .stats-dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: #9aa8b9; }
        .stats-dot.is-loading { background: #e7b75c; box-shadow: 0 0 10px rgba(231,183,92,.42); }
        .stats-dot.is-online { background: #3ecf8e; box-shadow: 0 0 10px rgba(62,207,142,.58); }
        .stats-dot.is-warning { background: #e7b75c; box-shadow: 0 0 10px rgba(231,183,92,.45); }
        .stats-dot.is-offline { background: #e5484d; box-shadow: 0 0 10px rgba(229,72,77,.58); }
        .stats-refresh-button { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-raised); color: var(--text); cursor: pointer; font-size: 10px; font-weight: 600; }
        .stats-refresh-button:disabled { opacity: .55; cursor: wait; }
        .stats-incident-section { position: relative; overflow: hidden; padding: clamp(18px, 2.4vw, 28px); border: 1px solid rgba(151,139,255,.25); border-radius: 20px; background: radial-gradient(ellipse at 0% 0%, rgba(116,103,230,.17), transparent 42%), linear-gradient(145deg, rgba(28,27,54,.96), var(--panel) 54%); box-shadow: 0 18px 44px rgba(0,0,0,.16); }
        .stats-uptime-section { padding: clamp(18px, 2.4vw, 28px); border: 1px solid rgba(62,207,142,.2); border-radius: 20px; background: radial-gradient(ellipse at 0% 0%, rgba(62,207,142,.1), transparent 45%), var(--panel); }
        .stats-uptime-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
        .stats-uptime-header .eyebrow { color: #70deb0; font-size: 9px; letter-spacing: .18em; }
        .stats-uptime-header h2 { margin: 5px 0 0; font: 700 clamp(22px, 2.6vw, 28px) "Space Grotesk", sans-serif; letter-spacing: -.035em; }
        .stats-uptime-header p, .stats-uptime-note { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
        .stats-uptime-note { max-width: 860px; margin: 0 0 16px; }
        .stats-uptime-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
        .stats-uptime-card { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, var(--panel-raised), rgba(11,22,38,.68)); }
        .stats-uptime-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
        .stats-uptime-card-heading h3 { margin: 0; font-size: 12px; }
        .stats-uptime-card-heading p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
        .stats-uptime-status { flex: 0 0 auto; padding: 4px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 8px; white-space: nowrap; }
        .stats-uptime-status.is-operational { border-color: rgba(62,207,142,.32); background: rgba(62,207,142,.08); color: #74dfb4; }
        .stats-uptime-status.is-down { border-color: rgba(229,72,77,.36); background: rgba(229,72,77,.09); color: #ff9297; }
        .stats-uptime-status.is-unknown { border-color: rgba(231,183,92,.32); background: rgba(231,183,92,.08); color: #e7c780; }
        .stats-uptime-metric { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; margin-top: 13px; }
        .stats-uptime-metric strong { font: 700 24px "Space Grotesk", sans-serif; letter-spacing: -.03em; }
        .stats-uptime-metric small { color: var(--muted); font-size: 9px; }
        .stats-uptime-card > small { display: block; min-height: 14px; margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.4; }
        .stats-uptime-history { display: grid; height: 36px; grid-template-columns: repeat(30, minmax(2px, 1fr)); align-items: end; gap: 2px; margin-top: 10px; }
        .stats-uptime-day { min-height: 2px; border-radius: 2px 2px 0 0; background: #3ecf8e; }
        .stats-uptime-day.has-downtime { background: #f0a030; }
        .stats-uptime-day.is-unobserved { height: 3px; border-radius: 2px; background: rgba(128,140,170,.38); }
        .stats-incident-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 21px; }
        .stats-incident-header .eyebrow { color: #b7adff; font-size: 9px; letter-spacing: .18em; }
        .stats-incident-header h2 { margin: 5px 0 0; font: 700 clamp(22px, 2.6vw, 28px) "Space Grotesk", sans-serif; letter-spacing: -.035em; }
        .stats-incident-header p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
        .stats-incident-period { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.035); color: var(--muted); font-size: 9px; white-space: nowrap; }
        .stats-incident-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-bottom: 13px; }
        .stats-incident-metric { --metric-accent: #a99fff; position: relative; min-width: 0; overflow: hidden; padding: 13px 15px 14px; border: 1px solid var(--line); border-left: 2px solid var(--metric-accent); border-radius: 12px; background: linear-gradient(115deg, color-mix(in srgb, var(--metric-accent) 11%, transparent), rgba(255,255,255,.018) 66%); }
        .stats-incident-metric:nth-child(2) { --metric-accent: #ff8290; }
        .stats-incident-metric:nth-child(3) { --metric-accent: #61d9bb; }
        .stats-incident-metric > span { display: block; color: var(--muted); font-size: 9px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
        .stats-incident-metric strong { display: block; overflow: hidden; margin-top: 8px; color: var(--metric-accent); font: 700 clamp(18px, 2.1vw, 23px) "Space Grotesk", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
        .stats-incident-metric small { display: block; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
        .stats-incident-content { display: grid; gap: 13px; }
        .stats-incident-panel { min-width: 0; padding: clamp(14px, 1.8vw, 19px); border: 1px solid rgba(151,139,255,.16); border-radius: 14px; background: rgba(9,12,25,.22); }
        .stats-incident-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
        .stats-incident-panel-heading h3 { margin: 0; font-size: 12px; }
        .stats-incident-panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
        .stats-incident-panel-tag { color: var(--muted); font-size: 9px; letter-spacing: .06em; white-space: nowrap; }
        .stats-incident-calendar { display: block; min-width: 0; }
        .stats-incident-months, .stats-incident-days { display: grid; width: 100%; }
        .stats-incident-months { grid-column: 2; grid-row: 1; height: 14px; margin: 0; color: var(--muted); font-size: 9px; }
        .stats-incident-months span { min-width: 0; overflow: visible; white-space: nowrap; }
        .stats-incident-weekdays { display: grid; grid-column: 1; grid-row: 2; grid-template-rows: repeat(7, minmax(0, 1fr)); align-items: center; color: var(--muted); font-size: 8px; }
        .stats-incident-weekdays span:nth-child(1) { grid-row: 1; }
        .stats-incident-weekdays span:nth-child(4) { grid-row: 4; }
        .stats-incident-weekdays span:nth-child(7) { grid-row: 7; }
        .stats-incident-days { grid-template-columns: repeat(30, minmax(0, 1fr)); gap: clamp(2px, .35vw, 5px); }
        .stats-incident-day { min-width: 0; height: auto; aspect-ratio: 1; border-radius: 3px; background: rgba(128,140,170,.12); transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease; }
        .stats-incident-day.has-incident { background: linear-gradient(145deg, #ff8190, #db526a); box-shadow: 0 0 10px rgba(234,91,112,.18); }
        .stats-incident-day.multiple { background: linear-gradient(145deg, #ffd074, #ed9e37); box-shadow: 0 0 10px rgba(237,158,55,.2); }
        .stats-incident-days .stats-incident-day[data-tooltip] { cursor: help; }
        .stats-incident-days .stats-incident-day[data-tooltip]:hover,
        .stats-incident-days .stats-incident-day[data-tooltip]:focus-visible { z-index: 1; transform: scale(1.3); outline: 1px solid rgba(255,255,255,.75); box-shadow: 0 2px 10px rgba(0,0,0,.35); }
        .stats-incident-range { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 8px; }
        .stats-incident-tooltip { position: fixed; z-index: 10000; width: max-content; max-width: min(290px, calc(100vw - 24px)); max-height: min(240px, calc(100vh - 24px)); overflow: auto; padding: 10px 12px; border: 1px solid rgba(169,159,255,.35); border-radius: 10px; background: #17172a; box-shadow: 0 10px 30px rgba(0,0,0,.45); color: var(--text); font-size: 10px; line-height: 1.55; white-space: pre-line; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .12s ease; }
        .stats-incident-tooltip.is-visible { opacity: 1; visibility: visible; }
        .stats-incident-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 14px; color: var(--muted); font-size: 9px; }
        .stats-incident-legend span { display: inline-flex; align-items: center; gap: 5px; }
        .stats-incident-legend .stats-incident-day { display: block; width: 9px; height: 9px; flex: 0 0 9px; }
        .stats-incident-list { display: grid; max-height: 320px; gap: 0; overflow-y: auto; overscroll-behavior: contain; }
        .stats-incident-row { display: grid; grid-template-columns: minmax(105px, .55fr) minmax(0, 1.4fr) minmax(210px, 1fr); align-items: center; gap: 14px; min-width: 0; padding: 13px 6px; border-top: 1px solid rgba(151,139,255,.14); transition: background-color .15s ease; }
        .stats-incident-row:first-child { border-top: 0; }
        .stats-incident-row:hover { background: rgba(255,255,255,.025); }
        .stats-incident-row time { color: var(--muted); font-size: 9px; line-height: 1.45; }
        .stats-incident-row-head { display: flex; min-width: 0; align-items: flex-start; gap: 9px; }
        .stats-incident-mark { width: 8px; height: 8px; flex: 0 0 8px; margin-top: 3px; border-radius: 50%; background: #ff8190; box-shadow: 0 0 10px rgba(255,129,144,.4); }
        .stats-incident-row strong { display: block; min-width: 0; color: var(--text); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
        .stats-incident-meta { display: flex; flex-wrap: wrap; gap: 5px; }
        .stats-incident-runtime { display: inline-flex; align-items: center; min-height: 23px; padding: 4px 7px; border: 1px solid rgba(151,139,255,.13); border-radius: 6px; background: rgba(255,255,255,.025); color: var(--muted); font-size: 8px; line-height: 1.35; }
        .stats-incident-empty, .stats-incident-error { grid-column: 1 / -1; margin: 0; padding: 15px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 10px; line-height: 1.5; }
        .stats-incident-error { color: var(--red); }
        @media (max-width: 760px) {
            .stats-incident-row { grid-template-columns: 90px minmax(0, 1fr); gap: 7px 12px; }
            .stats-incident-meta { grid-column: 2; }
        }
        @media (max-width: 640px) {
            .stats-uptime-grid { grid-template-columns: minmax(0, 1fr); }
            .stats-uptime-header { align-items: flex-start; }
            .stats-uptime-history { gap: 3px; }
            .stats-incident-header { align-items: flex-start; }
            .stats-incident-summary { grid-template-columns: minmax(0, 1fr); gap: 7px; }
            .stats-incident-metric { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 10px 12px; }
            .stats-incident-metric > span { grid-column: 1; }
            .stats-incident-metric strong { grid-column: 2; grid-row: 1 / span 2; margin: 0; text-align: right; }
            .stats-incident-metric small { grid-column: 1; margin-top: 1px; }
            .stats-incident-days { grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 4px; }
            .stats-incident-list { grid-template-columns: minmax(0, 1fr); }
        }
        @media (max-width: 420px) {
            .stats-incident-period { padding: 6px 8px; font-size: 8px; }
            .stats-incident-days { grid-template-columns: repeat(10, minmax(0, 1fr)); }
            .stats-incident-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
            .stats-incident-row time, .stats-incident-row-head, .stats-incident-meta { grid-column: 1; }
            .stats-incident-row-head { grid-row: 1; }
            .stats-incident-row time { grid-row: 2; }
            .stats-incident-meta { grid-row: 3; }
        }
        .stats-details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
        .stats-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 17px; color: var(--text); cursor: pointer; font-size: 12px; font-weight: 650; list-style: none; }
        .stats-details > summary::-webkit-details-marker { display: none; }
        .stats-details > summary::after { color: var(--muted); content: "+"; font-size: 18px; font-weight: 400; }
        .stats-details[open] > summary::after { content: "−"; }
        .stats-details > summary span { display: grid; gap: 3px; }
        .stats-details > summary small { color: var(--muted); font-size: 10px; font-weight: 400; }
        .stats-detail-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 0 16px 16px; }
        .stats-detail-group { min-width: 0; padding-top: 15px; border-top: 1px solid var(--line); }
        .stats-detail-group h3 { margin: 0 0 10px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
        .stats-detail-group .stats-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 9px; }
        .stats-detail-group .stat-card { min-height: 108px; padding: 13px; }
        .stats-detail-group .stat-card strong { font-size: 20px; }
        @media (max-width: 760px) {
            .stats-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
            .stats-incident-content, .stats-detail-groups { grid-template-columns: minmax(0, 1fr); }
        }
        /* New-device captcha */
        .captcha-box { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-raised); }
        .captcha-box[hidden] { display: none; }
        .captcha-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
        .captcha-refresh { min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; }
        .captcha-box img { display: block; width: 100%; max-width: 240px; height: auto; border-radius: 8px; user-select: none; -webkit-user-drag: none; }
        .captcha-box input[name="captcha_answer"] { text-transform: uppercase; letter-spacing: .3em; font-weight: 700; }
        @media (max-width: 760px) {
            .shell { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
            header { align-items: center; flex-wrap: nowrap; gap: 12px; padding-bottom: 14px; }
            .header-actions { width: auto; margin-left: auto; justify-content: flex-end; }
            .main-nav { display: none; }
            .mobile-nav-shell {
                position: fixed; inset: auto 0 0; z-index: 60; display: block;
                padding: 7px max(12px, calc((100vw - 560px) / 2)) calc(6px + env(safe-area-inset-bottom));
                border-top: 1px solid rgba(125,165,207,.24); background: rgba(8,14,24,.96);
                box-shadow: 0 -12px 32px rgba(0,0,0,.24); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
            }
            :root[data-theme="light"] .mobile-nav-shell { border-top-color: rgba(75,111,149,.2); background: rgba(242,246,251,.96); }
            .mobile-bottom-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 4px; max-width: 560px; margin: 0 auto; }
            .mobile-nav-button {
                display: flex; min-width: 0; min-height: 54px; flex-direction: column; align-items: center; justify-content: center;
                gap: 3px; padding: 5px 2px; border: 1px solid transparent; border-radius: 12px;
                background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 600;
                transition: color .16s ease, background .16s ease, border-color .16s ease;
            }
            .mobile-nav-button svg { width: 20px; height: 20px; flex: 0 0 20px; }
            .mobile-nav-button:hover, .mobile-nav-button.active, .mobile-nav-button[aria-expanded="true"] {
                border-color: #345277; background: #172b42; color: #c5e3ff;
            }
            :root[data-theme="light"] .mobile-nav-button:hover,
            :root[data-theme="light"] .mobile-nav-button.active,
            :root[data-theme="light"] .mobile-nav-button[aria-expanded="true"] {
                border-color: #9bc8ec; background: #e6f2ff; color: #205780;
            }
            .mobile-nav-button:focus-visible { outline-offset: 1px; }
            .mobile-more-menu {
                position: absolute; right: max(12px, calc((100vw - 560px) / 2 + 8px)); bottom: calc(100% + 9px);
                display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px;
                width: min(300px, calc(100vw - 24px)); padding: 9px;
                border: 1px solid var(--line); border-radius: 16px; background: var(--panel);
                box-shadow: 0 18px 45px rgba(0,0,0,.38);
            }
            .mobile-more-menu[hidden], .mobile-more-menu button[hidden] { display: none !important; }
            .mobile-more-menu button {
                min-height: 44px; padding: 0 10px; border: 1px solid transparent; border-radius: 10px;
                background: transparent; color: var(--text); cursor: pointer; text-align: left; font-size: 12px; font-weight: 600;
            }
            .mobile-more-menu .mobile-support-link {
                display: flex; align-items: center; min-height: 44px; padding: 0 10px;
                border: 1px solid transparent; border-radius: 10px; color: var(--text);
                font-size: 12px; font-weight: 600; text-decoration: none;
            }
            .mobile-more-menu button:hover, .mobile-more-menu button:focus-visible,
            .mobile-more-menu .mobile-support-link:hover, .mobile-more-menu .mobile-support-link:focus-visible {
                border-color: #345277; background: #172b42; color: #c5e3ff;
            }
            body.mobile-more-open .welcome-banner { display: none; }
            :root[data-theme="light"] .mobile-more-menu button:hover,
            :root[data-theme="light"] .mobile-more-menu button:focus-visible,
            :root[data-theme="light"] .mobile-more-menu .mobile-support-link:hover,
            :root[data-theme="light"] .mobile-more-menu .mobile-support-link:focus-visible {
                border-color: #9bc8ec; background: #e6f2ff; color: #205780;
            }
            .welcome-banner { bottom: calc(76px + env(safe-area-inset-bottom)); }
            .upload-progress-dock { bottom: calc(76px + env(safe-area-inset-bottom)); }
            .coffee-link { display: none; }
        }
        @media (max-width: 480px) {
            .tools-page-hero { padding-top: 22px; }
            .tools-navigation-heading { align-items: flex-end; }
            .music-studio-panel { padding: 13px; border-radius: 16px; }
            .music-studio-heading { align-items: flex-start; }
            .music-studio-local-badge { padding: 7px 8px; font-size: 8px; }
            .music-studio-preview-card, .music-studio-controls { padding: 11px; }
            .music-studio-stage { min-height: 176px; }
            .music-studio-controls { grid-template-columns: minmax(0, 1fr); }
            .music-studio-controls-heading, .music-studio-note { grid-column: auto; }
            .music-studio-file { align-items: flex-start; flex-direction: column; }
            .music-studio-file input { max-width: 100%; }
            header { align-items: center; flex-wrap: nowrap;             }
        }
        .community-sidebar { align-content: start; gap: 12px; padding: 16px; }
        .community-tabs {
            position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px;
            padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-raised);
        }
        .community-tabs [role="tab"] {
            display: flex; min-width: 0; min-height: 42px; align-items: center; justify-content: space-between; gap: 8px;
            padding: 0 10px; border: 1px solid transparent; border-radius: 10px; background: transparent;
            color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 650; text-align: left;
            transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
        }
        .community-tabs [role="tab"]:hover { border-color: var(--line); background: var(--panel); color: var(--text); }
        .community-tabs [role="tab"][aria-selected="true"] { border-color: #4b77a0; background: linear-gradient(145deg, #213b58, #172b42); color: #e5f4ff; box-shadow: 0 5px 16px rgba(19,76,123,.22); }
        .community-tabs [role="tab"]:focus-visible { outline: 2px solid #8bc9ff; outline-offset: 2px; }
        .community-tab-label { display: inline-flex; min-width: 0; align-items: center; gap: 8px; }
        .community-tab-label > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .community-tab-label svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; opacity: .88; }
        .community-tab-count {
            display: inline-flex; min-width: 20px; height: 20px; flex: 0 0 auto; align-items: center; justify-content: center;
            padding: 0 5px; border: 1px solid rgba(139,201,255,.16); border-radius: 999px; background: rgba(139,201,255,.1); color: #a9d7ff; font-size: 9px; font-variant-numeric: tabular-nums;
        }
        .community-tab-panel { display: grid; align-content: start; gap: 11px; min-width: 0; }
        .community-tab-panel[hidden] { display: none !important; }
        .community-panel-heading { display: grid; gap: 3px; }
        .community-panel-heading h2 { margin: 0; font: 600 13px "Space Grotesk", sans-serif; }
        .community-panel-heading p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
        .community-list { gap: 8px; }
        .community-list:empty::after { content: "Nothing here yet."; display: block; padding: 11px 2px; color: var(--muted); font-size: 10px; }
        .community-chat { min-width: 0; border-color: var(--line); background: linear-gradient(150deg, var(--panel), var(--panel-raised)); }
        .admin-page-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
        body.safe-shutdown-active.admin-session .page-section:not(#adminPage),
        body.safe-shutdown-active:not(.admin-session) .page-section:not(#convertPage) { display: none !important; }
        body.safe-shutdown-active.admin-session .main-nav [data-page]:not([data-page="adminPage"]),
        body.safe-shutdown-active:not(.admin-session) .main-nav [data-page]:not([data-page="convertPage"]) { display: none !important; }
        body.safe-shutdown-active:not(.admin-session) #convertPage .tools-page-hero { display: none !important; }
        body.safe-shutdown-active #toolsNavigation,
        body.safe-shutdown-active .tools-navigation-heading,
        body.safe-shutdown-active #toolsImagePanel,
        body.safe-shutdown-active #toolsVideoPanel,
        body.safe-shutdown-active #toolsMusicPanel,
        body.safe-shutdown-active #toolsCropperPanel,
        body.safe-shutdown-active #toolsQuickPanel,
        body.safe-shutdown-active #toolsJokesPanel { display: none !important; }
        .admin-workspace { display: grid; grid-template-columns: minmax(170px, 210px) minmax(0, 1fr); align-items: start; gap: 16px; min-width: 0; }
        .admin-sidebar { position: sticky; top: 14px; display: grid; align-content: start; gap: 14px; max-height: calc(100dvh - 28px); overflow-y: auto; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
        .admin-nav-group { display: grid; gap: 5px; }
        .admin-nav-label { padding: 0 7px; color: var(--muted); font: 700 9px "Space Grotesk", sans-serif; letter-spacing: .12em; text-transform: uppercase; }
        .admin-sidebar [data-admin-view-button] { display: flex; align-items: center; width: 100%; min-height: 36px; padding: 0 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font: 500 10px "DM Sans", sans-serif; text-align: left; }
        .admin-sidebar [data-admin-view-button]:hover { border-color: var(--line); background: var(--panel-raised); color: var(--text); }
        .admin-sidebar [data-admin-view-button][aria-current="page"] { border-color: rgba(105,185,239,.36); background: rgba(105,185,239,.12); color: #a9d7ff; }
        .admin-sidebar [data-admin-view-button]:focus-visible { outline: 2px solid #69b9ef; outline-offset: 2px; }
        .admin-content { display: grid; gap: 13px; min-width: 0; }
        .admin-view { display: grid; align-content: start; gap: 13px; min-width: 0; }
        .admin-view[hidden] { display: none !important; }
        .admin-view-heading { margin: 0; font: 600 15px "Space Grotesk", sans-serif; }
        .admin-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 9px; }
        .admin-compatibility-notice { margin: 0; padding: 10px 12px; border: 1px solid #80683c; border-radius: 9px; background: rgba(96,68,24,.16); color: #f0c979; font-size: 10px; line-height: 1.5; }
        .admin-account-usage { display: grid; grid-column: 1 / -1; gap: 5px; color: var(--muted); font-size: 9px; }
        .admin-account-usage-track { height: 5px; overflow: hidden; border-radius: 999px; background: var(--line); }
        .admin-account-usage-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5ca9e8, #70d7b0); }
        .admin-filter-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(2, minmax(110px, 150px)); gap: 7px; }
        .admin-filter-row select { min-height: 39px; padding: 0 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--text); font: 500 10px "DM Sans", sans-serif; }
        .admin-message-history { display: grid; gap: 8px; max-height: min(45vh, 500px); overflow: auto; }
        .admin-message-history-item { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
        .admin-message-history-item header { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 9px; }
        .admin-message-history-item p { margin: 0; color: var(--text); font-size: 10px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
        .account-admin-message-list { display: grid; gap: 9px; max-height: min(60vh, 620px); overflow-y: auto; }
        .account-admin-message { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-raised); }
        .account-admin-message header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 10px; }
        .account-admin-message p { margin: 0; color: var(--text); font-size: 11px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
        .account-admin-message.is-unread { border-color: rgba(105,185,239,.42); }
        #adminPage .what-hero { margin-bottom: 18px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(ellipse at 90% 0, rgba(87,165,232,.14), transparent 48%), linear-gradient(145deg, var(--panel), var(--panel-raised)); }
        #adminPage .what-hero h1 { margin-top: 8px; font-size: clamp(30px, 5vw, 42px); }
        #adminPage .what-hero p { max-width: 620px; }
        .admin-panel.visible {
            display: grid; gap: 14px; width: 100%; min-width: 0; margin: 0 auto; padding: clamp(16px, 2.5vw, 28px);
            border: 1px solid var(--line); border-radius: 20px;
            background: linear-gradient(150deg, var(--panel), var(--panel-raised));
            box-shadow: 0 20px 55px rgba(0,0,0,.2);
        }
        .admin-panel-header { align-items: center; gap: 14px; margin: 0 0 2px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
        .admin-panel-header .eyebrow { margin-bottom: 7px; }
        .admin-panel-header h2 { margin: 0 0 6px; font-size: clamp(18px, 2.5vw, 23px); }
        .admin-panel-header p { max-width: 560px; color: var(--muted); font-size: 11px; line-height: 1.5; }
        .admin-section-title { margin: 4px 0 -3px; color: var(--muted); font: 700 10px "Space Grotesk", sans-serif; letter-spacing: .12em; text-transform: uppercase; }
        .admin-capacity, .admin-health-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); gap: 10px; margin: 0; }
        .admin-stat { min-height: 78px; align-content: center; padding: 13px 14px; border-color: var(--line); background: var(--panel-raised); }
        .admin-stat span { font-size: 10px; }
        .admin-stat strong { overflow-wrap: anywhere; font-size: 15px; }
        .admin-health-grid small { font-size: 9px; }
        .admin-form, .admin-list-card { gap: 10px; padding: 16px; border-color: var(--line); border-radius: 13px; background: var(--panel-raised); }
        .admin-form h3, .admin-list-card h3 { font-size: 13px; }
        .admin-form > p { font-size: 10px; }
        .admin-update-log-footer { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 14px; padding: 14px 2px 0; border-top: 1px solid var(--line); }
        .admin-update-log-footer p { margin: 0 auto 0 0; color: var(--muted); font-size: 10px; }
        .admin-update-log-dialog { width: min(720px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 24px); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--text); }
        .admin-update-log-dialog::backdrop { background: rgba(2, 7, 16, .82); backdrop-filter: blur(7px); }
        .admin-update-log-dialog form { display: grid; max-height: calc(100vh - 26px); grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; padding: 18px; }
        .admin-update-log-heading, .admin-update-log-entry header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
        .admin-update-log-heading h2 { margin: 0; font: 600 17px "Space Grotesk", sans-serif; }
        .admin-update-log-heading p, .admin-update-log-entry header span { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
        .admin-update-log-entries { display: grid; align-content: start; gap: 9px; max-height: min(65vh, 600px); overflow: auto; padding-right: 3px; }
        .admin-update-log-entry { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-raised); }
        .admin-update-log-entry header strong { font-size: 10px; }
        .admin-update-log-entry p { margin: 8px 0 0; color: var(--text); font-size: 11px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
        .admin-update-log-empty, .admin-update-log-status { margin: 0; color: var(--muted); font-size: 10px; }
        .admin-update-log-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
        .admin-update-log-actions .account-button { flex: 0 0 auto; }
        .admin-backup-drive-picker { display: grid; gap: 8px; padding: 11px; border: 1px dashed var(--line); border-radius: 11px; background: var(--panel); }
        .admin-backup-drive-picker-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
        .admin-backup-drive-picker-heading label { font-weight: 700; }
        .admin-backup-drive-picker-heading .account-button { min-height: 31px; padding: 0 10px; }
        .admin-backup-drive-picker > p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
        .admin-backup-drive-picker select:disabled { opacity: .72; cursor: wait; }
        .admin-form input, .admin-form select, .admin-form textarea { min-height: 40px; border-color: var(--line); background: var(--panel); }
        .admin-form textarea { min-height: 88px; }
        .admin-form input[type="checkbox"] { width: 16px; min-width: 16px; max-width: 16px; min-height: 16px; flex: 0 0 16px; margin: 0; padding: 0; accent-color: #9bd1ff; }
        .admin-form .priority-option { display: flex; align-items: center; gap: 9px; }
        .admin-maintenance-toggle input { min-height: 15px; }
        .admin-grid, .admin-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
        .admin-account-list, .admin-resource-list, .admin-report-list { max-height: min(62vh, 680px); overflow: auto; padding-right: 3px; scrollbar-gutter: stable; }
        .admin-account-row, .admin-resource-row { border-color: var(--line); background: var(--panel); }
        .admin-account-row[hidden], .admin-account-search-empty[hidden] { display: none !important; }
        .admin-account-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
        .admin-account-search input { width: 100%; min-width: 0; min-height: 39px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--text); font: 500 11px "DM Sans", sans-serif; }
        .admin-account-search input:focus-visible { border-color: #69b9ef; outline: 2px solid rgba(105,185,239,.25); outline-offset: 1px; }
        .admin-account-search-count { color: var(--muted); font-size: 9px; text-align: right; white-space: nowrap; }
        .admin-account-search-empty { margin: 0; }
        .admin-account-row button, .admin-resource-row button, .admin-account-actions select { min-height: 32px; }
        .admin-report-heading { align-items: center; gap: 10px; }
        .admin-report-heading > div { display: flex; flex-wrap: wrap; gap: 7px; }
        .admin-report-heading select { min-height: 36px; }
        .admin-report-card { grid-column: 1 / -1; min-width: 0; }
        .admin-report-list { overflow-wrap: anywhere; }
        .admin-table { display: block; overflow-x: auto; white-space: nowrap; }
        :root[data-theme="light"] .community-tabs { background: #f3f7fb; }
        :root[data-theme="light"] .community-tabs [role="tab"]:hover { border-color: #c8d8e8; background: #fff; color: #29435e; }
        :root[data-theme="light"] .community-tabs [role="tab"][aria-selected="true"] { border-color: #9bc8ec; background: linear-gradient(145deg, #e6f2ff, #dceeff); color: #205780; box-shadow: 0 4px 12px rgba(49,112,162,.12); }
        :root[data-theme="light"] .community-tab-count { background: #e4f1fb; color: #28638f; }
        :root[data-theme="light"] .community-conversation-row:hover { border-color: #9bc8ec; background: #eaf3fb; }
        :root[data-theme="light"] .community-unread { border-color: #b7d5ec; background: #e4f1fb; color: #28638f; }
        :root[data-theme="light"] .admin-account-search input { background: #fff; }
        :root[data-theme="light"] .admin-panel.visible { box-shadow: 0 18px 45px rgba(31,55,81,.1); }
        :root[data-theme="light"] .admin-backup-drive-picker { background: #f8fafc; }
        :root[data-theme="light"] .admin-backup-restore { border-color: #d8a9ae !important; background: #fff0f1 !important; color: #9c3544 !important; }
        :root[data-theme="light"] .admin-server-restart-button { border-color: #d8a9ae !important; background: #fff0f1 !important; color: #9c3544 !important; }
        :root[data-theme="light"] .admin-stat { background: #f8fafc; }
        :root[data-theme="light"] .admin-sidebar { background: #f8fafc; }
        :root[data-theme="light"] .admin-sidebar [data-admin-view-button][aria-current="page"] { background: #e6f2ff; color: #205780; }
        :root[data-theme="light"] .admin-filter-row select { background: #fff; }
        :root[data-theme="light"] .admin-compatibility-notice { border-color: #e4c990; background: #fff5df; color: #805300; }
        :root[data-theme="light"] .admin-account-usage-track { background: #dce5ed; }
        :root[data-theme="light"] .admin-message-history-item,
        :root[data-theme="light"] .account-admin-message { background: #f8fafc; }
        :root[data-theme="light"] .admin-account-row,
        :root[data-theme="light"] .admin-resource-row { background: #f8fafc; }
        :root[data-theme="light"] .admin-account-row button,
        :root[data-theme="light"] .admin-resource-row button,
        :root[data-theme="light"] .admin-account-actions select { border-color: #c5d2df; background: #edf4fa; color: #205780; }
        :root[data-theme="light"] .admin-account-menu > summary { border-color: #c5d2df; background: #edf4fa; color: #205780; }
        :root[data-theme="light"] .admin-account-menu > summary.admin-delete-account { border-color: #d8a9ae; background: #fff0f1; color: #9c3544; }
        :root[data-theme="light"] .admin-account-menu-panel { background: #f8fafc; box-shadow: 0 10px 24px rgba(31,55,81,.12); }
        :root[data-theme="light"] .admin-account-menu-panel input:not([type="checkbox"]),
        :root[data-theme="light"] .admin-account-menu-panel select { border-color: #c5d2df; background: #fff; color: #205780; }
        @media (max-width: 760px) {
            .community-sidebar { max-height: none; overflow: visible; }
            .community-tabs { position: relative; top: auto; }
            .community-chat { min-height: 420px; }
            .admin-workspace { grid-template-columns: minmax(0, 1fr); }
            .admin-sidebar { position: static; display: flex; max-height: none; overflow-x: auto; overflow-y: hidden; }
            .admin-nav-group { display: flex; flex: 0 0 auto; align-items: center; gap: 4px; }
            .admin-nav-label { padding: 0 4px; white-space: nowrap; }
            .admin-sidebar [data-admin-view-button] { width: auto; min-height: 32px; white-space: nowrap; }
            .admin-panel-header { align-items: flex-start; flex-direction: column; }
            .admin-grid, .admin-list-grid { grid-template-columns: minmax(0, 1fr); }
            .admin-report-card { grid-column: auto; }
            .admin-account-list, .admin-resource-list, .admin-report-list { max-height: 420px; }
            .admin-filter-row { grid-template-columns: minmax(0, 1fr) minmax(110px, .7fr); }
            .admin-filter-row select:last-child { grid-column: 1 / -1; }
        }
        @media (max-width: 480px) {
            .admin-account-menu-panel .admin-account-inline-fields { grid-template-columns: minmax(0, 1fr); }
            .community-sidebar { padding: 12px; }
            .community-tabs { gap: 5px; padding: 5px; }
            .community-tabs [role="tab"] { min-height: 40px; gap: 6px; padding: 0 8px; font-size: 10px; }
            .community-tab-label { gap: 6px; }
            .community-tab-count { min-width: 18px; height: 18px; padding: 0 4px; font-size: 8px; }
            .admin-panel.visible { padding: 14px; border-radius: 16px; }
            .admin-capacity, .admin-health-grid { grid-template-columns: minmax(0, 1fr); }
            .admin-form, .admin-list-card { padding: 13px; }
            .admin-report-heading { align-items: flex-start; flex-direction: column; }
            .admin-report-heading > div { width: 100%; }
            .admin-report-heading select { flex: 1; min-width: 0; }
            .admin-account-search { grid-template-columns: minmax(0, 1fr); }
            .admin-account-search-count { min-height: 12px; text-align: left; }
            .admin-filter-row { grid-template-columns: minmax(0, 1fr); }
            .admin-filter-row select:last-child { grid-column: auto; }
        }
        body { background-image: radial-gradient(ellipse at 50% -15%, rgba(45,111,173,.12), transparent 55%); background-attachment: fixed; }
        .page-section:not([hidden]) { animation-duration: .34s; }
        .nav-button {
            position: relative;
            transition: transform .2s ease, color .2s ease, background-color .2s ease, border-color .2s ease;
        }
        .nav-button::after {
            position: absolute; right: 12px; bottom: 3px; left: 12px; height: 2px;
            border-radius: 2px; background: var(--green); content: ""; transform: scaleX(0);
            transition: transform .2s ease;
        }
        .nav-button.active::after { transform: scaleX(1); }
        .mobile-nav-button.active { animation: nav-tab-select .26s cubic-bezier(.2,.8,.25,1) both; }
        .mobile-nav-button[hidden] { display: none !important; }
        .community-tabs [role="tab"] {
            transition: transform .18s ease, color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
        }
        .community-tabs [role="tab"]:hover { transform: translateY(-1px); }
        .card, .account-panel, .plan-card, .highlight-card, .what-card, .admin-form, .admin-list-card {
            border-color: var(--line);
            box-shadow: 0 16px 42px rgba(1, 9, 19, .2);
            transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
        }
        .card { background: linear-gradient(145deg, rgba(31, 75, 116, .16), var(--panel) 58%); }
        .card:hover, .account-panel:hover, .plan-card:hover, .what-card:hover { border-color: rgba(117, 193, 245, .38); }
        :root[data-theme="light"] body {
            background-image: radial-gradient(ellipse at 50% -15%, rgba(45, 111, 173, .08), transparent 58%);
        }
        :root[data-theme="light"] .card { background: linear-gradient(145deg, #fff, #f7fbff); box-shadow: 0 14px 36px rgba(31, 55, 81, .08); }
        :root[data-theme="light"] .account-panel,
        :root[data-theme="light"] .plan-card,
        :root[data-theme="light"] .highlight-card,
        :root[data-theme="light"] .what-card,
        :root[data-theme="light"] .admin-form,
        :root[data-theme="light"] .admin-list-card { box-shadow: 0 12px 30px rgba(31, 55, 81, .08); }
        @keyframes nav-tab-select { from { opacity: .72; transform: translateY(3px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
        .after-hours-link {
            padding: 0; border: 0; background: transparent; color: var(--green);
            cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px;
        }
        .after-hours-link:hover { color: var(--blue); }
        .after-hours-link:focus-visible,
        .mds-mix-dialog button:focus-visible,
        .mds-mix-dialog input:focus-visible { outline: 2px solid #8cd8ff; outline-offset: 3px; }
        .mds-mix-dialog {
            width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
            padding: 0; overflow: auto; border: 1px solid rgba(128, 180, 245, .32);
            border-radius: 26px; background: transparent; color: #f5f7ff;
            box-shadow: 0 28px 90px rgba(0, 0, 0, .55), 0 0 90px rgba(126, 91, 255, .16);
        }
        .mds-mix-dialog::backdrop { background: rgba(3, 7, 16, .78); backdrop-filter: blur(12px); }
        .mds-mix-dialog[open] { animation: mds-mix-enter .32s cubic-bezier(.2,.8,.2,1) both; }
        @keyframes mds-mix-enter { from { opacity: 0; transform: translateY(28px) scale(.93) rotateX(5deg); } to { opacity: 1; transform: translateY(0) scale(1) rotateX(0); } }
        .mds-mix-shell {
            position: relative; overflow: hidden; padding: clamp(22px, 5vw, 38px);
            border: 1px solid rgba(135, 181, 255, .28); border-radius: inherit;
            background:
                radial-gradient(ellipse at 8% 4%, rgba(73, 116, 255, .3), transparent 48%),
                radial-gradient(ellipse at 94% 96%, rgba(219, 70, 177, .24), transparent 44%),
                linear-gradient(145deg, #141b31, #090d18 68%);
            color: #f5f7ff;
        }
        .mds-mix-shell::before {
            position: absolute; inset: 0; pointer-events: none; content: "";
            background: linear-gradient(115deg, transparent 15%, rgba(255,255,255,.08) 48%, transparent 70%);
            transform: translateX(-100%); animation: mds-mix-sheen 5.5s ease-in-out infinite;
        }
        .mds-mix-shell::after {
            position: absolute; z-index: 0; top: -150px; right: -110px; width: 290px; height: 290px;
            border-radius: 50%; background: conic-gradient(from 20deg, #8c70ff, #ff6fb1, #66e6ff, #8c70ff);
            content: ""; filter: blur(58px); opacity: .14; pointer-events: none;
            animation: mds-mix-ambient 11s ease-in-out infinite alternate;
        }
        .mds-mix-shell > * { position: relative; z-index: 1; }
        .mds-mix-shell > .mds-mix-close { position: absolute; z-index: 2; }
        @keyframes mds-mix-ambient { to { transform: translate(-120px, 210px) rotate(200deg) scale(1.3); opacity: .27; } }
        @keyframes mds-mix-sheen { 0%, 65% { transform: translateX(-100%); } 100% { transform: translateX(100%); }         }
        .mds-mix-kicker {
            display: block; margin-bottom: 9px; color: #9cafff; font: 700 10px "Space Grotesk", sans-serif;
            letter-spacing: .19em; text-transform: uppercase;
        }
        .mds-mix-title {
            margin: 0; background: linear-gradient(100deg, #fff 5%, #c5b6ff 48%, #81eaff 90%);
            background-clip: text; color: transparent; font: 700 clamp(25px, 5vw, 38px) "Space Grotesk", sans-serif;
            letter-spacing: -.04em; -webkit-background-clip: text;
        }
        .mds-mix-button {
            display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px;
            padding: 0 14px; border: 1px solid rgba(160, 181, 255, .25); border-radius: 12px;
            background: rgba(255,255,255,.07); color: #edf0ff; cursor: pointer;
            font: 700 12px "DM Sans", sans-serif;
            transition: transform .22s cubic-bezier(.2,.8,.2,1), border-color .22s ease, background .22s ease, box-shadow .22s ease;
        }
        .mds-icon { display: block; width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
        .mds-icon[hidden] { display: none !important; }
        .mds-icon--solid { fill: currentColor; stroke: none; }
        .mds-repeat-button { position: relative; }
        .mds-repeat-badge { position: absolute; right: 5px; bottom: 5px; display: grid; min-width: 12px; height: 12px; place-items: center; border-radius: 50%; background: #9271e9; color: #fff; font: 700 8px "DM Sans", sans-serif; }
        .mds-repeat-badge[hidden] { display: none; }
        .mds-mix-button:hover { transform: translateY(-2px) scale(1.025); border-color: rgba(173, 191, 255, .65); background: rgba(255,255,255,.12); box-shadow: 0 8px 22px rgba(112, 116, 255, .16); }
        .mds-mix-button:active { transform: translateY(0) scale(.96); }
        .mds-mix-button--accent {
            border-color: transparent; background: linear-gradient(115deg, #6c7cff, #ce65d3 58%, #f47f9e);
            color: #fff; box-shadow: 0 8px 24px rgba(153, 99, 227, .26);
        }
        .mds-mix-button--accent:hover { background: linear-gradient(115deg, #8190ff, #df75df 58%, #ff91ac); }
        .mds-mix-status { min-height: 19px; margin: 12px 0 0; color: #b7c5e2; font-size: 11px; }
        .mds-mix-close {
            position: absolute; z-index: 2; top: 14px; right: 14px; width: 38px; height: 38px;
            padding: 0; border: 1px solid rgba(186, 199, 239, .2); border-radius: 50%;
            background: rgba(6, 10, 20, .55); color: #e5eaff; cursor: pointer; font-size: 20px;
        }
        .mds-mix-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-right: 42px; }
        .mds-mix-head .mds-mix-kicker { margin-bottom: 5px; }
        .mds-mix-head-copy p { margin: 7px 0 0; color: #aab6d4; font-size: 11px; }
        .mds-mix-stage {
            --music-energy: .1;
            position: relative; display: grid; min-height: 196px; place-items: center; isolation: isolate;
            margin: 18px 0 8px; overflow: hidden; border: 1px solid rgba(164, 177, 241, .15);
            border-radius: 20px; background:
                linear-gradient(rgba(164,177,241,.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(164,177,241,.05) 1px, transparent 1px),
                radial-gradient(ellipse at 50% 100%, rgba(87, 89, 255, var(--music-energy)), transparent 62%),
                rgba(5, 9, 18, .44);
            background-size: 28px 28px, 28px 28px, auto, auto;
            transition: border-color .4s ease, box-shadow .4s ease, background-position .8s ease;
        }
        .mds-mix-stage::before,
        .mds-mix-stage::after {
            position: absolute; width: 190px; height: 190px; border: 1px solid rgba(153, 168, 255, .13);
            border-radius: 50%; content: ""; animation: mds-mix-orbit 12s linear infinite;
        }
        .mds-mix-stage::before { box-shadow: 0 0 38px rgba(134, 117, 255, .16), inset 0 0 38px rgba(134, 117, 255, .12); animation: mds-mix-orbit 12s linear infinite, mds-mix-aura 4s ease-in-out infinite; }
        .mds-mix-stage::after { width: 240px; height: 240px; border-style: dashed; animation-duration: 19s; animation-direction: reverse; }
        @keyframes mds-mix-orbit { to { transform: rotate(360deg); } }
        @keyframes mds-mix-aura { 0%, 100% { opacity: .28; } 50% { opacity: .95; box-shadow: 0 0 72px rgba(134,117,255,.32), inset 0 0 56px rgba(134,117,255,.2); } }
        .mds-mix-star { position: absolute; z-index: 2; color: #d8c6ff; font-size: 15px; text-shadow: 0 0 14px #b095ff, 0 0 30px #8f71ff; animation: mds-mix-star-float 3.8s ease-in-out infinite; }
        .mds-mix-star--one { top: 22%; left: 20%; }
        .mds-mix-star--two { top: 31%; right: 22%; color: #8fe9ff; animation-delay: -1.2s; }
        .mds-mix-star--three { bottom: 24%; left: 28%; color: #ff9fc1; animation-delay: -2.4s; }
        @keyframes mds-mix-star-float { 0%, 100% { opacity: .25; transform: translateY(5px) scale(.65) rotate(-25deg); } 50% { opacity: 1; transform: translateY(-9px) scale(1.25) rotate(25deg); } }
        .mds-mix-record {
            position: relative; z-index: 1; display: grid; width: 120px; height: 120px; place-items: center;
            border: 1px solid rgba(255,255,255,.22); border-radius: 50%;
            background:
                radial-gradient(circle, #111727 0 9%, transparent 9.5% 14%, rgba(255,255,255,.22) 14.5% 15%, transparent 15.5% 29%, rgba(255,255,255,.17) 29.5% 30%, transparent 30.5% 45%, rgba(255,255,255,.14) 45.5% 46%, transparent 46.5% 61%, rgba(255,255,255,.12) 61.5% 62%, transparent 62.5%),
                conic-gradient(from 30deg, #5442bc, #be4d9b, #ec8d78, #7862e8, #42cee4, #5442bc);
            box-shadow: 0 0 44px rgba(115, 91, 255, .36), inset 0 0 22px rgba(7, 10, 24, .55);
            animation: mds-mix-spin 7s linear infinite; animation-play-state: paused;
        }
        .mds-mix-record::before,
        .mds-mix-record::after { position: absolute; border: 1px solid rgba(255,255,255,.17); border-radius: inherit; content: ""; }
        .mds-mix-record::before { inset: 7px; border-color: rgba(255,255,255,.12); }
        .mds-mix-record::after { inset: -9px; border-color: rgba(177,148,255,.34); box-shadow: 0 0 18px rgba(177,148,255,.18); animation: mds-record-ripple 2.8s ease-out infinite; }
        @keyframes mds-record-ripple { 0%, 100% { opacity: .3; transform: scale(.94); } 50% { opacity: .9; transform: scale(1.08); } }
        @keyframes mds-mix-spin { to { transform: rotate(360deg); } }
        .mds-mix-shell.is-playing .mds-mix-record { animation-play-state: running; }
        .mds-mix-shell.is-playing .mds-mix-stage { border-color: rgba(163, 145, 255, .68); background-position: 14px 14px, -14px -14px, center, center; box-shadow: inset 0 0 52px rgba(122, 91, 255, .22), 0 0 34px rgba(119, 87, 255, .28); }
        .mds-mix-shell.is-playing .mds-mix-stage::after { animation-duration: 8s; }
        .mds-mix-shell.is-playing .mds-mix-record { filter: drop-shadow(0 0 24px rgba(172, 122, 255, .72)); }
        .mds-mix-shell.is-playing .mds-mix-record::after { animation-duration: 1.8s; border-color: rgba(112,232,255,.58); }
        .mds-mix-record-label {
            display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid rgba(255,255,255,.4);
            border-radius: 50%; background: #111727; color: #fff; font: 700 10px "Space Grotesk", sans-serif;
        }
        .mds-mix-canvas { position: absolute; z-index: 2; right: 4%; bottom: 9px; left: 4%; width: 92%; height: 64px; opacity: .98; filter: drop-shadow(0 0 12px rgba(170, 125, 255, .8)); }
        .mds-mix-shell.is-playing .mds-mix-canvas { animation: mds-spectrum-breathe 1.5s ease-in-out infinite alternate; }
        @keyframes mds-spectrum-breathe { to { opacity: .72; filter: drop-shadow(0 0 18px rgba(100, 217, 255, .82)); } }
        .mds-mix-track { display: grid; gap: 5px; min-width: 0; margin-top: 17px; }
        .mds-mix-track strong { overflow: hidden; color: #f6f6ff; font: 700 19px "Space Grotesk", sans-serif; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
        .mds-mix-track span { color: #9ca9c8; font-size: 11px; }
        .mds-mix-timeline { display: grid; grid-template-columns: 1fr; gap: 5px; margin: 15px 0 9px; }
        .mds-mix-timeline input,
        .mds-mix-volume input { width: 100%; accent-color: #ac88ff; cursor: pointer; }
        #musicSeek, #musicVolume { appearance: none; height: 5px; border-radius: 999px; background: linear-gradient(90deg, rgba(115,126,255,.65), rgba(214,102,220,.65)); }
        #musicSeek::-webkit-slider-thumb, #musicVolume::-webkit-slider-thumb {
            appearance: none; width: 13px; height: 13px; border: 2px solid #fff; border-radius: 50%;
            background: #bd8cff; box-shadow: 0 0 14px rgba(190,128,255,.62); transition: transform .18s ease, box-shadow .18s ease;
        }
        #musicSeek::-moz-range-thumb, #musicVolume::-moz-range-thumb {
            width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%;
            background: #bd8cff; box-shadow: 0 0 14px rgba(190,128,255,.62);
        }
        #musicSeek:hover::-webkit-slider-thumb, #musicVolume:hover::-webkit-slider-thumb { transform: scale(1.2); box-shadow: 0 0 20px rgba(190,128,255,.9); }
        .mds-mix-time { display: flex; justify-content: space-between; color: #9ba8c6; font: 10px "DM Sans", sans-serif; font-variant-numeric: tabular-nums; }
        .mds-mix-controls { display: flex; align-items: center; justify-content: center; gap: 9px; }
        .mds-mix-controls .mds-mix-button { width: 43px; height: 43px; padding: 0; border-radius: 50%; font-size: 15px; box-shadow: 0 7px 20px rgba(0,0,0,.18); }
        .mds-mix-controls .mds-mix-button--accent { width: 58px; height: 58px; font-size: 18px; }
        .mds-mix-controls .is-active { border-color: #bd9cff; background: rgba(152, 118, 255, .2); color: #e8dcff; }
        #musicPlayPause [data-icon-play], #musicPlayPause [data-icon-pause] { transform-origin: center; }
        #musicPlayPause[aria-label="Pause"] [data-icon-pause] { animation: mds-pause-icon-in .2s cubic-bezier(.2,.8,.2,1) both; }
        @keyframes mds-pause-icon-in { from { opacity: 0; transform: scale(.65) rotate(-18deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
        .mds-mix-shell.is-playing #musicPlayPause { animation: mds-mix-play-pulse 1.8s ease-in-out infinite; }
        @keyframes mds-mix-play-pulse { 0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(153, 99, 227, .26), 0 0 0 0 rgba(191,119,255,.3); } 50% { transform: scale(1.08); box-shadow: 0 0 34px rgba(195, 116, 255, .62), 0 0 0 9px rgba(191,119,255,0); } }
        .mds-mix-options { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
        .mds-mix-volume { display: flex; width: min(190px, 100%); align-items: center; gap: 10px; color: #aeb9d2; font-size: 10px; }
        .mds-mix-actions { display: flex; flex-wrap: wrap; gap: 8px; }
        .mds-mix-drop { margin-top: 17px; padding: 14px; border: 1px dashed rgba(170, 184, 234, .28); border-radius: 15px; background: rgba(255,255,255,.025); transition: border-color .18s ease, background .18s ease; }
        .mds-mix-drop.is-dragging { border-color: #b39bff; background: rgba(146, 118, 255, .12); }
        .mds-mix-drop-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
        .mds-mix-drop-head strong { color: #e8eaff; font: 700 11px "Space Grotesk", sans-serif; }
        .mds-mix-drop-head span { color: #8f9bb9; font-size: 10px; }
        .mds-mix-playlist { display: grid; max-height: 148px; gap: 5px; margin: 10px 0 0; padding: 0; overflow: auto; list-style: none; }
        .mds-mix-playlist:empty { display: none; }
        .mds-mix-playlist button {
            display: flex; width: 100%; min-width: 0; align-items: center; gap: 9px;
            padding: 8px 10px; border: 1px solid transparent; border-radius: 10px;
            background: rgba(255,255,255,.035); color: #cbd3e8; cursor: pointer; text-align: left;
        }
        .mds-mix-playlist button { transition: transform .18s ease, border-color .18s ease, background .18s ease; }
        .mds-mix-playlist button:hover { transform: translateX(3px); background: rgba(255,255,255,.08); }
        .mds-mix-playlist button[aria-current="true"] { border-color: rgba(173, 147, 255, .56); background: linear-gradient(100deg, rgba(127, 100, 228, .24), rgba(127, 100, 228, .08)); color: #f0eaff; }
        .mds-mix-playlist button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap;         }
        .mds-mix-playlist button small { flex: 0 0 auto; margin-left: auto; color: #95a2c1; font-size: 9px; }
        .mds-mix-file { display: none; }
        :root[data-theme="light"] .mds-mix-dialog { color: #f5f7ff; }
        :root[data-reduce-graphics="on"] .mds-mix-shell::before { display: none !important; }
        :root[data-reduce-graphics="on"] .mds-mix-shell::after,
        :root[data-reduce-graphics="on"] .mds-mix-stage::before,
        :root[data-reduce-graphics="on"] .mds-mix-stage::after,
        :root[data-reduce-graphics="on"] .mds-mix-star,
        :root[data-reduce-graphics="on"] .mds-mix-record,
        :root[data-reduce-graphics="on"] .mds-mix-record::after,
        :root[data-reduce-graphics="on"] .mds-mix-shell.is-playing #musicPlayPause,
        :root[data-reduce-graphics="on"] .mds-mix-shell.is-playing .mds-mix-canvas { animation: none !important; }
        :root[data-reduce-graphics="on"] #musicPlayPause[aria-label="Pause"] [data-icon-pause] { animation: none !important; }
        @media (max-width: 520px) {
            .mds-mix-dialog { width: calc(100vw - 14px); max-height: calc(100dvh - 14px); border-radius: 20px; }
            .mds-mix-shell { padding: 22px 16px; }
            .mds-mix-stage { min-height: 166px; }
            .mds-mix-options { align-items: stretch; flex-direction: column; }
            .mds-mix-volume { width: 100%; }
            .mds-mix-actions > * { flex: 1; }
        }
        @media (prefers-reduced-motion: reduce) {
            .mds-mix-dialog[open], .mds-mix-shell::before, .mds-mix-shell::after,
            .mds-mix-stage::before, .mds-mix-stage::after, .mds-mix-record, .mds-mix-record::after, .mds-mix-star,
            .mds-mix-shell.is-playing #musicPlayPause, .mds-mix-shell.is-playing .mds-mix-canvas,
            #musicPlayPause[aria-label="Pause"] [data-icon-pause] { animation: none !important; }
            .mds-mix-button, .mds-mix-drop { transition: none !important; }
        }
        .auth-gate {
            padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
                max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
            background:
                radial-gradient(ellipse at 18% 16%, hsl(var(--ambient-hue, 210deg) 80% 55% / .18), transparent 38%),
                radial-gradient(ellipse at 84% 84%, hsl(var(--ambient-accent-hue, 278deg) 80% 55% / .13), transparent 42%),
                var(--bg);
        }
        .auth-card {
            width: min(468px, 100%);
            max-height: calc(100dvh - 48px);
            padding: clamp(22px, 2.5vw, 24px) clamp(24px, 5vw, 36px);
            border-color: var(--line);
            border-radius: 24px;
            background:
                radial-gradient(ellipse at 100% 0, hsl(var(--ambient-hue, 210deg) 76% 56% / .13), transparent 42%),
                linear-gradient(155deg, var(--panel-raised), var(--panel));
            box-shadow: 0 32px 100px rgba(0,0,0,.58), 0 0 0 1px rgba(255,255,255,.025) inset;
        }
        .auth-card::before {
            left: 8%;
            width: 84%;
            background: linear-gradient(90deg, transparent, var(--green) 35%, var(--blue) 68%, transparent);
            opacity: .9;
        }
        .auth-card .auth-startup-status {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin: 0 0 24px;
            padding: 7px 10px;
            border: 1px solid rgba(130,184,232,.2);
            border-radius: 999px;
            background: rgba(75,130,186,.1);
            color: #acd9ff;
            font-size: 9px;
            letter-spacing: .13em;
        }
        .auth-card .auth-startup-status::before {
            width: 7px;
            height: 7px;
            flex: 0 0 7px;
            border-radius: 50%;
            background: #83dfc6;
            box-shadow: 0 0 12px rgba(131,223,198,.7);
            content: "";
        }
        .auth-card h1 {
            margin: 0 0 12px;
            font: 600 clamp(30px, 7vw, 36px)/1.08 "Space Grotesk", sans-serif;
            letter-spacing: -.045em;
        }
        .auth-card > #authSubtitle {
            max-width: 370px;
            margin: 0;
            color: #aab8cb;
            font-size: 13px;
            line-height: 1.65;
        }
        .auth-card .auth-form { gap: 15px; margin-top: 24px; }
        .auth-card .auth-form > label:not(.remember-option):not(.terms-accept) {
            gap: 8px;
            color: #c5d3e5;
            font-size: 11px;
            font-weight: 600;
            letter-spacing: .015em;
        }
        .auth-card .auth-form input:not([type="checkbox"]):not([type="hidden"]) {
            min-height: 48px;
            padding: 11px 13px;
            border-color: rgba(144,169,204,.23);
            border-radius: 11px;
            background: rgba(5,11,21,.62);
            transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
        }
        .auth-card .auth-form input:not([type="checkbox"]):not([type="hidden"]):hover {
            border-color: rgba(144,169,204,.42);
        }
        .auth-card .auth-form input:not([type="checkbox"]):not([type="hidden"]):focus {
            border-color: #9a9aff;
            background: rgba(7,13,25,.9);
            box-shadow: 0 0 0 4px rgba(154,154,255,.13);
        }
        .auth-card .auth-form .remember-option {
            gap: 10px;
            padding: 12px;
            border: 1px solid rgba(144,169,204,.16);
            border-radius: 11px;
            background: rgba(107,135,177,.07);
            color: #c4d1e2;
            font-size: 10px;
            line-height: 1.45;
        }
        .auth-card .auth-form .remember-option input { width: 16px; min-height: 16px; flex: 0 0 16px; }
        .auth-card .auth-form .remember-storage-note { margin: -8px 0 0 38px; color: #92a3b8; }
        .auth-card .auth-form .account-button {
            min-height: 50px;
            margin-top: 3px;
            border-radius: 12px;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: .01em;
        }
        .auth-card .auth-switch {
            min-height: 36px;
            margin-top: 10px;
            border-radius: 9px;
            color: #b7c7dc;
            transition: background-color .18s ease, color .18s ease;
        }
        .auth-card .auth-switch:hover,
        .auth-card .auth-switch:focus-visible {
            background: rgba(130,159,205,.1);
            color: #fff;
            text-shadow: none;
        }
        .auth-card .auth-theme-toggle { margin-top: 2px; }
        :root[data-theme="light"] .auth-gate {
            background:
                radial-gradient(ellipse at 18% 16%, hsl(var(--ambient-hue, 210deg) 80% 55% / .14), transparent 40%),
                radial-gradient(ellipse at 84% 84%, hsl(var(--ambient-accent-hue, 278deg) 80% 55% / .11), transparent 42%),
                var(--bg);
        }
        :root[data-theme="light"] .auth-card {
            border-color: var(--line);
            background:
                radial-gradient(ellipse at 100% 0, hsl(var(--ambient-hue, 210deg) 72% 55% / .1), transparent 42%),
                linear-gradient(155deg, var(--panel), var(--bg));
            box-shadow: 0 28px 80px rgba(42,68,108,.18), 0 0 0 1px rgba(255,255,255,.75) inset;
        }
        :root[data-theme="light"] .auth-card .auth-startup-status {
            border-color: #d2e0ee;
            background: #eff6fc;
            color: #28618f;
        }
        :root[data-theme="light"] .auth-card .auth-startup-status::before {
            background: #319d7a;
            box-shadow: 0 0 10px rgba(49,157,122,.35);
        }
        :root[data-theme="light"] .auth-card > #authSubtitle { color: #536981; }
        :root[data-theme="light"] .auth-card .auth-form > label:not(.remember-option):not(.terms-accept) { color: #344c65; }
        :root[data-theme="light"] .auth-card .auth-form input:not([type="checkbox"]):not([type="hidden"]) {
            border-color: #c5d2df;
            background: rgba(255,255,255,.9);
        }
        :root[data-theme="light"] .auth-card .auth-form input:not([type="checkbox"]):not([type="hidden"]):focus {
            border-color: #648fd0;
            background: #fff;
            box-shadow: 0 0 0 4px rgba(100,143,208,.16);
        }
        :root[data-theme="light"] .auth-card .auth-form .remember-option {
            border-color: #d4e0eb;
            background: #f3f7fb;
            color: #344c65;
        }
        :root[data-theme="light"] .auth-card .auth-form .remember-storage-note { color: #596f84; }
        :root[data-theme="light"] .auth-card .auth-switch { color: #42617c; }
        :root[data-theme="light"] .auth-card .auth-switch:hover,
        :root[data-theme="light"] .auth-card .auth-switch:focus-visible { background: #edf4fa; color: #1d4e76; }
        @media (max-width: 520px) {
            .auth-gate {
                padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
                    max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
            }
            .auth-card { max-height: calc(100dvh - 24px); padding: 24px 20px; border-radius: 20px; }
            .auth-card .auth-startup-status { margin-bottom: 20px; }
        }
        @media (max-width: 760px) {
            .shell {
                width: 100%; max-width: 760px; margin: 0 auto;
                padding: 0 16px calc(104px + env(safe-area-inset-bottom));
            }
            .shell > header {
                position: sticky; top: 0; z-index: 40; margin: 0 -16px 14px;
                padding: max(8px, env(safe-area-inset-top)) 16px 10px;
                border-bottom: 1px solid rgba(125,165,207,.16);
                background: rgba(7,17,30,.88);
                backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
            }
            :root[data-theme="light"] .shell > header { background: rgba(244,248,252,.9); }
            .brand-name { font-size: 17px; }
            .mobile-nav-shell {
                left: 50%; right: auto; width: min(100%, 760px);
                padding: 7px 12px calc(6px + env(safe-area-inset-bottom));
                border: 1px solid rgba(125,165,207,.22); border-bottom: 0;
                border-radius: 20px 20px 0 0; transform: translateX(-50%);
                background: rgba(9,17,29,.93);
            }
            :root[data-theme="light"] .mobile-nav-shell { background: rgba(246,249,253,.95); }
            .mobile-bottom-nav { gap: 5px; }
            .mobile-nav-button { min-height: 56px; border-radius: 14px; }
            .mobile-nav-button.active { box-shadow: 0 6px 20px rgba(80,145,220,.12); }
            .page-section > .intro, .page-section > .what-hero, .page-section > .home-hero {
                margin-top: 0;
            }
            .card, .account-panel, .what-card, .stats-live-status {
                box-shadow: 0 12px 32px rgba(0,0,0,.12);
            }
            .mobile-more-menu { border-radius: 18px; }
            button, a { -webkit-tap-highlight-color: transparent; }
        }
        @media (max-width: 380px) {
            .shell { padding-right: 12px; padding-left: 12px; }
            .shell > header { margin-right: -12px; margin-left: -12px; padding-right: 12px; padding-left: 12px; }
            .mobile-nav-button { gap: 2px; font-size: 9px; }
            .mobile-nav-button svg { width: 19px; height: 19px; }
        }
        .nav-button { min-height: 42px; }
        .tools-tab { min-height: 50px; font-size: 12px; }
        .field-label { font-size: 12px; }
        .choose-btn { min-height: 44px; padding-right: 16px; padding-left: 16px; font-size: 13px; }
        .primary-btn { min-height: 52px; font-size: 15px; }
        .auth-card .auth-form > label:not(.remember-option):not(.terms-accept) { font-size: 12px; }
        .auth-card .auth-form .remember-option { font-size: 11px; }
        .auth-card .auth-form .remember-storage-note { font-size: 10px; line-height: 1.55; }
        .auth-gate {
            background: rgba(5, 11, 20, .92);
            backdrop-filter: blur(8px);
        }
        .auth-card {
            width: min(420px, 100%);
            max-height: calc(100dvh - 32px);
            padding: 28px;
            border-radius: 18px;
            background: var(--panel);
            box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
        }
        .auth-card::before { display: none; }
        .auth-card .auth-startup-status {
            position: absolute;
            width: 1px;
            height: 1px;
            margin: -1px;
            padding: 0;
            border: 0;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            clip-path: inset(50%);
        }
        :root[data-theme="light"] .auth-gate { background: rgba(242, 246, 251, .92); }
        .auth-brand {
            display: flex;
            align-items: center;
            gap: 9px;
            margin-bottom: 20px;
            color: var(--muted);
            font: 600 13px "Space Grotesk", sans-serif;
        }
        .auth-brand-logo {
            display: block;
            width: 30px;
            height: 30px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: #050508;
        }
        .auth-card h1 {
            margin-bottom: 6px;
            font-size: clamp(28px, 7vw, 32px);
            letter-spacing: -.035em;
        }
        .auth-card > #authSubtitle { font-size: 12px; line-height: 1.5; }
        .auth-card .auth-form { gap: 12px; margin-top: 20px; }
        .auth-card .auth-form > label:not(.remember-option):not(.terms-accept) { gap: 6px; }
        .auth-card .auth-form input:not([type="checkbox"]):not([type="hidden"]) {
            min-height: 46px;
            border-radius: 9px;
            background: var(--bg);
        }
        .auth-card .auth-form .remember-option {
            gap: 8px;
            padding: 0;
            border: 0;
            background: transparent;
        }
        .auth-card .auth-form .remember-storage-note { margin: -5px 0 0 24px; }
        .auth-card .auth-form .account-button { min-height: 48px; margin-top: 2px; }
        .auth-card .auth-guest-button {
            width: 100%;
            min-height: 44px;
            margin-top: 10px;
            border: 1px solid var(--line);
            background: transparent;
            box-shadow: none;
        }
        .auth-card .auth-switch {
            display: block;
            width: 100%;
            min-height: 38px;
            margin: 10px 0 0;
            padding: 4px 8px;
            border: 0;
            background: transparent;
            color: var(--green);
            font-size: 12px;
        }
        .auth-card .auth-utility-links {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 2px;
            margin-top: 14px;
            padding-top: 10px;
            border-top: 1px solid var(--line);
        }
        .auth-card .auth-utility-links .auth-switch {
            width: auto;
            min-height: 30px;
            margin: 0;
            color: var(--muted);
            font-size: 10px;
        }
        .auth-card .auth-utility-links .auth-switch:hover,
        .auth-card .auth-utility-links .auth-switch:focus-visible {
            background: var(--panel-raised);
            color: var(--text);
        }
        @media (max-width: 520px) {
            .auth-gate {
                padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
                    max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
            }
            .auth-card { max-height: calc(100dvh - 24px); padding: 24px 20px; border-radius: 16px; }
            .auth-brand { margin-bottom: 16px; }
        }
        .brand-name { display: inline-flex; align-items: center; gap: 9px; }
        .brand-logo {
            position: relative;
            z-index: 2;
            display: block;
            width: 28px;
            height: 28px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: #050508;
        }
        :root[data-theme="light"] .auth-card,
        :root[data-theme="light"] .card,
        :root[data-theme="light"] .account-panel,
        :root[data-theme="light"] .plan-card,
        :root[data-theme="light"] .highlight-card,
        :root[data-theme="light"] .what-card,
        :root[data-theme="light"] .profile-menu-panel,
        :root[data-theme="light"] .conversion-menu,
        :root[data-theme="light"] .transfer,
        :root[data-theme="light"] .speed-card,
        :root[data-theme="light"] .chart-card,
        :root[data-theme="light"] .admin-stat,
        :root[data-theme="light"] .admin-form,
        :root[data-theme="light"] .admin-list-card {
            background: var(--panel);
        }
        :root[data-theme="dark"] .account-button:not(.account-button--danger),
        :root[data-theme="dark"] .choose-btn,
        :root[data-theme="dark"] .home-button:not(.primary),
        :root[data-theme="dark"] .advanced-toggle {
            border-color: var(--line);
            background: var(--green-dark);
            color: var(--blue);
        }
        :root[data-theme="light"] .account-button:not(.account-button--danger),
        :root[data-theme="light"] .choose-btn,
        :root[data-theme="light"] .home-button:not(.primary),
        :root[data-theme="light"] .advanced-toggle {
            border-color: var(--line);
            background: var(--green-dark);
            color: var(--green);
        }
        :root[data-theme="dark"] .auth-form .account-button,
        :root[data-theme="dark"] .home-button.primary,
        :root[data-theme="dark"] .primary-btn {
            border-color: transparent;
            background: var(--green);
            background-image: none;
            color: var(--green-dark);
            box-shadow: 0 7px 20px rgba(0, 0, 0, .16);
        }
        :root[data-theme="light"] .auth-form .account-button,
        :root[data-theme="light"] .home-button.primary,
        :root[data-theme="light"] .primary-btn {
            border-color: transparent;
            background: var(--green);
            background-image: none;
            color: #fff;
            box-shadow: 0 7px 20px rgba(0, 0, 0, .12);
        }
        :root[data-theme="light"] .auth-form input:not([type="checkbox"]):not([type="hidden"]),
        :root[data-theme="light"] .account-field input,
        :root[data-theme="light"] .admin-form input,
        :root[data-theme="light"] .admin-form select,
        :root[data-theme="light"] .admin-form textarea,
        :root[data-theme="light"] .conversion-search,
        :root[data-theme="light"] .tool-browser-search,
        :root[data-theme="light"] select,
        :root[data-theme="light"] input[type="text"],
        :root[data-theme="light"] input[type="search"] {
            border-color: var(--line);
            background: var(--panel);
            color: var(--text);
        }
        :root[data-theme="light"] .selected-files,
        :root[data-theme="light"] .storage-file,
        :root[data-theme="light"] .admin-account-row,
        :root[data-theme="light"] .admin-resource-row,
        :root[data-theme="light"] .job,
        :root[data-theme="light"] .transfer-file-row,
        :root[data-theme="light"] .conversion-settings,
        :root[data-theme="light"] .storage-usage-card,
        :root[data-theme="light"] .storage-folder,
        :root[data-theme="light"] .stat-card,
        :root[data-theme="light"] .stats-live-status {
            border-color: var(--line);
            background: var(--panel-raised);
            color: var(--text);
        }
        :root[data-theme="dark"] .nav-button:hover,
        :root[data-theme="dark"] .nav-button.active,
        :root[data-theme="dark"] .mobile-nav-button.active,
        :root[data-theme="dark"] .tools-tab[aria-selected="true"],
        :root[data-theme="dark"] .category-btn.active,
        :root[data-theme="light"] .nav-button:hover,
        :root[data-theme="light"] .nav-button.active,
        :root[data-theme="light"] .mobile-nav-button.active,
        :root[data-theme="light"] .tools-tab[aria-selected="true"],
        :root[data-theme="light"] .category-btn.active {
            border-color: var(--line);
            background: var(--green-dark);
            color: var(--green);
        }
        :root[data-theme="dark"] button:focus-visible,
        :root[data-theme="dark"] a:focus-visible,
        :root[data-theme="dark"] input:focus-visible,
        :root[data-theme="dark"] select:focus-visible,
        :root[data-theme="light"] button:focus-visible,
        :root[data-theme="light"] a:focus-visible,
        :root[data-theme="light"] input:focus-visible,
        :root[data-theme="light"] select:focus-visible {
            outline-color: var(--green);
        }
        .auth-gate:not([hidden]) {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
            align-items: center;
            gap: clamp(20px, 3vw, 48px);
            padding: clamp(20px, 3vw, 48px);
            background:
                radial-gradient(ellipse at 16% 24%, rgba(147,104,224,.34), transparent 34%),
                radial-gradient(ellipse at 76% 18%, rgba(88,63,171,.3), transparent 38%),
                radial-gradient(ellipse at 72% 82%, rgba(42,91,151,.25), transparent 42%),
                linear-gradient(126deg, #080714 0%, #19102d 48%, #091321 100%);
            backdrop-filter: none;
        }
        .auth-gate:not([hidden])::before { inset: 0; clip-path: inset(0); }
        .auth-showcase {
            position: relative;
            z-index: 1;
            display: flex;
            align-items: center;
            gap: clamp(14px, 2vw, 22px);
            width: min(620px, 100%);
            margin: auto 0 auto auto;
            color: #fff;
            text-shadow: 0 3px 28px rgba(0,0,0,.5);
        }
        .auth-showcase-logo {
            display: block;
            width: clamp(44px, 5vw, 64px);
            height: clamp(44px, 5vw, 64px);
            flex: 0 0 auto;
            border: 1px solid rgba(255,255,255,.28);
            border-radius: 17px;
            background: rgba(5,7,14,.72);
            box-shadow: 0 10px 32px rgba(0,0,0,.25);
        }
        .auth-showcase-name {
            font: 600 clamp(42px, 5vw, 64px)/.98 "Space Grotesk", sans-serif;
            letter-spacing: -.075em;
            white-space: nowrap;
        }
        .auth-gate:not([hidden]) .auth-card {
            width: min(420px, 100%);
            max-height: calc(100dvh - 56px);
            margin: auto 0;
            border-color: rgba(255,255,255,.16);
            background: rgba(8,11,20,.78);
            box-shadow: 0 28px 90px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.035) inset;
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
        }
        :root[data-theme="light"] .auth-gate:not([hidden]) .auth-card {
            border-color: rgba(255,255,255,.72);
            background: rgba(247,249,255,.88);
            box-shadow: 0 28px 90px rgba(4,11,28,.24), 0 0 0 1px rgba(255,255,255,.5) inset;
        }
        :root[data-reduce-graphics="on"] .auth-gate:not([hidden]) {
            background: var(--bg) !important;
        }
        @media (max-width: 760px) {
            .auth-gate:not([hidden]) {
                grid-template-columns: minmax(0, 1fr);
                align-content: center;
                justify-items: center;
                gap: clamp(16px, 3vh, 26px);
                padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
                    max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
            }
            .auth-showcase {
                justify-content: center;
                width: min(420px, 100%);
                margin: 0 auto;
            }
            .auth-showcase-name { font-size: clamp(38px, 9vw, 58px); }
            .auth-gate:not([hidden]) .auth-card {
                max-height: calc(100dvh - 140px);
                margin: 0 auto;
            }
        }
        @media (max-width: 520px) {
            .auth-gate:not([hidden]) {
                gap: 16px;
                padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right))
                    max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
            }
            .auth-showcase { gap: 12px; }
            .auth-showcase-logo { width: 40px; height: 40px; border-radius: 12px; }
            .auth-gate:not([hidden]) .auth-card { max-height: calc(100dvh - 112px); }
        }
        #homePage {
            position: relative;
            isolation: isolate;
        }
        #homePage::before {
            position: absolute;
            z-index: -1;
            top: -30px;
            left: 50%;
            width: 100vw;
            height: min(820px, 94vh);
            background:
                radial-gradient(ellipse at 17% 46%, rgba(145,105,226,.24), transparent 36%),
                radial-gradient(ellipse at 15% 8%, rgba(119,82,193,.32), transparent 42%),
                radial-gradient(ellipse at 84% 12%, rgba(83,49,139,.3), transparent 38%),
                radial-gradient(ellipse at 82% 86%, rgba(38,91,150,.22), transparent 44%),
                linear-gradient(128deg, #090817 0%, #17102d 48%, #091522 100%);
            content: "";
            pointer-events: none;
            transform: translateX(-50%);
        }
        #homePage .home-hero {
            min-height: 520px;
            padding-top: clamp(48px, 6vw, 76px);
        }
        #homePage .home-showcase {
            min-height: 410px;
            border-color: rgba(185,164,255,.2);
            background:
                radial-gradient(ellipse at 78% 18%, rgba(139,116,255,.16), transparent 38%),
                linear-gradient(145deg, rgba(24,24,46,.86), rgba(13,20,36,.88));
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
        }
        #homePage .showcase-card {
            border-color: rgba(185,164,255,.17);
            background: rgba(14,15,32,.88);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }
        #homePage .highlight-card {
            border-color: rgba(145,151,202,.18);
            background: linear-gradient(145deg, rgba(19,21,39,.94), rgba(12,21,36,.94));
        }
        :root[data-theme="light"] #homePage::before {
            background:
                radial-gradient(ellipse at 17% 46%, rgba(169,143,221,.24), transparent 36%),
                radial-gradient(ellipse at 15% 8%, rgba(169,143,221,.26), transparent 42%),
                radial-gradient(ellipse at 84% 12%, rgba(148,119,205,.2), transparent 38%),
                radial-gradient(ellipse at 82% 86%, rgba(117,160,211,.18), transparent 44%),
                linear-gradient(128deg, #f8f6ff 0%, #f0eef9 48%, #eff5fb 100%);
        }
        :root[data-theme="light"] .home-brand-screen {
            background:
                radial-gradient(ellipse at 78% 45%, rgba(148,119,205,.18), transparent 42%),
                linear-gradient(120deg, #f8f6ff 0%, #f0eef9 48%, #eff5fb 100%);
        }
        :root[data-theme="light"] #homePage .home-showcase {
            border-color: rgba(98,111,146,.24);
            background: linear-gradient(145deg, rgba(237,241,251,.9), rgba(222,232,245,.9));
        }
        :root[data-theme="light"] #homePage .showcase-card {
            border-color: rgba(98,111,146,.2);
            background: rgba(249,250,255,.94);
        }
        :root[data-theme="light"] #homePage .highlight-card {
            border-color: rgba(98,111,146,.2);
            background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(239,244,251,.96));
        }
        :root[data-reduce-graphics="on"] #homePage::before { display: none; }
        @media (max-width: 860px) {
            #homePage::before { height: min(1100px, 136vh); }
            #homePage .home-hero { min-height: 0; padding-bottom: 48px; }
            #homePage .home-showcase { min-height: 390px; }
        }
        @media (max-width: 480px) {
            #homePage::before { height: 1180px; }
            #homePage .home-hero { padding-bottom: 36px; }
            #homePage .home-showcase { min-height: 340px; }
        }
        #siteShell { padding-top: 0; }
        #siteShell > header {
            position: sticky;
            top: 0;
            z-index: 45;
            isolation: isolate;
            margin-bottom: 22px;
            padding: 12px 0;
            border: 0;
        }
        #siteShell > header::before {
            position: absolute;
            z-index: -1;
            inset: 0 calc(50% - 50vw);
            border-bottom: 1px solid rgba(181,166,235,.16);
            background: rgba(10,9,26,.76);
            box-shadow: 0 12px 34px rgba(0,0,0,.16);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            content: "";
            pointer-events: none;
        }
        #siteShell .brand-name { font-size: 18px; }
        #siteShell .header-actions { gap: 12px; }
        #siteShell .main-nav {
            gap: 3px;
            padding: 4px;
            border: 1px solid rgba(181,166,235,.14);
            border-radius: 15px;
            background: rgba(18,15,38,.56);
        }
        #siteShell .nav-button {
            min-height: 38px;
            padding: 0 12px;
            border: 1px solid transparent;
            border-radius: 10px;
            color: #bdb8d1;
        }
        #siteShell .nav-button:hover {
            border-color: rgba(190,171,255,.2);
            background: rgba(169,143,255,.1);
            color: #fff;
        }
        #siteShell .nav-button.active {
            border-color: rgba(190,171,255,.28);
            background: linear-gradient(145deg, rgba(164,137,255,.2), rgba(103,82,171,.13));
            color: #f2edff;
            box-shadow: inset 0 1px rgba(255,255,255,.08), 0 4px 16px rgba(89,67,156,.12);
        }
        #siteShell .profile-menu-trigger {
            border-color: rgba(181,166,235,.28);
            background: rgba(26,22,47,.88);
            box-shadow: 0 5px 16px rgba(0,0,0,.18);
        }
        #homePage::before {
            top: -110px;
            background:
                radial-gradient(ellipse at 17% 46%, rgba(145,105,226,.24), transparent 36%),
                radial-gradient(ellipse at 15% 8%, rgba(119,82,193,.32), transparent 42%),
                radial-gradient(ellipse at 84% 12%, rgba(83,49,139,.3), transparent 38%),
                radial-gradient(ellipse at 82% 86%, rgba(38,91,150,.22), transparent 44%),
                linear-gradient(128deg, #090817 0%, #17102d 48%, #091522 100%);
        }
        :root[data-theme="light"] #siteShell > header::before {
            border-bottom-color: rgba(85,101,135,.16);
            background: rgba(247,249,255,.86);
            box-shadow: 0 10px 28px rgba(42,57,84,.08);
        }
        :root[data-theme="light"] #siteShell .main-nav {
            border-color: rgba(85,101,135,.18);
            background: rgba(235,240,249,.8);
        }
        :root[data-theme="light"] #siteShell .nav-button { color: #526179; }
        :root[data-theme="light"] #siteShell .nav-button:hover {
            border-color: rgba(100,112,148,.22);
            background: rgba(113,96,171,.1);
            color: #27243d;
        }
        :root[data-theme="light"] #siteShell .nav-button.active {
            border-color: rgba(112,91,173,.28);
            background: linear-gradient(145deg, rgba(143,118,219,.18), rgba(108,96,166,.1));
            color: #352a57;
        }
        :root[data-theme="light"] #siteShell .profile-menu-trigger {
            border-color: rgba(85,101,135,.24);
            background: rgba(237,241,249,.95);
            box-shadow: 0 4px 12px rgba(42,57,84,.1);
        }
        :root[data-theme="light"] #homePage::before {
            background:
                radial-gradient(ellipse at 17% 46%, rgba(169,143,221,.24), transparent 36%),
                radial-gradient(ellipse at 15% 8%, rgba(169,143,221,.26), transparent 42%),
                radial-gradient(ellipse at 84% 12%, rgba(148,119,205,.2), transparent 38%),
                radial-gradient(ellipse at 82% 86%, rgba(117,160,211,.18), transparent 44%),
                linear-gradient(128deg, #f8f6ff 0%, #f0eef9 48%, #eff5fb 100%);
        }
        @media (max-width: 760px) {
            #siteShell > header {
                margin: 0 -16px 14px;
                padding: max(8px, env(safe-area-inset-top)) 16px 10px;
            }
            #siteShell > header::before { inset: 0; }
            #siteShell .main-nav {
                padding: 3px;
                border-radius: 12px;
            }
            #siteShell .nav-button { min-height: 42px; padding: 0 10px; }
        }
        .benchmark-page { display: grid; gap: 14px; }
        .benchmark-hero { margin-bottom: 14px; }
        .benchmark-info-panel, .benchmark-run-panel { display: grid; gap: 14px; }
        .benchmark-section-heading, .benchmark-run-heading, .benchmark-result-heading {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
        }
        .benchmark-panel-kicker {
            display: block;
            margin-bottom: 6px;
            color: var(--green);
            font-size: 9px;
            font-weight: 750;
            letter-spacing: .12em;
        }
        .benchmark-section-heading h2, .benchmark-run-heading h2 {
            margin: 0 0 5px;
            font: 600 17px "Space Grotesk", sans-serif;
        }
        .benchmark-section-heading p, .benchmark-run-heading p {
            margin: 0;
            color: var(--muted);
            font-size: 11px;
            line-height: 1.55;
        }
        .benchmark-info-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 10px;
        }
        .benchmark-info-card, .benchmark-result-card {
            min-width: 0;
            padding: 14px;
            border: 1px solid var(--line);
            border-radius: 12px;
            background: var(--panel-raised);
        }
        .benchmark-info-card { display: grid; align-content: start; gap: 7px; }
        .benchmark-info-card span, .benchmark-result-kicker {
            color: var(--muted);
            font-size: 9px;
            font-weight: 700;
            letter-spacing: .08em;
            text-transform: uppercase;
        }
        .benchmark-info-card strong {
            overflow-wrap: anywhere;
            color: var(--text);
            font: 600 13px "Space Grotesk", sans-serif;
        }
        .benchmark-privacy-note, .benchmark-result-note {
            margin: 0;
            color: var(--muted);
            font-size: 10px;
            line-height: 1.6;
        }
        .benchmark-run-heading { align-items: center; }
        .benchmark-toolbar {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
        }
        .benchmark-profile-control { display: grid; gap: 6px; min-width: 220px; }
        .benchmark-profile-control > span {
            color: var(--muted);
            font-size: 9px;
            font-weight: 700;
            letter-spacing: .08em;
            text-transform: uppercase;
        }
        .benchmark-profile-control select {
            min-height: 40px;
            padding: 0 34px 0 11px;
            border: 1px solid var(--line);
            border-radius: 9px;
            background: var(--panel-raised);
            color: var(--text);
            font: 500 11px "DM Sans", sans-serif;
        }
        .benchmark-profile-control select:focus-visible {
            outline: 2px solid var(--blue);
            outline-offset: 2px;
        }
        .benchmark-actions { display: flex; flex: 0 1 auto; flex-wrap: wrap; gap: 7px; }
        .benchmark-actions button { min-height: 40px; }
        .benchmark-actions button[hidden] { display: none !important; }
        .benchmark-actions button:disabled { cursor: not-allowed; opacity: .48; }
        .benchmark-secondary-action { border-color: var(--line); background: var(--panel-raised); }
        .benchmark-profile-estimate {
            margin: -5px 0 0;
            color: var(--muted);
            font-size: 10px;
        }
        .benchmark-progress-label {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: -9px;
            color: var(--muted);
            font-size: 10px;
        }
        .benchmark-progress-label strong {
            color: var(--text);
            font-variant-numeric: tabular-nums;
        }
        .benchmark-progress {
            height: 7px;
            overflow: hidden;
            border-radius: 999px;
            background: rgba(130,150,180,.15);
        }
        .benchmark-progress span {
            display: block;
            width: 0;
            height: 100%;
            border-radius: inherit;
            background: linear-gradient(90deg, #7d9cff, var(--green));
            transition: width .22s ease;
        }
        .benchmark-status {
            min-height: 20px;
            margin: -7px 0 0;
            color: var(--blue);
            font-size: 11px;
            line-height: 1.5;
        }
        .benchmark-result-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
        }
        .benchmark-result-card { display: grid; align-content: start; gap: 12px; }
        .benchmark-result-heading { align-items: center; }
        .benchmark-result-heading h3 {
            margin: 4px 0 0;
            color: var(--text);
            font: 600 14px "Space Grotesk", sans-serif;
        }
        .benchmark-result-value {
            color: var(--green);
            font: 600 20px "Space Grotesk", sans-serif;
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
        }
        .benchmark-result-card > p {
            min-height: 30px;
            margin: 0;
            color: var(--muted);
            font-size: 10px;
            line-height: 1.5;
        }
        .benchmark-scaling, .benchmark-delta { min-height: 14px; font-size: 10px; }
        .benchmark-scaling { color: var(--blue); font-weight: 650; }
        .benchmark-delta { color: var(--muted); }
        .benchmark-delta[data-trend="up"] { color: var(--green); }
        .benchmark-delta[data-trend="down"] { color: var(--amber); }
        .benchmark-delta[data-trend="same"] { color: var(--blue); }
        .benchmark-meter {
            height: 6px;
            overflow: hidden;
            border-radius: 999px;
            background: rgba(130,150,180,.15);
        }
        .benchmark-meter span {
            display: block;
            width: 0;
            height: 100%;
            border-radius: inherit;
            background: linear-gradient(90deg, #7d9cff, var(--green));
            transition: width .3s ease;
        }
        .benchmark-canvas {
            display: block;
            width: 100%;
            height: auto;
            aspect-ratio: 16 / 9;
            border: 1px solid var(--line);
            border-radius: 9px;
            background: #070d18;
        }
        .benchmark-advice {
            display: grid;
            gap: 4px;
            padding: 10px 12px;
            border: 1px solid rgba(255,210,122,.4);
            border-radius: 10px;
            background: rgba(255,210,122,.08);
            color: var(--amber);
            font-size: 11px;
            line-height: 1.5;
        }
        .benchmark-advice[hidden] { display: none; }
        .benchmark-toolbar .benchmark-profile-control { flex: 1 1 170px; }
        .benchmark-test-picker {
            display: grid;
            gap: 10px;
            min-width: 0;
            margin: 0;
            padding: 12px;
            border: 1px solid var(--line);
            border-radius: 12px;
        }
        .benchmark-test-picker legend {
            padding: 0 6px;
            color: var(--muted);
            font-size: 9px;
            font-weight: 700;
            letter-spacing: .08em;
            text-transform: uppercase;
        }
        .benchmark-presets { display: flex; flex-wrap: wrap; gap: 6px; }
        .benchmark-preset {
            min-height: 30px;
            padding: 0 11px;
            border: 1px solid var(--line);
            border-radius: 999px;
            background: var(--panel-raised);
            color: var(--text);
            font: 600 10px "DM Sans", sans-serif;
            cursor: pointer;
        }
        .benchmark-preset:hover:not(:disabled) { border-color: var(--green); }
        .benchmark-preset:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
        .benchmark-preset:disabled { cursor: not-allowed; opacity: .48; }
        .benchmark-test-options {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 8px;
        }
        .benchmark-test-option {
            display: flex;
            align-items: flex-start;
            gap: 9px;
            min-width: 0;
            padding: 9px 10px;
            border: 1px solid var(--line);
            border-radius: 10px;
            background: var(--panel-raised);
            cursor: pointer;
        }
        .benchmark-test-option:has(input:checked) { border-color: var(--green); }
        .benchmark-test-option:has(input:disabled) { cursor: not-allowed; opacity: .6; }
        .benchmark-test-option input { margin-top: 2px; accent-color: var(--green); }
        .benchmark-test-option strong { display: block; color: var(--text); font: 600 12px "Space Grotesk", sans-serif; }
        .benchmark-test-option small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.45; }
        .benchmark-score-panel {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 18px;
            padding: 16px;
            border: 1px solid var(--line);
            border-radius: 12px;
            background: var(--panel-raised);
        }
        .benchmark-score-panel[hidden] { display: none; }
        .benchmark-score-main { display: grid; gap: 4px; min-width: 150px; }
        .benchmark-score-main strong {
            color: var(--green);
            font: 650 38px "Space Grotesk", sans-serif;
            font-variant-numeric: tabular-nums;
            line-height: 1.1;
        }
        .benchmark-score-main small { color: var(--muted); font-size: 10px; }
        .benchmark-category-scores {
            display: grid;
            flex: 1 1 320px;
            grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
            gap: 8px;
        }
        .benchmark-category-chip {
            display: grid;
            gap: 5px;
            padding: 10px;
            border: 1px solid var(--line);
            border-radius: 10px;
            background: var(--panel);
        }
        .benchmark-category-chip span {
            color: var(--muted);
            font-size: 9px;
            font-weight: 700;
            letter-spacing: .08em;
            text-transform: uppercase;
        }
        .benchmark-category-chip strong { font: 600 18px "Space Grotesk", sans-serif; font-variant-numeric: tabular-nums; }
        .benchmark-card-score {
            padding: 2px 8px;
            border: 1px solid var(--line);
            border-radius: 999px;
            color: var(--muted);
            font-size: 9px;
            font-weight: 700;
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
        }
        .benchmark-card-score:empty { display: none; }
        .benchmark-note { min-height: 14px; font-size: 10px; line-height: 1.5; color: var(--muted); }
        .benchmark-note[data-flag="warn"] { color: var(--amber); }
        .benchmark-spark {
            display: block;
            width: 100%;
            height: 28px;
            overflow: visible;
        }
        .benchmark-spark[hidden] { display: none; }
        .benchmark-spark polyline {
            fill: none;
            stroke: var(--green);
            stroke-width: 1.6;
            stroke-linejoin: round;
            vector-effect: non-scaling-stroke;
        }
        .benchmark-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
        .benchmark-card-run {
            min-height: 26px;
            padding: 0 10px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: transparent;
            color: var(--muted);
            font: 600 10px "DM Sans", sans-serif;
            cursor: pointer;
        }
        .benchmark-card-run:hover:not(:disabled) { border-color: var(--green); color: var(--text); }
        .benchmark-card-run:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
        .benchmark-card-run:disabled { cursor: not-allowed; opacity: .48; }
        .benchmark-result-side { display: grid; justify-items: end; gap: 5px; }
        .benchmark-result-card[hidden] { display: none; }
        .benchmark-history-trend { display: block; width: 100%; height: 44px; overflow: visible; }
        .benchmark-history-trend[hidden] { display: none; }
        .benchmark-history-trend polyline {
            fill: none;
            stroke: var(--green);
            stroke-width: 2;
            stroke-linejoin: round;
            vector-effect: non-scaling-stroke;
        }
        .benchmark-history-panel { display: grid; gap: 14px; }
        .benchmark-history-scroll { overflow-x: auto; }
        .benchmark-history-table { width: 100%; border-collapse: collapse; font-size: 11px; }
        .benchmark-history-table th {
            padding: 8px 10px;
            border-bottom: 1px solid var(--line);
            color: var(--muted);
            font-size: 9px;
            font-weight: 700;
            letter-spacing: .08em;
            text-align: left;
            text-transform: uppercase;
            white-space: nowrap;
        }
        .benchmark-history-table td {
            padding: 9px 10px;
            border-bottom: 1px solid var(--line);
            color: var(--text);
            font-variant-numeric: tabular-nums;
            vertical-align: middle;
        }
        .benchmark-history-table tr[data-pinned="true"] td { background: rgba(185,164,255,.08); }
        .benchmark-history-table td.benchmark-history-device { max-width: 220px; color: var(--muted); overflow-wrap: anywhere; }
        .benchmark-history-actions { display: flex; gap: 6px; white-space: nowrap; }
        @media (max-width: 960px) {
            .benchmark-test-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .benchmark-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .benchmark-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        }
        @media (max-width: 760px) {
            .benchmark-run-heading { align-items: flex-start; flex-direction: column; }
            .benchmark-toolbar { align-items: stretch; flex-direction: column; }
            .benchmark-profile-control { min-width: 0; }
        }
        @media (max-width: 520px) {
            .benchmark-info-grid, .benchmark-result-grid, .benchmark-test-options { grid-template-columns: minmax(0, 1fr); }
            .benchmark-info-card { padding: 12px; }
            .benchmark-actions { width: 100%; }
            .benchmark-actions button { flex: 1 1 40%; }
            .benchmark-result-value { font-size: 18px; }
        }
        body { overflow-x: clip; }
        .home-brand-screen {
            position: relative;
            isolation: isolate;
            display: flex;
            align-items: center;
            width: 100vw;
            min-height: clamp(480px, calc(100vh - 112px), 760px);
            min-height: clamp(480px, calc(100svh - 112px), 760px);
            margin-left: calc(50% - 50vw);
            padding: clamp(40px, 6vw, 72px) clamp(24px, 6.2vw, 112px);
            text-align: left;
            overflow: hidden;
            background:
                radial-gradient(ellipse at 78% 45%, rgba(112,91,190,.25), transparent 42%),
                linear-gradient(120deg, #090817 0%, #17102d 48%, #091522 100%);
        }
        .home-landing {
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            align-items: center;
            justify-items: start;
            width: min(100%, 1040px);
            gap: 0;
            text-align: left;
        }
        .home-landing-copy { position: relative; z-index: 1; max-width: 760px; }
        .home-brand-screen .home-kicker { background: rgba(15,14,31,.7); }
        .home-brand-screen h1 {
            max-width: 760px;
            margin: 18px 0 0;
            color: var(--text);
            font: 600 clamp(30px, 7.2vw, 88px)/1.08 "Space Grotesk", sans-serif;
            letter-spacing: -.08em;
            white-space: nowrap;
        }
        .home-brand-screen h1 span {
            display: inline;
            background: linear-gradient(112deg, #fff 14%, #d2c2ff 58%, #9acfff);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .home-brand-screen .home-actions { margin-top: 25px; }
        .home-brand-screen .home-button { min-height: 48px; }
        .home-brand-screen .home-button:focus-visible {
            outline: 2px solid var(--blue);
            outline-offset: 3px;
        }
        .home-facts {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin: 22px 0 0;
            padding: 0;
            list-style: none;
        }
        .home-facts li {
            padding: 7px 10px;
            border: 1px solid rgba(181,166,235,.17);
            border-radius: 999px;
            background: rgba(14,15,32,.52);
            color: #cbc7dc;
            font-size: 10px;
        }
        .home-workflow {
            position: relative;
            isolation: isolate;
            min-width: 0;
            padding: clamp(20px, 2.7vw, 28px);
            overflow: hidden;
            border: 1px solid rgba(185,164,255,.22);
            border-radius: 26px;
            background:
                radial-gradient(ellipse at 100% 0, rgba(147,119,255,.18), transparent 44%),
                linear-gradient(145deg, rgba(23,21,43,.94), rgba(11,20,36,.94));
            box-shadow: 0 28px 75px rgba(3,5,16,.25), inset 0 1px rgba(255,255,255,.06);
        }
        .home-workflow::before {
            position: absolute;
            z-index: -1;
            top: -110px;
            right: -100px;
            width: 280px;
            height: 280px;
            border: 1px solid rgba(202,188,255,.1);
            border-radius: 50%;
            box-shadow: 0 0 0 24px rgba(202,188,255,.025), 0 0 0 54px rgba(202,188,255,.02);
            content: "";
            pointer-events: none;
        }
        .home-workflow-heading {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 14px;
            padding-bottom: 20px;
            border-bottom: 1px solid rgba(181,166,235,.14);
        }
        .home-workflow-heading > div { display: grid; gap: 7px; }
        .home-workflow-label {
            color: #aaa1c8;
            font-size: 9px;
            font-weight: 700;
            letter-spacing: .14em;
            text-transform: uppercase;
        }
        .home-workflow-heading strong {
            color: #f1edff;
            font: 600 clamp(17px, 2vw, 21px)/1.25 "Space Grotesk", sans-serif;
            letter-spacing: -.035em;
        }
        .home-workflow-ready {
            display: inline-flex;
            flex: 0 0 auto;
            align-items: center;
            gap: 7px;
            padding: 7px 9px;
            border: 1px solid rgba(122,215,181,.2);
            border-radius: 999px;
            background: rgba(41,118,92,.12);
            color: #a9e3ce;
            font-size: 9px;
        }
        .home-workflow-ready::before {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #83d9b6;
            box-shadow: 0 0 10px rgba(131,217,182,.65);
            content: "";
        }
        .home-workflow-steps {
            display: grid;
            gap: 9px;
            margin: 18px 0 0;
            padding: 0;
            list-style: none;
        }
        .home-workflow-steps li {
            display: grid;
            grid-template-columns: 35px minmax(0, 1fr) 28px;
            align-items: center;
            gap: 12px;
            min-height: 70px;
            padding: 10px 12px;
            border: 1px solid rgba(181,166,235,.12);
            border-radius: 15px;
            background: rgba(9,12,25,.45);
        }
        .home-workflow-number {
            display: grid;
            width: 34px;
            height: 34px;
            place-items: center;
            border: 1px solid rgba(185,164,255,.2);
            border-radius: 11px;
            background: rgba(169,143,255,.1);
            color: #d3c7ff;
            font: 600 11px "Space Grotesk", sans-serif;
        }
        .home-workflow-steps li:nth-child(2) .home-workflow-number {
            border-color: rgba(117,199,255,.2);
            background: rgba(117,199,255,.09);
            color: #b9e2ff;
        }
        .home-workflow-steps li:nth-child(3) .home-workflow-number {
            border-color: rgba(115,216,180,.2);
            background: rgba(115,216,180,.09);
            color: #a8ead2;
        }
        .home-workflow-copy { display: grid; gap: 4px; min-width: 0; }
        .home-workflow-copy strong { color: #efedfa; font-size: 12px; }
        .home-workflow-copy span { color: #a6a2b7; font-size: 10px; line-height: 1.45; }
        .home-workflow-arrow { width: 15px; height: 15px; color: #89839f; }
        .home-value-section { padding: 0 0 46px; }
        .home-value-heading {
            display: flex;
            align-items: end;
            justify-content: space-between;
            gap: 18px;
            margin: 0 0 15px;
        }
        .home-value-heading h2 {
            margin: 6px 0 0;
            color: var(--text);
            font: 600 clamp(20px, 2.6vw, 25px)/1.2 "Space Grotesk", sans-serif;
            letter-spacing: -.045em;
        }
        .home-value-heading > span { color: var(--muted); font-size: 10px; }
        .home-value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
        .home-value-card {
            display: grid;
            grid-template-columns: 38px minmax(0, 1fr);
            align-content: start;
            gap: 12px;
            min-height: 126px;
            padding: 17px;
            border: 1px solid rgba(181,166,235,.15);
            border-radius: 17px;
            background: linear-gradient(145deg, rgba(20,19,39,.82), rgba(11,20,35,.88));
            box-shadow: inset 0 1px rgba(255,255,255,.035);
        }
        .home-value-icon {
            display: grid;
            width: 38px;
            height: 38px;
            place-items: center;
            border: 1px solid rgba(185,164,255,.17);
            border-radius: 12px;
            background: rgba(169,143,255,.09);
            color: #d2c4ff;
            font: 600 11px "Space Grotesk", sans-serif;
        }
        .home-value-copy { min-width: 0; }
        .home-value-copy strong { display: block; margin: 1px 0 6px; color: #f0edfc; font-size: 12px; }
        .home-value-copy p { margin: 0; color: #aaa7ba; font-size: 10px; line-height: 1.6; }
        :root[data-theme="light"] .home-brand-screen .home-kicker {
            border-color: rgba(85,101,135,.2);
            background: rgba(249,250,255,.8);
            color: #58647c;
        }
        :root[data-theme="light"] .home-brand-screen h1 span {
            background-image: linear-gradient(112deg, #7261a7 14%, #7863ba 58%, #397cae);
            background-clip: text;
            -webkit-background-clip: text;
        }
        :root[data-theme="light"] .home-facts li {
            border-color: rgba(85,101,135,.17);
            background: rgba(249,250,255,.66);
            color: #58647c;
        }
        :root[data-theme="light"] .home-workflow {
            border-color: rgba(85,101,135,.2);
            background:
                radial-gradient(ellipse at 100% 0, rgba(147,119,255,.12), transparent 44%),
                linear-gradient(145deg, rgba(247,248,255,.96), rgba(231,239,249,.96));
            box-shadow: 0 24px 55px rgba(42,57,84,.1), inset 0 1px #fff;
        }
        :root[data-theme="light"] .home-workflow-heading { border-bottom-color: rgba(85,101,135,.15); }
        :root[data-theme="light"] .home-workflow-label { color: #6d6686; }
        :root[data-theme="light"] .home-workflow-heading strong,
        :root[data-theme="light"] .home-workflow-copy strong,
        :root[data-theme="light"] .home-value-copy strong { color: #25243b; }
        :root[data-theme="light"] .home-workflow-steps li {
            border-color: rgba(85,101,135,.15);
            background: rgba(255,255,255,.62);
        }
        :root[data-theme="light"] .home-workflow-copy span,
        :root[data-theme="light"] .home-value-copy p { color: #58647c; }
        :root[data-theme="light"] .home-value-card {
            border-color: rgba(85,101,135,.16);
            background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(235,241,249,.9));
            box-shadow: 0 10px 26px rgba(42,57,84,.045);
        }
        :root[data-theme="light"] .home-value-heading h2 { color: #25243b; }
        @media (max-width: 860px) {
            .home-landing { grid-template-columns: 1fr; gap: 30px; }
            .home-landing-copy { max-width: 700px; }
            .home-workflow { width: 100%; max-width: 620px; }
            .home-value-grid { grid-template-columns: 1fr; }
            .home-value-card { min-height: 0; }
        }
        @media (max-width: 760px) {
            .home-brand-screen { min-height: clamp(440px, calc(100svh - 100px), 640px); padding: 40px 24px; }
            .home-value-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
        }
        @media (max-width: 760px) {
            .home-workflow { padding: 19px; border-radius: 21px; }
            .home-workflow-steps li { min-height: 66px; padding: 9px; }
            .home-value-section { padding-bottom: 34px; }
        }
        :root[data-reduce-graphics="on"] .home-workflow::before { display: none; }
        .auth-gate:not([hidden]) {
            grid-template-columns: minmax(0, 1fr) minmax(360px, 400px);
            gap: clamp(24px, 4vw, 64px);
            padding: clamp(24px, 4.5vw, 72px) clamp(68px, 11vw, 156px)
                clamp(24px, 4.5vw, 72px) clamp(24px, 4.5vw, 72px);
            background:
                radial-gradient(ellipse at 16% 24%, rgba(147,104,224,.34), transparent 34%),
                radial-gradient(ellipse at 76% 18%, rgba(88,63,171,.3), transparent 38%),
                radial-gradient(ellipse at 72% 82%, rgba(42,91,151,.25), transparent 42%),
                linear-gradient(126deg, #080714 0%, #19102d 48%, #091321 100%);
        }
        .auth-showcase {
            width: min(660px, 100%);
            gap: clamp(16px, 2vw, 24px);
        }
        .auth-showcase-logo {
            width: clamp(52px, 5vw, 68px);
            height: clamp(52px, 5vw, 68px);
            border-radius: 18px;
        }
        .auth-showcase-name {
            background: linear-gradient(112deg, #fff 14%, #d2c2ff 58%, #9acfff);
            background-clip: text;
            color: #fff;
            font-size: clamp(56px, 6vw, 84px);
            letter-spacing: -.08em;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            filter: drop-shadow(0 10px 36px rgba(99,76,184,.24));
        }
        #authGate .auth-card {
            width: min(400px, 100%);
            padding: clamp(28px, 3.5vw, 38px);
            border-color: rgba(202,189,255,.22);
            border-radius: 26px;
            background: linear-gradient(150deg, rgba(25,21,46,.86), rgba(8,12,24,.84));
            box-shadow: 0 34px 100px rgba(0,0,0,.46), 0 0 0 1px rgba(255,255,255,.045) inset;
        }
        #authGate .auth-card::before {
            display: block;
            top: 0;
            left: 10%;
            width: 80%;
            height: 1px;
            border-radius: 1px;
            background: linear-gradient(90deg, transparent, var(--green), #c1a8ff, var(--blue), transparent);
            opacity: .9;
        }
        #authGate .auth-card h1 {
            margin-bottom: 8px;
            font-size: clamp(32px, 4vw, 38px);
            letter-spacing: -.055em;
        }
        #authGate .auth-card > #authSubtitle {
            color: #b7b2c8;
            font-size: 13px;
            line-height: 1.6;
        }
        #authGate .auth-card .auth-form {
            gap: 14px;
            margin-top: 24px;
        }
        #authGate .auth-card .auth-form > label:not(.remember-option):not(.terms-accept) {
            gap: 8px;
            color: #d3cee1;
            font-size: 12px;
        }
        #authGate .auth-card .auth-form input:not([type="checkbox"]):not([type="hidden"]) {
            min-height: 50px;
            padding: 12px 14px;
            border-color: rgba(193,180,232,.2);
            border-radius: 12px;
            background: rgba(7,9,21,.58);
        }
        #authGate .auth-card .auth-form input:not([type="checkbox"]):not([type="hidden"]):focus {
            border-color: rgba(189,164,255,.8);
            background: rgba(10,12,27,.88);
            box-shadow: 0 0 0 4px rgba(158,125,236,.16);
        }
        #authGate .auth-card .auth-form .remember-option {
            padding: 9px 11px;
            border: 1px solid rgba(193,180,232,.12);
            border-radius: 10px;
            background: rgba(255,255,255,.025);
            color: #c4bfd4;
        }
        #authGate .auth-card .auth-form .remember-storage-note { margin: -7px 0 0 38px; }
        #authGate .auth-card .auth-form .account-button {
            min-height: 52px;
            margin-top: 3px;
            border-radius: 13px;
            background: linear-gradient(110deg, var(--green), var(--blue));
            color: var(--green-dark);
            box-shadow: 0 10px 28px rgba(120,94,198,.22);
        }
        #authGate .auth-card .auth-form .account-button:hover { filter: brightness(1.08); }
        :root[data-theme="light"] #authGate .auth-card {
            border-color: rgba(255,255,255,.8);
            background: linear-gradient(150deg, rgba(255,255,255,.93), rgba(241,244,251,.92));
            box-shadow: 0 34px 100px rgba(16,24,44,.2), 0 0 0 1px rgba(255,255,255,.6) inset;
        }
        :root[data-theme="light"] #authGate .auth-card > #authSubtitle { color: #5b6275; }
        :root[data-theme="light"] #authGate .auth-card .auth-form > label:not(.remember-option):not(.terms-accept) { color: #3d4354; }
        :root[data-theme="light"] #authGate .auth-card .auth-form input:not([type="checkbox"]):not([type="hidden"]) {
            border-color: rgba(93,101,128,.2);
            background: rgba(255,255,255,.8);
        }
        :root[data-theme="light"] #authGate .auth-card .auth-form input:not([type="checkbox"]):not([type="hidden"]):focus { background: #fff; }
        :root[data-theme="light"] #authGate .auth-card .auth-form .remember-option {
            border-color: rgba(93,101,128,.16);
            background: rgba(235,239,247,.7);
            color: #4a5061;
        }
        :root[data-theme="light"] #authGate .auth-card .auth-form .account-button { color: #fff; }
        @media (max-width: 900px) {
            .auth-gate:not([hidden]) {
                grid-template-columns: minmax(0, 1fr);
                align-content: center;
                justify-items: center;
                gap: clamp(18px, 3vh, 28px);
                padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
                    max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
            }
            .auth-showcase {
                justify-content: center;
                width: min(560px, 100%);
                margin: 0 auto;
            }
            #authGate .auth-card {
                max-height: calc(100dvh - 160px);
                margin: 0 auto;
            }
        }
        @media (max-width: 520px) {
            #authGate .auth-card { max-height: calc(100dvh - 112px); padding: 24px 20px; border-radius: 22px; }
            .auth-showcase { gap: 12px; }
            .auth-showcase-logo { width: 40px; height: 40px; border-radius: 12px; }
            .auth-showcase-name { font-size: clamp(40px, 10vw, 58px); }
        }
        :root[data-theme="light"] .auth-gate:not([hidden]) {
            background:
                radial-gradient(ellipse at 16% 24%, rgba(169,143,221,.32), transparent 34%),
                radial-gradient(ellipse at 76% 18%, rgba(148,119,205,.24), transparent 38%),
                radial-gradient(ellipse at 72% 82%, rgba(117,160,211,.2), transparent 42%),
                linear-gradient(126deg, #f8f6ff 0%, #f0eef9 48%, #eff5fb 100%);
        }
        @media (max-width: 1000px) {
            .auth-gate:not([hidden]) {
                grid-template-columns: minmax(0, 1fr);
                align-content: center;
                justify-items: center;
                gap: clamp(18px, 3vh, 28px);
                padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
                    max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
            }
            .auth-showcase {
                justify-content: center;
                width: min(560px, 100%);
                margin: 0 auto;
            }
            #authGate .auth-card {
                max-height: calc(100dvh - 160px);
                margin: 0 auto;
            }
        }
        @media (max-width: 520px) {
            .auth-gate:not([hidden]) {
                padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right))
                    max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
            }
            #authGate .auth-card { max-height: calc(100dvh - 112px); }
        }
        @media (min-width: 1100px) {
            .auth-gate:not([hidden]) {
                grid-template-columns: minmax(0, min(34vw, 390px)) minmax(300px, 360px);
                justify-content: center;
                gap: clamp(24px, 4vw, 58px);
                padding: 28px clamp(24px, 4vw, 56px);
            }
            .auth-showcase { width: min(390px, 100%); gap: 14px; }
            .auth-showcase-logo { width: 48px; height: 48px; border-radius: 14px; }
            .auth-showcase-name { font-size: clamp(34px, 3.2vw, 48px); }
            #authGate .auth-card {
                width: min(360px, 100%);
                max-height: calc(100dvh - 40px);
                margin: auto;
                padding: 20px 22px;
                border-radius: 19px;
                backdrop-filter: blur(12px);
                -webkit-backdrop-filter: blur(12px);
            }
            #authGate .auth-card .auth-startup-status { margin-bottom: 16px; }
            #authGate .auth-card h1 { margin-bottom: 8px; font-size: 30px; }
            #authGate .auth-card > #authSubtitle { font-size: 12px; line-height: 1.5; }
            #authGate .auth-card .auth-form { gap: 11px; margin-top: 16px; }
            #authGate .auth-card .auth-form input:not([type="checkbox"]):not([type="hidden"]) {
                min-height: 42px;
                padding: 8px 11px;
            }
            #authGate .auth-card .auth-form .account-button { min-height: 44px; }
        }
        .storage-page-hero {
            border-color: color-mix(in srgb, var(--green) 28%, var(--line));
            border-radius: 22px;
            background:
                radial-gradient(ellipse at 88% 0, color-mix(in srgb, var(--green) 22%, transparent), transparent 48%),
                radial-gradient(ellipse at 8% 100%, rgba(96,190,224,.1), transparent 46%),
                linear-gradient(135deg, var(--panel-raised), var(--panel));
            box-shadow: 0 24px 64px rgba(0,0,0,.2);
        }
        .storage-dashboard { gap: 20px; }
        .storage-summary-panel, .storage-library-panel {
            border-color: color-mix(in srgb, var(--line) 78%, var(--green));
            border-radius: 20px;
            background: linear-gradient(155deg, var(--panel), color-mix(in srgb, var(--panel) 95%, var(--green)));
            box-shadow: 0 20px 56px rgba(0,0,0,.16);
            backdrop-filter: blur(14px);
        }
        .storage-usage-card {
            border-color: color-mix(in srgb, var(--line) 84%, var(--green));
            background: linear-gradient(145deg, var(--panel-raised), color-mix(in srgb, var(--panel-raised) 96%, var(--green)));
        }
        .storage-usage-heading strong { color: var(--green); }
        .storage-meter { background: color-mix(in srgb, var(--panel-raised) 82%, #000); }
        .storage-meter span { background: linear-gradient(90deg, var(--green), var(--blue)); }
        .server-storage-meter span { background: linear-gradient(90deg, #73d8b4, var(--green)); }
        .storage-library-tools input, .storage-library-tools select {
            border-color: var(--line);
            border-radius: 11px;
            background: var(--panel-raised);
        }
        .storage-library-tools input:focus,
        .storage-library-tools select:focus-visible {
            border-color: var(--green);
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 16%, transparent);
        }
        .storage-filter-bar button {
            border-color: var(--line);
            border-radius: 10px;
            background: color-mix(in srgb, var(--panel-raised) 92%, var(--green));
            transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
        }
        .storage-filter-bar button:hover,
        .storage-filter-bar button[aria-pressed="true"] {
            border-color: color-mix(in srgb, var(--green) 64%, var(--line));
            background: color-mix(in srgb, var(--green) 12%, var(--panel-raised));
            color: var(--text);
        }
        .storage-file {
            border-color: color-mix(in srgb, var(--line) 88%, var(--green));
            border-radius: 16px;
            background: linear-gradient(155deg, var(--panel-raised), var(--panel));
            transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
        }
        .storage-file-thumb-link {
            border-color: color-mix(in srgb, var(--line) 75%, var(--green));
            border-radius: 12px;
            background:
                radial-gradient(ellipse at 84% 2%, color-mix(in srgb, var(--green) 15%, transparent), transparent 55%),
                var(--bg);
        }
        .storage-file-name { color: var(--text); }
        .storage-file button,
        .storage-file-menu-panel button,
        .storage-file-actions a {
            border-color: var(--line);
            border-radius: 9px;
            background: var(--panel);
            color: var(--text);
        }
        .storage-view-toggle {
            border-color: var(--line);
            border-radius: 11px;
            background: var(--panel-raised);
        }
        .storage-view-toggle button[aria-pressed="true"] {
            border-color: color-mix(in srgb, var(--green) 55%, var(--line));
            background: color-mix(in srgb, var(--green) 14%, var(--panel));
            color: var(--text);
        }
        .cloud-preview-dialog {
            border-color: color-mix(in srgb, var(--line) 72%, var(--green));
            border-radius: 20px;
            color: var(--text);
        }
        .cloud-preview-shell {
            border-radius: 19px;
            background: var(--panel);
            box-shadow: 0 30px 100px rgba(0,0,0,.62);
        }
        .cloud-preview-head {
            border-color: var(--line);
            background: color-mix(in srgb, var(--panel) 88%, var(--green));
        }
        .cloud-preview-title { font-family: "Space Grotesk", "DM Sans", sans-serif; }
        .cloud-preview-close, .cloud-player-button {
            border-color: var(--line);
            background: linear-gradient(145deg, var(--panel-raised), var(--panel));
            color: var(--text);
        }
        .cloud-preview-close:hover, .cloud-player-button:hover {
            border-color: var(--green);
            background: color-mix(in srgb, var(--green) 12%, var(--panel-raised));
        }
        .cloud-player-stage {
            border-color: var(--line);
            background: radial-gradient(ellipse at 50% 45%, var(--panel-raised), #05070c 78%);
        }
        .cloud-player-controls {
            border-color: var(--line);
            background: linear-gradient(135deg, var(--panel-raised), var(--panel));
        }
        .cloud-player-play {
            border-color: color-mix(in srgb, var(--green) 55%, var(--line));
            background: linear-gradient(145deg, var(--green-dark), var(--panel-raised));
        }
        .cloud-player-play:hover { border-color: var(--green); background: var(--green-dark); }
        .cloud-player-controls input[type="range"] { accent-color: var(--green); }
        .cloud-player-volume { accent-color: var(--green) !important; }
        .cloud-player-time { color: var(--muted); }
        .cloud-preview-close:focus-visible,
        .cloud-player-button:focus-visible,
        .cloud-player input:focus-visible { outline-color: var(--green); }
        @media (hover: hover) {
            .storage-file:hover {
                transform: translateY(-2px);
                border-color: color-mix(in srgb, var(--green) 54%, var(--line));
                box-shadow: 0 14px 32px rgba(0,0,0,.2);
            }
            .storage-filter-bar button:hover { transform: translateY(-1px); }
        }
        :root[data-theme="light"] .storage-page-hero {
            border-color: color-mix(in srgb, var(--green) 28%, var(--line));
            background:
                radial-gradient(ellipse at 88% 0, color-mix(in srgb, var(--green) 12%, transparent), transparent 48%),
                linear-gradient(135deg, #fff, var(--panel-raised));
            box-shadow: 0 20px 54px rgba(30,50,80,.1);
        }
        :root[data-theme="light"] .storage-summary-panel,
        :root[data-theme="light"] .storage-library-panel {
            border-color: var(--line);
            background: linear-gradient(155deg, #fff, #f7f9fc);
            box-shadow: 0 18px 48px rgba(30,50,80,.08);
        }
        :root[data-theme="light"] .storage-usage-card,
        :root[data-theme="light"] .storage-file {
            border-color: var(--line);
            background: linear-gradient(145deg, #fff, #f4f7fb);
        }
        :root[data-theme="light"] .storage-file-thumb-link {
            border-color: var(--line);
            background: color-mix(in srgb, var(--panel-raised) 80%, #fff);
        }
        :root[data-theme="light"] .storage-file button,
        :root[data-theme="light"] .storage-file-menu-panel button,
        :root[data-theme="light"] .storage-file-actions a {
            border-color: var(--line);
            background: #edf3f9;
            color: #234a6d;
        }
        :root[data-theme="light"] .storage-view-toggle { border-color: var(--line); background: #f3f7fb; }
        :root[data-theme="light"] .storage-view-toggle button[aria-pressed="true"] {
            border-color: color-mix(in srgb, var(--green) 45%, var(--line));
            background: color-mix(in srgb, var(--green) 12%, #fff);
            color: #234a6d;
        }
        :root[data-theme="light"] .cloud-preview-shell { background: #fff; }
        :root[data-theme="light"] .cloud-preview-head { background: #f7f9fc; }
        :root[data-theme="light"] .cloud-preview-close,
        :root[data-theme="light"] .cloud-player-button {
            border-color: var(--line);
            background: linear-gradient(145deg, #fff, #edf3f9);
            color: #234a6d;
        }
        :root[data-theme="light"] .cloud-player-play {
            border-color: #9dc9e9;
            background: linear-gradient(145deg, #dceeff, #f3f8fc);
            color: #19486e;
        }
        :root[data-theme="light"] .cloud-player-stage { background: radial-gradient(ellipse at 50% 45%, #26354a, #05070c 78%); }
        .what-hero.storage-page-hero {
            margin: 0 0 18px;
            padding: 8px 0 16px;
            overflow: visible;
            border: 0;
            border-bottom: 1px solid var(--line);
            border-radius: 0;
            background: none;
            box-shadow: none;
        }
        .storage-page-hero .eyebrow { margin-bottom: 7px; }
        .storage-page-hero h1 { max-width: none; font-size: clamp(28px, 3vw, 36px); letter-spacing: -.04em; }
        .storage-page-hero p { max-width: 70ch; margin-top: 6px; font-size: 13px; }
        .storage-dashboard {
            grid-template-columns: minmax(230px, 260px) minmax(0, 1fr);
            align-items: start;
            gap: 18px;
        }
        .storage-summary-panel {
            align-self: start;
            padding: 18px;
            border-radius: 18px;
            box-shadow: 0 12px 32px rgba(0,0,0,.12);
        }
        .storage-library-panel {
            min-height: 520px;
            padding: 22px;
            border-radius: 18px;
            background: var(--panel);
            box-shadow: 0 16px 42px rgba(0,0,0,.14);
        }
        .storage-summary-panel .storage-panel-heading { margin-bottom: 14px; }
        .storage-summary-panel .storage-panel-heading h2 { font-size: 15px; }
        .storage-summary-panel .storage-panel-heading p { font-size: 11px; }
        .storage-overview { grid-template-columns: minmax(0, 1fr); gap: 8px; }
        .storage-usage-card { padding: 12px; border-radius: 12px; }
        .storage-usage-heading { font-size: 11px; }
        .storage-usage-heading strong { font-size: 16px; }
        .storage-usage-card > p { min-height: 0; margin: 7px 0; font-size: 10px; }
        .storage-meter { height: 6px; margin: 8px 0 2px; }
        .storage-upload-section { margin-top: 17px; padding-top: 16px; }
        .storage-upload-section .storage-panel-heading { margin-bottom: 10px; }
        .storage-upload-section .storage-panel-heading h2 { font-size: 14px; }
        .storage-upload-section .storage-panel-heading p { font-size: 10px; }
        .storage-upload-form { gap: 10px; }
        .storage-upload-form label { font-size: 11px; }
        .storage-upload-form input[type="file"] { min-height: 68px; border-style: dashed; font-size: 10px; }
        .storage-upload-form .account-button { width: 100%; min-height: 42px; }
        .storage-library-heading { align-items: center; margin-bottom: 16px; }
        .storage-library-heading > div:first-child { min-width: 0; }
        .storage-library-heading h2 { font-size: 20px; letter-spacing: -.025em; }
        .storage-library-heading p { font-size: 11px; }
        .storage-library-tools {
            grid-template-columns: minmax(0, 1fr) minmax(140px, 170px) auto;
            gap: 8px;
            margin: 14px 0 12px;
        }
        .storage-library-tools input,
        .storage-library-tools select { min-height: 42px; }
        .storage-filter-bar { gap: 7px; margin: 0 0 16px; }
        .storage-filter-bar button { min-height: 34px; flex-basis: 88px; padding: 0 10px; }
        .storage-folder-toolbar {
            margin: 0 0 12px;
            padding-top: 14px;
            border-top: 1px solid var(--line);
        }
        .storage-breadcrumbs button { min-height: 34px; padding: 0 10px; }
        .storage-folder-actions { gap: 7px; }
        .storage-folder-new-button {
            width: auto;
            min-width: 120px;
            flex: 0 0 auto !important;
            gap: 8px;
            padding: 0 12px;
            border-color: color-mix(in srgb, var(--green) 42%, var(--line));
            background: color-mix(in srgb, var(--green) 10%, var(--panel-raised));
            color: var(--text);
        }
        .storage-folder-new-button .storage-icon-tooltip { display: none; }
        .storage-action-label { font-size: 11px; font-weight: 600; white-space: nowrap; }
        .storage-folders { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 9px; }
        .storage-folder { min-height: 58px; padding: 10px; border-radius: 12px; }
        .storage-folder-open { font-size: 12px; }
        .storage-folder-action { min-height: 32px; }
        .storage-files { grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 12px; }
        .storage-file { padding: 10px; border-radius: 14px; }
        .storage-file-thumb-link { aspect-ratio: 16 / 10; }
        .storage-file-name { font-size: 12px; }
        .storage-library-status { margin: 12px 0 9px; font-size: 11px; }
        .storage-library-panel > .account-note { margin-top: 20px !important; font-size: 10px; }
        :root[data-theme="light"] .what-hero.storage-page-hero {
            border-bottom-color: var(--line);
            background: none;
            box-shadow: none;
        }
        :root[data-theme="light"] .storage-summary-panel,
        :root[data-theme="light"] .storage-library-panel { background: #fff; }
        :root[data-theme="light"] .storage-folder-new-button {
            border-color: #b7cde0;
            background: #edf5fc;
            color: #234a6d;
        }
        @media (max-width: 900px) {
            .storage-dashboard { grid-template-columns: minmax(0, 1fr); }
            .storage-library-panel { order: 1; min-height: 0; }
            .storage-summary-panel { order: 2; }
        }
        @media (max-width: 620px) {
            .what-hero.storage-page-hero { margin-bottom: 14px; padding: 5px 0 13px; }
            .storage-dashboard { gap: 12px; }
            .storage-library-panel { padding: 16px; }
            .storage-library-heading { align-items: flex-start; flex-direction: column; }
            .storage-library-actions { width: 100%; }
            .storage-library-tools { grid-template-columns: minmax(0, 1fr) auto; }
            .storage-library-tools input { grid-column: 1 / -1; }
            .storage-library-tools select { min-width: 0; }
            .storage-filter-bar button { flex-basis: calc(50% - 4px); }
            .storage-folder-toolbar { align-items: center; }
            .storage-folder-actions { width: auto; }
            .storage-summary-panel { padding: 16px; }
        }
        body:has(#storagePage:not([hidden])) {
            background: #1b1b1b;
        }
        body:has(#storagePage:not([hidden]))::before,
        body:has(#storagePage:not([hidden]))::after { opacity: 0; }
        body:has(#storagePage:not([hidden])) #siteShell {
            width: 100%;
            --bg: #1b1b1b;
            --panel: #252525;
            --panel-raised: #303030;
            --line: #3a3a3a;
            --text: #f3f3f3;
            --muted: #b6b6b6;
            --green: #45a2ff;
            --green-dark: #133b5e;
            --blue: #a8d7ff;
        }
        :root[data-theme="light"] body:has(#storagePage:not([hidden])) {
            background: #f2f4f7;
        }
        :root[data-theme="light"] body:has(#storagePage:not([hidden])) #siteShell {
            --bg: #f2f4f7;
            --panel: #fff;
            --panel-raised: #f3f6f9;
            --line: #d7dce2;
            --text: #20252b;
            --muted: #5e6873;
            --green: #0f6cbd;
            --green-dark: #dceeff;
            --blue: #174e78;
        }
        #storagePage,
        .storage-library-panel {
            --storage-main: #1d1d1d;
            --storage-rail: #202020;
            --storage-surface: #262626;
            --storage-raised: #303030;
            --storage-line: #3a3a3a;
            --storage-text: #f3f3f3;
            --storage-muted: #b6b6b6;
            --storage-accent: #45a2ff;
            --bg: var(--storage-main);
            --panel: var(--storage-main);
            --panel-raised: var(--storage-raised);
            --line: var(--storage-line);
            --text: var(--storage-text);
            --muted: var(--storage-muted);
            --green: var(--storage-accent);
            --green-dark: #133b5e;
            --blue: #a8d7ff;
            color: var(--storage-text);
        }
        :root[data-theme="light"] #storagePage,
        :root[data-theme="light"] .storage-library-panel {
            --storage-main: #fff;
            --storage-rail: #f2f4f7;
            --storage-surface: #fff;
            --storage-raised: #f3f6f9;
            --storage-line: #d7dce2;
            --storage-text: #20252b;
            --storage-muted: #5e6873;
            --storage-accent: #0f6cbd;
            --bg: var(--storage-main);
            --panel: var(--storage-main);
            --panel-raised: var(--storage-raised);
            --line: var(--storage-line);
            --text: var(--storage-text);
            --muted: var(--storage-muted);
            --green: var(--storage-accent);
            --green-dark: #dceeff;
            --blue: #174e78;
        }
        #storagePage .what-hero.storage-page-hero { display: none; }
        #storagePage .storage-dashboard {
            grid-template-columns: minmax(220px, 246px) minmax(0, 1fr);
            gap: 0;
            min-height: calc(100vh - 220px);
            overflow: hidden;
            border: 1px solid var(--storage-line);
            border-radius: 12px;
            background: var(--storage-main);
            box-shadow: 0 16px 48px rgba(0,0,0,.2);
        }
        #storagePage .storage-sidebar {
            display: flex;
            min-width: 0;
            min-height: calc(100vh - 220px);
            flex-direction: column;
            gap: 0;
            padding: 16px 12px;
            border: 0;
            border-right: 1px solid var(--storage-line);
            border-radius: 0;
            background: var(--storage-rail);
            box-shadow: none;
        }
        #storagePage .storage-sidebar > .storage-upload-section { order: 1; }
        #storagePage .storage-sidebar > .storage-sidebar-nav { order: 2; }
        #storagePage .storage-sidebar > .storage-panel-heading { order: 3; margin-top: auto; }
        #storagePage .storage-sidebar > .storage-overview { order: 4; }
        #storagePage .storage-sidebar .storage-panel-heading { margin-bottom: 10px; }
        #storagePage .storage-sidebar .storage-panel-heading h2 { font-size: 13px; }
        #storagePage .storage-sidebar .storage-panel-heading p {
            margin: 0;
            color: var(--storage-muted);
            font-size: 10px;
            line-height: 1.45;
        }
        #storagePage .storage-sidebar .storage-upload-section {
            margin: 0;
            padding: 0;
            border: 0;
        }
        #storagePage .storage-sidebar .storage-upload-section .storage-panel-heading h2 { font-size: 13px; }
        #storagePage .storage-sidebar .storage-upload-section .storage-panel-heading p { font-size: 10px; }
        #storagePage #storageConnectionStatus { font-size: 10px; }
        #storagePage #storageUploadDestination { margin: 7px 0; font-size: 10px; }
        #storagePage .storage-upload-form { gap: 8px; }
        #storagePage .storage-upload-form label { gap: 5px; font-size: 10px; }
        #storagePage .storage-upload-form input[type="file"],
        #storagePage .storage-upload-form select {
            min-height: 38px;
            padding: 6px 8px;
            border-color: var(--storage-line);
            border-radius: 8px;
            background: var(--storage-surface);
            color: var(--storage-text);
            font-size: 10px;
        }
        #storagePage .storage-upload-form input[type="file"] { cursor: pointer; }
        #storagePage .storage-upload-form input[type="file"]::file-selector-button {
            min-height: 27px;
            margin: -2px 6px -2px -3px;
            padding: 0 8px;
            border: 1px solid var(--storage-line);
            border-radius: 6px;
            background: var(--storage-raised);
            color: var(--storage-text);
            cursor: pointer;
            font: inherit;
        }
        #storagePage .storage-upload-form .account-button {
            width: 100%;
            min-height: 38px;
            border: 1px solid var(--storage-accent);
            border-radius: 8px;
            background: var(--storage-accent);
            color: #07121e;
            font-size: 11px;
            font-weight: 700;
        }
        #storagePage .storage-upload-form .account-button:hover { filter: brightness(1.08); }
        #storagePage .storage-progress-label { margin-top: 8px; font-size: 9px; }
        #storagePage .storage-progress { margin: 5px 0 0; background: var(--storage-raised); }
        #storagePage .storage-sidebar-nav {
            margin: 22px 0 18px;
            padding-top: 15px;
            border-top: 1px solid var(--storage-line);
        }
        #storagePage .storage-sidebar-nav h2 {
            margin: 0 0 8px;
            color: var(--storage-text);
            font-size: 11px;
            font-weight: 700;
        }
        #storagePage .storage-sidebar-nav .storage-filter-bar {
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            gap: 3px;
            margin: 0;
        }
        #storagePage .storage-sidebar-nav .storage-filter-bar button {
            width: 100%;
            min-height: 35px;
            flex: none;
            justify-content: flex-start;
            padding: 0 10px;
            border-color: transparent;
            border-radius: 8px;
            background: transparent;
            color: var(--storage-muted);
            font-size: 11px;
            font-weight: 500;
        }
        #storagePage .storage-sidebar-nav .storage-filter-bar button:hover,
        #storagePage .storage-sidebar-nav .storage-filter-bar button[aria-pressed="true"] {
            border-color: transparent;
            background: var(--storage-raised);
            color: var(--storage-text);
            transform: none;
        }
        #storagePage .storage-sidebar-nav .storage-filter-bar button[aria-pressed="true"] {
            box-shadow: inset 3px 0 var(--storage-accent);
        }
        #storagePage .storage-sidebar-nav .storage-filter-bar button span {
            min-width: 22px;
            margin-left: auto;
            padding: 2px 6px;
            border-radius: 999px;
            background: rgba(255,255,255,.08);
            font-size: 9px;
        }
        #storagePage .storage-sidebar > .storage-panel-heading {
            padding-top: 14px;
            border-top: 1px solid var(--storage-line);
        }
        #storagePage .storage-overview {
            grid-template-columns: minmax(0, 1fr);
            gap: 10px;
        }
        #storagePage .storage-usage-card {
            padding: 0;
            border: 0;
            border-radius: 0;
            background: transparent;
        }
        #storagePage .storage-usage-heading {
            color: var(--storage-text);
            font-size: 10px;
        }
        #storagePage .storage-usage-heading strong {
            color: var(--storage-text);
            font-size: 10px;
        }
        #storagePage .storage-usage-card > p {
            min-height: 0;
            margin: 4px 0 6px;
            color: var(--storage-muted);
            font-size: 9px;
            line-height: 1.4;
        }
        #storagePage .storage-meter { height: 5px; margin: 0; background: var(--storage-raised); }
        #storagePage .storage-meter span { background: var(--storage-accent); }
        #storagePage .server-storage-meter span { background: #68c7ad; }
        #storagePage .storage-library-panel {
            min-width: 0;
            min-height: calc(100vh - 220px);
            padding: 22px 24px;
            border: 0;
            border-radius: 0;
            background: var(--storage-main);
            box-shadow: none;
        }
        #storagePage .storage-library-heading {
            align-items: center;
            margin-bottom: 16px;
        }
        #storagePage .storage-library-heading h2 {
            margin: 0;
            color: var(--storage-text);
            font-size: 22px;
            letter-spacing: -.025em;
        }
        #storagePage .storage-library-heading p {
            margin: 4px 0 0;
            color: var(--storage-muted);
            font-size: 11px;
        }
        #storagePage .storage-library-actions { gap: 6px; }
        #storagePage .storage-library-actions .storage-icon-button {
            border-color: var(--storage-line);
            border-radius: 8px;
            background: var(--storage-surface);
            color: var(--storage-muted);
        }
        #storagePage .storage-library-tools {
            grid-template-columns: minmax(0, 1fr) minmax(130px, 170px) auto;
            gap: 8px;
            margin: 0 0 14px;
        }
        #storagePage .storage-library-tools input,
        #storagePage .storage-library-tools select {
            min-height: 40px;
            border-color: var(--storage-line);
            border-radius: 9px;
            background: var(--storage-surface);
            color: var(--storage-text);
            font-size: 11px;
        }
        #storagePage .storage-library-tools input::placeholder { color: var(--storage-muted); }
        #storagePage .storage-view-toggle {
            align-items: center;
            border-color: var(--storage-line);
            border-radius: 9px;
            background: var(--storage-surface);
        }
        #storagePage .storage-view-toggle button { min-height: 32px; color: var(--storage-muted); }
        #storagePage .storage-view-toggle button[aria-pressed="true"] {
            border-color: var(--storage-line);
            background: var(--storage-raised);
            color: var(--storage-text);
        }
        #storagePage .storage-folder-toolbar {
            margin: 0 0 11px;
            padding: 0;
            border: 0;
        }
        #storagePage .storage-breadcrumbs { color: var(--storage-muted); font-size: 11px; }
        #storagePage .storage-breadcrumbs button {
            min-height: 32px;
            border-color: transparent;
            background: transparent;
            color: var(--storage-text);
        }
        #storagePage .storage-folder-actions { gap: 7px; }
        #storagePage .storage-folder-actions .storage-icon-button {
            border-color: var(--storage-line);
            border-radius: 8px;
            background: var(--storage-surface);
            color: var(--storage-text);
        }
        #storagePage .storage-folder-new-button {
            border-color: var(--storage-line);
            background: var(--storage-surface);
            color: var(--storage-text);
        }
        #storagePage .storage-folders { gap: 7px; margin-bottom: 12px; }
        #storagePage .storage-folder {
            min-height: 48px;
            padding: 6px 10px;
            border-color: var(--storage-line);
            border-radius: 9px;
            background: var(--storage-surface);
        }
        #storagePage .storage-folder:hover { background: var(--storage-raised); }
        #storagePage .storage-folder-open { color: var(--storage-text); }
        #storagePage .storage-folder-action {
            border-color: var(--storage-line);
            background: var(--storage-main);
            color: var(--storage-text);
        }
        #storagePage .storage-library-status { margin: 10px 0 6px; color: var(--storage-muted); font-size: 10px; }
        .storage-list-header,
        .storage-files.is-list-view .storage-file {
            grid-template-columns: minmax(0, 1fr) minmax(110px, 150px) minmax(76px, 100px) minmax(72px, 90px) 40px;
            align-items: center;
            column-gap: 8px;
        }
        .storage-list-header {
            display: grid;
            min-height: 38px;
            padding: 0 12px;
            border: 1px solid var(--storage-line, var(--line));
            border-bottom: 0;
            border-radius: 9px 9px 0 0;
            background: var(--storage-surface, var(--panel));
            color: var(--storage-muted, var(--muted));
            font-size: 10px;
            font-weight: 600;
        }
        .storage-list-header[hidden] { display: none !important; }
        .storage-files.is-list-view {
            max-height: min(66vh, 620px);
            min-height: 120px;
            overflow: auto;
            border: 1px solid var(--storage-line, var(--line));
            border-radius: 0 0 9px 9px;
            background: var(--storage-main, var(--panel));
            scrollbar-color: var(--storage-line, var(--line)) transparent;
        }
        .storage-files.is-list-view .storage-file {
            display: grid;
            min-height: 54px;
            gap: 12px;
            padding: 8px 12px;
            border: 0;
            border-bottom: 1px solid color-mix(in srgb, var(--storage-line, var(--line)) 72%, transparent);
            border-radius: 0;
            background: transparent;
            transition: background .14s ease;
        }
        .storage-files.is-list-view .storage-file:hover { background: var(--storage-surface, var(--panel-raised)); }
        .storage-files.is-list-view .storage-file-title {
            display: grid;
            min-width: 0;
            grid-template-columns: 28px minmax(0, 1fr);
            grid-template-rows: auto auto;
            align-items: center;
            gap: 0 10px;
        }
        .storage-files.is-list-view .storage-file-type-icon {
            display: grid;
            grid-column: 1;
            grid-row: 1 / 3;
            width: 28px;
            height: 32px;
            flex: 0 0 28px;
            place-items: center;
            border: 1px solid var(--storage-line, var(--line));
            border-radius: 5px;
            background: var(--storage-surface, var(--panel-raised));
            color: var(--storage-accent, var(--green));
            font-size: 7px;
            font-weight: 700;
        }
        .storage-files:not(.is-list-view) .storage-file-type-icon { display: none; }
        .storage-files.is-list-view .storage-file-name {
            grid-column: 2;
            grid-row: 1;
            min-width: 0;
            color: var(--storage-text, var(--text));
            font-size: 11px;
            font-weight: 500;
        }
        .storage-files.is-list-view .storage-file-details {
            display: block;
            grid-column: 2;
            grid-row: 2;
            min-width: 0;
            margin: 2px 0 0;
            color: var(--storage-muted, var(--muted));
            font-size: 9px;
            line-height: 1.3;
        }
        .storage-files.is-list-view .storage-file-details:empty { display: none; }
        .storage-files.is-list-view .storage-file-details > span:not(.storage-file-size):not(.storage-file-date) {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .storage-files.is-list-view .storage-file-date,
        .storage-files.is-list-view .storage-file-size,
        .storage-files.is-list-view .storage-file-sharing {
            overflow: hidden;
            color: var(--storage-muted, var(--muted));
            font-size: 10px;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .storage-files.is-list-view .storage-file-sharing.is-shared { color: var(--storage-accent, var(--green)); }
        .storage-files.is-list-view .storage-file-menu {
            position: static;
            grid-column: 5;
            grid-row: 1;
            justify-self: end;
            align-self: center;
        }
        .storage-files.is-list-view .storage-file-menu-button {
            border-color: transparent;
            background: transparent;
            color: var(--storage-muted, var(--muted));
        }
        .storage-files.is-list-view .storage-file-menu-button:hover { background: var(--storage-raised, var(--panel-raised)); }
        .storage-files.is-collapsed { max-height: min(66vh, 620px); mask-image: none; }
        #storageLibraryPanel #storageFilterBar {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin: 0 0 12px;
        }
        #storageLibraryPanel #storageFilterBar button { width: auto; flex: 0 0 auto; }
        #storagePage .storage-library-panel > .account-note { color: var(--storage-muted); font-size: 10px; }
        :root[data-theme="light"] #storagePage .storage-dashboard { box-shadow: 0 12px 38px rgba(28,42,58,.08); }
        :root[data-theme="light"] #storagePage .storage-sidebar { background: var(--storage-rail); }
        :root[data-theme="light"] #storagePage .storage-sidebar-nav .storage-filter-bar button[aria-pressed="true"] {
            background: #e2effa;
            color: #174e78;
        }
        :root[data-theme="light"] #storagePage .storage-upload-form .account-button { color: #fff; }
        :root[data-theme="light"] #storagePage .storage-files.is-list-view .storage-file:hover { background: #f2f5f8; }
        @media (max-width: 900px) {
            #storagePage .storage-dashboard { grid-template-columns: minmax(0, 1fr); overflow: visible; }
            #storagePage .storage-library-panel { order: 1; min-height: 0; }
            #storagePage .storage-sidebar {
                order: 2;
                min-height: 0;
                border-top: 1px solid var(--storage-line);
                border-right: 0;
            }
        }
        @media (max-width: 620px) {
            body:has(#storagePage:not([hidden])) #siteShell { width: calc(100% - 20px); }
            #storagePage .storage-library-panel { padding: 16px 12px; }
            #storagePage .storage-library-heading { align-items: flex-start; flex-direction: column; }
            #storagePage .storage-library-actions { width: 100%; }
            #storagePage .storage-library-tools { grid-template-columns: minmax(0, 1fr) auto; }
            #storagePage .storage-library-tools input { grid-column: 1 / -1; }
            #storagePage .storage-library-tools select { grid-column: 1; }
            #storagePage .storage-view-toggle { grid-column: 2; }
            #storagePage .storage-folder-toolbar { flex-direction: row; align-items: center; }
            #storagePage .storage-breadcrumbs { width: auto; }
            #storagePage .storage-folder-actions { width: auto; }
            #storagePage .storage-sidebar-nav .storage-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .storage-list-header,
            .storage-files.is-list-view .storage-file { grid-template-columns: minmax(0, 1fr) 40px; }
            .storage-list-header > span:nth-child(n + 2):not(:last-child),
            .storage-files.is-list-view .storage-file-date,
            .storage-files.is-list-view .storage-file-size,
            .storage-files.is-list-view .storage-file-sharing { display: none; }
            .storage-files.is-list-view .storage-file-menu { grid-column: 2; }
        }
        :root[data-palette="dark-default"] {
            --bg: #080b10;
            --panel: #10151c;
            --panel-raised: #181f28;
            --line: #2b3541;
            --text: #e8edf3;
            --muted: #9da9b7;
            --green: #88b9eb;
            --green-dark: #16283b;
            --blue: #c3dcf5;
            --ambient-base-hue: 210deg;
            --ambient-base-accent-hue: 220deg;
            --ambient-level: .035;
            --ambient-accent-level: .018;
            --ambient-secondary-level: .01;
            --ambient-flash-level: .012;
            --ambient-flash-secondary-level: .006;
        }
        :root[data-palette="dark-default"] body {
            background-color: var(--bg);
            background-image: none;
        }
        :root[data-palette="dark-default"] body::before {
            background:
                radial-gradient(ellipse at calc(92% - var(--ambient-x, 0%)) 0%, hsl(var(--ambient-hue, 210deg) 48% 48% / var(--ambient-level, .035)), transparent 48%),
                radial-gradient(ellipse at calc(8% + var(--ambient-x, 0%)) calc(100% - var(--ambient-y, 0%)), hsl(var(--ambient-accent-hue, 220deg) 42% 42% / var(--ambient-accent-level, .018)), transparent 40%);
        }
        :root[data-palette="dark-default"] body::after {
            background: radial-gradient(ellipse at 92% 3%, hsl(var(--ambient-flash-hue, 210deg) 70% 54% / var(--ambient-flash-level, .012)), transparent 70%);
        }
        :root[data-palette="dark-default"] .auth-gate:not([hidden]) {
            background: var(--bg);
            backdrop-filter: none;
        }
        :root[data-palette="dark-default"] .auth-gate::before { display: none; }
        :root[data-palette="dark-default"] .auth-showcase-name {
            background: none;
            color: var(--text);
            filter: none;
            -webkit-text-fill-color: var(--text);
        }
        :root[data-palette="dark-default"] #authGate .auth-card {
            border-color: var(--line);
            border-radius: 14px;
            background: linear-gradient(145deg, #121820, var(--panel));
            box-shadow: 0 24px 70px rgba(0, 0, 0, .48);
        }
        :root[data-palette="dark-default"] #authGate .auth-card::before { display: none; }
        :root[data-palette="dark-default"] #authGate .auth-card > #authSubtitle,
        :root[data-palette="dark-default"] #authGate .auth-card .auth-form > label:not(.remember-option):not(.terms-accept) {
            color: var(--muted);
        }
        :root[data-palette="dark-default"] #authGate .auth-card .auth-form input:not([type="checkbox"]):not([type="hidden"]) {
            border-color: var(--line);
            border-radius: 8px;
            background: #0a0e13;
        }
        :root[data-palette="dark-default"] #authGate .auth-card .auth-form input:not([type="checkbox"]):not([type="hidden"]):focus {
            border-color: var(--green);
            background: #0b1017;
            box-shadow: 0 0 0 3px rgba(136, 185, 235, .14);
        }
        :root[data-palette="dark-default"] #authGate .auth-card .auth-form .remember-option {
            border-color: var(--line);
            border-radius: 8px;
            background: #141a22;
            color: var(--muted);
        }
        :root[data-palette="dark-default"] #authGate .auth-card .auth-form .account-button {
            border-radius: 8px;
            background: var(--green);
            color: #0a1119;
            box-shadow: none;
        }
        :root[data-palette="dark-default"] #homePage::before {
            background: linear-gradient(135deg, #080b10, #101720 58%, #0a0e13);
        }
        :root[data-palette="dark-default"] #homePage .home-brand-screen {
            background: linear-gradient(135deg, #090d12, #111923 58%, #0a0e13);
        }
        :root[data-palette="dark-default"] #homePage .home-brand-screen h1 span {
            background: none;
            color: var(--text);
            -webkit-text-fill-color: var(--text);
        }
        :root[data-palette="dark-default"] #homePage .home-showcase,
        :root[data-palette="dark-default"] #homePage .home-workflow {
            border-color: var(--line);
            background: var(--panel);
            box-shadow: 0 20px 55px rgba(0, 0, 0, .24);
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
        }
        :root[data-palette="dark-default"] #homePage .showcase-card,
        :root[data-palette="dark-default"] #homePage .home-workflow-steps li,
        :root[data-palette="dark-default"] #homePage .home-value-card {
            border-color: var(--line);
            background: var(--panel-raised);
        }
        :root[data-palette="dark-default"] #siteShell > header::before {
            border-bottom-color: var(--line);
            background: rgba(8, 11, 16, .94);
            box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }
        :root[data-palette="dark-default"] #siteShell .main-nav {
            border-color: var(--line);
            border-radius: 10px;
            background: #10151c;
        }
        :root[data-palette="dark-default"] #siteShell .nav-button { color: var(--muted); }
        :root[data-palette="dark-default"] #siteShell .nav-button:hover,
        :root[data-palette="dark-default"] #siteShell .nav-button.active {
            border-color: #3a4b5e;
            background: #1a2633;
            color: var(--text);
            box-shadow: none;
        }
        :root[data-palette="dark-default"] .card { background: var(--panel); }
        :root[data-palette="dark-default"] .account-button:not(.account-button--danger):hover {
            border-color: #607890;
            box-shadow: 0 5px 16px rgba(0, 0, 0, .24);
        }
