/* Commission Site - Modern UI */
*, *::before, *::after { box-sizing: border-box; }

:root {
    --primary: #7c3aed;
    --accent: #a78bfa;
    --primary-rgb: 124, 58, 237;
    --bg: #0f0f14;
    --bg-card: #1a1a24;
    --bg-elevated: #242433;
    --text: #f4f4f5;
    --text-muted: #a1a1aa;
    --border: #2e2e3a;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --navbar-height: calc(4.25rem / var(--site-scale));
    --navbar-offset: var(--navbar-height);
    --profile-sticky-top: calc(var(--navbar-offset) + 0.75rem);
    --profile-sidebar-width: 240px;
    --profile-sidebar-offset: 1.25rem;
    --profile-sidebar-gap: 1.5rem;
    --profile-sidebar-clearance: calc(var(--profile-sidebar-width) + var(--profile-sidebar-offset) + var(--profile-sidebar-gap));
    --profile-settings-content-max: 1140px;
    --profile-settings-page-pad-top: 1.25rem;
    --profile-settings-header-pad-top: 0.75rem;
    --settings-stack-gap: 1.25rem;
    --sidebar-accent: #f472b6;
    --sidebar-accent-strong: #ec4899;
    --sidebar-accent-soft: #f9a8d4;
    --sidebar-surface: linear-gradient(168deg, rgba(38, 20, 36, 0.98) 0%, rgba(26, 15, 28, 0.98) 52%, rgba(18, 12, 22, 0.98) 100%);
    --sidebar-border: rgba(244, 114, 182, 0.24);
    --sidebar-glow: rgba(236, 72, 153, 0.14);
    --settings-panel-accent-border: rgba(244, 114, 182, 0.52);
    --settings-panel-accent-ring: rgba(244, 114, 182, 0.14);
    --settings-input-focus-ring: rgba(244, 114, 182, 0.22);
    --admin-sidebar-width: 240px;
    --scrollbar-size: 8px;
    --scrollbar-track: var(--settings-panel-accent-ring);
    --scrollbar-thumb: var(--settings-panel-accent-border);
    --scrollbar-thumb-hover: var(--sidebar-accent);
    --site-scale: 0.9;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    /* Site-wide 90% scale (Chrome, Edge, Safari, Firefox 126+) */
    zoom: var(--site-scale);
    background: var(--bg);
}

/* PayPal popups break under html zoom — restore 100% while checkout is open. */
html.paypal-checkout-active {
    zoom: 1;
    --site-scale: 1;
}

/* Slim themed scrollbars (Firefox + Chromium) */
.custom-select-menu,
.connection-type-picker-menu,
.table-wrap,
.admin-tickets-toolbar,
.filter-bar,
.modal-body,
.profile-settings-panel,
.admin-ticket-conversation-thread:not(.ticket-progress-thread),
body.admin-settings {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

html,
body {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.custom-select-menu::-webkit-scrollbar,
.connection-type-picker-menu::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar,
.admin-tickets-toolbar::-webkit-scrollbar,
.filter-bar::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.profile-settings-panel::-webkit-scrollbar,
.admin-ticket-conversation-thread:not(.ticket-progress-thread)::-webkit-scrollbar,
body.admin-settings::-webkit-scrollbar {
    width: var(--scrollbar-size);
    height: var(--scrollbar-size);
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.custom-select-menu::-webkit-scrollbar-track,
.connection-type-picker-menu::-webkit-scrollbar-track,
.table-wrap::-webkit-scrollbar-track,
.admin-tickets-toolbar::-webkit-scrollbar-track,
.filter-bar::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track,
.profile-settings-panel::-webkit-scrollbar-track,
.admin-ticket-conversation-thread:not(.ticket-progress-thread)::-webkit-scrollbar-track,
body.admin-settings::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.custom-select-menu::-webkit-scrollbar-thumb,
.connection-type-picker-menu::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb,
.admin-tickets-toolbar::-webkit-scrollbar-thumb,
.filter-bar::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb,
.profile-settings-panel::-webkit-scrollbar-thumb,
.admin-ticket-conversation-thread:not(.ticket-progress-thread)::-webkit-scrollbar-thumb,
body.admin-settings::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 0 10px var(--sidebar-glow);
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
.custom-select-menu::-webkit-scrollbar-thumb:hover,
.connection-type-picker-menu::-webkit-scrollbar-thumb:hover,
.table-wrap::-webkit-scrollbar-thumb:hover,
.admin-tickets-toolbar::-webkit-scrollbar-thumb:hover,
.filter-bar::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover,
.profile-settings-panel::-webkit-scrollbar-thumb:hover,
.admin-ticket-conversation-thread:not(.ticket-progress-thread)::-webkit-scrollbar-thumb:hover,
body.admin-settings::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover);
    box-shadow: 0 0 14px rgba(236, 72, 153, 0.28);
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner {
    background: transparent;
}

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    /* Compensate for html zoom so the sticky footer still meets the viewport bottom */
    min-height: calc(100vh / var(--site-scale));
    min-height: calc(100dvh / var(--site-scale));
    display: flex;
    flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

.navbar {
    background: rgba(15, 15, 20, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    height: var(--navbar-height);
    padding: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(1rem / var(--site-scale));
    width: 100%;
    max-width: 1140px;
    box-sizing: border-box;
}

.navbar-brand {
    font-size: calc(1.25rem / var(--site-scale));
    font-weight: 700;
    color: var(--text) !important;
    display: flex;
    align-items: center;
    gap: calc(0.7rem / var(--site-scale));
}

.navbar-brand-mark {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
}

.navbar-brand-mark::before {
    content: "";
    position: absolute;
    inset: calc(-2px / var(--site-scale));
    border-radius: calc(8px / var(--site-scale));
    pointer-events: none;
    opacity: 0.55;
    z-index: 0;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.35), transparent 55%, rgba(255, 45, 180, 0.3));
    filter: blur(8px);
    animation: brand-glow-breathe 4.5s ease-in-out infinite;
}

.navbar-brand-logo {
    position: relative;
    z-index: 1;
    width: calc(76px / var(--site-scale));
    height: calc(48px / var(--site-scale));
    object-fit: cover;
    border-radius: calc(7px / var(--site-scale));
    flex-shrink: 0;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 14px rgba(0, 245, 255, 0.28),
        0 0 22px rgba(255, 45, 180, 0.2);
    animation: brand-logo-float 5.5s ease-in-out infinite;
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.navbar-brand:hover .navbar-brand-logo,
.navbar-brand:focus-visible .navbar-brand-logo {
    transform: scale(1.07) rotate(-2deg);
    filter:
        drop-shadow(-2px 0 0 rgba(0, 245, 255, 0.75))
        drop-shadow(2px 0 0 rgba(255, 45, 180, 0.75));
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.14),
        0 0 18px rgba(0, 245, 255, 0.4),
        0 0 28px rgba(255, 45, 180, 0.3);
    animation: brand-logo-glitch 0.55s steps(2, end) infinite;
}

.navbar-brand-name {
    letter-spacing: 0.01em;
    transition: text-shadow 0.28s ease, color 0.28s ease;
}

.navbar-brand:hover .navbar-brand-name,
.navbar-brand:focus-visible .navbar-brand-name {
    text-shadow:
        -1px 0 0 rgba(0, 245, 255, 0.55),
        1px 0 0 rgba(255, 45, 180, 0.55);
}

.navbar-brand .logo-dot {
    width: calc(10px / var(--site-scale));
    height: calc(10px / var(--site-scale));
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--primary);
}

@keyframes brand-logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes brand-glow-breathe {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(1.06); }
}

@keyframes brand-logo-glitch {
    0%, 100% { transform: scale(1.07) rotate(-2deg) translate(0, 0); }
    33% { transform: scale(1.07) rotate(-2deg) translate(-1px, 0.5px); }
    66% { transform: scale(1.07) rotate(-1.5deg) translate(1px, -0.5px); }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: calc(0.25rem / var(--site-scale));
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-muted);
    padding: calc(0.5rem / var(--site-scale)) calc(0.875rem / var(--site-scale));
    border-radius: calc(8px / var(--site-scale));
    font-size: calc(0.9rem / var(--site-scale));
    font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text);
    background: var(--bg-elevated);
}

.nav-user-link {
    color: var(--text-muted) !important;
    font-size: calc(0.85rem / var(--site-scale));
    padding: calc(0.5rem / var(--site-scale)) calc(0.875rem / var(--site-scale));
}

.nav-logout-form {
    display: inline-flex;
    margin: 0;
}

.navbar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: calc(2.5rem / var(--site-scale));
    height: calc(2.5rem / var(--site-scale));
    margin: 0;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: calc(8px / var(--site-scale));
    background: var(--bg-elevated);
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
}

.navbar-toggle:hover {
    border-color: rgba(var(--primary-rgb), 0.45);
}

.navbar-toggle:focus-visible {
    outline: none;
    border-color: var(--sidebar-accent);
    box-shadow: 0 0 0 3px var(--settings-input-focus-ring);
}

.navbar-toggle-bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: calc(0.28rem / var(--site-scale));
    width: calc(1.1rem / var(--site-scale));
}

.navbar-toggle-bar {
    display: block;
    width: 100%;
    height: calc(2px / var(--site-scale));
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar.is-nav-open .navbar-toggle-bar:nth-child(1) {
    transform: translateY(calc(0.34rem / var(--site-scale))) rotate(45deg);
}

.navbar.is-nav-open .navbar-toggle-bar:nth-child(2) {
    opacity: 0;
}

.navbar.is-nav-open .navbar-toggle-bar:nth-child(3) {
    transform: translateY(calc(-0.34rem / var(--site-scale))) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
    .navbar-toggle-bar {
        transition: none;
    }

    .navbar-brand-mark::before,
    .navbar-brand-logo,
    .navbar-brand:hover .navbar-brand-logo,
    .navbar-brand:focus-visible .navbar-brand-logo {
        animation: none;
    }
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: inline-flex;
    }

    .navbar .container {
        flex-wrap: wrap;
        position: relative;
    }

    .navbar-brand {
        flex: 1 1 auto;
        min-width: 0;
        gap: calc(0.55rem / var(--site-scale));
    }

    .navbar-brand-logo {
        width: calc(64px / var(--site-scale));
        height: calc(40px / var(--site-scale));
    }

    .navbar-brand-name {
        font-size: calc(1.05rem / var(--site-scale));
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        flex: 1 0 100%;
        gap: 0.2rem;
        margin: 0.35rem 0 0;
        padding: 0.55rem;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: var(--bg-card);
        box-shadow: var(--shadow);
        max-height: min(70vh, 28rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .navbar.is-nav-open .nav-links {
        display: flex;
    }

    .navbar.is-nav-open {
        height: auto;
        min-height: var(--navbar-height);
        align-items: flex-start;
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }

    .nav-links a,
    .nav-links .nav-user-link {
        width: 100%;
        padding: 0.7rem 0.85rem;
        box-sizing: border-box;
    }

    .nav-links .btn {
        width: 100%;
        justify-content: center;
    }

    .nav-logout-form {
        display: block;
        width: 100%;
        margin-top: 0.15rem;
    }

    body.nav-menu-open {
        overflow: hidden;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    --btn-fill: linear-gradient(
        168deg,
        rgba(var(--primary-rgb), 0.78) 0%,
        rgba(var(--primary-rgb), 0.62) 48%,
        rgba(var(--primary-rgb), 0.88) 100%
    );
    --btn-ring: linear-gradient(
        135deg,
        var(--sidebar-accent-strong) 0%,
        var(--sidebar-accent) 38%,
        var(--sidebar-accent-soft) 62%,
        var(--sidebar-accent-strong) 100%
    );
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 1.5px solid transparent;
    background:
        var(--btn-fill) padding-box,
        var(--btn-ring) border-box;
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.32),
        0 8px 24px var(--sidebar-glow);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 38%,
        rgba(255, 255, 255, 0.11) 50%,
        transparent 62%
    );
    transform: translateX(-130%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.btn-primary:hover {
    filter: none;
    --btn-fill: linear-gradient(
        168deg,
        rgba(var(--primary-rgb), 0.88) 0%,
        rgba(var(--primary-rgb), 0.72) 48%,
        rgba(var(--primary-rgb), 0.92) 100%
    );
    background:
        var(--btn-fill) padding-box,
        var(--btn-ring) border-box;
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 0 0 1px rgba(var(--primary-rgb), 0.12),
        0 4px 12px rgba(0, 0, 0, 0.34),
        0 10px 28px rgba(var(--primary-rgb), 0.24);
    transform: translateY(-1px);
}

.btn-primary:hover::after {
    transform: translateX(130%);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.28),
        0 2px 6px rgba(0, 0, 0, 0.22);
}

.btn-primary:focus-visible {
    outline: 2px solid rgba(244, 114, 182, 0.55);
    outline-offset: 2px;
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--border); color: var(--text); }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { filter: brightness(1.1); color: white; }

.btn-success { background: var(--success); color: white; }
.btn-success:hover { filter: brightness(1.08); color: white; }

.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8rem; }

.btn-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.hero {
    padding: 5rem 0 4rem;
    background: radial-gradient(ellipse at 50% 0%, rgba(var(--hero-glow-rgb), 0.15) 0%, transparent 60%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p { color: var(--text-muted); font-size: 1.125rem; margin-bottom: 2rem; }

.hero-image {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.hero-image img { width: 100%; height: 100%; object-fit: cover; }

.hero-carousel {
    position: relative;
}

.hero-carousel-viewport {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-carousel-slide,
.hero-carousel-slide.artwork-watermarked {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
    overflow: hidden;
    line-height: 0;
}

.hero-carousel-slide.is-active,
.hero-carousel-slide.artwork-watermarked.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-carousel-slide img,
.hero-carousel-slide.artwork-watermarked > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-carousel-btn {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.22);
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hero-carousel-btn:hover,
.hero-carousel-btn:focus-visible {
    background: rgba(0, 0, 0, 0.38);
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
    outline: none;
}

.hero-carousel-btn--prev { left: 0.75rem; }
.hero-carousel-btn--next { right: 0.75rem; }

.hero-carousel-btn span {
    display: block;
    margin-top: -0.1rem;
}

section:not(.profile-page-section) {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 3rem;
}

.site-copy {
    color: inherit;
}

.site-copy-block {
    margin: 0;
}

.site-copy-block + .site-copy-block {
    margin-top: 0.85rem;
}

.site-copy strong {
    color: var(--text);
    font-weight: 700;
}

.site-copy em {
    font-style: italic;
}

.site-font-default { font-family: inherit; }
.site-font-great-vibes { font-family: "Great Vibes", cursive; }
.site-font-alex-brush { font-family: "Alex Brush", cursive; }
.site-font-pacifico { font-family: "Pacifico", cursive; }
.site-font-allura { font-family: "Allura", cursive; }
.site-font-kaushan-script { font-family: "Kaushan Script", cursive; }
.site-font-lobster { font-family: "Lobster", cursive; }
.site-font-dancing-script { font-family: "Dancing Script", cursive; }
.site-font-grand-hotel { font-family: "Grand Hotel", cursive; }
.site-font-arizonia { font-family: "Arizonia", cursive; }
.site-font-amatic-sc { font-family: "Amatic SC", cursive; }
.site-font-bebas-neue { font-family: "Bebas Neue", sans-serif; }
.site-font-oswald { font-family: "Oswald", sans-serif; }
.site-font-playfair-display { font-family: "Playfair Display", serif; }
.site-font-abril-fatface { font-family: "Abril Fatface", serif; }
.site-font-montserrat { font-family: "Montserrat", sans-serif; }
.site-font-quicksand { font-family: "Quicksand", sans-serif; }
.site-font-poppins { font-family: "Poppins", sans-serif; }
.site-font-raleway { font-family: "Raleway", sans-serif; }

/* Public/preview text only — never use these metrics inside the editor picker. */
.hero .site-font-great-vibes,
.hero .site-font-alex-brush,
.hero .site-font-pacifico,
.hero .site-font-allura,
.hero .site-font-kaushan-script,
.hero .site-font-lobster,
.hero .site-font-dancing-script,
.hero .site-font-grand-hotel,
.hero .site-font-arizonia,
.hero .site-font-amatic-sc,
.section-title.site-font-great-vibes,
.section-title.site-font-alex-brush,
.section-title.site-font-pacifico,
.section-title.site-font-allura,
.section-title.site-font-kaushan-script,
.section-title.site-font-lobster,
.section-title.site-font-dancing-script,
.section-title.site-font-grand-hotel,
.section-title.site-font-arizonia,
.section-title.site-font-amatic-sc,
.site-copy.site-font-great-vibes,
.site-copy.site-font-alex-brush,
.site-copy.site-font-pacifico,
.site-copy.site-font-allura,
.site-copy.site-font-kaushan-script,
.site-copy.site-font-lobster,
.site-copy.site-font-dancing-script,
.site-copy.site-font-grand-hotel,
.site-copy.site-font-arizonia,
.site-copy.site-font-amatic-sc,
#site-editor-home-preview-panel .site-font-great-vibes,
#site-editor-home-preview-panel .site-font-alex-brush,
#site-editor-home-preview-panel .site-font-pacifico,
#site-editor-home-preview-panel .site-font-allura,
#site-editor-home-preview-panel .site-font-kaushan-script,
#site-editor-home-preview-panel .site-font-lobster,
#site-editor-home-preview-panel .site-font-dancing-script,
#site-editor-home-preview-panel .site-font-grand-hotel,
#site-editor-home-preview-panel .site-font-arizonia,
#site-editor-home-preview-panel .site-font-amatic-sc {
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.hero .site-font-bebas-neue,
.section-title.site-font-bebas-neue,
#site-editor-home-preview-panel .site-font-bebas-neue {
    letter-spacing: 0.04em;
}

.site-text-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.site-text-field-head .form-label {
    margin-bottom: 0;
}

.site-font-picker {
    position: relative;
    flex: 0 0 8.5rem;
    width: 8.5rem;
    height: 2.5rem;
    z-index: 2;
    contain: layout style;
}

.site-font-picker.is-open {
    z-index: 60;
}

.site-font-picker-trigger,
.site-font-picker-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    width: 100%;
    height: 2.5rem;
    min-height: 2.5rem;
    max-height: 2.5rem;
    padding: 0 0.65rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-elevated);
    color: var(--text);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1.2;
    letter-spacing: normal;
    text-align: left;
    overflow: hidden;
}

.site-font-picker-trigger {
    gap: 0.35rem;
}

.site-font-picker-trigger [data-site-font-trigger-label] {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 1.2rem;
    line-height: 1.2;
    letter-spacing: normal;
}

.site-font-picker-trigger .custom-select-chevron {
    margin-left: auto;
    flex-shrink: 0;
    opacity: 0.7;
}

.site-font-picker-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 70;
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    width: 100%;
    max-height: 16rem;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.4rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    box-shadow: var(--shadow);
    /* Overlay only — never participate in page layout */
    margin: 0;
}

.site-font-picker.is-open .site-font-picker-menu {
    display: flex;
}

.site-font-picker-menu[hidden] {
    display: none !important;
}

.site-font-picker-option {
    flex: 0 0 2.5rem;
    background: transparent;
    border-color: transparent;
}

.site-font-picker-option:hover,
.site-font-picker-option.is-selected {
    background: var(--bg-elevated);
    border-color: rgba(var(--primary-rgb), 0.35);
}

.site-font-field-input {
    font-family: inherit;
}

.hero .site-copy {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.section-subtitle .site-copy-block + .site-copy-block {
    margin-top: 0.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: border-color 0.2s, transform 0.2s;
}

.card:hover { border-color: rgba(var(--primary-rgb), 0.4); }

.card-spaced {
    margin-bottom: 1.5rem;
}

.home-item-grid,
.card-grid,
.portfolio-grid,
.pricing-grid {
    --home-grid-cols: 4;
    --home-grid-gap: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--home-grid-gap);
}

.home-item-grid > *,
.card-grid > *,
.portfolio-grid > .portfolio-item,
.pricing-grid > .pricing-card {
    box-sizing: border-box;
    flex: 0 1 calc((100% - (var(--home-grid-cols) - 1) * var(--home-grid-gap)) / var(--home-grid-cols));
    max-width: calc((100% - (var(--home-grid-cols) - 1) * var(--home-grid-gap)) / var(--home-grid-cols));
    min-width: 0;
}

@media (max-width: 992px) {
    .home-item-grid,
    .card-grid,
    .portfolio-grid,
    .pricing-grid { --home-grid-cols: 3; }
}

@media (max-width: 768px) {
    .home-item-grid,
    .card-grid,
    .portfolio-grid,
    .pricing-grid { --home-grid-cols: 2; }
}

@media (max-width: 480px) {
    .home-item-grid,
    .card-grid,
    .portfolio-grid,
    .pricing-grid { --home-grid-cols: 1; }
}

.portfolio-grid {
    --home-grid-cols: 5;
    justify-content: flex-start;
}

@media (max-width: 1200px) {
    .portfolio-grid { --home-grid-cols: 4; }
}

@media (max-width: 992px) {
    .portfolio-grid { --home-grid-cols: 3; }
}

@media (max-width: 768px) {
    .portfolio-grid { --home-grid-cols: 2; }
}

@media (max-width: 480px) {
    .portfolio-grid { --home-grid-cols: 1; }
}

.pricing-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
}
.pricing-card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }

.pricing-card > * {
    position: relative;
    z-index: 1;
}

.pricing-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        115deg,
        transparent 34%,
        rgba(255, 255, 255, 0.05) 44%,
        rgba(252, 231, 243, 0.28) 50%,
        rgba(244, 114, 182, 0.18) 56%,
        transparent 66%
    );
    transform: translateX(-140%);
    animation: pricing-card-shine 6s ease-in-out infinite;
}

.pricing-grid > .pricing-card:nth-child(2)::before { animation-delay: 1s; }
.pricing-grid > .pricing-card:nth-child(3)::before { animation-delay: 2s; }
.pricing-grid > .pricing-card:nth-child(4)::before { animation-delay: 3s; }
.pricing-grid > .pricing-card:nth-child(5)::before { animation-delay: 4s; }
.pricing-grid > .pricing-card:nth-child(6)::before { animation-delay: 5s; }
.pricing-grid > .pricing-card:nth-child(7)::before { animation-delay: 0.5s; }
.pricing-grid > .pricing-card:nth-child(8)::before { animation-delay: 1.5s; }

@keyframes pricing-card-shine {
    0%, 72% {
        transform: translateX(-140%);
    }

    88% {
        transform: translateX(140%);
    }

    88.01%, 100% {
        transform: translateX(-140%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pricing-card::before {
        animation: none;
    }
}

.pricing-card h3 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.pricing-card .price { font-size: 2rem; font-weight: 800; color: var(--accent); margin: 1rem 0; }
.pricing-card .desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

.pricing-card-actions {
    margin-top: 1.25rem;
}

.pricing-card-actions .btn {
    width: 100%;
}

.pricing-how-it-works {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
    text-align: center;
}

.pricing-how-it-works .section-legal-note {
    margin: 0;
}

.pricing-guide-actions {
    justify-content: center;
    flex-wrap: wrap;
}

.guide-page-switch {
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 0 1.5rem;
}

.guide-page-panel {
    display: none;
}

.guide-page-panel.is-active {
    display: block;
}

.guide-page-panel[hidden] {
    display: none !important;
}

.ticket-tier-details {
    margin-top: 0.85rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    text-align: left;
}

.ticket-tier-details.is-hidden {
    display: none;
}

.ticket-tier-details-price {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
}

.ticket-tier-details-desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.ticket-tier-details-features {
    margin-top: 0.75rem;
}

.ticket-tier-details-features:empty {
    display: none;
}

.ticket-request-next-steps {
    margin-bottom: 1rem;
    padding: 1.1rem 1.25rem;
}

.ticket-request-next-steps-title {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
}

.ticket-request-next-steps-list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.ticket-request-next-steps-list li + li {
    margin-top: 0.35rem;
}

.feature-list { list-style: none; padding: 0; margin: 0; text-align: left; }
.feature-list li {
    padding: 0.5rem 0;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
}
.feature-list li::before { content: "✓ "; color: var(--success); }

.portfolio-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.portfolio-item img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

.portfolio-item--admin .info {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 10.25rem;
    padding: 0.85rem 0.9rem 0.9rem;
}

.portfolio-item-title {
    margin: 0;
    min-height: 2.5em;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portfolio-item-meta {
    margin: 0.2rem 0 0;
    min-height: 1.25em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portfolio-item-flags {
    display: flex;
    align-items: center;
    min-height: 1.7rem;
    margin-top: 0.35rem;
}

.portfolio-item-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.7rem;
}

.portfolio-item-actions > .btn,
.portfolio-item-actions > form {
    flex: 1 1 0;
    margin: 0;
    min-width: 0;
}

.portfolio-item-actions > form .btn {
    width: 100%;
}

.portfolio-item-count {
    position: absolute;
    right: 0.55rem;
    bottom: 0.55rem;
    z-index: 3;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(15, 15, 20, 0.82);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.portfolio-edit-card {
    max-width: 860px;
}

.portfolio-edit-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0 0 0.75rem;
}

.portfolio-edit-or {
    text-align: center;
    color: var(--text-muted);
    margin: 0.85rem 0;
    font-size: 0.85rem;
}

.portfolio-edit-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.portfolio-edit-image {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elevated, var(--bg-card));
}

.portfolio-edit-image .form-label {
    margin-bottom: 0.2rem;
}

.portfolio-edit-remove {
    margin: 0.35rem 0 0;
    gap: 0.4rem;
}

.portfolio-preview-wrap {
    max-width: 360px;
}

.portfolio-preview-img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: block;
    margin-top: 0.35rem;
}

.portfolio-item .info { padding: 1rem; }
.portfolio-item h4 { margin: 0 0 0.25rem; }
.portfolio-item p { margin: 0; color: var(--text-muted); font-size: 0.875rem; }

.portfolio-homepage-link-wrap {
    text-align: center;
    margin-top: 2rem;
}

.portfolio-page-header {
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.portfolio-page-subtitle {
    margin-bottom: 0;
}

.portfolio-page-empty {
    color: var(--text-muted);
    text-align: center;
}

.portfolio-item-category {
    display: inline-block;
    margin-bottom: 0.5rem;
}

.portfolio-item-open {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    line-height: 0;
    overflow: hidden;
}

.portfolio-item-open:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.portfolio-item-open img {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.portfolio-item-open:hover img,
.portfolio-item-open:focus-visible img {
    transform: scale(1.02);
    opacity: 0.92;
}

body.portfolio-lightbox-open {
    overflow: hidden;
}

.portfolio-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    align-items: center;
    justify-content: center;
    padding: 2rem 4.25rem;
}

.portfolio-lightbox.is-open {
    display: flex;
}

.portfolio-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(0, 0, 0, 0.88);
    cursor: zoom-out;
}

.portfolio-lightbox-content {
    position: relative;
    z-index: 2;
    width: auto;
    max-width: min(92vw, 1200px);
    max-height: 90vh;
    pointer-events: none;
}

.portfolio-lightbox-figure {
    margin: 0;
    position: relative;
    width: fit-content;
    max-width: 100%;
    pointer-events: auto;
}

.portfolio-lightbox-image-wrap {
    position: relative;
    display: block;
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    background: transparent;
}

.portfolio-lightbox-image-wrap .artwork-watermark-grid {
    inset: -10%;
    column-gap: clamp(3rem, 8vw, 6rem);
    row-gap: clamp(2.5rem, 7vw, 5rem);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    transform: rotate(-26deg);
}

.portfolio-lightbox-image-wrap .artwork-watermark-grid span {
    font-size: clamp(0.95rem, 2.2vw, 1.45rem);
    letter-spacing: 0.08em;
    transform: none;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: rgba(255, 240, 248, 0.8);
    color: rgba(255, 240, 248, 0.8);
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.8),
        0 0 12px rgba(244, 114, 182, 0.35);
    animation: none;
    will-change: auto;
}

.portfolio-lightbox-image-wrap .artwork-watermark-grid span:nth-child(6n + 4),
.portfolio-lightbox-image-wrap .artwork-watermark-grid span:nth-child(6n + 5),
.portfolio-lightbox-image-wrap .artwork-watermark-grid span:nth-child(6n + 6) {
    transform: translateX(36%);
}

.portfolio-lightbox-image-wrap img,
.portfolio-lightbox-image-wrap.artwork-watermarked > img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(82vw, 1100px);
    max-height: calc(90vh - 5rem);
    object-fit: contain;
}

.artwork-watermarked {
    position: relative;
    display: block;
    overflow: hidden;
    line-height: 0;
}

.artwork-watermarked > img {
    display: block;
    width: 100%;
    height: auto;
}

.artwork-watermark {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.artwork-watermark-grid {
    position: absolute;
    inset: -55%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(5.5rem, 14vw, 11rem);
    row-gap: clamp(4.5rem, 12vw, 9rem);
    transform: rotate(-28deg);
    place-content: space-evenly space-evenly;
    justify-items: center;
    align-items: center;
}

.artwork-watermark-grid span {
    font-size: clamp(0.85rem, 2vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    user-select: none;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.38) 0%,
        #fce7f3 12.5%,
        #f472b6 25%,
        #ec4899 37.5%,
        rgba(255, 255, 255, 0.38) 50%,
        #fce7f3 62.5%,
        #f472b6 75%,
        #ec4899 87.5%,
        rgba(255, 255, 255, 0.38) 100%
    );
    background-size: 200% 100%;
    background-repeat: repeat-x;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    will-change: background-position;
    animation: artwork-watermark-shimmer 10s linear infinite;
}

@keyframes artwork-watermark-shimmer {
    0% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .artwork-watermark-grid span {
        animation: none;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.42) 0%, #f472b6 100%);
        background-size: 100% auto;
    }
}

/* Stagger alternate rows so the pattern fans across the image */
.artwork-watermark-grid span:nth-child(6n + 4),
.artwork-watermark-grid span:nth-child(6n + 5),
.artwork-watermark-grid span:nth-child(6n + 6) {
    transform: translateX(48%);
}

.artwork-watermarked--compact .artwork-watermark-grid,
.ticket-progress-image-link .artwork-watermark-grid,
.ticket-reference-image-link .artwork-watermark-grid,
.ticket-modal-reference-link .artwork-watermark-grid,
.portfolio-preview-wrap .artwork-watermark-grid {
    inset: -45%;
    column-gap: clamp(3.5rem, 10vw, 7rem);
    row-gap: clamp(3rem, 8vw, 5.5rem);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Portfolio cards: keep marks on the cropped image (overflow:hidden clips large insets) */
.portfolio-item-open .artwork-watermark-grid {
    inset: -8%;
    column-gap: clamp(1.75rem, 5vw, 3rem);
    row-gap: clamp(1.5rem, 4vw, 2.5rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    transform: rotate(-24deg);
}

/* Hero slideshow: spaced site watermarks that still protect the artwork */
.hero-carousel-slide .artwork-watermark-grid,
.hero-image > .artwork-watermarked > .artwork-watermark .artwork-watermark-grid,
.hero-image.artwork-watermarked > .artwork-watermark .artwork-watermark-grid {
    inset: -12%;
    column-gap: clamp(4.5rem, 11vw, 8rem);
    row-gap: clamp(3.75rem, 9vw, 6.5rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.artwork-watermarked--compact .artwork-watermark-grid span,
.ticket-progress-image-link .artwork-watermark-grid span,
.ticket-reference-image-link .artwork-watermark-grid span,
.ticket-modal-reference-link .artwork-watermark-grid span,
.portfolio-preview-wrap .artwork-watermark-grid span {
    font-size: clamp(0.55rem, 1.6vw, 0.78rem);
    letter-spacing: 0.06em;
    transform: none;
}

.portfolio-item-open .artwork-watermark-grid span {
    font-size: clamp(0.62rem, 1.5vw, 0.82rem);
    letter-spacing: 0.06em;
    transform: none;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: rgba(255, 240, 248, 0.78);
    color: rgba(255, 240, 248, 0.78);
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.75),
        0 0 8px rgba(244, 114, 182, 0.3);
    animation: none;
    will-change: auto;
}

.hero-carousel-slide .artwork-watermark-grid span,
.hero-image > .artwork-watermarked > .artwork-watermark .artwork-watermark-grid span,
.hero-image.artwork-watermarked > .artwork-watermark .artwork-watermark-grid span {
    font-size: clamp(0.72rem, 1.9vw, 0.98rem);
    letter-spacing: 0.07em;
    transform: none;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: rgba(255, 240, 248, 0.72);
    color: rgba(255, 240, 248, 0.72);
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.7),
        0 0 10px rgba(244, 114, 182, 0.35);
    animation: hero-carousel-watermark-pulse 6s ease-in-out infinite;
    will-change: opacity;
}

@keyframes hero-carousel-watermark-pulse {
    0%, 100% { opacity: 0.68; }
    50% { opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-carousel-slide .artwork-watermark-grid span,
    .hero-image > .artwork-watermarked > .artwork-watermark .artwork-watermark-grid span,
    .hero-image.artwork-watermarked > .artwork-watermark .artwork-watermark-grid span {
        animation: none;
        opacity: 0.8;
    }
}

.artwork-watermarked--compact .artwork-watermark-grid span:nth-child(6n + 4),
.artwork-watermarked--compact .artwork-watermark-grid span:nth-child(6n + 5),
.artwork-watermarked--compact .artwork-watermark-grid span:nth-child(6n + 6),
.ticket-progress-image-link .artwork-watermark-grid span:nth-child(6n + 4),
.ticket-progress-image-link .artwork-watermark-grid span:nth-child(6n + 5),
.ticket-progress-image-link .artwork-watermark-grid span:nth-child(6n + 6),
.ticket-reference-image-link .artwork-watermark-grid span:nth-child(6n + 4),
.ticket-reference-image-link .artwork-watermark-grid span:nth-child(6n + 5),
.ticket-reference-image-link .artwork-watermark-grid span:nth-child(6n + 6),
.ticket-modal-reference-link .artwork-watermark-grid span:nth-child(6n + 4),
.ticket-modal-reference-link .artwork-watermark-grid span:nth-child(6n + 5),
.ticket-modal-reference-link .artwork-watermark-grid span:nth-child(6n + 6),
.portfolio-preview-wrap .artwork-watermark-grid span:nth-child(6n + 4),
.portfolio-preview-wrap .artwork-watermark-grid span:nth-child(6n + 5),
.portfolio-preview-wrap .artwork-watermark-grid span:nth-child(6n + 6) {
    transform: translateX(42%);
}

.portfolio-item-open .artwork-watermark-grid span:nth-child(4n + 3),
.portfolio-item-open .artwork-watermark-grid span:nth-child(4n + 4) {
    transform: translateX(32%);
}

.hero-carousel-slide .artwork-watermark-grid span:nth-child(4n + 3),
.hero-carousel-slide .artwork-watermark-grid span:nth-child(4n + 4),
.hero-image > .artwork-watermarked > .artwork-watermark .artwork-watermark-grid span:nth-child(4n + 3),
.hero-image > .artwork-watermarked > .artwork-watermark .artwork-watermark-grid span:nth-child(4n + 4),
.hero-image.artwork-watermarked > .artwork-watermark .artwork-watermark-grid span:nth-child(4n + 3),
.hero-image.artwork-watermarked > .artwork-watermark .artwork-watermark-grid span:nth-child(4n + 4) {
    transform: translateX(36%);
}

.portfolio-lightbox-caption {
    margin-top: 0.85rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
}

.portfolio-lightbox-nav {
    position: absolute;
    top: 46%;
    transform: translateY(-50%);
    z-index: 5;
    width: 2.85rem;
    height: 2.85rem;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    background: rgba(12, 10, 18, 0.62);
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.portfolio-lightbox-nav:hover,
.portfolio-lightbox-nav:focus-visible {
    background: rgba(236, 72, 153, 0.42);
    border-color: #f9a8d4;
    outline: none;
}

.portfolio-lightbox-nav--prev { left: -3.4rem; }
.portfolio-lightbox-nav--next { right: -3.4rem; }

.portfolio-lightbox-nav[hidden] { display: none; }

@media (max-width: 720px) {
    .portfolio-lightbox {
        padding: 1.25rem 0.75rem;
    }

    .portfolio-lightbox-nav {
        width: 2.5rem;
        height: 2.5rem;
        background: rgba(12, 10, 18, 0.78);
    }

    .portfolio-lightbox-nav--prev { left: 0.45rem; }
    .portfolio-lightbox-nav--next { right: 0.45rem; }
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-control, .form-select, textarea.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

select.form-select:not(.custom-select-native):not(.connection-type-picker-native) {
    appearance: none;
    background-image: none;
}

.form-control:focus, textarea.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

.custom-select-trigger:focus,
.connection-type-picker-trigger:focus,
.form-select.custom-select-native:focus {
    outline: none;
    border-color: var(--sidebar-accent);
    box-shadow: 0 0 0 3px var(--settings-input-focus-ring);
}

textarea.form-control { min-height: 120px; resize: vertical; }

.form-check {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.form-check--pill {
    gap: 0.7rem;
}

.form-check input[type="checkbox"]:not(.pill-switch-input):not(.profile-connection-visibility-input) {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* Shared pill switch (same look as connection visibility toggles) */
.pill-switch,
.profile-connection-visibility-check {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.pill-switch-input,
.profile-connection-visibility-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.pill-switch-track,
.profile-connection-visibility-switch {
    position: relative;
    display: block;
    width: 2.55rem;
    height: 1.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22);
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
    pointer-events: none;
}

.pill-switch-thumb,
.profile-connection-visibility-thumb {
    position: absolute;
    top: 50%;
    left: 0.14rem;
    width: 1.08rem;
    height: 1.08rem;
    border-radius: 50%;
    background: #f4f4f5;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
    transform: translate(0, -50%);
    transition:
        transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.pill-switch-thumb::after,
.profile-connection-visibility-thumb::after {
    content: "";
    position: absolute;
    top: 0.31rem;
    left: 0.39rem;
    width: 0.22rem;
    height: 0.4rem;
    border: 1.5px solid transparent;
    border-right-color: rgba(var(--primary-rgb), 0.85);
    border-bottom-color: rgba(var(--primary-rgb), 0.85);
    transform: rotate(45deg) scale(0.5);
    opacity: 0;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.pill-switch-input:checked + .pill-switch-track,
.profile-connection-visibility-input:checked + .profile-connection-visibility-switch {
    background: linear-gradient(
        135deg,
        rgba(var(--primary-rgb), 0.68) 0%,
        rgba(236, 72, 153, 0.62) 100%
    );
    border-color: rgba(244, 114, 182, 0.38);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(244, 114, 182, 0.1),
        0 0 10px rgba(236, 72, 153, 0.16);
}

.pill-switch-input:checked + .pill-switch-track .pill-switch-thumb,
.profile-connection-visibility-input:checked + .profile-connection-visibility-switch .profile-connection-visibility-thumb {
    transform: translate(1.1rem, -50%);
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.pill-switch-input:checked + .pill-switch-track .pill-switch-thumb::after,
.profile-connection-visibility-input:checked + .profile-connection-visibility-switch .profile-connection-visibility-thumb::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.pill-switch-input:focus-visible + .pill-switch-track,
.profile-connection-visibility-input:focus-visible + .profile-connection-visibility-switch {
    outline: 2px solid rgba(244, 114, 182, 0.45);
    outline-offset: 2px;
}

.pill-switch:hover .pill-switch-track,
.profile-connection-visibility-check:hover .profile-connection-visibility-switch {
    border-color: rgba(244, 114, 182, 0.28);
}

.pill-switch-input:active + .pill-switch-track .pill-switch-thumb,
.profile-connection-visibility-input:active + .profile-connection-visibility-switch .profile-connection-visibility-thumb {
    transform: translate(0, -50%) scale(0.94);
}

.pill-switch-input:checked:active + .pill-switch-track .pill-switch-thumb,
.profile-connection-visibility-input:checked:active + .profile-connection-visibility-switch .profile-connection-visibility-thumb {
    transform: translate(1.1rem, -50%) scale(0.94);
}

.pill-switch-input.is-animating + .pill-switch-track::before,
.profile-connection-visibility-input.is-animating + .profile-connection-visibility-switch::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    border: 1px solid rgba(244, 114, 182, 0.35);
    opacity: 0;
    animation: pillSwitchPulse 0.38s ease-out;
}

.pill-switch-text,
.form-check--pill > label:not(.pill-switch):not(.profile-connection-visibility-check) {
    margin: 0;
    cursor: pointer;
    user-select: none;
}

@keyframes pillSwitchPulse {
    0% {
        opacity: 0.55;
        transform: scale(0.98);
    }

    100% {
        opacity: 0;
        transform: scale(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pill-switch-track,
    .pill-switch-thumb,
    .pill-switch-thumb::after,
    .profile-connection-visibility-switch,
    .profile-connection-visibility-thumb,
    .profile-connection-visibility-thumb::after {
        transition: none;
    }

    .pill-switch-input.is-animating + .pill-switch-track::before,
    .profile-connection-visibility-input.is-animating + .profile-connection-visibility-switch::before {
        animation: none;
    }
}

.field-validation-error, .text-danger {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 0.35rem;
    display: block;
}

.field-validation-valid,
.validation-summary-valid {
    display: none !important;
}

.input-validation-error {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.validation-summary-errors {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--danger);
    font-size: 0.9rem;
}

.validation-summary-errors ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.required-mark {
    color: var(--danger);
    font-weight: 600;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-success { background: rgba(34, 197, 94, 0.15); border: 1px solid var(--success); color: var(--success); }
.alert-error { background: rgba(239, 68, 68, 0.15); border: 1px solid var(--danger); color: var(--danger); }

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-pending { background: rgba(161, 161, 170, 0.2); color: #a1a1aa; }
.badge-waitlist { background: rgba(168, 85, 247, 0.2); color: #c4b5fd; }
.badge-progress { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.badge-review { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.badge-completed { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.badge-cancelled { background: rgba(239, 68, 68, 0.2); color: #f87171; }

.badge-payment-unpaid { background: rgba(161, 161, 170, 0.2); color: #a1a1aa; }
.badge-payment-deposit { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.badge-payment-paid { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.badge-payment-refunded { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }

.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

th, td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--bg-elevated);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

tbody td {
    background: var(--bg-card);
}

tr:last-child td { border-bottom: none; }

tbody tr:hover td {
    background: var(--bg-elevated);
}

.admin-settings-shell {
    position: relative;
    width: 100%;
}

@media (max-width: 900px) {
    .admin-settings-shell .profile-sidebar {
        display: none;
    }

    .admin-settings-shell .profile-settings-page {
        width: auto;
        margin-left: 0;
        max-width: none;
        padding: 0.85rem 1rem 1.5rem;
    }

    .admin-settings-shell .admin-mobile-nav {
        display: flex;
    }

    body.admin-settings {
        overflow-x: hidden;
    }

    body.admin-settings .profile-settings-panel {
        gap: 1rem;
    }

    body.admin-settings .page-header {
        margin-bottom: 1rem;
        gap: 0.65rem;
    }

    body.admin-settings .page-header h1,
    body.admin-settings .admin-tickets-page .admin-tickets-header h1 {
        font-size: 1.4rem;
        line-height: 1.25;
    }

    body.admin-settings .card {
        padding: 1rem;
    }

    .admin-mobile-nav {
        top: var(--navbar-offset);
        gap: 0.3rem;
        padding: 0.5rem 0.75rem;
        scrollbar-width: thin;
    }

    .admin-mobile-nav a {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }

    .admin-tickets-page .admin-tickets-toolbar,
    .admin-users-page .admin-tickets-toolbar,
    .admin-history-toolbar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.45rem;
    }

    .admin-tickets-page .admin-tickets-toolbar .form-select,
    .admin-tickets-page .admin-tickets-toolbar .form-control,
    .admin-tickets-page .admin-tickets-toolbar .custom-select,
    .admin-users-page .admin-tickets-toolbar .form-select,
    .admin-users-page .admin-tickets-toolbar .form-control,
    .admin-users-page .admin-tickets-toolbar .custom-select,
    .admin-history-toolbar .form-select,
    .admin-history-toolbar .form-control,
    .admin-history-toolbar .custom-select {
        min-width: 0;
        max-width: none;
        width: auto;
        flex: 1 1 7.5rem;
    }

    .admin-tickets-page .admin-tickets-toolbar .custom-select-trigger,
    .admin-users-page .admin-tickets-toolbar .custom-select-trigger,
    .admin-history-toolbar .custom-select-trigger {
        width: 100%;
        min-height: 2.15rem;
        padding: 0.4rem 0.65rem;
        font-size: 0.8rem;
    }

    .admin-tickets-page .admin-tickets-toolbar .form-select,
    .admin-tickets-page .admin-tickets-toolbar .form-control,
    .admin-users-page .admin-tickets-toolbar .form-select,
    .admin-users-page .admin-tickets-toolbar .form-control,
    .admin-history-toolbar .form-select,
    .admin-history-toolbar .form-control {
        min-height: 2.15rem;
        padding: 0.4rem 0.65rem;
        font-size: 0.8rem;
    }

    .admin-tickets-search,
    .admin-history-search {
        min-width: 0;
        width: 100%;
        max-width: none !important;
        flex: 1 1 100%;
        min-height: 2.15rem;
        padding: 0.4rem 0.65rem;
        font-size: 0.8rem;
    }

    .admin-tickets-page .admin-tickets-toolbar .btn-secondary,
    .admin-users-page .admin-tickets-toolbar .btn-secondary,
    .admin-history-toolbar .btn {
        width: auto;
        flex: 0 0 auto;
        min-height: 2.15rem;
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    body.admin-settings .filter-bar {
        gap: 0.45rem;
    }

    body.admin-settings .filter-bar .form-control,
    body.admin-settings .filter-bar .form-select,
    body.admin-settings .filter-bar .custom-select {
        min-width: 0;
        width: auto;
        flex: 1 1 7.5rem;
        min-height: 2.15rem;
        padding: 0.4rem 0.65rem;
        font-size: 0.8rem;
    }

    .admin-tickets-summary {
        gap: 0.45rem;
    }

    .admin-tickets-summary-item {
        flex: 1 1 auto;
        justify-content: center;
    }

    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .stat-card {
        padding: 0.95rem;
    }

    .stat-card .value {
        font-size: 1.55rem;
    }

    .theme-colors-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .theme-colors-actions {
        width: 100%;
        gap: 0.55rem 0.85rem;
    }

    .theme-presets-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .theme-preset-dropdown,
    .theme-preset-name-input,
    .theme-preset-save-btn {
        max-width: none;
        width: 100%;
        flex: 1 1 auto;
    }

    .theme-colors-effect {
        align-items: flex-start;
    }

    .theme-gradient-textarea {
        padding-right: 0.8rem;
        padding-bottom: 2.6rem;
    }

    .site-editor-home-preview {
        height: 22rem;
        max-height: 22rem;
    }

    .admin-ticket-details-layout {
        grid-template-columns: 1fr;
    }

    body.admin-settings .table-wrap,
    body.admin-settings .admin-tickets-table-wrap,
    body.admin-settings .admin-tickets-panel {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 520px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }

    body.admin-settings .profile-settings-page {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

.admin-mobile-nav {
    display: none;
    position: sticky;
    top: var(--navbar-offset);
    z-index: 7;
    gap: 0.35rem;
    padding: 0.65rem 1rem;
    background: linear-gradient(180deg, rgba(38, 20, 36, 0.98), rgba(22, 12, 22, 0.98));
    border-bottom: 1px solid var(--sidebar-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-mobile-nav a {
    flex: 0 0 auto;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(244, 114, 182, 0.18);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.admin-mobile-nav a:hover,
.admin-mobile-nav a.active {
    color: #fce7f3;
    border-color: rgba(244, 114, 182, 0.42);
    background: rgba(244, 114, 182, 0.14);
}

body.admin-settings .card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.admin-settings .card:hover,
body.admin-settings .card:focus-within {
    border-color: var(--settings-panel-accent-border);
    box-shadow:
        0 0 0 1px var(--settings-panel-accent-ring),
        0 4px 20px var(--sidebar-glow);
}

body.admin-settings .form-control:focus,
body.admin-settings .custom-select-trigger:focus,
body.admin-settings .connection-type-picker-trigger:focus,
body.admin-settings textarea.form-control:focus {
    outline: none;
    border-color: var(--sidebar-accent);
    box-shadow: 0 0 0 3px var(--settings-input-focus-ring);
}

.home-section-order-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.home-section-order-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    cursor: grab;
}

.home-section-order-item.is-dragging {
    opacity: 0.65;
    cursor: grabbing;
}

.home-section-order-handle {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: -0.15em;
    user-select: none;
}

.home-section-order-label {
    flex: 1;
    font-weight: 600;
}

.home-section-order-actions {
    display: flex;
    gap: 0.35rem;
}

.home-section-order-actions .btn {
    min-width: 2.25rem;
    padding-inline: 0.5rem;
}

.theme-colors-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.1rem 1.15rem;
}

.theme-colors-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

.theme-colors-heading {
    min-width: 0;
}

.theme-colors-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.theme-colors-subtitle {
    margin: 0.2rem 0 0;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.theme-colors-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.85rem;
}

.theme-colors-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.15rem 0;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.theme-colors-action:hover,
.theme-colors-action.is-active {
    color: var(--primary);
}

.theme-colors-action.is-active {
    border-bottom-color: var(--primary);
}

.theme-colors-action-icon {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
}

.theme-colors-divider {
    height: 1px;
    background: color-mix(in srgb, var(--border) 85%, transparent);
    margin: 0;
}

.saved-theme-presets {
    margin: 0;
    padding: 0;
}

.theme-presets-label {
    margin: 0 0 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}

.theme-presets-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.5rem;
}

.theme-preset-dropdown {
    flex: 1 1 11rem;
    min-width: 10rem;
    max-width: 16rem;
}

.theme-preset-dropdown.is-empty .theme-preset-dropdown-trigger {
    opacity: 0.72;
}

.theme-preset-dropdown-trigger {
    min-height: 2.35rem;
    padding: 0.45rem 0.7rem;
    background: var(--bg);
}

.theme-preset-dropdown-swatch {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
    flex-shrink: 0;
}

.theme-preset-dropdown-label {
    font-size: 0.86rem;
}

.theme-preset-dropdown-menu {
    min-width: 100%;
}

.theme-preset-dropdown-option {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
}

.theme-preset-dropdown-option.custom-select-option {
    padding: 0;
}

.theme-preset-dropdown-option:hover,
.theme-preset-dropdown-option:focus-within {
    background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.theme-preset-dropdown-option.is-selected {
    background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.theme-preset-dropdown-apply {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0.55rem 0.65rem;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.theme-preset-dropdown-option-swatch {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
    flex-shrink: 0;
}

.theme-preset-dropdown-option-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-preset-dropdown-delete {
    margin: 0 0.35rem 0 0;
    padding: 0.15rem 0.4rem;
    border: 0;
    border-radius: 0.35rem;
    background: transparent;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.theme-preset-dropdown-delete:hover {
    color: #f87171;
    background: color-mix(in srgb, #f87171 12%, transparent);
}

.theme-preset-name-input {
    flex: 1 1 12rem;
    min-width: 8rem;
    min-height: 2.35rem;
    font-size: 0.86rem;
}

.theme-preset-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2.35rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
}

.theme-preset-save-icon {
    width: 0.95rem;
    height: 0.95rem;
}

.saved-theme-presets-empty {
    margin: 0.45rem 0 0;
    font-size: 0.8rem;
}

.saved-theme-presets-message {
    margin: 0.45rem 0 0;
    font-size: 0.8rem;
}

.saved-theme-presets-message--error {
    color: #f87171;
}

.theme-color-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem 0.75rem;
    margin: 0;
    padding: 0;
}

.theme-color-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0;
    min-width: 0;
}

.theme-color-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.theme-color-hint {
    margin: 0;
    font-size: 0.68rem;
    line-height: 1.35;
    color: var(--text-muted);
    min-height: 2.1em;
}

.theme-color-display-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.1rem;
    padding: 0.32rem 0.5rem;
    border-radius: 0.35rem;
    background: var(--bg);
    border: 1px solid var(--border);
}

.theme-color-input-native {
    width: 1.5rem;
    height: 1.5rem;
    min-width: 1.5rem;
    min-height: 1.5rem;
    padding: 0;
    margin: 0;
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    border-radius: 0.28rem;
    cursor: pointer;
    background: transparent;
    flex-shrink: 0;
}

.theme-color-hex {
    flex: 1 1 auto;
    min-width: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.76rem;
    font-weight: 500;
    color: #d4d4d8;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-color-underline {
    display: block;
    height: 2px;
    border-radius: 999px;
    margin-top: 0.28rem;
    background: var(--theme-color-accent, #2a2a37);
}

.theme-colors-advanced {
    margin: 0;
}

.theme-gradient-editor {
    position: relative;
}

.theme-gradient-textarea {
    min-height: 5.5rem;
    padding: 0.75rem 6.5rem 0.75rem 0.8rem;
    resize: vertical;
    background: var(--bg);
    border-color: var(--border);
    color: var(--text);
}

.theme-gradient-copy-btn {
    position: absolute;
    right: 0.55rem;
    bottom: 0.55rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.55rem;
    border: 1px solid color-mix(in srgb, var(--primary) 55%, transparent);
    border-radius: 0.35rem;
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    color: var(--primary);
    font-size: 0.74rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.theme-gradient-copy-btn svg {
    width: 0.85rem;
    height: 0.85rem;
}

.theme-gradient-copy-btn:hover {
    background: color-mix(in srgb, var(--primary) 18%, transparent);
    border-color: var(--primary);
}

.theme-colors-effect {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
}

.theme-colors-effect .pill-switch {
    margin-top: 0.15rem;
}

.theme-colors-effect-copy {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    min-width: 0;
}

.theme-colors-effect-icon {
    font-size: 1rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.theme-colors-effect-title {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.theme-colors-effect-hint {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
}

#site-editor-form .theme-colors-card .form-group {
    margin-bottom: 0;
}

.site-editor-gradient-input {
    font-size: 0.78rem;
    line-height: 1.45;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 900px) {
    .theme-color-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .theme-preset-dropdown {
        max-width: none;
        flex-basis: 100%;
    }
}

@media (max-width: 520px) {
    .theme-color-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .theme-preset-save-btn {
        flex: 1 1 100%;
        justify-content: center;
    }
}

/* Site editor — homepage preview */
.site-editor-preview-card {
    margin: 0;
}

.site-editor-save-bar {
    position: sticky;
    bottom: 0;
    z-index: 30;
    margin-top: 1.25rem;
    padding: 0.85rem 0 0.15rem;
    background: linear-gradient(
        to top,
        var(--bg) 0%,
        var(--bg) 55%,
        rgba(0, 0, 0, 0)
    );
}

.site-editor-save-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
    padding: 0.85rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow:
        0 -10px 28px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(var(--primary-rgb), 0.08);
}

.site-editor-save-bar.is-dirty .site-editor-save-bar-inner {
    border-color: rgba(var(--primary-rgb), 0.45);
    box-shadow:
        0 -10px 28px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(var(--primary-rgb), 0.16);
}

.site-editor-save-bar-status {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.site-editor-save-bar.is-dirty .site-editor-save-bar-status {
    color: var(--accent);
    font-weight: 600;
}

.site-editor-save-bar-status .is-hidden {
    display: none;
}

.site-editor-save-bar #site-editor-save-btn {
    margin-left: auto;
}

@media (max-width: 600px) {
    .site-editor-save-bar-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .site-editor-save-bar #site-editor-save-btn {
        margin-left: 0;
        width: 100%;
    }
}

.site-editor-home-preview {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    isolation: isolate;
    height: 32rem;
    max-height: 32rem;
}

.site-editor-home-preview-panel {
    color: var(--text);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.site-editor-home-preview-scroll {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.site-editor-home-preview-panel .site-editor-preview-navbar {
    position: sticky;
    top: 0;
    z-index: 2;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg-card) 92%, transparent);
    backdrop-filter: blur(8px);
    padding: 0.45rem 0;
}

.site-editor-home-preview-panel .site-editor-preview-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
}

.site-editor-home-preview-panel .site-editor-preview-hero {
    padding: 1.5rem 0 1.25rem;
}

.site-editor-home-preview-panel .hero-grid {
    gap: 1rem;
    grid-template-columns: 1.1fr 0.9fr;
}

.site-editor-home-preview-panel .site-editor-preview-tagline {
    color: var(--accent);
    font-weight: 600;
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
}

.site-editor-home-preview-panel .hero h1 {
    font-size: 1.35rem;
    margin-bottom: 0.45rem;
}

.site-editor-home-preview-panel .hero p {
    font-size: 0.72rem;
    margin-bottom: 0.75rem;
    line-height: 1.45;
}

.site-editor-home-preview-panel .btn-group {
    gap: 0.35rem;
}

.site-editor-home-preview-panel .btn {
    font-size: 0.62rem;
    padding: 0.35rem 0.55rem;
    pointer-events: none;
}

.site-editor-home-preview-panel .site-editor-preview-closed,
.site-editor-home-preview-panel .site-editor-preview-open {
    font-size: 0.62rem;
    padding: 0.35rem 0.55rem;
}

.site-editor-home-preview-panel section:not(.profile-page-section) {
    padding: 1.25rem 0;
}

.site-editor-home-preview-panel .section-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.site-editor-home-preview-panel .section-subtitle {
    font-size: 0.68rem;
    margin-bottom: 0.85rem;
}

.site-editor-home-preview-panel .about-content p,
.site-editor-home-preview-panel .about-content .site-copy {
    font-size: 0.68rem;
    line-height: 1.45;
}

.site-editor-home-preview-panel .hours-header .section-title {
    font-size: 0.82rem;
    margin-bottom: 0;
}

.site-editor-home-preview-panel .hours-header .section-title::after {
    width: 1.5rem;
    margin-top: 0.45rem;
}

.site-editor-home-preview-panel .hours-timezone-caption {
    font-size: 0.52rem;
    margin-top: 0.35rem;
    letter-spacing: 0.06em;
}

.site-editor-home-preview-panel .hours-row {
    padding: 0.3rem 0;
    gap: 0.65rem;
}

.site-editor-home-preview-panel .hours-day,
.site-editor-home-preview-panel .hours-time,
.site-editor-home-preview-panel .hours-line {
    font-size: 0.62rem;
}

.site-editor-home-preview-panel .site-editor-preview-portfolio-grid,
.site-editor-home-preview-panel .site-editor-preview-pricing-grid {
    --home-grid-cols: 2;
    --home-grid-gap: 0.55rem;
}

.site-editor-home-preview-panel .portfolio-item .info {
    padding: 0.45rem;
}

.site-editor-home-preview-panel .portfolio-item .info h4 {
    font-size: 0.68rem;
    margin: 0;
}

.site-editor-home-preview-panel .pricing-card h3 {
    font-size: 0.75rem;
}

.site-editor-home-preview-panel .pricing-card .price {
    font-size: 0.95rem;
}

.site-editor-home-preview-panel .pricing-card .desc {
    font-size: 0.62rem;
}

.site-editor-home-preview-panel .about-content,
.site-editor-home-preview-panel .hours-content,
.site-editor-home-preview-panel .cta-section > .container {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.site-editor-home-preview-panel .cta-section {
    padding: 1.25rem 0 1.5rem;
    background: transparent;
}

.site-editor-home-preview-panel .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
}

.admin-tickets-page .admin-tickets-header {
    margin-bottom: 1.25rem;
}

.admin-tickets-page .admin-tickets-header h1 {
    font-size: 1.85rem;
    font-weight: 700;
}

.admin-tickets-page .admin-tickets-toolbar,
.admin-users-page .admin-tickets-toolbar {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 1rem;
    align-items: center;
    gap: 0.5rem;
}

.admin-tickets-page .admin-tickets-toolbar .form-select,
.admin-tickets-page .admin-tickets-toolbar .form-control,
.admin-tickets-page .admin-tickets-toolbar .custom-select,
.admin-users-page .admin-tickets-toolbar .form-select,
.admin-users-page .admin-tickets-toolbar .form-control,
.admin-users-page .admin-tickets-toolbar .custom-select {
    width: auto;
    padding: 0.42rem 0.65rem;
    font-size: 0.82rem;
    border-radius: 6px;
    min-height: 0;
}

.admin-tickets-page .admin-tickets-toolbar .form-select,
.admin-tickets-page .admin-tickets-toolbar .custom-select,
.admin-users-page .admin-tickets-toolbar .form-select,
.admin-users-page .admin-tickets-toolbar .custom-select {
    min-width: 9.5rem;
    max-width: 11rem;
    flex: 0 0 auto;
}

.admin-tickets-page .admin-tickets-toolbar .custom-select-trigger,
.admin-users-page .admin-tickets-toolbar .custom-select-trigger {
    padding: 0.42rem 0.65rem;
    font-size: 0.82rem;
    border-radius: 6px;
}

.admin-tickets-page .admin-tickets-toolbar .admin-tickets-search,
.admin-users-page .admin-tickets-toolbar .admin-tickets-search {
    min-width: 12rem;
    max-width: 22rem;
    flex: 1 1 14rem;
}

.admin-tickets-page .admin-tickets-toolbar .btn-secondary,
.admin-users-page .admin-tickets-toolbar .btn-secondary {
    flex-shrink: 0;
    padding: 0.42rem 0.75rem;
    font-size: 0.82rem;
    border-radius: 6px;
}

.admin-tickets-row-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.45rem;
}

.admin-tickets-inline-form {
    display: inline;
    margin: 0;
}

.admin-tickets-text-btn {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    font-size: 0.78rem;
    color: var(--accent);
    cursor: pointer;
}

.admin-tickets-text-btn:hover {
    color: var(--text);
    text-decoration: underline;
}

.admin-tickets-action-sep {
    color: var(--text-muted);
    font-size: 0.78rem;
    user-select: none;
}

.admin-tickets-row-link {
    cursor: pointer;
}

.admin-tickets-title-link {
    color: inherit;
    text-decoration: none;
}

.admin-tickets-title-link:hover {
    color: var(--accent);
}

.admin-tickets-search {
    min-width: 280px;
    flex: 1;
}

.admin-tickets-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.admin-tickets-toolbar .form-select {
    min-width: 13rem;
}

.admin-tickets-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.admin-tickets-summary-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-card);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.admin-tickets-summary-item strong {
    color: var(--text);
    font-weight: 600;
}

.admin-tickets-filter-hint {
    margin: -0.35rem 0 1rem;
    font-size: 0.85rem;
}

.admin-table-panel,
.admin-tickets-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.admin-table-panel .table-wrap,
.admin-table-wrap,
.admin-tickets-table-wrap {
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.admin-table-panel .admin-data-table,
.admin-data-table,
.admin-tickets-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-data-table thead th,
.admin-tickets-table thead th {
    padding: 0.7rem 1rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.admin-table-panel .admin-data-table tbody td,
.admin-tickets-panel .admin-tickets-table tbody td,
.admin-data-table tbody td,
.admin-tickets-table tbody td {
    padding: 0.65rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    background: var(--bg-card);
}

.admin-tickets-table--compact .admin-tickets-client {
    font-weight: 500;
    font-size: 0.9rem;
}

.admin-tickets-table--compact .admin-tickets-subject {
    max-width: 14rem;
}

.admin-tickets-table--compact .badge {
    font-size: 0.68rem;
    padding: 0.2rem 0.5rem;
}

.admin-tickets-table--compact .btn-sm {
    padding: 0.3rem 0.75rem;
    font-size: 0.78rem;
}

.admin-table-panel .admin-data-table tbody tr:last-child td,
.admin-data-table tbody tr:last-child td,
.admin-tickets-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table-panel .admin-data-table tbody tr:hover td,
.admin-tickets-panel .admin-tickets-table tbody tr:hover td,
.admin-data-table tbody tr:hover td,
.admin-tickets-table tbody tr:hover td {
    background: var(--bg-elevated);
}

.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

.admin-pagination-status {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.admin-tickets-ref {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.admin-tickets-client-cell {
    min-width: 10rem;
}

.admin-tickets-client {
    display: block;
    font-weight: 600;
    color: var(--text);
}

.admin-tickets-client-email {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-tickets-subject {
    max-width: 20rem;
    font-weight: 500;
}

.admin-tickets-subject-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-tickets-date {
    font-size: 0.88rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.ticket-kind-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid var(--border);
    color: var(--text-muted);
    background: var(--bg);
}

.ticket-kind-pill--profile {
    color: var(--accent);
    border-color: rgba(var(--primary-rgb), 0.35);
    background: rgba(var(--primary-rgb), 0.1);
}

.ticket-kind-pill--commission {
    color: var(--text);
    background: var(--bg-elevated);
}

.admin-tickets-view-cell {
    text-align: right;
    white-space: nowrap;
}

.admin-tickets-empty {
    padding: 2.75rem 1.15rem !important;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.92rem;
    border-bottom: none !important;
}

.admin-tickets-table {
    width: 100%;
    margin: 0;
}

.admin-tickets-empty-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

/* Ticket modal */
/* Shared ticket detail pages */
.ticket-page {
    padding: 2rem 1.5rem;
}

.ticket-page--narrow {
    max-width: 820px;
    margin: 0 auto;
}

.ticket-page-back {
    display: inline-block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.ticket-page-back:hover {
    color: var(--text);
}

.ticket-page-meta {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.ticket-ids-card {
    margin-bottom: 1.25rem;
}

.ticket-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ticket-section-title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
}

.ticket-card-title {
    margin: 0 0 1rem;
    font-size: 1rem;
}

.ticket-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.ticket-meta-item-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.ticket-meta-item-value {
    margin: 0;
    font-size: 0.95rem;
}

.ticket-body-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1rem 0;
}

.ticket-body-text {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.55;
}

.ticket-thread-empty {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.ticket-reply-card {
    margin-top: 1.5rem;
}

.ticket-table .btn-sm {
    min-width: 4.25rem;
}

@media (max-width: 900px) {
    .ticket-layout-grid {
        grid-template-columns: 1fr;
    }

    .ticket-meta-grid {
        grid-template-columns: 1fr;
    }

    .admin-tickets-table thead {
        display: none;
    }

    .admin-tickets-table tbody tr {
        display: block;
        padding: 0.85rem 1rem;
        border-bottom: 1px solid var(--border);
    }

    .admin-tickets-table tbody td {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.35rem 0;
        border: none;
    }

    .admin-tickets-table tbody td::before {
        content: attr(data-label);
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--text-muted);
        flex-shrink: 0;
    }

    .admin-tickets-view-cell {
        text-align: left;
        padding-top: 0.65rem !important;
    }

    .admin-tickets-view-cell::before {
        display: none;
    }
}

.admin-tickets-muted {
    color: var(--text-muted);
}

.admin-back-link {
    display: inline-block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.admin-back-link:hover {
    color: var(--text);
}

.admin-user-header.page-header {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    padding: 0;
}

.admin-user-title-row {
    position: sticky;
    top: var(--navbar-offset);
    z-index: 8;
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
    padding: 0.5rem 0 0.65rem;
    background: transparent;
}

.admin-user-title-row h1 {
    margin: 0;
    font-size: 1.75rem;
}

.admin-user-role {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid var(--border);
}

.admin-user-role--admin {
    color: var(--accent);
    background: rgba(var(--primary-rgb), 0.12);
    border-color: rgba(var(--primary-rgb), 0.35);
}

.admin-user-role--developer {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.35);
}

.admin-user-role--artist {
    color: var(--accent);
    background: rgba(var(--primary-rgb), 0.12);
    border-color: rgba(var(--primary-rgb), 0.35);
}

.admin-user-role--client {
    color: var(--text-muted);
    background: var(--bg);
}

.admin-user-role--banned {
    color: #f87171;
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.35);
}

.admin-user-role--active {
    color: #86efac;
    background: rgba(134, 239, 172, 0.12);
    border-color: rgba(134, 239, 172, 0.35);
}

.admin-user-role--supporter {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.14);
    border-color: rgba(251, 191, 36, 0.4);
}

.admin-user-role--secure {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.35);
}

.admin-user-role--staff {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
}

.admin-user-role--email-unconfirmed {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.14);
    border-color: rgba(251, 191, 36, 0.4);
}

.admin-users-email-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.admin-users-email-confirm {
    font-size: 0.68rem;
    padding: 0.12rem 0.45rem;
}

.admin-user-role-card {
    margin-bottom: 1rem;
}

.admin-user-tag-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.admin-user-role-divider {
    border: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    margin: 1.1rem 0 0.85rem;
}

.admin-user-design-card {
    margin-bottom: 1rem;
}

.admin-user-credentials-form {
    margin-top: 0.75rem;
}

.admin-user-credentials-fields {
    display: grid;
    gap: 0.85rem;
    max-width: 28rem;
}

@media (min-width: 720px) {
    .admin-user-credentials-fields {
        grid-template-columns: 1fr 1fr;
        align-items: end;
    }

    .admin-user-credentials-fields .form-group:first-child,
    .admin-user-credentials-fields > button {
        grid-column: 1 / -1;
    }
}

.ticket-request-details p {
    margin: 0.5rem 0 0;
}

.ticket-request-details p:first-child {
    margin-top: 0.75rem;
}

.ticket-details-client-line {
    color: var(--text-muted);
    margin: 0.35rem 0 0;
}

.ticket-details-ids {
    padding: 1rem 1.25rem;
}


.client-ticket-details-page {
    padding: 2rem 1.5rem;
    max-width: 1140px;
}
.tickets-page {
    padding: 2rem 1.5rem;
    max-width: 1140px;
}

.client-tickets-header {
    align-items: flex-start;
}

.client-tickets-subtitle {
    color: var(--text-muted);
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
}

.client-tickets-empty-card {
    padding: 0;
    overflow: hidden;
}

.client-tickets-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(3.5rem, 10vw, 5.5rem) 2rem;
    min-height: min(420px, 55vh);
}

.client-tickets-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.75rem;
    height: 4.75rem;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary);
}

.client-tickets-empty-title {
    margin: 0 0 0.75rem;
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--text);
}

.client-tickets-empty-text {
    margin: 0;
    max-width: 32rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.client-tickets-empty-action {
    margin-top: 1.75rem;
    min-width: 11.5rem;
}

.client-tickets-list-card .profile-fieldset {
    margin: 0;
}

.client-tickets-list-hint {
    margin-top: 0;
}

.client-tickets-table-wrap {
    margin-top: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: none;
    overflow-x: auto;
}

.client-tickets-table {
    width: 100%;
    margin: 0;
}

.client-tickets-table tbody td {
    background: var(--bg-card);
}

.client-ticket-back-link {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.client-ticket-title {
    margin-top: 0.5rem;
}

.client-ticket-id-line {
    color: var(--text-muted);
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
}

.client-ticket-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.client-ticket-delete-form {
    display: inline;
}

.client-ticket-info-pre {
    white-space: pre-wrap;
}

.client-ticket-details-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--settings-stack-gap);
    margin-top: 0;
}

.client-ticket-details-layout > .client-ticket-info-card {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    align-self: stretch;
    height: auto;
}

.client-ticket-details-layout > .client-ticket-right-stack {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: var(--settings-stack-gap);
    width: 100%;
    min-width: 0;
}

.client-ticket-right-stack > .client-ticket-conversation {
    flex: 1 1 0;
    margin: 0;
    min-width: 0;
    width: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    grid-column: unset;
    grid-row: unset;
}

.client-ticket-right-stack > .ticket-progress-panel {
    flex: 1 1 0;
    margin: 0;
    min-width: 0;
    width: auto;
    max-width: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    grid-column: unset;
    grid-row: unset;
}

.client-ticket-right-stack .ticket-progress-thread {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
}

.client-ticket-right-stack > .client-ticket-conversation .admin-ticket-conversation-thread:not(.ticket-progress-thread) {
    flex: 1 1 auto;
    height: var(--ticket-chat-thread-height);
    min-height: var(--ticket-chat-thread-height);
    max-height: var(--ticket-chat-thread-height);
}

.client-ticket-details-layout > .card {
    min-width: 0;
}
.ticket-progress-panel {
    padding: 0;
    overflow: hidden;
}

.admin-ticket-details-layout > .ticket-progress-panel {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
}

.ticket-progress-subtitle {
    margin: 0.2rem 0 0;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.ticket-progress-panel .admin-ticket-conversation-header {
    padding: 0.65rem 1rem;
}

.ticket-progress-panel .admin-ticket-conversation-header h3 {
    font-size: 0.95rem;
}

.ticket-progress-panel .ticket-progress-thread {
    gap: 0.45rem;
    padding: 0.65rem 0.85rem;
}

.ticket-progress-panel .admin-ticket-chat-date {
    margin: 0.15rem 0;
    font-size: 0.68rem;
}

.ticket-progress-row--incoming {
    gap: 0.45rem;
}

.ticket-progress-panel .admin-ticket-chat-avatar {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.68rem;
}

.ticket-progress-bubble {
    max-width: min(88%, 22rem);
}

.ticket-progress-bubble--compact {
    max-width: min(78%, 13.5rem);
    padding: 0.4rem 0.55rem;
}

.ticket-progress-bubble-head {
    margin-bottom: 0.2rem;
    gap: 0.35rem;
}

.ticket-progress-bubble--compact .admin-ticket-chat-name {
    font-size: 0.76rem;
}

.ticket-progress-bubble--compact .admin-ticket-chat-bubble-head time {
    font-size: 0.66rem;
}

.ticket-progress-caption {
    white-space: pre-wrap;
    font-size: 0.82rem;
    line-height: 1.35;
    margin-bottom: 0.3rem;
}

.ticket-progress-bubble--compact .ticket-progress-caption {
    font-size: 0.78rem;
    margin-bottom: 0.25rem;
}

.ticket-progress-image-link {
    display: block;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--radius) - 4px);
}

.ticket-progress-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: calc(var(--radius) - 4px);
    border: 1px solid var(--border);
}

.ticket-progress-spoiler {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.45rem 0.5rem;
    border: 1px dashed rgba(244, 114, 182, 0.45);
    border-radius: 6px;
    background: rgba(244, 114, 182, 0.08);
    color: var(--sidebar-accent-soft);
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ticket-progress-spoiler:hover,
.ticket-progress-spoiler:focus-visible {
    background: rgba(244, 114, 182, 0.14);
    border-color: rgba(244, 114, 182, 0.65);
    color: #fce7f3;
    outline: none;
}

.ticket-progress-reply .form-group + .form-group {
    margin-top: 0.75rem;
}

.ticket-progress-reply .ticket-progress-note-input {
    min-height: 0;
    height: 3.35rem;
    line-height: 1.45;
    padding: 0.5rem 0.75rem;
    resize: vertical;
}

.ticket-progress-reply .admin-ticket-chat-send {
    margin-top: 0.75rem;
}

.client-ticket-info-card {
    align-self: flex-start;
    height: auto;
    padding: 1.35rem 1.5rem;
}

.client-ticket-info-split {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 1.5rem 1.75rem;
}

.client-ticket-info-main {
    flex: 1.1 1 0;
    min-width: 0;
}

.client-ticket-info-aside {
    flex: 0.9 1 0;
    min-width: 0;
    padding-left: 1.5rem;
    border-left: 1px solid var(--border);
}

.client-ticket-info-aside .client-ticket-info-block:first-child {
    margin-top: 0;
}

.client-ticket-info-card .form-row {
    gap: 1.15rem 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.client-ticket-info-card .form-row.client-ticket-info-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem 1.75rem;
    margin-bottom: 0.25rem;
}

@media (max-width: 800px) {
    .client-ticket-info-split {
        flex-direction: column;
    }

    .client-ticket-info-aside {
        padding-left: 0;
        padding-top: 1rem;
        border-left: none;
        border-top: 1px solid var(--border);
    }

    .client-ticket-info-card .form-row.client-ticket-info-meta {
        grid-template-columns: 1fr;
    }
}

.client-ticket-payment {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.client-ticket-payment-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.client-ticket-payment-heading .client-ticket-info-label {
    margin: 0;
}

.client-ticket-payment-heading .badge,
.badge-payment-unpaid,
.badge-payment-deposit,
.badge-payment-paid,
.badge-payment-refunded {
    white-space: nowrap;
}

.client-ticket-paypal {
    margin-top: 1.25rem;
    padding-top: 0;
    border-top: none;
}

.client-ticket-info-card .client-ticket-info-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.25rem 0;
}

.client-ticket-info-card .client-ticket-info-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.client-ticket-info-card .client-ticket-info-value {
    margin: 0.35rem 0 0;
}

.client-ticket-info-card .client-ticket-info-value:last-child,
.client-ticket-info-card .client-ticket-info-block:last-child {
    margin-bottom: 0;
}

.client-ticket-paypal-summary {
    margin: 0.35rem 0 0.75rem;
    color: var(--text-muted, #d4a3bc);
    font-size: calc(1em + 2pt);
}
.client-ticket-paypal-meta {
    opacity: 0.85;
}
.client-ticket-paypal-pay-now {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 360px;
    min-height: 48px;
    padding: 0.85rem 1.25rem;
    border: 0;
    border-radius: 999px;
    background: #0070ba;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 4px 14px rgba(0, 112, 186, 0.35);
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.client-ticket-paypal-pay-now:hover {
    background: #005ea6;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 8px 20px rgba(0, 112, 186, 0.4);
}
.client-ticket-paypal-pay-now:active {
    background: #004c87;
    transform: translateY(0);
}
.client-ticket-paypal-pay-now:focus-visible {
    outline: 2px solid #79c3fc;
    outline-offset: 3px;
}
.client-ticket-paypal-status {
    margin-top: 0.75rem;
}
.client-ticket-paypal-error {
    color: #f87171;
}
body.client-ticket-paypal-modal-open {
    overflow: hidden;
}
.client-ticket-paypal-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.client-ticket-paypal-modal.is-open {
    display: flex;
}
.client-ticket-paypal-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}
.client-ticket-paypal-modal-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(100%, 28.5rem);
    max-width: 28.5rem;
    max-height: 92vh;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(38, 20, 31, 0.98) 0%, rgba(22, 12, 18, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.1rem 1.15rem 1.2rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
/* Card step: never clip field boxes — grow with content; overlay scrolls if needed. */
.client-ticket-paypal-modal.is-card-step {
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.25rem 1rem;
}
.client-ticket-paypal-modal.is-card-step .client-ticket-paypal-modal-dialog {
    width: min(100%, 36rem);
    max-width: 36rem;
    max-height: none;
    height: auto;
    overflow: visible;
    margin: 0 auto;
}
.client-ticket-paypal-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    flex-shrink: 0;
}
.client-ticket-paypal-modal-title {
    margin: 0 0 0.2rem;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
}
.client-ticket-paypal-modal-close {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-muted, var(--muted-text, #d4a3bc));
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.15rem;
}
.client-ticket-paypal-modal-close:hover {
    color: var(--text);
}
.client-ticket-paypal-modal-desc {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted, var(--muted-text, #d4a3bc));
}
.client-ticket-paypal-buttons {
    width: 100%;
    min-width: 0;
    margin-bottom: 0.55rem;
}
.client-ticket-paypal-methods {
    flex: 0 0 auto;
    min-width: 0;
}
.client-ticket-paypal-methods.is-hidden,
.client-ticket-paypal-card-panel.is-hidden,
[data-paypal-methods].is-hidden {
    display: none !important;
}
/* Keep gray animated PayPal card button; clip its built-in Powered by (we show one at modal bottom). */
.client-ticket-paypal-card-funding-btn {
    height: 45px;
    max-height: 45px;
    margin-bottom: 0;
    overflow: hidden;
}
.client-ticket-paypal-methods .client-ticket-paypal-buttons {
    margin-bottom: 0.55rem;
}
.client-ticket-paypal-paylater-hint {
    margin: -0.15rem 0 0.55rem;
    font-size: 0.78rem;
    line-height: 1.35;
}
.client-ticket-paypal-paylater-block {
    margin-top: 0.35rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.client-ticket-paypal-paylater-divider {
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-muted, var(--muted-text, #d4a3bc));
}
.client-ticket-paypal-paylater-message {
    margin: 0 0 0.55rem;
    min-height: 1.25rem;
}
.client-ticket-paypal-card-panel {
    display: block;
    flex: 0 0 auto;
    min-width: 0;
    overflow: visible;
}
.client-ticket-paypal-card-scroll {
    display: block;
    overflow: visible;
    max-height: none;
    padding: 0;
}
.client-ticket-paypal-card-menu-btn {
    display: none;
}
.client-ticket-paypal-card-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #79c3fc;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    flex-shrink: 0;
}
.client-ticket-paypal-card-back:hover {
    color: #b6e0ff;
    text-decoration: underline;
}
.client-ticket-paypal-card-back:focus-visible {
    outline: 2px solid #79c3fc;
    outline-offset: 3px;
    border-radius: 4px;
}
.client-ticket-paypal-powered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0.85rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    color: rgba(212, 163, 188, 0.85);
    flex-shrink: 0;
}
.client-ticket-paypal-powered-mark {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    color: #009cde;
}
.client-ticket-paypal-powered-mark span {
    color: #003087;
}
.client-ticket-paypal-card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.65rem 0.65rem;
    width: 100%;
    /* Iframe mount is taller to avoid PayPal border clipping; visible inputs stay ~42px. */
    --paypal-card-host-h: 56px;
    --paypal-field-h: 42px;
    --paypal-field-radius: 4px;
    --paypal-field-border: 1px solid #cfcfd0;
}
.client-ticket-paypal-card-field {
    min-width: 0;
    overflow: visible;
}
.client-ticket-paypal-card-span-2 {
    grid-column: 1 / -1;
}
.client-ticket-paypal-field-label {
    display: block;
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(232, 210, 220, 0.9);
}
.client-ticket-paypal-billing-label {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(232, 210, 220, 0.95);
}
/* Card Field hosts — taller mount only; PayPal draws the smaller visible box inside. */
.client-ticket-paypal-card-host,
#paypal-card-number,
#paypal-card-expiry,
#paypal-card-cvv {
    display: block;
    width: 100%;
    height: var(--paypal-card-host-h);
    min-height: var(--paypal-card-host-h);
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-sizing: border-box;
    overflow: visible;
}
.client-ticket-paypal-card-host > iframe,
#paypal-card-number > iframe,
#paypal-card-expiry > iframe,
#paypal-card-cvv > iframe {
    display: block !important;
    width: 100% !important;
    height: var(--paypal-card-host-h) !important;
    min-height: var(--paypal-card-host-h) !important;
    max-height: none !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* Billing inputs — match the visible Card number / Expires / CSC box size. */
.client-ticket-paypal-input {
    display: block;
    width: 100%;
    height: var(--paypal-field-h);
    min-height: var(--paypal-field-h);
    margin: 0;
    padding: 0 12px;
    border: var(--paypal-field-border);
    border-radius: var(--paypal-field-radius);
    background: #ffffff;
    color: #2c2e2f;
    box-sizing: border-box;
    outline: none;
    font-size: 16px;
    line-height: 1.25;
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    appearance: none;
    -webkit-appearance: none;
}
.client-ticket-paypal-input:focus {
    border-color: #0070ba;
}
.client-ticket-paypal-input::placeholder {
    color: #6c7378;
}
.client-ticket-paypal-card-submit {
    max-width: none;
    width: 100%;
    min-height: 46px;
    margin-top: 0.15rem;
}
.client-ticket-paypal-status {
    margin-top: 0.7rem;
    margin-bottom: 0;
    flex-shrink: 0;
}
@media (max-width: 480px) {
    .client-ticket-paypal-modal {
        padding: 0.4rem;
        align-items: flex-end;
    }
    .client-ticket-paypal-modal.is-card-step {
        align-items: flex-end;
        padding: 0.4rem;
    }
    .client-ticket-paypal-modal-dialog,
    .client-ticket-paypal-modal.is-card-step .client-ticket-paypal-modal-dialog {
        width: 100%;
        max-width: 100%;
        max-height: none;
        border-radius: 16px 16px 0 0;
    }
    .client-ticket-paypal-card-grid {
        --paypal-card-host-h: 56px;
        --paypal-field-h: 42px;
        gap: 0.55rem 0.55rem;
    }
}
.client-ticket-info-card .client-ticket-info-block + .client-ticket-info-block {
    margin-top: 1rem;
}

.client-ticket-conversation .admin-ticket-conversation-thread:not(.ticket-progress-thread) {
    flex: 0 0 auto;
    height: var(--ticket-chat-thread-height);
    min-height: var(--ticket-chat-thread-height);
    max-height: var(--ticket-chat-thread-height);
}

@media (max-width: 800px) {
    .client-ticket-details-layout {
        flex-direction: column;
        align-items: stretch;
    }

    .client-ticket-details-layout > .client-ticket-info-card,
    .client-ticket-details-layout > .client-ticket-right-stack {
        flex: 0 0 auto;
        width: 100%;
    }

    .client-ticket-details-layout > .client-ticket-right-stack {
        flex-direction: column;
    }

    .client-ticket-right-stack > .ticket-progress-panel,
    .client-ticket-right-stack > .client-ticket-conversation {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        overflow: visible;
    }

    .client-ticket-right-stack .ticket-progress-thread {
        flex: none;
        max-height: 28rem;
    }

    .client-ticket-right-stack > .client-ticket-conversation .admin-ticket-conversation-thread:not(.ticket-progress-thread) {
        flex: 0 0 auto;
        height: var(--ticket-chat-thread-height);
        min-height: var(--ticket-chat-thread-height);
        max-height: var(--ticket-chat-thread-height);
    }
}

.admin-ticket-details-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--settings-stack-gap);
    margin: 0;
    width: 100%;
}

.admin-ticket-details-layout > .card {
    min-width: 0;
}

.admin-ticket-conversation {
    grid-column: 1;
    margin-top: 0;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 0;
    --ticket-chat-row-height: 5.35rem;
    --ticket-chat-row-gap: 0.85rem;
    --ticket-chat-thread-padding: 2.3rem;
    --ticket-chat-visible-rows: 3;
    --ticket-typing-slot-height: 1.05rem;
    --ticket-chat-thread-height: calc(
        var(--ticket-chat-thread-padding) +
        (var(--ticket-chat-visible-rows) * var(--ticket-chat-row-height)) +
        ((var(--ticket-chat-visible-rows) - 1) * var(--ticket-chat-row-gap))
    );
}

.client-ticket-right-stack > .admin-ticket-conversation {
    grid-column: unset;
}

.admin-ticket-details-layout > .admin-ticket-conversation {
    align-self: stretch;
}

.admin-ticket-conversation-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.admin-ticket-conversation-header h3 {
    margin: 0;
    font-size: 1.05rem;
}

.admin-ticket-conversation-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-ticket-conversation-status::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--success);
}

.admin-ticket-conversation-thread {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.admin-ticket-conversation-thread:not(.ticket-progress-thread) {
    flex: 0 0 auto;
    height: var(--ticket-chat-thread-height);
    min-height: var(--ticket-chat-thread-height);
    max-height: var(--ticket-chat-thread-height);
    overflow-x: hidden;
    overflow-y: auto;
}

.admin-ticket-conversation-thread:not(.ticket-progress-thread)::-webkit-scrollbar-button {
    display: none;
    height: 0;
    width: 0;
}

.admin-ticket-conversation-thread:not(.ticket-progress-thread)::-webkit-scrollbar-corner {
    background: transparent;
}

.admin-ticket-conversation-messages {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: var(--ticket-chat-row-gap, 0.85rem);
    min-height: calc(100% - var(--ticket-typing-slot-height));
    padding: 0.85rem 0.65rem 0.15rem 1.15rem;
    overflow: visible;
}

.admin-ticket-conversation-thread:not(:has(.ticket-typing-slot)) .admin-ticket-conversation-messages {
    min-height: 100%;
    padding-bottom: 0.85rem;
}

.admin-ticket-chat-date {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.35rem 0;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.admin-ticket-chat-date::before,
.admin-ticket-chat-date::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.admin-ticket-chat-date span {
    flex-shrink: 0;
}

.admin-ticket-chat-row {
    display: flex;
    align-items: flex-end;
    gap: 0.65rem;
}

.admin-ticket-chat-row--staff {
    justify-content: flex-end;
}

.admin-ticket-chat-avatar {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text);
    overflow: hidden;
}

.admin-ticket-chat-avatar--staff {
    background: rgba(var(--primary-rgb), 0.22);
    border-color: rgba(var(--primary-rgb), 0.38);
}

.admin-ticket-chat-avatar--staff:has(img) {
    background: transparent;
    border-color: var(--border);
}

.admin-ticket-chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-ticket-chat-bubble {
    max-width: min(78%, 28rem);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.65rem 0.85rem;
}

.admin-ticket-chat-bubble-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.admin-ticket-chat-name {
    font-weight: 600;
    font-size: 0.88rem;
}

.admin-ticket-chat-name--staff {
    color: var(--primary);
}

.admin-ticket-chat-bubble-head time {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.admin-ticket-chat-body {
    white-space: pre-wrap;
    font-size: 0.92rem;
    line-height: 1.45;
}

.admin-ticket-chat-attachment {
    display: block;
    margin-top: 0.55rem;
    border-radius: 0.55rem;
    overflow: hidden;
    border: 1px solid var(--border);
    max-width: min(100%, 18rem);
    background: var(--bg);
}

.admin-ticket-chat-attachment img {
    display: block;
    width: 100%;
    height: auto;
}

.admin-ticket-chat-attach {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.75rem;
    margin: 0.65rem 0 0.25rem;
    position: relative;
}

.admin-ticket-chat-attach-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    border-radius: 0.4rem;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.admin-ticket-chat-attach-label:hover {
    border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
}

.admin-ticket-chat-attach-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.admin-ticket-chat-attach-name {
    font-size: 0.82rem;
    color: var(--text-muted);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 16rem;
}

.admin-ticket-chat-attach-hint {
    margin: 0 0 0.85rem;
}

.admin-ticket-conversation-reply {
    flex-shrink: 0;
    margin-top: auto;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
    position: relative;
}

.admin-ticket-conversation-reply .form-group {
    margin-bottom: 0;
}

.admin-ticket-conversation-reply .form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.admin-ticket-chat-input {
    background: var(--bg-card);
    border-color: var(--border);
}

.admin-ticket-conversation-reply:not(.ticket-progress-reply) textarea.admin-ticket-chat-input {
    height: 5.5rem;
    min-height: 5.5rem;
    max-height: 5.5rem;
    resize: none;
    overflow-y: auto;
    line-height: 1.45;
}

.ticket-typing-slot {
    position: sticky;
    bottom: 0;
    z-index: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: var(--ticket-typing-slot-height);
    padding: 0 0.65rem 0.1rem 1.15rem;
    box-sizing: border-box;
    background: var(--bg-card);
}

.ticket-typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    min-height: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.ticket-typing-indicator.is-hidden {
    visibility: hidden;
    opacity: 0;
}

.ticket-typing-name {
    font-weight: 600;
    color: var(--text);
}

.ticket-typing-dots {
    display: inline-flex;
    align-items: flex-end;
    gap: 0.18rem;
    height: 0.85rem;
}

.ticket-typing-dots span {
    width: 0.28rem;
    height: 0.28rem;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.35;
    animation: ticketTypingDot 1.15s infinite ease-in-out;
}

.ticket-typing-dots span:nth-child(2) {
    animation-delay: 0.18s;
}

.ticket-typing-dots span:nth-child(3) {
    animation-delay: 0.36s;
}

@keyframes ticketTypingDot {
    0%, 70%, 100% {
        opacity: 0.35;
        transform: translateY(0);
    }

    35% {
        opacity: 1;
        transform: translateY(-0.18rem);
    }
}

.admin-ticket-chat-send {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.admin-ticket-chat-send-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.ticket-client-account {
    margin-bottom: 0;
}

.ticket-client-account-header {
    padding: 1rem 1.25rem 0;
}

.ticket-client-account-grid {
    padding: 0.75rem 1.25rem 1.25rem;
}

.admin-user-overview {
    margin-bottom: 1.25rem;
}

.admin-user-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem 1.5rem;
}

.admin-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.admin-meta-item .badge {
    white-space: nowrap;
    width: fit-content;
}

.admin-meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.admin-meta-value {
    font-size: 0.95rem;
    color: var(--text);
    word-break: break-word;
}

.admin-meta-item--full {
    grid-column: 1 / -1;
}

.admin-meta-item--full .admin-account-details-tag-list {
    margin-top: 0.15rem;
}

.admin-meta-link {
    color: var(--accent);
    font-weight: 500;
}

.admin-meta-link:hover {
    color: var(--primary);
}

.admin-sensitive-email.is-blurred {
    filter: blur(6px);
    -webkit-filter: blur(6px);
    user-select: none;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.admin-sensitive-email.is-blurred:hover {
    filter: blur(4px);
    -webkit-filter: blur(4px);
}

.admin-sensitive-email.is-revealed {
    filter: none;
    -webkit-filter: none;
    user-select: text;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .admin-sensitive-email.is-blurred {
        transition: none;
    }
}

.admin-user-overview .admin-section-header {
    margin-bottom: 0.75rem;
}

.admin-user-overview .admin-account-details-tags {
    margin: 1rem 0 0;
}

.admin-account-details-tags {
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
}

.admin-account-details-tags-label {
    margin: 0 0 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.admin-account-details-tag-list,
.admin-users-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.admin-users-tag-list {
    min-width: 7rem;
    max-width: 14rem;
}

.admin-users-tag-list .admin-user-role {
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
}

.admin-user-tickets {
    padding: 0;
    overflow: hidden;
}

.admin-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.admin-section-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.admin-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.admin-empty-note {
    margin: 0;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.admin-user-tickets-table {
    border: none;
    border-radius: 0;
    margin: 0 1.5rem 1.5rem;
    background: var(--bg-card);
    box-shadow: none;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--settings-stack-gap);
    margin-bottom: 0;
}

.admin-users-presence-grid {
    margin-bottom: 0.5rem;
}

.admin-users-presence-hint {
    margin: 0 0 1.25rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.stat-card .label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; }
.stat-card .value { font-size: 2rem; font-weight: 800; color: var(--accent); }

.stat-card--link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.stat-card--link:hover {
    border-color: var(--primary);
    cursor: pointer;
}

.admin-tiers-order-hint {
    margin: 0;
}

.admin-tier-row-actions-cell {
    text-align: right;
    white-space: nowrap;
}

.admin-tier-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
}

.admin-tier-inline-form {
    display: inline;
    margin: 0;
}

.admin-tier-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    margin-left: 0.15rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    cursor: grab;
    flex-shrink: 0;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.admin-tier-drag-handle:hover {
    border-color: var(--primary);
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.admin-tier-drag-handle:active {
    cursor: grabbing;
}

.admin-tier-drag-grip {
    display: block;
    width: 0.9rem;
    height: 0.55rem;
    background:
        linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
        linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat,
        linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
}

.admin-tiers-table tbody tr.is-dragging {
    opacity: 0.55;
}

.admin-tiers-table tbody tr.is-dragging td {
    background: var(--bg-elevated);
}

.admin-history-intro {
    color: var(--text-muted);
    margin: 0;
}

.admin-history-table-title {
    margin: 0;
}

.admin-history-empty {
    color: var(--text-muted);
}

.admin-dashboard-recent-title {
    margin: 0;
}

.admin-history-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.admin-history-toolbar .form-select,
.admin-history-toolbar .form-control,
.admin-history-toolbar .custom-select {
    max-width: 260px;
}

.admin-history-search {
    flex: 1;
    min-width: 200px;
    max-width: 360px !important;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 { margin: 0; font-size: 1.75rem; }

.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.auth-card h1 { margin: 0 0 0.5rem; font-size: 1.5rem; }
.auth-card .subtitle { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.9rem; }
.auth-card .auth-forgot-link {
    margin-top: 0.45rem;
}
.auth-card .auth-forgot-link a {
    font-size: 0.85rem;
}
.auth-password-rules {
    margin: 0 0 1.5rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-muted);
    font-size: 0.88rem;
}
.auth-password-rules-title {
    margin: 0 0 0.45rem;
    font-weight: 600;
    color: var(--text, #1f2937);
}
.auth-password-rules ul {
    margin: 0;
    padding-left: 1.15rem;
}
.auth-password-rules li + li {
    margin-top: 0.25rem;
}
.auth-reset-timer {
    text-align: center;
    margin: 0 0 1.35rem;
    padding: 1rem 1rem 0.85rem;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.03);
}
.auth-reset-timer-label {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.auth-reset-timer-value {
    margin: 0.35rem 0 0.25rem;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    color: var(--text, #1f2937);
}
.auth-reset-timer.is-expired .auth-reset-timer-value {
    color: var(--danger, #b91c1c);
}
.auth-reset-timer-note {
    margin: 0;
}

.captcha-group {
    margin: 0 0 1.25rem;
}

.auth-card .captcha-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.auth-card .captcha-group .form-label {
    text-align: center;
}

.auth-card .captcha-group .field-validation-error {
    display: block;
    width: 100%;
    text-align: center;
}

.captcha-group .form-label {
    display: block;
    margin-bottom: 0.5rem;
}

.captcha-badge-slot {
    min-height: 60px;
    display: flex;
    align-items: center;
}

.captcha-badge-slot .grecaptcha-badge {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    display: inline-block !important;
    visibility: visible !important;
    margin: 0;
    box-shadow: none !important;
}

.captcha-group .g-recaptcha {
    min-height: 78px;
    transform-origin: center center;
}

.auth-card .captcha-group .g-recaptcha {
    display: flex;
    justify-content: center;
    width: 100%;
}

.auth-card .captcha-group .g-recaptcha > div {
    margin-inline: auto;
}

.captcha-disclosure {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.captcha-disclosure a {
    color: var(--accent);
}

.captcha-placeholder {
    padding: 0.85rem 1rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: var(--bg);
}

.captcha-placeholder-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

footer {
    margin-top: auto;
    width: 100%;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(8, 8, 12, 0.38);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.85rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.footer-copy {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-credit {
    margin: 0;
    background: linear-gradient(90deg, #ffffff 0%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.9rem;
    line-height: 1.4;
}

.footer-legal-link {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-legal-link:hover {
    color: var(--text);
}

.legal-page {
    padding: 2rem 1.5rem;
    max-width: 960px;
}

.legal-page-updated {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.legal-page-toc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.legal-page-toc a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.legal-page .card-spaced + .card-spaced {
    margin-top: 1.25rem;
}

.legal-page-section-title {
    font-size: 1.25rem;
    margin: 0 0 1rem;
}

.legal-page-heading {
    font-size: 1.05rem;
    margin: 0 0 0.65rem;
}

.legal-page-text {
    margin: 0 0 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.legal-page-text--last {
    margin-bottom: 0;
}

.how-it-works-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.how-it-works-step + .how-it-works-step {
    margin-top: 1.35rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.how-it-works-actions {
    margin: 0.25rem 0 0.75rem;
}

.how-it-works-legal-note {
    margin-bottom: 0;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
}

.footer-contacts a {
    background: linear-gradient(90deg, #ffffff 0%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
}

.footer-contacts a:hover {
    background: linear-gradient(90deg, #fce7f3 0%, #f9a8d4 45%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.closed-banner {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--warning);
    color: var(--warning);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
}

.open-banner {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid var(--success);
    color: var(--success);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-align: center;
}

.commission-status-banner {
    flex: 1 1 100%;
    width: 100%;
    margin: 0 0 0.5rem;
}

.commission-status-banner--with-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.commission-status-banner-main {
    display: block;
}

.queue-hint-line {
    display: block;
    font-size: 0.92em;
    font-weight: 500;
    opacity: 0.92;
    line-height: 1.35;
}

main { flex: 1; }

body:not(.profile-page) main {
    padding-top: var(--navbar-offset);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state h3 { color: var(--text); margin-bottom: 0.5rem; }

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.filter-bar .form-control, .filter-bar .form-select,
.filter-bar .custom-select {
    width: auto;
    min-width: 150px;
}

.about-section {
    background: transparent;
    border: none;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 2.25rem;
    background: rgba(10, 10, 12, 0.68);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.38);
}

.about-content p,
.about-content .site-copy {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.hours-section {
    background: transparent;
    border: none;
}

.hours-content {
    max-width: 520px;
    margin: 0 auto;
    padding: 2.25rem 2.5rem 2rem;
    background: rgba(10, 10, 12, 0.68);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.38);
}

.hours-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.hours-header .section-title {
    margin-bottom: 0;
    font-size: 1.65rem;
    letter-spacing: -0.02em;
}

.hours-header .section-title::after {
    content: "";
    display: block;
    width: 2.5rem;
    height: 2px;
    margin: 0.85rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.55), transparent);
}

.hours-timezone-caption {
    margin: 0.65rem 0 0;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hours-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hours-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hours-row:first-child {
    padding-top: 0;
}

.hours-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.hours-day {
    font-weight: 500;
    font-size: 0.98rem;
    color: var(--text);
    letter-spacing: 0.01em;
}

.hours-time {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.hours-row.is-closed .hours-time {
    color: var(--text-muted);
    opacity: 0.8;
    font-style: italic;
}

.hours-row--single {
    justify-content: center;
}

.hours-line {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
}

.is-hidden {
    display: none !important;
}

.cta-section {
    text-align: center;
    padding: 4rem 0;
    background: transparent;
}

.cta-section > .container {
    max-width: 700px;
    padding: 2rem 2.25rem;
    background: rgba(10, 10, 12, 0.68);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.38);
}

.section-legal-note {
    margin: 1.25rem 0 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.section-legal-note a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.tickets-create-terms-note {
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.tickets-create-terms-note a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.uid-code {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 0.55rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: 0.78rem;
    color: var(--accent);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.uid-code:hover {
    border-color: var(--primary);
    background: var(--bg-elevated);
}

.uid-code.copied {
    border-color: var(--success);
    color: var(--success);
}

.uid-display {
    display: inline;
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent);
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    cursor: default;
    pointer-events: none;
}

.uid-copy-hint {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    font-family: inherit;
}

.uid-code.copied .uid-copy-hint {
    color: var(--success);
}

.uid-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.uid-block .uid-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.uid-full {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    word-break: break-all;
}

/* Profile — account settings (natural page flow, no inner scroll panels) */
.profile-settings-shell {
    position: relative;
    width: 100%;
}

.profile-settings-page {
    box-sizing: border-box;
    width: min(var(--profile-settings-content-max), calc(100vw - var(--profile-sidebar-clearance) - var(--profile-sidebar-offset)));
    max-width: var(--profile-settings-content-max);
    padding: var(--profile-settings-page-pad-top) 1.5rem 2rem;
    margin-left: max(
        var(--profile-sidebar-clearance),
        calc(50vw - min(var(--profile-settings-content-max), calc(100vw - var(--profile-sidebar-clearance) - var(--profile-sidebar-offset))) / 2)
    );
    margin-right: auto;
    min-width: 0;
}

.profile-settings-panel {
    display: flex;
    flex-direction: column;
    gap: var(--settings-stack-gap);
    min-width: 0;
}

.profile-settings-panel > :where(
    h2,
    h3,
    p,
    form,
    .page-header,
    .card,
    .stat-grid,
    .filter-bar,
    .admin-table-panel,
    .admin-tickets-panel,
    .table-wrap,
    .admin-ticket-details-layout,
    .admin-ticket-workspace-page,
    .ticket-workspace,
    .admin-tickets-page,
    .admin-users-page,
    .admin-history-page,
    .profile-personal-body
) {
    margin-block: 0;
}

.profile-settings-panel .stat-grid,
.profile-settings-panel .admin-dashboard-recent-title,
.profile-settings-panel .admin-history-intro,
.profile-settings-panel .admin-history-table-title,
.profile-settings-panel .admin-tiers-order-hint,
.profile-settings-panel .filter-bar,
.profile-settings-panel .admin-ticket-details-layout,
.profile-settings-panel .admin-ticket-workspace-page,
.profile-settings-panel .ticket-workspace,
.profile-settings-panel .ticket-client-account,
.profile-settings-panel .admin-user-header.page-header,
.profile-settings-panel .admin-tickets-page .admin-tickets-header,
.profile-settings-panel .admin-tickets-page .admin-tickets-toolbar,
.profile-settings-panel .admin-users-page .admin-tickets-toolbar,
.profile-settings-panel .profile-personal-body > .profile-preview-card,
.profile-settings-panel .profile-personal-media-card,
.profile-settings-panel .client-tickets-empty-card,
.profile-settings-panel .client-tickets-list-card {
    margin-block: 0;
}

.profile-settings-panel .admin-tickets-page,
.profile-settings-panel .admin-users-page,
.profile-settings-panel .admin-history-page,
.profile-settings-panel .admin-ticket-workspace-page,
.profile-settings-panel .profile-personal-body,
.profile-settings-panel > form:not(.filter-bar) {
    display: flex;
    flex-direction: column;
    gap: var(--settings-stack-gap);
}

.profile-essentials-form {
    display: flex;
    flex-direction: column;
    gap: var(--settings-stack-gap);
}

.profile-essentials-form > .card {
    margin: 0;
}

.profile-essentials-form .profile-fieldset:last-child,
.profile-essentials-form .profile-fieldset {
    margin-bottom: 0;
}

.profile-fieldset-last {
    margin-bottom: 0;
}

.profile-discord-linked-id {
    margin: 0 0 0.5rem;
}

.profile-discord-pending-note {
    margin-top: 0.75rem;
}

.profile-localization-dst {
    margin-bottom: 0;
    min-height: 2.75rem;
    align-items: center;
}

.profile-localization-row {
    align-items: end;
}

.profile-localization-dst-wrap {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.profile-localization-dst-label {
    visibility: hidden;
    margin-bottom: 0.5rem;
}

.profile-settings-panel > form.filter-bar {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
}

.profile-settings-panel > form.filter-bar .form-control {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

.profile-settings-panel .card,
.profile-settings-panel .stat-card {
    padding: var(--settings-stack-gap);
}

.profile-settings-panel .admin-ticket-conversation {
    padding: 0;
}

.profile-settings-panel > p {
    color: var(--text-muted);
}

.profile-settings-panel > .alert {
    margin: 0;
}

.profile-settings-panel .tickets-closed-notice {
    margin-bottom: 0;
}

.tickets-row-closed td {
    color: var(--text-muted);
}

.tickets-row-closed .badge {
    opacity: 0.92;
}

.tickets-closed-notice {
    margin-bottom: 1rem;
}

.tickets-create-page {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
}

.tickets-create-page .card {
    width: 100%;
}

.tickets-create-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.tickets-create-footer .btn-group {
    margin: 0;
}

.tickets-create-attach {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.tickets-create-attach-label {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1rem;
    border-radius: var(--radius);
    background: var(--surface-2, rgba(255, 255, 255, 0.06));
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.95rem;
    cursor: pointer;
    margin: 0;
}

.tickets-create-attach-label:hover {
    border-color: var(--accent);
    color: var(--accent);
}

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

.tickets-create-attach-name {
    color: var(--text-muted);
    font-size: 0.85rem;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-reference-image-wrap {
    margin-top: 1rem;
}

.ticket-reference-image-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.ticket-reference-image-link {
    display: inline-block;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.ticket-reference-image {
    display: block;
    max-width: min(100%, 420px);
    max-height: 320px;
    width: auto;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    object-fit: contain;
}

.ticket-modal-reference-link {
    display: inline-block;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.ticket-modal-reference-image {
    display: block;
    max-width: min(100%, 420px);
    width: auto;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    object-fit: contain;
}

.site-main {
    display: flex;
    flex-direction: column;
}

.layout-flash-container {
    order: -1;
    padding-top: 1rem;
}

.layout-flash-container:empty {
    display: none;
}

.profile-settings-panel .page-header {
    position: static;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.profile-settings-panel .admin-user-header.page-header {
    position: static;
    padding: 0;
}

.profile-settings-panel .admin-user-title-row {
    position: sticky;
    top: var(--navbar-offset);
    z-index: 8;
    padding: 0.5rem 0 0.65rem;
    background: transparent;
}

.profile-settings-panel .page-header h1 {
    font-size: 1.65rem;
}

.profile-settings-panel .card {
    margin: 0;
}

body.profile-settings .profile-settings-panel .card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.profile-settings .profile-settings-panel .card:hover,
body.profile-settings .profile-settings-panel .card:focus-within {
    border-color: var(--settings-panel-accent-border);
    box-shadow:
        0 0 0 1px var(--settings-panel-accent-ring),
        0 4px 20px var(--sidebar-glow);
}

body.profile-settings .form-control:focus,
body.profile-settings .custom-select-trigger:focus,
body.profile-settings .connection-type-picker-trigger:focus,
body.profile-settings textarea.form-control:focus {
    outline: none;
    border-color: var(--sidebar-accent);
    box-shadow: 0 0 0 3px var(--settings-input-focus-ring);
}

.profile-settings-panel .profile-fieldset:last-child {
    margin-bottom: 0;
}

.profile-sidebar {
    background: var(--sidebar-surface);
    border: 1px solid var(--sidebar-border);
    border-radius: calc(var(--radius) + 2px);
    padding: 0.85rem 0 1rem;
    position: fixed;
    top: calc(var(--navbar-offset) + var(--profile-settings-page-pad-top) + var(--profile-settings-header-pad-top));
    left: var(--profile-sidebar-offset);
    width: var(--profile-sidebar-width);
    z-index: 9;
    box-shadow:
        0 10px 32px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(244, 114, 182, 0.05) inset,
        0 12px 40px var(--sidebar-glow);
    overflow: hidden;
}

.profile-sidebar::before {
    content: "";
    display: block;
    height: 3px;
    margin: 0 1rem 0.95rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--sidebar-accent-strong), var(--sidebar-accent), var(--sidebar-accent-soft));
    box-shadow: 0 0 18px rgba(244, 114, 182, 0.35);
}

@media (max-width: 900px) {
    .profile-settings-page {
        width: auto;
        margin-left: 0;
        max-width: none;
    }

    .profile-sidebar {
        position: static;
        width: auto;
        margin: 0 1.5rem 1rem;
        box-shadow:
            0 6px 20px rgba(0, 0, 0, 0.28),
            0 8px 28px var(--sidebar-glow);
    }
}

.profile-sidebar-title {
    margin: 0 1.25rem 0.85rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--sidebar-accent-soft);
}

.profile-sidebar-nav a {
    display: block;
    margin: 0 0.65rem;
    padding: 0.62rem 0.85rem;
    color: rgba(244, 244, 245, 0.72);
    font-size: 0.9rem;
    font-weight: 500;
    border-left: none;
    border-radius: 9px;
    transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.profile-sidebar-nav a:hover {
    color: #fce7f3;
    background: rgba(244, 114, 182, 0.1);
    box-shadow: inset 3px 0 0 rgba(244, 114, 182, 0.45);
}

.profile-sidebar-nav a.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(244, 114, 182, 0.22), rgba(244, 114, 182, 0.08));
    box-shadow:
        inset 3px 0 0 var(--sidebar-accent),
        0 0 20px rgba(244, 114, 182, 0.08);
}

.profile-sidebar-link-muted {
    margin-top: 0.65rem;
    border-top: 1px solid rgba(244, 114, 182, 0.16);
    padding-top: 0.95rem !important;
    font-size: 0.85rem !important;
    color: rgba(244, 244, 245, 0.55) !important;
}

.profile-sidebar-link-muted:hover {
    color: var(--sidebar-accent-soft) !important;
    background: rgba(244, 114, 182, 0.06);
    box-shadow: none;
}

.profile-fieldset {
    border: none;
    margin: 0 0 1.75rem;
    padding: 0;
}

.profile-fieldset legend {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding: 0;
}

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

.profile-fieldset-heading {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.profile-fieldset-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.profile-fieldset-heading-row .profile-fieldset-heading {
    margin: 0;
}

.profile-account-since {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 0.1rem;
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #fce7f3 12.5%,
        #f472b6 25%,
        #ec4899 37.5%,
        #ffffff 50%,
        #fce7f3 62.5%,
        #f472b6 75%,
        #ec4899 87.5%,
        #ffffff 100%
    );
    background-size: 200% 100%;
    background-repeat: repeat-x;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    will-change: background-position;
    transform: translateZ(0);
    animation: profile-account-since-shimmer 5s linear infinite;
}

@keyframes profile-account-since-shimmer {
    0% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-account-since {
        animation: none;
        background: linear-gradient(90deg, #ffffff 0%, #f472b6 100%);
        background-size: 100% auto;
        filter: none;
    }
}

@media (max-width: 600px) {
    .profile-fieldset-heading-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .profile-account-since {
        text-align: left;
        white-space: normal;
    }
}

.profile-account-uid {
    display: inline;
    margin-left: 0.6rem;
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent);
    white-space: nowrap;
    user-select: none;
    cursor: default;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.35rem 0 0;
}

.form-hint-inline {
    font-weight: 400;
    color: var(--text-muted);
}

.profile-request-name-btn {
    margin-top: 0.65rem;
}

.profile-pending-request-note {
    margin-top: 0.5rem;
    color: var(--success);
}

.profile-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.profile-modal.is-open {
    display: flex;
}

.profile-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}

.profile-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 26rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.profile-modal-title {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
}

.profile-modal-desc {
    margin: 0 0 1.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.profile-modal-validation {
    margin-bottom: 0.75rem;
}

.profile-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

/* Personal settings — preview + form layout */
.profile-personal-body {
    display: flex;
    flex-direction: column;
    gap: var(--settings-stack-gap);
    width: 100%;
}

.profile-personal-form {
    display: contents;
}

.profile-settings-panel .profile-personal-body > .profile-preview-card {
    margin-bottom: 0;
}

.profile-settings-panel .profile-personal-media-card {
    margin-bottom: 0;
}

.profile-personal-form-stack {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
}

.profile-personal-media-card .profile-fieldset {
    margin-bottom: 0;
}

.profile-personal-details-card .profile-fieldset:last-of-type {
    margin-bottom: 1rem;
}

.profile-personal-media-col {
    min-width: 0;
    margin: 0;
}

.profile-personal-full-row,
.profile-personal-connections-fieldset {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
}

.profile-preview-card {
    margin: 0;
}

.profile-preview-fieldset {
    border: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.profile-preview-fieldset legend {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    padding: 0;
    flex-shrink: 0;
}

.profile-preview-note {
    margin: 0 0 0.75rem;
    flex-shrink: 0;
}

.profile-preview-open {
    flex-shrink: 0;
    margin: 1rem 0 0;
    font-size: 0.82rem;
}

.profile-preview-open a {
    color: var(--accent);
}

.profile-personal-preview {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #050505;
    color: #e5e5e5;
    min-height: 22rem;
    max-height: 28rem;
    height: 26rem;
    isolation: isolate;
}

.profile-personal-preview .profile-page-wrap,
.profile-personal-preview .profile-page-wrap--settings-preview {
    position: absolute;
    inset: 0;
    margin: 0;
    flex: none;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
    background: #050505;
}

.profile-personal-preview .profile-page-wrap--settings-preview .profile-page {
    flex: 0 1 auto;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0.65rem 0.75rem 0;
    overflow: hidden;
    font-size: 0.92rem;
}

.profile-personal-preview .profile-page-content,
.profile-personal-preview .profile-page-sections {
    flex: 0 1 auto;
    min-height: 0;
    overflow: hidden;
}

.profile-personal-preview .profile-page-sections {
    gap: 0.12rem;
}

.profile-personal-preview .profile-page-wrap--settings-preview .profile-page-head {
    gap: 0.65rem;
}

.profile-personal-preview .profile-page-wrap--settings-preview .profile-page-avatar {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 0.9rem;
}

.profile-personal-preview .profile-page-wrap--settings-preview .profile-page-name {
    font-size: 1.1rem;
    line-height: 1.1;
    color: #fafafa;
}

.profile-personal-preview .profile-page-wrap--settings-preview .profile-page-back {
    margin-bottom: 0.2rem;
    font-size: 0.65rem;
}

.profile-personal-preview .profile-page-wrap--settings-preview .profile-page-divider {
    margin: 0.2rem 0 0.12rem;
}

.profile-personal-preview .profile-page-wrap--settings-preview .profile-page-label {
    margin-bottom: 0.08rem;
    font-size: 0.58rem;
}

.profile-personal-preview .profile-page-wrap--settings-preview .profile-page-bio {
    font-size: 0.72rem;
    line-height: 1.3;
    -webkit-line-clamp: 3;
}

.profile-personal-preview .profile-page-wrap--settings-preview .profile-page-chip {
    padding: 0.22rem 0.5rem;
    font-size: 0.62rem;
}

.profile-personal-preview .profile-page-wrap--settings-preview .profile-page-chip--icon {
    padding: 0.28rem;
    min-width: 1.95rem;
    min-height: 1.95rem;
}

.profile-personal-preview .profile-page-wrap--settings-preview .profile-connection-icon-img {
    width: 1.15rem;
    height: 1.15rem;
}

.profile-personal-preview .profile-page-wrap--settings-preview .profile-page-pillrow {
    margin-top: 0.2rem;
    gap: 0.25rem;
}

.profile-personal-preview .profile-page-wrap--settings-preview .profile-page-pill {
    font-size: 0.58rem;
    padding: 0.1rem 0.4rem;
}

.profile-personal-preview .profile-page-wrap--settings-preview .profile-page-title {
    margin-top: 0.15rem;
    font-size: 0.72rem;
}

.profile-personal-preview .profile-page-wrap--settings-preview .profile-page-uid {
    font-size: 0.58rem;
    padding: 0.12rem 0.4rem;
}

.profile-personal-preview .profile-page-wrap--settings-preview .profile-page-audio-wrap {
    position: absolute;
    right: 0.45rem;
    bottom: 0.45rem;
    transform: scale(0.82);
    transform-origin: bottom right;
}

.profile-personal-preview .profile-page-wrap--settings-preview .profile-page-audio {
    transform: none;
}

.profile-personal-preview .profile-page-wrap--settings-preview a:not(.profile-page-back) {
    pointer-events: none;
    cursor: default;
}

.profile-personal-preview .profile-page-foot {
    padding: 0.35rem 0.75rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
    font-size: 0.58rem;
}

/* Settings preview: isolate from full-viewport public profile video rules */
.profile-personal-preview [data-settings-preview="1"].profile-page-wrap--video {
    position: absolute;
    inset: 0;
    flex: none;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    padding-top: 0;
    background: #050505;
    overflow: hidden;
}

.profile-personal-preview [data-settings-preview="1"] > .profile-page-bg,
.profile-personal-preview [data-settings-preview="1"] > .profile-page-scrim {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.profile-personal-preview [data-settings-preview="1"] > .profile-page-scrim {
    z-index: 1;
    background: rgba(5, 5, 8, 0.38);
}

.profile-personal-preview [data-settings-preview="1"] > .profile-page-bg .profile-page-bg-video {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.profile-personal-preview [data-settings-preview="1"] > .profile-page-bg .profile-page-bg-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220%;
    height: 220%;
    max-width: none;
    border: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.profile-personal-preview [data-settings-preview="1"].profile-page-wrap--video .profile-page {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: calc(100% - 0.5rem);
    width: calc(100% - 0.75rem);
    max-width: 100%;
    margin: 0.35rem auto 0;
    padding: 0.45rem 0.65rem 0;
    background: rgba(10, 10, 12, 0.68);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
    overflow: hidden;
}

.profile-personal-preview [data-settings-preview="1"].profile-page-wrap--video .profile-page-foot {
    margin-top: 0.2rem;
    margin-left: -0.65rem;
    margin-right: -0.65rem;
    margin-bottom: 0;
    padding: 0.3rem 0.65rem 0.38rem;
    background: rgba(8, 8, 12, 0.38);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0 0 8px 8px;
    color: #a3a3a3;
}

.profile-personal-preview [data-settings-preview="1"].profile-page-wrap--video .profile-page-divider {
    border-top-color: rgba(255, 255, 255, 0.14);
}

.profile-personal-preview [data-settings-preview="1"].profile-page-wrap--video .profile-page-label {
    color: #a3a3a3;
}

.profile-personal-preview [data-settings-preview="1"] .profile-page-audio-wrap {
    position: absolute;
    right: 0.45rem;
    bottom: 0.45rem;
    z-index: 5;
    transform: scale(0.82);
    transform-origin: bottom right;
}

.profile-personal-preview [data-settings-preview="1"]:not(.profile-page-wrap--video) .profile-page {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

.profile-personal-form .profile-fieldset:last-child {
    margin-bottom: 0;
}

.profile-connection-type-hint {
    margin: 0 0 0.65rem;
    font-size: 0.8rem;
}

.profile-personal-connections-list-title {
    margin: 0.875rem 0 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.profile-personal-connections-table-wrap {
    margin: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.profile-personal-connections-table tbody td {
    background: var(--bg-card);
}

.profile-personal-connections-table {
    width: 100%;
    margin: 0;
}

.profile-personal-connections-url-cell {
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-personal-connections-profile-col {
    width: 3.75rem;
    text-align: center;
    vertical-align: middle;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.profile-personal-connections-profile-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.profile-connection-visibility-check {
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.profile-connection-managed-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.profile-personal-connections-empty-row td {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
}

@media (max-width: 760px) {
    .profile-personal-form-stack {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Legacy selectors kept for specificity outside .profile-personal-preview */
.profile-page-wrap--settings-preview {
    margin: 0;
    min-height: 22rem;
    max-height: 28rem;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.profile-page-wrap--settings-preview .profile-page {
    padding: 1.25rem 1rem 0;
    max-width: 100%;
    min-height: 0;
    height: auto;
}

.profile-page-wrap--settings-preview .profile-page-head {
    gap: 0.85rem;
}

.profile-page-wrap--settings-preview .profile-page-avatar {
    width: 4.5rem;
    height: 4.5rem;
    font-size: 1.1rem;
}

.profile-page-wrap--settings-preview .profile-page-name {
    font-size: 1.35rem;
}

.profile-page-wrap--settings-preview .profile-page-audio-wrap {
    position: absolute;
    right: 0.65rem;
    bottom: 0.65rem;
    transform: scale(0.9);
    transform-origin: bottom right;
}

.profile-page-wrap--settings-preview .profile-page-audio {
    transform: none;
}

.profile-page-wrap--settings-preview a:not(.profile-page-back) {
    pointer-events: none;
    cursor: default;
}

.profile-page-back--static {
    pointer-events: none;
    cursor: default;
    opacity: 0.85;
}

/* —— Public profile page (OEMT-style, full viewport, no scroll) —— */
html:has(body.profile-page) {
    height: 100%;
    overflow: hidden;
    scrollbar-gutter: auto;
}

html:has(body.profile-video-page) {
    scrollbar-gutter: auto;
    background: #050505;
    overflow-x: hidden;
}

body.profile-page {
    height: calc(100dvh / var(--site-scale));
    max-height: calc(100dvh / var(--site-scale));
    min-height: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    background: #050505;
    color: #e5e5e5;
}

body.profile-page > .navbar {
    height: auto;
    min-height: var(--navbar-height);
    overflow: visible;
}

body.profile-page > .navbar .nav-links > * {
    flex-shrink: 0;
}

.profile-page-main {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--navbar-offset) clamp(1rem, 3vw, 1.5rem) clamp(0.75rem, 2vh, 1rem);
    box-sizing: border-box;
}

.profile-page-toast {
    position: fixed;
    top: calc(var(--navbar-offset) + 0.75rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    max-width: 90vw;
    margin: 0;
}

body.profile-page.profile-video-page {
    background: transparent;
    overflow-x: hidden;
}

body.profile-video-page .profile-page-main {
    background: transparent;
    justify-content: center;
    align-items: center;
}

.profile-page-wrap {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #050505;
}

.profile-page-wrap:not(.profile-page-wrap--settings-preview) {
    width: min(100%, 40rem);
    max-width: 40rem;
    margin-inline: auto;
    align-self: center;
    flex: 0 1 auto;
    height: auto;
}

.profile-page-wrap.profile-page-wrap--video:not(.profile-page-wrap--settings-preview) {
    background: transparent;
    flex: 1 1 auto;
    width: min(100%, 40rem);
    max-width: 40rem;
    height: 100%;
    min-height: 0;
    margin-inline: auto;
    justify-content: center;
    align-items: stretch;
    padding: 0;
}

.profile-page-wrap.profile-page-wrap--video:not(.profile-page-wrap--settings-preview) .profile-page {
    flex: 0 1 auto;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: calc(100dvh / var(--site-scale) - var(--navbar-offset) - 2.5rem);
    max-height: calc(100dvh / var(--site-scale) - var(--navbar-offset) - 1.5rem);
    margin-inline: auto;
    background: rgba(10, 10, 12, 0.68);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.38);
    padding: 0.85rem 0 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.profile-page-wrap.profile-page-wrap--video:not(.profile-page-wrap--settings-preview) .profile-page-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
    padding-inline: 1.5rem;
}

.profile-page-wrap.profile-page-wrap--video:not(.profile-page-wrap--settings-preview) .profile-page-sections {
    flex: 0 0 auto;
    min-height: auto;
    overflow: visible;
}

.profile-page-wrap.profile-page-wrap--video:not(.profile-page-wrap--settings-preview) .profile-page-foot {
    margin-top: auto;
    margin-inline: 0;
    margin-bottom: 0;
    padding: 0.65rem 1.5rem 0.75rem;
    background: rgba(8, 8, 12, 0.38);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0 0 10px 10px;
    color: #a3a3a3;
}

.profile-page-wrap.profile-page-wrap--video:not(.profile-page-wrap--settings-preview) .profile-page-divider {
    border-top-color: rgba(255, 255, 255, 0.14);
}

.profile-page-wrap.profile-page-wrap--video:not(.profile-page-wrap--settings-preview) .profile-page-label {
    color: #a3a3a3;
}

.profile-page-bg {
    position: fixed;
    top: 0;
    left: 0;
    /* Compensate html zoom so the bg still covers the real browser viewport */
    width: calc(100vw / var(--site-scale));
    height: calc(100dvh / var(--site-scale));
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.profile-page-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.profile-page-bg-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Cover the un-zoomed viewport (crop sides/top) — no letterbox bars */
    width: max(
        calc(100vw / var(--site-scale)),
        calc(100dvh / var(--site-scale) * 16 / 9)
    );
    height: max(
        calc(100dvh / var(--site-scale)),
        calc(100vw / var(--site-scale) * 9 / 16)
    );
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    border: 0;
    transform: translate(-50%, -50%) scale(1.12);
    pointer-events: none;
}

.profile-page-scrim {
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100vw / var(--site-scale));
    height: calc(100dvh / var(--site-scale));
    z-index: 1;
    background: rgba(5, 5, 5, 0.7);
    pointer-events: none;
}

body.profile-video-page .profile-page-scrim {
    background: rgba(5, 5, 8, 0.38);
}

.profile-page-wrap > .profile-page-bg {
    position: absolute;
    inset: 0;
}

.profile-page-wrap > .profile-page-scrim {
    position: absolute;
    inset: 0;
}

.profile-page-wrap:not(.profile-page-wrap--settings-preview) > .profile-page-bg-video iframe {
    width: max(100%, 177.78vh);
    height: max(100%, 56.25vw);
}

.profile-page {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 40rem;
    margin-inline: auto;
    align-self: center;
    padding: clamp(0.55rem, 1.2vh, 0.85rem) 1.5rem 0;
    box-sizing: border-box;
    overflow: visible;
}

.profile-page-wrap:not(.profile-page-wrap--video):not(.profile-page-wrap--settings-preview) {
    justify-content: center;
    align-items: stretch;
    width: min(100%, 40rem);
    max-width: 40rem;
    margin-inline: auto;
    padding: 0;
}

.profile-page-wrap:not(.profile-page-wrap--video) .profile-page {
    flex: 0 1 auto;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: calc(100dvh / var(--site-scale) - var(--navbar-offset) - 2.5rem);
    max-height: calc(100dvh / var(--site-scale) - var(--navbar-offset) - 1.5rem);
    margin-inline: auto;
    overflow-x: hidden;
    overflow-y: auto;
    background: rgba(10, 10, 12, 0.68);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.38);
    padding: 0.85rem 0 0;
}

.profile-page-wrap:not(.profile-page-wrap--video) .profile-page-content {
    flex: 1 1 auto;
    min-height: 0;
    padding-inline: 1.5rem;
}

.profile-page-wrap:not(.profile-page-wrap--video) .profile-page-foot {
    margin-top: auto;
    margin-inline: 0;
    margin-bottom: 0;
    padding: 0.65rem 1.5rem 0.75rem;
    background: rgba(8, 8, 12, 0.38);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0 0 10px 10px;
    color: #a3a3a3;
}

.profile-page-content {
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.profile-page-sections {
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.35rem;
}

.profile-page-wrap--video:not(.profile-page-wrap--settings-preview) .profile-page-sections {
    gap: 1.35rem;
}

.profile-page-wrap:not(.profile-page-wrap--settings-preview) .profile-page-section {
    padding: 0;
}

.profile-page-wrap:not(.profile-page-wrap--settings-preview) .profile-page-section + .profile-page-section {
    margin-top: 0;
}

.profile-page-back {
    display: inline-block;
    flex-shrink: 0;
    margin-bottom: 0.45rem;
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: #737373;
    text-decoration: none;
}

.profile-page-back:hover {
    color: #d4d4d4;
}

.profile-page-head {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

.profile-page-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-page-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-page-avatar--fallback {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 1.1rem;
    font-weight: 500;
    color: #9ca3af;
    letter-spacing: 0.04em;
}

.profile-page-id {
    min-width: 0;
}

.profile-page-namerow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.profile-page-name {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #fafafa;
}

.profile-page-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.profile-page-uid {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.5rem;
    border-radius: 4px;
    background: rgba(64, 64, 64, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: #a3a3a3;
}

.profile-page-uid-label {
    color: #737373;
}

.profile-page-uid code {
    font-family: inherit;
    font-size: inherit;
    color: #d4d4d4;
    background: none;
    padding: 0;
}

.profile-page-title {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: #a3a3a3;
}

.profile-page-pillrow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.5rem 0 0;
}

.profile-page-pill {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-page-pill--accent {
    background: rgba(var(--primary-rgb), 0.22);
    border-color: rgba(var(--primary-rgb), 0.45);
    color: var(--accent);
}

.profile-page-pill--muted {
    background: rgba(64, 64, 64, 0.45);
    color: #a3a3a3;
}

.profile-page-pill--supporter {
    background: rgba(251, 191, 36, 0.16);
    border-color: rgba(251, 191, 36, 0.45);
    color: #fbbf24;
}

.profile-page-divider {
    flex-shrink: 0;
    margin: 0.45rem 0 0.35rem;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    height: 0;
}

body.profile-page .profile-page-sections > .profile-page-section {
    padding: 0;
    margin-bottom: 0;
}

.profile-page-section {
    flex-shrink: 0;
    margin-bottom: 0;
    padding: 0;
}

.profile-page-section--about {
    margin-bottom: 0;
}

.profile-page-label {
    margin: 0 0 0.45rem;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: #737373;
}

.profile-page-bio {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #d4d4d4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-page-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.profile-page-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    background: rgba(10, 10, 10, 0.55);
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    color: #e5e5e5;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.profile-page-chip:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(23, 23, 23, 0.75);
    color: #ffffff;
}

.profile-page-chip--static {
    cursor: default;
}

.profile-page-chip--static:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(10, 10, 10, 0.55);
    color: #e5e5e5;
}

.profile-page-chip--discord {
    border-color: rgba(88, 101, 242, 0.45);
    color: #a5b4fc;
}

.profile-page-chip--icon {
    padding: 0.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    justify-content: center;
    gap: 0;
}

.profile-page-chip--icon .profile-connection-icon-img {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.profile-page-chip--web:hover {
    color: #f5f5f5;
}

.profile-page-chip--spotify {
    border-color: rgba(30, 215, 96, 0.35);
    color: #1ed760;
}

.profile-page-chip--spotify:hover {
    border-color: rgba(30, 215, 96, 0.6);
    color: #4ade80;
}

.profile-page-chip--steam {
    border-color: rgba(199, 213, 224, 0.35);
    color: #c7d5e0;
}

.profile-page-chip--steam:hover {
    border-color: rgba(199, 213, 224, 0.55);
    color: #e2e8f0;
}

.profile-page-chip--epic {
    border-color: rgba(255, 255, 255, 0.32);
    color: #f5f5f5;
}

.profile-page-chip--epic:hover {
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
}

.profile-page-chip--xbox {
    border-color: rgba(16, 124, 16, 0.45);
    color: #3ddc84;
}

.profile-page-chip--xbox:hover {
    border-color: rgba(16, 124, 16, 0.7);
    color: #6ee7a0;
}

.profile-page-chip--playstation {
    border-color: rgba(0, 112, 209, 0.45);
    color: #4da3ff;
}

.profile-page-chip--playstation:hover {
    border-color: rgba(0, 112, 209, 0.7);
    color: #7cbcff;
}

.profile-page-chip--instagram {
    border-color: rgba(225, 48, 108, 0.4);
    color: #f472b6;
}

.profile-page-chip--instagram:hover {
    border-color: rgba(225, 48, 108, 0.65);
    color: #f9a8d4;
}

.profile-page-chip--twitter {
    border-color: rgba(255, 255, 255, 0.35);
    color: #f5f5f5;
}

.profile-page-chip--twitter:hover {
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
}

.profile-page-chip--youtube {
    border-color: rgba(255, 0, 0, 0.4);
    color: #f87171;
}

.profile-page-chip--youtube:hover {
    border-color: rgba(255, 0, 0, 0.65);
    color: #fca5a5;
}

.profile-page-chip--youtube-music {
    border-color: rgba(255, 0, 0, 0.4);
    color: #f87171;
}

.profile-page-chip--youtube-music:hover {
    border-color: rgba(255, 0, 0, 0.65);
    color: #fca5a5;
}

.profile-page-chip--reddit {
    border-color: rgba(255, 69, 0, 0.4);
    color: #fb923c;
}

.profile-page-chip--reddit:hover {
    border-color: rgba(255, 69, 0, 0.65);
    color: #fdba74;
}

.profile-page-chip--tiktok {
    border-color: rgba(255, 255, 255, 0.35);
    color: #f5f5f5;
}

.profile-page-chip--tiktok:hover {
    border-color: rgba(254, 44, 85, 0.55);
    color: #fda4af;
}

.profile-page-chip--linktree {
    border-color: rgba(67, 230, 96, 0.4);
    color: #43e660;
}

.profile-page-chip--linktree:hover {
    border-color: rgba(67, 230, 96, 0.65);
    color: #86efac;
}

.profile-page-chip--tumblr {
    border-color: rgba(54, 70, 93, 0.55);
    color: #94a3b8;
}

.profile-page-chip--tumblr:hover {
    border-color: rgba(54, 70, 93, 0.75);
    color: #cbd5e1;
}

.profile-page-chip--pinterest {
    border-color: rgba(230, 0, 35, 0.4);
    color: #f87171;
}

.profile-page-chip--pinterest:hover {
    border-color: rgba(230, 0, 35, 0.65);
    color: #fca5a5;
}

.profile-page-chip--twitch {
    border-color: rgba(145, 70, 255, 0.45);
    color: #c4b5fd;
}

.profile-page-chip--twitch:hover {
    border-color: rgba(145, 70, 255, 0.7);
    color: #ddd6fe;
}

.profile-page-chip--discord:hover {
    border-color: rgba(88, 101, 242, 0.7);
    color: #c7d2fe;
}

.profile-page-foot {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0 0.55rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.66rem;
    letter-spacing: 0.05em;
    color: #525252;
}

/* Public profile page — centered card with equal horizontal inset */
#profile-page-root.profile-page-wrap {
    width: min(100%, 40rem);
    max-width: 40rem;
    margin-inline: auto;
    align-self: center;
}

#profile-page-root .profile-page {
    width: 100%;
    max-width: none;
    margin-inline: auto;
    padding: 0.85rem 0 0;
    box-sizing: border-box;
}

#profile-page-root .profile-page-content {
    padding-inline: 2rem;
}

#profile-page-root .profile-page-foot {
    margin-inline: 0;
    padding-inline: 2rem;
}

#profile-page-root .profile-page-sections {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

#profile-page-root .profile-page-section {
    padding: 0.15rem 0;
}

#profile-page-root .profile-page-label {
    margin-bottom: 0.5rem;
}

#profile-page-root .profile-page-divider {
    margin-bottom: 0.65rem;
}

.profile-page-audio-wrap {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.profile-page-audio-volume {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 5.75rem;
    padding: 0.45rem 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.35rem);
    transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    pointer-events: none;
}

.profile-page-audio-wrap:hover .profile-page-audio-volume,
.profile-page-audio-wrap:focus-within .profile-page-audio-volume {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.profile-page-audio-wrap:hover .profile-page-audio-volume {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(24, 24, 24, 0.9);
}

.profile-page-audio-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 4.75rem;
    height: 0.35rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transform: rotate(-90deg);
    transform-origin: center center;
}

.profile-page-audio-slider:focus {
    outline: none;
}

.profile-page-audio-slider:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.profile-page-audio-slider::-webkit-slider-runnable-track {
    height: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-page-audio-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 0.75rem;
    height: 0.75rem;
    margin-top: calc((0.35rem - 0.75rem) / 2);
    border-radius: 50%;
    background: #f5f5f5;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.profile-page-audio-slider::-moz-range-track {
    height: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-page-audio-slider::-moz-range-progress {
    height: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
}

.profile-page-audio-slider::-moz-range-thumb {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #f5f5f5;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.profile-page-audio {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.72);
    color: #f5f5f5;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.profile-page-audio:hover {
    background: rgba(24, 24, 24, 0.9);
    border-color: rgba(255, 255, 255, 0.32);
    transform: scale(1.05);
}

.profile-page-audio.is-unmuted {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
}

.profile-page-audio .profile-page-audio-icon--unmuted {
    display: none;
}

.profile-page-audio.is-unmuted .profile-page-audio-icon--muted {
    display: none;
}

.profile-page-audio.is-unmuted .profile-page-audio-icon--unmuted {
    display: block;
}

.profile-page-foot-uid {
    color: #737373;
}

.profile-avatar-preview {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    display: block;
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    .profile-page {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .profile-page-head {
        align-items: flex-start;
    }

    .profile-page-avatar {
        width: 3.6rem;
        height: 3.6rem;
    }

    .profile-page-name {
        font-size: 1.3rem;
    }
}

@media (max-height: 760px) {
    .profile-page-avatar {
        width: 3.25rem;
        height: 3.25rem;
    }

    .profile-page-name {
        font-size: 1.2rem;
    }

    .profile-page-label {
        margin-bottom: 0.35rem;
    }

    .profile-page-chip {
        padding: 0.32rem 0.65rem;
        font-size: 0.68rem;
    }

    .profile-page-bio {
        -webkit-line-clamp: 1;
    }
}

@media (max-height: 620px) {
    .profile-page-back {
        margin-bottom: 0.35rem;
    }

    .profile-page-divider {
        margin: 0.35rem 0;
    }

    .profile-page-sections {
        gap: 1rem;
    }

    #profile-page-root .profile-page-sections {
        gap: 1rem;
    }

    .profile-page-label {
        margin-bottom: 0.35rem;
    }

    .profile-page-pillrow {
        margin-top: 0.25rem;
    }
}

.profile-connection-add {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.profile-connection-add-title {
    margin: 0 0 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.profile-connection-add-row {
    align-items: flex-end;
}

.profile-connection-type-group {
    min-width: 12rem;
}

.custom-select,
.connection-type-picker {
    position: relative;
    width: 100%;
}

.custom-select.is-open,
.connection-type-picker.is-open {
    z-index: 40;
}

.custom-select-native,
.connection-type-picker-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.custom-select-trigger,
.connection-type-picker-trigger {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-select-trigger:hover,
.connection-type-picker-trigger:hover {
    border-color: var(--settings-panel-accent-border);
    box-shadow: 0 0 0 1px var(--settings-panel-accent-ring);
}

.custom-select-trigger:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.custom-select-trigger-label,
.connection-type-picker-trigger-label {
    flex: 1;
    text-align: left;
    font-weight: 500;
}

.custom-select-chevron,
.connection-type-picker-chevron {
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg) translateY(-1px);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.custom-select.is-open .custom-select-chevron,
.connection-type-picker.is-open .connection-type-picker-chevron {
    transform: rotate(-135deg) translateY(1px);
}

.custom-select-menu,
.connection-type-picker-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    max-height: 18rem;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.35rem;
    background: var(--bg-card);
    border: 1px solid var(--settings-panel-accent-border);
    border-radius: 10px;
    box-shadow:
        0 0 0 1px var(--settings-panel-accent-ring),
        0 4px 20px var(--sidebar-glow),
        0 12px 32px rgba(0, 0, 0, 0.35);
}

.custom-select-group + .custom-select-group,
.connection-type-picker-group + .connection-type-picker-group {
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px solid var(--border);
}

.custom-select-group-label,
.connection-type-picker-group-label {
    margin: 0.15rem 0.45rem 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.custom-select-option,
.connection-type-picker-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.55rem 0.65rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text);
    font-size: 0.92rem;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.custom-select-option:hover,
.custom-select-option:focus,
.connection-type-picker-option:hover,
.connection-type-picker-option:focus {
    outline: none;
    background: var(--settings-panel-accent-ring);
    box-shadow: inset 0 0 0 1px rgba(244, 114, 182, 0.22);
}

.custom-select-option.is-selected,
.connection-type-picker-option.is-selected {
    background: rgba(244, 114, 182, 0.18);
    box-shadow: inset 0 0 0 1px var(--settings-panel-accent-border);
}

.custom-select-option:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.connection-type-picker-trigger-icon,
.connection-type-picker-option-icon {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    object-fit: contain;
}

.connection-type-picker-option-label {
    font-weight: 500;
}

/* Soft holographic backdrop — static wash + light motif drift (GPU-friendly) */
.holo-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    contain: paint;
}

.holo-backdrop.is-hidden {
    display: none;
}

.holo-backdrop--preview {
    position: absolute;
    z-index: 0;
    border-radius: inherit;
}

.site-editor-home-preview-scroll {
    position: relative;
    z-index: 1;
}

.holo-backdrop__wash {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background:
        radial-gradient(ellipse 50% 36% at 16% 20%, rgba(255, 182, 213, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse 42% 32% at 84% 16%, rgba(196, 181, 253, 0.4) 0%, transparent 58%),
        radial-gradient(ellipse 46% 34% at 72% 80%, rgba(226, 232, 240, 0.22) 0%, transparent 62%);
}

.holo-motif {
    position: absolute;
    display: block;
    opacity: 0.07;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.holo-motif--flower {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 236, 245, 0.9) 0 12%, transparent 13%),
        radial-gradient(circle at 50% 16%, rgba(255, 182, 213, 0.7) 0 20%, transparent 21%),
        radial-gradient(circle at 50% 84%, rgba(196, 181, 253, 0.65) 0 20%, transparent 21%),
        radial-gradient(circle at 16% 50%, rgba(226, 232, 240, 0.55) 0 20%, transparent 21%),
        radial-gradient(circle at 84% 50%, rgba(244, 114, 182, 0.5) 0 20%, transparent 21%);
}

.holo-motif--heart {
    width: 1.35rem;
    height: 1.2rem;
    background: linear-gradient(135deg, rgba(255, 182, 213, 0.85), rgba(196, 181, 253, 0.7));
    transform: rotate(-45deg) translateZ(0);
    border-radius: 0.12rem 0.12rem 0 0.12rem;
}

.holo-motif--heart::before,
.holo-motif--heart::after {
    content: "";
    position: absolute;
    width: 1.35rem;
    height: 1.2rem;
    background: inherit;
    border-radius: 50%;
}

.holo-motif--heart::before {
    top: -0.6rem;
    left: 0;
}

.holo-motif--heart::after {
    top: 0;
    left: 0.6rem;
}

.holo-motif--a {
    top: 14%;
    left: 8%;
    animation: holo-float-a 40s ease-in-out infinite;
}

.holo-motif--b {
    top: 24%;
    right: 11%;
    opacity: 0.06;
    animation: holo-float-b 46s ease-in-out infinite;
}

.holo-motif--c {
    top: 62%;
    left: 7%;
    width: 2.1rem;
    height: 2.1rem;
    opacity: 0.055;
    animation: holo-float-c 52s ease-in-out infinite;
}

.holo-motif--d {
    top: 70%;
    right: 15%;
    opacity: 0.06;
    animation: holo-float-d 44s ease-in-out infinite;
}

@keyframes holo-float-a {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(10px, -14px, 0); }
}

@keyframes holo-float-b {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-45deg); }
    50% { transform: translate3d(-10px, 8px, 0) rotate(-45deg); }
}

@keyframes holo-float-c {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(8px, 10px, 0); }
}

@keyframes holo-float-d {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-45deg); }
    50% { transform: translate3d(6px, -10px, 0) rotate(-45deg); }
}

@media (prefers-reduced-motion: reduce) {
    .holo-motif {
        animation: none !important;
    }
}

.site-main,
footer,
.profile-page-main {
    position: relative;
    z-index: 1;
}

.maintenance-checklist-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.maintenance-checklist-subtitle {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    max-width: 42rem;
}

.maintenance-checklist-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    padding: 0.65rem 0.9rem;
    border-radius: 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.maintenance-checklist-summary-value {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}

.maintenance-checklist-summary-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.maintenance-checklist-section {
    margin-bottom: 1rem;
    padding: 0;
    overflow: hidden;
}

.maintenance-checklist-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--border);
}

.maintenance-checklist-section-header h2 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.maintenance-checklist-pill {
    font-weight: 500;
}

.maintenance-checklist-section-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.maintenance-checklist-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.maintenance-checklist-create-card {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem 1.15rem;
}

.maintenance-checklist-create-title {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
}

.maintenance-checklist-create-fields {
    display: grid;
    gap: 0.85rem;
}

@media (min-width: 720px) {
    .maintenance-checklist-create-fields {
        grid-template-columns: 1fr minmax(10rem, 12rem) auto;
        align-items: end;
    }

    .maintenance-checklist-create-actions {
        padding-bottom: 0.1rem;
    }
}

.maintenance-checklist-create-form .form-group {
    margin-bottom: 0;
}

.maintenance-checklist-item {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
}

.maintenance-checklist-list li:first-child {
    border-top: 0;
}

.maintenance-checklist-list li:first-child .maintenance-checklist-item {
    border-top: 0;
}

.maintenance-checklist-item-main {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
}

.maintenance-checklist-row-form {
    margin: 0;
    flex: 1;
    min-width: 0;
}

.maintenance-checklist-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
    padding: 0.85rem 0.5rem 0.85rem 1.1rem;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font: inherit;
    box-sizing: border-box;
}

div.maintenance-checklist-row {
    cursor: default;
    padding-right: 1.1rem;
}

.maintenance-checklist-item:hover,
.maintenance-checklist-item.is-editing {
    background: var(--bg-elevated);
}

.maintenance-checklist-item-actions {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    padding-right: 0.75rem;
    flex-shrink: 0;
}

.maintenance-checklist-delete-form {
    margin: 0;
    display: flex;
    align-items: center;
}

.maintenance-checklist-edit,
.maintenance-checklist-delete {
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: 0.4rem;
}

.maintenance-checklist-edit:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.maintenance-checklist-delete:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
}

.maintenance-checklist-edit-form {
    margin: 0;
    padding: 0 1.1rem 1rem;
    border-top: 1px solid var(--border);
}

.maintenance-checklist-edit-form.is-hidden {
    display: none;
}

.maintenance-checklist-edit-fields {
    display: grid;
    gap: 0.75rem;
    padding-top: 0.85rem;
}

@media (min-width: 720px) {
    .maintenance-checklist-edit-fields {
        grid-template-columns: 1fr minmax(10rem, 12rem);
        align-items: end;
    }
}

.maintenance-checklist-edit-form .form-group {
    margin-bottom: 0;
}

.maintenance-checklist-edit-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.maintenance-checklist-check {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--border);
    background: var(--bg-surface);
    color: #fff;
    margin-top: 0.1rem;
}

.maintenance-checklist-check.is-completed {
    background: #22c55e;
    border-color: #22c55e;
}

.maintenance-checklist-text {
    flex: 1;
    line-height: 1.45;
}

.maintenance-checklist-row.is-completed .maintenance-checklist-text {
    color: var(--text-muted);
}

.maintenance-checklist-status {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    white-space: nowrap;
    padding-top: 0.15rem;
}

.maintenance-checklist-row.is-completed .maintenance-checklist-status {
    color: #22c55e;
}

