/* Bridal Mehendi v1: booking engine, prices search, my bookings, studio back office.
   Builds on the shared "Atelier" look (apps/shared/miniapp.css): cream / ink / gold with the henna-green accent.
   Mobile first (360 px); everything is one column, touch targets ≥ 44 px. */
.mh-abtn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.mh-apill { text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; }
.mh-acard { text-decoration: none; color: var(--ink); display: block; }
.mh-from { display: block; font-style: normal; font-size: 13px; font-weight: 650; color: var(--accent); margin-top: 4px; }
.mh-title { font-size: 32px !important; margin: 14px 0 4px !important; }
.mh-h4 { font: 700 18px/1.2 var(--serif); margin: 22px 0 10px; }
.mh-back { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--text-2); text-decoration: none; min-height: 32px; }
.mh-notice { background: var(--gold-tint); color: var(--ink); padding: 12px 14px; border-radius: var(--r-in); font-size: 14px; }
.mh-empty { color: var(--text-3); text-align: center; padding: 22px 8px; }
.mh-empty .ma-btn { margin-top: 8px; }
.mh-errbox { background: #FBEAEA; color: #7A1F1F; border-radius: var(--r-in); padding: 12px 14px; margin: 14px 0; font-size: 14px; }
.mh-errbox ul { margin: 6px 0 0; padding-left: 18px; }
.mh-off { margin: 0; padding: 0; list-style: none; }
.mh-off li { background: var(--bg-sunken); border-radius: 12px; padding: 8px 12px; margin-bottom: 6px; font-size: 14px; }
.mh-row { display: flex; gap: 10px; align-items: flex-end; }
.mh-row.mh-wrap { flex-wrap: wrap; align-items: center; }
.mh-grow { flex: 1; min-width: 0; }
.mh-linkbtn { appearance: none; background: none; border: 0; color: var(--accent); font-weight: 650; font-size: 15px; padding: 10px 0; min-height: 44px; cursor: pointer; text-align: left; }
.mh-linkbtn--inline { min-height: 0; padding: 0 4px; font-size: 14px; }
.mh-danger { background: #B3261E !important; box-shadow: none !important; }
.mh-danger-t { color: #B3261E; }
.mh-good dt, .mh-good dd { color: var(--good); }
.mh-off-pct, .mh-off { font-style: normal; }
.mh-tag { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 6px; background: var(--gold-tint); color: var(--gold-deep); vertical-align: middle; }
.mh-fest-cta { display: inline-block; margin-top: 14px; color: #FFF8EC; font-weight: 650; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.ma-fest h2 .mh-off { color: #F6D58A; }
.mh-spin { display: flex; gap: 6px; justify-content: center; padding: 40px 0; }
.mh-spin i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); opacity: .3; animation: mhPulse 1s infinite ease-in-out; }
.mh-spin i:nth-child(2) { animation-delay: .15s; } .mh-spin i:nth-child(3) { animation-delay: .3s; }
@keyframes mhPulse { 50% { opacity: 1; transform: scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .mh-spin i { animation: none; opacity: .7; } }

/* ---------- chips, segmented ---------- */
.mh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.mh-chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; font-weight: 600; cursor: pointer; text-transform: capitalize; }
.mh-chip.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.mh-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: var(--bg-sunken); border-radius: 16px; margin: 14px 0; }
.mh-seg button { min-height: 46px; border: 0; border-radius: 12px; background: transparent; font-weight: 600; font-size: 14px; cursor: pointer; }
.mh-seg button.is-on { background: var(--surface); box-shadow: var(--shadow); color: var(--accent-deep); }

/* ---------- search ---------- */
.mh-searchbar { position: relative; display: flex; align-items: center; margin: 6px 0 10px; }
.mh-searchbar input { flex: 1; min-width: 0; min-height: 52px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); padding: 0 56px 0 44px; font-size: 16px; }
.mh-searchbar input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.mh-searchbar > input:first-child { padding-left: 18px; }
.mh-searchbar__icon { position: absolute; left: 16px; color: var(--text-3); display: grid; }
.mh-mic { position: absolute; right: 5px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; cursor: pointer; }
.mh-mic.is-on { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent); }

/* ---------- item rows ---------- */
.mh-list { display: grid; gap: 10px; }
.mh-list--full { margin-top: 6px; }
.mh-group h4 { font: 700 17px/1.2 var(--serif); margin: 14px 0 8px; color: var(--text-2); }
.mh-group { display: grid; gap: 10px; }
.mh-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; text-align: left; width: 100%; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; padding: 10px 12px; box-shadow: var(--shadow); cursor: pointer; min-height: 72px; }
.mh-item.is-on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset, var(--shadow); }
.mh-item__art { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; }
.mh-item__art svg { width: 40px; height: 40px; }
.mh-item__txt { min-width: 0; }
.mh-item__txt b { display: block; font-weight: 650; font-size: 15px; }
.mh-item__txt span { display: block; font-size: 13px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mh-item__txt em { font-style: normal; font-size: 12px; color: var(--text-3); }
.mh-price { font: 700 18px/1.1 var(--serif); white-space: nowrap; color: var(--ink); }
.mh-price small { font: 500 11px var(--sans); color: var(--text-3); }
.mh-price--ask { font: 600 12px var(--sans); color: var(--gold-deep); }

/* ---------- people, dates, slots ---------- */
.mh-stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px 12px; margin: 12px 0; }
.mh-stepper > span { font-weight: 600; }
.mh-stepper div { display: flex; align-items: center; gap: 10px; }
.mh-stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); font-size: 22px; cursor: pointer; }
.mh-stepper button[disabled] { opacity: .35; }
.mh-stepper output { min-width: 28px; text-align: center; font: 700 22px var(--serif); }
.mh-days { display: flex; gap: 8px; overflow-x: auto; margin: 10px -16px 4px; padding: 2px 16px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.mh-day { flex: 0 0 62px; scroll-snap-align: start; display: grid; justify-items: center; gap: 1px; padding: 8px 4px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.mh-day small { font-size: 11px; color: var(--text-3); }
.mh-day b { font: 700 22px/1.1 var(--serif); }
.mh-day.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.mh-day.is-on small { color: inherit; opacity: .85; }
.mh-later { margin: 6px 0 !important; }
.mh-later input, .ma-field select, .mh-sel, .ma-field textarea, .mh-ta, .ma-field input[type='time'], .ma-field input[type='date'] {
  min-height: 46px; border-radius: var(--r-in); border: 1px solid var(--line-strong); background: var(--bg); padding: 0 12px; font-size: 16px; font-weight: 500; width: 100%; }
.mh-ta, .ma-field textarea { padding: 10px 12px; resize: vertical; font-family: var(--sans); }
.mh-slotgroup h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-3); margin: 14px 0 8px; font-weight: 650; }
.mh-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.mh-slot { min-height: 46px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 650; font-size: 15px; cursor: pointer; }
.mh-slot.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.mh-dot { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent-tint); color: var(--accent-deep); font-size: 11px; font-weight: 700; padding: 0 5px; }
.mh-dot--new { background: var(--gold); color: #fff; }

/* ---------- photo ---------- */
.mh-photo { margin: 12px 0; }
.mh-photo img, .mh-refimg { display: block; max-width: 100%; max-height: 260px; border-radius: 16px; margin: 8px 0; object-fit: cover; }
.mh-photo__pick, .mh-filebtn { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1.5px dashed var(--accent); color: var(--accent); font-weight: 650; cursor: pointer; overflow: hidden; }
.mh-filebtn { border-style: solid; border-color: var(--line-strong); color: var(--ink); }
.mh-photo__pick input, .mh-filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- summary, booking, pay ---------- */
.mh-sum { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px; box-shadow: var(--shadow); margin: 12px 0; }
.mh-sum__head { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; }
.mh-sum__head b { display: block; font: 700 20px/1.15 var(--serif); }
.mh-sum__head span { font-size: 14px; color: var(--text-2); }
.mh-lines { margin: 12px 0 0; display: grid; gap: 6px; }
.mh-lines div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.mh-lines dt { color: var(--text-2); } .mh-lines dd { margin: 0; text-align: right; font-weight: 600; }
.mh-total { border-top: 1.5px dashed color-mix(in srgb, var(--gold) 70%, transparent); padding-top: 8px; margin-top: 4px; }
.mh-total dt, .mh-total dd { font: 700 18px var(--serif); color: var(--ink); }
.mh-rules { margin: 10px 0; padding-left: 18px; font-size: 13px; color: var(--text-2); display: grid; gap: 4px; }
.mh-done { background: var(--accent-tint); border-radius: var(--r-card); padding: 16px; margin: 14px 0; }
.mh-done b { display: block; font: 700 24px var(--serif); color: var(--accent-deep); }
.mh-done span { font-size: 14px; }
.mh-paybox, .mh-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; margin: 14px 0; box-shadow: var(--shadow); }
.mh-paybox h3, .mh-panel h3 { font: 700 21px/1.2 var(--serif); margin: 0 0 8px; }
.mh-paybox--wait { background: var(--gold-tint); box-shadow: none; display: grid; gap: 2px; font-size: 14px; }
.mh-qrwrap { display: grid; place-items: center; padding: 10px; background: #fff; border-radius: 18px; margin: 6px auto; width: min(240px, 100%); }
.mh-qr { width: 100%; max-width: 220px; height: auto; display: block; }
.mh-copy { user-select: all; word-break: break-all; }
.mh-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0; }
.mh-bks { display: grid; gap: 10px; }
.mh-bk { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px 12px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.mh-bk__txt b { display: block; } .mh-bk__txt span { display: block; font-size: 13px; color: var(--text-2); }
.mh-st, .mh-due, .mh-sb__tags em { display: inline-block; font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin: 4px 4px 0 0; background: var(--bg-sunken); color: var(--text-2); }
.mh-st--confirmed, .mh-st--done { background: var(--accent-tint); color: var(--accent-deep); }
.mh-st--requested { background: var(--gold-tint); color: var(--gold-deep); }
.mh-st--cancelled, .mh-st--no_show { background: #F6E3E1; color: #8A2A22; }
.mh-due { background: var(--gold); color: #fff; }
.mh-bday .mh-row { align-items: center; }
.mh-sel { width: auto; }

/* ---------- cross-sell + hooks ---------- */
.mh-soon { display: block; padding: 14px; border-radius: 18px; border: 1px dashed var(--line-strong); font-size: 14px; color: var(--text-2); }
.mh-soon b { display: block; font: 700 18px/1.2 var(--serif); color: var(--ink); }

/* ---------- studio ---------- */
.mh-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 6px -16px 10px; padding: 0 16px 4px; scrollbar-width: none; }
.mh-tabs button { flex: 0 0 auto; min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 650; font-size: 14px; cursor: pointer; }
.mh-tabs button.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.mh-timeline { display: grid; gap: 10px; }
.mh-sb { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.mh-sb--requested { border-left-color: var(--gold); } .mh-sb--cancelled, .mh-sb--no_show { border-left-color: #C9605A; opacity: .75; } .mh-sb--done { border-left-color: var(--line-strong); }
.mh-sb__head { display: grid; grid-template-columns: 62px 1fr; gap: 10px; width: 100%; text-align: left; background: none; border: 0; padding: 12px; cursor: pointer; }
.mh-sb__time { font: 700 17px/1.1 var(--serif); } .mh-sb__time small { display: block; font: 500 12px var(--sans); color: var(--text-3); }
.mh-sb__txt b { display: block; } .mh-sb__txt > span { display: block; font-size: 13px; color: var(--text-2); }
.mh-sb__body { padding: 0 12px 14px; border-top: 1px solid var(--line); }
.mh-utr { background: var(--gold-tint); border-radius: 14px; padding: 10px 12px; margin: 10px 0; }
.mh-utr code { font-size: 14px; user-select: all; }
.mh-plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mh-plist li > button, .mh-arow { display: flex; justify-content: space-between; gap: 12px; align-items: center; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; min-height: 56px; cursor: pointer; }
.mh-plist li.is-off > button, .mh-plist li.is-off .mh-arow { opacity: .55; }
.mh-plist b { display: block; font-weight: 650; } .mh-plist small { display: block; font-size: 12px; color: var(--text-3); }
.mh-arow { flex-wrap: wrap; cursor: default; }
.mh-crm { padding: 8px 4px 12px; }
.mh-mini { margin: 8px 0; padding-left: 18px; font-size: 13px; color: var(--text-2); display: grid; gap: 4px; }
.mh-preview { margin-top: 12px; }
.mh-diff { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; max-height: 360px; overflow: auto; }
.mh-diff li { background: var(--bg-sunken); border-radius: 12px; padding: 8px 10px; font-size: 13px; }
.mh-diff li b { display: block; } .mh-diff span { display: block; }
.mh-diff s { color: #8A2A22; } .mh-diff ins { color: var(--good); text-decoration: none; font-weight: 650; }
.mh-switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; min-height: 52px; border-bottom: 1px solid var(--line); cursor: pointer; }
.mh-switch b { display: block; font-weight: 600; font-size: 15px; } .mh-switch small { display: block; font-size: 12px; color: var(--text-3); }
.mh-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mh-switch i { flex: 0 0 auto; width: 50px; height: 30px; border-radius: 15px; background: var(--line-strong); position: relative; transition: background .15s; }
.mh-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.mh-switch input:checked + i { background: var(--accent); } .mh-switch input:checked + i::after { transform: translateX(20px); }
.mh-switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.mh-num span { display: flex; align-items: center; gap: 8px; } .mh-num input { width: 96px; min-height: 46px; }
.mh-settings .ma-field { margin: 10px 0; }

/* ---------- toasts ---------- */
.mh-toasts { position: fixed; left: 0; right: 0; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 20; display: grid; justify-items: center; gap: 6px; pointer-events: none; padding: 0 16px; }
.mh-toast { max-width: 520px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 14px; font-size: 14px; box-shadow: var(--shadow); }
.mh-toast--err { background: #8A2A22; color: #fff; }

/* ---- AI feature map (owner 4-Nov): gallery, design ideas, tag chips ---- */
.mh-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 12px 0; }
.mh-gal__item { margin: 0; border-radius: 12px; overflow: hidden; background: var(--ma-card, #fff); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.mh-gal__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.mh-gal__item figcaption { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; font-size: .9rem; }
.mh-gal__item small { opacity: .75; }
.mh-own { font-style: normal; font-size: .75rem; font-weight: 600; color: var(--mh-accent, #4E6B2F); }
.mh-ideas { display: grid; gap: 12px; margin: 16px 0; }
.mh-idea { border: 1px dashed currentColor; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.mh-idea p { margin: 0; }
.mh-idea small { opacity: .8; }
.mh-idea__label { font-style: normal; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; opacity: .8; }
.mh-taggroup { margin: 6px 0; }
.mh-check { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; }
