:root {
    color-scheme: light;
    --bg: #f5f7f2;
    --ink: #15201b;
    --muted: #5d6b63;
    --line: #d9e0d7;
    --panel: #ffffff;
    --accent: #24745a;
    --accent-dark: #15513e;
    --danger: #b93333;
    --unknown: #6f6672;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(2rem, 6vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: 0;
}

h2 {
    font-size: 1.25rem;
}

.intro {
    padding: 36px 0 28px;
}

.intro p {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.08rem;
}

.eyebrow {
    color: var(--accent);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.forms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

form,
.panel,
.member-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

form {
    display: grid;
    gap: 14px;
    padding: 22px;
}

label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: .92rem;
    font-weight: 650;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    font: inherit;
    padding: 12px 13px;
}

textarea {
    resize: vertical;
}

button {
    border: 0;
    border-radius: 6px;
    background: var(--accent);
    color: white;
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    padding: 12px 16px;
}

button:hover {
    background: var(--accent-dark);
}

.ghost {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
}

.ghost:hover {
    background: #eef3ec;
}

.error {
    background: #fff0f0;
    border: 1px solid #ffd3d3;
    border-radius: 8px;
    color: var(--danger);
    padding: 12px 14px;
}

.topbar {
    align-items: start;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.topbar form {
    padding: 0;
    background: transparent;
    border: 0;
}

.panel {
    padding: 0;
    margin-bottom: 30px;
}

.checkin-form {
    border: 0;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.status-grid label,
.help-check {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    display: flex;
    gap: 8px;
    padding: 10px;
}

.status-grid input,
.help-check input {
    width: auto;
}

.member-list {
    display: grid;
    gap: 12px;
}

.member-card {
    border-left: 6px solid #9ca6a0;
    padding: 18px;
}

.member-head {
    align-items: start;
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.member-head h3 {
    margin-bottom: 4px;
}

.member-head p,
.meta {
    color: var(--muted);
    font-size: .9rem;
}

.status-safe {
    border-left-color: var(--accent);
}

.status-unknown {
    border-left-color: var(--unknown);
}

.status-need_help {
    border-left-color: var(--danger);
}

.needs-help {
    color: var(--danger);
    font-weight: 800;
}

@media (max-width: 760px) {
    main {
        width: min(100% - 24px, 1120px);
        padding-top: 20px;
    }

    .forms,
    .status-grid {
        grid-template-columns: 1fr;
    }

    .topbar,
    .member-head {
        display: grid;
    }
}
