:root {
  --bg: #FBF7F1; --surface: #FFFFFF; --ink: #1E2A2A; --muted: #66706F; --line: #E6DFD3;
  --brand: #0F6B5C; --brand-dark: #0A4F44; --brand-soft: #E2F1ED; --accent: #F2994A; --danger: #B3261E;
  --radius: 14px; --shadow: 0 6px 24px rgba(30, 42, 42, .10);
  --display: 'Fraunces', Georgia, serif; --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); }
body.in-editor { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); } h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); } h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); } .center { text-align: center; justify-content: center; } .grow { flex: 1; }
.fine { font-size: .82rem; color: var(--muted); }
.row { display: flex; gap: 12px; align-items: center; } .row.wrap { flex-wrap: wrap; } .row.end { justify-content: flex-end; margin-top: 18px; }
.row.two > * { flex: 1; }
.loading { display: grid; place-items: center; min-height: 100vh; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid transparent; background: var(--surface); font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none !important; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--brand); color: #fff; } .btn.primary:hover { background: var(--brand-dark); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: transparent; } .btn.ghost:hover { border-color: var(--ink); }
.btn.danger { background: var(--danger); color: #fff; } .btn.danger-text { color: var(--danger); }
.btn.light { background: #fff; color: var(--brand-dark); } .btn.outline-light { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn.big { padding: 14px 26px; font-size: 1.02rem; } .btn.small { padding: 7px 13px; font-size: .85rem; border-color: var(--line); }
.btn.block { width: 100%; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: .78rem; font-weight: 700; }
.badge { position: absolute; left: 10px; top: 10px; display: inline-flex; gap: 5px; align-items: center; padding: 4px 10px; border-radius: 999px; background: #1E2A2A; color: #F6D98B; font-size: .74rem; font-weight: 700; }
.badge.static { position: static; }

/* header */
.site-head { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 22px; padding: 12px clamp(16px, 4vw, 48px); background: rgba(251, 247, 241, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 9px; font: 700 1.35rem var(--display); color: var(--ink); text-decoration: none !important; }
.logo-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #FFF7EC; font-size: 1.1rem; }
.nav { display: flex; gap: 4px; }
.nav-item { position: relative; }
.nav-item > a { display: block; padding: 9px 13px; border-radius: 9px; color: var(--ink); font-weight: 500; text-decoration: none; }
.nav-item > a:hover { background: #F1EADD; }
.mega { position: absolute; top: 100%; left: 0; min-width: 440px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.mega.right { left: auto; right: 0; min-width: 240px; grid-template-columns: 1fr; }
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega a { display: flex; gap: 10px; padding: 9px 11px; border-radius: 9px; color: var(--ink); text-decoration: none; }
.mega a:hover { background: var(--brand-soft); }
.who { display: grid; gap: 2px; padding: 8px 11px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.who span { color: var(--muted); font-size: .85rem; } .who .pill { justify-self: start; color: var(--brand-dark); }
.search { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; color: var(--muted); }
.search:focus-within { border-color: var(--brand); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 10px 0; color: var(--ink); }
.account { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; font-weight: 700; }

/* layout */
main { min-height: 60vh; }
.page, .band, .browse { max-width: 1280px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 48px); }
.page.narrow { max-width: 860px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 16px; margin: 8px 0 18px; }
.sec-head h2 { margin: 0; } .sec-head a { font-weight: 700; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 12px; }
.empty { max-width: 520px; margin: 80px auto; padding: 0 20px; text-align: center; }
.empty p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .28em; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.4' fill='none' stroke='%230F6B5C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* hero */
.hero { max-width: 1280px; margin: 0 auto; padding: clamp(28px, 6vw, 72px) clamp(16px, 4vw, 48px); display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--brand); margin-bottom: 10px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-art { position: relative; height: min(520px, 62vw); }
.hero-card { position: absolute; width: 46%; border-radius: 10px; overflow: hidden; box-shadow: 0 18px 40px rgba(30, 42, 42, .22); background: #fff; transition: transform .25s; }
.hero-card img { aspect-ratio: 5/7; width: 100%; }
.hero-card.h0 { left: 27%; top: 0; z-index: 2; } .hero-card.h1 { left: 0; top: 14%; transform: rotate(-8deg); } .hero-card.h2 { right: 0; top: 16%; transform: rotate(8deg); }
.hero-card:hover { transform: translateY(-8px) rotate(0); z-index: 3; }

/* template grid */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 26px 20px; }
.tcard { position: relative; }
.tcard-img { position: relative; display: block; border-radius: 10px; overflow: hidden; background: #EEE7DB; box-shadow: 0 2px 10px rgba(30, 42, 42, .08); transition: transform .18s, box-shadow .18s; }
.tcard-img:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tcard-img img, .cat-tile img, .detail-img img { width: 100%; aspect-ratio: 5/7; object-fit: cover; opacity: 0; transition: opacity .3s; }
img.ready { opacity: 1 !important; }
.fav { position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: transparent; box-shadow: 0 1px 6px rgba(0,0,0,.15); }
.fav svg path { stroke: #7a8483; } .fav.on { color: #E2466B; } .fav.on svg path { stroke: #E2466B; }
.fav-wide { color: transparent; } .fav-wide.on { color: #E2466B; } .fav-wide svg path { stroke: #7a8483; } .fav-wide.on svg path { stroke: #E2466B; }
.fav-wide { -webkit-text-fill-color: var(--ink); }
.tcard-meta { display: grid; padding: 10px 2px 0; }
.tcard-meta a { color: var(--ink); font-weight: 700; } .tcard-meta span { color: var(--muted); font-size: .85rem; }
.card-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.cat-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; }
.cat-tile { scroll-snap-align: start; display: grid; gap: 8px; color: var(--ink); font-weight: 700; text-align: center; text-decoration: none !important; }
.cat-tile img { border-radius: 10px; background: #EEE7DB; transition: transform .18s; } .cat-tile:hover img { transform: translateY(-4px); }

/* home sections */
.how { background: var(--brand-soft); padding: 56px clamp(16px, 4vw, 48px); text-align: center; margin: 24px 0; }
.steps { max-width: 1000px; margin: 28px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: left; }
.steps b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; margin-bottom: 12px; }
.steps p { color: #3f4f4d; margin: 0; }
.cta { margin: 40px clamp(16px, 4vw, 48px) 56px; padding: 56px 24px; border-radius: 24px; background: var(--brand); color: #fff; text-align: center; }
.cta p { opacity: .85; }
.site-foot { border-top: 1px solid var(--line); padding: 40px clamp(16px, 4vw, 48px) 24px; background: #F5EFE4; }
.foot-grid { max-width: 1280px; margin: 0 auto 24px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid a:not(.logo) { display: block; color: #3f4f4d; padding: 3px 0; } .foot-grid p { color: var(--muted); max-width: 26em; margin-top: 10px; }
.site-foot .fine { max-width: 1280px; margin: 0 auto; }

/* browse */
.browse { display: grid; grid-template-columns: 210px 1fr; gap: 36px; }
.side { position: sticky; top: 84px; align-self: start; display: grid; gap: 2px; }
.side h3 { margin: 14px 0 6px; font-size: .78rem; font-family: var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.side a { padding: 7px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.side a:hover { background: #F1EADD; } .side a.on { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 10px 0 24px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.filters label { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--muted); }
.filters select { padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.filters .count { margin-left: auto; color: var(--muted); font-size: .9rem; }

/* detail */
.detail { display: grid; grid-template-columns: minmax(260px, 440px) 1fr; gap: 48px; align-items: start; margin-bottom: 56px; }
.detail-img { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: #EEE7DB; }
.detail-info { padding-top: 12px; max-width: 34em; } .detail-info h1 { margin-top: 12px; }

/* forms + modal */
label { display: grid; gap: 6px; font-weight: 500; font-size: .92rem; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), textarea, select { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); outline: 0; }
textarea { resize: vertical; }
form { display: grid; gap: 14px; }
label.check { display: flex; align-items: center; gap: 10px; } label.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.form-error { margin: 0; padding: 9px 12px; border-radius: 9px; background: #FCE9E7; color: var(--danger); font-size: .9rem; }
.modal-back { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(20, 28, 28, .55); overflow-y: auto; }
.modal { position: relative; width: min(440px, 100%); padding: 30px; background: var(--surface); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.modal.wide { width: min(560px, 100%); }
.modal-x { position: absolute; right: 12px; top: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; font-size: 1.6rem; line-height: 1; color: var(--muted); }
.modal-x:hover { background: #F1EADD; }
.auth .switch { margin: 16px 0 0; text-align: center; color: var(--muted); }
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { padding: 11px 20px; border-radius: 999px; background: #1E2A2A; color: #fff; font-weight: 500; box-shadow: var(--shadow); animation: pop .2s; transition: opacity .3s; }
.toast.err { background: var(--danger); } .toast.out { opacity: 0; }
@keyframes pop { from { transform: translateY(10px); opacity: 0; } }

/* account pages */
.inv-list { display: grid; gap: 12px; }
.inv-row { display: flex; gap: 18px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none !important; }
.inv-row:hover { border-color: var(--brand); } .inv-row img { width: 64px; height: auto; border-radius: 6px; } .inv-row > div:nth-child(2) { flex: 1; min-width: 0; }
.inv-row h3 { margin: 0 0 2px; } .inv-row p { margin: 0; }
.mini-stats { display: flex; gap: 16px; color: var(--muted); font-size: .9rem; } .mini-stats b { color: var(--ink); font-size: 1.1rem; }
.dash { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 40px; margin-bottom: 36px; }
.dash-img img { border-radius: 10px; box-shadow: var(--shadow); }
.share { margin: 18px 0; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 12px; }
.copy { display: flex; gap: 8px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.stats div { padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; }
.stats b { font: 700 1.7rem var(--display); } .stats span { color: var(--muted); font-size: .85rem; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); } .table tr:last-child td { border-bottom: 0; }
.tag { padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.tag.yes { background: #DDF2E4; color: #1B6B3A; } .tag.no { background: #FCE9E7; color: var(--danger); } .tag.maybe { background: #FFF1CC; color: #7A5600; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.plan { padding: 28px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; display: grid; gap: 4px; align-content: start; }
.plan.featured { border-color: var(--brand); box-shadow: var(--shadow); } .plan .price { font: 700 2.2rem var(--display); margin: 0; } .plan .btn { margin-top: 20px; }

/* guest page */
.guest { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.guest-head { padding: 18px 0; }
.guest-grid { display: grid; grid-template-columns: minmax(260px, 460px) 1fr; gap: 48px; align-items: start; padding: 16px 0 48px; }
.guest-card img { width: 100%; border-radius: 10px; box-shadow: 0 18px 48px rgba(30, 42, 42, .2); }
.facts { display: grid; gap: 12px; margin: 20px 0; } .facts div { display: grid; grid-template-columns: 70px 1fr; gap: 8px; }
.facts dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; padding-top: 3px; } .facts dd { margin: 0; font-weight: 500; } .facts a { display: block; font-size: .88rem; font-weight: 700; }
.guest-msg { padding: 14px 16px; background: var(--surface); border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; }
.rsvp, .rsvp-done { margin-top: 24px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.choices { display: grid; gap: 8px; }
.choices label { display: block; } .choices input { position: absolute; opacity: 0; }
.choices span { display: block; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 700; cursor: pointer; }
.choices input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.choices input:focus-visible + span { outline: 3px solid var(--accent); }
.guest-foot { padding: 24px 0 40px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .9rem; }

/* ---------- template cards (hover actions) ---------- */
.tcard { animation: rise .45s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.tcard-img { border-radius: 16px; }
.tcard-img > a { display: block; }
.tcard-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,20,20,.55), transparent 45%); opacity: 0; transition: opacity .2s; pointer-events: none; }
.tcard-img:hover::after, .tcard-img:focus-within::after { opacity: 1; }
.tcard-hover { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; display: flex; gap: 6px; opacity: 0; transform: translateY(8px); transition: .2s; }
.tcard-img:hover .tcard-hover, .tcard-img:focus-within .tcard-hover { opacity: 1; transform: none; }
.tcard-hover .btn { flex: 1; padding: 9px 8px; border: 0; }
.btn.glass { background: rgba(255,255,255,.88); backdrop-filter: blur(8px); color: var(--ink); }
.tcard .fav { z-index: 2; transition: transform .15s; } .tcard .fav:hover { transform: scale(1.12); }
.tcard .badge { z-index: 2; }
.tcard-meta span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dots { display: inline-flex; } .dots b { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.12); margin-left: -4px; }
.tgrid.dense { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 14px; }
.tgrid.dense .tcard-meta span, .tgrid.dense .tcard-hover [data-quick] { display: none; } .tgrid.dense .tcard-meta a { font-size: .85rem; }

/* ---------- browse (dynamic filters) ---------- */
.bx-hero { position: relative; overflow: hidden; background:
  radial-gradient(60% 120% at 12% 0%, #FFD9C2 0, transparent 60%), radial-gradient(50% 100% at 88% 10%, #D6C8FF 0, transparent 60%),
  radial-gradient(60% 120% at 60% 110%, #BFEBDD 0, transparent 60%), var(--bg); }
.bx-hero-in { max-width: 1400px; margin: 0 auto; padding: clamp(24px, 4vw, 52px) clamp(16px, 4vw, 48px) clamp(20px, 3vw, 40px); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.bx-hero h1 { font-size: clamp(2.2rem, 5.2vw, 4.2rem); letter-spacing: -.03em; margin-bottom: .25em; }
.bx-sub { color: #46524F; max-width: 40em; } .bx-sub b { color: var(--ink); }
.bx-search { display: flex; flex-direction: row; align-items: center; gap: 10px; max-width: 520px; margin-top: 18px; padding: 4px 14px 4px 18px; border-radius: 999px; background: rgba(255,255,255,.8); backdrop-filter: blur(12px); border: 1.5px solid rgba(255,255,255,.9); box-shadow: 0 8px 30px rgba(30,42,42,.10); color: var(--muted); }
.bx-search:focus-within { border-color: var(--brand); }
.bx-search input { flex: 1; border: 0 !important; background: none !important; padding: 12px 0 !important; outline: 0; font-size: 1.02rem; }
kbd { font: 600 .72rem var(--body); padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--muted); }
.bx-fan { position: relative; width: clamp(220px, 26vw, 360px); height: clamp(190px, 21vw, 290px); }
.bx-fan img { position: absolute; bottom: -18%; width: 44%; height: auto; border-radius: 10px; box-shadow: 0 16px 36px rgba(30,42,42,.25); opacity: 0; transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.bx-fan .f0 { left: 28%; z-index: 2; } .bx-fan .f1 { left: 0; transform: rotate(-10deg) translateY(8%); } .bx-fan .f2 { right: 0; transform: rotate(10deg) translateY(8%); }
.bx-hero:hover .bx-fan .f1 { transform: rotate(-14deg) translate(-6%, 4%); } .bx-hero:hover .bx-fan .f2 { transform: rotate(14deg) translate(6%, 4%); }

.bx-bar { position: sticky; top: 65px; z-index: 20; padding: 10px clamp(16px, 4vw, 48px); background: rgba(251,247,241,.82); backdrop-filter: blur(14px) saturate(1.4); border-block: 1px solid var(--line); }
.bx-cats, .bx-facets { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; gap: 8px; }
.bx-cats { overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; } .bx-cats::-webkit-scrollbar { display: none; }
.bx-facets { flex-wrap: wrap; row-gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: .92rem; white-space: nowrap; text-decoration: none !important; transition: .15s; }
.chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.chip em, .pop-body em { font-style: normal; font-size: .76rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: #F1EADD; color: var(--muted); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; } .chip.on em { background: rgba(255,255,255,.2); color: #fff; }
.chip.zero { opacity: .45; }
.pop { position: relative; }
.pop summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: .9rem; cursor: pointer; }
.pop summary::-webkit-details-marker { display: none; } .pop summary::after { content: '▾'; color: var(--muted); }
.pop summary b { display: grid; place-items: center; min-width: 20px; height: 20px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .72rem; }
.pop[open] summary { border-color: var(--ink); }
.pop-body { position: absolute; top: calc(100% + 8px); left: 0; z-index: 5; width: 300px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(30,42,42,.18); animation: pop .15s; }
.pop-body label { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px; font-size: .88rem; cursor: pointer; } .pop-body label:hover { background: var(--brand-soft); }
.pop-body input { accent-color: var(--brand); width: 16px; height: 16px; } .pop-body em { margin-left: auto; } .pop-body .zero { opacity: .45; }
.bx-colors { display: flex; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); }
.bx-colors button { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: var(--c); box-shadow: 0 0 0 1px rgba(0,0,0,.14); padding: 0; transition: transform .12s; }
.bx-colors button:hover:not(:disabled) { transform: scale(1.18); } .bx-colors button.on { box-shadow: 0 0 0 2.5px var(--ink); transform: scale(1.12); } .bx-colors button:disabled { opacity: .2; cursor: default; }
.seg-pill { display: inline-flex; padding: 3px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); }
.seg-pill button { padding: 6px 13px; border: 0; border-radius: 999px; background: none; font-weight: 600; font-size: .86rem; color: var(--muted); white-space: nowrap; }
.seg-pill button.on { background: var(--ink); color: #fff; } .seg-pill.icons button { padding: 6px 10px; font-size: 1rem; line-height: 1; }
.bx-sort { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; }
.bx-sort select { width: auto !important; padding: 8px 12px !important; border-radius: 999px !important; font-weight: 600; }
.bx-wrap { max-width: 1400px; margin: 0 auto; padding: 18px clamp(16px, 4vw, 48px) 64px; }
.bx-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 36px; margin-bottom: 18px; }
.bx-active .count { margin-right: 6px; color: var(--muted); } .bx-active .count b { color: var(--ink); font: 700 1.3rem var(--display); }
.pill-x { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px; border-radius: 999px; border: 0; background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; font-size: .86rem; animation: pop .15s; }
.pill-x i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(15,107,92,.15); font-style: normal; } .pill-x:hover i { background: var(--brand); color: #fff; }
.link { border: 0; background: none; color: var(--brand); font-weight: 700; text-decoration: underline; padding: 4px 6px; }
.bx-wrap .tgrid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px 22px; } .bx-wrap .tgrid.dense { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 14px; }

/* quick look */
.modal.ql { width: min(900px, 100%); padding: 0; overflow: hidden; }
.ql-body { display: grid; grid-template-columns: 1.1fr 1fr; }
.ql-art { position: relative; display: grid; place-items: center; padding: 34px 56px; }
.ql-art img { width: 100%; max-width: 330px; border-radius: 10px; box-shadow: 0 20px 50px rgba(30,42,42,.28); opacity: 0; transition: opacity .25s; }
.ql-nav { position: absolute; top: 50%; translate: 0 -50%; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 1.5rem; line-height: 1; box-shadow: var(--shadow); }
.ql-nav.prev { left: 10px; } .ql-nav.next { right: 10px; } .ql-nav:hover { background: #fff; }
.ql-info { padding: 44px 30px 26px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; } .ql-info h2 { margin: 6px 0 0; } .ql-info p { margin: 0; }
.ql-tags { display: flex; flex-wrap: wrap; gap: 6px; } .ql-tags span { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: .8rem; } .cap { text-transform: capitalize; }
.ql-colors { display: flex; gap: 6px; margin-bottom: 8px; } .ql-colors b { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.14); }
.ql-more { font-weight: 700; align-self: center; } .ql-info .fine { align-self: center; margin-top: auto; }
.pv-modal { width: min(560px, 100%) !important; background: linear-gradient(150deg, #20222b, #111218) !important; color: #cfd3de; }
.pv { display: grid; place-items: center; padding: 10px 0 18px; } .pv img { width: min(380px, 100%); border-radius: 6px; box-shadow: 0 30px 70px rgba(0,0,0,.6); transform: rotate(-2deg); } .pv-modal .fine { color: #9aa0b0; } .pv-modal .modal-x { color: #cfd3de; }

/* ---------- builder ---------- */
.ed { --e-bg: #0B0C11; --e-panel: #14161D; --e-raise: #1D2029; --e-line: #2A2E3A; --e-text: #ECEEF4; --e-mut: #8F95A6; --e-acc: #8B6CFF;
  --e-grad: linear-gradient(120deg, #8B6CFF, #FF4D9D 55%, #FFB23F);
  display: grid; grid-template-rows: 60px 1fr; height: 100vh; height: 100dvh; background: var(--e-bg); color: var(--e-text); font-size: 14px; }
.ed ::-webkit-scrollbar { width: 10px; height: 10px; } .ed ::-webkit-scrollbar-thumb { background: #2f3442; border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
.ed :focus-visible { outline: 2px solid var(--e-acc); outline-offset: 2px; }
.ed-top { display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--e-panel); border-bottom: 1px solid var(--e-line); min-width: 0; position: relative; z-index: 6; }
.ed-top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--e-grad); opacity: .7; }
.ed-brand { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--e-grad); color: #fff; font: 700 1.05rem var(--display); box-shadow: 0 0 24px rgba(255,77,157,.45); }
.ed-div { width: 1px; height: 24px; background: var(--e-line); margin: 0 4px; }
.ed-ic { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: none; color: var(--e-text); text-decoration: none !important; }
.ed-ic:hover:not(:disabled) { background: var(--e-raise); } .ed-ic:disabled { opacity: .28; cursor: default; }
.ed .ed-name { width: clamp(120px, 20vw, 260px); padding: 8px 10px; border: 1.5px solid transparent; border-radius: 9px; background: none; color: var(--e-text); font-weight: 700; }
.ed .ed-name:hover { border-color: var(--e-line); } .ed .ed-name:focus { border-color: var(--e-acc); background: var(--e-bg); }
.ed-status { font-size: .8rem; color: var(--e-mut); white-space: nowrap; margin-left: 6px; }
.ed-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--e-line); background: var(--e-raise); color: var(--e-text); font-weight: 700; white-space: nowrap; }
.ed-btn:hover { border-color: #4a5063; } .ed-btn svg { width: 15px; height: 15px; }
.ed-btn.hot { border: 0; background: var(--e-grad); background-size: 180% 100%; color: #fff; box-shadow: 0 6px 24px rgba(139,108,255,.45); animation: sheen 5s linear infinite alternate; }
@keyframes sheen { to { background-position: 100% 0; } }
.ed-menu { position: relative; }
.ed-drop, .ed-ctx { z-index: 60; padding: 6px; background: #1b1e27; border: 1px solid var(--e-line); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.ed-drop { position: absolute; right: 0; top: calc(100% + 8px); width: 270px; }
.ed-drop button { display: grid; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 9px; background: none; color: var(--e-text); }
.ed-drop button:hover, .ed-ctx button:hover:not(:disabled) { background: #2a2e3c; } .ed-drop span { font-size: .8rem; color: var(--e-mut); }
.ed-ctx { position: fixed; width: 220px; }
.ed-ctx button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--e-text); text-align: left; }
.ed-ctx button:disabled { opacity: .35; cursor: default; } .ed-ctx hr { border: 0; border-top: 1px solid var(--e-line); margin: 5px 4px; }
.ed kbd { background: #0f1117; border-color: var(--e-line); color: var(--e-mut); }

.ed-body { display: grid; grid-template-columns: 76px 312px minmax(0, 1fr) 292px; min-height: 0; }
.ed-rail { display: flex; flex-direction: column; gap: 4px; padding: 10px 7px; background: var(--e-panel); border-right: 1px solid var(--e-line); overflow-y: auto; }
.ed-rail button { position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 2px; border: 0; border-radius: 12px; background: none; color: var(--e-mut); font-size: .68rem; font-weight: 600; }
.ed-rail button:hover { color: var(--e-text); background: var(--e-raise); }
.ed-rail button.on { color: #fff; background: linear-gradient(160deg, rgba(139,108,255,.35), rgba(255,77,157,.22)); box-shadow: inset 0 0 0 1px rgba(139,108,255,.55); }
.ed-panel, .ed-insp { background: var(--e-panel); overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.ed-panel { border-right: 1px solid var(--e-line); } .ed-insp { border-left: 1px solid var(--e-line); padding: 0 0 20px; gap: 0; }
.ed h3 { margin: 0; font: 700 1.05rem var(--body); letter-spacing: 0; } .ed h4 { margin: 8px 0 0; font: 700 .7rem var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--e-mut); }
.ed .hint { color: var(--e-mut); font-size: .82rem; margin: 0; line-height: 1.5; } .hint.pad { padding: 16px; }
.cover-note { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: rgba(139,108,255,.12); border: 1px solid rgba(139,108,255,.4); } .cover-note > b { color: var(--e-text); } .cover-note .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ed input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), .ed textarea, .ed select { background: var(--e-bg); border: 1.5px solid var(--e-line); color: var(--e-text); border-radius: 9px; padding: 8px 10px; font-size: .9rem; }
.ed input:focus, .ed textarea:focus, .ed select:focus { border-color: var(--e-acc) !important; }
.ed input[type=range] { accent-color: var(--e-acc); height: 18px; } .ed select option { background: #1b1e27; }
.ed label { font-size: .84rem; }
.p-btn { width: 100%; padding: 10px; border-radius: 10px; border: 1px solid var(--e-line); background: var(--e-raise); color: var(--e-text); font-weight: 700; } .p-btn:hover { border-color: #4a5063; }
.p-btn.hot { border: 0; background: var(--e-grad); color: #fff; }
.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tpl-grid button { position: relative; padding: 0; border: 0; border-radius: 9px; overflow: hidden; background: var(--e-raise); transition: transform .15s, box-shadow .15s; }
.tpl-grid button:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--e-acc), 0 12px 30px rgba(0,0,0,.5); }
.tpl-grid img { width: 100%; aspect-ratio: 5/7; opacity: 0; transition: opacity .3s; } .tpl-grid i { position: absolute; left: 6px; top: 6px; padding: 1px 6px; border-radius: 6px; background: #111; color: #F6D98B; font-style: normal; font-size: .7rem; }
.add-text { padding: 12px 14px; border: 1px solid var(--e-line); border-radius: 10px; background: var(--e-raise); color: var(--e-text); text-align: left; } .add-text:hover { border-color: var(--e-acc); }
.add-text.h1 { font: 700 1.5rem var(--display); } .add-text.h2 { font-weight: 700; font-size: 1.08rem; }
.combo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.combo-grid button { display: grid; gap: 4px; place-content: center; min-height: 84px; padding: 10px 6px; border: 1px solid var(--e-line); border-radius: 12px; background: var(--e-raise); color: var(--e-text); text-align: center; overflow: hidden; } .combo-grid button:hover { border-color: var(--e-acc); }
.combo-grid b { font-weight: 400; line-height: 1.1; } .combo-grid span { color: var(--e-mut); }
.font-list, .pair-list { display: grid; gap: 4px; }
.font-list button { padding: 8px 12px; border: 0; border-radius: 8px; background: var(--e-raise); color: var(--e-text); text-align: left; font-size: 1.2rem; } .font-list button:hover, .pair-list button:hover { background: #2a2e3c; }
.pair-list button { display: grid; gap: 1px; padding: 9px 12px; border: 0; border-radius: 10px; background: var(--e-raise); color: var(--e-text); text-align: left; } .pair-list b { font-size: 1.25rem; font-weight: 400; } .pair-list span { color: var(--e-mut); font-size: .82rem; }
.pal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pal-grid button { display: grid; gap: 6px; padding: 6px; border: 1px solid var(--e-line); border-radius: 12px; background: var(--e-raise); color: var(--e-mut); font-size: .76rem; } .pal-grid button:hover { border-color: var(--e-acc); color: var(--e-text); }
.pal-grid span { display: flex; align-items: center; justify-content: center; gap: 4px; height: 46px; border-radius: 8px; } .pal-grid i { width: 16px; height: 16px; border-radius: 50%; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; } .tabs button { padding: 5px 10px; border: 0; border-radius: 999px; background: none; color: var(--e-mut); font-size: .8rem; font-weight: 600; white-space: nowrap; } .tabs button.on { background: var(--e-raise); color: #fff; }
.sticker-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; } .sticker-grid button { aspect-ratio: 1; border: 0; border-radius: 8px; background: none; font-size: 1.5rem; padding: 0; } .sticker-grid button:hover { background: var(--e-raise); transform: scale(1.15); }
.shape-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .shape-grid button { padding: 4px; border: 1px solid var(--e-line); border-radius: 10px; background: var(--e-raise); } .shape-grid button:hover { border-color: var(--e-acc); } .shape-grid canvas { width: 100%; display: block; }
.drop { display: grid; gap: 4px; padding: 22px 12px; border: 1.5px dashed #4a5063; border-radius: 14px; background: var(--e-raise); color: var(--e-text); text-align: center; } .drop:hover { border-color: var(--e-acc); } .drop span { color: var(--e-mut); font-size: .8rem; }
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; } .photo-grid button { padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: #222; } .photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.motif-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.motif-grid button { display: grid; gap: 4px; padding: 4px; border: 1px solid var(--e-line); border-radius: 10px; background: var(--e-raise); font-size: .66rem; color: var(--e-mut); }
.motif-grid button.on { border-color: var(--e-acc); box-shadow: 0 0 0 2px rgba(139,108,255,.3); color: #fff; } .motif-grid canvas { width: 100%; border-radius: 6px; display: block; }
.layers { display: grid; gap: 4px; }
.layer { display: flex; align-items: center; gap: 2px; padding: 6px 6px 6px 10px; border: 1px solid var(--e-line); border-radius: 9px; cursor: pointer; background: var(--e-raise); }
.layer span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .layer.on { border-color: var(--e-acc); background: rgba(139,108,255,.16); } .layer.off span { opacity: .4; }
.layer button, .mini { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 7px; background: none; color: var(--e-mut); } .layer button:hover, .mini:hover { background: #2f3442; color: #fff; }
.layer svg, .mini svg { width: 15px; height: 15px; } .layer .act, .mini.act { color: #FFB23F; }
.field { display: grid; gap: 6px; font-size: .82rem; font-weight: 500; } .field > span { display: flex; justify-content: space-between; color: #C3C8D6; } .field em { font-style: normal; color: var(--e-mut); font-variant-numeric: tabular-nums; }
.colors { display: flex; flex-wrap: wrap; gap: 6px; }
.sw { width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.22); } .sw:hover { transform: scale(1.12); }
.sw.on { box-shadow: 0 0 0 2px var(--e-panel), 0 0 0 4px var(--e-acc); }
.sw.custom { display: block; overflow: hidden; background: conic-gradient(#f44, #fc3, #4c6, #3bf, #a5f, #f44); cursor: pointer; } .sw.custom input { opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.sw.none { background: linear-gradient(135deg, transparent 45%, #ff5a6e 45% 55%, transparent 55%), #fff; } .sw.pick { background: var(--e-raise); color: var(--e-text); font-size: .9rem; line-height: 1; }
.seg { display: flex; gap: 4px; } .seg.wide button { flex: 1; } .seg.wrap { flex-wrap: wrap; } .seg .gap { flex: 1; }
.seg button { min-width: 34px; padding: 7px 9px; border: 1px solid var(--e-line); border-radius: 8px; background: var(--e-raise); color: var(--e-text); font-size: .82rem; }
.seg button.on { border-color: var(--e-acc); background: rgba(139,108,255,.22); color: #fff; }
.insp-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--e-panel); border-bottom: 1px solid var(--e-line); } .insp-head b { font-size: 1.02rem; }
.sec { border-bottom: 1px solid var(--e-line); }
.sec summary { list-style: none; display: flex; justify-content: space-between; padding: 12px 16px; font: 700 .7rem var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--e-mut); cursor: pointer; }
.sec summary::-webkit-details-marker { display: none; } .sec summary::after { content: '+'; font-size: 1rem; line-height: .8; } .sec[open] summary::after { content: '−'; } .sec summary:hover { color: #fff; }
.sec-b { display: grid; gap: 12px; padding: 2px 16px 16px; }
.align { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; } .align button { padding: 7px 0; border: 1px solid var(--e-line); border-radius: 8px; background: var(--e-raise); color: var(--e-text); font-size: 1rem; line-height: 1; } .align button:hover { border-color: var(--e-acc); }
.nums { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.num { display: flex; flex-direction: row; align-items: center; gap: 0; border: 1.5px solid var(--e-line); border-radius: 9px; background: var(--e-bg); overflow: hidden; } .num:focus-within { border-color: var(--e-acc); }
.num span { padding: 0 0 0 9px; color: var(--e-mut); font-size: .76rem; font-weight: 700; } .ed .num input { border: 0 !important; padding: 7px 6px; min-width: 0; background: none; } .num input:disabled { opacity: .4; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: .84rem; } .kv span { color: var(--e-mut); }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; font-size: .82rem; } .keys kbd { justify-self: start; white-space: nowrap; } .keys span { color: var(--e-mut); }
.keys.light kbd { background: #fff; border-color: var(--line); color: var(--ink); } .keys.light span { color: var(--muted); }

.ed-stage { position: relative; display: grid; grid-template-rows: 1fr 44px; min-width: 0; min-height: 0;
  background: radial-gradient(40% 50% at 18% 12%, rgba(139,108,255,.20), transparent 70%), radial-gradient(40% 50% at 86% 88%, rgba(255,77,157,.16), transparent 70%), radial-gradient(#252936 1px, transparent 1px) 0 0 / 22px 22px, var(--e-bg); }
.ed-stage.dropping::after { content: 'Drop photos to add them'; position: absolute; inset: 14px 14px 58px; z-index: 30; display: grid; place-items: center; border: 2px dashed var(--e-acc); border-radius: 18px; background: rgba(139,108,255,.14); font-weight: 700; font-size: 1.1rem; pointer-events: none; }
.ed-scroll { overflow: auto; display: grid; place-items: center; padding: 70px 48px 50px; min-height: 0; }
.ed-art { position: relative; flex: none; background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 30px 80px rgba(0,0,0,.65), 0 0 120px rgba(139,108,255,.22); }
.ed-art canvas { width: 100%; height: 100%; display: block; }
.ed-over { position: absolute; inset: 0; touch-action: none; }
.ed-grid { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(45,127,249,.22) 1px, transparent 1px) 0 0 / 100% 5%, linear-gradient(90deg, rgba(45,127,249,.22) 1px, transparent 1px) 0 0 / 7.1429% 100%; }
.ed-safe { position: absolute; inset: 3.6% 5%; pointer-events: none; border: 1px dashed #FF4D9D; }
.ed-safe::after { content: 'Safe print area'; position: absolute; left: 4px; top: 3px; font-size: 10px; color: #FF4D9D; }
.ed-guides i { position: absolute; background: #FF2E93; pointer-events: none; } .ed-guides .gv { top: 0; bottom: 0; width: 1px; } .ed-guides .gh { left: 0; right: 0; height: 1px; }
.bx { position: absolute; box-sizing: border-box; border: 1.5px solid #8B6CFF; pointer-events: none; box-shadow: 0 0 0 1px rgba(255,255,255,.5); } .bx.locked { border-style: dashed; border-color: #FFB23F; }
.hd { position: absolute; width: 13px; height: 13px; margin: -7px; background: #fff; border: 1.5px solid #8B6CFF; border-radius: 50%; pointer-events: auto; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.hd.nw { left: 0; top: 0; cursor: nwse-resize; } .hd.ne { left: 100%; top: 0; cursor: nesw-resize; } .hd.sw { left: 0; top: 100%; cursor: nesw-resize; } .hd.se { left: 100%; top: 100%; cursor: nwse-resize; }
.hd.w, .hd.e { top: 50%; width: 8px; height: 20px; margin: -10px -4px; border-radius: 5px; cursor: ew-resize; } .hd.w { left: 0; } .hd.e { left: 100%; }
.hd.n, .hd.s { left: 50%; width: 20px; height: 8px; margin: -4px -10px; border-radius: 5px; cursor: ns-resize; } .hd.n { top: 0; } .hd.s { top: 100%; }
.hd.rot { left: 50%; top: calc(100% + 26px); width: 18px; height: 18px; margin: -9px; cursor: grab; background: #8B6CFF; border-color: #fff; }
.bx[data-type=text] .n, .bx[data-type=text] .s, .bx[data-type=sticker] :is(.n, .s, .e, .w), .bx[data-type=image] :is(.n, .s, .e, .w) { display: none; }
.ed-marquee { position: absolute; border: 1px solid #8B6CFF; background: rgba(139,108,255,.14); pointer-events: none; }
.ed .ed-inline { position: absolute; z-index: 4; margin: 0; padding: 0 !important; border: 0 !important; border-radius: 0 !important; outline: 1.5px dashed #8B6CFF; outline-offset: 3px; background: rgba(255,255,255,.06) !important; resize: none; overflow: hidden; white-space: pre-wrap; transform-origin: center; }
.ed-float { position: absolute; z-index: 5; translate: -50% 0; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 12px; background: #1b1e27; border: 1px solid #353a49; box-shadow: 0 12px 30px rgba(0,0,0,.55); white-space: nowrap; animation: pop .14s; }
.ed-float button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; color: var(--e-text); } .ed-float button:hover { background: #2f3442; } .ed-float button[data-ctx=del]:hover { background: #5b1f2a; color: #ff8fa0; }
.ed-float svg { width: 17px; height: 17px; } .ed-float em { font-style: normal; font-size: .76rem; color: var(--e-mut); padding: 0 8px; }
.ed-foot { display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--e-panel); border-top: 1px solid var(--e-line); font-size: .82rem; color: var(--e-mut); }
.ed-foot button { min-width: 30px; height: 30px; padding: 0 9px; border: 0; border-radius: 8px; background: none; color: var(--e-text); } .ed-foot button:hover { background: var(--e-raise); }
.ed-zoomr { width: 120px; } .ed-zoomv { min-width: 42px; text-align: center; font-variant-numeric: tabular-nums; }
.tg { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--e-line); cursor: pointer; } .tg input { accent-color: var(--e-acc); } .tg:has(:checked) { color: #fff; border-color: rgba(139,108,255,.6); background: rgba(139,108,255,.14); }

/* ================= UI/UX pass: fixes + richer site ================= */
::selection { background: #BFEBDD; color: var(--ink); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
main:focus { outline: none; }
.btn { min-height: 42px; } .btn.small { min-height: 34px; } .btn.big { min-height: 52px; }
.btn.primary { box-shadow: 0 6px 18px rgba(15,107,92,.22); } .btn.primary:hover { box-shadow: 0 8px 24px rgba(15,107,92,.32); transform: translateY(-1px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; } .eyebrow i { width: 22px; height: 2px; border-radius: 2px; background: var(--accent); } .eyebrow.center { display: flex; justify-content: center; }
.sec-head { align-items: flex-end; } .sec-head .eyebrow { margin-bottom: 6px; } .sec-head h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); letter-spacing: -.02em; }
.band { padding-block: clamp(32px, 5vw, 64px); }

/* header: the search field no longer draws a second border inside the pill */
.site-head { transition: box-shadow .2s, background .2s; } .site-head.scrolled { box-shadow: 0 8px 30px rgba(30,42,42,.08); }
.search { padding: 0 6px 0 16px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.search:focus-within { box-shadow: 0 0 0 4px rgba(15,107,92,.12); }
.search input[type=search] { border: 0 !important; background: transparent !important; padding: 11px 8px !important; border-radius: 0 !important; box-shadow: none; -webkit-appearance: none; appearance: none; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.nav-item > a { font-weight: 600; } .mega { border-radius: 18px; padding: 12px; }
.menu-btn { display: none; width: 42px; height: 42px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 0; place-items: center; gap: 4px; align-content: center; }
.menu-btn i { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: .2s; }
.menu-btn.open i:nth-child(1) { transform: translateY(6px) rotate(45deg); } .menu-btn.open i:nth-child(2) { opacity: 0; } .menu-btn.open i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mnav { position: sticky; top: 66px; z-index: 29; max-height: calc(100dvh - 66px); overflow-y: auto; padding: 16px clamp(16px, 4vw, 48px) 24px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(30,42,42,.12); display: grid; gap: 10px; }
.mnav h4 { margin: 8px 0 0; font: 700 .74rem var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.mnav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .mnav-grid a, .mnav-row { display: flex; gap: 8px; padding: 11px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none !important; }

/* loading shimmer for artwork that is still rendering */
.tcard-img, .cat-tile img, .detail-img, .hero-card, .hm-marquee a, .tpl-grid button { background: linear-gradient(100deg, #EEE7DB 30%, #FAF6EE 50%, #EEE7DB 70%) 0 0 / 220% 100%; animation: shimmer 1.3s linear infinite; }
.tcard-img:has(img.ready), .detail-img:has(img.ready), .hero-card:has(img.ready), .hm-marquee a:has(img.ready), .tpl-grid button:has(img.ready) { animation: none; }
@keyframes shimmer { to { background-position: -220% 0; } }
.tpl-grid button { background-image: linear-gradient(100deg, #1D2029 30%, #2a2e3c 50%, #1D2029 70%); }

/* home hero */
.hm-hero { position: relative; overflow: hidden; background:
  radial-gradient(55% 90% at 8% 0%, #FFD9C2 0, transparent 62%), radial-gradient(45% 80% at 96% 6%, #D9CCFF 0, transparent 60%),
  radial-gradient(50% 90% at 70% 110%, #BFEBDD 0, transparent 62%), var(--bg); }
.hm-in { max-width: 1320px; margin: 0 auto; padding: clamp(36px, 7vw, 96px) clamp(16px, 4vw, 48px) clamp(32px, 5vw, 72px); display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hm-copy h1 { font-size: clamp(2.5rem, 6.2vw, 5rem); line-height: 1.02; letter-spacing: -.035em; margin: 14px 0 18px; }
.grad { background: linear-gradient(100deg, #0F6B5C, #E8683F 55%, #8A63D2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-copy .lede { font-size: clamp(1.02rem, 1.5vw, 1.22rem); }
.hm-search { display: flex; flex-direction: row; align-items: center; gap: 10px; max-width: 560px; margin-top: 26px; padding: 6px 6px 6px 20px; border-radius: 999px; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border: 1.5px solid #fff; box-shadow: 0 14px 40px rgba(30,42,42,.13); color: var(--muted); }
.hm-search:focus-within { border-color: var(--brand); }
.hm-search input { flex: 1; min-width: 0; border: 0 !important; background: none !important; padding: 12px 0 !important; font-size: 1.05rem; outline: 0; }
.hm-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: .9rem; color: var(--muted); }
.hm-quick a { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid rgba(30,42,42,.1); color: var(--ink); font-weight: 600; text-decoration: none !important; transition: .15s; } .hm-quick a:hover { background: #fff; transform: translateY(-1px); }
.hm-proof { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 34px; padding: 0; margin: 34px 0 0; }
.hm-proof li { display: grid; color: var(--muted); font-size: .88rem; } .hm-proof b { font: 700 2rem/1 var(--display); color: var(--ink); }
.hm-art { position: relative; height: clamp(340px, 46vw, 600px); }
.hm-art .hero-card { width: 47%; border-radius: 14px; box-shadow: 0 30px 70px rgba(30,42,42,.28); }
.hm-art .hero-card.h0 { left: 26.5%; top: 2%; z-index: 2; animation: bob 7s ease-in-out infinite; }
.hm-art .hero-card.h1 { left: 0; top: 16%; transform: rotate(-9deg); } .hm-art .hero-card.h2 { right: 0; top: 18%; transform: rotate(9deg); }
@keyframes bob { 50% { translate: 0 -10px; } }
.float { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 9px; border-radius: 999px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); box-shadow: 0 12px 30px rgba(30,42,42,.18); font-weight: 700; font-size: .86rem; animation: bob 6s ease-in-out infinite; }
.float i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-style: normal; font-size: .8rem; }
.f-a { left: -2%; top: 6%; } .f-b { right: 2%; top: 2%; animation-delay: -2s; } .f-b i { background: #8A63D2; } .f-c { left: 12%; bottom: 4%; animation-delay: -4s; } .f-c i { background: #E8683F; }

img[data-thumb] { color: transparent; } .hero-card img, .bx-fan img { opacity: 0; transition: opacity .35s; }

/* marquee */
.hm-marquee { overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); background: #F5EFE4; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hm-marquee .track { display: flex; gap: 18px; width: max-content; animation: slide 60s linear infinite; } .hm-marquee:hover .track, .hm-marquee:focus-within .track { animation-play-state: paused; }
.hm-marquee a { flex: none; width: 132px; border-radius: 9px; overflow: hidden; box-shadow: 0 6px 18px rgba(30,42,42,.14); transition: transform .2s; } .hm-marquee a:hover { transform: translateY(-6px) rotate(-1.5deg); }
.hm-marquee img { width: 100%; aspect-ratio: 5/7; opacity: 0; transition: opacity .3s; }
@keyframes slide { to { transform: translateX(calc(-50% - 9px)); } }
.hm-marquee { display: grid; gap: 18px; } .hm-marquee .track.rev { animation-direction: reverse; animation-duration: 70s; }

/* occasion tiles */
.oc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.oc { position: relative; display: grid; gap: 2px; align-content: end; min-height: 150px; padding: 18px; border-radius: 22px; color: var(--ink); text-decoration: none !important; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.oc:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(30,42,42,.14); }
.oc-ic { position: absolute; right: 12px; top: 8px; font-size: 3.2rem; line-height: 1; transition: transform .25s; } .oc:hover .oc-ic { transform: scale(1.18) rotate(-8deg); }
.oc b { font: 700 1.2rem var(--display); } .oc em { font-style: normal; font-size: .84rem; color: rgba(30,42,42,.62); }
.oc-go { position: absolute; left: 18px; top: 18px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.75); font-style: normal; opacity: 0; transform: translateX(-6px); transition: .2s; } .oc:hover .oc-go { opacity: 1; transform: none; }
.oc0 { background: #FFE1D2; } .oc1 { background: #DDF0E8; } .oc2 { background: #E7DEFB; } .oc3 { background: #FFF0BF; } .oc4 { background: #D7EAF8; } .oc5 { background: #FBDCE6; }

/* feature bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(190px, auto); gap: 16px; }
.bt { position: relative; overflow: hidden; padding: 28px; border-radius: 28px; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; }
.bt h3 { font-size: 1.4rem; margin: 0; } .bt p { margin: 0; color: rgba(30,42,42,.72); }
.bt-studio { grid-column: span 7; grid-row: span 2; justify-content: center; gap: 14px; color: #fff; background: radial-gradient(70% 90% at 90% 0%, rgba(139,108,255,.55), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(255,77,157,.4), transparent 60%), #12141B; }
.bt-studio h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); max-width: 14em; } .bt-studio p { color: #C6CAD8; max-width: 30em; } .bt-studio .btn { align-self: flex-start; margin-top: 8px; }
.bt-chips { display: flex; flex-wrap: wrap; gap: 8px; } .bt-chips span { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.07); font-size: .84rem; font-weight: 600; }
.bt-rsvp { grid-column: span 5; background: #DDF0E8; }
.bars { display: grid; gap: 8px; margin-top: 10px; } .bars div { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 10px; font-size: .82rem; font-weight: 700; }
.bars i { height: 12px; width: var(--w); border-radius: 999px; background: var(--brand); animation: grow 1.2s cubic-bezier(.2,.7,.2,1) backwards; } .bars div:nth-child(2) i { background: #E5B954; } .bars div:nth-child(3) i { background: #D98880; }
@keyframes grow { from { width: 0; } }
.bt-qr { grid-column: span 5; flex-direction: row; align-items: center; justify-content: flex-start; gap: 20px; background: #E7DEFB; }
.bt-qrc { width: 124px; height: 124px; flex: none; border-radius: 14px; box-shadow: 0 10px 26px rgba(60,40,120,.22); }
.bt-print { grid-column: span 5; background: #FFF0BF; } .bt-print > b { font: 700 clamp(3rem, 6vw, 4.6rem)/1 var(--display); letter-spacing: -.04em; } .bt-print small { font-size: 1.1rem; margin-left: 6px; letter-spacing: 0; }
.bt-theme { grid-column: span 7; background: #FFE1D2; }
.swirl { display: flex; margin-bottom: 8px; } .swirl i { width: 54px; height: 54px; border-radius: 50%; border: 4px solid #FFE1D2; margin-right: -14px; transition: transform .25s; } .bt-theme:hover .swirl i { transform: translateY(-6px); } .swirl i:nth-child(even) { transition-delay: .05s; }

.how { border-radius: 32px; margin: 24px clamp(16px, 4vw, 48px); } .steps > div { padding: 24px; border-radius: 22px; background: rgba(255,255,255,.7); } .steps b { font-family: var(--display); }
.faq-band { display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1.5px solid var(--line); border-radius: 18px; background: #fff; padding: 0 20px; transition: border-color .15s; } .faq details[open] { border-color: var(--brand); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 700; cursor: pointer; } .faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); transition: transform .2s; } .faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: #46524F; }
.cta { border-radius: 36px; background: radial-gradient(60% 120% at 10% 0%, #1E8C79, transparent 60%), radial-gradient(60% 120% at 100% 100%, #0A3F36, transparent 60%), var(--brand); padding: clamp(40px, 7vw, 84px) 24px; }
.cta h2 { font-size: clamp(1.8rem, 4vw, 3rem); }

/* template page */
.detail { grid-template-columns: minmax(280px, 1fr) 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.detail-stage { display: grid; place-items: center; padding: clamp(24px, 5vw, 64px); border-radius: 32px; }
.detail-stage .detail-img { width: min(380px, 100%); border-radius: 12px; box-shadow: 0 30px 70px rgba(30,42,42,.28); transition: transform .3s; } .detail-stage:hover .detail-img { transform: rotate(-1.5deg) scale(1.02); }
.detail-info h1 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.03em; }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; } .spec div { display: grid; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); } .spec span { color: var(--muted); font-size: .84rem; }

/* dashboard QR */
.qr-share { display: flex; gap: 16px; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); } .qr-share canvas { width: 112px; height: 112px; flex: none; border-radius: 10px; border: 1px solid var(--line); } .qr-share p { margin: 2px 0 8px; font-size: .88rem; }
.share, .stats div, .inv-row, .plan, .rsvp, .rsvp-done { border-radius: 20px; }
.modal { border-radius: 24px; animation: pop .18s; } .modal-back { backdrop-filter: blur(6px); }
.site-foot { border-radius: 36px 36px 0 0; margin-top: 24px; }

/* builder additions */
.ed.drawing .ed-over { cursor: crosshair; }
.bx[data-type=qr] :is(.n, .s, .e, .w) { display: none; }
.qr-box { display: grid; gap: 8px; padding: 14px; border-radius: 14px; border: 1px solid rgba(139,108,255,.45); background: linear-gradient(160deg, rgba(139,108,255,.16), rgba(255,77,157,.08)); } .qr-box h4 { margin: 0; color: #fff; }
.word-list { display: grid; gap: 4px; } .word-list button { padding: 9px 12px; border: 0; border-radius: 9px; background: var(--e-raise); color: var(--e-text); text-align: left; font-size: .86rem; line-height: 1.35; } .word-list button:hover { background: #2a2e3c; }
.brush-prev { display: grid; place-items: center; height: 84px; border-radius: 12px; background: repeating-conic-gradient(#20232d 0 25%, #1a1c24 0 50%) 0 0 / 16px 16px; } .brush-prev i { border-radius: 50%; }
.ed .form-error { background: rgba(255,90,110,.14); color: #ff9aa8; font-size: .82rem; }

@media (max-width: 980px) {
  .menu-btn { display: grid; }
  .hm-in, .faq-band { grid-template-columns: 1fr; } .hm-art { order: -1; height: auto; aspect-ratio: 10 / 9; width: 100%; max-width: 520px; justify-self: center; }
  .bento { grid-template-columns: 1fr 1fr; } .bt { grid-column: span 1 !important; grid-row: auto !important; } .bt-studio { grid-column: 1 / -1 !important; }
  .spec { grid-template-columns: 1fr; }
}
@media (min-width: 981px) { .mnav { display: none !important; } }
@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr; } .bt-qr { flex-direction: column; align-items: flex-start; }
  .float { font-size: .74rem; padding: 6px 10px 6px 6px; } .float i { width: 20px; height: 20px; }
  .oc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .oc { min-height: 120px; padding: 14px; } .oc b { font-size: clamp(.95rem, 4.4vw, 1.2rem); overflow-wrap: anywhere; } .oc-ic { font-size: 2.4rem; }
  .hm-search .btn { padding-inline: 14px; } .how { margin-inline: 12px; }
  .site-head .logo { font-size: 1.15rem; } .account .btn.primary { padding-inline: 14px; }
  .qr-share { flex-direction: column; align-items: flex-start; }
}

/* ================= hosting tools ================= */
.more { border: 1.5px solid var(--line); border-radius: 14px; background: #FBF8F3; }
.more > summary { list-style: none; padding: 12px 14px; font-weight: 700; font-size: .92rem; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; } .more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: '+'; color: var(--brand); font-size: 1.1rem; line-height: 1; } .more[open] > summary::after { content: '−'; }
.more-b { display: grid; gap: 14px; padding: 4px 14px 16px; } .more > form, .more > .gform { padding: 0 14px 14px; }
fieldset { margin: 0; padding: 12px; border: 1.5px dashed var(--line); border-radius: 12px; display: grid; gap: 8px; } legend { padding: 0 6px; font-weight: 700; font-size: .9rem; } fieldset .fine { margin: 0; }
.erow { display: grid; grid-template-columns: 1.4fr .9fr 34px; gap: 6px; margin-bottom: 6px; } .erow [data-f=options] { grid-column: 1 / 3; } .erow.bring { grid-template-columns: 1fr 76px 34px; }
.erow-x { border: 0; border-radius: 9px; background: #F1EADD; font-size: 1.2rem; line-height: 1; color: var(--muted); } .erow-x:hover { background: #FCE9E7; color: var(--danger); }
.modal.wide { max-height: calc(100dvh - 32px); overflow-y: auto; }

.dgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.dcard { padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; min-width: 0; } .dcard.wide { grid-column: 1 / -1; }
.dcard h2 { margin: 0; font-size: 1.25rem; } .dcard p { margin: 0; }
.glist, .ulist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.glist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #FBF8F3; }
.glist span:first-child { display: grid; min-width: 0; font-weight: 600; } .glist small { font-weight: 400; color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.ulist li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 12px; border-radius: 12px; background: #FBF8F3; } .ulist p { grid-column: 1 / -1; margin: 0; overflow-wrap: anywhere; } .ulist small { color: var(--muted); }
.tag.wait { background: #EEE9DF; color: #5d6664; }
.gform, .uform { display: grid; gap: 8px; justify-items: start; } .gform textarea, .uform textarea { width: 100%; }
.btn.off { opacity: .5; pointer-events: none; } .stats small { font: 500 .9rem var(--body); color: var(--muted); }
h1 .tag { vertical-align: middle; font-family: var(--body); letter-spacing: 0; }

/* guest page */
.guest { position: relative; max-width: 1120px; } .guest .btn.primary { background: var(--g-acc, var(--brand)); box-shadow: none; } .guest .btn.primary:hover { filter: brightness(.92); }
.g-glow { position: fixed; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 15% 0%, color-mix(in srgb, var(--g-acc) 22%, transparent), transparent 70%), radial-gradient(50% 50% at 100% 100%, color-mix(in srgb, var(--g-acc) 14%, transparent), transparent 70%), var(--bg); }
.guest-card { position: sticky; top: 20px; } .guest-card img { border-radius: 14px; }
.guest-info h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.03em; margin-bottom: .2em; }
.cdown { display: inline-flex; gap: 8px; margin: 14px 0 4px; } .cdown div { display: grid; justify-items: center; min-width: 74px; padding: 10px 8px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.cdown b { font: 700 1.7rem/1 var(--display); color: var(--g-acc); } .cdown span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 4px; }
.g-update { margin-bottom: 14px; padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--g-acc) 12%, #fff); border: 1px solid color-mix(in srgb, var(--g-acc) 35%, transparent); } .g-update p { margin: 2px 0 0; }
.g-links { margin: 4px 0 14px; } .guest-msg { border-left-color: var(--g-acc); }
.choices input:checked + span { border-color: var(--g-acc); background: color-mix(in srgb, var(--g-acc) 12%, #fff); color: var(--ink); } .choices input:disabled + span { opacity: .45; cursor: not-allowed; }
.spots { margin: 0; font-weight: 700; color: var(--g-acc); } .spots.full { color: var(--danger); }
.g-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-bottom: 40px; align-items: start; } .g-extra section { padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; } .g-extra section:only-child, .g-extra section:has(+ [hidden]) { grid-column: 1 / -1; } .g-extra h2 { margin: 0; font-size: 1.3rem; }
.g-claim { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; } .g-claim .form-error { grid-column: 1 / -1; } .g-post { gap: 8px; justify-items: start; } .g-post input, .g-post textarea { width: 100%; }
/* envelope reveal */
.env { position: fixed; inset: 0; z-index: 90; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 24px; text-align: center; background: color-mix(in srgb, var(--g-acc) 30%, #14181a); color: #fff; transition: opacity .5s .8s; }
.env p { margin: 0; font: 700 1.3rem var(--display); }
.env-box { position: relative; width: min(340px, 78vw); aspect-ratio: 7 / 5; margin-top: 70px; filter: drop-shadow(0 30px 40px rgba(0,0,0,.4)); }
.env-box::before { content: ''; position: absolute; inset: 0; border-radius: 10px; background: #EFE4D2; }
.env-card { position: absolute; left: 8%; right: 8%; bottom: 6%; height: 88%; overflow: hidden; border-radius: 6px; transition: transform .9s cubic-bezier(.2,.7,.2,1) .25s; } .env-card img { width: 100%; }
.env-front { position: absolute; inset: 0; border-radius: 10px; background: linear-gradient(to top right, #F7EEDF 50%, transparent 50.5%) left / 50.5% 100% no-repeat, linear-gradient(to top left, #F3E8D6 50%, transparent 50.5%) right / 50.5% 100% no-repeat; }
.env-front::after { content: ''; position: absolute; inset: 55% 0 0; border-radius: 0 0 10px 10px; background: #FAF3E7; clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.env-flap { position: absolute; left: 0; right: 0; top: 0; height: 58%; background: #E6D8C1; clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transition: transform .5s; }
.env.open { opacity: 0; pointer-events: none; } .env.open .env-flap { transform: rotateX(180deg); } .env.open .env-card { transform: translateY(-62%); } .env.open p, .env.open .btn { opacity: 0; transition: opacity .2s; }
@media (max-width: 980px) { .dgrid, .g-extra { grid-template-columns: 1fr; } .guest-card { position: static; } }
@media (max-width: 760px) { .erow { grid-template-columns: 1fr 34px; } .erow [data-f=type], .erow [data-f=options] { grid-column: 1 / 2; } .erow.bring { grid-template-columns: 1fr 64px 34px; } .g-claim { grid-template-columns: 1fr; } .cdown div { min-width: 64px; } }

/* ================= builder showcase + niche hubs ================= */
.focus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fc { position: relative; display: grid; gap: 6px; align-content: end; min-height: 250px; padding: 28px; border-radius: 28px; color: var(--ink); text-decoration: none !important; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.fc:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(30,42,42,.16); }
.fc > span { position: absolute; right: 18px; top: 10px; font-size: 5rem; line-height: 1; transition: transform .3s; } .fc:hover > span { transform: scale(1.15) rotate(-8deg); }
.fc h3 { font-size: 1.7rem; margin: 0; } .fc p { margin: 0; max-width: 24em; color: rgba(30,42,42,.75); } .fc b { margin-top: 8px; }
.fc-wed { background: linear-gradient(150deg, #FBDCE6, #F3E6D3); } .fc-kid { background: linear-gradient(150deg, #C7F0FF, #FFF0BF); }
.fc-bld { background: radial-gradient(80% 90% at 100% 0%, rgba(139,108,255,.6), transparent 60%), radial-gradient(70% 80% at 0% 100%, rgba(255,77,157,.4), transparent 60%), #12141B; color: #fff; } .fc-bld p { color: #C6CAD8; } .fc-bld > span { color: #FFB23F; }

.bp-hero { color: #fff; background: radial-gradient(50% 80% at 85% 0%, rgba(139,108,255,.55), transparent 62%), radial-gradient(45% 80% at 5% 100%, rgba(255,77,157,.38), transparent 62%), radial-gradient(#252936 1px, transparent 1px) 0 0 / 22px 22px, #0B0C11; }
.bp-in { max-width: 1100px; margin: 0 auto; padding: clamp(48px, 8vw, 110px) clamp(16px, 4vw, 48px); }
.bp-hero h1 { font-size: clamp(2.3rem, 6vw, 4.8rem); line-height: 1.03; letter-spacing: -.035em; margin: 14px 0 18px; max-width: 14em; }
.bp-hero .lede { color: #C6CAD8; margin-bottom: 28px; } .bp-hero .eyebrow { color: #FFB23F; }
.grad2 { background: linear-gradient(100deg, #8B6CFF, #FF4D9D 55%, #FFB23F); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hotbtn { border: 0; background: linear-gradient(120deg, #8B6CFF, #FF4D9D 55%, #FFB23F); color: #fff; box-shadow: 0 10px 30px rgba(139,108,255,.45); } .hotbtn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.bp-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 40px; padding: 0; margin: 40px 0 0; } .bp-stats li { display: grid; color: #9aa0b0; font-size: .88rem; } .bp-stats b { font: 700 2.2rem/1 var(--display); color: #fff; }
.fx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fx { display: grid; gap: 6px; align-content: start; padding: 14px 14px 20px; border-radius: 24px; background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; } .fx:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(30,42,42,.13); }
.fx h3 { margin: 10px 6px 0; font-size: 1.2rem; } .fx p { margin: 0 6px; color: var(--muted); font-size: .93rem; }
.fx-art { display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: 16px; background: #F3ECE0; overflow: hidden; } .fx-art canvas { width: 58%; height: auto; aspect-ratio: 5 / 7; border-radius: 6px; box-shadow: 0 12px 28px rgba(30,42,42,.22); transition: transform .3s; } .fx:hover canvas { transform: rotate(-2deg) scale(1.03); }
.fx-mock { position: relative; }
.m-photo { grid-template-columns: 1fr 1fr; gap: 6px; padding: 14%; place-items: stretch; } .m-photo i { border-radius: 10px; background: linear-gradient(140deg, #FFB23F, #E8553D 45%, #2F86C5); } .m-photo i:nth-child(2) { filter: grayscale(1) contrast(1.15); } .m-photo i:nth-child(3) { filter: sepia(.8) saturate(1.3); } .m-photo i:nth-child(4) { filter: saturate(1.9) contrast(1.1); }
.m-layers i { position: absolute; left: 18%; width: 64%; padding: 10px 14px; border-radius: 10px; background: #fff; border: 1.5px solid var(--line); font-style: normal; font-weight: 700; font-size: .85rem; box-shadow: 0 6px 16px rgba(30,42,42,.1); transition: transform .3s; }
.m-layers i:nth-child(1) { top: 16%; border-color: #8B6CFF; } .m-layers i:nth-child(2) { top: 34%; left: 22%; } .m-layers i:nth-child(3) { top: 52%; left: 26%; } .m-layers i:nth-child(4) { top: 70%; left: 30%; opacity: .6; } .fx:hover .m-layers i:nth-child(1) { transform: translateX(-10px); }
.m-guides i { position: absolute; left: 28%; top: 30%; width: 44%; height: 26%; border-radius: 10px; background: #D6C8FF; border: 1.5px solid #8B6CFF; } .m-guides b { position: absolute; left: 50%; top: 8%; bottom: 8%; width: 1.5px; background: #FF2E93; } .m-guides u { position: absolute; top: 43%; left: 8%; right: 8%; height: 1.5px; background: #FF2E93; }
.m-group { gap: 8px; grid-auto-flow: column; padding: 0 16%; outline: 2px dashed #8B6CFF; outline-offset: -22%; } .m-group i { width: 100%; aspect-ratio: 1; border-radius: 12px; background: #FF8FB3; } .m-group i:nth-child(2) { background: #FFC933; border-radius: 50%; } .m-group i:nth-child(3) { background: #5EC2A8; }
.ess { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; } .ess.four { grid-template-columns: repeat(4, 1fr); }
.ess div { display: grid; gap: 4px; align-content: start; padding: 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line); } .ess b { font-size: 1.02rem; } .ess span { color: var(--muted); font-size: .92rem; }

.nh { overflow: hidden; } .nh h1 { font-size: clamp(2.1rem, 4.8vw, 3.9rem) !important; }
.n-wed { background: radial-gradient(55% 90% at 8% 0%, #FBDCE6, transparent 62%), radial-gradient(45% 80% at 96% 6%, #F3E6D3, transparent 60%), radial-gradient(50% 90% at 70% 110%, #DCE8D8, transparent 62%), var(--bg); }
.n-kid { background: radial-gradient(55% 90% at 8% 0%, #C7F0FF, transparent 62%), radial-gradient(45% 80% at 96% 6%, #FFE9A8, transparent 60%), radial-gradient(50% 90% at 70% 110%, #FFD0DF, transparent 62%), var(--bg); }
.gap { height: 44px; }
.tline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: t; }
.tline li { position: relative; padding: 56px 22px 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line); counter-increment: t; }
.tline li::before { content: counter(t); position: absolute; left: 20px; top: 18px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: .9rem; }
.tline li:not(:last-child)::after { content: ''; position: absolute; left: 58px; right: -17px; top: 32px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
.tline em { font-style: normal; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); } .tline h3 { margin: 4px 0 6px; font-size: 1.2rem; } .tline p { margin: 0; color: var(--muted); font-size: .93rem; }
@media (max-width: 1180px) { .nav-item > a { padding-inline: 9px; font-size: .95rem; } }
@media (max-width: 980px) { .focus { grid-template-columns: 1fr; } .fc { min-height: 190px; } .fx-grid, .ess.four, .tline { grid-template-columns: 1fr 1fr; } .tline li::after { display: none; } }
@media (max-width: 760px) { .fc { min-height: 0; padding: 76px 22px 24px; } .fc > span { font-size: 3.2rem; top: 16px; right: auto; left: 20px; } .ess, .ess.four, .tline { grid-template-columns: 1fr; } .fx-grid { gap: 12px; } .fx h3 { font-size: 1.05rem; } }

/* ================= wedding suites ================= */
.suite { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; padding: clamp(18px, 3vw, 36px); border-radius: 32px; background: linear-gradient(150deg, #FBDCE6, #F3E6D3 55%, #DCE8D8); }
.suite a { display: grid; gap: 10px; justify-items: center; color: var(--ink); text-decoration: none !important; text-align: center; transition: transform .25s; }
.suite a:nth-child(odd) { transform: rotate(-1.5deg); } .suite a:nth-child(even) { transform: rotate(1.5deg) translateY(10px); } .suite a:hover { transform: translateY(-8px) scale(1.03); }
.suite-img { width: 100%; border-radius: 10px; overflow: hidden; background: #EEE7DB; box-shadow: 0 14px 34px rgba(30,42,42,.2); } .suite-img img { width: 100%; aspect-ratio: 5/7; opacity: 0; transition: opacity .3s; }
.suite b { font: 700 1rem var(--display); } .suite em { font-style: normal; font-size: .74rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--ink); color: #fff; }
.suite a.on .suite-img { outline: 3px solid var(--ink); outline-offset: 3px; }
.suite-note { margin: 18px 0 0; } .focus.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 980px) { .suite { grid-template-columns: repeat(3, 1fr); } .focus.two { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .suite { grid-template-columns: 1fr 1fr; gap: 14px; } .suite a { transform: none !important; } }

/* ================= SEO content, guides, admin ================= */
.ssr { max-width: 900px; margin: 0 auto; padding: 32px 20px; } .ssr ul { columns: 2; padding-left: 18px; }
.prose { max-width: 720px; font-size: 1.06rem; line-height: 1.7; } .prose h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.03em; margin-bottom: .3em; }
.prose h2 { margin: 1.6em 0 .5em; font-size: 1.6rem; } .prose h3 { margin: 1.3em 0 .3em; font-size: 1.2rem; } .prose ul { padding-left: 22px; display: grid; gap: 6px; } .prose a { font-weight: 600; text-decoration: underline; }
.prose blockquote { margin: 1em 0; padding: 14px 20px; border-left: 4px solid var(--brand); background: rgba(15, 107, 92, .06); border-radius: 0 12px 12px 0; } .prose blockquote p { margin: .4em 0; }
.seo-copy { max-width: 1280px; margin: 0 auto; padding: 8px clamp(16px, 4vw, 48px) 56px; } .seo-copy .prose { padding: clamp(22px, 4vw, 44px); border-radius: 28px; background: #fff; border: 1px solid var(--line); max-width: 860px; } .seo-copy .faq { margin-top: 10px; }
.gd-hero { background: radial-gradient(55% 90% at 8% 0%, #FBDCE6, transparent 62%), radial-gradient(45% 80% at 96% 6%, #D9CCFF, transparent 60%), var(--bg); } .gd-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.03em; margin: 10px 0; } .gd-hero .bp-in { padding-block: clamp(36px, 6vw, 72px); }
.gd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.gd-card { display: grid; gap: 8px; align-content: start; padding: 26px; border-radius: 24px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; transition: transform .2s, box-shadow .2s; } .gd-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(30,42,42,.13); }
.gd-card small { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 700; } .gd-card h2 { margin: 0; font-size: 1.35rem; } .gd-card p { margin: 0; color: var(--muted); } .gd-card b { color: var(--brand); margin-top: 6px; }

.adm { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; max-width: 1400px; margin: 0 auto; padding: 28px clamp(16px, 3vw, 40px) 64px; align-items: start; }
.adm-side { position: sticky; top: 86px; display: grid; gap: 3px; padding: 16px; border-radius: 22px; background: #12141B; color: #fff; } .adm-side .eyebrow { color: #FFB23F; margin: 0 0 8px 8px; }
.adm-side button { text-align: left; padding: 10px 12px; border: 0; border-radius: 11px; background: none; color: #C6CAD8; font-weight: 600; } .adm-side button:hover { background: #1f222c; color: #fff; }
.adm-side button.on { background: linear-gradient(120deg, rgba(139,108,255,.5), rgba(255,77,157,.35)); color: #fff; } .adm-back { margin: 10px 0 0 12px; color: #9aa0b0; font-size: .88rem; }
.adm-main { min-width: 0; display: grid; gap: 16px; } .adm-main h1 { margin: 0; } .adm-main > p { margin: 0; max-width: 62em; } .adm-main h2 { margin: 10px 0 0; }
.adm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; } .adm-stats div { display: grid; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); } .adm-stats b { font: 700 1.8rem var(--display); } .adm-stats span { color: var(--muted); font-size: .84rem; }
.adm-links, .adm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; } .adm-bar { padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); } .adm-bar input[type=search] { flex: 1; min-width: 200px; } .adm-bar select { width: auto !important; }
.adm-warn, .adm-note, .adm-ok { padding: 12px 16px; border-radius: 14px; } .adm-warn { background: #FCE9E7; color: var(--danger); font-weight: 600; } .adm-note { background: #FFF1CC; color: #6a4b00; } .adm-ok { background: #DDF2E4; color: #1B6B3A; font-weight: 600; }
.adm-pages tbody tr { cursor: pointer; } .adm-pages tbody tr:hover { background: #FBF8F3; } .adm-pages .t { font-weight: 600; } .adm-pages .tag { margin: 0 4px 4px 0; display: inline-block; } .table small { font-size: .82rem; }
.adm-edit td { padding: 6px 8px; } .adm-edit input, .adm-edit select { min-width: 110px; padding: 8px 10px !important; } .table .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-form { display: grid; gap: 14px; max-width: 820px; } .adm-form fieldset { border-style: solid; background: #fff; padding: 18px; gap: 12px; } .adm-form small { color: var(--muted); font-weight: 400; } .adm-form label > span em { font-style: normal; font-size: .78rem; margin-left: 6px; }
em.ok { color: #1B6B3A; } em.bad { color: var(--danger); font-weight: 700; }
.serp { display: grid; gap: 2px; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-family: Arial, sans-serif; } .serp span { font-size: .8rem; color: #4d5156; overflow-wrap: anywhere; } .serp b { font-size: 1.2rem; font-weight: 400; color: #1a0dab; line-height: 1.3; } .serp p { margin: 0; font-size: .88rem; color: #4d5156; line-height: 1.5; }
.erow.faq { grid-template-columns: 1fr 34px; } .erow.faq textarea { grid-column: 1 / 2; }
.slug { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; } .slug span { padding: 0 2px 0 12px; color: var(--muted); } .slug input { border: 0 !important; padding-left: 2px !important; }
.modal.xl { width: min(1080px, 100%); } .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; } .two-col .prose { max-height: 380px; overflow-y: auto; padding: 14px 18px; border-radius: 12px; border: 1.5px dashed var(--line); font-size: .95rem; } .two-col .prose h2 { font-size: 1.25rem; } .lbl { display: block; font-size: .92rem; font-weight: 500; margin-bottom: 6px; }
.og { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; } .og img, .og-empty { width: 220px; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); } .og-empty { display: grid; place-items: center; background: #F5EFE4; color: var(--muted); font-size: .86rem; } .og > div:last-child { display: grid; gap: 8px; }
.adm-prog { height: 12px; border-radius: 999px; background: #EEE7DB; overflow: hidden; } .adm-prog i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #0F6B5C, #8B6CFF); transition: width .4s; }
.adm-group { padding: 20px 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line); display: grid; gap: 4px; } .adm-group h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-size: 1.25rem; } .adm-group h2 span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff; font: 700 1rem var(--body); }
.task { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; padding: 9px 10px; border-radius: 10px; font-weight: 400; font-size: .98rem; cursor: pointer; } .task:hover { background: #FBF8F3; } .task input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); flex: none; } .task span { flex: 1; }
.task:has(:checked) span { color: var(--muted); text-decoration: line-through; } .task.auto { cursor: default; } .task.auto span { text-decoration: none !important; color: var(--ink) !important; } .task em { font-style: normal; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); white-space: nowrap; }
@media (max-width: 980px) { .adm { grid-template-columns: 1fr; gap: 16px; } .adm-side { position: static; display: flex; overflow-x: auto; } .adm-side .eyebrow, .adm-back { display: none; } .adm-side button { white-space: nowrap; } .adm-stats { grid-template-columns: 1fr 1fr; } .two-col { grid-template-columns: 1fr; } .ssr ul { columns: 1; } }

/* ================= admin: templates and categories ================= */
.atpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px 14px; }
.atpl { display: grid; gap: 4px; align-content: start; } .atpl b { font-size: .95rem; margin-top: 4px; } .atpl small { color: var(--muted); font-size: .76rem; overflow-wrap: anywhere; }
.atpl-img { position: relative; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: linear-gradient(100deg, #EEE7DB 30%, #FAF6EE 50%, #EEE7DB 70%) 0 0 / 220% 100%; box-shadow: 0 2px 10px rgba(30,42,42,.1); transition: transform .15s, box-shadow .15s; }
.atpl-img:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--brand), 0 12px 28px rgba(30,42,42,.16); } .atpl-img img { width: 100%; aspect-ratio: 5/7; opacity: 0; transition: opacity .3s; }
.atpl.is-hidden .atpl-img img { filter: grayscale(.8); opacity: .5 !important; }
.atpl-tags { position: absolute; left: 6px; top: 6px; display: flex; flex-wrap: wrap; gap: 4px; } .atpl-tags i { font-style: normal; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(30,42,42,.85); color: #fff; } .atpl-tags .p { color: #F6D98B; } .atpl-tags .h { background: var(--danger); }
.atpl-acts { display: flex; flex-wrap: wrap; gap: 2px 10px; } .atpl-acts button { padding: 2px 0; border: 0; background: none; font-size: .8rem; font-weight: 700; color: var(--brand); } .atpl-acts button:hover { text-decoration: underline; } .atpl-acts .danger-text { color: var(--danger); }
.cat-ic { font-size: 1.6rem; width: 46px; }
.tpl-edit { grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr); } .tpl-prev { position: sticky; top: 0; } .tpl-prev canvas { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 16px 40px rgba(30,42,42,.2); background: #fff; }
.adm-form select optgroup { font-weight: 700; } .ed-drop hr { border: 0; border-top: 1px solid var(--e-line); margin: 5px 4px; }
@media (max-width: 980px) { .tpl-edit { grid-template-columns: 1fr; } .tpl-prev { position: static; max-width: 260px; } }

/* ================= admin: content calendar ================= */
.cal-gen { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.cal-gen label:not(.check) { min-width: 150px; } .cal-gen select, .cal-gen input[type=date] { width: auto !important; } .cal-gen label.check { padding-bottom: 10px; }
.adm-stats div.warn { border-color: var(--danger); } .adm-stats div.warn b { color: var(--danger); }
.cal-month { display: grid; gap: 6px; } .cal-month h2 { margin: 14px 0 4px; font-size: 1.2rem; }
.cal-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; padding: 10px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.cal-row.skipped { opacity: .55; } .cal-row.overdue { border-color: #F2B8B3; background: #FFF8F7; } .cal-row.published { background: #F6FBF8; }
.cal-d { display: grid; justify-items: center; padding: 6px 0; border-radius: 12px; background: #F5EFE4; } .cal-d em { font-style: normal; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); } .cal-d b { font: 700 1.3rem/1.1 var(--display); }
.cal-d.today { background: var(--brand); } .cal-d.today em, .cal-d.today b { color: #fff; }
.cal-main { display: grid; gap: 2px; min-width: 0; } .cal-t { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; background: #F1EADD; color: var(--muted); font: 700 .74rem var(--body); vertical-align: 2px; white-space: nowrap; } .cal-main small { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.cal-acts { grid-column: 2 / -1; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-start; } .cal-acts input[type=date], .cal-acts input[type=time] { width: auto !important; padding: 6px 8px !important; font-size: .82rem; } .cal-acts .erow-x { width: 34px; height: 34px; }
.empty.small { margin: 30px auto; }
@media (max-width: 980px) { .cal-row { grid-template-columns: 52px minmax(0, 1fr); } .cal-row .tag, .cal-acts { grid-column: 2; justify-self: start; } }

/* responsive */
@media (max-width: 1180px) {
  .ed-body { grid-template-columns: 72px 280px minmax(0, 1fr); }
  .ed-insp { position: absolute; right: 0; top: 60px; bottom: 0; width: 280px; z-index: 5; transform: translateX(100%); transition: transform .2s; box-shadow: -20px 0 50px rgba(0,0,0,.5); }
  .ed.has-sel .ed-insp { transform: none; }
  .ed-btn[data-do=preview] span { display: none; }
}
@media (max-width: 980px) {
  .nav { display: none; }
  .hero, .detail, .dash, .guest-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; height: 64vw; }
  .foot-grid { grid-template-columns: 1fr 1fr; } .steps, .plans { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr 1fr; }
  .detail-img, .guest-card, .dash-img { max-width: 420px; }
  .bx-hero-in { grid-template-columns: 1fr; } .bx-fan { display: none; }
  .ql-body { grid-template-columns: 1fr; } .ql-art { padding: 24px 56px; } .ql-art img { max-width: 220px; } .ql-info { padding: 20px 24px 24px; }
}
@media (max-width: 760px) {
  .site-head { flex-wrap: wrap; gap: 10px; } .search { order: 3; flex-basis: 100%; max-width: none; }
  .account .btn.ghost { display: none; }
  .tgrid, .bx-wrap .tgrid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .inv-row { flex-wrap: wrap; }
  .bx-bar { top: 0; position: static; } .bx-facets .grow { display: none; } .pop-body { width: min(300px, 86vw); }
  .tcard-hover { display: none; } .tcard-img::after { display: none; }
  .ed-body { grid-template-columns: 1fr; grid-template-rows: 1fr auto auto; }
  .ed-stage { grid-row: 1; } .ed-panel { grid-row: 2; max-height: 32vh; border-right: 0; border-top: 1px solid var(--e-line); }
  .ed-rail { grid-row: 3; flex-direction: row; border-right: 0; border-top: 1px solid var(--e-line); } .ed-rail button { flex: 1; min-width: 58px; }
  .ed-insp { top: auto; left: 0; width: auto; max-height: 46vh; transform: translateY(110%); border-left: 0; border-top: 1px solid var(--e-line); }
  .ed-status, .ed-top [data-do=save], .ed-div, .ed-brand, .ed-foot .tg, .ed-zoomr { display: none; } .ed-btn { padding: 0 11px; }
  .ed-rail { overflow-x: auto; overflow-y: hidden; }
  /* phones: the design fills the screen; tools slide up as a sheet; zoom floats in the corner */
  .ed-scroll { padding: 44px 8px 48px; }
  .ed-stage { grid-template-rows: minmax(0, 1fr); }
  .ed-foot { position: absolute; right: 10px; bottom: 8px; z-index: 4; height: 38px; gap: 0; padding: 0 4px; border: 1px solid var(--e-line); border-radius: 999px; background: rgba(20,22,29,.92); backdrop-filter: blur(8px); }
  .ed-foot .grow, .ed-foot [data-do=keys] { display: none; } .ed-foot button { min-width: 34px; font-size: 1rem; } .ed-zoomv { min-width: 40px; text-align: center; }
  .ed-panel { max-height: 48vh; padding-top: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -18px 40px rgba(0,0,0,.45); }
  .ed:not(.sheet-open) .ed-panel { display: none; }
  .ed:not(.sheet-open) .ed-rail button.on { background: none; box-shadow: none; color: var(--e-mut); }
  .ed-grab { position: sticky; top: 0; z-index: 2; display: grid; place-items: center; width: 100%; height: 26px; margin-bottom: 4px; border: 0; background: var(--e-panel); }
  .ed-grab i { width: 44px; height: 5px; border-radius: 5px; background: #4a5063; }
  .ed-rail { padding: 6px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); } .ed-rail::-webkit-scrollbar { display: none; }
  .ed-rail button { flex: 0 0 62px; padding: 7px 2px; }
}
.ed-grab, .ed-done { display: none; }
.ed-done { margin-left: auto; margin-right: 6px; height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--e-acc); color: #fff; font-weight: 700; }
@media (max-width: 760px) { .ed-grab { display: grid; } .ed-done { display: inline-block; } .ed-insp { max-height: 44vh !important; border-radius: 18px 18px 0 0; box-shadow: 0 -18px 40px rgba(0,0,0,.45); } }
.ed-wide { font-style: normal; } .ed-narrow { display: none; font-weight: 700; }
@media (max-width: 480px) {
  .ed-top { gap: 4px; padding: 0 8px; }
  .ed .ed-name { display: none; }
  .ed-btn { padding: 0 9px; } .ed-wide { display: none; }
}
@media (max-width: 340px) { .ed-top [data-do=preview] { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Admin: auto-writer */
.writer { display: grid; gap: 14px; margin: 18px 0 26px; padding: 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.writer.on { border-color: #9FD3C7; box-shadow: 0 0 0 3px rgba(15, 107, 92, .08); }
.writer-head { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; }
.writer-head h2 { margin: 0 0 4px; } .writer-head p { margin: 0; max-width: 70ch; }
.writer-form { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; }
.writer-form label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; min-width: 200px; flex: 1; }
.writer-form label.check { display: flex; align-items: center; gap: 8px; flex-basis: 100%; }
.writer-form .fine { flex-basis: 100%; margin: 0; }
.writer-form [data-key-for] { display: flex; flex: 1 1 360px; } .writer-form [data-key-for][hidden] { display: none; }
.writer-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: .92rem; color: var(--muted); } .writer-stats b { color: var(--ink); }
.writer .adm-note { margin: 0; }
.writer-log summary { cursor: pointer; font-weight: 600; } .writer-log ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: .9rem; }
.cal-h { margin: 8px 0 10px; font-size: 1.15rem; }
.cal-main small.danger-text { display: block; }
@media (max-width: 640px) { .writer-head { flex-direction: column; } .writer-form label { min-width: 0; flex-basis: 100%; } }
.danger-text { color: var(--danger); }

/* ---------- blog ---------- */
.bl-search { display: flex; align-items: center; gap: 10px; max-width: 460px; margin-top: 22px; padding: 12px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(30,42,42,.08); }
.bl-search input[type=search] { border: 0 !important; outline: 0; background: transparent !important; padding: 4px 0 !important; border-radius: 0 !important; -webkit-appearance: none; appearance: none; width: 100%; }
.bl-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.bl-topics button { font: inherit; font-weight: 600; font-size: .9rem; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.bl-topics button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.bl-cover { position: relative; overflow: hidden; display: grid; place-items: center; aspect-ratio: 16 / 10; background: radial-gradient(70% 90% at 20% 10%, #FBDCE6, transparent 60%), radial-gradient(60% 80% at 90% 90%, #D9CCFF, transparent 60%), #F3ECE0; }
.bl-cover img { width: 46%; height: auto; border-radius: 6px; box-shadow: 0 18px 40px rgba(30,42,42,.25); transform: rotate(-4deg); transition: transform .35s; opacity: 0; }
.bl-cover img.ready { opacity: 1; }
.bl-cover.big { aspect-ratio: auto; min-height: 340px; } .bl-cover.big img { width: 42%; max-width: 230px; }
.bl-feature, .bl-card { display: grid; color: var(--ink); text-decoration: none !important; background: #fff; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.bl-feature:hover, .bl-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(30,42,42,.13); }
.bl-feature:hover img, .bl-card:hover img { transform: rotate(0deg) scale(1.04); }
.bl-feature { grid-template-columns: 1.1fr 1fr; margin-bottom: 22px; }
.bl-body { display: grid; gap: 10px; align-content: start; padding: 24px 26px 28px; }
.bl-feature .bl-body { align-content: center; padding: clamp(24px, 4vw, 48px); }
.bl-feature h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.12; } .bl-card h3 { margin: 0; font-size: 1.2rem; line-height: 1.25; }
.bl-body p { margin: 0; color: var(--muted); }
.bl-meta { font-size: .8rem; color: var(--muted); } .bl-meta b { color: var(--brand); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.bl-new { justify-self: start; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: #FFE8B0; color: #6B4A00; }
.bl-go { color: var(--brand); }
.bl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.bl-none { padding: 30px 0; }
.bl-art-meta { margin: 0 0 6px; }
@media (max-width: 760px) { .bl-feature { grid-template-columns: 1fr; } .bl-cover.big { min-height: 240px; } }

/* Builder on phones: nothing may make the page taller than the screen (the hidden inspector sits below
   the screen until opened), and the builder is pinned to the screen so the page cannot scroll it away
   when the browser's address bar hides or shows. The toolbar keeps clear of the phone's gesture bar. */
/* clip, not hidden: hidden would turn the builder into a scroll box that focusing a field can scroll */
.ed { overflow: hidden; overflow: clip; }
.ed > * { min-height: 0; }
html:has(.ed), html:has(.ed) body { overflow: hidden; overscroll-behavior: none; }
@media (max-width: 760px) {
  .ed { position: fixed; inset: 0; height: auto; }
  .ed-rail { flex: none; padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
  .ed-rail button { min-height: 54px; }
  .ed-scroll { scrollbar-width: none; } .ed-scroll::-webkit-scrollbar { display: none; }
}

/* Download: a clear, labelled button; on phones its menu is a bottom sheet with large rows */
.ed-dl .ed-chev { font-style: normal; font-size: .7rem; opacity: .7; margin-left: -2px; }
.ed-drop-h { display: none; }
.ed-drop-main { background: linear-gradient(135deg, rgba(37,211,102,.16), rgba(139,108,255,.14)) !important; box-shadow: inset 0 0 0 1px rgba(37,211,102,.35); }
@media (max-width: 760px) {
  .ed-dl { background: #F4F1FF; color: #17151F; border-color: #F4F1FF; }
  .ed-dl svg { width: 17px; height: 17px; }
  .ed-drop { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 82dvh; overflow-y: auto;
    padding: 8px 12px calc(14px + env(safe-area-inset-bottom, 0px)); border-radius: 22px 22px 0 0; border-bottom: 0; animation: sheetUp .18s ease-out; }
  .ed-drop-h { display: block; margin: 0; padding: 12px 10px 8px; font-size: 1.08rem; font-weight: 800; color: var(--e-text); }
  .ed-drop-h::before { content: ''; display: block; width: 44px; height: 5px; margin: -6px auto 12px; border-radius: 5px; background: #4a5063; }
  .ed-drop button { padding: 14px 14px; gap: 3px; font-size: 1rem; border-radius: 12px; }
  .ed-drop span { font-size: .86rem; }
  .ed.drop-open .ed-top { z-index: 61; }
  .ed.drop-open::after { content: ''; position: fixed; inset: 0; z-index: 59; background: rgba(5,6,10,.55); }
}
@keyframes sheetUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 380px) { .ed-top [data-do=redo] { display: none; } }

/* Builder: one-tap text effects, each tile previews its own look */
.fx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fx { display: grid; justify-items: center; gap: 3px; padding: 8px 2px 6px; border: 1px solid var(--e-line); border-radius: 10px; background: var(--e-raise); color: var(--e-mut); font-size: .68rem; font-weight: 600; cursor: pointer; }
.fx:hover { border-color: #4a5063; color: var(--e-text); }
.fx.on { border-color: var(--e-acc); color: #fff; box-shadow: inset 0 0 0 1px var(--e-acc); }
.fx i { font-style: normal; font-weight: 800; font-size: 1.25rem; line-height: 1.1; color: #F4F1FF; }
.fx-shadow i { text-shadow: 2px 3px 3px rgba(0,0,0,.8); }
.fx-lift i { text-shadow: 0 6px 10px rgba(0,0,0,.9); }
.fx-hollow i { color: transparent; -webkit-text-stroke: 1.2px #F4F1FF; }
.fx-neon i { color: #fff; text-shadow: 0 0 6px #B9A6FF, 0 0 12px #8B6CFF; }
.fx-echo i { text-shadow: 3px 3px 0 rgba(244,241,255,.45), 6px 6px 0 rgba(244,241,255,.2); }
.fx-splice i { color: transparent; -webkit-text-stroke: 1.2px #F4F1FF; text-shadow: 3px 3px 0 #FF6FA8; }
.fx-band i { background: #F4F1FF; color: #17151F; padding: 0 6px; border-radius: 6px; }
.p-btn.toggle.on { border-color: var(--e-acc); color: #fff; background: rgba(139,108,255,.18); }

/* blog: corner card with designs that fit the article */
.bl-pop { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 360px; padding: 14px 14px 12px; background: #fff; border-radius: 14px; box-shadow: 0 18px 50px rgba(30,42,42,.25); opacity: 0; transform: translateY(24px); transition: opacity .3s, transform .3s; }
.bl-pop.in { opacity: 1; transform: none; }
.bl-pop-h { display: block; font-size: 14px; margin: 0 26px 10px 2px; }
.bl-pop-x { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #F3ECE0; color: #1E2A2A; font-size: 20px; line-height: 1; cursor: pointer; }
.bl-pop-x:hover { background: #E7DDCC; }
.bl-pop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bl-pop-grid a { display: block; border-radius: 6px; overflow: hidden; background: #EEE7DB; transition: transform .2s; }
.bl-pop-grid a:hover { transform: translateY(-3px); }
.bl-pop-grid img { display: block; width: 100%; aspect-ratio: 5/7; object-fit: cover; }
.bl-pop-all { display: block; margin-top: 10px; font-size: 13px; font-weight: 600; text-align: center; }
@media (max-width: 600px) { .bl-pop { left: 12px; right: 12px; bottom: 12px; width: auto; } }

/* complete shadi sets */
.sets-head { max-width: 720px; margin: 8px 0 26px; } .sets-head h1 { margin: 6px 0 10px; }
.set-block { margin: 0 0 46px; } .set-block .sec-head p { margin: 4px 0 0; }
.suite.set-4 { grid-template-columns: repeat(4, 1fr); } .suite.set-3 { grid-template-columns: repeat(3, 1fr); } .suite.set-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .suite.set-4, .suite.set-3 { grid-template-columns: 1fr 1fr; } }

/* set covers (one card per set, two more peeking out behind) */
.set-covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 34px 26px; }
.set-cover { display: grid; gap: 6px; color: var(--ink); text-decoration: none !important; }
.set-cover b { font: 700 1.1rem var(--display); margin-top: 8px; } .set-cover .muted { font-size: .9rem; }
.set-stack { position: relative; margin: 10px 18px 0 0; aspect-ratio: 5/7; }
.set-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; background: #EEE7DB; box-shadow: 0 12px 30px rgba(30,42,42,.18); opacity: 1; }
.set-stack img.b0 { transform: translate(18px, -10px) rotate(4deg); } .set-stack img.b1 { transform: translate(9px, -5px) rotate(2deg); }
.set-stack img.front { position: relative; transition: transform .25s; } .set-cover:hover img.front { transform: translateY(-6px); }
.set-count { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(30,42,42,.82); color: #fff; font-size: .78rem; font-weight: 700; }
/* a set's own page: the cards side by side, upright and sharp */
.set-top { align-items: flex-end; margin-bottom: 22px; } .set-top h1 { margin: 6px 0 8px; }
.set-cards { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 22px; padding: clamp(16px, 3vw, 32px); border-radius: 28px; background: linear-gradient(150deg, #FBDCE6, #F3E6D3 55%, #DCE8D8); }
.set-cards a { display: grid; gap: 10px; justify-items: center; color: var(--ink); text-decoration: none !important; }
.set-card-img { width: 100%; border-radius: 10px; overflow: hidden; background: #EEE7DB; box-shadow: 0 14px 34px rgba(30,42,42,.2); transition: transform .25s; }
.set-cards a:hover .set-card-img { transform: translateY(-6px); }
.set-card-img img { display: block; width: 100%; aspect-ratio: 5/7; opacity: 0; transition: opacity .3s; } .set-card-img img.ready { opacity: 1; }
.set-cards b { font: 700 1.05rem var(--display); }
@media (max-width: 760px) { .set-cards { grid-template-columns: 1fr 1fr; } .set-top { flex-direction: column; align-items: flex-start; } }
/* editor: the cards of a set above the design */
.ed-stage.has-set { grid-template-rows: auto 1fr 44px; }
.ed-set { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--e-line); overflow-x: auto; }
.ed-set-h { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .7; margin-right: 4px; white-space: nowrap; }
.ed-set button { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--e-line); border-radius: 10px; background: transparent; color: inherit; cursor: pointer; font: inherit; white-space: nowrap; }
.ed-set button img { width: 30px; height: 42px; object-fit: cover; border-radius: 4px; background: #EEE7DB; }
.ed-set button b { font-size: .86rem; } .ed-set button.on { border-color: var(--e-acc); box-shadow: 0 0 0 2px var(--e-acc) inset; }
.suite[class*="set-"] a, .suite[class*="set-"] a:nth-child(odd), .suite[class*="set-"] a:nth-child(even) { transform: none; } .suite[class*="set-"] a:hover { transform: translateY(-6px); }

/* design page: slider through a set's cards */
.detail-stage .detail-img.set-slider { position: relative; overflow: hidden; transform: none !important; }
.ss-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; } .ss-track::-webkit-scrollbar { display: none; }
.ss-track figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; } .ss-track img { display: block; width: 100%; aspect-ratio: 5/7; object-fit: cover; }
.ss-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px rgba(30,42,42,.25); }
.ss-arrow.prev { left: 10px; } .ss-arrow.next { right: 10px; }
.ss-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.ss-dots button { padding: 6px 12px; border: 1px solid rgba(30,42,42,.18); border-radius: 999px; background: #fff; color: var(--ink); font: 600 .84rem var(--sans, inherit); cursor: pointer; }
.ss-dots button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
/* editor: a set laid out like pages */
.ed-scroll.pages { place-items: start center; align-content: start; row-gap: 10px; }
.ed-scroll.pages .ed-art { margin-bottom: 26px; }
.ed-pg { display: grid; justify-items: center; gap: 10px; padding: 0; margin: 0 0 26px; border: 0; background: none; cursor: pointer; color: inherit; }
.ed-pg img { display: block; background: #fff; opacity: .78; box-shadow: 0 20px 50px rgba(0,0,0,.45); transition: opacity .2s; }
.ed-pg:hover img { opacity: 1; outline: 2px solid var(--e-acc); outline-offset: 3px; }
.ed-pg-l { font-size: .8rem; font-weight: 700; letter-spacing: .02em; opacity: .75; justify-self: start; } p.ed-pg-l.on { margin: 0; opacity: 1; color: var(--e-acc); }

.suite.set-5 { grid-template-columns: repeat(5, 1fr); }
@media (min-width: 761px) and (max-width: 980px) { .set-cards { grid-template-columns: repeat(3, 1fr); } }

/* editor set strip: compact cards that fit on any screen */
.ed-set { gap: 6px; padding: 6px 10px; scrollbar-width: none; } .ed-set::-webkit-scrollbar { display: none; }
.ed-set button { flex: 0 0 auto; flex-direction: column; gap: 3px; padding: 4px 6px; width: 84px; border-radius: 9px; }
.ed-set button img { width: 30px; height: 42px; }
.ed-set button b { display: block; max-width: 100%; font-size: .7rem; font-weight: 700; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .ed-set-h { display: none; } .ed-set button { width: 64px; padding: 3px 4px; } .ed-set button img { width: 24px; height: 34px; } .ed-set button b { font-size: .62rem; } }
/* download menu: this card or all cards of a set */
.ed-scope { display: flex; gap: 4px; padding: 3px; margin: 0 0 8px; border-radius: 10px; background: rgba(255,255,255,.07); }
.ed-scope button { flex: 1; display: block; text-align: center; padding: 7px 8px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: 600 .82rem inherit; cursor: pointer; opacity: .75; }
.ed-scope button.on { background: var(--e-acc); color: #fff; opacity: 1; }

/* set cover: all cards of the set together */
.set-collage { position: relative; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: radial-gradient(90% 80% at 30% 20%, #FBE3EA, transparent 70%), radial-gradient(80% 80% at 80% 90%, #E8DCC4, transparent 70%), #F5EDE3; box-shadow: inset 0 0 0 1px rgba(30,42,42,.06); }
.set-collage img { position: absolute; height: auto; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 4px; background: #EEE7DB; box-shadow: 0 8px 22px rgba(30,42,42,.28); transition: transform .3s; }
.set-collage .set-count { z-index: 9; } .set-collage { transition: transform .25s; } .set-cover:hover .set-collage { transform: translateY(-4px); }

/* homepage on phones: a shorter page (fewer sections, fewer pictures to load) */
@media (max-width: 760px) { .hm-mhide { display: none !important; } }
