/* ========================================
   Personnel Resource Planner
   Sleek Dark Theme (shadcn-inspired)
   ======================================== */

/* CSS Variables */
:root {
    --bg-base: #09090b;
    --bg-surface: #0c0c0e;
    --bg-elevated: #18181b;
    --bg-hover: #27272a;
    --bg-active: #3f3f46;

    --border-subtle: #1f1f23;
    --border-default: #27272a;
    --border-strong: #3f3f46;

    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-faint: #52525b;

    --accent-primary: #f97316;
    --accent-primary-hover: #ea580c;
    --accent-success: #22c55e;
    --accent-warning: #eab308;
    --accent-danger: #ef4444;
    --accent-purple: #a855f7;
    --accent-cyan: #06b6d4;
    --accent-orange: #f97316;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5);

    --radius-sm: 2px;
    --radius-md: 2px;
    --radius-lg: 4px;
    --radius-full: 9999px;

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Aliases for compatibility */
    --bg: var(--bg-base);
    --surface: var(--bg-surface);
    --surface-hover: var(--bg-hover);
    --border: var(--border-default);
    --primary: var(--accent-primary);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* ========================================
   Header
   ======================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
}

.header__left {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

.header__brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
    padding-right: 1rem;
}


.header__logo {
    gap: .5rem;
}

.header__title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    white-space: nowrap;
}

.header__subtitle {
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--text-faint);
    text-align: right;
    margin-top: 2px;
}

.header__stats {
    display: flex;
    gap: 1rem;
}

.header-stat {
    font-size: 0.6875rem;
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
}

.header-stat--danger {
    color: var(--accent-danger);
    background: rgba(239, 68, 68, 0.1);
}

.header__center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    overflow: hidden;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.header__username {
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.header__username-label {
    color: var(--text-secondary);
    font-weight: 400;
}

.header__divider {
    width: 1px;
    height: 24px;
    background: var(--border-default);
    margin: 0 0.25rem;
}

/* Header Navigation */
.header__nav {
    display: flex;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8125rem;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-link--active {
    background: var(--accent-primary);
    color: white;
}

.nav-link--active:hover {
    background: var(--accent-primary-hover);
}

/* Hamburger Menu */
.hamburger-menu {
    position: relative;
}

.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    gap: 4px;
    padding: 0;
}

.hamburger-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-strong);
}

.hamburger-btn.open {
    background: var(--bg-hover);
}

.hamburger-btn span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 1px;
    transition: all var(--transition-fast);
}

.hamburger-btn:hover span {
    background: var(--text-primary);
}

.hamburger-btn.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.hamburger-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 0.5rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-fast);
}

.hamburger-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hamburger-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.hamburger-dropdown a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.hamburger-dropdown a.active {
    background: var(--accent-primary);
    color: white;
}

.hamburger-dropdown a svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.hamburger-dropdown a:hover svg,
.hamburger-dropdown a.active svg {
    opacity: 1;
}

.hamburger-divider {
    height: 1px;
    background: var(--border-default);
    margin: 0.5rem 0;
}

/* View Switcher */
.view-switcher {
    display: flex;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 0.25rem;
    gap: 0.25rem;
}

.btn--view {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    background: transparent;
    color: var(--text-muted);
    border: none;
}

.btn--view:hover {
    color: var(--text-primary);
}

.btn--view.btn--active {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.view-switcher__group {
    display: flex;
    gap: 0.25rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-sm);
    padding: 0.125rem;
}

.view-switcher__divider {
    width: 1px;
    background: var(--border-subtle);
    margin: 0.25rem 0.125rem;
}

/* Zoom Controls */
.zoom-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 0.25rem;
}

.zoom-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.zoom-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.zoom-btn--reset {
    width: auto;
    padding: 0 0.5rem;
    font-size: 0.625rem;
    font-weight: 500;
}

.zoom-level {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    min-width: 36px;
    text-align: center;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn--primary {
    background: var(--text-primary);
    color: var(--bg-base);
}

.btn--primary:hover {
    background: var(--text-secondary);
}

.btn--secondary {
    background: var(--accent-primary);
    color: white;
}

.btn--secondary:hover {
    background: var(--accent-primary-hover);
}

.btn--ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-default);
}

.btn--ghost:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn--danger {
    background: var(--accent-danger);
    color: white;
}

.btn--add {
    background: var(--accent-success);
    color: white;
}

.btn--add:hover {
    background: #16a34a;
}

/* ========================================
   Main Layout
   ======================================== */
.main {
    display: grid;
    grid-template-columns: 250px 1fr;
    flex: 1;
    overflow: hidden;
}

/* ========================================
   Sidebar
   ======================================== */
.sidebar {
    background: var(--bg-surface);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar__title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar__legend {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.5rem 0.5rem 0.75rem;
    min-height: 28px;
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.legend-icon {
    color: var(--accent-warning);
}

.legend-hint {
    margin-left: auto;
    font-size: 0.625rem;
    color: var(--text-faint);
    font-style: italic;
}

.sidebar__list {
    flex: 1;
    overflow-y: auto;
    padding: 0.25rem 0.375rem;
}

.sidebar__stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem;
    border-top: 1px solid var(--border-subtle);
}

.sidebar__stats .header-stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.6875rem;
}

.sidebar__footer {
    padding: 0.5rem;
    border-top: 1px solid var(--border-subtle);
}

.btn--full {
    width: 100%;
}

/* ========================================
   Personnel Card
   ======================================== */
.person-card {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.375rem;
    background: transparent;
    border-radius: var(--radius-sm);
    margin-bottom: 0.0625rem;
    cursor: grab;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.person-card:hover {
    background: var(--bg-elevated);
    border-color: var(--border-default);
}

.person-card--highlighted {
    background: var(--bg-elevated);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px var(--accent-primary);
}

.person-card.dragging {
    opacity: 0.5;
}

.person-card.conflict {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
}

.person-card__avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.6875rem;
    color: white;
    flex-shrink: 0;
}

.person-card__info {
    flex: 1;
    min-width: 0;
}

.person-card__name {
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--text-primary);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.person-card__meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    line-height: 1.1;
}

.person-card__role {
    font-size: 0.6875rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.person-card__stats {
    display: flex;
    gap: 0.25rem;
}

.stat {
    font-size: 0.625rem;
    color: var(--text-faint);
    padding: 0.125rem 0.25rem;
    background: var(--bg-base);
    border-radius: var(--radius-sm);
}

.stat--danger {
    color: var(--accent-danger);
    background: rgba(239, 68, 68, 0.1);
}

.stat-virtual {
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.7;
}

.person-card__edit {
    opacity: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.125rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.person-card:hover .person-card__edit {
    opacity: 1;
}

.person-card__edit:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

/* ========================================
   Timeline Container
   ======================================== */
.timeline-container {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 1rem;
    background: var(--bg-base);
}

.timeline {
    flex: 1;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    overflow: auto;
    display: flex;
    flex-direction: column;
    --zoom-scale: 1;
}

.timeline__header {
    display: flex;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    flex-shrink: 0;
    padding-left: 1.5rem;
}

.timeline__month {
    flex: 1;
    min-width: 0;
    padding: 0.625rem 0.5rem;
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-muted);
    border-right: 1px solid var(--border-subtle);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline__month:last-child {
    border-right: none;
}

.timeline__body {
    flex: 1;
    overflow-y: auto;
    position: relative;
}

.project-rows {
    min-height: 100%;
}

/* Project Row */
.project-row {
    position: relative;
    height: calc(36px * var(--zoom-scale));
    border-bottom: 1px solid var(--border-subtle);
    padding-left: 1.5rem;
}

.project-row:first-child {
    margin-top: 0.5rem;
}

.project-row:last-child {
    border-bottom: none;
}

.project-row.drag-over-above {
    box-shadow: inset 0 2px 0 0 var(--accent-primary);
}

.project-row.drag-over-below {
    box-shadow: inset 0 -2px 0 0 var(--accent-primary);
}

.project-row__label {
    position: absolute;
    top: 50%;
    left: 2.5rem;
    transform: translateY(-50%);
    color: var(--text-faint);
    font-size: 0.75rem;
    font-style: italic;
}

.project-row__drag-handle {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
    cursor: grab;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 10;
}

.project-row:hover .project-row__drag-handle {
    opacity: 1;
}

.project-row__drag-handle:hover {
    color: var(--text-secondary);
}

.project-row__drag-handle:active {
    cursor: grabbing;
}

.project-row.dragging {
    opacity: 0.5;
    background: var(--bg-hover);
}

/* Grid Lines */
.timeline__grid {
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 0;
    bottom: 0;
    display: flex;
    pointer-events: none;
}

.timeline__grid-line {
    flex: 1;
    min-width: 0;
    border-right: 1px solid var(--border-subtle);
    position: relative;
}

.timeline__grid-line:last-child {
    border-right: none;
}

.timeline__grid-half {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-subtle);
    opacity: 0.5;
}

.timeline__today-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-danger);
    z-index: 1;
    pointer-events: none;
}

.timeline__today-label {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--accent-danger);
    text-transform: uppercase;
    white-space: nowrap;
}

/* ========================================
   Project Bar
   ======================================== */
.project-bar {
    position: absolute;
    top: calc(4px * var(--zoom-scale));
    height: calc(28px * var(--zoom-scale));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    cursor: move;
    transition: box-shadow var(--transition-fast);
    min-width: 100px;
    margin-left: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.project-bar:hover {
    box-shadow: var(--shadow-md);
    filter: brightness(0.85);
}

.project-bar--dimmed {
    opacity: 0.25;
    filter: grayscale(0.5);
}

.project-bar--dimmed:hover {
    opacity: 0.4;
    filter: grayscale(0.3) brightness(0.85);
}

.project-bar--placeholder {
    background: var(--bg-elevated);
    border: 2px dashed var(--border-strong);
    box-shadow: none;
}

.project-bar--placeholder .project-bar__name {
    color: var(--text-secondary);
    text-shadow: none;
}

.project-bar--placeholder .role-slot--empty {
    background: rgba(0, 0, 0, 0.1);
    border-color: var(--border-default);
    color: var(--text-muted);
}

.project-bar--placeholder .role-slot--filled {
    background: rgba(0, 0, 0, 0.1);
    border-color: var(--border-default);
    color: var(--text-secondary);
}

.project-bar--placeholder .project-bar__edit {
    color: var(--text-muted);
}

.project-bar__content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.project-bar__name {
    font-size: 0.6875rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 40px;
}

.project-bar__edit {
    background: none;
    border: none;
    color: white;
    opacity: 0;
    cursor: pointer;
    font-size: 0.6875rem;
    padding: 0.125rem;
    transition: opacity var(--transition-fast);
    flex-shrink: 0;
}

.project-bar:hover .project-bar__edit {
    opacity: 0.7;
}

.project-bar__edit:hover {
    opacity: 1 !important;
}

.project-bar__roles {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

/* Role Slots */
.role-slot {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    padding: 0.125rem 0.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.5rem;
    transition: all var(--transition-fast);
    min-width: 36px;
    height: 18px;
}

.role-slot--empty {
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.5);
}

.role-slot--empty.drag-over {
    background: rgba(59, 130, 246, 0.3);
    border-color: var(--accent-primary);
}

.role-slot--filled {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    border-left: 2px solid var(--person-color, #3b82f6);
}

.role-slot__label {
    font-weight: 600;
    opacity: 0.7;
    font-size: 0.5rem;
    text-transform: uppercase;
}

.role-slot__placeholder {
    opacity: 0.5;
}

.role-slot__name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.role-slot__remove {
    background: none;
    border: none;
    color: white;
    opacity: 0;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0;
    line-height: 1;
}

.role-slot:hover .role-slot__remove {
    opacity: 0.6;
}

.role-slot__remove:hover {
    opacity: 1 !important;
}

/* Support slot */
.role-slot--support {
    min-width: 50px;
    max-width: 120px;
}

.role-slot--support.role-slot--filled {
    border-left: 2px solid var(--accent-cyan);
}

.support-chips {
    display: flex;
    gap: 0.125rem;
    flex-wrap: nowrap;
    overflow: hidden;
}

.support-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    padding: 0.0625rem 0.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.5rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.support-chip__remove {
    background: none;
    border: none;
    color: white;
    opacity: 0;
    cursor: pointer;
    font-size: 0.625rem;
    padding: 0;
    line-height: 1;
    margin-left: 0.0625rem;
}

.support-chip:hover .support-chip__remove {
    opacity: 0.7;
}

.support-chip__remove:hover {
    opacity: 1 !important;
}

/* Resize Handles */
.project-bar__resize {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10px;
    cursor: ew-resize;
    background: transparent;
}

.project-bar__resize:hover {
    background: rgba(255, 255, 255, 0.1);
}

.project-bar__resize--left {
    left: 0;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.project-bar__resize--right {
    right: 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Timeline Navigation */
.timeline-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
}

.timeline-nav__center {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timeline-nav__label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.timeline-nav__controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.timeline-nav__views {
    display: flex;
    gap: 0.25rem;
}

.btn--view-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
    min-width: auto;
}

/* ========================================
   Workload View
   ======================================== */
.workload-view {
    padding: 1rem;
}

.workload-view__header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.workload-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.workload-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.workload-toggle__switch {
    width: 36px;
    height: 20px;
    background: var(--bg-hover);
    border-radius: 10px;
    position: relative;
    transition: background var(--transition-fast);
}

.workload-toggle__switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: left var(--transition-fast);
}

.workload-toggle input:checked + .workload-toggle__switch {
    background: var(--accent-primary);
}

.workload-toggle input:checked + .workload-toggle__switch::after {
    left: 18px;
}

.workload-toggle__label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.workload-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.workload-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.workload-card--conflict {
    border-color: rgba(239, 68, 68, 0.3);
}

.workload-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.workload-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 0.75rem;
}

.workload-card__info {
    flex: 1;
}

.workload-card__name {
    font-weight: 600;
    font-size: 0.875rem;
}

.workload-card__role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.workload-card__metrics {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.workload-metric__header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.375rem;
}

.workload-metric__label {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.workload-metric__value {
    font-size: 0.6875rem;
    font-weight: 600;
}

.workload-metric__bar {
    height: 6px;
    background: var(--bg-base);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.workload-metric__fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-base);
}

.workload-metric__fill--danger {
    background: var(--accent-danger);
}

.workload-metric__projects {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.375rem;
}

.workload-card__summary {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.6875rem;
    color: var(--text-muted);
}

/* Mini Tags */
.mini-tag {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    font-size: 0.5625rem;
    font-weight: 500;
    color: white;
}

.mini-tag--placeholder {
    background: transparent !important;
    border: 1px dashed var(--border-strong);
    color: var(--text-secondary);
}

/* ========================================
   Conflicts View
   ======================================== */
.conflicts-view {
    padding: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.conflicts-section {
    margin-bottom: 1.5rem;
}

.conflicts-section__title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.conflict-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
}

.conflict-item--error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.conflict-item--warning {
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.conflict-item__icon {
    font-size: 1rem;
}

.conflict-item--error .conflict-item__icon {
    color: var(--accent-danger);
}

.conflict-item--warning .conflict-item__icon {
    color: var(--accent-warning);
}

.conflict-item__content {
    flex: 1;
}

.conflict-item__title {
    font-weight: 500;
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
}

.conflict-item__desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.conflict-item__projects {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.conflict-item__months {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(239, 68, 68, 0.2);
}

.conflict-month-detail {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
    line-height: 1.4;
}

.conflict-month-detail strong {
    color: var(--text-primary);
}

/* Workload Card Conflict Months */
.workload-card__conflicts {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
}

.workload-conflicts__title {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--accent-danger);
    margin-bottom: 0.5rem;
}

.conflict-month {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(239, 68, 68, 0.1);
}

.conflict-month:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.conflict-month__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.375rem;
}

.conflict-month__label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.conflict-month__stats {
    display: flex;
    gap: 0.5rem;
    font-size: 0.625rem;
    font-weight: 500;
}

.conflict-month__projects {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.conflict-month__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.625rem;
}

.conflict-month__role {
    color: var(--text-muted);
    font-weight: 500;
    min-width: 70px;
}

/* Text Utilities */
.text-danger {
    color: var(--accent-danger) !important;
}

/* ========================================
   Modal
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.modal.open {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn var(--transition-fast);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal__content {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    width: 100%;
    max-width: 380px;
    box-shadow: var(--shadow-lg);
    animation: slideUp var(--transition-base);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal__title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Form */
.form-group {
    margin-bottom: 0.875rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--text-secondary);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="email"],
.form-group input[type="month"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
    background: var(--bg-base);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    font-family: inherit;
    color-scheme: dark;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-faint);
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 2rem;
}

.form-group input[type="color"] {
    width: 40px;
    height: 28px;
    padding: 2px;
    background: var(--bg-base);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex-shrink: 0;
}

.color-picker-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    flex: 1;
}

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.color-swatch:hover {
    transform: scale(1.15);
}

.color-swatch.active {
    border-color: white;
    box-shadow: 0 0 0 2px var(--text-primary);
}

.color-match-hint {
    margin-top: 0.375rem;
    padding: 0.375rem 0.5rem;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    color: #22c55e;
}

/* Toggle Switch */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.toggle-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.toggle-switch {
    display: inline-block;
    width: 36px;
    height: 20px;
    min-width: 36px;
    background: var(--bg-hover);
    border-radius: 10px;
    position: relative;
    transition: background var(--transition-fast);
    flex-shrink: 0;
    overflow: hidden;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: left var(--transition-fast);
}

.toggle-label input:checked + .toggle-switch::after {
    left: 18px;
}

.toggle-label input:checked + .toggle-switch {
    background: var(--accent-primary);
}

.toggle-text {
    font-size: 0.75rem;
    color: var(--text-primary);
}

.toggle-hint {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

/* Label Hint */
.label-hint {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.625rem;
}

/* Pauses List */
.pauses-list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
}

.pauses-empty {
    font-size: 0.6875rem;
    color: var(--text-muted);
    padding: 0.5rem;
    text-align: center;
    background: var(--bg-base);
    border-radius: var(--radius-sm);
}

.pause-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.375rem 0.5rem;
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
}

.pause-item__dates {
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

.pause-item__remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0 0.25rem;
    line-height: 1;
    transition: color var(--transition-fast);
}

.pause-item__remove:hover {
    color: var(--accent-danger);
}

/* Pause Dialog */
.pause-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}

.pause-dialog__content {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    width: 100%;
    max-width: 320px;
}

.pause-dialog__content h3 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pause-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
}

.modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--border-subtle);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-muted);
    text-align: center;
}

.empty-state__icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.3;
}

.empty-state__text {
    font-size: 0.8125rem;
    color: var(--text-faint);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-strong);
}

/* Date/month input icons */
::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: white;
}

/* Responsive */
@media (max-width: 900px) {
    .header__stats {
        display: none;
    }
    .header__username-label {
        display: none;
    }
}

/* ========================================
   Date Prompt (Resize Confirmation)
   ======================================== */
.date-prompt {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.3);
    animation: fadeIn var(--transition-fast);
}

.date-prompt__content {
    position: fixed;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 1rem;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    animation: slideUp var(--transition-base);
}

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

.date-prompt__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.date-prompt__title {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text-primary);
}

.date-prompt__label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.date-prompt__input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.date-prompt__input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.date-prompt__actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.date-prompt__actions .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.date-prompt__content--wide {
    min-width: 320px;
}

.date-prompt__row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.date-prompt__field {
    flex: 1;
}

.date-prompt__field label {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.date-prompt__field .date-prompt__input {
    margin-bottom: 0;
}

.date-prompt__note {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--accent-primary);
}

/* ========================================
   Team Tabs
   ======================================== */
.timeline-container__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.team-tabs {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0;
    overflow-x: auto;
    flex-shrink: 0;
}

.team-tabs__empty {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.team-tab {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.6875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.team-tab:hover {
    background: var(--bg-hover);
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.team-tab--active {
    background: var(--team-color, var(--accent-primary));
    border-color: var(--team-color, var(--accent-primary));
    color: white;
}

.team-tab--active:hover {
    background: var(--team-color, var(--accent-primary));
    border-color: var(--team-color, var(--accent-primary));
    color: white;
    filter: brightness(1.1);
}

.team-tab__name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-tab__count {
    padding: 0.125rem 0.375rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.5625rem;
}

.team-tab--active .team-tab__count {
    background: rgba(255, 255, 255, 0.2);
}

.team-tab__edit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-sm);
    opacity: 0;
    transition: opacity var(--transition-fast), background var(--transition-fast);
    cursor: pointer;
    margin-left: 0.125rem;
}

.team-tab:hover .team-tab__edit {
    opacity: 0.6;
}

.team-tab__edit:hover {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.15);
}

.team-tab--active .team-tab__edit:hover {
    background: rgba(255, 255, 255, 0.2);
}

.team-tab--add {
    width: 28px;
    height: 28px;
    padding: 0;
    justify-content: center;
    font-size: 1rem;
    font-weight: 400;
    color: var(--accent-success);
    background: transparent;
    border-color: var(--accent-success);
    border-style: dashed;
}

.team-tab--add:hover {
    color: white;
    border-color: var(--accent-success);
    background: var(--accent-success);
}

/* ========================================
   Team Modal (Wide)
   ======================================== */
.modal__content--wide {
    max-width: 500px;
}

.form-row--top {
    align-items: flex-start;
}

/* Checkbox List */
.checkbox-list {
    max-height: 160px;
    overflow-y: auto;
    background: var(--bg-base);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    padding: 0.375rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.checkbox-item:hover {
    background: var(--bg-elevated);
}

.checkbox-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

.checkbox-item__color {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.checkbox-item__label {
    font-size: 0.75rem;
    color: var(--text-primary);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Small button variant */
.btn--sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .main {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .header__center {
        display: none;
    }
}

/* ========================================
   Loading State
   ======================================== */
body.loading .app {
    opacity: 0.5;
    pointer-events: none;
}

body.loading::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-default);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 9999;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ========================================
   Capacity Heatmap View
   ======================================== */
.heatmap-view {
    padding: 1rem;
}

.heatmap-row {
    display: flex;
    border-bottom: 1px solid var(--border-subtle);
}

.heatmap-row--header {
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    position: sticky;
    top: 0;
    background: var(--bg-surface);
    z-index: 5;
}

.heatmap-cell {
    flex: 1;
    padding: 0.5rem;
    text-align: center;
    min-width: 60px;
}

.heatmap-cell--name {
    flex: 0 0 180px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.heatmap-name {
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--text-primary);
}

.heatmap-role {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.heatmap-cell--data {
    margin: 2px;
    border-radius: var(--radius-sm);
    min-height: 32px;
    cursor: default;
    transition: transform var(--transition-fast);
}

.heatmap-cell--data:hover {
    transform: scale(1.05);
}

.heatmap-cell--empty { background: var(--bg-elevated); }
.heatmap-cell--low { background: rgba(34, 197, 94, 0.25); }
.heatmap-cell--medium { background: rgba(234, 179, 8, 0.35); }
.heatmap-cell--high { background: rgba(249, 115, 22, 0.4); }
.heatmap-cell--conflict { background: rgba(239, 68, 68, 0.45); }

.heatmap-legend {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    justify-content: center;
    flex-wrap: wrap;
}

.heatmap-legend__item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.heatmap-swatch {
    width: 16px;
    height: 16px;
    border-radius: var(--radius-sm);
}

.heatmap-swatch--empty { background: var(--bg-elevated); border: 1px solid var(--border-subtle); }
.heatmap-swatch--low { background: rgba(34, 197, 94, 0.25); }
.heatmap-swatch--medium { background: rgba(234, 179, 8, 0.35); }
.heatmap-swatch--high { background: rgba(249, 115, 22, 0.4); }
.heatmap-swatch--conflict { background: rgba(239, 68, 68, 0.45); }
