:root {
  --honey: #FFB800; --ink: #1E1B16; --peach: #FFE9DC; --peach-2: #FFF4EE;
  --muted: #6B6252; --line: #EDE3DA; --bg: #FFFFFF; --card: #FFFFFF;
  --danger: #B3261E; --ok: #1F7A4D;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Onest', system-ui, sans-serif; }
body { -webkit-font-smoothing: antialiased; }
main { max-width: 560px; margin: 0 auto; padding: 16px 16px 120px; }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 4px; }
h2 { font-size: 19px; font-weight: 800; margin: 20px 0 8px; }
p { line-height: 1.45; }
.muted { color: var(--muted); font-size: 14px; }
.loading { font-weight: 800; font-size: 40px; text-align: center; margin-top: 30vh; letter-spacing: -0.05em; }
.dot { color: var(--honey); }
.logo { font-weight: 800; letter-spacing: -0.05em; font-size: 20px; }
.step { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--peach-2);
  border: 2px solid transparent; border-radius: 12px; padding: 12px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
textarea { min-height: 70px; resize: vertical; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px;
  padding: 12px 18px; border: 0; border-radius: 14px; font: inherit; font-weight: 800; font-size: 16px;
  background: var(--honey); color: var(--ink); cursor: pointer; width: 100%;
}
.btn.dark { background: var(--ink); color: #fff; }
.btn.ghost { background: var(--peach-2); }
.btn.small { min-height: 38px; padding: 8px 12px; font-size: 14px; width: auto; border-radius: 10px; }
.btn.danger { background: #FBE4E2; color: var(--danger); }
.btn:disabled { opacity: .5; }
.row { display: flex; gap: 8px; align-items: center; }
.row > * { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.bottom { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, #fff 75%, rgba(255,255,255,0)); }
.bottom .inner { max-width: 528px; margin: 0 auto; }

.card { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 14px; }
.pick { background: var(--peach-2); border: 2px solid transparent; border-radius: 14px; padding: 12px 14px;
  display: flex; justify-content: space-between; gap: 12px; font-weight: 600; cursor: pointer; text-align: left;
  font: inherit; color: inherit; width: 100%; }
.pick.on { border-color: var(--ink); background: var(--peach); }
.pick small { display: block; font-weight: 400; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: var(--peach-2); border: 2px solid transparent; border-radius: 999px; padding: 8px 14px;
  font: inherit; font-weight: 600; font-size: 14px; color: inherit; cursor: pointer; }
.chip.on { background: var(--ink); color: var(--honey); }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.day { flex: 0 0 60px; background: var(--peach-2); border: 2px solid transparent; border-radius: 14px; padding: 8px 0;
  text-align: center; font: inherit; color: inherit; cursor: pointer; }
.day b { display: block; font-size: 20px; }
.day small { font-size: 12px; color: var(--muted); }
.day.on { background: var(--ink); color: #fff; }
.day.on small { color: var(--honey); }
.day:disabled { opacity: .35; }
.times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.time { background: var(--peach-2); border: 0; border-radius: 10px; padding: 12px 0; font: inherit; font-weight: 600; cursor: pointer; color: inherit; }
.time.on { background: var(--ink); color: var(--honey); font-weight: 800; }

.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0;
  background: #fff; border-top: 2px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tab { background: none; border: 0; font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 0 12px; cursor: pointer; }
.tab.on { color: var(--ink); font-weight: 800; }
.tab.on::before { content: ''; display: block; width: 24px; height: 4px; border-radius: 2px; background: var(--honey); margin: 0 auto 6px; }

.bk { border-left: 4px solid var(--honey); }
.bk.pending { border-left-color: #E07A00; }
.bk.block { border-left-color: var(--muted); background: var(--peach-2); }
.bk.done, .bk.no_show, .bk.cancelled_client, .bk.cancelled_master { opacity: .55; border-left-color: var(--line); }
.badge { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 9px; background: var(--peach); }
.badge.pending { background: #FFE2BF; }
.svc { display: grid; grid-template-columns: 1fr 90px 76px; gap: 6px; align-items: center; margin-bottom: 6px; }
.svc input { padding: 10px; font-size: 15px; }
.switch { width: 22px; height: 22px; accent-color: var(--ink); flex: 0 0 auto; }
.wd { display: grid; grid-template-columns: 56px 1fr 1fr; gap: 8px; align-items: center; margin-bottom: 6px; }
.wd input[type=time] { padding: 8px; }
.qr { display: flex; justify-content: center; padding: 12px; background: #fff; border-radius: 12px; }
.linkbox { font-family: ui-monospace, monospace; font-size: 14px; background: var(--peach-2); border-radius: 10px; padding: 10px; word-break: break-all; }
.toast { position: fixed; left: 16px; right: 16px; bottom: 90px; max-width: 528px; margin: 0 auto; background: var(--ink); color: #fff;
  padding: 12px 14px; border-radius: 12px; font-weight: 600; z-index: 10; }
.success { text-align: center; padding-top: 10vh; }
.success .big { width: 84px; height: 84px; border-radius: 42px; background: var(--honey); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; }
.modal { position: fixed; inset: 0; background: rgba(30,27,22,.45); display: flex; align-items: flex-end; z-index: 5; }
.sheet { background: #fff; width: 100%; max-height: 88vh; overflow: auto; border-radius: 20px 20px 0 0; padding: 18px 16px 28px; }
.sheet .inner { max-width: 528px; margin: 0 auto; }
