:root {
    --bg: #f3f6fb;
    --bg-strong: #edf3fa;
    --panel: #ffffff;
    --panel-soft: #f8fafc;
    --ink: #111827;
    --ink-soft: #334155;
    --muted: #52607a;
    --brand: #18163e;
    --brand-2: #7567ff;
    --brand-3: #5c5cf0;
    --accent: #fb4f91;
    --danger: #e33d62;
    --focus-color: #ff729e;
    --focus-background: rgba(255, 114, 158, 0.18);
    --focus-glow: rgba(255, 114, 158, 0.22);
    --line: #dfe7f1;
    --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 56px rgba(15, 23, 42, 0.12);
    --radius: 18px;
    --radius-soft: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 24%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-strong) 100%);
    color: var(--ink);
    line-height: 1.6;
}

img { max-width: 100%; }
a {
    color: var(--brand-3);
    text-decoration: none;
}
a:hover {
    text-decoration: none;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    align-self: start;
    background: linear-gradient(105deg, #090a1b 0%, #15143a 72%, #211b4c 100%);
    border-bottom: 1px solid rgba(139, 124, 255, 0.32);
    box-shadow: 0 8px 24px rgba(5, 6, 22, 0.32);
}

.workspace-page .topbar {
    position: fixed;
    inset: 0 0 auto;
}

.workspace-page .page-shell {
    padding-top: 76px;
}

.admin-workspace .page-shell {
    padding-left: 270px;
}

.customer-portal-workspace .page-shell {
    padding-left: 270px;
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 76px;
    gap: 24px;
}

.brand a {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.04em;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-name-compact {
    display: inline;
}

.brand-link .brand-name-full {
    display: none;
}

.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    display: block;
    border-radius: 14px;
    background: rgba(255,255,255,0.8);
    filter: drop-shadow(0 10px 18px rgba(11, 31, 58, 0.12));
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.main-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.language-picker {
    flex: 0 0 auto;
    margin: 0;
}

.language-picker select {
    width: auto;
    min-width: 112px;
    margin: 0;
    padding: 8px 30px 8px 10px;
    border-radius: 10px;
    background-color: #fff;
    font-size: 0.86rem;
}

.main-nav a,
.link-btn {
    background: transparent;
    border: none;
    color: #e4edf7;
    cursor: pointer;
    font-size: 0.92rem;
    padding: 9px 12px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.main-nav a:hover,
.link-btn:hover {
    background: rgba(125, 231, 212, 0.14);
    color: #9af4df;
    text-decoration: none;
}

.main-nav a[aria-current="page"] {
    background: rgba(125, 231, 212, 0.14);
    color: #9af4df;
    font-weight: 700;
}

.main-nav a:focus-visible,
.main-nav .link-btn:focus-visible,
.workspace-nav a:focus-visible,
.workspace-nav .link-btn:focus-visible {
    background: var(--focus-background);
    color: var(--brand);
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--focus-glow);
}

.workspace-nav {
    flex-wrap: nowrap;
    padding: 8px 0;
}

.workspace-nav-links {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
}

.workspace-nav a {
    white-space: nowrap;
}

.workspace-nav a[href="/admin"],
.workspace-nav a[href="/dashboard"] {
    color: #8cebd5;
    font-weight: 800;
}

.notification-center {
    position: relative;
    z-index: 1001;
    flex: 0 0 auto;
}

body .notification-toggle {
    position: relative;
    display: grid;
    width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    place-items: center;
    padding: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    box-shadow: none !important;
    cursor: pointer;
}

body .notification-toggle:hover,
body .notification-toggle[aria-expanded="true"] {
    background: rgba(125, 231, 212, 0.16) !important;
    border-color: rgba(125, 231, 212, 0.52) !important;
}

.notification-toggle svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.notification-count {
    position: absolute;
    top: -4px;
    right: -4px;
    display: grid;
    min-width: 18px;
    height: 18px;
    place-items: center;
    padding: 0 4px;
    border: 2px solid #0d1b2e;
    border-radius: 999px;
    background: #e05252;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1;
}

.notification-count[hidden],
.notification-panel[hidden] {
    display: none;
}

.notification-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    grid-template-rows: auto minmax(60px, auto) auto;
    width: min(360px, calc(100vw - 24px));
    max-height: min(520px, calc(100vh - 100px));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    color: var(--ink);
    box-shadow: var(--shadow-lg);
}

.notification-panel > header,
.notification-panel > footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
}

.notification-panel > header {
    border-bottom: 1px solid var(--line);
}

.notification-panel > footer {
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
}

body .notification-panel button {
    min-height: 32px;
    padding: 5px 8px !important;
    border: 0 !important;
    border-radius: 6px;
    background: transparent !important;
    color: var(--brand-3) !important;
    box-shadow: none !important;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

body .notification-panel button:hover {
    background: var(--panel-soft) !important;
}

.notification-panel .notification-list {
    overflow-y: auto;
}

.notification-item {
    display: grid;
    width: 100%;
    gap: 4px;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    text-align: left;
    text-decoration: none;
}

.notification-item.is-unread {
    background: color-mix(in srgb, var(--brand-3) 8%, transparent);
}

.notification-item > span {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.4;
}

.notification-item > small {
    color: var(--muted);
    font-size: 0.72rem;
}

body .notification-panel button.notification-item {
    color: var(--ink) !important;
    text-align: left;
}

.notification-empty,
.notification-panel footer span {
    margin: 0;
    padding: 10px 14px;
    color: var(--muted);
    font-size: 0.82rem;
}

.notification-toasts {
    position: fixed;
    z-index: 1200;
    right: 24px;
    bottom: 24px;
    display: grid;
    width: min(380px, calc(100vw - 32px));
    gap: 12px;
    pointer-events: none;
}

.notification-toast {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 28px;
    align-items: start;
    gap: 12px;
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--brand-3) 30%, var(--line));
    border-radius: 16px;
    background: var(--panel);
    color: var(--ink);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: notification-toast-enter 220ms ease-out both;
}

.notification-toast-mark,
.notification-confirm-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--brand-3) 15%, var(--panel));
    color: var(--brand-3);
    font-size: 1.1rem;
    font-weight: 800;
}

.notification-toast-content {
    display: grid;
    gap: 4px;
}

.notification-toast-eyebrow,
.notification-confirm-eyebrow {
    color: var(--brand-3);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.notification-toast-content strong {
    font-size: 0.92rem;
}

.notification-toast-content p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.notification-toast-action {
    justify-self: start;
    margin-top: 4px;
    color: var(--brand-3);
    font-size: 0.78rem;
    font-weight: 700;
}

body .notification-toast-dismiss {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 1.25rem;
    cursor: pointer;
}

body .notification-toast-dismiss:hover {
    background: var(--panel-soft);
    color: var(--ink);
}

.notification-confirm {
    width: min(440px, calc(100vw - 32px));
    max-width: none;
    padding: 0;
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel);
    color: var(--ink);
    box-shadow: var(--shadow-lg);
}

.notification-confirm::backdrop {
    background: rgba(7, 15, 27, 0.62);
    backdrop-filter: blur(4px);
}

.notification-confirm-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    padding: 24px;
}

.notification-confirm-card h2 {
    margin: 6px 0;
    font-size: 1.2rem;
}

.notification-confirm-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.notification-confirm-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

body .notification-confirm-actions button {
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel-soft);
    color: var(--ink);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}

body .notification-confirm-actions button[data-notification-confirm-clear] {
    border-color: transparent;
    background: var(--brand-3);
    color: #fff;
}

body .notification-confirm-actions button:focus-visible,
body .notification-toast-dismiss:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--brand-3) 55%, transparent);
    outline-offset: 2px;
}

@keyframes notification-toast-enter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .notification-toast {
        animation: none;
    }
}

.admin-mobile-menu-toggle,
.admin-mobile-sidebar-header,
.admin-mobile-account-menu {
    display: none;
}

.admin-mobile-dashboard {
    display: none !important;
}

.admin-mobile-dashboard[aria-current="page"] {
    background: rgba(125, 231, 212, 0.16);
    color: #9af4df;
    font-weight: 800;
}

.workspace-user {
    max-width: 180px;
    overflow: hidden;
    padding-left: 14px;
    border-left: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-icon-link,
.account-menu > summary,
.dark-theme .account-menu > summary,
.dark-theme .vpanel-admin-workspace .admin-mobile-account-menu > summary {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    padding: 8px !important;
    border: 1px solid var(--line) !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: var(--brand) !important;
    cursor: pointer;
    list-style: none;
}

.account-icon-link svg,
.account-menu > summary svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.account-menu {
    position: relative;
    flex: 0 0 auto;
}

.account-menu > summary::-webkit-details-marker {
    display: none;
}

.account-menu-panel {
    position: absolute;
    z-index: 100;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    min-width: 180px;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.account-menu-name {
    overflow: hidden;
    padding: 8px 10px;
    color: var(--muted);
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-menu-panel a,
.account-menu-panel .link-btn {
    display: block;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    text-align: left;
}

.account-menu-panel a:hover,
.account-menu-panel .link-btn:hover {
    background: #f1f5f9;
    color: var(--brand);
    text-decoration: none;
}

.account-menu-panel form {
    margin: 0;
}

.page-shell { min-height: 70vh; }

.page-back-row {
    display: flex;
    justify-content: flex-end;
    padding-top: 0;
    padding-bottom: 24px;
}

.floating-back-button {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    gap: 5px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: linear-gradient(120deg, #0b1f3a, #0f766e);
    color: #fff;
    font: inherit;
    font-size: 0.74rem;
    font-weight: 700;
    box-shadow: 0 7px 18px rgba(11, 31, 58, 0.22);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(11, 31, 58, 0.3);
}

.floating-back-button:focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px var(--focus-glow);
}

.floating-back-button span {
    font-size: 1rem;
    line-height: 1;
}

.btn.back-action,
.admin-btn.back-action {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 0.74rem;
    line-height: 1.1;
}

.hero, .section { padding: 78px 0; }

.hero {
    position: relative;
    background:
        linear-gradient(135deg, rgba(11, 31, 58, 0.03) 0%, rgba(15, 118, 110, 0.04) 30%, rgba(37, 99, 235, 0.06) 100%);
    border-bottom: 1px solid rgba(15, 118, 110, 0.08);
}

.managed-hero {
    isolation: isolate;
    overflow: hidden;
    background: #090d1b;
    border-bottom-color: rgba(117, 154, 218, 0.22);
}

.managed-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    display: none;
    background-image:
        linear-gradient(90deg, rgba(5, 8, 19, 0.94) 0%, rgba(5, 8, 19, 0.78) 52%, rgba(5, 8, 19, 0.48) 100%),
        var(--managed-hero-background-image);
    background-position: center;
    background-size: cover;
    content: "";
}

.managed-hero-background-active::before {
    display: block;
}

.managed-hero > .container {
    position: relative;
    z-index: 1;
}

.managed-hero h1,
.managed-hero h2,
.managed-hero h3 {
    color: #fff;
}

.managed-hero p,
.managed-hero .lead {
    color: #e0e7f2;
}

.managed-hero .tag {
    color: #a7f3d0;
    background: rgba(9, 20, 31, 0.76);
    border-color: rgba(87, 220, 179, 0.42);
}

.managed-hero .card {
    background: rgba(9, 13, 27, 0.78);
    border-color: rgba(117, 154, 218, 0.3);
    backdrop-filter: blur(10px);
}

.managed-hero .card a {
    color: #a7f3d0;
}

.managed-background-editor {
    min-width: 0;
}

.managed-background-preview {
    display: block;
    width: min(100%, 520px);
    height: 170px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #090d1b;
    object-fit: cover;
}

.studio-hero-copy {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(24px, 4vw, 44px);
    padding-bottom: 64px;
    border: 1px solid rgba(117, 154, 218, 0.3);
    border-radius: 24px;
    background: #090d1b;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.studio-hero {
    overflow: hidden;
}

.studio-hero > .container {
    position: relative;
    z-index: 1;
}

.studio-hero > .container > .studio-hero-copy {
    grid-column: 1;
    width: 100%;
    max-width: 720px;
}

.studio-hero > .container > .card {
    display: block;
    width: 100%;
    max-width: 440px;
    justify-self: end;
    border-color: rgba(180, 205, 242, 0.3);
    background: rgba(9, 13, 27, 0.84);
    color: #f5f5f5;
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.studio-hero > .container > .card .service-featured-image {
    width: calc(100% + 48px);
    height: 220px;
    margin: -24px -24px 22px;
    max-width: calc(100% + 48px);
    border-radius: 18px 18px 0 0;
    object-fit: cover;
}

.studio-hero > .container > .card h2 {
    color: #fff;
}

.studio-hero > .container > .card p {
    color: #d6deed;
}

@media (max-width: 900px) {
    .studio-hero > .container > .studio-hero-copy {
        max-width: 100%;
    }

    .studio-hero > .container > .card {
        max-width: 100%;
        justify-self: stretch;
    }
}

.studio-hero-copy::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 8, 19, 0.96) 0%, rgba(5, 8, 19, 0.82) 47%, rgba(5, 8, 19, 0.34) 100%);
    content: "";
}

.studio-hero::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: none;
    background-image:
        linear-gradient(90deg, rgba(5, 8, 19, 0.95) 0%, rgba(5, 8, 19, 0.8) 48%, rgba(5, 8, 19, 0.38) 100%),
        var(--studio-hero-background-image);
    background-position: center;
    background-size: cover;
    content: "";
}

.studio-hero-background-active::before {
    display: block;
}

.studio-hero .studio-hero-copy {
    overflow: visible;
    padding: clamp(24px, 4vw, 52px) 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.studio-hero .studio-hero-copy::before,
.studio-hero .studio-hero-copy::after {
    display: none;
}

.studio-hero .studio-hero-copy::after {
    right: 0;
    bottom: 18px;
}

.studio-hero .studio-hero-copy > * {
    width: min(760px, 100%);
}

.studio-hero .studio-hero-copy .lead {
    max-width: 700px;
}

.studio-hero-copy::after {
    position: absolute;
    z-index: 2;
    right: 24px;
    bottom: 16px;
    color: rgba(231, 239, 255, 0.82);
    content: "VIBES DIGITAL MEDIA";
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    pointer-events: none;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}

.studio-hero-copy .tag {
    border: 1px solid rgba(87, 220, 179, 0.42);
    background: rgba(9, 20, 31, 0.76);
    color: #a7f3d0;
}

.studio-hero-copy h1 {
    color: #fff;
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.42);
}

.studio-hero-copy .lead {
    color: #e0e7f2;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.studio-hero-copy > :not(.studio-hero-background) {
    position: relative;
    z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
    .studio-hero::before {
        background-image:
            linear-gradient(90deg, rgba(5, 8, 19, 0.95) 0%, rgba(5, 8, 19, 0.8) 48%, rgba(5, 8, 19, 0.38) 100%),
            var(--studio-hero-poster-image);
    }
}

.hero-grid, .split-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 4vw, 4.3rem);
    line-height: 1.05;
    letter-spacing: -0.06em;
    margin: 0 0 18px;
    color: var(--brand);
}

.lead {
    font-size: 1.08rem;
    color: var(--muted);
    margin-bottom: 28px;
    max-width: 620px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand) 0%, #162b4f 100%);
    color: #fff;
    padding: 14px 22px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(11, 31, 58, 0.17);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(11, 31, 58, 0.2);
}

.btn.secondary {
    background: linear-gradient(135deg, var(--brand-2) 0%, #0ea5a4 100%);
}

.service-price-form {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.service-price-form label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.service-price-form input,
.service-price-form select {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    color: var(--ink);
    font: inherit;
}

.service-price-form .admin-btn {
    justify-self: start;
    min-height: 36px;
    padding: 7px 13px;
}

.tag {
    display: inline-block;
    background: rgba(15, 118, 110, 0.1);
    color: var(--brand-2);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}

.card h3,
.metric h3,
.section-head h2 {
    color: var(--brand);
    letter-spacing: -0.04em;
}

.section-head {
    margin-bottom: 28px;
}

.section-head h2 {
    font-size: clamp(1.8rem, 2vw, 2.5rem);
    margin: 0;
}

.hero-brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%);
    border: 1px solid rgba(37, 99, 235, 0.08);
    padding: 28px 22px;
}

.hero-brand-block {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.hero-brand-logo {
    width: 170px;
    height: 170px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 18px 28px rgba(11, 31, 58, 0.12));
}

.metric-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 18px;
}

.metric {
    background: linear-gradient(180deg, #fff 0%, #f7fafc 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-soft);
    padding: 22px 20px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.metric strong {
    display: inline-block;
    font-size: 1.6rem;
    color: var(--brand-2);
    margin-bottom: 8px;
}

.list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.list li {
    margin-bottom: 10px;
    color: var(--ink-soft);
}

.form-card {
    max-width: 560px;
    margin: 48px auto;
    background: var(--panel);
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--ink-soft);
}

input, textarea, select, button {
    font: inherit;
}

button:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible,
input[type="reset"]:focus-visible,
[role="button"]:focus-visible,
.btn:focus-visible,
.admin-btn:focus-visible,
.link-btn:focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px var(--focus-glow);
}

input, textarea, select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 16px;
    background: white;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--focus-color);
    box-shadow: 0 0 0 4px var(--focus-glow);
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px var(--focus-glow);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.footer {
    background: linear-gradient(180deg, #0b1f3a 0%, #0e2546 100%);
    color: #e2e8f0;
    padding: 56px 0 18px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.footer-brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    filter: drop-shadow(0 10px 20px rgba(14, 165, 164, 0.18));
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-grid a {
    color: inherit;
    text-decoration: none;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px !important;
}

.footer-social-links a {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(226, 232, 240, 0.24);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-social-links a:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.16);
}

.footer-social-links svg,
.social-link-label svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.footer-social-links .social-brand-youtube svg {
    color: #ff0033;
}

.footer-social-links .social-brand-tiktok svg {
    color: #111;
}

.footer-social-links .social-brand-x svg {
    color: #fff;
}

.footer-social-links .social-brand-facebook svg {
    color: #0866ff;
}

.footer-social-links .social-brand-instagram {
    border-color: transparent;
    background: linear-gradient(45deg, #feda75 0%, #fa7e1e 28%, #d62976 58%, #962fbf 78%, #4f5bd5 100%);
}

.footer-social-links .social-brand-instagram svg {
    color: #fff;
}

.footer-social-links .social-brand-linkedin svg {
    color: #0a66c2;
}

.footer-social-links .social-brand-telegram svg {
    color: #26a5e4;
}

.social-links-panel {
    max-width: 820px;
}

.social-links-fields {
    display: grid;
    gap: 16px;
}

.social-link-field {
    display: grid;
    grid-template-columns: minmax(130px, 180px) minmax(0, 1fr);
    align-items: center;
    gap: 18px;
}

.social-link-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.social-link-label svg {
    flex: 0 0 22px;
    color: var(--brand-2);
}

.social-link-field input {
    margin: 0;
}

.social-links-help {
    margin: 18px 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.contact-details-panel {
    max-width: 860px;
}

.contact-details-help {
    margin: 4px 0 18px;
    color: var(--muted);
    font-size: 0.9rem;
}

.invoice-template-logo-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0 8px;
    color: var(--muted);
}

.invoice-template-logo-preview img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.invoice-template-reset-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
}

.private-chat-review-panel {
    margin: 22px 0;
}

.private-chat-review-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 14px;
}

.private-chat-review-thread {
    margin-top: 28px;
}

.private-chat-review-messages {
    display: grid;
    gap: 12px;
    max-height: 70vh;
    overflow-y: auto;
}

.private-chat-review-message {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}

.private-chat-review-message > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.private-chat-review-message time {
    color: var(--muted);
    font-size: 0.85rem;
}

.private-chat-review-message p {
    margin: 10px 0 0;
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .private-chat-review-filters {
        grid-template-columns: minmax(0, 1fr);
    }

    .private-chat-review-message > div {
        flex-direction: column;
        gap: 4px;
    }
}

.footer-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 18px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.14);
    color: rgba(226, 232, 240, 0.8);
}

.footer-language-picker {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-left: auto;
}

.footer-language-label {
    color: inherit;
    font-weight: 600;
    font-size: 0.78rem;
}

.footer-language-picker select {
    min-width: 100px;
    min-height: 32px;
    padding: 5px 22px 5px 8px;
    font-size: 0.76rem;
}

.admin-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin-top: 18px;
}

.admin-sidebar {
    background: rgba(11, 31, 58, 0.97);
    border-radius: 22px;
    padding: 18px 14px;
    color: #e2e8f0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 92px;
}

.admin-global-sidebar {
    position: fixed;
    z-index: 90;
    top: 92px;
    bottom: 16px;
    left: 16px;
    width: 238px;
    max-height: calc(100vh - 108px);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background:
        radial-gradient(circle at 8% 0%, rgba(15, 118, 110, 0.24), transparent 34%),
        linear-gradient(180deg, #0d2442 0%, #091a30 100%);
    box-shadow: 0 22px 54px rgba(11, 31, 58, 0.18);
}

.admin-brand-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    margin-bottom: 14px;
}

.admin-brand-mini .brand-logo {
    width: 38px;
    height: 38px;
}

.admin-nav-group {
    margin-bottom: 18px;
}

.admin-nav-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.8);
    padding: 0 12px 10px;
}

.admin-sidebar a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 12px;
    color: #dbe7f3;
    font-weight: 600;
    transition: all 0.2s ease;
}

.admin-sidebar a:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #fff;
    text-decoration: none;
}

.admin-main {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(255,255,255,0.8);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.admin-toolbar h1 {
    margin: 0;
    font-size: clamp(1.9rem, 2vw, 2.6rem);
    letter-spacing: -0.05em;
    color: var(--brand);
}

.admin-toolbar-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: white;
    color: var(--ink-soft);
    font-weight: 600;
}

.admin-btn.primary {
    background: linear-gradient(135deg, var(--brand-3) 0%, var(--brand) 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.18);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}

.stat-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.stat-card:before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-3), var(--brand-2));
}

.stat-card .label {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 10px;
    display: block;
}

.stat-card .value {
    display: block;
    font-size: clamp(1.8rem, 2.3vw, 2.5rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--brand);
    margin-bottom: 8px;
}

.stat-card .trend {
    font-size: 0.8rem;
    color: var(--brand-2);
    font-weight: 700;
}

.panel-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

.admin-panel {
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px 20px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.panel-header h3 {
    margin: 0;
    color: var(--brand);
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}

.mini-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.08);
    color: var(--brand-2);
    font-size: 0.72rem;
    font-weight: 700;
}

.chart-bars {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: end;
    gap: 12px;
    height: 170px;
    padding-top: 14px;
}

.chart-bars span {
    display: block;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.9) 0%, rgba(15, 118, 110, 0.8) 100%);
    min-height: 30%;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}

.list-stack {
    display: grid;
    gap: 12px;
}

.customer-management-form,
.customer-delete-form,
.customer-permission-form {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.customer-delete-form {
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.customer-delete-button {
    justify-self: start;
    border-color: #b42318;
    color: #b42318;
}

.team-chat-page .chat-widget {
    display: none;
}

.live-chat-workspace {
    padding-top: clamp(36px, 5vw, 64px);
}

.live-chat-inbox {
    display: grid;
    grid-template-columns: minmax(270px, 0.36fr) minmax(0, 1fr);
    min-height: min(72vh, 760px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

.live-chat-queue,
.live-chat-thread {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.live-chat-queue {
    border-right: 1px solid var(--line);
    background: color-mix(in srgb, var(--panel) 94%, var(--ink) 6%);
}

.live-chat-queue > header,
.live-chat-thread-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.live-chat-queue h2,
.live-chat-thread-header h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
}

.live-chat-queue header p,
.live-chat-thread-header p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.live-chat-queue .admin-btn,
.live-chat-thread-actions .admin-btn {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 0.78rem;
}

.live-chat-conversation-list {
    display: grid;
    align-content: start;
    gap: 5px;
    overflow-y: auto;
    padding: 10px;
}

.live-chat-conversation {
    width: 100%;
    padding: 13px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
}

.live-chat-conversation:hover,
.live-chat-conversation.is-active {
    border-color: var(--line);
    background: var(--panel);
}

.live-chat-conversation-copy,
.live-chat-conversation-copy small {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.live-chat-conversation-copy strong,
.live-chat-conversation-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-chat-conversation-copy small {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
}

.live-chat-conversation-copy small:first-of-type {
    color: var(--ink);
}

.live-chat-thread {
    min-height: 0;
}

.live-chat-thread-header {
    flex-wrap: wrap;
}

.live-chat-thread-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.live-chat-thread-actions [hidden] {
    display: none !important;
}

.live-chat-thread-actions select {
    min-height: 36px;
    max-width: 190px;
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--panel);
    color: var(--ink);
}

.live-chat-thread-messages {
    display: flex;
    flex: 1;
    min-height: 300px;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding: 22px;
}

.live-chat-message {
    max-width: min(78%, 620px);
    align-self: flex-start;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 15px 15px 15px 4px;
    background: color-mix(in srgb, var(--panel) 91%, var(--ink) 9%);
    color: var(--ink);
}

.live-chat-message.is-staff {
    align-self: flex-end;
    border-color: rgba(20, 184, 166, 0.28);
    border-radius: 15px 15px 4px 15px;
    background: rgba(20, 184, 166, 0.1);
}

.live-chat-message-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 0.72rem;
}

.live-chat-message p {
    margin: 6px 0 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.live-chat-reply-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 14px 18px 8px;
    border-top: 1px solid var(--line);
}

.live-chat-reply-form textarea {
    flex: 1;
    min-width: 0;
    resize: vertical;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    color: var(--ink);
    font: inherit;
}

.live-chat-reply-form .btn {
    min-height: 42px;
    flex: 0 0 auto;
}

.live-chat-inbox-status {
    min-height: 22px;
    margin: 0;
    padding: 0 18px 12px;
    color: var(--muted);
    font-size: 0.8rem;
}

@media (max-width: 760px) {
    .live-chat-inbox {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .live-chat-queue {
        max-height: 250px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .live-chat-thread-messages {
        min-height: 42vh;
        max-height: 52vh;
        padding: 14px;
    }

    .live-chat-message {
        max-width: 92%;
    }

    .live-chat-reply-form {
        align-items: stretch;
        padding-right: 12px;
        padding-left: 12px;
    }

    .live-chat-reply-form .btn {
        padding: 9px 12px;
    }
}

.team-chat {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    height: min(74vh, 760px);
    min-height: 560px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 22px;
    background: var(--panel);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

.team-chat-sidebar {
    min-width: 0;
    padding: 20px 14px;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, #f8fafc, #f5f8fc);
}

.team-chat-sidebar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 8px 20px;
}

.team-chat-sidebar-heading h2 {
    margin: 0;
    color: var(--brand);
    font-size: 1.05rem;
}

.team-chat-sidebar-heading p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.team-chat-member-count {
    display: grid;
    min-width: 28px;
    height: 28px;
    place-items: center;
    padding: 0 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink-soft);
    font-size: 0.75rem;
    font-weight: 700;
}

.team-chat-conversation {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    gap: 11px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.team-chat-conversation:hover {
    background: rgba(15, 118, 110, 0.06);
}

.team-chat-conversation.is-active {
    border-color: rgba(15, 118, 110, 0.12);
    background: rgba(15, 118, 110, 0.1);
}

.team-chat-conversation:focus-visible,
.team-chat-search:focus-within,
.team-chat-back:focus-visible,
.team-chat-form button:focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px var(--focus-glow);
}

.team-chat-avatar,
.team-chat-header-avatar {
    position: relative;
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 50%;
    background: #e9efff;
    color: var(--brand-3);
    font-size: 0.95rem;
    font-weight: 800;
}

.team-chat-conversation.is-online .team-chat-avatar::after,
.team-chat-header-avatar.is-online::after {
    position: absolute;
    right: -1px;
    bottom: 0;
    width: 11px;
    height: 11px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #16a34a;
    content: "";
}

.team-chat-presence {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.2;
    text-transform: capitalize;
}

.team-chat-presence[hidden] {
    display: none;
}

.team-chat-presence > span:first-child {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #94a3b8;
}

.team-chat-presence[data-state="online"] {
    color: #15803d;
}

.team-chat-presence[data-state="online"] > span:first-child {
    background: #16a34a;
}

.team-chat-room-avatar {
    border-color: rgba(15, 118, 110, 0.12);
    background: #e2f4f1;
    color: var(--brand-2);
}

.team-chat-conversation-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.team-chat-conversation-copy strong,
.team-chat-conversation-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-chat-conversation-copy strong {
    font-size: 0.9rem;
}

.team-chat-conversation-copy small,
.team-chat-muted {
    color: var(--muted);
    font-size: 0.76rem;
}

.team-chat-search {
    display: flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    margin: 18px 4px 20px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--muted);
}

.team-chat-search > span:last-of-type {
    font-size: 1.2rem;
    line-height: 1;
}

.team-chat-search input {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    margin: 0;
    padding: 4px 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: 0.82rem;
}

.team-chat-search input:focus {
    outline: none;
    box-shadow: none;
}

.team-chat-sidebar > h3 {
    margin: 0 9px 8px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.team-chat-people {
    display: grid;
    gap: 3px;
    max-height: 420px;
    overflow-y: auto;
}

.team-chat-muted {
    margin: 8px;
}

.team-chat-main {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    background:
        radial-gradient(circle at 50% 100%, rgba(37, 99, 235, 0.035), transparent 36%),
        #fff;
}

.team-chat-header {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
}

.team-chat-header > div {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.team-chat-heading-copy {
    min-width: 0;
}

.team-chat-header h2 {
    overflow: hidden;
    margin: 0;
    color: var(--brand);
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-chat-header p {
    overflow: hidden;
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-chat-connection {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
}

.team-chat-connection > span:first-child {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
}

.team-chat-connection[data-state="connected"] {
    color: #18794e;
}

.team-chat-connection[data-state="connected"] > span:first-child {
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.team-chat-connection[data-state="reconnecting"] {
    color: #a15c07;
}

.team-chat-connection[data-state="reconnecting"] > span:first-child {
    background: #d97706;
}

.team-chat-connection[data-state="offline"] {
    color: #b42318;
}

.team-chat-connection[data-state="offline"] > span:first-child {
    background: #dc2626;
}

.team-chat-header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 14px;
}

.team-chat-clear {
    padding: 7px 10px;
    border: 1px solid #fecaca;
    border-radius: 9px;
    background: #fff;
    color: #b42318;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 700;
}

.team-chat-clear:hover {
    background: #fff1f2;
}

.team-chat-clear:disabled {
    cursor: wait;
    opacity: 0.6;
}

.team-chat-typing {
    min-height: 1em;
    color: var(--brand-2) !important;
    font-size: 0.72rem !important;
    font-style: italic;
}

.team-chat-delivery {
    display: block;
    min-height: 1em;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.68rem;
    text-align: right;
}

.team-chat-delivery[data-state="delivered"] {
    color: var(--brand-2);
}

.team-chat-delivery[data-state="read"] {
    color: var(--brand-3);
    font-weight: 700;
}

.team-chat-context-menu {
    position: fixed;
    z-index: 200;
    display: grid;
    min-width: 180px;
    gap: 3px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.2);
}

.team-chat-context-menu[hidden] {
    display: none;
}

.team-chat-context-menu button {
    padding: 9px 11px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.team-chat-context-menu button:hover {
    background: #f1f5f9;
}

.team-chat-context-menu [data-team-delete-message] {
    color: #b42318;
}

.team-chat-back {
    display: none;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--brand);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.team-chat-messages {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px clamp(16px, 4vw, 36px);
    scroll-behavior: smooth;
}

.team-chat-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: center;
    margin: auto;
    color: var(--muted);
    font-size: 0.86rem;
}

.team-chat-loading span {
    width: 16px;
    height: 16px;
    border: 2px solid var(--line);
    border-top-color: var(--brand-2);
    border-radius: 50%;
    animation: team-chat-spin 750ms linear infinite;
}

@keyframes team-chat-spin {
    to { transform: rotate(360deg); }
}

.team-chat-message {
    max-width: min(76%, 640px);
    align-self: flex-start;
    padding: 11px 14px 12px;
    border: 1px solid #e7edf4;
    border-radius: 15px 15px 15px 5px;
    background: #f7f9fc;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.025);
    overflow-wrap: anywhere;
}

.team-chat-message.is-mine {
    align-self: flex-end;
    border-color: rgba(15, 118, 110, 0.16);
    border-radius: 15px 15px 5px 15px;
    background: #edf8f6;
}

.team-chat-message-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.77rem;
}

.team-chat-message-meta strong {
    color: var(--brand);
}

.team-chat-message-meta time {
    color: var(--muted);
    font-size: 0.7rem;
}

.team-chat-message p {
    margin: 0;
    color: #26364b;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.team-chat-empty {
    align-self: center;
    margin: auto;
    padding: 14px;
    color: var(--muted);
    text-align: center;
}

.team-chat-form {
    display: grid;
    gap: 9px;
    padding: 14px 20px 8px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.team-chat-form textarea {
    width: 100%;
    min-height: 44px;
    max-height: 150px;
    margin: 0;
    padding: 12px 14px;
    border-color: #d5deea;
    border-radius: 12px;
    background: #fbfcfe;
    line-height: 1.45;
    resize: none;
}

.team-chat-form textarea:focus {
    border-color: var(--focus-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.team-chat-compose-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 0.7rem;
}

.team-chat-compose-actions > span:nth-of-type(2) {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
}

.team-chat-form button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 13px;
    border-radius: 9px;
    font-size: 0.82rem;
}

.team-chat-form button span:last-child {
    font-size: 1.1rem;
    line-height: 1;
}

.team-chat-form button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.team-chat-status {
    min-height: 1.2em;
    margin: 0;
    padding: 0 20px 9px;
    color: var(--muted);
    font-size: 0.78rem;
}

.team-chat-error,
.team-chat-status[data-tone="error"] {
    color: #b42318;
}

@media (prefers-reduced-motion: reduce) {
    .team-chat-loading span {
        animation: none;
    }

    .team-chat-messages {
        scroll-behavior: auto;
    }
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-soft);
}

.list-item strong {
    color: var(--brand);
    display: block;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-good { background: #16a34a; }
.status-warn { background: #f59e0b; }
.status-info { background: #2563eb; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.94rem;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
}

.admin-table th {
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.quick-actions a {
    display: block;
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    border: 1px solid var(--line);
    color: var(--brand);
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
}

.quick-actions a:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.admin-dashboard {
    padding-top: 34px;
}

.admin-dashboard > .container {
    max-width: 1440px;
}

.admin-dashboard .admin-shell {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 0;
}

.admin-workspace .admin-shell {
    grid-template-columns: minmax(0, 1fr);
}

.admin-dashboard .admin-sidebar {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background:
        radial-gradient(circle at 8% 0%, rgba(15, 118, 110, 0.24), transparent 34%),
        linear-gradient(180deg, #0d2442 0%, #091a30 100%);
    box-shadow: 0 22px 54px rgba(11, 31, 58, 0.18);
}

.admin-dashboard .admin-brand-mini strong {
    letter-spacing: -0.02em;
}

.admin-dashboard .admin-nav-group {
    margin-bottom: 20px;
}

.admin-dashboard .admin-nav-label {
    color: #91a6bd;
    font-weight: 800;
}

.admin-dashboard .admin-sidebar a {
    min-height: 42px;
    color: #dbe7f3;
}

.admin-dashboard .admin-sidebar a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.admin-dashboard .admin-sidebar a[aria-current="page"] {
    background: linear-gradient(100deg, rgba(15, 118, 110, 0.32), rgba(15, 118, 110, 0.12));
    box-shadow: inset 3px 0 #49c5b4;
    color: #fff;
}

.admin-dashboard .admin-main {
    gap: 20px;
}

.admin-dashboard .admin-toolbar {
    min-height: 150px;
    padding: 27px 30px;
    border-color: rgba(148, 163, 184, 0.3);
    background:
        radial-gradient(circle at 95% 0%, rgba(15, 118, 110, 0.13), transparent 32%),
        linear-gradient(120deg, #fff 0%, #f7faff 100%);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
}

.admin-dashboard .admin-toolbar .tag {
    margin-bottom: 10px;
}

.admin-dashboard .admin-toolbar h1 {
    font-size: clamp(1.8rem, 2.4vw, 2.45rem);
}

.admin-dashboard-subtitle {
    max-width: 650px;
    margin: 8px 0 0;
    color: var(--muted);
}

.admin-dashboard .admin-toolbar-actions {
    flex: 0 0 auto;
}

.admin-dashboard .stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.admin-dashboard .stat-card {
    min-width: 0;
    min-height: 156px;
    padding: 20px;
    border-color: rgba(148, 163, 184, 0.26);
    border-radius: 18px;
    background: linear-gradient(160deg, #fff 0%, #f8fbff 100%);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.055);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.admin-dashboard .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.09);
}

.admin-dashboard .stat-card:before {
    height: 3px;
    background: linear-gradient(90deg, #0f766e, #58c5b8);
}

.admin-dashboard .stat-card:nth-child(2):before {
    background: linear-gradient(90deg, #2563eb, #7aa7ff);
}

.admin-dashboard .stat-card:nth-child(3):before {
    background: linear-gradient(90deg, #7c3aed, #b29aff);
}

.admin-dashboard .stat-card:nth-child(4):before {
    background: linear-gradient(90deg, #d97706, #f5bb55);
}

.stat-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.admin-dashboard .stat-card .label {
    margin: 4px 0 16px;
    font-size: 0.7rem;
    font-weight: 800;
}

.stat-card-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 12px;
    background: rgba(15, 118, 110, 0.08);
    color: var(--brand-2);
}

.stat-card-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.admin-dashboard .stat-card .value {
    margin-bottom: 9px;
    font-size: clamp(1.65rem, 2vw, 2.25rem);
}

.admin-dashboard .stat-card .trend {
    color: var(--muted);
    font-size: 0.77rem;
    font-weight: 600;
}

.admin-dashboard .panel-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
    gap: 18px;
}

.admin-dashboard .admin-panel {
    min-width: 0;
    border-color: rgba(148, 163, 184, 0.25);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.admin-dashboard .panel-header {
    align-items: flex-start;
}

.admin-dashboard .panel-header h3 {
    font-size: 1.08rem;
}

.admin-dashboard .panel-header p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.admin-dashboard .admin-table {
    margin-top: 0;
}

.admin-dashboard .admin-table th {
    color: #64748b;
    font-size: 0.71rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-dashboard .list-item {
    border-color: rgba(148, 163, 184, 0.2);
    background: #fbfcfe;
}

.admin-panel-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    color: var(--brand-2);
    font-size: 0.8rem;
    font-weight: 800;
}

.admin-panel-link:hover {
    color: var(--brand);
}

.admin-dashboard-empty {
    padding: 16px;
    border: 1px dashed rgba(148, 163, 184, 0.55);
    border-radius: 12px;
    color: var(--muted);
    font-size: 0.86rem;
}

.admin-dashboard .quick-actions {
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}

.admin-dashboard .quick-actions a {
    display: flex;
    min-height: 86px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-color: rgba(148, 163, 184, 0.25);
    background: linear-gradient(145deg, #fff 0%, #f8fbff 100%);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.admin-dashboard .quick-actions a:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 118, 110, 0.28);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.07);
}

.analytics-page .admin-main {
    min-width: 0;
}

.analytics-page .analytics-panel {
    min-width: 0;
}

.project-report {
    display: grid;
    gap: 15px;
    margin: 0 0 24px;
}

.project-report-heading,
.project-report-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.project-report-heading {
    padding: 21px 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(120deg, var(--panel) 0%, var(--panel-soft) 100%);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
}

.project-report-heading h2 {
    margin: 8px 0 4px;
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.project-report-heading p,
.project-report-panel-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.project-report-period {
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.project-report-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.project-report-kpi,
.project-report-panel {
    min-width: 0;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--panel);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
}

.project-report-kpi {
    display: grid;
    gap: 5px;
}

.project-report-kpi > span {
    color: var(--muted);
    font-size: 0.8rem;
}

.project-report-kpi strong {
    color: var(--ink);
    font-size: 1.75rem;
    line-height: 1.15;
}

.project-report-kpi small,
.project-report-formula,
.project-report-footnote {
    color: var(--muted);
    font-size: 0.73rem;
    line-height: 1.55;
}

.project-report-panels {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 15px;
}

.project-report-panel-heading {
    align-items: center;
    margin-bottom: 15px;
}

.project-report-panel-heading h3 {
    margin: 0 0 3px;
    font-size: 1rem;
}

.project-health-content {
    display: grid;
    grid-template-columns: minmax(118px, 0.8fr) minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    margin: 8px 0 12px;
}

.project-health-gauge {
    display: grid;
    width: min(100%, 142px);
    aspect-ratio: 1;
    place-items: center;
    margin-inline: auto;
    border-radius: 50%;
    background: conic-gradient(var(--brand-2) calc(var(--report-progress) * 1%), var(--panel-soft) 0);
    position: relative;
}

.project-health-gauge::before {
    position: absolute;
    inset: 11px;
    border: 1px solid var(--line);
    border-radius: inherit;
    background: var(--panel);
    content: "";
}

.project-health-gauge > span {
    position: relative;
    color: var(--ink);
    font-size: 1.65rem;
    font-weight: 800;
}

.project-health-gauge small {
    font-size: 0.8rem;
}

.project-risk-list,
.project-budget-list {
    display: grid;
    gap: 11px;
}

.project-risk-row {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.81rem;
}

.project-risk-row strong {
    color: var(--ink);
}

.project-risk-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.project-risk-dot.is-high { background: #df6868; }
.project-risk-dot.is-medium { background: #e5a32d; }
.project-risk-dot.is-low { background: #20a895; }

.project-budget-row > div:first-child,
.project-report-progress-heading,
.project-report-accomplishment {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.project-budget-row > div:first-child {
    margin-bottom: 5px;
    font-size: 0.78rem;
}

.project-budget-row > div:first-child span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-budget-row strong {
    flex: 0 0 auto;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.project-report-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--panel-soft);
}

.project-report-track > span {
    display: block;
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-2), #54b9d4);
    transition: width 220ms ease;
}

.project-report-list {
    display: grid;
}

.project-report-item {
    padding: 15px 0;
    border-top: 1px solid var(--line);
}

.project-report-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.project-report-item-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.project-report-item-title h4 {
    margin: 6px 0 0;
    font-size: 0.95rem;
}

.project-report-badge {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 750;
}

.project-report-badge.is-high { color: #a52e2e; background: rgba(223, 104, 104, 0.13); }
.project-report-badge.is-medium { color: #885a0c; background: rgba(229, 163, 45, 0.16); }
.project-report-badge.is-low { color: #087c68; background: rgba(32, 168, 149, 0.13); }

.project-report-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.project-report-facts > span {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 0.77rem;
}

.project-report-facts small {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 0.68rem;
}

.project-report-progress-heading {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.75rem;
}

.project-report-progress-heading strong {
    color: var(--ink);
}

.project-report-accomplishment {
    flex-wrap: wrap;
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.73rem;
}

.project-report-note {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.project-report-footnote {
    margin: 0;
}

.analytics-period-form {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto;
    align-items: end;
    gap: 8px;
    min-width: min(100%, 290px);
    margin: 0;
}

.analytics-period-form label {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 0.82rem;
}

.analytics-period-form select {
    min-width: 0;
    margin: 0;
}

.analytics-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.analytics-panel .panel-header {
    align-items: flex-start;
}

.analytics-panel .panel-header h2 {
    margin: 0;
    font-size: 1.1rem;
}

.analytics-panel .panel-header p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.analytics-legend,
.analytics-chart-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 0.8rem;
}

.analytics-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.analytics-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.analytics-chart {
    display: grid;
    grid-template-columns: repeat(30, minmax(12px, 1fr));
    align-items: end;
    gap: 5px;
    min-height: 206px;
    overflow-x: auto;
    padding: 12px 4px 0;
    border-bottom: 1px solid var(--line);
}

.analytics-chart-column {
    display: flex;
    min-width: 12px;
    height: 190px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.analytics-bars {
    display: flex;
    width: 100%;
    height: 164px;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    border-bottom: 1px solid var(--line);
    background: repeating-linear-gradient(to top, transparent 0, transparent 39px, var(--line) 40px);
}

.analytics-bar {
    width: min(9px, 28%);
    min-height: 0;
    border-radius: 4px 4px 0 0;
    transition: height 180ms ease;
}

.analytics-axis-label {
    max-width: 100%;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.65rem;
    line-height: 1;
    text-overflow: clip;
    white-space: nowrap;
}

.analytics-chart-summary {
    margin: 14px 0 0;
}

.analytics-chart-summary strong {
    color: var(--ink);
}

.analytics-breakdown-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.analytics-lower-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analytics-status-list {
    display: grid;
    gap: 15px;
}

.analytics-status-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 0.84rem;
}

.analytics-status-label span {
    overflow-wrap: anywhere;
}

.analytics-meter {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--panel-soft);
}

.analytics-meter > span {
    display: block;
    height: 100%;
    min-width: 2px;
    border-radius: inherit;
}

.analytics-dot.is-blue,
.analytics-bar.is-blue,
.analytics-meter .is-blue { background: #5284e8; }
.analytics-dot.is-teal,
.analytics-bar.is-teal,
.analytics-meter .is-teal { background: #20a895; }
.analytics-dot.is-amber,
.analytics-bar.is-amber,
.analytics-meter .is-amber { background: #e5a32d; }
.analytics-meter .is-red { background: #df6868; }
.analytics-meter .is-purple { background: #9474d5; }

.analytics-empty {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.analytics-activity-list {
    display: grid;
}

.analytics-activity-row {
    display: grid;
    grid-template-columns: 130px minmax(120px, 1fr) minmax(90px, 0.6fr) minmax(150px, auto);
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.84rem;
}

.analytics-activity-row:last-child {
    border-bottom: 0;
}

.analytics-activity-row time {
    color: var(--muted);
    font-size: 0.78rem;
    text-align: right;
}

.admin-dashboard .quick-actions strong,
.admin-dashboard .quick-actions small {
    display: block;
}

.admin-dashboard .quick-actions strong {
    font-size: 0.9rem;
}

.admin-dashboard .quick-actions small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 500;
}

.quick-action-arrow {
    color: var(--brand-2);
    font-size: 1.2rem;
}

@media (max-width: 1080px) {
    .admin-dashboard .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .analytics-breakdown-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-report-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-report-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .admin-dashboard .admin-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-dashboard .panel-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .analytics-breakdown-grid,
    .analytics-lower-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-report-panels {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .admin-dashboard {
        padding-top: 24px;
    }

    .admin-dashboard .admin-toolbar {
        gap: 18px;
        padding: 22px 20px;
    }

    .admin-dashboard .admin-toolbar-actions {
        flex-direction: row;
    }

    .admin-dashboard .admin-toolbar-actions > a {
        width: auto;
        flex: 1 1 0;
    }

    .admin-dashboard .stat-grid {
        gap: 11px;
    }

    .admin-dashboard .stat-card {
        min-height: 142px;
        padding: 15px;
    }

    .admin-dashboard .admin-panel {
        padding: 18px 16px;
    }

    .analytics-page .admin-toolbar {
        align-items: stretch;
    }

    .analytics-period-form {
        min-width: 0;
    }

    .analytics-breakdown-grid,
    .analytics-lower-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-report-heading,
    .project-report-panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .project-report-heading,
    .project-report-panel {
        padding: 17px;
    }

    .project-report-period {
        white-space: nowrap;
    }

    .project-health-content {
        grid-template-columns: 1fr;
    }

    .project-health-gauge {
        width: 126px;
    }

    .project-report-facts {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .project-report-item-title {
        align-items: flex-start;
    }

    .analytics-activity-row {
        grid-template-columns: 1fr auto;
        gap: 6px 10px;
    }

    .analytics-activity-row strong {
        grid-column: 1;
    }

    .analytics-activity-row > span:not(.mini-pill) {
        grid-column: 2;
        grid-row: 1 / span 2;
        text-align: right;
    }

    .analytics-activity-row time {
        grid-column: 1 / -1;
        text-align: left;
    }
}

.brand-logo,
.footer-brand-logo {
    border: 1px solid rgba(226, 232, 240, 0.72);
    background: #fff;
    object-fit: contain;
    filter: none;
}

.brand-logo {
    padding: 2px;
    box-shadow: 0 3px 10px rgba(3, 7, 18, 0.24), 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.brand-link > span {
    color: #f8fafc;
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.25;
    text-wrap: balance;
}

.service-project-metrics {
    padding-top: 48px;
    padding-bottom: 48px;
}

.service-project-metrics .section-head {
    max-width: 760px;
    margin-bottom: 24px;
}

.service-project-metrics .section-head p {
    margin: 10px 0 0;
    color: var(--muted);
}

.service-project-metrics-note {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.service-project-metrics-grid {
    display: flex;
    width: max-content;
    align-items: stretch;
    gap: 16px;
    padding-right: 16px;
}

.service-project-carousel-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.service-project-carousel-viewport::-webkit-scrollbar {
    display: none;
}

.service-project-carousel-track {
    display: flex;
    width: max-content;
    animation: service-project-carousel-slide var(--service-project-slide-duration, 44s) linear infinite;
}

.service-project-carousel:hover .service-project-carousel-track,
.service-project-carousel.is-paused .service-project-carousel-track {
    animation-play-state: paused;
}

.service-project-carousel.is-user-playing .service-project-carousel-track {
    animation-play-state: running !important;
}

@keyframes service-project-carousel-slide {
    to { transform: translateX(-50%); }
}

.service-project-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
}

.service-project-carousel-hint {
    color: var(--muted);
    font-size: 0.75rem;
}

.service-project-carousel-toggle {
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    color: var(--ink);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.service-project-carousel-toggle:hover,
.service-project-carousel-toggle:focus-visible {
    border-color: var(--brand-2);
    color: var(--brand-2);
}

@media (prefers-reduced-motion: reduce) {
    .service-project-carousel-track {
        animation: none;
    }

    .service-project-carousel.is-user-playing .service-project-carousel-track {
        animation: service-project-carousel-slide var(--service-project-slide-duration, 44s) linear infinite !important;
    }
}

.service-project-metric-card {
    flex: 0 0 clamp(240px, 26vw, 290px);
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, var(--panel) 0%, var(--panel-soft) 100%);
    box-shadow: var(--shadow);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.service-project-metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.dark-theme .service-project-metric-card:hover {
    border-color: rgba(168, 155, 255, 0.52);
}

:root:not(.dark-theme) .service-project-metric-card:hover {
    border-color: rgba(30, 215, 96, 0.46);
}

.service-project-metric-card h3 {
    margin: 3px 0 18px;
    color: var(--brand);
    font-size: 1rem;
    line-height: 1.4;
}

.service-project-card-eyebrow {
    color: var(--brand-2);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.service-project-metric-counts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.service-project-metric-counts > div {
    display: grid;
    gap: 2px;
}

.service-project-metric-counts strong {
    color: var(--brand-2);
    font-size: 1.65rem;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.service-project-metric-counts span,
.service-project-progress-label span {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.service-project-progress-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.service-project-progress-label strong {
    flex: 0 0 auto;
    color: var(--brand);
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
}

.service-project-progress-track {
    position: absolute;
    top: 7px;
    right: 0;
    left: 0;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--line);
    z-index: 0;
}

.service-project-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-2), var(--brand-3));
    transition: width 0.3s ease;
}

.service-project-stepper {
    position: relative;
    min-height: 42px;
    margin-top: 23px;
}

.service-project-steps {
    position: absolute;
    inset: 0 0 auto;
    height: 42px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-project-steps li {
    position: absolute;
    top: 0;
    left: var(--step-position);
    display: grid;
    width: 42px;
    justify-items: center;
    gap: 5px;
    transform: translateX(-50%);
}

.service-project-steps li.is-final {
    transform: translateX(-100%);
}

.service-project-step-marker {
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: var(--panel);
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.service-project-steps li.is-reached .service-project-step-marker {
    border-color: var(--brand-2);
    background: var(--brand-2);
    color: #fff;
}

.service-project-steps li.is-current .service-project-step-marker {
    border-color: var(--brand-2);
    color: var(--brand-2);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-2) 16%, transparent);
    transform: scale(1.12);
}

.service-project-step-label {
    color: var(--muted);
    font-size: 0.65rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.service-project-steps li.is-reached .service-project-step-label,
.service-project-steps li.is-current .service-project-step-label {
    color: var(--brand);
    font-weight: 750;
}

.dark-theme .service-project-metric-card {
    border-color: rgba(168, 155, 255, 0.2);
    background: linear-gradient(145deg, rgba(19, 21, 48, 0.98), rgba(12, 14, 34, 0.98));
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

:root:not(.dark-theme) .service-project-metric-card {
    border-color: rgba(30, 215, 96, 0.18);
    background: linear-gradient(145deg, #1b1b1b, #151515);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

@media (max-width: 600px) {
    .service-project-metrics {
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .service-project-metrics-grid {
        gap: 12px;
        padding-right: 12px;
    }

    .service-project-metric-card {
        flex-basis: min(290px, calc(100vw - 64px));
        padding: 18px;
        border-radius: 16px;
    }

    .service-project-carousel-controls {
        justify-content: space-between;
    }
}

.footer-brand-logo,
.admin-brand-mini .brand-logo {
    padding: 2px;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.24);
}

.admin-brand-mini .brand-logo {
    border: 1px solid rgba(226, 232, 240, 0.58);
    background: #fff;
    object-fit: contain;
    filter: none;
}

:root:not(.dark-theme) .topbar .brand-logo {
    border-color: rgba(30, 215, 96, 0.38);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.26), 0 0 0 3px rgba(30, 215, 96, 0.08);
}

.dark-theme .topbar .brand-logo {
    border-color: rgba(168, 155, 255, 0.48);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(168, 155, 255, 0.1);
}

:root:not(.dark-theme) .footer-brand-logo {
    border-color: rgba(30, 215, 96, 0.32);
}

.dark-theme .footer-brand-logo {
    border-color: rgba(168, 155, 255, 0.38);
}

@media (max-width: 600px) {
    .brand-link > span {
        font-size: 1.02rem;
    }

    .brand-logo {
        border-radius: 13px;
    }
}

@media (max-width: 360px) {
    .admin-dashboard .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-dashboard .stat-card {
        padding: 13px 11px;
    }

    .admin-dashboard .stat-card .label {
        font-size: 0.63rem;
        letter-spacing: 0.04em;
    }
}

.workspace-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding: 28px 30px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 22px;
    background:
        radial-gradient(circle at 90% 10%, rgba(15, 118, 110, 0.12), transparent 32%),
        linear-gradient(135deg, #fff, #f2f7ff);
    box-shadow: var(--shadow);
}

.workspace-welcome h1 {
    margin: 0;
    color: var(--brand);
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    letter-spacing: -0.055em;
}

.workspace-welcome p {
    margin: 8px 0 0;
    color: var(--muted);
}

.customer-stat-grid {
    margin-bottom: 22px;
}

.customer-dashboard-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.9fr;
    gap: 20px;
    margin-bottom: 22px;
}

.customer-dashboard-grid .panel-header {
    align-items: flex-start;
}

.customer-dashboard-grid .panel-header h3,
.customer-actions-panel .panel-header h3 {
    margin: 8px 0 0;
}

.customer-project-item {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-soft);
}

.customer-project-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.customer-project-top strong,
.customer-project-top small,
.list-item small {
    display: block;
}

.customer-project-top small,
.list-item small {
    margin-top: 3px;
    color: var(--muted);
}

.progress-track {
    height: 8px;
    overflow: hidden;
    margin: 12px 0 6px;
    border-radius: 999px;
    background: #e7edf5;
}

.progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-3), var(--brand-2));
}

.workspace-empty {
    padding: 26px 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: var(--panel-soft);
    text-align: center;
}

.workspace-empty p {
    margin: 6px 0 10px;
    color: var(--muted);
}

.invoice-summary {
    display: grid;
    justify-items: end;
    gap: 5px;
}

.customer-actions-panel {
    margin-bottom: 20px;
}

.testimonial-carousel {
    max-width: 1180px;
    margin: 0 auto;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.testimonial-viewport {
    overflow: visible;
}

.testimonial-track {
    display: flex;
    width: max-content;
    animation: partner-scroll 38s linear infinite;
}

.testimonial-carousel:hover .testimonial-track,
.testimonial-carousel:focus-within .testimonial-track {
    animation-play-state: paused;
}

.testimonial-group {
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;
    gap: 20px;
    padding: 8px 20px 8px 12px;
}

.testimonial-slide {
    display: flex;
    flex: 0 0 clamp(260px, calc((100vw - 160px) / 3), 340px);
    min-width: 0;
    min-height: 300px;
    flex-direction: column;
    padding: 22px 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.045);
}

.testimonial-quote-mark {
    display: block;
    height: 42px;
    color: var(--brand-2);
    font-family: Georgia, serif;
    font-size: 4.25rem;
    line-height: 1;
    opacity: 0.35;
}

.testimonial-slide blockquote {
    flex: 1;
    margin: 12px 0 20px;
    color: var(--brand);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 600;
    line-height: 1.65;
    letter-spacing: -0.015em;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author strong,
.testimonial-author small {
    display: block;
}

.testimonial-author small {
    margin-top: 2px;
    color: var(--muted);
}

.testimonial-avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
    color: #fff;
    font-weight: 800;
    object-fit: cover;
}

@media (max-width: 900px) {
    .testimonial-slide {
        flex-basis: clamp(260px, calc((100vw - 96px) / 2), 340px);
    }
}

@media (max-width: 480px) {
    .testimonial-group {
        gap: 12px;
        padding-right: 12px;
        padding-left: 8px;
    }

    .testimonial-slide {
        flex-basis: calc(100vw - 64px);
    }
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 16px 24px 22px;
}

.testimonial-arrow {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--brand);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.testimonial-arrow:hover {
    border-color: var(--brand-2);
    color: var(--brand-2);
}

.testimonial-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.testimonial-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.testimonial-dots button[aria-current="true"] {
    width: 26px;
    background: var(--brand-2);
}

.testimonial-admin-card .panel-header {
    align-items: center;
}

.testimonial-admin-card .panel-header > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.studio-artist-carousel {
    max-width: 980px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 90% 5%, rgba(15, 118, 110, 0.09), transparent 28%),
        linear-gradient(135deg, #fff 0%, #f7faff 100%);
    box-shadow: var(--shadow-lg);
}

.creative-team-section {
    padding-top: 42px;
    padding-bottom: 56px;
}

.creative-team-slider {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.creative-team-track {
    display: flex;
    width: max-content;
    animation: partner-scroll 38s linear infinite;
}

.creative-team-slider:hover .creative-team-track,
.creative-team-slider:focus-within .creative-team-track {
    animation-play-state: paused;
}

.creative-team-group {
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;
    gap: 20px;
    padding: 8px 20px 8px 12px;
}

.creative-team-card {
    display: flex;
    flex: 0 0 clamp(240px, calc((100vw - 160px) / 3), 340px);
    min-width: 0;
    flex-direction: column;
    align-items: center;
    padding: 22px 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.045);
    text-align: center;
}

.creative-team-image {
    width: clamp(110px, 11vw, 150px);
    height: clamp(110px, 11vw, 150px);
    margin-bottom: 16px;
    border: 4px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    background: #e8eef5;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
}

.creative-team-card h3 {
    margin: 10px 0 4px;
    color: var(--brand);
    font-size: clamp(1.1rem, 1.8vw, 1.45rem);
}

.creative-team-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

@media (max-width: 900px) {
    .creative-team-card {
        flex-basis: calc((100vw - 96px) / 2);
    }
}

@media (max-width: 600px) {
    .testimonial-carousel,
    .creative-team-slider {
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-padding-inline: 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        mask-image: none;
        scrollbar-width: none;
    }

    .testimonial-carousel::-webkit-scrollbar,
    .creative-team-slider::-webkit-scrollbar {
        display: none;
    }

    .testimonial-track,
    .creative-team-track {
        animation: none;
    }

    .testimonial-group[aria-hidden="true"],
    .creative-team-group[aria-hidden="true"] {
        display: none;
    }

    .testimonial-group,
    .creative-team-group {
        gap: 12px;
        padding: 8px 36px 18px 12px;
    }

    .testimonial-slide,
    .creative-team-card {
        flex: 0 0 min(320px, calc(100vw - 80px));
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .creative-team-slider .creative-team-card {
        flex-basis: min(320px, calc(100vw - 80px));
    }

    .testimonial-slide {
        min-height: 270px;
        padding: 22px 20px 20px;
        border-radius: 18px;
    }

    .testimonial-quote-mark {
        height: 34px;
        font-size: 3.5rem;
    }

    .testimonial-slide blockquote {
        margin: 8px 0 18px;
        font-size: clamp(0.98rem, 4vw, 1.08rem);
        line-height: 1.55;
    }

    .creative-team-card {
        padding: 20px 18px;
        border-radius: 18px;
    }

    .creative-team-image {
        width: 104px;
        height: 104px;
        margin-bottom: 12px;
    }

    .creative-team-slider .creative-team-image {
        width: 104px;
        height: 104px;
    }
}

.studio-artist-viewport {
    min-height: 310px;
}

.studio-artist-slide {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    align-items: stretch;
    animation: testimonial-enter 0.42s ease both;
}

.studio-artist-slide[hidden] {
    display: none;
}

.studio-artist-image {
    width: 100%;
    height: 100%;
    min-height: 310px;
    max-height: 420px;
    object-fit: cover;
    background: #e8eef5;
}

.studio-artist-copy {
    align-self: center;
    padding: clamp(24px, 5vw, 56px);
}

.studio-artist-copy h3 {
    margin: 12px 0;
    color: var(--brand);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.studio-artist-copy > p {
    color: var(--muted);
    line-height: 1.7;
}

.studio-artist-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.studio-artist-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--brand);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.studio-artist-links a:hover {
    border-color: var(--brand-2);
    color: var(--brand-2);
}

.studio-artist-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 14px 24px 22px;
}

.studio-artist-image-upload {
    max-width: 240px;
    max-height: 160px;
    margin-bottom: 12px;
    border-radius: 14px;
    object-fit: cover;
}

.testimonial-delete {
    color: #b91c1c;
    border-color: #fecaca;
}

.partner-section {
    padding: 54px 0;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #f8fafc, #fff);
}

.partner-section-heading {
    margin-bottom: 24px;
    text-align: center;
}

.partner-section-heading h2 {
    margin: 10px 0 0;
    color: var(--brand);
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.partner-slider {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.partner-slider-track,
.partner-slider-group {
    display: flex;
    width: max-content;
    align-items: center;
}

.partner-slider-track {
    animation: partner-scroll 34s linear infinite;
}

.partner-slider:hover .partner-slider-track,
.partner-slider:focus-within .partner-slider-track {
    animation-play-state: paused;
}

.partner-slider-group {
    gap: 20px;
    padding-right: 20px;
}

.partner-logo-card {
    display: grid;
    place-items: center;
    width: clamp(160px, 19vw, 220px);
    height: 104px;
    padding: 20px 28px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.045);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a.partner-logo-card:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 118, 110, 0.35);
    box-shadow: var(--shadow-md);
}

.partner-logo-card img {
    display: block;
    max-width: 100%;
    max-height: 62px;
    object-fit: contain;
    filter: grayscale(0);
    opacity: 0.88;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.partner-logo-card:hover img,
.partner-logo-card:focus-visible img {
    opacity: 1;
}

.partner-admin-card {
    display: grid;
    gap: 18px;
}

.partner-admin-toolbar {
    margin-bottom: 22px;
}

.partner-admin-preview {
    display: flex;
    align-items: center;
    gap: 16px;
}

.partner-admin-preview img {
    width: 140px;
    height: 74px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    object-fit: contain;
    background: #fff;
}

.partner-admin-preview > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.partner-admin-actions {
    margin-top: 6px;
}

.service-featured-image {
    display: block;
    width: 100%;
    height: 190px;
    margin: -24px -24px 22px;
    max-width: calc(100% + 48px);
    border-radius: 18px 18px 0 0;
    object-fit: cover;
}

.studio-service-card {
    min-width: 0;
}

.studio-service-explore {
    display: inline-block;
    margin-top: 8px;
}

.service-featured-image-edit {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

.service-featured-image-edit > img {
    width: 180px;
    height: 104px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 12px;
    object-fit: cover;
    background: #fff;
}

.service-featured-image-edit > label:not(.testimonial-remove-photo) {
    flex: 1;
    min-width: 220px;
}

.ai-write-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 10px;
}

.ai-write-button {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface, #fff);
    color: var(--brand);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.ai-write-button:hover:not(:disabled) {
    border-color: var(--brand-3);
    background: rgba(37, 99, 235, 0.06);
}

.ai-write-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.ai-write-status {
    color: var(--ink-soft);
    font-size: 0.78rem;
}

.knowledge-recent-entries {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.knowledge-recent-entries h4 {
    margin: 0 0 2px;
}

.knowledge-entry {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-soft);
    color: var(--ink);
    overflow-wrap: anywhere;
}

.knowledge-entry strong {
    color: var(--brand);
}

.knowledge-entry small {
    display: inline-block;
    margin-top: 5px;
    color: var(--muted);
    line-height: 1.6;
}

.notifications-list {
    display: grid;
    gap: 10px;
}

.notification-entry {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-soft);
    color: var(--ink);
    overflow-wrap: anywhere;
}

.notification-entry strong {
    color: var(--brand);
}

.notification-entry small {
    display: inline-block;
    margin-top: 5px;
    color: var(--muted);
    line-height: 1.6;
}

.notification-entry p {
    margin: 8px 0 0;
    color: var(--ink-soft);
}

.recent-enquiries-list {
    display: grid;
    gap: 10px;
}

.recent-enquiry {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-soft);
    color: var(--ink);
    overflow-wrap: anywhere;
}

.recent-enquiry strong {
    color: var(--brand);
}

.recent-enquiry small {
    display: inline-block;
    margin-top: 5px;
    color: var(--muted);
    line-height: 1.6;
}

.published-faq-list {
    display: grid;
    gap: 10px;
}

.published-faq-entry {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-soft);
    color: var(--ink);
    overflow-wrap: anywhere;
}

.published-faq-entry strong {
    color: var(--brand);
}

.published-faq-entry small {
    display: inline-block;
    margin-top: 5px;
    color: var(--muted);
    line-height: 1.6;
}

@keyframes partner-scroll {
    to { transform: translateX(-50%); }
}

.admin-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid;
    border-radius: 12px;
}

.admin-alert-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.field-hint {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 400;
}

.testimonial-photo-edit {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 8px;
}

.testimonial-admin-avatar {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
}

.testimonial-photo-edit label {
    flex: 1;
}

.testimonial-remove-photo {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.testimonial-remove-photo input {
    width: auto;
    margin: 0;
}

.credential-settings-form {
    display: grid;
    gap: 20px;
}

.credential-section .panel-header {
    margin-bottom: 22px;
}

.credential-field {
    display: grid;
    grid-template-columns: minmax(190px, 0.65fr) minmax(250px, 1fr) minmax(130px, auto);
    align-items: center;
    gap: 8px 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.credential-field:last-child {
    border-bottom: 0;
}

.smtp-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.smtp-setting {
    min-width: 0;
}

.smtp-setting .credential-field {
    grid-template-columns: minmax(0, 1fr);
}

.smtp-setting .credential-field small,
.smtp-setting .credential-status,
.smtp-setting .credential-clear {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    text-align: left;
}

.credential-field > span:first-child {
    color: var(--brand);
    font-weight: 700;
}

.credential-field input,
.credential-field select {
    margin: 0;
}

.credential-field small {
    grid-column: 2;
    color: var(--muted);
    font-weight: 400;
}

.credential-status {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: right;
}

.credential-status.is-configured {
    color: #047857;
}

.credential-clear {
    grid-column: 2 / 4;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #991b1b;
    font-size: 0.84rem;
}

.credential-clear input {
    width: auto;
    margin: 0;
}

@media (max-width: 600px) {
    .smtp-settings-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.credential-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.credential-submit p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.credential-account-settings {
    display: grid;
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.credential-account-settings > h4,
.credential-account-settings > p {
    margin: 0;
}

.credential-account-settings > p {
    color: var(--muted);
    font-size: 0.88rem;
}

.credential-account-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(200px, 1fr) minmax(190px, 0.8fr);
    align-items: end;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-soft);
}

.credential-account-row > div {
    align-self: center;
}

.credential-account-row > div strong,
.credential-account-row > div small {
    display: block;
}

.credential-account-row > div small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.credential-account-row label {
    margin: 0;
}

.credential-account-row input,
.credential-account-row select {
    margin: 5px 0 0;
}

.credential-account-row .credential-clear {
    grid-column: 2 / -1;
}

.credential-account-test {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.credential-account-test label {
    margin: 0;
}

.credential-account-test select {
    width: min(100%, 360px);
    margin: 0;
}

.active-api-account-list {
    display: grid;
    gap: 10px;
}

.active-api-account {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-soft);
    color: var(--ink);
    overflow-wrap: anywhere;
}

.active-api-account strong {
    color: var(--brand);
}

.active-api-account small {
    display: inline-block;
    margin-top: 5px;
    color: var(--muted);
    line-height: 1.6;
}

@keyframes testimonial-enter {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-track {
        animation: none;
    }

    .testimonial-carousel {
        overflow-x: auto;
        mask-image: none;
    }

    .testimonial-group[aria-hidden="true"] {
        display: none;
    }

    .creative-team-track {
        animation: none;
    }

    .creative-team-slider {
        overflow-x: auto;
        mask-image: none;
    }

    .creative-team-group[aria-hidden="true"] {
        display: none;
    }

    .partner-slider {
        overflow-x: auto;
        mask-image: none;
    }

    .partner-slider-track {
        animation: none;
    }

    .partner-slider-group[aria-hidden="true"] {
        display: none;
    }
}

.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;
}

.chat-widget {
    position: fixed;
    right: 24px;
    top: 104px;
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 14px;
    pointer-events: none;
}

.chat-widget > * {
    pointer-events: auto;
}

.chat-widget-options {
    display: grid;
    width: min(270px, calc(100vw - 32px));
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
}

.chat-widget-options[hidden] {
    display: none;
}

.chat-widget-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.chat-widget-option:hover {
    background: #f1f5f9;
    text-decoration: none;
}

.chat-widget-option strong,
.chat-widget-option small {
    display: block;
}

.chat-widget-option strong {
    color: var(--brand);
}

.chat-widget-option small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.8rem;
}

.chat-widget-option-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    color: #fff;
}

.ai-option-icon {
    overflow: hidden;
    background: transparent;
}

.staff-chat-option-icon {
    background: linear-gradient(135deg, #0f766e, #1db954);
}

.staff-chat-option-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.ai-option-icon img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.whatsapp-option-icon {
    background: #25d366;
}

.whatsapp-option-icon svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.chat-widget-launcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    min-height: 58px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-2), #0b1f3a);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 14px 34px rgba(11, 31, 58, 0.3);
    cursor: pointer;
    animation: chat-widget-live-pulse 2.4s ease-out infinite;
    transition: transform 0.2s ease;
}

.chat-widget-launcher:hover {
    transform: translateY(-2px);
}

.chat-widget-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.1rem;
}

.chat-widget-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.chat-widget-live-indicator {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 13px;
    height: 13px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

@keyframes chat-widget-live-pulse {
    0% {
        box-shadow: 0 14px 34px rgba(11, 31, 58, 0.3), 0 0 0 0 rgba(34, 197, 94, 0.36);
    }
    70% {
        box-shadow: 0 14px 34px rgba(11, 31, 58, 0.3), 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 14px 34px rgba(11, 31, 58, 0.3), 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .chat-widget-launcher {
        animation: none;
        transition: none;
    }
}

.chat-widget-panel {
    display: flex;
    flex-direction: column;
    width: min(370px, calc(100vw - 32px));
    height: min(500px, calc(100dvh - 190px));
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
}

.chat-widget-panel[hidden] {
    display: none;
}

.chat-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 18px;
    background: linear-gradient(135deg, #0b1f3a, #0f766e);
    color: #fff;
}

.chat-widget-header strong,
.chat-widget-header span {
    display: block;
}

.chat-widget-header span {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
}

.chat-widget-close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.chat-widget-messages {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 18px;
    background: #f7f9fc;
}

.chat-widget-message {
    max-width: 88%;
    margin: 0;
    padding: 10px 13px;
    border-radius: 14px;
    color: var(--ink);
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.chat-widget-message.bot {
    align-self: flex-start;
    border: 1px solid var(--line);
    border-bottom-left-radius: 4px;
    background: #fff;
}

.chat-widget-message.user {
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    background: #e5efff;
}

.chat-widget-message.error {
    color: #991b1b;
    background: #fef2f2;
}

.chat-widget-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--line);
}

.chat-widget-form [hidden] {
    display: none !important;
}

.chat-widget-form input {
    min-width: 0;
    margin: 0;
    border-radius: 999px;
}

.chat-widget-send {
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: var(--brand-2);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.chat-widget-send:disabled {
    cursor: wait;
    opacity: 0.65;
}

.chat-widget-live-status {
    margin: 0;
    padding: 0 14px 8px;
    color: var(--muted);
    font-size: 0.76rem;
}

.chat-widget-voice {
    display: inline-grid;
    width: 42px;
    min-width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface, #fff);
    color: var(--ink);
    cursor: pointer;
}

.chat-widget-voice svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.chat-widget-voice[aria-pressed="true"],
.chat-widget-voice.is-listening {
    border-color: var(--brand-2);
    background: var(--brand-2);
    color: #fff;
}

.chat-widget-voice:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.voice-chat-status {
    min-height: 0;
    padding: 0 14px;
    color: var(--muted, #64748b);
    font-size: 0.8rem;
}

.voice-chat-status:not(:empty) {
    padding-bottom: 8px;
}

.assistant-chat-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.assistant-chat-form input {
    min-width: 0;
    flex: 1;
}

.chat-output {
    min-height: 200px;
    margin-bottom: 12px;
    padding: 16px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fafc;
}

.chat-output > p {
    margin: 0 0 12px;
}

.chat-output > p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding-right: 24px;
        padding-left: 24px;
    }

    .nav-wrap {
        gap: 14px;
    }

    .main-nav {
        gap: 2px;
    }

    .language-picker {
        position: absolute;
        top: 17px;
        right: max(16px, calc((100vw - 720px) / 2));
    }

    .footer-language-picker {
        position: static;
        top: auto;
        right: auto;
    }

    .language-picker select {
        min-width: 102px;
        padding: 7px 24px 7px 8px;
        font-size: 0.8rem;
    }

    .footer-language-picker select {
        min-width: 100px;
    }

    .main-nav a,
    .link-btn {
        padding-right: 9px;
        padding-left: 9px;
        font-size: 0.88rem;
    }

    .admin-shell {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 18px;
    }

    .admin-sidebar {
        padding-right: 10px;
        padding-left: 10px;
    }

    .admin-panel {
        min-width: 0;
    }

    .credential-account-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .credential-account-row > div {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .admin-workspace .page-shell {
        padding-left: 0;
        padding-top: 116px;
    }

    .customer-portal-workspace .page-shell {
        padding-left: 0;
        padding-top: 116px;
    }

    .admin-global-sidebar {
        position: sticky;
        top: 120px;
        bottom: auto;
        display: flex;
        align-items: flex-start;
        gap: 18px;
        width: auto;
        max-width: calc(100% - 24px);
        max-height: none;
        margin: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 12px;
        border-radius: 16px;
        scrollbar-width: thin;
    }

    .admin-sidebar-backdrop {
        position: fixed;
        z-index: 1200;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgba(0, 0, 0, 0.62);
    }

    .admin-sidebar-backdrop[hidden] {
        display: none;
    }

    .admin-mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        min-height: 40px;
        padding: 8px;
        border: 1px solid rgba(125, 231, 212, 0.38);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        font: inherit;
        font-size: 1.25rem;
        font-weight: 700;
        cursor: pointer;
        margin: 8px 24px 0;
    }

    .admin-mobile-sidebar-header {
        position: sticky;
        z-index: 1;
        top: 0;
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: space-between;
        min-height: 62px;
        padding: 10px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        background: #34363b;
        color: #fff;
        font-size: 1rem;
    }

    .admin-mobile-sidebar-header button {
        display: grid;
        width: 42px;
        height: 42px;
        place-items: center;
        border: 0;
        border-radius: 0 0 0 8px;
        background: #e98305;
        color: #fff;
        font-size: 1.7rem;
        line-height: 1;
        cursor: pointer;
    }

    .admin-mobile-dashboard {
        display: none !important;
    }

    .admin-global-sidebar .admin-nav-group {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 4px;
        margin: 0;
    }

    body.admin-mobile-menu-open {
        overflow: hidden;
    }

    .vpanel-admin-workspace .admin-global-sidebar {
        position: fixed;
        z-index: 1201;
        inset: 0 auto 0 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: min(88vw, 360px);
        max-width: 100%;
        max-height: 100dvh;
        margin: 0;
        padding: 0 0 max(16px, env(safe-area-inset-bottom));
        overflow-x: hidden;
        overflow-y: auto;
        border: 0;
        border-radius: 0;
        background: #1e1f23;
        box-shadow: 16px 0 42px rgba(0, 0, 0, 0.35);
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform 0.22s ease, visibility 0.22s ease;
        scrollbar-width: thin;
    }

    .vpanel-admin-workspace .admin-global-sidebar.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .vpanel-admin-workspace .admin-mobile-sidebar-header {
        position: sticky;
        z-index: 1;
        top: 0;
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: space-between;
        min-height: 62px;
        padding: 10px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        background: #34363b;
        color: #fff;
        font-size: 1rem;
    }

    .vpanel-admin-workspace .admin-mobile-sidebar-header button {
        display: grid;
        width: 42px;
        height: 42px;
        place-items: center;
        border: 0;
        border-radius: 0 0 0 8px;
        background: #e98305;
        color: #fff;
        font-size: 1.7rem;
        line-height: 1;
        cursor: pointer;
    }

    .vpanel-admin-workspace .admin-global-sidebar .admin-brand-mini {
        display: none;
    }

    .vpanel-admin-workspace .admin-global-sidebar .admin-nav-group {
        display: flex;
        flex: 0 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 0 10px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .vpanel-admin-workspace .admin-global-sidebar .admin-nav-label {
        align-self: stretch;
        padding: 12px 12px 6px;
        color: rgba(226, 232, 240, 0.56);
        font-size: 0.68rem;
    }

    .vpanel-admin-workspace .admin-global-sidebar > .admin-mobile-dashboard {
        display: flex !important;
        flex: 0 0 auto;
        align-items: center;
        justify-content: flex-start;
        min-height: 52px;
        margin: 6px 10px 0;
        padding: 11px 12px;
        border-radius: 10px;
        color: #f1f5f9;
        font-weight: 700;
        text-decoration: none;
    }

    .vpanel-admin-workspace .admin-global-sidebar .admin-desktop-dashboard {
        display: none !important;
    }

    .vpanel-admin-workspace .admin-global-sidebar .admin-nav-group a {
        flex: 0 0 auto;
        justify-content: flex-start;
        min-height: 48px;
        padding: 11px 12px;
        border-radius: 10px;
        color: #d1d5db;
        font-size: 0.98rem;
        white-space: normal;
    }

    .vpanel-admin-workspace .admin-global-sidebar .admin-nav-group a[aria-current="page"],
    .vpanel-admin-workspace .admin-global-sidebar > .admin-mobile-dashboard[aria-current="page"] {
        background: rgba(255, 255, 255, 0.09);
        color: #fff;
    }

    .vpanel-admin-workspace .admin-header-account-menu {
        display: none;
    }

    .vpanel-admin-workspace .admin-mobile-account-menu {
        display: block;
        position: relative;
        flex: 0 0 auto;
        margin: 0 auto 0 0;
        padding: 0;
        border: 0;
    }

    .vpanel-admin-workspace .admin-mobile-account-menu > summary {
        display: grid;
        width: 42px;
        height: 42px;
        place-items: center;
        border: 1px solid rgba(255, 255, 255, 0.26);
        border-radius: 50%;
        color: #e5e7eb;
        cursor: pointer;
        list-style: none;
    }

    .vpanel-admin-workspace .admin-mobile-account-menu > summary::-webkit-details-marker {
        display: none;
    }

    .vpanel-admin-workspace .admin-mobile-account-menu > summary svg {
        width: 24px;
        height: 24px;
        fill: currentColor;
    }

    .vpanel-admin-workspace .admin-mobile-account-options {
        position: absolute;
        z-index: 2;
        top: calc(100% + 8px);
        left: 0;
        display: grid;
        width: min(250px, calc(100vw - 48px));
        gap: 4px;
        padding: 8px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 12px;
        background: #292b30;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.36);
    }

    .vpanel-admin-workspace .admin-mobile-account-options a,
    .vpanel-admin-workspace .admin-mobile-account-options .link-btn {
        display: block;
        width: 100%;
        padding: 9px 10px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: #d1d5db;
        font: inherit;
        text-align: left;
    }

    .vpanel-admin-workspace .admin-mobile-account-options a:hover,
    .vpanel-admin-workspace .admin-mobile-account-options .link-btn:hover {
        background: rgba(255, 255, 255, 0.09);
        color: #fff;
    }

    .vpanel-admin-workspace .admin-mobile-account-options form {
        margin: 0;
    }

    .vpanel-admin-workspace .admin-mobile-account-options .account-menu-name {
        color: rgba(226, 232, 240, 0.68);
    }

    .admin-shell {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .admin-sidebar {
        position: sticky;
        top: 92px;
        display: flex;
        align-items: flex-start;
        gap: 18px;
        overflow-x: auto;
        padding: 12px;
        border-radius: 16px;
        scrollbar-width: thin;
    }

    .admin-brand-mini {
        display: none;
    }

    .admin-nav-group {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 4px;
        margin: 0;
    }

    .admin-nav-label {
        align-self: center;
        padding: 0 5px;
        white-space: nowrap;
    }

    .admin-sidebar a {
        flex: 0 0 auto;
        padding: 8px 10px;
        white-space: nowrap;
    }

    .panel-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .notification-toasts {
        right: 16px;
        bottom: 16px;
        left: 16px;
        width: auto;
    }

    .notification-panel {
        position: fixed;
        right: 12px;
        left: 12px;
        width: auto;
        max-height: min(520px, calc(100vh - 228px));
    }

    .workspace-page .page-shell {
        padding-top: 104px;
    }

    .customer-portal-workspace .page-shell {
        padding-top: 164px;
    }

    .admin-workspace .page-shell {
        padding-top: 116px;
    }

    .vpanel-admin-workspace .page-shell {
        padding-top: 164px;
    }

    .vpanel-admin-workspace .brand {
        flex: 1 1 auto;
        min-width: 0;
        order: 0;
    }

    .vpanel-admin-workspace .brand-link {
        min-width: 0;
    }

    .vpanel-admin-workspace .brand-link > span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .vpanel-admin-workspace .admin-mobile-menu-toggle {
        order: 1;
        flex: 0 0 34px;
        width: 34px;
        min-height: 34px;
        margin: 0;
        padding: 6px;
        font-size: 1.05rem;
    }

    .vpanel-admin-workspace .workspace-nav {
        order: 4;
        flex: 1 0 100%;
    }

    .vpanel-admin-workspace .workspace-nav-links {
        order: 4;
    }

    .vpanel-admin-workspace .theme-switch {
        order: 2;
        margin-left: 0;
    }

    .vpanel-admin-workspace .account-menu {
        order: 4;
        margin-left: auto;
    }

    .vpanel-admin-workspace .notification-center {
        order: 3;
    }

    .vpanel-admin-workspace .admin-global-sidebar {
        top: 0;
    }

    .customer-portal-workspace .brand {
        flex: 1 1 auto;
        min-width: 0;
        order: 0;
    }

    .customer-portal-workspace .brand-link,
    .customer-portal-workspace .brand-link > span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .customer-portal-workspace .admin-mobile-menu-toggle {
        order: 1;
        flex: 0 0 34px;
        width: 34px;
        min-height: 34px;
        margin: 0;
        padding: 6px;
        font-size: 1.05rem;
    }

    .customer-portal-workspace .workspace-nav {
        order: 4;
        flex: 1 0 100%;
    }

    .customer-portal-workspace .theme-switch {
        order: 2;
        margin-left: 0;
    }

    .customer-portal-workspace .account-menu {
        order: 4;
        margin-left: auto;
    }

    .customer-portal-workspace .notification-center {
        order: 3;
    }

    .customer-portal-workspace .customer-global-sidebar {
        position: fixed;
        z-index: 1201;
        inset: 0 auto 0 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: min(88vw, 360px);
        max-width: 100%;
        max-height: 100dvh;
        margin: 0;
        padding: 0 0 max(16px, env(safe-area-inset-bottom));
        overflow-x: hidden;
        overflow-y: auto;
        border: 0;
        border-radius: 0;
        background: #1e1f23;
        box-shadow: 16px 0 42px rgba(0, 0, 0, 0.35);
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform 0.22s ease, visibility 0.22s ease;
        scrollbar-width: thin;
    }

    .customer-portal-workspace .customer-global-sidebar.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .customer-portal-workspace .customer-global-sidebar .admin-mobile-sidebar-header {
        position: sticky;
        z-index: 1;
        top: 0;
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: space-between;
        min-height: 62px;
        padding: 10px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        background: #34363b;
        color: #fff;
        font-size: 1rem;
    }

    .customer-portal-workspace .customer-global-sidebar .admin-brand-mini {
        display: none;
    }

    .customer-portal-workspace .customer-global-sidebar .admin-nav-group {
        display: flex;
        flex: 0 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 0 10px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .customer-portal-workspace .customer-global-sidebar .admin-nav-label {
        align-self: stretch;
        padding: 12px 12px 6px;
        color: rgba(226, 232, 240, 0.56);
        font-size: 0.68rem;
    }

    .customer-portal-workspace .customer-global-sidebar .admin-nav-group a {
        flex: 0 0 auto;
        justify-content: flex-start;
        min-height: 48px;
        padding: 11px 12px;
        border-radius: 10px;
        color: #d1d5db;
        font-size: 0.98rem;
        white-space: normal;
    }

    .customer-portal-workspace .customer-global-sidebar .admin-nav-group a[aria-current="page"] {
        background: rgba(255, 255, 255, 0.09);
        color: #fff;
    }

    .hero-grid, .split-grid { grid-template-columns: 1fr; }

    .studio-artist-slide {
        grid-template-columns: minmax(0, 1fr);
    }

    .studio-artist-image {
        height: min(72vw, 340px);
        min-height: 0;
        max-height: none;
    }

    .creative-team-group {
        gap: 12px;
        padding-right: 12px;
        padding-left: 8px;
    }

    .creative-team-card {
        padding: 18px 12px;
    }

    .creative-team-image {
        width: clamp(90px, 24vw, 130px);
        height: clamp(90px, 24vw, 130px);
    }

    .studio-artist-copy {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .creative-team-card {
        flex-basis: calc(100vw - 64px);
    }

    .team-chat {
        grid-template-columns: minmax(0, 1fr);
        height: auto;
        min-height: 0;
    }

    .team-chat[data-mobile-conversation="open"] {
        height: min(68svh, 680px);
        min-height: 500px;
    }

    .team-chat-sidebar {
        min-height: 0;
        overflow-y: auto;
        padding: 16px 14px;
        border: 0;
    }

    .team-chat-sidebar > .team-chat-conversation {
        max-width: 100%;
    }

    .team-chat[data-mobile-conversation="closed"] .team-chat-main,
    .team-chat[data-mobile-conversation="open"] .team-chat-sidebar {
        display: none;
    }

    .team-chat[data-mobile-conversation="open"] .team-chat-main {
        display: flex;
    }

    .team-chat-back {
        display: grid;
        flex: 0 0 30px;
        place-items: center;
    }

    .team-chat-sidebar-heading {
        margin-bottom: 14px;
    }

    .team-chat-people {
        grid-template-columns: minmax(0, 1fr);
        max-height: none;
    }

    .team-chat-search {
        margin: 14px 4px 16px;
    }

    .team-chat-header {
        min-height: 70px;
        gap: 8px;
        padding: 12px;
    }

    .team-chat-header-avatar {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .team-chat-connection {
        font-size: 0.68rem;
    }

    .team-chat-messages {
        min-height: 0;
        max-height: none;
        padding: 14px 12px;
    }

    .team-chat-message {
        max-width: 90%;
    }

    .team-chat-form {
        padding: 10px 12px 4px;
    }

    .team-chat-compose-actions {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 0.66rem;
    }

    .team-chat-compose-actions > span:first-child {
        max-width: calc(100% - 80px);
    }

    .team-chat-status {
        padding-right: 12px;
        padding-left: 12px;
    }

    .nav-wrap {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        column-gap: 8px;
        padding-top: 12px;
        padding-bottom: 8px;
    }

    .brand {
        flex: 0 1 auto;
    }

    .brand-link {
        gap: 9px;
    }

    .brand a {
        font-size: 1.12rem;
    }

    .brand-logo {
        width: 44px;
        height: 44px;
    }

    .main-nav {
        justify-content: flex-start;
        flex-wrap: nowrap;
        max-width: 100%;
        gap: 3px;
        overflow: visible;
    }

    .main-nav {
        display: contents;
    }

    .main-nav-links {
        flex: 1 1 auto;
        order: 2;
        width: 100%;
        min-width: 0;
        flex-wrap: nowrap;
        gap: 3px;
        overflow-x: auto;
        padding: 8px 0 4px;
        scrollbar-width: thin;
    }

    .main-nav a,
    .main-nav .link-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .workspace-nav {
        max-width: 100%;
        gap: 2px;
    }

    .account-menu {
        position: relative;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .account-menu > summary {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        padding: 6px !important;
    }

    .account-menu > summary svg {
        width: 12px;
        height: 12px;
    }
    .workspace-nav-links {
        gap: 2px;
    }
    .workspace-nav a,
    .workspace-nav .link-btn {
        padding: 8px 10px;
    }
    .workspace-user {
        display: none;
    }

    .hero,
    .section {
        padding: clamp(40px, 8vw, 60px) 0;
    }

    .hero-grid,
    .split-grid {
        gap: 24px;
    }

    .hero h1 {
        font-size: clamp(2.25rem, 8vw, 3.5rem);
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
        gap: 16px;
    }

    .admin-shell {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .admin-sidebar {
        position: static;
        display: flex;
        align-items: flex-start;
        gap: 18px;
        overflow-x: auto;
        padding: 12px;
        border-radius: 16px;
        scrollbar-width: thin;
    }

    .admin-brand-mini {
        display: none;
    }

    .admin-nav-group {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 4px;
        margin: 0;
    }

    .admin-nav-label {
        align-self: center;
        padding: 0 5px;
        white-space: nowrap;
    }

    .admin-sidebar a {
        flex: 0 0 auto;
        padding: 8px 10px;
        white-space: nowrap;
    }

    .admin-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-toolbar-actions {
        width: 100%;
    }

    .panel-grid {
        grid-template-columns: 1fr;
    }

    .stat-grid,
    .metric-boxes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-cards {
        gap: 12px;
    }

    .process-card {
        padding: 16px 14px;
    }

    .process-card h3 {
        font-size: 1rem;
    }

    .process-card p {
        margin-bottom: 0;
        font-size: 0.84rem;
        line-height: 1.5;
    }

    .chart-bars {
        gap: 7px;
    }

    .table-responsive {
        max-width: 100%;
        overscroll-behavior-x: contain;
    }

    .invoice-payment-form {
        margin-top: 14px;
    }
    .customer-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .workspace-welcome {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .testimonial-viewport {
        min-height: 320px;
    }

    .testimonial-slide {
        padding: 32px 24px 22px;
    }

    .credential-field {
        grid-template-columns: 1fr;
    }
    .credential-field small,
    .credential-status,
    .credential-clear {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
        text-align: left;
    }
    .credential-submit {
        align-items: flex-start;
        flex-direction: column;
    }

    .credential-submit .admin-toolbar-actions {
        flex-direction: column;
    }

    .credential-submit .admin-toolbar-actions > button {
        width: 100%;
    }

    .partner-section {
        padding: 40px 0;
    }

    .partner-admin-preview {
        align-items: flex-start;
    }

    .footer-meta {
        flex-direction: column;
    }

    .footer-language-picker {
        align-self: flex-end;
        justify-content: flex-end;
    }

    .chat-widget {
        right: 16px;
    }
}

@media (max-width: 480px) {
    .page-back-row {
        padding-bottom: 16px;
    }

    .container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .main-nav a,
    .main-nav .link-btn {
        padding: 8px;
        font-size: 0.84rem;
    }

    .hero,
    .section {
        padding: 38px 0;
    }

    .hero h1 {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .hero-brand-card,
    .card,
    .admin-panel {
        padding: 18px;
        border-radius: 16px;
    }

    .card-grid,
    .form-row,
    .stat-grid,
    .customer-dashboard-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .process-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .process-card {
        padding: 14px 12px;
    }

    .cta-row,
    .admin-toolbar-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .credential-account-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .credential-account-row > div,
    .credential-account-row .credential-clear {
        grid-column: auto;
    }

    .credential-account-test {
        align-items: stretch;
        flex-direction: column;
    }

    .credential-account-test select,
    .credential-account-test button {
        width: 100%;
    }

    .cta-row .btn,
    .admin-toolbar-actions > a,
    .admin-toolbar-actions > button {
        width: 100%;
    }

    .workspace-welcome {
        padding: 18px;
        border-radius: 18px;
    }

    .admin-toolbar {
        padding: 16px;
    }

    .list-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .partner-admin-preview {
        flex-direction: column;
    }

    .partner-admin-preview img {
        width: min(100%, 220px);
    }

    .service-featured-image {
        height: 160px;
        margin: -18px -18px 18px;
        max-width: calc(100% + 36px);
    }

    .chat-widget {
        right: 12px;
        top: 160px;
    }
}

@media (max-width: 560px) {
    .social-link-field {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (max-width: 360px) {
    .container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .brand a {
        font-size: 1rem;
    }

    .admin-sidebar {
        gap: 10px;
    }

    .admin-nav-label {
        display: none;
    }
}

.theme-switch {
    position: relative;
    display: inline-flex;
    width: 24px;
    height: 14px;
    flex: 0 0 24px;
    align-items: center;
    padding: 1px;
    border: 1px solid rgba(228, 237, 247, 0.48);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease;
}

.theme-switch:hover {
    border-color: rgba(125, 231, 212, 0.85);
    background: rgba(125, 231, 212, 0.2);
}

.theme-switch:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px var(--focus-glow);
}

.theme-switch-thumb {
    display: grid;
    width: 10px;
    height: 10px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #0b1f3a;
    transform: translateX(0);
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.theme-switch-thumb svg {
    width: 7px;
    height: 7px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.theme-switch-moon {
    display: none;
}

.dark-theme .theme-switch {
    border-color: rgba(139, 124, 255, 0.7);
    background: rgba(92, 92, 240, 0.72);
}

.dark-theme .theme-switch-thumb {
    background: #0a0b1c;
    color: #c5beff;
    transform: translateX(10px);
}

.dark-theme .theme-switch-sun {
    display: none;
}

.dark-theme .theme-switch-moon {
    display: block;
}

.dark-theme {
    color-scheme: dark;
    --bg: #060713;
    --bg-strong: #0a0b1d;
    --panel: #0d1027;
    --panel-soft: #141733;
    --ink: #f6f5ff;
    --ink-soft: #d8d7ec;
    --muted: #a4a5c2;
    --brand: #f4f2ff;
    --brand-2: #a89bff;
    --brand-3: #7770ff;
    --accent: #fb4f91;
    --danger: #ff7088;
    --focus-color: #ff729e;
    --focus-background: rgba(255, 114, 158, 0.18);
    --focus-glow: rgba(255, 114, 158, 0.22);
    --line: #292b4c;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
    --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.42);
    background: var(--bg);
}

.dark-theme body {
    background:
        radial-gradient(circle at 12% 0%, rgba(103, 87, 255, 0.16), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(108, 67, 210, 0.1), transparent 26%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-strong) 100%);
    color: var(--ink);
}

.dark-theme .card,
.dark-theme .form-card,
.dark-theme .admin-panel,
.dark-theme .stat-card,
.dark-theme .list-item,
.dark-theme .hero-brand-card,
.dark-theme .team-chat,
.dark-theme .team-chat-sidebar,
.dark-theme .team-chat-main,
.dark-theme .team-chat-header,
.dark-theme .team-chat-form,
.dark-theme .team-chat-search input,
.dark-theme .team-chat-message,
.dark-theme .workspace-welcome,
.dark-theme .workspace-card,
.dark-theme .workspace-panel {
    border-color: var(--line);
    background: var(--panel);
    color: var(--ink);
}

.dark-theme .studio-artist-carousel {
    border-color: var(--line);
    background:
        radial-gradient(circle at 90% 5%, rgba(15, 118, 110, 0.12), transparent 28%),
        linear-gradient(135deg, var(--panel) 0%, var(--panel-soft) 100%);
}

.dark-theme .studio-artist-copy h3 {
    color: var(--ink);
}

.dark-theme .admin-toolbar,
.dark-theme .admin-dashboard .admin-toolbar,
.dark-theme .admin-dashboard .stat-card,
.dark-theme .workspace-welcome,
.dark-theme .workspace-card {
    background: linear-gradient(135deg, var(--panel) 0%, var(--panel-soft) 100%);
}

.dark-theme input:not([type="checkbox"]):not([type="radio"]),
.dark-theme textarea,
.dark-theme select {
    border-color: var(--line);
    background-color: var(--panel-soft);
    color: var(--ink);
}

.dark-theme input::placeholder,
.dark-theme textarea::placeholder {
    color: var(--muted);
}

.dark-theme .account-menu-panel,
.dark-theme .language-picker select,
.dark-theme .footer-language-picker select {
    border-color: var(--line);
    background: var(--panel);
    color: var(--ink);
}

.dark-theme .account-menu-panel a,
.dark-theme .account-menu-panel .link-btn,
.dark-theme .section-head p,
.dark-theme .card p,
.dark-theme .admin-panel p,
.dark-theme .list-item small {
    color: var(--ink-soft);
}

.dark-theme .account-menu > summary {
    border-color: rgba(164, 153, 255, 0.58) !important;
    background: linear-gradient(145deg, #29245d, #171733) !important;
    color: #e5e1ff !important;
    box-shadow: 0 4px 14px rgba(82, 66, 190, 0.22);
}

.dark-theme .account-menu > summary:hover,
.dark-theme .account-menu[open] > summary {
    border-color: #a89bff !important;
    background: linear-gradient(145deg, #49408f, #272253) !important;
    color: #fff !important;
}

.dark-theme .account-menu > summary:focus-visible {
    outline-color: var(--focus-color);
    box-shadow: 0 0 0 4px var(--focus-glow);
}

.dark-theme .account-menu-panel {
    border-color: rgba(139, 124, 255, 0.34);
    background: linear-gradient(145deg, #141632 0%, #0d1027 100%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.48), 0 4px 18px rgba(83, 67, 191, 0.12);
}

.dark-theme .account-menu-name {
    border-bottom: 1px solid var(--line);
    color: #b9b6d5;
}

.dark-theme .account-menu-panel a,
.dark-theme .account-menu-panel .link-btn {
    color: #e2e0f7;
}

.dark-theme .account-menu-panel a:hover,
.dark-theme .account-menu-panel .link-btn:hover,
.dark-theme .account-menu-panel a:focus-visible,
.dark-theme .account-menu-panel .link-btn:focus-visible {
    background: rgba(119, 112, 255, 0.18);
    color: #c9c2ff;
}

.dark-theme .vpanel-admin-workspace .admin-mobile-account-menu > summary {
    border-color: rgba(164, 153, 255, 0.58);
    background: linear-gradient(145deg, #29245d, #171733);
    color: #e5e1ff;
}

.dark-theme .vpanel-admin-workspace .admin-mobile-account-menu > summary:hover,
.dark-theme .vpanel-admin-workspace .admin-mobile-account-menu[open] > summary {
    border-color: #a89bff;
    background: linear-gradient(145deg, #49408f, #272253);
    color: #fff;
}

.dark-theme .vpanel-admin-workspace .admin-mobile-account-options {
    border-color: rgba(139, 124, 255, 0.34);
    background: linear-gradient(145deg, #141632 0%, #0d1027 100%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.48), 0 4px 18px rgba(83, 67, 191, 0.12);
}

.dark-theme .vpanel-admin-workspace .admin-mobile-account-options a,
.dark-theme .vpanel-admin-workspace .admin-mobile-account-options .link-btn {
    color: #e2e0f7;
}

.dark-theme .vpanel-admin-workspace .admin-mobile-account-options a:hover,
.dark-theme .vpanel-admin-workspace .admin-mobile-account-options .link-btn:hover,
.dark-theme .vpanel-admin-workspace .admin-mobile-account-options a:focus-visible,
.dark-theme .vpanel-admin-workspace .admin-mobile-account-options .link-btn:focus-visible {
    background: rgba(119, 112, 255, 0.18);
    color: #c9c2ff;
}

.dark-theme .vpanel-admin-workspace .admin-mobile-account-options .account-menu-name {
    border-bottom: 1px solid var(--line);
    color: #b9b6d5;
}

.dark-theme .footer {
    background: linear-gradient(180deg, #090a1b 0%, #050611 100%);
}

.dark-theme .topbar {
    background: linear-gradient(105deg, #080917 0%, #11122e 70%, #1b1742 100%);
    border-bottom-color: rgba(139, 124, 255, 0.28);
}

.dark-theme a {
    color: #aaa1ff;
}

.dark-theme .main-nav a,
.dark-theme .link-btn {
    color: #e5e3fa;
}

.dark-theme .main-nav a:hover,
.dark-theme .link-btn:hover,
.dark-theme .main-nav a[aria-current="page"],
.dark-theme .admin-mobile-dashboard[aria-current="page"] {
    background: rgba(119, 112, 255, 0.15);
    color: #c7c1ff;
}

.dark-theme .workspace-nav a[href="/admin"],
.dark-theme .workspace-nav a[href="/dashboard"] {
    color: #c7c1ff;
}

.dark-theme .hero {
    background:
        radial-gradient(ellipse at 75% 16%, rgba(107, 83, 255, 0.18), transparent 42%),
        linear-gradient(135deg, rgba(12, 13, 34, 0.3), rgba(27, 20, 66, 0.14));
    border-bottom-color: rgba(139, 124, 255, 0.16);
}

.dark-theme .section {
    background: transparent;
}

.dark-theme .partner-section {
    background: linear-gradient(135deg, rgba(12, 13, 34, 0.96), rgba(27, 20, 66, 0.92));
    border-bottom-color: rgba(139, 124, 255, 0.16);
}

.dark-theme .partner-section-heading h2 {
    color: var(--ink);
}

:root:not(.dark-theme) .partner-section {
    background: #121212;
    border-bottom-color: #282828;
}

:root:not(.dark-theme) .partner-section-heading h2 {
    color: #f5f5f5;
}

.dark-theme .card,
.dark-theme .metric,
.dark-theme .form-card,
.dark-theme .stat-card,
.dark-theme .admin-panel,
.dark-theme .admin-toolbar,
.dark-theme .list-item,
.dark-theme .hero-brand-card,
.dark-theme .quick-actions a,
.dark-theme .studio-artist-carousel,
.dark-theme .partner-logo-card,
.dark-theme .credential-submit,
.dark-theme .chat-widget-options,
.dark-theme .team-chat-member-count,
.dark-theme .testimonial-arrow,
.dark-theme .workspace-empty,
.dark-theme .customer-project-item,
.dark-theme .credential-account-row {
    border-color: var(--line);
    background: linear-gradient(145deg, var(--panel) 0%, var(--panel-soft) 100%);
    color: var(--ink);
}

.dark-theme .card:hover,
.dark-theme .partner-logo-card:hover,
.dark-theme .quick-actions a:hover {
    border-color: rgba(139, 124, 255, 0.48);
}

.dark-theme .admin-sidebar,
.dark-theme .admin-dashboard .admin-sidebar {
    border-color: rgba(139, 124, 255, 0.22);
    background:
        radial-gradient(circle at 8% 0%, rgba(105, 85, 255, 0.22), transparent 36%),
        linear-gradient(180deg, #11122e 0%, #080917 100%);
}

.dark-theme .admin-sidebar a,
.dark-theme .admin-dashboard .admin-sidebar a {
    color: #d8d7ec;
}

.dark-theme .admin-sidebar a:hover,
.dark-theme .admin-sidebar a[aria-current="page"],
.dark-theme .admin-dashboard .admin-sidebar a[aria-current="page"] {
    background: linear-gradient(100deg, rgba(119, 112, 255, 0.24), rgba(119, 112, 255, 0.08));
    box-shadow: inset 3px 0 #9186ff;
    color: #fff;
}

.dark-theme .admin-dashboard .admin-toolbar,
.dark-theme .admin-dashboard .stat-card,
.dark-theme .workspace-welcome,
.dark-theme .team-chat-sidebar {
    border-color: var(--line);
    background:
        radial-gradient(circle at 90% 0%, rgba(105, 85, 255, 0.13), transparent 34%),
        linear-gradient(145deg, var(--panel) 0%, var(--panel-soft) 100%);
}

.dark-theme .admin-dashboard .stat-card:before,
.dark-theme .stat-card:before {
    background: linear-gradient(90deg, #7770ff, #c05bff);
}

.dark-theme .admin-dashboard .stat-card:nth-child(2):before {
    background: linear-gradient(90deg, #5f8dff, #8bcbff);
}

.dark-theme .admin-dashboard .stat-card:nth-child(3):before {
    background: linear-gradient(90deg, #9a65ff, #d49aff);
}

.dark-theme .admin-dashboard .stat-card:nth-child(4):before {
    background: linear-gradient(90deg, #fb4f91, #ff9a9f);
}

.dark-theme .tag,
.dark-theme .mini-pill,
.dark-theme .stat-card-icon {
    border-color: rgba(139, 124, 255, 0.25);
    background: rgba(119, 112, 255, 0.13);
    color: #c3bbff;
}

.dark-theme .btn,
.dark-theme .admin-btn.primary {
    background: linear-gradient(135deg, #7169ff 0%, #8c5df6 100%);
    color: #fff;
    box-shadow: 0 12px 26px rgba(100, 82, 255, 0.24);
}

.dark-theme .btn.secondary {
    background: linear-gradient(135deg, #a24ce0 0%, #ed559b 100%);
}

.dark-theme .admin-btn,
.dark-theme .testimonial-arrow,
.dark-theme .ai-write-button,
.dark-theme .team-chat-member-count {
    border-color: var(--line);
    background-color: var(--panel-soft);
    color: var(--ink);
}

.dark-theme .customer-delete-button {
    border-color: #f87171;
    background-color: #451a1a;
    color: #fecaca;
}

.dark-theme .metric strong,
.dark-theme .stat-card .trend,
.dark-theme .testimonial-dots button[aria-current="true"] {
    color: #b8aeff;
}

.dark-theme .testimonial-dots button {
    background: #444568;
}

.dark-theme .team-chat-sidebar {
    background: linear-gradient(180deg, #11132e, #0b0c20);
}

.dark-theme .team-chat-conversation:hover,
.dark-theme .team-chat-conversation.is-active,
.dark-theme .chat-widget-option:hover {
    border-color: rgba(139, 124, 255, 0.3);
    background: rgba(119, 112, 255, 0.14);
}

.dark-theme .chat-widget-options {
    border-color: var(--line);
    background: rgba(13, 16, 39, 0.98);
}

.dark-theme .chat-widget-panel {
    border-color: rgba(139, 124, 255, 0.3);
    background: #0d1027;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.58), 0 0 32px rgba(101, 81, 255, 0.12);
}

.dark-theme .chat-widget-header {
    background: linear-gradient(120deg, #18163e 0%, #38307e 62%, #5842a1 100%);
    color: #fff;
}

.dark-theme .chat-widget-header span {
    color: #d0cbf5;
}

.dark-theme .chat-widget-close {
    background: rgba(255, 255, 255, 0.12);
}

.dark-theme .chat-widget-messages {
    background:
        radial-gradient(circle at 100% 0%, rgba(104, 83, 255, 0.1), transparent 36%),
        #090a1b;
}

.dark-theme .chat-widget-message.bot {
    border-color: #32345a;
    background: #171a37;
    color: #f0efff;
}

.dark-theme .chat-widget-message.user {
    background: linear-gradient(135deg, #6c63f4 0%, #8c53d8 100%);
    color: #fff;
}

.dark-theme .chat-widget-message.error {
    border: 1px solid rgba(255, 112, 136, 0.32);
    background: rgba(255, 112, 136, 0.1);
    color: #ff9aaa;
}

.dark-theme .chat-widget-form {
    border-top-color: var(--line);
    background: #0d1027;
}

.dark-theme .chat-widget-form input,
.dark-theme .assistant-chat-form input {
    border-color: #35365c;
    background: #171a37;
    color: var(--ink);
}

.dark-theme .chat-widget-form input::placeholder,
.dark-theme .assistant-chat-form input::placeholder {
    color: #a4a5c2;
}

.dark-theme .chat-widget-voice {
    border-color: #383a61;
    background: #171a37;
    color: #d8d4ff;
}

.dark-theme .chat-widget-voice:hover {
    border-color: #8b80ff;
    background: rgba(119, 112, 255, 0.16);
}

.dark-theme .chat-widget-voice[aria-pressed="true"],
.dark-theme .chat-widget-voice.is-listening {
    border-color: #9186ff;
    background: #7169ff;
    color: #fff;
}

.dark-theme .chat-widget-send {
    background: linear-gradient(135deg, #7169ff 0%, #8c5df6 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(100, 82, 255, 0.25);
}

.dark-theme .chat-widget-send:hover:not(:disabled) {
    background: linear-gradient(135deg, #817aff 0%, #a16cff 100%);
}

.dark-theme .voice-chat-status {
    background: #0d1027;
    color: #c5c2e6;
}

.dark-theme .chat-widget-launcher {
    background: linear-gradient(135deg, #776fff 0%, #3d347f 100%);
    box-shadow: 0 14px 34px rgba(72, 57, 190, 0.38);
}

.dark-theme .chat-widget-launcher .chat-widget-icon {
    background: rgba(255, 255, 255, 0.17);
}

.dark-theme .chat-output {
    border-color: var(--line);
    background: linear-gradient(145deg, var(--panel) 0%, var(--panel-soft) 100%);
    color: var(--ink);
}

.dark-theme .chat-output a {
    color: #b7adff;
}

.dark-theme .chat-widget-option {
    color: var(--ink);
}

.dark-theme .chat-widget-option strong {
    color: var(--brand);
}

.dark-theme .progress-track {
    background: #292b4c;
}

.dark-theme .admin-table th,
.dark-theme .admin-table td {
    border-color: var(--line);
}

.dark-theme .admin-alert-error {
    border-color: rgba(255, 112, 136, 0.35);
    background: rgba(255, 112, 136, 0.1);
    color: #ff9aaa;
}

.dark-theme .workspace-user {
    border-color: var(--line);
}

.dark-theme .creative-team-image {
    border-color: var(--panel-soft);
    background: var(--panel-soft);
}

.dark-theme .active-api-account {
    border-color: #36385f;
    background: linear-gradient(135deg, #171a37 0%, #11132d 100%);
    color: #f0efff;
}

.dark-theme .active-api-account strong {
    color: #d6d0ff;
}

.dark-theme .active-api-account small {
    color: #b8b7d5;
}

.dark-theme .knowledge-base-card .ai-write-button {
    border-color: rgba(139, 124, 255, 0.44);
    background: rgba(119, 112, 255, 0.13);
    color: #d0caff;
}

.dark-theme .knowledge-base-card .ai-write-button:hover:not(:disabled) {
    border-color: #a89bff;
    background: rgba(119, 112, 255, 0.24);
    color: #fff;
}

.dark-theme .knowledge-base-card .ai-write-status {
    color: #c3c0df;
}

.dark-theme .knowledge-base-card .knowledge-entry-form .btn {
    background: linear-gradient(135deg, #7169ff 0%, #8c5df6 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(100, 82, 255, 0.27);
}

.dark-theme .knowledge-base-card .knowledge-entry-form .btn:hover {
    background: linear-gradient(135deg, #817aff 0%, #a16cff 100%);
}

.dark-theme .knowledge-entry {
    border-color: #36385f;
    background: linear-gradient(135deg, #171a37 0%, #11132d 100%);
    color: #f0efff;
}

.dark-theme .knowledge-entry strong {
    color: #d6d0ff;
}

.dark-theme .knowledge-entry small {
    color: #b8b7d5;
}

.dark-theme .notification-entry {
    border-color: #36385f;
    background: linear-gradient(135deg, #171a37 0%, #11132d 100%);
    color: #f0efff;
}

.dark-theme .notification-entry strong {
    color: #d6d0ff;
}

.dark-theme .notification-entry small {
    color: #aaa9ca;
}

.dark-theme .notification-entry p {
    color: #d0cfe8;
}

.dark-theme .recent-enquiry {
    border-color: #36385f;
    background: linear-gradient(135deg, #171a37 0%, #11132d 100%);
    color: #f0efff;
}

.dark-theme .recent-enquiry strong {
    color: #d6d0ff;
}

.dark-theme .recent-enquiry small {
    color: #b8b7d5;
}

.dark-theme .published-faq-entry {
    border-color: #36385f;
    background: linear-gradient(135deg, #171a37 0%, #11132d 100%);
    color: #f0efff;
}

.dark-theme .published-faq-entry strong {
    color: #d6d0ff;
}

.dark-theme .published-faq-entry small {
    color: #b8b7d5;
}

@media (max-width: 600px) {
    .theme-switch {
        order: 1;
        margin-left: 0;
    }

    .account-menu {
        order: 2;
        margin-left: auto;
    }

    .main-nav-links {
        order: 3;
    }
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.btn,
.admin-btn,
.link-btn,
.account-icon-link,
.account-menu > summary,
.dark-theme .account-menu > summary,
.dark-theme .vpanel-admin-workspace .admin-mobile-account-menu > summary {
    border-color: #7657f6 !important;
    background: linear-gradient(135deg, #7657f6 0%, #9b6bff 100%) !important;
    color: #fff !important;
}

button:hover:not(:disabled),
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
.btn:hover,
.admin-btn:hover,
.link-btn:hover,
.account-icon-link:hover,
.account-menu > summary:hover,
.account-menu[open] > summary,
.dark-theme .account-menu > summary:hover,
.dark-theme .account-menu[open] > summary,
.dark-theme .vpanel-admin-workspace .admin-mobile-account-menu > summary:hover,
.dark-theme .vpanel-admin-workspace .admin-mobile-account-menu[open] > summary {
    border-color: #876bff !important;
    background: linear-gradient(135deg, #876bff 0%, #aa7aff 100%) !important;
    color: #fff !important;
}

button:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled,
input[type="reset"]:disabled {
    border-color: #694bd4 !important;
    background: #694bd4 !important;
    color: #fff !important;
}

.testimonial-delete,
[data-team-delete-message] {
    border-color: #dc2626 !important;
    background: linear-gradient(135deg, #ef4444 0%, #c81e35 100%) !important;
    color: #fff !important;
}

.testimonial-delete:hover:not(:disabled),
[data-team-delete-message]:hover:not(:disabled) {
    border-color: #b91c1c !important;
    background: linear-gradient(135deg, #dc2626 0%, #a9142b 100%) !important;
    color: #fff !important;
}

:root:not(.dark-theme) {
    color-scheme: dark;
    --bg: #121212;
    --bg-strong: #0a0a0a;
    --panel: #181818;
    --panel-soft: #242424;
    --ink: #f5f5f5;
    --ink-soft: #d1d1d1;
    --muted: #b3b3b3;
    --brand: #f5f5f5;
    --brand-2: #1ed760;
    --brand-3: #1db954;
    --accent: #1ed760;
    --danger: #f15e6c;
    --focus-color: #1ed760;
    --focus-background: rgba(30, 215, 96, 0.16);
    --focus-glow: rgba(30, 215, 96, 0.2);
    --line: #383838;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.42);
}

:root:not(.dark-theme) body {
    background: linear-gradient(180deg, #121212 0%, #0a0a0a 100%);
    color: var(--ink);
}

:root:not(.dark-theme) .topbar {
    background: linear-gradient(105deg, #050505 0%, #121212 100%);
    border-bottom-color: #282828;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
}

:root:not(.dark-theme) .main-nav a,
:root:not(.dark-theme) .link-btn {
    color: #d9d9d9;
}

:root:not(.dark-theme) .main-nav a:hover,
:root:not(.dark-theme) .link-btn:hover,
:root:not(.dark-theme) .main-nav a[aria-current="page"],
:root:not(.dark-theme) .admin-mobile-dashboard[aria-current="page"] {
    background: rgba(30, 215, 96, 0.12);
    color: #1ed760;
}

:root:not(.dark-theme) .workspace-nav a[href="/admin"],
:root:not(.dark-theme) .workspace-nav a[href="/dashboard"] {
    color: #1ed760;
}

:root:not(.dark-theme) .footer {
    background: linear-gradient(180deg, #080808 0%, #050505 100%);
}

:root:not(.dark-theme) .admin-sidebar,
:root:not(.dark-theme) .admin-dashboard .admin-sidebar,
:root:not(.dark-theme) .admin-global-sidebar {
    border-color: #292929;
    background: linear-gradient(180deg, #181818 0%, #0d0d0d 100%);
    color: #f5f5f5;
}

:root:not(.dark-theme) .admin-sidebar a,
:root:not(.dark-theme) .admin-dashboard .admin-sidebar a {
    color: #d9d9d9;
}

:root:not(.dark-theme) .admin-sidebar a:hover,
:root:not(.dark-theme) .admin-sidebar a[aria-current="page"],
:root:not(.dark-theme) .admin-dashboard .admin-sidebar a[aria-current="page"] {
    background: rgba(30, 215, 96, 0.12);
    box-shadow: inset 3px 0 #1ed760;
    color: #1ed760;
}

:root:not(.dark-theme) .admin-toolbar,
:root:not(.dark-theme) .admin-dashboard .admin-toolbar,
:root:not(.dark-theme) .stat-card,
:root:not(.dark-theme) .admin-dashboard .stat-card,
:root:not(.dark-theme) .card,
:root:not(.dark-theme) .metric,
:root:not(.dark-theme) .form-card,
:root:not(.dark-theme) .admin-panel,
:root:not(.dark-theme) .list-item,
:root:not(.dark-theme) .hero-brand-card,
:root:not(.dark-theme) .workspace-welcome,
:root:not(.dark-theme) .workspace-card,
:root:not(.dark-theme) .workspace-panel,
:root:not(.dark-theme) .workspace-empty,
:root:not(.dark-theme) .customer-project-item,
:root:not(.dark-theme) .quick-actions a,
:root:not(.dark-theme) .partner-logo-card,
:root:not(.dark-theme) .studio-artist-carousel,
:root:not(.dark-theme) .testimonial-slide,
:root:not(.dark-theme) .credential-submit,
:root:not(.dark-theme) .credential-account-row,
:root:not(.dark-theme) .team-chat-member-count,
:root:not(.dark-theme) .chat-widget-options,
:root:not(.dark-theme) .chat-output,
:root:not(.dark-theme) .active-api-account,
:root:not(.dark-theme) .knowledge-entry,
:root:not(.dark-theme) .notification-entry,
:root:not(.dark-theme) .recent-enquiry,
:root:not(.dark-theme) .published-faq-entry {
    border-color: #303030;
    background: linear-gradient(145deg, #1b1b1b 0%, #151515 100%);
    color: var(--ink);
}

:root:not(.dark-theme) .admin-toolbar h1,
:root:not(.dark-theme) .admin-panel h2,
:root:not(.dark-theme) .admin-panel h3,
:root:not(.dark-theme) .panel-header h3,
:root:not(.dark-theme) .workspace-welcome h1,
:root:not(.dark-theme) .stat-card .value,
:root:not(.dark-theme) .testimonial-slide blockquote {
    color: var(--ink);
}

:root:not(.dark-theme) .admin-dashboard .stat-card:before,
:root:not(.dark-theme) .stat-card:before {
    background: linear-gradient(90deg, #1db954, #1ed760);
}

:root:not(.dark-theme) .admin-dashboard .stat-card:nth-child(n):before {
    background: linear-gradient(90deg, #1db954, #1ed760);
}

:root:not(.dark-theme) .stat-card-icon,
:root:not(.dark-theme) .tag,
:root:not(.dark-theme) .mini-pill {
    border-color: rgba(30, 215, 96, 0.25);
    background: rgba(30, 215, 96, 0.1);
    color: #1ed760;
}

:root:not(.dark-theme) input:not([type="checkbox"]):not([type="radio"]),
:root:not(.dark-theme) textarea,
:root:not(.dark-theme) select,
:root:not(.dark-theme) .language-picker select,
:root:not(.dark-theme) .footer-language-picker select {
    border-color: #383838;
    background-color: #242424;
    color: #f5f5f5;
}

:root:not(.dark-theme) input::placeholder,
:root:not(.dark-theme) textarea::placeholder {
    color: #a7a7a7;
}

:root:not(.dark-theme) .account-menu-panel,
:root:not(.dark-theme) .vpanel-admin-workspace .admin-mobile-account-options {
    border-color: #383838;
    background: #181818;
    color: #f5f5f5;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

:root:not(.dark-theme) .account-menu-panel a,
:root:not(.dark-theme) .account-menu-panel .link-btn,
:root:not(.dark-theme) .vpanel-admin-workspace .admin-mobile-account-options a,
:root:not(.dark-theme) .vpanel-admin-workspace .admin-mobile-account-options .link-btn {
    color: #e5e5e5;
}

:root:not(.dark-theme) .account-menu-panel a:hover,
:root:not(.dark-theme) .account-menu-panel .link-btn:hover,
:root:not(.dark-theme) .vpanel-admin-workspace .admin-mobile-account-options a:hover,
:root:not(.dark-theme) .vpanel-admin-workspace .admin-mobile-account-options .link-btn:hover {
    background: rgba(30, 215, 96, 0.12);
    color: #1ed760;
}

:root:not(.dark-theme) .admin-table th,
:root:not(.dark-theme) .admin-table td {
    border-color: #383838;
}

:root:not(.dark-theme) .progress-track {
    background: #333;
}

:root:not(.dark-theme) .progress-track span {
    background: linear-gradient(90deg, #1db954, #1ed760);
}

:root:not(.dark-theme) .team-chat,
:root:not(.dark-theme) .team-chat-main,
:root:not(.dark-theme) .team-chat-header,
:root:not(.dark-theme) .team-chat-form,
:root:not(.dark-theme) .team-chat-context-menu,
:root:not(.dark-theme) .chat-widget-panel,
:root:not(.dark-theme) .chat-widget-form {
    border-color: #383838;
    background: #181818;
    color: #f5f5f5;
}

:root:not(.dark-theme) .team-chat-sidebar,
:root:not(.dark-theme) .team-chat-search,
:root:not(.dark-theme) .team-chat-search input,
:root:not(.dark-theme) .team-chat-form textarea,
:root:not(.dark-theme) .chat-widget-messages {
    border-color: #383838;
    background: #202020;
    color: #f5f5f5;
}

:root:not(.dark-theme) .team-chat-message p {
    color: #e5e5e5;
}

:root:not(.dark-theme) .team-chat-conversation:hover,
:root:not(.dark-theme) .team-chat-conversation.is-active,
:root:not(.dark-theme) .chat-widget-option:hover {
    border-color: rgba(30, 215, 96, 0.3);
    background: rgba(30, 215, 96, 0.1);
    color: #f5f5f5;
}

:root:not(.dark-theme) .chat-widget-header {
    background: linear-gradient(120deg, #0d5f2d 0%, #1db954 100%);
    color: #fff;
}

:root:not(.dark-theme) .chat-widget-header span {
    color: rgba(255, 255, 255, 0.84);
}

:root:not(.dark-theme) .chat-widget-message.bot {
    border-color: #383838;
    background: #242424;
    color: #f5f5f5;
}

:root:not(.dark-theme) .chat-widget-message.user {
    background: #1db954;
    color: #050505;
}

:root:not(.dark-theme) .chat-widget-message.error {
    border: 1px solid rgba(241, 94, 108, 0.35);
    background: rgba(241, 94, 108, 0.12);
    color: #ff9aa4;
}

:root:not(.dark-theme) button,
:root:not(.dark-theme) input[type="button"],
:root:not(.dark-theme) input[type="submit"],
:root:not(.dark-theme) input[type="reset"],
:root:not(.dark-theme) .btn,
:root:not(.dark-theme) .admin-btn,
:root:not(.dark-theme) .link-btn,
:root:not(.dark-theme) .account-icon-link,
:root:not(.dark-theme) .account-menu > summary,
:root:not(.dark-theme) .vpanel-admin-workspace .admin-mobile-account-menu > summary {
    border-color: #fff !important;
    background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%) !important;
    color: #fff !important;
}

:root:not(.dark-theme) button:hover:not(:disabled),
:root:not(.dark-theme) input[type="button"]:hover,
:root:not(.dark-theme) input[type="submit"]:hover,
:root:not(.dark-theme) input[type="reset"]:hover,
:root:not(.dark-theme) .btn:hover,
:root:not(.dark-theme) .admin-btn:hover,
:root:not(.dark-theme) .link-btn:hover,
:root:not(.dark-theme) .account-icon-link:hover,
:root:not(.dark-theme) .account-menu > summary:hover,
:root:not(.dark-theme) .account-menu[open] > summary,
:root:not(.dark-theme) .vpanel-admin-workspace .admin-mobile-account-menu > summary:hover,
:root:not(.dark-theme) .vpanel-admin-workspace .admin-mobile-account-menu[open] > summary {
    border-color: #fff !important;
    background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%) !important;
    color: #fff !important;
}

:root:not(.dark-theme) button:disabled,
:root:not(.dark-theme) input[type="button"]:disabled,
:root:not(.dark-theme) input[type="submit"]:disabled,
:root:not(.dark-theme) input[type="reset"]:disabled {
    border-color: #b91c1c !important;
    background: #b91c1c !important;
    color: #fff !important;
}

:root:not(.dark-theme) .testimonial-delete,
:root:not(.dark-theme) [data-team-delete-message],
:root:not(.dark-theme) .testimonial-delete:hover:not(:disabled),
:root:not(.dark-theme) [data-team-delete-message]:hover:not(:disabled) {
    border-color: #dc2626 !important;
    background: linear-gradient(135deg, #ef4444 0%, #c81e35 100%) !important;
    color: #fff !important;
}

:root:not(.dark-theme) .theme-switch,
:root:not(.dark-theme) .account-icon-link,
:root:not(.dark-theme) .account-menu > summary,
:root:not(.dark-theme) .vpanel-admin-workspace .admin-mobile-account-menu > summary {
    border-color: rgba(30, 215, 96, 0.3) !important;
    background: rgba(30, 215, 96, 0.12) !important;
    color: #1ed760 !important;
}

:root:not(.dark-theme) .theme-switch:hover,
:root:not(.dark-theme) .account-icon-link:hover,
:root:not(.dark-theme) .account-menu > summary:hover,
:root:not(.dark-theme) .account-menu[open] > summary,
:root:not(.dark-theme) .vpanel-admin-workspace .admin-mobile-account-menu > summary:hover,
:root:not(.dark-theme) .vpanel-admin-workspace .admin-mobile-account-menu[open] > summary {
    border-color: rgba(30, 215, 96, 0.5) !important;
    background: rgba(30, 215, 96, 0.2) !important;
    color: #1ed760 !important;
}

:root:not(.dark-theme) .theme-switch-thumb {
    background: #1ed760;
    color: #121212;
}

.dark-theme button,
.dark-theme input[type="button"],
.dark-theme input[type="submit"],
.dark-theme input[type="reset"],
.dark-theme [role="button"],
.dark-theme .btn,
.dark-theme .admin-btn,
.dark-theme .link-btn,
.dark-theme .account-icon-link,
.dark-theme .account-menu > summary,
.dark-theme .vpanel-admin-workspace .admin-mobile-account-menu > summary {
    border-color: #3b82f6 !important;
    background: linear-gradient(120deg, #16a34a 0%, #2563eb 100%) !important;
    color: #fff !important;
}

.dark-theme button:hover:not(:disabled),
.dark-theme input[type="button"]:hover,
.dark-theme input[type="submit"]:hover,
.dark-theme input[type="reset"]:hover,
.dark-theme [role="button"]:hover,
.dark-theme .btn:hover,
.dark-theme .admin-btn:hover,
.dark-theme .link-btn:hover,
.dark-theme .account-icon-link:hover,
.dark-theme .account-menu > summary:hover,
.dark-theme .account-menu[open] > summary,
.dark-theme .vpanel-admin-workspace .admin-mobile-account-menu > summary:hover,
.dark-theme .vpanel-admin-workspace .admin-mobile-account-menu[open] > summary {
    border-color: #86efac !important;
    background: linear-gradient(120deg, #22c55e 0%, #3b82f6 100%) !important;
    color: #fff !important;
}

.dark-theme button:disabled,
.dark-theme input[type="button"]:disabled,
.dark-theme input[type="submit"]:disabled,
.dark-theme input[type="reset"]:disabled {
    border-color: #166534 !important;
    background: linear-gradient(120deg, #166534 0%, #1e40af 100%) !important;
    color: #dbeafe !important;
}

:root .dark-theme .partner-logo-card {
    border-color: #383838;
    background: #181818;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

:root .dark-theme a.partner-logo-card:hover,
:root .dark-theme a.partner-logo-card:focus-visible {
    outline: 2px solid #1db954;
    outline-offset: 4px;
}

.partner-logo-card,
:root:not(.dark-theme) .partner-logo-card,
.dark-theme .partner-logo-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

:root body .notification-center .notification-toggle {
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    background: #222526 !important;
    color: #f5f5f5 !important;
}

:root body .notification-center .notification-toggle:hover,
:root body .notification-center .notification-toggle[aria-expanded="true"] {
    border-color: rgba(30, 215, 96, 0.55) !important;
    background: rgba(30, 215, 96, 0.16) !important;
    color: #1ed760 !important;
}

:root body .notification-panel button:not(.notification-item) {
    border: 0 !important;
    background: transparent !important;
    color: #1db954 !important;
}

:root body .notification-panel button:not(.notification-item):hover {
    background: rgba(30, 215, 96, 0.12) !important;
    color: #1ed760 !important;
}

:root body .notification-panel button.notification-item {
    background: transparent !important;
    color: var(--ink) !important;
}

:root body .notification-panel button.notification-item:hover {
    background: var(--panel-soft) !important;
}

@media (max-width: 600px) {
    :root:not(.dark-theme) {
        --mobile-hero-shade-top: rgba(6, 12, 16, 0.82);
        --mobile-hero-shade-middle: rgba(6, 12, 16, 0.62);
        --mobile-hero-shade-bottom: rgba(6, 12, 16, 0.84);
        --mobile-hero-glow: rgba(30, 215, 96, 0.16);
    }

    .dark-theme {
        --mobile-hero-shade-top: rgba(6, 7, 20, 0.84);
        --mobile-hero-shade-middle: rgba(6, 7, 20, 0.64);
        --mobile-hero-shade-bottom: rgba(6, 7, 20, 0.86);
        --mobile-hero-glow: rgba(119, 112, 255, 0.18);
    }

    .managed-hero {
        --mobile-hero-background-image: var(--managed-hero-background-image);
    }

    .studio-hero {
        --mobile-hero-background-image: var(--studio-hero-background-image);
    }

    .managed-hero::before,
    .studio-hero::before {
        background-image:
            linear-gradient(
                180deg,
                var(--mobile-hero-shade-top) 0%,
                var(--mobile-hero-shade-middle) 42%,
                var(--mobile-hero-shade-bottom) 100%
            ),
            radial-gradient(ellipse at 76% 24%, var(--mobile-hero-glow), transparent 60%),
            var(--mobile-hero-background-image);
        background-position: center, center, 68% center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .hero-brand-card .hero-brand-logo {
        width: clamp(104px, 30vw, 128px);
        height: clamp(104px, 30vw, 128px);
    }

    .hero-brand-card .hero-brand-block {
        margin-bottom: 10px;
    }

    .hero-brand-card .list li {
        margin-bottom: 8px;
    }

    .studio-hero > .container > .card .service-featured-image {
        width: calc(100% + 36px);
        height: clamp(150px, 52vw, 210px);
        margin: -18px -18px 18px;
        max-width: calc(100% + 36px);
        border-radius: 16px 16px 0 0;
        object-position: center;
    }

    .studio-hero-copy .cta-row {
        display: flex;
        align-items: center;
        flex-flow: row nowrap;
        gap: 8px;
    }

    .studio-hero-copy .cta-row .btn {
        width: auto;
        min-width: 0;
        flex: 1 1 0;
        padding: 10px 8px;
        font-size: clamp(0.7rem, 3.4vw, 0.84rem);
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
    }

    .tech-hero-copy .cta-row {
        display: flex;
        align-items: center;
        flex-flow: row nowrap;
        gap: 8px;
    }

    .tech-hero-copy .cta-row .btn {
        width: auto;
        min-width: 0;
        min-height: 32px;
        flex: 1 1 0;
        padding: 6px 8px;
        font-size: 0.72rem;
        line-height: 1.15;
        text-align: center;
        white-space: nowrap;
    }
}

.account-settings-section .container {
    display: grid;
    gap: 22px;
}

.account-settings-heading h1 {
    margin: 8px 0 2px;
}

.account-settings-heading p,
.account-session p {
    margin: 0;
}

.account-profile-photo {
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    border: 2px solid var(--line);
    border-radius: 50%;
    object-fit: cover;
}

.account-profile-photo-placeholder {
    display: grid;
    place-items: center;
    background: var(--panel-soft);
    color: var(--brand-2);
    font-size: 2rem;
    font-weight: 700;
}

.account-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.account-settings-grid form {
    display: grid;
    gap: 16px;
}

.account-sessions-panel > .panel-header {
    margin-bottom: 16px;
}

.account-session-list {
    display: grid;
    gap: 12px;
}

.account-session {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-soft);
}

.account-session p {
    max-width: 780px;
    margin: 4px 0;
    overflow-wrap: anywhere;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.account-session small {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.account-session-privacy-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.account-session form {
    flex: 0 0 auto;
    margin: 0;
}

.account-session-revoke {
    white-space: nowrap;
}

@media (max-width: 760px) {
    .account-settings-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .account-session {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .vpanel-admin-workspace .admin-mobile-menu-toggle,
    .customer-portal-workspace .admin-mobile-menu-toggle {
        display: grid;
        width: 34px;
        height: 34px;
        min-height: 34px;
        flex: 0 0 34px;
        place-items: center;
        padding: 0;
        border-radius: 50%;
        font-size: inherit;
    }

    .vpanel-admin-workspace .admin-mobile-menu-toggle svg,
    .customer-portal-workspace .admin-mobile-menu-toggle svg {
        display: block;
        width: 14px;
        height: 14px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-width: 2;
    }

    .vpanel-admin-workspace .admin-mobile-account-menu > summary {
        width: 34px !important;
        height: 34px !important;
    }
}

:root:not(.dark-theme) .vpanel-admin-workspace .admin-mobile-menu-toggle {
    border: 1px solid rgba(30, 215, 96, 0.3) !important;
    background: rgba(30, 215, 96, 0.12) !important;
    background-image: none !important;
    color: #1ed760 !important;
}

:root:not(.dark-theme) .vpanel-admin-workspace .admin-mobile-menu-toggle:hover:not(:disabled) {
    border-color: rgba(30, 215, 96, 0.5) !important;
    background: rgba(30, 215, 96, 0.2) !important;
    color: #1ed760 !important;
}

:root:not(.dark-theme) body.customer-portal-workspace .admin-mobile-menu-toggle {
    border: 1px solid rgba(30, 215, 96, 0.3) !important;
    background: rgba(30, 215, 96, 0.12) !important;
    background-image: none !important;
    color: #1ed760 !important;
}

:root:not(.dark-theme) body.customer-portal-workspace .admin-mobile-menu-toggle:hover:not(:disabled) {
    border-color: rgba(30, 215, 96, 0.5) !important;
    background: rgba(30, 215, 96, 0.2) !important;
    background-image: none !important;
    color: #1ed760 !important;
}

:root:not(.dark-theme) .admin-sidebar-backdrop,
:root:not(.dark-theme) .admin-sidebar-backdrop:hover,
.dark-theme .admin-sidebar-backdrop,
.dark-theme .admin-sidebar-backdrop:hover {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

.dark-theme .vpanel-admin-workspace .admin-mobile-menu-toggle {
    border: 1px solid rgba(30, 215, 96, 0.3) !important;
    background: linear-gradient(120deg, #16a34a 0%, #2563eb 100%) !important;
    color: #fff !important;
}

.dark-theme .vpanel-admin-workspace .admin-mobile-menu-toggle:hover:not(:disabled) {
    border-color: #86efac !important;
    background: linear-gradient(120deg, #22c55e 0%, #3b82f6 100%) !important;
    color: #fff !important;
}

.dark-theme body.customer-portal-workspace .admin-mobile-menu-toggle {
    border: 1px solid rgba(30, 215, 96, 0.42) !important;
    background: rgba(30, 215, 96, 0.14) !important;
    background-image: none !important;
    color: #1ed760 !important;
}

.dark-theme body.customer-portal-workspace .admin-mobile-menu-toggle:hover:not(:disabled) {
    border-color: rgba(30, 215, 96, 0.65) !important;
    background: rgba(30, 215, 96, 0.24) !important;
    background-image: none !important;
    color: #1ed760 !important;
}

body:not(.dark-theme) button.admin-sidebar-backdrop:hover:not(:disabled),
body.dark-theme button.admin-sidebar-backdrop:hover:not(:disabled) {
    border-color: transparent !important;
    background: transparent !important;
    color: transparent !important;
    box-shadow: none !important;
}

.vpanel-admin-workspace .admin-btn,
.vpanel-admin-workspace .btn {
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.2;
}

.vpanel-admin-workspace .admin-toolbar > .back-action {
    min-height: 28px;
    padding: 4px 8px;
    flex-shrink: 0;
    font-size: 0.74rem;
    line-height: 1.1;
    white-space: nowrap;
}

.vpanel-admin-workspace .form-row > .admin-btn,
.vpanel-admin-workspace .form-row > .btn {
    align-self: start;
    justify-self: start;
    width: auto;
}

:root:not(.dark-theme) .team-chat {
    border-color: #dbe3ed;
    background: #fff;
}

:root:not(.dark-theme) .team-chat-sidebar {
    background: #f8fafc;
}

:root:not(.dark-theme) .team-chat-main {
    background: #fff;
}

:root:not(.dark-theme) .team-chat-header,
:root:not(.dark-theme) .team-chat-form {
    border-color: #e2e8f0;
    background: #fff;
}

:root:not(.dark-theme) .team-chat-sidebar-heading h2,
:root:not(.dark-theme) .team-chat-header h2,
:root:not(.dark-theme) .team-chat-empty strong {
    color: #0f172a;
}

:root:not(.dark-theme) .team-chat-sidebar-heading p,
:root:not(.dark-theme) .team-chat-sidebar > h3,
:root:not(.dark-theme) .team-chat-empty,
:root:not(.dark-theme) .team-chat-muted,
:root:not(.dark-theme) .team-chat-compose-actions,
:root:not(.dark-theme) .team-chat-status {
    color: #475569;
}

:root:not(.dark-theme) .team-chat-member-count {
    border-color: #cbd5e1;
    background: #fff;
    color: #334155;
}

:root:not(.dark-theme) .team-chat-search {
    border-color: #cbd5e1;
    background: #fff;
    color: #475569;
}

:root:not(.dark-theme) .team-chat .team-chat-search input {
    border-color: transparent !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #1e293b !important;
}

:root:not(.dark-theme) .team-chat-search input::placeholder,
:root:not(.dark-theme) .team-chat-form textarea::placeholder {
    color: #64748b;
    opacity: 1;
}

:root:not(.dark-theme) .team-chat-conversation,
:root:not(.dark-theme) .team-chat .team-chat-conversation {
    border-color: transparent !important;
    background: transparent !important;
    background-image: none !important;
    color: #1e293b !important;
}

:root:not(.dark-theme) .team-chat .team-chat-conversation:hover {
    border-color: #cbd5e1 !important;
    background: #f1f5f9 !important;
}

:root:not(.dark-theme) .team-chat .team-chat-conversation.is-active {
    border-color: #99d5c6 !important;
    background: #e8f5f1 !important;
}

:root:not(.dark-theme) .team-chat-conversation-copy strong,
:root:not(.dark-theme) .team-chat-header h2 {
    color: #1e293b;
}

:root:not(.dark-theme) .team-chat-conversation-copy small,
:root:not(.dark-theme) .team-chat-header p,
:root:not(.dark-theme) .team-chat-message-meta time {
    color: #64748b;
}

:root:not(.dark-theme) .team-chat-message-meta strong {
    color: #0f766e;
}

:root:not(.dark-theme) .team-chat-message {
    border-color: #e2e8f0;
    background: #f1f5f9;
}

:root:not(.dark-theme) .team-chat-message.is-mine {
    border-color: #b7e4d8;
    background: #e6f5f0;
}

:root:not(.dark-theme) .team-chat-message p {
    color: #1f2937 !important;
}

:root:not(.dark-theme) .team-chat-form textarea {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
}

:root:not(.dark-theme) .team-chat .team-chat-clear {
    border-color: #fecaca !important;
    background: #fff !important;
    background-image: none !important;
    color: #b42318 !important;
}

.dark-theme .team-chat-sidebar-heading h2,
.dark-theme .team-chat-header h2,
.dark-theme .team-chat-empty strong {
    color: #f1f5f9;
}

.dark-theme .team-chat-sidebar-heading p,
.dark-theme .team-chat-sidebar > h3,
.dark-theme .team-chat-empty,
.dark-theme .team-chat-muted,
.dark-theme .team-chat-compose-actions,
.dark-theme .team-chat-status {
    color: #cbd5e1;
}

.dark-theme .team-chat-member-count {
    border-color: #3b3f60;
    background: #20233a;
    color: #e2e8f0;
}

.dark-theme .team-chat-search {
    border-color: #3b3f60;
    background: #171a30;
    color: #cbd5e1;
}

.dark-theme .team-chat .team-chat-search input {
    border-color: transparent !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #f1f5f9 !important;
}

.dark-theme .team-chat-search input::placeholder,
.dark-theme .team-chat-form textarea::placeholder {
    color: #aeb5cc;
    opacity: 1;
}

.dark-theme .team-chat-conversation,
.dark-theme .team-chat .team-chat-conversation {
    border-color: transparent !important;
    background: transparent !important;
    background-image: none !important;
    color: #f1f5f9 !important;
}

.dark-theme .team-chat .team-chat-conversation:hover {
    border-color: #3c4268 !important;
    background: #242743 !important;
}

.dark-theme .team-chat .team-chat-conversation.is-active {
    border-color: #4b527e !important;
    background: #2a2e50 !important;
}

.dark-theme .team-chat-conversation-copy strong,
.dark-theme .team-chat-header h2 {
    color: #f1f5f9;
}

.dark-theme .team-chat-conversation-copy small,
.dark-theme .team-chat-header p,
.dark-theme .team-chat-message-meta time {
    color: #aeb5cc;
}

.dark-theme .team-chat-message-meta strong {
    color: #86efac;
}

.dark-theme .team-chat-message {
    border-color: #343854;
    background: #22253c;
}

.dark-theme .team-chat-message.is-mine {
    border-color: #285e55;
    background: #1c3937;
}

.dark-theme .team-chat-message p {
    color: #f1f5f9 !important;
}

.dark-theme .team-chat-form textarea {
    border-color: #3b3f60;
    background: #171a30;
    color: #f1f5f9;
}

.dark-theme .team-chat .team-chat-clear {
    border-color: #7f343b !important;
    background: #321e2a !important;
    background-image: none !important;
    color: #fecaca !important;
}

.profile-verification-badge {
    display: inline-grid;
    width: 1.05em;
    height: 1.05em;
    flex: 0 0 auto;
    place-items: center;
    margin-inline-start: 0.28em;
    border-radius: 50%;
    vertical-align: -0.12em;
    color: #fff;
}

.profile-verification-badge svg {
    display: block;
    width: 76%;
    height: 76%;
    overflow: visible;
}

.profile-verification-badge path {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.7;
}

.profile-verification-badge.is-blue {
    background: #1d9bf0;
}

.profile-verification-badge.is-gold {
    background: #d99a16;
}

.profile-verification-badge.is-red {
    background: #e53935;
}

.account-profile-name,
.verification-badge-name {
    display: flex;
    align-items: center;
    gap: 4px;
}

.verification-badge-user > form {
    display: flex;
    align-items: end;
    gap: 12px;
}

.verification-badge-user > form label {
    min-width: 180px;
}

.creative-photo-editor {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin: 14px 0 20px;
}

.creative-photo-preview-wrap {
    width: min(100%, 210px);
}

.creative-photo-editor canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 7 / 9;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f1f5f9;
    cursor: grab;
    touch-action: none;
}

.creative-photo-editor canvas:active {
    cursor: grabbing;
}

.creative-photo-editor canvas[hidden],
.creative-photo-controls[hidden] {
    display: none;
}

.creative-photo-controls {
    display: grid;
    width: min(100%, 360px);
    align-content: center;
    gap: 10px;
}

.creative-photo-controls p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.creative-photo-controls input[type="range"] {
    width: 100%;
    margin: 8px 0 0;
}

@media (max-width: 640px) {
    .verification-badge-user > form {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .creative-photo-editor {
        align-items: flex-start;
    }

    .creative-photo-preview-wrap {
        width: min(45%, 180px);
    }
}
