/* Theme tokens (:root + [data-theme] skins) now live in the shared css/theme.css,
   linked before this file. Canonical source: camo-studio/shared-theme/theme.css. */

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    background-image:
        radial-gradient(circle at 0% 0%, rgba(241, 104, 33, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(0, 194, 255, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.main-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    align-items: flex-start;
    transition: grid-template-columns 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-layout.sidebar-folded {
    grid-template-columns: 80px 1fr;
}

.sidebar {
    position: sticky;
    top: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.folded {
    padding: 20px 10px;
}

.sidebar h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.project-list {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 5px;
}

@media (max-width: 1000px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        order: 2;
        /* Move library BELOW the studio on mobile */
    }
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.8rem !important;
    }

    .container {
        padding: 20px 10px;
    }

    #debug-toggle {
        display: none !important;
        /* Hide console on small mobile to avoid overlap */
    }

    #debug-log {
        display: none !important;
    }
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, #999 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

/* Sync Banner */
.sync-banner {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-highlight);
    padding: 12px 24px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2000;
    box-shadow: var(--shadow-soft);
    font-weight: 500;
    font-size: 0.9em;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Tabs */
.tabs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.tabs {
    display: flex;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
}

.tabs button {
    background: transparent;
    border: none;
    padding: 8px 24px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tabs button.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.resync-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.resync-btn:hover:not(:disabled) {
    border-color: var(--accent-primary);
    background: rgba(241, 104, 33, 0.1);
}

.resync-btn:active {
    transform: scale(0.98);
}

.resync-btn.danger {
    color: var(--danger-color);
}

.resync-btn.danger:hover {
    background: rgba(231, 76, 60, 0.1);
    border-color: var(--danger-color);
}

/* Cards */
.card {
    background: var(--bg-secondary);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
    animation: fadeIn 0.6s ease-out;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-2px);
    border-color: var(--border-highlight);
}

.card h2 {
    margin-top: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.logic-summary {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-primary);
    border-left: 4px solid var(--accent-primary);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-stat .label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.summary-stat .value {
    font-weight: 700;
    color: var(--text-primary);
}

.summary-content {
    display: flex;
    gap: 32px;
    align-items: center;
}

.logic-summary {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-primary);
    border-left: 4px solid var(--accent-primary);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logic-summary .label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.logic-summary .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.target-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.adapted-hint {
    font-size: 0.7rem;
    background: rgba(241, 104, 33, 0.15);
    color: var(--accent-primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

/* Input Styles */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

input[type="text"],
input[type="number"],
select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

input:focus,
select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(241, 104, 33, 0.1);
}

input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Blend Row */
.blend-row {
    display: grid;
    grid-template-columns: 48px 1.5fr 85px 85px 120px;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-primary);
}

.mini-thumb {
    width: 48px;
    height: 48px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-highlight);
}

.mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-weight: 700;
    color: var(--text-muted);
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.clear-input-btn {
    position: absolute;
    right: 8px;
    background: rgba(229, 62, 62, 0.1);
    border: none;
    color: #e53e3e;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0.6;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.clear-input-btn:hover {
    opacity: 1;
    background: rgba(229, 62, 62, 0.2);
    transform: scale(1.1) rotate(90deg);
}

.clear-input-btn:active {
    transform: scale(0.9);
}

input.has-product {
    padding-right: 42px !important;
    border-color: var(--accent-secondary);
    background: rgba(0, 194, 255, 0.05);
}

.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1c;
    border: 1px solid var(--border-highlight);
    border-radius: 8px;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: var(--shadow-soft);
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-primary);
}

.suggestion-item:hover,
.suggestion-item.active {
    background: rgba(255, 255, 255, 0.05);
}

.suggestion-item img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
}

.sku-tag {
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
}

.series-tag {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-secondary);
}

.gu-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    padding: 2px 6px;
    border-radius: 10px;
}

.column-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.inline-result span {
    font-weight: 700;
    font-size: 1.1rem;
}

.catalyst-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 90px;
    height: 48px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.blend-row:hover .catalyst-badge {
    border-color: var(--accent-secondary);
    background: rgba(0, 194, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 194, 255, 0.1);
}

.cat-label {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}

.cat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-secondary);
    line-height: 1;
}

.cat-ratio {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.matcher-row {
    grid-template-columns: 48px 1.5fr 80px 80px 80px 80px !important;
}

.highlight-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--accent-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Small Buttons */
.small-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-primary);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.small-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-highlight);
}

.small-btn.danger {
    color: var(--danger-color);
}

.small-btn.danger:hover {
    background: rgba(231, 76, 60, 0.1);
    border-color: var(--danger-color);
}

/* Aesthetics Selector */
.action-btn-header {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-primary);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s;
    color: var(--text-secondary);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.action-btn-header:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
    color: #fff;
    transform: translateY(-2px);
}

.gu-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-primary);
    padding: 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.gu-btn.active {
    background: rgba(241, 104, 33, 0.15);
    border-color: var(--accent-primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(241, 104, 33, 0.2);
}

.gu-btn.unachievable:not(.active) {
    opacity: 0.3;
    filter: grayscale(1);
    cursor: not-allowed;
    border-color: var(--border-primary);
}

.gu-btn.inactive:hover {
    background: transparent;
    border-color: var(--border-primary);
}

/* Slider */
.new-slider-wrapper {
    position: relative;
    padding: 0 25px;
    margin-bottom: 45px;
}

.new-slider-wrapper.disabled-look {
    opacity: 0.4;
    filter: grayscale(1);
    cursor: not-allowed;
}

.gloss-slider.enhanced-slider {
    width: 100%;
    margin: 15px 0;
}

.slider-ticks {
    position: relative;
    width: 100%;
    height: 30px;
    margin-top: -5px;
}

.tick-item {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(-50%);
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tick-mark {
    width: 2px;
    height: 8px;
    background: var(--border-highlight);
    margin-bottom: 4px;
}

.tick-item.major .tick-mark {
    height: 12px;
    background: var(--accent-primary);
    width: 2px;
}

.tick-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    white-space: nowrap;
}

.tick-item.major .tick-label {
    color: var(--text-primary);
}

.tick-sub {
    font-size: 0.6rem;
    color: var(--text-muted);
    opacity: 0.6;
    margin-top: 2px;
}

.is-current .tick-label {
    color: var(--accent-primary) !important;
    font-weight: 900 !important;
    font-size: 0.85rem !important;
    text-shadow: 0 0 10px rgba(241, 104, 33, 0.3);
}

.is-current .tick-mark {
    background: var(--accent-primary) !important;
    height: 12px !important;
    width: 3px !important;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.ratio-input {
    width: 80px !important;
    text-align: center;
}

input[type="range"] {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: var(--thumb-width);
    height: var(--thumb-width);
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(241, 104, 33, 0.4);
    transition: transform 0.1s;
    margin-top: 0;
    /* Align perfectly if height matches or flex aligns it */
}

input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.1);
    cursor: grabbing;
}

/* Dropdown Wrapper */
.dropdown-wrapper {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 320px;
    background: #1a1a1c;
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: 16px;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.dropdown-wrapper:hover .dropdown-content {
    display: block;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-item {
    padding: 12px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 4px;
}

.project-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(241, 104, 33, 0.3);
    transform: translateX(4px);
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.project-info strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.project-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}


/* Print Section Refinement */
#print-section {
    display: none;
    padding: 40px;
}



/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .blend-row {
        grid-template-columns: 48px 1fr 1fr;
    }

    .inline-result:nth-child(n+4) {
        grid-column: span 3;
    }
}

/* Integrated Results Bar */
.integrated-results {
    margin-top: 15px;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-primary);
    border-left: 4px solid var(--accent-secondary);
}

.result-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.result-row span strong {
    color: var(--accent-secondary);
}

.result-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
}

/* Match Overrides & GU Badges */
.override-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.75rem;
}

.override-input {
    width: 60px;
    padding: 4px;
    font-size: 0.8rem;
    border-radius: 4px;
    background: var(--input-bg);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
}

.gu-badge {
    background: var(--accent-primary);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.mini-placeholder.blend-swatch {
    background: linear-gradient(135deg, #666 0%, #333 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.6rem;
    text-transform: uppercase;
}

/* Sidebar Swatches */
.blend-swatches {
    display: flex;
    align-items: center;
}

.mini-swatch-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    overflow: hidden;
    background: #000;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.mini-swatch-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-swatch-circle:hover {
    transform: scale(3.0);
    z-index: 50 !important;
}

/* Status Details */
.status-badge-new {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-primary);
    color: var(--text-muted);
}

.status-badge-new.valid {
    background: rgba(56, 161, 105, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(56, 161, 105, 0.1);
}

.status-badge-new.invalid {
    background: rgba(229, 62, 62, 0.1);
    border-color: #e53e3e;
    color: #e53e3e;
}

/* Inactive/Unachievable Targets */
.gu-btn.inactive {
    opacity: 0.5;
    filter: grayscale(1);
    cursor: not-allowed;
    border-color: var(--border-primary);
}

.gu-btn.inactive:hover {
    background: transparent;
    border-color: var(--border-primary);
}

/* Studio Tabs (Integrated into main card) */
.mode-card-container {
    display: flex;
    flex-direction: column;
}

.studio-tabs {
    display: flex;
    gap: 2px;
    padding: 0 10px;
}

.studio-tabs button {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-bottom: none;
    padding: 12px 24px;
    border-radius: 8px 8px 0 0;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.7;
}

.studio-tabs button.active {
    background: var(--bg-secondary);
    color: var(--accent-primary);
    opacity: 1;
    border-top: 2px solid var(--accent-primary);
}

/* Inline Edit Polish */
.inline-edit {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--accent-primary);
    border-radius: 4px;
    color: #fff;
    padding: 2px 6px;
    font-size: 0.95rem;
    font-weight: 700;
    width: 100%;
}

.inline-edit:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(241, 104, 33, 0.2);
}

/* Sidebar Delete Icon Fix - World Class Styling */
.project-list .delete-icon {
    all: unset !important;
    background: rgba(229, 62, 62, 0.1) !important;
    color: #e53e3e !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    opacity: 0.4 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    flex-shrink: 0 !important;
    line-height: normal !important;
    font-size: 1.2rem !important;
    border: none !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-shadow: none !important;
}

.project-list .delete-icon.confirming {
    width: auto !important;
    padding: 0 10px !important;
    height: 24px !important;
    border-radius: 6px !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    opacity: 1 !important;
    background: #e53e3e !important;
    color: #fff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.project-item:hover .delete-icon {
    opacity: 1 !important;
}

.delete-icon:hover {
    background: rgba(229, 62, 62, 0.2) !important;
    transform: scale(1.1) !important;
}

.delete-icon.confirming:hover {
    background: #c53030 !important;
    transform: scale(1.05) !important;
}

/* Sidebar Info Polish */
.project-info {
    flex: 1;
    /* overflow: hidden; Removed to allow swatch expansion */
    margin-right: 12px;
}

.project-item:hover .delete-icon {
    opacity: 1;
}

.delete-icon:hover {
    background: rgba(229, 62, 62, 0.2);
    transform: scale(1.1);
}

.delete-icon.confirming:hover {
    background: #c53030;
    transform: scale(1.05);
}

.mode-container.card {
    border-top-left-radius: 0;
    margin-top: -1px;
    /* Stitch to tabs */
}

/* Section Folding */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
}

/* Catalyst Result Badges */
.catalyst-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 6px 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 90px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-secondary);
    line-height: 1;
}

.cat-ratio {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Custom Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

.modal-card {
    background: #1a1a1c;
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}