:root {
  --accent: #246c5a;
  --ink: #202c2a;
  --muted: #687672;
  --line: #dce4e0;
  --bg: #eff2f1;
  --tint: #e8f1ed;
  --white: #fff;
  --radius: 12px;
  --pad: 24px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; overflow-anchor: none; }
body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

#app {
  max-width: 390px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--white);
  padding-bottom: 104px;
}

.pad { padding: var(--pad); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.kicker {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
h1 {
  margin: 16px 0 0;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
}
h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 600;
}
.lede, p { margin: 0; }
.notice {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--tint);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}
.notice h2 { font-size: 16px; }
.notice a { color: var(--accent); font-weight: 600; text-decoration: underline; }
.notice a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lede { margin-top: 8px; font-size: 16px; }
.muted { color: var(--muted); font-size: 14px; }
.small { color: var(--muted); font-size: 12px; }
.strong { font-weight: 600; }
.section-title { font-size: 20px; font-weight: 600; }

.howto {
  background: var(--tint);
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.step-row { display: flex; gap: 16px; align-items: flex-start; }
.num {
  width: 24px;
  flex: none;
  color: var(--accent);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}
.ability { padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 14px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.card h3 { margin: 0; font-size: 16px; font-weight: 600; }

.photo {
  height: 144px;
  border-radius: var(--radius);
  background: #d5e4dc center/cover no-repeat;
  overflow: hidden;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.tall { height: 176px; }
.photo.shot { height: 304px; background: #1d3a32; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  padding: 8px;
  border-radius: var(--radius);
  border: 0;
  background: var(--tint);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}
.btn.primary { background: var(--accent); color: var(--white); }
.btn.ghost {
  background: transparent;
  color: var(--accent);
  min-height: 0;
  width: auto;
  padding: 0;
  font-weight: 400;
  font-size: 14px;
}
.btn:focus-visible, .option:focus-visible, .day:focus-visible, .swatch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn[disabled], .option[disabled] { opacity: 0.45; cursor: default; }

.row { display: flex; gap: 8px; }
.row .btn, .row .option { flex: 1; }

.option, .day {
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 16px;
  text-align: left;
  font-size: 14px;
}
.option.on, .day.on { border-color: var(--accent); background: var(--tint); }
.day {
  min-height: 58px;
  width: 62px;
  padding: 8px;
  text-align: center;
  font-weight: 600;
}
.days { display: flex; gap: 8px; }

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.field input, .field textarea {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  background: var(--white);
  font-size: 16px;
  color: var(--ink);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.crumb { margin: 0 0 8px; color: var(--accent); font-size: 14px; }
.crumb button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--accent);
  font-size: 14px;
}
.case-head { padding: var(--pad); background: var(--white); }
.case-head h1 { margin-top: 0; }
.case-head .lede { color: var(--muted); font-size: 14px; }

hr { border: 0; border-top: 1px solid var(--line); margin: 0; width: 100%; }

.orderbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(390px, 100%);
  min-height: 88px;
  border: 0;
  background: var(--accent);
  color: var(--white);
  padding: 16px;
  text-align: center;
}
.orderbar strong { display: block; font-size: 14px; font-weight: 600; }
.orderbar span { display: block; font-size: 12px; font-weight: 400; }

.progress { display: flex; gap: 4px; }
.progress i {
  display: block;
  height: 4px;
  flex: 1;
  border-radius: 4px;
  background: var(--line);
}
.progress i.on { background: var(--accent); }

.swatches { display: flex; gap: 8px; }
.swatch {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 8px;
  text-align: center;
  font-size: 12px;
}
.swatch i {
  display: block;
  height: 48px;
  border-radius: 8px;
  margin-bottom: 8px;
}
.swatch.on { border-color: var(--accent); background: var(--tint); }

.qty { display: flex; gap: 8px; }
.qty .btn { width: 98px; }

.sk {
  height: 112px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.sk b, .sk em {
  display: block;
  background: var(--line);
  border-radius: 8px;
  height: 16px;
  width: 184px;
}
.sk em { height: 48px; width: 100%; margin-top: 16px; }

.qr {
  width: 175px;
  height: 175px;
  margin: 16px auto;
  background:
    linear-gradient(90deg, var(--ink) 25%, transparent 25% 50%, var(--ink) 50% 75%, transparent 75%),
    linear-gradient(var(--ink) 25%, transparent 25% 50%, var(--ink) 50% 75%, transparent 75%);
  background-size: 14px 14px;
  border: 8px solid var(--white);
  outline: 1px solid var(--line);
}
.qr.dim { opacity: 0.35; }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(32, 44, 42, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 5;
}
.overlay[hidden] { display: none; }
.sheet, .modal {
  width: min(390px, 100%);
  background: var(--white);
  border-radius: 16px 16px 0 0;
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 90vh;
  overflow: auto;
}
.modal { margin: auto 0; border-radius: var(--radius); width: min(342px, calc(100% - 48px)); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 104px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  z-index: 6;
}

.pay-page { background: var(--bg); }
.pay {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pay h1 { margin: 0; }
.sum { font-size: 24px; font-weight: 600; }
.back-line a { color: var(--accent); }

.chat {
  background: var(--bg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bubble {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bubble .btn { margin-top: 8px; }
