body {
    font-family: sans-serif;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

#status {
    margin: 20px 0;
    padding: 10px;
    background: #eee;
    border-radius: 6px;
    color: #333;
}

.output {
    width: 100%;
    height: auto;
}

#form {
    width: 100%;
    box-sizing: border-box;
    font-size: 0.8rem;
    line-height: 1.2;
}

#form *,
#form *::before,
#form *::after {
    box-sizing: border-box;
}

#form input:not([type="checkbox"]):not([type="radio"]),
#form select,
#form textarea,
#form button {
    width: 100%;
    margin: 0;
    padding: 0.2em 0.4em;
    font-size: inherit;
    line-height: 1.2;
}

#form button {
    width: 100%;
    margin: 0.5em 0 0.1em;
}

#form textarea {
    min-height: 0;
    resize: vertical;
}

#form label {
    display: block;
    margin: 0 0 0.1em;
}

#form .field,
#form fieldset {
    margin: 0 0 0.3em;
    padding: 0;
    border: 0;
}

#form br {
    display: none; /* stray <br>s add a lot of height */
}

#form h1, #form h2, #form h3, #form p {
    margin: 0 0 0.3em;
}

#form label {
    display: block;
    margin: 0.5em 0 0.1em; /* gap above, tight below so it stays attached to its input */
}

#form > label:first-child,
#form .field:first-child label {
    margin-top: 0; /* no extra gap at the very top of the form */
}