
:root {


    /* Основные цвета */
    --primary: #08457e;
    --primary-hover: #063961;
    --primary-light: rgba(8, 69, 126, 0.12);

    /* Акцентные цвета - контрастные */
    --success: #059669;  /* Изумрудный */
    --warning: #f59e0b;  /* Янтарный */
    --danger: #dc2626;   /* Красный */

    /* Серые с легким синеватым оттенком */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
            --background: #FFFFFF;
            --surface: #FAFBFC;
            --surface-elevated: #FFFFFF;
            --border: #EAEEF2;
            --border-strong: #D1D9E0;
            --text-primary: #24292F;
            --text-secondary: #656D76;
            --text-tertiary: #8C959F;
            --space-1: 4px;
            --space-2: 8px;
            --space-3: 12px;
            --space-4: 16px;
            --space-5: 20px;
            --space-6: 24px;
            --space-8: 32px;
            --space-10: 40px;
            --space-12: 48px;
            --space-16: 64px;
            --space-20: 80px;
            --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            --font-size-xs: 12px;
            --font-size-sm: 14px;
            --font-size-base: 16px;
            --font-size-lg: 18px;
            --font-size-xl: 20px;
            --font-size-2xl: 24px;
            --font-size-3xl: 32px;
            --shadow-sm: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
            --shadow-md: 0 4px 8px -2px rgba(16, 24, 40, 0.1), 0 2px 4px -2px rgba(16, 24, 40, 0.06);
            --shadow-lg: 0 12px 16px -4px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.03);
            --radius-sm: 6px;
            --radius-md: 8px;
            --radius-lg: 12px;
            --radius-xl: 16px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--font-family);
            background: var(--background);
            color: var(--text-primary);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 var(--space-6);
        }

        .header {
            border-bottom: 1px solid var(--border);
            background: var(--surface-elevated);
            backdrop-filter: blur(20px);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .header-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 64px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: var(--space-3);
            font-weight: 600;
            font-size: var(--font-size-lg);
            color: var(--text-primary);
        }

        .logo-icon {
            width: 32px;
            height: 32px;
            background: linear-gradient(135deg, var(--primary), var(--primary-hover));
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 700;
        }

        .badge {
            background: var(--primary-light);
            color: var(--primary);
            padding: var(--space-1) var(--space-2);
            border-radius: var(--radius-sm);
            font-size: var(--font-size-xs);
            font-weight: 500;
        }

        .main {
            padding: var(--space-8) 0;
        }

        .intro-section {
            text-align: center;
            margin-bottom: var(--space-12);
        }

        .intro-title {
            font-size: var(--font-size-3xl);
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: var(--space-3);
        }

        .intro-subtitle {
            font-size: var(--font-size-lg);
            color: var(--text-secondary);
            max-width: 600px;
            margin: 0 auto;
        }

        .section {
            background: var(--surface-elevated);
            padding: var(--space-6);  /* Увеличиваем padding */
            margin: var(--space-6) auto;  /* Добавляем вертикальные отступы */
            max-width: 1200px;
            border: 1px solid var(--border);
            border-radius: var(--radius-xl);
            margin-bottom: var(--space-6);
            overflow: hidden;
        }

        .section-header {
            padding: var(--space-6);
            border-bottom: 1px solid var(--border);
            background: var(--surface);
        }

        .section-title {
            font-size: var(--font-size-xl);
            font-weight: 600;
            margin-bottom: var(--space-2);
        }

        .section-subtitle {
            color: var(--text-secondary);
            font-size: var(--font-size-sm);
        }

        .section-content {
            padding: var(--space-6);
        }

        .upload-area {
            border: 2px dashed var(--border-strong);
            border-radius: var(--radius-lg);
            padding: var(--space-6);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            min-height: 200px;
            text-align: center;
            transition: all 0.2s ease;
            cursor: pointer;
            background: var(--surface);
        }

        .upload-area:hover {
            border-color: var(--primary);
            background: var(--primary-light);
        }

        .upload-area.dragover {
            border-color: var(--primary);
            background: var(--primary-light);
        }

        .upload-icon {
            width: 48px;
            height: 48px;
            margin: 0 auto var(--space-4);
            background: var(--gray-100);
            border-radius: var(--radius-lg);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: var(--text-secondary);
        }

        .upload-text {
            font-size: var(--font-size-base);
            font-weight: 500;
            margin-bottom: var(--space-1);
        }

        .upload-hint {
            color: var(--text-secondary);
            font-size: var(--font-size-sm);
        }

        #audio-file {
            display: none;
        }


        .progress-container {
            margin-top: var(--space-4);
            padding: var(--space-4);
            background: var(--gray-50);
            border-radius: var(--radius-lg);
            border: 1px solid var(--border);
        }

        .progress-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: var(--space-3);
        }

        .progress-title {
            font-size: var(--font-size-sm);
            font-weight: 600;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: var(--space-2);
        }

        .progress-percentage {
            font-size: var(--font-size-sm);
            color: var(--primary);
            font-weight: 700;
        }

        .progress-bar-wrapper {
            width: 100%;
            height: 8px;
            background: var(--gray-200);
            border-radius: 4px;
            overflow: hidden;
            position: relative;
        }

        .progress-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--primary), var(--primary-hover));
            transition: width 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .progress-bar-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            background: linear-gradient(
                90deg,
                transparent,
                rgba(255, 255, 255, 0.3),
                transparent
            );
            animation: shimmer 2s infinite;
        }

        @keyframes shimmer {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        .progress-status {
            margin-top: var(--space-2);
            font-size: var(--font-size-xs);
            color: var(--text-secondary);
        }

        .progress-file-info {
            font-size: var(--font-size-xs);
            color: var(--text-tertiary);
            margin-top: var(--space-1);
        }

        .analysis-section {
            margin-top: var(--space-4);
            padding: var(--space-4);
            background: var(--gray-50);
            border-radius: var(--radius-md);
            border: 1px solid var(--border);
            display: none;
        }

        .analysis-results {
            margin-top: var(--space-4);
        }

        .analysis-item {
            padding: var(--space-3);
            margin-bottom: var(--space-2);
            border-radius: var(--radius-md);
            background: white;
            border: 1px solid var(--border);
        }

        .analysis-item.warning {
            border-color: var(--warning);
            background: rgba(251, 133, 0, 0.05);
        }

        .analysis-item.success {
            border-color: var(--success);
            background: rgba(31, 136, 61, 0.05);
        }

        .waveform-container {
            background: var(--surface);
            border-radius: var(--radius-lg);
            padding: var(--space-4);
            margin-bottom: var(--space-4);
        }

        .waveform-controls {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: var(--space-4);
            flex-wrap: wrap;
            gap: var(--space-4);
        }

        .control-group {
            display: flex;
            align-items: center;
            gap: var(--space-4);
        }

        .control-label {
            font-size: var(--font-size-sm);
            font-weight: 500;
            color: var(--text-secondary);
        }

        .time-display {
            font-family: 'SF Mono', Monaco, Consolas, monospace;
            font-size: var(--font-size-sm);
            color: var(--text-secondary);
            background: var(--gray-100);
            padding: var(--space-2) var(--space-3);
            border-radius: var(--radius-sm);
        }

        #waveform {
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            background: white;
            height: 150px;
        }

        .playback-controls {
            display: flex;
            gap: var(--space-2);
            margin-top: var(--space-4);
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: var(--space-2);
            padding: var(--space-3) var(--space-4);
            border: 1px solid transparent;
            border-radius: var(--radius-md);
            font-size: var(--font-size-sm);
            font-weight: 500;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.15s ease;
            white-space: nowrap;
            background: none;
        }

        .btn-primary {
            background: var(--primary);
            color: white;
            box-shadow: var(--shadow-sm);
        }

        .btn-primary:hover {
            background: var(--primary-hover);
            box-shadow: var(--shadow-md);
        }

        .btn-secondary {
            background: var(--surface-elevated);
            color: var(--text-primary);
            border-color: var(--border);
            box-shadow: var(--shadow-sm);
        }

        .btn-compact {
            padding: var(--space-2) var(--space-3);
            font-size: var(--font-size-sm);
            white-space: nowrap;
        }

        .btn-secondary:hover {
            background: var(--gray-100);
            border-color: var(--border-strong);
        }

        .btn-success {
            background: var(--success);
            color: white;
        }

        .btn-success:hover {
            background: #1a7a35;
        }

        .btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .effects-grid {
            display: grid;
            gap: var(--space-4);
        }

        .effect-card {
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            background: var(--surface-elevated);
            transition: all 0.2s ease;

        }

        .effect-card:hover {
            border-color: var(--border-strong);
            box-shadow: var(--shadow-sm);
        }

        .effect-card.active {
            border-color: var(--primary);
            background: white;
            box-shadow: var(--shadow-md);
        }

        .effect-header {
            display: flex;
            flex-direction: column;

            gap: var(--space-3);
            padding: var(--space-4);
            border-bottom: 1px solid var(--border);
        }

        .toggle-row {
            display: flex;
            align-items: center;
            gap: var(--space-3);
        }

        .toggle-row .tech-badge {
            margin-left: auto;
        }

        .effect-toggle {
            position: relative;
            width: 44px;
            height: 24px;
            background: var(--gray-300);
            border-radius: 12px;
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .effect-toggle::after {
            content: '';
            position: absolute;
            left: 2px;
            top: 2px;
            width: 20px;
            height: 20px;
            background: white;
            border-radius: 50%;
            transition: all 0.2s ease;
            box-shadow: var(--shadow-sm);
        }

        .effect-title-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: var(--space-3);
            margin-bottom: var(--space-1);
        }


        .effect-checkbox:checked + .effect-toggle {
            background: var(--primary);
        }

        .effect-checkbox:checked + .effect-toggle::after {
            transform: translateX(20px);
        }

        .effect-checkbox {
            display: none;
        }

        .effect-info {

        }

        .effect-title {
            font-size: var(--font-size-base);
            font-weight: 600;
            margin-bottom: var(--space-1);
        }

        .effect-description {
            color: var(--text-secondary);
            font-size: var(--font-size-sm);
        }

        .tech-badge {
            background: var(--primary-light);
            color: var(--primary);
            padding: var(--space-1) var(--space-2);
            border-radius: var(--radius-sm);
            font-size: var(--font-size-xs);
            font-weight: 500;
        }

        .effect-params {
            padding: var(--space-4);
        }

        .effect-card.active .effect-params {
        display: block !important;
            box-sizing: border-box;
        }

        .param-grid {
            display: grid;
            gap: var(--space-3);
        }

        .param-group {
            display: grid;
            gap: var(--space-2);
        }

        .param-label {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: var(--font-size-sm);
            font-weight: 500;
            color: var(--text-secondary);
        }

        .param-value {
            font-family: 'SF Mono', Monaco, Consolas, monospace;
            font-size: var(--font-size-sm);
            color: var(--primary);
            font-weight: 600;
        }

        .range-slider {
            -webkit-appearance: none;
            width: 100%;
            height: 6px;
            background: var(--gray-200);
            border-radius: 3px;
            outline: none;
            transition: all 0.2s ease;
        }

        .range-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            background: var(--primary);
            border-radius: 50%;
            cursor: pointer;
            box-shadow: var(--shadow-sm);
            transition: all 0.15s ease;
        }

        .range-slider::-webkit-slider-thumb:hover {
            transform: scale(1.1);
            box-shadow: var(--shadow-md);
        }

        .range-slider::-moz-range-thumb {
            width: 18px;
            height: 6px;
            background: var(--primary);
            border-radius: 50%;
            cursor: pointer;
            border: none;
            box-shadow: var(--shadow-sm);
        }

        .format-selector {
            display: flex;
            gap: var(--space-2);
            margin: var(--space-4) 0;
        }

        .format-option {
            flex: 1;
            text-align: center;
        }

        .format-radio {
            display: none;
        }

        .format-label {
            display: block;
            padding: var(--space-3);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .format-radio:checked + .format-label {
            border-color: var(--primary);
            background: var(--primary-light);
            color: var(--primary);
        }

        .processing-section {

            position: sticky;
            bottom: var(--space-6);
            max-width: 1200px;
            margin: 0 auto;
            background: var(--surface-elevated);
            border: 1px solid var(--border);
            border-radius: var(--radius-xl);
            padding: var(--space-6);
            box-shadow: var(--shadow-lg);
            backdrop-filter: blur(20px);
        }

        .processing-info {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: var(--space-4);
            flex-wrap: wrap;
            gap: var(--space-3);
        }

        .selected-effects {
            color: var(--text-secondary);
            font-size: var(--font-size-sm);
        }

        .effects-count {
            background: var(--primary-light);
            color: var(--primary);
            padding: var(--space-1) var(--space-2);
            border-radius: var(--radius-sm);
            font-size: var(--font-size-xs);
            font-weight: 600;
            margin-left: var(--space-2);
        }

        .processing-buttons {
            display: flex;
            gap: var(--space-3);
            flex-wrap: wrap;
        }

        .trim-controls {
            background: var(--gray-50);
            border-radius: var(--radius-md);
            padding: var(--space-4);
            margin-top: var(--space-4);
        }

        .trim-inputs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: var(--space-4);
            margin-top: var(--space-3);
        }

        .trim-input {
            display: flex;
            flex-direction: column;
            gap: var(--space-1);
        }

        .trim-input input {
            padding: var(--space-2);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: var(--font-size-sm);
        }

        .disabled {
            opacity: 0.4;
            pointer-events: none;
        }

        .loading {
            opacity: 0.7;
        }

        .spinner {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid transparent;
            border-top: 2px solid currentColor;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .fade-in {
            animation: fadeIn 0.3s ease-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(8px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* ========================================
           Стили для донат-уведомления
           ======================================== */

        .donate-toast {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: white;
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: var(--space-4);
            box-shadow: 0 12px 32px rgba(0,0,0,0.15);
            max-width: 400px;
            z-index: 10000;
            animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @keyframes slideInRight {
            from {
                transform: translateX(450px);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        @keyframes slideOutRight {
            from {
                transform: translateX(0);
                opacity: 1;
            }
            to {
                transform: translateX(450px);
                opacity: 0;
            }
        }

        .donate-toast.closing {
            animation: slideOutRight 0.3s ease-out forwards;
        }

        .toast-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: var(--space-3);
        }

        .toast-title {
            font-weight: 600;
            font-size: var(--font-size-base);
            display: flex;
            align-items: center;
            gap: var(--space-2);
        }

        .toast-close {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: var(--text-secondary);
            padding: 0;
            width: 24px;
            height: 24px;
            border-radius: 4px;
            transition: all 0.2s ease;
        }

        .toast-close:hover {
            background: var(--border);
        }

        .toast-message {
            color: var(--text-secondary);
            font-size: var(--font-size-sm);
            margin-bottom: var(--space-4);
            line-height: 1.6;
        }

        .toast-buttons {
            display: flex;
            gap: var(--space-2);
        }

        .btn-donate {
            background: linear-gradient(135deg, #f59e0b, #d97706);
            color: white;
            padding: var(--space-3) var(--space-4);
            border: none;
            border-radius: var(--radius-md);
            font-size: var(--font-size-sm);
            font-weight: 600;
            cursor: pointer;
            flex: 1;
            transition: all 0.2s ease;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: var(--space-2);
        }

        .btn-donate:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
        }

        .btn-later {
            background: transparent;
            color: var(--text-secondary);
            padding: var(--space-3) var(--space-4);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            font-size: var(--font-size-sm);
            cursor: pointer;
        }


        @media (max-width: 768px) {
                    .format-label {
                min-height: 60px;
                max-height: 60px;
                padding: var(--space-2);
                font-size: 14px;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
            }

            .format-label strong {
                font-size: 13px;
                margin-bottom: 2px;
            }

            .format-label small {
                font-size: 10px;
                line-height: 1.1;
            }




            .container {
                padding: var(--space-1);
            }

            .main {
                padding: var(--space-6) 0;
            }

            .section-header,
            .section-content {
                padding: var(--space-4);
            }

            .waveform-controls {
                flex-direction: column;
                align-items: stretch;
            }

            .control-group {
                justify-content: space-between;
            }

            .processing-info {
                flex-direction: column;
                align-items: stretch;
            }

            .processing-buttons {
                justify-content: center;
            }

        """сss для пресетов"""
        .presets-grid-compact {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: var(--space-4);
        }

            .preset-card-compact {
                background: white;
                border: 1px solid var(--border);
                border-radius: var(--radius-lg);
                padding: var(--space-5);
                text-align: center;
                transition: all 0.2s ease;
            }

            .preset-card-compact:hover {
                border-color: var(--primary);
                box-shadow: var(--shadow-md);
            }

            .preset-header-compact {
                display: flex;
                justify-content: space-between;
                align-items: flex-start;
                margin-bottom: var(--space-3);
            }

            .preset-icon {
                font-size: 48px;
            }

            .preset-info-btn {
                width: 24px;
                height: 24px;
                border-radius: 50%;
                border: 1px solid var(--border);
                background: var(--gray-100);
                color: var(--text-secondary);
                font-size: var(--font-size-sm);
                font-weight: 600;
                cursor: pointer;
                transition: all 0.2s ease;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .preset-info-btn:hover {
                background: var(--primary);
                color: white;
                border-color: var(--primary);
            }

            .preset-title-compact {
                font-size: var(--font-size-lg);
                font-weight: 600;
                margin-bottom: var(--space-4);
                color: var(--text-primary);
            }

            #preset-modal {
                display: none;
            }

            #preset-modal.active {
                display: flex !important;
            }

            #modal-features li {
                padding: var(--space-1) 0;
                padding-left: var(--space-4);
                position: relative;
                font-size: var(--font-size-sm);
                color: var(--text-secondary);
            }

            #modal-features li::before {
                content: '✓';
                position: absolute;
                left: 0;
                color: var(--success);
                font-weight: bold;
            }

            @media (max-width: 768px) {
                .presets-grid-compact {
                    grid-template-columns: 1fr;
                }
            }
            .collapsible-content {
                transition: all 0.3s ease;
                overflow: hidden;
            }

            .section-header-mini:hover {
                background: var(--gray-50);
                padding: 4px 8px;
                margin: -4px -8px;
                border-radius: var(--radius-sm);
            }

            .chevron {
                display: inline-block;
                font-size: 14px;
                color: var(--text-secondary);
            }
            .effect-header {
            flex-direction: column;
            align-items: stretch;
            gap: var(--space-3);
        }

        .effect-info {
            width: 100%;
        }

        .effect-title {
            font-size: var(--font-size-sm);
        }

        .effect-description {
            font-size: var(--font-size-xs);
        }


        .effect-header .btn {
            width: 100%;
            justify-content: center;
        }



        .effect-params {
            padding: var(--space-3);
        }


        .effect-params input[type="file"] {
            width: 100%;
            font-size: var(--font-size-xs);
            padding: var(--space-2);
        }


        .effect-params .btn {
            width: 100%;
            justify-content: center;
        }


        #lufs-results {
            padding: var(--space-2);
        }

        #lufs-results p {
            font-size: var(--font-size-xs);
            word-break: break-word;
        }


        .effect-card {
            word-wrap: break-word;
            overflow-wrap: break-word;
            padding: var(--space-1) 0px;
        }

            .donate-toast {
            left: 10px;
            right: 10px;
            bottom: 10px;
            max-width: none;
        }

        .toast-buttons {
            flex-direction: column;
        }
    }


    .help-details {
    margin-top: 5px;
}

.help-details summary {
    cursor: pointer;
    color: #2196F3;
    font-size: 12px;
    user-select: none;
    list-style: none;
}

.help-details summary::-webkit-details-marker {
    display: none;
}

.help-details summary:hover {
    color: #1976D2;
}

.help-details[open] summary {
    color: #08457EFF;
}

.help-details small {
    display: block;
    margin-top: 5px;
    padding: 8px;
    background: #f2f6fa;
    border-left: 3px solid #08457e;
    border-radius: 4px;
}

/* DT */

    .dtln-status-badge {
        display: inline-block;
        margin-left: var(--space-2);
        padding: var(--space-1) var(--space-2);
        border-radius: var(--radius-sm);
        font-size: var(--font-size-xs);
        font-weight: 600;
        transition: all 0.3s ease;
        vertical-align: middle;
    }


    .dtln-status-badge[data-status="inactive"] {
        background: #fee;
        color: #c00;
        border: 1px solid #fcc;
    }


    .dtln-status-badge[data-status="processing"] {
        background: #fff3cd;
        color: #856404;
        border: 1px solid #ffeaa7;
        animation: pulse 1.5s ease-in-out infinite;
    }

    .dtln-status-badge[data-status="active"] {
        background: #d1fae5;
        color: #059669;
        border: 1px solid #6ee7b7;
    }

    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.7; }
    }


    #dtln-after-state {
        animation: fadeInUp 0.4s ease-out;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }



    .btn-success {
        background: var(--success);
        color: white;
        border: 1px solid var(--success);
    }

    .btn-success:hover:not(:disabled) {
        background: #047857;
    }

    .btn-success:disabled {
        opacity: 0.9;
        cursor: not-allowed;
    }


    @media (max-width: 768px) {
        #dtln-after-state > div {
            grid-template-columns: 1fr;
            gap: var(--space-2);
        }

        .dtln-status-badge {
            display: block;
            margin-left: 0;
            margin-top: var(--space-2);
            text-align: center;
        }
    }

    [id^="toggle-all-"] {
        padding: var(--space-2) var(--space-3);
        font-size: var(--font-size-sm);
        white-space: nowrap;
    }

    @media (max-width: 768px) {
        [id^="toggle-all-"] {
            width: 100%;
            justify-content: center;
        }
    }


    .preset-btn {
        position: relative;
        transition: all 0.3s ease;
    }


    .preset-btn[data-state="default"] {
        background: var(--primary);
        color: white;
    }

    .preset-btn[data-state="default"]:hover {
        background: var(--primary-hover);
    }


    .preset-btn[data-state="processing"] {
        background: #f59e0b;
        color: white;
        cursor: wait;
        animation: presetPulse 1.5s ease-in-out infinite;
    }


    .preset-btn[data-state="applied"] {
        background: var(--success);
        color: white;
        box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
        animation: presetApplied 0.5s ease-out;
    }

    .preset-btn[data-state="applied"]:hover {
        background: #047857;
        box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.3);
    }


    @keyframes presetPulse {
        0%, 100% {
            opacity: 1;
            transform: scale(1);
        }
        50% {
            opacity: 0.8;
            transform: scale(0.98);
        }
    }


    @keyframes presetApplied {
        0% {
            transform: scale(1);
            box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4);
        }
        50% {
            transform: scale(1.05);
            box-shadow: 0 0 0 10px rgba(5, 150, 105, 0);
        }
        100% {
            transform: scale(1);
            box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
        }
    }


    .preset-btn[data-state="applied"]::before {
        content: '✓ ';
        font-weight: bold;
        margin-right: 4px;
    }


    .preset-card-active {
        border-color: var(--success) !important;
        box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1) !important;
        animation: cardGlow 0.5s ease-out;
    }

    @keyframes cardGlow {
        0% {
            box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.3);
        }
        50% {
            box-shadow: 0 0 0 8px rgba(5, 150, 105, 0);
        }
        100% {
            box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
        }
    }


    .preset-indicator {
        position: absolute;
        top: 10px;
        left: 10px;
        width: 12px;
        height: 12px;
        background: var(--success);
        border-radius: 50%;
        border: 2px solid white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        opacity: 0;
        transform: scale(0);
        transition: all 0.3s ease;
    }

    .preset-indicator.active {
        opacity: 1;
        transform: scale(1);
        animation: indicatorPulse 2s ease-in-out infinite;
    }

    @keyframes indicatorPulse {
        0%, 100% {
            box-shadow: 0 2px 4px rgba(0,0,0,0.2), 0 0 0 0 rgba(5, 150, 105, 0.4);
        }
        50% {
            box-shadow: 0 2px 4px rgba(0,0,0,0.2), 0 0 0 6px rgba(5, 150, 105, 0);
        }
    }



    .dtln-warning {
        margin-top: var(--space-2);
        padding: var(--space-2);
        background: var(--gray-50);
        border-radius: var(--radius-sm);
        font-size: var(--font-size-xs);
        color: var(--text-secondary);
        border: 1px solid #fde68a;
    }

    .dtln-warning summary {
        cursor: pointer;
        list-style: none;
        display: flex;
        align-items: center;
        gap: var(--space-2);
        font-weight: 500;
        color: #f59e0b;
        user-select: none;
        padding: var(--space-1);
        margin: calc(-1 * var(--space-1));
        border-radius: var(--radius-sm);
        transition: background 0.2s ease;
    }

    .dtln-warning summary:hover {
        background: var(--gray-100);
    }


    .dtln-warning summary::-webkit-details-marker {
        display: none;
    }


    .dtln-warning summary::before {
        content: '▶';
        font-size: 10px;
        transition: transform 0.2s ease;
        display: inline-block;
    }

    .dtln-warning[open] summary::before {
        transform: rotate(90deg);
    }


    .dtln-warning-content {
        margin-top: var(--space-2);
        padding-top: var(--space-2);
        border-top: 1px solid #fde68a;
        line-height: 1.5;
    }


    @media (min-width: 769px) {


        .dtln-warning summary::before {
            display: none;
        }

        .dtln-warning-content {
            margin-top: 0;
            padding-top: 0;
            border-top: none;
        }
    }

    .export-option:hover {
        background: #f5f5f5 !important;
    }

    .export-option:active {
        background: #e0e0e0 !important;
    }





#analysis-results {
    margin-top: var(--space-4);
}


#analysis-results > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-bottom: var(--space-4);
}


#analysis-results > div:first-child > div:first-child {
    flex: 1;
    min-width: 250px;
}


#analysis-results > div:first-child > div:last-child {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}


#export-analysis-btn,
#toggle-all-analysis {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
}


#export-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-width: 150px;
    z-index: 1000;
}


@media (max-width: 768px) {


    #analysis-results > div:first-child {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-3);
    }


    #analysis-results > div:first-child > div:first-child {
        width: 100%;
        min-width: auto;
    }


    #analysis-results h3 {
        font-size: var(--font-size-base) !important;
        flex-wrap: wrap;
        gap: 8px !important;
    }


    #analysis-results h3 span {
        font-size: 13px !important;
        padding: 3px 10px !important;
    }


    #analysis-results h3 + p {
        font-size: 13px !important;
    }


    #analysis-results > div:first-child > div:last-child {
        width: 100%;
        flex-direction: column;
        gap: var(--space-2);
    }


    #export-analysis-btn,
    #toggle-all-analysis {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 15px;
    }


    #export-dropdown {
        position: fixed !important;
        right: var(--space-3) !important;
        left: var(--space-3) !important;
        top: auto !important;
        bottom: 80px !important;
        width: auto !important;
        max-width: none !important;
    }


    .export-option {
        padding: var(--space-3) !important;
        font-size: 15px !important;
    }


    .collapsible-section {
        margin-bottom: var(--space-3) !important;
    }

    .section-header-mini {
        padding: var(--space-2) !important;
        font-size: 14px !important;
    }

    .collapsible-content {
        padding: var(--space-2) !important;
        font-size: 14px !important;
    }


    .collapsible-content > div {
        font-size: 12px !important;
    }


    .recommendation-item {
        padding: var(--space-2) !important;
    }

    .recommendation-item strong {
        font-size: 14px !important;
    }

    .recommendation-item p {
        font-size: 13px !important;
    }
}


@media (max-width: 480px) {

    #analysis-results {
        margin-top: var(--space-3);
    }


    #analysis-results > div:first-child {
        gap: var(--space-2);
    }


    #analysis-results h3 {
        font-size: 15px !important;
    }

    #analysis-results h3 span {
        font-size: 12px !important;
        padding: 2px 8px !important;
    }


    #export-analysis-btn,
    #toggle-all-analysis {
        padding: 10px 12px;
        font-size: 14px;
    }


    .collapsible-content div[style*="font-family: monospace"] {
        font-size: 11px !important;
    }


    .collapsible-content div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}



#apply-recommendations-btn {
    margin-left: 0 !important;
}

@media (max-width: 768px) {
    #apply-recommendations-btn {
        width: 100%;
        margin-top: var(--space-2);
        justify-content: center;
        padding: 12px 16px;
        font-size: 15px;
    }
}

css
#analysis-content-wrapper {
    transition: all 0.3s ease;
    overflow: hidden;
}


#collapse-analysis-btn {
    transition: background 0.3s ease;
}

#collapse-analysis-btn:hover {
    opacity: 0.9;
}


@media (max-width: 768px) {
    #collapse-analysis-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 15px;
        order: -1;
    }
}



.trim-controls {
    background: var(--gray-50);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
}

.trim-controls h4 {
    margin: 0;
    font-size: var(--font-size-lg);
    color: var(--text-primary);
}


.trim-inputs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

.trim-input {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.trim-input label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.trim-input input {
    padding: var(--space-2);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: border-color 0.2s;
}

.trim-input input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}


#clear-region-btn {
    white-space: nowrap;
}


@media (max-width: 768px) {

    .trim-controls {
        padding: var(--space-3);
    }


    .trim-controls > div:first-child {
        flex-direction: column;
        align-items: stretch !important;
        gap: var(--space-2);
    }

    .trim-controls h4 {
        font-size: var(--font-size-base);
        text-align: center;
    }


    #clear-region-btn {
        width: 100%;
        padding: var(--space-2) var(--space-3) !important;
        font-size: 15px;
    }


    .trim-inputs {
        gap: var(--space-2);
    }

    .trim-input label {
        font-size: 13px;
    }

    .trim-input input {
        padding: 12px;
        font-size: 16px; /* 16px чтобы iOS не зумил */
        min-height: 44px; /* Минимум для удобного тапа */
    }
}


@media (max-width: 480px) {

    .trim-controls {
        padding: var(--space-2);
    }

    .trim-controls h4 {
        font-size: 15px;
    }


    .trim-inputs {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .trim-input {
        gap: var(--space-1);
    }

    .trim-input label {
        font-size: 14px;
        font-weight: 600;
    }

    .trim-input input {
        padding: 14px;
        font-size: 16px;
        min-height: 48px;
    }

    #clear-region-btn {
        padding: 12px var(--space-3) !important;
        font-size: 14px;
    }
}


@media (max-width: 360px) {
    .trim-input input {
        padding: 12px;
        font-size: 15px;
    }
}


/* Модальные окна */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: block;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    z-index: 9999;
    animation: modalSlideIn 0.3s ease forwards;
}

.modal.active {
    display: block;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s;
    z-index: 1;
}

.modal-close:hover {
    color: #333;
    transform: rotate(90deg);
}

.modal h2 {
    margin: 0;
    padding: 25px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    font-size: 24px;
}

.modal-body {
    padding: 30px;
    color: #333;
}

.modal-body h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #667eea;
    font-size: 18px;
}

.modal-body p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-body ul {
    margin: 15px 0;
    padding-left: 25px;
}

.modal-body li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.faq-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    margin-top: 0;
    color: #657de8;
    font-size: 16px;
}

.modal-footer-text {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 14px;
    text-align: center;
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}


@media (prefers-color-scheme: dark) {
    .modal-content {
        background: #2d2d2d;
        color: #e0e0e0;
    }

    .modal-body {
        color: #e0e0e0;
    }

    .faq-item {
        border-bottom-color: #444;
    }

    .modal-footer-text {
        border-top-color: #444;
    }
}


@media (max-width: 768px) {
    .modal {
        width: 95%;
        max-height: 90vh;
    }

    .modal h2 {
        font-size: 20px;
        padding: 20px 25px;
    }

    .modal-body {
        padding: 20px;
    }


}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}


@media (max-width: 768px) {
    .notification {
        right: 10px !important;
        left: 10px !important;
        max-width: none !important;
    }
}


.section {
            background: white;

            padding: 1rem;
            max-width: 1200px;
            margin-bottom: 12px;
        }

        .section-header {
            margin-bottom: 1.5rem;
        }

        .section-title {
            margin: 0 0 0.5rem 0;
            font-size: 1.5rem;
            font-weight: 600;
        }

        .section-subtitle {
            margin: 0;
            color: var(--text-secondary);
            font-size: var(--font-size-sm);
        }

        .waveform-container {
            width: 100%;
        }


        .waveform-controls {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            align-items: center;
            margin-bottom: 1rem;
            padding: 0.75rem;
            background: #f8f9fa;

        }

        .control-group {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex: 1;
            min-width: 200px;
        }

        .control-label {
            font-size: var(--font-size-sm);
            font-weight: 500;
            white-space: nowrap;
        }

        .range-slider {
            flex: 1;
            min-width: 100px;
            height: 6px;
            cursor: pointer;
        }

        .time-display {
            font-size: var(--font-size-sm);
            font-weight: 500;
            padding: 0.5rem 1rem;
            background: white;
            border-radius: 6px;
            white-space: nowrap;
            min-width: fit-content;
        }


        .hint-text {
            font-size: var(--font-size-xs);
            color: var(--text-secondary);
            margin-bottom: var(--space-3);
            padding: 0.75rem;
            background: #f0f7ff;
            border-radius: 6px;
            border-left: 3px solid #0066cc;
        }


        #waveform {
            width: 100%;
            min-height: 128px;
            background: #fafafa;

            margin-bottom: 1rem;
            overflow-x: auto;
        }


        .playback-controls {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            justify-content: center;
        }

        .btn-primary {
            width: 100%;
            flex: 1 1 100%;
        }

        .btn {
            padding: 0.75rem 1.5rem;
            font-size: var(--font-size-sm);
            font-weight: 500;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
            min-height: 44px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            white-space: nowrap;
        }

        .btn-secondary {
            background: #e9ecef;
            color: #212529;
        }

        .btn-secondary:hover {
            background: #dee2e6;
        }

        .btn-secondary:active {
            transform: scale(0.98);
        }


        @media (max-width: 768px) {
            body {
                padding: 0.5rem;
            }

            .section {
                padding: 0.75rem;
                border-radius: 12px;
            }

            .section-title {
                font-size: 1.25rem;
            }

            .section-subtitle {
                font-size: 0.8rem;
            }

            .waveform-controls {
                flex-direction: column;
                align-items: stretch;
                gap: 0.75rem;
                padding: 0.75rem;
            }

            .control-group {
                min-width: 100%;
                flex-direction: column;
                align-items: stretch;
                gap: 0.5rem;
            }

            .control-label {
                font-size: 0.8rem;
            }

            .range-slider {
                width: 100%;
                height: 6px;
            }

            .time-display {
                text-align: center;
                width: 100%;
                font-size: 0.9rem;
            }

            .hint-text {
                font-size: 0.7rem;
                padding: 0.6rem;
                line-height: 1.4;
            }

            #waveform {
                min-height: 100px;
            }

            .playback-controls {
                gap: 0.5rem;
            }

            .btn {
                flex: 1;
                min-width: calc(50% - 0.25rem);
                padding: 0.875rem 1rem;
                font-size: 0.85rem;
                min-height: 48px;
            }

            .playback-controls {
            background: var(--gray-50);
            border-radius: var(--radius-md);
            padding: var(--space-4);
            margin-top: var(--space-4);
            }


            .btn-primary {
                flex: 1 1 100%;
                min-width: 100%;
            }
        }


        @media (max-width: 480px) {
            .section-title {
                font-size: 1.1rem;
            }

            .btn {
                min-width: 100%;
                font-size: 0.9rem;
            }

            .btn-primary {
                min-width: 100%;
            }

            .hint-text {
                font-size: 0.65rem;
            }
        }


        @media (min-width: 769px) and (max-width: 1024px) {
            .control-group {
                min-width: 45%;
            }

            .btn {
                min-width: 140px;
            }
        }





        @media (min-width: 769px) and (max-width: 1024px) {
            .control-group {
                min-width: 45%;
            }

            .btn {
                min-width: 140px;
            }
        }

/* ========================================
   FOOTER STYLES
   ======================================== */

.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: var(--space-8) 0;
    margin-top: var(--space-8);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-6);
}

.footer-section h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.footer-description {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-links a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-3);
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 18px;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-copyright {
    color: var(--text-tertiary);
    font-size: var(--font-size-sm);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: var(--text-tertiary);
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary);
}


@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom-links {
        width: 100%;
        justify-content: center;
    }

    .footer-copyright {
        width: 100%;
        text-align: center;
    }
}



.analysis-section > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

@media (max-width: 768px) {

    .analysis-section > div:first-child {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .analysis-section h3 {
        text-align: center;
        width: 100%;
    }

    #analyze-btn {
        width: 100% !important;
        justify-content: center;
        padding: 14px 20px;
        font-size: 16px;
        min-height: 48px;
    }


    .playback-controls .btn-primary {
        order: -1;
    }

    .playback-controls .btn-secondary {
        min-width: calc(50% - var(--space-1));
    }
}

        .playback-controls {
            display: flex !important;
            flex-wrap: nowrap !important;
            justify-content: center !important;
            gap: 8px !important;
        }

        .playback-controls .btn {
            flex: 0 0 auto !important;
            min-width: 50px !important;
            max-width: 70px !important;
            width: auto !important;
        }


@media (max-width: 480px) {
    #analyze-btn {
        font-size: 15px;
        padding: 16px;
    }
}





@media (max-width: 600px) {
    .effect-card--equalizer .effect-params {
        padding: var(--space-2) 0;
    }
    .effect-card--equalizer .eq-container {
        padding: 0;
    }
    #eq-graph {
        aspect-ratio: 3 / 1;
        min-height: 150px;
        max-height: 250px;
    }
}

#stem-status-badge[data-status="inactive"] {
    background: var(--gray-200);
    color: var(--text-secondary);
}

#stem-status-badge[data-status="processing"] {
        background: #fff3cd;
        color: #856404;
        border: 1px solid #ffeaa7;
        animation: pulse 1.5s ease-in-out infinite;
    }

#stem-status-badge[data-status="active"] {
        background: #d1fae5;
        color: #059669;
        border: 1px solid #6ee7b7;
    }


@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Стили для чекбоксов стемов */
.stem-checkbox:checked + span {
    font-weight: 600;
    color: var(--primary);
}

/* Стили для карточек стемов */
.stem-download-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3);
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.stem-download-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.stem-icon {
    font-size: 24px;
}

.stem-info {
    flex: 1;
    margin: 0 var(--space-3);
}

.stem-name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.stem-size {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}