:root {
    color-scheme: light;
    --ink: #17332b;
    --muted: #536b5e;
    --line: #d8e3d8;
    --paper: #fcfdfa;
    --accent: #175841;
    font: 16px/1.55 "Trebuchet MS", sans-serif;
    color: var(--ink);
    background: #e9efe7;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
.setup {
    display: grid;
    grid-template-columns: minmax(200px, 270px) minmax(0, 650px);
    gap: clamp(24px, 5vw, 70px);
    max-width: 1040px;
    padding: clamp(24px, 5vw, 55px) 20px;
    margin: auto;
    align-items: start;
}
.intro { padding-top: 17px; border-top: 3px solid var(--accent); }
.intro img { display: block; }
.brand { font-size: .86rem; font-weight: bold; margin: 14px 0 7px; color: var(--accent); }
h1 { font: 400 clamp(2.3rem, 4vw, 3.6rem)/.98 Georgia, serif; letter-spacing: -.055em; margin: 0; }
.intro p:last-child { max-width: 23ch; color: var(--muted); margin: 16px 0 0; }
.sheet { padding: clamp(20px, 4vw, 39px); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.sheet h2 { margin: 0; }
fieldset { min-width: 0; border: 0; padding: 0 0 19px; margin: 0 0 19px; border-bottom: 1px solid var(--line); }
legend { padding: 0; margin-bottom: 6px; font: 400 1.42rem/1.3 Georgia, serif; }
label { display: block; font-size: .86rem; font-weight: bold; }
.help { color: var(--muted); font-size: .84rem; margin: 4px 0 10px; }
fieldset > .help:last-child, .submit .help { margin-bottom: 0; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-bottom: 11px; }
.fields.server { grid-template-columns: minmax(0, 1fr) minmax(88px, 110px); }
input {
    display: block; min-width: 0; width: 100%; margin-top: 3px; padding: 8px 9px;
    border: 1px solid #c8d7ca; background: #fff; border-radius: 6px; color: var(--ink); font: inherit;
    font-weight: normal;
}
input:focus-visible, button:focus-visible { outline: 2px solid #216d51; outline-offset: 2px; }
.submit { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
button {
    flex-shrink: 0; border: 0; border-radius: 6px; padding: 11px 15px;
    background: var(--accent); color: white; font: inherit; font-weight: bold; cursor: pointer;
}
button span { margin-left: 6px; }
button:hover { background: #103f2f; }
.alert {
    margin: 0 0 16px; padding: 10px 13px; border-left: 3px solid #a24533;
    background: #f8ece6; color: #793524; font-size: .9rem;
}
.sheet h2 + .alert { margin-top: 10px; }
@media (max-width: 750px) {
    .setup { grid-template-columns: minmax(0, 1fr); }
    .intro p:last-child { max-width: none; }
}
@media (max-width: 470px) {
    .fields:not(.server) { grid-template-columns: minmax(0, 1fr); }
    .submit { align-items: stretch; flex-direction: column; }
}
