/* ===== CALMIA_BOOKING_STUDIO_UI_R1 — the Virtual Studio as a page of the website (mock v5.1 "MOCK OK" 2026-10-24).
   Loads after tokens.css + site.css (the live sheet, untouched). The type of the old Studio (Georgia 400, −.045em titles, the .studio-value-banner,
   the thin 3 steps, the 15-px look cards with the category pill, underlined text links), the categories on the left as Services & Prices, the look
   popup centered on the desk (zoom + Prev / Next, the two buttons under the estimate), the hand-photo page of the old Studio, the APPROACHES with a
   radio each, My Calmia › Your Studio / Saved looks / Favourite designs. R1_2: the compact chips clear of the picture with one-line labels, the two
   equal Share / Try another look buttons with their icons, the Share choices (.share-pick), the approaches block in the My previews sheet. ===== */

/* ---- type ---- */
#page-studio .eyebrow, #page-photo .eyebrow, #page-result .eyebrow, .share-page .eyebrow { font-size: .75rem; letter-spacing: .19em; font-weight: 600; color: #315b70; margin-bottom: 12px; }
#page-studio h1, .page-heading h1, .share-page h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(2.3rem, 5vw, 4.2rem); letter-spacing: -.045em; line-height: 1.06; margin: 0; }
#page-studio h1 em, .page-heading h1 em, .share-page h1 em { font-weight: 400; color: var(--brand); }
.studio-top { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 38px; }
@media (min-width: 600px) { .studio-top { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 10px; } }
.credits { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: var(--radius-btn); border: 1px solid var(--line-strong); background: var(--card-2); color: var(--brand-ink); font-weight: 600; font-size: .82rem; white-space: nowrap; cursor: pointer; }
.credits.cust { background: var(--p-mint); border-color: var(--p-mint-dot); color: var(--p-mint-ink); }
.credits.owner { background: var(--p-butter); border-color: var(--p-butter-dot); color: var(--p-butter-ink); }

/* ---- the hero (the old Studio's value banner) ---- */
#page-studio .banner { margin: 14px 0 30px; padding: 30px 34px 28px; border: 1px solid #c5dde4; border-radius: 20px; background: linear-gradient(135deg, #edf6f7 0%, #dbecef 58%, #edf5f3 100%); text-align: center; }
#page-studio .banner .eyebrow { margin: 0 0 10px; }
#page-studio .banner h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 2.25rem; line-height: 1.12; letter-spacing: -.035em; margin: 0 auto 12px; }
#page-studio .banner h2 br { display: none; }
#page-studio .banner h2 em { font-weight: 400; color: var(--brand); }
#page-studio .banner .muted { max-width: 720px; margin: 0 auto; color: #506674; font-size: .95rem; line-height: 1.6; text-wrap: balance; }
#page-studio .banner .no { display: inline-block; margin: 17px auto 0; padding: 7px 12px; border: 1px solid rgba(82, 131, 145, .2); border-radius: 999px; background: rgba(255, 253, 248, .58); color: #275b8d; font: 700 15px/1.35 'Segoe UI', Arial, sans-serif; letter-spacing: -.015em; white-space: nowrap; }
#page-studio .banner .small.muted { max-width: 700px; margin: 14px auto 0; color: #476174; font-size: .82rem; line-height: 1.5; text-wrap: balance; }
@media (max-width: 1023px) { #page-studio .banner { padding: 24px 18px 22px; } #page-studio .banner h2 { font-size: 1.9rem; } #page-studio .banner h2 br { display: inline; } #page-studio .banner .muted { max-width: 34ch; font-size: .92rem; } }

/* ---- the 3 steps (thin rounded boxes, the old Studio's icons + copy) ---- */
.stepbar.guided { list-style: none; display: grid; grid-template-columns: 1fr; gap: 18px; max-width: 1050px; margin: 0 auto 26px; padding: 0 8px; }
.stepbar.guided li { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--card); color: #506674; font-size: .875rem; position: relative; min-width: 0; }
.stepbar.guided li .ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #e5f0f2; color: var(--brand); border: 1px solid #d2e4e8; position: relative; }
.stepbar.guided li .ic .ico { width: 24px; height: 24px; stroke-width: 1.5; }
.stepbar.guided li .ic b { position: absolute; right: -5px; top: 3px; width: 25px; height: 25px; border-radius: 50%; background: var(--brand); color: #fff; box-shadow: 0 0 0 3px var(--bg); font-weight: 600; font-size: .75rem; display: grid; place-items: center; }
.stepbar.guided li.on { border-color: #9dc4d2; background: #f4f9fa; } .stepbar.guided li.on .ic { background: #d8eaf0; border-color: #9dc4d2; }
.stepbar.guided li.done { border-color: #c8dfdb; } .stepbar.guided li.done .ic { background: #c8dfdb; border-color: #c8dfdb; } .stepbar.guided li.done .ic b { background: #2f6b3a; }
.stepbar.guided .copy { display: grid; gap: 2px; }
.stepbar.guided .copy strong { display: block; color: var(--ink); font-family: Georgia, 'Times New Roman', serif; font-size: 1.18rem; font-weight: 400; line-height: 1.25; }
.stepbar.guided li.on .copy strong { color: var(--brand); }
.stepbar.guided .copy small { display: block; margin-top: 5px; color: #506674; font-size: .78rem; line-height: 1.45; }
.stepbar.guided.compact { max-width: 760px; margin: 0 auto 16px; }      /* R1_2: clear of the picture below (was 8 px) */
.stepbar.guided.compact li { padding: 8px 10px; border-radius: 12px; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
.stepbar.guided.compact li .ic { width: 44px; height: 44px; } .stepbar.guided.compact li .ic .ico { width: 20px; height: 20px; } .stepbar.guided.compact li .ic b { width: 20px; height: 20px; font-size: .65rem; right: -4px; top: 0; }
.stepbar.guided.compact .copy strong { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }      /* R1_2: one line, never wrapped */
.stepbar.guided.compact .lbl-short { display: none; }

/* ---- the links + the library layout ---- */
.studio-links { display: flex; gap: 20px; flex-wrap: wrap; margin: 0 0 14px; }
.studio-links a { display: inline-flex; align-items: center; gap: 6px; font: 400 .875rem/1.4 'Segoe UI', Arial, sans-serif; color: var(--brand); text-decoration: underline; text-underline-offset: 4px; min-height: 40px; }
.studio-links a .ico { width: 17px; height: 17px; stroke-width: 1.6; }
.studio-links .cnt { color: #506674; } .studio-links .cnt:empty { display: none; }
.studio-layout, .studio-main, .sections, .sec-cat { min-width: 0; }
.studio-layout { display: grid; gap: 14px; }
.studio-cats { display: none; }
.catlist-card { padding: 12px; } .catlist-card .eyebrow { margin: 4px 8px 8px; }
.crow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: var(--radius-sm); background: transparent; font-weight: 600; cursor: pointer; text-align: left; color: var(--ink); transition: background var(--t-fast); }
.crow .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--c-dot, var(--line-strong)); flex: 0 0 auto; }
.crow .cnt { margin-left: auto; color: var(--muted); font-size: .82rem; font-weight: 500; }
.crow:hover { background: var(--bg); }
.crow.on { background: var(--c-fill, var(--brand-soft)); color: var(--c-ink, var(--brand-ink)); }
.crow.fav .hrt { width: 15px; height: 15px; } .crow.fav.on .hrt { fill: #e07a9b; stroke: #e07a9b; }
/* BOOKING_ADMIN_STUDIO_R1: the admin's highlighted collection = the first group (★), its row / chip in the salon's warm colour */
.hl-star { width: 14px; height: 14px; fill: #b45b2a; stroke: #b45b2a; stroke-width: 1.5; stroke-linejoin: round; flex: 0 0 auto; display: block; }
.crow.hl { color: #b45b2a; } .crow.hl.on { background: #fff0e6; color: #7a3b14; }
#page-studio .filter button.hl { display: inline-flex; align-items: center; gap: 6px; border-color: #e8a46a; color: #b45b2a; }
#page-studio .filter button.hl.on { background: #b45b2a; border-color: #b45b2a; color: #fff; } #page-studio .filter button.hl.on .hl-star { fill: #fff; stroke: #fff; }
.sec-cat.hl .sec-head h2 .hl-star { width: 18px; height: 18px; }
.sec-cat.hl .sec-head .hl-tag { font: 600 .72rem/1 'Segoe UI', Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: #b45b2a; background: #fff0e6; border-radius: 999px; padding: 4px 9px; }
#page-studio .filter { position: sticky; top: var(--head-h); z-index: 5; background: var(--bg); padding: 6px 2px 12px; margin: 0 0 10px; display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
#page-studio .filter::-webkit-scrollbar { display: none; }
#page-studio .filter button { flex: 0 0 auto; min-height: 34px; padding: 0 12px; border: 1px solid #9bb4c2; background: transparent; color: var(--brand); font: 400 .8rem/1 'Segoe UI', Arial, sans-serif; border-radius: 999px; cursor: pointer; }
#page-studio .filter button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
#page-studio .filter button.fav { display: inline-flex; align-items: center; gap: 6px; } .filter button.fav .hrt { width: 13px; height: 13px; } .filter button.fav.on .hrt { stroke: #fff; fill: #fff; }
.hrt { width: 14px; height: 14px; fill: none; stroke: #c94b7a; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; display: block; }
.fav-big { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card-2); color: #c94b7a; display: grid; place-items: center; cursor: pointer; }
.fav-big .hrt { width: 20px; height: 20px; } .fav-big.on .hrt { fill: #e07a9b; stroke: #e07a9b; }
.custom .custom-title { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 1.3rem; margin: 0 0 6px; }
.custom p.small { margin: 0 0 6px; } .custom .btn { margin-top: 8px; }
.custom.locked .btn { color: var(--muted); border-color: var(--line); }
.custom.phone-only { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 14px; }
.custom.phone-only .eyebrow { margin: 0 0 2px; } .custom.phone-only p.small { margin: 0; } .custom.phone-only .btn { margin: 0; flex: 0 0 auto; }
.sections { display: grid; gap: 22px; }
.sec-cat { scroll-margin-top: calc(var(--head-h) + 60px); }
.sec-cat .sec-head { align-items: center; gap: 8px; margin-bottom: 10px; }
.sec-cat .sec-head h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 1.6rem; display: flex; align-items: center; gap: 10px; }
.sec-cat .sec-head .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c-dot); }
.sec-cat .sec-head .cnt { color: #506674; font-size: .81rem; font-weight: 500; }
.sec-cat .looks { width: 100%; }
/* the look card as the old Studio's */
#page-studio .look .ph { border-radius: 15px; background: #dce6df; }
#page-studio .look .ph .cat { position: absolute; bottom: 12px; left: 12px; background: rgba(255, 253, 248, .96); backdrop-filter: blur(8px); padding: 4px 10px; border-radius: 14px; font-size: .75rem; letter-spacing: .03em; color: var(--ink); font-weight: 400; }
#page-studio .look .ph .new { position: absolute; top: 12px; left: 12px; padding: 5px 9px; border-radius: 6px; background: #fffaf0; color: #544635; font-size: 11px; font-weight: 700; letter-spacing: .08em; box-shadow: 0 1px 4px #0002; }
#page-studio .look .nm { font-family: Georgia, 'Times New Roman', serif; font-size: 1.18rem; font-weight: 400; margin: 12px 0 0; line-height: 1.3; display: block; }
#page-studio .look .ct { font-size: .78rem; color: #506674; margin-top: 3px; }
.studio-fine { margin: 18px 0 8px; }
.empty { padding: 14px; border-radius: var(--radius-sm); background: var(--card); border: 1px dashed var(--line-strong); color: var(--muted); font-size: .9rem; margin: 0; }
@media (max-width: 700px) { #page-studio .look .ph { border-radius: 12px; } #page-studio .look .ph .cat { bottom: 9px; left: 9px; padding: 3px 8px; } #page-studio .look .nm { font-size: 1.05rem; margin-top: 10px; } }

/* ---- the look popup ---- */
.lv { display: grid; gap: 8px; }
.zoom-stage { position: relative; aspect-ratio: 4 / 5; border-radius: 15px; overflow: hidden; background: #dce6df; cursor: zoom-in; touch-action: none; user-select: none; }
.zoom-stage[data-zoom]:not([data-zoom="1"]) { cursor: grab; }
.zoom-stage img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: center center; transition: transform .18s ease-out; will-change: transform; }
.zoom-stage.dragging img { transition: none; }
.badge-new { position: absolute; left: 10px; top: 10px; padding: 3px 8px; border-radius: 8px; background: var(--p-coral-dot); color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.lv-tools { display: flex; align-items: center; gap: 8px; }
.lv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 36px; min-width: 36px; padding: 0 10px; border: 1px solid #9bb4c2; border-radius: 999px; background: transparent; color: var(--brand); font: 400 .8rem/1 'Segoe UI', Arial, sans-serif; cursor: pointer; }
.lv-btn:disabled { opacity: .4; cursor: default; }
.lv-btn .ico { width: 16px; height: 16px; } .lv-btn .ico.flip { transform: scaleX(-1); }
.lv-counter { font-size: .78rem; color: #506674; min-width: 54px; text-align: center; }
.lv-zoom { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: #506674; }
.lv-zoom .lv-btn { padding: 0; width: 36px; font-size: 1.1rem; }
.lv-hint { margin: 0; text-align: center; }
.modal-copy { display: grid; gap: 10px; align-content: start; }
.modal-copy .eyebrow { margin: 0; }
.modal-copy #lk-desc { margin: 0; font-size: .9rem; }
.est-box { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card-2); display: grid; gap: 4px; }
.est-box .eyebrow { margin: 0; font-weight: 500; letter-spacing: .14em; }
.est-box .est-val, .est-box #lk-est { font: 400 1.15rem/1.3 'Segoe UI', Arial, sans-serif; font-weight: 400; letter-spacing: -.01em; color: var(--ink); }
.est-box .fine { margin: 0; }
.lk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lk-actions .btn { min-height: 48px; padding: 0 10px; font-size: .95rem; white-space: nowrap; }
.sheet.modal .sheet-body { padding-bottom: calc(16px + var(--safe-b)); }
.notice.soft { display: flex; gap: 10px; align-items: flex-start; background: var(--p-sky); color: var(--p-sky-ink); margin-bottom: 12px; }
.notice.soft .ico { flex: 0 0 auto; margin-top: 2px; } .notice.soft span { font-style: normal; }
.signin.card .auth { display: grid; gap: 10px; }
.cu-eyebrow { margin: 0 0 2px; }
.cu-body { display: grid; gap: 10px; } .cu-body > p { margin: 0; }
.share-row { display: flex; gap: 8px; margin: 10px 0; }
.share-row input { flex: 1; min-width: 0; min-height: 40px; border: 1px solid var(--line-strong); border-radius: var(--radius-btn); padding: 0 12px; font: inherit; background: var(--card-2); }
@media (max-width: 1023px) { .modal-body { display: block; } .modal-copy { margin-top: 14px; } .lk-actions .btn .ico { display: none; } }

/* ---- step 2: the hand photo (the old Studio's page) ---- */
.page-heading { text-align: center; padding: 24px 0 34px; }
.page-heading > p:last-child { margin-top: 16px; color: #506674; font-size: 1rem; }
.preparation-layout { display: grid; gap: 24px; }
.upload-empty { min-height: 432px; padding: 34px; border: 1.5px dashed #66a3bf; border-radius: 20px; display: flex; align-items: center; justify-content: center; flex-direction: column; background: var(--card); text-align: center; }
.upload-icon { width: 59px; height: 59px; display: grid; place-items: center; background: #c8dfdb; color: var(--brand); border-radius: 50%; margin-bottom: 22px; }
.upload-icon .ico { width: 24px; height: 24px; stroke-width: 1.6; }
.upload-empty h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 1.7rem; margin: 0 0 12px; }
.tips-inline { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 4px; color: #506674; font-size: .875rem; line-height: 1.5; }
.tips-inline li::before { content: '·'; margin-right: 6px; color: var(--brand); font-weight: 700; }
.upload-empty .btn { width: 240px; max-width: 100%; margin-bottom: 10px; min-height: 50px; font-size: .875rem; }
.small-note { color: #506674; font-size: .75rem; line-height: 1.55; margin: 5px 0 0; } .small-note.centered { text-align: center; }
.photo-ready { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--card); }
.hand-image-wrap { height: 430px; background: #e5e9e3; } .hand-image-wrap img { width: 100%; height: 100%; object-fit: contain; display: block; }
.photo-toolbar { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 18px; }
.photo-toolbar > span { display: flex; align-items: center; gap: 8px; font-size: .875rem; } .photo-toolbar > span .ico { width: 18px; height: 18px; color: var(--ok); }
.text-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--brand); font: 400 .875rem/1.4 'Segoe UI', Arial, sans-serif; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.privacy-note { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: .75rem; color: #506674; margin-top: 14px; }
.privacy-note .ico { width: 15px; height: 15px; }
#photo-err { margin-top: 10px; }
.photo-summary .eyebrow { margin-bottom: 12px; }
.reference-summary { display: flex; gap: 20px; align-items: flex-start; }
.reference-summary img { width: 112px; height: 145px; border-radius: 12px; object-fit: cover; flex: none; background: #dce6df; }
.reference-summary h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 1.75rem; margin: 6px 0 10px; line-height: 1.2; }
.reference-summary p { font-size: .875rem; color: #506674; margin: 0; }
.category-label { font-size: .75rem; color: #315b70; }
.demo-notice { display: flex; align-items: flex-start; gap: 12px; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 24px; }
.demo-notice > .ico { color: #315b70; margin-top: 2px; width: 22px; height: 22px; stroke-width: 1.6; }
.demo-notice p { font-size: .875rem; color: #506674; margin: 0; } .demo-notice strong { display: block; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.try-action { margin-top: 30px; } .try-action .btn.wide { width: 100%; min-height: 50px; } .try-action .small-note { margin-top: 12px; }
.btn-primary:disabled { background: #dce5e5; border-color: #dce5e5; color: #697d88; cursor: default; }
@media (max-width: 1023px) {
  .photo-summary { display: contents; } .photo-summary .eyebrow { display: none; }
  .reference-summary { order: -1; border: 1px solid var(--line); border-radius: 13px; padding: 13px; gap: 14px; align-items: center; background: var(--card); }
  .reference-summary img { width: 70px; height: 84px; border-radius: 8px; } .reference-summary h2 { font-size: 1.35rem; margin: 3px 0; } .reference-summary p { display: none; } .reference-summary .text-button { min-height: 32px; font-size: .8rem; padding: 2px 0; }
  .photo-workspace { order: 0; } .demo-notice { order: 1; margin-top: 0; padding-top: 0; border-top: 0; gap: 10px; } .try-action { order: 2; margin-top: -4px; }
  .upload-empty { min-height: 358px; padding: 25px 18px; border-radius: 15px; } .upload-empty h2 { font-size: 1.6rem; } .hand-image-wrap { height: 340px; }
  .page-heading { text-align: left; padding: 15px 0 27px; } .page-heading h1 { font-size: 2.6rem; }
  .stepbar.guided.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 14px 0 14px; padding: 0; }      /* R1_2 (the Owner: "nằm sát hình quá"): a 14-px gap under the three chips */
  .stepbar.guided.compact li { grid-template-columns: 30px minmax(0, 1fr); gap: 6px; padding: 6px 8px; } .stepbar.guided.compact li .ic { width: 30px; height: 30px; } .stepbar.guided.compact li .ic .ico { width: 15px; height: 15px; } .stepbar.guided.compact li .ic b { width: 16px; height: 16px; font-size: .6rem; right: -5px; top: -3px; }
  .stepbar.guided.compact .copy strong { font: 600 .72rem/1.2 'Segoe UI', Arial, sans-serif; } }
/* R1_2: under 480 px the compact chips carry the short labels (Look · Photo · Preview) so "Choose a look" never wraps into two lines */
@media (max-width: 479px) { .stepbar.guided.compact .lbl-full { display: none; } .stepbar.guided.compact .lbl-short { display: inline; } }

/* ---- step 3: the preview + the approaches ---- */
.flow-head { display: flex; align-items: center; gap: 10px; padding: 18px 0 10px; }
.flow-head .x { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card-2); color: var(--brand); display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; }
.trying { display: flex; align-items: center; gap: 12px; min-width: 0; }
.trying img { width: 52px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--mint-soft); flex: 0 0 auto; }
.trying .eyebrow { margin: 0 0 2px; }
.trying strong { display: block; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.15; font-weight: 400; }
.result-grid { display: grid; gap: 14px; }
/* STUDIO_UI_R1_1 (the Owner, 25/10: "tay bị cắt"): the frame follows the picture — contain, never cover; the 4:5 / 4:3 box only while the engine paints (no picture yet);
   studio.js sets the frame's aspect-ratio to the picture's own once it has loaded (.fit) */
.result-frame { position: relative; padding: 0; overflow: hidden; aspect-ratio: 4 / 5; background: var(--mint-soft); }
.result-frame img { width: 100%; height: 100%; object-fit: contain; display: block; animation: reveal var(--t-slow) var(--ease); }
.result-frame.fit { background: #e5e9e3; }
.result-frame.fit img { object-fit: contain; }
.kept-note { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; color: #2f6b3a; font-size: .8rem; }
.kept-note .ico { width: 15px; height: 15px; color: #2f6b3a; } .kept-note a { color: inherit; }
.kept-note[hidden] { display: none; }
@keyframes reveal { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }
.shimmer { position: absolute; inset: 0; display: grid; place-content: center; gap: 14px; justify-items: center; text-align: center; padding: 20px; color: var(--brand-ink); background: linear-gradient(120deg, var(--mint-soft), var(--p-sky), var(--mint-soft)); background-size: 200% 100%; animation: sweep 2.4s linear infinite; }
@keyframes sweep { to { background-position: -200% 0; } }
.shimmer p { margin: 0; font-weight: 600; }
.shimmer .bar { width: 180px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .7); overflow: hidden; }
.shimmer .bar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .4s linear; }
.orbit.small { width: 64px; height: 64px; position: relative; }
.orbit.small .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand); opacity: .35; animation: ping 1.6s ease-out infinite; }
.orbit.small .ring:nth-child(2) { animation-delay: .8s; }
@keyframes ping { from { transform: scale(.5); opacity: .6; } to { transform: scale(1.3); opacity: 0; } }
.gen-fail { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; justify-items: center; text-align: center; padding: 24px; background: var(--card); color: var(--err); }
.gen-fail p { margin: 0; max-width: 32ch; }
/* R1_1: Share · Try another look (the Save button is gone — every preview is kept). R1_2 (the Owner): two EQUAL buttons (the same width and height), each with its icon on every width */
.result-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.result-actions .btn { min-height: 44px; padding: 0 8px; font-size: .84rem; font-weight: 500; white-space: nowrap; border-color: var(--line-strong); gap: 6px; }
.result-actions .btn .ico { width: 16px; height: 16px; stroke-width: 1.7; flex: 0 0 auto; }
.result-actions .btn.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
/* R1_2: Share = two choices (a private link for someone else / the preview posted to Reviews), folded under the buttons */
.share-pick { display: grid; gap: 8px; padding: 10px; margin-top: 8px; }
.share-pick[hidden] { display: none; }
.share-pick .btn { justify-content: flex-start; text-align: left; min-height: 54px; padding: 6px 12px; gap: 10px; white-space: normal; border-color: var(--line-strong); }
.share-pick .btn .ico { width: 18px; height: 18px; stroke-width: 1.7; flex: 0 0 auto; }
.share-pick .btn > span { display: grid; gap: 1px; min-width: 0; font-weight: 600; font-size: .9rem; line-height: 1.25; }
.share-pick .btn small { font-weight: 400; font-size: .74rem; color: #506674; }
.share-send { width: 100%; margin: 0 0 10px; } .share-send[hidden] { display: none; }
.share-row .btn-sm .ico { width: 16px; height: 16px; } .share-row .btn[hidden] { display: none; }
.sv-estimate { padding: 12px 14px; } .sv-estimate .fine { margin: 2px 0 0; }
.estimate { display: grid; gap: 10px; }
.estimate .eyebrow { font-weight: 500; letter-spacing: .14em; margin: 0; }
.est-intro { margin: 0; font-size: .82rem; }
.approaches { display: grid; gap: 8px; }
.approach { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card-2); cursor: pointer; }
.approach input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--brand); }
.approach.on { border-color: var(--brand); background: #f4f9fa; }
.ap-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ap-head strong { font-weight: 500; font-size: .95rem; }
.ap-total { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 1.05rem; white-space: nowrap; }
.ap-note { display: block; font-size: .78rem; color: #506674; margin: 2px 0 6px; }
.ap-lines { display: grid; gap: 2px; }
.ap-line { display: flex; justify-content: space-between; gap: 8px; font-size: .84rem; font-weight: 400; line-height: 1.4; }
.ap-line span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-line .m { color: #506674; white-space: nowrap; font-size: .8rem; }
.approach .pick { display: none; font-size: .76rem; color: var(--brand); margin-top: 6px; } .approach.on .pick { display: block; }
.estimate .btn-big { min-height: 48px; font-size: 1rem; }
.estimate .btn-soft .av { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
#result-credits { margin: 6px 0 0; text-align: center; }
body[data-flow="result"] .hannah-btn { display: none; }

/* ---- My Calmia: Your Studio / Saved looks / Favourite designs ---- */
.studio-status-card { display: grid; gap: 12px; }
.studio-status-card .row { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.studio-status-card .row .ico { width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }
.studio-status-card strong { display: block; }
.saved-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.saved-grid .empty, .fav-row .empty { grid-column: 1 / -1; }
.saved { border: 0; background: 0; padding: 0; text-align: left; cursor: pointer; position: relative; }
.saved .ph { aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: #e5e9e3; position: relative; }
.saved img { width: 100%; height: 100%; object-fit: contain; }      /* R1_1: the whole picture in the tile (the previews come in the customer's shape) */
.saved-open { border: 0; background: 0; padding: 0; text-align: left; cursor: pointer; width: 100%; display: block; color: inherit; font: inherit; }
.previews-note { margin: -4px 0 10px; }
.sv-delete { color: var(--err); margin-top: 4px; }
.zoom-stage.fit { aspect-ratio: auto; min-height: 200px; background: #e5e9e3; } .zoom-stage.fit img { object-fit: contain; height: auto; max-height: 70vh; }
.saved .d { font-size: .74rem; color: var(--muted); margin-top: 4px; display: block; }
.saved .nm { font-weight: 600; font-size: .84rem; display: block; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saved .pr { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 6px; background: rgba(255, 253, 248, .92); font-size: .7rem; font-weight: 700; }
.saved .del { position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(255, 253, 248, .94); color: var(--err); display: grid; place-items: center; cursor: pointer; }
.saved .del .ico { width: 13px; height: 13px; }
.fav-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.fav-row .look { flex: 0 0 120px; } .fav-row .look .nm { font-size: .9rem; }

/* ---- STUDIO_UI_R1_1: the live camera dialog (the old Studio's) ---- */
body.camera-open { overflow: hidden; }
.camera-dialog { width: calc(100% - 32px); max-width: 520px; max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); color: var(--ink); overflow: auto; box-shadow: 0 24px 90px rgba(32, 58, 76, .25); }
.camera-dialog::backdrop { background: rgba(22, 46, 64, .67); backdrop-filter: blur(5px); }
.camera-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.camera-dialog-header .eyebrow { margin-bottom: 6px; } .camera-dialog-header h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 1.8rem; margin: 0; }
.camera-close { background: var(--off); color: var(--brand); border: 0; border-radius: 50%; width: 44px; height: 44px; flex: none; font-size: 1.8rem; line-height: 1; cursor: pointer; }
#camera-guidance { font-size: .875rem; margin: 14px 0 18px; color: #506674; }
.camera-stage { position: relative; border-radius: 14px; overflow: hidden; background: #203a4c; aspect-ratio: 4 / 3; max-height: 44dvh; min-height: 180px; }
.camera-stage video { width: 100%; height: 100%; display: block; object-fit: contain; }
.camera-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #f2efe7; padding: 16px; text-align: center; }
.camera-placeholder .ico { width: 34px; height: 34px; } .camera-placeholder span { font-size: .875rem; }
.camera-status { font-size: .875rem; margin: 14px 0; text-align: center; color: #506674; } .camera-status:empty { display: none; }
#camera-error[hidden] { display: none; }
.camera-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; }
.camera-actions .btn { min-height: 50px; width: 100%; max-width: 320px; } .camera-actions .btn[hidden] { display: none; }
.camera-dialog .small-note { margin-top: 12px; }
@media (max-width: 360px) { .camera-dialog { padding: 18px; } .camera-dialog-header h2 { font-size: 1.6rem; } }

/* ---- STUDIO_UI_R1_1: your own design — the fixed 4:5 crop editor + "Check this design" (the old Studio's inspiration dialog) ---- */
#cu-pick[hidden], #cu-editor[hidden] { display: none; }
#cu-editor { display: grid; gap: 10px; }
#cu-editor > p.small { margin: 0; }
.cu-stage { display: grid; place-items: center; }
#cu-canvas { width: min(100%, 320px); aspect-ratio: 4 / 5; height: auto; border-radius: 14px; background: #e5e9e3; touch-action: none; cursor: grab; display: block; border: 1px solid var(--line); }
.cu-tools { display: grid; gap: 8px; }
.cu-tools label { font-size: .8rem; color: #506674; }
.cu-tools input[type="range"] { width: 100%; accent-color: var(--brand); }
.cu-pan { display: flex; gap: 6px; flex-wrap: wrap; }
.cu-pan button { min-width: 44px; min-height: 40px; padding: 0 12px; border: 1px solid #9bb4c2; border-radius: 999px; background: transparent; color: var(--brand); font: 400 .85rem/1 'Segoe UI', Arial, sans-serif; cursor: pointer; }
.cu-pan button:disabled, #cu-check:disabled, #cu-use:disabled { opacity: .5; cursor: default; }
.cu-status { margin: 0; font-size: .9rem; line-height: 1.45; min-height: 1.3em; }
.cu-status[data-status="accepted"] { color: #18543c; } .cu-status[data-status="rejected"] { color: #873817; } .cu-status[data-status="unavailable"] { color: #173b60; }
.cu-status:empty, #cu-notice:empty, #cu-resolution:empty { display: none; }
#cu-notice { color: #173b60; }
.cu-links { display: flex; gap: 16px; flex-wrap: wrap; } .cu-links .text-button[hidden] { display: none; }
#cu-use[hidden], #cu-check[hidden] { display: none; }

/* ---- the share page ---- */
.share-page { text-align: center; }
.share-page .lead { margin: 10px auto 18px; max-width: 44ch; }
.share-frame { max-width: 420px; margin: 0 auto; border-radius: 18px; overflow: hidden; background: #e5e9e3; }
.share-frame img { width: 100%; height: auto; object-fit: contain; display: block; }      /* R1_1: the shared picture in its own shape too */
.share-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 18px 0 10px; }

/* ---- desktop ---- */
@media (min-width: 1024px) {
  .stepbar.guided { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; max-width: none; padding: 0; }
  .stepbar.guided li { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 10px 12px; }
  .stepbar.guided li .ic { width: 56px; height: 56px; } .stepbar.guided li .ic .ico { width: 26px; height: 26px; }
  .stepbar.guided .copy small { font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .stepbar.guided li:not(:last-child)::after { content: '→'; position: absolute; right: -26px; top: 50%; color: #94afbd; font: 300 1.6rem/1 'Segoe UI', Arial, sans-serif; transform: translateY(-50%); }
  .studio-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
  .studio-cats { display: grid; gap: 12px; position: sticky; top: calc(var(--head-h) + 16px); }
  #page-studio .studio-main .filter, #page-studio .custom.phone-only { display: none; }      /* (the id beats the phone rule #page-studio .filter { display: flex }) */
  .sections { gap: 30px; }
  .sec-cat .looks { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .sheet.modal { left: 50%; right: auto; top: 50%; bottom: auto; width: 820px; max-width: calc(100vw - 48px); max-height: 88vh; border-radius: 18px; transform: translate(-50%, -50%) scale(.96); opacity: 0; transition: transform var(--t-slow) var(--ease), opacity var(--t); }
  .sheet.modal.on { transform: translate(-50%, -50%); opacity: 1; }
  .sheet.modal.narrow { width: 480px; }
  .sheet.modal .modal-body { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 22px; align-items: start; padding-bottom: 18px; }
  .sheet.modal .look-hero.tall { aspect-ratio: 4 / 5; }
  .preparation-layout { grid-template-columns: minmax(0, 600px) minmax(0, 380px); justify-content: center; gap: 48px; }
  .upload-empty { padding: 48px 34px; }
  .photo-page .stepbar.guided.compact { margin: 18px auto 0; }
  .result-grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
  .result-frame { aspect-ratio: 4 / 3; }
  .result-frame.fit { max-height: calc(100vh - 220px); }      /* R1_1: a tall (portrait) picture stays on screen — the frame follows its shape up to this height */
  .result-frame.fit img { max-height: calc(100vh - 220px); }
  .result-actions { grid-template-columns: repeat(2, minmax(0, 220px)); justify-content: start; }      /* R1_2: two equal buttons on the desk too */
  .result-actions .btn { padding: 0 16px; }
  .share-pick { max-width: 448px; }
  .saved-grid { grid-template-columns: repeat(4, 1fr); }
  .share-frame { max-width: 480px; }
}
