:root {
    --res-file-pdf: #ef4444;
    --res-file-docx: #3b82f6;
    --res-file-xlsx: #22c55e;
    --res-file-pptx: #f59e0b;
    --res-file-image: #a855f7;
    --res-file-video: #ec4899;
    --res-file-archive: #64748b;
    --res-file-default: #94a3b8;
    --res-folder-training: #3b82f6;
    --res-folder-rto: #22c55e;
    --res-folder-regulatory: #f59e0b;
    --res-folder-default: #60a5fa;
    --res-skeleton-from: rgba(255, 255, 255, 0.04);
    --res-skeleton-to: rgba(255, 255, 255, 0.08);
    --res-chip-active-bg: var(--purple-bg-medium);
    --res-chip-active-border: var(--purple-border-medium);
    --res-chip-active-text: var(--accent-purple-muted);
    --res-chip-inactive-bg: var(--dark-surface-tint);
    --res-chip-inactive-border: var(--dark-border-color);
    --res-chip-inactive-text: var(--dark-text-secondary);
    --res-search-bg: var(--dark-input-bg);
    --res-search-border: var(--dark-border-muted);
    --res-search-focus-border: var(--purple-border-medium);
    --res-search-focus-shadow: var(--purple-glow);
    --res-row-hover: var(--dark-surface-hover);
    --res-row-selected-bg: var(--purple-bg-subtle);
    --res-row-selected-border: var(--accent-purple-light);
    --res-status-ready-bg: var(--green-bg-subtle);
    --res-status-ready-text: var(--accent-green);
    --res-status-processing-bg: var(--yellow-bg-subtle);
    --res-status-processing-text: var(--accent-yellow);
    --res-status-failed-bg: var(--red-bg-subtle);
    --res-status-failed-text: var(--accent-red);
    --res-status-pending-bg: var(--dark-surface-tint);
    --res-status-pending-text: var(--dark-text-mid);
    --res-health-ok-bg: var(--green-bg-subtle);
    --res-health-ok-text: var(--accent-green);
    --res-health-ok-border: var(--green-border);
    --res-health-warn-bg: var(--yellow-bg-subtle);
    --res-health-warn-text: var(--accent-yellow);
    --res-health-warn-border: var(--yellow-border);
    --res-health-fail-bg: var(--red-bg-subtle);
    --res-health-fail-text: var(--accent-red);
    --res-health-fail-border: var(--red-border);
    --res-inline-edit-border: var(--purple-border-medium);
    --res-inline-edit-shadow: var(--purple-glow);
    --res-validation-error-bg: rgba(239, 68, 68, 0.08);
    --res-validation-error-border: var(--red-border);
    --res-ai-sparkle: var(--accent-purple-muted);

    --green-bg-hint: rgba(34, 197, 94, 0.08);
    --red-bg-hint: rgba(239, 68, 68, 0.08);
    --orange-bg-hint: rgba(249, 115, 22, 0.08);
    --orange-border: rgba(249, 115, 22, 0.3);
    --accent-orange: #f97316;
    --accent-red-dark: #dc2626;
    --accent-green-dark: #16a34a;
    --yellow-bg-subtle: rgba(245, 158, 11, 0.15);
}

@keyframes gs-skeleton-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gs-skeleton-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes res-processing-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.res-skeleton-row {
    animation: gs-skeleton-pulse 1.5s ease-in-out infinite;
}

.res-skeleton-row td {
    padding: var(--table-cell-padding);
}

.res-skeleton-block {
    background: var(--res-skeleton-from);
    border-radius: var(--border-radius-sm);
    height: 14px;
    width: 60%;
}

.res-skeleton-block.short { width: 30%; }
.res-skeleton-block.medium { width: 50%; }
.res-skeleton-block.long { width: 80%; }

.res-fade-in {
    animation: gs-skeleton-fade-in 0.4s ease forwards;
}

.res-file-icon-pdf { color: var(--res-file-pdf); }
.res-file-icon-docx { color: var(--res-file-docx); }
.res-file-icon-xlsx { color: var(--res-file-xlsx); }
.res-file-icon-pptx { color: var(--res-file-pptx); }
.res-file-icon-image { color: var(--res-file-image); }
.res-file-icon-video { color: var(--res-file-video); }
.res-file-icon-archive { color: var(--res-file-archive); }
.res-file-icon-default { color: var(--res-file-default); }

.res-folder-icon-training { color: var(--res-folder-training); }
.res-folder-icon-rto { color: var(--res-folder-rto); }
.res-folder-icon-regulatory { color: var(--res-folder-regulatory); }
.res-folder-icon-default { color: var(--res-folder-default); }

.res-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: var(--label-size);
    font-weight: var(--label-weight);
    letter-spacing: var(--label-spacing);
    text-transform: uppercase;
}

.res-type-badge.pdf {
    background: rgba(239, 68, 68, 0.12);
    color: var(--res-file-pdf);
}

.res-type-badge.docx, .res-type-badge.doc {
    background: rgba(59, 130, 246, 0.12);
    color: var(--res-file-docx);
}

.res-type-badge.xlsx, .res-type-badge.xls, .res-type-badge.csv {
    background: rgba(34, 197, 94, 0.12);
    color: var(--res-file-xlsx);
}

.res-type-badge.pptx, .res-type-badge.ppt {
    background: rgba(245, 158, 11, 0.12);
    color: var(--res-file-pptx);
}

.res-type-badge.png, .res-type-badge.jpg, .res-type-badge.jpeg, .res-type-badge.gif, .res-type-badge.webp, .res-type-badge.svg {
    background: rgba(168, 85, 247, 0.12);
    color: var(--res-file-image);
}

.res-type-badge.mp4, .res-type-badge.mov, .res-type-badge.webm {
    background: rgba(236, 72, 153, 0.12);
    color: var(--res-file-video);
}

.res-type-badge.zip, .res-type-badge.rar, .res-type-badge.tar, .res-type-badge.gz {
    background: rgba(100, 116, 139, 0.12);
    color: var(--res-file-archive);
}

.res-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: var(--label-size);
    font-weight: var(--label-weight);
}

.res-status-chip.ready {
    background: var(--res-status-ready-bg);
    color: var(--res-status-ready-text);
}

.res-status-chip.processing {
    background: var(--res-status-processing-bg);
    color: var(--res-status-processing-text);
    animation: res-processing-pulse 2s ease-in-out infinite;
}

.res-status-chip.failed {
    background: var(--res-status-failed-bg);
    color: var(--res-status-failed-text);
}

.res-status-chip.pending {
    background: var(--res-status-pending-bg);
    color: var(--res-status-pending-text);
}

.res-breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    font-size: var(--label-size);
}

.res-breadcrumb-home {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.res-breadcrumb-item {
    color: var(--dark-text-muted);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
    font-size: var(--label-size);
    font-weight: 500;
}

.res-breadcrumb-item:hover {
    color: var(--dark-text-primary);
    background: var(--purple-bg-subtle);
}

.res-breadcrumb-item.active {
    color: var(--dark-text-primary);
    font-weight: 600;
    cursor: default;
}

.res-breadcrumb-item.active:hover {
    background: transparent;
}

.res-breadcrumb-sep {
    color: var(--dark-text-faintest);
    font-size: 10px;
    user-select: none;
}

.res-search-count {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: var(--label-size);
    font-weight: var(--label-weight);
    background: var(--purple-bg-subtle);
    color: var(--accent-purple-muted);
    margin-left: 8px;
}

.res-row-selected {
    background: var(--res-row-selected-bg) !important;
    border-left: 3px solid var(--res-row-selected-border);
}

.res-row-selected td:first-child {
    padding-left: 17px;
}

.res-drag-zone {
    border: 2px dashed var(--purple-border-medium);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    transition: all var(--transition-base);
    background: transparent;
}

.res-drag-zone.active {
    background: var(--purple-bg-subtle);
    border-color: var(--purple-border-strong);
}

.res-drag-zone-text {
    color: var(--dark-text-muted);
    font-size: var(--data-size);
}

.res-drag-zone-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    opacity: 0.6;
}

.res-upload-progress-panel {
    position: fixed;
    bottom: 0;
    right: 24px;
    width: 360px;
    background: var(--dark-card-surface);
    border: 1px solid var(--dark-border-muted);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    box-shadow: var(--dark-shadow-deep);
    z-index: var(--z-modal);
    animation: res-slide-up 0.3s ease;
}

@keyframes res-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.res-upload-progress-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--dark-border-faint);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--data-size);
    font-weight: 600;
    color: var(--dark-text-primary);
}

.res-upload-progress-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 8px 16px;
}

.res-upload-progress-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--dark-border-faint);
}

.res-upload-progress-item:last-child {
    border-bottom: none;
}

.res-upload-progress-name {
    flex: 1;
    font-size: 12px;
    color: var(--dark-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.res-upload-progress-bar {
    width: 60px;
    height: 4px;
    background: var(--dark-surface-tint);
    border-radius: 2px;
    overflow: hidden;
}

.res-upload-progress-bar-fill {
    height: 100%;
    background: var(--accent-purple-light);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.res-filter-chips {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.res-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: var(--data-size);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid var(--res-chip-inactive-border);
    background: var(--res-chip-inactive-bg);
    color: var(--res-chip-inactive-text);
    user-select: none;
}

.res-filter-chip:hover {
    border-color: var(--dark-border-hover);
    background: var(--dark-surface-hover);
}

.res-filter-chip.active {
    background: var(--res-chip-active-bg);
    border-color: var(--res-chip-active-border);
    color: var(--res-chip-active-text);
}

.res-filter-chip .chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.res-filter-chip .chip-remove:hover {
    background: rgba(255, 255, 255, 0.3);
}

.res-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--data-size);
    color: var(--dark-text-secondary);
    cursor: pointer;
    user-select: none;
}

.res-filter-toggle input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 36px;
    height: 20px;
    background: var(--dark-surface-tint);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background var(--transition-fast);
    border: 1px solid var(--dark-border-muted);
}

.res-filter-toggle input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--dark-text-muted);
    transition: all var(--transition-fast);
}

.res-filter-toggle input[type="checkbox"]:checked {
    background: var(--purple-bg-medium);
    border-color: var(--purple-border-medium);
}

.res-filter-toggle input[type="checkbox"]:checked::after {
    transform: translateX(16px);
    background: var(--accent-purple-muted);
}

.res-search-bar {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: var(--res-search-bg);
    border: 1px solid var(--res-search-border);
    border-radius: var(--border-radius);
    color: var(--dark-text-primary);
    font-size: var(--data-size);
    transition: all var(--transition-fast);
}

.res-search-bar::placeholder {
    color: var(--dark-text-hint);
}

.res-search-bar:focus {
    outline: none;
    border-color: var(--res-search-focus-border);
    box-shadow: 0 0 0 3px var(--res-search-focus-shadow);
}

.res-search-wrapper {
    position: relative;
    flex: 1;
}

.res-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark-text-hint);
    pointer-events: none;
}

.res-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--data-size);
}

.res-data-table th {
    padding: var(--table-cell-padding);
    text-align: left;
    font-size: var(--label-size);
    font-weight: var(--label-weight);
    letter-spacing: var(--label-spacing);
    text-transform: uppercase;
    color: var(--dark-text-muted);
    border-bottom: 1px solid var(--dark-border-muted);
    background: var(--dark-surface-tint);
    position: sticky;
    top: 0;
    z-index: 10;
}

.res-data-table td {
    padding: var(--table-cell-padding);
    border-bottom: 1px solid var(--dark-border-faint);
    vertical-align: middle;
}

.res-data-table tbody tr {
    transition: background var(--transition-fast);
    cursor: pointer;
}

.res-data-table tbody tr:hover {
    background: var(--res-row-hover);
}

.res-data-table .unit-code-cell {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-weight: 600;
    color: var(--accent-purple-muted);
    white-space: nowrap;
}

.res-data-table .unit-title-cell {
    color: var(--dark-text-light);
    max-width: 350px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.res-health-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: var(--label-size);
    font-weight: var(--label-weight);
}

.res-health-chip.healthy {
    background: var(--res-health-ok-bg);
    color: var(--res-health-ok-text);
}

.res-health-chip.needs-attention {
    background: var(--res-health-warn-bg);
    color: var(--res-health-warn-text);
}

.res-health-chip.generated {
    background: var(--purple-bg-subtle);
    color: var(--accent-purple-muted);
}

.res-health-chip.not-started {
    background: var(--dark-surface-tint);
    color: var(--dark-text-mid);
}

.res-health-chip.ok {
    background: var(--res-health-ok-bg);
    color: var(--res-health-ok-text);
}

.res-health-chip.warn {
    background: var(--res-health-warn-bg);
    color: var(--res-health-warn-text);
}

.res-health-chip.fail {
    background: var(--red-bg-subtle);
    color: var(--accent-red);
}

.res-health-chip.error {
    background: var(--red-bg-hint);
    color: var(--accent-red);
}

.res-currency-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: var(--label-size);
    font-weight: var(--label-weight);
}

.res-currency-badge.current {
    background: var(--green-bg-subtle);
    color: var(--accent-green);
}

.res-currency-badge.superseded {
    background: var(--red-bg-subtle);
    color: var(--accent-red);
    text-decoration: line-through;
}

.res-action-btn-row {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.res-data-table tbody tr:hover .res-action-btn-row {
    opacity: 1;
}

.sa-nav-item {
    transition: all var(--transition-fast);
}

.sa-nav-item:hover {
    background: var(--dark-surface-hover);
    transform: translateX(2px);
}

.sa-nav-item.active {
    background: var(--purple-bg-subtle);
    border-left: 3px solid var(--accent-purple-light);
    color: var(--accent-purple-muted);
}

.sa-nav-item.active .sa-nav-icon,
.sa-nav-item.active .sa-nav-label {
    color: var(--accent-purple-muted);
}

.sa-nav-item:hover .sa-nav-icon {
    transform: scale(1.1);
    transition: transform var(--transition-fast);
}

.res-template-card {
    background: var(--dark-surface-card);
    border: 1px solid var(--dark-border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative;
}

.res-template-card:hover {
    border-color: var(--purple-border-light);
    transform: var(--lift-sm);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 0 1px var(--purple-glow);
}

.res-template-card-header {
    padding: var(--card-padding);
    border-bottom: 1px solid var(--dark-border-faint);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.res-template-card-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.res-template-card-icon.learner_guide { color: var(--res-file-docx); }
.res-template-card-icon.written_assessment { color: var(--res-file-pdf); }
.res-template-card-icon.model_answers { color: var(--accent-green); }
.res-template-card-icon.observation_checklist { color: var(--accent-yellow); }
.res-template-card-icon.project_workbook { color: var(--res-file-pptx); }
.res-template-card-icon.job_card { color: var(--res-file-xlsx); }
.res-template-card-icon.glossary { color: var(--accent-blue); }
.res-template-card-icon.cover { color: var(--accent-purple-muted); }

.res-template-health {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.res-template-health.ok {
    background: var(--res-health-ok-bg);
    color: var(--res-health-ok-text);
    border: 1px solid var(--res-health-ok-border);
}

.res-template-health.warn {
    background: var(--res-health-warn-bg);
    color: var(--res-health-warn-text);
    border: 1px solid var(--res-health-warn-border);
}

.res-template-health.fail {
    background: var(--res-health-fail-bg);
    color: var(--res-health-fail-text);
    border: 1px solid var(--res-health-fail-border);
}

.res-health-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.res-health-checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--dark-border-faint);
    font-size: var(--data-size);
}

.res-health-checklist-item:last-child {
    border-bottom: none;
}

.res-health-checklist-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.res-health-checklist-icon.pass {
    background: var(--res-health-ok-bg);
    color: var(--res-health-ok-text);
}

.res-health-checklist-icon.missing {
    background: var(--res-health-fail-bg);
    color: var(--res-health-fail-text);
}

.res-health-checklist-icon.unused {
    background: var(--res-health-warn-bg);
    color: var(--res-health-warn-text);
}

.res-health-checklist-name {
    flex: 1;
    color: var(--dark-text-secondary);
}

.res-health-checklist-name.missing {
    color: var(--res-health-fail-text);
    font-weight: 600;
}

.res-health-checklist-name.unused {
    color: var(--res-health-warn-text);
}

.res-health-summary-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    font-size: var(--data-size);
    font-weight: 500;
}

.res-health-summary-banner.all-pass {
    background: var(--res-health-ok-bg);
    color: var(--res-health-ok-text);
    border: 1px solid var(--res-health-ok-border);
}

.res-qual-card {
    background: var(--dark-surface-card);
    border: 1px solid var(--dark-border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
}

.res-qual-card:hover {
    border-color: var(--purple-border-light);
    transform: var(--lift-md);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--purple-glow);
}

.res-qual-card.selected {
    border-color: var(--accent-purple-light);
    border-width: 2px;
    box-shadow: 0 0 0 3px var(--purple-glow);
}

.res-aqf-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--blue-bg-subtle);
    color: var(--accent-blue);
    border: 1px solid var(--blue-border);
}

.res-scope-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.res-scope-badge.approved {
    background: var(--green-bg-subtle);
    color: var(--accent-green);
    border: 1px solid var(--green-border);
}

.res-scope-badge.catalog {
    background: var(--dark-surface-tint);
    color: var(--dark-text-mid);
    border: 1px solid var(--dark-border-color);
}

.res-tga-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent-blue);
    opacity: 0.6;
    transition: opacity var(--transition-fast);
    text-decoration: none;
    font-size: 12px;
}

.res-tga-link:hover {
    opacity: 1;
}

.res-inline-input {
    background: transparent;
    border: 1px solid transparent;
    padding: 6px 8px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    color: var(--dark-text-primary);
    transition: all var(--transition-fast);
    width: 70px;
}

.res-inline-input:hover {
    border-color: var(--dark-border-muted);
    background: var(--dark-surface-tint);
}

.res-inline-input:focus {
    border-color: var(--res-inline-edit-border);
    outline: none;
    box-shadow: 0 0 0 2px var(--res-inline-edit-shadow);
    background: var(--dark-surface-tint);
}

.res-inline-input.invalid {
    border-color: var(--res-validation-error-border);
    background: var(--res-validation-error-bg);
}

.res-ai-sparkle {
    display: inline-flex;
    align-items: center;
    color: var(--res-ai-sparkle);
    font-size: 14px;
    margin-left: 4px;
    opacity: 0.8;
}

.res-ai-sparkle[title] {
    cursor: help;
}

.res-bulk-import-zone {
    border: 2px dashed var(--purple-border-medium);
    border-radius: var(--border-radius);
    padding: 32px;
    text-align: center;
    transition: all var(--transition-base);
    margin-bottom: 16px;
}

.res-bulk-import-zone:hover,
.res-bulk-import-zone.active {
    border-color: var(--purple-border-strong);
    background: var(--purple-bg-subtle);
}

.res-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--dark-text-muted);
}

.res-empty-state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.res-empty-state-title {
    font-size: var(--section-title-size);
    font-weight: 600;
    color: var(--dark-text-secondary);
    margin-bottom: 8px;
}

.res-empty-state-text {
    font-size: var(--data-size);
    color: var(--dark-text-muted);
    max-width: 400px;
    margin: 0 auto;
}

.res-loading-state {
    text-align: center;
    padding: 60px 20px;
}

.res-loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid var(--purple-bg-medium);
    border-radius: 50%;
    border-top-color: var(--accent-purple-muted);
    animation: spin 0.8s linear infinite;
    margin-bottom: 12px;
}

.res-cell-editable {
    cursor: pointer;
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
    border-radius: 4px;
}

.res-cell-editable:hover {
    background: var(--dark-surface-tint);
    box-shadow: inset 0 0 0 1px var(--dark-border-subtle);
}

.res-cell-editable.editing {
    background: var(--dark-surface-subtle);
    box-shadow: inset 0 0 0 2px var(--accent-purple-muted);
    outline: none;
}

.res-cell-invalid {
    box-shadow: inset 0 0 0 2px var(--accent-red) !important;
    background: var(--red-bg-hint) !important;
}

.res-cell-saved {
    animation: resCellFlash 0.6s ease;
}

@keyframes resCellFlash {
    0% { background: var(--green-bg-hint); }
    100% { background: transparent; }
}

.res-dropzone-panel {
    border: 2px dashed var(--dark-border-subtle);
    border-radius: var(--radius-large);
    padding: 32px;
    text-align: center;
    background: var(--dark-surface-tint);
    transition: border-color var(--transition-fast), background var(--transition-fast);
    cursor: pointer;
}

.res-dropzone-panel:hover,
.res-dropzone-panel.drag-over {
    border-color: var(--accent-purple-muted);
    background: var(--purple-bg-subtle);
}

.res-dropzone-panel .dropzone-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.res-dropzone-panel .dropzone-text {
    color: var(--dark-text-secondary);
    font-size: var(--data-size);
}

.res-slide-up {
    animation: resSlideUp 0.3s ease-out;
}

@keyframes resSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.res-skeleton-row {
    display: flex;
    gap: 16px;
    padding: 12px 16px;
    align-items: center;
}

.res-skeleton-cell {
    height: 14px;
    background: var(--dark-surface-tint);
    border-radius: 4px;
    animation: resSkeleton 1.5s ease-in-out infinite;
}

.res-skeleton-cell.w-sm { width: 60px; }
.res-skeleton-cell.w-md { width: 120px; }
.res-skeleton-cell.w-lg { width: 200px; }
.res-skeleton-cell.w-xl { width: 300px; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

.res-loading-text {
    color: var(--dark-text-muted);
    font-size: var(--data-size);
}
