:root {
  color-scheme: light;
  font: 100%/1.5 system-ui, sans-serif;
  color: #182838;
  background: #f4f6f5;
  --accent: #13584f;
  --muted: #4d6270;
  --border: #dce4e2;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, p { margin: 0; }
button, input, select { font: inherit; }

.container { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 0.7rem; min-height: 4.25rem; font-weight: 750; }
.brand-mark {
  position: relative;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.55rem;
  background: var(--accent);
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 0.47rem;
  border: 2px solid #fff;
  border-radius: 0.18rem;
  background: linear-gradient(#fff, #fff) center 0.18rem / 100% 2px no-repeat;
}

.page-heading { padding-block: clamp(2rem, 6vw, 4rem) 1.75rem; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.1; letter-spacing: -0.05em; }
.page-heading time { display: block; margin-top: 0.65rem; color: var(--muted); }

.layout { display: grid; grid-template-columns: minmax(17rem, 2fr) minmax(0, 3fr); gap: 1.25rem; align-items: start; padding-bottom: 2rem; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 1.15rem; padding: clamp(1rem, 3vw, 1.75rem); box-shadow: 0 8px 24px #18283808; }
h2 { font-size: 1.25rem; letter-spacing: -0.02em; }
form { margin-top: 1.25rem; }
label { display: block; font-size: 0.875rem; font-weight: 650; margin-bottom: 0.4rem; }
input, select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 2.8rem;
  margin-bottom: 1rem;
  padding: 0.6rem 0.75rem;
  color: inherit;
  background: #f8faf9;
  border: 1px solid #9caeac;
  border-radius: 0.55rem;
}
.time-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
:focus-visible { outline: 3px solid #22786b; outline-offset: 3px; }
button { cursor: pointer; border-radius: 0.55rem; padding: 0.6rem 0.9rem; min-height: 2.75rem; font-weight: 650; }
.primary { width: 100%; border: 1px solid var(--accent); background: var(--accent); color: #fff; }
.primary:hover { background: #0c453e; }

.notice:not(:empty) { padding: 0.75rem; border-radius: 0.55rem; font-size: 0.9rem; }
.error:not(:empty) { margin-bottom: 0.9rem; background: #fff0e8; color: #873614; }
.success:not(:empty) { margin-top: 0.9rem; background: #e7f3ee; color: #13584f; }
.room-suggestions { margin-bottom: 0.9rem; }
.room-suggestions p { font-size: 0.875rem; font-weight: 650; margin-bottom: 0.45rem; }
.suggestion-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.suggestion-buttons button { border: 1px solid #7aa198; color: var(--accent); background: #e7f3ee; }
.suggestion-buttons button:hover { background: #d5eae1; }

.agenda-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.25rem 1rem; }
#booking-count { color: var(--muted); font-size: 0.875rem; }
.bookings { display: grid; gap: 0.5rem; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.booking {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem 1rem;
  min-height: 3.5rem;
  padding: 0.75rem;
  border-radius: 0.55rem;
  border-left: 3px solid #9db5b0;
  background: #f5f7f7;
}
.booking.new { background: #e7f3ee; border-color: var(--accent); }
.booking-time { font-size: 0.875rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.booking-subject { font-size: 0.95rem; overflow-wrap: anywhere; }
.room-label { background: #e5ecea; border-radius: 1rem; padding: 0.2rem 0.6rem; font-size: 0.8rem; font-weight: 650; }

@media (max-width: 48rem) {
  .container { width: calc(100% - 2rem); }
  .layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 30rem) {
  .booking { grid-template-columns: minmax(0, 1fr) auto; }
  .booking-subject { grid-row: 2; grid-column: 1 / -1; }
}
