:root {
  color-scheme: light;
  --green: #164531; --ink: #17382b; --muted: #4e6558; --edge: #c8d5c9; --line: #e1e1d3;
  --paper: #fffdf7; --ground: #f8f5ec; --soft: #dce9df;
  font-family: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink); background: var(--ground);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid #729d62; outline-offset: 2px; }
h1, h2, p { margin: 0; }
h1 { font-size: 22px; }
h2, legend { font-size: 14px; font-weight: 600; color: var(--muted); padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.muted { color: var(--muted); font-size: 14px; }

.page { max-width: 480px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.top { background: var(--paper); border-bottom: 1px solid var(--line); padding: 18px 20px 14px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand span:last-child { display: flex; flex-direction: column; font-size: 16px; }
.brand small { color: var(--muted); font-size: 13px; }
.logo { width: 38px; height: 38px; border-radius: 10px; background: var(--green); color: var(--paper);
  display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.hello { margin-top: 10px; font-size: 14px; }

main { flex: 1; padding: 16px 20px 24px; }
main > section, main > form { display: flex; flex-direction: column; gap: 18px; }
.block { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; justify-content: space-between; align-items: center; }
.nav { display: flex; gap: 6px; }
.center { text-align: center; padding-top: 48px; gap: 10px !important; }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice, .slot, .icon { min-height: 44px; border-radius: 12px; border: 1px solid var(--edge); background: var(--paper); font-size: 14px; }
.icon { width: 44px; min-height: 38px; font-size: 20px; line-height: 1; }
.icon:disabled { opacity: .4; }
.choice[aria-pressed="true"], .day[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--paper); font-weight: 600; }
.slot[aria-pressed="true"] { background: var(--soft); border: 2px solid var(--green); color: var(--green); font-weight: 700; }

.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { min-height: 58px; border-radius: 12px; border: 1px solid var(--edge); background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px 0; }
.day small { font-size: 12px; }
.day b { font-size: 16px; }
.day:disabled { border-style: dashed; background: #f1eee4; color: #737f78; }
.day:disabled small:last-child { font-size: 10px; }

.period { font-size: 12px; font-weight: 600; color: var(--muted); margin: 10px 0 6px; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.empty { padding: 16px; border-radius: 12px; background: #f1eee4; color: var(--muted); font-size: 14px; text-align: center; }

.back { align-self: flex-start; border: 0; background: none; color: var(--green); font-weight: 600; padding: 6px 0; min-height: 44px; }
.picked { padding: 12px 14px; border-radius: 14px; background: var(--soft); color: var(--green); font-size: 14px; font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field small { font-weight: 400; }
input, textarea { border-radius: 12px; border: 1px solid var(--edge); background: var(--paper); padding: 12px 14px; font-size: 16px; font-weight: 400; }
textarea { resize: vertical; }

.notice { padding: 12px 14px; border-radius: 12px; background: #fff0df; color: #6b3d00; font-size: 14px; }
.bar { position: sticky; bottom: 0; background: var(--paper); border-top: 1px solid var(--line);
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.bar b { color: var(--ink); }
.primary { min-height: 50px; border-radius: 14px; border: 0; background: var(--green); color: var(--paper); font-weight: 600; font-size: 16px; }
.primary:disabled { opacity: .5; }

.done { text-align: center; align-items: center; padding-top: 28px; }
.tick { width: 72px; height: 72px; border-radius: 50%; background: var(--soft); color: var(--green); font-size: 36px; display: grid; place-items: center; }
.summary { width: 100%; margin: 6px 0 0; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 4px 16px; text-align: left; }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #ece9dd; font-size: 14px; }
.summary div:last-child { border-bottom: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; text-align: right; }
.tip { width: 100%; padding: 12px 14px; border-radius: 14px; background: #fff0df; color: #6b3d00; font-size: 14px; text-align: left; }
