:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --fg: #16181d;
  --muted: #646b78;
  --line: #e2e5ea;
  --accent: #2f5bd3;
  --accent-fg: #ffffff;
  --accent-soft: #e8eefc;
  --danger: #b42318;
  --ok: #157f3b;
  --radius: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --card: #181b21;
    --fg: #e9ebef;
    --muted: #9aa1ad;
    --line: #2a2f38;
    --accent: #7c9cf5;
    --accent-fg: #0f1115;
    --accent-soft: #232c45;
    --danger: #f97066;
    --ok: #4ade80;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 32px 16px;
}
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 1.05rem; margin: 0 0 12px; }
button, input, select, textarea { font: inherit; color: inherit; }
.card {
  max-width: 960px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.muted { color: var(--muted); }
.eyebrow { color: var(--muted); margin: 0 0 4px; font-weight: 600; }
.eyebrow:empty { display: none; }
.facts { list-style: none; padding: 0; margin: 0 0 8px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 20px; }
.desc { white-space: pre-wrap; margin: 8px 0 0; }
.intro { padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }

.picker { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; }
@media (max-width: 720px) { .picker { grid-template-columns: 1fr; } .card { padding: 20px; } }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head h2 { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.dow span { color: var(--muted); font-size: .8rem; padding: 4px 0; }
.day {
  aspect-ratio: 1;
  border: 0;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  max-width: 48px;
  width: 100%;
  margin: 0 auto;
}
.day:disabled { background: none; color: var(--muted); font-weight: 400; cursor: default; opacity: .6; }
.day.selected { background: var(--accent); color: var(--accent-fg); }
.icon { border: 1px solid var(--line); background: none; border-radius: 8px; width: 36px; height: 36px; cursor: pointer; font-size: 1.2rem; }
.icon:disabled { opacity: .35; cursor: default; }
.tz { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; font-size: .9rem; color: var(--muted); }
.tz select { max-width: 100%; }
.slot-list { display: grid; gap: 8px; max-height: 380px; overflow-y: auto; padding-right: 4px; }
.slot {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: none;
  border-radius: 8px;
  padding: 10px;
  font-weight: 600;
  cursor: pointer;
}
.slot:hover { background: var(--accent-soft); }

.details { max-width: 480px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field.check { flex-direction: row; align-items: center; gap: 10px; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
}
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.primary {
  background: var(--accent);
  color: var(--accent-fg);
  border: 0;
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
}
.primary:disabled { opacity: .6; cursor: default; }
.link { background: none; border: 0; color: var(--accent); padding: 0; cursor: pointer; margin-bottom: 12px; }
.error { color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.done { text-align: center; padding: 24px 0; }
.tick { width: 56px; height: 56px; border-radius: 999px; background: var(--accent-soft); color: var(--ok); font-size: 1.8rem; line-height: 56px; margin: 0 auto 12px; }

.types { display: grid; gap: 12px; }
.type-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}
.type-card:hover { background: var(--accent-soft); }
.type-card strong { font-size: 1.05rem; }
