:root {
    color-scheme: light;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #242a26;
    background: #f5f6f3;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100dvh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.installer {
    width: min(100%, 520px);
    padding: 38px;
    border: 1px solid #dfe2dc;
    border-radius: 12px;
    background: #fff;
}

.eyebrow {
    margin: 0 0 12px;
    color: #64736a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
}

h1 {
    margin: 0;
    font-size: clamp(25px, 5vw, 31px);
    font-weight: 650;
    letter-spacing: -.035em;
    line-height: 1.2;
}

.intro {
    margin: 12px 0 28px;
    color: #626b63;
    font-size: 14px;
    line-height: 1.6;
}

.variant-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
}

select, button, input {
    font: inherit;
}

select {
    max-width: 70%;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #d9ded7;
    border-radius: 7px;
    color: inherit;
    background: #fff;
}

button {
    cursor: pointer;
    border-radius: 7px;
}

button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible, a:focus-visible {
    outline: 2px solid #477c5f;
    outline-offset: 3px;
}

.folder-button, .download-button {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
}

.folder-button {
    border: 1px solid #c9d2c9;
    color: #234635;
    background: #f7faf7;
}

.folder-button:hover {
    background: #edf4ed;
}

.download-button {
    margin-top: 24px;
    border: 1px solid #254532;
    color: #fff;
    background: #254532;
}

.download-button:hover:not(:disabled) {
    background: #345d42;
}

.download-button:disabled {
    cursor: not-allowed;
    border-color: #e6e9e4;
    color: #929b92;
    background: #e6e9e4;
}

.status, .hint, .footnote {
    color: #69736b;
    font-size: 12px;
    line-height: 1.55;
}

.status {
    margin: 9px 0 0;
    overflow-wrap: anywhere;
}

.progress-panel {
    margin-top: 18px;
}

.progress-caption {
    display: flex;
    justify-content: space-between;
    margin-bottom: 7px;
    color: #515c52;
    font-size: 12px;
    font-weight: 600;
}

progress + .progress-caption {
    margin-top: 16px;
}

progress {
    display: block;
    width: 100%;
    height: 7px;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    accent-color: #38694b;
}

progress::-webkit-progress-bar {
    border-radius: 8px;
    background: #e8eee8;
}

progress::-webkit-progress-value {
    border-radius: 8px;
    background: #38694b;
}

progress::-moz-progress-bar {
    border-radius: 8px;
    background: #38694b;
}

.extras {
    margin-top: 22px;
    border-top: 1px solid #ebede9;
    color: #515c52;
    font-size: 13px;
}

.extras + .extras {
    margin-top: 0;
}

summary {
    padding: 16px 0;
    cursor: pointer;
}

.extra-content {
    padding-bottom: 18px;
}

.extra-content label, .extra-content input:not([hidden]) {
    display: block;
}

.extra-content input {
    max-width: 100%;
    margin: 8px 0 18px;
    font-size: 12px;
}

.secondary-button {
    padding: 9px 12px;
    border: 1px solid #cbd3ca;
    color: #264735;
    background: #fff;
    font-size: 12px;
}

.secondary-button:hover {
    background: #f3f7f3;
}

.hint {
    margin: 12px 0 0;
}

.extra-content p:first-child {
    margin-top: 0;
}

.extra-content a {
    color: #2e6241;
}

pre {
    max-height: 220px;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font: inherit;
    line-height: 1.5;
}

pre:empty {
    display: none;
}

.footnote {
    margin: 18px 0 0;
}

@media (max-width: 560px) {
    body {
        padding: 16px;
    }
    .installer {
        padding: 27px 22px;
    }
    .variant-row {
        align-items: flex-start;
        flex-direction: column;
    }
    select {
        width: 100%;
        max-width: none;
    }
}
