:root {
    --tv2-primary: #373839;
    --tv2-primary-dark: #1e293b;
    --tv2-primary-light: #818cf8;
    --tv2-primary-bg: rgba(99, 102, 241, 0.08);
    --tv2-green: #10b981;
    --tv2-green-bg: rgba(16, 185, 129, 0.1);
    --tv2-red: #ef4444;
    --tv2-red-bg: rgba(239, 68, 68, 0.08);
    --tv2-text: #1e293b;
    --tv2-text-secondary: #64748b;
    --tv2-text-muted: #94a3b8;
    --tv2-bg: #f8fafc;
    --tv2-card: #ffffff;
    --tv2-border: #e2e8f0;
    --tv2-border-light: #f1f5f9;
    --tv2-radius: 12px;
    --tv2-radius-sm: 8px;
    --tv2-radius-xs: 6px;
    --tv2-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --tv2-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
    --tv2-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.06), 0 4px 6px -4px rgba(0,0,0,0.04);
    --tv2-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --tv2-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --tv2-sidebar-width: 240px;
    --tv2-sidebar-collapsed: 64px;
    --tv2-submenu-width: 220px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.temav2-page-loader {
    position: fixed;
    top: 0;
    left: var(--tv2-nav-total-width, var(--tv2-sidebar-width));
    right: 0;
    bottom: 0;
    background: var(--tv2-bg);
    z-index: 99989;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: all;
}

.temav2-page-loader.temav2-loader-hidden {
    opacity: 0;
    pointer-events: none;
}

.temav2-loader-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--tv2-border);
    border-top-color: var(--tv2-primary);
    border-radius: 50%;
    animation: temav2Spin 0.7s linear infinite;
}

@keyframes temav2Spin {
    to { transform: rotate(360deg); }
}

body.temav2-has-sidebar {
    padding-left: var(--tv2-nav-total-width, var(--tv2-sidebar-width));
}

body.temav2-has-sidebar.temav2-transitions-ready {
    transition: padding-left var(--tv2-transition);
}

html.temav2-submenu-initial .temav2-submenu-panel:not(.temav2-submenu-panel-2) {
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: none !important;
}

html.temav2-submenu2-initial .temav2-submenu-panel-2 {
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: none !important;
}

html.temav2-collapsed-initial .temav2-sidebar {
    width: var(--tv2-sidebar-collapsed) !important;
    transition: none !important;
}

html.temav2-collapsed-initial .temav2-sidebar .temav2-menu-text,
html.temav2-collapsed-initial .temav2-sidebar .temav2-site-name {
    display: none !important;
}

html.temav2-collapsed-initial .temav2-sidebar .temav2-logo-wrap {
    display: none !important;
}

html.temav2-collapsed-initial .temav2-sidebar .temav2-sidebar-header {
    justify-content: center !important;
    padding: 16px 0 !important;
}

html.temav2-collapsed-initial .temav2-sidebar .temav2-menu-link,
html.temav2-collapsed-initial .temav2-sidebar .temav2-logout-link {
    justify-content: center !important;
    gap: 0 !important;
    padding: 8px 0 !important;
    transition: none !important;
}

html.temav2-collapsed-initial .temav2-sidebar .temav2-menu-arrow {
    display: none !important;
}

html.temav2-collapsed-initial .temav2-sidebar .temav2-menu-zone {
    padding: 8px 6px !important;
}

html.temav2-collapsed-initial .temav2-sidebar .temav2-menu-zone-buttons {
    padding: 8px 6px 12px !important;
}

html.temav2-collapsed-initial .temav2-sidebar .temav2-logout-zone {
    padding: 8px 6px 12px !important;
}

html.temav2-collapsed-initial .temav2-sidebar .temav2-submenu {
    display: none !important;
}

html.temav2-collapsed-initial .temav2-sidebar .temav2-sidebar-inner {
    transition: none !important;
}

html.temav2-collapsed-initial .temav2-sidebar * {
    transition-duration: 0s !important;
}

.temav2-mobile-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 99988;
    width: 40px;
    height: 40px;
    border: 1px solid var(--tv2-border);
    border-radius: var(--tv2-radius-xs);
    background: var(--tv2-card);
    color: var(--tv2-text-secondary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: var(--tv2-shadow);
    padding: 0;
    transition: all var(--tv2-transition);
}

.temav2-mobile-toggle:hover {
    background: var(--tv2-bg);
    color: var(--tv2-text);
}

.temav2-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--tv2-sidebar-width);
    background: var(--tv2-card);
    border-right: 1px solid var(--tv2-border);
    z-index: 99990;
    display: flex;
    flex-direction: column;
    transition: width var(--tv2-transition);
    font-family: var(--tv2-font);
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

.temav2-sidebar.collapsed {
    width: var(--tv2-sidebar-collapsed);
}

.temav2-sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--tv2-border) transparent;
}

.temav2-sidebar-inner::-webkit-scrollbar {
    width: 4px;
}

.temav2-sidebar-inner::-webkit-scrollbar-track {
    background: transparent;
}

.temav2-sidebar-inner::-webkit-scrollbar-thumb {
    background: var(--tv2-border);
    border-radius: 2px;
}

.temav2-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 14px;
    border-bottom: 1px solid var(--tv2-border-light);
    flex-shrink: 0;
    min-height: 60px;
}

.temav2-logo-wrap {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.temav2-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.temav2-logo-img {
    max-height: 32px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.temav2-logo-text {
    color: var(--tv2-text);
}

.temav2-site-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--tv2-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.collapsed .temav2-site-name {
    display: none;
}

.collapsed .temav2-logo-wrap {
    display: none;
}

.collapsed .temav2-sidebar-header {
    justify-content: center;
    padding: 16px 0;
}

.temav2-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--tv2-border);
    border-radius: var(--tv2-radius-xs);
    background: var(--tv2-bg);
    color: var(--tv2-text-secondary);
    cursor: pointer;
    transition: all var(--tv2-transition);
    flex-shrink: 0;
    padding: 0;
}

.temav2-toggle-btn:hover {
    background: var(--tv2-primary-bg);
    color: var(--tv2-primary);
    border-color: var(--tv2-primary-light);
}

.temav2-menu-zone {
    padding: 8px;
}

.temav2-menu-zone-top {
    border-bottom: 1px solid var(--tv2-border-light);
    padding-bottom: 12px;
}

.temav2-menu-zone-middle {
    flex: 0 0 auto;
}

.temav2-menu-zone-bottom {
    border-top: 1px solid var(--tv2-border-light);
    padding-top: 12px;
}

.temav2-menu-zone-buttons {
    padding: 8px 10px 16px;
    border-top: 1px solid var(--tv2-border-light);
}

.temav2-logout-zone {
    padding: 8px 10px 12px;
    border-top: 1px solid var(--tv2-border-light);
}

.temav2-logout-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--tv2-radius-sm);
    color: var(--tv2-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: all var(--tv2-transition);
    white-space: nowrap;
    overflow: hidden;
}

.temav2-logout-link:hover {
    background: var(--tv2-red-bg);
    color: var(--tv2-red);
}

.collapsed .temav2-logout-link {
    justify-content: center;
    padding: 8px 0;
    gap: 0;
}

.temav2-sidebar-spacer {
    flex: 1 1 auto;
}

.temav2-nav-section {
    margin: 0;
    padding: 0;
}

.temav2-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.temav2-menu-item {
    margin: 2px 0;
}

.temav2-submenu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 24px;
}

.temav2-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--tv2-radius-sm);
    color: var(--tv2-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: all var(--tv2-transition);
    white-space: nowrap;
    overflow: hidden;
}

.temav2-menu-link:hover {
    background: var(--tv2-bg);
    color: var(--tv2-text);
}

.temav2-active > .temav2-menu-link {
    background: var(--tv2-primary-bg);
    color: var(--tv2-primary);
    font-weight: 600;
}

.temav2-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.temav2-menu-icon svg {
    width: 18px;
    height: 18px;
}

.temav2-menu-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.collapsed .temav2-menu-text {
    display: none;
}

.collapsed .temav2-menu-link {
    justify-content: center;
    padding: 8px 0;
    gap: 0;
}

.collapsed .temav2-submenu {
    display: none;
}

.collapsed .temav2-menu-zone {
    padding: 8px 6px;
}

.collapsed .temav2-menu-zone-buttons {
    padding: 8px 6px 12px;
}

.collapsed .temav2-logout-zone {
    padding: 8px 6px 12px;
}

/* ── Profile Zone (sidebar) ───────────────────────────────────── */

.temav2-profile-zone {
    padding: 8px 10px 4px;
    border-top: 1px solid var(--tv2-border-light);
}

.temav2-profile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--tv2-radius-sm);
    color: var(--tv2-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: all var(--tv2-transition);
    white-space: nowrap;
    overflow: hidden;
}

.temav2-profile-link:hover {
    background: var(--tv2-primary-bg);
    color: var(--tv2-primary);
}

.temav2-profile-link--no-url {
    cursor: default;
}

.temav2-profile-link--no-url:hover {
    background: transparent;
    color: var(--tv2-text-secondary);
}

.temav2-profile-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--tv2-primary-bg);
    color: var(--tv2-primary);
    font-size: 13px;
    font-weight: 700;
}

.temav2-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.temav2-avatar-initials {
    font-size: 13px;
    font-weight: 700;
    color: var(--tv2-primary);
    line-height: 1;
    text-transform: uppercase;
}

.collapsed .temav2-profile-zone {
    padding: 8px 6px 4px;
}

.collapsed .temav2-profile-link {
    justify-content: center;
    padding: 8px 0;
    gap: 0;
}

html.temav2-collapsed-initial .temav2-sidebar .temav2-profile-zone {
    padding: 8px 6px 4px !important;
}

html.temav2-collapsed-initial .temav2-sidebar .temav2-profile-link {
    justify-content: center !important;
    gap: 0 !important;
    padding: 8px 0 !important;
    transition: none !important;
}

/* ── Profile Page ─────────────────────────────────────────────── */

.temav2-profile-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.temav2-profile-page .temav2-auth-card {
    position: static;
    width: auto;
    max-width: none;
    padding: 32px;
    border-radius: var(--tv2-radius);
    background: var(--tv2-card);
    border: 1px solid var(--tv2-border);
    box-shadow: var(--tv2-shadow);
}

.temav2-profile-page .temav2-auth-card h2 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: var(--tv2-text);
    text-align: left;
}

.temav2-profile-page .temav2-auth-desc {
    margin: 0 0 24px;
    font-size: 13px;
    color: var(--tv2-text-secondary);
    text-align: left;
}

.temav2-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .temav2-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .temav2-profile-page {
        grid-template-columns: 1fr;
        max-width: 540px;
    }
}

@media (max-width: 540px) {
    .temav2-profile-page {
        padding: 0 12px;
        margin: 24px auto;
    }

    .temav2-profile-page .temav2-auth-card {
        padding: 24px 20px;
    }
}

.temav2-button-menu .temav2-menu-link {
    background: var(--tv2-green);
    color: #ffffff;
    font-weight: 600;
    justify-content: center;
    padding: 10px 16px;
    border-radius: var(--tv2-radius-sm);
    transition: all var(--tv2-transition);
}

.temav2-button-menu .temav2-menu-link:hover {
    background: #059669;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.temav2-button-menu .temav2-menu-item {
    margin: 4px 0;
}

.temav2-btn-link {
    background: var(--tv2-green);
    color: #ffffff !important;
    font-weight: 600;
    justify-content: center;
    padding: 10px 16px;
    border-radius: var(--tv2-radius-sm);
}

.temav2-btn-link:hover {
    background: #059669;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.temav2-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 99989;
}

.temav2-auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--tv2-bg);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}

.temav2-auth-overlay-inner {
    width: 100%;
    max-width: 420px;
    font-family: var(--tv2-font);
    color: var(--tv2-text);
    -webkit-font-smoothing: antialiased;
}

.temav2-auth-wrap {
    max-width: 420px;
    margin: 60px auto;
    padding: 0 16px;
    font-family: var(--tv2-font);
    color: var(--tv2-text);
    -webkit-font-smoothing: antialiased;
}

.temav2-auth-card {
    background: var(--tv2-card);
    border: 1px solid var(--tv2-border);
    border-radius: var(--tv2-radius);
    padding: 32px 28px;
    box-shadow: var(--tv2-shadow-md);
}

.temav2-auth-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--tv2-text);
    margin: 0 0 6px;
    text-align: center;
}

.temav2-auth-card .temav2-auth-desc {
    font-size: 14px;
    color: var(--tv2-text-secondary);
    text-align: center;
    margin: 0 0 24px;
}

.temav2-form-group {
    margin-bottom: 16px;
}

.temav2-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--tv2-text);
    margin-bottom: 6px;
}

.temav2-form-input {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--tv2-border);
    border-radius: var(--tv2-radius-xs);
    font-size: 15px;
    color: var(--tv2-text);
    background: var(--tv2-card);
    transition: all var(--tv2-transition);
    font-family: var(--tv2-font);
}

.temav2-form-input:focus {
    outline: none;
    border-color: var(--tv2-primary);
    box-shadow: 0 0 0 3px var(--tv2-primary-bg);
}

.temav2-form-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: var(--tv2-radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--tv2-transition);
    font-family: var(--tv2-font);
    line-height: 1.4;
}

.temav2-form-btn-primary {
    background: var(--tv2-primary);
    color: #ffffff;
}

.temav2-form-btn-primary:hover {
    background: var(--tv2-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--tv2-shadow-md);
}

.temav2-form-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.temav2-form-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--tv2-text-secondary);
}

.temav2-form-link a {
    color: var(--tv2-primary);
    text-decoration: none;
    font-weight: 500;
}

.temav2-form-link a:hover {
    text-decoration: underline;
}

.temav2-alert {
    padding: 10px 14px;
    border-radius: var(--tv2-radius-xs);
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
}

.temav2-alert-error {
    background: var(--tv2-red-bg);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.temav2-alert-success {
    background: var(--tv2-green-bg);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.temav2-alert.visible {
    display: block;
}

.temav2-2fa-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
}

.temav2-2fa-input {
    width: 46px;
    height: 52px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    border: 2px solid var(--tv2-border);
    border-radius: var(--tv2-radius-sm);
    background: var(--tv2-card);
    color: var(--tv2-text);
    transition: border-color var(--tv2-transition);
    font-family: var(--tv2-font);
}

.temav2-2fa-input:focus {
    outline: none;
    border-color: var(--tv2-primary);
    box-shadow: 0 0 0 3px var(--tv2-primary-bg);
}

.temav2-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: temav2Spin 0.7s linear infinite;
}

@keyframes temav2Spin {
    to { transform: rotate(360deg); }
}

.temav2-password-strength {
    height: 4px;
    background: var(--tv2-border-light);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.temav2-password-strength-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
    width: 0;
}

@media (max-width: 768px) {
    body.temav2-has-sidebar {
        padding-left: 0 !important;
    }

    .temav2-page-loader {
        left: 0 !important;
    }

    .temav2-mobile-toggle {
        display: flex;
    }

    .temav2-sidebar {
        width: var(--tv2-sidebar-width);
        transform: translateX(-100%);
        box-shadow: none;
    }

    .temav2-sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    }

    .temav2-sidebar.collapsed {
        width: var(--tv2-sidebar-width);
        transform: translateX(-100%);
    }

    .temav2-sidebar.collapsed.mobile-open {
        transform: translateX(0);
    }

    .temav2-sidebar-overlay.visible {
        display: block;
    }

    .temav2-auth-overlay {
        padding: 12px;
        align-items: flex-start;
        padding-top: 60px;
    }

    .temav2-auth-wrap {
        margin: 30px auto;
    }

    .temav2-auth-card {
        padding: 24px 20px;
    }

    .temav2-2fa-input {
        width: 40px;
        height: 46px;
        font-size: 18px;
    }

    .collapsed .temav2-menu-text,
    .collapsed .temav2-menu-arrow {
        display: flex !important;
    }

    .collapsed .temav2-menu-link {
        justify-content: flex-start !important;
        padding: 8px 14px !important;
        gap: 12px !important;
    }

    .collapsed .temav2-sidebar-header .temav2-logo-text {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .temav2-auth-overlay {
        padding-top: 30px;
    }

    .temav2-auth-card h2 {
        font-size: 19px;
    }

    .temav2-2fa-inputs {
        gap: 6px;
    }

    .temav2-2fa-input {
        width: 36px;
        height: 42px;
        font-size: 16px;
    }
}

.temav2-menu-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-left: auto;
    color: var(--tv2-text-muted);
    transition: transform var(--tv2-transition), color var(--tv2-transition);
}

.temav2-menu-arrow svg {
    width: 16px;
    height: 16px;
}

.temav2-has-children > .temav2-menu-link:hover .temav2-menu-arrow {
    color: var(--tv2-text);
}

.temav2-has-children.temav2-submenu-open > .temav2-menu-link .temav2-menu-arrow {
    color: var(--tv2-primary);
}

.collapsed .temav2-menu-arrow {
    display: none;
}

.temav2-has-children > .temav2-submenu {
    display: none;
}

.temav2-submenu-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    left: var(--tv2-sidebar-width);
    width: var(--tv2-submenu-width);
    background: var(--tv2-card);
    border-right: 1px solid var(--tv2-border);
    z-index: 99991;
    display: flex;
    flex-direction: column;
    transform: translateX(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--tv2-transition), opacity var(--tv2-transition), width var(--tv2-transition), left var(--tv2-transition);
    font-family: var(--tv2-font);
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

.temav2-submenu-panel.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.collapsed ~ .temav2-submenu-panel:not(.temav2-submenu-panel-2) {
    left: var(--tv2-sidebar-collapsed);
}

.temav2-submenu-panel.submenu-collapsed {
    width: var(--tv2-sidebar-collapsed);
}

.temav2-submenu-panel.submenu-collapsed .temav2-submenu-panel-title {
    display: none;
}

.temav2-submenu-panel.submenu-collapsed .temav2-submenu-panel-header {
    justify-content: center;
    padding: 16px 6px;
}

.temav2-submenu-panel.submenu-collapsed .temav2-submenu-panel-toggle {
    margin: 0 auto;
}

.temav2-submenu-panel.submenu-collapsed .temav2-menu-text {
    display: none;
}

.temav2-submenu-panel.submenu-collapsed .temav2-menu-link {
    justify-content: center;
    padding: 8px 0;
    gap: 0;
}

.temav2-submenu-panel.submenu-collapsed .temav2-menu-arrow {
    display: none;
}

.temav2-submenu-panel.submenu-collapsed .temav2-submenu-panel-body {
    padding: 8px 6px;
}

.temav2-submenu-panel-2 {
    left: var(--tv2-panel2-left, calc(var(--tv2-sidebar-width) + var(--tv2-submenu-width)));
}

.temav2-submenu-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 14px;
    border-bottom: 1px solid var(--tv2-border-light);
    flex-shrink: 0;
    min-height: 60px;
}

.temav2-submenu-panel-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    order: 2;
    margin-left: auto;
    border: 1px solid var(--tv2-border);
    border-radius: var(--tv2-radius-xs);
    background: var(--tv2-bg);
    color: var(--tv2-text-secondary);
    cursor: pointer;
    transition: all var(--tv2-transition);
    padding: 0;
    flex-shrink: 0;
}

.temav2-submenu-panel-toggle:hover {
    background: var(--tv2-primary-bg);
    color: var(--tv2-primary);
    border-color: var(--tv2-primary-light);
}

.temav2-submenu-panel-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--tv2-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.temav2-submenu-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.temav2-submenu-panel-body .temav2-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.temav2-submenu-panel-body .temav2-menu-item {
    margin: 2px 0;
}

.temav2-submenu-panel-body .temav2-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--tv2-radius-sm);
    color: var(--tv2-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: all var(--tv2-transition);
    white-space: nowrap;
    overflow: hidden;
}

.temav2-submenu-panel-body .temav2-menu-link:hover {
    background: var(--tv2-bg);
    color: var(--tv2-text);
}

.temav2-submenu-panel-body .temav2-active > .temav2-menu-link {
    background: var(--tv2-primary-bg);
    color: var(--tv2-primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .temav2-submenu-panel {
        display: none !important;
    }

    .temav2-has-children > .temav2-submenu {
        display: none;
        padding-left: 12px;
        border-left: 2px solid var(--tv2-border-light);
        margin-left: 20px;
        margin-top: 2px;
        margin-bottom: 2px;
    }

    .temav2-has-children.temav2-submenu-expanded > .temav2-submenu {
        display: block;
    }

    .temav2-submenu-expanded > .temav2-menu-link .temav2-menu-arrow {
        transform: rotate(90deg);
        color: var(--tv2-primary);
    }

    .temav2-submenu .temav2-menu-link {
        padding: 7px 10px;
        font-size: 13px;
    }

    .temav2-submenu .temav2-submenu {
        margin-left: 10px;
    }
}

html.temav2-collapsed-initial .temav2-submenu-panel:not(.temav2-submenu-panel-2) {
    left: var(--tv2-sidebar-collapsed) !important;
    transition: none !important;
}

html.temav2-submenu-collapsed-initial .temav2-submenu-panel:not(.temav2-submenu-panel-2),
html.temav2-submenu2-collapsed-initial .temav2-submenu-panel-2 {
    width: var(--tv2-sidebar-collapsed) !important;
    transition: none !important;
}

html.temav2-submenu-collapsed-initial .temav2-submenu-panel:not(.temav2-submenu-panel-2) .temav2-menu-text,
html.temav2-submenu-collapsed-initial .temav2-submenu-panel:not(.temav2-submenu-panel-2) .temav2-submenu-panel-title,
html.temav2-submenu2-collapsed-initial .temav2-submenu-panel-2 .temav2-menu-text,
html.temav2-submenu2-collapsed-initial .temav2-submenu-panel-2 .temav2-submenu-panel-title {
    display: none !important;
}

html.temav2-submenu-collapsed-initial .temav2-submenu-panel:not(.temav2-submenu-panel-2) .temav2-menu-link,
html.temav2-submenu2-collapsed-initial .temav2-submenu-panel-2 .temav2-menu-link {
    justify-content: center !important;
    padding: 8px 0 !important;
    gap: 0 !important;
}

html.temav2-submenu-collapsed-initial .temav2-submenu-panel:not(.temav2-submenu-panel-2) .temav2-menu-arrow,
html.temav2-submenu2-collapsed-initial .temav2-submenu-panel-2 .temav2-menu-arrow {
    display: none !important;
}

html.temav2-submenu-collapsed-initial .temav2-submenu-panel:not(.temav2-submenu-panel-2) .temav2-submenu-panel-header,
html.temav2-submenu2-collapsed-initial .temav2-submenu-panel-2 .temav2-submenu-panel-header {
    justify-content: center !important;
    padding: 16px 6px !important;
}

html.temav2-submenu-collapsed-initial .temav2-submenu-panel:not(.temav2-submenu-panel-2) .temav2-submenu-panel-body,
html.temav2-submenu2-collapsed-initial .temav2-submenu-panel-2 .temav2-submenu-panel-body {
    padding: 8px 6px !important;
}

html.temav2-collapsed-initial .temav2-sidebar .temav2-menu-arrow {
    display: none !important;
}

.temav2-admin-wrap {
    max-width: 900px;
    margin: 20px auto;
    font-family: var(--tv2-font);
}

.temav2-admin-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.temav2-admin-card h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.temav2-admin-card p {
    color: #666;
    font-size: 13px;
    margin: 0 0 16px;
}

.temav2-admin-card .temav2-placeholders {
    background: #f9f9f9;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #555;
}

.temav2-admin-card .temav2-placeholders code {
    background: #eee;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
}

.temav2-admin-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.temav2-tooltip {
    position: fixed;
    z-index: 999999;
    background: var(--tv2-primary-dark);
    color: #fff;
    padding: 6px 12px;
    border-radius: var(--tv2-radius-xs);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--tv2-font);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    box-shadow: var(--tv2-shadow-md);
    line-height: 1.4;
}

.temav2-tooltip.visible {
    opacity: 1;
}

.temav2-tooltip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -5px;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: var(--tv2-primary-dark);
    border-left: 0;
}
