
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Inter', system-ui, sans-serif;
        }

        body {
            background: linear-gradient(135deg, #8e44ad 0%, #3498db 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .container {
            max-width: 800px;
            width: 100%;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 40px;
            padding: 40px;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.5);
        }

        h1 {
            font-size: 2.2rem;
            color: #1e293b;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        h1 svg {
            width: 40px;
            height: 40px;
            stroke: #8e44ad;
        }

        .subtitle {
            color: #475569;
            margin-bottom: 30px;
            font-size: 1rem;
            border-bottom: 1px solid #e2e8f0;
            padding-bottom: 15px;
        }

        .mode-selector {
            display: flex;
            gap: 15px;
            margin-bottom: 25px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .mode-btn {
            flex: 1;
            min-width: 200px;
            padding: 16px 20px;
            border: 2px solid #e2e8f0;
            background: white;
            border-radius: 60px;
            font-size: 1.1rem;
            font-weight: 600;
            color: #334155;
            cursor: pointer;
            transition: all 0.2s;
        }

        .mode-btn:hover {
            border-color: #8e44ad;
            background: #f9f0ff;
        }

        .mode-btn.active {
            background: #8e44ad;
            border-color: #8e44ad;
            color: white;
        }

        .result-display {
            background: linear-gradient(135deg, #1e293b, #0f172a);
            border-radius: 60px;
            padding: 40px;
            margin-bottom: 30px;
            text-align: center;
            box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
        }

        #result {
            font-size: 5rem;
            font-weight: 700;
            color: white;
            font-family: 'Courier New', monospace;
            text-shadow: 0 0 20px rgba(255,255,255,0.3);
            word-break: break-word;
        }

        .settings-card {
            background: #f8fafc;
            border: 2px solid #e2e8f0;
            border-radius: 30px;
            padding: 25px;
            margin-bottom: 25px;
        }

        /* Режим чисел */
        .number-settings {
            display: block;
        }

        .number-settings.hidden {
            display: none;
        }

        .range-inputs {
            display: flex;
            gap: 20px;
            justify-content: center;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }

        .range-group {
            text-align: center;
        }

        .range-group label {
            display: block;
            margin-bottom: 8px;
            color: #475569;
            font-weight: 500;
        }

        .range-group input {
            width: 120px;
            padding: 12px;
            border: 2px solid #e2e8f0;
            border-radius: 30px;
            font-size: 1.2rem;
            font-weight: 600;
            text-align: center;
            outline: none;
        }

        .range-group input:focus {
            border-color: #8e44ad;
        }

        .quantity-control {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            margin-bottom: 20px;
        }

        .quantity-control label {
            color: #475569;
            font-weight: 500;
        }

        .quantity-control input {
            width: 80px;
            padding: 8px;
            border: 2px solid #e2e8f0;
            border-radius: 30px;
            text-align: center;
            outline: none;
        }

        .quantity-control input:focus {
            border-color: #8e44ad;
        }

        /* Режим списка */
        .list-settings {
            display: none;
        }

        .list-settings.visible {
            display: block;
        }

        .list-settings textarea {
            width: 100%;
            height: 150px;
            padding: 20px;
            border: 2px solid #e2e8f0;
            border-radius: 30px;
            font-size: 1rem;
            line-height: 1.6;
            resize: vertical;
            outline: none;
            margin-bottom: 20px;
            font-family: 'Courier New', monospace;
        }

        .list-settings textarea:focus {
            border-color: #8e44ad;
        }

        .checkbox-item {
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            margin-bottom: 15px;
        }

        .checkbox-item input[type="checkbox"] {
            width: 20px;
            height: 20px;
            cursor: pointer;
            accent-color: #8e44ad;
        }

        .checkbox-item span {
            color: #334155;
            font-weight: 500;
        }

        .list-stats {
            color: #64748b;
            font-size: 0.9rem;
            margin-top: 10px;
        }

        .actions {
            display: flex;
            gap: 15px;
            margin-top: 20px;
            flex-wrap: wrap;
        }

        .btn {
            flex: 1;
            min-width: 140px;
            padding: 16px;
            border: none;
            border-radius: 60px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-primary {
            background: #8e44ad;
            color: white;
        }

        .btn-primary:hover {
            background: #7a3a94;
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(142, 68, 173, 0.3);
        }

        .btn-secondary {
            background: white;
            color: #475569;
            border: 2px solid #e2e8f0;
        }

        .btn-secondary:hover {
            border-color: #8e44ad;
            color: #8e44ad;
        }

        .info-text {
            margin-top: 20px;
            text-align: center;
            color: #64748b;
            font-size: 0.9rem;
        }

        .info-text a {
            color: #8e44ad;
            text-decoration: none;
            font-weight: 600;
        }

        .info-text a:hover {
            text-decoration: underline;
        }

        @media (max-width: 600px) {
            .container {
                padding: 25px;
            }
            
            h1 {
                font-size: 1.8rem;
            }
            
            #result {
                font-size: 3rem;
            }
            
            .range-group input {
                width: 100px;
            }
            
            .btn {
                min-width: 100%;
            }
        }
    