:root {
  --bg: #fffaf2;
  --card: #ffffff;
  --ink: #3b2418;
  --muted: #8a6f5f;
  --line: #ecdcc7;
  --accent: #d9663b;
  --accent-ink: #ffffff;
  --coffee: #5a3220;
  --error: #b3261e;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 440px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 20px) 16px calc(env(safe-area-inset-bottom) + 32px);
}

[hidden] { display: none !important; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 28px;
}
.brand img { border-radius: 10px; }

h1 { font-size: 26px; line-height: 1.2; margin: 0 0 8px; }
.lede { color: var(--muted); margin: 0 0 24px; }
.hint { color: var(--muted); font-size: 14px; margin-top: 20px; }

label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin: 18px 0 6px;
}
.optional { color: var(--muted); font-weight: 400; }

input[type="text"], input[type="time"] {
  width: 100%;
  font: inherit;
  font-size: 18px;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 50px;
  -webkit-appearance: none;
  appearance: none;
}
input:focus { outline: none; border-color: var(--accent); }

.time-row { display: flex; gap: 8px; align-items: stretch; }
.time-row input { flex: 1; min-width: 0; }
.quick { display: flex; gap: 6px; }
.quick button {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--coffee);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  min-width: 52px;
}
.quick button:active { background: #f6e8d6; }

button.primary, .button.secondary, button.secondary {
  display: block;
  width: 100%;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 14px;
  padding: 14px;
  margin-top: 24px;
  cursor: pointer;
}
button.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  font-size: 19px;
}
button.primary:disabled { opacity: 0.6; }
button.primary.ditch { margin-top: 28px; font-size: 21px; padding: 16px; }
.button.secondary, button.secondary {
  background: transparent;
  color: var(--coffee);
  border: 1.5px solid var(--line);
  margin-top: 12px;
}

.error { color: var(--error); font-size: 15px; margin: 10px 0 0; }

.steps { list-style: none; padding: 0; margin: 0; }
.steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
}
.num {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 15px;
}
.glyph {
  width: 22px; height: 22px;
  vertical-align: -5px;
  color: #0a84ff;
}
ul.plain { padding-left: 20px; }
ul.plain li { margin-bottom: 8px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 24px);
  transform: translateX(-50%);
  background: var(--coffee);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(59, 36, 24, 0.25);
  white-space: nowrap;
}
