:root {
  color-scheme: light;
  --green-950: #0b3d32;
  --green-800: #155e4b;
  --green-700: #1d725c;
  --green-100: #dff2eb;
  --cream: #f5f1e8;
  --paper: #fffefa;
  --ink: #18302a;
  --muted: #65756f;
  --line: #dce5e1;
  --danger: #ad3d37;
  --shadow: 0 10px 30px rgba(27, 72, 58, 0.09);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% -10%, rgba(223, 242, 235, 0.9), transparent 35%),
    var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 760px;
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 18px 12px;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--green-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 25px; letter-spacing: -0.02em; }
h2 { margin-bottom: 4px; font-size: 17px; }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 14px calc(36px + env(safe-area-inset-bottom));
}

.card {
  margin-bottom: 13px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(220, 229, 225, 0.9);
  border-radius: 20px;
  background: rgba(255, 254, 250, 0.96);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 15px;
  align-items: center;
  color: white;
  border: 0;
  background: linear-gradient(135deg, var(--green-950), var(--green-700));
}

.hero-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 17px;
  background: rgba(255,255,255,.12);
  font-family: serif;
  font-size: 25px;
  font-weight: 700;
}

.hero .muted { color: rgba(255,255,255,.72); }
.hero-time { margin: 4px 0; font-size: 21px; font-weight: 750; }
.small { margin-bottom: 0; color: rgba(255,255,255,.78); font-size: 12px; line-height: 1.55; }
.muted { color: var(--muted); }

.section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 13px;
}

.section-heading p { margin-bottom: 0; color: var(--muted); font-size: 12px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
.settings-grid { display: grid; gap: 10px; }

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

input, select {
  width: 100%;
  min-height: 45px;
  padding: 10px 11px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: white;
}

input:focus, select:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px var(--green-100); }

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 0;
  border-radius: 12px;
  font-weight: 720;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:active { transform: translateY(1px); }
.button-primary { color: white; background: var(--green-800); }
.button-secondary { color: var(--green-950); border: 1px solid var(--line); background: white; }
.button-quiet { min-height: 38px; color: var(--green-800); background: var(--green-100); }
.button-block { width: 100%; margin-top: 4px; }
.hidden { display: none !important; }

.empty-state {
  padding: 22px 10px 16px;
  color: var(--muted);
  text-align: center;
}

.empty-state div { margin-bottom: 7px; font-size: 28px; }
.empty-state p { margin: 0; font-size: 13px; }
.reservation-list { display: grid; gap: 9px; }

.reservation-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.reservation-date {
  padding: 8px 4px;
  color: var(--green-950);
  border-radius: 11px;
  background: var(--green-100);
  text-align: center;
}

.reservation-date strong, .reservation-date span { display: block; }
.reservation-date strong { font-size: 19px; }
.reservation-date span { font-size: 11px; }
.reservation-info strong { display: block; font-size: 15px; }
.reservation-info span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }

.icon-button {
  width: 38px;
  height: 38px;
  color: var(--danger);
  border: 0;
  border-radius: 10px;
  background: #fff0ef;
}

.action-stack { display: grid; gap: 9px; margin-top: 15px; }
.notice { margin: 13px 0 0; padding: 11px 12px; color: #735d19; border-radius: 12px; background: #fff7d6; font-size: 12px; line-height: 1.55; }
.privacy { background: transparent; box-shadow: none; }
.privacy p { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.toast {
  position: fixed;
  z-index: 10;
  right: 16px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: 16px;
  max-width: 520px;
  margin: auto;
  padding: 13px 16px;
  color: white;
  border-radius: 13px;
  background: rgba(11, 61, 50, .96);
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: .2s ease;
}

.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .form-row.three { grid-template-columns: 1fr 1fr; }
  .form-row.three label:last-child { grid-column: 1 / -1; }
}
