:root {
    --bg: #f4f7f5;
    --surface: #ffffff;
    --ink: #18231f;
    --muted: #5d6f68;
    --line: #d9e4de;
    --primary: #126c58;
    --primary-dark: #0c493c;
    --danger: #a92525;
    --danger-soft: #fde8e8;
    --success: #0e7a4f;
    --success-soft: #e5f6ee;
    --warning: #946200;
    --code: #17211d;
    --code-text: #e9f7f1;
    --shadow: 0 18px 48px rgba(25, 41, 35, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

code,
pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.installer {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 48px;
}

.hero,
.panel,
.alert {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hero {
    margin-bottom: 16px;
    padding: clamp(24px, 5vw, 44px);
}

.hero h1 {
    max-width: 820px;
    margin: 0 0 12px;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.02;
    letter-spacing: 0;
}

.hero p {
    max-width: 780px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.panel,
.alert {
    margin-bottom: 16px;
    padding: clamp(18px, 4vw, 30px);
}

.panel--success {
    border-color: rgba(14, 122, 79, 0.28);
    background: var(--success-soft);
}

.panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

h2 {
    margin: 0;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.15;
}

.strong {
    font-weight: 800;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: 8px;
    padding: 6px 10px;
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.status-pill--ok {
    background: var(--success-soft);
    color: var(--success);
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.check {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
}

.check > span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 12px;
    font-weight: 900;
}

.check--ok > span {
    background: var(--success-soft);
    color: var(--success);
}

.check strong,
.check p {
    display: block;
    margin: 0;
}

.check p {
    color: var(--muted);
    font-size: 14px;
}

.alert--danger {
    border-color: rgba(169, 37, 37, 0.28);
    background: var(--danger-soft);
}

.alert h2 {
    color: var(--danger);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

label {
    display: grid;
    gap: 7px;
}

label span {
    color: var(--ink);
    font-size: 13px;
    font-weight: 850;
}

input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    padding: 12px 13px;
}

input:focus {
    outline: 3px solid rgba(18, 108, 88, 0.16);
    border-color: var(--primary);
}

small {
    color: var(--muted);
}

.span-2 {
    grid-column: span 2;
}

.checkbox-label {
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px;
}

.checkbox-label input {
    margin-top: 4px;
    accent-color: var(--primary);
}

.section-gap {
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    padding: 10px 16px;
    text-decoration: none;
}

.button--secondary {
    background: #fff;
    color: var(--primary-dark);
}

.button--wide {
    width: 100%;
    margin-top: 22px;
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.form-note {
    margin: 12px 0 0;
    color: var(--muted);
    text-align: center;
}

details {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-top: 10px;
    overflow: hidden;
}

summary {
    cursor: pointer;
    font-weight: 900;
    padding: 12px 14px;
}

pre {
    margin: 0;
    overflow-x: auto;
    background: var(--code);
    color: var(--code-text);
    padding: 14px;
}

@media (max-width: 760px) {
    .installer {
        width: min(100% - 20px, 1120px);
        padding-top: 10px;
    }

    .panel__header,
    .actions {
        align-items: stretch;
        flex-direction: column;
    }

    .check-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }
}
