:root {
    --bg: #f5f1ea;
    --card: #ffffff;
    --text: #2f2a24;
    --muted: #766c60;
    --line: #e1d7c8;
    --accent: #203a5f;
    --accent-soft: #e8edf4;
    --danger: #9b2f2f;
    --ok: #2f6b4f;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    padding: 40px 18px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}
.wrapper { max-width: 1050px; margin: 0 auto; }
.header { margin-bottom: 26px; }
.eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}
h1 {
    margin: 8px 0 8px;
    font-size: clamp(32px, 5vw, 52px);
    letter-spacing: -0.04em;
}
h2 { margin-top: 0; }
p { color: var(--muted); line-height: 1.55; }
.grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 20px;
}
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 18px 45px rgba(47,42,36,.08);
}
label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin: 14px 0 6px;
}
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 13px;
    font: inherit;
    background: #fff;
    color: var(--text);
}
textarea { min-height: 120px; resize: vertical; }
button, .button {
    border: 0;
    border-radius: 14px;
    padding: 12px 16px;
    font-weight: 800;
    cursor: pointer;
    background: var(--accent);
    color: white;
    text-decoration: none;
    display: inline-block;
}
button.secondary, .button.secondary { background: var(--accent-soft); color: var(--accent); }
button.danger, .button.danger { background: #f3e6e3; color: var(--danger); }
.slot {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
}
.slot strong { display: block; margin-bottom: 4px; }
.badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
}
.badge.open { background: #e8f2ed; color: var(--ok); }
.badge.blocked { background: #f4e8e6; color: var(--danger); }
.badge.booked { background: #ede8f4; color: #553b79; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.notice {
    padding: 14px 16px;
    background: var(--accent-soft);
    border-radius: 16px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 18px;
}
.error {
    padding: 14px 16px;
    background: #f4e8e6;
    border-radius: 16px;
    color: var(--danger);
    font-weight: 700;
    margin-bottom: 18px;
}
.success {
    padding: 14px 16px;
    background: #e8f2ed;
    border-radius: 16px;
    color: var(--ok);
    font-weight: 700;
    margin-bottom: 18px;
}
.nav { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
@media (max-width: 800px) {
    .grid { grid-template-columns: 1fr; }
    .slot { grid-template-columns: 1fr; }
}
