.cabinet-theme-tspu {
    color-scheme: dark;
    accent-color: var(--primary);
    --bg: #0c1218;
    --bg-soft: #192531;
    --tspu-border: #344351;
    --tspu-surface: #141d26;
    --tspu-field: #0e161e;
    --panel: var(--tspu-surface);
    --panel-strong: var(--bg-soft);
    --panel-border: var(--tspu-border);
    --panel-shadow: 0 16px 45px #060a1050;
    --text: #eef3f7;
    --muted: #aebdcb;
    --muted-strong: #ccd7e1;
    --primary: #cedce7;
    --primary-strong: #9fb3c3;
    --primary-rgb: 206, 220, 231;
    --primary-tint-rgb: 211, 223, 233;
    --primary-light-rgb: 224, 233, 240;
    --link-accent: #c8d9e6;
    --notice-accent: #d4e2ec;
    --highlight-text: #dce6ee;
    --accent: #b1c3d2;
    --accent-rgb: 177, 195, 210;
    --panel-rgb: 20, 29, 38;
    --field-rgb: 14, 22, 30;
    --panel-inset-rgb: 25, 37, 49;
    --backdrop-rgb: 12, 18, 24;
    --line: var(--tspu-border);
    --button-ghost: #1b2834;
    --button-ghost-hover: #253544;
    --tspu-backdrop: radial-gradient(ellipse at 54% 0%, #24303a, var(--bg) 68%);
    background: var(--tspu-backdrop);
    color: var(--text);
}

.cabinet-theme-tspu .cabinet-bg { background: var(--tspu-backdrop); }
.cabinet-theme-tspu .cabinet-bg .orb { display: none; }

.cabinet-theme-tspu .tspu-domain { color: var(--primary); }
.cabinet-theme-tspu .tspu-domain-dot { color: #78d4f4; }

.cabinet-theme-tspu .tspu-sign {
    display: block;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    overflow: hidden;
    border-radius: 9px;
}

.cabinet-theme-tspu .tspu-sign img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: translateY(5%) scale(1.84);
}

.cabinet-theme-tspu .tspu-subscription-logo {
    opacity: 1;
    pointer-events: none;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.32));
}

.cabinet-theme-tspu .tspu-subscription-logo .tspu-sign {
    width: 100%;
    height: 100%;
    border-radius: 24%;
}

@media (max-width: 380px) {
    .cabinet-theme-tspu .cabinet-topbar h1 { font-size: 18px; }
}

.cabinet-theme-tspu .loading-bar span {
    background: linear-gradient(90deg, var(--primary-strong), var(--primary));
}

.cabinet-theme-tspu :is(.pill.accent, .badge.active, .menu-action-primary.active) {
    background: linear-gradient(135deg, var(--text), var(--primary-strong));
    color: var(--bg);
}

.cabinet-theme-tspu :is(.tab-button, .button, .guest-contact-form label > span) {
    font-weight: 600;
}

.cabinet-theme-tspu :is(.subscription-hero-card, .spotlight) {
    background:
        radial-gradient(ellipse at 93% 0%, rgba(var(--primary-rgb), 0.14), transparent 64%),
        linear-gradient(135deg, var(--bg-soft), var(--bg));
}

.cabinet-theme-tspu .subscription-hero-glow { display: none; }

.cabinet-theme-tspu .subscription-hero-card.subscription-active h2 {
    color: var(--text);
    text-shadow: 0 0 22px rgba(var(--primary-rgb), 0.22);
}

.cabinet-theme-tspu :is(.platform-menu, .route-toolbar, .support-new-messages, .support-photo-modal-close),
.cabinet-theme-tspu #cabinet-global-status:not(.hidden) {
    background: var(--tspu-surface);
}

.cabinet-theme-tspu :is(
    .guest-login-link, .guest-feature-icon, .provider-brand-email,
    .cabinet-corporate-badge, .corporate-caption-value, .connection-return-note,
    .location-vip-word, .identity-provider-details, .renewal-discount.is-soft, .gift-status-pill.pending
) {
    color: var(--highlight-text);
}

.cabinet-theme-tspu .button.ghost.connection-installed-button.is-active {
    box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.16), 0 14px 30px rgba(var(--primary-rgb), 0.12);
}

.cabinet-theme-tspu .confirm-modal-backdrop,
.cabinet-theme-tspu .support-photo-modal,
.cabinet-theme-tspu .cabinet-layout.menu-open::before {
    background: rgba(var(--backdrop-rgb), 0.8);
}

.cabinet-theme-tspu .confirm-modal-card,
.cabinet-theme-tspu .cabinet-legal-document {
    border-color: var(--tspu-border);
    background: var(--tspu-surface);
}

.cabinet-theme-tspu .confirm-modal-card h2 {
    color: var(--text);
    font-weight: 700;
}

.cabinet-theme-tspu .guest-contact-telegram { background: var(--bg-soft); }

.cabinet-theme-tspu .guest-contact-form :is(input, textarea),
.cabinet-theme-tspu .cabinet-main :is(.field input, .field select, .field textarea) {
    border-color: var(--tspu-border);
    background: var(--tspu-field);
    color: var(--text);
}

.cabinet-theme-tspu .guest-contact-form :is(input, textarea)::placeholder {
    color: var(--muted);
}

.cabinet-theme-tspu .guest-contact-form :is(input, textarea):focus,
.cabinet-theme-tspu .cabinet-main :is(.field input, .field select, .field textarea):focus {
    border-color: var(--primary-strong);
    background: var(--bg);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.cabinet-theme-tspu cap-widget { --cap-spinner-color: var(--primary); }

.cabinet-theme-tspu.corporate-employee-mode .location-option[data-corporate-server-switch] {
    border-color: var(--primary-strong);
    background: var(--bg-soft);
    box-shadow: none;
}

.cabinet-theme-tspu.corporate-employee-mode .location-option[data-corporate-server-switch]:hover:not(:disabled) {
    border-color: var(--primary);
    background: var(--button-ghost-hover);
    box-shadow: none;
}

.tspu-public-support .panel,
.tspu-public-support .attachment {
    border-color: var(--tspu-border);
    background: var(--tspu-surface);
    color: var(--text);
}

.tspu-public-support .panel { box-shadow: var(--panel-shadow); }
.tspu-public-support p { color: var(--muted-strong); }

.tspu-public-support :is(input, textarea, select) {
    border-color: var(--tspu-border);
    background: var(--tspu-field);
    color: var(--text);
    accent-color: var(--primary);
}

.tspu-public-support :is(input, textarea, select):focus-visible {
    outline: 2px solid var(--primary-strong);
    outline-offset: 2px;
}

.tspu-public-support button {
    background: var(--primary);
    color: var(--bg);
    font-weight: 600;
}

.tspu-public-support button:hover { background: var(--text); }

.tspu-public-support .notice.success {
    border-color: #4b7766;
    background: #203733;
    color: #c0dfd8;
}

.tspu-public-support .notice.error {
    border-color: #88515b;
    background: #39242b;
    color: #ffd2d8;
}
