/* dental.holiday — mobile-first stylesheet */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("../fonts/jakarta.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --sea: #0E2F44;
  --sea-2: #164D66;
  --teal: #12908E;
  --teal-2: #17A2A0;
  --teal-soft: #DDF2EF;
  --coral: #FF6B4A;
  --coral-2: #FF8E6E;
  --coral-ink: #C8401F;
  --coral-soft: #FFE6DD;
  --sun: #FFC35A;
  --sun-soft: #FFF1D3;
  --sand: #F8EFE4;
  --sand-2: #F0E2D0;
  --paper: #FFFAF4;
  --ink: #10222E;
  --muted: #5A6A74;
  --line: rgba(14, 47, 68, .12);
  --line-2: rgba(14, 47, 68, .2);
  --white: #fff;
  --ok: #157A55;
  --bad: #B93A22;
  --r: 22px;
  --r-lg: 32px;
  --shadow: 0 1px 2px rgba(14, 47, 68, .06), 0 12px 32px -12px rgba(14, 47, 68, .22);
  --shadow-lg: 0 2px 6px rgba(14, 47, 68, .06), 0 30px 60px -20px rgba(14, 47, 68, .35);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink);
  background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--sea-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral-ink); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 560; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--sea); font-optical-sizing: auto; }
h1 { font-size: clamp(2.5rem, 7.5vw + .6rem, 5.4rem); font-weight: 520; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4.5vw + .6rem, 3.4rem); letter-spacing: -.03em; }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }
em, .em { font-style: italic; color: var(--coral); font-weight: 480; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sun); color: var(--sea); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sea); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.mt { margin-top: 1.6em; }
.muted { color: var(--muted); }
.ico { width: 22px; height: 22px; flex: none; }
.ico-sm { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; }
.ico-lg { width: 30px; height: 30px; }

/* ---------- buttons */
.btn {
  --bg: var(--sea); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg); font: 650 1rem/1 var(--sans); letter-spacing: -.005em;
  text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 16px 30px -14px color-mix(in srgb, var(--bg) 90%, transparent); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .ico { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.btn:hover .ico:last-child { transform: translateX(3px); }
.btn-coral { --bg: var(--coral); --fg: #fff; }
.btn-coral:hover { background: #F75A37; }
.btn-sun { --bg: var(--sun); --fg: var(--sea); }
.btn-ghost { --bg: transparent; --fg: var(--sea); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--sea); }
.btn-light { --bg: #fff; --fg: var(--sea); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.link-quiet { color: var(--sea); font-weight: 600; text-decoration: none; font-size: .95rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; color: var(--sea); }
.link-arrow .ico { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- header */
.topbar { position: sticky; top: 0; z-index: 40; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.topbar.is-scrolled { background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 1px 0 var(--line); }
.topbar-in { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--sea); font: 640 1.22rem/1 var(--serif); letter-spacing: -.02em; }
.logo b { color: var(--coral); }
.logo:hover { color: var(--sea); }
.logo-mark { width: 34px; height: 34px; flex: none; transition: transform .6s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-12deg) scale(1.05); }
.nav { display: none; gap: 4px; margin-left: 18px; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--sea); text-decoration: none; font-weight: 560; font-size: .95rem; transition: background .2s; }
.nav a:hover { background: color-mix(in srgb, var(--sand-2) 70%, transparent); }
.nav a[aria-current] { background: var(--sea); color: #fff; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.topbar-actions .link-quiet { white-space: nowrap; }
@media (max-width: 380px) {
  /* narrow phones: keep logo, account link and menu button on one line */
  .topbar-in { gap: 10px; }
  .topbar .logo { font-size: 1.08rem; gap: 7px; }
  .topbar .logo-mark { width: 28px; height: 28px; }
  .topbar-actions { gap: 8px; }
  .topbar-actions .link-quiet { font-size: .9rem; }
  .menu-btn { width: 42px; height: 42px; }
}
.menu-btn { width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--white); color: var(--sea); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.menu-btn .ico { width: 22px; height: 22px; }
.hide-sm { display: none; }

/* ---------- mobile menu */
.menu { position: fixed; inset: 0; z-index: 60; background: var(--sea); color: #fff; display: flex; flex-direction: column; padding: 14px var(--gutter) calc(20px + var(--safe-b)); overflow: hidden; }
.menu[hidden] { display: none; }
.menu.is-open { animation: menuIn .45s var(--ease) both; }
@keyframes menuIn { from { clip-path: circle(0% at calc(100% - 44px) 34px); } to { clip-path: circle(150% at calc(100% - 44px) 34px); } }
.menu-sun { position: absolute; width: 520px; height: 520px; right: -220px; bottom: -200px; border-radius: 50%; background: radial-gradient(circle, var(--coral) 0 35%, color-mix(in srgb, var(--coral) 30%, transparent) 36% 52%, transparent 53%); opacity: .55; pointer-events: none; }
.menu-head { display: flex; justify-content: space-between; align-items: center; height: 54px; position: relative; }
.menu .logo { color: #fff; }
.menu .menu-btn { background: rgba(255,255,255,.1); color: #fff; box-shadow: none; }
.menu-links { display: flex; flex-direction: column; margin-top: 4vh; position: relative; }
.menu-links a { color: #fff; text-decoration: none; font: 500 clamp(2rem, 9vw, 2.8rem)/1.15 var(--serif); letter-spacing: -.03em; padding: 8px 0; display: flex; align-items: baseline; gap: 14px; opacity: 0; transform: translateY(18px); }
.menu.is-open .menu-links a { animation: rise .55s var(--ease) forwards; }
.menu.is-open .menu-links a:nth-child(2) { animation-delay: .05s; }
.menu.is-open .menu-links a:nth-child(3) { animation-delay: .1s; }
.menu.is-open .menu-links a:nth-child(4) { animation-delay: .15s; }
.menu.is-open .menu-links a:nth-child(5) { animation-delay: .2s; }
.menu.is-open .menu-links a:nth-child(6) { animation-delay: .25s; }
.menu-links small { font: 600 .8rem/1 var(--sans); color: var(--sun); letter-spacing: .05em; }
.menu-links a[aria-current] { color: var(--sun); }
.menu-foot { margin-top: auto; position: relative; display: grid; gap: 16px; }
.menu-row { display: flex; justify-content: space-between; }
.menu-row a { color: #fff; opacity: .85; font-weight: 600; text-decoration: none; padding: 8px 0; }
@keyframes rise { to { opacity: 1; transform: none; } }
body.menu-open { overflow: hidden; }

/* ---------- mobile dock (sticky CTA) */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 14px calc(10px + var(--safe-b)); background: linear-gradient(to top, var(--paper) 55%, transparent); transform: translateY(120%); transition: transform .45s var(--ease); pointer-events: none; }
.dock.is-on { transform: none; pointer-events: auto; }
.dock .btn { min-height: 56px; box-shadow: 0 14px 30px -10px rgba(255, 107, 74, .7); }
.dock .btn { white-space: nowrap; }
@media (max-width: 359px) { .dock-note { display: none; } }
.dock-note { font-weight: 500; font-size: .8rem; opacity: .9; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.4); }

/* ---------- typography helpers */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 .76rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 18px; }
.eyebrow span { width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.08rem, 1vw + .9rem, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 40ch; }
.section { padding: 84px 0; position: relative; }
.section-sand { background: var(--sand); }
.section-sea { background: var(--sea); color: #E7F1F4; }
.section-sea h2, .section-sea h3 { color: #fff; }
.section-sea .lead { color: #B7CDD6; }
.section-head { margin-bottom: 40px; max-width: 720px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head.center .lead { margin: 0 auto; }

/* ---------- hero */
.hero { position: relative; overflow: hidden; padding: 18px 0 0; margin-top: -68px; padding-top: 86px; background: linear-gradient(180deg, #FFF4EA 0%, #FFE9DA 46%, #FFDCC8 100%); }
.hero::before { content: ""; position: absolute; width: 140vw; max-width: 1100px; aspect-ratio: 1; left: 50%; top: 52%; transform: translateX(-30%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 195, 90, .95) 0 26%, rgba(255, 160, 100, .35) 27% 40%, rgba(255, 140, 100, .14) 41% 56%, transparent 57%); animation: sunrise 2.4s var(--ease) both; pointer-events: none; }
@keyframes sunrise { from { opacity: 0; transform: translate(-30%, 12%); } }
.hero-in { position: relative; display: grid; gap: 30px; padding-bottom: 30px; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; } /* room for the tails of g, y, p */
.hero h1 .line > span { display: inline-block; animation: lineUp .9s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .1s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .2s; }
@keyframes lineUp { from { transform: translateY(105%); } }
.hero .lead { color: #4E5B63; animation: fadeUp .9s .35s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; animation: fadeUp .9s .45s var(--ease) both; }
.hero-promises { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; font-weight: 600; font-size: .92rem; color: var(--sea); animation: fadeUp .9s .55s var(--ease) both; }
.hero-promises li { display: inline-flex; align-items: center; gap: 7px; }
.hero-promises .ico { width: 18px; height: 18px; color: var(--teal); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
.hero-waves { position: relative; height: 90px; margin-top: -40px; }
.hero-waves svg { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; }
.hero-waves .w1 { color: #F7B79E; opacity: .55; animation: drift 18s linear infinite; }
.hero-waves .w2 { color: var(--teal-2); opacity: .35; animation: drift 12s linear infinite reverse; }
.hero-waves .w3 { color: var(--paper); animation: drift 24s linear infinite; }
@keyframes drift { to { transform: translateX(-50%); } }

/* phone mockup */
.phone-stage { position: relative; display: grid; place-items: center; padding: 10px 0 20px; animation: fadeUp 1s .3s var(--ease) both; }
.phone { position: relative; width: min(330px, 86vw); border-radius: 46px; padding: 12px; background: #0B1C27; box-shadow: var(--shadow-lg), inset 0 0 0 2px #24414F; transform: rotate(-3deg); }
.phone-screen { position: relative; border-radius: 36px; overflow: hidden; background: linear-gradient(180deg, #FFFDF9, #FFF5EC); height: 560px; padding: 44px 14px 16px; }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; border-radius: 20px; background: #0B1C27; }
.phone-top { display: flex; justify-content: space-between; align-items: center; font: 650 .74rem/1 var(--sans); color: var(--muted); margin-bottom: 10px; }
.phone-top .who { display: inline-flex; align-items: center; gap: 6px; color: var(--sea); }
.phone-top .who .ico { width: 16px; height: 16px; color: var(--coral); }
.req-card { background: var(--white); border-radius: 20px; padding: 14px; box-shadow: 0 6px 18px -10px rgba(14,47,68,.4); }
.req-card .tag { display: inline-block; font: 700 .64rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); background: var(--teal-soft); padding: 5px 8px; border-radius: 6px; }
.req-card h4 { font: 600 1.06rem/1.25 var(--serif); margin: 8px 0 6px; color: var(--sea); }
.req-card p { font-size: .78rem; line-height: 1.45; color: var(--muted); margin: 0 0 8px; }
.req-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.req-meta span { font-size: .68rem; font-weight: 650; background: var(--sand); color: var(--sea); padding: 4px 8px; border-radius: 999px; }
.replies-label { font: 700 .66rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 16px 4px 8px; display: flex; justify-content: space-between; }
.replies-label b { color: var(--coral); }
.reply { display: flex; gap: 10px; align-items: flex-start; background: var(--white); border-radius: 16px; padding: 10px 12px; margin-bottom: 8px; box-shadow: 0 4px 14px -10px rgba(14,47,68,.5); opacity: 0; transform: translateY(14px) scale(.97); animation: replyIn 14s var(--ease) infinite; }
.reply:nth-of-type(2) { animation-delay: 1.4s; }
.reply:nth-of-type(3) { animation-delay: 2.8s; }
.reply:nth-of-type(4) { animation-delay: 4.2s; }
@keyframes replyIn {
  0% { opacity: 0; transform: translateY(14px) scale(.97); }
  5%, 88% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: translateY(-6px); }
}
.avatar { width: 34px; height: 34px; border-radius: 12px; flex: none; display: grid; place-items: center; font: 700 .8rem/1 var(--sans); color: #fff; }
.av1 { background: var(--teal-2); } .av2 { background: var(--coral); } .av3 { background: var(--sea-2); } .av4 { background: #C9962F; }
.reply strong { display: block; font-size: .78rem; color: var(--sea); }
.reply span { display: block; font-size: .72rem; color: var(--muted); line-height: 1.35; }
.reply .price { margin-left: auto; text-align: right; font: 700 .8rem/1.2 var(--sans); color: var(--sea); white-space: nowrap; }
.reply .price small { display: block; font-weight: 500; font-size: .64rem; color: var(--muted); }
.float-chip { position: absolute; display: flex; align-items: center; gap: 8px; background: var(--white); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); font: 650 .82rem/1.2 var(--sans); color: var(--sea); animation: bob 6s ease-in-out infinite; }
.float-chip .ico { color: var(--teal); }
.float-chip.c1 { bottom: 30%; left: -6px; }
.float-chip.c2 { bottom: 6%; right: -4px; animation-delay: -3s; }
.float-chip.c2 .ico { color: var(--coral); }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--paper); padding: 16px 0; }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 12px; font: 500 1.2rem/1 var(--serif); color: var(--sea); white-space: nowrap; font-style: italic; }
.marquee span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); margin-left: 28px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- promise cards */
.promise-grid { display: grid; gap: 14px; }
.promise { position: relative; padding: 26px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.promise .ico-wrap { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 18px; }
.promise .ico-wrap .ico { width: 28px; height: 28px; }
.promise:nth-child(1) .ico-wrap { background: var(--coral-soft); color: var(--coral-ink); }
.promise:nth-child(2) .ico-wrap { background: var(--teal-soft); color: var(--teal); }
.promise:nth-child(3) .ico-wrap { background: var(--sun-soft); color: #A26C08; }
.promise h3 { font-size: 1.45rem; margin-bottom: 8px; }
.promise p { margin: 0; color: var(--muted); }

/* ---------- steps */
.steps { display: grid; gap: 16px; counter-reset: s; padding: 0; margin: 0; list-style: none; }
.step { position: relative; padding: 28px 24px 26px; border-radius: var(--r-lg); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); counter-increment: s; }
.step::before { content: "0" counter(s); display: block; font: 500 3rem/1 var(--serif); color: var(--sun); margin-bottom: 14px; font-style: italic; }
.step h3 { font-size: 1.4rem; }
.step p { margin: 0; color: #B7CDD6; }
.section:not(.section-sea) .step { background: var(--white); border-color: var(--line); box-shadow: var(--shadow); }
.section:not(.section-sea) .step p { color: var(--muted); }
.section:not(.section-sea) .step::before { color: var(--coral); }

/* ---------- horizontal scrollers */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--gutter) 24px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; scroll-margin-left: var(--gutter); }
.scroller-nav { display: none; gap: 8px; }
.scroller-nav button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--white); color: var(--sea); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; display: grid; place-items: center; }
.scroller-nav button:hover { background: var(--sea); color: #fff; }
/* phones: the rows become a plain list, one card under the other */
@media (max-width: 639px) {
  .scroller { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); overflow: visible; scroll-snap-type: none; margin: 0; padding: 6px 0 8px; }
  .scroller .t-card { min-height: 0; }
  .scroller.dest .d-card, .card-grid .d-card { aspect-ratio: 4 / 3; }
}
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.row-head .section-head { margin: 0; }

/* treatment cards */
.t-card { position: relative; display: flex; flex-direction: column; min-height: 330px; padding: 24px; border-radius: var(--r-lg); background: var(--white); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.t-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.t-card::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -60px; top: -60px; background: var(--sun-soft); transition: transform .5s var(--ease); }
.t-card:nth-child(3n+2)::after { background: var(--teal-soft); }
.t-card:nth-child(3n)::after { background: var(--coral-soft); }
.t-card:hover::after { transform: scale(1.25); }
.t-art { width: 76px; height: 76px; position: relative; z-index: 1; margin-bottom: auto; transition: transform .5s var(--ease); }
.t-card:hover .t-art { transform: rotate(-8deg) scale(1.08); }
.t-fill { fill: #fff; stroke: var(--sea); stroke-width: 2.4; stroke-linejoin: round; }
.t-accent { fill: var(--coral); }
.t-accent-line { stroke: var(--coral); stroke-width: 3; fill: none; stroke-linecap: round; }
.t-gum { fill: #FFB3A3; }
.t-shine { stroke: var(--teal-2); stroke-width: 2.6; fill: none; stroke-linecap: round; }
.t-card h3 { font-size: 1.55rem; margin: 28px 0 6px; position: relative; }
.t-card p { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.t-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 650 .78rem/1 var(--sans); padding: 7px 11px; border-radius: 999px; background: var(--sand); color: var(--sea); }
.chip .ico { width: 15px; height: 15px; }
.chip-teal { background: var(--teal-soft); color: #0B6564; }
.chip-coral { background: var(--coral-soft); color: var(--coral-ink); }
.chip-sun { background: var(--sun-soft); color: #7C5306; }

/* destination postcards */
.d-card { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: #fff; box-shadow: var(--shadow); aspect-ratio: 4 / 5; isolation: isolate; transition: transform .4s var(--ease), box-shadow .4s; }
.d-card:hover { transform: translateY(-6px) rotate(-.5deg); box-shadow: var(--shadow-lg); color: #fff; }
.d-card .dest-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; transition: transform 1.2s var(--ease); }
.d-card:hover .dest-art { transform: scale(1.06); }
.d-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(10, 30, 44, .82) 100%); }
.d-card .d-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; }
.d-card .d-tag { display: inline-block; font: 700 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; background: rgba(255,255,255,.9); color: var(--sea); padding: 6px 10px; border-radius: 999px; margin-bottom: 10px; }
.d-card h3 { color: #fff; font-size: 1.9rem; margin: 0 0 4px; }
.d-card p { margin: 0; font-size: .92rem; opacity: .9; }
.stamp { position: absolute; top: 16px; right: 16px; width: 64px; height: 64px; border-radius: 50%; border: 2px dashed rgba(14,47,68,.45); display: grid; place-items: center; text-align: center; font: 700 .55rem/1.15 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: rgba(14,47,68,.7); transform: rotate(12deg); }

/* ---------- comparison */
.vs { display: grid; gap: 14px; }
.vs-col { border-radius: var(--r-lg); padding: 26px; }
.vs-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; }
.vs-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.vs-col li { display: flex; gap: 12px; align-items: flex-start; }
.vs-col li .ico { width: 22px; height: 22px; margin-top: 2px; }
.vs-them { background: var(--white); border: 1px solid var(--line); color: var(--muted); }
.vs-them .ico { color: var(--bad); }
.vs-us { background: var(--sea); color: #E3EEF2; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.vs-us::before { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; right: -110px; top: -120px; background: radial-gradient(circle, var(--coral) 0 40%, transparent 41%); opacity: .9; }
.vs-us ul { position: relative; }
.vs-us h3 { color: #fff; position: relative; }
.vs-us .ico { color: var(--sun); }

/* ---------- quote sample */
.quote-sample { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 22px; position: relative; }
.quote-sample .qs-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.quote-sample .qs-head strong { display: block; color: var(--sea); }
.quote-sample .qs-head span { font-size: .82rem; color: var(--muted); }
.qs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.qs-grid div { background: var(--sand); border-radius: 14px; padding: 12px; }
.qs-grid small { display: block; font: 700 .64rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.qs-grid b { font: 600 1rem/1.25 var(--serif); color: var(--sea); }
.quote-sample p { font-size: .92rem; color: var(--muted); margin: 0; }
.example-badge { position: absolute; top: -12px; right: 18px; background: var(--sun); color: var(--sea); font: 700 .7rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; transform: rotate(3deg); }

.split { display: grid; gap: 40px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; }
.checks .ico { color: var(--teal); width: 24px; height: 24px; margin-top: 1px; }
.checks strong { color: var(--sea); }

/* ---------- planner teaser & planner */
.planner-teaser { position: relative; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(135deg, #12908E, #0E2F44); color: #fff; padding: 36px 26px; }
.planner-teaser h2 { color: #fff; }
.planner-teaser p { color: #CFE6E8; max-width: 46ch; }
.planner-teaser .sun-big { position: absolute; width: 300px; height: 300px; right: -100px; bottom: -120px; border-radius: 50%; background: radial-gradient(circle, var(--sun) 0 45%, rgba(255,195,90,.25) 46% 62%, transparent 63%); }

.planner { display: grid; gap: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line-2); font-weight: 600; font-size: .95rem; color: var(--sea); cursor: pointer; transition: all .2s var(--ease); user-select: none; }
.chips label:hover { box-shadow: inset 0 0 0 1.5px var(--sea); }
.chips input:checked + label { background: var(--sea); color: #fff; box-shadow: none; transform: scale(1.02); }
.chips input:focus-visible + label { outline: 3px solid var(--coral); outline-offset: 2px; }
.plan-out { border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-lg); padding: 24px; }
.plan-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; }
.plan-summary div { background: var(--sand); border-radius: 16px; padding: 12px; text-align: center; }
.plan-summary b { display: block; font: 600 1.5rem/1.1 var(--serif); color: var(--sea); }
.plan-summary small { font-size: .74rem; color: var(--muted); font-weight: 600; }
.trip { margin-bottom: 18px; }
.trip h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.trip h3 .ico { color: var(--coral); }
.days { display: grid; gap: 6px; padding: 0; margin: 0; list-style: none; }
.days li { display: grid; grid-template-columns: 62px 1fr; gap: 12px; align-items: start; padding: 10px 12px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); opacity: 0; animation: rise .45s var(--ease) forwards; }
.days li b { font: 700 .74rem/1.4 var(--sans); color: var(--teal); letter-spacing: .04em; text-transform: uppercase; }
.days li.dly1 { animation-delay: 0.04s; }
.days li.dly2 { animation-delay: 0.08s; }
.days li.dly3 { animation-delay: 0.12s; }
.days li.dly4 { animation-delay: 0.16s; }
.days li.dly5 { animation-delay: 0.20s; }
.days li.dly6 { animation-delay: 0.24s; }
.days li.dly7 { animation-delay: 0.28s; }
.days li.dly8 { animation-delay: 0.32s; }
.days li.dly9 { animation-delay: 0.36s; }
.days li.dly10 { animation-delay: 0.40s; }
.days li.dly11 { animation-delay: 0.44s; }
.days li.dly12 { animation-delay: 0.48s; }
.days li.dly13 { animation-delay: 0.52s; }
.days li.dly14 { animation-delay: 0.56s; }
.days li.k-dental { border-color: color-mix(in srgb, var(--coral) 40%, transparent); background: color-mix(in srgb, var(--coral-soft) 45%, white); }
.days li.k-beach { border-color: color-mix(in srgb, var(--teal) 35%, transparent); background: color-mix(in srgb, var(--teal-soft) 60%, white); }
.gap-note { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--sun-soft); color: #6B4A06; font-weight: 600; font-size: .92rem; margin: 6px 0 18px; }
.rules-grid { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.rule { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.rule .ico { color: var(--sea-2); margin-top: 2px; }
.rule strong { display: block; font-size: .86rem; color: var(--sea); }
.rule span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.35; }
.plan-foot { font-size: .82rem; color: var(--muted); margin-top: 16px; }

/* ---------- article / content pages */
.page-hero { position: relative; overflow: hidden; margin-top: -68px; padding: 112px 0 56px; background: linear-gradient(180deg, #FFF4EA, var(--sand)); }
.page-hero::after { content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%; right: -160px; top: -120px; background: radial-gradient(circle, rgba(255,195,90,.7) 0 35%, rgba(255,195,90,.18) 36% 55%, transparent 56%); pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.3rem, 6vw + .5rem, 4.4rem); max-width: 16ch; }
.page-hero .lead { max-width: 52ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--coral-ink); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.prose { font-size: 1.06rem; }
.prose h2 { font-size: clamp(1.6rem, 2.5vw + .8rem, 2.3rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--coral); font-weight: 700; }
.prose .flags, .prose .greens, .prose .rules { list-style: none; padding: 0; }
.prose .flags li, .prose .greens li, .prose .rules li { position: relative; padding: 12px 14px 12px 44px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.prose .flags li::before, .prose .greens li::before, .prose .rules li::before { position: absolute; left: 14px; top: 12px; font-weight: 800; }
.prose .flags li::before { content: "!"; color: var(--bad); width: 20px; text-align: center; }
.prose .greens li::before { content: "✓"; color: var(--ok); }
.prose .rules li::before { content: "•"; color: var(--coral); font-size: 1.4rem; line-height: 1; }
.compare-mini { display: grid; gap: 12px; margin: 1.4em 0; }
.compare-mini > div { border-radius: var(--r); padding: 20px; background: var(--white); border: 1px solid var(--line); }
.compare-mini > div:last-child { background: var(--coral-soft); border-color: transparent; }
.compare-mini h3 { margin: 0 0 8px; }
.compare-mini ul { margin: 0; }
.tip-box, .note-soft { border-radius: var(--r); padding: 18px 20px; background: var(--teal-soft); color: #0B4F4E; margin: 1.4em 0; }
.note-soft { background: var(--sun-soft); color: #6B4A06; font-size: .95rem; }
.article-layout { display: grid; gap: 40px; }
.aside-card { border-radius: var(--r-lg); padding: 24px; background: var(--white); box-shadow: var(--shadow); }
.aside-card h3 { font-size: 1.25rem; }
.aside-card ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.aside-card li { display: flex; gap: 10px; font-size: .95rem; }
.aside-card li .ico { color: var(--teal); width: 20px; height: 20px; margin-top: 2px; }
.sticky-aside { position: sticky; top: 90px; }

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--coral), var(--teal-2)); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 22px 40px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--coral); }
.timeline li:nth-child(even)::before { border-color: var(--teal-2); }
.timeline b { display: block; font: 700 .78rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--teal); margin-bottom: 2px; }
.timeline p { margin: 0; }

.card-grid { display: grid; gap: 14px; }
.g-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s; }
.g-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.g-card .ico-wrap { width: 50px; height: 50px; border-radius: 16px; background: var(--coral-soft); color: var(--coral-ink); display: grid; place-items: center; }
.g-card:nth-child(2n) .ico-wrap { background: var(--teal-soft); color: var(--teal); }
.g-card h3 { margin: 6px 0 0; font-size: 1.4rem; }
.g-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.g-card .link-arrow { margin-top: auto; padding-top: 8px; }

.between { display: grid; gap: 12px; }
.between > div { padding: 20px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.between h3 { font-size: 1.15rem; margin-bottom: 6px; }
.between p { margin: 0; color: var(--muted); font-size: .95rem; }
.info-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.info-strip div { background: var(--white); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); }
.info-strip small { display: block; font: 700 .68rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.info-strip b { font: 600 1rem/1.3 var(--serif); color: var(--sea); }
.dest-hero-art { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 11; }
.dest-hero-art .dest-art { width: 100%; height: 100%; }

/* ---------- FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r); background: var(--white); border: 1px solid var(--line); transition: box-shadow .25s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; font: 600 1.1rem/1.35 var(--serif); color: var(--sea); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E2F44' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .3s var(--ease), background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--coral-soft); }
.faq .faq-a { padding: 0 22px 20px; color: var(--muted); }
.faq .faq-a p:last-child { margin: 0; }

/* ---------- CTA band */
.cta-band { padding: 30px 0 90px; }
.cta-band-in { position: relative; overflow: hidden; text-align: center; padding: 56px 24px; border-radius: 40px; background: linear-gradient(180deg, #FFE3D3, #FFC9B0); }
.cta-band-in > * { position: relative; }
.cta-sun { position: absolute !important; width: 420px; height: 420px; left: 50%; bottom: -260px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(255,195,90,.95) 0 50%, rgba(255,195,90,.3) 51% 66%, transparent 67%); }
.cta-band h2 { max-width: 14ch; margin: 0 auto 12px; }
.cta-band p { max-width: 46ch; margin: 0 auto 26px; color: #5C4A44; }
.cta-band .cta-small { margin: 18px auto 0; font-size: .86rem; font-weight: 600; color: var(--sea); }

/* ---------- footer */
.footer { position: relative; color: #C6D6DD; margin-top: 40px; }
.footer-wave { width: 100%; height: 50px; color: var(--sea); display: block; margin-bottom: -1px; }
.footer-in { background: var(--sea); padding: 40px 0 calc(110px + var(--safe-b)); }
.footer-grid { display: grid; gap: 34px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { max-width: 34ch; margin: 14px 0 18px; }
.logo-light { color: #fff; }
.logo-light:hover { color: #fff; }
.footer h3 { font: 700 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sun); margin-bottom: 14px; }
.footer a:not(.btn):not(.logo) { display: block; color: #DCE7EB; text-decoration: none; padding: 5px 0; font-size: .95rem; }
.footer a:not(.btn):not(.logo):hover { color: #fff; text-decoration: underline; }
.footer-note { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .84rem; color: #94ADB8; }

/* ---------- forms */
.form-card { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 26px 22px; }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field > label, .field > .label { font-weight: 650; color: var(--sea); font-size: .98rem; }
.field .hint { font-size: .86rem; color: var(--muted); margin: -2px 0 0; }
.input, textarea.input, select.input {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line-2);
  background: var(--paper); font: 500 1rem/1.4 var(--sans); color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
textarea.input { min-height: 130px; resize: vertical; }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E2F44' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; padding-right: 44px; }
.input:focus { outline: none; border-color: var(--sea); background: #fff; box-shadow: 0 0 0 4px rgba(23, 162, 160, .18); }
.input::placeholder { color: #98A5AC; }
.row-2 { display: grid; gap: 0 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--coral); margin: 1px 0 0; flex: none; }
.form-error { border-radius: 14px; padding: 14px 16px; background: #FDE7E2; color: var(--bad); font-weight: 600; margin-bottom: 18px; }
.flash { margin: 16px 0 0; border-radius: 14px; padding: 14px 16px; font-weight: 600; }
.flash-ok { background: var(--teal-soft); color: #0B4F4E; }
.flash-bad { background: #FDE7E2; color: var(--bad); }

/* wizard */
.wizard-page { min-height: 100vh; background: linear-gradient(180deg, #FFF4EA, var(--sand)); }
.wizard { max-width: 640px; margin: 0 auto; padding: 20px var(--gutter) 120px; }
.progress { position: sticky; top: 68px; z-index: 5; padding: 10px 0 14px; background: linear-gradient(#FFF1E6 70%, transparent); }
.progress-bar { height: 6px; border-radius: 6px; background: rgba(14,47,68,.1); overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 20%; border-radius: 6px; background: linear-gradient(90deg, var(--coral), var(--sun)); transition: width .5s var(--ease); }
.progress-meta { display: flex; justify-content: space-between; font: 650 .8rem/1 var(--sans); color: var(--muted); margin-top: 10px; }
.wstep { animation: stepIn .5s var(--ease) both; }
.wstep[hidden] { display: none; }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } }
.wstep h1 { font-size: clamp(2rem, 6vw, 2.9rem); margin: 10px 0 10px; }
.wstep > p.muted { margin-bottom: 26px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tiles input { position: absolute; opacity: 0; pointer-events: none; }
.tiles label { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 120px; padding: 16px; border-radius: 22px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow); cursor: pointer; font-weight: 650; color: var(--sea); line-height: 1.25; transition: transform .2s var(--ease), box-shadow .2s; }
.tiles label .t-art { width: 44px; height: 44px; }
.tiles label:hover { transform: translateY(-2px); }
.tiles input:checked + label { box-shadow: inset 0 0 0 2.5px var(--coral), 0 14px 30px -14px rgba(255,107,74,.6); }
.tiles input:checked + label::after { content: ""; position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 16px no-repeat; }
.tiles input:focus-visible + label { outline: 3px solid var(--coral); outline-offset: 2px; }
.wizard-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: 10px; padding: 12px 14px calc(12px + var(--safe-b)); background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.wizard-nav .btn { flex: 1; }
.wizard-nav .btn-ghost { flex: 0 0 auto; padding: 0 20px; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.suggest button { border: 0; background: var(--white); box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 999px; padding: 9px 13px; font: 600 .84rem/1.2 var(--sans); color: var(--sea); cursor: pointer; text-align: left; }
.suggest button:hover { background: var(--sea); color: #fff; }
.suggest button.used { opacity: .45; pointer-events: none; }
.anon-box { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 20px; background: var(--sea); color: #fff; margin-bottom: 22px; }
.anon-box .avatar { width: 48px; height: 48px; border-radius: 16px; background: var(--coral); }
.anon-box .avatar .ico { width: 26px; height: 26px; }
.anon-box small { display: block; color: #A9C3CD; font-size: .78rem; }
.anon-box strong { font: 600 1.3rem/1.2 var(--serif); }
.anon-box button { margin-left: auto; border: 0; background: rgba(255,255,255,.12); color: #fff; border-radius: 999px; padding: 8px 12px; font-weight: 600; cursor: pointer; }
.code-box { font: 700 clamp(1.3rem, 5vw, 1.8rem)/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; text-align: center; padding: 22px 14px; border-radius: 20px; background: var(--sun-soft); color: var(--sea); border: 2px dashed #E3B357; word-break: break-all; }
.review-list { display: grid; gap: 2px; border-radius: 18px; overflow: hidden; margin-bottom: 20px; }
.review-list div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 12px 14px; background: var(--white); font-size: .92rem; }
.review-list dt { font-weight: 700; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.review-list dd { margin: 0; color: var(--sea); white-space: pre-line; }

/* ---------- dashboards */
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 30px 0 24px; }
.dash-head h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0; }
.who-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow); font-weight: 650; color: var(--sea); font-size: .92rem; }
.who-pill .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--coral); }
.who-pill .avatar .ico { width: 16px; height: 16px; }
.list { display: grid; gap: 12px; }
.item { display: block; position: relative; padding: 20px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .25s var(--ease), box-shadow .25s; }
.item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.item h3 { font-size: 1.25rem; margin: 8px 0 6px; }
.item p { color: var(--muted); font-size: .94rem; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font: 700 .7rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; }
.badge-open { background: var(--teal-soft); color: #0B6564; }
.badge-closed { background: #EDEFF0; color: var(--muted); }
.badge-new { background: var(--coral); color: #fff; }
.badge-short { background: var(--sun-soft); color: #7C5306; }
.empty { text-align: center; padding: 50px 20px; border-radius: var(--r-lg); background: var(--white); border: 2px dashed var(--line-2); }
.empty .ico { width: 44px; height: 44px; margin: 0 auto 12px; color: var(--coral); }
.req-detail { border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); padding: 24px; margin-bottom: 26px; }
.req-detail h2 { font-size: 1.6rem; }
.req-detail .label { font: 700 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
.req-detail .val { white-space: pre-line; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.thread { border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden; }
.thread-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.thread-head strong { display: block; color: var(--sea); font-size: 1.02rem; }
.thread-head span { font-size: .82rem; color: var(--muted); }
.thread-head form { margin-left: auto; display: flex; gap: 6px; }
.flag-btn { border: 0; border-radius: 999px; padding: 8px 12px; font: 650 .8rem/1 var(--sans); cursor: pointer; background: var(--sand); color: var(--sea); }
.flag-btn.on { background: var(--sun); }
.flag-btn.no.on { background: #EDEFF0; color: var(--muted); }
.msgs { padding: 16px; display: grid; gap: 10px; background: linear-gradient(180deg, #FFFCF8, #FFF7EF); }
.msg { max-width: 88%; padding: 12px 14px; border-radius: 18px; font-size: .96rem; line-height: 1.5; }
.msg time { display: block; font-size: .72rem; color: var(--muted); margin-top: 6px; }
.msg-them { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg-me { background: var(--sea); color: #fff; margin-left: auto; border-bottom-right-radius: 6px; }
.msg-me time { color: #9FB9C4; }
.quote-box { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.quote-box div { background: var(--sand); border-radius: 12px; padding: 10px; }
.quote-box div.full { grid-column: 1 / -1; }
.quote-box small { display: block; font: 700 .62rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.quote-box b { font: 600 .98rem/1.3 var(--serif); color: var(--sea); white-space: pre-line; }
.reply-form { padding: 14px 16px 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.reply-form textarea { min-height: 90px; }
.reply-form .btn { justify-self: end; }
.notice { display: flex; gap: 12px; padding: 16px; border-radius: 18px; background: var(--teal-soft); color: #0B4F4E; font-size: .93rem; margin-bottom: 20px; }
.notice .ico { flex: none; margin-top: 2px; }
.notice-sun { background: var(--sun-soft); color: #6B4A06; }

/* ---------- reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal-stagger.is-in > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-in > *:nth-child(2) { transition-delay: .08s; }
.js .reveal-stagger.is-in > *:nth-child(3) { transition-delay: .16s; }
.js .reveal-stagger.is-in > *:nth-child(4) { transition-delay: .24s; }
.js .reveal-stagger.is-in > *:nth-child(5) { transition-delay: .32s; }
.js .reveal-stagger.is-in > *:nth-child(6) { transition-delay: .4s; }

/* ---------- phone compaction */
@media (max-width: 639px) {
  .section { padding: 64px 0; }
  .hero-actions .btn-coral { flex: 1 1 100%; }
  .hero-actions .btn-ghost { flex: 1 1 100%; min-height: 50px; }
  .promise { display: grid; grid-template-columns: 54px 1fr; gap: 0 16px; padding: 20px; }
  .promise .ico-wrap { margin: 0; grid-row: span 2; }
  .promise h3 { font-size: 1.25rem; margin: 4px 0 4px; }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 0 10px; padding: 20px; }
  .step::before { grid-row: span 2; font-size: 2.4rem; margin: 0; }
  .step h3 { font-size: 1.2rem; margin: 6px 0 4px; }
  .t-card { min-height: 300px; }
}

/* ---------- larger screens */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .promise-grid, .card-grid, .between { grid-template-columns: 1fr 1fr; }
  .scroller { grid-auto-columns: 46%; }
  .row-2 { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .compare-mini { grid-template-columns: 1fr 1fr; }
  .rules-grid { grid-template-columns: repeat(3, 1fr); }
  .info-strip { grid-template-columns: repeat(4, 1fr); }
  .form-card { padding: 34px; }
}
@media (min-width: 960px) {
  body { font-size: 17.5px; }
  .nav, .hide-sm { display: flex; }
  .menu-btn { display: none; }
  .dock { display: none; }
  .hero-in { grid-template-columns: 1.08fr .92fr; align-items: center; padding: 40px var(--gutter) 40px; }
  .hero .lead { max-width: 36ch; }
  .phone-screen { height: 600px; }
  .float-chip.c1 { left: -30px; }
  .float-chip.c2 { right: -20px; }
  .section { padding: 120px 0; }
  .promise-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  /* wide screens: rows become grids so every card shows (6 treatments = 3 + 3, destinations = 4 in a row) */
  .scroller { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 6px 0 24px; overflow: visible; scroll-snap-type: none; }
  .scroller.dest { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .scroller.dest:not(:has(> :nth-child(4))) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vs { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr 1fr; gap: 70px; }
  .planner { grid-template-columns: 380px 1fr; align-items: start; }
  .planner-controls { position: sticky; top: 90px; }
  .planner-teaser { padding: 56px; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 70px; }
  .card-grid.three { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-in { padding-bottom: 50px; }
  .wizard-nav { position: static; background: none; border: 0; padding: 26px 0 0; backdrop-filter: none; }
  .wizard { padding-bottom: 80px; }
  .cta-band-in { padding: 90px 40px; }
  .dash-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reply { opacity: 1; transform: none; }
  .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; }
}
.t-art-xl { width: 280px; height: 280px; margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(14,47,68,.18)); animation: bob 7s ease-in-out infinite; }
fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; color: var(--sea); font-weight: 650; }
.section-sea .checks .ico { color: var(--coral-2); }
.section-sea .checks strong { color: #fff; }
html:not(.js) [data-next], html:not(.js) [data-back] { display: none; }
.tabs .chip { text-decoration: none; min-height: 40px; padding: 0 16px; }
.tabs .chip { flex: none; white-space: nowrap; }
.msg:has(.quote-box) { max-width: 100%; }

/* ---------- structured quote (patient + clinic view) */
.msg.msg-quote { max-width: 100%; background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.msg.msg-quote time { color: var(--muted); }
.qcard { margin: -2px -4px 14px; border-radius: 20px; background: linear-gradient(180deg, #FFFDF9, var(--white)); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.qcard-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 0; flex-wrap: wrap; }
.qcard-head small { color: var(--muted); font-size: .78rem; }
.badge-pre { background: var(--sun-soft); color: #7C5306; }
.qcard-total { padding: 12px 16px 16px; border-bottom: 1px solid var(--line); }
.qcard-total small { display: block; font: 700 .66rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.qcard-total strong { display: block; font: 560 clamp(2rem, 6vw, 2.6rem)/1 var(--serif); letter-spacing: -.03em; color: var(--sea); }
.qcard-total span { display: block; margin-top: 6px; font-size: .86rem; color: var(--muted); }
.qcard-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); margin: 0; border-bottom: 1px solid var(--line); }
.qcard-facts div { padding: 12px 16px; border-right: 1px solid var(--line); }
.qcard-facts div:last-child { border-right: 0; }
.qcard-facts dt { font: 700 .62rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.qcard-facts dd { margin: 0; font: 600 1.08rem/1.2 var(--serif); color: var(--sea); }
.qcard-sec { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.qcard-sec h4 { font: 700 .66rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.qcard-sec h4:not(:first-child) { margin-top: 14px; }
.qcard-sec p { margin: 0; font-size: .95rem; }
.qcard-dentist { display: flex; gap: 8px; margin-top: 10px !important; color: var(--sea); font-weight: 600; }
.qcard-dentist .ico { color: var(--sun); flex: none; margin-top: 3px; }
.qlines { list-style: none; margin: 0; padding: 0; }
.qlines li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px dashed var(--line-2); }
.qlines li:first-child { border-top: 0; padding-top: 0; }
.qlines li > div:first-child span:not(.cond-tag) { display: block; font-size: .84rem; color: var(--muted); }
.qlines b { color: var(--sea); font-weight: 650; font-size: .95rem; }
.qlines .is-cond { opacity: .78; }
.qprice { text-align: right; flex: none; }
.qprice b { display: block; font: 600 1.05rem/1.2 var(--serif); }
.qprice small { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.cond-tag { display: inline-block; font: 700 .6rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 4px 7px; border-radius: 999px; background: var(--sand-2); color: var(--sea); vertical-align: 2px; }
.qinc { display: flex; flex-wrap: wrap; gap: 6px; }
.qinc span { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; background: var(--teal-soft); color: #0B4F4E; font-size: .84rem; font-weight: 600; }
.qcard-note { display: flex; gap: 8px; margin: 0; padding: 14px 16px; background: var(--sun-soft); color: #6B4A06; font-size: .84rem; line-height: 1.45; }
.qcard-note .ico { flex: none; margin-top: 2px; }

/* ---------- clinic contact card + save buttons */
.contact-card { padding: 12px 16px; border-bottom: 1px solid var(--line); background: #FCFAF6; }
.req-detail .contact-card { padding: 0; border: 0; background: none; margin-bottom: 12px; }
.contact-card p { display: flex; gap: 6px; margin: 10px 0 0; font-size: .9rem; }
.contact-card p .ico { flex: none; margin-top: 3px; color: var(--coral); }
.contact-btns, .save-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cbtn { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--sea); font: 650 .9rem/1 var(--sans); text-decoration: none; cursor: pointer; }
.cbtn:hover { box-shadow: inset 0 0 0 1.5px var(--sea); color: var(--sea); }
.save-box { display: grid; gap: 14px; margin: 18px 0 8px; }
.save-box small { display: block; font: 700 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.save-box strong { font: 600 1.4rem/1.2 var(--serif); color: var(--sea); }
.save-title { font-size: 1.25rem; margin: 22px 0 12px; }
.save-btns .cbtn { flex: 1 1 100%; justify-content: center; white-space: nowrap; }
.save-status { min-height: 1.4em; margin: 8px 0 14px; font-size: .9rem; color: var(--ok); font-weight: 600; }

/* ---------- clinic quote form */
.qsec { margin: 0; padding: 22px 0 6px; border-top: 1px solid var(--line); }
.qsec legend { display: flex; align-items: center; gap: 10px; font: 560 1.25rem/1.2 var(--serif); color: var(--sea); margin-bottom: 14px; padding: 0; float: left; width: 100%; }
.qsec legend + *, .qsec legend + [hidden] + * { clear: both; }
.qsec legend span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sea); color: #fff; font: 700 .8rem/1 var(--sans); }
.qform .label { font-weight: 650; color: var(--sea); font-size: .98rem; }
.qlines-edit { display: grid; gap: 12px; margin-bottom: 12px; }
.qline { border-radius: 18px; background: var(--sand); padding: 12px; }
.qline-main { display: flex; gap: 8px; align-items: center; }
.qline-main select { flex: 1; font-weight: 650; }
.qline-x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--white); color: var(--muted); cursor: pointer; display: grid; place-items: center; }
html:not(.js) .qline-x { display: none; }
.qline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.qline-grid label small { display: block; font-size: .76rem; font-weight: 650; color: var(--muted); margin-bottom: 4px; }
.qline-grid .qline-detail { grid-column: 1 / -1; }
.qline-grid .input { min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
.qline-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.qline-foot .check { font-size: .84rem; }
.qline-foot output { font: 600 1.05rem/1 var(--serif); color: var(--sea); white-space: nowrap; }
.qtotal { display: flex; gap: 10px; margin-top: 14px; }
.qtotal > div { flex: 1; border-radius: 16px; padding: 14px; background: var(--sea); color: #fff; }
.qtotal > div + div { background: var(--sea-2); }
.qtotal small { display: block; font: 700 .64rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .75; margin-bottom: 6px; }
.qtotal strong { font: 560 1.6rem/1 var(--serif); }
.row-3 { display: grid; gap: 0 14px; }
.dash-links { display: inline-flex; gap: 18px; flex-wrap: wrap; }
@media (min-width: 640px) {
  .row-3 { grid-template-columns: repeat(3, 1fr); }
  .qline-grid { grid-template-columns: 1.2fr .6fr 1fr 1.4fr; }
  .save-box { grid-template-columns: auto 1fr; align-items: end; }
  .save-btns .cbtn { flex: 0 1 auto; }
}

/* ======================================================= update 02: quotes, clinic profile, gallery, admin */
:root { --c1: #0F9B99; --c2: #E8573A; --c3: #4A6FC9; }
.link-btn { border: 0; background: none; padding: 6px 0; font: 650 .88rem/1.2 var(--sans); color: var(--sea-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--sand); color: var(--sea); cursor: pointer; font: 700 1rem/1 var(--sans); text-decoration: none; }
.icon-btn:hover:not(:disabled) { background: var(--sand-2); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn .ico { width: 18px; height: 18px; }
.notice-bad { background: #FDE7E2; color: var(--bad); }
.notice a { color: inherit; font-weight: 700; }
a.notice { text-decoration: none; }
.stack { display: grid; gap: 22px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.code-inline { font: 700 .95em/1.3 ui-monospace, Menlo, monospace; background: var(--sand); padding: 2px 8px; border-radius: 8px; user-select: all; overflow-wrap: anywhere; }
.code-input { font: 700 1.4rem/1 ui-monospace, Menlo, monospace; letter-spacing: .25em; text-align: center; }

/* clinic sub-navigation: scrolls sideways on phones */
.subnav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: -8px calc(var(--gutter) * -1) 20px; padding: 0 var(--gutter) 2px; border-bottom: 1px solid var(--line); }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 12px 14px; font-weight: 650; font-size: .95rem; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.subnav a[aria-current="page"] { color: var(--sea); border-color: var(--coral); }

/* ---- quote form */
.qline { position: relative; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.qline.is-dragging { box-shadow: var(--shadow-lg); transform: scale(1.01); z-index: 2; background: #fff; }
.qlines-edit.is-sorting { user-select: none; }
.qdrag { flex: none; width: 34px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: grab; touch-action: none; display: grid; place-items: center; }
.qdrag:active { cursor: grabbing; background: var(--white); }
.qdrag .ico { width: 20px; height: 20px; }
.qline-grid { grid-template-columns: 1fr 1fr; }
.qline-brand { grid-column: 1 / -1; }
.qline-detail, .qline-warr { display: block; margin-top: 8px; }
.qline-detail small, .qline-warr small { display: flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 650; color: var(--muted); margin-bottom: 4px; }
.qline-warr small .ico { color: var(--teal); }
.qline-more { margin-top: 8px; }
.qline-more summary { cursor: pointer; font: 650 .84rem/1 var(--sans); color: var(--sea-2); padding: 8px 0; list-style: none; }
.qline-more summary::before { content: "+ "; }
.qline-more[open] summary::before { content: "− "; }
.qline-more .qline-grid { margin-top: 0; }
.seg-input { display: grid; grid-template-columns: 96px 1fr; gap: 6px; }
.qdisc-field small { display: block; font-size: .76rem; font-weight: 650; color: var(--muted); margin-bottom: 4px; }
.qline .input { min-height: 44px; }
.qextras-edit { display: grid; gap: 6px; margin-top: 8px; }
.qextras-edit:empty { display: none; }
.qextra { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 6px; align-items: end; padding: 10px; border-radius: 14px; background: var(--white); border: 1px dashed var(--line-2); }
.qextra .cond-tag { grid-column: 1 / 3; grid-row: 1; justify-self: start; align-self: center; }
.qextra .qextra-item, .qextra .qextra-name { grid-column: 1 / -1; }
.qextra small { display: block; font-size: .74rem; font-weight: 650; color: var(--muted); margin-bottom: 3px; }
.qextra .qline-x { grid-row: 1; grid-column: 3; justify-self: end; background: var(--sand); }
.qline-foot { flex-wrap: wrap; }
.qline-foot output { margin-left: auto; }
.qown { border-radius: 18px; background: var(--teal-soft); margin: 0 0 14px; }
.qown summary { cursor: pointer; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px 16px; font-weight: 700; color: #0B4F4E; list-style: none; }
.qown summary::-webkit-details-marker { display: none; }
.qown summary .muted { font-weight: 500; font-size: .85rem; }
.qown-body, .qown > p { padding: 0 16px 16px; }
.qown .input { background: #fff; }
.qdisc-total { max-width: 360px; }
.qtotal { position: sticky; bottom: calc(10px + var(--safe-b)); z-index: 5; align-items: stretch; border-radius: 18px; box-shadow: 0 16px 34px -14px rgba(14,47,68,.55); }
.qtotal > div { flex: 1; border-radius: 18px 0 0 18px; }
.qtotal > div span { display: block; font-size: .78rem; opacity: .8; margin-top: 4px; }
.qtotal strong { font-size: clamp(1.25rem, 5vw, 1.6rem); }
.qtotal-send { min-height: auto; border-radius: 0 18px 18px 0; padding: 0 20px; }
.valid-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.valid-row .input { width: 110px; text-align: center; font-weight: 700; }
.valid-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.valid-presets .chip { border: 0; cursor: pointer; min-height: 40px; padding: 0 14px; }
.hint.is-bad { color: var(--bad); font-weight: 650; }

/* ---- quote card (patient + clinic view) */
.qpdf { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font: 700 .78rem/1 var(--sans); color: var(--sea); text-decoration: none; padding: 8px 12px; border-radius: 999px; background: var(--sand); }
.qpdf:hover { background: var(--sand-2); }
.qcard-head small.is-expired { color: var(--bad); font-weight: 650; }
.qcard-total .qdisc { color: var(--ok); font-weight: 650; }
.qlines > li { display: block; }
.qline-row { display: flex; justify-content: space-between; gap: 14px; }
.qwarr { display: flex !important; gap: 5px; align-items: flex-start; margin-top: 4px; font-size: .8rem !important; color: #0B6564 !important; }
.qwarr .ico { flex: none; margin-top: 2px; width: 14px; height: 14px; }
.qprice s { display: block; color: var(--muted); font-size: .8rem; }
.qextras { list-style: none; margin: 8px 0 0; padding: 8px 10px; border-radius: 12px; background: var(--sand); display: grid; gap: 6px; }
.qextras li { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; padding: 0; border: 0; }
.qextras li small { color: var(--muted); white-space: nowrap; }
.qextras b { font-weight: 650; white-space: nowrap; }
.qline-range { margin: 6px 0 0 !important; font-size: .84rem !important; font-weight: 650; color: var(--sea); text-align: right; }
.qsum { margin: 12px 0 0; padding-top: 10px; border-top: 1.5px solid var(--sea); display: grid; gap: 4px; }
.qsum div { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; }
.qsum dt { color: var(--muted); }
.qsum dd { margin: 0; font-weight: 650; }
.qsum .qsum-total dt, .qsum .qsum-total dd { color: var(--sea); font-weight: 800; }
.qwarr-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.qwarr-list li { display: grid; gap: 2px; font-size: .92rem; padding-left: 12px; border-left: 3px solid var(--teal); }
.qwarr-list b { color: var(--sea); }

/* ---- clinic treatments list */
.own-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.own-list li { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; padding: 16px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); }
.own-list li.is-editing { box-shadow: inset 0 0 0 2px var(--coral), var(--shadow); }
.own-main b { display: block; color: var(--sea); }
.own-main > span { display: block; }
.own-price { font: 600 1.15rem/1.2 var(--serif); color: var(--sea); text-align: right; }
.own-act { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.own-act form { display: flex; gap: 6px; }

/* ---- profile editor */
.media-pair { display: grid; gap: 22px; }
.media-slot { display: grid; gap: 10px; justify-items: start; }
.logo-preview { width: 120px; height: 120px; border-radius: 24px; background: var(--sand); display: grid; place-items: center; overflow: hidden; }
.logo-box { width: 100%; height: 100%; display: grid; place-items: center; font: 700 2rem/1 var(--sans); color: #fff; border-radius: inherit; }
.logo-box.has-logo { background: #fff; padding: 10px; }
.logo-box img, .avatar.has-logo img, .cp-logo img { width: 100%; height: 100%; object-fit: contain; }
.avatar.has-logo { background: #fff; box-shadow: inset 0 0 0 1px var(--line); padding: 3px; overflow: hidden; }
.avatar-sm { width: 28px; height: 28px; border-radius: 9px; font-size: .66rem; display: inline-grid; vertical-align: middle; margin-right: 8px; }
.cover-preview { width: 100%; aspect-ratio: 3 / 1; border-radius: 18px; background: var(--sand); overflow: hidden; display: grid; place-items: center; color: var(--muted); }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-preview .ico { width: 34px; height: 34px; }
.upload-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.upload-form.is-busy, .dropzone.is-busy { opacity: .6; pointer-events: none; }
.file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.file-btn:focus-within { outline: 3px solid var(--coral); outline-offset: 2px; }
.sticky-save { position: sticky; bottom: calc(10px + var(--safe-b)); margin-top: 10px; z-index: 4; }
.sticky-save .btn { box-shadow: 0 14px 30px -10px rgba(255,107,74,.7); }
.meter-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin: 4px 0 14px; color: var(--sea); }
.meter-row svg { width: 100%; height: 8px; }
.meter-row rect { fill: var(--teal); }
.meter-row .meter-bg { fill: var(--sand-2); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 8px; align-items: center; font-size: .94rem; }
.checklist .ico { flex: none; width: 18px; height: 18px; color: var(--coral); }
.checklist .is-done .ico { color: var(--ok); }
.checklist .is-done a { color: var(--muted); text-decoration: line-through; }
.checklist-lg li { padding: 12px 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); font-size: 1rem; }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---- gallery editor */
.dropzone { display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; padding: 20px; margin-bottom: 18px; border-radius: var(--r-lg); background: var(--white); border: 2px dashed var(--line-2); transition: border-color .2s, background .2s; }
.dropzone > .ico { width: 36px; height: 36px; color: var(--coral); }
.dropzone strong { display: block; color: var(--sea); font-size: 1.08rem; }
.dropzone .muted { font-size: .9rem; }
.dropzone .file-btn, .dropzone [data-nojs-submit] { grid-column: 1 / -1; }
.dropzone.is-over { border-color: var(--coral); background: var(--coral-soft); }
.dropzone-status { grid-column: 1 / -1; margin: 0; font-weight: 650; color: var(--sea); }
.dropzone-status:empty { display: none; }
.gal-edit { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gal-edit li { border-radius: 18px; background: var(--white); box-shadow: var(--shadow); overflow: hidden; display: grid; transition: transform .15s; }
.gal-edit li.is-dragging { transform: scale(.96); box-shadow: var(--shadow-lg); opacity: .9; }
.gal-thumb { aspect-ratio: 1; background: var(--sand) repeating-conic-gradient(var(--sand-2) 0 25%, transparent 0 50%) 0 0 / 16px 16px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.gal-thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; pointer-events: none; }
.gal-cap { display: flex; gap: 6px; padding: 8px 8px 0; }
.gal-cap .input { min-height: 40px; padding: 6px 10px; font-size: .88rem; }
.gal-act { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px; }
.gal-act form { display: flex; gap: 4px; }

/* ---- public clinic page */
.cp-hero { position: relative; background: linear-gradient(160deg, var(--sand), #FFE6DA); padding: 30px 0 26px; overflow: hidden; }
.cp-hero.has-cover { padding-top: 0; background: var(--paper); }
.cp-cover { width: 100%; height: clamp(170px, 38vw, 380px); object-fit: cover; display: block; }
.cp-head { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: end; }
.has-cover .cp-head { margin-top: -46px; position: relative; }
.cp-logo { width: 92px; height: 92px; border-radius: 26px; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-lg); font: 700 1.8rem/1 var(--sans); color: #fff; overflow: hidden; }
.cp-logo.has-logo { padding: 10px; }
.cp-head h1 { font-size: clamp(1.8rem, 6vw, 3rem); margin: 8px 0 2px; }
.cp-head .lead { grid-column: 1 / -1; margin: 6px 0 0; max-width: 60ch; }
.cp-city { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-weight: 600; }
.cp-city .ico { color: var(--coral); }
.cp-body { display: grid; gap: 26px; padding-top: 26px; padding-bottom: 50px; }
.cp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 0 0 8px; }
.cp-facts div { padding: 14px; border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
.cp-facts dt { font: 700 .66rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.cp-facts dd { margin: 0; font: 600 1.1rem/1.25 var(--serif); color: var(--sea); }
.cp-sec { margin-top: 28px; }
.cp-sec h2 { font-size: 1.6rem; display: flex; align-items: baseline; gap: 10px; }
/* gallery: before JS a tidy grid of whole photos; with JS justified rows, each photo at its own aspect ratio */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.gallery-item { display: block; border-radius: 12px; overflow: hidden; background: var(--sand); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery-item:hover img { transform: scale(1.03); }
.gallery.is-justified { display: flex; flex-wrap: wrap; gap: 6px; }
.gallery.is-justified .gallery-item { --h: 150px; flex: calc(var(--r) * 100) 1 calc(var(--r) * var(--h)); aspect-ratio: var(--r); min-width: 0; }
.gallery.is-justified::after { content: ""; flex: 999 1 0; }
@media (min-width: 640px) { .gallery.is-justified .gallery-item { --h: 210px; } .gallery { grid-template-columns: repeat(3, 1fr); } }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 22, 32, .96); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(8, 22, 32, .9); }
.lightbox figure { margin: 0; max-width: 100vw; display: grid; justify-items: center; gap: 10px; padding: 56px 8px 40px; }
.lightbox img { max-width: calc(100vw - 16px); max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lightbox figcaption { font-size: .95rem; color: #DCE7EB; text-align: center; max-width: 60ch; padding: 0 12px; }
.lb-close, .lb-nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-close { top: calc(10px + env(safe-area-inset-top, 0px)); right: 10px; }
.lb-nav { top: 50%; margin-top: -24px; }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-count { position: absolute; top: calc(22px + env(safe-area-inset-top, 0px)); left: 18px; margin: 0; font-weight: 700; font-size: .9rem; color: #9FB9C4; }
@media (max-width: 639px) { .lb-nav { top: auto; bottom: calc(14px + var(--safe-b)); margin: 0; } }

/* ---- clinic sign-up */
.join-steps { list-style: none; counter-reset: j; padding: 0; margin: 18px 0 22px; display: grid; gap: 14px; }
.join-steps li { counter-increment: j; display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; }
.join-steps li::before { content: counter(j); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--sea); color: #fff; display: grid; place-items: center; font-weight: 700; }
.join-steps b { color: var(--sea); }
.join-steps span { color: var(--muted); font-size: .93rem; }

@media (min-width: 640px) {
  .qline-grid { grid-template-columns: .6fr 1fr 1.4fr; }
  .qline-brand { grid-column: auto; }
  .qline-more .qline-grid { grid-template-columns: 1fr 1.2fr; }
  .qextra { grid-template-columns: auto 1.6fr .5fr .9fr 40px; align-items: end; }
  .qextra .cond-tag { grid-column: auto; align-self: center; }
  .qextra .qextra-item, .qextra .qextra-name { grid-column: auto; }
  .qextra .qline-x { grid-row: auto; grid-column: auto; }
  .qextra:has(.qextra-name:not([hidden])) { grid-template-columns: auto 1.2fr 1.2fr .5fr .9fr 40px; }
  .media-pair { grid-template-columns: 140px 1fr; }
  .own-list li { grid-template-columns: 1fr auto auto; align-items: center; }
  .own-act { grid-column: auto; }
  .gal-edit { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .dropzone { grid-template-columns: auto 1fr auto; }
  .dropzone .file-btn, .dropzone [data-nojs-submit] { grid-column: auto; }
}
@media (min-width: 960px) {
  .subnav { margin-left: 0; margin-right: 0; padding: 0; }
  .cp-body { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .cp-side { position: sticky; top: 90px; }
  .cp-logo { width: 120px; height: 120px; }
  .has-cover .cp-head { margin-top: -60px; }
}

/* ======================================================= admin */
body.admin { background: #F6F2EC; font-size: 16px; }
.adm-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; padding: 0 var(--gutter); background: rgba(255,250,244,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.adm-top .logo small { font: 700 .62rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--coral-ink); background: var(--coral-soft); padding: 4px 6px; border-radius: 6px; margin-left: 6px; vertical-align: middle; }
.adm-out { display: flex; align-items: center; gap: 10px; }
.adm-nav { position: sticky; top: 60px; z-index: 15; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 8px var(--gutter); background: #F6F2EC; border-bottom: 1px solid var(--line); }
.adm-nav::-webkit-scrollbar { display: none; }
.adm-nav a { flex: none; display: flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 12px; color: var(--muted); font-weight: 650; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.adm-nav a:hover { background: var(--white); color: var(--sea); }
.adm-nav a[aria-current="page"] { background: var(--sea); color: #fff; }
.adm-count { background: var(--coral); color: #fff; font-size: .7rem; border-radius: 999px; padding: 2px 7px; }
.adm-main { padding: 18px var(--gutter) 60px; min-width: 0; }
.adm-solo { max-width: 440px; margin: 10vh auto 0; }
.adm-h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 6px 0 18px; }
.adm-main .flash { margin: 0 0 16px; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.kpi { display: block; padding: 14px 16px; border-radius: 18px; background: var(--white); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
a.kpi:hover { box-shadow: var(--shadow-lg); }
.kpi small { display: block; font: 700 .66rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kpi strong { display: block; font: 600 clamp(1.5rem, 5vw, 2rem)/1.1 var(--serif); color: var(--sea); margin: 6px 0 2px; }
.kpi span { font-size: .8rem; color: var(--muted); }
.kpis-sm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpis-sm .kpi strong { font-size: 1.5rem; }
.kpis-sm .kpi { box-shadow: none; background: var(--paper); border: 1px solid var(--line); }
.adm-alerts { display: grid; gap: 10px; margin-bottom: 18px; }
.adm-alerts .notice { margin: 0; }
.adm-grid { display: grid; gap: 14px; }
.panel { padding: 18px; border-radius: 20px; background: var(--white); box-shadow: var(--shadow); min-width: 0; }
.panel h2 { font-size: 1.15rem; margin: 0 0 12px; }
.panel h3 { font-size: 1rem; }
.panel-danger { box-shadow: inset 0 0 0 1.5px #F3C2B6; }
.panel.thread { padding: 0; }
.chart-fig { margin: 0; }
.chart { width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font: 500 11px var(--sans); }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--c1); opacity: .1; }
.chart .s0 { stroke: var(--c1); } .chart .s1 { stroke: var(--c2); } .chart .s2 { stroke: var(--c3); }
.chart .hit rect { fill: transparent; }
.chart .hit line { stroke: var(--sea); stroke-width: 1; opacity: 0; }
.chart .hit:hover line { opacity: .35; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 8px; font-size: .84rem; color: var(--ink); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.legend .s0 { background: var(--c1); } .legend .s1 { background: var(--c2); } .legend .s2 { background: var(--c3); }
.heat rect { stroke: none; }
.heat .h0 { fill: #F1ECE5; } .heat .h1 { fill: #CDEBE8; } .heat .h2 { fill: #93D3CF; } .heat .h3 { fill: #4FB6B2; } .heat .h4 { fill: #17908E; } .heat .h5 { fill: #0B6564; }
.bars { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; font-size: .9rem; }
.bars-l { overflow-wrap: anywhere; color: var(--ink); }
.bars b { font-weight: 700; color: var(--sea); white-space: nowrap; }
.bars b small { font-weight: 500; color: var(--muted); }
.bars svg { grid-column: 1 / -1; width: 100%; height: 6px; }
.bars rect { fill: var(--c1); }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font: 700 .68rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.is-muted td { opacity: .55; }
.tbl a { font-weight: 650; }
.row-link { text-decoration: none; display: inline-flex; align-items: center; }
/* tables become stacked cards on phones */
@media (max-width: 759px) {
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: 12px 14px; margin-bottom: 10px; border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
  .panel .tbl tr { box-shadow: none; border: 1px solid var(--line); }
  .tbl td { border: 0; padding: 3px 0; text-align: left !important; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; }
  .tbl td::before { content: attr(data-l); font: 700 .66rem/1.6 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .tbl td:not([data-l]) { display: block; padding-top: 8px; }
  .tbl td:not([data-l])::before { content: none; }
}
.adm-search { display: flex; gap: 8px; margin-bottom: 14px; max-width: 520px; }
.adm-search .input { min-height: 44px; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.adm-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 2px; }
.adm-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.adm-list li > a, .adm-list li > span { display: grid; gap: 2px; text-decoration: none; min-width: 0; }
.adm-list b { color: var(--sea); font-weight: 650; overflow-wrap: anywhere; }
.adm-list span span { font-size: .84rem; color: var(--muted); }
.switches li { align-items: flex-start; }
.switches li > div { display: grid; gap: 4px; min-width: 0; }
.switches li > div > span:last-child { font-size: .88rem; color: var(--muted); }
.switches form { flex: none; }
.switches .badge { justify-self: start; }
.adm-thumbs { display: flex; gap: 6px; overflow-x: auto; margin: 12px 0; }
.adm-thumbs img { height: 80px; width: auto; border-radius: 10px; }
.adm-clinic-head { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; }
.adm-clinic-head .logo-box { width: 84px; height: 84px; border-radius: 20px; background: var(--sand); }
.adm-clinic-head h2 { font-size: 1.6rem; margin: 6px 0 2px; }
.adm-clinic-head p { margin: 2px 0; }
.st-pending { background: var(--sun-soft); color: #7C5306; } .st-active { background: var(--teal-soft); color: #0B6564; }
.st-rejected { background: #FDE7E2; color: var(--bad); } .st-suspended { background: #EDEFF0; color: var(--muted); }
.syscheck { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.syscheck li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; padding: 12px; border-radius: 14px; background: var(--paper); }
.syscheck li span { display: grid; } .syscheck small { color: var(--muted); overflow-wrap: anywhere; }
.syscheck em { font-style: normal; font: 700 .72rem/1 var(--sans); padding: 5px 8px; border-radius: 999px; }
.syscheck .ok .ico { color: var(--ok); } .syscheck .ok em { background: var(--teal-soft); color: #0B6564; }
.syscheck .bad { background: #FFF4F1; } .syscheck .bad .ico { color: var(--bad); } .syscheck .bad em { background: #FDE7E2; color: var(--bad); }
.steps-sm { padding-left: 20px; display: grid; gap: 10px; }
.totp-key { display: inline-block; margin-top: 6px; font-size: 1.05rem; letter-spacing: .06em; }
.adm-del summary { list-style: none; cursor: pointer; }
.adm-del summary::-webkit-details-marker { display: none; }
.adm-del[open] form { display: grid; gap: 6px; margin-top: 8px; min-width: 200px; }
.adm-mod { padding: 0 16px 14px; }
.adm-mod summary { cursor: pointer; font-weight: 650; color: var(--muted); font-size: .88rem; padding: 6px 0; }
.adm-login { margin-top: 10px; }
@media (min-width: 760px) {
  .kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

  .adm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-wide { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .adm-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); }
  .adm-nav { flex-direction: column; top: 60px; height: calc(100vh - 60px); padding: 18px 12px; border-bottom: 0; border-right: 1px solid var(--line); overflow-y: auto; }
  .adm-nav .adm-count { margin-left: auto; }
  .adm-main { padding: 26px 34px 60px; }
  .adm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .adm-grid .panel-wide { grid-column: span 3; }
}
@media (max-width: 639px) {
  .qprice { max-width: 44%; }
  .qprice small { white-space: normal; display: block; }
}

/* ---- update 04: own-list quote form, packages, prices on profile, read receipts */
.qline-grid .qfield small { display: block; font-size: .76rem; font-weight: 650; color: var(--muted); margin-bottom: 4px; }
.qline-contents { margin: 6px 0 0; font-size: .84rem; color: var(--muted); }
.qown-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; padding: 14px 16px; border: 0; background: none; font: inherit; font-weight: 700; color: #0B4F4E; text-align: left; cursor: pointer; border-radius: 18px; }
.qown-head .muted { font-weight: 500; font-size: .85rem; }
.qown-head::after { content: '+'; margin-left: auto; font-size: 1.3rem; line-height: 1; }
.qown.is-open .qown-head::after { content: '−'; }
.qown-head:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.qwarr-preview { margin-bottom: 14px; }
.qwarr-preview .label { display: block; font-weight: 650; color: var(--sea); margin-bottom: 8px; }
.pkg-rows { display: grid; gap: 6px; }
.pkg-row { display: grid; grid-template-columns: 1fr 72px; gap: 6px; }
.own-price small { display: block; font: 500 .74rem/1.3 var(--sans); color: var(--muted); }
.own-price s { color: var(--muted); }
.pkg-cards { display: grid; gap: 12px; margin-bottom: 18px; }
@media (min-width: 640px) { .pkg-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.pkg-card { padding: 18px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); }
.pkg-card h3 { margin: 8px 0 4px; }
.pkg-price { font: 600 1.4rem/1.2 var(--serif); color: var(--sea); margin: 0 0 10px; }
.pkg-price s { font-size: .95rem; color: var(--muted); }
.pkg-items { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.pkg-items li { display: flex; gap: 6px; align-items: flex-start; }
.pkg-items .ico { color: var(--teal); flex: none; margin-top: 3px; }
.pkg-items small { display: block; color: #0B6564; font-size: .8rem; }
.price-list { list-style: none; margin: 0 0 10px; padding: 0; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); }
.price-list li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.price-list li:last-child { border-bottom: 0; }
.price-list-p { font: 600 1.05rem/1.2 var(--serif); color: var(--sea); text-align: right; white-space: nowrap; }
.price-list-p small { display: block; font: 500 .74rem/1.3 var(--sans); color: var(--muted); }
.msg-meta { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 6px; }
.msg-them .msg-meta { justify-content: flex-start; }
.msg-meta time { margin: 0; }
.ticks { display: inline-flex; color: var(--muted); }
.ticks-read { color: #2C8DE0; }
.msg-me .ticks { color: #9FB9C4; }
.msg-me .ticks-read { color: #5EC8FF; }

/* ---- update 05: packages as one-click quote templates */
.qpkgs { margin: 18px 0 4px; padding: 16px; border-radius: 18px; background: var(--sand); }
.qpkgs .label { display: flex; align-items: center; gap: 6px; font-weight: 650; color: var(--sea); margin-bottom: 10px; }
.qpkgs-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.qpkg-btn { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 52px; padding: 8px 16px; border: 0; border-radius: 14px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line-2); font: inherit; color: var(--sea); cursor: pointer; text-align: left; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.qpkg-btn b { font-weight: 700; font-size: .95rem; }
.qpkg-btn span { font-size: .85rem; color: var(--muted); }
.qpkg-btn:hover { box-shadow: inset 0 0 0 1.5px var(--sea); }
.qpkg-btn:active { transform: scale(.98); }
.qpkg-btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.qpkgs-done { margin: 10px 0 0; font-size: .88rem; font-weight: 600; color: #0B6564; }
.pkg-head { margin: 4px 0 4px; font-size: 1.05rem; }
.qpkgs .hint { margin: 10px 0 0; font-size: .84rem; color: var(--muted); }

/* ---- treatments page: buttons open the forms as pop-ups */
.tr-bar { display: grid; gap: 12px; margin-bottom: 18px; }
.tr-bar p { margin: 0; max-width: 70ch; }
.tr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tr-actions .link-arrow { margin-left: auto; }
.tr-actions .btn[disabled] { opacity: .5; cursor: not-allowed; }
.modal { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; border-radius: 22px; background: var(--white); color: var(--ink, inherit); box-shadow: 0 30px 80px -20px rgba(8, 22, 32, .5); overflow: auto; overscroll-behavior: contain; }
.modal-wide { width: min(720px, calc(100vw - 24px)); }
.modal::backdrop { background: rgba(8, 22, 32, .55); }
.modal-form { padding: 0 22px 0; }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -22px 14px; padding: 18px 22px 12px; background: var(--white); border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 1.35rem; }
.modal-foot { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: flex-end; gap: 10px; margin: 18px -22px 0; padding: 12px 22px calc(14px + var(--safe-b, 0px)); background: var(--white); border-top: 1px solid var(--line); }
body.modal-open { overflow: hidden; }
@media (max-width: 639px) {
  .modal, .modal-wide { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .modal-foot .btn { flex: 1; }
  .tr-actions .btn { flex: 1 1 auto; }
  .tr-actions .link-arrow { margin-left: 0; }
}
.modal-foot .btn { white-space: nowrap; }
.hero h1 .line-q { font-size: .46em; letter-spacing: -.015em; color: var(--sea-2); margin-bottom: .3em; }

/* ---- photos: homepage hero, destination cards, step illustrations */
.hero.has-photo::before { display: none; }
.hero-photo { position: absolute; inset: 0; z-index: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; animation: heroFade 1.4s var(--ease) both; }
.hero.has-photo::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 250, 244, .94) 0%, rgba(255, 250, 244, .86) 48%, rgba(255, 250, 244, .35) 72%, rgba(255, 250, 244, 0) 100%); }
.hero.has-photo .hero-in, .hero.has-photo .hero-waves { z-index: 1; }
@keyframes heroFade { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@media (min-width: 960px) {
  .hero-photo img { object-position: 70% center; }
  .hero.has-photo::after { background: linear-gradient(180deg, rgba(255, 250, 244, .92) 0, rgba(255, 250, 244, .55) 90px, rgba(255, 250, 244, 0) 170px), linear-gradient(90deg, rgba(255, 250, 244, .96) 0%, rgba(255, 250, 244, .9) 36%, rgba(255, 250, 244, .45) 56%, rgba(255, 250, 244, 0) 74%); }
}
@media (prefers-reduced-motion: reduce) { .hero-photo img { animation: none; } }
img.dest-art { object-fit: cover; display: block; }
.dest-hero-art img.dest-art { height: 100%; }
.step-art { display: block; width: 132px; height: 132px; border-radius: 26px; margin: 0 0 16px; background: #FFFAF4; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .45); }
.step:has(.step-art)::before { position: absolute; top: 26px; right: 24px; margin: 0; }
@media (max-width: 639px) {
  /* phone: picture and title side by side, text full width underneath */
  .step:has(.step-art) { grid-template-columns: 88px 1fr; gap: 0 16px; align-items: center; }
  .step:has(.step-art)::before { top: 14px; right: 16px; font-size: 1.9rem; }
  .step-art { width: 88px; height: 88px; border-radius: 20px; margin: 0; }
  .step:has(.step-art) h3 { padding-right: 40px; margin: 0; }
  .step:has(.step-art) p { grid-column: 1 / -1; margin-top: 14px; }
}
.d-card:has(img.dest-art) .stamp { border-color: rgba(255, 255, 255, .85); color: #fff; background: rgba(14, 47, 68, .28); }

/* ---- request photos: upload slots, thumbnails, admin crop */
.photo-slots { display: grid; gap: 12px; margin: 18px 0 8px; }
.photo-slot { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); cursor: pointer; position: relative; }
.photo-slot:focus-within { outline: 3px solid color-mix(in srgb, var(--coral) 45%, transparent); outline-offset: 2px; }
.photo-slot.is-extra { border-style: dashed; }
.photo-slot.has-photo { border-color: var(--sea); }
.photo-slot input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.photo-slot-img { width: 84px; height: 84px; border-radius: 14px; background: var(--sand, #F6EEE4); display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.photo-slot-img img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot-text { display: grid; gap: 4px; min-width: 0; }
.photo-slot-text b { color: var(--sea); }
.photo-slot-text small { color: var(--muted); line-height: 1.45; }
.photo-slot-btn { justify-self: start; font-weight: 650; font-size: .85rem; color: var(--coral); }
.photo-slot.has-photo .photo-slot-btn::before { content: "✓ "; color: var(--sea); }
.rphotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 8px 0 4px; }
.rphoto { display: grid; gap: 4px; text-decoration: none; color: var(--muted); font-size: .75rem; }
.rphoto img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--line); display: block; }
.crop-list { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); margin-top: 12px; }
.crop-item { display: grid; gap: 8px; align-content: start; }
.crop-stage { position: relative; overflow: hidden; border-radius: 12px; touch-action: none; cursor: crosshair; user-select: none; background: #111; }
.crop-stage img { display: block; width: 100%; height: auto; pointer-events: none; }
.crop-box { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55); pointer-events: none; }
.review-decide { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---- gallery review status, rules */
.gal-rules p { margin: 6px 0 0; }
.gal-status { display: inline-block; font: 700 .68rem/1.2 var(--sans); letter-spacing: .04em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; margin-bottom: 6px; background: var(--line); color: var(--muted); }
.gal-status.st-approved { background: color-mix(in srgb, var(--sea) 14%, white); color: var(--sea); }
.gal-status.st-pending { background: var(--sun-soft, #FFF1D6); color: #8A5A00; }
.gal-status.st-rejected { background: color-mix(in srgb, var(--coral) 16%, white); color: #A33A22; }
.gal-note { font-size: .85rem; color: #A33A22; margin: 4px 0; }
.rev-clinic { padding: 14px 0; border-top: 1px solid var(--line); }
.rev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 10px 0; }
.rev-item { display: grid; gap: 6px; position: relative; }
.rev-item input { position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; z-index: 1; }
.rev-item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.rev-item small { color: var(--muted); overflow-wrap: anywhere; }

/* ---- second (alternative) quote */
.qcard-alt { border-color: color-mix(in srgb, var(--sea) 40%, transparent); }
.qcard-alt .badge-pre { background: color-mix(in srgb, var(--sea) 14%, white); color: var(--sea); }
.alt-quote { margin-top: 16px; }
.alt-quote > summary { list-style: none; }
.alt-quote > summary::-webkit-details-marker { display: none; }
.alt-quote[open] > summary { margin-bottom: 14px; }
.inline-form { display: inline-block; }

/* ---------- report and block */
.report { margin-top: 4px; font-size: .8rem; }
.report summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; color: var(--muted); opacity: .75; }
.report summary::-webkit-details-marker { display: none; }
.report summary:hover, .report[open] summary { opacity: 1; color: var(--bad); }
.report form { display: grid; gap: 8px; margin-top: 8px; padding: 10px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-align: left; }
.report .input { min-height: 40px; font-size: .9rem; }
.report .btn { justify-self: start; }
.req-detail .report { margin-top: 14px; }
.thread-tools { margin: -6px 0 0; padding: 0 16px 12px; text-align: right; }
.thread > .notice { margin: 16px; }
.thread-tools .link-btn { color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.thread-tools .link-btn:hover { color: var(--bad); }
.notice .inline-form .link-btn { padding: 0 0 0 6px; color: inherit; }
.report-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.report-item blockquote { margin: 8px 0; padding: 10px 14px; border-left: 3px solid var(--coral); background: var(--sand, #f6f1ea); border-radius: 8px; overflow-wrap: anywhere; }

/* ---------- "why" explainer under a form field */
.why-box { margin: 4px 0 16px; padding: 12px 14px; border-radius: 14px; background: var(--teal-soft); color: #0B4F4E; font-size: .92rem; }
.why-box summary { cursor: pointer; font-weight: 650; display: flex; align-items: center; gap: 6px; list-style: none; }
.why-box summary::-webkit-details-marker { display: none; }
.why-box p { margin: 10px 0 0; }
.why-box a { color: inherit; font-weight: 700; }
.hero-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 14px; border-radius: 999px; background: var(--sun-soft); color: #6B4A06; font-size: .9rem; font-weight: 600; }
