        :root {
            --bg: #0b1220;
            --bg-soft: rgba(11, 18, 32, 0.72);
            --panel: rgba(14, 24, 43, 0.88);
            --panel-strong: rgba(10, 18, 34, 0.96);
            --card-alt: rgba(13, 23, 43, 0.86);
            --border: rgba(139, 176, 255, 0.18);
            --border-strong: rgba(139, 176, 255, 0.32);
            --text: #f4f7ff;
            --muted: #9fb0cf;
            --accent: #7dc7ff;
            --accent-2: #81f0c9;
            --warning: #ffd87d;
            --shadow: 0 24px 80px rgba(3, 10, 24, 0.48);
            --radius-xl: 28px;
            --radius-lg: 20px;
            --field-bg: rgba(5, 11, 22, 0.58);
            --hero-overlay: linear-gradient(135deg, rgba(6, 14, 28, 0.18), rgba(4, 9, 22, 0.82));
        }

        body.theme-forest {
            --bg: #0d1712;
            --bg-soft: rgba(13, 23, 18, 0.76);
            --panel: rgba(18, 33, 24, 0.9);
            --panel-strong: rgba(12, 24, 18, 0.96);
            --card-alt: rgba(17, 29, 21, 0.9);
            --border: rgba(141, 223, 160, 0.16);
            --border-strong: rgba(141, 223, 160, 0.3);
            --text: #f3fff4;
            --muted: #a2c7aa;
            --accent: #79d78c;
            --accent-2: #b6ffcd;
            --warning: #d0f18c;
            --hero-overlay: linear-gradient(135deg, rgba(14, 25, 18, 0.16), rgba(8, 18, 11, 0.8));
        }

        body.theme-sunset {
            --bg: #1d1011;
            --bg-soft: rgba(29, 16, 17, 0.76);
            --panel: rgba(44, 24, 25, 0.9);
            --panel-strong: rgba(32, 18, 18, 0.96);
            --card-alt: rgba(36, 19, 20, 0.9);
            --border: rgba(255, 173, 128, 0.18);
            --border-strong: rgba(255, 173, 128, 0.3);
            --text: #fff6f0;
            --muted: #e0b7a3;
            --accent: #ff9b6b;
            --accent-2: #ffd27a;
            --warning: #ffd27a;
            --hero-overlay: linear-gradient(135deg, rgba(38, 20, 21, 0.16), rgba(24, 12, 12, 0.82));
        }

        body.theme-mono {
            --bg: #111214;
            --bg-soft: rgba(17, 18, 20, 0.76);
            --panel: rgba(28, 29, 33, 0.9);
            --panel-strong: rgba(19, 20, 22, 0.96);
            --card-alt: rgba(24, 25, 28, 0.9);
            --border: rgba(218, 218, 218, 0.14);
            --border-strong: rgba(218, 218, 218, 0.28);
            --text: #f7f7f7;
            --muted: #b8b8b8;
            --accent: #dddddd;
            --accent-2: #ffffff;
            --warning: #d7d7d7;
            --hero-overlay: linear-gradient(135deg, rgba(25, 25, 28, 0.16), rgba(17, 17, 18, 0.82));
        }

        body.profile-page {
            margin: 0;
            min-height: 100vh;
            color: var(--text);
            font-family: "Trebuchet MS", "Segoe UI", sans-serif;
            background:
                radial-gradient(circle at top left, rgba(125, 199, 255, 0.18), transparent 34%),
                radial-gradient(circle at 82% 18%, rgba(129, 240, 201, 0.12), transparent 26%),
                linear-gradient(180deg, #050a14 0%, var(--bg) 22%, #060b16 100%);
        }

        .profile-shell {
            width: min(1380px, calc(100% - 32px));
            margin: 20px auto 60px;
        }

        .topbar, .panel-card, .hero-card {
            border: 1px solid var(--border);
            box-shadow: 0 16px 45px rgba(0, 0, 0, 0.18);
            backdrop-filter: blur(14px);
        }

        .topbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 18px;
            padding: 14px 18px;
            border-radius: 18px;
            background: var(--bg-soft);
        }

        .brand-link {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            color: var(--text);
            text-decoration: none;
            font-size: 20px;
            font-weight: 700;
        }

        .brand-link::before {
            content: "";
            width: 11px;
            height: 11px;
            border-radius: 999px;
            background: linear-gradient(135deg, var(--accent), var(--accent-2));
            box-shadow: 0 0 16px rgba(125, 199, 255, 0.65);
        }

        .topbar-actions, .hero-actions, .hero-quick-actions, .meta-pill-row, .settings-actions, .inline-actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            align-items: center;
        }

        .ghost-link, .hero-link, #vk-login-btn,
        .btn, .btn.secondary, .btn.ghost, .btn.danger {
            border-radius: 999px;
            font-size: 14px;
            font-weight: 700;
            text-decoration: none;
            transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
        }

        .ghost-link, .hero-link, #vk-login-btn {
            color: var(--text);
            border: 1px solid var(--border);
            background: rgba(255, 255, 255, 0.03);
            padding: 10px 14px;
        }

        .ghost-link:hover, .hero-link:hover, #vk-login-btn:hover,
        .btn:hover, .btn.secondary:hover, .btn.ghost:hover, .btn.danger:hover {
            transform: translateY(-1px);
        }

        .hero-card {
            position: relative;
            overflow: hidden;
            border-radius: var(--radius-xl);
            background:
                radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.08), transparent 30%),
                linear-gradient(135deg, rgba(11, 18, 32, 0.82), rgba(8, 13, 28, 0.98));
            box-shadow: var(--shadow);
            margin-bottom: 20px;
            isolation: isolate;
        }

        .hero-cover {
            position: absolute;
            inset: 0;
            background-size: cover;
            background-position: center;
            opacity: 0.92;
            transform: scale(1.03);
        }

        .hero-card::before {
            content: "";
            position: absolute;
            inset: 0;
            background:
                radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.08), transparent 24%),
                var(--hero-overlay);
            z-index: 1;
        }

        .hero-layout {
            position: relative;
            z-index: 2;
            display: grid;
            grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
            gap: 22px;
            min-height: 340px;
            padding: 30px;
        }

        .hero-layout > * {
            min-width: 0;
        }

        .hero-main {
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            gap: 18px;
        }

        .profile-identity {
            display: flex;
            align-items: flex-end;
            gap: 18px;
        }

        .profile-avatar {
            width: 124px;
            height: 124px;
            border-radius: 28px;
            object-fit: cover;
            border: 1px solid rgba(255, 255, 255, 0.28);
            box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
            background: rgba(255, 255, 255, 0.05);
        }

        .identity-kicker, .meta-pill, .public-badge, .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            border-radius: 999px;
            font-size: 12px;
            letter-spacing: 0.04em;
        }

        .identity-kicker {
            margin-bottom: 10px;
            padding: 7px 12px;
            background: rgba(5, 11, 22, 0.42);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: var(--muted);
            text-transform: uppercase;
        }

        .profile-title-row {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .profile-title {
            margin: 0;
            font-size: clamp(30px, 4.2vw, 52px);
            line-height: 0.96;
            letter-spacing: -0.03em;
        }

        .public-badge {
            padding: 7px 12px;
            font-weight: 700;
            text-transform: uppercase;
        }

        .public-badge.is-public, .status-badge.live {
            color: #072415;
            background: linear-gradient(135deg, var(--accent-2), #d9ffe9);
        }

        .public-badge.is-private, .status-badge.draft {
            color: #402e07;
            background: linear-gradient(135deg, var(--warning), #ffe9ae);
        }

        .profile-slug, .panel-subtitle, .field-hint, .helper-line, .toggle-copy span, .guestbook-date, .artist-count {
            color: var(--muted);
        }

        .profile-bio {
            margin: 12px 0 0;
            max-width: 700px;
            font-size: 16px;
            line-height: 1.6;
        }

        .hero-stats-panel {
            display: grid;
            gap: 14px;
            align-content: end;
            min-width: 0;
        }

        .hero-stat-grid, .field-grid.two-col {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }

        .hero-stat {
            padding: 16px;
            border-radius: 18px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(6, 13, 26, 0.4);
        }

        .hero-stat-value {
            display: block;
            font-size: 28px;
            font-weight: 700;
            line-height: 1;
            margin-bottom: 6px;
        }

        .hero-action-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 48px;
            min-width: 48px;
            min-height: 48px;
            max-width: 48px;
            max-height: 48px;
            padding: 0;
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(6, 13, 26, 0.42);
            overflow: hidden;
            flex: 0 0 auto;
        }

        .hero-action-icon img,
        .hero-action-icon svg {
            width: 22px !important;
            height: 22px !important;
            min-width: 22px;
            min-height: 22px;
            max-width: 22px;
            max-height: 22px;
            object-fit: contain;
            display: block;
            filter: brightness(0) invert(1);
            flex: 0 0 auto;
        }

        .page-grid {
            display: grid;
            gap: 20px;
            grid-template-columns: minmax(0, 1fr);
        }

        .page-grid.with-sidebar {
            grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
            align-items: start;
        }

        .content-stack, .sidebar-stack, .collection-stack, .guestbook-feed, .moderation-feed, .collection-admin-list, .section-form, .settings-form, .choice-grid, .rating-grid {
            display: grid;
            gap: 14px;
        }

        .panel-card {
            border-radius: var(--radius-lg);
            background: var(--panel);
            overflow: hidden;
        }

        .panel-card.compact {
            padding: 18px;
        }

        .panel-header, .panel-body {
            padding: 22px;
        }

        .panel-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 12px;
            padding-bottom: 0;
        }

        .panel-header.no-padding {
            padding: 0 0 16px 0;
        }

        .panel-title {
            margin: 0;
            font-size: 22px;
        }

        .meta-pill {
            min-height: 36px;
            padding: 8px 12px;
            border: 1px solid var(--border);
            background: rgba(255, 255, 255, 0.03);
        }

        .meta-pill-link {
            display: inline-flex;
            align-items: center;
            color: var(--text);
            text-decoration: none;
            transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
        }

        .meta-pill-link:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.14);
            transform: translateY(-1px);
        }

        .profile-art-grid {
            display: grid;
            gap: 14px;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        }

        .profile-art-grid .art-card,
        .collection-preview-grid .art-card {
            display: block;
            padding: 0;
            overflow: hidden;
            border-radius: 18px;
            border: 1px solid var(--border);
            background: var(--card-alt);
            position: relative;
            cursor: pointer;
        }

        .profile-art-grid .art-card > img,
        .collection-preview-grid .art-card > img,
        .artist-card img {
            width: 100%;
            object-fit: cover;
            display: block;
        }

        .profile-art-grid .art-card > img {
            aspect-ratio: 0.84;
        }

        .collection-preview-grid {
            display: grid;
            gap: 10px;
            grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        }

        .collection-preview-grid .art-card > img, .artist-card img {
            aspect-ratio: 1 / 1;
        }

        .art-card-overlay {
            position: absolute;
            inset: auto 10px 10px 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
            padding: 10px 12px;
            border-radius: 12px;
            background: linear-gradient(180deg, rgba(4, 8, 16, 0.08), rgba(4, 8, 16, 0.78));
            pointer-events: none;
        }

        .art-card-title {
            min-width: 0;
            font-size: 13px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .art-card-description {
            min-width: 0;
            font-size: 11px;
            color: rgba(245, 247, 251, 0.7);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            max-width: 100%;
        }

        .panel-note, .empty-state, .collection-card, .guestbook-card, .artist-card, .collection-admin-card, .toggle-row, .choice-pill, .rating-pill, .nickname-editor {
            border-radius: 18px;
            border: 1px solid var(--border);
            background: rgba(255, 255, 255, 0.03);
        }

        .panel-note, .empty-state, .collection-card, .guestbook-card, .collection-admin-card, .toggle-row, .choice-pill, .rating-pill, .nickname-editor {
            padding: 16px;
        }

        .empty-state strong {
            display: block;
            color: var(--text);
            margin-bottom: 6px;
        }

        .artist-podium {
            display: grid;
            gap: 12px;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        }

        .artist-card {
            text-decoration: none;
            color: inherit;
            overflow: hidden;
        }

        .video-title-grid {
            display: grid;
            gap: 14px;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        }

        .video-title-card {
            display: grid;
            grid-template-columns: 88px minmax(0, 1fr);
            gap: 14px;
            text-decoration: none;
            color: inherit;
            overflow: hidden;
        }

        .video-title-card img {
            width: 100%;
            height: 124px;
            object-fit: cover;
            border-radius: 16px;
            border: 1px solid var(--border);
            background: rgba(255, 255, 255, 0.04);
        }

        .video-title-card-meta {
            display: grid;
            align-content: center;
            gap: 8px;
            min-width: 0;
        }

        .video-title-card-name {
            font-weight: 700;
            font-size: 17px;
            line-height: 1.2;
        }

        .video-title-card-facts {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .video-title-card-facts span {
            display: inline-flex;
            align-items: center;
            min-height: 28px;
            padding: 0 10px;
            border-radius: 999px;
            border: 1px solid var(--border);
            background: rgba(255, 255, 255, 0.04);
            color: var(--muted);
            font-size: 12px;
        }

        .artist-meta {
            padding: 14px;
        }

        .artist-name, .guestbook-author {
            font-weight: 700;
        }

        .guestbook-card-header, .collection-card-header, .collection-admin-meta, .toggle-row, .helper-line {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
        }

        .guestbook-text {
            white-space: pre-wrap;
            line-height: 1.6;
        }

        .guestbook-card-header {
            align-items: flex-start;
        }

        .guestbook-media {
            display: block;
            margin-top: 14px;
            border-radius: 16px;
            overflow: hidden;
            border: 1px solid var(--border);
            background: rgba(255, 255, 255, 0.02);
        }

        .guestbook-media img {
            display: block;
            width: 100%;
            max-height: 460px;
            object-fit: contain;
            background: rgba(7, 10, 16, 0.65);
        }

        .guestbook-file-input {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        .upload-field {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 12px 14px;
            border-radius: 14px;
            border: 1px solid var(--border);
            background: linear-gradient(180deg, rgba(7, 12, 24, 0.72), rgba(9, 15, 28, 0.96));
        }

        .upload-field-trigger {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            border-radius: 999px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: linear-gradient(135deg, rgba(125, 199, 255, 0.2), rgba(129, 240, 201, 0.18));
            color: var(--text);
            font-weight: 700;
            cursor: pointer;
            transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
        }

        .upload-field-trigger:hover {
            transform: translateY(-1px);
            border-color: var(--border-strong);
            background: linear-gradient(135deg, rgba(125, 199, 255, 0.28), rgba(129, 240, 201, 0.24));
        }

        .upload-field-trigger::before {
            content: "+";
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.12);
            font-size: 16px;
            line-height: 1;
        }

        .upload-field-name {
            min-width: 0;
            color: var(--muted);
            font-size: 13px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .field-label {
            display: grid;
            gap: 8px;
            color: var(--muted);
            font-size: 13px;
        }

        .field-label strong, .toggle-copy strong, .settings-subsection-head strong, .setting-toggle-copy strong {
            color: var(--text);
            font-size: 14px;
            font-weight: 700;
        }

        .settings-subsection {
            display: grid;
            gap: 12px;
            padding: 14px;
            border-radius: 16px;
            border: 1px solid rgba(129, 240, 201, 0.18);
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
        }

        .settings-subsection-head {
            display: grid;
            gap: 4px;
        }

        .settings-subsection-head span {
            color: var(--muted);
            font-size: 13px;
            line-height: 1.45;
        }

        .settings-toggle-grid,
        .nav-preference-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }

        .setting-toggle-card {
            position: relative;
            display: block;
            min-width: 0;
            cursor: pointer;
        }

        .setting-toggle-card input {
            position: absolute;
            opacity: 0;
            width: 1px;
            height: 1px;
            pointer-events: none;
        }

        .setting-toggle-surface {
            min-height: 108px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 14px;
            padding: 14px;
            border-radius: 16px;
            border: 1px solid var(--border);
            background: rgba(4, 10, 18, 0.48);
            color: var(--muted);
            transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
        }

        .setting-toggle-card:hover .setting-toggle-surface {
            transform: translateY(-1px);
            border-color: rgba(129, 240, 201, 0.32);
        }

        .setting-toggle-card input:focus-visible + .setting-toggle-surface {
            outline: 2px solid rgba(129, 240, 201, 0.56);
            outline-offset: 2px;
        }

        .setting-toggle-copy {
            display: grid;
            gap: 5px;
            min-width: 0;
        }

        .setting-toggle-copy span {
            color: var(--muted);
            font-size: 13px;
            line-height: 1.45;
        }

        .setting-toggle-state {
            align-self: flex-start;
            display: inline-flex;
            align-items: center;
            min-height: 28px;
            padding: 0 10px;
            border-radius: 999px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 255, 255, 0.055);
            color: var(--muted);
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0;
        }

        .setting-toggle-state .state-on {
            display: none;
        }

        .setting-toggle-card input:checked + .setting-toggle-surface {
            border-color: rgba(129, 240, 201, 0.54);
            background: linear-gradient(145deg, rgba(129, 240, 201, 0.2), rgba(125, 199, 255, 0.11));
            color: var(--text);
            box-shadow: inset 0 0 0 1px rgba(129, 240, 201, 0.1), 0 14px 30px rgba(28, 103, 79, 0.14);
        }

        .setting-toggle-card input:checked + .setting-toggle-surface .setting-toggle-state {
            border-color: rgba(129, 240, 201, 0.5);
            background: rgba(129, 240, 201, 0.18);
            color: var(--accent-2);
        }

        .setting-toggle-card input:checked + .setting-toggle-surface .state-on {
            display: inline;
        }

        .setting-toggle-card input:checked + .setting-toggle-surface .state-off {
            display: none;
        }

        .nav-toggle-card .setting-toggle-surface {
            min-height: 92px;
        }

        .choice-pill,
        .rating-pill {
            position: relative;
            cursor: pointer;
            overflow: hidden;
            transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
        }

        .choice-pill:hover,
        .rating-pill:hover {
            transform: translateY(-1px);
            border-color: rgba(129, 240, 201, 0.3);
        }

        .choice-pill input,
        .rating-pill input {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: pointer;
        }

        .choice-pill > span,
        .rating-pill > span {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            width: 100%;
            pointer-events: none;
            color: var(--muted);
            font-weight: 700;
        }

        .choice-pill > span::after,
        .rating-pill > span::after {
            content: "Скрыто";
            flex: 0 0 auto;
            padding: 5px 9px;
            border-radius: 999px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 255, 255, 0.045);
            color: var(--muted);
            font-size: 11px;
            font-weight: 800;
        }

        .rating-pill > span::after {
            content: "Выкл";
        }

        .rating-pill > span {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: center;
        }

        .rating-pill small {
            display: block;
            margin-top: 3px;
            color: var(--muted);
            font-size: 11px;
            font-weight: 600;
        }

        .rating-pill > span::after {
            grid-column: 2;
            grid-row: 1 / span 2;
            align-self: center;
        }

        .choice-pill:has(input:checked),
        .rating-pill:has(input:checked) {
            border-color: rgba(129, 240, 201, 0.52);
            background: linear-gradient(135deg, rgba(129, 240, 201, 0.18), rgba(125, 199, 255, 0.08));
            box-shadow: inset 0 0 0 1px rgba(129, 240, 201, 0.08);
        }

        .choice-pill input:checked + span,
        .rating-pill input:checked + span {
            color: var(--text);
        }

        .choice-pill input:checked + span::after {
            content: "Видно";
            border-color: rgba(129, 240, 201, 0.5);
            background: rgba(129, 240, 201, 0.17);
            color: var(--accent-2);
        }

        .rating-pill input:checked + span::after {
            content: "Вкл";
            border-color: rgba(129, 240, 201, 0.5);
            background: rgba(129, 240, 201, 0.17);
            color: var(--accent-2);
        }

        .text-input, .text-area, .select-input {
            width: 100%;
            border: 1px solid var(--border);
            border-radius: 14px;
            background: var(--field-bg);
            color: var(--text);
            padding: 12px 14px;
            outline: none;
        }

        .text-area {
            resize: vertical;
            min-height: 112px;
            line-height: 1.55;
        }

        .switch {
            position: relative;
            width: 50px;
            height: 30px;
            flex: 0 0 auto;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .switch-track {
            position: absolute;
            inset: 0;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.16);
            border: 1px solid rgba(255, 255, 255, 0.12);
        }

        .switch-track::after {
            content: "";
            position: absolute;
            top: 3px;
            left: 3px;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: #fff;
            transition: transform 0.22s ease;
        }

        .switch input:checked + .switch-track {
            background: linear-gradient(135deg, var(--accent), var(--accent-2));
        }

        .switch input:checked + .switch-track::after {
            transform: translateX(20px);
        }

        .btn, .btn.secondary, .btn.ghost, .btn.danger {
            border: 1px solid transparent;
            padding: 11px 16px;
        }

        .btn {
            color: #04111f;
            background: linear-gradient(135deg, var(--accent), var(--accent-2));
            box-shadow: 0 12px 28px rgba(125, 199, 255, 0.24);
        }

        .btn.secondary {
            color: var(--text);
            background: rgba(255, 255, 255, 0.05);
            border-color: var(--border);
            box-shadow: none;
        }

        .btn.ghost {
            color: var(--muted);
            background: transparent;
            border-color: var(--border);
        }

        .btn.danger {
            color: #fff2f3;
            background: linear-gradient(135deg, rgba(255, 123, 134, 0.92), rgba(222, 70, 92, 0.9));
        }

        .btn.small {
            padding: 8px 12px;
            font-size: 13px;
        }

        .nickname-editor {
            display: none;
            max-width: 480px;
        }

        .nickname-editor.is-open {
            display: grid;
        }

        .toast {
            position: fixed;
            right: 20px;
            bottom: 20px;
            z-index: 3000;
            min-width: 260px;
            max-width: min(420px, calc(100vw - 32px));
            padding: 14px 16px;
            border-radius: 16px;
            border: 1px solid var(--border);
            background: rgba(8, 15, 28, 0.96);
            color: var(--text);
            transform: translateY(12px);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.24s ease, transform 0.24s ease;
        }

        .toast.is-visible {
            opacity: 1;
            transform: translateY(0);
        }

        .toast.success { border-color: rgba(129, 240, 201, 0.4); }
        .toast.error { border-color: rgba(255, 123, 134, 0.4); }
        .toast.info { border-color: rgba(125, 199, 255, 0.34); }

        .overlay-modal {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 2000;
            align-items: center;
            justify-content: center;
            padding: 20px;
            background: rgba(3, 8, 18, 0.86);
            backdrop-filter: blur(12px);
        }

        .overlay-modal.active {
            display: flex;
        }

        .overlay-modal .modal-inner {
            width: min(440px, calc(100vw - 32px));
            padding: 28px;
            border-radius: 24px;
            background: var(--panel-strong);
            border: 1px solid var(--border);
            box-shadow: var(--shadow);
            display: grid;
            gap: 16px;
        }

        .profile-edit-modal .modal-inner {
            width: min(760px, calc(100vw - 32px));
            max-height: calc(100vh - 40px);
            padding: 0;
            overflow: hidden;
            overscroll-behavior: contain;
            display: flex;
            flex-direction: column;
        }

        .modal-sheet-header,
        .modal-sheet-body {
            padding: 24px 26px;
        }

        .modal-sheet-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            border-bottom: 1px solid var(--border);
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
        }

        .modal-sheet-body {
            display: grid;
            flex: 1 1 auto;
            min-height: 0;
            gap: 18px;
            overflow-y: auto;
            overscroll-behavior: contain;
            scrollbar-width: thin;
            scrollbar-color: #4CAF50 #0d1420;
            padding-right: 6px;
        }

        .modal-sheet-body::-webkit-scrollbar {
            width: 10px;
        }

        .modal-sheet-body::-webkit-scrollbar-track {
            background: linear-gradient(180deg, #0b121d, #0f1725);
            border-radius: 999px;
            border: 1px solid rgba(80, 109, 151, 0.18);
        }

        .modal-sheet-body::-webkit-scrollbar-thumb {
            border-radius: 999px;
            background: linear-gradient(180deg, rgba(76, 175, 80, 0.92), rgba(50, 122, 194, 0.92));
            border: 2px solid #0d1420;
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
        }

        .modal-sheet-body::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, rgba(105, 214, 109, 0.96), rgba(74, 151, 255, 0.96));
        }

        .modal-sheet-title {
            margin: 0;
            font-size: 24px;
        }

        .modal-sheet-close {
            cursor: pointer;
        }

        .profile-edit-grid {
            display: grid;
            gap: 14px;
        }

        .profile-edit-grid.two-col {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .modal-section-card {
            border: 1px solid var(--border);
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.03);
            padding: 18px;
            display: grid;
            gap: 14px;
        }

        .modal-section-card-slim {
            background: linear-gradient(180deg, rgba(4, 10, 18, 0.34), rgba(255, 255, 255, 0.025));
        }

        .fullscreen-modal {
            position: fixed !important;
            inset: 0 !important;
            left: 0 !important;
            top: 0 !important;
            width: 100vw !important;
            height: 100vh !important;
            margin: 0 !important;
            padding: 24px !important;
            display: none;
            align-items: center !important;
            justify-content: center !important;
            z-index: 5000 !important;
            background: rgba(4, 8, 16, 0.92) !important;
            backdrop-filter: blur(12px);
            box-sizing: border-box;
        }

        .fullscreen-modal.show {
            display: flex !important;
        }

        .fullscreen-modal .modal-inner {
            position: relative;
            width: auto !important;
            max-width: min(94vw, 1600px) !important;
            max-height: 94vh !important;
            margin: 0 auto !important;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 15px;
            overflow: visible !important;
        }

        .fullscreen-modal .modal-content {
            max-width: min(92vw, 1500px) !important;
            max-height: 90vh !important;
            width: auto !important;
            height: auto !important;
            margin: 0 auto !important;
            object-fit: contain;
        }

        .cache-message {
            color: var(--muted);
            font-size: 12px;
            text-align: center;
            display: none;
        }

        @media (max-width: 1180px) {
            .hero-layout, .page-grid.with-sidebar {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 760px) {
            .profile-shell {
                width: min(100%, calc(100% - 20px));
                margin-top: 10px;
            }

            .topbar, .hero-layout {
                padding: 14px;
            }

            .profile-identity {
                flex-direction: column;
                align-items: flex-start;
            }

            .profile-avatar {
                width: 96px;
                height: 96px;
                border-radius: 24px;
            }

            .hero-stat-grid, .field-grid.two-col {
                grid-template-columns: 1fr;
            }

            .panel-header, .panel-body {
                padding-left: 16px;
                padding-right: 16px;
            }

            .profile-art-grid, .collection-preview-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 10px;
            }

            .video-title-grid {
                grid-template-columns: 1fr;
            }

            .profile-art-grid .art-card > img {
                aspect-ratio: 0.78;
            }

            .settings-actions, .inline-actions, .topbar-actions, .hero-actions {
                width: 100%;
            }

            .settings-actions > *, .inline-actions > *, .hero-actions > * {
                flex: 1 1 auto;
                text-align: center;
            }

            .profile-edit-grid.two-col {
                grid-template-columns: 1fr;
            }

            .settings-toggle-grid,
            .nav-preference-grid {
                grid-template-columns: 1fr;
            }

            .modal-sheet-header, .modal-sheet-body {
                padding-left: 18px;
                padding-right: 18px;
            }
        }
