/* The Eva Salon — blush & gold boutique theme */
:root {
  --espresso: #211a16;
  --espresso-2: #2e231b;
  --cream: #f7f1e6;
  --champagne: #f3e7d3;
  --ivory: #faf7f2;
  --card: #fffdf9;
  --blush: #e4c8d2;
  --blush-soft: #f8edf0;
  --blush-deep: #b76e79;
  --gold: #c08b5c;
  --gold-deep: #9e6f29;
  --gold-soft: #f5e9d3;
  --ink: #3f2e2a;
  --muted: #8e8185;
  --line: rgba(192, 139, 92, .38);
  --line-soft: rgba(192, 139, 92, .22);
  --green: #4f7a5e;
  --green-soft: #e3efe6;
  --red: #b3261e;
  --red-soft: #fbe9e7;
  --amber: #a86a1c;
  --amber-soft: #f8ecd4;
  --radius: 22px;
  --shadow: 0 10px 28px rgba(63, 46, 42, .09);
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Great Vibes", "Snell Roundhand", cursive;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--sans);
  font-size: 16px; line-height: 1.5; font-weight: 400;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
#app { max-width: 480px; margin: 0 auto; padding: 0 14px 80px; }

/* ---------- slim brand bar (client) — sticky, compact, CTA stays above the fold ---------- */
.brand {
  position: sticky; top: 0; z-index: 30;
  margin: 0 -14px 10px; padding: calc(8px + env(safe-area-inset-top)) 14px 8px;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, #2b211a, var(--espresso));
  border-radius: 0 0 20px 20px; color: var(--cream);
  box-shadow: 0 10px 24px rgba(33, 26, 22, .22);
}
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: 0 0 42px;
  box-shadow: 0 0 0 1px rgba(192, 139, 92, .65), 0 6px 16px rgba(0, 0, 0, .4);
}
.brand-titles { flex: 1; min-width: 0; }
.brand h1 {
  font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.1;
  margin: 0; color: #faf4e8; letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand .eyebrow {
  margin: 2px 0 0; font-size: 9px; font-weight: 600;
  letter-spacing: .34em; text-transform: uppercase; color: var(--gold);
}
.livebadge {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;  font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-soft); border: 1px solid rgba(192, 139, 92, .45);
  border-radius: 999px; padding: 5px 9px;
}
.livebadge .dot { width: 7px; height: 7px; border-radius: 50%; background: #8fd0a0; animation: pulse 1.6s infinite; }
/* subtle stylist entry point in the brand bar — always visible, out of the clients' way */
.stylist-link {
  flex: 0 0 auto; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-soft); text-decoration: none; opacity: .8; padding: 10px 6px; margin: -10px 0;
}
.stylist-link:active { opacity: 1; }

/* ---------- slim status strip ---------- */
.status-strip {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 16px;
  box-shadow: var(--shadow); padding: 8px 12px; margin-bottom: 10px;
}
.status-strip .pill { margin-bottom: 0; padding: 6px 14px 6px 12px; font-size: 10px; }
.smeta { font-size: 13px; color: var(--muted); font-weight: 500; }
.smeta b { color: var(--ink); font-weight: 700; }

/* ---------- slim admin bar ---------- */
.adminbar {
  margin: 0 -14px 14px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, #2b211a, var(--espresso));
  border-radius: 0 0 24px 24px; color: var(--cream);
  box-shadow: 0 10px 24px rgba(33, 26, 22, .22);
}
.adminbar img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(192,139,92,.6); flex: 0 0 44px; }
.adminbar-titles { flex: 1; min-width: 0; }
.adminbar-titles b { font-family: var(--serif); font-size: 21px; font-weight: 600; display: block; line-height: 1.1; color: #faf4e8; }
.adminbar-titles span { font-size: 12px; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; }
.linklike.light { color: var(--champagne); }

/* ---------- status card ---------- */
.status-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px; margin-bottom: 12px; border: 1px solid var(--line-soft);
  position: relative; overflow: hidden;
}
.status-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blush), var(--gold), var(--blush));
  opacity: .7;
}
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  padding: 8px 18px 8px 16px; border-radius: 999px; margin-bottom: 10px;
  text-indent: .05em;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.open { background: var(--gold-soft); color: var(--gold-deep); }
.pill.open .dot { animation: pulse 1.6s infinite; }
.pill.paused { background: var(--blush-soft); color: var(--blush-deep); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.stats { display: flex; gap: 12px; }
.stat { flex: 1; background: var(--blush-soft); border-radius: 16px; padding: 10px 6px 8px; text-align: center; border: 1px solid rgba(183,110,121,.16); }
.stat b { display: block; font-family: var(--serif); font-weight: 700; font-size: 32px; line-height: 1; color: var(--ink); }
.stat span { display: block; margin-top: 4px; font-size: 10.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .18em; }

/* ---------- cards & forms ---------- */
.card {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--line-soft);
  box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px;
}
.card-join {
  background: linear-gradient(180deg, #fdf6f7 0%, var(--card) 70%);
  border: 1px solid var(--line);
}
.card h2 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 0 0 2px; color: var(--ink); }
.card .sub { font-size: 13.5px; color: var(--muted); margin: 0 0 8px; }
.gold-rule { border: 0; height: 1px; margin: 12px 0; background: linear-gradient(90deg, transparent, var(--line), transparent); }
label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin: 9px 0 5px; text-transform: uppercase; letter-spacing: .16em; }
label:first-of-type { margin-top: 0; }
input[type=text], input[type=number], input[type=time], select, textarea {
  width: 100%; font-size: 16px; padding: 11px 12px; border-radius: 14px;
  border: 1.5px solid #e9d9c6; background: #fff; color: var(--ink);
  font-family: var(--sans); appearance: none;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(192,139,92,.18); }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23c08b5c' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }

/* ---------- buttons ---------- */
.btn {
  display: block; width: 100%; border: 0; border-radius: 16px; cursor: pointer;
  font-size: 17px; font-weight: 600; letter-spacing: .04em; padding: 14px; font-family: var(--sans);
  transition: transform .06s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.985); }
.btn-primary { background: linear-gradient(180deg, #4a3830, var(--ink)); color: var(--champagne); box-shadow: 0 10px 24px rgba(63,46,42,.30); }
.btn-primary:hover { background: #2b211b; }
.btn-primary:disabled { background: #c9bfae; box-shadow: none; cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn-danger { background: var(--red-soft); color: var(--red); box-shadow: none; }
.btn-gold { background: linear-gradient(180deg, #d3a06a, var(--gold)); color: #fff; box-shadow: 0 10px 24px rgba(192,139,92,.35); }
.btn-sm { width: auto; display: inline-block; font-size: 14px; padding: 10px 18px; border-radius: 12px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.btn-row .btn-sm { flex: 1 1 auto; }

/* ---------- my spot ---------- */
.spot-num { font-family: var(--serif); font-size: 60px; font-weight: 700; color: var(--ink); line-height: 1; text-align: center; margin: 4px 0 0; }
.spot-label { text-align: center; color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.script-accent { font-family: var(--script); font-size: 30px; color: var(--blush-deep); text-align: center; margin: 2px 0 4px; }
.timeline { display: flex; margin: 12px 0 6px; }
.tstep { flex: 1; text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #c3b6a8; position: relative; padding-top: 24px; }
.tstep::before {
  content: ""; position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  width: 14px; height: 14px; border-radius: 50%; background: #e7dccb; transition: background .2s;
}
.tstep.done { color: var(--gold-deep); }
.tstep.done::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(192,139,92,.2); }
.tstep::after { content: ""; position: absolute; top: 10px; left: calc(-50% + 10px); right: calc(50% + 10px); height: 2px; background: #e7dccb; }
.tstep:first-child::after { display: none; }
.tstep.done::after { background: var(--gold); }
.banner {
  border-radius: 18px; padding: 14px; text-align: center; margin-bottom: 12px;
  font-size: 17px; font-weight: 600; border: 1px solid transparent;
}
.banner.called { background: var(--gold-soft); color: #7a5a17; border-color: rgba(158,111,41,.3); animation: pulse 1.6s infinite; }
.banner.serving { background: linear-gradient(180deg, #4a3830, var(--ink)); color: var(--champagne); }
.banner.done { background: var(--blush-soft); color: var(--blush-deep); border-color: rgba(183,110,121,.25); }

/* ---------- queue list ---------- */
.qitem {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 18px;
  padding: 11px 12px; margin-bottom: 8px; display: flex; gap: 13px; align-items: center;
  box-shadow: 0 4px 14px rgba(63, 46, 42, .05);
}
.qpos {
  flex: 0 0 46px; height: 46px; border-radius: 50%; background: var(--blush-soft);
  color: var(--blush-deep); font-family: var(--serif); font-weight: 700; font-size: 21px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(183,110,121,.25);
}
.qinfo { flex: 1; min-width: 0; }
.qinfo b { font-size: 16px; font-weight: 600; display: block; }
.qinfo span { font-size: 13px; color: var(--muted); }
.qtag { display: inline-block; margin-top: 5px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; padding: 4px 11px; border-radius: 999px; }
.qtag.waiting { background: var(--blush-soft); color: var(--blush-deep); }
.qtag.called { background: var(--gold-soft); color: var(--gold-deep); }
.qtag.serving { background: var(--ink); color: var(--champagne); }
.qtag.no-show { background: rgba(160,74,60,.16); color: #a04a3c; }
.qactions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tokenline { font-size: 11px; color: var(--muted); margin-top: 8px; word-break: break-all; }
.tokenline button { font-size: 11px; margin-left: 6px; }

/* ---------- admin ---------- */
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.admin-head h2 { font-family: var(--serif); }
.switchrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.switchrow:last-of-type { border-bottom: 0; }
.switch { position: relative; width: 56px; height: 32px; flex: 0 0 56px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: #d8cbb6; border-radius: 999px; transition: .2s; cursor: pointer; }
.slider::before { content: ""; position: absolute; width: 26px; height: 26px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.switch input:checked + .slider { background: var(--gold); }
.switch input:checked + .slider::before { transform: translateX(24px); }
.svc-row { display: flex; gap: 8px; margin-bottom: 6px; }
.svc-row input[type=text] { flex: 1; }
.svc-row input[type=number] { width: 84px; flex: 0 0 84px; }
.svc-row .btn-sm { flex: 0 0 auto; }
.hint { font-size: 13px; color: var(--muted); margin-top: 10px; }
.hint.warn { color: var(--amber); font-weight: 600; }
.center { text-align: center; }
.big-emoji { font-size: 44px; }
.linklike { background: none; border: 0; color: var(--gold-deep); font-size: 14px; font-weight: 600; cursor: pointer; padding: 8px; font-family: var(--sans); }
.footer { text-align: center; margin-top: 16px; }
.footer .sig { font-family: var(--script); font-size: 22px; color: var(--blush-deep); margin-top: 6px; }

/* ---------- toasts ---------- */
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 50; width: min(92vw, 480px); }
.toast {
  background: var(--ink); color: var(--cream); border-radius: 14px; padding: 14px 18px;
  font-size: 15px; font-weight: 500; margin-top: 8px; text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: slideup .25s ease;
  border: 1px solid rgba(192,139,92,.4);
}
.toast.ok { background: var(--green); border-color: transparent; }
.toast.err { background: var(--red); border-color: transparent; }
@keyframes slideup { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

.loading { text-align: center; padding: 60px 20px; color: var(--muted); }
.spinner {
  width: 40px; height: 40px; margin: 0 auto 16px; border-radius: 50%;
  border: 4px solid var(--line-soft); border-top-color: var(--gold); animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Dashboard */
.dash-nav { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 12px; }
.dash-nav b { font-family: var(--serif); font-size: 17px; }
.dash-h { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 12px 0 6px; }
.dash-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dash-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--blush-soft); border: 1px solid rgba(183,110,121,.16); border-radius: 12px; padding: 8px 10px; font-size: 14px; }
.dash-all { margin-top: 10px; }
.muted { color: var(--muted); }
.svc-row input[data-sv-price] { width: 76px; flex: 0 0 76px; }

/* iOS install banner */
.install-banner { background: linear-gradient(135deg, rgba(192,139,92,.14), rgba(183,110,121,.10)); border: 1px solid rgba(192,139,92,.45); border-radius: 14px; margin: 10px 0 2px; }
.install-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; background: none; border: 0; padding: 10px 12px; font-size: 14px; color: var(--ink); cursor: pointer; text-align: left; font-family: inherit; }
.install-toggle .chev { color: var(--gold-deep); font-size: 16px; flex: 0 0 auto; }
.install-steps { margin: 2px 12px 4px 30px; padding: 0; font-size: 14px; display: grid; gap: 8px; color: var(--ink); }
.install-dismiss { margin: 0 12px 10px 30px; font-size: 13px; }

/* client book + location */
.qtag.onmyway { background: rgba(192,139,92,.16); color: var(--gold-deep); margin-left: 6px; }
.qtag.arrived { background: rgba(74,140,74,.14); color: #3d7a3d; margin-left: 6px; }
.qtag.nearby { background: rgba(74,140,74,.14); color: #3d7a3d; margin-left: 6px; }
.qtag.dist { background: var(--blush-soft); color: var(--blush-deep); margin-left: 6px; }
.linker { margin-top: 10px; background: var(--blush-soft); border: 1px solid rgba(183,110,121,.2); border-radius: 12px; padding: 10px; display: grid; gap: 4px; }
.linker input { margin: 0 0 4px; }
.linker .linklike { text-align: left; padding: 6px 4px; }
.cprofile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.client-row { text-align: left; }
.loc-card.pulse { animation: locPulse 1.6s ease-in-out 4; border-color: var(--gold); }
@keyframes locPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192,139,92,0); }
  50% { box-shadow: 0 0 0 6px rgba(192,139,92,.35); }
}
@media (max-width: 420px) { .cprofile-grid { grid-template-columns: 1fr; } }

/* ---- AI chat (Eva's assistant) ---- */
.achat {
  max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px;
  margin: 8px 0; padding: 4px 2px;
}
.amsg {
  padding: 8px 11px; border-radius: 15px; max-width: 88%;
  font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word;
}
.amsg.user { align-self: flex-end; background: var(--ink); color: var(--champagne); border-bottom-right-radius: 5px; }
.amsg.assistant { align-self: flex-start; background: #f6f1e8; color: var(--ink); border: 1px solid var(--line-soft); border-bottom-left-radius: 5px; }
.amsg.typing { display: flex; gap: 5px; padding: 13px 16px; }
.amsg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: aiblink 1.2s infinite; }
.amsg.typing span:nth-child(2) { animation-delay: .2s; }
.amsg.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes aiblink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.arow { display: flex; gap: 8px; align-items: center; }
.arow input[type="text"] { flex: 1; min-width: 0; }
/* .btn is width:100% by default — inside a row the buttons must size to content */
.arow .btn { width: auto; flex: none; }
.micbtn { font-size: 19px; padding: 9px 13px; flex: none; }
.micbtn.listening { background: #a93226; border-color: #a93226; color: #fff; animation: aiblink 1s infinite; }
.recdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #c0392b; margin-right: 4px; animation: aiblink 1s infinite; }
/* Build badge in the header bars — shows which release is actually running */
.ver { font-size: 9px; font-weight: 700; letter-spacing: .08em; color: var(--gold);
  border: 1px solid rgba(192,139,92,.45); border-radius: 999px; padding: 2px 7px;
  opacity: .85; flex: 0 0 auto; }

/* ---- Smart match suggestions in the linker ---- */
.sug-label { font-size: 12.5px; font-weight: 700; color: var(--gold-deep); margin: 10px 2px 4px; text-transform: uppercase; letter-spacing: .4px; }
.sug-label.muted { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.sug-row { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left;
  background: var(--gold-soft); border: 1px solid rgba(183,110,121,.25); border-radius: 12px; padding: 9px 12px; margin: 4px 0; }

/* ---- Tips in the dashboard ---- */
.tipinput { width: 74px; padding: 6px 8px; font-size: 13.5px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.dash-list li { align-items: center; }

/* ---- Stylist tutorial: setup checklist + guided tour ---- */
.setup-card { border: 2px solid var(--gold-soft); }
.setup-row { display: flex; gap: 10px; align-items: flex-start; padding: 7px 2px; border-top: 1px solid var(--line-soft); }
.setup-row:first-of-type { border-top: 0; }
.setup-ico { font-size: 20px; flex: none; width: 28px; text-align: center; }
.setup-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.setup-tx b { font-size: 14.5px; }
.setup-tx span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.setup-row.done .setup-tx b { color: var(--muted); text-decoration: line-through; }
.setup-row .btn { flex: none; align-self: center; }
#tourOverlay { position: fixed; inset: 0; background: rgba(20, 16, 12, .6); z-index: 1000; }
.tour-tip { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 1002;
  background: #fffdf8; border-radius: 18px; padding: 18px; box-shadow: 0 12px 40px rgba(0,0,0,.35);
  max-width: 520px; margin: 0 auto; }
.tour-tip h3 { margin: 2px 0 6px; font-size: 17px; }
.tour-tip p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; }
.tour-count { font-size: 12px; font-weight: 700; color: var(--gold-deep); text-transform: uppercase; letter-spacing: .5px; }
.tour-btns { justify-content: flex-end; }
.tour-highlight { position: relative; z-index: 1001; outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 14px; }

/* First-visit install popup (iOS needs the Home Screen app for push) */
.modal-overlay { position: fixed; inset: 0; background: rgba(12, 9, 6, .78); z-index: 1100;
  display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-card { background: #221c16; border: 1px solid #3d332a; border-radius: 18px;
  padding: 24px 22px; max-width: 400px; width: 100%; text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .55); }
.modal-card h2 { margin: 6px 0 8px; font-size: 22px; }
.modal-card .sub { color: #cfc6b8; font-size: 14px; line-height: 1.55; margin: 0 0 4px; }
.modal-card .install-steps { text-align: left; margin: 12px 0 18px; padding-left: 24px;
  color: #f2ebdf; font-size: 14.5px; line-height: 1.7; }
.modal-card .btn-row { display: flex; gap: 10px; justify-content: center; }

/* ---------- app-link sign-in (v14.2) ---------- */
.linkbox { background: #221c16; border: 1px solid #3d332a; border-radius: 14px; padding: 16px 14px; margin: 14px 0 4px; }
.linkbox .link-steps { text-align: left; margin: 10px 0 14px; padding-left: 24px;
  color: #f2ebdf; font-size: 14.5px; line-height: 1.7; }
.linkcode-row { display: flex; gap: 8px; }
.code-input { flex: 1; min-width: 0; font-size: 20px; font-weight: 700; letter-spacing: 4px;
  text-align: center; text-transform: uppercase; padding: 10px 6px; border-radius: 10px;
  border: 1px solid #4a3f33; background: #1c1712; color: var(--cream); font-family: var(--sans); }
.code-input::placeholder { color: #6b5f4f; letter-spacing: 4px; }
.big-code { font-size: 42px; font-weight: 800; letter-spacing: 10px; text-indent: 10px;
  color: var(--gold); margin: 14px 0 18px; font-family: var(--sans); }

/* ---------- quick booking sheet ---------- */
.bsheet { background: #fbf8f2; border: 1px solid #e7dcc8; border-radius: 16px; padding: 14px; margin-bottom: 14px; }
.bsheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.bsheet label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #8a7a63; margin: 0 0 6px; }
.chiprow { display: flex; flex-wrap: wrap; gap: 6px; }
.chipscroll { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin: 0 -4px; padding-left: 4px; padding-right: 4px; -webkit-overflow-scrolling: touch; }
.chip { flex: none; border: 1px solid #d9cbb2; background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 14px; font-size: 15px; font-family: inherit; cursor: pointer; }
.chip.sel { background: var(--ink); color: var(--champagne); border-color: var(--ink); }
.chip.new { border-style: dashed; border-color: var(--gold); color: #8a6a3a; }
.chip.off { opacity: .45; }
.chip.day { display: flex; flex-direction: column; align-items: center; min-width: 56px; padding: 8px 10px; }
.chip.day b { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.chip.day span { font-size: 17px; font-weight: 700; }
.timegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.bsheet-bar { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #e0d3ba; }

/* Schedule (appointments) */
.sched-nav { display: flex; align-items: center; justify-content: space-between; margin: 6px 0; }
.sched-nav b { font-size: 14.5px; }
.sched-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 12px; }
.sched-day { position: relative; background: #2b241d; border: 1px solid #3d332a; border-radius: 10px;
  padding: 8px 2px; color: #f2ebdf; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; gap: 2px; font-family: inherit; }
.sched-day .dow { font-size: 10px; text-transform: uppercase; color: #b8ab96; }
.sched-day .dnum { font-size: 16px; font-weight: 700; }
.sched-day.sel { border-color: var(--gold); background: #3a2f22; }
.sched-day.today .dnum { color: var(--gold); }
.dbadge { position: absolute; top: -6px; right: -4px; background: var(--gold); color: #1b1712;
  font-size: 11px; font-weight: 800; border-radius: 999px; min-width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.appt-item { background: #2b241d; border: 1px solid #3d332a; border-radius: 12px;
  margin-bottom: 8px; color: #f2ebdf; overflow: hidden; }
.appt-item .arow { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.appt-item .atime { font-weight: 800; color: var(--gold); }
/* Compact agenda row: one tap-target line; details + actions expand below. */
.appt-head { display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 9px 12px; background: none; border: 0; color: inherit;
  font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.appt-head .atime { font-size: 13px; white-space: nowrap; }
.appt-head .aname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-size: 13.5px; }
.appt-head .qtag { margin-top: 0; flex: none; }
.appt-head .chev { color: #a89c8d; font-size: 11px; flex: none; }
.appt-body { padding: 2px 12px 10px; border-top: 1px solid #3d332a; }
.appt-body .anotes { font-size: 12.5px; color: #d8cbb8; margin: 8px 0 0; }
.appt-body .qactions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
/* Rendered markdown inside AI assistant replies. */
.amsg.assistant p { margin: 0 0 6px; }
.amsg.assistant p:last-child { margin-bottom: 0; }
.amsg.assistant ul, .amsg.assistant ol { margin: 6px 0; padding-left: 18px; }
.amsg.assistant li { margin: 4px 0; }
.amsg.assistant li::marker { color: var(--gold-deep); }
.slot-grid { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.slot { border: 1px solid #3d332a; background: #2b241d; color: #f2ebdf; border-radius: 999px;
  padding: 7px 11px; font-size: 12.5px; cursor: pointer; font-family: inherit; }
.slot.free { border-color: #4caf7d; }
.slot.booked { opacity: .45; text-decoration: line-through; cursor: default; }
.slot.blocked { opacity: .45; cursor: default; border-style: dashed; }
.slot.past { opacity: .3; cursor: default; }
.appt-form { background: #2b241d; border: 1px solid var(--gold); border-radius: 12px;
  padding: 14px; margin-top: 12px; }
.appt-form h3 { margin: 0 0 4px; }
.avail-editor { border-top: 1px solid #3d332a; margin-top: 6px; padding-top: 4px; }
.avail-row { display: grid; grid-template-columns: 64px 1fr 1fr auto; gap: 8px;
  align-items: center; margin-bottom: 8px; }
.avail-row > label { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.block-item { display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: #2b241d; border: 1px dashed #6b5b45; border-radius: 10px;
  padding: 8px 12px; margin-bottom: 6px; font-size: 13.5px; }
.today-appts { margin-bottom: 10px; }
.today-appts h3 { font-size: 15px; margin: 0 0 6px; }
.qitem.appt { border-left: 3px solid var(--gold); }
.qtag.scheduled { background: #2c4a3b; color: #9fe0b8; }
.qtag.checked-in { background: #4a3b2c; color: #ffd9a0; }

/* ---- v13: chat + help ---- */
.chat-card { overflow-x: clip; }
.chatbox { display: flex; flex-direction: column; gap: 8px; max-height: 46vh;
  overflow-y: auto; padding: 4px 2px; margin-bottom: 10px; }
.cmsg { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: 14.5px;
  line-height: 1.4; overflow-wrap: anywhere; }
.cmsg.me { align-self: flex-end; background: var(--gold); color: #1b1712;
  border-bottom-right-radius: 6px; font-weight: 500; }
.cmsg.eva { align-self: flex-start; background: #2b241d; color: #f2ebdf;
  border: 1px solid #3d332a; border-bottom-left-radius: 6px; }
.chat-row { display: flex; align-items: center; gap: 10px; width: 100%;
  background: #2b241d; border: 1px solid #3d332a; border-radius: 12px;
  padding: 10px 12px; margin-bottom: 8px; cursor: pointer; color: #f2ebdf;
  font-family: inherit; text-align: left; }
.chat-row.unread { border-color: var(--gold); }
.chat-dot { font-size: 10px; flex: none; }
.chat-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-meta b { font-size: 14.5px; }
.chat-preview { font-size: 13px; color: #b8a88f; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.chat-time { font-size: 11.5px; color: #8a7a63; flex: none; }
.unread-badge { background: var(--gold); color: #1b1712; font-size: 11px;
  font-weight: 800; border-radius: 999px; min-width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 6px; vertical-align: 2px; }
/* ---- help page ---- */
.help-sec { background: #241e17; border: 1px solid #3d332a; border-radius: 14px;
  padding: 16px; margin: 0 14px 12px; max-width: 640px; }
.help-sec h2 { margin: 0 0 10px; font-size: 17px; color: var(--gold); }
.help-sec h3 { margin: 14px 0 6px; font-size: 15px; }
.help-sec p { font-size: 14px; line-height: 1.55; color: #e8dfcf; margin: 6px 0; }
.help-list { margin: 6px 0; padding-left: 20px; font-size: 14px; line-height: 1.55;
  color: #e8dfcf; }
.help-list li { margin-bottom: 6px; }
.help-list b, .help-sec b { color: #fff; }
.help-sec .install-steps { margin: 8px 0; }
.step-ico { display: inline-block; border: 1px solid #6b5b45; border-radius: 6px;
  padding: 0 6px; font-size: 12px; color: var(--gold); }
@media (min-width: 700px) { .help-sec { margin-left: auto; margin-right: auto; } }
