/* Booking + owner pages: same tokens as the site, app-like density. */
.book-body { background: var(--paper); }
.book { max-width: 820px; padding-top: clamp(20px, 4vw, 44px); padding-bottom: 80px; }
.book-intro { margin-bottom: 26px; }
.book-intro h1 { font-size: clamp(42px, 6vw, 68px); line-height: 1; letter-spacing: -.02em; margin: 0 0 14px; }
.book-intro .sub { max-width: 40em; }

.step-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px; margin-bottom: 14px; box-shadow: var(--sh-1); }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step-head h2 { font-size: 26px; margin: 0; line-height: 1.1; }
.step-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 600 14px/1 var(--text); flex: none; }
.step-card.is-done .step-n { background: var(--gold); }
.hint { margin: -6px 0 14px; color: var(--muted); font-size: 14.5px; }

/* chips as radios */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip-r { position: relative; }
.chip-r input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip-r > span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--paper); font: 500 15px/1 var(--text); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s, transform .2s var(--ease); }
.chip-r input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-r input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.chip-r:hover > span { border-color: var(--ink); transform: translateY(-1px); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: block; margin-bottom: 12px; }
.field .label { display: block; font: 600 13px/1.3 var(--text); letter-spacing: .02em; color: var(--ink-2); margin-bottom: 6px; }
.field .label small { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--paper); font: 400 16px/1.3 var(--text); color: var(--ink); -webkit-appearance: none; appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.hp { position: absolute; left: -9999px; }

.verdict { margin-top: 4px; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--paper); font-size: 15px; line-height: 1.45; }
.verdict b { display: block; font-weight: 600; margin-bottom: 2px; }
.verdict::before { content: ""; width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--faint); }
.verdict.good { background: #eaf3ec; border-color: #cfe3d4; } .verdict.good::before { background: #2f8a4c; }
.verdict.tight { background: #fbf1dc; border-color: #ecd9a6; } .verdict.tight::before { background: #c8901a; }
.verdict.rush { background: var(--wine-tint); border-color: #e6c3cb; } .verdict.rush::before { background: var(--wine); }
.verdict a { font-weight: 600; }

/* month calendar */
.cal { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; background: var(--paper); margin-bottom: 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.cal-title { font: 500 22px/1 var(--display); font-variation-settings: "opsz" 48, "SOFT" 30; }
.cal-nav { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--white); display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: border-color .2s, transform .2s var(--ease); }
.cal-nav .i { width: 18px; height: 18px; }
.cal-nav:hover:not(:disabled) { border-color: var(--ink); transform: translateY(-1px); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow span { text-align: center; font: 600 11.5px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 6px 0 8px; }
.cal-day { position: relative; aspect-ratio: 1; min-height: 40px; border-radius: 12px; border: 1.5px solid transparent; background: transparent; font: 500 16px/1 var(--text); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.cal-day.open { background: var(--white); border-color: var(--line-2); }
.cal-day.open::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #2f8a4c; }
.cal-day.ideal.open { border-color: var(--gold); background: var(--gold-tint); }
.cal-day.ideal:not(.open) { border-color: transparent; background: transparent; }
.cal-day.ideal.open::after { background: var(--gold-2); }
.cal-day:disabled { color: var(--faint); cursor: default; }
.cal-day.full span { text-decoration: line-through; }
.cal-day.today span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cal-day.open:hover { border-color: var(--ink); transform: translateY(-1px); }
.cal-day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cal-day[aria-pressed="true"]::after { background: #fff; }
.cal-day:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.cal-loading { grid-column: 1 / -1; color: var(--muted); padding: 24px 0; text-align: center; margin: 0; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.cal-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 13px; height: 13px; border-radius: 4px; }
.lg-open { background: var(--white); border: 1.5px solid var(--line-2); }
.lg-ideal { background: var(--gold-tint); border: 1.5px solid var(--gold); }
.ideal-note { margin: 0 0 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--gold-tint); border: 1px solid var(--gold-line); font-size: 15px; line-height: 1.45; }
.ideal-note b { font-weight: 600; }
.ideal-note.late { background: #fbf1dc; border-color: #ecd9a6; }
.ideal-note.rush { background: var(--wine-tint); border-color: #e6c3cb; }
.ideal-note a { font-weight: 600; }

/* slots */
.slots { min-height: 40px; }
.slots-title { font: 600 13px/1.3 var(--text); letter-spacing: .02em; color: var(--ink-2); margin: 6px 0 10px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; margin-bottom: 14px; }
.slot { min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--paper); font: 500 15px/1 var(--text); cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.slot:hover { border-color: var(--ink); transform: translateY(-1px); }
.slot[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #fff; }
.slot:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; transform: none; }
.slot.after { border-style: dashed; }
.slots-empty { color: var(--muted); font-size: 15px; padding: 8px 0; }

.summary { margin: 8px 0 14px; padding: 14px 16px; border-radius: var(--r-md); background: var(--gold-tint); border: 1px solid var(--gold-line); font-size: 15px; display: flex; gap: 10px; align-items: center; }
.summary b { font-weight: 600; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 6px; }
.fine { color: var(--muted); font-size: 13.5px; max-width: 24em; line-height: 1.35; }
.form-error { margin: 12px 0 0; padding: 12px 14px; border-radius: var(--r-md); background: var(--wine-tint); color: var(--wine-2); font-size: 15px; font-weight: 500; }
.btn[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* done */
.done-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 34px 28px; box-shadow: var(--sh-2); text-align: center; }
.done-mark { width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%; background: #eaf3ec; color: #2f8a4c; display: grid; place-items: center; }
.done-mark .i { width: 30px; height: 30px; }
.done-card h2 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 10px; }
.done-when { font: 500 clamp(22px, 3vw, 28px)/1.2 var(--display); font-variation-settings: "opsz" 72, "SOFT" 40; margin: 0 0 8px; }
.done-code { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.done-code b { color: var(--ink); font-weight: 700; letter-spacing: .06em; }
.done-text { color: var(--ink-2); max-width: 40em; margin: 0 auto 22px; text-align: left; }
.done-send { font-weight: 600; max-width: 32em; margin: 0 auto 14px; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 22px; }
.book-footer { padding-bottom: 40px; }

/* ---- owner inbox ---- */
.owner { max-width: 820px; padding-top: 18px; padding-bottom: 60px; }
.owner-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.owner-top h1 { font-size: clamp(30px, 5vw, 40px); margin: 0; line-height: 1; }
.owner-top .badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--gold); color: #fff; font: 700 13px/1 var(--text); }
.owner-tabs { display: flex; gap: 6px; margin: 6px 0 16px; border-bottom: 1px solid var(--line); }
.owner-tabs button { border: 0; background: transparent; padding: 10px 12px; font: 600 14.5px/1 var(--text); color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.owner-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.day-group { margin-bottom: 18px; }
.day-group h3 { font-size: 15px; font-family: var(--text); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.bk { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--line-2); border-radius: 16px; padding: 14px 16px; margin-bottom: 8px; display: grid; grid-template-columns: 74px 1fr; gap: 12px; }
.bk.new { border-left-color: var(--gold); }
.bk.confirmed { border-left-color: #2f8a4c; }
.bk.done, .bk.cancelled, .bk.no_show { opacity: .62; }
.bk-time { font: 500 20px/1.1 var(--display); font-variation-settings: "opsz" 48; }
.bk-time small { display: block; font: 600 11px/1 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.bk-main b { font-size: 17px; font-weight: 600; }
.bk-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.pill { padding: 4px 9px; border-radius: 999px; background: var(--paper-2); font: 600 12px/1 var(--text); color: var(--ink-2); }
.pill.good { background: #eaf3ec; color: #2f8a4c; } .pill.tight { background: #fbf1dc; color: #8a6412; } .pill.rush { background: var(--wine-tint); color: var(--wine-2); }
.bk-notes { font-size: 14px; color: var(--ink-2); margin: 4px 0; }
.bk-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bk-actions a, .bk-actions button { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--paper); font: 600 13px/1 var(--text); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.bk-actions .primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.bk-actions .i { width: 14px; height: 14px; }
.bk-note-in { width: 100%; margin-top: 8px; min-height: 38px; padding: 8px 12px; border-radius: 10px; border: 1.5px dashed var(--line-2); background: transparent; font: 400 14px/1.3 var(--text); }
.empty { color: var(--muted); padding: 24px 0; text-align: center; }
.gate { max-width: 420px; margin: 40px auto; text-align: center; }
.gate input { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-2); font: 400 16px/1.3 var(--text); margin: 12px 0; text-align: center; letter-spacing: .08em; }
.block-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; margin-bottom: 14px; }
.block-form .field { margin: 0; }

@media (max-width: 639px) {
  .step-card { padding: 18px 16px; border-radius: 22px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .slot-grid { grid-template-columns: repeat(3, 1fr); }
  .submit-row .btn { width: 100%; }
  .done-card { padding: 28px 18px; }
  .done-actions .btn { width: 100%; }
  .bk { grid-template-columns: 62px 1fr; padding: 12px; }
  .block-form { grid-template-columns: 1fr; }
}

/* ---- owner app ---- */
.owner-body .site-header { background: rgba(246, 241, 234, .9); }
.icon-btn { width: 42px; padding: 0; }
.gate { text-align: center; padding: 30px 0; }
.gate-mark { width: 132px; height: 110.6px; color: var(--gold); margin: 0 auto 18px; display: block; }
.gate h1 { font-size: 36px; margin: 0 0 6px; }
.gate .sub { font-size: 15px; margin: 0 auto 14px; }
.gate input { font: 600 20px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; }
.setup { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px 16px; margin-bottom: 16px; box-shadow: var(--sh-1); }
.setup-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.setup-row:first-child, .setup-row[hidden] + .setup-row { border-top: 0; }
.setup-row b { display: block; font-weight: 600; font-size: 15px; }
.setup-row span { font-size: 13.5px; color: var(--muted); }
.setup-i { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--gold-tint); color: var(--gold-2); }
.setup-i .i { width: 18px; height: 18px; }
.setup-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
#installRow { grid-template-columns: 36px 1fr; }
.key-chip { display: inline-block; margin-top: 6px; padding: 7px 12px; border-radius: 10px; background: var(--ink); color: #fff; font: 700 16px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; user-select: all; }
.alerts-on { color: #2f8a4c !important; font-weight: 600; }
.panel { min-height: 120px; }
.owner-form .field-row { margin-bottom: 0; }
.owner-form .btn { margin-top: 4px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; margin: 2px 0 12px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.bk-main a.tel { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.owner-foot { margin-top: 22px; }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 14px/1.2 var(--text); box-shadow: var(--sh-2); max-width: calc(100% - 32px); text-align: center; }
@media (max-width: 639px) {
  .setup-row { grid-template-columns: 36px 1fr; }
  .setup-actions { grid-column: 2; justify-content: flex-start; }
  .owner-tabs { overflow-x: auto; gap: 0; }
  .owner-tabs button { white-space: nowrap; padding: 10px 8px; font-size: 14px; }
}
