:root {
    font-family: system-ui, sans-serif;
    color: #172b3a;
    background: #f3f6f8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

main {
    max-width: 80rem;
    margin: auto;
    padding: clamp(1rem, 4vw, 3rem);
}

h1 {
    overflow-wrap: anywhere;
}

.status {
    min-height: 1.5em;
    color: #506576;
}

.offline {
    color: #9c3512;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    gap: 1rem;
}

.reaction {
    min-width: 0;
    border: 2px solid #c2d0da;
    border-radius: 0.8rem;
    padding: 1.4rem;
    background: white;
    color: inherit;
    overflow-wrap: anywhere;
}

button.reaction {
    cursor: pointer;
    min-height: 8rem;
    font: inherit;
    font-size: 1.25rem;
}

button.reaction:hover:enabled {
    border-color: #006e67;
}

button[aria-pressed="true"] {
    background: #006e67;
    border-color: #006e67;
    color: white;
}

button:focus-visible {
    outline: 3px solid #da7800;
    outline-offset: 3px;
}

button:disabled {
    opacity: 0.5;
    cursor: default;
}

.reaction .reaction-label {
    display: block;
    margin-top: 0;
    font-size: 1.25rem;
}

.count {
    display: block;
    margin: 1rem 0;
    font-size: 1.5rem;
    font-weight: 650;
}

meter {
    display: block;
    width: 100%;
    height: 1.3rem;
}

#editor {
    margin-top: 2rem;
    border-top: 1px solid #c2d0da;
    padding-top: 1rem;
}

summary {
    cursor: pointer;
}

#session-editor {
    max-width: 48rem;
    margin-top: 1rem;
}

#session-editor label {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

#session-editor input {
    width: 100%;
    min-width: 0;
    padding: 0.6rem;
    font: inherit;
    border: 1px solid #a3b4c0;
    border-radius: 0.3rem;
}

#session-editor button {
    padding: 0.5rem 0.8rem;
    font: inherit;
    cursor: pointer;
}

#session-editor button:disabled {
    cursor: default;
}

#session-fields {
    border: 0;
    padding: 0;
    margin: 1rem 0 0;
    min-width: 0;
}

.hint {
    color: #506576;
    font-size: 0.9rem;
}

.reaction-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 0.6rem;
    margin: 1rem 0;
}

.reaction-fields .editor-actions {
    grid-column: 1 / -1;
}

.editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
