* {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
        "Open Sans", "Helvetica Neue", sans-serif;
}
/**
 * General styles
 */

.form__label {
    user-select: none;
}

.form__control {
    font-size: 1em;
}

.form__control:not([type="checkbox"]):not(button) {
    box-sizing: border-box;
    width: 100%;

    border: 2px solid #ddd;
    border-radius: 5px;
    padding: 0.5rem;
    outline: none;
}

.form__control:focus {
    border-color: hsl(202, 79%, 70%) !important;
}

.form__group small {
    color: #555;
}

/**
 * Stacked styles
 */

form > * + *:not(.form__group--aligned) {
    margin-top: 1rem;
}

.form__group--stacked .form__label {
    margin-bottom: 0.1em;
}

/**
 * Aligned styles
 */

.form--aligned {
    display: table;
    width: 100%;
}

.form__group--aligned {
    width: 100%;
}

.form__group--aligned .form__group__section:first-child * {
    padding-top: calc(0.5rem + 2px); /* padding of controls + border height */
}

.form__group--aligned .form__group__section:first-child {
    padding-right: 1rem;
    white-space: nowrap;
    width: 1%;
}

form > * + .form__group--aligned .form__group__section {
    padding-top: 1rem;
}

.pretty {
    top: 4px;
}
