:root {
  --paper: #F4F7F5;
  --card: #FFFFFF;
  --ink: #10261F;
  --muted: #55665F;
  --line: #D2DDD7;
  --green: #1E6B52;
  --green-soft: #DCEBE4;
  --red: #A3261E;
  --red-soft: #FBE9E7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main { max-width: 760px; margin: 0 auto; padding: 56px 20px 96px; }

h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; margin: 0 0 12px; max-width: 14ch; }
h2 { font-size: 1.6rem; letter-spacing: -.02em; margin: 0 0 8px; }
h3 { font-size: 1.05rem; margin: 0 0 12px; font-weight: 700; }
p { margin: 0 0 16px; }
.top { margin-bottom: 36px; }
.top p { color: var(--muted); margin: 0; }

button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font-weight: 600; font-size: .95rem;
}
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.status { color: var(--muted); }
.day { margin-bottom: 32px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.slot {
  text-align: left; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  transition: border-color .12s, background .12s, transform .12s;
}
.slot strong { display: block; font-size: 1.15rem; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.slot span { font-size: .9rem; color: var(--muted); }
.slot:hover:not([disabled]) { border-color: var(--green); background: var(--green-soft); }
.slot:active:not([disabled]) { transform: scale(.98); }
.slot[disabled] { background: transparent; color: var(--muted); cursor: not-allowed; }
.slot[disabled] strong { text-decoration: line-through; }

.link { background: none; border: 0; padding: 0; margin-bottom: 24px; color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.chosen { padding: 14px 16px; border-radius: 14px; background: var(--green-soft); font-weight: 600; margin-bottom: 24px; }

form { display: grid; gap: 6px; max-width: 440px; }
label { font-weight: 600; font-size: .95rem; margin-top: 10px; }
input {
  font: inherit; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); width: 100%;
}
input:focus { outline: 3px solid var(--green-soft); border-color: var(--green); }

.primary, .danger { padding: 13px 20px; border-radius: 12px; font-weight: 700; border: 1px solid transparent; }
.primary { background: var(--green); color: #fff; margin-top: 18px; }
.primary:hover { background: #17573F; }
.primary[disabled] { opacity: .6; cursor: progress; }
.danger { background: none; border-color: var(--line); color: var(--red); }
.danger:hover { background: var(--red-soft); border-color: var(--red); }
.danger[disabled] { opacity: .6; cursor: progress; }

.error { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--red-soft); color: var(--red); font-weight: 600; }

.details { margin: 24px 0; padding: 4px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.details div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.details div:last-child { border-bottom: 0; }
.details dt { color: var(--muted); flex: none; }
.details dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions .primary { margin-top: 0; }

[hidden] { display: none !important; }

@media (max-width: 480px) {
  main { padding-top: 36px; }
  .slots { grid-template-columns: repeat(2, 1fr); }
  .details div { flex-direction: column; gap: 2px; }
  .details dd { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
