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

html,
body {
    margin: 0;
    min-height: 100%;
}

html {
    background: var(--surface-page);
}

body {
    min-height: 100vh;
    color: var(--text-primary);
    font-family: var(--font-family-base);
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
    letter-spacing: var(--letter-spacing-body);
    -webkit-font-smoothing: antialiased;
}

/* Exactly the viewport, not at least it: min-height lets the column grow and the pane's flex:1 then constrains nothing. */
#app {
    max-width: var(--max-width-shell);
    margin: 0 auto;
    padding: var(--space-4);
    height: 100vh;
    display: flex;
    flex-direction: column;
}

button,
input {
    color: inherit;
    font: inherit;
    min-height: var(--control-height-md);
    border: var(--border-width-hairline) solid transparent;
    border-radius: var(--radius-sm);
}

button {
    cursor: pointer;
    padding: 0 var(--space-4);
    background: var(--action-background);
    color: var(--action-text);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

input {
    padding: 0 var(--space-3);
    background: var(--surface-raised);
    border-color: var(--border-subtle);
}

:focus-visible {
    outline: var(--border-width-strong) solid var(--focus-ring);
    outline-offset: 2px;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: var(--space-2);
}

li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    background: var(--surface-raised);
}

h2 {
    margin: var(--space-4) 0 var(--space-2);
    font-size: var(--font-size-sm);
    letter-spacing: var(--letter-spacing-wide);
    color: var(--text-muted);
}

dl {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-1) var(--space-3);
}

dt {
    color: var(--text-muted);
}

/* A uniform gap would otherwise read as one long row. */
dt::after {
    content: ':';
}

dd {
    margin: 0;
    font-variant-numeric: tabular-nums;
}
