.agenda{padding-block:28px 70px}.agenda h1{font-size:clamp(3rem,8vw,6rem);margin:12px 0}.agenda-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:20px;margin-block:28px;align-items:start}.agenda-card{border:1px solid var(--line);border-radius:18px;background:#fffefa;padding:clamp(14px,3vw,30px)}.agenda h2{font:400 clamp(1.65rem,3vw,2.5rem)/1.1 var(--serif);margin:0 0 10px}.month{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.month h2{margin:0;text-transform:capitalize}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;text-align:center}.calendar button,.month button{padding:0;min-height:37px;border:1px solid var(--line);border-radius:8px;background:#f4f7e9;color:var(--ink)}.month button{min-width:36px;font-size:1.3rem}.agenda form{display:grid;gap:9px;margin:12px 0}.agenda input{display:block;width:100%;min-height:42px;border:1px solid var(--line);border-radius:8px;background:white;padding:8px;font:inherit}.agenda .button:disabled{opacity:.55;cursor:default}.agenda summary{cursor:pointer;font-weight:700}.agenda [role=status]:not(:empty){margin-block:8px;font-weight:600}.booking-row{padding:12px 0;border-top:1px solid var(--line)}.booking-row button{margin:6px 6px 0 0}@media(max-width:760px){.agenda-grid{grid-template-columns:1fr}}


.calendar button { display:grid; place-content:center; gap:2px; min-height:56px; font-weight:700; line-height:1.15 }
.calendar button span { font-size:.68rem; font-weight:600 }
.calendar button:disabled { cursor:default }
.calendar button.is-free, .legend .is-free { background:#ddf5e2; border-color:#7eb68b; color:#174727 }
.calendar button.is-free:hover { background:#c4edcc }
.calendar button.is-reserved, .legend .is-reserved { background:#ffdddd; border-color:#dc9b9b; color:#802a2a }
.calendar button.is-past, .legend .is-past { background:#e5e5e5; border-color:#d3d3d3; color:#505050 }
.calendar button.is-unavailable { background:#f2f0ec; color:#625f58 }
.calendar button[aria-pressed="true"] { background:#183f30; border-color:#183f30; color:white }
.calendar button[aria-pressed="true"]:hover { background:#245441 }
.legend { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 0; padding:0; list-style:none }
.legend li { border:1px solid; border-radius:7px; padding:3px 9px; font-size:.875rem; font-weight:700 }
@media(max-width:520px) {
  .calendar button span { display:none }
  .calendar button { min-height:42px }
}

#booking-filters {display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:16px 0}
#booking-filters > label {flex:1 1 150px;max-width:250px;font-weight:700}
#booking-filters select {display:block;width:100%;min-height:42px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--ink);padding:8px;font:inherit}
#list {display:grid;gap:12px;margin-top:16px}
.booking-row {padding:16px;border:1px solid var(--line);border-radius:14px;background:#fffefa}
.booking-heading,.booking-actions {display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.booking-heading {justify-content:space-between}
.booking-heading h3 {font-size:1.2rem;font-weight:800}
.booking-date {font-weight:700;margin-block:3px}
.booking-status {padding:3px 10px;border-radius:999px;font-size:.875rem;font-weight:700;background:#e9e7e4;color:#484241}
.status-pending {background:#ffecb0;color:#5c3e00}
.status-confirmed {background:#ddf5e2;color:#174727}
.status-blocked {background:#e8dffd;color:#493070}
.booking-actions {margin-top:9px}
.booking-actions .action-confirm {background:#185537;color:white}
.booking-actions .action-danger {background:#fff0ef;border-color:#a83434;color:#802a2a}
.booking-actions .action-neutral {border-color:var(--ink)}
.booking-actions button:hover:not(:disabled) {text-decoration:underline}

.confirm-panel {
  margin-top: 16px;
  padding: clamp(16px, 4vw, 28px);
  border: 2px solid #b78a26;
  border-radius: 16px;
  background: #fff1bf;
  color: #342316;
  overflow-wrap: anywhere;
}
.confirm-panel h3 {
  margin: 6px 0 12px;
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  font-weight: 800;
}
.confirm-panel p + p { margin-top: 10px; }
.confirm-panel .button { margin-top: 16px; }

.login-error {
  margin: 0 0 4px;
  padding: 12px 14px;
  border: 1px solid #b24444;
  border-left-width: 4px;
  border-radius: 8px;
  background: #fff0ef;
  color: #752121;
  font-weight: 700;
}
.login-error:focus-visible { outline: 2px solid #b24444; outline-offset: 2px; }
