:root {
    --bg-1: hsl(0, 0%, 100%);
    --bg-1-plus: hsl(0, 0%, 96.1%);
    --bg-2: #ccc;
    --bg-2-20: hsl(0, 0%, 80%, 20%);
    --bg-2-40: hsl(0, 0%, 80%, 40%);
    --bg-3: #aaa;
    --fg-1: #000;
    --fg-2: #333;
    --fg-3: #666;
    --mg: #888;
    --l-1: #fff;
    --submit: hsl(216.6, 40%, 40%);
    --submit-hover: hsl(216.6, 40%, 20%);
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg-1: hsl(0, 0%, 6.7%);
        --bg-1-plus: hsl(0, 0%, 9%);
        --bg-2: #333;
        --bg-2-20: hsl(0, 0%, 20%, 20%);
        --bg-2-40: hsl(0, 0%, 20%, 40%);
        --bg-3: #555;
        --fg-1: #fff;
        --fg-2: #ccc;
        --fg-3: #aaa;
        --mg: #888;
        --submit: hsl(216.6, 40%, 20%);
        --submit-hover: hsl(216.6, 40%, 40%);
    }
}
a {
    color: var(--fg-1);
    text-decoration: none;
}
a:hover { color: var(--fg-2); }
.text a {
    text-decoration: underline;
    text-decoration-color: var(--bg-2);
    text-underline-offset: .2rem;
}
.answer {
    border-bottom-left-radius: .2rem;
    border-left: .5em solid var(--submit);
    border-top-left-radius: .2rem;
    color: var(--fg-1);
    font-size: .9rem;
    font-style: italic;
    padding: .2em 1em;
}
.answer:empty { display: none; }
.answer + .answer { margin-top: .5rem; }
.bar_wrapper {
    align-items: center;
    column-gap: .3rem;
    display: flex;
}
.bar_wrapper > :nth-child(1) {
    background: var(--submit);
    border-radius: .2rem;
    display: inline-block;
    height: 1rem;
}
.bar_wrapper > :nth-child(2) {
    color: var(--fg-1);
    font-size: .8rem;
    font-weight: 700;
    padding-inline: .2em;
}
.bar_wrapper > :nth-child(3) { font-size: .9rem; }
.bar_wrapper + .bar_wrapper { margin-top: .4em; }
body,
button,
input {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
body {
    background: var(--bg-1);
    color: var(--fg-2);
    margin: 0;
}
button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
}
button.clear {
    align-items: center;
    column-gap: .3em;
    display: flex;
    float: right;
    margin-right: .2em;
}
button.clear:focus-visible,
button.clear:hover {
    color: var(--fg-1);
}
input[type="radio"]:not(:checked) + button.clear { display: none; }
button.precheck {
    background: var(--bg-2);
    border: none;
    border-radius: .2rem;
    color: var(--fg-1);
    margin-block: 1rem;
    padding: .4em 1em;
}
button.precheck:focus-visible,
button.precheck:hover {
    background: var(--bg-3);
}
button.submit {
    align-items: center;
    background: var(--submit);
    border: none;
    border-radius: .2rem;
    color: var(--l-1);
    column-gap: .4em;
    display: flex;
    margin-block: 1rem;
    padding: .4em 1em;
}
button.submit:focus-visible,
button.submit:hover {
    background: var(--submit-hover);
}
button,
input,
textarea {
    font-size: inherit;
}
#captcha[data-valid="true"] {
    background: hsla(73, 100%, 49.6%, 0.2);
    border-color: hsla(73, 100%, 36.3%, 0.4);
}
#captcha[data-valid="false"] {
    background: hsla(22.5, 100%, 49.6%, 0.2);
    border-color: hsla(22.5, 100%, 36.3%, 0.4);
}
.constraint_hints {
    color: var(--fg-3);
    display: flex;
    font-size: .8rem;
    margin-top: .6rem;
}
@media (width < 25rem) {
    .constraint_hints {
        flex-direction: column-reverse;
        row-gap: .2em;
    }
}
@media (width >= 25rem) {
    .constraint_hints {
        column-gap: 1rem;
        justify-content: space-between;
    }
}
.constraint_hints > :nth-child(1) {
    align-items: center;
    column-gap: .4em;
    display: flex;
    font-weight: 500;
}
.constraint_hints > :nth-child(1).invalid { color: hsla(22.5, 100%, 36.3%, 1); }
.constraint_hints > :nth-child(1).valid { color: hsla(73, 100%, 36.3%, 1); }
.constraint_hints > :nth-child(2) {
    align-items: center;
    column-gap: .4em;
    display: flex;
}
.constraint_hints > :nth-child(2) > svg { color: var(--bg-3); }
details { font-size: .8rem; }
details summary {
    align-items: center;
    color: var(--fg-1);
    column-gap: .4em;
    cursor: pointer;
    display: flex;
    list-style: none;
    margin-bottom: .5rem;
}
details summary::marker { display: none; }
details summary:focus-visible,
details summary:hover {
    color: var(--fg-2);
}
footer {
    color: var(--fg-3);
    font-size: .8rem;
    margin-block: 2rem;
    text-align: center;
}
footer a {
    color: var(--fg-2);
    text-decoration: dashed underline var(--bg-3);
    text-underline-position: under;
}
form {
    display: flex;
    flex-direction: column;
    row-gap: 2rem;
    margin-block: 2rem;
}
h1 {
    align-items: center;
    color: var(--fg-1);
    column-gap: .7rem;
    display: flex;
    font-size: 1.7rem;
    font-weight: 400;
    margin-block: 4rem 2rem;
}
h1 img {
    height: 1em;
    width: 1em;
}
h2 {
    color: var(--fg-1);
    font-size: 1.3rem;
    font-weight: 400;
}
header {
    align-items: center;
    column-gap: .8rem;
    display: flex;
    position: fixed;
    right: 1.2rem;
    top: .8rem;
}
header .activity {
    background: var(--submit-hover);
    border-radius: 50%;
    height: 1em;
    width: 1em;
}
header aside {
    font-size: .8rem;
    margin-block: .5rem 1rem;
}
header .close {
    font-size: .8rem;
    margin: -.5rem;
    padding: .5rem;
    text-decoration: underline var(--bg-2);
    text-underline-position: under;
}
header .ellipsis {
    background: var(--fg-2);
    border-radius: .2rem;
    color: var(--bg-1);
    font-size: 1.2rem;
}
header .ellipsis:hover + .panel,
header .panel:focus-within,
header .panel:hover {
    opacity: 1;
    pointer-events: unset;
}
header .menu { position: relative; }
header .message {
    align-items: center;
    background: var(--bg-1);
    border-radius: .2rem;
    border: 1px solid var(--bg-2);
    column-gap: .5em;
    display: flex;
    font-size: .9rem;
    padding: .5em;
}
header .nowrap { white-space: nowrap; }
header .panel {
    font-size: .9rem;
    opacity: 0;
    padding-top: 1.6rem;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: .6rem;
}
header .panel button {
    align-items: center;
    background: var(--bg-2);
    border: none;
    border-radius: .2rem;
    color: var(--fg-1);
    column-gap: .4em;
    display: flex;
    justify-content: center;
    padding: .3rem .5rem;
    white-space: nowrap;
    width: 100%;
}
header .panel button:focus-visible,
header .panel button:hover {
    background: var(--bg-3);
}
header .panel ul {
    background: var(--bg-1);
    border-radius: .2rem;
    border: 1px solid var(--bg-2);
    margin: 0;
    padding: 1rem;
}
header .panel li + li { margin-top: .5rem; }
header .tutorial {
    background: var(--bg-1-plus);
    border-radius: .2rem;
    border: 1px solid var(--bg-2);
    font-size: .9rem;
    padding: 1rem;
    position: absolute;
    right: 0;
    top: 2rem;
    white-space: nowrap;
}
header .tutorial:not(.active) { display: none; }
input:not([type]),
input[type="password"],
textarea {
    background: var(--bg-2-20);
    border: 1px solid var(--bg-2);
    border-radius: .2rem;
    box-sizing: border-box;
    color: var(--fg-2);
    padding: .2em .4em;
    width: 100%;
}
main {
    margin: 2rem auto;
    max-width: 40rem;
    padding-inline: 1.5rem;
}
.message {
    align-items: center;
    column-gap: .5rem;
    display: flex;
    flex-grow: 1;
    opacity: 0;
    transition: opacity 1s ease;
}
.message.active { opacity: 1; }
.option {
    background: var(--bg-2-20);
    border: 1px solid var(--bg-2);
    border-radius: .2rem;
    cursor: pointer;
    display: block;
    padding: .5em;
}
.option:focus-visible,
.option:hover {
    background: var(--bg-2-40);
}
.option + .option { margin-top: .3rem; }
p { line-height: 1.3; }
.precheck_message {
    display: inline-block;
    font-size: .9rem;
    margin-left: .5rem;
}
.required_hint {
    background: var(--bg-2-20);
    border: 1px solid var(--bg-2);
    border-radius: .2rem;
    font-size: .9rem;
    margin-block: 1rem;
    padding: .8em .8em;
}
.required_hint.local {
    background: var(--bg-2-20);
    border: 1px solid var(--bg-2);
    border-radius: .2rem;
    display: inline-block;
    font-size: .9rem;
    margin-block: 0;
    margin-left: .2rem;
    padding: .4em;
}
.required_hint.info {
    background: hsla(174.3, 100%, 49.6%, 0.1);
    border-color: hsla(174.3, 100%, 49.6%, 0.2);
}
.required_hint.warn {
    background: hsla(45.1, 100%, 49.6%, 0.1);
    border-color: hsla(45.1, 100%, 49.6%, 0.2);
}
.submit_message {
    color: hsla(22.5, 100%, 36.3%, 1);
    display: inline-block;
    font-size: .9rem;
    margin-left: .5rem;
}
svg {
    display: block;
    fill: currentColor;
    height: 1em;
    width: 1em;
}
textarea {
    font-family: inherit;
    resize: vertical;
}
ul {
    list-style: none;
    padding-left: 0;
}
