:root {
  color-scheme: light;
  --ink: #1c2430;
  --muted: #44515d;
  --paper: #f3efe6;
  --card: #fffdf8;
  --line: #ddd4c4;
  --spruce: #0f4c45;
  --spruce-dark: #0b3833;
  --sand: #e7f2ef;
  --amber: #7a4e00;
  --amber-bg: #fff1d2;
  --bad: #8a2f2f;
  --bad-bg: #fde8e4;
  --ok: #1d6b3a;
  --ok-bg: #e5f6ea;
  --focus: #0f4c45;
  --shadow: 0 10px 30px rgba(28, 36, 48, 0.06);
  font-family: "Segoe UI", "Source Sans 3", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.45;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  padding: 8px 12px;
  z-index: 2;
}

.skip:focus { top: 12px; }

.top {
  background: var(--spruce);
  color: #f7fffc;
}

.top-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 18px 18px 16px;
}

.brand {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-note {
  margin: 2px 0 0;
  color: #d5ebe6;
}

.banner {
  max-width: 880px;
  margin: 14px auto 0;
  padding: 12px 14px;
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid #efd59a;
  border-radius: 12px;
}

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 18px 18px 40px;
}

.panel h1 {
  margin: 0 0 6px;
  font-size: 1.8rem;
  line-height: 1.15;
}

h2 {
  margin: 28px 0 10px;
  font-size: 1.25rem;
}

h3 { margin: 0; font-size: 1.15rem; }

.lede, .meta, .foot, .choice-note, .demo-accounts p {
  color: var(--muted);
}

.heading-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.stack, .cards, .card, .choices form { display: grid; gap: 10px; }

label { font-weight: 650; }

input[type="text"], input[type="password"], input[type="numeric"], input:not([type]) {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--spruce);
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

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

button:disabled {
  background: #d7d0c4;
  color: #3d4742;
  cursor: not-allowed;
}

button:disabled .choice-hours { color: #3d4742; }

button.ghost {
  background: transparent;
  color: var(--spruce);
  border: 2px solid var(--spruce);
}

button.ghost:hover { background: var(--sand); }

.choices button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.choice-hours { font-weight: 600; color: #e7f6f3; }

button.ghost .choice-hours, .choice-note { color: var(--muted); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.card-title, .actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.actions form { flex: 1 1 220px; }

.facts {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.facts div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 8px;
}

dt { color: var(--muted); }

dd { margin: 0; font-weight: 650; }

.proposed {
  background: var(--sand);
  border-radius: 12px;
  padding: 12px;
}

.proposed-label, .pending-note, .review-copy, .blocked, .opening-label {
  margin: 0;
}

.proposed-time {
  margin: 4px 0 0;
  font-size: 1.15rem;
  font-weight: 750;
}

.pending-note, .review-copy { margin-top: 8px; }

.blocked {
  background: var(--amber-bg);
  color: var(--amber);
  border-radius: 10px;
  padding: 10px 12px;
}

.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--sand);
  color: var(--spruce-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

.pill.warn, .status-aod_failed { background: var(--amber-bg); color: var(--amber); }
.pill.review, .status-pending_manager_review { background: #e7eefc; color: #1d3f86; }
.status-confirmed { background: var(--ok-bg); color: var(--ok); }
.status-denied, .status-no_longer_available, .status-withdrawn { background: var(--bad-bg); color: var(--bad); }

.flash {
  border-radius: 12px;
  padding: 12px 14px;
}

.flash.ok { background: var(--ok-bg); color: var(--ok); }
.flash.problem { background: var(--bad-bg); color: var(--bad); }

.day-group { margin-top: 18px; }
.opening { margin: 12px 0 18px; }
.scopes { display: flex; gap: 8px; flex-wrap: wrap; padding: 0; list-style: none; }
.scopes li { background: var(--sand); border-radius: 999px; padding: 6px 10px; }

.check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.check input { width: 1.2rem; height: 1.2rem; }

.demo-accounts { margin-top: 18px; }
.demo-accounts li { margin: 6px 0; }
.demo-accounts span { font-weight: 700; }

.foot {
  max-width: 880px;
  margin: 0 auto 28px;
  padding: 0 18px;
}

.foot a { color: var(--spruce); font-weight: 700; }

.empty { margin-top: 0; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

@media (min-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div { grid-template-columns: 8.5rem 1fr; }
}

@media (max-width: 640px) {
  .heading-row { display: block; }
  .heading-row form { margin-top: 12px; }
  .facts div { grid-template-columns: 1fr; gap: 0; }
  .choices button { display: grid; }
}

