:root {
  --ink: #17231f;
  --muted: #61716a;
  --paper: #fbfaf5;
  --surface: #ffffff;
  --line: #dce5df;
  --green: #176b4d;
  --green-dark: #0d5239;
  --green-soft: #e8f4ee;
  --terracotta: #b65336;
  --shadow: 0 18px 60px rgba(28, 58, 45, .09);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 90% 0, #e2f1e9 0, transparent 28rem), var(--paper); }
a { color: var(--green-dark); }
.skip-link { position: absolute; left: -9999px; top: 1rem; }
.skip-link:focus { left: 1rem; z-index: 10; background: white; padding: .75rem 1rem; }
.site-header { max-width: 1120px; margin: 0 auto; padding: 1.6rem 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); font-weight: 760; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; color: white; background: var(--green); border-radius: 50%; font-family: Georgia, serif; font-size: 1.25rem; }
.shell { width: min(920px, calc(100% - 2rem)); margin: 1.5rem auto 5rem; }
.hero { max-width: 760px; margin: 4rem auto 2.5rem; text-align: center; }
.eyebrow { margin: 0 0 .65rem; color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; line-height: 1.12; letter-spacing: -.025em; }
h1 { margin: 0 0 1rem; font-size: clamp(2.25rem, 6vw, 4.35rem); font-weight: 500; }
h2 { margin: 0 0 .4rem; font-size: 1.6rem; }
.lead { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: 1.08rem; }
.muted, .field-help { color: var(--muted); }
.panel { padding: clamp(1.4rem, 4vw, 2.6rem); background: rgba(255,255,255,.93); border: 1px solid rgba(193, 211, 201, .8); border-radius: var(--radius); box-shadow: var(--shadow); }
.booking-panel { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.2rem; }
.step-marker { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; color: white; background: var(--green); font-weight: 800; }
.form-grid { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.6rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field-full { grid-column: 1 / -1; }
label { font-weight: 700; }
.optional { color: var(--muted); font-size: .88rem; font-weight: 500; }
input, select, textarea { width: 100%; border: 1px solid #b8c8bf; border-radius: 12px; padding: .82rem .9rem; color: var(--ink); background: white; font: inherit; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(23,107,77,.24); outline-offset: 2px; border-color: var(--green); }
select:disabled { background: #f1f3f1; color: #78827d; }
.field-help { margin: 0; font-size: .88rem; }
.check { display: flex; align-items: flex-start; gap: .75rem; color: var(--muted); font-weight: 500; }
.check input { width: 1.1rem; height: 1.1rem; margin-top: .2rem; accent-color: var(--green); }
.honeypot { position: absolute; left: -9999px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.button { display: inline-flex; justify-content: center; align-items: center; border: 1px solid transparent; border-radius: 999px; padding: .78rem 1.2rem; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.button-primary { color: white; background: var(--green); }
.button-primary:hover { background: var(--green-dark); }
.button-secondary, .button-quiet { color: var(--green-dark); background: white; border-color: #b8c8bf; }
.button-danger { color: #8d301d; background: #fff5f1; border-color: #e5b4a6; }
.security-note { margin: 0; color: var(--muted); font-size: .9rem; }
.security-note span { color: var(--green); }
.centered { max-width: 700px; margin: 5rem auto; text-align: center; }
.success-icon { display: grid; place-items: center; width: 3.8rem; height: 3.8rem; margin: 0 auto 1.3rem; border-radius: 50%; color: white; background: var(--green); font-size: 1.6rem; }
.alternative-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.5rem; }
.notice { margin-bottom: 1.25rem; padding: .9rem 1rem; border-radius: 12px; }
.notice-success { background: var(--green-soft); color: var(--green-dark); }
.notice-error { background: #fff0ec; color: #862e1b; }
.auth-panel { max-width: 520px; margin: 5rem auto; }
.admin-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 3rem 0 1.5rem; }
.admin-heading h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.status-card { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding: 1rem 1.2rem; border-radius: 16px; background: var(--green-soft); }
.status-card p { margin: .2rem 0 0; color: var(--muted); }
.system-status { margin: -0.6rem 0 1.5rem; padding: .8rem 1rem; color: var(--muted); }
.system-status summary { color: var(--green-dark); cursor: pointer; font-weight: 750; }
.system-status dl { display: grid; gap: .35rem; }
.system-status dl div { display: grid; grid-template-columns: 130px 1fr; }
.system-status dt { font-weight: 700; }
.system-status dd { margin: 0; }
.request-list { display: grid; gap: .85rem; }
.request-card { display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 1rem; padding: 1.2rem; background: white; border: 1px solid var(--line); border-radius: 18px; }
.request-card.highlight { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,107,77,.12); }
.request-date { text-align: center; color: var(--muted); }
.request-date span, .request-date strong { display: block; }
.request-date strong { color: var(--ink); font-size: 1.2rem; }
.request-main h2 { font-family: inherit; font-size: 1.05rem; }
.request-main p { margin: .25rem 0; color: var(--muted); }
.request-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; }
.badge { display: inline-flex; border-radius: 999px; padding: .2rem .55rem; background: #edf0ee; color: #506058; font-size: .75rem; font-weight: 800; }
.badge-pending { background: #fff1ca; color: #765600; }
.badge-approved { background: var(--green-soft); color: var(--green-dark); }
.request-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.proposal-form { display: flex; flex-wrap: wrap; gap: .5rem; width: min(100%, 420px); }
.proposal-form label { flex: 1 1 180px; }
.proposal-form input { padding: .65rem .75rem; }
.delete-form { grid-column: 3; justify-self: end; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.legal-copy { max-width: 760px; margin: 4rem auto; }
.legal-copy h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.settings-stack, .rule-list { display: grid; gap: 1.2rem; }
.weekly-row { display: grid; grid-template-columns: minmax(130px, 1fr) 130px auto 130px; align-items: center; gap: .75rem; }
.type-rule { border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.type-rule legend { padding: 0 .45rem; font-weight: 800; }
.form-grid.compact { gap: .8rem; margin-top: .5rem; }
.blackout-panel { margin-top: 1.2rem; }
.blackout-list { margin-top: 1.2rem; }
.blackout-list .weekly-row { grid-template-columns: 1fr auto; border-top: 1px solid var(--line); padding-top: .8rem; }
.site-footer { padding: 1.5rem; color: var(--muted); text-align: center; font-size: .88rem; }

@media (max-width: 700px) {
  .hero { margin-top: 2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .field, .field-full { grid-column: 1; }
  .request-card { grid-template-columns: 60px 1fr; align-items: start; }
  .request-actions { grid-column: 1 / -1; }
  .delete-form { grid-column: 1 / -1; justify-self: start; }
  .status-card, .admin-heading { align-items: flex-start; flex-direction: column; }
  .weekly-row { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
