/* Layout concept: a quiet cool-white editorial site built from the logo's slate→sky gradient; invitations live inside phone frames; the admin is a dense two-pane workspace. */
:root {
  /* public site (single deliberate light look) */
  --ink: #22344a; --ink-2: #4e6075; --paper: #f8fafc; --mist: #edf2f8; --line: #d8e1ec; --accent: #4f7fb8; --accent-2: #7fa8dc; --blush: #efe2de;
  --f-display: 'Cormorant Garamond', 'Times New Roman', serif; --f-body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif; --f-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  /* admin (themed) */
  --a-bg: #f2f5f9; --a-surface: #ffffff; --a-sunk: #f7f9fc; --a-line: #dde4ee; --a-ink: #1d2b3b; --a-muted: #66768b; --a-accent: #3e6aa4; --a-accent-soft: #e5edf8; --a-accent-ink: #ffffff;
  --ok: #2f7d55; --ok-bg: #e3f3ea; --warn: #9a6512; --warn-bg: #fbf0dc; --bad: #b2373b; --bad-bg: #fbe5e5; --info: #2f6097; --info-bg: #e3edf9; --mute: #6b7584; --mute-bg: #eceff3;
  --shadow: 0 1px 2px rgba(20, 35, 55, .06), 0 6px 18px rgba(20, 35, 55, .06);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --a-bg: #11171f; --a-surface: #18212c; --a-sunk: #141b24; --a-line: #2a3644; --a-ink: #e4eaf2; --a-muted: #95a3b5; --a-accent: #8db3e6; --a-accent-soft: #1f3048; --a-accent-ink: #0f1722;
  --ok: #7cd0a2; --ok-bg: #173628; --warn: #f0c070; --warn-bg: #3a2c13; --bad: #f19a9c; --bad-bg: #3d1d20; --info: #9dc1ef; --info-bg: #1b2d44; --mute: #a3adba; --mute-bg: #232c37;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25); color-scheme: dark; } }
:root[data-theme="dark"] {
  --a-bg: #11171f; --a-surface: #18212c; --a-sunk: #141b24; --a-line: #2a3644; --a-ink: #e4eaf2; --a-muted: #95a3b5; --a-accent: #8db3e6; --a-accent-soft: #1f3048; --a-accent-ink: #0f1722;
  --ok: #7cd0a2; --ok-bg: #173628; --warn: #f0c070; --warn-bg: #3a2c13; --bad: #f19a9c; --bad-bg: #3d1d20; --info: #9dc1ef; --info-bg: #1b2d44; --mute: #a3adba; --mute-bg: #232c37;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25); color-scheme: dark; }

* { box-sizing: border-box; }
body { background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body:has(.adm), body:has(.bld), body:has(.adm-login) { background: var(--a-bg); color: var(--a-ink); }
body:has(.app-card) { background: #1b2430; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: var(--f-mono); font-size: .92em; font-variant-numeric: tabular-nums; }
.sel { user-select: all; }
.muted { color: var(--ink-2); }
.sm { font-size: .875rem; }
.sp { flex: 1; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .72em 1.3em; border-radius: 999px; border: 1px solid transparent; background: none; cursor: pointer; text-decoration: none; font-weight: 500; font-size: .95rem; line-height: 1.1; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn.pri { background: var(--ink); color: #fff; }
.btn.pri:hover { background: #31496a; }
.btn.line { border-color: currentColor; }
.btn.line:hover { background: rgba(34, 52, 74, .06); }
.btn.ghost { padding: .5em .75em; border-radius: 8px; }
.btn.ghost:hover { background: rgba(120, 140, 165, .14); }
.btn.sm { font-size: .85rem; padding: .55em 1em; }
.btn.ghost.sm { padding: .45em .7em; }
.btn.xs { font-size: .78rem; padding: .35em .5em; border-radius: 6px; }
.btn.block { width: 100%; }
.btn.danger { background: var(--bad); color: #fff; }
.btn.danger-ghost { color: var(--bad); border-radius: 8px; padding: .5em .8em; }
.btn.danger-ghost:hover { background: var(--bad-bg); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.ic { flex: none; }

/* ---------- toasts & modal ---------- */
#toasts { position: fixed; z-index: 100; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); }
.toast { background: #1d2b3b; color: #fff; padding: 12px 16px; border-radius: 10px; font-size: .9rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: tin .2s ease; }
.toast.err { background: #8e2b2f; }
.toast.out { opacity: 0; transition: opacity .4s; }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }
.modal-wrap { position: fixed; inset: 0; z-index: 90; background: rgba(15, 22, 32, .45); display: grid; place-items: center; padding: 16px; }
.modal { background: var(--a-surface); color: var(--a-ink); border-radius: 14px; padding: 22px; width: min(420px, 100%); box-shadow: var(--shadow); }
.modal-msg { margin: 0 0 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* =================================================================== PUBLIC SITE */
.site { --sb: transparent; --sf: var(--ink); --sa: var(--ink); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 .8em; }
.site h1, .site h2, .site h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -.005em; }
body:has(.site) { background: var(--paper); }

/* header */
.sh { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(248, 250, 252, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--paper); }
.sh-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.sh-logo img { height: 40px; width: auto; }
.sh-nav { display: flex; gap: 2px; margin-left: auto; }
.sh-it { position: relative; }
.sh-it > a { display: flex; align-items: center; gap: 3px; padding: 8px 12px; text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--ink-2); border-radius: 8px; }
.sh-it > a:hover, .sh-it > a.on { color: var(--ink); background: var(--mist); }
.sh-sub { position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 14px 30px rgba(34, 52, 74, .12); display: none; }
.sh-it.has-k:hover .sh-sub, .sh-it.has-k:focus-within .sh-sub { display: grid; }
.sh-sub a { padding: 9px 12px; border-radius: 8px; text-decoration: none; font-size: .9rem; }
.sh-sub a:hover { background: var(--mist); }
.sh-tools { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang button { border: 0; background: none; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .06em; cursor: pointer; color: var(--ink-2); }
.lang button.on { background: var(--ink); color: #fff; }
.sh-cart { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.sh-cart:hover { background: var(--mist); }
.sh-cart span { position: absolute; top: 2px; right: 0; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.sh-burger { display: none; border: 0; background: none; padding: 8px; cursor: pointer; }
@media (max-width: 980px) {
  .sh-burger { display: block; }
  .sh-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px max(16px, env(safe-area-inset-left, 0px)) 16px; box-shadow: 0 16px 30px rgba(34, 52, 74, .1); }
  .sh-nav.open { display: flex; }
  .sh-sub { position: static; display: grid; box-shadow: none; border: 0; padding: 0 0 0 14px; }
  .sh-tools { margin-left: auto; }
}

/* sections */
.ss { background: var(--sb); color: var(--sf); padding-block: clamp(56px, 8vw, 104px); font-size: var(--fs, 1rem); }
.ss.has-fg .ss-sub, .ss.has-fg .ft p, .ss.has-fg .eyebrow { color: inherit; opacity: .82; }
.ss .ss-t { font-family: var(--sh, var(--f-display)); font-size: var(--ts, clamp(2rem, 3.6vw, 2.9rem)); max-width: 22ch; }
.ss-sub { color: var(--ink-2); max-width: 60ch; margin: .8em 0 0; font-size: 1.05em; }
.ss-ic { display: inline-grid; place-items: center; color: var(--sa); margin-bottom: 14px; }
.ss-more { margin: 36px 0 0; }
.ss > .wrap > .ss-t + .ss-sub + *, .ss > .wrap > .ss-t + * { margin-top: 40px; }
.pv-hidden { opacity: .35; outline: 2px dashed #9aa8b9; outline-offset: -6px; }
[data-sel="1"] { outline: 3px solid var(--accent-2); outline-offset: -3px; }

/* hero */
.ss-hero { padding-block: clamp(40px, 6vw, 80px); }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-t { min-width: 0; }
.hero h1 { font-family: var(--sh, var(--f-display)); font-size: var(--ts, clamp(2.8rem, 6.4vw, 5.2rem)); font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.hero .lead { font-size: 1.12em; color: var(--ink-2); max-width: 46ch; margin: 1.2em 0 2em; }
.ss-hero.has-fg .lead { color: inherit; opacity: .85; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-v { position: relative; justify-self: center; width: min(420px, 100%); }
.hero-arch { aspect-ratio: 4/5; border-radius: 999px 999px 18px 18px; overflow: hidden; border: 1px solid var(--line); }
.hero-arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-tag { position: absolute; left: -24px; bottom: 36px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; box-shadow: 0 18px 40px rgba(34, 52, 74, .14); display: grid; gap: 2px; transform: rotate(-3deg); color: var(--ink); }
.hero-tag small { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.hero-tag b { font-family: 'Great Vibes', cursive; font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.hero-tag span { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .1em; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } .hero-v { width: min(340px, 86%); } .hero-tag { left: -8px; } }

/* features & steps */
.feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px 28px; }
.ft { border-top: 1px solid var(--line); padding-top: 22px; }
.ss.has-fg .ft { border-color: currentColor; }
.ft-ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--mist); color: var(--sa); margin-bottom: 14px; }
.ss.has-bg .ft-ic { background: rgba(255, 255, 255, .55); }
.ft h3 { font-size: 1.45rem; margin-bottom: 6px; }
.ft p { margin: 0; color: var(--ink-2); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding: 0 0 0 0; }
.steps .st-n::before { content: "0" counter(st); display: block; font-family: var(--f-display); font-size: 3.2rem; line-height: 1; color: var(--accent-2); margin-bottom: 10px; }
.steps .ic { color: var(--sa); }
.steps h3 { font-size: 1.35rem; margin: 8px 0 4px; }
.steps p { margin: 0; color: var(--ink-2); }

/* templates gallery */
.tpl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.tpl-grid.big { grid-template-columns: repeat(auto-fill, minmax(min(230px, 40vw), 1fr)); gap: 36px 24px; margin-top: 32px; }
@media (max-width: 900px) { .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tpl { display: grid; gap: 4px; text-decoration: none; color: inherit; min-width: 0; }
.tpl a { text-decoration: none; color: inherit; }
.tpl b { font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; margin-top: 10px; }
.tpl small { color: var(--ink-2); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.ss.has-fg .tpl small { color: inherit; opacity: .75; }
.tpl-a { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.tpl-a .btn { white-space: normal; text-align: center; }
.tpl-thumb { aspect-ratio: 9/16; width: 100%; border-radius: 18px; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 18px 40px rgba(34, 52, 74, .12); transition: transform .25s; pointer-events: none; }
a.tpl:hover .tpl-thumb, .tpl a:hover .tpl-thumb { transform: translateY(-4px); }
.tpl-thumb .card-doc { font-size: calc(100cqw / 24) !important; overflow: hidden; height: 100%; }

/* products & posts */
.pc-grid, .bc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 32px 24px; }
.bc-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.pc, .bc { text-decoration: none; color: inherit; display: grid; gap: 4px; align-content: start; }
.pc-im, .bc-im { aspect-ratio: 4/5; border-radius: 14px; overflow: hidden; background: var(--mist); margin-bottom: 10px; }
.bc-im { aspect-ratio: 3/2; }
.pc-im img, .bc-im img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pc:hover img, .bc:hover img { transform: scale(1.03); }
.pc small, .bc small { color: var(--ink-2); font-size: .78rem; letter-spacing: .05em; }
.ss.has-fg .pc small, .ss.has-fg .bc small, .ss.has-fg .bc p { color: inherit; opacity: .75; }
.pc b { font-weight: 500; }
.pc span { font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: .92rem; }
.bc b { font-family: var(--f-display); font-size: 1.45rem; font-weight: 600; line-height: 1.2; }
.bc p { margin: 0; color: var(--ink-2); font-size: .93rem; }

/* pricing */
.pk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; align-items: stretch; }
.pk { position: relative; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; display: flex; flex-direction: column; gap: 10px; }
.pk.hi { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 40px rgba(79, 127, 184, .18); }
.pk.sel { box-shadow: 0 0 0 2px var(--ink); }
.pk.off { opacity: .55; }
.pk-badge { position: absolute; top: -11px; left: 22px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.pk h3 { font-size: 1.7rem; }
.pk-price { font-family: var(--f-display); font-size: 2.4rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.pk-price small { font-family: var(--f-body); font-size: .78rem; font-weight: 400; color: var(--ink-2); margin-left: 6px; }
.pk p { margin: 0; color: var(--ink-2); font-size: .92rem; min-height: 3em; }
.pk ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .88rem; }
.pk-lim { border-block: 1px solid var(--line); padding-block: 12px !important; }
.pk-lim b { font-variant-numeric: tabular-nums; }
.pk-f li { display: flex; gap: 8px; align-items: center; }
.pk-f li.n { color: #9aa6b4; text-decoration: line-through; text-decoration-thickness: 1px; }
.pk-f li.y .ic { color: var(--ok); }
.pk .btn { margin-top: auto; }

/* testimonials, cta, text, faq, gallery */
.tm { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.tm figure { margin: 0; border-left: 2px solid var(--accent-2); padding-left: 22px; }
.tm blockquote { margin: 0 0 12px; font-family: var(--f-display); font-size: 1.5rem; line-height: 1.35; font-style: italic; }
.tm figcaption { font-size: .85rem; color: var(--ink-2); letter-spacing: .03em; }
.ss.has-fg .tm figcaption { color: inherit; opacity: .75; }
.cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta > div { flex: 1 1 360px; min-width: 0; }
.cta p { margin: 10px 0 0; color: var(--ink-2); max-width: 54ch; }
.ss-cta { padding-block: clamp(44px, 6vw, 72px); }
.prose { max-width: 68ch; min-width: 0; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: 2rem; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.45rem; margin: 1.4em 0 .4em; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: 14px; width: 100%; }
.prose figcaption { font-size: .85rem; color: var(--ink-2); margin-top: 8px; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent); font-family: var(--f-display); font-size: 1.5rem; line-height: 1.35; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin: .3em 0; }
.it { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.it.rev .it-im { order: 2; }
.it-im img { border-radius: 18px; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
@media (max-width: 760px) { .it { grid-template-columns: 1fr; } .it.rev .it-im { order: 0; } }
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--ink-2); }
.sg { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.sg img { aspect-ratio: 1; object-fit: cover; border-radius: 12px; width: 100%; }

/* forms (site) */
.fm { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.fm > .ss-ic, .fm > .ss-t, .fm > .ss-sub { grid-column: 1; }
.fm > .sform, .fm > .ok-box { grid-column: 2; grid-row: 1 / span 3; margin: 0 !important; }
@media (max-width: 800px) { .fm { grid-template-columns: 1fr; } .fm > .sform, .fm > .ok-box { grid-column: 1; grid-row: auto; } }
.sform, .cart-f, .wz-f { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sform label, .cart-f label, .wz-f label { display: grid; gap: 6px; font-size: .86rem; font-weight: 500; min-width: 0; }
.sform .wide, .wz-f .wide { grid-column: 1 / -1; }
.sform input, .sform select, .sform textarea, .cart-f input, .cart-f textarea, .wz-f input, .wz-f select, .wz-f textarea, .slot input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: .95rem; color: var(--ink); }
.sform input:focus, .sform select:focus, .sform textarea:focus, .cart-f input:focus, .wz-f input:focus, .wz-f select:focus, .wz-f textarea:focus { border-color: var(--accent); outline: 2px solid rgba(79, 127, 184, .2); }
@media (max-width: 560px) { .sform, .wz-f { grid-template-columns: 1fr; } }
.ok-box, .note-box { display: flex; gap: 10px; align-items: center; background: #e6f2ea; color: #245c3f; padding: 16px 18px; border-radius: 12px; }
.note-box { background: var(--mist); color: var(--ink); align-items: flex-start; }

/* page heads, chips, crumbs */
.pg-h { background: var(--mist); padding-block: clamp(36px, 6vw, 64px); border-bottom: 1px solid var(--line); }
.pg-h h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.pg-h p { color: var(--ink-2); margin: 10px 0 0; max-width: 60ch; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0; }
.chipl { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: .88rem; background: #fff; }
.chipl.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.crumb { font-size: .82rem; color: var(--ink-2); margin: 24px 0; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.empty, .done { text-align: center; padding-block: 80px; display: grid; justify-items: center; gap: 16px; }
.done-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #e6f2ea; color: #2f7d55; }
.shop { padding-bottom: 80px; }

/* product */
.prod { padding-bottom: 80px; }
.prod-g { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); }
@media (max-width: 820px) { .prod-g { grid-template-columns: 1fr; } }
.prod-im > img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 18px; background: var(--mist); }
.prod-th { display: flex; gap: 10px; margin-top: 12px; }
.prod-th button { border: 2px solid transparent; border-radius: 10px; padding: 0; width: 72px; overflow: hidden; cursor: pointer; background: none; }
.prod-th button.on { border-color: var(--ink); }
.prod-th img { aspect-ratio: 4/5; object-fit: cover; }
.prod-i { min-width: 0; }
.prod-i h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.prod-pr { font-size: 1.4rem; font-variant-numeric: tabular-nums; margin: 10px 0; }
.opt { margin: 22px 0; }
.opt > span { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; font-weight: 600; }
.opt-v { display: flex; flex-wrap: wrap; gap: 8px; }
.ob, .sw { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 14px; cursor: pointer; font-size: .88rem; display: inline-flex; align-items: center; gap: 8px; }
.ob.on, .sw.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sw i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); border: 1px solid rgba(0, 0, 0, .15); }
.buy { display: flex; gap: 12px; align-items: end; margin: 26px 0 16px; flex-wrap: wrap; }
.qty { display: grid; gap: 4px; font-size: .78rem; color: var(--ink-2); }
.qty input { width: 84px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; }

/* cart */
.cart { padding-block: 40px 80px; }
.cart h1 { font-size: 2.6rem; margin-bottom: 24px; }
.cart-g { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .cart-g { grid-template-columns: 1fr; } }
.ci { display: grid; grid-template-columns: 72px minmax(0, 1fr) 70px auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ci img { width: 72px; aspect-ratio: 4/5; object-fit: cover; border-radius: 8px; }
.ci > div { display: grid; min-width: 0; }
.ci small { color: var(--ink-2); font-size: .8rem; }
.ci input { width: 64px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.ci .tn { font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .ci { grid-template-columns: 60px minmax(0, 1fr) 56px; } .ci .tn, .ci > .btn { grid-column: 2; } }
.cart-f { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; grid-template-columns: 1fr; }
.cart-f h2 { font-size: 1.8rem; }
.pay { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.pay legend { font-size: .86rem; font-weight: 500; margin-bottom: 8px; }
.pay label { display: flex !important; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; cursor: pointer; font-weight: 400 !important; }
.pay label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sum { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; font-size: 1.1rem; }
.sum b { font-variant-numeric: tabular-nums; font-size: 1.4rem; }
.qrbox { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; text-align: left; }
.qrbox dl, .gb dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: .9rem; }
.qrbox dt, .gb dt { color: var(--ink-2); }
.qrbox dd, .gb dd { margin: 0; font-weight: 500; }

/* blog post */
.post-h { max-width: 880px; padding-top: 8px; }
.post-h h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.post-m { color: var(--ink-2); font-size: .9rem; margin: 16px 0 28px; }
.draft { color: var(--bad); }
.post-cover { margin: 0 0 40px; }
.post-cover img { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: 20px; }
.post-g { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-bottom: 40px; }
.toc { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); align-self: start; display: grid; gap: 8px; font-size: .88rem; border-left: 1px solid var(--line); padding-left: 16px; }
.toc b { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--ink); }
.toc a.h3 { padding-left: 12px; font-size: .84rem; }
.post-b { font-size: 1.06rem; }
.post-b .lead { font-size: 1.2rem; color: var(--ink-2); }
@media (max-width: 860px) { .post-g { grid-template-columns: 1fr; } .toc { position: static; } }

/* footer */
.sf { background: var(--ink); color: #dbe5f1; margin-top: 0; }
.sf-in { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 32px; padding-block: 56px 32px; }
.sf-brand img { height: 46px; width: auto; }
.sf-brand p { font-family: var(--f-display); font-size: 1.25rem; font-style: italic; margin: 12px 0 0; }
.sf h4 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #9fb6d2; margin: 0 0 12px; font-weight: 600; }
.sf a { display: block; text-decoration: none; padding: 3px 0; font-size: .92rem; }
.sf a:hover { color: #fff; }
.sf p { margin: 0 0 6px; font-size: .92rem; }
.sf-bot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 18px; font-size: .8rem; color: #9fb6d2; }
.sf-bot a { display: inline; }
@media (max-width: 800px) { .sf-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .sf-in { grid-template-columns: 1fr; } }

/* wizard */
.wz { padding-bottom: 80px; }
.wz-steps { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: w; }
.wz-steps li { counter-increment: w; font-size: .82rem; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--mist); color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.wz-steps li::before { content: counter(w); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; font-weight: 600; font-size: .75rem; }
.wz-steps li.on { background: var(--ink); color: #fff; }
.wz-steps li.on::before { color: var(--ink); }
.wz-steps li.ok::before { content: "✓"; background: var(--accent); color: #fff; }
.wz-g { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.wz-main h1 { font-size: 2.4rem; margin-bottom: 20px; }
.wz-main .pk-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.wz-nav { display: flex; justify-content: space-between; margin-top: 32px; }
.wz-pv { position: sticky; top: calc(92px + env(safe-area-inset-top, 0px)); }
.wz-err { color: var(--bad); grid-column: 1/-1; }
.row-a { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.wz-f h3 { font-size: 1.4rem; margin-top: 8px; }
@media (max-width: 960px) { .wz-g { grid-template-columns: 1fr; } .wz-pv { position: static; justify-self: center; width: min(320px, 100%); } }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.slot { display: grid; gap: 6px; font-size: .82rem; min-width: 0; }
.slot-im { aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; background: var(--mist); }
.slot-im img { width: 100%; height: 100%; object-fit: cover; }
.slot-im img.ghost { opacity: .35; filter: grayscale(.6); }
.slot-a { display: flex; gap: 6px; }
.slot input { padding: 7px 9px; font-size: .78rem; }

/* phone mock */
.phone { border: 10px solid #1d2733; border-radius: 38px; overflow: hidden; background: #1d2733; box-shadow: 0 30px 60px rgba(20, 30, 45, .25); }
.phone .card-frame { aspect-ratio: 9/16; }

/* =================================================================== WEDDING CARD */
.card-frame { container-type: size; overflow-y: auto; overflow-x: hidden; background: #fff; scrollbar-width: thin; }
.card-doc { --fh: 100cqh; background: var(--c-bg); color: var(--c-fg); font-family: var(--c-body); font-size: clamp(12px, calc(100cqw / 24), 17px); line-height: 1.55; min-height: 100%; position: relative; }
.card-doc .cs { --s-bg: var(--c-bg); --s-fg: var(--c-fg); --s-head: var(--c-head); background: var(--s-bg); color: var(--s-fg); padding: 3.4em 1.7em; position: relative; display: flex; flex-direction: column; justify-content: center; }
.cs.has-img { background: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .35)), var(--s-img) center/cover; color: #fff; }
.cs.is-hidden { opacity: .35; }
.cs.is-sel { outline: 2px solid #4f7fb8; outline-offset: -2px; }
.cs.drop-before { box-shadow: inset 0 4px 0 #4f7fb8; }
.cs.drop-after { box-shadow: inset 0 -4px 0 #4f7fb8; }
.bld .cs { cursor: pointer; }
.bld .cs:hover:not(.is-sel) { outline: 1px dashed #4f7fb8; outline-offset: -1px; }
.cs-t { font-family: var(--s-head); font-size: 2.1em; font-weight: 500; line-height: 1.1; margin: 0 0 .25em; text-wrap: balance; }
.orn { display: inline-block; margin: .4em auto .8em; max-width: 70%; height: auto; }
.cs[style*="text-align:left"] .orn { margin-left: 0; }
.cs-p { margin: 0 auto; max-width: 28em; }
.cs-p.sm { opacity: .7; font-size: .9em; }
.cs-quote { font-family: var(--c-script); font-size: 2em; line-height: 1.25; margin: 0; color: var(--c-ac); }
/* cover */
.cs-cover { padding: 0; }
.cv { position: relative; min-height: inherit; display: flex; flex-direction: column; }
.cv-full { justify-content: flex-end; min-height: var(--fh); }
.cv-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cv-shade { position: absolute; inset: 0; background: linear-gradient(transparent 30%, #000); }
.cv-txt { position: relative; padding: 2.6em 1.7em 3em; }
.cv-txt.over { color: #fff; }
.cs-eye { font-size: .72em; letter-spacing: .28em; text-transform: uppercase; margin: 0 0 .9em; }
.cs-names { font-family: var(--c-script); font-weight: 400; font-size: 3em; line-height: 1.05; margin: 0; }
.cs-date { font-family: var(--s-head); font-size: 1.15em; letter-spacing: .04em; margin: 0; }
.cs-date.sm { font-size: .95em; opacity: .75; margin-top: 1em; }
.cs-guest { margin: 1.6em auto 0; padding: .8em 1.4em; border: 1px solid currentColor; display: inline-block; border-radius: 4px; font-size: .9em; }
.cs-guest b { font-family: var(--s-head); font-size: 1.3em; font-weight: 500; }
.cv-arch { margin: 2.2em auto 0; width: 70%; aspect-ratio: 3/4; border-radius: 999px 999px 0 0; overflow: hidden; border: 1px solid var(--c-ac); padding: .4em; }
.cv-arch img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 0 0; }
.cv-card { margin: 1.4em; border: 1px solid var(--c-ac); outline: 1px solid var(--c-ac); outline-offset: -.5em; padding: 2.4em 1.2em 2.6em; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: calc(var(--fh) - 2.8em); }
.cv-round { width: 48%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin-bottom: 1.6em; border: .25em solid var(--c-ac); }
.cv-round img { width: 100%; height: 100%; object-fit: cover; }
.cv-split { height: calc(var(--fh) * .55); }
.cv-split img { width: 100%; height: 100%; object-fit: cover; }
.cv-split + .cv-txt .cs-names { font-family: var(--s-head); font-weight: 600; font-size: 2.7em; letter-spacing: -.02em; text-transform: uppercase; }
/* couple */
.cp { display: flex; align-items: flex-start; justify-content: center; gap: .6em; }
.cp-p { margin: 0; flex: 1; min-width: 0; }
.cp-img { aspect-ratio: 3/4; border-radius: 999px 999px 0 0; overflow: hidden; margin-bottom: .8em; }
.cp-img img { width: 100%; height: 100%; object-fit: cover; }
.cp figcaption { display: grid; gap: .2em; }
.cp small { font-size: .68em; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.cp b { font-family: var(--c-script); font-weight: 400; font-size: 1.9em; line-height: 1.1; color: var(--c-ac); }
.cp span { font-size: .78em; opacity: .8; }
.cp-amp { font-family: var(--c-script); font-size: 2.2em; align-self: center; color: var(--c-ac); }
/* events */
.evs { display: grid; gap: 1em; }
.ev { border: 1px solid color-mix(in srgb, var(--s-fg) 22%, transparent); padding: 1.4em 1em; display: grid; gap: .2em; justify-items: center; }
.cs[style*="text-align:left"] .ev { justify-items: start; }
.ev small { font-size: .7em; letter-spacing: .24em; text-transform: uppercase; color: var(--c-ac); }
.ev-time { font-family: var(--s-head); font-size: 2.2em; font-weight: 500; line-height: 1.1; }
.ev strong { font-weight: 600; margin-top: .4em; }
.ev span { font-size: .88em; opacity: .85; }
.cbtn { display: inline-flex; align-items: center; gap: .4em; border: 1px solid currentColor; background: transparent; color: inherit; padding: .6em 1.2em; border-radius: 999px; font-size: .85em; text-decoration: none; cursor: pointer; margin-top: .6em; font-family: var(--c-body, var(--f-body)); }
.cbtn.solid { background: var(--c-ac, var(--accent)); border-color: var(--c-ac, var(--accent)); color: var(--c-bg, #fff); }
.cbtn.xs { padding: .2em .6em; font-size: .72em; margin: 0 0 0 .3em; }
/* countdown */
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5em; margin-top: .4em; }
.cd div { border: 1px solid color-mix(in srgb, var(--s-fg) 22%, transparent); padding: .8em .2em; display: grid; }
.cd b { font-family: var(--s-head); font-size: 2em; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.cd small { font-size: .65em; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-top: .4em; }
/* gallery */
.gl { display: grid; gap: .4em; }
.gl-i { aspect-ratio: var(--r); overflow: hidden; background: color-mix(in srgb, var(--s-fg) 8%, transparent); }
.gl-i img { width: 100%; height: 100%; object-fit: cover; }
.gl-grid { grid-template-columns: 1fr 1fr; }
.gl-masonry { grid-template-columns: 1fr 1fr; }
.gl-masonry .gl-i:nth-child(3n+1) { grid-row: span 2; aspect-ratio: auto; }
.gl-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -1.7em; padding: 0 1.7em; gap: .6em; scrollbar-width: none; }
.gl-strip .gl-i { flex: 0 0 62%; scroll-snap-align: center; border: .35em solid #fff; box-shadow: 0 .3em 1em rgba(0, 0, 0, .15); }
.one { margin: 0; }
.one img { width: 100%; aspect-ratio: var(--r); object-fit: cover; }
.one figcaption { font-size: .85em; opacity: .75; margin-top: .6em; }
/* forms inside cards */
.cform { display: grid; gap: .6em; margin: 1.2em auto 0; width: 100%; max-width: 26em; text-align: left; }
.cform input, .cform textarea { width: 100%; padding: .8em 1em; border: 1px solid color-mix(in srgb, var(--s-fg) 25%, transparent); background: color-mix(in srgb, var(--s-bg) 85%, #fff); color: var(--s-fg); border-radius: .4em; font: inherit; font-size: .95em; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: .4em; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: .7em .4em; border: 1px solid color-mix(in srgb, var(--s-fg) 25%, transparent); border-radius: .4em; font-size: .85em; cursor: pointer; }
.seg input:checked + span { background: var(--c-ac); color: var(--c-bg); border-color: var(--c-ac); }
.seg input:focus-visible + span { outline: 2px solid var(--c-ac); outline-offset: 2px; }
.cnum { display: flex; align-items: center; justify-content: space-between; gap: 1em; font-size: .88em; }
.cnum input { width: 5em; }
.cform .cbtn { justify-self: stretch; justify-content: center; margin-top: .2em; }
.wl { display: grid; gap: .6em; text-align: left; max-height: 18em; overflow-y: auto; }
.w { border-left: 2px solid var(--c-ac); padding: .2em 0 .2em .9em; }
.w b { font-size: .85em; }
.w p { margin: .1em 0 0; font-size: .92em; }
.gb { display: flex; flex-wrap: wrap; gap: 1.2em; justify-content: center; align-items: center; margin-top: 1.2em; text-align: left; }
.gb-qr { background: #fff; padding: .6em; border-radius: .5em; }
.gb-qr svg { width: 8.5em; height: 8.5em; display: block; }
.gb dt { color: inherit; opacity: .7; font-size: .85em; }
.lock { display: flex; gap: .5em; align-items: center; justify-content: center; opacity: .8; font-size: .9em; }
.wm { position: sticky; bottom: 0; text-align: center; font-size: .72em; letter-spacing: .1em; padding: .7em; background: rgba(20, 28, 38, .78); color: #fff; z-index: 3; }
/* live view */
.app-card { min-height: 100svh; }
.card-live { position: fixed; inset: 0; display: grid; place-items: center; background: #1b2430; overflow: hidden; }
.cl-bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; filter: blur(30px) brightness(.55); }
.card-live .card-frame { position: relative; width: min(440px, 100vw); height: min(100svh, 940px); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
@media (min-width: 600px) { .card-live .card-frame { border-radius: 26px; height: min(calc(100svh - 48px), 940px); } }
.cl-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 5; display: flex; gap: 10px; align-items: center; background: rgba(20, 28, 38, .9); color: #fff; padding: 8px 8px 8px 10px; border-radius: 999px; font-size: .9rem; max-width: calc(100vw - 24px); }
.cl-bar b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-bar .cbtn { margin: 0; white-space: nowrap; }
.cl-bar .cbtn.solid { --c-ac: #fff; --c-bg: #1b2430; }
.cl-msg { min-height: 100%; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 32px; text-align: center; color: #22344a; font-size: 1.05rem; }
.cl-music { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); top: calc(16px + env(safe-area-inset-top, 0px)); z-index: 6; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: #22344a; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.cl-music.on .ic { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cl-intro { position: fixed; inset: 0; z-index: 8; display: grid; place-items: center; background: color-mix(in srgb, var(--c-bg) 92%, transparent); color: var(--c-fg); text-align: center; padding: 24px; transition: opacity .6s, visibility .6s; }
.cl-intro.gone { opacity: 0; visibility: hidden; }
.env { display: grid; justify-items: center; gap: 10px; max-width: 360px; }
.env .ic { color: var(--c-ac); }
.env p { margin: 0; letter-spacing: .08em; }
.env b { font-family: var(--c-head); font-size: 1.5rem; font-weight: 500; }
.env h1 { font-family: 'Great Vibes', cursive; font-weight: 400; font-size: 3rem; line-height: 1.1; margin: 8px 0 14px; }

/* =================================================================== ADMIN */
.adm-login { min-height: 100svh; display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-left, 0px)); background: var(--a-bg); color: var(--a-ink); }
.login { width: min(380px, 100%); background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 18px; padding: 32px 28px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.login img { justify-self: center; margin-bottom: 8px; }
.login h1 { font-size: 1.15rem; margin: 0 0 4px; text-align: center; font-weight: 600; }
.login label { display: grid; gap: 6px; font-size: .85rem; }
.login input { padding: 11px 12px; border-radius: 10px; border: 1px solid var(--a-line); background: var(--a-sunk); }
.login .err { color: var(--bad); margin: 0; font-size: .86rem; }
.login .hint { font-size: .82rem; color: var(--a-muted); margin: 0; text-align: center; }
.login a { font-size: .85rem; color: var(--a-muted); text-align: center; }
.adm .btn.pri, .bld .btn.pri, .adm-login .btn.pri { background: var(--a-accent); color: var(--a-accent-ink); }
.adm .btn.pri:hover, .bld .btn.pri:hover { filter: brightness(1.08); }
.adm .btn, .bld .btn { border-radius: 9px; padding: .6em 1em; font-size: .88rem; }
.adm .btn.xs, .bld .btn.xs { padding: .35em .45em; border-radius: 6px; font-size: .78rem; }
.adm .btn.sm, .bld .btn.sm { padding: .45em .75em; font-size: .84rem; }
.adm { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100svh; background: var(--a-bg); color: var(--a-ink); font-size: 14px; }
.side { background: var(--a-surface); border-right: 1px solid var(--a-line); padding: 18px 12px 24px; position: sticky; top: 0; height: 100svh; overflow-y: auto; }
.side-logo { display: block; padding: 4px 10px 18px; }
.side-logo img { height: 34px; width: auto; }
:root[data-theme="dark"] .side-logo img, :root[data-theme="dark"] .login img { filter: brightness(0) invert(.9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .side-logo img, :root:not([data-theme="light"]) .login img { filter: brightness(0) invert(.9); } }
.side-g { display: grid; gap: 1px; margin-bottom: 16px; }
.side-g small { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--a-muted); padding: 6px 10px; font-weight: 600; }
.side-g a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--a-ink); font-size: .88rem; }
.side-g a .ic { color: var(--a-muted); }
.side-g a:hover { background: var(--a-sunk); }
.side-g a.on { background: var(--a-accent-soft); color: var(--a-accent); font-weight: 600; }
.side-g a.on .ic { color: var(--a-accent); }
.side-g a i { margin-left: auto; font-style: normal; font-size: .7rem; font-weight: 700; background: var(--a-accent); color: var(--a-accent-ink); border-radius: 9px; padding: 1px 7px; }
.adm-main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; display: flex; align-items: center; gap: 10px; padding: 12px max(24px, env(safe-area-inset-right, 0px)) 12px 24px; background: color-mix(in srgb, var(--a-bg) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--a-line); }
.top h1 { font-size: 1.15rem; font-weight: 650; margin: 0; }
.top-r { margin-left: auto; display: flex; gap: 4px; }
.side-t { display: none !important; }
.adm-c { padding: 24px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); min-width: 0; }
@media (max-width: 900px) {
  .adm { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; z-index: 30; width: 260px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); padding-top: calc(18px + env(safe-area-inset-top, 0px)); }
  .side.open { transform: none; }
  .side-t { display: inline-flex !important; }
  .top-r .btn span { display: none; }
  .adm-c { padding: 16px max(16px, env(safe-area-inset-left, 0px)); }
  .top { padding-inline: 12px; }
}
.panel { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 14px; padding: 18px; min-width: 0; }
.panel-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.panel-h h2 { font-size: .95rem; margin: 0; font-weight: 600; }
.panel-h a { font-size: .8rem; color: var(--a-accent); text-decoration: none; }
.panel-h small { color: var(--a-muted); }
.adm .muted, .bld .muted { color: var(--a-muted); }
/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 14px; padding: 16px; text-decoration: none; color: inherit; display: grid; gap: 4px; position: relative; }
.kpi:hover { border-color: var(--a-accent); }
.kpi small { color: var(--a-muted); font-size: .78rem; }
.kpi b { font-size: 1.7rem; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpi-s { font-size: .76rem; color: var(--a-muted); }
.kpi-s em { font-style: normal; font-weight: 600; }
.kpi-s em.up { color: var(--ok); }
.kpi-s em.dn { color: var(--bad); }
.kpi-ic { position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; border-radius: 9px; background: var(--a-accent-soft); color: var(--a-accent); display: grid; place-items: center; }
.apt .kpi-ic { position: static; flex: none; }
.dash-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.span2 { grid-column: span 2; }
@media (max-width: 1100px) { .dash-g { grid-template-columns: minmax(0, 1fr); } .span2 { grid-column: auto; } }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--a-line); stroke-width: 1; }
.chart .ax { fill: var(--a-muted); font-size: 11px; font-family: var(--f-body); }
.chart .bar { fill: color-mix(in srgb, var(--a-accent) 45%, var(--a-surface)); }
.chart .bar.last, .chart .bar:hover { fill: var(--a-accent); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .8rem; color: var(--a-muted); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--a-accent); }
.legend i.d2 { background: color-mix(in srgb, var(--a-accent) 45%, var(--a-surface)); }
.hbar { display: grid; grid-template-columns: minmax(0, 1.2fr) 1fr auto; gap: 10px; align-items: center; padding: 7px 0; font-size: .85rem; }
.hbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar div { height: 8px; background: var(--a-sunk); border-radius: 4px; overflow: hidden; }
.hbar i { display: block; height: 100%; background: var(--a-accent); border-radius: 4px; }
.hbar b { font-variant-numeric: tabular-nums; font-weight: 600; }
.apt { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--a-line); cursor: pointer; }
.apt:last-child { border-bottom: 0; }
.apt > div:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.apt small { color: var(--a-muted); font-size: .78rem; }
.apt-d { width: 42px; text-align: center; border: 1px solid var(--a-line); border-radius: 9px; padding: 4px 0; display: grid; line-height: 1.1; }
.apt-d b { font-size: 1.1rem; }
.apt-d small { font-size: .66rem; }
/* tables */
.bar-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.bar-row p { margin: 0; max-width: 70ch; }
.search { display: flex; align-items: center; gap: 8px; background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 10px; padding: 0 12px; flex: 1 1 240px; max-width: 380px; color: var(--a-muted); }
.search input { border: 0; background: none; padding: 9px 0; width: 100%; outline: none; color: var(--a-ink); }
.bar-row select, .inline-sel { border: 1px solid var(--a-line); background: var(--a-surface); border-radius: 9px; padding: 8px 10px; color: var(--a-ink); }
.inline-sel { padding: 5px 8px; font-size: .82rem; }
.count { color: var(--a-muted); font-size: .8rem; margin-left: auto; font-variant-numeric: tabular-nums; }
.tbl-w { overflow-x: auto; background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 14px; }
.panel .tbl-w { border: 0; border-radius: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: .86rem; }
.tbl th { text-align: left; font-weight: 600; font-size: .74rem; color: var(--a-muted); padding: 10px 14px; border-bottom: 1px solid var(--a-line); white-space: nowrap; letter-spacing: .02em; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--a-line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover td { background: var(--a-sunk); }
.tbl td small { display: block; color: var(--a-muted); font-size: .76rem; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .act { text-align: right; white-space: nowrap; width: 1%; }
.tbl .act .btn { color: var(--a-muted); }
.tbl tr.unread td { font-weight: 600; }
.tbl .th { width: 44px; height: 54px; object-fit: cover; border-radius: 6px; background: var(--a-sunk); }
.clip { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.empty-row { text-align: center; color: var(--a-muted); padding: 32px !important; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 600; white-space: nowrap; background: var(--mute-bg); color: var(--mute); }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.info { background: var(--info-bg); color: var(--info); }
.tag { display: inline-block; font-size: .72rem; padding: 1px 7px; border-radius: 5px; background: var(--a-sunk); border: 1px solid var(--a-line); }
.swatch { display: inline-block; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--a-line); }
.fdots { display: flex; gap: 3px; }
.fdots span { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; background: var(--a-sunk); color: var(--a-muted); }
.fdots span.y { background: var(--ok-bg); color: var(--ok); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--a-line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; cursor: pointer; color: var(--a-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; white-space: nowrap; }
.tabs button.on { color: var(--a-accent); border-color: var(--a-accent); }
.hist { padding: 4px 0; font-size: .84rem; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--a-muted); }
.kv dd { margin: 0; }
.msg-v { background: var(--a-sunk); border-radius: 10px; padding: 14px; }
.msg-v p { margin: 0 0 6px; }
.msg-v h4 { margin: 10px 0 6px; }
/* drawer */
.dw-wrap { position: fixed; inset: 0; z-index: 40; background: rgba(10, 16, 24, .4); display: flex; justify-content: flex-end; }
.dw { width: min(680px, 100vw); height: 100%; background: var(--a-surface); color: var(--a-ink); display: flex; flex-direction: column; box-shadow: var(--shadow); animation: din .2s ease; font-size: 14px; }
@keyframes din { from { transform: translateX(30px); opacity: .5; } }
.dw header { display: flex; align-items: center; justify-content: space-between; padding: calc(14px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 14px 20px; border-bottom: 1px solid var(--a-line); }
.dw header h2 { font-size: 1.05rem; margin: 0; }
.dw-b { flex: 1; overflow-y: auto; padding: 20px; padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.dw footer { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px max(20px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) 20px; border-top: 1px solid var(--a-line); }
.dw-err { color: var(--bad); margin: 0; font-size: .84rem; width: 100%; order: -1; }
/* field engine */
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.f { display: grid; gap: 6px; align-content: start; min-width: 0; }
.f.wide, .f-h, .f-list, .f-images, .f-icon, .f-info, .f-custom, .f-refs { grid-column: 1 / -1; }
@media (max-width: 560px) { .fgrid { grid-template-columns: minmax(0, 1fr); } }
.f-l { font-size: .8rem; font-weight: 600; color: var(--a-ink); }
.f-l i { color: var(--bad); font-style: normal; }
.f-help { font-size: .76rem; color: var(--a-muted); }
.f-h { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--a-accent); font-weight: 700; padding-top: 14px; border-top: 1px solid var(--a-line); margin-top: 4px; display: grid; gap: 2px; }
.f-h small { text-transform: none; letter-spacing: 0; color: var(--a-muted); font-weight: 400; font-size: .78rem; }
.fgrid > .f-h:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.f input:not([type=checkbox]):not([type=color]), .f select, .f textarea, .slots.adm input {
  width: 100%; padding: 8px 10px; border: 1px solid var(--a-line); border-radius: 8px; background: var(--a-sunk); color: var(--a-ink); font-size: .88rem; min-width: 0; }
.f textarea { resize: vertical; line-height: 1.45; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--a-accent); outline: 2px solid color-mix(in srgb, var(--a-accent) 25%, transparent); outline-offset: 0; }
.f-row { display: flex; gap: 6px; align-items: center; min-width: 0; }
.f-row input { flex: 1; }
.f input[type=color] { width: 40px; height: 34px; padding: 2px; border: 1px solid var(--a-line); border-radius: 8px; background: var(--a-sunk); flex: none; cursor: pointer; }
.f-info { font-size: .86rem; }
.i18n { display: grid; gap: 6px; }
.lg { display: flex; gap: 6px; align-items: flex-start; }
.lg span { flex: none; font-size: .64rem; font-weight: 700; letter-spacing: .06em; width: 26px; text-align: center; padding: 9px 0; border-radius: 6px; background: var(--a-accent-soft); color: var(--a-accent); }
.lg input, .lg textarea { flex: 1; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .86rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { width: 38px; height: 22px; border-radius: 11px; background: var(--a-line); position: relative; transition: background .15s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch input:checked + span { background: var(--a-accent); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--a-accent); outline-offset: 2px; }
.f-bool { align-content: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--a-line); font-size: .8rem; cursor: pointer; background: var(--a-sunk); }
.chip input { position: absolute; opacity: 0; width: 1px; }
.chip.on { background: var(--a-accent-soft); border-color: var(--a-accent); color: var(--a-accent); font-weight: 600; }
.chip:focus-within { outline: 2px solid var(--a-accent); }
.icon-grid { display: flex; flex-wrap: wrap; gap: 4px; }
.ig { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--a-line); border-radius: 8px; background: var(--a-sunk); cursor: pointer; color: var(--a-ink); }
.ig.on { border-color: var(--a-accent); background: var(--a-accent-soft); color: var(--a-accent); }
.imgw { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.imgw-th { flex: none; width: 76px; height: 76px; border-radius: 9px; overflow: hidden; background: var(--a-sunk); border: 1px solid var(--a-line); display: grid; place-items: center; color: var(--a-muted); }
.imgw-th img { width: 100%; height: 100%; object-fit: cover; }
.imgw.compact .imgw-th { width: 56px; height: 56px; }
.imgw-c { flex: 1; display: grid; gap: 6px; min-width: 0; }
.imgw-c .f-row { flex-wrap: wrap; }
.imgw-c input { font-size: .8rem !important; }
.imgs { display: grid; gap: 8px; }
.imgs-it { display: flex; gap: 6px; align-items: flex-start; }
.imgs-it .imgw { flex: 1; }
.imgs > .btn { justify-self: start; }
.list { display: grid; gap: 6px; }
.li { border: 1px solid var(--a-line); border-radius: 10px; background: var(--a-surface); }
.li summary { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; cursor: pointer; list-style: none; font-size: .85rem; }
.li summary::-webkit-details-marker { display: none; }
.li[open] summary { border-bottom: 1px solid var(--a-line); background: var(--a-sunk); border-radius: 10px 10px 0 0; }
.li-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.li-a { display: flex; gap: 2px; color: var(--a-muted); }
.li-b { padding: 12px; }
.list-add { display: flex; gap: 6px; flex-wrap: wrap; }
.seo { display: grid; gap: 10px; }
.serp { border: 1px solid var(--a-line); border-radius: 10px; padding: 12px 14px; background: var(--a-surface); display: grid; gap: 2px; }
.serp small { color: var(--a-muted); font-size: .76rem; }
.serp b { color: #1a4fa0; font-weight: 500; font-size: 1.05rem; }
:root[data-theme="dark"] .serp b { color: #8ab4f8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .serp b { color: #8ab4f8; } }
.serp p { margin: 0; font-size: .84rem; color: var(--a-muted); }
.seo-c { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .82rem; }
.seo-c li { display: flex; gap: 6px; align-items: center; }
.seo-c .y .ic { color: var(--ok); } .seo-c .n .ic { color: var(--bad); }
.slots.adm { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.slots.adm .slot b { font-size: .78rem; }
/* pages, templates, menus */
.cards-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.pgc { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 14px; padding: 16px; display: grid; gap: 10px; }
.pgc-h { display: grid; }
.pgc-h b { font-size: 1rem; }
.pgc-h small, .pgc > small { color: var(--a-muted); font-size: .78rem; }
.pgc-secs { display: flex; flex-wrap: wrap; gap: 4px; }
.pgc-secs span { width: 28px; height: 28px; border-radius: 7px; background: var(--a-accent-soft); color: var(--a-accent); display: grid; place-items: center; }
.pgc-secs span.off { background: var(--a-sunk); color: var(--a-muted); opacity: .6; }
.pgc-a { display: flex; gap: 4px; flex-wrap: wrap; }
.tpl-adm { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.tpa { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 14px; padding: 12px; display: grid; gap: 10px; }
.tpa .tpl-thumb { border-radius: 10px; box-shadow: none; }
.tpa-i { display: grid; gap: 6px; }
.tpa-i small { color: var(--a-muted); font-size: .76rem; }
.mlist { padding: 6px; display: grid; gap: 0; margin-bottom: 16px; }
.mrow { display: flex; gap: 10px; align-items: center; padding: 10px 10px; border-radius: 9px; }
.mrow:hover { background: var(--a-sunk); }
.mrow > div { display: grid; min-width: 0; }
.mrow small { color: var(--a-muted); font-size: .76rem; }
.mrow.sub { margin-left: 34px; border-left: 2px solid var(--a-line); border-radius: 0 9px 9px 0; }
.grip { color: var(--a-muted); cursor: grab; display: inline-flex; }
.mpv { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.mpv .sh { position: relative; top: 0; }
.set { max-width: 900px; }
.set-f { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--a-line); position: sticky; bottom: 0; background: var(--a-surface); padding-bottom: 4px; }
.saved { font-size: .78rem; color: var(--a-muted); }
.lang.sm button { padding: 3px 8px; }
.adm .lang, .bld .lang { border-color: var(--a-line); }
.adm .lang button.on { background: var(--a-accent); color: var(--a-accent-ink); }
/* page editor */
.adm-c:has(.ped) { padding: 0; }
.ped-top { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--a-line); background: var(--a-surface); flex-wrap: wrap; }
.ped-g { display: grid; grid-template-columns: 260px minmax(0, 1fr) 340px; height: calc(100svh - 112px); }
.ped-l, .ped-r { background: var(--a-surface); overflow-y: auto; padding: 14px; }
.ped-l { border-right: 1px solid var(--a-line); }
.ped-r { border-left: 1px solid var(--a-line); }
.ped-l h3, .ped-r h3, .b-r h3 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--a-muted); margin: 6px 0 10px; display: flex; gap: 6px; align-items: center; }
.ped-c { overflow: auto; padding: 18px; background: var(--a-bg); }
.ped-pv { background: var(--paper); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); position: relative; }
.ped-scale { transform-origin: 0 0; }
.ped-scale .site { color: var(--ink); background: var(--paper); font-size: 16px; }
.ped-scale .ss { cursor: pointer; }
.ped-scale .ss:hover:not([data-sel]) { outline: 2px dashed var(--accent-2); outline-offset: -2px; }
@media (max-width: 1200px) { .ped-g { grid-template-columns: 240px minmax(0, 1fr); height: auto; } .ped-r { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--a-line); } }
@media (max-width: 760px) { .ped-g { grid-template-columns: minmax(0, 1fr); } .ped-l { border-right: 0; } }
.layers { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 3px; }
.layers li { display: flex; align-items: center; gap: 6px; padding: 6px 4px 6px 6px; border: 1px solid transparent; border-radius: 8px; font-size: .84rem; cursor: pointer; background: var(--a-sunk); }
.layers li:hover { border-color: var(--a-line); }
.layers li.on { border-color: var(--a-accent); background: var(--a-accent-soft); }
.layers li.off .ly-t { opacity: .5; text-decoration: line-through; }
.layers li.over { box-shadow: 0 -3px 0 var(--a-accent); }
.layers li.dragging { opacity: .4; }
.layers .btn { padding: .25em .3em; color: var(--a-muted); }
.ly-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.addb { display: flex; align-items: center; gap: 7px; padding: 9px 8px; border: 1px solid var(--a-line); border-radius: 9px; background: var(--a-surface); cursor: pointer; font-size: .78rem; text-align: left; color: var(--a-ink); line-height: 1.2; }
.addb:hover { border-color: var(--a-accent); color: var(--a-accent); }
.addb[draggable=true] { cursor: grab; }
.addb.lock { opacity: .6; }
.addb span { flex: 1; min-width: 0; }
/* builder */
.bld { display: flex; flex-direction: column; height: 100svh; background: var(--a-bg); color: var(--a-ink); font-size: 14px; }
.b-top { display: flex; align-items: center; gap: 12px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); background: var(--a-surface); border-bottom: 1px solid var(--a-line); flex-wrap: wrap; }
.b-name { display: grid; line-height: 1.25; min-width: 0; }
.b-name small { color: var(--a-muted); font-size: .74rem; }
.b-g { flex: 1; display: grid; grid-template-columns: 270px minmax(0, 1fr) 340px; min-height: 0; }
.b-l, .b-r { background: var(--a-surface); overflow-y: auto; padding: 14px; }
.b-l { border-right: 1px solid var(--a-line); }
.b-r { border-left: 1px solid var(--a-line); }
.b-l .tabs { margin-bottom: 12px; }
.b-c { overflow: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 16px 40px; background: radial-gradient(circle at 50% 0, color-mix(in srgb, var(--a-accent) 10%, var(--a-bg)), var(--a-bg) 60%); }
.b-dev { font-size: .75rem; color: var(--a-muted); }
.b-phone { flex: none; max-width: 100%; }
.b-phone .card-frame { aspect-ratio: auto; }
.b-rh { display: grid; gap: 6px; margin-bottom: 12px; }
.b-rh .btn { justify-self: start; }
.b-move { display: flex; gap: 4px; }
.pal { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.palb { display: flex; border: 1px solid var(--a-line); border-radius: 8px; overflow: hidden; padding: 0; cursor: pointer; background: none; }
.palb i { width: 16px; height: 26px; display: block; }
.palb:hover { border-color: var(--a-accent); }
.b-r .note-box { background: var(--warn-bg); color: var(--warn); font-size: .8rem; padding: 10px; margin: 0 0 12px; }
@media (max-width: 1100px) { .b-g { grid-template-columns: 230px minmax(0, 1fr); } .b-r { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--a-line); } .bld { height: auto; min-height: 100svh; } }
@media (max-width: 720px) { .b-g { grid-template-columns: minmax(0, 1fr); } .b-l { border-right: 0; } .b-phone { width: 100% !important; } }

/* ---------- production additions ---------- */
.lang a { padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-decoration: none; color: var(--ink-2); }
.lang a.on { background: var(--ink); color: #fff; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ferr { color: #b2373b; font-size: .82rem; font-weight: 400; margin: 0; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 40px; }
.pill-l { display: inline-block; background: #fbf0dc; color: #9a6512; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.qrimg { border-radius: 10px; background: #fff; }
.hero .h1 { font-family: var(--sh, var(--f-display)); font-size: var(--ts, clamp(2.8rem, 6.4vw, 5.2rem)); font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.wz-host { min-height: 60vh; }
[hidden] { display: none !important; }
.inline-sel.pay-paid { color: var(--ok); border-color: var(--ok); }
.inline-sel.pay-unpaid { color: var(--warn); }

/* ===================== v2: sliders, new sections, media, emails, tracking ===================== */
.sl { position: relative; }
.sl-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap, 16px)) / var(--per)); gap: var(--gap, 16px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.sl-track::-webkit-scrollbar { display: none; }
.sl-i { scroll-snap-align: start; position: relative; min-width: 0; }
.sl-i > img { width: 100%; aspect-ratio: var(--r); object-fit: cover; display: block; }
.sl-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: #22344a; font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); z-index: 2; }
.sl-nav.prev { left: 10px; } .sl-nav.next { right: 10px; }
.sl-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.sl-dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .25; }
.sl-dots i.on { opacity: .9; }
.sl-slide { --gap: 0px; }
.sl-hero { --gap: 0px; border-radius: 20px; overflow: hidden; }
.sl-hero .sl-i > img { max-height: 78vh; }
.sl-hero .sl-cap { position: absolute; inset: auto 0 0 0; padding: clamp(20px, 5vw, 56px); background: linear-gradient(transparent, rgba(15, 23, 35, .72)); color: #fff; }
.sl-hero .sl-cap h1, .sl-hero .sl-cap h2 { font-family: var(--sh, var(--f-display)); font-size: clamp(2rem, 5vw, 4rem); font-weight: 500; line-height: 1.05; margin: 0 0 10px; max-width: 18ch; }
.sl-hero .sl-cap p { max-width: 50ch; margin: 0 0 18px; opacity: .9; }
.sl-hero .sl-cap .btn.pri { background: #fff; color: #22344a; }
.sl-hero .sl-dots { position: absolute; bottom: 14px; right: 20px; margin: 0; color: #fff; }
.ss-slider { padding-block: clamp(20px, 3vw, 40px); }
.sl-cards .cc { display: grid; gap: 6px; text-decoration: none; color: inherit; }
.sl-cards .cc img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 14px; }
.sl-cards .cc b { font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; }
.sl-cards .cc small { color: var(--ink-2); }
@media (max-width: 760px) { .sl-cards { --per: 1.3 !important; } .sl-nav { display: none; } }
.stl { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 2px solid var(--line); display: grid; gap: 28px; max-width: 760px; }
.stl li { position: relative; }
.stl-dot { position: absolute; left: -44px; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--sb, var(--paper)); border: 2px solid var(--sa, var(--accent)); color: var(--sa, var(--accent)); display: grid; place-items: center; }
.ss.has-bg .stl-dot { background: var(--sb); }
.stl-d { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .08em; color: var(--sa, var(--accent)); }
.stl h3 { font-size: 1.5rem; margin: 4px 0; }
.stl p { margin: 0; color: var(--ink-2); }
.vid { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #000; }
.vid iframe, .vid video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapw { aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--mist); }
.mapw iframe { width: 100%; height: 100%; border: 0; display: block; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; }
.stats div { display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 16px; }
.stats b { font-family: var(--f-display); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; color: var(--sa, var(--ink)); }
.stats span { color: var(--ink-2); }
.logos { display: flex; flex-wrap: wrap; gap: 28px 44px; align-items: center; justify-content: center; }
.logos img { height: 44px; width: auto; filter: grayscale(1); opacity: .7; }
.ss-wide > .wrap { max-width: none; padding-left: 0; padding-right: 0; }
.ss-html { padding-block: clamp(32px, 5vw, 64px); }
/* card sections */
.cs .sl { margin: 0 -1.7em; }
.cs .sl-slide .sl-i > img { aspect-ratio: var(--r); }
.cs .sl-carousel { --gap: .5em; padding: 0 1.7em; margin: 0 -1.7em; }
.cs .sl-carousel .sl-i > img { border-radius: .4em; }
.cs .sl-nav { width: 2.2em; height: 2.2em; font-size: 1.3em; }
.cs .sl-dots { color: var(--s-fg); }
.tl { list-style: none; margin: .4em auto 0; padding: 0; display: grid; gap: 1.4em; max-width: 24em; text-align: left; position: relative; }
.tl::before { content: ""; position: absolute; left: .4em; top: .5em; bottom: .5em; width: 1px; background: var(--c-ac); opacity: .5; }
.tl li { padding-left: 1.8em; position: relative; display: grid; gap: .15em; }
.tl li::before { content: ""; position: absolute; left: 0; top: .35em; width: .8em; height: .8em; border-radius: 50%; background: var(--s-bg); border: 1px solid var(--c-ac); }
.tl-d { font-size: .72em; letter-spacing: .2em; text-transform: uppercase; color: var(--c-ac); }
.tl b { font-family: var(--s-head); font-size: 1.3em; font-weight: 500; }
.tl p { margin: 0; font-size: .92em; opacity: .85; }
.cs .vid, .cs .mapw { border-radius: .6em; margin-top: .4em; }
.cs .mapw { border-color: color-mix(in srgb, var(--s-fg) 18%, transparent); aspect-ratio: 4/3; }
.cs-html { text-align: inherit; }
.gb-qr img { width: 8.5em; height: 8.5em; object-fit: contain; display: block; }
/* template thumbnails from source code */
.tpl-thumb.code { position: relative; }
.tpl-thumb.code iframe { position: absolute; top: 0; left: 0; width: 390px; height: 693px; border: 0; transform-origin: 0 0; transform: scale(calc(100cqw / 390px)); pointer-events: none; }
@supports not (width: 1cqw) { .tpl-thumb.code iframe { width: 100%; height: 100%; transform: none; } }
.wz-code { width: 100%; height: 100%; border: 0; display: block; }
/* wizard customization */
.wz-h { font-size: 1.25rem; margin: 18px 0 10px; }
.wz-pal { margin: 0 0 14px; }
.palb.on { box-shadow: 0 0 0 2px var(--ink); }
.wz-f input[type=color] { height: 46px; padding: 4px; }
.wz-secs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wz-secs li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.wz-secs li span { flex: 1; }
.wz-secs li.off span { opacity: .45; text-decoration: line-through; }
.qrup { display: grid; gap: 6px; font-size: .86rem; font-weight: 500; }
.qrup img { border-radius: 8px; border: 1px solid var(--line); }
/* fields */
.fontprev { display: block; font-size: 1.15rem; padding: 6px 2px 0; color: var(--a-ink); }
.fgrid.one { grid-template-columns: minmax(0, 1fr); }
/* modals */
.modal.lg { width: min(980px, 100%); max-height: 88vh; display: flex; flex-direction: column; padding: 0; }
.modal-h { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--a-line); }
.modal-b { overflow-y: auto; padding: 16px; }
.modal-t { margin: 0 0 14px; font-size: 1.05rem; }
.modal .f input, .modal .f select { width: 100%; padding: 8px 10px; border: 1px solid var(--a-line); border-radius: 8px; background: var(--a-sunk); color: var(--a-ink); }
/* media library */
.media-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.med { margin: 0; background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.med[data-pick-media] { cursor: pointer; }
.med[data-pick-media]:hover, .med[data-pick-media]:focus { border-color: var(--a-accent); outline: none; }
.med-im { aspect-ratio: 1; background: var(--a-sunk) repeating-conic-gradient(var(--a-line) 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.med-im img { width: 100%; height: 100%; object-fit: contain; }
.med figcaption { padding: 8px 10px; display: grid; gap: 2px; font-size: .78rem; position: relative; }
.med figcaption b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.med figcaption small { color: var(--a-muted); }
.med-a { display: flex; gap: 2px; margin-top: 4px; }
/* email editor */
.em { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.em-l { display: grid; gap: 4px; padding: 8px; }
.em-i { display: flex; gap: 10px; align-items: flex-start; text-align: left; border: 0; background: none; padding: 10px; border-radius: 10px; cursor: pointer; color: var(--a-ink); }
.em-i span { display: grid; gap: 2px; }
.em-i small { color: var(--a-muted); font-size: .75rem; }
.em-i.on { background: var(--a-accent-soft); color: var(--a-accent); }
.em-r { display: grid; gap: 16px; }
.em-pv { border-top: 1px solid var(--a-line); padding-top: 14px; display: grid; gap: 10px; }
.em-pvh { display: flex; align-items: center; gap: 10px; }
.em-pv iframe { width: 100%; height: 620px; border: 1px solid var(--a-line); border-radius: 12px; background: #fff; }
@media (max-width: 900px) { .em { grid-template-columns: minmax(0, 1fr); } }
.sendbar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--a-accent); color: var(--a-accent-ink); padding: 12px 20px; border-radius: 999px; z-index: 95; font-weight: 600; box-shadow: var(--shadow); }
.help-code { margin-top: 16px; }
.help-code summary { cursor: pointer; font-weight: 600; }
.help-code code { background: var(--a-sunk); padding: 1px 5px; border-radius: 4px; font-size: .82em; }
.tbl audio { height: 32px; max-width: 220px; }
/* order tracking */
.track { padding-block: 32px 80px; display: grid; gap: 20px; }
.track-f { max-width: 640px; }
.track-h { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-end; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.track-h > div { display: grid; gap: 2px; }
.track-h small { color: var(--ink-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.track-h b { font-size: 1.2rem; }
.track-h .btn { margin-left: auto; }
.pill-l.ok { background: #e6f2ea; color: #2f7d55; }
.track-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: ts; }
.track-steps li { counter-increment: ts; position: relative; text-align: center; padding-top: 38px; font-size: .9rem; color: var(--ink-2); }
.track-steps li::before { content: counter(ts); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); font-weight: 600; z-index: 1; }
.track-steps li::after { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.track-steps li:first-child::after { display: none; }
.track-steps li.ok::before { content: "✓"; background: var(--accent); color: #fff; }
.track-steps li.on::before { background: var(--ink); color: #fff; }
.track-steps li.on, .track-steps li.ok { color: var(--ink); font-weight: 500; }
.track-g { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .track-g { grid-template-columns: 1fr; } .track-steps li { font-size: .78rem; } }
.panel-s { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 12px; align-content: start; }
.panel-s h2 { font-size: 1.5rem; }
.ti { display: grid; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ti small { color: var(--ink-2); }
.sform.one { grid-template-columns: 1fr; }
.track-cancel { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; }
.chkline { display: flex; gap: 8px; align-items: center; font-size: .88rem; }
.track .btn.danger-ghost { color: #b2373b; }

/* PDF section */
.pdfv { border: 1px solid rgba(0,0,0,.1); border-radius: 16px; overflow: hidden; background: #fff; color: #22344a; }
.pdfv iframe { display: block; width: 100%; border: 0; background: #f2f4f7; }
.pdf-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid rgba(0,0,0,.08); }
.pdfv.only .pdf-bar { border-top: 0; }
.pdf-bar b { font-weight: 600; overflow-wrap: anywhere; }
.pdf-bar .sp { flex: 1; }
.pdfv.empty { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 40px; color: #8a96a6; border-style: dashed; }
label.busy { opacity: .6; pointer-events: none; }
@media (max-width: 700px) { .pdfv iframe { display: none; } .pdf-bar { border-top: 0; } .pdf-bar .btn { flex: 1; justify-content: center; } }

/* ===== Blog rich content (public) ===== */
.prose h4 { font-size: 1.15rem; margin: 1.3em 0 .4em; }
.prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.prose pre { background: #f3f5f8; border-radius: 10px; padding: 14px 16px; overflow-x: auto; font: .88rem/1.55 var(--f-mono); white-space: pre-wrap; }
.prose code { font-family: var(--f-mono); font-size: .9em; }
.prose figure.fig-md { max-width: 560px; margin-inline: auto; }
.prose figure.fig-sm { max-width: 340px; margin-inline: auto; }
.prose figure.fig-wide { width: min(1100px, 92vw); max-width: none; position: relative; left: 50%; transform: translateX(-50%); }
.prose figure a { display: block; }
.prose .cta-p { margin: 1.8em 0; text-align: center; }
.prose .cta-p.left { text-align: left; } .prose .cta-p.right { text-align: right; }
.prose .cta-p .btn { text-decoration: none; }
.prose .tbl-scroll { overflow-x: auto; margin: 1.6em 0; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95em; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose thead th, .prose th { background: var(--mist); font-weight: 600; }
.prose .vid { margin: 1.8em 0; }
.prose .post-html { margin: 1.6em 0; }

/* ===== Blog editor (admin) ===== */
.dw.wide { width: min(1180px, 100vw); }
.rte { border: 1px solid var(--a-line); border-radius: 12px; background: var(--a-surface); }
.rte-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 10px; border-bottom: 1px solid var(--a-line); }
.rte-top .sp, .rte-foot .sp { flex: 1; }
.rte-lang { display: inline-flex; border: 1px solid var(--a-line); border-radius: 8px; overflow: hidden; }
.rte-lang button { border: 0; background: none; color: var(--a-muted); padding: 5px 12px; font: 600 12px var(--f-body); cursor: pointer; }
.rte-lang button.on { background: var(--a-accent); color: var(--a-accent-ink); }
.rte-bar { position: sticky; top: -20px; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px 8px; background: var(--a-sunk); border-bottom: 1px solid var(--a-line); }
.rte-bar select { width: auto; flex: 0 0 auto; height: 32px; padding: 0 8px; border: 1px solid var(--a-line); border-radius: 8px; background: var(--a-surface); color: var(--a-ink); font-size: 13px; min-width: 150px; }
.rte-bar button { display: inline-flex; align-items: center; gap: 5px; height: 32px; min-width: 32px; justify-content: center; padding: 0 7px; border: 0; border-radius: 8px; background: none; color: var(--a-ink); font: 500 12.5px var(--f-body); cursor: pointer; }
.rte-bar button:hover { background: var(--a-accent-soft); }
.rte-bar button.on { background: var(--a-accent-soft); color: var(--a-accent); }
.rte-sep { width: 1px; height: 22px; background: var(--a-line); margin: 0 4px; }
.rte-tbar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 6px 10px; background: #fff7e3; color: #5d4a1c; border-bottom: 1px solid #f0e2bd; font-size: 12.5px; }
.rte-tbar[hidden] { display: none; }
.rte-tbar button { border: 1px solid #ead9ad; background: #fff; border-radius: 6px; padding: 4px 8px; font: inherit; cursor: pointer; color: inherit; }
.rte-tbar button.bad { color: #b3261e; }
.rte-ed { min-height: 460px; max-width: none; padding: 26px 32px 30px 64px; background: #fff; color: var(--ink); font-family: var(--f-body); outline: none; border-radius: 0 0 12px 12px; }
.rte-ed > * { position: relative; }
.rte-ed > h2::before, .rte-ed > h3::before, .rte-ed > h4::before, .rte-ed > blockquote::before, .rte-ed > ul::before, .rte-ed > ol::before, .rte-ed > p::before {
  position: absolute; left: -48px; top: .35em; font: 600 10px/1 var(--f-body); letter-spacing: .04em; color: #8a99ad; background: #eef2f7; border-radius: 4px; padding: 3px 5px; pointer-events: none; }
.rte-ed > h2::before { content: 'H2'; color: #fff; background: var(--accent); }
.rte-ed > h3::before { content: 'H3'; color: #fff; background: var(--accent-2); }
.rte-ed > h4::before { content: 'H4'; }
.rte-ed > p::before { content: 'P'; opacity: .55; }
.rte-ed > blockquote::before { content: '❝'; font-size: 12px; }
.rte-ed > ul::before { content: '•'; } .rte-ed > ol::before { content: '1.'; }
.rte-ed:empty::after { content: 'Dán hoặc gõ nội dung bài viết ở đây…'; color: #9aa7b8; }
.rte-ed table td, .rte-ed table th { min-width: 60px; }
.rte-ed a { cursor: text; }
.rte-blk { margin: 1.4em 0; border-radius: 12px; outline: 2px dashed transparent; outline-offset: 4px; cursor: pointer; user-select: none; }
.rte-blk:hover { outline-color: #c6d4e6; }
.rte-blk figure { margin: 0; }
.rte-tools { position: absolute; top: 8px; right: 8px; z-index: 2; display: none; gap: 2px; background: rgba(20, 30, 44, .82); border-radius: 8px; padding: 3px; }
.rte-blk:hover .rte-tools { display: flex; }
@media (hover: none) { .rte-tools { display: flex; } }
.rte-tools button { border: 0; background: none; color: #fff; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; cursor: pointer; }
.rte-tools button:hover { background: rgba(255, 255, 255, .18); }
.rte-cap { display: block; color: #8a99ad; font-size: 12px; margin-top: 4px; text-align: center; overflow-wrap: anywhere; }
.rte-vid { position: relative; aspect-ratio: 16/9; background: #10161f; border-radius: 12px; overflow: hidden; display: grid; place-items: center; color: #fff; }
.rte-vid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.rte-vid span { position: relative; width: 64px; height: 64px; border-radius: 50%; background: rgba(0, 0, 0, .55); display: grid; place-items: center; }
.rte-code { display: grid; gap: 6px; padding: 14px 16px; border-radius: 10px; background: #f4f6fa; border: 1px solid #e1e7f0; color: #34465c; font-size: 13px; }
.rte-code code { font-family: var(--f-mono); font-size: 12px; color: #66768b; overflow-wrap: anywhere; }
.rte-src { width: 100%; min-height: 460px; border: 0; padding: 18px; font: 13px/1.6 var(--f-mono); background: #10161f; color: #d9e3f0; border-radius: 0 0 12px 12px; resize: vertical; }
.rte-foot { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 8px 12px; border-top: 1px solid var(--a-line); font-size: 12px; color: var(--a-muted); }
.rte-foot b { color: var(--a-ink); }
.rte.full { position: fixed; inset: 0; z-index: 60; border-radius: 0; display: flex; flex-direction: column; overflow: auto; }
.rte.full .rte-bar { top: 0; }
.rte.full .rte-pane { flex: 1; background: #fff; }
.rte.full .rte-ed { max-width: 860px; margin: 0 auto; min-height: 100%; }
.rte-dlg.wide { width: min(760px, 100%); }
.rte-dlg textarea { width: 100%; }
.rte-dlg .sp { flex: 1; }
.rte-prev img { max-height: 170px; border-radius: 8px; margin-top: 8px; }
@media (max-width: 760px) {
  .rte-bar button span { display: none; }
  .rte-ed { padding: 18px 16px 24px 44px; }
  .rte-ed > *::before { left: -36px !important; }
}
.prose figure.fig-md figcaption, .prose figure.fig-sm figcaption { text-align: center; }

/* ===== View statistics (admin) ===== */
.vstats { border: 1px solid var(--a-line); border-radius: 12px; padding: 14px 16px; background: var(--a-surface); }
.vs-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.vs-h .sp { flex: 1; } .vs-h small { color: var(--a-muted); font-size: 12px; }
.vs-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.vs-k { background: var(--a-sunk); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.vs-k small { color: var(--a-muted); font-size: 12px; } .vs-k b { font-size: 20px; } .vs-k em { font-style: normal; font-size: 11.5px; color: var(--a-muted); }
.vs-empty { margin: 0; font-size: 13px; }
.vbars { width: 100%; height: 120px; display: block; }
.panel .vbars { height: 170px; }
.vbars .b rect { fill: var(--a-accent); opacity: .85; } .vbars .b rect:hover { opacity: 1; }
.vbars .l text { fill: var(--a-muted); font-size: 10px; }
.pgc-v { display: flex; align-items: center; gap: 5px; color: var(--a-muted); } .pgc-v b { color: var(--a-ink); }
.ped-views { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--a-muted); margin-left: 10px; }
.hbar[data-open] { cursor: pointer; }
@media (max-width: 700px) { .vs-g { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 760px) { .kpis:has(> .kpi:nth-child(6)) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vbars .b rect.p2 { fill: var(--a-accent); opacity: .4; }
.vs-sub { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--a-muted); margin: 12px 0 6px; font-weight: 600; }
.vs-sub:first-of-type { margin-top: 0; }

/* ===== Service page sections ===== */
.svh { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.svh-t { min-width: 0; }
.svh h1, .svh .h1 { font-family: var(--sh, var(--f-display)); font-size: var(--ts, clamp(2.4rem, 5.2vw, 4.2rem)); font-weight: 500; line-height: 1.04; letter-spacing: -.02em; max-width: 18ch; }
.svh .lead { font-size: 1.1em; color: var(--ink-2); max-width: 54ch; margin: 1.1em 0 1.4em; }
.ss.has-fg .svh .lead { color: inherit; opacity: .85; }
.svh-pts { list-style: none; padding: 0; margin: 0 0 2em; display: grid; gap: 10px; }
.svh-pts li { display: flex; gap: 10px; align-items: flex-start; }
.svh-pts .ic { flex: none; color: var(--sa, var(--accent)); margin-top: 3px; }
.svh-v { position: relative; display: grid; gap: 16px; }
.svh-im { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; }
.svh-im img { width: 100%; height: 100%; object-fit: cover; }
.svh-card { background: var(--ink); color: #fff; border-radius: 20px; padding: clamp(22px, 3vw, 32px); box-shadow: 0 24px 60px rgba(34, 52, 74, .18); }
.svh.has-img .svh-card { margin: -64px 24px 0 -24px; position: relative; }
.svh-ct { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }
.svh-card ol { list-style: none; margin: 0; padding: 0; display: grid; }
.svh-card li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 1.02rem; }
.svh-card li:first-child { border-top: 0; }
.svh-card li span { font-family: var(--f-mono); font-size: .78rem; color: var(--accent-2); }

.psl { display: grid; gap: clamp(28px, 4vw, 48px); }
.psl-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.psl-row:nth-child(even) .psl-v { order: 2; }
.psl-v img { width: 100%; border-radius: 18px; aspect-ratio: 4/3; object-fit: cover; }
.psl-n { display: grid; place-items: center; aspect-ratio: 4/3; border-radius: 18px; background: var(--mist); font-family: var(--f-display); font-size: clamp(4rem, 9vw, 7rem); color: var(--sa, var(--accent)); line-height: 1; }
.psl-b h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin: 10px 0 6px; }
.psl-pt { color: var(--ink-2); margin: 0 0 16px; }
.chip-p, .chip-s { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.chip-p { background: var(--bad-bg); color: var(--bad); }
.chip-s { background: var(--ok-bg); color: var(--ok); }
.psl-s { border-left: 3px solid var(--ok); padding: 4px 0 4px 16px; }
.psl-s p { margin: 8px 0 0; }

.goals { display: grid; gap: 20px; }
.gl-r { position: absolute; opacity: 0; pointer-events: none; }
.gl-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.gl-t { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 500; transition: background .15s, color .15s; }
.gl-t:hover { border-color: var(--sa, var(--accent)); }
.gl-r:focus-visible + .gl-r, .goals:has(.gl-r:focus-visible) .gl-tabs { outline: 2px solid var(--accent-2); outline-offset: 4px; border-radius: 12px; }
.gl-p { display: none; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3.5vw, 40px); }
.gl-p h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0 0 8px; }
.gl-p > p { color: var(--ink-2); max-width: 60ch; }
.gl-p ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 24px; }
.gl-p li { display: flex; gap: 8px; } .gl-p li .ic { color: var(--ok); flex: none; margin-top: 3px; }

.prc { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: none; }
.prc-i { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; position: relative; padding-bottom: 32px; }
.prc-i:not(:last-child)::before { content: ''; position: absolute; left: 31px; top: 64px; bottom: 0; width: 2px; background: var(--line); }
.prc-n { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--sa, var(--ink)); color: #fff; font-family: var(--f-mono); font-size: 1.05rem; }
.prc-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 14px; }
.prc-h h3 { font-size: 1.35rem; margin: 0; }
.prc-time { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.prc-b > p { color: var(--ink-2); margin: 8px 0 12px; max-width: 64ch; }
.prc-d { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.prc-d small { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-right: 4px; }
.prc-d span { font-size: .86rem; background: var(--mist); border-radius: 8px; padding: 4px 10px; }

.cmp { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.cmp-r { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; }
.cmp-r > * { padding: 16px 20px; border-top: 1px solid var(--line); }
.cmp-hd > * { border-top: 0; font-weight: 600; font-size: .9rem; }
.cmp-hd span:first-child { color: var(--ink-2); }
.cmp .cmp-b { background: color-mix(in srgb, var(--sa, var(--accent)) 7%, #fff); }
.cmp-hd .cmp-b { background: var(--sa, var(--ink)); color: #fff; }
.cmp-v { display: inline-flex; gap: 8px; align-items: flex-start; }
.cmp-v .ic { flex: none; margin-top: 3px; }
.cmp-y .ic { color: var(--ok); } .cmp-n .ic { color: var(--bad); } .cmp-n { color: var(--ink-2); }

.pln { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.pln-c { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px 24px; }
.pln-c.hi { border: 2px solid var(--sa, var(--accent)); box-shadow: 0 24px 60px rgba(34, 52, 74, .12); }
.pln-badge { position: absolute; top: -13px; left: 24px; background: var(--sa, var(--accent)); color: #fff; font-size: .74rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.pln-c h3 { font-size: 1.5rem; margin: 0 0 6px; }
.pln-d { color: var(--ink-2); font-size: .94rem; margin: 0 0 16px; min-height: 2.8em; }
.pln-p { margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pln-p b { font-family: var(--f-display); font-size: 1.7rem; font-weight: 500; } .pln-p small { color: var(--ink-2); margin-left: 4px; }
.pln-c ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; flex: 1; }
.pln-c li { display: flex; gap: 8px; font-size: .95rem; } .pln-c li .ic { color: var(--ok); flex: none; margin-top: 3px; }
.pln-note { text-align: center; color: var(--ink-2); font-size: .92rem; margin: 24px auto 0; max-width: 70ch; }

.cs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.cs-c { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.cs-v { aspect-ratio: 16/10; background: var(--mist); display: grid; place-items: center; overflow: hidden; }
.cs-v img { width: 100%; height: 100%; object-fit: cover; }
.cs-mono { font-family: var(--f-display); font-size: 4.2rem; color: var(--sa, var(--accent)); }
.cs-b { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cs-tag { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sa, var(--accent)); }
.cs-b h3 { font-size: 1.4rem; margin: 0; }
.cs-b p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.cs-scope { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cs-scope span { font-size: .8rem; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.cs-m { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 6px; }
.cs-m b { display: block; font-family: var(--f-display); font-size: 1.5rem; font-weight: 500; } .cs-m small { color: var(--ink-2); font-size: .8rem; }
.cs-link { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: .9rem; text-decoration: none; }
.cs-link:hover { text-decoration: underline; }

.fab-zalo { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: inline-flex; align-items: center; gap: 8px; background: #0068ff; color: #fff; text-decoration: none; padding: 9px 16px 9px 10px; border-radius: 999px; box-shadow: 0 12px 30px rgba(0, 104, 255, .35); font-weight: 600; font-size: .92rem; }
.fab-zalo:hover { background: #0057d9; }
.fab-zalo svg { color: #fff; }
html { scroll-padding-top: 90px; }

.seed-box { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 16px; border: 1px dashed var(--a-accent); border-radius: 12px; background: var(--a-accent-soft); }
.seed-box div { flex: 1; display: grid; gap: 2px; } .seed-box small { color: var(--a-muted); }

@media (max-width: 860px) {
  .svh { grid-template-columns: 1fr; }
  .svh.has-img .svh-card { margin: -48px 12px 0; }
  .psl-row { grid-template-columns: 1fr; } .psl-row:nth-child(even) .psl-v { order: 0; }
  .psl-n { aspect-ratio: auto; padding: 18px; justify-items: start; font-size: 3.2rem; background: none; padding: 0; }
  .cmp-hd { display: none; }
  .cmp-r { grid-template-columns: 1fr; }
  .cmp-r { border-top: 1px solid var(--line); } .cmp-r:first-of-type { border-top: 0; }
  .cmp-r > * { border-top: 0; padding: 10px 18px; }
  .cmp-r > b { padding-top: 16px; }
  .cmp-r > [data-h]::before { content: attr(data-h); display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 4px; }
  .cmp-r > [data-h].cmp-b { padding-bottom: 16px; }
  .gl-t { padding: 10px 14px; font-size: .92rem; }
  .prc-i { grid-template-columns: 46px minmax(0, 1fr); gap: 14px; } .prc-n { width: 46px; height: 46px; font-size: .9rem; } .prc-i:not(:last-child)::before { left: 22px; top: 46px; } .prc-h { padding-top: 8px; }
  .fab-zalo span { display: none; } .fab-zalo { padding: 10px; }
}
.psl:has(.no-img) { gap: 0; border-top: 1px solid var(--line); }
.psl-row.no-img { grid-template-columns: clamp(64px, 9vw, 120px) minmax(0, 1fr); align-items: start; padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--line); }
.psl-row.no-img .psl-v { order: 0 !important; }
.psl-row.no-img .psl-n { aspect-ratio: auto; background: none; font-size: clamp(2.6rem, 5vw, 4rem); justify-items: start; place-items: start; }
.psl-row.no-img .psl-b { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(20px, 4vw, 48px); align-items: start; }
.psl-row.no-img .psl-b > .chip-p, .psl-row.no-img .psl-b > h3, .psl-row.no-img .psl-b > .psl-pt { grid-column: 1; }
.psl-row.no-img .psl-s { grid-column: 2; grid-row: 1 / span 3; align-self: start; }
@media (max-width: 860px) { .psl-row.no-img .psl-b { grid-template-columns: 1fr; } .psl-row.no-img .psl-s { grid-column: 1; grid-row: auto; } .psl-row.no-img { grid-template-columns: 52px minmax(0, 1fr); } }
.psl-b > .chip-p, .psl-s > .chip-s { justify-self: start; width: max-content; }

/* ===== Card sections · pack 2026-11 (invite, family, calendar, schedule, dresscode, menu, party, faq, travel, together) ===== */
.cs .lock { font-size: .85em; opacity: .7; }
/* invite */
.cinv { border: 1px solid color-mix(in srgb, var(--c-ac) 70%, transparent); outline: 1px solid color-mix(in srgb, var(--c-ac) 70%, transparent); outline-offset: -.45em; padding: 2.4em 1.3em; display: grid; justify-items: center; gap: .5em; }
.cinv .cs-t { font-size: 1.7em; }
.cinv-guest { margin: 0 0 .6em; display: grid; gap: .1em; }
.cinv-guest small { font-size: .7em; letter-spacing: .24em; text-transform: uppercase; color: var(--c-ac); }
.cinv-guest b { font-family: var(--s-head); font-weight: 500; font-size: 1.35em; border-bottom: 1px dotted currentColor; padding: 0 1em .15em; }
.cinv-intro { margin: 0; font-size: .82em; letter-spacing: .12em; text-transform: uppercase; opacity: .8; max-width: 22em; }
.cinv-names { margin: .2em 0; display: grid; line-height: 1.05; }
.cinv-names span { font-family: var(--c-script); font-size: 2.6em; color: var(--c-ac); }
.cinv-names i { font-family: var(--s-head); font-style: italic; font-size: 1.3em; opacity: .7; }
.cinv-date { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .9em; width: 100%; max-width: 20em; margin-top: .2em; }
.cinv-date span { font-size: .78em; letter-spacing: .14em; text-transform: uppercase; padding: .5em 0; border-top: 1px solid color-mix(in srgb, var(--s-fg) 35%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--s-fg) 35%, transparent); }
.cinv-date b { font-family: var(--s-head); font-size: 3em; font-weight: 500; line-height: 1; color: var(--c-ac); }
.cinv-venue { margin: .6em 0 0; font-size: .92em; }
.cinv-venue b { display: block; font-family: var(--s-head); font-size: 1.5em; font-weight: 500; }
.cinv-venue small { opacity: .75; }
/* family */
.cf { display: grid; grid-template-columns: 1fr auto 1fr; gap: .8em; align-items: start; }
.cf-s { display: grid; gap: .25em; justify-items: center; min-width: 0; }
.cs[style*="text-align:left"] .cf-s { justify-items: start; }
.cf-s > small { font-size: .7em; letter-spacing: .22em; text-transform: uppercase; color: var(--c-ac); margin-bottom: .3em; }
.cf-s b { font-family: var(--s-head); font-weight: 500; font-size: 1.05em; line-height: 1.3; }
.cf-s span { font-size: .8em; opacity: .75; margin-top: .2em; }
.cf-s em { font-style: normal; display: grid; margin-top: .8em; font-family: var(--c-script); font-size: 1.7em; line-height: 1.1; color: var(--c-ac); }
.cf-s em small { font-family: var(--c-body); font-size: .4em; letter-spacing: .2em; text-transform: uppercase; color: var(--s-fg); opacity: .7; }
.cf-sep { width: 1px; align-self: stretch; background: color-mix(in srgb, var(--c-ac) 55%, transparent); }
/* calendar */
.ccal { max-width: 19em; margin: 0 auto; width: 100%; }
.ccal-m { font-family: var(--s-head); font-size: 1.3em; margin: 0 0 .6em; letter-spacing: .04em; }
.ccal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: .25em 0; text-align: center; font-variant-numeric: tabular-nums; }
.ccal-g small { font-size: .7em; letter-spacing: .1em; text-transform: uppercase; color: var(--c-ac); padding-bottom: .5em; border-bottom: 1px solid color-mix(in srgb, var(--s-fg) 20%, transparent); margin-bottom: .3em; }
.ccal-g span, .ccal-g b { display: grid; place-items: center; aspect-ratio: 1; font-size: .92em; }
.ccal-g b { position: relative; color: var(--c-bg); font-weight: 600; }
.ccal-g b svg { position: absolute; inset: 6%; width: 88%; height: 88%; fill: var(--c-ac); }
.ccal-g b span { position: relative; aspect-ratio: auto; font-size: 1em; }
.ccal-add { display: flex; flex-wrap: wrap; justify-content: center; gap: .5em; margin-top: 1em; }
.ccal-add .cbtn { margin: 0; }
/* schedule */
.csch { list-style: none; margin: .4em auto 0; padding: 0; display: grid; gap: 0; max-width: 22em; width: 100%; text-align: left; }
.csch li { display: grid; grid-template-columns: 3.4em 2.4em 1fr; align-items: start; gap: .6em; padding: .7em 0; position: relative; }
.csch li + li { border-top: 1px dashed color-mix(in srgb, var(--s-fg) 22%, transparent); }
.csch-t { font-family: var(--s-head); font-size: 1.15em; font-weight: 600; color: var(--c-ac); font-variant-numeric: tabular-nums; padding-top: .2em; }
.csch-i { width: 2.4em; height: 2.4em; border-radius: 50%; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--c-ac) 60%, transparent); color: var(--c-ac); }
.csch-i .ic { width: 1.1em; height: 1.1em; }
.csch b { display: block; font-weight: 600; }
.csch small { display: block; font-size: .85em; opacity: .75; }
/* dress code */
.cdc { display: flex; flex-wrap: wrap; justify-content: center; gap: .9em 1.1em; margin-top: 1.2em; }
.cdc div { display: grid; justify-items: center; gap: .35em; width: 3.6em; }
.cdc i { width: 3em; height: 3em; border-radius: 50%; box-shadow: 0 0 0 .2em var(--s-bg), 0 0 0 calc(.2em + 1px) color-mix(in srgb, var(--s-fg) 25%, transparent); }
.cdc small { font-size: .72em; opacity: .8; }
/* menu */
.cmenu { display: grid; gap: .55em; justify-items: center; max-width: 20em; margin: .2em auto 1em; }
.cmenu div { display: grid; gap: .1em; }
.cmenu small { font-size: .68em; letter-spacing: .22em; text-transform: uppercase; color: var(--c-ac); }
.cmenu b { font-family: var(--s-head); font-weight: 500; font-size: 1.2em; line-height: 1.25; }
.cmenu-sep { font-size: .5em; color: var(--c-ac); opacity: .7; }
/* wedding party */
.cpt { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1em .8em; }
.cpt figure { margin: 0; display: grid; gap: .5em; }
.cpt-img { aspect-ratio: var(--r, 3/4); overflow: hidden; border-radius: 999px 999px .4em .4em; }
.cpt-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cpt figcaption { display: grid; gap: .1em; }
.cpt b { font-family: var(--s-head); font-weight: 500; font-size: 1.1em; }
.cpt small { font-size: .68em; letter-spacing: .18em; text-transform: uppercase; color: var(--c-ac); }
/* faq */
.cfaq { display: grid; gap: .5em; text-align: left; max-width: 24em; margin: .2em auto 0; width: 100%; }
.cfaq details { border: 1px solid color-mix(in srgb, var(--s-fg) 18%, transparent); border-radius: .5em; padding: 0 1em; background: color-mix(in srgb, var(--s-bg) 92%, var(--s-fg)); }
.cfaq summary { cursor: pointer; list-style: none; padding: .85em 1.6em .85em 0; font-weight: 600; position: relative; }
.cfaq summary::-webkit-details-marker { display: none; }
.cfaq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.3em; font-weight: 400; color: var(--c-ac); transition: transform .2s; }
.cfaq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.cfaq p { margin: 0 0 .9em; font-size: .9em; opacity: .85; }
/* travel */
.ctr { display: grid; gap: .8em; text-align: left; max-width: 24em; margin: .2em auto 0; width: 100%; }
.ctr-i { display: grid; grid-template-columns: 2.6em 1fr; gap: .8em; padding: 1em; border-radius: .6em; background: color-mix(in srgb, var(--s-bg) 88%, var(--c-ac)); }
.ctr-ic { width: 2.6em; height: 2.6em; border-radius: 50%; display: grid; place-items: center; background: var(--c-ac); color: var(--c-bg); }
.ctr b { display: block; font-weight: 600; }
.ctr p { margin: .15em 0 0; font-size: .88em; opacity: .85; }
.ctr .cbtn.xs { margin: .6em 0 0; }
/* together */
.ctg-since { margin: 0 0 .8em; font-size: .78em; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.ctg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5em; max-width: 18em; margin: 0 auto; width: 100%; }
.ctg div { display: grid; padding: .7em .2em; border-radius: 999px 999px .4em .4em; border: 1px solid color-mix(in srgb, var(--c-ac) 55%, transparent); }
.ctg b { font-family: var(--s-head); font-size: 2.2em; font-weight: 500; line-height: 1.05; color: var(--c-ac); font-variant-numeric: tabular-nums; }
.ctg small { font-size: .66em; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.ctg-total { margin: .9em 0 .4em; }
.ctg-total b { font-family: var(--s-head); font-size: 1.3em; font-weight: 600; }
.cs.has-img .cfaq details, .cs.has-img .ctr-i { background: rgba(255, 255, 255, .12); }

/* ===== Cover "emblem" layout + template catalogue (pack 2026-11b) ===== */
.cv-emb { margin: 1.2em; position: relative; border: 1px solid var(--c-ac); padding: 2.2em 1.2em 2.4em; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: calc(var(--fh) - 9.2em); }
.cv-emb::before { content: ""; position: absolute; inset: .45em; border: 1px solid color-mix(in srgb, var(--c-ac) 55%, transparent); pointer-events: none; }
.cv-emb .cv-txt { padding: 0; }
.cv-emb-art { width: 100%; max-width: 19em; margin-bottom: 1.4em; }
.cv-emb-art .emb { display: block; width: 100%; height: auto; }
.cv-emb-art .emb-sm { width: 60%; max-width: none; margin: 0 auto; }
.cv-cn { position: absolute; width: 2.2em; height: 2.2em; border: 2px solid var(--c-ac); }
.cv-cn::after { content: ""; position: absolute; width: .5em; height: .5em; background: var(--c-ac); transform: rotate(45deg); }
.cv-cn.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; } .cv-cn.tl::after { top: .4em; left: .4em; }
.cv-cn.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; } .cv-cn.tr::after { top: .4em; right: .4em; }
.cv-cn.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; } .cv-cn.bl::after { bottom: .4em; left: .4em; }
.cv-cn.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; } .cv-cn.br::after { bottom: .4em; right: .4em; }
.cv-emb[data-orn="sakura"], .cv-emb[data-orn="chibi"] { border-radius: 1.6em; border-style: dashed; }
.cv-emb[data-orn="sakura"]::before, .cv-emb[data-orn="chibi"]::before { border-radius: 1.3em; }
.cv-emb[data-orn="sakura"] .cv-cn, .cv-emb[data-orn="chibi"] .cv-cn { display: none; }
.cv-emb[data-orn="chibi"] .cs-names { font-size: 2.6em; }
/* template catalogue: filter chips, "new" badge, style tag, custom-design call-out */
.tpl[hidden] { display: none !important; }
.tpl-th { position: relative; display: block; }
.tpl-new { position: absolute; top: 12px; left: 12px; z-index: 2; background: #e0524f; color: #fff; font: 600 .72rem/1 var(--f-body, system-ui); letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; box-shadow: 0 4px 12px rgba(224, 82, 79, .35); }
.tpl .tpl-tag { font-style: normal; font-size: .9rem; color: var(--ink-2); line-height: 1.35; }
.tpl-f { display: grid; gap: 10px; margin-top: 28px; }
.tpl-f-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tpl-f-l { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-right: 4px; }
.tpl-f a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; text-decoration: none; color: inherit; background: var(--bg, #fff); transition: border-color .15s, background .15s; }
.tpl-f a:hover { border-color: var(--ink-2); }
.tpl-f a.on { background: var(--ink, #1b2430); border-color: var(--ink, #1b2430); color: #fff; }
.tpl-f a span { font-size: .75rem; opacity: .6; }
.tpl-f a i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.tpl-empty { margin: 32px 0; color: var(--ink-2); }
.tpl-req { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; margin: 56px 0 24px; padding: 28px 32px; border-radius: 20px; background: color-mix(in srgb, var(--accent, #6f97c9) 10%, transparent); border: 1px dashed color-mix(in srgb, var(--accent, #6f97c9) 45%, transparent); }
.tpl-req > div { flex: 1 1 280px; }
.tpl-req b { font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; }
.tpl-req p { margin: 6px 0 0; color: var(--ink-2); }
@media (max-width: 600px) { .tpl-f-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; } .tpl-f a { white-space: nowrap; } .tpl-req { padding: 22px; } }
/* illustrations on sections (pack 2026-11c) */
.cs.has-deco { overflow: hidden; isolation: isolate; }
.cs.has-deco > :not(.cs-deco) { position: relative; z-index: 1; }
.cs-deco { position: absolute; display: block; pointer-events: none; transform: var(--tf); transform-origin: center; z-index: 0; line-height: 0; }
.cs-deco.front { z-index: 3; }
.cs-deco img { display: block; width: 100%; height: auto; }
.cs-deco.an-float img { animation: deco-float 6s ease-in-out infinite; }
.cs-deco.an-sway img { animation: deco-sway 5s ease-in-out infinite; transform-origin: 50% 0; }
.cs-deco.an-spin img { animation: deco-spin 40s linear infinite; }
@keyframes deco-float { 50% { transform: translateY(-6%); } }
@keyframes deco-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes deco-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cs-deco img { animation: none !important; } }
.cv-emb-art .emb-img { display: block; width: 100%; height: auto; }
.cv-emb-art.below { margin: 1.4em 0 0; }
