.cs-ssl-wrap {

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

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

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

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

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

.cs-ssl-two-col {
    display: flex;
    gap: 1rem;
}
.cs-ssl-two-col > div { flex: 1; }

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

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

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

select.cs-ssl-input { cursor: pointer; }

.cs-ssl-hint {
    font-size: 0.82rem;
    color: #888;
    margin: 0.3rem 0 0 0;
}
.cs-ssl-hint code {
    background: #eef2ff;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-size: 0.82rem;
}

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

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

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

.cs-ssl-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.7rem;
}

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

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

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

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

.cs-ssl-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-ssl-btn:hover { background: #3a56d4; }

.cs-ssl-output { margin-top: 2rem; }

.cs-ssl-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.cs-ssl-output-title { font-weight: 600; font-size: 1rem; }
.cs-ssl-output-actions { display: flex; gap: 0.5rem; }

.cs-ssl-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-ssl-btn-small:hover { background: #c7d2fe; }

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

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

.cs-ssl-warnings {
    margin-top: 1rem;
    background: #fff3cd;
    border: 1px solid #ffe69c;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    font-size: 0.9rem;
    color: #856404;
}
.cs-ssl-warnings ul { margin: 0.3rem 0 0 0; padding-left: 1.2rem; }
.cs-ssl-warnings li { margin-bottom: 0.3rem; }
.cs-ssl-warnings code {
    background: rgba(0,0,0,0.08);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-size: 0.85rem;
}

.cs-ssl-instructions {
    margin-top: 2rem;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem 1.8rem;
}
.cs-ssl-instructions h3 { font-size: 1.1rem; margin: 0 0 1rem 0; }
.cs-ssl-instructions ol { margin: 0; padding-left: 1.5rem; }
.cs-ssl-instructions li { margin-bottom: 0.6rem; font-size: 0.9rem; line-height: 1.5; }
.cs-ssl-instructions code {
    background: #1a1a2e;
    color: #e0e0e0;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .cs-ssl-two-col { flex-direction: column; }
    .cs-ssl-checkboxes { grid-template-columns: 1fr; }
    .cs-ssl-input { max-width: 100%; }
}
