:root {
  --bg: #ffffff;
  --fg: #1c1c1c;
  --muted: #6b6b6b;
  --line: #ececec;
  --soft: #f6f5f3;
  --accent: #1c1c1c;
  --heart: #d64545;
  --sans: "Heebo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gap: 6px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 300 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--fg); font-size: 13px; letter-spacing: .08em; transition: background .2s, color .2s; }
.btn:hover { background: var(--fg); color: var(--bg); }
.btn.ghost { border-color: var(--line); }
.btn.solid { background: var(--fg); color: var(--bg); }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; transition: background .2s; }
.icon-btn:hover { background: var(--soft); }
@media (hover: none) { .btn:hover { background: none; color: inherit; } .btn.solid:hover { background: var(--fg); color: var(--bg); } .icon-btn:hover { background: none; } }

/* ---------- home ---------- */
.home-head { position: relative; text-align: center; padding: 28px 16px 8px; }
.home-head .tools { position: absolute; inset: 16px 16px auto 16px; display: flex; justify-content: space-between; }
.brand-logo { max-height: 110px; margin: 18px auto 6px; }
.brand-word { font: 400 44px/1.1 var(--serif); letter-spacing: .02em; margin: 26px 0 2px; }
.brand-sub { font-size: 11px; letter-spacing: .35em; color: var(--muted); }
.contact { display: flex; gap: 18px; justify-content: center; align-items: center; margin-top: 14px; }
.phone { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: #555; direction: ltr; padding: 6px 2px; }
.phone:hover { color: var(--fg); }
.phone.wa { direction: rtl; }
.home-head .tools { z-index: 2; }
.search { max-width: 360px; margin: 12px auto 0; display: none; }
.search.open { display: block; }
.search input { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 10px 4px; outline: none; text-align: center; background: transparent; }
.grid-home { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 28px; max-width: 1180px; margin: 40px auto 80px; padding: 0 16px; }
@media (max-width: 680px) { .grid-home { grid-template-columns: 1fr; gap: 32px; } .brand-word { font-size: 36px; } }
.card .ph { aspect-ratio: 3 / 2; background: var(--soft); overflow: hidden; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; opacity: 0; }
.card img.in { opacity: 1; }
.card:hover img { transform: scale(1.025); }
.card h3 { font-weight: 400; font-size: 16px; text-align: center; margin: 14px 0 0; }
.card time { display: block; text-align: center; font-size: 11px; letter-spacing: .18em; color: var(--muted); margin-top: 2px; }
.foot { text-align: center; font-size: 11px; letter-spacing: .25em; color: var(--muted); padding: 30px 0 40px; }
.empty { text-align: center; color: var(--muted); padding: 60px 16px; }

/* ---------- gallery hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 420px; overflow: hidden; background: #111; color: #fff; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 1.2s var(--ease), transform 2.4s var(--ease); }
.hero img.in { opacity: 1; transform: none; }
.hero img { object-position: var(--fd, 50% 50%); }
@media (max-aspect-ratio: 1/1) { .hero img { object-position: var(--fm, var(--fd, 50% 50%)); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 55%); }
.hero::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.75); z-index: 1; pointer-events: none; }
.hero .txt { position: absolute; inset: auto 0 9vh 0; text-align: center; z-index: 1; padding: 0 16px; }
.hero h1 { font-weight: 300; font-size: clamp(30px, 5vw, 54px); margin: 0; letter-spacing: .02em; }
.hero time { display: block; font-size: 12px; letter-spacing: .3em; margin: 6px 0 26px; opacity: .9; }
.hero .btn { border-color: rgba(255,255,255,.8); }
.hero .btn:hover { background: #fff; color: #111; }
.hero .by { position: absolute; top: 22px; inset-inline: 0; text-align: center; z-index: 1; font: 400 22px var(--serif); letter-spacing: .06em; }

/* ---------- gallery bar ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.bar-in { max-width: 1600px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 8px 16px; min-height: 60px; }
.bar .ttl { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.bar .ttl b { font-weight: 400; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .ttl a { font: 400 13px var(--serif); letter-spacing: .12em; color: var(--muted); }
.bar .ttl a:hover { color: var(--fg); }
.bar .acts { margin-inline-start: auto; display: flex; gap: 2px; align-items: center; }
.tabs { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; padding: 0 16px; max-width: 1600px; margin: 0 auto; }
.tabs::-webkit-scrollbar { display: none; }
.tabs { position: relative; }
.tabs button { white-space: nowrap; font-size: 14px; font-weight: 500; letter-spacing: .06em; color: #555; padding: 10px 0 12px; transition: color .2s; }
.tabs button.on { color: var(--fg); }
/* the progress line: moved by gallery.js as the page scrolls */
.tabs .ind { position: absolute; bottom: 0; left: 0; height: 2px; background: var(--fg); width: 0; opacity: 0; transform-origin: left center; will-change: transform; pointer-events: none;
  /* a short glide between scroll events keeps it smooth; jumping to another folder animates the move */
  transition: transform .18s linear, width .3s var(--ease), opacity .2s; }
.section + .section { margin-top: 34px; }
.sec-title { font: 400 22px/1.2 var(--serif); letter-spacing: .04em; text-align: center; margin: 22px 0 16px; }
.section:first-child .sec-title { margin-top: 12px; }
.tabs .lock { font-size: 11px; margin-inline-start: 4px; }

/* ---------- photo grid (justified rows) ---------- */
.photos { max-width: 1600px; margin: 10px auto 60px; padding: 0 10px; --g: 10px; }
.masonry { display: flex; gap: var(--g); align-items: flex-start; }
.masonry .col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--g); }
.masonry .col > .tile { flex: none; }
@media (max-width: 699px) { .photos { padding: 0 6px; margin-top: 6px; --g: 6px; } }
.row { display: flex; gap: var(--gap); margin-bottom: var(--gap); }
.tile { position: relative; width: 100%; background: var(--soft); overflow: hidden; cursor: zoom-in; line-height: 0; font-size: 0; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }   /* no gap under the photo whatever the browser makes of percent heights */
.tile img.in { opacity: 1; }
.tile .hov { position: absolute; inset: auto 0 0 0; display: flex; justify-content: flex-end; gap: 2px; padding: 6px; background: linear-gradient(to top, rgba(0,0,0,.35), transparent); opacity: 0; transition: opacity .2s; }
.tile:hover .hov, .tile .hov.keep { opacity: 1; }
.tile .hov button { color: #fff; width: 34px; height: 34px; display: grid; place-items: center; }
.tile .hov .icon { filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.tile .fav-on { position: absolute; top: 8px; inset-inline-end: 8px; color: #fff; }
.tile.sel { outline: 3px solid var(--fg); outline-offset: -3px; }
.tile .chk { position: absolute; top: 8px; inset-inline-start: 8px; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #fff; background: rgba(0,0,0,.2); display: none; }
.selecting .tile .chk { display: block; }
.tile.sel .chk { background: var(--fg); border-color: var(--fg); }
.tile.sel .chk::after { content: ""; position: absolute; inset: 5px 7px 7px 6px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); width: 9px; height: 5px; }
@media (hover: none) { .tile .hov { display: none; } }
.heart-on .icon { fill: var(--heart); stroke: var(--heart); }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; height: 100vh; height: 100dvh; z-index: 50; background: #fff; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity .25s; }
.lb.open { opacity: 1; pointer-events: auto; }
.lb-top { display: flex; align-items: center; gap: 4px; padding: 8px 10px; }
.lb-top .count { font-size: 12px; color: var(--muted); letter-spacing: .1em; margin-inline-end: auto; padding: 0 8px; direction: ltr; }
.lb-stage { position: relative; flex: 1; min-height: 0; touch-action: pan-y; overflow: hidden; }
/* fills the stage and lets object-fit do the fitting: Safari ignores percentage max-height inside flex/grid */
.lb-stage img { position: absolute; top: 0; bottom: 0; left: 12px; right: 12px; width: calc(100% - 24px); height: 100%; max-width: none; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity .25s; }
@media (max-width: 699px) { .lb-stage img { left: 0; right: 0; width: 100%; } }
.lb-nav { position: absolute; z-index: 1; top: 0; bottom: 0; width: 18%; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.lb-nav:hover { color: var(--fg); }
.lb-prev { right: 0; } .lb-next { left: 0; }
@media (hover: none) { .lb-nav { display: none; } }
.lb-cap { text-align: center; font-size: 11px; color: var(--muted); padding: 8px; direction: ltr; }

/* ---------- sheets / dialogs ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; z-index: 61; left: 50%; top: 50%; width: min(420px, calc(100% - 32px)); max-height: calc(100% - 48px); overflow: auto; background: #fff; padding: 26px 24px 22px; transform: translate(-50%, -46%); opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s var(--ease); box-shadow: 0 20px 60px rgba(0,0,0,.18); }
.sheet.open { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
@media (max-width: 560px) {
  .sheet { left: 0; right: 0; top: auto; bottom: 0; width: 100%; transform: translateY(100%); padding-bottom: calc(22px + env(safe-area-inset-bottom)); border-radius: 14px 14px 0 0; }
  .sheet.open { transform: none; }
}
.sheet h2 { font-weight: 400; font-size: 19px; margin: 0 0 6px; }
.sheet p { color: #666; margin: 0 0 16px; font-size: 14px; }
.sheet input[type=text], .sheet input[type=email], .sheet input[type=password] { width: 100%; border: 1px solid var(--line); padding: 12px; outline: none; font-size: 16px; }
.sheet input:focus { border-color: var(--fg); }
.sheet .row-btns { display: flex; gap: 8px; margin-top: 14px; justify-content: flex-start; }
.sheet .err { color: var(--heart); font-size: 13px; min-height: 20px; margin-top: 6px; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li button, .menu-list li a { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line); text-align: start; }
.menu-list li:last-child button { border-bottom: 0; }
.menu-list small { color: var(--muted); margin-inline-start: auto; }
.list-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.chip { padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; }
.chip.on { border-color: var(--fg); background: var(--fg); color: #fff; }

/* selection bar */
.selbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: var(--fg); color: #fff; display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .3s var(--ease); }
.selbar.open { transform: none; }
.selbar .n { margin-inline-end: auto; font-size: 14px; }
.selbar .btn { border-color: rgba(255,255,255,.5); color: #fff; padding: 8px 14px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--fg); color: #fff; padding: 10px 18px; font-size: 13px; z-index: 80; opacity: 0; transition: opacity .2s, transform .3s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.nf { display: grid; place-items: center; height: 100vh; text-align: center; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* reviews / messages */
.fb-links { display: flex; gap: 10px; justify-content: center; align-items: center; margin-bottom: 14px; letter-spacing: .08em; }
.fb-links button { font-size: 12px; color: #555; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.fb-links button:hover { color: var(--fg); border-color: var(--fg); }
.sheet textarea { width: 100%; border: 1px solid var(--line); padding: 12px; outline: none; font: inherit; font-size: 16px; margin-top: 8px; resize: vertical; }
.sheet textarea:focus { border-color: var(--fg); }
.stars { display: flex; gap: 4px; direction: ltr; justify-content: flex-end; margin: 2px 0 12px; }
.stars button { font-size: 30px; line-height: 1; color: #d9d6d0; transition: color .12s, transform .12s; }
.stars button.on { color: #c9a227; }
.stars button:active { transform: scale(.9); }
/* spam trap field: invisible and inside the box (pushing it off to the side made the sheet scroll sideways) */
.hp { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.sheet { overflow-x: hidden; }
.sheet.compact { width: min(380px, calc(100% - 32px)); padding: 22px 20px 18px; }
.sheet.compact h2 { font-size: 18px; }
.sheet.compact p { font-size: 13px; margin-bottom: 10px; }
.sheet.compact .stars button { font-size: 26px; }
.sheet.compact input[type=text], .sheet.compact input[type=email], .sheet.compact textarea { padding: 10px; font-size: 15px; }
@media (max-width: 560px) { .sheet.compact { width: 100%; } .sheet.compact input, .sheet.compact textarea { font-size: 16px; } }
/* home page reviews */
.reviews { max-width: 1180px; margin: 0 auto 70px; padding: 0 16px; }
.reviews h2 { font: 400 30px var(--serif); text-align: center; margin: 0 0 26px; letter-spacing: .03em; }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.rv { background: var(--soft); padding: 22px 22px 18px; }
.rv .st { color: #c9a227; letter-spacing: 2px; font-size: 15px; direction: ltr; text-align: right; }
.rv p { margin: 10px 0 12px; white-space: pre-line; color: #333; }
.rv b { font-weight: 500; font-size: 14px; }
.rv small { display: block; color: var(--muted); font-size: 12px; }

/* face search */
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #555; background: var(--soft); padding: 12px; margin: 4px 0 6px; line-height: 1.6; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--fg); flex: none; }
.consent a { text-decoration: underline; }
.face-opts .opt { width: 100%; display: flex; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); cursor: pointer; text-align: start; }
.face-opts.off { opacity: .35; pointer-events: none; }
.busy { font-size: 13px; color: #555; margin: 10px 0 0; }
.busy::before { content: ""; display: inline-block; width: 12px; height: 12px; border: 2px solid var(--line); border-top-color: var(--fg); border-radius: 50%; margin-inline-end: 8px; vertical-align: -2px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sheet.wide { width: min(760px, calc(100% - 32px)); }
@media (max-width: 560px) { .sheet.wide { width: 100%; } }
.sheet.wide .picker-wrap { text-align: center; }
.picker { position: relative; display: inline-block; margin: 6px 0; max-width: 100%; }
.picker img { max-width: 100%; max-height: 62vh; width: auto; height: auto; display: block; }
.picker button { position: absolute; border: 2px solid #fff; border-radius: 6px; box-shadow: 0 0 0 1px rgba(0,0,0,.35); transition: background .15s, transform .15s; }
.picker button:hover, .picker button.on { background: rgba(255,255,255,.25); transform: scale(1.06); }
body.picking .tile { cursor: crosshair; }
body.picking .tile::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); pointer-events: none; }
.me-note { text-align: center; font-size: 13px; color: #555; margin: 8px 0 14px; }
.me-note button { text-decoration: underline; color: inherit; }

/* video tab */
.videos { max-width: 1100px; margin: 0 auto; padding: 4px 0 30px; display: grid; gap: 40px; }
.vcard .sec-title { margin-top: 18px; }
.vplayer { width: 100%; max-height: 72vh; background: #000; display: block; }
.vmeta { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.vbtns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.vcom { max-width: 760px; margin: 18px auto 0; padding: 0 6px; }
.vcom h3 { font-weight: 500; font-size: 16px; margin: 0 0 4px; }
.vcom .vmeta { text-align: start; }
.vadd { display: flex; gap: 8px; align-items: stretch; }
.vadd textarea { flex: 1; border: 1px solid var(--line); padding: 10px; font: inherit; font-size: 16px; outline: none; resize: vertical; }
.vadd textarea:focus { border-color: var(--fg); }
.vadd .btn { white-space: nowrap; }
@media (max-width: 560px) { .vadd { flex-direction: column; } }
.vlist { list-style: none; padding: 0; margin: 14px 0 0; }
.vlist li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.vlist li.done { opacity: .5; }
.vlist .tc { font-variant-numeric: tabular-nums; background: var(--soft); padding: 2px 8px; font-size: 13px; direction: ltr; }
.vlist .empty-li { color: var(--muted); font-size: 13px; }

/* ---------- album ---------- */
body.album { background: var(--soft); }
.al-top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 10px 16px; flex-wrap: wrap; }
.al-back { font-size: 13px; color: #555; }
.al-t { display: flex; flex-direction: column; line-height: 1.2; margin-inline-start: 6px; }
.al-t b { font: 400 22px var(--serif); }
.al-t span { font-size: 12px; color: var(--muted); }
.al-steps { margin-inline-start: auto; display: flex; gap: 4px; }
.al-steps button { padding: 8px 14px; font-size: 13px; border-radius: 99px; color: #555; }
.al-steps button.on { background: var(--fg); color: #fff; }
.al-main { max-width: 1240px; margin: 0 auto; padding: 18px 16px 90px; }
.al-intro { text-align: center; margin: 10px auto 22px; max-width: 640px; }
.al-intro h1 { font: 400 34px var(--serif); margin: 0 0 6px; }
.al-intro p { color: #555; margin: 0 0 12px; }
.al-acts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.al-next { text-align: center; margin: 26px 0; }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.pp { background: #fff; padding: 10px; display: flex; flex-direction: column; gap: 8px; align-items: center; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.pp.set { border-color: var(--fg); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.pp-face { width: 100%; aspect-ratio: 1; background-color: var(--soft); background-repeat: no-repeat; border-radius: 50%; }
.pp select { width: 100%; padding: 7px; border: 1px solid var(--line); font: inherit; font-size: 13px; background: #fff; }
.pp-n { font-size: 11px; color: var(--muted); }
.spreads { display: grid; gap: 26px; }
.sp-h { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 13px; }
.sp-h b { font-weight: 500; }
.sp-h .n { color: var(--muted); }
.sp-h .sp { flex: 1; }
.has-note { background: #fdf1dc; color: #9a6400; font-size: 11px; padding: 2px 8px; border-radius: 99px; }
.mini { font-size: 12px; padding: 6px 10px; border: 1px solid var(--line); background: #fff; }
.spread { position: relative; aspect-ratio: var(--sp-ar, 8 / 3); background: #fbfbf9; box-shadow: 0 10px 30px rgba(0,0,0,.08); direction: ltr; overflow: hidden; }
.spread::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: linear-gradient(rgba(0,0,0,.02), rgba(0,0,0,.12), rgba(0,0,0,.02)); pointer-events: none; }
.fr { position: absolute; overflow: hidden; background: #e7e4dd; cursor: pointer; padding: 0; }
.fr img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.fr:hover img { transform: scale(1.03); }
.fr .num { position: absolute; top: 6px; left: 6px; background: #f5c400; color: #111; font: 600 11px/1 var(--sans); font-style: normal; padding: 4px 6px; border-radius: 4px; }
.fr .nt { position: absolute; top: 6px; right: 6px; background: #fff; color: #9a6400; font-style: normal; font-size: 12px; padding: 2px 6px; border-radius: 4px; }
.empty-fr { display: grid; place-items: center; height: 100%; font-size: 28px; color: #999; }
.fs-img { max-width: 100%; max-height: 50vh; display: block; margin: 6px auto 12px; }
.fs-note { background: #fdf1dc; padding: 8px 10px; font-size: 13px; }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 4px; max-height: 55vh; overflow: auto; margin: 8px 0; }
.pk { aspect-ratio: 1; overflow: hidden; padding: 0; position: relative; }
.pk img { width: 100%; height: 100%; object-fit: cover; }
.pk.used::after { content: "באלבום"; position: absolute; inset: auto 4px 4px auto; background: rgba(0,0,0,.6); color: #fff; font-size: 10px; padding: 1px 5px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.sheet textarea { width: 100%; border: 1px solid var(--line); padding: 12px; outline: none; font: inherit; font-size: 16px; resize: vertical; }

.album-btn { font-size: 12px; letter-spacing: .06em; border: 1px solid var(--fg); padding: 7px 12px; margin-inline-end: 6px; white-space: nowrap; transition: background .2s, color .2s; }
.album-btn:hover { background: var(--fg); color: #fff; }
@media (max-width: 420px) { .album-btn { padding: 6px 8px; font-size: 11px; } }

/* zoom in the lightbox */
.lb-stage { touch-action: none; cursor: zoom-in; }
.lb-stage.zoomed { cursor: grab; }
.lb-stage.zoomed:active { cursor: grabbing; }
.lb-stage img { transform-origin: center center; will-change: transform; }
.lb-stage.zoomed .lb-nav { display: none; }

/* ---------- album v2 (SmartAlbums-style editor) ---------- */
.al-lang { margin-inline-start: 8px; font-size: 12px; border: 1px solid var(--line); padding: 6px 10px; border-radius: 99px; }
.al-main.design { max-width: 1520px; }
.filters.center { justify-content: center; margin-bottom: 14px; }
.chip small { color: var(--muted); margin-inline-start: 4px; }
.chip.on small { color: #ddd; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 5px; }
.pk2 { position: relative; aspect-ratio: 1; overflow: hidden; padding: 0; background: #ddd; }
.pk2 img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s, transform .2s; }
.pk2 i { position: absolute; top: 6px; inset-inline-end: 6px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.25); }
.pk2.on { outline: 3px solid var(--fg); outline-offset: -3px; }
.pk2.on i { background: var(--fg); border-color: var(--fg); }
.pk2.on i::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pk2:not(.on) img { opacity: .75; }

.ed-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ed-nav { display: flex; align-items: center; gap: 10px; }
.ed-nav b { font-weight: 500; font-size: 16px; }
.ed-nav .stage { background: var(--fg); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 99px; letter-spacing: .04em; }
.icon-btn2 { width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; font-size: 16px; }
.icon-btn2:hover { border-color: var(--fg); }
.ed-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.btn.sm { padding: 7px 14px; font-size: 12px; }
.extra { margin: -4px 0 10px; font-size: 13px; color: #9a6400; background: #fdf1dc; padding: 6px 10px; display: inline-block; }
.ed-work { display: grid; grid-template-columns: 1fr 270px; gap: 16px; align-items: start; }
@media (max-width: 980px) { .ed-work { grid-template-columns: 1fr; } }
.ed-stage { position: relative; }
.sp2 { position: relative; aspect-ratio: var(--sp-ar, 8 / 3); background: #fbfaf7; box-shadow: 0 14px 40px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.05); overflow: hidden; }
.sp2::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: linear-gradient(rgba(0,0,0,.03), rgba(0,0,0,.14), rgba(0,0,0,.03)); pointer-events: none; }
.sp2-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.fr2 { position: absolute; overflow: hidden; background: #e4e1da; cursor: grab; transition: outline-color .15s; outline: 2px solid transparent; outline-offset: -2px; }
.fr2 img { position: absolute; max-width: none; pointer-events: none; user-select: none; }
.fr2:hover { outline-color: rgba(0,0,0,.25); }
.fr2.over { outline: 3px solid #2f7dd3; }
.fr2.cropping { outline: 3px solid #f5c400; cursor: move; z-index: 2; touch-action: none; }
.crop-bar { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 10px; background: #fff; border: 1px solid var(--line); padding: 8px; font-size: 13px; }
.ed-lay { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 12px 0 8px; font-size: 13px; }
.ed-lay .cw { color: #9a6400; font-style: normal; }
.ed-vars { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.var { width: 118px; padding: 3px; border: 1px solid var(--line); background: #fff; }
.var.on { border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg); }
.sp2.mini { box-shadow: none; }
.sp2.wire span { position: absolute; background: #cfcac0; }
.ed-tray { background: #fff; border: 1px solid var(--line); padding: 10px; position: sticky; top: 74px; max-height: calc(100vh - 100px); overflow: auto; }
.tray-h { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; }
.tray-h .tg { font-size: 12px; }
.ed-tray .meta { font-size: 12px; margin: 6px 0 8px; }
.tray-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.tr { aspect-ratio: 1; overflow: hidden; cursor: grab; position: relative; }
.tr img { width: 100%; height: 100%; object-fit: cover; }
.tr.used { opacity: .35; }
.tr.used::after { content: "✓"; position: absolute; bottom: 2px; inset-inline-end: 4px; color: #fff; font-size: 12px; text-shadow: 0 1px 2px #000; }
.timeline { display: flex; gap: 8px; overflow-x: auto; padding: 14px 2px 6px; margin-top: 16px; border-top: 1px solid var(--line); scrollbar-width: thin; }
.tl { flex: none; width: 150px; padding: 3px; background: #fff; border: 1px solid var(--line); position: relative; }
.tl.on { border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg); }
.tl.extra-p { border-style: dashed; }
.tl-n { position: absolute; top: -9px; inset-inline-start: 6px; background: #fff; font-size: 11px; padding: 0 4px; z-index: 1; }
.sp2.mini .fr2 { cursor: pointer; outline: none; }
.lang-btn { font-size: 11px; letter-spacing: .06em; border: 1px solid var(--line); padding: 6px 9px; border-radius: 99px; color: #555; margin-inline: 4px; }
.lang-btn:hover { border-color: var(--fg); color: var(--fg); }
.home-head .tools { align-items: center; }
/* album editor: selected frame, handles, inspector, crop mode */
.fr2.sel { outline: 2px solid #2f7dd3; cursor: move; touch-action: none; z-index: 1; }
.sel-box { position: absolute; pointer-events: none; z-index: 3; }
.sel-box .hd, .crop-ghost .hd { position: absolute; width: 12px; height: 12px; background: #fff; border: 2px solid #2f7dd3; border-radius: 2px; pointer-events: auto; touch-action: none; transform: translate(-50%, -50%); }
.hd-nw { left: 0; top: 0; cursor: nwse-resize; } .hd-n { left: 50%; top: 0; cursor: ns-resize; } .hd-ne { left: 100%; top: 0; cursor: nesw-resize; }
.hd-e { left: 100%; top: 50%; cursor: ew-resize; } .hd-se { left: 100%; top: 100%; cursor: nwse-resize; } .hd-s { left: 50%; top: 100%; cursor: ns-resize; }
.hd-sw { left: 0; top: 100%; cursor: nesw-resize; } .hd-w { left: 0; top: 50%; cursor: ew-resize; }
.sp2.crop-on { overflow: visible; z-index: 5; }
.crop-ghost { position: absolute; z-index: 1; cursor: move; touch-action: none; outline: 1px dashed rgba(245,196,0,.9); }
.crop-ghost img { width: 100%; height: 100%; opacity: .35; pointer-events: none; user-select: none; }
.crop-ghost .hd { border-color: #f5c400; }
.insp { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 10px; display: grid; gap: 8px; }
.nav-ph { position: relative; width: 100%; cursor: grab; touch-action: none; user-select: none; z-index: 5; }
.nav-ph:active { cursor: grabbing; }
.nav-ph img { position: absolute; max-width: none; display: block; pointer-events: none; }
.nav-bk { opacity: 0; transition: opacity .15s; }
.nav-ph.act .nav-bk { opacity: .35; }
.nav-box { position: absolute; overflow: hidden; outline: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); pointer-events: none; }
.insp-h { display: flex; justify-content: space-between; align-items: center; }
.insp .sl { display: grid; grid-template-columns: 52px 1fr 42px; align-items: center; gap: 6px; font-size: 12px; }
.insp .sl output { font-size: 11px; color: var(--muted); text-align: end; }
.insp-row { display: flex; flex-wrap: wrap; gap: 6px; }
.insp .mini.on { background: var(--fg); color: #fff; }
.insp .meta { font-size: 11px; margin: 0; }
/* the inspector and tray on the right, like SmartAlbums (in Hebrew the first grid column is the right one) */
.ed-work:dir(rtl) { grid-template-columns: 270px 1fr; }
.ed-work:dir(rtl) .ed-tray { order: -1; }
@media (max-width: 980px) { .ed-work:dir(rtl) { grid-template-columns: 1fr; } .ed-work:dir(rtl) .ed-tray { order: 0; } }
.ed-sides { display: flex; justify-content: space-between; gap: 10px; margin: -2px 0 10px; }
.ed-sides:empty { display: none; }
.ed-sides .side { display: flex; align-items: center; gap: 8px; font-size: 13px; }
/* the design step fits the window: the spread takes the height that is left, layouts in one row, pages pinned below */
.al-main.design { padding-bottom: 0; padding-top: 10px; }
.al-main.design .ed-bar { margin-bottom: 8px; }
.ed-stage > .sp2 { width: min(100%, calc((100vh - 360px) * var(--sp-k, 2.6667))); margin-inline: auto; }
.ed-lay { margin: 8px 0 4px; }
.ed-vars { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 2px 2px 6px; scrollbar-width: thin; }
.ed-vars .var { flex: none; width: 92px; }
.ed-sides { margin: 0 0 6px; }
.al-main.design .timeline { position: sticky; bottom: 0; z-index: 6; background: var(--soft); margin-top: 8px; padding: 12px 2px 8px; }
.al-main.design .tl { width: 118px; }
.ed-tray { max-height: calc(100vh - 230px); }
.ed-work > * { min-width: 0; }
/* photo numbers, restarting on every page */
.fr2 .pn { position: absolute; top: 5px; inset-inline-start: 5px; min-width: 20px; height: 20px; padding: 0 5px; background: #f5c400; color: #111; font: 600 12px/20px var(--sans, system-ui); text-align: center; border-radius: 3px; pointer-events: none; z-index: 1; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.sp2.previewing .pn { display: none; }
/* the AI assistant */
.ai-btn { background: linear-gradient(135deg, #fff6d6, #f1e8ff); }
.ai-panel { position: fixed; bottom: 16px; inset-inline-end: 16px; width: min(360px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0,0,0,.18); z-index: 40; }
.ai-h { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ai-log { flex: 1; overflow: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.ai-m { margin: 0; padding: 8px 10px; font-size: 13px; line-height: 1.45; max-width: 88%; white-space: pre-wrap; }
.ai-m.a { background: #f4f2ee; align-self: flex-start; }
.ai-m.u { background: var(--fg); color: #fff; align-self: flex-end; }
.ai-m.wait { color: var(--muted); font-style: italic; }
.ai-m .mini { display: block; margin-top: 6px; }
.ai-f { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.ai-f textarea { flex: 1; resize: none; font: inherit; font-size: 13px; padding: 7px 8px; border: 1px solid var(--line); }
.ed-lay .mini.on { background: var(--fg); color: #fff; }
/* wide screens: the editor hugs the right edge (Hebrew), the assistant is docked on the left, full height, always open */
@media (min-width: 1280px) {
  body.ai-docked .al-main.design { max-width: none; margin-inline-start: 0; margin-inline-end: 344px; }
  body.ai-docked .ai-panel { top: 68px; bottom: 12px; inset-inline-end: 12px; width: 320px; max-height: none; box-shadow: 0 8px 30px rgba(0,0,0,.08); }
  body.ai-docked .ai-panel [data-x] { display: none; }
}
/* the fold: a clear line with a soft shadow on both sides, above the photos (lighter on the small thumbnails) */
.sp2::after { width: 2px; margin-left: -1px; z-index: 4; background: rgba(0,0,0,.45); box-shadow: 0 0 6px 2px rgba(0,0,0,.18); }
.sp2.mini::after { width: 1px; margin-left: 0; background: rgba(0,0,0,.3); box-shadow: none; }

/* accessibility: visible keyboard focus everywhere, calm motion for those who ask, a skip link, the statement link */
:focus-visible { outline: 2px solid #2f7dd3; outline-offset: 2px; }
.tile:focus-visible, .pk2:focus-visible, .fr2:focus-visible { outline-offset: -3px; }
.skip { position: absolute; top: -40px; inset-inline-start: 8px; z-index: 100; background: #fff; color: #111; padding: 8px 12px; border: 2px solid #2f7dd3; }
.skip:focus { top: 8px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.a11y-link { font-size: 12px; color: var(--muted); text-decoration: underline; margin-inline: 8px; }
.a11y { max-width: 720px; margin: 40px auto; padding: 0 16px; line-height: 1.8; }
.a11y h1 { font: 400 30px var(--serif); }
.a11y h2 { font: 500 18px var(--sans, inherit); margin-top: 26px; }

/* the album on a phone held sideways: the spread fills the height that is left, the tray sits in a narrow column */
@media (orientation: landscape) and (max-height: 520px) {
  .al-top { padding: 6px 10px; gap: 8px; }
  .al-t span, .al-back { display: none; }
  .al-steps button { padding: 5px 10px; font-size: 12px; }
  .al-main.design { padding: 6px 10px 6px; }
  .al-main.design .ed-bar { margin-bottom: 4px; gap: 6px; }
  .ed-nav b { font-size: 14px; }
  .ed-acts .mini, .ed-acts .btn { padding: 5px 8px; font-size: 12px; }
  /* stage first (on the right in Hebrew, the widest column), the tray on the left */
  .ed-work, .ed-work:dir(rtl) { grid-template-columns: minmax(0, 1fr) 132px; gap: 8px; }
  .ed-work .ed-tray, .ed-work:dir(rtl) .ed-tray { order: 0; }
  .ed-stage > .sp2 { width: min(100%, calc((100vh - 165px) * var(--sp-k, 2.6667))); }
  .ed-lay { margin: 4px 0; font-size: 12px; }
  .ed-vars .var { width: 72px; }
  .ed-tray { max-height: calc(100vh - 150px); padding: 6px; top: 4px; }
  .tray-grid { grid-template-columns: repeat(2, 1fr); }
  .ed-tray .meta, .insp .meta { display: none; }
  .timeline { padding-top: 10px; margin-top: 4px; }
  .tl { width: 84px; }
  body.ai-docked .ai-panel, .ai-panel { width: 240px; max-height: 58vh; top: auto; bottom: 8px; }
  .ai-log { padding: 6px 8px; }
  .ai-f textarea { font-size: 12px; }
}

/* face search and the couple's login: labelled buttons, not bare icons */
.face-btn, .couple-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--fg); background: var(--fg); color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; }
.couple-btn { background: #fff; color: var(--fg); }
.face-btn svg, .couple-btn svg { width: 18px; height: 18px; flex: none; }
body.is-client .couple-btn { display: none; }
.hero .face-cta { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.95); color: #111; }
.hero .face-cta svg { width: 18px; height: 18px; flex: none; }
.hero .acts { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 8px; }   /* the two buttons on one line, the same height, whatever is inside them */
.hero .txt .btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; line-height: 1; padding-block: 0; box-sizing: border-box; margin: 0; vertical-align: top; }
@media (max-width: 600px) {
  .face-btn, .couple-btn { height: 34px; padding: 0 11px; font-size: 12px; }
  .hero .txt .btn { padding-inline: 13px; }        /* both hero buttons fit one row on a phone */
}
/* small phones: the bar's buttons keep their icon, the words stay for screen readers, so nothing pushes the page sideways */
@media (max-width: 440px) {
  .bar .ttl { flex: 1 1 auto; }
  .face-btn, .couple-btn { width: 36px; padding: 0; justify-content: center; }
  .face-btn span, .couple-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bar-in { gap: 8px; padding-inline: 10px; }
  .bar .acts .lang-btn, .bar .acts .icon-btn[data-a="key"] { display: none; }   /* moved into the "⋯" menu */
  .bar .acts .icon-btn { width: 36px; height: 36px; }
  .album-btn { margin-inline-end: 2px; }
}
@media (max-width: 380px) { .bar .ttl b { display: none; } }   /* too narrow for the couple's name next to the buttons; the cover shows it */
/* nothing may make the page wider than the screen: a phone browser then zooms the whole page out and fixed layers (the photo viewer) stop filling it */
html, body { overflow-x: clip; }
.menu-lang { display: inline-grid; place-items: center; min-width: 26px; font-size: 11px; border: 1px solid var(--line); border-radius: 99px; padding: 2px 4px; }
.gate { display: grid; gap: 10px; margin-top: 14px; }
.gate .btn { width: 100%; padding: 14px; font-size: 16px; }

/* album workflow: password, waiting, the couple's review, the designer's status and comments */
.al-intro.small { margin: 4px auto 10px; }
.al-intro.small h1 { font-size: 26px; }
.lock { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.lock input { padding: 10px 12px; border: 1px solid var(--line); min-width: 220px; font: inherit; }
.lock .err { flex-basis: 100%; color: #b0362b; font-size: 13px; text-align: center; }
.review .fr2 { cursor: pointer; }
.review .fr2:hover { outline-color: rgba(0,0,0,.35); }
.fr2.ph-note::after { content: "✎"; position: absolute; bottom: 6px; inset-inline-end: 6px; background: #2f7dd3; color: #fff; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; }
.tl.noted { border-color: #2f7dd3; }
.al-status { font-size: 12px; color: var(--muted); padding: 0 6px; }
.notes-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; max-height: 55vh; overflow: auto; }
.notes-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: start; font-size: 14px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
/* album picks inside the gallery */
.tile .alb-on { position: absolute; top: 8px; inset-inline-start: 8px; color: #fff; width: 26px; height: 26px; display: grid; place-items: center; background: rgba(0,0,0,.35); border-radius: 99px; }
.tile .alb-on .icon { width: 16px; height: 16px; }
.book-on .icon { fill: currentColor; fill-opacity: .35; }
.lb-top .book-on { color: #fff; }
.alb-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--line); }
.alb-head p { margin: 0; font-size: 14px; }
.alb-head .btn .icon { width: 16px; height: 16px; }
.toast button { margin-inline-start: 12px; color: inherit; font: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; }
.toast.show:has(button) { pointer-events: auto; }

/* album: the cover and delivery questionnaire after approval */
.cq-form { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; padding-bottom: 90px; }
.cq { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.cq h2 { font-size: 17px; font-weight: 500; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.cq h2 i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--fg); color: #fff; font-size: 13px; display: grid; place-items: center; flex: none; }
.cq h2 .req { color: #b3261e; font-weight: 400; }
.cq .meta { margin: -6px 0 10px; font-size: 13px; }
.cq textarea, .cq input { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.cq textarea:focus, .cq input:focus { outline: none; border-color: var(--fg); }
.cq-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cq-tiles.round { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.cq-t { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 8px; border: 2px solid transparent; border-radius: 12px; background: #f6f5f2; cursor: pointer; font: inherit; color: inherit; }
.cq-t img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.cq-tiles.round .cq-t img { border-radius: 50%; }
.cq-t span { font-size: 14px; }
.cq-t small { font-size: 12px; color: var(--muted); }
.cq-t:hover { border-color: var(--line); }
.cq-t.on { border-color: var(--fg); background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.cq-t[disabled] { opacity: .35; cursor: not-allowed; }
.cq-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; max-height: 420px; overflow: auto; }
.cq-p { padding: 0; border: 3px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.cq-p img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.cq-p.on { border-color: var(--fg); }
.cq-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 14px; justify-content: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
.cq-miss { font-size: 13px; color: var(--muted); max-width: 560px; }
.cq-bar .btn[disabled] { opacity: .4; cursor: not-allowed; }
.cv-sum { max-width: 520px; margin: 18px auto 0; display: grid; gap: 6px; text-align: start; }
.cv-sum div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.cv-sum span { color: var(--muted); }
.cq-addr { display: grid; grid-template-columns: 2fr 2fr 1fr 1fr 1fr; gap: 10px; align-items: end; }
.cq-addr label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); position: relative; }
.cq-addr label small { font-size: 11px; }
.cq-addr input:disabled { background: #f6f5f2; }
.cq-addr .cq-free { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; color: var(--fg); }
.cq-addr .cq-free input { width: auto; }
.cq-addr .cq-err { grid-column: 1 / -1; margin: 0; }
.cq-sug { position: absolute; top: 100%; inset-inline: 0; z-index: 5; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); display: none; max-height: 260px; overflow: auto; }
.cq-sug.open { display: grid; }
.cq-sug button { text-align: start; padding: 10px 12px; border: 0; background: none; font: inherit; font-size: 15px; color: var(--fg); cursor: pointer; }
.cq-sug button:hover, .cq-sug button:focus { background: #f2f1ee; }
@media (max-width: 700px) { .cq-addr { grid-template-columns: 1fr 1fr 1fr; } .cq-addr .cq-ac { grid-column: 1 / -1; } }
.cq-check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.cq-check input { width: 20px; height: 20px; flex: none; }
.cq-check + .meta { margin: 6px 0 0; }
