.cs-fpm-wrap {

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a2e;
}

.cs-fpm-header h2 {
    font-size: 1.6rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.cs-fpm-header p {
    color: #555;
    font-size: 0.95rem;
    margin: 0 0 2rem 0;
}

.cs-fpm-header code {
    background: #eef2ff;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.88rem;
}

.cs-fpm-form {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.8rem;
}

.cs-fpm-section {
    margin-bottom: 1.5rem;
}

.cs-fpm-two-col {
    display: flex;
    gap: 1rem;
}

.cs-fpm-two-col > div {
    flex: 1;
}

.cs-fpm-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.cs-fpm-input {
    width: 100%;
    max-width: 300px;
    padding: 0.6rem 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.cs-fpm-input:focus {
    outline: none;
    border-color: #4361ee;
}

select.cs-fpm-input {
    max-width: 320px;
    cursor: pointer;
}

.cs-fpm-hint {
    font-size: 0.82rem;
    color: #888;
    margin: 0.3rem 0 0 0;
    line-height: 1.5;
}

.cs-fpm-hint code {
    background: #eef2ff;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-size: 0.82rem;
}

.cs-fpm-radio-group {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.cs-fpm-radio {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.7rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-size: 0.9rem;
    flex: 1;
    min-width: 180px;
}

.cs-fpm-radio:has(input:checked) {
    border-color: #4361ee;
    background: #eef2ff;
}

.cs-fpm-radio small {
    color: #888;
    font-size: 0.78rem;
}

.cs-fpm-radio input[type="radio"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.cs-fpm-checkboxes {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.cs-fpm-check {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.6rem 0.9rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-size: 0.88rem;
}

.cs-fpm-check:has(input:checked) {
    border-color: #4361ee;
    background: #eef2ff;
}

.cs-fpm-check small {
    color: #777;
    font-size: 0.78rem;
}

.cs-fpm-check input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.cs-fpm-btn {
    background: #4361ee;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.cs-fpm-btn:hover {
    background: #3a56d4;
}

/* Результат */
.cs-fpm-result {
    margin-top: 2rem;
}

.cs-fpm-result h3 {
    font-size: 1.15rem;
    margin: 0 0 1rem 0;
}

.cs-fpm-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.cs-fpm-stat-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    text-align: center;
    min-width: 120px;
}

.cs-fpm-stat-num {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #4361ee;
}

.cs-fpm-stat-label {
    display: block;
    font-size: 0.78rem;
    color: #777;
    margin-top: 0.2rem;
}

.cs-fpm-stat-info .cs-fpm-stat-num {
    color: #28a745;
    font-size: 1.2rem;
}

/* Предупреждения */
.cs-fpm-warnings {
    background: #fff3cd;
    border: 1px solid #ffe69c;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    font-size: 0.9rem;
    color: #856404;
    margin-bottom: 1.5rem;
}

.cs-fpm-warnings ul {
    margin: 0.3rem 0 0 0;
    padding-left: 1.2rem;
}

.cs-fpm-warnings li {
    margin-bottom: 0.3rem;
}

.cs-fpm-warnings code {
    background: rgba(0,0,0,0.08);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-size: 0.85rem;
}

/* Конфиг */
.cs-fpm-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.cs-fpm-output-title {
    font-weight: 600;
    font-size: 1rem;
}

.cs-fpm-output-actions {
    display: flex;
    gap: 0.5rem;
}

.cs-fpm-btn-small {
    background: #eef2ff;
    color: #4361ee;
    border: 1px solid #c7d2fe;
    border-radius: 6px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.cs-fpm-btn-small:hover {
    background: #c7d2fe;
}

.cs-fpm-output pre {
    background: #1a1a2e;
    color: #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 0;
}

.cs-fpm-output code {
    font-family: "Fira Code", "Cascadia Code", Consolas, monospace;
    font-size: 0.88rem;
    line-height: 1.6;
    white-space: pre;
}

/* Инструкция */
.cs-fpm-instructions {
    margin-top: 2rem;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem 1.8rem;
}

.cs-fpm-instructions h3 {
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
}

.cs-fpm-instructions ol {
    margin: 0;
    padding-left: 1.5rem;
}

.cs-fpm-instructions li {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cs-fpm-instructions code {
    background: #1a1a2e;
    color: #e0e0e0;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .cs-fpm-two-col {
        flex-direction: column;
    }
    .cs-fpm-radio-group {
        flex-direction: column;
    }
    .cs-fpm-radio {
        min-width: 100%;
    }
    .cs-fpm-input {
        max-width: 100%;
    }
    .cs-fpm-stat-card {
        min-width: 100px;
    }
}
