:root {
    color-scheme: light;
    --background: #f5f3ee;
    --surface: #fff;
    --text: #202522;
    --muted: #657069;
    --accent: #176b52;
    --accent-hover: #10533f;
    --border: #d9ddd8;
    --error: #a52a2a;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--accent); }
.container { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 64px; }
.profile { margin-bottom: 32px; }
.profile-name { color: var(--text); font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.profile p { color: var(--muted); margin: 4px 0 0; }
h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.15; margin: 8px 0 20px; }
h2 { font-size: 1.25rem; margin: 8px 0; }
.meeting-list { display: grid; gap: 16px; }
.meeting-card, form, .confirmation {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}
.meeting-card { color: inherit; display: block; text-decoration: none; }
.meeting-card:hover, .meeting-card:focus-visible { border-color: var(--accent); }
.duration { color: var(--accent); font-size: .9rem; font-weight: 700; text-transform: uppercase; }
.button {
    align-items: center;
    background: var(--accent);
    border: 0;
    border-radius: 9px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    margin-top: 16px;
    min-height: 46px;
    padding: 10px 20px;
    text-decoration: none;
}
.button:hover { background: var(--accent-hover); }
.button:disabled { cursor: wait; opacity: .65; }
.back-link { display: inline-block; margin-bottom: 20px; }
form { display: grid; gap: 18px; }
label { display: grid; font-weight: 650; gap: 6px; }
input, textarea {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font: inherit;
    padding: 11px 12px;
    width: 100%;
}
input:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid #8ac7b3; outline-offset: 2px; }
small, .muted { color: var(--muted); font-weight: 400; }
.date-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.slots-fieldset { border: 0; margin: 0; padding: 0; }
.slots-fieldset legend { font-weight: 650; margin-bottom: 8px; }
.slots { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); margin-top: 12px; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; }
.slot span { border: 1px solid var(--accent); border-radius: 8px; color: var(--accent); cursor: pointer; display: block; padding: 10px; text-align: center; }
.slot input:checked + span { background: var(--accent); color: #fff; }
.slot input:focus-visible + span { outline: 3px solid #8ac7b3; outline-offset: 2px; }
.error { color: var(--error); font-weight: 650; }
.honeypot { left: -10000px; position: absolute; }
dl { display: grid; gap: 8px 20px; grid-template-columns: minmax(100px, auto) 1fr; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.comment { white-space: pre-wrap; }
.status { color: var(--accent); font-weight: 700; text-transform: uppercase; }
@media (max-width: 560px) {
    .container { padding-top: 24px; width: min(100% - 20px, 760px); }
    .meeting-card, form, .confirmation { padding: 18px; }
    .date-grid { grid-template-columns: 1fr; }
    .slots { grid-template-columns: repeat(2, 1fr); }
}
