:root {
    color-scheme: light;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.5;
    background: #f4f1ea;
    color: #1d1a16;
}

body {
    margin: 0;
}

main {
    max-width: 40rem;
    margin: 0 auto;
    padding: 1rem 1rem 3rem;
}

.narrow {
    max-width: 22rem;
    margin: 12vh auto;
    padding: 0 1rem;
}

h1, h2 {
    font-weight: 600;
}

h1 {
    font-size: 1.4rem;
    margin: 0;
}

h2 {
    font-size: 1.05rem;
    margin: 0 0 0.25rem;
}

a {
    color: #1f4d3a;
}

.top {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border-bottom: 1px solid #e4ddd2;
    position: sticky;
    top: 0;
}

.brand {
    font-weight: 700;
    text-decoration: none;
    color: inherit;
}

nav {
    display: flex;
    gap: 0.75rem;
}

nav a {
    text-decoration: none;
    color: #5c564e;
}

nav a.on {
    color: #1d1a16;
    border-bottom: 2px solid #1f4d3a;
}

.logout {
    margin-left: auto;
}

button, .button {
    appearance: none;
    border: 0;
    background: #1f4d3a;
    color: #fff;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

button.ghost {
    background: transparent;
    color: #6b3a32;
}

.row, .actions, .grid, .checks, .time-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.row {
    justify-content: space-between;
    margin-bottom: 1rem;
}

.actions {
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    align-items: end;
}

.card, form.form, .narrow form {
    background: #fff;
    border: 1px solid #e4ddd2;
    border-radius: 12px;
    padding: 1rem;
    margin: 0.75rem 0;
}

label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0.6rem 0;
    font-size: 0.92rem;
}

input, select {
    font: inherit;
    padding: 0.5rem 0.6rem;
    border: 1px solid #d5cdc2;
    border-radius: 8px;
    background: #fff;
}

.checks label, .check, .time-row {
    flex-direction: row;
}

fieldset {
    border: 1px solid #e4ddd2;
    border-radius: 8px;
    margin: 0.6rem 0;
}

.muted {
    color: #6d675f;
}

.alert {
    color: #6b3a32;
    background: #f8ece8;
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
}

.time {
    margin: 0;
    color: #1f4d3a;
    font-variant-numeric: tabular-nums;
}

.hits {
    list-style: none;
    margin: -0.4rem 0 0.6rem;
    padding: 0;
    border: 1px solid #e4ddd2;
    border-radius: 8px;
    background: #fff;
}

.hits button {
    width: 100%;
    text-align: left;
    background: transparent;
    color: inherit;
    border-radius: 0;
}
