:root {
  --cream: #f5f2ea;
  --paper: #fffefa;
  --ink: #17213f;
  --green: #176c58;
  --green-soft: #e6f1ed;
  --gold: #c4994a;
  --muted: #687085;
  --line: #dedbd2;
  --danger: #b74438;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--cream); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
a { color: inherit; }
.page-loading { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }
.site-shell { min-height: 100vh; }
.hero { position: relative; overflow: hidden; padding: 28px max(20px, calc((100vw - 1080px) / 2)) 66px; background: var(--ink); color: white; }
.hero::after { content: ""; position: absolute; width: 340px; height: 340px; right: -110px; bottom: -190px; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; box-shadow: 0 0 0 52px rgba(255,255,255,.025), 0 0 0 104px rgba(255,255,255,.025); }
.topbar { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 850; letter-spacing: .06em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--green); font-family: Georgia, serif; }
.topnav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.topnav a { padding: 9px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #f0f2f7; font-size: 12px; text-decoration: none; }
.hero-copy { position: relative; z-index: 1; max-width: 720px; margin-top: 64px; }
.eyebrow { margin: 0; color: var(--gold); font-size: 11px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { max-width: 700px; margin: 12px 0 18px; font: 700 clamp(42px, 7vw, 76px)/1.08 Georgia, "Noto Serif SC", serif; letter-spacing: -.035em; }
.hero-copy > p:last-child { max-width: 600px; margin: 0; color: #c6cbd7; line-height: 1.8; }
.facts { max-width: 1080px; margin: -32px auto 0; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); background: white; border-radius: 8px; box-shadow: 0 15px 35px rgba(20,30,50,.09); }
.facts div { padding: 22px 26px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts span { display: block; color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.facts strong { display: block; margin-top: 7px; font: 700 18px Georgia, serif; }
.content { max-width: 1080px; margin: 36px auto 70px; padding: 0 18px; }
.card { padding: clamp(24px, 5vw, 54px); background: var(--paper); border: 1px solid rgba(23,33,63,.08); border-radius: 8px; box-shadow: 0 12px 40px rgba(23,33,63,.055); }
.section-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.section-heading > span { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--ink); color: white; font: 700 15px Georgia, serif; }
.section-heading p, .section-heading h2 { margin: 0; }
.section-heading p { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.section-heading h2 { margin-top: 4px; font: 700 clamp(24px, 4vw, 34px) Georgia, "Noto Serif SC", serif; }
.date-field { max-width: 420px; display: block; }
.date-field > span, .field-label-row > span, .form-grid label > span, .toolbar label > span { display: block; margin-bottom: 8px; color: #40485f; font-size: 12px; font-weight: 750; }
input, select, textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--ink); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,108,88,.10); }
textarea { resize: vertical; min-height: 105px; }
.date-field small { display: block; margin-top: 7px; color: var(--muted); }
.field-label-row { margin: 28px 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field-label-row span { margin: 0; }
.field-label-row small { color: var(--muted); }
.field-label-row i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--green); }
.slots-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; transition: opacity .2s; }
.slots-grid.is-loading { opacity: .48; }
.slot-button { min-height: 65px; padding: 10px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--ink); }
.slot-button strong, .slot-button span { display: block; }
.slot-button span { margin-top: 4px; color: var(--green); font-size: 10px; }
.slot-button.selected { border-color: var(--green); background: var(--green); color: white; box-shadow: 0 7px 15px rgba(23,108,88,.18); }
.slot-button.selected span { color: #dff2eb; }
.slot-button.full { background: #f3f1ec; color: #9b9a95; }
.slot-button.full span { color: #9b9a95; }
.divider { height: 1px; margin: 42px 0; background: var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.form-grid .full-width { grid-column: 1 / -1; }
.form-grid b { color: var(--danger); }
.submit-summary { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.submit-summary span, .submit-summary strong { display: block; }
.submit-summary > div span { color: var(--muted); font-size: 10px; }
.submit-summary > div strong { margin-top: 5px; }
.primary-button, .save-button, .manage-primary-link { padding: 14px 19px; border: 0; border-radius: 5px; background: var(--green); color: white; font-weight: 800; text-decoration: none; }
.secondary-button { padding: 12px 18px; border: 1px solid var(--ink); border-radius: 5px; background: transparent; color: var(--ink); font-weight: 750; }
.danger-button { padding: 12px 15px; border: 1px solid #d8a49f; border-radius: 5px; background: #fff3f1; color: var(--danger); font-weight: 750; }
.privacy-note { margin: 18px 0 0; color: #8c8f98; font-size: 10px; line-height: 1.65; }
.form-error, .notice { margin: 16px 0 0; padding: 12px 14px; border-left: 3px solid var(--danger); background: #fff3f1; color: #963127; font-size: 12px; }
.notice { border-color: var(--green); background: #eaf5f1; color: #115b49; }
.success-card { padding: 55px 24px; text-align: center; }
.success-check { width: 58px; height: 58px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: 28px; }
.success-card h2 { margin: 8px 0; font: 700 36px Georgia, serif; }
.success-card > p:not(.eyebrow) { color: var(--muted); }
.booking-code { max-width: 490px; margin: 28px auto; padding: 22px; background: var(--ink); color: white; border-radius: 6px; }
.booking-code span, .booking-code strong { display: block; }
.booking-code span { color: #c5cbda; font-size: 10px; letter-spacing: .13em; }
.booking-code strong { margin-top: 8px; font: 700 31px Georgia, serif; letter-spacing: .06em; }
.success-details { max-width: 680px; margin: 0 auto 30px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.success-details div { padding: 18px 12px; border-left: 1px solid var(--line); }
.success-details div:first-child { border-left: 0; }
.success-details span, .success-details strong { display: block; }
.success-details span { color: var(--muted); font-size: 10px; }
.success-details strong { margin-top: 6px; }
.success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.text-link { display: inline-flex; align-items: center; color: var(--green); font-size: 13px; font-weight: 750; text-decoration: none; }
.simple-shell { min-height: 100vh; padding: 26px 16px; display: grid; place-items: center; background: var(--cream); }
.simple-card { width: min(700px, 100%); }
.back-link { display: inline-block; margin-bottom: 26px; color: var(--green); font-size: 12px; font-weight: 750; text-decoration: none; }
.simple-card h1, .admin-header h1 { margin: 8px 0 12px; font: 700 clamp(34px, 6vw, 52px) Georgia, serif; }
.simple-card > p { color: var(--muted); line-height: 1.75; }
.verify-form { margin-top: 26px; display: grid; gap: 15px; }
.verify-form label span { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 750; }
.edit-head, .admin-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.edit-actions, .admin-header-actions { display: flex; align-items: center; gap: 9px; }
.edit-actions { margin-top: 28px; justify-content: space-between; }
.admin-shell { min-height: 100vh; padding: 38px max(16px, calc((100vw - 1180px) / 2)); }
.admin-header-actions button, .admin-header-actions a { padding: 10px 13px; border-radius: 5px; font-size: 12px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.admin-header-actions a { background: var(--green); color: white; }
.admin-header-actions button { border: 1px solid #c8c8c3; background: transparent; }
.toolbar { margin: 26px 0 20px; padding: 19px 21px; display: grid; grid-template-columns: 220px 1fr auto; align-items: end; gap: 20px; border-radius: 6px 22px 6px 6px; background: var(--ink); color: white; }
.toolbar label > span { color: #c5cbda; }
.toolbar-stat strong, .toolbar-stat span { display: block; }
.toolbar-stat span { margin-top: 5px; color: #c5cbda; font-size: 11px; }
.toolbar button { padding: 11px 13px; border: 1px solid rgba(255,255,255,.35); border-radius: 4px; background: transparent; color: white; }
.admin-slots { display: grid; gap: 11px; }
.admin-slot { display: grid; grid-template-columns: 105px 1fr; overflow: hidden; border: 1px solid rgba(23,33,63,.08); border-radius: 6px; background: white; }
.admin-slot-time { padding: 20px 17px; border-right: 1px solid var(--line); background: #f8f7f3; }
.admin-slot-time strong, .admin-slot-time span { display: block; }
.admin-slot-time span { margin-top: 6px; color: var(--muted); font-size: 10px; }
.admin-people { padding: 10px 17px; }
.admin-empty { margin: 12px 0; color: #9a9da5; font-size: 12px; }
.admin-person { padding: 12px 0; border-top: 1px solid var(--line); }
.admin-person:first-child { border-top: 0; }
.person-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.person-title span { color: var(--green); font-size: 10px; font-weight: 800; }
.person-title code { color: var(--muted); }
.person-meta { margin: 10px 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 12px; }
.person-meta b { color: var(--muted); font-weight: 500; }
.person-message { margin: 8px 0; padding: 10px 12px; background: #f6f5f1; color: #4e5568; font-size: 12px; line-height: 1.6; }
.person-actions { display: flex; gap: 8px; }
.person-actions button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; background: white; font-size: 11px; }
.person-actions .danger-text { color: var(--danger); }
.overlay { position: fixed; z-index: 20; inset: 0; padding: 18px; display: grid; place-items: center; background: rgba(11,17,32,.60); }
.dialog { width: min(720px, 100%); max-height: calc(100vh - 36px); overflow: auto; padding: 28px; border-radius: 8px; background: var(--paper); box-shadow: 0 25px 70px rgba(0,0,0,.25); }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.dialog-head h2 { margin: 5px 0 22px; font: 700 30px Georgia, serif; }
.dialog-head button { width: 36px; height: 36px; border: 0; background: transparent; font-size: 27px; }
.confirm-card { width: min(440px, 100%); padding: 28px; border-radius: 8px; background: white; }
.confirm-card h2 { margin-top: 0; }
.confirm-card p { color: var(--muted); line-height: 1.6; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.confirm-actions button:first-child { padding: 12px; border: 1px solid var(--line); background: white; border-radius: 5px; }
footer { max-width: 1080px; margin: 0 auto; padding: 0 18px 32px; display: flex; justify-content: space-between; gap: 12px; color: #858995; font-size: 10px; }

@media (max-width: 760px) {
  .hero { padding-bottom: 54px; }
  .hero-copy { margin-top: 48px; }
  .facts { margin: -22px 14px 0; grid-template-columns: 1fr 1fr; }
  .facts div { padding: 17px; }
  .facts div:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .slots-grid { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full-width { grid-column: auto; }
  .submit-summary, .edit-head, .admin-header { align-items: stretch; flex-direction: column; }
  .submit-summary .primary-button { width: 100%; }
  .success-details { grid-template-columns: 1fr; }
  .success-details div { border-left: 0; border-top: 1px solid var(--line); }
  .success-details div:first-child { border-top: 0; }
  .toolbar { grid-template-columns: 1fr; gap: 13px; }
  .admin-slot { grid-template-columns: 1fr; }
  .admin-slot-time { padding: 13px 16px; border-right: 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
  .admin-slot-time span { margin: 0; }
  .admin-header-actions { align-items: stretch; }
  footer { flex-direction: column; }
}

@media (max-width: 430px) {
  .topbar { align-items: flex-start; }
  .topnav { max-width: 185px; }
  .topnav a { padding: 7px 9px; font-size: 10px; }
  .slots-grid { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 24px 16px; }
  .edit-actions { align-items: stretch; flex-direction: column-reverse; }
  .edit-actions button { width: 100%; }
}
