/* CaryoMate Design System v2 — mobile-first responsive */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
    --vt-font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --vt-radius-sm: 4px;
    --vt-radius-md: 6px;
    --vt-radius-lg: 8px;
    --vt-radius-xl: 10px;
    --vt-radius-pill: 999px;
    --vt-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --vt-success: #10B981;
    --vt-error: #EF4444;
    --vt-warning: #F59E0B;
    --vt-info: #3B82F6;
    --vt-container: 1120px;
    --vt-nav-height: 64px;
    --vt-qp-rail-width: 360px;
    --vt-qp-rail-pad: 12px;
}

[data-theme="dark"] {
    --vt-bg: #070B14;
    --vt-bg-secondary: #0C1220;
    --vt-bg-tertiary: #151D30;
    --vt-bg-card: #111827;
    --vt-bg-elevated: #1A2338;
    --vt-bg-hover: rgba(59, 130, 246, 0.1);
    --vt-bg-input: rgba(7, 11, 20, 0.65);
    --vt-text: #F1F5F9;
    --vt-text-secondary: #94A3B8;
    --vt-text-muted: #64748B;
    --vt-text-placeholder: #475569;
    --vt-border: rgba(148, 163, 184, 0.12);
    --vt-border-subtle: rgba(59, 130, 246, 0.14);
    --vt-border-color: rgba(148, 163, 184, 0.12);
    --vt-border-focus: rgba(59, 130, 246, 0.35);
    --vt-primary: #3B82F6;
    --vt-primary-hover: #60A5FA;
    --vt-primary-alpha-10: rgba(59, 130, 246, 0.12);
    --vt-primary-alpha-15: rgba(59, 130, 246, 0.18);
    --vt-accent: #22D3EE;
    --vt-accent-hover: #67E8F9;
    --vt-gradient-primary: linear-gradient(135deg, #2563EB 0%, #0891B2 100%);
    --vt-gradient-soft:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.18), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(8, 145, 178, 0.12), transparent);
    --vt-disabled-bg: rgba(71, 85, 105, 0.25);
    --vt-disabled-text: #475569;
    --vt-overlay: rgba(2, 6, 23, 0.65);
    --vt-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --vt-shadow-md: 0 12px 40px rgba(0, 0, 0, 0.45);
    --vt-shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
    --vt-shadow-focus: 0 0 0 3px rgba(59, 130, 246, 0.22);
    --vt-shadow-primary: 0 8px 28px rgba(37, 99, 235, 0.35);
    --vt-navbar-bg: rgba(7, 11, 20, 0.88);
    --vt-footer-bg: #050810;
    --vt-card-bg: var(--vt-bg-card);
}

[data-theme="light"] {
    --vt-bg: #F0F4FA;
    --vt-bg-secondary: #E8EEF7;
    --vt-bg-tertiary: #DFE7F2;
    --vt-bg-card: #FFFFFF;
    --vt-bg-elevated: #F8FAFC;
    --vt-bg-hover: rgba(37, 99, 235, 0.06);
    --vt-bg-input: #FFFFFF;
    --vt-text: #0F172A;
    --vt-text-secondary: #475569;
    --vt-text-muted: #64748B;
    --vt-text-placeholder: #94A3B8;
    --vt-border: #E2E8F0;
    --vt-border-subtle: rgba(37, 99, 235, 0.12);
    --vt-border-color: #E2E8F0;
    --vt-border-focus: rgba(37, 99, 235, 0.28);
    --vt-primary: #2563EB;
    --vt-primary-hover: #1D4ED8;
    --vt-primary-alpha-10: rgba(37, 99, 235, 0.08);
    --vt-primary-alpha-15: rgba(37, 99, 235, 0.12);
    --vt-accent: #0891B2;
    --vt-accent-hover: #0E7490;
    --vt-gradient-primary: linear-gradient(135deg, #2563EB 0%, #0891B2 100%);
    --vt-gradient-soft:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(8, 145, 178, 0.06), transparent);
    --vt-disabled-bg: #F1F5F9;
    --vt-disabled-text: #94A3B8;
    --vt-overlay: rgba(15, 23, 42, 0.35);
    --vt-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --vt-shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
    --vt-shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.12);
    --vt-shadow-focus: 0 0 0 3px rgba(37, 99, 235, 0.14);
    --vt-shadow-primary: 0 8px 24px rgba(37, 99, 235, 0.28);
    --vt-navbar-bg: rgba(255, 255, 255, 0.92);
    --vt-footer-bg: #F8FAFC;
    --vt-card-bg: var(--vt-bg-card);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
a { text-decoration: none; color: inherit; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--vt-font);
    background: var(--vt-bg);
    background-image: var(--vt-gradient-soft);
    color: var(--vt-text);
    transition: background 0.3s, color 0.3s;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.vt-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== Navbar ===== */
.vt-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px clamp(16px, 3vw, 28px);
    min-height: var(--vt-nav-height);
    background: var(--vt-navbar-bg);
    border-bottom: 1px solid var(--vt-border-subtle);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: sticky;
    top: 0;
    z-index: 200;
}

.vt-navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 800;
    color: var(--vt-text);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.vt-navbar-logo-mark {
    width: 38px;
    height: 38px;
    border-radius: var(--vt-radius-md);
    background: var(--vt-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    box-shadow: var(--vt-shadow-primary);
    transform: rotate(-4deg);
}

.vt-navbar-logo-dot { display: none; }

.vt-navbar-logo-text em {
    font-style: normal;
    font-weight: 500;
    color: var(--vt-text-secondary);
}

.vt-navbar-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 300px);
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px;
    background: var(--vt-bg-elevated);
    border-radius: var(--vt-radius-md);
    border: 1px solid var(--vt-border-subtle);
    box-shadow: var(--vt-shadow-sm);
}
.vt-navbar-menu::-webkit-scrollbar { display: none; }

.vt-navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.vt-navbar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--vt-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    border: 2px solid var(--vt-border-subtle);
}

.vt-navbar-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--vt-border-subtle);
    border-radius: var(--vt-radius-md);
    background: var(--vt-bg-elevated);
    color: var(--vt-text);
    font-size: 18px;
    cursor: pointer;
    transition: all var(--vt-transition);
}
.vt-navbar-hamburger:hover {
    border-color: var(--vt-primary);
    color: var(--vt-primary);
}

/* Menu items */
.vt-menu-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--vt-text-secondary);
    border-radius: var(--vt-radius-sm);
    transition: all var(--vt-transition);
    white-space: nowrap;
}
.vt-menu-item:hover {
    color: var(--vt-primary);
    background: var(--vt-primary-alpha-10);
}
.vt-menu-item i { font-size: 13px; opacity: 0.85; }
.vt-menu-arrow { font-size: 9px; margin-left: 2px; transition: transform 0.2s; }

.vt-menu-dropdown { position: relative; }
.vt-menu-dropdown.vt-open .vt-menu-arrow { transform: rotate(180deg); }
.vt-menu-dropdown.vt-open > .vt-menu-item {
    color: var(--vt-primary);
    background: var(--vt-primary-alpha-10);
}

.vt-submenu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 210px;
    background: var(--vt-bg-card);
    border: 1px solid var(--vt-border-subtle);
    border-radius: var(--vt-radius-md);
    box-shadow: var(--vt-shadow-md);
    display: none;
    flex-direction: column;
    padding: 6px;
    z-index: 300;
}
.vt-menu-dropdown.vt-open .vt-submenu { display: flex; }

.vt-submenu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--vt-text-secondary);
    border-radius: var(--vt-radius-sm);
    transition: all 0.15s;
}
.vt-submenu-item:hover {
    background: var(--vt-primary-alpha-10);
    color: var(--vt-primary);
}
.vt-submenu-item i { width: 16px; text-align: center; font-size: 12px; }

/* Mobile menu */
.vt-mobile-menu {
    display: none;
    position: fixed;
    top: var(--vt-nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--vt-bg-card);
    border-top: 1px solid var(--vt-border-subtle);
    overflow-y: auto;
    z-index: 199;
    padding: 8px 0 32px;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
}
.vt-mobile-menu.open { display: flex; }

.vt-mobile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    color: var(--vt-text);
    border-bottom: 1px solid var(--vt-border);
    font-size: 15px;
    font-weight: 600;
}
.vt-mobile-menu-item:hover { background: var(--vt-bg-elevated); }

.vt-mobile-submenu {
    display: none;
    flex-direction: column;
    background: var(--vt-bg-secondary);
}
.vt-mobile-menu-group.open .vt-mobile-submenu { display: flex; }
.vt-mobile-menu-group.open .vt-has-children i.fa-chevron-down { transform: rotate(180deg); }

.vt-mobile-submenu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px 12px 44px;
    color: var(--vt-text-secondary);
    font-size: 14px;
    border-bottom: 1px solid var(--vt-border);
}
.vt-mobile-submenu-item:hover {
    background: var(--vt-bg-elevated);
    color: var(--vt-primary);
}

body.vt-mobile-menu-open { overflow: hidden; }

/* ===== Main content ===== */
.vt-content-full,
.vt-main {
    flex: 1;
    width: 100%;
    max-width: var(--vt-container);
    margin: 0 auto;
    padding: clamp(16px, 3vw, 32px) clamp(16px, 4vw, 28px) 48px;
}

.vt-content { flex: 1; padding: 24px; overflow-y: auto; }

/* ===== Page header ===== */
.vt-page-header {
    margin-bottom: clamp(20px, 3vw, 28px);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.vt-page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--vt-primary);
    margin-bottom: 8px;
}

.vt-page-title {
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 800;
    color: var(--vt-text);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.vt-page-subtitle {
    font-size: 14px;
    color: var(--vt-text-muted);
    margin-top: 6px;
    max-width: 560px;
}

/* ===== Cards ===== */
.vt-card {
    background: var(--vt-bg-card);
    border-radius: var(--vt-radius-lg);
    border: 1px solid var(--vt-border-subtle);
    padding: clamp(20px, 3vw, 28px);
    box-shadow: var(--vt-shadow-sm);
    transition: transform var(--vt-transition), box-shadow var(--vt-transition);
}
.vt-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--vt-shadow-md);
}

.vt-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.vt-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--vt-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.vt-card-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.vt-card-body > .vt-field:last-child {
    margin-bottom: 0;
}

/* 폼·설정 카드 — hover 들뜸 비활성 */
.vt-card.vt-card-form:hover,
.vt-card.vt-card-static:hover {
    transform: none;
    box-shadow: var(--vt-shadow-sm);
}

.vt-form-page {
    max-width: 720px;
    width: 100%;
}

.vt-form-page .vt-card + .vt-card {
    margin-top: 16px;
}

.vt-form-page .vt-card-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--vt-border);
}

.vt-form-page .vt-field {
    margin-bottom: 16px;
}

.vt-form-page .vt-card {
    padding: 20px 24px;
}

.vt-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
    padding-top: 8px;
}

.vt-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    color: var(--vt-text-muted);
}

.vt-checkbox-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--vt-text);
}

/* ===== Profile ===== */
.vt-profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.vt-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--vt-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.vt-profile-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--vt-text);
}

.vt-profile-email {
    font-size: 14px;
    color: var(--vt-text-muted);
    margin-top: 4px;
}

.vt-info-table {
    max-width: 520px;
    width: 100%;
}

.vt-info-table td:first-child {
    font-weight: 600;
    color: var(--vt-text-secondary);
    width: 140px;
}

.vt-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 420px;
}

.vt-setting-row-title {
    font-weight: 600;
    color: var(--vt-text);
}

.vt-setting-row-desc {
    font-size: 13px;
    color: var(--vt-text-muted);
    margin-top: 4px;
}

/* ===== Stats ===== */
.vt-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.vt-stat-card {
    background: var(--vt-bg-card);
    border-radius: var(--vt-radius-lg);
    border: 1px solid var(--vt-border-subtle);
    padding: 22px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--vt-shadow-sm);
    transition: transform var(--vt-transition);
}
.vt-stat-card:hover { transform: translateY(-3px); }
.vt-stat-card::before { display: none; }

.vt-stat-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--vt-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.vt-stat-value {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    color: var(--vt-text);
    margin: 10px 0 8px;
    letter-spacing: -0.03em;
}

.vt-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--vt-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* ===== Buttons ===== */
.vt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: var(--vt-radius-sm);
    font-family: var(--vt-font);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--vt-transition);
    white-space: nowrap;
}
.vt-btn:active { transform: scale(0.98); }
.vt-btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: var(--vt-radius-sm); }
.vt-btn-md { height: 40px; padding: 0 18px; font-size: 14px; }
.vt-btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }

.vt-btn-primary {
    background: var(--vt-gradient-primary);
    color: #fff;
    box-shadow: var(--vt-shadow-sm);
}
.vt-btn-primary:hover {
    box-shadow: var(--vt-shadow-primary);
    filter: brightness(1.05);
}

.vt-btn-secondary {
    background: transparent;
    color: var(--vt-primary);
    border: 1px solid var(--vt-border-focus);
}
.vt-btn-secondary:hover {
    background: var(--vt-primary-alpha-10);
    border-color: var(--vt-primary);
}

.vt-btn-ghost {
    background: transparent;
    color: var(--vt-text-secondary);
}
.vt-btn-ghost:hover {
    background: var(--vt-primary-alpha-10);
    color: var(--vt-primary);
}

.vt-btn-danger { background: var(--vt-error); color: #fff; }
.vt-btn-danger:hover { background: #DC2626; }

.vt-btn-icon { width: 40px; height: 40px; padding: 0; }
.vt-btn-icon.vt-btn-sm { width: 34px; height: 34px; }

/* ===== Forms ===== */
.vt-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.vt-field-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--vt-text);
}

.vt-input,
.vt-select,
textarea.vt-input {
    min-height: 42px;
    padding: 0 12px;
    border-radius: var(--vt-radius-sm);
    font-family: var(--vt-font);
    font-size: 14px;
    line-height: 1.5;
    background: var(--vt-bg-input);
    border: 1px solid var(--vt-border-color);
    color: var(--vt-text);
    outline: none;
    transition: border-color var(--vt-transition), box-shadow var(--vt-transition);
    width: 100%;
}
textarea.vt-input {
    padding: 10px 12px;
    min-height: 96px;
    resize: vertical;
    line-height: 1.55;
}

.vt-input::placeholder { color: var(--vt-text-placeholder); }
.vt-input:focus,
.vt-select:focus {
    border-color: var(--vt-primary);
    box-shadow: var(--vt-shadow-focus);
}

.vt-select {
    height: 42px;
    padding-right: 36px;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394A3B8' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6 6.5-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.vt-form-grid { display: grid; gap: 16px; }
.vt-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 16px;
}

.vt-field-checkbox-row {
    display: flex;
    align-items: flex-end;
    padding-bottom: 2px;
}

.vt-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}
.vt-badge-success { background: rgba(16, 185, 129, 0.14); color: var(--vt-success); }
.vt-badge-warning { background: rgba(245, 158, 11, 0.14); color: var(--vt-warning); }
.vt-badge-error { background: rgba(239, 68, 68, 0.14); color: var(--vt-error); }
.vt-badge-info { background: rgba(59, 130, 246, 0.14); color: var(--vt-info); }
.vt-badge-primary { background: var(--vt-primary-alpha-10); color: var(--vt-primary); }

/* ===== Tables ===== */
.vt-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--vt-radius-md);
}

.vt-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}

.vt-table th,
.vt-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--vt-border);
}

.vt-table th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vt-text-muted);
    background: var(--vt-bg-elevated);
    white-space: nowrap;
}

.vt-table td { font-size: 14px; color: var(--vt-text); }
.vt-table tbody tr:hover td { background: var(--vt-primary-alpha-10); }

.vt-table-scroll-container { position: relative; }
.vt-table-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 28px;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--vt-bg-card));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.vt-table-scroll-container.has-scroll::after { opacity: 1; }
.vt-table-scroll-container.scrolled-end::after { opacity: 0; }

.vt-table-scroll-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--vt-text-muted);
    padding: 8px 0;
}

/* ===== Lists ===== */
.vt-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid var(--vt-border);
    cursor: pointer;
    transition: background var(--vt-transition);
}
.vt-list-item:hover { background: var(--vt-primary-alpha-10); }
.vt-list-item:last-child { border-bottom: none; }
.vt-list-item-content { flex: 1; min-width: 0; }
.vt-list-item-title { font-size: 14px; font-weight: 600; color: var(--vt-text); }
.vt-list-item-desc { font-size: 13px; color: var(--vt-text-muted); margin-top: 2px; }
.vt-list-item-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Quick action grid */
.vt-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 12px;
}

.vt-action-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: var(--vt-radius-lg);
    border: 1px solid var(--vt-border-subtle);
    background: var(--vt-bg-elevated);
    transition: all var(--vt-transition);
}
.vt-action-card:hover {
    border-color: var(--vt-border-focus);
    transform: translateY(-3px) scale(1.01);
    box-shadow: var(--vt-shadow-md);
}

.vt-action-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--vt-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

/* ===== Alerts ===== */
.vt-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--vt-radius-md);
    margin-bottom: 16px;
    font-size: 14px;
}
.vt-alert-success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.25); }
.vt-alert-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.25); }
.vt-alert-warning { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.25); }
.vt-alert-info { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.25); }
.vt-alert-content { flex: 1; }
.vt-alert-message { color: var(--vt-text-secondary); }
.vt-alert-close {
    background: none;
    border: none;
    color: var(--vt-text-muted);
    cursor: pointer;
    padding: 4px;
}

/* ===== Footer ===== */
.vt-footer {
    background: var(--vt-footer-bg);
    border-top: 1px solid var(--vt-border-subtle);
    padding: 20px clamp(16px, 4vw, 28px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.vt-footer-text {
    font-size: 12px;
    color: var(--vt-text-muted);
}

.vt-footer-brand {
    font-weight: 700;
    color: var(--vt-primary);
}

/* ===== Theme toggle ===== */
.vt-theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: var(--vt-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    border: 1px solid var(--vt-border-subtle);
    background: var(--vt-bg-elevated);
    color: var(--vt-text-secondary);
    transition: all var(--vt-transition);
}
.vt-theme-toggle:hover {
    border-color: var(--vt-primary);
    color: var(--vt-primary);
}

/* ===== Dropdown ===== */
.vt-dropdown { position: relative; display: inline-block; }

.vt-dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 200px;
    border-radius: var(--vt-radius-md);
    padding: 6px;
    z-index: 400;
    display: none;
    flex-direction: column;
    background: var(--vt-bg-card);
    border: 1px solid var(--vt-border-subtle);
    box-shadow: var(--vt-shadow-md);
}
.vt-dropdown.vt-open .vt-dropdown-panel { display: flex; }

.vt-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--vt-radius-sm);
    font-size: 14px;
    cursor: pointer;
    color: var(--vt-text);
    transition: all 0.15s;
}
.vt-dropdown-item:hover {
    background: var(--vt-primary-alpha-10);
    color: var(--vt-primary);
}
.vt-dropdown-item i { width: 16px; text-align: center; font-size: 13px; color: var(--vt-text-muted); }
.vt-dropdown-divider { height: 1px; margin: 4px 8px; background: var(--vt-border); }

/* Searchable dropdown (estimate) */
.vt-dropdown-trigger {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border-radius: var(--vt-radius-md);
    border: 1px solid var(--vt-border-subtle);
    background: var(--vt-bg-input);
    font-family: var(--vt-font);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: border 0.2s, box-shadow 0.2s;
}
.vt-dropdown-trigger:hover { border-color: var(--vt-primary); }
.vt-dropdown-trigger-text { font-size: 14px; color: var(--vt-text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-dropdown-trigger-placeholder { color: var(--vt-text-placeholder); }
.vt-dropdown-trigger-icon { font-size: 12px; color: var(--vt-text-muted); transition: transform 0.2s; flex-shrink: 0; }
.vt-dropdown.vt-dropdown-open .vt-dropdown-trigger-icon { transform: rotate(180deg); }
.vt-dropdown.vt-dropdown-open .vt-dropdown-trigger { border-color: var(--vt-primary); box-shadow: var(--vt-shadow-focus); }
.vt-dropdown.vt-dropdown-open .vt-dropdown-panel { display: block; }
.vt-dropdown-search-wrap { position: relative; }
.vt-dropdown-search-wrap i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--vt-text-muted); }
.vt-dropdown-search {
    width: 100%;
    height: 36px;
    padding: 0 10px 0 32px;
    border-radius: var(--vt-radius-sm);
    border: 1px solid var(--vt-border-subtle);
    background: var(--vt-bg-input);
    color: var(--vt-text);
    font-family: var(--vt-font);
    font-size: 13px;
    outline: none;
    margin-bottom: 6px;
}
.vt-dropdown-options { max-height: 200px; overflow-y: auto; }
.vt-dropdown-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--vt-radius-sm);
    cursor: pointer;
    font-size: 13px;
    color: var(--vt-text);
}
.vt-dropdown-option:hover { background: var(--vt-bg-elevated); }
.vt-dropdown-option.vt-dropdown-option-selected { color: var(--vt-primary); font-weight: 600; }
.vt-dropdown-option-check { margin-left: auto; font-size: 12px; color: var(--vt-primary); }

/* ===== Modal ===== */
.vt-modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--vt-overlay);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}
.vt-modal-overlay.active { display: flex; }

.vt-modal {
    background: var(--vt-bg-card);
    border-radius: var(--vt-radius-lg);
    border: 1px solid var(--vt-border-subtle);
    padding: 24px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--vt-shadow-lg);
}

.vt-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.vt-modal-title { font-size: 17px; font-weight: 700; }
.vt-modal-close { background: none; border: none; color: var(--vt-text-muted); cursor: pointer; font-size: 16px; }
.vt-modal-close:hover { color: var(--vt-error); }
.vt-modal-body { font-size: 14px; color: var(--vt-text-secondary); padding: 0 0 8px; }
.vt-modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* ===== Checkbox ===== */
.vt-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}
.vt-checkbox input { display: none; }
.vt-checkbox-box {
    width: 18px;
    height: 18px;
    border-radius: var(--vt-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--vt-border-focus);
    background: var(--vt-bg-input);
    color: transparent;
    font-size: 11px;
    transition: all 0.2s;
}
.vt-checkbox input:checked ~ .vt-checkbox-box {
    background: var(--vt-gradient-primary);
    border-color: transparent;
    color: #fff;
}

/* ===== Empty state ===== */
.vt-empty,
.vt-empty-state-enhanced {
    text-align: center;
    padding: 48px 24px;
    color: var(--vt-text-muted);
}
.vt-empty-state-enhanced {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.vt-empty-state-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--vt-primary-alpha-10);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.vt-empty-state-icon i { font-size: 28px; color: var(--vt-primary); }
.vt-empty-title,
.vt-empty-state-title { font-size: 16px; font-weight: 600; color: var(--vt-text); margin-bottom: 8px; }
.vt-empty-state-desc { font-size: 13px; max-width: 320px; line-height: 1.6; margin-bottom: 20px; }

/* ===== Login ===== */
.vt-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: var(--vt-bg);
    background-image: var(--vt-gradient-soft);
}

.vt-login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 920px;
    border-radius: var(--vt-radius-xl);
    overflow: hidden;
    box-shadow: var(--vt-shadow-lg);
    border: 1px solid var(--vt-border-subtle);
}

.vt-login-side {
    background: var(--vt-gradient-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.vt-login-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.vt-login-side-content { position: relative; z-index: 1; }

.vt-login-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.vt-login-logo-mark {
    width: 52px;
    height: 52px;
    border-radius: var(--vt-radius-lg);
    background: rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    backdrop-filter: blur(8px);
    transform: rotate(-6deg);
}

.vt-login-tagline {
    font-size: 15px;
    opacity: 0.92;
    line-height: 1.7;
    max-width: 280px;
}

.vt-login-features {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    width: 100%;
    max-width: 260px;
}

.vt-login-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    opacity: 0.9;
}

.vt-login-card {
    background: var(--vt-bg-card);
    padding: clamp(32px, 5vw, 48px) clamp(24px, 4vw, 40px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vt-login-header { margin-bottom: 28px; }
.vt-login-title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.vt-login-subtitle { font-size: 14px; color: var(--vt-text-muted); }
.vt-login-form { display: flex; flex-direction: column; gap: 18px; }
.vt-remember-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.vt-forgot-link { font-size: 13px; color: var(--vt-primary); }
.vt-forgot-link:hover { text-decoration: underline; }

/* ===== Sidebar (legacy) ===== */
.vt-sidebar {
    width: 260px;
    background: var(--vt-bg-card);
    border-right: 1px solid var(--vt-border-subtle);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--vt-nav-height));
}
.vt-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--vt-radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--vt-text-secondary);
    margin-bottom: 2px;
}
.vt-sidebar-link:hover,
.vt-sidebar-link.active {
    background: var(--vt-primary-alpha-10);
    color: var(--vt-primary);
}

.vt-layout { display: flex; flex: 1; }

/* Horizontal menu (legacy) */
.vt-horizontal-menu {
    background: var(--vt-bg-card);
    border-bottom: 1px solid var(--vt-border-subtle);
    padding: 0 24px;
}
.vt-menu-container { display: flex; align-items: center; gap: 4px; max-width: var(--vt-container); margin: 0 auto; }

/* ===== Utilities ===== */
.vt-mt-4 { margin-top: 16px; }
.vt-mt-6 { margin-top: 24px; }
.vt-mb-4 { margin-bottom: 16px; }
.vt-mb-6 { margin-bottom: 24px; }
.vt-gap-2 { gap: 8px; }
.vt-gap-3 { gap: 12px; }
.vt-gap-4 { gap: 16px; }
.vt-flex { display: flex; }
.vt-flex-col { flex-direction: column; }
.vt-flex-wrap { flex-wrap: wrap; }
.vt-items-center { align-items: center; }
.vt-justify-between { justify-content: space-between; }
.vt-w-full { width: 100%; }
.vt-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 20px;
}

/* ===== Responsive ===== */
@media (min-width: 769px) {
    .vt-mobile-menu { display: none !important; }
    .vt-navbar-hamburger { display: none !important; }
}

@media (max-width: 768px) {
    .vt-sidebar { display: none; }
    .vt-content,
    .vt-content-full { padding: 16px; }

    .vt-navbar-menu.vt-desktop-menu { display: none !important; }
    .vt-navbar-logo .vt-community-badge { display: none; }

    .vt-navbar-hamburger { display: flex; }

    .vt-page-header .vt-btn { width: 100%; }

    .vt-footer {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .vt-table-scroll-hint { display: flex; }

    .vt-login-container { grid-template-columns: 1fr; }
    .vt-login-side { display: none; }

    .vt-modal-footer .vt-btn { flex: 1; min-width: 120px; }
}

@media (max-width: 480px) {
    .vt-navbar-logo-text em { display: none; }
    .vt-stat-value { font-size: 26px; }
}

@keyframes scrollHintBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}
.vt-table-scroll-hint i { animation: scrollHintBounce 1.5s infinite; }

/* ===== App shell: topbar + sidebar + main ===== */
.vt-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 clamp(12px, 3vw, 24px);
    height: var(--vt-nav-height);
    background: var(--vt-navbar-bg);
    border-bottom: 1px solid var(--vt-border-subtle);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 300;
    flex-shrink: 0;
}

.vt-topbar-left,
.vt-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.vt-topbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.vt-topbar-context {
    font-size: 13px;
    font-weight: 600;
    color: var(--vt-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.vt-topbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    font-size: 17px;
    font-weight: 800;
}

.vt-topbar-logo-text em {
    font-style: normal;
    font-weight: 500;
    color: var(--vt-text-secondary);
}

.vt-sidebar-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--vt-border-subtle);
    border-radius: var(--vt-radius-md);
    background: var(--vt-bg-elevated);
    color: var(--vt-text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.vt-shell {
    display: flex;
    flex: 1;
    min-height: 0;
    align-items: stretch;
}

.vt-main-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: calc(100vh - var(--vt-nav-height));
}

.vt-main-wrap .vt-content-full {
    flex: 1;
    max-width: none;
    width: 100%;
    padding: clamp(16px, 2.5vw, 28px);
}

.vt-main-wrap .vt-footer {
    flex-shrink: 0;
}

/* Sidebar navigation */
.vt-sidebar-nav {
    width: 240px;
    flex-shrink: 0;
    background: var(--vt-bg-card);
    border-right: 1px solid var(--vt-border-subtle);
    position: sticky;
    top: var(--vt-nav-height);
    height: calc(100vh - var(--vt-nav-height));
    overflow-y: auto;
    z-index: 100;
}

.vt-sidebar-nav-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 16px 12px 20px;
}

.vt-sidebar-block { margin-bottom: 20px; }

.vt-sidebar-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--vt-text-muted);
    padding: 0 12px 8px;
}

.vt-sidebar-nav .vt-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--vt-radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--vt-text-secondary);
    margin-bottom: 2px;
    transition: all var(--vt-transition);
    border-left: 3px solid transparent;
}

.vt-sidebar-nav .vt-sidebar-link i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    opacity: 0.85;
}

.vt-sidebar-nav .vt-sidebar-link:hover {
    background: var(--vt-primary-alpha-10);
    color: var(--vt-text);
}

.vt-sidebar-nav .vt-sidebar-link.active {
    background: var(--vt-primary-alpha-10);
    color: var(--vt-primary);
    border-left-color: var(--vt-primary);
    font-weight: 600;
}

.vt-sidebar-status {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 12px;
    border-radius: var(--vt-radius-md);
    background: var(--vt-bg-elevated);
    border: 1px solid var(--vt-border-subtle);
}

.vt-sidebar-status-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--vt-text);
}

.vt-sidebar-status-desc {
    font-size: 11px;
    color: var(--vt-text-muted);
}

.vt-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--vt-nav-height);
    background: var(--vt-overlay);
    z-index: 250;
}

.vt-sidebar-backdrop.open { display: block; }

.vt-dropdown-user {
    padding: 12px 14px;
    border-bottom: 1px solid var(--vt-border);
}

.vt-dropdown-user-name { font-weight: 600; }
.vt-dropdown-user-email { font-size: 12px; color: var(--vt-text-muted); }
.vt-dropdown-danger { color: var(--vt-error) !important; }

/* ===== Board / forum layout ===== */
.vt-board-page { max-width: 1200px; margin: 0 auto; width: 100%; }

.vt-board-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.vt-board-welcome {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.vt-board-welcome span { color: var(--vt-primary); }

.vt-board-desc {
    font-size: 14px;
    color: var(--vt-text-muted);
    margin-top: 6px;
}

.vt-board-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
    align-items: start;
}

.vt-board-main {
    background: var(--vt-bg-card);
    border: 1px solid var(--vt-border-subtle);
    border-radius: var(--vt-radius-lg);
    overflow: hidden;
    box-shadow: var(--vt-shadow-sm);
}

.vt-board-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--vt-border);
    background: var(--vt-bg-elevated);
}

.vt-board-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vt-board-tab {
    padding: 8px 14px;
    border-radius: var(--vt-radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--vt-text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--vt-font);
    transition: all var(--vt-transition);
}

.vt-board-tab:hover {
    color: var(--vt-text);
    background: var(--vt-primary-alpha-10);
}

.vt-board-tab.active {
    color: #fff;
    background: var(--vt-gradient-primary);
    box-shadow: var(--vt-shadow-primary);
}

.vt-board-list { padding: 0; }

.vt-board-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--vt-border);
    transition: background var(--vt-transition);
    text-decoration: none;
    color: inherit;
}

.vt-board-row:last-child { border-bottom: none; }
.vt-board-row:hover { background: var(--vt-primary-alpha-10); }

.vt-board-cat {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--vt-radius-pill);
    white-space: nowrap;
}

.vt-board-cat-notice { background: rgba(239, 68, 68, 0.12); color: var(--vt-error); }
.vt-board-cat-tip { background: var(--vt-primary-alpha-10); color: var(--vt-primary); }
.vt-board-cat-ops { background: rgba(245, 158, 11, 0.14); color: var(--vt-warning); }
.vt-board-cat-car { background: rgba(96, 165, 250, 0.14); color: var(--vt-info); }

.vt-board-row-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--vt-text);
    margin-bottom: 4px;
}

.vt-board-row-excerpt {
    font-size: 13px;
    color: var(--vt-text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vt-board-row-meta {
    text-align: right;
    font-size: 12px;
    color: var(--vt-text-muted);
    white-space: nowrap;
}

.vt-board-row-meta strong {
    display: block;
    color: var(--vt-text-secondary);
    font-size: 13px;
    margin-bottom: 2px;
}

.vt-board-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vt-board-aside .vt-stat-card {
    padding: 16px;
}

.vt-board-aside .vt-stat-value {
    font-size: 22px;
    margin: 6px 0;
}

.vt-mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.vt-mini-stat {
    padding: 12px;
    border-radius: var(--vt-radius-md);
    background: var(--vt-bg-elevated);
    border: 1px solid var(--vt-border-subtle);
    text-align: center;
}

.vt-mini-stat-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--vt-primary);
}

.vt-mini-stat-label {
    font-size: 11px;
    color: var(--vt-text-muted);
    margin-top: 2px;
}

.vt-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--vt-success);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
    display: inline-block;
    flex-shrink: 0;
}

@media (max-width: 960px) {
    .vt-sidebar-toggle { display: inline-flex; }
    .vt-topbar-center { display: none; }
    .vt-topbar-logo-text em { display: none; }

    .vt-sidebar-nav {
        position: fixed;
        left: 0;
        top: var(--vt-nav-height);
        height: calc(100vh - var(--vt-nav-height));
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: var(--vt-shadow-lg);
    }

    .vt-sidebar-nav.open { transform: translateX(0); }
    body.vt-sidebar-open { overflow: hidden; }

    .vt-board-layout { grid-template-columns: 1fr; }
}

@media (min-width: 961px) {
    .vt-sidebar-backdrop { display: none !important; }
}

/* ===== Quote providers (홈페이지 / 액셀) ===== */
.vt-qp-aside-block + .vt-qp-aside-block { margin-top: 14px; }

.vt-qp-aside-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--vt-text-secondary);
    margin-bottom: 8px;
}

.vt-qp-aside-head i { color: var(--vt-primary); width: 14px; text-align: center; }

.vt-qp-count {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: var(--vt-text-muted);
}

.vt-qp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vt-qp-chip {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: var(--vt-radius-pill);
    border: 1px solid var(--vt-border-subtle);
    background: var(--vt-bg-elevated);
    color: var(--vt-text-secondary);
}

.vt-qp-chip small { font-weight: 500; opacity: 0.85; margin-left: 2px; }

.vt-qp-chip.is-active {
    background: var(--vt-primary-alpha-10);
    border-color: rgba(59, 130, 246, 0.25);
    color: var(--vt-primary);
}

.vt-qp-chip.is-pending { opacity: 0.65; }

.vt-qp-chip.is-scheduled {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.25);
    color: var(--vt-warning);
}

/* ===== Quote provider vertical list ===== */
.vt-qp-aside-note,
.vt-qp-rail-sub {
    font-size: 11px;
    color: var(--vt-text-muted);
    margin-top: 4px;
    font-weight: 500;
}

.vt-qp-rail-hint {
    font-size: 12px;
    color: var(--vt-text-muted);
    margin-right: 10px;
    white-space: nowrap;
}

.vt-qp-rail-hint[hidden],
.vt-qp-rail-open-btn[hidden] {
    display: none !important;
}

.vt-qp-rail-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--vt-primary);
    border-radius: var(--vt-radius-sm);
    background: var(--vt-primary-alpha-10);
    color: var(--vt-primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--vt-font);
    white-space: nowrap;
    transition: all var(--vt-transition);
}

.vt-qp-rail-open-btn:hover {
    background: var(--vt-primary);
    color: #fff;
}

.vt-page-header-with-rail {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.vt-page-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.vt-qp-rail-hint strong { color: var(--vt-primary); }

.popup-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vt-qp-list-section { margin-bottom: 16px; }

.vt-qp-list-section-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--vt-text);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vt-qp-list-section-title i {
    color: var(--vt-primary);
    font-size: 12px;
}

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

.vt-qp-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 7px 4px 7px 0;
    border-bottom: 1px solid var(--vt-border-subtle);
    font-size: 13px;
    line-height: 1.35;
}

.vt-qp-list li:last-child { border-bottom: none; }

.vt-qp-list-row,
.vt-qp-list-btn {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 6px;
    text-align: left;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: default;
    font-family: var(--vt-font);
}

.vt-qp-list-btn {
    cursor: pointer;
    border-radius: 4px;
    padding: 4px 6px;
    margin: -4px -6px;
    transition: background var(--vt-transition);
}

.vt-qp-list-btn:hover {
    background: var(--vt-primary-alpha-10);
}

.vt-qp-list li.is-active .vt-qp-list-btn {
    background: var(--vt-primary-alpha-10);
    color: var(--vt-primary);
    font-weight: 700;
}

.vt-qp-list-mark {
    color: var(--vt-success);
    font-weight: 800;
    flex-shrink: 0;
    width: 14px;
}

.vt-qp-list-done { color: var(--vt-text); font-weight: 600; }
.vt-qp-list-pending { color: var(--vt-text-muted); font-weight: 500; }
.vt-qp-list-scheduled { color: var(--vt-text-secondary); font-weight: 500; }

.vt-qp-list-date {
    font-size: 11px;
    color: var(--vt-warning);
    font-weight: 500;
    white-space: nowrap;
}

.vt-qp-list-admin {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

/* ===== Quote provider rail ===== */
.vt-qp-rail-layout {
    display: block;
    position: relative;
}

.vt-qp-rail-main {
    min-width: 0;
    padding-right: 0;
    transition: padding-right 0.25s ease;
}

body.vt-qp-rail-open .vt-qp-rail-main,
body.has-qp-rail.vt-qp-rail-open:not(.vt-app) .vt-qp-rail-main {
    padding-right: calc(var(--vt-qp-rail-width) + var(--vt-qp-rail-pad));
}

.vt-qp-rail-shell {
    position: static;
}

body.has-qp-rail #quoteProviderRail,
body.has-qp-rail #quoteProviderRailBackdrop {
    position: fixed;
}

.vt-qp-rail {
    position: fixed;
    top: var(--vt-nav-height, 64px);
    right: 0;
    width: var(--vt-qp-rail-width);
    height: calc(100vh - var(--vt-nav-height, 64px));
    z-index: 400;
    background: var(--vt-bg-card);
    border-left: 1px solid var(--vt-border-subtle);
    box-shadow: var(--vt-shadow-md);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.25s ease;
}

.vt-qp-rail.open {
    transform: translateX(0);
}

body.has-qp-rail:not(.vt-app) .vt-qp-rail {
    top: 0;
    height: 100vh;
}

.vt-qp-rail-inner {
    flex: 1;
    overflow-y: auto;
    padding: 14px 20px 20px 14px;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.vt-qp-rail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--vt-border);
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--vt-bg-card);
    padding-top: 2px;
}

.vt-qp-rail-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.vt-qp-rail-close {
    width: 28px;
    height: 28px;
    border: 1px solid var(--vt-border-subtle);
    border-radius: var(--vt-radius-sm);
    background: var(--vt-bg-elevated);
    color: var(--vt-text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    padding: 0;
    flex-shrink: 0;
    transition: all var(--vt-transition);
}

.vt-qp-rail-close:hover {
    border-color: var(--vt-primary);
    color: var(--vt-primary);
    background: var(--vt-primary-alpha-10);
}

.vt-qp-rail-title {
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vt-qp-rail-section { margin-bottom: 16px; }

.vt-qp-rail-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--vt-text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vt-qp-rail-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vt-qp-rail-list > li {
    display: flex;
    align-items: stretch;
    gap: 4px;
}

.vt-qp-rail-item {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--vt-border-subtle);
    border-radius: var(--vt-radius-sm);
    background: var(--vt-bg-elevated);
    color: var(--vt-text);
    cursor: pointer;
    text-align: left;
    font-family: var(--vt-font);
    transition: all var(--vt-transition);
}

.vt-qp-rail-item:hover:not(:disabled) {
    border-color: var(--vt-primary);
    background: var(--vt-primary-alpha-10);
}

.vt-qp-rail-item.active {
    border-color: var(--vt-primary);
    background: var(--vt-primary-alpha-10);
    box-shadow: var(--vt-shadow-focus);
}

.vt-qp-rail-item:disabled,
.vt-qp-rail-item.is-readonly {
    cursor: default;
    opacity: 0.92;
}

.vt-qp-rail-status {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
}

.vt-qp-rail-status-done {
    background: rgba(16, 185, 129, 0.15);
    color: var(--vt-success);
}

.vt-qp-rail-status-scheduled {
    background: rgba(245, 158, 11, 0.15);
    color: var(--vt-warning);
}

.vt-qp-rail-status-pending {
    background: var(--vt-bg-tertiary);
    color: var(--vt-text-muted);
}

.vt-qp-rail-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.vt-qp-rail-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vt-qp-rail-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.vt-qp-rail-name small {
    font-weight: 500;
    color: var(--vt-text-muted);
}

.vt-qp-rail-meta {
    font-size: 10px;
    color: var(--vt-warning);
    line-height: 1.3;
}

.vt-qp-rail-meta.is-done { color: var(--vt-success); }

.vt-qp-rail-admin {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}

.vt-qp-rail-admin-btn {
    width: 26px;
    height: 26px;
    border: 1px solid var(--vt-border-subtle);
    border-radius: 6px;
    background: var(--vt-bg-card);
    cursor: pointer;
    font-size: 11px;
    line-height: 1;
    padding: 0;
}

.vt-qp-rail-admin-btn:hover {
    border-color: var(--vt-primary);
    background: var(--vt-primary-alpha-10);
}

.vt-qp-rail-admin-hint {
    font-size: 10px;
    color: var(--vt-text-muted);
    margin-top: 8px;
    line-height: 1.4;
}

.vt-qp-rail-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--vt-overlay);
    z-index: 399;
}

@media (max-width: 960px) {
    body.vt-qp-rail-open .vt-qp-rail-backdrop {
        display: block;
    }
}

.vt-qp-bar {
    margin-bottom: 16px;
    padding: 14px;
    background: var(--vt-bg-elevated);
    border: 1px solid var(--vt-border-subtle);
    border-radius: var(--vt-radius-md);
}

.vt-qp-bar-popup {
    padding: 10px 16px;
    background: var(--vt-bg-card);
    border-radius: 10px;
    margin-top: 12px;
}

.vt-qp-bar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.vt-qp-bar-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--vt-text-muted);
}

.vt-qp-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.vt-qp-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    border: 1px solid var(--vt-border-subtle);
    border-radius: var(--vt-radius-md);
    background: var(--vt-bg-card);
    color: var(--vt-text-secondary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--vt-font);
    transition: all var(--vt-transition);
}

.vt-qp-tab:hover {
    border-color: var(--vt-primary);
    color: var(--vt-text);
}

.vt-qp-tab.active {
    background: var(--vt-gradient-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--vt-shadow-primary);
}

.vt-qp-panel { display: none; }
.vt-qp-panel.active { display: block; }

.vt-qp-panel-desc {
    font-size: 11px;
    color: var(--vt-text-muted);
    margin-bottom: 10px;
}

.vt-qp-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vt-qp-btn {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 8px 10px;
    border: 1px solid var(--vt-border-subtle);
    border-radius: var(--vt-radius-sm);
    background: var(--vt-bg-card);
    color: var(--vt-text-secondary);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--vt-font);
    transition: all var(--vt-transition);
}

.vt-qp-bar-full .vt-qp-btn { min-width: 88px; padding: 10px 12px; }

.vt-qp-btn:hover:not(.is-disabled):not(:disabled) {
    border-color: var(--vt-primary);
    color: var(--vt-primary);
}

.vt-qp-btn.active {
    border-color: var(--vt-primary);
    background: var(--vt-primary-alpha-10);
    color: var(--vt-primary);
    box-shadow: var(--vt-shadow-focus);
}

.vt-qp-btn.is-disabled,
.vt-qp-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.vt-qp-btn-name { line-height: 1.2; }

.vt-qp-btn-note {
    font-size: 10px;
    font-weight: 500;
    color: var(--vt-text-muted);
    margin-top: 2px;
}

.vt-qp-btn-rate {
    font-size: 10px;
    font-weight: 600;
    color: var(--vt-accent);
    margin-top: 4px;
}

.vt-qp-btn-badge {
    position: absolute;
    top: -6px;
    right: -4px;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: var(--vt-radius-pill);
    background: var(--vt-bg-tertiary);
    color: var(--vt-text-muted);
    border: 1px solid var(--vt-border-subtle);
}

@media (max-width: 640px) {
    .vt-qp-tab { font-size: 11px; padding: 8px 6px; }
    .vt-qp-btn { flex: 1 1 calc(33.33% - 6px); min-width: 0; }
}

/* ===== Pipeline Kanban (CRM-style) ===== */
.vt-kanban-page-header {
    margin-bottom: 20px;
}

.vt-kanban-breadcrumb {
    font-size: 12px;
    color: var(--vt-text-muted);
    margin-bottom: 6px;
}

.vt-kanban-breadcrumb span { margin: 0 6px; opacity: 0.5; }

.vt-kanban-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.vt-kanban-kpi {
    background: var(--vt-bg-card);
    border: 1px solid var(--vt-border-subtle);
    border-radius: var(--vt-radius-md);
    padding: 16px 18px;
    box-shadow: var(--vt-shadow-sm);
}

.vt-kanban-kpi-label {
    font-size: 12px;
    color: var(--vt-text-muted);
    margin-bottom: 6px;
}

.vt-kanban-kpi-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--vt-text);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.vt-kanban-kpi-sub {
    font-size: 12px;
    color: var(--vt-text-muted);
    margin-top: 6px;
}

.vt-kanban-kpi-sub.is-up { color: var(--vt-success); }
.vt-kanban-kpi-sub.is-down { color: var(--vt-error); }

.vt-pipeline-panel {
    background: var(--vt-bg-card);
    border: 1px solid var(--vt-border-subtle);
    border-radius: var(--vt-radius-md);
    padding: 14px 18px 12px;
    margin-bottom: 14px;
    box-shadow: var(--vt-shadow-sm);
}

.vt-pipeline-bar {
    display: flex;
    height: 8px;
    border-radius: var(--vt-radius-sm);
    overflow: hidden;
    background: var(--vt-bg-elevated);
    margin-bottom: 10px;
}

.vt-pipeline-seg {
    min-width: 4px;
    transition: flex 0.3s ease;
}

.vt-pipeline-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
}

.vt-pipeline-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--vt-text-secondary);
}

.vt-pipeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.vt-kanban-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.vt-kanban-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vt-kanban-filter {
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--vt-border-subtle);
    border-radius: var(--vt-radius-sm);
    background: var(--vt-bg-card);
    color: var(--vt-text-secondary);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--vt-font);
    cursor: pointer;
    transition: all var(--vt-transition);
}

.vt-kanban-filter:hover {
    border-color: var(--vt-border-focus);
    color: var(--vt-primary);
}

.vt-kanban-filter.is-active {
    background: var(--vt-primary-alpha-10);
    border-color: var(--vt-primary);
    color: var(--vt-primary);
}

.vt-kanban-toolbar-meta {
    font-size: 12px;
    color: var(--vt-text-muted);
    white-space: nowrap;
}

.vt-kanban-board {
    background: var(--vt-bg-secondary);
    border: 1px solid var(--vt-border-subtle);
    border-radius: var(--vt-radius-md);
    padding: 14px;
}

.vt-kanban {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.vt-kanban-col {
    --kanban-accent: var(--vt-primary);
    background: var(--vt-bg-card);
    border: 1px solid var(--vt-border-subtle);
    border-radius: var(--vt-radius-md);
    border-top: 3px solid var(--kanban-accent);
    display: flex;
    flex-direction: column;
    min-height: 280px;
    max-height: calc(100vh - 340px);
    box-shadow: var(--vt-shadow-sm);
}

.vt-kanban-col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px 10px;
    flex-shrink: 0;
}

.vt-kanban-col-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--vt-text);
}

.vt-kanban-col-count {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: var(--vt-radius-pill);
    background: var(--vt-bg-elevated);
    border: 1px solid var(--vt-border-subtle);
    color: var(--vt-text-secondary);
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vt-kanban-col-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vt-kanban-col-footer {
    padding: 10px 14px;
    border-top: 1px solid var(--vt-border);
    font-size: 11px;
    color: var(--vt-text-muted);
    flex-shrink: 0;
}

.vt-kanban-col-footer strong {
    color: var(--vt-text);
    font-weight: 700;
}

.vt-kanban-card {
    background: var(--vt-bg-card);
    border: 1px solid var(--vt-border-subtle);
    border-radius: var(--vt-radius-md);
    padding: 12px 14px;
    cursor: pointer;
    transition: border-color var(--vt-transition), box-shadow var(--vt-transition);
    box-shadow: var(--vt-shadow-sm);
}

.vt-kanban-card:hover {
    border-color: var(--vt-border-focus);
    box-shadow: var(--vt-shadow-md);
}

.vt-kanban-card.is-hidden { display: none; }

.vt-kanban-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.vt-kanban-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--vt-radius-sm);
    line-height: 1.2;
}

.vt-kanban-tag-running { background: rgba(59, 130, 246, 0.12); color: var(--vt-info); }
.vt-kanban-tag-completed { background: rgba(16, 185, 129, 0.12); color: var(--vt-success); }
.vt-kanban-tag-failed { background: rgba(239, 68, 68, 0.12); color: var(--vt-error); }
.vt-kanban-tag-cancelled { background: rgba(148, 163, 184, 0.16); color: var(--vt-text-muted); }

.vt-kanban-card-stat {
    font-size: 12px;
    font-weight: 700;
    color: var(--vt-text);
}

.vt-kanban-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--vt-text);
    margin-bottom: 4px;
    line-height: 1.35;
}

.vt-kanban-card-desc {
    font-size: 12px;
    color: var(--vt-text-muted);
    line-height: 1.45;
    margin-bottom: 10px;
}

.vt-kanban-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    color: var(--vt-text-muted);
    padding-top: 8px;
    border-top: 1px solid var(--vt-border-subtle);
}

.vt-kanban-card-foot span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.vt-kanban-card-foot i { font-size: 10px; opacity: 0.85; }

.vt-kanban-empty {
    text-align: center;
    padding: 32px 12px;
    font-size: 12px;
    color: var(--vt-text-muted);
}

a.vt-kanban-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.vt-kanban-tag-notice { background: rgba(239, 68, 68, 0.12); color: var(--vt-error); }
.vt-kanban-tag-tip { background: rgba(139, 92, 246, 0.12); color: #8B5CF6; }
.vt-kanban-tag-ops { background: rgba(245, 158, 11, 0.12); color: var(--vt-warning); }
.vt-kanban-tag-car { background: rgba(59, 130, 246, 0.12); color: var(--vt-info); }

.vt-kanban-tag-pending { background: rgba(245, 158, 11, 0.14); color: var(--vt-warning); }
.vt-kanban-tag-processing { background: rgba(59, 130, 246, 0.12); color: var(--vt-info); }
.vt-kanban-tag-done { background: rgba(16, 185, 129, 0.12); color: var(--vt-success); }
.vt-kanban-tag-failed { background: rgba(239, 68, 68, 0.12); color: var(--vt-error); }
.vt-kanban-tag-expired { background: rgba(148, 163, 184, 0.16); color: var(--vt-text-muted); }

.vt-kanban.is-5-col { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.vt-kanban-kpi-row.is-5-col { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.vt-worker-panel {
    background: var(--vt-bg-card);
    border: 1px solid var(--vt-border-subtle);
    border-radius: var(--vt-radius-md);
    padding: 14px 16px;
    margin-bottom: 18px;
    box-shadow: var(--vt-shadow-sm);
}

.vt-worker-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.vt-worker-panel-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--vt-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.vt-worker-panel-title i { color: var(--vt-primary); }

.vt-worker-live {
    font-size: 12px;
    color: var(--vt-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vt-worker-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--vt-success);
    animation: workerPulse 2s ease-in-out infinite;
}

@keyframes workerPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.vt-worker-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.vt-worker-table-wrap {
    max-height: min(360px, 45vh);
    overflow: auto;
    border: 1px solid var(--vt-border-subtle);
    border-radius: var(--vt-radius-md);
    background: var(--vt-bg-elevated);
}

.vt-worker-table {
    min-width: 720px;
    margin-bottom: 0;
}

.vt-worker-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--vt-bg-elevated);
    box-shadow: 0 1px 0 var(--vt-border);
}

.vt-worker-table tbody tr {
    border-left: 3px solid transparent;
}

.vt-worker-table tbody tr.is-alive { border-left-color: var(--vt-success); }
.vt-worker-table tbody tr.is-stale { border-left-color: var(--vt-warning); }
.vt-worker-table tbody tr.is-dead { border-left-color: var(--vt-error); }

.vt-worker-table tbody tr:hover td {
    background: var(--vt-primary-alpha-10);
}

.vt-worker-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.vt-worker-pulse.is-alive {
    background: var(--vt-success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.vt-worker-pulse.is-stale {
    background: var(--vt-warning);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}

.vt-worker-pulse.is-dead {
    background: var(--vt-text-muted);
    opacity: 0.55;
}

.vt-worker-slot {
    font-size: 14px;
    font-weight: 700;
    color: var(--vt-text);
    line-height: 1.25;
}

.vt-worker-host {
    font-size: 11px;
    color: var(--vt-text-muted);
    margin-top: 2px;
    line-height: 1.35;
}

.vt-worker-id-short {
    font-size: 11px;
    font-family: ui-monospace, Consolas, monospace;
    color: var(--vt-text-muted);
}

.vt-worker-msg {
    font-size: 12px;
    color: var(--vt-text-secondary);
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vt-worker-msg.is-error { color: var(--vt-error); }

.vt-worker-stat-num {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.vt-worker-stat-num.is-ok { color: var(--vt-success); }
.vt-worker-stat-num.is-err { color: var(--vt-error); }

.vt-worker-hb {
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.vt-worker-hb.is-alive { color: var(--vt-success); }
.vt-worker-hb.is-stale { color: var(--vt-warning); }
.vt-worker-hb.is-dead { color: var(--vt-text-muted); }

.vt-live-sync.is-syncing .vt-worker-live-dot {
    animation: workerPulse 0.55s ease-in-out 2;
}

.vt-worker-card {
    flex: 0 0 min(260px, 85vw);
    background: var(--vt-bg-elevated);
    border: 1px solid var(--vt-border-subtle);
    border-radius: var(--vt-radius-md);
    padding: 12px 14px;
    border-left: 3px solid var(--vt-border);
}

.vt-worker-card.is-alive { border-left-color: var(--vt-success); }
.vt-worker-card.is-stale { border-left-color: var(--vt-warning); }
.vt-worker-card.is-dead { border-left-color: var(--vt-error); }

.vt-worker-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.vt-worker-card-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--vt-text);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vt-worker-card-id {
    font-size: 11px;
    color: var(--vt-text-muted);
    font-family: ui-monospace, Consolas, monospace;
    margin-top: 2px;
}

.vt-worker-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
    font-size: 12px;
    color: var(--vt-text-secondary);
}

.vt-worker-card-stats strong { color: var(--vt-text); font-weight: 700; }
.vt-worker-card-stats .is-ok { color: var(--vt-success); }
.vt-worker-card-stats .is-err { color: var(--vt-error); }

.vt-worker-empty {
    width: 100%;
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--vt-text-muted);
    border: 1px dashed var(--vt-border);
    border-radius: var(--vt-radius-md);
}

.vt-qp-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.vt-qp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--vt-radius-pill);
    border: 1px solid var(--vt-border-subtle);
    background: var(--vt-bg-elevated);
    font-size: 12px;
    font-weight: 600;
    color: var(--vt-text-secondary);
}

.vt-qp-chip.is-done { border-color: rgba(16, 185, 129, 0.35); color: var(--vt-success); }
.vt-qp-chip.is-scheduled { border-color: rgba(245, 158, 11, 0.35); color: var(--vt-warning); }
.vt-qp-chip.is-wait { color: var(--vt-text-muted); }

.vt-worker-request-detail {
    display: grid;
    gap: 12px;
}

.vt-worker-request-detail dt {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--vt-text-muted);
    margin-bottom: 4px;
}

.vt-worker-request-detail dd {
    font-size: 14px;
    color: var(--vt-text);
    margin: 0;
}

.vt-worker-request-detail .is-error {
    color: var(--vt-error);
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.vt-dash-widgets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.vt-dash-widget .vt-card { height: 100%; }

@media (max-width: 960px) {
    .vt-dash-widgets { grid-template-columns: 1fr; }
}

/* Crawler log detail */
.vt-crawl-log-entry {
    font-size: 13px;
    line-height: 1.5;
    padding: 8px 12px;
    border-radius: var(--vt-radius-sm);
    margin-bottom: 4px;
    border-left: 3px solid transparent;
}

.vt-crawl-log-entry.info { background: rgba(59, 130, 246, 0.08); border-left-color: var(--vt-info); }
.vt-crawl-log-entry.success { background: rgba(34, 197, 94, 0.08); border-left-color: var(--vt-success); }
.vt-crawl-log-entry.warning { background: rgba(234, 179, 8, 0.08); border-left-color: var(--vt-warning); }
.vt-crawl-log-entry.error { background: rgba(239, 68, 68, 0.08); border-left-color: var(--vt-error); }
.vt-crawl-log-entry.skip { background: rgba(156, 163, 175, 0.08); border-left-color: var(--vt-text-muted); }

.vt-crawl-log-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.vt-crawl-log-time {
    color: var(--vt-text-muted);
    font-size: 11px;
    font-family: Consolas, monospace;
}

.vt-crawl-log-cat {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--vt-radius-sm);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
}

.vt-crawl-log-cat.brand { background: #7c3aed; }
.vt-crawl-log-cat.model { background: #2563eb; }
.vt-crawl-log-cat.lineup { background: #0891b2; }
.vt-crawl-log-cat.trim { background: #059669; }
.vt-crawl-log-cat.price { background: #d97706; }
.vt-crawl-log-cat.system { background: #6b7280; }

.vt-crawl-log-msg { color: var(--vt-text); font-weight: 500; }
.vt-crawl-log-ctx {
    color: var(--vt-text-muted);
    font-size: 11px;
    margin-top: 2px;
    padding-left: 4px;
    border-left: 2px solid var(--vt-border-subtle);
}

.vt-modal.vt-modal-lg {
    max-width: 900px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.vt-modal-lg .vt-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--vt-border);
    margin-bottom: 0;
}

.vt-modal-lg .vt-modal-body-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

@media (max-width: 1400px) {
    .vt-kanban.is-5-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .vt-kanban-kpi-row.is-5-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
    .vt-kanban-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vt-kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vt-kanban.is-5-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vt-kanban-kpi-row.is-5-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .vt-kanban-kpi-row { grid-template-columns: 1fr; }
    .vt-kanban { grid-template-columns: 1fr; }
    .vt-kanban.is-5-col { grid-template-columns: 1fr; }
    .vt-kanban-kpi-row.is-5-col { grid-template-columns: 1fr; }
    .vt-kanban-col { max-height: none; }
}

/* ===== User-friendly home dashboard ===== */
.vt-board-page.vt-home {
    --vt-home-account-width: 280px;
    max-width: none;
    margin: 0;
    width: 100%;
}

.vt-home-shell {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) var(--vt-qp-rail-width);
    gap: 18px 20px;
    align-items: stretch;
    width: 100%;
}

.vt-home-hero {
    grid-column: 1 / 4;
    grid-row: 1;
    min-width: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    border-radius: var(--vt-radius-lg);
    border: 1px solid var(--vt-border-subtle);
    background: linear-gradient(135deg, var(--vt-bg-card) 0%, var(--vt-primary-alpha-10) 100%);
    box-shadow: var(--vt-shadow-sm);
}

.vt-home-account-card {
    grid-column: 4;
    grid-row: 1;
    width: auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.vt-home-actions {
    display: contents;
}

.vt-home-action:nth-child(1) { grid-column: 1; grid-row: 2; }
.vt-home-action:nth-child(2) { grid-column: 2; grid-row: 2; }
.vt-home-action:nth-child(3) { grid-column: 3; grid-row: 2; }
.vt-home-action:nth-child(4) { grid-column: 4; grid-row: 2; }

.vt-home-guides {
    grid-column: 1 / 5;
    grid-row: 3;
}

.vt-home-qp-rail {
    grid-column: 5;
    grid-row: 1 / 4;
}

.vt-home-qp-rail {
    width: auto;
    position: sticky;
    top: 12px;
    max-height: calc(100vh - var(--vt-nav-height) - 32px);
    overflow-y: auto;
    align-self: start;
}

.vt-home-qp-rail .vt-qp-aside,
.vt-home-qp-rail .vt-card {
    height: auto;
    margin: 0;
}

.vt-home-qp-rail .vt-qp-aside {
    border-radius: var(--vt-radius-lg);
    box-shadow: var(--vt-shadow-sm);
}

.vt-home-account-head {
    margin-bottom: 0;
    padding: 16px 20px;
    border-bottom: 1px solid var(--vt-border);
}

.vt-home-account-head .vt-card-title i {
    color: var(--vt-primary);
}

.vt-home-account-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 20px 20px;
    gap: 16px;
}

.vt-home-account-user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.vt-home-account-avatar {
    width: 44px;
    height: 44px;
    font-size: 16px;
    flex-shrink: 0;
}

.vt-home-account-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.vt-home-account-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--vt-text);
    line-height: 1.3;
}

.vt-home-account-email {
    font-size: 12px;
    color: var(--vt-text-muted);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vt-home-account-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
}

.vt-home-account-links .vt-btn {
    justify-content: center;
}

.vt-home-hero-eyebrow {
    font-size: 12px;
    font-weight: 600;
    color: var(--vt-primary);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.vt-home-hero-text { min-width: 0; }

.vt-home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

.vt-home-action {
    min-height: 118px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 18px 16px;
    border-radius: var(--vt-radius-md);
    border: 1px solid var(--vt-border-subtle);
    background: var(--vt-bg-card);
    box-shadow: var(--vt-shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--vt-transition), box-shadow var(--vt-transition), transform var(--vt-transition);
}

.vt-home-action:hover {
    border-color: var(--vt-primary-alpha-30);
    box-shadow: var(--vt-shadow-md);
    transform: translateY(-1px);
}

.vt-home-action.is-primary {
    border-color: rgba(37, 99, 235, 0.35);
    background: linear-gradient(180deg, var(--vt-primary-alpha-10) 0%, var(--vt-bg-card) 100%);
}

.vt-home-action-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--vt-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--vt-bg-elevated);
    color: var(--vt-primary);
    font-size: 16px;
}

.vt-home-action.is-primary .vt-home-action-icon {
    background: var(--vt-gradient-primary);
    color: #fff;
    box-shadow: var(--vt-shadow-primary);
}

.vt-home-action-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--vt-text);
}

.vt-home-action-desc {
    font-size: 12px;
    color: var(--vt-text-muted);
    line-height: 1.4;
}

.vt-home-guide-count {
    font-size: 12px;
    color: var(--vt-text-muted);
    white-space: nowrap;
}

.vt-home-guides .vt-board-row {
    grid-template-columns: 76px minmax(0, 1fr) 112px;
    gap: 16px;
    align-items: start;
    padding: 16px 20px;
}

.vt-home-guides .vt-board-cat {
    width: 76px;
    box-sizing: border-box;
    text-align: center;
    padding: 5px 8px;
    margin-top: 2px;
}

.vt-home-guides .vt-board-row-body {
    min-width: 0;
}

.vt-home-guides .vt-board-row-meta {
    padding-top: 2px;
    min-width: 112px;
}

@media (max-width: 1200px) {
    .vt-home-shell {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .vt-home-hero { grid-column: 1 / 4; grid-row: 1; }
    .vt-home-account-card { grid-column: 4; grid-row: 1; }
    .vt-home-action:nth-child(1) { grid-column: 1; grid-row: 2; }
    .vt-home-action:nth-child(2) { grid-column: 2; grid-row: 2; }
    .vt-home-action:nth-child(3) { grid-column: 3; grid-row: 2; }
    .vt-home-action:nth-child(4) { grid-column: 4; grid-row: 2; }
    .vt-home-guides { grid-column: 1 / 5; grid-row: 3; }
    .vt-home-qp-rail {
        grid-column: 1 / -1;
        grid-row: 4;
        position: static;
        max-height: none;
    }
}

@media (max-width: 960px) {
    .vt-home-shell {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .vt-home-hero,
    .vt-home-account-card,
    .vt-home-action,
    .vt-home-guides,
    .vt-home-qp-rail {
        grid-column: 1;
        grid-row: auto;
    }

    .vt-home-hero { padding: 20px; }
    .vt-home-hero-actions { width: 100%; }
    .vt-home-hero-actions .vt-btn { flex: 1 1 auto; justify-content: center; }

    .vt-home-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .vt-home-actions .vt-home-action {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 480px) {
    .vt-home-actions { grid-template-columns: 1fr; }
    .vt-home-guides .vt-board-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .vt-home-guides .vt-board-cat {
        width: auto;
        justify-self: start;
    }
    .vt-home-guides .vt-board-row-meta {
        grid-column: 1;
    }
}

/* ===== Management pages (users, clients) ===== */
.vt-mgr-page {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}

.vt-mgr-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.vt-mgr-kpi {
    padding: 18px 20px;
    border-radius: var(--vt-radius-md);
    border: 1px solid var(--vt-border-subtle);
    background: var(--vt-bg-card);
    box-shadow: var(--vt-shadow-sm);
}

.vt-mgr-kpi-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--vt-text-muted);
    margin-bottom: 6px;
}

.vt-mgr-kpi-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--vt-text);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.vt-mgr-kpi-sub {
    font-size: 12px;
    color: var(--vt-text-muted);
    margin-top: 4px;
}

.vt-mgr-kpi-sub.is-success { color: var(--vt-success); }
.vt-mgr-kpi-sub.is-warning { color: var(--vt-warning); }

.vt-mgr-panel {
    padding: 0;
    overflow: hidden;
}

.vt-mgr-panel:hover {
    transform: none;
    box-shadow: var(--vt-shadow-sm);
}

.vt-mgr-panel .vt-card-header {
    padding: 16px 20px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--vt-border);
    background: var(--vt-bg-elevated);
}

.vt-mgr-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.vt-mgr-toolbar-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.vt-mgr-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vt-mgr-filter-tab {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--vt-border);
    background: var(--vt-bg-card);
    font-size: 13px;
    font-weight: 600;
    color: var(--vt-text-muted);
    cursor: pointer;
    transition: border-color var(--vt-transition), color var(--vt-transition), background var(--vt-transition);
}

.vt-mgr-filter-tab:hover {
    border-color: var(--vt-primary-alpha-30);
    color: var(--vt-primary);
}

.vt-mgr-filter-tab.active {
    background: var(--vt-primary-alpha-10);
    border-color: var(--vt-primary-alpha-30);
    color: var(--vt-primary);
}

.vt-mgr-search {
    position: relative;
    min-width: 200px;
    flex: 1;
    max-width: 280px;
}

.vt-mgr-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--vt-text-muted);
    font-size: 13px;
    pointer-events: none;
}

.vt-mgr-search .vt-input {
    padding-left: 36px;
    height: 38px;
    margin-bottom: 0;
}

.vt-mgr-count {
    font-size: 13px;
    color: var(--vt-text-muted);
    white-space: nowrap;
}

.vt-mgr-count strong {
    color: var(--vt-text);
    font-weight: 700;
}

.vt-mgr-table-wrap {
    overflow-x: auto;
}

.vt-mgr-table .vt-table {
    min-width: 720px;
    margin-bottom: 0;
}

.vt-mgr-table .vt-table th:first-child,
.vt-mgr-table .vt-table td:first-child { padding-left: 20px; }

.vt-mgr-table .vt-table th:last-child,
.vt-mgr-table .vt-table td:last-child { padding-right: 20px; }

.vt-mgr-table .vt-table tbody tr:last-child td { border-bottom: none; }

.vt-mgr-row td { vertical-align: middle; }

.vt-mgr-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.vt-mgr-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--vt-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.vt-mgr-avatar.is-square {
    border-radius: var(--vt-radius-sm);
}

.vt-mgr-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--vt-text);
    line-height: 1.3;
}

.vt-mgr-meta {
    font-size: 12px;
    color: var(--vt-text-muted);
    margin-top: 2px;
}

.vt-mgr-cell-muted {
    color: var(--vt-text-secondary);
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vt-mgr-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

.vt-mgr-actions .vt-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
}

.vt-mgr-no-results {
    padding: 36px 20px;
    text-align: center;
    color: var(--vt-text-muted);
    font-size: 14px;
    display: none;
    border-top: 1px solid var(--vt-border);
}

.vt-badge-role-0 { background: rgba(148, 163, 184, 0.14); color: var(--vt-text-muted); }
.vt-badge-role-1 { background: var(--vt-primary-alpha-10); color: var(--vt-primary); }
.vt-badge-role-2 { background: rgba(245, 158, 11, 0.14); color: var(--vt-warning); }
.vt-badge-role-3 { background: rgba(239, 68, 68, 0.12); color: var(--vt-error); }
.vt-badge-role-4 { background: rgba(139, 92, 246, 0.14); color: #7c3aed; }

.vt-modal.vt-modal-md { max-width: 540px; }
.vt-modal.vt-modal-sm { max-width: 400px; }

@media (max-width: 768px) {
    .vt-mgr-kpi-row { grid-template-columns: 1fr; }
    .vt-mgr-search { max-width: none; width: 100%; }
    .vt-mgr-toolbar { flex-direction: column; align-items: stretch; }
    .vt-mgr-toolbar-left { flex-direction: column; align-items: stretch; }
}

/* ===== Site management (webmgr) ===== */
.vt-webmgr-page {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}

.vt-webmgr-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 20px;
    align-items: start;
}

.vt-webmgr-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.vt-webmgr-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 12px;
}

.vt-webmgr-section {
    background: var(--vt-bg-card);
    border: 1px solid var(--vt-border-subtle);
    border-radius: var(--vt-radius-lg);
    box-shadow: var(--vt-shadow-sm);
    overflow: hidden;
}

.vt-webmgr-section:hover {
    transform: none;
    box-shadow: var(--vt-shadow-sm);
}

.vt-webmgr-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--vt-border);
    background: var(--vt-bg-elevated);
}

.vt-webmgr-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--vt-text);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.vt-webmgr-section-title i {
    color: var(--vt-primary);
    font-size: 14px;
}

.vt-webmgr-section-desc {
    font-size: 12px;
    color: var(--vt-text-muted);
    margin-top: 4px;
    line-height: 1.45;
}

.vt-webmgr-section-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vt-webmgr-section-body .vt-field {
    margin-bottom: 0;
}

.vt-webmgr-section-body .vt-form-row {
    gap: 16px;
}

.vt-field-hint {
    font-size: 12px;
    color: var(--vt-text-muted);
    margin-top: 6px;
    line-height: 1.45;
}

.vt-webmgr-logo-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
}

.vt-webmgr-logo-preview {
    width: 88px;
    height: 88px;
    border-radius: var(--vt-radius-md);
    border: 1px dashed var(--vt-border);
    background: var(--vt-bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.vt-webmgr-logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.vt-webmgr-logo-preview i {
    font-size: 28px;
    color: var(--vt-text-muted);
    opacity: 0.45;
}

.vt-webmgr-preview-card {
    padding: 0;
}

.vt-webmgr-preview-body {
    padding: 20px;
}

.vt-webmgr-preview-browser {
    border: 1px solid var(--vt-border-subtle);
    border-radius: var(--vt-radius-md);
    overflow: hidden;
    background: var(--vt-bg);
}

.vt-webmgr-preview-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--vt-bg-elevated);
    border-bottom: 1px solid var(--vt-border-subtle);
}

.vt-webmgr-preview-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--vt-border);
}

.vt-webmgr-preview-url {
    flex: 1;
    margin-left: 6px;
    font-size: 11px;
    color: var(--vt-text-muted);
    font-family: ui-monospace, Consolas, monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vt-webmgr-preview-content {
    padding: 20px 18px;
}

.vt-webmgr-preview-logo {
    max-height: 40px;
    max-width: 160px;
    object-fit: contain;
    margin-bottom: 12px;
}

.vt-webmgr-preview-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--vt-text);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 8px;
}

.vt-webmgr-preview-desc {
    font-size: 13px;
    color: var(--vt-text-secondary);
    line-height: 1.55;
}

.vt-webmgr-preview-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--vt-border-subtle);
    font-size: 11px;
    color: var(--vt-text-muted);
    line-height: 1.5;
}

.vt-webmgr-preview-maint {
    display: none;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: var(--vt-radius-sm);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.28);
    font-size: 12px;
    color: var(--vt-warning);
    line-height: 1.45;
}

.vt-webmgr-preview-maint.is-visible {
    display: block;
}

.vt-webmgr-status-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vt-webmgr-status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: var(--vt-text-secondary);
    padding: 8px 10px;
    border-radius: var(--vt-radius-sm);
    background: var(--vt-bg-elevated);
}

.vt-webmgr-status-item strong {
    color: var(--vt-text);
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
    max-width: 58%;
}

.vt-webmgr-save-bar {
    padding: 16px 18px;
    border-radius: var(--vt-radius-lg);
    border: 1px solid var(--vt-border-subtle);
    background: var(--vt-bg-card);
    box-shadow: var(--vt-shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vt-webmgr-save-bar .vt-btn {
    width: 100%;
    justify-content: center;
}

.vt-webmgr-save-note {
    font-size: 12px;
    color: var(--vt-text-muted);
    text-align: center;
    line-height: 1.45;
}

.vt-webmgr-maint-box {
    padding: 14px;
    border-radius: var(--vt-radius-md);
    border: 1px solid var(--vt-border-subtle);
    background: var(--vt-bg-elevated);
}

@media (max-width: 1024px) {
    .vt-webmgr-layout {
        grid-template-columns: 1fr;
    }

    .vt-webmgr-aside {
        position: static;
    }

    .vt-webmgr-logo-row {
        grid-template-columns: 1fr;
    }

    .vt-webmgr-logo-preview {
        width: 100%;
        height: 72px;
    }
}
