:root {
  color-scheme: light;
  --ink: #18212f;
  --muted: #697486;
  --line: #d7dde6;
  --panel: #ffffff;
  --bg: #f4f7fb;
  --blue: #2457a6;
  --blue-dark: #17417f;
  --green: #167c5a;
  --red: #af2f3f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.panel,
.list-panel,
.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel {
  padding: 28px;
}

.title-row,
.section-head,
.input-row,
.actions,
.toggle {
  display: flex;
  align-items: center;
}

.title-row,
.section-head {
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 19px;
}

.pill {
  min-width: 92px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e8edf5;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.pill.ok {
  background: #dff4eb;
  color: var(--green);
}

.pill.error {
  background: #fae2e5;
  color: var(--red);
}

.form {
  margin-top: 28px;
}

label {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.input-row {
  margin-top: 8px;
  gap: 10px;
}

input[type="email"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  font: inherit;
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: var(--blue-dark);
}

button.secondary {
  background: #e8edf5;
  color: var(--ink);
}

.toggle {
  width: fit-content;
  margin-top: 14px;
  gap: 10px;
  font-weight: 600;
}

.toggle input {
  width: 20px;
  height: 20px;
}

.actions {
  margin-top: 22px;
  gap: 10px;
  flex-wrap: wrap;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.metric {
  min-height: 112px;
  padding: 18px;
}

.metric span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 700;
}

.metric strong {
  display: block;
  font-size: 25px;
  overflow-wrap: anywhere;
}

.list-panel {
  padding: 24px;
}

.section-head a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.appointments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style-position: inside;
}

.appointments li {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fbfcfe;
  font-weight: 750;
}

.message {
  margin: 18px 0 0;
  color: var(--muted);
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 20px, 1040px);
    padding: 10px 0;
  }

  .panel,
  .list-panel {
    padding: 18px;
  }

  .title-row,
  .input-row {
    align-items: stretch;
    flex-direction: column;
  }

  h1 {
    font-size: 28px;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .pill {
    width: fit-content;
  }
}
