* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    margin: 0 auto;
    padding: 1em;
    max-width: 430px;
    background: #050505;
    color: #f5f5f7;
}

h1 {
    font-size: 1.25em;
    text-align: center;
    font-weight: 600;
}

fieldset {
    background: #161616;
    margin-bottom: 1em;
    padding: 1em;
    border-radius: 24px;
    border: 1px solid #2c2c2e;
}

legend {
    color: #aaa;
    font-size: .8em;
    padding: 0 .5em;
}

button,
select,
input {
    width: 100%;
    min-height: 3.3em;
    padding: .8em;
    font-size: 1.05em;
    border-radius: 999px;
    border: 1px solid #3a3a3c;
    background: #2c2c2e;
    color: #f5f5f7;
    -webkit-appearance: none;
    appearance: none;
}

button:active {
    background: #4a4a4c;
    transform: scale(.97);
}

select {
    border-radius: 16px;
}

.row,
.nav-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65em;
    margin-bottom: .65em;
}

.nav-buttons button {
    background: #1c1c1e;
    font-size: .95em;
}

.full {
    width: 100%;
}

.volume-form label {
    display: block;
    font-size: .95em;
    color: #aaa;
    margin-bottom: .4em;
}

input[type="range"] {
    accent-color: #f5f5f7;
    background: transparent;
    padding-left: 0;
    padding-right: 0;
}

.response {
    margin-bottom: 1em;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #2c2c2e;
    background: #111;
}

.hidden { display: none; }

.response-title {
    padding: .65em .9em;
    font-weight: bold;
    background: #1c1c1e;
    border-bottom: 1px solid #2c2c2e;
}

.response.warn .response-title,
.response.error .response-title {
    background: #5a1f1f;
}

.response pre {
    margin: 0;
    background: #050505;
    color: #eee;
    padding: 1em;
    white-space: pre-wrap;
    overflow-x: auto;
    font-size: .8em;
}
