/* Q-CENTER DESIGN SYSTEM  Apple Liquid Glass */
:root {
    /* Primary Colors */
    --qc-primary: #0071e3;
    --qc-primary-dark: #0058b9;
    --qc-primary-light: #2997ff;
    --qc-primary-hover: #0062cc;
    --qc-primary-bg: rgba(0, 113, 227, 0.06);
    --qc-primary-tint: rgba(0, 113, 227, 0.10);

    /* Accent Colors */
    --qc-accent: #bf5af2;
    --qc-accent-dark: #9d38d5;
    --qc-accent-light: #da8fff;

    /* Liquid Glass Tints */
    --qc-glass-bg: rgba(255, 255, 255, 0.72);
    --qc-glass-bg-heavy: rgba(255, 255, 255, 0.88);
    --qc-glass-border: rgba(255, 255, 255, 0.5);
    --qc-glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 0 0 0.5px rgba(0, 0, 0, 0.04), inset 0 0.5px 0 rgba(255, 255, 255, 0.6);
    --qc-glass-blur: saturate(180%) blur(20px);

    /* Semantic Colors */
    --qc-secondary: #6e6e73;
    --qc-secondary-dark: #515154;
    --qc-success: #30d158;
    --qc-success-dark: #248a3d;
    --qc-success-bg: rgba(48, 209, 88, 0.10);
    --qc-danger: #ff453a;
    --qc-danger-dark: #d70015;
    --qc-danger-bg: rgba(255, 69, 58, 0.10);
    --qc-warning: #ff9f0a;
    --qc-warning-bg: rgba(255, 159, 10, 0.10);
    --qc-info: #64d2ff;
    --qc-info-bg: rgba(100, 210, 255, 0.10);

    /* Gray Scale  Apple SF */
    --qc-gray-50: #fbfbfd;
    --qc-gray-100: #f5f5f7;
    --qc-gray-200: #e8e8ed;
    --qc-gray-300: #d2d2d7;
    --qc-gray-400: #aeaeb2;
    --qc-gray-500: #86868b;
    --qc-gray-600: #6e6e73;
    --qc-gray-700: #48484a;
    --qc-gray-800: #2c2c2e;
    --qc-gray-900: #1d1d1f;

    /* Border & Radius */
    --qc-border-radius: 12px;
    --qc-border-radius-sm: 8px;
    --qc-border-radius-lg: 16px;
    --qc-border-radius-xl: 20px;
    --qc-border-radius-2xl: 28px;

    /* Shadows  Subtle & Layered */
    --qc-shadow-xs: 0 0.5px 1px rgba(0, 0, 0, 0.04);
    --qc-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 0.5px 1px rgba(0, 0, 0, 0.03);
    --qc-shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    --qc-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    --qc-shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.10), 0 4px 14px rgba(0, 0, 0, 0.04);
    --qc-shadow-colored: 0 8px 24px rgba(0, 113, 227, 0.12);

    /* Typography */
    --qc-font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    --qc-font-size-xs: 11px;
    --qc-font-size-sm: 13px;
    --qc-font-size-base: 15px;
    --qc-font-size-lg: 17px;
    --qc-font-size-xl: 20px;
    --qc-font-size-2xl: 28px;
    --qc-font-size-3xl: 34px;

    /* Transitions  Apple-style easing */
    --qc-transition-fast: 0.15s cubic-bezier(0.2, 0, 0, 1);
    --qc-transition-base: 0.25s cubic-bezier(0.2, 0, 0, 1);
    --qc-transition-slow: 0.4s cubic-bezier(0.2, 0, 0, 1);
    --qc-transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Spacing  4pt grid */
    --qc-space-xs: 4px;
    --qc-space-sm: 8px;
    --qc-space-md: 12px;
    --qc-space-lg: 16px;
    --qc-space-xl: 24px;
    --qc-space-2xl: 32px;
    --qc-space-3xl: 48px;
}

/* ==================== ANIMATIONS & KEYFRAMES ==================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes ripple {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ==================== BASE STYLES ==================== */
*,
*::before,
*::after { 
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    min-height: 100%;
    background: #e6eaf2;
}

body {
    margin: 0;
    font-family: var(--qc-font-family);
    font-size: var(--qc-font-size-base);
    color: var(--qc-gray-800);
    background: transparent;
    line-height: 1.47;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1;
}

::selection {
    background: rgba(0, 113, 227, 0.18);
    color: var(--qc-gray-900);
}

.qc-body {
    min-height: 100vh;
    background: transparent;
}

.qc-shell {
    --qc-shell-background:
        radial-gradient(ellipse 95% 62% at 14% 4%, rgba(0, 113, 227, 0.13), transparent 64%),
        radial-gradient(ellipse 76% 54% at 91% 16%, rgba(191, 90, 242, 0.10), transparent 63%),
        radial-gradient(ellipse 92% 58% at 52% 105%, rgba(52, 199, 89, 0.06), transparent 65%),
        linear-gradient(180deg, #eceef3 0%, #e2e5ed 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
    background: transparent;
}

.qc-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: var(--qc-shell-background);
}

/* ==================== UTILITY ANIMATIONS ==================== */
.qc-projects-global-search {
    min-width: 360px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--qc-space-sm);
}

.qc-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--qc-glass-bg-heavy);
    backdrop-filter: var(--qc-glass-blur);
    -webkit-backdrop-filter: var(--qc-glass-blur);
    border: 0.5px solid var(--qc-glass-border);
    border-radius: var(--qc-border-radius-lg);
    box-shadow: var(--qc-shadow-xl);
    z-index: 50;
    margin-top: var(--qc-space-xs);
    max-height: 320px;
    overflow: auto;
    animation: fadeInUp var(--qc-transition-fast);
}

.qc-search-suggestion-item {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: var(--qc-border-radius-sm);
    margin: 2px 4px;
    width: calc(100% - 8px);
    transition: all var(--qc-transition-fast);
    font-size: var(--qc-font-size-sm);
}

.qc-search-suggestion-item:hover {
    background: var(--qc-primary);
    color: #fff;
}

/* Professional Search Hit Highlight  Apple-level */
.qc-search-hit {
    position: relative;
    z-index: 1;
    animation: qcSearchHitReveal 0.6s cubic-bezier(0.2, 0, 0, 1) forwards;
}

.qc-search-hit::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: calc(var(--qc-border-radius-lg) + 3px);
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.08), rgba(191, 90, 242, 0.06));
    border: 1.5px solid var(--qc-primary-light);
    box-shadow:
        0 0 0 4px rgba(0, 113, 227, 0.06),
        0 8px 32px rgba(0, 113, 227, 0.10),
        inset 0 0.5px 0 rgba(255, 255, 255, 0.8);
    z-index: -1;
    animation: qcSearchHitGlow 2.4s ease-in-out forwards;
    pointer-events: none;
}

.qc-search-hit::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    height: 3px;
    background: linear-gradient(90deg, var(--qc-primary), var(--qc-accent), var(--qc-primary-light));
    border-radius: calc(var(--qc-border-radius-lg) + 3px) calc(var(--qc-border-radius-lg) + 3px) 0 0;
    animation: qcSearchHitBar 0.8s cubic-bezier(0.2, 0, 0, 1) forwards;
    pointer-events: none;
}

@keyframes qcSearchHitReveal {
    0%   { transform: scale(0.98); opacity: 0.7; }
    50%  { transform: scale(1.005); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes qcSearchHitGlow {
    0%   { box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12), 0 8px 32px rgba(0, 113, 227, 0.15), inset 0 0.5px 0 rgba(255, 255, 255, 0.8); }
    50%  { box-shadow: 0 0 0 6px rgba(0, 113, 227, 0.06), 0 8px 32px rgba(0, 113, 227, 0.08), inset 0 0.5px 0 rgba(255, 255, 255, 0.8); }
    100% { box-shadow: 0 0 0 0px rgba(0, 113, 227, 0), 0 4px 14px rgba(0, 0, 0, 0.06), inset 0 0.5px 0 rgba(255, 255, 255, 0.4); border-color: transparent; }
}

@keyframes qcSearchHitBar {
    0%   { transform: scaleX(0); opacity: 1; }
    100% { transform: scaleX(1); opacity: 0; }
}

.qc-project-search-loading-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--qc-transition-base), visibility 0s linear 0.25s;
    z-index: 3000;
}

.qc-project-search-loading-overlay.show {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.qc-project-search-loading-card {
    width: min(380px, calc(100vw - 48px));
    background: var(--qc-glass-bg-heavy);
    backdrop-filter: saturate(200%) blur(40px);
    -webkit-backdrop-filter: saturate(200%) blur(40px);
    border: 0.5px solid var(--qc-glass-border);
    border-radius: var(--qc-border-radius-xl);
    box-shadow: var(--qc-shadow-xl), inset 0 0.5px 0 rgba(255, 255, 255, 0.6);
    padding: 28px 24px 20px;
    text-align: center;
    animation: scaleIn var(--qc-transition-spring);
}

.qc-project-search-loading-animation {
    width: 170px;
    height: 170px;
    margin: 0 auto 12px;
}

.qc-project-search-loading-title {
    font-size: var(--qc-font-size-lg);
    font-weight: 600;
    color: var(--qc-gray-900);
    letter-spacing: -0.01em;
}

.qc-project-search-loading-subtitle {
    margin-top: 6px;
    font-size: var(--qc-font-size-sm);
    color: var(--qc-gray-500);
}

.qc-add-title-icon,
.qc-add-section-icon {
    font-family: 'Segoe MDL2 Assets', 'Segoe UI Symbol', sans-serif;
    margin-right: var(--qc-space-sm);
    color: var(--qc-primary);
}

.qc-add-title-icon {
    font-size: 20px;
    vertical-align: middle;
}

.qc-field-icon {
    font-family: 'Segoe MDL2 Assets', 'Segoe UI Symbol', sans-serif;
    font-size: 13px;
    color: var(--qc-primary);
    margin-right: var(--qc-space-sm);
    vertical-align: middle;
}

/* (Old header/search/nav CSS removed  see qcenter-navbar.css) */

/* ==================== NEWS ==================== */

/* --- Page --- */
.qc-news-page {
    padding: 16px 20px 20px;
}

/* --- Hero Header --- */
.qc-news-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.qc-news-hero-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qc-news-hero-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--qc-primary) 0%, var(--qc-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 113, 227, 0.20), inset 0 0.5px 0 rgba(255, 255, 255, 0.25);
}

.qc-news-hero-icon svg { width: 18px; height: 18px; }

.qc-news-hero .qc-page-title { font-size: 17px; letter-spacing: -0.02em; }
.qc-news-hero .qc-page-subtitle { font-size: 12px; }

.qc-news-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 12px;
    padding: 5px 14px;
    height: 30px;
}

/* --- Stats Bar --- */
.qc-news-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    background: var(--qc-glass-bg);
    backdrop-filter: var(--qc-glass-blur);
    -webkit-backdrop-filter: var(--qc-glass-blur);
    border: 0.5px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--qc-border-radius);
    margin-bottom: 14px;
    box-shadow: var(--qc-shadow-xs), inset 0 0.5px 0 rgba(255, 255, 255, 0.5);
}

.qc-news-stat {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.qc-news-stat-value {
    font-size: 17px;
    font-weight: 700;
    color: var(--qc-gray-900);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.qc-news-stat-value--active {
    color: var(--qc-success-dark);
}

.qc-news-stat-value--global {
    color: var(--qc-primary);
}

.qc-news-stat-label {
    font-size: 11px;
    color: var(--qc-gray-500);
    font-weight: 500;
}

.qc-news-stat-divider {
    width: 1px;
    height: 16px;
    background: var(--qc-gray-200);
    flex-shrink: 0;
}

/* --- Empty State --- */
.qc-news-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 16px;
    gap: 8px;
}

.qc-news-empty-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: var(--qc-glass-bg);
    backdrop-filter: var(--qc-glass-blur);
    -webkit-backdrop-filter: var(--qc-glass-blur);
    border: 0.5px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--qc-gray-400);
    box-shadow: var(--qc-shadow-sm), inset 0 0.5px 0 rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.qc-news-empty-icon svg { width: 32px; height: 32px; }

.qc-news-empty-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--qc-gray-800);
}

.qc-news-empty-text {
    font-size: 12px;
    color: var(--qc-gray-500);
    max-width: 300px;
    line-height: 1.5;
}

/* --- Grid --- */
.qc-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
}

/* --- Card --- */
.qc-news-card {
    position: relative;
    border: 0.5px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--qc-border-radius-lg);
    background: var(--qc-glass-bg-heavy);
    backdrop-filter: var(--qc-glass-blur);
    -webkit-backdrop-filter: var(--qc-glass-blur);
    box-shadow: var(--qc-shadow-sm), inset 0 0.5px 0 rgba(255, 255, 255, 0.6);
    overflow: hidden;
    transition: box-shadow var(--qc-transition-base), transform var(--qc-transition-base), border-color var(--qc-transition-base);
    animation: fadeInUp 0.45s cubic-bezier(0.2, 0, 0, 1) both;
}

.qc-news-card:hover {
    box-shadow: var(--qc-shadow-md), inset 0 0.5px 0 rgba(255, 255, 255, 0.6), 0 0 0 0.5px rgba(0, 113, 227, 0.08);
    transform: translateY(-2px);
    border-color: rgba(0, 113, 227, 0.15);
}

/* Accent Stripe */
.qc-news-card-accent {
    height: 2.5px;
    background: linear-gradient(90deg, var(--qc-primary) 0%, var(--qc-accent) 100%);
    flex-shrink: 0;
}

.qc-news-card-accent--inactive {
    background: linear-gradient(90deg, var(--qc-gray-300) 0%, var(--qc-gray-400) 100%);
}

.qc-news-card-inner {
    display: flex;
    flex-direction: column;
}

/* Card Header */
.qc-news-card-header {
    padding: 10px 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
}

.qc-news-card-header-left {
    flex: 1;
    min-width: 0;
}

.qc-news-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--qc-gray-900);
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Status Badge */
.qc-news-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px 2px 6px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.01em;
}

.qc-news-status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.qc-news-status--active {
    background: var(--qc-success-bg);
    color: var(--qc-success-dark);
}

.qc-news-status--active .qc-news-status-dot {
    background: var(--qc-success);
    box-shadow: 0 0 6px rgba(48, 209, 88, 0.5);
}

.qc-news-status--inactive {
    background: rgba(174, 174, 178, 0.12);
    color: var(--qc-gray-500);
}

.qc-news-status--inactive .qc-news-status-dot {
    background: var(--qc-gray-400);
}

/* Meta */
.qc-news-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--qc-gray-500);
    font-weight: 500;
}

.qc-news-meta svg { width: 11px; height: 11px; }

.qc-news-meta svg {
    opacity: 0.6;
    flex-shrink: 0;
}

.qc-news-meta-separator {
    opacity: 0.4;
    margin: 0 1px;
}

/* Card Body */
.qc-news-card-body {
    padding: 8px 12px;
}

.qc-news-summary {
    font-size: 12px;
    color: var(--qc-gray-600);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer */
.qc-news-card-footer {
    padding: 0 12px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

/* Tags */
.qc-news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.qc-news-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 5px;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.qc-news-tag--global {
    background: var(--qc-primary-bg);
    color: var(--qc-primary);
}

.qc-news-tag--global svg {
    opacity: 0.7;
}

.qc-news-tag--dept {
    background: rgba(100, 210, 255, 0.12);
    color: #0a84ff;
}

.qc-news-tag--perm {
    background: rgba(191, 90, 242, 0.10);
    color: var(--qc-accent-dark);
}

.qc-news-tag--more {
    background: var(--qc-gray-100);
    color: var(--qc-gray-500);
}

.qc-news-tag--attach {
    background: rgba(255, 159, 10, 0.10);
    color: #c77c02;
}

.qc-news-tag--attach svg {
    opacity: 0.7;
}

/* Action Buttons */
.qc-news-actions {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}

.qc-news-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 26px;
    padding: 0 7px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--qc-gray-600);
    background: transparent;
    border: 0.5px solid transparent;
    cursor: pointer;
    transition: all var(--qc-transition-fast);
    text-decoration: none;
    line-height: 1;
}

.qc-news-action-btn svg { width: 12px; height: 12px; }

.qc-news-action-btn:hover {
    background: var(--qc-gray-100);
    border-color: var(--qc-gray-200);
    color: var(--qc-gray-800);
}

.qc-news-action-btn--primary {
    color: var(--qc-primary);
    font-weight: 600;
}

.qc-news-action-btn--primary:hover {
    background: var(--qc-primary-bg);
    border-color: rgba(0, 113, 227, 0.12);
    color: var(--qc-primary-dark);
}

.qc-news-action-btn--danger:hover {
    background: var(--qc-danger-bg);
    border-color: rgba(255, 69, 58, 0.12);
    color: var(--qc-danger);
}

.qc-news-content {
    font-size: 13px;
    line-height: 1.6;
    color: var(--qc-gray-700);
}

.qc-news-content p { margin: 0 0 10px 0; }
.qc-news-content h1,
.qc-news-content h2,
.qc-news-content h3,
.qc-news-content h4 { color: var(--qc-gray-800); margin: 14px 0 8px; }

.qc-news-content blockquote {
    margin: 10px 0;
    padding: 12px 16px;
    border-left: 3px solid var(--qc-primary);
    background: var(--qc-gray-50);
    color: var(--qc-gray-600);
    border-radius: 0 var(--qc-border-radius-sm) var(--qc-border-radius-sm) 0;
}

.qc-news-content details {
    margin: 10px 0;
    border: 0.5px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--qc-border-radius-sm);
    background: var(--qc-gray-50);
    overflow: hidden;
}

.qc-news-content details > summary {
    padding: 10px 14px;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    color: var(--qc-primary);
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.04);
}

.qc-news-content details > div,
.qc-news-content details > p {
    padding: 10px;
}

/* (Old user menu CSS removed  see qcenter-navbar.css) */

/* ==================== CONTENT AREAS ==================== */
.qc-shell-content {
    flex: 1;
    padding: var(--qc-space-2xl) var(--qc-space-xl);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    min-height: 0;
    background: transparent;
    isolation: isolate;
}

.qc-shell-content:has(.qc-page-fullheight) {
    padding: 0;
    max-width: none;
}

.qc-shell-footer {
    margin: 0 auto;
    width: min(1400px, calc(100% - 32px));
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    color: var(--qc-gray-500);
    text-align: center;
    padding: 16px var(--qc-space-xl) 20px;
    font-size: var(--qc-font-size-xs);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.01em;
}

.qc-footer-sep {
    opacity: 0.4;
}

.qc-page {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: var(--qc-space-2xl);
    box-shadow: none;
    transition: none;
}

.qc-page:hover {
    box-shadow: none;
}

.qc-page-fullheight {
    border: none;
    border-radius: 0;
    padding: 0;
    height: 100%;
}

.qc-page-header {
    margin-bottom: var(--qc-space-2xl);
}

.qc-page-title {
    font-size: var(--qc-font-size-2xl);
    font-weight: 700;
    color: var(--qc-gray-900);
    margin-bottom: 6px;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.qc-page-subtitle {
    color: var(--qc-gray-500);
    font-size: var(--qc-font-size-base);
    line-height: 1.47;
}

.qc-info-panel {
    display: flex;
    align-items: center;
    gap: var(--qc-space-lg);
    background: var(--qc-glass-bg-heavy);
    backdrop-filter: var(--qc-glass-blur);
    -webkit-backdrop-filter: var(--qc-glass-blur);
    border: 0.5px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--qc-border-radius-xl);
    padding: var(--qc-space-xl);
    margin-bottom: var(--qc-space-xl);
    box-shadow: var(--qc-shadow-sm), inset 0 0.5px 0 rgba(255, 255, 255, 0.6);
    transition: box-shadow var(--qc-transition-base), transform var(--qc-transition-base);
}

.qc-info-panel:hover {
    box-shadow: var(--qc-shadow-md), inset 0 0.5px 0 rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.qc-info-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--qc-primary) 0%, var(--qc-accent) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 19px;
}

.qc-info-name {
    font-weight: 600;
    font-size: 19px;
    color: var(--qc-gray-900);
    letter-spacing: -0.01em;
}

.qc-info-meta {
    color: var(--qc-gray-500);
    font-size: var(--qc-font-size-sm);
}

.qc-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--qc-space-lg);
}

.qc-tile {
    background: var(--qc-glass-bg-heavy);
    backdrop-filter: var(--qc-glass-blur);
    -webkit-backdrop-filter: var(--qc-glass-blur);
    border: 0.5px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--qc-border-radius-lg);
    padding: var(--qc-space-xl);
    box-shadow: var(--qc-shadow-sm), inset 0 0.5px 0 rgba(255, 255, 255, 0.5);
    transition: box-shadow var(--qc-transition-base), transform var(--qc-transition-base), border-color var(--qc-transition-base);
}

.qc-tile:hover {
    box-shadow: var(--qc-shadow-md), inset 0 0.5px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    border-color: rgba(0, 113, 227, 0.15);
}

.qc-tile-label { 
    font-size: var(--qc-font-size-xs); 
    color: var(--qc-gray-500); 
    margin-bottom: var(--qc-space-sm);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.qc-tile-value-sm { 
    font-size: var(--qc-font-size-2xl); 
    font-weight: 700; 
    color: var(--qc-gray-900);
    letter-spacing: -0.02em;
}

.qc-status.online { 
    color: var(--qc-success); 
    font-weight: 600;
}

.qc-status-dot.online { 
    width: 8px; 
    height: 8px; 
    border-radius: 50%; 
    background: var(--qc-success); 
    display: inline-block; 
    margin-right: 8px;
    animation: pulse 2s infinite;
}

/* ==================== FORMS ==================== */
.qc-form-group { 
    margin-bottom: 18px;
}

.qc-label { 
    display: block; 
    margin-bottom: 8px; 
    color: var(--qc-gray-700); 
    font-size: var(--qc-font-size-sm);
    font-weight: 600;
    letter-spacing: 0.2px;
}

.qc-input {
    width: 100%;
    border: 1px solid var(--qc-gray-300);
    border-radius: var(--qc-border-radius);
    padding: 11px 14px;
    font-size: var(--qc-font-size-base);
    transition: border-color var(--qc-transition-fast), box-shadow var(--qc-transition-fast), background var(--qc-transition-fast);
    background: rgba(255, 255, 255, 0.8);
    font-family: inherit;
    line-height: 1.4;
    color: var(--qc-gray-900);
}

.qc-input:hover {
    border-color: var(--qc-gray-400);
    background: #fff;
}

.qc-input:focus {
    outline: none;
    border-color: var(--qc-primary);
    box-shadow: 0 0 0 3.5px rgba(0, 113, 227, 0.12);
    background: #fff;
}

.qc-input-group { 
    display: flex; 
    gap: 10px;
}

.qc-check { 
    display: flex; 
    align-items: center; 
    gap: 10px;
    cursor: pointer;
    transition: all var(--qc-transition-fast);
}

.qc-check:hover {
    color: var(--qc-primary);
}

.qc-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--qc-primary);
}

.qc-check-label { 
    color: var(--qc-gray-700);
    font-size: var(--qc-font-size-sm);
    font-weight: 500;
}

.qc-required { 
    color: var(--qc-danger);
}

.qc-field-hint { 
    font-size: var(--qc-font-size-xs); 
    color: var(--qc-gray-500); 
    margin-top: 6px;
}

.qc-divider { 
    border: 0; 
    border-top: 1px solid var(--qc-gray-200); 
    margin: 24px 0;
}

/* ==================== BUTTONS ==================== */
.qc-btn {
    border: 0;
    border-radius: var(--qc-border-radius);
    padding: 10px 20px;
    font-size: var(--qc-font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--qc-transition-fast);
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qc-btn-primary {
    background: var(--qc-primary);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 113, 227, 0.20);
}

.qc-btn-primary:hover {
    background: var(--qc-primary-hover);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
    transform: translateY(-0.5px);
}

.qc-btn-primary:active {
    background: var(--qc-primary-dark);
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 113, 227, 0.15);
}

.qc-btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--qc-gray-800);
    backdrop-filter: blur(4px);
}

.qc-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
}

.qc-btn-danger {
    background: var(--qc-danger);
    color: #fff;
    box-shadow: 0 1px 3px rgba(255, 69, 58, 0.20);
}

.qc-btn-danger:hover {
    background: var(--qc-danger-dark);
    box-shadow: 0 4px 12px rgba(255, 69, 58, 0.25);
    transform: translateY(-0.5px);
}

.qc-btn-block { 
    width: 100%;
}

.qc-btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.qc-action-icon {
    font-family: 'Segoe MDL2 Assets', 'Segoe UI Symbol', sans-serif;
    font-size: 14px;
    line-height: 1;
    transition: transform var(--qc-transition-fast);
}

.qc-btn:hover .qc-action-icon {
    transform: scale(1.1);
}

/* ==================== ALERTS ==================== */
.qc-alert {
    padding: 14px 18px;
    border-radius: var(--qc-border-radius);
    margin-bottom: var(--qc-space-lg);
    font-size: var(--qc-font-size-sm);
    font-weight: 500;
    animation: fadeIn var(--qc-transition-fast);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 0.5px solid;
}

.qc-alert-error {
    background: rgba(255, 69, 58, 0.08);
    color: var(--qc-danger-dark);
    border-color: rgba(255, 69, 58, 0.15);
}

.qc-alert-success {
    background: rgba(48, 209, 88, 0.08);
    color: var(--qc-success-dark);
    border-color: rgba(48, 209, 88, 0.15);
}

.qc-conn-result { 
    display: none; 
    margin-top: 10px; 
    padding: 10px 12px; 
    border-radius: var(--qc-border-radius); 
    font-size: var(--qc-font-size-sm);
    border-left: 4px solid;
    animation: fadeIn var(--qc-transition-base);
}

.qc-conn-result.show { 
    display: block;
}

.qc-conn-result.ok { 
    background: rgba(16, 185, 129, 0.1); 
    border-color: var(--qc-success); 
    color: var(--qc-success-dark);
}

.qc-conn-result.fail { 
    background: rgba(239, 68, 68, 0.1); 
    border-color: var(--qc-danger); 
    color: var(--qc-danger-dark);
}

/* Add User Form */
.qc-page-add-user {
    max-width: 1200px;
    margin: 0 auto;
}

.qc-add-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.qc-add-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.qc-form-grid {
    display: grid;
    gap: 14px;
}

.qc-form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qc-form-group-wide {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 14px;
    background: linear-gradient(135deg, var(--qc-gray-50) 0%, #fff 100%);
    border: 1px solid var(--qc-gray-200);
    border-radius: var(--qc-border-radius);
}

.qc-form-group-wide .qc-check {
    flex: 1;
    min-width: 160px;
    padding: 9px 12px;
    background: #fff;
    border: 1px solid var(--qc-gray-200);
    border-radius: var(--qc-border-radius);
    transition: all var(--qc-transition-fast);
    position: relative;
}

.qc-form-group-wide .qc-check::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--qc-border-radius);
    background: linear-gradient(135deg, var(--qc-primary-bg) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--qc-transition-fast);
    z-index: -1;
}

.qc-form-group-wide .qc-check:hover::after {
    opacity: 1;
}

.qc-form-group-wide .qc-check:hover {
    border-color: var(--qc-primary);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.qc-form-group-wide .qc-check input[type="checkbox"]:checked + .qc-check-label {
    color: var(--qc-primary);
    font-weight: 600;
}

.qc-check-label .qc-action-icon {
    margin-right: 4px;
    opacity: 0.7;
    transition: all var(--qc-transition-fast);
}

.qc-check:hover .qc-check-label .qc-action-icon {
    opacity: 1;
    transform: scale(1.1);
}

.qc-field-error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--qc-danger);
}

.qc-form-actions {
    display: flex;
    gap: 10px;
}

/* Anon pages */
.qc-anon-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a1628 0%, #0d2847 30%, #1a1040 60%, #0f0c29 100%);
    padding: var(--qc-space-xl);
    position: relative;
    overflow: hidden;
}

.qc-anon-body::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    left: -200px;
    animation: pulse 4s infinite;
}

.qc-anon-body::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -150px;
    right: -150px;
    animation: pulse 3s infinite 1s;
}

.qc-anon-container { 
    width: 100%; 
    max-width: 460px;
    position: relative;
    z-index: 1;
    animation: fadeInUp var(--qc-transition-slow);
}

.qc-brand-header { 
    text-align: center; 
    margin-bottom: 28px;
}

.qc-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 12px 22px;
    border-radius: var(--qc-border-radius-lg);
    transition: all var(--qc-transition-base);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.qc-brand-logo:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.qc-brand-logo .qc-logo-icon { 
    width: 42px; 
    height: 42px; 
    font-size: 22px;
}

.qc-brand-logo .qc-logo-text { 
    color: #fff; 
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.qc-anon-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(40px);
    -webkit-backdrop-filter: saturate(180%) blur(40px);
    border-radius: var(--qc-border-radius-xl);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.22),
        0 8px 24px rgba(0, 0, 0, 0.10),
        inset 0 0.5px 0 rgba(255, 255, 255, 0.7);
    padding: var(--qc-space-2xl);
    border: 0.5px solid rgba(255, 255, 255, 0.45);
}

.qc-card-header { 
    margin-bottom: 24px;
}

.qc-card-title { 
    margin: 0 0 10px; 
    font-size: var(--qc-font-size-2xl); 
    color: var(--qc-gray-900);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.qc-card-subtitle { 
    margin: 0; 
    color: var(--qc-gray-500);
    line-height: 1.6;
}

.qc-anon-card-footer { 
    margin-top: 20px; 
    padding-top: 16px; 
    border-top: 1px solid var(--qc-gray-200); 
    text-align: center;
}

.qc-anon-card-footer a { 
    color: var(--qc-primary); 
    text-decoration: none; 
    font-size: var(--qc-font-size-sm);
    font-weight: 600;
    transition: all var(--qc-transition-fast);
}

.qc-anon-card-footer a:hover {
    color: var(--qc-primary-dark);
    text-decoration: underline;
}

.qc-anon-footer { 
    margin-top: 20px; 
    text-align: center; 
    color: rgba(255,255,255,0.9); 
    font-size: var(--qc-font-size-sm);
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* (Old responsive search rule removed) */

/* ========== PERSONAL AKTEN (MASTER-DETAIL) ========== */

.qc-page-fullheight {
    height: 100%;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

.qc-master-detail {
    display: flex;
    height: 100%;
    background: var(--qc-gray-100);
}

/* ===== MASTER PANEL (Links) ===== */
.qc-master-panel {
    width: 380px;
    flex-shrink: 0;
    background: #fff;
    border-right: 0.5px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.qc-master-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--qc-gray-200);
}

.qc-master-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--qc-gray-900);
    margin: 0;
}

.qc-master-count {
    background: var(--qc-primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.qc-master-search {
    position: relative;
    padding: 12px 16px;
    border-bottom: 1px solid var(--qc-gray-200);
}

.qc-master-search .qc-search-icon {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    font-size: 14px;
    pointer-events: none;
}

.qc-master-search-input {
    width: 100%;
    padding: 10px 12px 10px 32px;
    border: 1px solid var(--qc-gray-300);
    border-radius: 8px;
    font-size: 13px;
    background: var(--qc-gray-50);
    transition: all 0.2s ease;
}

.qc-master-search-input:focus {
    outline: none;
    border-color: var(--qc-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(10,110,209,0.08);
}

.qc-master-filters {
    padding: 12px 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    border-bottom: 1px solid var(--qc-gray-200);
    background: var(--qc-gray-50);
}

.qc-master-filter {
    width: 100%;
    min-width: 0;
    padding: 8px 28px 8px 10px;
    border: 1px solid var(--qc-gray-300);
    border-radius: 6px;
    background: #fff;
    font-size: 12px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%236a6a6a' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.qc-master-filter:focus {
    outline: none;
    border-color: var(--qc-primary);
}

.qc-master-filters #filterStatus {
    grid-column: 1 / -1;
}

.qc-master-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.qc-user-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: background var(--qc-transition-fast);
    position: relative;
}

.qc-user-item:hover {
    background: var(--qc-primary-bg);
}

.qc-user-item.active {
    background: var(--qc-primary-bg);
}

.qc-user-item-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--qc-primary) 0%, var(--qc-accent) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    flex-shrink: 0;
}

.qc-avatar-locked {
    background: linear-gradient(135deg, var(--qc-gray-400) 0%, var(--qc-gray-500) 100%) !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2) !important;
}

.qc-user-item-info {
    flex: 1;
    min-width: 0;
}

.qc-user-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--qc-gray-900);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qc-user-item-meta {
    font-size: 11px;
    color: var(--qc-gray-500);
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.qc-dot {
    color: var(--qc-gray-400);
}

.qc-user-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.qc-status-active {
    background: var(--qc-success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: pulse 2s infinite;
}

.qc-status-locked {
    background: var(--qc-danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* ===== DETAIL PANEL (Rechts) ===== */
.qc-detail-panel {
    flex: 1;
    background: var(--qc-gray-100);
    overflow: hidden;
    position: relative;
}

.qc-detail-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--qc-gray-500);
}

.qc-placeholder-icon {
    font-size: 80px;
    opacity: 0.3;
    margin-bottom: 20px;
}

.qc-placeholder-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--qc-gray-700);
    margin-bottom: 8px;
}

.qc-placeholder-text {
    font-size: 14px;
    color: var(--qc-gray-500);
}

.qc-detail-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
}

.qc-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--qc-space-xl) var(--qc-space-2xl);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.qc-detail-avatar-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.qc-detail-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--qc-primary) 0%, var(--qc-accent) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 28px;
    flex-shrink: 0;
}

.qc-detail-name {
    font-size: var(--qc-font-size-2xl);
    font-weight: 700;
    color: var(--qc-gray-900);
    margin: 0 0 6px;
    letter-spacing: -0.03em;
}

.qc-detail-subtitle {
    font-size: 14px;
    color: var(--qc-gray-500);
    display: flex;
    align-items: center;
    gap: 8px;
}

.qc-detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qc-btn-edit {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qc-detail-badge {
    padding: 7px 16px;
    border-radius: 20px;
    font-size: var(--qc-font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: var(--qc-shadow-xs);
    transition: all var(--qc-transition-fast);
}

.qc-detail-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--qc-shadow-sm);
}

.qc-detail-badge.qc-status-active {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.15), rgba(48, 209, 88, 0.08));
    color: #065f46;
    border: 0.5px solid rgba(48, 209, 88, 0.25);
}

.qc-detail-badge.qc-status-locked {
    background: linear-gradient(135deg, rgba(255, 69, 58, 0.12), rgba(255, 69, 58, 0.06));
    color: #991b1b;
    border: 0.5px solid rgba(255, 69, 58, 0.25);
}

.qc-detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

/* Sections */
.qc-section {
    margin-bottom: 32px;
}

.qc-section:last-child {
    margin-bottom: 0;
}

.qc-section-title {
    font-size: var(--qc-font-size-lg);
    font-weight: 700;
    color: var(--qc-gray-900);
    margin: 0 0 var(--qc-space-lg);
    padding-bottom: var(--qc-space-sm);
    border-bottom: 2px solid var(--qc-gray-200);
}

.qc-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--qc-space-lg);
}

.qc-info-card {
    background: var(--qc-glass-bg-heavy);
    backdrop-filter: var(--qc-glass-blur);
    -webkit-backdrop-filter: var(--qc-glass-blur);
    border: 0.5px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--qc-border-radius-lg);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: var(--qc-space-lg);
    box-shadow: var(--qc-shadow-sm), inset 0 0.5px 0 rgba(255, 255, 255, 0.5);
    transition: box-shadow var(--qc-transition-base), transform var(--qc-transition-base), border-color var(--qc-transition-base);
    position: relative;
    overflow: hidden;
}

.qc-info-card:hover {
    box-shadow: var(--qc-shadow-md), inset 0 0.5px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    border-color: rgba(0, 113, 227, 0.12);
}

.qc-info-card-wide {
    grid-column: 1 / -1;
}

.qc-info-icon {
    font-size: 24px;
    line-height: 1;
    opacity: 0.7;
    flex-shrink: 0;
}

.qc-info-content {
    flex: 1;
    min-width: 0;
}

.qc-info-label {
    font-size: 11px;
    color: var(--qc-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
    margin-bottom: 6px;
}

.qc-info-value {
    font-size: 15px;
    color: var(--qc-gray-900);
    font-weight: 500;
    word-break: break-word;
}

.qc-info-value-editable {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qc-inline-edit-btn {
    border: 1px solid var(--qc-gray-300);
    background: #fff;
    color: var(--qc-gray-700);
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.qc-inline-edit-btn:hover {
    border-color: var(--qc-primary);
    color: var(--qc-primary);
    box-shadow: 0 0 0 2px rgba(10,110,209,0.1);
}

/* Permissions (Groups) */
.qc-permissions-page .qc-detail-body {
    background: #fff;
}

.qc-groups-master-panel {
    width: 420px;
}

.qc-group-actions {
    padding: 12px 16px;
    border-bottom: 1px solid var(--qc-gray-200);
    background: var(--qc-gray-50);
}

.qc-group-item .qc-user-item-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qc-group-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.qc-perm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.qc-perm-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--qc-gray-200);
    border-radius: 10px;
    background: var(--qc-gray-50);
}

.qc-perm-title {
    font-weight: 600;
    color: var(--qc-gray-900);
}

.qc-perm-desc {
    color: var(--qc-gray-500);
    font-size: 12px;
    line-height: 1.4;
}

.qc-perm-toggle {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--qc-gray-700);
}

.qc-inline-form {
    margin: 0;
}

/* Projects */
.qc-projects-master-panel {
    width: 380px;
}

.qc-workstation-item {
    text-decoration: none;
    color: inherit;
}

.qc-project-card {
    background: #fff;
    border: 1px solid var(--qc-gray-200);
    border-radius: 10px;
    padding: 18px;
}

.qc-project-form,
.qc-variant-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qc-variant-form {
    border-top: 1px dashed var(--qc-gray-200);
    padding-top: 14px;
    margin-top: 14px;
}

.qc-variant-form-new {
    background: var(--qc-gray-50);
    padding: 12px;
    border-radius: 8px;
}

.qc-projects-add-page {
    max-width: 1200px;
    margin: 0 auto;
}

.qc-project-box {
    background: #fff;
    border: 1px solid var(--qc-gray-200);
    border-radius: 10px;
    padding: 16px;
}

/* ==================== PROJECTS PAGE - MODERN REDESIGN ==================== */
.qc-projects-guard-page {
    max-width: 1600px;
    margin: 0 auto;
    animation: fadeInUp var(--qc-transition-slow);
}

.qc-projects-hero {
    display: flex;
    align-items: center;
    gap: var(--qc-space-xl);
    margin-bottom: var(--qc-space-xl);
    background: linear-gradient(135deg, var(--qc-primary) 0%, #2997ff 40%, var(--qc-accent) 100%);
    border-radius: var(--qc-border-radius-xl);
    padding: 28px 32px;
    box-shadow: var(--qc-shadow-lg), 0 8px 24px rgba(0, 113, 227, 0.15);
    position: relative;
    overflow: hidden;
}

.qc-projects-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.qc-projects-hero-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--qc-border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    flex-shrink: 0;
    transition: transform var(--qc-transition-base);
}

.qc-projects-hero-icon:hover {
    transform: scale(1.05) rotate(5deg);
}

.qc-projects-hero-content {
    flex: 1;
}

.qc-projects-hero-title {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: -0.5px;
}

.qc-projects-hero-subtitle {
    color: rgba(255,255,255,0.95);
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    font-size: var(--qc-font-size-base);
    line-height: 1.6;
}

.qc-projects-hero .qc-page-title {
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.qc-projects-hero .qc-page-subtitle {
    color: rgba(255,255,255,0.9);
    margin: 6px 0 0 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.qc-projects-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--qc-space-lg);
    margin-bottom: var(--qc-space-xl);
    padding: var(--qc-space-xl);
    background: var(--qc-glass-bg-heavy);
    backdrop-filter: var(--qc-glass-blur);
    -webkit-backdrop-filter: var(--qc-glass-blur);
    border-radius: var(--qc-border-radius-lg);
    box-shadow: var(--qc-shadow-sm), inset 0 0.5px 0 rgba(255, 255, 255, 0.5);
    border: 0.5px solid rgba(255, 255, 255, 0.5);
}

.qc-projects-workstation-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 280px;
}

.qc-projects-workstation-form select {
    transition: all var(--qc-transition-base);
}

.qc-projects-workstation-form select:hover {
    border-color: var(--qc-primary);
    transform: translateY(-1px);
}

/* ==================== PROJECT LIST - TABLE DESIGN ==================== */
.qc-projects-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--qc-glass-bg-heavy);
    backdrop-filter: var(--qc-glass-blur);
    -webkit-backdrop-filter: var(--qc-glass-blur);
    border-radius: var(--qc-border-radius-xl);
    overflow: hidden;
    box-shadow: var(--qc-shadow-md), inset 0 0.5px 0 rgba(255, 255, 255, 0.5);
    border: 0.5px solid rgba(255, 255, 255, 0.5);
}

.qc-project-guard-card {
    border: none;
    border-bottom: 2px solid var(--qc-gray-100);
    border-radius: 0;
    padding: 0;
    background: #fff;
    transition: all var(--qc-transition-base);
    position: relative;
}

.qc-project-guard-card:last-child {
    border-bottom: none;
}

.qc-project-guard-card:hover {
    background: rgba(255, 255, 255, 0.6);
    box-shadow: inset 4px 0 0 var(--qc-primary);
}

.qc-project-guard-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--qc-primary) 0%, var(--qc-accent) 100%);
    opacity: 0;
    transition: opacity var(--qc-transition-base);
    border-radius: 0 2px 2px 0;
}

.qc-project-guard-card:hover::before {
    opacity: 1;
}

.qc-project-guard-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--qc-gray-50) 0%, #fff 100%);
    border-bottom: 1px solid var(--qc-gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qc-project-guard-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--qc-gray-900);
    letter-spacing: -0.3px;
}

.qc-project-guard-header p {
    margin: 4px 0 0;
    color: var(--qc-gray-500);
    font-size: var(--qc-font-size-sm);
}

.qc-project-guard-form,
.qc-variant-guard-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 24px;
}

.qc-section {
    margin: 0;
    padding: 18px 24px;
    border-top: 1px solid var(--qc-gray-100);
    background: linear-gradient(135deg, var(--qc-gray-50) 0%, #fff 100%);
    transition: all var(--qc-transition-base);
}

.qc-section:hover {
    background: #fff;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.03);
}

.qc-section-title {
    font-size: var(--qc-font-size-base);
    font-weight: 700;
    color: var(--qc-gray-900);
    margin: 0 0 14px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qc-section-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: linear-gradient(180deg, var(--qc-primary) 0%, var(--qc-accent) 100%);
    border-radius: 2px;
}

.qc-section-title-icon {
    font-size: 18px;
    opacity: 0.8;
    transition: all var(--qc-transition-fast);
}

.qc-section:hover .qc-section-title-icon {
    opacity: 1;
    transform: scale(1.1);
    color: var(--qc-primary);
}

/* ==================== VARIANTS SECTION - ACCORDION DESIGN ==================== */
.qc-project-variants-block {
    margin: 0;
    border-top: 2px solid var(--qc-gray-200);
    padding: 0;
    background: var(--qc-gray-50);
}

.qc-project-variants-block > summary {
    cursor: pointer;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--qc-gray-50) 0%, #fff 100%);
    border: none;
    border-radius: 0;
    margin: 0;
    font-size: var(--qc-font-size-base);
    font-weight: 700;
    color: var(--qc-gray-900);
    transition: all var(--qc-transition-base);
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
}

.qc-project-variants-block > summary::before {
    content: none;
    display: none;
}

.qc-project-variants-block[open] > summary::before {
    transform: rotate(90deg);
}

.qc-project-variants-block > summary:hover {
    background: #fff;
    color: var(--qc-primary);
}

.qc-project-variants-block .qc-variant-guard-form {
    border: 1px solid var(--qc-gray-200);
    border-radius: var(--qc-border-radius-lg);
    padding: 18px;
    margin: 12px 24px;
    background: #fff;
    box-shadow: var(--qc-shadow-sm);
    transition: all var(--qc-transition-base);
    animation: fadeInUp var(--qc-transition-base);
}

.qc-project-variants-block .qc-variant-guard-form:hover {
    box-shadow: var(--qc-shadow-md);
    border-color: var(--qc-primary);
    transform: translateX(4px);
}

.qc-variant-form-new {
    background: linear-gradient(135deg, var(--qc-primary-bg) 0%, #fff 100%) !important;
    border: 2px dashed var(--qc-primary) !important;
    margin: 12px 24px 24px 24px !important;
}

.qc-variant-form-new:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, #fff 100%) !important;
    border-style: solid !important;
}

/* ==================== FILE CHIPS & UPLOADS ==================== */
.qc-file-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    min-height: 36px;
}

.qc-file-chip-form {
    margin: 0;
}

.qc-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--qc-gray-300);
    border-radius: 20px;
    background: linear-gradient(135deg, #fff 0%, var(--qc-gray-50) 100%);
    cursor: pointer;
    color: var(--qc-gray-700);
    font-size: var(--qc-font-size-sm);
    font-weight: 500;
    transition: all var(--qc-transition-fast);
    box-shadow: var(--qc-shadow-xs);
    position: relative;
    overflow: hidden;
}

.qc-file-chip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.qc-file-chip:hover::before {
    width: 200px;
    height: 200px;
}

.qc-file-chip:hover {
    border-color: var(--qc-danger);
    color: var(--qc-danger);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: var(--qc-shadow-sm);
}

.qc-file-chip .qc-action-icon {
    position: relative;
    z-index: 1;
    transition: transform var(--qc-transition-fast);
}

.qc-file-chip:hover .qc-action-icon:last-child {
    transform: rotate(90deg);
}

.qc-upload-inline-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    padding: 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
    border: 1px dashed var(--qc-gray-300);
    border-radius: var(--qc-border-radius);
    transition: all var(--qc-transition-base);
}

.qc-upload-inline-form:hover {
    border-color: var(--qc-primary);
    border-style: solid;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.05);
}

/* ==================== UTILITY CLASSES ==================== */
.qc-value-success {
    color: var(--qc-success);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(16, 185, 129, 0.2);
}

.qc-value-muted {
    color: var(--qc-gray-400);
    font-style: italic;
    font-size: var(--qc-font-size-sm);
}

.qc-link {
    color: var(--qc-primary);
    text-decoration: none;
    transition: all var(--qc-transition-fast);
    font-weight: 500;
    position: relative;
}

.qc-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--qc-primary);
    transition: width var(--qc-transition-base);
}

.qc-link:hover {
    color: var(--qc-primary-dark);
}

.qc-link:hover::after {
    width: 100%;
}

/* ==================== EMPTY STATE ==================== */
/* ==================== EMPTY STATE ==================== */
.qc-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--qc-space-3xl) var(--qc-space-xl);
    color: var(--qc-gray-500);
    height: 100%;
    animation: fadeIn var(--qc-transition-slow);
    text-align: center;
}

.qc-empty-icon {
    font-size: 72px;
    margin-bottom: var(--qc-space-xl);
    opacity: 0.25;
    animation: float 4s ease-in-out infinite;
}

.qc-empty-title {
    font-size: var(--qc-font-size-xl);
    font-weight: 700;
    color: var(--qc-gray-700);
    margin-bottom: var(--qc-space-sm);
    letter-spacing: -0.02em;
}

.qc-empty-text {
    font-size: var(--qc-font-size-base);
    color: var(--qc-gray-500);
    max-width: 400px;\n    line-height: 1.6;
}

/* ==================== CUSTOM SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.22);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.12) transparent;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
    .qc-projects-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .qc-projects-workstation-form {
        min-width: auto;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .qc-master-panel {
        width: 320px;
    }

    .qc-detail-header {
        padding: 20px 24px;
    }

    .qc-detail-body {
        padding: 24px;
    }

    .qc-detail-avatar {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }

    .qc-detail-name {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .qc-news-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--qc-space-lg);
    }

    .qc-news-hero-btn {
        width: 100%;
        justify-content: center;
    }

    .qc-news-grid {
        grid-template-columns: 1fr;
    }

    .qc-news-stats {
        gap: var(--qc-space-md);
        padding: var(--qc-space-md);
    }

    .qc-news-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--qc-space-md);
    }

    .qc-news-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .qc-add-header {
        flex-direction: column;
        align-items: stretch;
    }

    .qc-form-grid-2 {
        grid-template-columns: 1fr;
    }

    .qc-master-detail {
        flex-direction: column;
    }

    .qc-master-panel {
        width: 100%;
        max-height: 40%;
        border-right: none;
        border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
    }

    .qc-detail-panel {
        flex: 1;
    }

    .qc-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }

    .qc-detail-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .qc-master-filters {
        grid-template-columns: 1fr;
    }

    .qc-master-filters #filterStatus {
        grid-column: auto;
    }

    .qc-projects-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .qc-projects-hero-icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

    .qc-page-title {
        font-size: 22px;
    }

    .qc-project-guard-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        gap: 12px;
    }

    .qc-project-guard-form,
    .qc-variant-guard-form {
        padding: 16px;
    }

    .qc-form-actions {
        flex-direction: column;
    }

    .qc-btn {
        width: 100%;
        justify-content: center;
    }

    .qc-project-status-badge {
        align-self: flex-start;
    }

    .qc-section {
        padding: 16px;
    }

    .qc-file-chip-list {
        gap: 8px;
    }

    .qc-upload-inline-form {
        flex-direction: column;
        align-items: stretch;
    }

    .qc-upload-inline-form .qc-input,
    .qc-upload-inline-form .qc-btn {
        width: 100%;
    }

    .qc-dash-kpis {
        grid-template-columns: 1fr;
    }

    .qc-dash-quick {
        grid-template-columns: 1fr;
    }
}

/* ==================== DASHBOARD ==================== */
.qc-dashboard {
    max-width: 1100px;
    margin: 0 auto;
}

.qc-dash-greeting {
    margin-bottom: var(--qc-space-3xl);
}

.qc-dash-title {
    font-size: var(--qc-font-size-3xl);
    font-weight: 700;
    color: var(--qc-gray-900);
    margin: 0;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.qc-dash-subtitle {
    color: var(--qc-gray-500);
    font-size: var(--qc-font-size-lg);
    margin: 8px 0 0;
}

.qc-dash-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--qc-space-lg);
    margin-bottom: var(--qc-space-3xl);
}

.qc-dash-kpi {
    background: var(--qc-glass-bg-heavy);
    backdrop-filter: var(--qc-glass-blur);
    -webkit-backdrop-filter: var(--qc-glass-blur);
    border: 0.5px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--qc-border-radius-lg);
    padding: var(--qc-space-xl);
    display: flex;
    align-items: center;
    gap: var(--qc-space-lg);
    box-shadow: var(--qc-shadow-sm), inset 0 0.5px 0 rgba(255, 255, 255, 0.5);
    transition: box-shadow var(--qc-transition-base), transform var(--qc-transition-base);
}

.qc-dash-kpi:hover {
    box-shadow: var(--qc-shadow-md), inset 0 0.5px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.qc-dash-kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--qc-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--qc-transition-fast);
}

.qc-dash-kpi:hover .qc-dash-kpi-icon {
    transform: scale(1.08);
}

.qc-dash-kpi-icon--user {
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.12), rgba(0, 113, 227, 0.06));
    color: var(--qc-primary);
}
.qc-dash-kpi-icon--dept {
    background: linear-gradient(135deg, rgba(191, 90, 242, 0.12), rgba(191, 90, 242, 0.06));
    color: var(--qc-accent);
}
.qc-dash-kpi-icon--time {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.12), rgba(48, 209, 88, 0.06));
    color: var(--qc-success);
}

.qc-dash-kpi-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.qc-dash-kpi-label {
    font-size: var(--qc-font-size-xs);
    color: var(--qc-gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.qc-dash-kpi-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--qc-gray-900);
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qc-dash-section {
    margin-bottom: var(--qc-space-3xl);
}

.qc-dash-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--qc-space-lg);
}

.qc-dash-section-title {
    font-size: var(--qc-font-size-xl);
    font-weight: 700;
    color: var(--qc-gray-900);
    margin: 0;
    letter-spacing: -0.02em;
}

.qc-dash-section-link {
    font-size: var(--qc-font-size-sm);
    color: var(--qc-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--qc-transition-fast);
}

.qc-dash-section-link:hover {
    color: var(--qc-primary-dark);
}

.qc-dash-news {
    background: var(--qc-glass-bg-heavy);
    backdrop-filter: var(--qc-glass-blur);
    -webkit-backdrop-filter: var(--qc-glass-blur);
    border: 0.5px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--qc-border-radius-lg);
    overflow: hidden;
    box-shadow: var(--qc-shadow-sm), inset 0 0.5px 0 rgba(255, 255, 255, 0.5);
}

.qc-dash-news-empty {
    padding: 32px;
    text-align: center;
    color: var(--qc-gray-500);
    font-size: var(--qc-font-size-sm);
}

.qc-dash-news-item {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.04);
    transition: background var(--qc-transition-fast);
}

.qc-dash-news-item:last-child {
    border-bottom: none;
}

.qc-dash-news-item:hover {
    background: var(--qc-gray-50);
}

.qc-dash-news-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.qc-dash-news-title {
    font-weight: 600;
    color: var(--qc-primary);
    font-size: 14px;
}

.qc-dash-news-time {
    font-size: var(--qc-font-size-xs);
    color: var(--qc-gray-500);
    white-space: nowrap;
    flex-shrink: 0;
}

.qc-dash-news-text {
    margin: 6px 0 0;
    font-size: var(--qc-font-size-sm);
    color: var(--qc-gray-600);
    line-height: 1.5;
}

.qc-dash-quick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.qc-dash-quick-card {
    background: var(--qc-glass-bg-heavy);
    backdrop-filter: var(--qc-glass-blur);
    -webkit-backdrop-filter: var(--qc-glass-blur);
    border: 0.5px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--qc-border-radius-lg);
    padding: 20px 22px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: var(--qc-space-lg);
    box-shadow: var(--qc-shadow-sm), inset 0 0.5px 0 rgba(255, 255, 255, 0.5);
    transition: box-shadow var(--qc-transition-base), transform var(--qc-transition-base), border-color var(--qc-transition-base);
}

.qc-dash-quick-card:hover {
    box-shadow: var(--qc-shadow-md), inset 0 0.5px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    border-color: rgba(0, 113, 227, 0.15);
}

.qc-dash-quick-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--qc-border-radius);
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.10), rgba(0, 113, 227, 0.05));
    color: var(--qc-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--qc-transition-fast), background var(--qc-transition-fast);
}

.qc-dash-quick-card:hover .qc-dash-quick-icon {
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.15), rgba(0, 113, 227, 0.08));
    transform: scale(1.08);
}

.qc-dash-quick-body {
    display: flex;
    flex-direction: column;
}

.qc-dash-quick-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--qc-gray-900);
}

.qc-dash-quick-desc {
    font-size: var(--qc-font-size-xs);
    color: var(--qc-gray-500);
    margin-top: 2px;
}


/* ════════════════════════════════════════════════
   Live-Monitoring — iOS 26 Liquid Glass
   ════════════════════════════════════════════════ */
.qc-livemon-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 10px 16px;
    background: var(--qc-glass-bg);
    backdrop-filter: var(--qc-glass-blur);
    -webkit-backdrop-filter: var(--qc-glass-blur);
    border: 1px solid var(--qc-glass-border);
    border-radius: var(--qc-border-radius-xl);
    box-shadow: var(--qc-glass-shadow);
}

.qc-livemon-toolbar-label {
    font-size: 12px;
    font-weight: 600;
    color: #636366;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.qc-livemon-select {
    min-width: 220px;
    max-width: 320px;
}

.qc-livemon-single-department {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
}

.qc-livemon-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 12px;
    color: #8e8e93;
}

.qc-livemon-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.qc-livemon-dot--on {
    background: #34c759;
    box-shadow: 0 0 8px rgba(48, 209, 88, 0.5);
}

.qc-livemon-dot--off {
    background: #ff9f0a;
    box-shadow: 0 0 8px rgba(255, 159, 10, 0.45);
}

.qc-livemon-dot--error {
    background: #ff453a;
    box-shadow: 0 0 8px rgba(255, 69, 58, 0.5);
}

.qc-livemon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.qc-livemon-empty {
    grid-column: 1 / -1;
    padding: 48px 24px;
    text-align: center;
    color: #8e8e93;
    font-size: 14px;
    background: var(--qc-glass-bg);
    backdrop-filter: var(--qc-glass-blur);
    -webkit-backdrop-filter: var(--qc-glass-blur);
    border: 1px solid var(--qc-glass-border);
    border-radius: var(--qc-border-radius-xl);
    box-shadow: var(--qc-glass-shadow);
}

.qc-livemon-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    background: var(--qc-glass-bg-heavy);
    backdrop-filter: var(--qc-glass-blur);
    -webkit-backdrop-filter: var(--qc-glass-blur);
    border: 1px solid var(--qc-glass-border);
    border-radius: var(--qc-border-radius-xl);
    box-shadow: var(--qc-glass-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: fadeInUp 0.35s cubic-bezier(0.2, 0, 0, 1) both;
}

.qc-livemon-card.qc-livemon-dragging {
    opacity: 0.55;
    transform: scale(0.98);
}

.qc-livemon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
}

.qc-livemon-card--error {
    border-color: rgba(255, 69, 58, 0.35);
    box-shadow: 0 0 0 1px rgba(255, 69, 58, 0.18), var(--qc-glass-shadow);
}

.qc-livemon-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.qc-livemon-card-title-wrap,
.qc-livemon-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.qc-livemon-card-title-wrap {
    flex: 1 1 auto;
}

.qc-livemon-drag {
    color: #8e8e93;
    cursor: grab;
    font-size: 14px;
    line-height: 1;
    user-select: none;
}

.qc-livemon-remove {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: rgba(120,120,128,0.10);
    color: #636366;
    font-size: 17px;
    line-height: 22px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.qc-livemon-remove:hover {
    background: rgba(255,69,58,0.12);
    color: #ff453a;
}

.qc-livemon-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qc-livemon-badge {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: var(--qc-success-bg);
    color: var(--qc-success-dark);
    white-space: nowrap;
}

.qc-livemon-card--error .qc-livemon-badge {
    background: var(--qc-danger-bg);
    color: var(--qc-danger);
}

.qc-livemon-card-error {
    padding: 8px 12px;
    border-radius: var(--qc-border-radius-sm);
    background: var(--qc-danger-bg);
    color: var(--qc-danger);
    font-size: 12px;
    font-weight: 500;
}

.qc-livemon-card-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}

.qc-livemon-metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.qc-livemon-metric-label {
    font-size: 10px;
    font-weight: 600;
    color: #8e8e93;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.qc-livemon-metric-value {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qc-livemon-card-foot {
    font-size: 11px;
    color: #8e8e93;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 10px;
}
