/* =====================================================================
   Swipera – Card templates (1080px design space)
   Variables per card: --bg --fg --a --b --c --muted --font --serif --sans --display
   ===================================================================== */
.card {
  position: relative; box-sizing: border-box; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 84px; background: var(--bg); color: var(--fg); font-family: var(--font);
  word-break: keep-all; overflow-wrap: break-word; line-height: 1.2;
}
.card * { box-sizing: border-box; }
.card .deco { position: absolute; pointer-events: none; z-index: 1; }
.c-top, .c-bottom, .c-main { position: relative; z-index: 3; }
.c-top, .c-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.c-main { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 34px; min-height: 0; }
.c-label { font-size: 28px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.c-brand, .c-site, .c-page { font-size: 26px; font-weight: 500; color: var(--muted); }
.c-swipe { font-size: 26px; font-weight: 700; }
.c-logo { height: 56px; width: auto; margin-right: 18px; object-fit: contain; }
.c-emoji { font-size: 104px; line-height: 1; }
.c-title { margin: 0; font-weight: 900; font-size: 84px; line-height: 1.15; letter-spacing: -.02em; }
.c-title.len-m { font-size: 74px; } .c-title.len-l { font-size: 62px; } .c-title.len-xl { font-size: 52px; }
.c-body { margin: 0; font-size: 38px; line-height: 1.55; color: var(--muted); font-weight: 400; }
.c-body.len-l { font-size: 34px; } .c-body.len-xl { font-size: 30px; }
.type-cover .c-title { font-size: 104px; } .type-cover .c-title.len-m { font-size: 88px; } .type-cover .c-title.len-l { font-size: 72px; } .type-cover .c-title.len-xl { font-size: 60px; }
.type-cover .c-body { font-size: 42px; }
.type-cta .c-title { font-size: 92px; } .type-cta .c-title.len-m { font-size: 78px; } .type-cta .c-title.len-l { font-size: 64px; }
.type-quote .c-title { font-size: 72px; line-height: 1.3; font-weight: 700; } .type-quote .c-title.len-m { font-size: 62px; } .type-quote .c-title.len-l { font-size: 54px; } .type-quote .c-title.len-xl { font-size: 46px; }
.c-quotemark { font-size: 200px; line-height: .6; font-family: var(--serif); color: var(--a); opacity: .9; height: 110px; }
.c-stat { font-size: 260px; line-height: .95; font-weight: 900; letter-spacing: -.05em; color: var(--a); }
.c-stat.len-m { font-size: 200px; } .c-stat.len-l { font-size: 150px; } .c-stat.len-xl { font-size: 110px; }
.type-stat .c-title { font-size: 64px; }
.c-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 26px; }
.c-items li { display: flex; align-items: flex-start; gap: 24px; font-size: 40px; line-height: 1.35; font-weight: 500; }
.c-check { flex-shrink: 0; width: 60px; height: 60px; border-radius: 50%; background: var(--a); color: var(--bg); display: grid; place-items: center; font-size: 28px; font-weight: 800; margin-top: 2px; }
.type-list .c-title { font-size: 72px; }
.c-img { position: absolute; inset: 0; z-index: 0; }
.c-img img { width: 100%; height: 100%; object-fit: cover; }
.ratio-9-16 { padding: 110px 84px; }
.ratio-9-16 .c-title { font-size: 96px; } .ratio-9-16 .c-body { font-size: 42px; }
.ratio-16-9 .c-main { gap: 26px; } .ratio-16-9 .c-title { font-size: 80px; } .ratio-16-9 .c-emoji { font-size: 80px; }

/* ===================================================================== */
/* 1. BRUTALISM (uploaded ref: cyan/blue on black, stacked type, checker, sparkles) */
/* ===================================================================== */
.tpl-brutalism { font-family: var(--font); }
.tpl-brutalism .c-title { font-family: var(--font); font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; line-height: .98; }
.tpl-brutalism.type-cover .c-title, .tpl-brutalism.type-cta .c-title { font-size: 128px; }
.tpl-brutalism.type-cover .c-title.len-m, .tpl-brutalism.type-cta .c-title.len-m { font-size: 104px; }
.tpl-brutalism.type-cover .c-title.len-l, .tpl-brutalism.type-cta .c-title.len-l { font-size: 84px; }
.tpl-brutalism.type-cover .c-title.len-xl, .tpl-brutalism.type-cta .c-title.len-xl { font-size: 68px; }
.tpl-brutalism .c-label { background: var(--a); color: var(--bg); padding: 8px 22px; font-size: 30px; letter-spacing: .08em; }
.tpl-brutalism .c-body { color: var(--fg); opacity: .85; font-weight: 500; }
.tpl-brutalism .c-swipe { color: var(--a); text-transform: uppercase; letter-spacing: .1em; }
.tpl-brutalism .c-brand { color: var(--muted); }
.tpl-brutalism .c-check { border-radius: 0; background: var(--a); color: var(--bg); }
.tpl-brutalism .c-stat { color: var(--a); text-shadow: 10px 10px 0 var(--b); }
.tpl-brutalism .c-quotemark { color: var(--a); font-family: var(--serif); }
.tpl-brutalism .c-main { padding-right: 210px; }
.tpl-brutalism.type-cover .c-emoji, .tpl-brutalism.type-cta .c-emoji { font-size: 80px; }
.tpl-brutalism .deco.stack.brut { top: 150px; left: 84px; right: 84px; display: flex; flex-direction: column; opacity: .35; }
.tpl-brutalism .deco.stack.brut span { font-size: 150px; font-weight: 900; line-height: .82; letter-spacing: -.05em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 2px var(--fg); white-space: nowrap; overflow: hidden; }
.tpl-brutalism .deco.stack.brut span:nth-child(2) { color: var(--a); -webkit-text-stroke: 0; margin-left: 40px; }
.tpl-brutalism .deco.stack.brut span:nth-child(3) { color: var(--b); -webkit-text-stroke: 0; margin-left: 80px; }
.tpl-brutalism.type-cover .c-main, .tpl-brutalism.type-cta .c-main { justify-content: flex-end; }
.tpl-brutalism .deco.sparkle { width: 90px; height: 90px; fill: var(--fg); }
.tpl-brutalism .deco.sparkle.s1 { right: 100px; top: 36%; }
.tpl-brutalism .deco.sparkle.s2 { right: 200px; top: 33%; width: 44px; height: 44px; fill: var(--a); }
.tpl-brutalism .deco.checker { right: 84px; bottom: 300px; display: grid; grid-template-columns: repeat(4, 36px); grid-auto-rows: 36px; }
.tpl-brutalism .deco.checker i { display: block; }
.tpl-brutalism .deco.checker i:nth-child(odd) { background: var(--fg); }
.tpl-brutalism .deco.checker i:nth-child(4n+2), .tpl-brutalism .deco.checker i:nth-child(4n+4) { background: transparent; }
.tpl-brutalism .deco.checker i:nth-child(5),.tpl-brutalism .deco.checker i:nth-child(7),.tpl-brutalism .deco.checker i:nth-child(13),.tpl-brutalism .deco.checker i:nth-child(15) { background: transparent; }
.tpl-brutalism .deco.checker i:nth-child(6),.tpl-brutalism .deco.checker i:nth-child(8),.tpl-brutalism .deco.checker i:nth-child(14),.tpl-brutalism .deco.checker i:nth-child(16) { background: var(--a); }
.tpl-brutalism .deco.plus { right: 96px; bottom: 190px; font-size: 90px; font-weight: 300; color: var(--fg); line-height: 1; }
.tpl-brutalism .deco.cross { right: 240px; bottom: 200px; font-size: 64px; color: var(--a); line-height: 1; }
.tpl-brutalism.has-img .c-img { inset: auto 0 0 auto; width: 52%; height: 62%; }
.tpl-brutalism.has-img .c-img img { filter: grayscale(1) contrast(1.1); }
.tpl-brutalism.has-img .c-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--a), var(--b)); mix-blend-mode: multiply; opacity: .85; }

/* ===================================================================== */
/* 2. PRESS KIT (uploaded ref: flat blocks lime/pink/white, wavy badge, black outlines) */
/* ===================================================================== */
.tpl-presskit { padding: 0; }
.tpl-presskit .c-top, .tpl-presskit .c-bottom { padding: 60px 84px; }
.tpl-presskit .c-main { padding: 0 84px; }
.tpl-presskit .c-title { font-family: var(--font); text-transform: uppercase; line-height: 1; letter-spacing: -.01em; font-weight: 400; }
.tpl-presskit .c-label { border: 4px solid var(--fg); padding: 6px 20px; border-radius: 999px; font-size: 26px; }
.tpl-presskit .c-body { color: var(--fg); font-family: var(--sans, var(--font)); font-weight: 500; }
.tpl-presskit .c-swipe { background: var(--fg); color: var(--bg); padding: 10px 24px; border-radius: 999px; font-size: 24px; text-transform: uppercase; letter-spacing: .08em; }
.tpl-presskit .deco.block { border: 4px solid var(--fg); }
.tpl-presskit .deco.block.b1 { left: 0; right: 0; top: 0; height: 28px; background: var(--a); border-width: 0 0 4px 0; }
.tpl-presskit .deco.block.b2 { right: -4px; top: 28px; width: 34%; height: 46%; background: var(--b); border-width: 0 0 4px 4px; }
.tpl-presskit .deco.block.b3 { left: -4px; bottom: -4px; width: 46%; height: 30%; background: var(--a); border-width: 4px 4px 0 0; }
.tpl-presskit .deco.wavy { right: 120px; top: 150px; width: 260px; height: 260px; display: grid; place-items: center; }
.tpl-presskit .deco.wavy svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--bg); stroke: var(--fg); stroke-width: 4; }
.tpl-presskit .deco.wavy span { position: relative; font-size: 110px; line-height: 1; }
.tpl-presskit .c-main { justify-content: flex-end; padding-bottom: 20px; }
.tpl-presskit.type-cover .c-main, .tpl-presskit.type-cta .c-main { justify-content: center; }
.tpl-presskit .c-emoji { display: none; }
.tpl-presskit .c-check { border-radius: 8px; border: 3px solid var(--fg); background: var(--a); color: var(--fg); }
.tpl-presskit .c-stat { color: var(--fg); -webkit-text-stroke: 3px var(--fg); text-shadow: 14px 14px 0 var(--b); }
.tpl-presskit .c-title { background: var(--bg); display: inline; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 12px; line-height: 1.12; }
.tpl-presskit.has-img .c-img { inset: 28px auto auto auto; right: 0; width: 34%; height: 46%; }
.tpl-presskit.has-img .deco.wavy { display: none; }

/* ===================================================================== */
/* 3. LOYALTY (uploaded ref: taupe paper, serif caps, ring text, neon yellow accent, bottle silhouette) */
/* ===================================================================== */
.tpl-loyalty .c-title { font-family: var(--font); text-transform: uppercase; font-weight: 400; line-height: 1.02; letter-spacing: 0; }
.tpl-loyalty.type-cover .c-title { font-size: 96px; }
.tpl-loyalty .c-body { font-family: var(--sans); color: var(--fg); opacity: .8; font-size: 34px; max-width: 70%; }
.tpl-loyalty .c-label { font-family: var(--sans); font-weight: 500; letter-spacing: .3em; font-size: 24px; }
.tpl-loyalty .c-brand, .tpl-loyalty .c-page, .tpl-loyalty .c-site, .tpl-loyalty .c-swipe { font-family: var(--sans); font-weight: 400; font-size: 24px; letter-spacing: .06em; color: var(--fg); opacity: .75; }
.tpl-loyalty .c-emoji { display: none; }
.tpl-loyalty .deco.grain { inset: 0; background-image: radial-gradient(rgba(0,0,0,.08) 1px, transparent 1px), radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 7px 7px, 11px 11px; background-position: 0 0, 3px 4px; opacity: .8; }
.tpl-loyalty .deco.ring { width: 300px; height: 300px; right: 60px; top: 180px; animation: none; }
.tpl-loyalty .deco.ring text { font-family: var(--font); font-size: 22px; letter-spacing: .28em; fill: var(--fg); }
.tpl-loyalty .deco.bottle { right: 130px; bottom: 120px; width: 190px; height: 420px; }
.tpl-loyalty .deco.bottle i { position: absolute; left: 60px; top: 0; width: 70px; height: 60px; border: 4px solid var(--fg); border-bottom: 0; border-radius: 10px 10px 0 0; }
.tpl-loyalty .deco.bottle b { position: absolute; left: 0; top: 60px; right: 0; bottom: 0; border: 4px solid var(--fg); background: linear-gradient(180deg, transparent 35%, var(--a) 100%); }
.tpl-loyalty .c-check { border-radius: 0; background: var(--a); color: var(--fg); font-family: var(--sans); }
.tpl-loyalty .c-items li { font-family: var(--sans); font-weight: 400; }
.tpl-loyalty .c-stat { color: var(--fg); font-weight: 400; }
.tpl-loyalty .c-stat::after { content: ''; display: block; width: 240px; height: 26px; background: var(--a); margin-top: 10px; }
.tpl-loyalty .c-quotemark { color: var(--fg); }
.tpl-loyalty .c-main { justify-content: flex-end; }
.tpl-loyalty.type-cover .c-main { justify-content: flex-end; }
.tpl-loyalty.has-img .c-img { inset: 84px 84px auto auto; width: 42%; height: 42%; }
.tpl-loyalty.has-img .c-img img { filter: sepia(.3) contrast(.95); }
.tpl-loyalty.has-img .deco.bottle, .tpl-loyalty.has-img .deco.ring { display: none; }

/* ===================================================================== */
/* 4. FASHION (uploaded ref: ivory, serif italic, thin rules, repeated DISCOUNT outline) */
/* ===================================================================== */
.tpl-fashion .c-title { font-family: var(--font); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; }
.tpl-fashion .c-title em, .tpl-fashion.type-cover .c-title { font-style: italic; }
.tpl-fashion.type-cover .c-title { font-size: 112px; font-style: normal; }
.tpl-fashion .c-body { font-family: var(--sans); font-size: 32px; color: var(--muted); letter-spacing: .01em; max-width: 78%; }
.tpl-fashion .c-label, .tpl-fashion .c-brand, .tpl-fashion .c-page, .tpl-fashion .c-site { font-family: var(--sans); font-size: 22px; letter-spacing: .28em; text-transform: uppercase; font-weight: 500; color: var(--fg); }
.tpl-fashion .c-top { border-bottom: 2px solid var(--fg); padding-bottom: 28px; }
.tpl-fashion .c-bottom { border-top: 2px solid var(--fg); padding-top: 28px; }
.tpl-fashion .c-swipe { font-family: var(--sans); font-size: 22px; letter-spacing: .2em; text-transform: uppercase; border: 2px solid var(--fg); padding: 10px 26px; border-radius: 999px; font-weight: 500; }
.tpl-fashion .c-emoji { display: none; }
.tpl-fashion .deco.stack.fash { left: 84px; right: 84px; top: 200px; display: flex; flex-direction: column; }
.tpl-fashion .deco.stack.fash span { font-family: var(--font); font-size: 150px; line-height: .9; text-transform: uppercase; letter-spacing: .02em; color: transparent; -webkit-text-stroke: 2px var(--fg); opacity: .18; white-space: nowrap; overflow: hidden; }
.tpl-fashion .deco.stack.fash span:nth-child(3) { color: var(--fg); -webkit-text-stroke: 0; opacity: .08; }
.tpl-fashion .c-main { justify-content: flex-end; }
.tpl-fashion .c-check { border-radius: 50%; background: transparent; border: 2px solid var(--fg); color: var(--fg); font-family: var(--sans); font-weight: 500; }
.tpl-fashion .c-items li { font-family: var(--sans); font-weight: 400; font-size: 36px; }
.tpl-fashion .c-stat { font-weight: 400; color: var(--fg); font-style: italic; }
.tpl-fashion .c-quotemark { color: var(--fg); }
.tpl-fashion .deco.hr.top { display: none; }
.tpl-fashion.has-img .c-img { inset: 190px 84px auto 84px; height: 44%; }
.tpl-fashion.has-img .c-img img { filter: grayscale(.15) contrast(1.05); }
.tpl-fashion.has-img .deco.stack { display: none; }

/* ===================================================================== */
/* 5. MODERN POSTER / FINANCE (uploaded ref: gray bg, orange & black rounded blocks, Helvetica-like, arrow) */
/* ===================================================================== */
.tpl-finance { padding: 40px; gap: 24px; }
.tpl-finance .c-top { background: var(--b); color: var(--bg); border-radius: 36px; padding: 34px 48px; }
.tpl-finance .c-top .c-label { background: var(--a); color: var(--fg); padding: 8px 20px; border-radius: 12px; font-size: 24px; letter-spacing: .04em; text-transform: none; font-weight: 700; }
.tpl-finance .c-top .c-brand { color: var(--bg); opacity: .8; }
.tpl-finance .c-main { background: var(--a); border-radius: 36px; padding: 70px 60px; justify-content: flex-start; gap: 30px; color: var(--fg); }
.tpl-finance .c-title { font-weight: 800; letter-spacing: -.035em; line-height: 1.02; color: var(--fg); }
.tpl-finance .c-body { color: var(--fg); font-weight: 500; font-size: 34px; }
.tpl-finance .c-bottom { background: var(--b); color: var(--bg); border-radius: 36px; padding: 34px 48px; }
.tpl-finance .c-bottom .c-page, .tpl-finance .c-bottom .c-site { color: var(--bg); opacity: .8; }
.tpl-finance .c-swipe { color: var(--a); }
.tpl-finance .c-emoji { display: none; }
.tpl-finance .deco.arrow { right: 100px; bottom: 260px; width: 240px; height: 240px; color: var(--fg); z-index: 4; }
.tpl-finance.type-cover .deco.arrow, .tpl-finance.type-cta .deco.arrow { display: block; }
.tpl-finance:not(.type-cover):not(.type-cta) .deco.arrow { display: none; }
.tpl-finance.type-cover .c-main { justify-content: flex-start; }
.tpl-finance .c-check { border-radius: 12px; background: var(--fg); color: var(--a); }
.tpl-finance .c-items li { font-weight: 600; }
.tpl-finance .c-stat { color: var(--fg); }
.tpl-finance .c-quotemark { color: var(--fg); font-family: var(--font); font-weight: 800; }
.tpl-finance.has-img .c-img { position: relative; inset: auto; border-radius: 36px; overflow: hidden; height: 36%; flex-shrink: 0; order: 2; }
.tpl-finance.has-img .c-main { order: 1; }
.tpl-finance.has-img .c-bottom { order: 3; }
.tpl-finance.has-img .c-top { order: 0; }

/* ===================================================================== */
/* 6. ABSTRACT ART (uploaded ref: paint strokes, serif titles, small mono labels, framed layout) */
/* ===================================================================== */
.tpl-abstract .c-title { font-family: var(--font); font-weight: 700; line-height: 1.05; letter-spacing: -.01em; }
.tpl-abstract.type-cover .c-title { font-size: 116px; font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: .96; }
.tpl-abstract .c-body { font-family: var(--sans); color: var(--fg); opacity: .85; font-size: 32px; max-width: 76%; }
.tpl-abstract .c-label, .tpl-abstract .c-brand, .tpl-abstract .c-page, .tpl-abstract .c-site, .tpl-abstract .c-swipe { font-family: var(--sans); font-size: 22px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg); font-weight: 500; }
.tpl-abstract .c-label { border: 2px solid var(--fg); padding: 8px 18px; }
.tpl-abstract .c-emoji { display: none; }
.tpl-abstract .deco.paint { border-radius: 48% 52% 40% 60% / 60% 40% 60% 40%; filter: blur(2px); mix-blend-mode: multiply; opacity: .92; }
.tpl-abstract .deco.paint.p1 { width: 760px; height: 420px; background: var(--a); right: -240px; top: -120px; transform: rotate(-18deg); }
.tpl-abstract .deco.paint.p2 { width: 520px; height: 300px; background: var(--b); right: 80px; top: 160px; transform: rotate(14deg); border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%; }
.tpl-abstract .deco.paint.p3 { width: 420px; height: 620px; background: var(--c); left: -220px; bottom: -160px; transform: rotate(22deg); opacity: .8; }
.tpl-abstract .c-main { justify-content: flex-end; }
.tpl-abstract .c-check { border-radius: 0; background: var(--a); color: #fff; font-family: var(--sans); }
.tpl-abstract .c-items li { font-family: var(--sans); font-weight: 500; }
.tpl-abstract .c-stat { color: var(--a); font-weight: 400; }
.tpl-abstract .c-quotemark { color: var(--b); }
.tpl-abstract.has-img .c-img { inset: 170px 84px auto 84px; height: 46%; }
.tpl-abstract.has-img .c-img img { mix-blend-mode: normal; }
.tpl-abstract.has-img .deco.paint.p2 { display: none; }

/* ===================================================================== */
/* 7. DUOTONE (uploaded ref: blue+coral gradient, top header table, sans bold) */
/* ===================================================================== */
.tpl-duotone { padding: 70px; }
.tpl-duotone .c-top { display: none; }
.tpl-duotone .deco.head-table { top: 70px; left: 70px; right: 70px; display: flex; border: 2px solid var(--a); font-size: 22px; letter-spacing: .1em; text-transform: uppercase; color: var(--a); font-weight: 600; z-index: 3; }
.tpl-duotone .deco.head-table span { padding: 12px 20px; }
.tpl-duotone .deco.head-table span:first-child { border-right: 2px solid var(--a); font-weight: 400; }
.tpl-duotone .deco.head-table span:last-child { flex: 1; text-align: right; }
.tpl-duotone .deco.grad { inset: 0; background: linear-gradient(180deg, transparent 45%, var(--b) 100%); opacity: .95; }
.tpl-duotone.type-cover .deco.grad { background: linear-gradient(180deg, transparent 30%, var(--b) 100%); }
.tpl-duotone .c-title { color: var(--a); font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; line-height: 1; }
.tpl-duotone.type-cover .c-title { font-size: 124px; }
.tpl-duotone.type-cover .c-title.len-m { font-size: 100px; } .tpl-duotone.type-cover .c-title.len-l { font-size: 80px; } .tpl-duotone.type-cover .c-title.len-xl { font-size: 66px; }
.tpl-duotone:not(.type-cover) .c-title { text-transform: none; }
.tpl-duotone .c-body { color: var(--a); font-weight: 500; opacity: .9; }
.tpl-duotone .c-main { padding-top: 120px; justify-content: flex-start; }
.tpl-duotone .c-main::before { content: ''; display: block; width: 100%; height: 3px; background: var(--a); order: 99; margin-top: 10px; }
.tpl-duotone .c-emoji { display: none; }
.tpl-duotone .c-bottom { font-size: 20px; }
.tpl-duotone .c-bottom .c-page, .tpl-duotone .c-bottom .c-site, .tpl-duotone .c-bottom .c-swipe { color: var(--a); font-size: 20px; letter-spacing: .08em; }
.tpl-duotone .c-swipe { border: 2px solid var(--a); padding: 8px 18px; text-transform: uppercase; font-weight: 600; }
.tpl-duotone .c-check { border-radius: 0; background: var(--a); color: var(--bg); }
.tpl-duotone .c-items li { color: var(--a); }
.tpl-duotone .c-stat { color: var(--a); }
.tpl-duotone .c-quotemark { color: var(--b); }
.tpl-duotone.has-img .c-img { inset: 160px 70px auto 70px; height: 46%; }
.tpl-duotone.has-img .c-img img { filter: grayscale(1) contrast(1.1); }
.tpl-duotone.has-img .c-img::after { content: ''; position: absolute; inset: 0; background: var(--a); mix-blend-mode: screen; opacity: .95; }
.tpl-duotone.has-img .c-img::before { content: ''; position: absolute; inset: 0; background: var(--a); mix-blend-mode: multiply; z-index: 1; opacity: .6; }
.tpl-duotone.has-img .c-main { padding-top: calc(46% + 130px); }

/* ===================================================================== */
/* 8. GRADIENT */
/* ===================================================================== */
.tpl-gradient { background: linear-gradient(135deg, var(--bg) 0%, var(--b) 100%); }
.tpl-gradient .c-body { color: var(--fg); opacity: .9; }
.tpl-gradient .c-brand, .tpl-gradient .c-page, .tpl-gradient .c-site { color: var(--fg); opacity: .7; }
.tpl-gradient .deco.c1 { width: 640px; height: 640px; border-radius: 50%; background: rgba(255,255,255,.12); right: -220px; top: -220px; }
.tpl-gradient .deco.c2 { width: 440px; height: 440px; border-radius: 50%; background: rgba(0,0,0,.14); left: -160px; bottom: -160px; }
.tpl-gradient .c-label { background: rgba(255,255,255,.2); padding: 8px 22px; border-radius: 999px; }
.tpl-gradient .c-swipe { background: #fff; color: var(--bg); padding: 10px 26px; border-radius: 999px; }
.tpl-gradient .c-check { background: #fff; color: var(--bg); }
.tpl-gradient .c-stat, .tpl-gradient .c-quotemark { color: #fff; }

/* ===================================================================== */
/* 9. MINIMAL */
/* ===================================================================== */
.tpl-minimal .c-label { color: var(--a); }
.tpl-minimal .c-main::before { content: ''; display: block; width: 120px; height: 10px; background: var(--a); border-radius: 4px; }
.tpl-minimal .c-swipe { color: var(--a); }
.tpl-minimal .deco.line { left: 0; right: 0; bottom: 0; height: 22px; background: var(--a); }
.tpl-minimal .c-check { background: var(--a); color: #fff; }
.tpl-minimal.has-img .c-img { inset: 170px 84px auto 84px; height: 40%; border-radius: 24px; overflow: hidden; }

/* ===================================================================== */
/* 10. DARK BOLD */
/* ===================================================================== */
.tpl-dark .c-title { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; font-size: 96px; }
.tpl-dark.type-cover .c-title { font-size: 120px; }
.tpl-dark .c-title.len-m { font-size: 84px; } .tpl-dark .c-title.len-l { font-size: 70px; } .tpl-dark .c-title.len-xl { font-size: 58px; }
.tpl-dark .c-label { color: var(--a); border: 3px solid var(--a); padding: 6px 20px; border-radius: 6px; }
.tpl-dark .deco.grid { inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 60px 60px; }
.tpl-dark .deco.glow { width: 800px; height: 800px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--a) 55%, transparent) 0%, transparent 65%); right: -300px; bottom: -350px; }
.tpl-dark .c-swipe { color: var(--a); }
.tpl-dark .c-check { background: var(--a); color: var(--bg); }
.tpl-dark.has-img .c-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,16,.2), rgba(11,11,16,.95) 70%); }

/* ===================================================================== */
/* 11. PASTEL */
/* ===================================================================== */
.tpl-pastel { padding: 130px; }
.tpl-pastel .deco.inner { inset: 60px; background: var(--b); border-radius: 48px; box-shadow: 0 30px 60px rgba(90,60,40,.12); }
.tpl-pastel .c-title { font-family: var(--serif); font-weight: 900; font-size: 80px; }
.tpl-pastel.type-cover .c-title { font-size: 96px; }
.tpl-pastel .c-label { color: #fff; background: var(--a); padding: 8px 22px; border-radius: 999px; }
.tpl-pastel .c-swipe { color: var(--a); }
.tpl-pastel .c-check { background: var(--a); color: #fff; }
.tpl-pastel.has-img .c-img { inset: 60px 60px auto 60px; height: 44%; border-radius: 48px 48px 0 0; overflow: hidden; }

/* ===================================================================== */
/* 12. MAGAZINE */
/* ===================================================================== */
.tpl-magazine .c-title { font-family: var(--font); font-weight: 900; font-size: 88px; letter-spacing: -.02em; }
.tpl-magazine.type-cover .c-title { font-size: 112px; }
.tpl-magazine .c-main { justify-content: flex-end; gap: 30px; }
.tpl-magazine .c-emoji { display: none; }
.tpl-magazine .deco.bignum { top: 140px; left: 60px; font-family: var(--font); font-weight: 900; font-size: 420px; line-height: 1; color: var(--a); opacity: .16; letter-spacing: -.05em; }
.tpl-magazine .c-top { border-bottom: 4px solid var(--b); padding-bottom: 24px; }
.tpl-magazine .c-bottom { border-top: 2px solid var(--b); padding-top: 24px; }
.tpl-magazine .c-label { font-style: italic; text-transform: none; letter-spacing: .04em; }
.tpl-magazine .c-brand, .tpl-magazine .c-page, .tpl-magazine .c-site, .tpl-magazine .c-body, .tpl-magazine .c-items li { font-family: var(--sans); }
.tpl-magazine .c-swipe { color: var(--a); font-family: var(--sans); }
.tpl-magazine .c-check { background: var(--fg); color: var(--bg); border-radius: 0; }
.tpl-magazine.has-img .c-img { inset: 190px 84px auto 84px; height: 40%; }
.tpl-magazine.has-img .deco.bignum { display: none; }

/* ===================================================================== */
/* 13. NEON POP */
/* ===================================================================== */
.tpl-pop { border: 28px solid #111; }
.tpl-pop .c-title { font-family: var(--display); font-weight: 400; font-size: 100px; text-shadow: 6px 6px 0 #fff; }
.tpl-pop.type-cover .c-title { font-size: 124px; }
.tpl-pop .c-title.len-m { font-size: 86px; } .tpl-pop .c-title.len-l { font-size: 72px; } .tpl-pop .c-title.len-xl { font-size: 60px; }
.tpl-pop .c-body { background: #fff; color: #111; border: 5px solid #111; padding: 28px 34px; box-shadow: 12px 12px 0 #111; font-weight: 500; opacity: 1; }
.tpl-pop .c-label { background: #111; color: #fff; padding: 10px 24px; box-shadow: 6px 6px 0 #fff; }
.tpl-pop .c-brand, .tpl-pop .c-page, .tpl-pop .c-site { color: #111; font-weight: 700; }
.tpl-pop .c-swipe { background: #111; color: #fff; padding: 10px 26px; }
.tpl-pop .deco.dots { inset: 0; background-image: radial-gradient(#111 3px, transparent 3px); background-size: 40px 40px; opacity: .12; }
.tpl-pop .c-check { background: #111; color: #fff; border-radius: 0; }
.tpl-pop .c-stat { color: #111; text-shadow: 8px 8px 0 #fff; }
.tpl-pop.has-img .c-img { inset: 150px 84px auto 84px; height: 40%; border: 5px solid #111; box-shadow: 12px 12px 0 #111; overflow: hidden; }

/* ratio-specific tuning */
.tpl-brutalism.ratio-1-1 .deco.stack.brut span, .tpl-fashion.ratio-1-1 .deco.stack.fash span { font-size: 110px; }
.tpl-brutalism.ratio-1-1 .deco.stack.brut { top: 130px; }
.tpl-fashion.ratio-1-1 .deco.stack.fash { top: 170px; }
.tpl-brutalism.ratio-16-9 .deco.stack.brut, .tpl-fashion.ratio-16-9 .deco.stack.fash { display: none; }
.tpl-loyalty.ratio-1-1 .deco.bottle { height: 300px; }
.tpl-presskit .c-quotemark { height: 90px; margin-bottom: 20px; }
.tpl-presskit.type-quote .c-title { display: block; padding: 0; background: none; }
.tpl-presskit .c-main { padding-right: 84px; }
.tpl-presskit:not(.type-cover):not(.type-cta) .c-main { max-width: 64%; }

/* =====================================================================
   DESIGN CUSTOMIZATION LAYER  (applied via --ts --bs --ls --lh --pad --tw, classes)
   ===================================================================== */
.card { --ts: var(--tpl-ts, 1); --bs: var(--tpl-bs, 1); --ls: 0em; --lh: 1; --pad: 1; --radius: 0px; --lsz: 1; }
.card.custom-ls .c-title { letter-spacing: var(--ls); }
.card.custom-ls .c-body, .card.custom-ls .c-items li { letter-spacing: var(--ls); }
.card.custom-lh .c-title { line-height: calc(1.15 * var(--lh)); }
.card.custom-lh .c-body, .card.custom-lh .c-items li { line-height: calc(1.55 * var(--lh)); }
.card.custom-title-font .c-title { font-family: var(--font); font-weight: var(--tw, 900); }
.card.custom-body-font .c-body, .card.custom-body-font .c-items li, .card.custom-body-font .c-label, .card.custom-body-font .c-brand, .card.custom-body-font .c-page, .card.custom-body-font .c-site, .card.custom-body-font .c-swipe { font-family: var(--bodyfont); }
.card[style*="--tw:"] .c-title { font-weight: var(--tw); }

/* rem-ish sizing: express default sizes through font-size on wrapper so multiplier works */
.card .c-title { font-size: calc(84px * var(--ts) * var(--lsz, 1)); }
.card .c-title.len-m { font-size: calc(74px * var(--ts) * var(--lsz, 1)); } .card .c-title.len-l { font-size: calc(62px * var(--ts) * var(--lsz, 1)); } .card .c-title.len-xl { font-size: calc(52px * var(--ts) * var(--lsz, 1)); }
.card.type-cover .c-title { font-size: calc(104px * var(--ts) * var(--lsz, 1)); } .card.type-cover .c-title.len-m { font-size: calc(88px * var(--ts) * var(--lsz, 1)); } .card.type-cover .c-title.len-l { font-size: calc(72px * var(--ts) * var(--lsz, 1)); } .card.type-cover .c-title.len-xl { font-size: calc(60px * var(--ts) * var(--lsz, 1)); }
.card.type-cta .c-title { font-size: calc(92px * var(--ts) * var(--lsz, 1)); } .card.type-cta .c-title.len-m { font-size: calc(78px * var(--ts) * var(--lsz, 1)); } .card.type-cta .c-title.len-l { font-size: calc(64px * var(--ts) * var(--lsz, 1)); }
.card.type-quote .c-title { font-size: calc(72px * var(--ts) * var(--lsz, 1)); } .card.type-quote .c-title.len-m { font-size: calc(62px * var(--ts) * var(--lsz, 1)); } .card.type-quote .c-title.len-l { font-size: calc(54px * var(--ts) * var(--lsz, 1)); } .card.type-quote .c-title.len-xl { font-size: calc(46px * var(--ts) * var(--lsz, 1)); }
.card.type-stat .c-title { font-size: calc(64px * var(--ts) * var(--lsz, 1)); }
.card.type-list .c-title { font-size: calc(72px * var(--ts) * var(--lsz, 1)); }
.card .c-body { font-size: calc(38px * var(--bs) * var(--lsz, 1)); } .card .c-body.len-l { font-size: calc(34px * var(--bs) * var(--lsz, 1)); } .card .c-body.len-xl { font-size: calc(30px * var(--bs) * var(--lsz, 1)); }
.card.type-cover .c-body { font-size: calc(42px * var(--bs) * var(--lsz, 1)); }
.card .c-items li { font-size: calc(40px * var(--bs) * var(--lsz, 1)); }
.card .c-stat { font-size: calc(260px * var(--ts) * var(--lsz, 1)); } .card .c-stat.len-m { font-size: calc(200px * var(--ts) * var(--lsz, 1)); } .card .c-stat.len-l { font-size: calc(150px * var(--ts) * var(--lsz, 1)); } .card .c-stat.len-xl { font-size: calc(110px * var(--ts) * var(--lsz, 1)); }
/* template-specific title sizes need multiplier too */
.tpl-brutalism.type-cover .c-title, .tpl-brutalism.type-cta .c-title { font-size: calc(128px * var(--ts) * var(--lsz, 1)); }
.tpl-brutalism.type-cover .c-title.len-m, .tpl-brutalism.type-cta .c-title.len-m { font-size: calc(104px * var(--ts) * var(--lsz, 1)); }
.tpl-brutalism.type-cover .c-title.len-l, .tpl-brutalism.type-cta .c-title.len-l { font-size: calc(84px * var(--ts) * var(--lsz, 1)); }
.tpl-brutalism.type-cover .c-title.len-xl, .tpl-brutalism.type-cta .c-title.len-xl { font-size: calc(68px * var(--ts) * var(--lsz, 1)); }
.tpl-loyalty.type-cover .c-title { font-size: calc(96px * var(--ts) * var(--lsz, 1)); }
.tpl-fashion.type-cover .c-title { font-size: calc(112px * var(--ts) * var(--lsz, 1)); }
.tpl-abstract.type-cover .c-title { font-size: calc(116px * var(--ts) * var(--lsz, 1)); }
.tpl-duotone.type-cover .c-title { font-size: calc(124px * var(--ts) * var(--lsz, 1)); }
.tpl-duotone.type-cover .c-title.len-m { font-size: calc(100px * var(--ts) * var(--lsz, 1)); } .tpl-duotone.type-cover .c-title.len-l { font-size: calc(80px * var(--ts) * var(--lsz, 1)); } .tpl-duotone.type-cover .c-title.len-xl { font-size: calc(66px * var(--ts) * var(--lsz, 1)); }
.tpl-dark .c-title { font-size: calc(96px * var(--ts) * var(--lsz, 1)); } .tpl-dark.type-cover .c-title { font-size: calc(120px * var(--ts) * var(--lsz, 1)); }
.tpl-dark .c-title.len-m { font-size: calc(84px * var(--ts) * var(--lsz, 1)); } .tpl-dark .c-title.len-l { font-size: calc(70px * var(--ts) * var(--lsz, 1)); } .tpl-dark .c-title.len-xl { font-size: calc(58px * var(--ts) * var(--lsz, 1)); }
.tpl-pastel .c-title { font-size: calc(80px * var(--ts) * var(--lsz, 1)); } .tpl-pastel.type-cover .c-title { font-size: calc(96px * var(--ts) * var(--lsz, 1)); }
.tpl-magazine .c-title { font-size: calc(88px * var(--ts) * var(--lsz, 1)); } .tpl-magazine.type-cover .c-title { font-size: calc(112px * var(--ts) * var(--lsz, 1)); }
.tpl-pop .c-title { font-size: calc(100px * var(--ts) * var(--lsz, 1)); } .tpl-pop.type-cover .c-title { font-size: calc(124px * var(--ts) * var(--lsz, 1)); }
.tpl-pop .c-title.len-m { font-size: calc(86px * var(--ts) * var(--lsz, 1)); } .tpl-pop .c-title.len-l { font-size: calc(72px * var(--ts) * var(--lsz, 1)); } .tpl-pop .c-title.len-xl { font-size: calc(60px * var(--ts) * var(--lsz, 1)); }
.tpl-loyalty .c-body, .tpl-fashion .c-body, .tpl-abstract .c-body { font-size: calc(32px * var(--bs) * var(--lsz, 1)); }
.tpl-finance .c-body { font-size: calc(34px * var(--bs) * var(--lsz, 1)); }

/* padding */
.card:not(.tpl-presskit):not(.tpl-finance):not(.tpl-duotone):not(.tpl-pastel) { padding: calc(84px * var(--pad)); }
.card.tpl-pastel { padding: calc(130px * var(--pad)); }
.card.tpl-duotone { padding: calc(70px * var(--pad)); }
.card.ratio-9-16:not(.tpl-presskit):not(.tpl-finance):not(.tpl-duotone):not(.tpl-pastel) { padding: calc(110px * var(--pad)) calc(84px * var(--pad)); }

/* alignment */
.card.align-center .c-main { align-items: center; text-align: center; }
.card.align-center .c-body, .card.align-center .c-title { max-width: 100%; }
.card.align-center .c-items { align-items: flex-start; }
.card.align-center .c-main::before { margin: 0 auto; }
.card.align-right .c-main { align-items: flex-end; text-align: right; }
.card.align-right .c-items li { flex-direction: row-reverse; }
.card.align-right .c-main::before { margin-left: auto; }
.card.valign-top .c-main { justify-content: flex-start; }
.card.valign-middle .c-main { justify-content: center; }
.card.valign-bottom .c-main { justify-content: flex-end; }
.card.case-upper .c-title { text-transform: uppercase; }
.card.case-none .c-title { text-transform: none; }
.tpl-brutalism.case-none .c-title, .tpl-presskit.case-none .c-title, .tpl-loyalty.case-none .c-title, .tpl-duotone.case-none .c-title { text-transform: none; }
.tpl-brutalism.case-auto .c-title, .tpl-presskit.case-auto .c-title, .tpl-loyalty.case-auto .c-title, .tpl-duotone.type-cover.case-auto .c-title { text-transform: uppercase; }

/* decorations off */
.card.no-decos .deco:not(.d-pattern):not(.d-bgimg):not(.d-overlay):not(.inner):not(.head-table) { display: none; }
.card.no-decos .c-main::before { display: none; }

/* custom background overrides template gradient */
.card.custom-bg { background-image: none; }
.card.custom-bg.tpl-gradient { background: var(--bg); }

/* patterns */
.deco.d-pattern { inset: 0; z-index: 1; }
.pat-dots { background-image: radial-gradient(currentColor 3px, transparent 3px); background-size: 40px 40px; color: var(--fg); }
.pat-grid { background-image: linear-gradient(currentColor 1.5px, transparent 1.5px), linear-gradient(90deg, currentColor 1.5px, transparent 1.5px); background-size: 60px 60px; color: var(--fg); }
.pat-lines { background-image: repeating-linear-gradient(45deg, currentColor 0 2px, transparent 2px 22px); color: var(--fg); }
.pat-cross { background-image: radial-gradient(circle, transparent 40%, currentColor 41%, currentColor 43%, transparent 44%); background-size: 80px 80px; color: var(--fg); }
.pat-noise { background-image: radial-gradient(rgba(0,0,0,.35) 1px, transparent 1px), radial-gradient(rgba(255,255,255,.4) 1px, transparent 1px); background-size: 5px 5px, 9px 9px; background-position: 0 0, 2px 3px; }
.pat-waves { background-image: repeating-radial-gradient(circle at 50% 120%, transparent 0 38px, currentColor 38px 40px); color: var(--fg); }
.deco.d-bgimg { inset: 0; z-index: 0; background-size: cover; background-position: center; }
.deco.d-overlay { inset: 0; z-index: 0; background: var(--bg); }

/* frames */
.card.frame-solid { box-shadow: inset 0 0 0 var(--frame-w) var(--frame-c); }
.card.frame-inset::after { content: ''; position: absolute; inset: calc(var(--frame-w) * 2.5); border: var(--frame-w) solid var(--frame-c); pointer-events: none; z-index: 2; }
.card.frame-double { box-shadow: inset 0 0 0 var(--frame-w) var(--frame-c), inset 0 0 0 calc(var(--frame-w) * 1.6) var(--bg), inset 0 0 0 calc(var(--frame-w) * 2) var(--frame-c); }
.card.frame-corners::before, .card.frame-corners::after { content: ''; position: absolute; width: 140px; height: 140px; border: var(--frame-w) solid var(--frame-c); z-index: 2; pointer-events: none; }
.card.frame-corners::before { top: 40px; left: 40px; border-right: 0; border-bottom: 0; }
.card.frame-corners::after { bottom: 40px; right: 40px; border-left: 0; border-top: 0; }
.card.frame-bottom { box-shadow: inset 0 calc(var(--frame-w) * -1.5) 0 var(--frame-c); }
.card.text-shadow .c-title { text-shadow: 0 6px 24px rgba(0,0,0,.35); }
/* radius applies to export frame via wrapper; inside card we clip corners */
.card[style*="--radius"] { border-radius: var(--radius); }
/* when title is enlarged via design, fade/hide stacked outline type to avoid collision */
.card.big-title .deco.stack { opacity: .12; }
.card.huge-title .deco.stack { display: none; }
.card.custom-title-font .deco.stack span { font-family: var(--font); }
.tpl-finance.has-img .deco.arrow { display: none; }


/* =====================================================================
   PHOTO-FIRST TEMPLATES  (14–19)
   ===================================================================== */
/* shared placeholder for photo templates without an image */
.c-img-ph { background: color-mix(in srgb, var(--fg) 8%, var(--bg)); }
.c-img-ph .ph-art { position: absolute; inset: 0; background-image: repeating-linear-gradient(135deg, transparent 0 28px, color-mix(in srgb, var(--fg) 6%, transparent) 28px 30px); }
.c-img-ph .ph-art::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--a) 22%, transparent), transparent 60%); }
.c-img-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 26px; font-weight: 600; color: var(--fg); opacity: .55; font-family: 'Inter','Noto Sans KR',sans-serif; letter-spacing: 0; text-transform: none; }
.c-img-hint i { font-size: 64px; }
.c-img-ov { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.deco.ph-mesh { inset: 0; z-index: 0; background: radial-gradient(at 20% 15%, color-mix(in srgb, var(--a) 55%, transparent) 0, transparent 50%), radial-gradient(at 85% 30%, color-mix(in srgb, var(--fg) 25%, transparent) 0, transparent 45%), radial-gradient(at 60% 90%, color-mix(in srgb, var(--a) 35%, transparent) 0, transparent 50%), var(--bg); }

/* 14. PHOTO HERO — full-bleed image, bottom gradient, text at bottom */
.tpl-hero .c-img { inset: 0; }
.tpl-hero .deco.hero-grad { inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, transparent 28%, transparent 42%, color-mix(in srgb, var(--bg) 96%, transparent) 100%); }
.tpl-hero.no-img .deco.hero-grad { background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--bg) 85%, transparent) 100%); }
.tpl-hero .c-main { justify-content: flex-end; gap: 26px; }
.tpl-hero .c-title { font-weight: 800; letter-spacing: -.03em; line-height: 1.05; text-shadow: 0 6px 40px rgba(0,0,0,.35); }
.tpl-hero.type-cover .c-title { font-size: calc(112px * var(--ts) * var(--lsz, 1)); }
.tpl-hero .c-body { color: var(--muted); font-weight: 500; text-shadow: 0 2px 16px rgba(0,0,0,.4); }
.tpl-hero .c-label { background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.35); backdrop-filter: blur(10px); padding: 8px 22px; border-radius: 999px; font-size: 24px; }
.tpl-hero .c-brand, .tpl-hero .c-site, .tpl-hero .c-page { color: var(--fg); opacity: .8; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.tpl-hero .c-swipe { background: var(--a); color: var(--bg); padding: 10px 26px; border-radius: 999px; font-size: 24px; }
.tpl-hero .c-check { background: var(--a); color: var(--bg); }
.tpl-hero .c-items li { text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.tpl-hero .c-stat, .tpl-hero .c-quotemark { color: var(--a); text-shadow: 0 6px 40px rgba(0,0,0,.4); }
.tpl-hero .c-emoji { display: none; }

/* 15. SPLIT — left half image / right half text */
.tpl-split { --lsz: .8; }
.tpl-split .c-img { inset: 0 auto 0 0; width: 50%; }
.tpl-split .deco.ph-block { top: 0; bottom: 0; left: calc(var(--W) * .5 - 7px); width: 14px; background: var(--a); z-index: 2; }
.tpl-split .deco.split-tag { left: 40px; bottom: 40px; z-index: 4; background: var(--bg); color: var(--fg); padding: 10px 18px; font-size: 20px; letter-spacing: .22em; font-weight: 700; font-family: var(--display); }
.tpl-split .c-top, .tpl-split .c-main, .tpl-split .c-bottom { margin-left: calc(var(--W) * .5 - 84px * var(--pad) + 44px); }
.tpl-split .c-title { font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.tpl-split .c-body { color: var(--muted); }
.tpl-split .c-label { color: var(--a); border-bottom: 4px solid var(--a); padding-bottom: 6px; }
.tpl-split .c-swipe { color: var(--a); }
.tpl-split .c-check { background: var(--a); color: var(--bg); }
.tpl-split .c-stat { color: var(--a); }
.tpl-split .c-emoji { display: none; }
.tpl-split .c-main { justify-content: center; }
.tpl-split .c-top, .tpl-split .c-bottom { gap: 12px; }
.tpl-split .c-brand { display: none; }
.tpl-split.ratio-9-16 { --lsz: .95; }
.tpl-split.ratio-9-16 .c-img { inset: 0 0 auto 0; width: auto; height: 46%; }
.tpl-split.ratio-9-16 .deco.ph-block { left: 0; right: 0; top: calc(var(--H) * .46 - 7px); bottom: auto; width: auto; height: 14px; }
.tpl-split.ratio-9-16 .c-top, .tpl-split.ratio-9-16 .c-main, .tpl-split.ratio-9-16 .c-bottom { margin-left: 0; }
.tpl-split.ratio-9-16 .c-main { margin-top: calc(var(--H) * .46); justify-content: flex-start; padding-top: 40px; }
.tpl-split.ratio-9-16 .c-top { position: absolute; top: 70px; left: 84px; right: 84px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.tpl-split.ratio-9-16 .c-top .c-label { color: #fff; border-color: #fff; }

/* 16. SCRAPBOOK (polaroid) */
.tpl-polaroid .deco.paper { inset: 0; z-index: 0; background-image: radial-gradient(rgba(0,0,0,.05) 1px, transparent 1px), radial-gradient(rgba(255,255,255,.35) 1px, transparent 1px); background-size: 6px 6px, 9px 9px; background-position: 0 0, 3px 4px; }
.tpl-polaroid .c-img { inset: 150px auto auto 84px; width: 62%; height: 46%; z-index: 2; background: var(--b); padding: 26px 26px 92px; transform: rotate(-3deg); box-shadow: 0 30px 60px rgba(0,0,0,.18); overflow: visible; }
.tpl-polaroid .c-img img, .tpl-polaroid .c-img .ph-art, .tpl-polaroid .c-img-ov { position: absolute; top: 26px; left: 26px; width: calc(100% - 52px); height: calc(100% - 118px); }
.tpl-polaroid .c-img::after { content: attr(data-cap); position: absolute; left: 26px; right: 26px; bottom: 26px; height: 50px; font-family: var(--font); font-size: 30px; color: #6b6152; opacity: .6; }
.tpl-polaroid .c-img-hint { top: 44%; }
.tpl-polaroid .deco.tape { width: 170px; height: 46px; background: rgba(255, 228, 120, .78); z-index: 3; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.tpl-polaroid .deco.tape.t1 { left: 60px; top: 130px; transform: rotate(-32deg); }
.tpl-polaroid .deco.tape.t2 { left: calc(84px + 62% - 120px); top: 118px; transform: rotate(24deg); }
.tpl-polaroid .deco.ph-doodle { right: 90px; top: 200px; font-size: 120px; color: var(--a); z-index: 2; line-height: 1; transform: rotate(12deg); }
.tpl-polaroid .c-main { justify-content: flex-end; gap: 22px; }
.tpl-polaroid .c-title { font-family: var(--font); font-weight: 700; line-height: 1.15; letter-spacing: 0; }
.tpl-polaroid .c-body { font-family: var(--sans); color: var(--muted); }
.tpl-polaroid .c-label { background: var(--a); color: #fff; padding: 8px 22px; border-radius: 999px; transform: rotate(-4deg); display: inline-block; font-family: var(--sans); letter-spacing: .08em; }
.tpl-polaroid .c-brand, .tpl-polaroid .c-site, .tpl-polaroid .c-page, .tpl-polaroid .c-swipe, .tpl-polaroid .c-items li { font-family: var(--sans); }
.tpl-polaroid .c-swipe { color: var(--a); }
.tpl-polaroid .c-check { background: var(--a); color: #fff; }
.tpl-polaroid .c-emoji { display: none; }
.tpl-polaroid .c-stat { color: var(--a); font-family: var(--font); }
.tpl-polaroid.ratio-1-1 .c-img { height: 40%; width: 56%; }
.tpl-polaroid.ratio-16-9 .c-img { inset: 120px auto auto 84px; width: 40%; height: 60%; }
.tpl-polaroid.ratio-16-9 .c-main, .tpl-polaroid.ratio-16-9 .c-top, .tpl-polaroid.ratio-16-9 .c-bottom { margin-left: 46%; }
.tpl-polaroid.ratio-16-9 .deco.tape.t2 { left: calc(84px + 40% - 100px); }
.tpl-polaroid.ratio-16-9 .c-main { justify-content: center; }
.tpl-polaroid.ratio-9-16 .c-img { height: 38%; }

/* 17. EDITORIAL PHOTO — full bleed, thin frame, serif */
.tpl-editorial .c-img { inset: 0; }
.tpl-editorial .deco.ed-frame { inset: 44px; border: 2px solid color-mix(in srgb, var(--fg) 55%, transparent); z-index: 2; }
.tpl-editorial .deco.ed-grad { inset: 0; z-index: 2; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 25%, transparent) 0%, transparent 30%, transparent 45%, color-mix(in srgb, var(--bg) 92%, transparent) 100%); }
.tpl-editorial { padding: calc(110px * var(--pad)); }
.tpl-editorial .c-main { justify-content: flex-end; gap: 28px; }
.tpl-editorial .c-main::before { content: ''; display: block; width: 90px; height: 2px; background: var(--a); }
.tpl-editorial .c-title { font-family: var(--font); font-weight: 400; font-style: italic; line-height: 1.08; letter-spacing: -.01em; }
.tpl-editorial.type-cover .c-title { font-size: calc(116px * var(--ts) * var(--lsz, 1)); }
.tpl-editorial .c-body { font-family: var(--sans); color: var(--muted); font-size: calc(32px * var(--bs) * var(--lsz, 1)); letter-spacing: .01em; }
.tpl-editorial .c-label, .tpl-editorial .c-brand, .tpl-editorial .c-site, .tpl-editorial .c-page, .tpl-editorial .c-swipe { font-family: var(--sans); font-size: 21px; letter-spacing: .3em; text-transform: uppercase; color: var(--fg); font-weight: 500; opacity: .9; }
.tpl-editorial .c-swipe { color: var(--a); }
.tpl-editorial .c-check { background: transparent; border: 2px solid var(--a); color: var(--a); font-family: var(--sans); }
.tpl-editorial .c-items li { font-family: var(--sans); font-weight: 400; }
.tpl-editorial .c-stat { color: var(--a); font-weight: 400; }
.tpl-editorial .c-quotemark { color: var(--a); }
.tpl-editorial .c-emoji { display: none; }

/* 18. GLASS CARD — full bleed + frosted panel */
.tpl-glass .c-img { inset: 0; }
.tpl-glass .deco.glass-orb { border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--a), transparent 70%); opacity: .75; filter: blur(30px); z-index: 1; }
.tpl-glass .deco.glass-orb.o1 { width: 560px; height: 560px; right: -160px; top: -140px; }
.tpl-glass .deco.glass-orb.o2 { width: 420px; height: 420px; left: -140px; bottom: 300px; opacity: .5; }
.tpl-glass .c-main { flex: 0 0 auto; margin-top: auto; background: var(--b); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-radius: 40px; padding: 64px 60px; border: 1px solid rgba(255,255,255,.4); box-shadow: 0 30px 80px rgba(0,0,0,.25); gap: 26px; margin-bottom: 30px; }
.tpl-glass .c-top, .tpl-glass .c-bottom { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.tpl-glass .c-top .c-brand, .tpl-glass .c-bottom .c-page, .tpl-glass .c-bottom .c-site { color: #fff; opacity: .85; }
.tpl-glass .c-label { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.45); backdrop-filter: blur(10px); padding: 8px 20px; border-radius: 999px; color: #fff; font-size: 24px; }
.tpl-glass .c-swipe { background: rgba(255,255,255,.9); color: #111; padding: 10px 24px; border-radius: 999px; font-size: 24px; text-shadow: none; }
.tpl-glass .c-title { font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-size: calc(80px * var(--ts) * var(--lsz, 1)); }
.tpl-glass.type-cover .c-title { font-size: calc(92px * var(--ts) * var(--lsz, 1)); }
.tpl-glass .c-title.len-l { font-size: calc(62px * var(--ts) * var(--lsz, 1)); } .tpl-glass .c-title.len-xl { font-size: calc(52px * var(--ts) * var(--lsz, 1)); }
.tpl-glass .c-body { color: var(--muted); font-size: calc(34px * var(--bs) * var(--lsz, 1)); }
.tpl-glass .c-check { background: var(--a); color: #fff; }
.tpl-glass .c-stat { color: var(--a); font-size: calc(180px * var(--ts) * var(--lsz, 1)); }
.tpl-glass .c-quotemark { color: var(--a); height: 90px; }
.tpl-glass .c-emoji { font-size: 72px; }
.tpl-glass.ratio-16-9 .c-main { max-width: 62%; }

/* 19. CUTOUT — circular photo sticker */
.tpl-cutout .c-img { top: auto; left: auto; right: calc(var(--W) * -.06); bottom: calc(var(--W) * -.08); width: calc(var(--W) * .66); height: calc(var(--W) * .66); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 18px solid var(--a); z-index: 2; box-shadow: 0 30px 70px rgba(0,0,0,.25); }
.tpl-cutout .c-img-ph { border-radius: 50%; }
.tpl-cutout .deco.cut-ring { right: calc(var(--W) * -.12); bottom: calc(var(--W) * -.14); width: calc(var(--W) * .8); height: calc(var(--W) * .8); border-radius: 50%; border: 6px dashed color-mix(in srgb, var(--fg) 45%, transparent); z-index: 1; }
.tpl-cutout .deco.cut-blob { left: -20%; top: -18%; width: 60%; height: 60%; border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%; background: var(--b); z-index: 0; }
.tpl-cutout .c-main { justify-content: flex-start; padding-top: 30px; max-width: 78%; gap: 26px; }
.tpl-cutout .c-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: -.01em; line-height: 1; }
.tpl-cutout.type-cover .c-title { font-size: calc(120px * var(--ts) * var(--lsz, 1)); }
.tpl-cutout.type-cover .c-title.len-m { font-size: calc(100px * var(--ts) * var(--lsz, 1)); } .tpl-cutout.type-cover .c-title.len-l { font-size: calc(80px * var(--ts) * var(--lsz, 1)); } .tpl-cutout.type-cover .c-title.len-xl { font-size: calc(66px * var(--ts) * var(--lsz, 1)); }
.tpl-cutout .c-body { color: var(--fg); opacity: .85; font-weight: 500; max-width: 62%; }
.tpl-cutout .c-label { background: var(--a); color: var(--bg); padding: 8px 22px; border-radius: 12px; }
.tpl-cutout .c-brand, .tpl-cutout .c-site, .tpl-cutout .c-page { color: var(--fg); opacity: .75; font-weight: 600; }
.tpl-cutout .c-swipe { color: var(--fg); }
.tpl-cutout .c-bottom { max-width: 44%; }
.tpl-cutout .c-check { background: var(--fg); color: var(--bg); }
.tpl-cutout .c-items { max-width: 62%; }
.tpl-cutout .c-stat { color: var(--a); font-family: var(--display); font-weight: 400; }
.tpl-cutout .c-quotemark { color: var(--a); }
.tpl-cutout .c-emoji { font-size: 84px; }
.tpl-cutout.ratio-16-9 .c-img { width: calc(var(--H) * .78); height: calc(var(--H) * .78); right: 80px; bottom: -8%; }
.tpl-cutout.ratio-16-9 .deco.cut-ring { width: calc(var(--H) * .95); height: calc(var(--H) * .95); right: 0; bottom: -18%; }
.tpl-cutout.ratio-16-9 .c-main { max-width: 52%; }
.tpl-cutout.ratio-9-16 .c-img { width: calc(var(--W) * .82); height: calc(var(--W) * .82); right: calc(var(--W) * -.12); bottom: calc(var(--W) * -.06); }
.tpl-cutout.ratio-9-16 .c-main { max-width: 100%; }
.tpl-cutout.ratio-9-16 .c-body { max-width: 80%; }

/* =====================================================================
   IMAGE LAYOUT LAYER  (per-slide explicit layouts override template treatment)
   classes: .img-explicit + .img-{full|top|bottom|left|right|card|circle|polaroid}
   vars: --isz (size %), --iradius, --lsz (text scale)
   ===================================================================== */
.card.has-img .c-img img { object-fit: cover; }
.card.has-img.img-contain .c-img img { object-fit: contain; }
.card.has-img.img-explicit .c-img { position: absolute; inset: auto; width: auto; height: auto; order: initial; padding: 0; transform: none; border: 0; border-radius: 0; box-shadow: none; overflow: hidden; background: color-mix(in srgb, var(--fg) 8%, var(--bg)); }
.card.has-img.img-explicit .c-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.card.has-img.img-explicit .c-main, .card.has-img.img-explicit .c-top, .card.has-img.img-explicit .c-bottom { order: initial; margin-left: 0; margin-top: 0; max-width: none; }
.card.has-img.img-explicit .c-main { padding-top: 0; flex: 1; background: none; backdrop-filter: none; border: 0; box-shadow: none; border-radius: 0; margin-bottom: 0; }
.card.has-img.img-explicit .deco.hero-grad, .card.has-img.img-explicit .deco.ed-grad, .card.has-img.img-explicit .deco.ed-frame, .card.has-img.img-explicit .deco.ph-block, .card.has-img.img-explicit .deco.split-tag, .card.has-img.img-explicit .deco.tape, .card.has-img.img-explicit .deco.cut-ring, .card.has-img.img-explicit .deco.ph-doodle { display: none; }
.card.has-img.img-explicit .c-img::after, .card.has-img.img-explicit .c-img::before { content: none; display: none; }
.card.has-img.img-explicit .c-img img { filter: none; }
.card.has-img.img-explicit .deco.stack, .card.has-img.img-explicit .deco.bignum { display: none; }
.card.has-img.img-custom-ov .c-img::after, .card.has-img.img-custom-ov .c-img::before { content: none; display: none; }
.card.has-img.img-custom-ov.tpl-duotone .c-img img, .card.has-img.img-custom-ov.tpl-brutalism .c-img img { filter: none; }
.tpl-duotone.has-img.img-explicit .c-main { padding-top: 120px; }
.tpl-presskit.has-img.img-explicit .c-img { margin: 0 84px; }

/* full */
.card.has-img.img-explicit.img-full .c-img { inset: 0; }
.card.has-img.img-explicit.img-full .c-body, .card.has-img.img-explicit.img-full .c-brand, .card.has-img.img-explicit.img-full .c-site, .card.has-img.img-explicit.img-full .c-page { color: var(--fg); opacity: .88; }
.card.has-img.img-explicit.img-full .c-title, .card.has-img.img-explicit.img-full .c-body, .card.has-img.img-explicit.img-full .c-items li { text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.card.has-img.img-explicit.img-full .c-main { justify-content: flex-end; }
.card.has-img.img-explicit.img-full .deco:not(.d-pattern):not(.d-overlay):not(.hero-grad):not(.ed-grad):not(.head-table):not(.grad) { display: none; }
.tpl-hero.has-img.img-explicit.img-full .deco.hero-grad, .tpl-editorial.has-img.img-explicit.img-full .deco.ed-grad, .tpl-editorial.has-img.img-explicit.img-full .deco.ed-frame { display: block; }
.tpl-glass.has-img.img-explicit.img-full .c-main { flex: 0 0 auto; background: var(--b); backdrop-filter: blur(24px); border-radius: 40px; padding: 64px 60px; margin-top: auto; }

/* top / bottom / card / polaroid / circle → flow layouts */
.card.has-img.img-explicit.img-top, .card.has-img.img-explicit.img-bottom, .card.has-img.img-explicit.img-card, .card.has-img.img-explicit.img-polaroid, .card.has-img.img-explicit.img-circle { gap: 34px; --lsz: .88; }
.card.has-img.img-explicit.img-top .c-img, .card.has-img.img-explicit.img-bottom .c-img, .card.has-img.img-explicit.img-card .c-img, .card.has-img.img-explicit.img-polaroid .c-img, .card.has-img.img-explicit.img-circle .c-img { position: relative; flex: 0 0 auto; z-index: 2; width: auto; height: calc(var(--H) * var(--isz, 46) / 100); }
.card.has-img.img-explicit.img-top .c-img, .card.has-img.img-explicit.img-card .c-img, .card.has-img.img-explicit.img-polaroid .c-img, .card.has-img.img-explicit.img-circle .c-img { order: 1; }
.card.has-img.img-explicit.img-bottom .c-img { order: 3; }
.card.has-img.img-explicit .c-top { order: 0; } .card.has-img.img-explicit .c-main { order: 2; } .card.has-img.img-explicit .c-bottom { order: 4; }
.card.has-img.img-explicit.img-top .c-main, .card.has-img.img-explicit.img-card .c-main, .card.has-img.img-explicit.img-polaroid .c-main, .card.has-img.img-explicit.img-circle .c-main { justify-content: flex-start; }
.card.has-img.img-explicit.img-bottom .c-main { justify-content: flex-end; }
.card.has-img.img-explicit.img-top .c-img, .card.has-img.img-explicit.img-bottom .c-img { margin: 0 calc(-84px * var(--pad)); }
.tpl-presskit.has-img.img-explicit.img-top .c-img, .tpl-presskit.has-img.img-explicit.img-bottom .c-img { margin: 0; }
.tpl-finance.has-img.img-explicit.img-top .c-img, .tpl-finance.has-img.img-explicit.img-bottom .c-img, .tpl-pastel.has-img.img-explicit.img-top .c-img, .tpl-pastel.has-img.img-explicit.img-bottom .c-img, .tpl-duotone.has-img.img-explicit.img-top .c-img, .tpl-duotone.has-img.img-explicit.img-bottom .c-img { margin: 0; }
.card.ratio-9-16.has-img.img-explicit.img-top .c-img, .card.ratio-9-16.has-img.img-explicit.img-bottom .c-img { margin: 0 calc(-84px * var(--pad)); }
.card.has-img.img-explicit.img-card .c-img { border-radius: var(--iradius, 36px); }
.card.has-img.img-explicit.img-polaroid .c-img { width: calc(var(--W) * var(--isz, 56) / 100); height: calc(var(--W) * var(--isz, 56) / 100 * 1.05); align-self: flex-start; background: #fff; padding: 22px 22px 80px; transform: rotate(-2.5deg); box-shadow: 0 24px 60px rgba(0,0,0,.2); border-radius: 4px; overflow: visible; }
.card.has-img.img-explicit.img-polaroid .c-img img, .card.has-img.img-explicit.img-polaroid .c-img-ov { inset: auto; top: 22px; left: 22px; width: calc(100% - 44px); height: calc(100% - 102px); }
.card.align-center.has-img.img-explicit.img-polaroid .c-img, .card.align-center.has-img.img-explicit.img-circle .c-img { align-self: center; }
.card.align-right.has-img.img-explicit.img-polaroid .c-img, .card.align-right.has-img.img-explicit.img-circle .c-img { align-self: flex-end; }
.card.has-img.img-explicit.img-circle .c-img { width: calc(var(--W) * var(--isz, 52) / 100); height: calc(var(--W) * var(--isz, 52) / 100); border-radius: 50%; align-self: flex-start; border: 14px solid var(--a); }
.card.has-img.img-explicit.img-circle .c-main { justify-content: center; }

/* left / right → split */
.card.has-img.img-explicit.img-left, .card.has-img.img-explicit.img-right { --lsz: .78; }
.card.has-img.img-explicit.img-left .c-img { inset: 0 auto 0 0; width: calc(var(--W) * var(--isz, 50) / 100); }
.card.has-img.img-explicit.img-right .c-img { inset: 0 0 0 auto; width: calc(var(--W) * var(--isz, 50) / 100); }
.card.has-img.img-explicit.img-left .c-top, .card.has-img.img-explicit.img-left .c-main, .card.has-img.img-explicit.img-left .c-bottom { margin-left: calc(var(--W) * var(--isz, 50) / 100 - 84px * var(--pad) + 44px); }
.card.has-img.img-explicit.img-right .c-top, .card.has-img.img-explicit.img-right .c-main, .card.has-img.img-explicit.img-right .c-bottom { margin-right: calc(var(--W) * var(--isz, 50) / 100 - 84px * var(--pad) + 44px); }
.tpl-presskit.has-img.img-explicit.img-left .c-img, .tpl-presskit.has-img.img-explicit.img-right .c-img { margin: 0; }
.tpl-presskit.has-img.img-explicit.img-left .c-top, .tpl-presskit.has-img.img-explicit.img-left .c-main, .tpl-presskit.has-img.img-explicit.img-left .c-bottom { margin-left: calc(var(--W) * var(--isz, 50) / 100); }
.card.has-img.img-explicit.img-left .c-main, .card.has-img.img-explicit.img-right .c-main { justify-content: center; }
.card.has-img.img-explicit.img-left .c-brand, .card.has-img.img-explicit.img-right .c-brand { display: none; }
.card.has-img.img-explicit.img-left .deco.stack, .card.has-img.img-explicit.img-right .deco.stack, .card.has-img.img-explicit.img-left .deco.bignum, .card.has-img.img-explicit.img-right .deco.bignum, .card.has-img.img-explicit.img-left .deco.arrow, .card.has-img.img-explicit.img-left .deco.checker, .card.has-img.img-explicit.img-left .deco.sparkle, .card.has-img.img-explicit.img-left .deco.plus, .card.has-img.img-explicit.img-left .deco.cross, .card.has-img.img-explicit.img-left .deco.wavy, .card.has-img.img-explicit.img-left .deco.bottle, .card.has-img.img-explicit.img-left .deco.ring { display: none; }
.card.has-img.img-explicit.img-right .deco.arrow, .card.has-img.img-explicit.img-right .deco.checker, .card.has-img.img-explicit.img-right .deco.sparkle, .card.has-img.img-explicit.img-right .deco.plus, .card.has-img.img-explicit.img-right .deco.cross, .card.has-img.img-explicit.img-right .deco.wavy, .card.has-img.img-explicit.img-right .deco.bottle, .card.has-img.img-explicit.img-right .deco.ring, .card.has-img.img-explicit.img-right .deco.paint.p1, .card.has-img.img-explicit.img-right .deco.paint.p2 { display: none; }
.tpl-cutout.has-img.img-explicit .deco.cut-blob { display: none; }
.tpl-finance.has-img.img-explicit.img-left .c-main, .tpl-finance.has-img.img-explicit.img-right .c-main { background: none; padding: 0; color: var(--fg); }
.tpl-finance.has-img.img-explicit.img-left .c-top, .tpl-finance.has-img.img-explicit.img-left .c-bottom, .tpl-finance.has-img.img-explicit.img-right .c-top, .tpl-finance.has-img.img-explicit.img-right .c-bottom, .tpl-finance.has-img.img-explicit.img-full .c-top, .tpl-finance.has-img.img-explicit.img-full .c-bottom { background: none; color: var(--fg); padding: 0; }
.tpl-finance.has-img.img-explicit.img-full .c-main { background: none; color: var(--fg); }
.tpl-finance.has-img.img-explicit.img-full .c-bottom .c-page, .tpl-finance.has-img.img-explicit.img-full .c-bottom .c-site, .tpl-finance.has-img.img-explicit.img-full .c-top .c-brand { color: var(--fg); }

.card.has-img.img-explicit.img-top.type-list, .card.has-img.img-explicit.img-bottom.type-list, .card.has-img.img-explicit.img-card.type-list { --lsz: .76; }
.card.has-img.img-explicit.img-top .c-items, .card.has-img.img-explicit.img-bottom .c-items, .card.has-img.img-explicit.img-card .c-items { gap: 16px; }
.card.has-img.img-explicit.img-top .c-main, .card.has-img.img-explicit.img-bottom .c-main, .card.has-img.img-explicit.img-card .c-main { gap: 24px; }
.card.has-img.img-explicit.img-top .c-emoji, .card.has-img.img-explicit.img-bottom .c-emoji, .card.has-img.img-explicit.img-card .c-emoji, .card.has-img.img-explicit.img-left .c-emoji, .card.has-img.img-explicit.img-right .c-emoji { font-size: 64px; }

/* text position (full layouts) */
.card.has-img.img-txt-top .c-main { justify-content: flex-start !important; }
.card.has-img.img-txt-middle .c-main { justify-content: center !important; }
.card.has-img.img-txt-bottom .c-main { justify-content: flex-end !important; }

/* decorations: radius / shadow / border */
.card.has-img.img-radius .c-img { border-radius: var(--iradius); overflow: hidden; }
.card.has-img.img-shadow:not(.img-full) .c-img { box-shadow: 0 30px 70px rgba(0,0,0,.32); }
.card.has-img.img-border .c-img img { padding: 16px; background: #fff; }
.card.has-img.img-border.img-polaroid .c-img img { padding: 0; }
.card.has-img.img-explicit.img-polaroid.img-radius .c-img { overflow: visible; }

/* editor affordance */
#focus-frame .card.has-img .c-img { pointer-events: auto; cursor: grab; }
#focus-frame .card.has-img .c-img:active { cursor: grabbing; }
#focus-frame .card.has-img .c-img::selection { background: transparent; }
#focus-frame .card .c-img-ph { pointer-events: auto; cursor: pointer; }


/* =====================================================================
   CHART / TABLE SLIDES
   ===================================================================== */
.type-chart .c-title, .type-table .c-title { font-size: calc(64px * var(--ts) * var(--lsz, 1)); }
.c-chart { width: 100%; }
.c-chart svg { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--sans, var(--font)); }
.c-chart .ch-val { font-size: 30px; font-weight: 800; fill: var(--fg); }
.c-chart .ch-lbl { font-size: 26px; font-weight: 500; fill: var(--muted); }
.c-chart .ch-center { font-size: 72px; font-weight: 900; fill: var(--fg); letter-spacing: -.03em; }
.c-chart .ch-axis { stroke: color-mix(in srgb, var(--fg) 25%, transparent); stroke-width: 3; }
.tpl-finance .c-chart .ch-lbl, .tpl-finance .c-chart .ch-val { fill: var(--fg); }
.tpl-gradient .c-chart .ch-lbl, .tpl-hero .c-chart .ch-lbl, .tpl-dark .c-chart .ch-lbl { fill: var(--fg); opacity: .75; }
.c-table { width: 100%; }
.c-table table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 32px; font-family: var(--sans, var(--font)); }
.c-table th { text-align: left; font-size: 26px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 14px 22px; border-bottom: 3px solid color-mix(in srgb, var(--fg) 30%, transparent); }
.c-table th:not(:first-child), .c-table td:not(:first-child) { text-align: center; }
.c-table th:nth-child(2) { color: var(--a); }
.c-table td { padding: 22px 22px; border-bottom: 2px solid color-mix(in srgb, var(--fg) 12%, transparent); font-weight: 500; }
.c-table td:first-child { font-weight: 700; color: var(--fg); }
.c-table td:nth-child(2) { background: color-mix(in srgb, var(--a) 12%, transparent); font-weight: 700; }
.c-table tr:first-child td:nth-child(2) { border-radius: 16px 16px 0 0; }
.c-table tr:last-child td:nth-child(2) { border-radius: 0 0 16px 16px; }
.c-table td.yes { color: var(--a); font-weight: 900; font-size: 38px; }
.c-table td.no { color: var(--muted); opacity: .6; }
.tpl-pop .c-table table, .tpl-brutalism .c-table table { border: 4px solid var(--fg); }
.tpl-pop .c-table td, .tpl-pop .c-table th { border-bottom: 3px solid var(--fg); }

/* =====================================================================
   FREE LAYERS (stickers / shapes / text / arrows)
   ===================================================================== */
.c-layers { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.c-layer { position: absolute; display: grid; place-items: center; line-height: 1; }
.c-layer svg { width: 100%; height: 100%; display: block; overflow: visible; }
.c-layer.l-shape { aspect-ratio: 1; }
.c-layer.l-text { width: auto !important; white-space: nowrap; text-align: center; letter-spacing: -.02em; }
.c-layer.l-text span { display: inline-block; }
.c-layer.l-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.c-layer.l-emoji { width: auto !important; }
#focus-frame .c-layers { pointer-events: none; }
#focus-frame .c-layer { pointer-events: auto; cursor: move; outline: 3px dashed transparent; outline-offset: 10px; border-radius: 6px; transition: outline-color .15s; }
#focus-frame .c-layer:hover { outline-color: color-mix(in srgb, var(--a) 60%, transparent); }
#focus-frame .c-layer.sel { outline-color: #7c3aed; outline-style: solid; }
#focus-frame .c-layer.sel::after { content: ''; position: absolute; right: -16px; bottom: -16px; width: 26px; height: 26px; border-radius: 50%; background: #7c3aed; border: 4px solid #fff; cursor: nwse-resize; }
#focus-frame .c-layer.l-text span[contenteditable] { cursor: text; outline: none; }

/* =====================================================================
   USER-DESIGNED TEMPLATES – generic decoration primitives (.cd-*)
   positioned via inline left/top/width/height (% of card), color via currentColor
   ===================================================================== */
.card .deco.cd { position: absolute; pointer-events: none; z-index: 1; display: grid; place-items: center; }
.card .deco.cd svg { width: 100%; height: 100%; display: block; overflow: visible; }
.card .deco.cd-circle { border-radius: 50%; background: currentColor; }
.card .deco.cd-gradient-blob { border-radius: 50%; background: radial-gradient(circle, currentColor 0%, transparent 70%); }
.card .deco.cd-ring { border-radius: 50%; border: 18px solid currentColor; }
.card .deco.cd-rect { background: currentColor; border-radius: 6px; }
.card .deco.cd-stripe { background: repeating-linear-gradient(45deg, currentColor 0 18px, transparent 18px 44px); }
.card .deco.cd-line { background: currentColor; border-radius: 999px; }
.card .deco.cd-dots { background-image: radial-gradient(currentColor 4px, transparent 4.5px); background-size: 34px 34px; }
.card .deco.cd-grid { background-image: linear-gradient(currentColor 2px, transparent 2px), linear-gradient(90deg, currentColor 2px, transparent 2px); background-size: 60px 60px; }
.card .deco.cd-text span { white-space: nowrap; line-height: 1; font-family: var(--display, var(--font)); letter-spacing: -.02em; }
.card .deco.cd-emoji span { line-height: 1; }
.card .deco.cd-stack { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.card .deco.cd-stack span { line-height: .9; font-weight: 900; font-family: var(--display, var(--font)); white-space: nowrap; letter-spacing: -.03em; opacity: calc(1 - var(--i) * .22); -webkit-text-stroke: 2px currentColor; color: transparent; }
.card .deco.cd-stack span:first-child { color: currentColor; -webkit-text-stroke: 0; }
.card .deco.cd-grain { inset: 0; opacity: .12; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode: multiply; z-index: 2; }
.card.no-decos .deco.cd, .card.no-decos .deco.cd-grain { display: none; }
.card.has-img.img-explicit.img-full .deco.cd { display: none; }
/* designer editing state */
.card .deco.cd.cd-edit { pointer-events: auto; cursor: grab; outline: 2px dashed transparent; outline-offset: 6px; }
.card .deco.cd.cd-edit:hover { outline-color: rgba(99,102,241,.6); }
.card .deco.cd.cd-edit.sel { outline: 3px dashed #6366f1; z-index: 60 !important; }
.card .deco.cd.cd-edit.sel::after { content: ''; position: absolute; right: -14px; bottom: -14px; width: 28px; height: 28px; border-radius: 50%; background: #6366f1; border: 4px solid #fff; cursor: nwse-resize; }

/* =====================================================================
   STYLE PACK v2.7 — 9 templates from uploaded references, with smart knobs
   ===================================================================== */

/* ---------- 20. HALFTONE (aqua/lime gradient + halftone dots + white panel) ---------- */
.tpl-halftone { --ht-dot: 44px; --ht-grad: 70%; background: var(--bg); }
.tpl-halftone .deco.ht-grad { inset: 0; z-index: 0; background: linear-gradient(160deg, var(--bg) 0%, var(--bg) calc(100% - var(--ht-grad)), var(--b) 100%); }
.tpl-halftone .deco.ht-dots { inset: 0; z-index: 1; color: #fff; background-image: radial-gradient(circle, currentColor calc(var(--ht-dot) * .22), transparent calc(var(--ht-dot) * .24)); background-size: var(--ht-dot) var(--ht-dot); opacity: .75; -webkit-mask: linear-gradient(315deg, #000 0%, rgba(0,0,0,.5) 40%, transparent 78%); mask: linear-gradient(315deg, #000 0%, rgba(0,0,0,.5) 40%, transparent 78%); }
.tpl-halftone.ht-fade-tl .deco.ht-dots { -webkit-mask: linear-gradient(135deg, #000 0%, rgba(0,0,0,.5) 40%, transparent 78%); mask: linear-gradient(135deg, #000 0%, rgba(0,0,0,.5) 40%, transparent 78%); }
.tpl-halftone.ht-fade-tr .deco.ht-dots { -webkit-mask: linear-gradient(225deg, #000 0%, rgba(0,0,0,.5) 40%, transparent 78%); mask: linear-gradient(225deg, #000 0%, rgba(0,0,0,.5) 40%, transparent 78%); }
.tpl-halftone.ht-fade-bl .deco.ht-dots { -webkit-mask: linear-gradient(45deg, #000 0%, rgba(0,0,0,.5) 40%, transparent 78%); mask: linear-gradient(45deg, #000 0%, rgba(0,0,0,.5) 40%, transparent 78%); }
.tpl-halftone.ht-fade-center .deco.ht-dots { -webkit-mask: radial-gradient(circle at 50% 50%, transparent 20%, #000 75%); mask: radial-gradient(circle at 50% 50%, transparent 20%, #000 75%); }
.tpl-halftone .deco.ht-panel { z-index: 2; background: #fff; }
.tpl-halftone.ht-panel-circle .deco.ht-panel { width: 62%; aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 30px 80px rgba(0,0,0,.18); }
.tpl-halftone.ht-panel-band .deco.ht-panel { left: 0; right: 0; top: 0; height: 40%; }
.tpl-halftone.ht-panel-diamond .deco.ht-panel { width: 54%; aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(45deg); }
.tpl-halftone.ht-panel-diagonal .deco.ht-panel { left: 0; right: 0; bottom: 0; height: 52%; clip-path: polygon(0 45%, 100% 0, 100% 100%, 0 100%); }
.tpl-halftone.ht-panel-none .deco.ht-panel { display: none; }
.tpl-halftone .c-main { z-index: 3; }
.tpl-halftone .c-title { font-family: var(--font); font-weight: 800; letter-spacing: -.02em; }
.tpl-halftone .c-label { font-weight: 600; letter-spacing: .3em; font-size: 24px; opacity: .9; }
.tpl-halftone:not(.ht-panel-none) .c-main { color: #0f2a2f; }
.tpl-halftone:not(.ht-panel-none) .c-body { color: #3d5a60; }
.tpl-halftone.ht-panel-circle .c-main { align-items: center; text-align: center; padding: 0 20%; justify-content: center; }
.tpl-halftone.ht-panel-circle .c-title { font-size: calc(64px * var(--ts) * var(--lsz, 1)); }
.tpl-halftone.ht-panel-circle .c-body { font-size: calc(30px * var(--bs) * var(--lsz, 1)); }
.tpl-halftone.ht-panel-diamond .c-main { align-items: center; text-align: center; padding: 0 22%; justify-content: center; }
.tpl-halftone.ht-panel-diamond .c-title { font-size: calc(58px * var(--ts) * var(--lsz, 1)); }
.tpl-halftone.ht-panel-band .c-main { justify-content: flex-start; padding-top: 6%; padding-bottom: 0; max-height: 34%; }
.tpl-halftone.ht-panel-band .c-title { font-size: calc(64px * var(--ts) * var(--lsz, 1)); }
.tpl-halftone.ht-panel-band .c-top { color: #0f2a2f; }
.tpl-halftone.ht-panel-diagonal .c-main { justify-content: flex-end; padding-bottom: 2%; }
.tpl-halftone.ht-panel-none .c-main { color: var(--fg); } .tpl-halftone.ht-panel-none .c-body { color: var(--muted); }
.tpl-halftone .c-check { background: var(--c); color: #fff; }
.tpl-halftone:not(.ht-panel-none) .c-stat { color: var(--c); }
.tpl-halftone.has-img .c-img { inset: 84px 84px auto 84px; height: 38%; border-radius: 24px; overflow: hidden; z-index: 2; }
.tpl-halftone.has-img .deco.ht-panel { display: none; } .tpl-halftone.has-img .c-main { color: var(--fg); margin-top: 40%; } .tpl-halftone.has-img .c-body { color: var(--muted); }

/* ---------- 21. NEON GEO (lime bg, black geometric cluster, number badge, white card) ---------- */
.tpl-neongeo { background: var(--bg); }
.tpl-neongeo .c-title { font-family: var(--font); font-weight: 800; letter-spacing: -.02em; }
.tpl-neongeo .c-label { display: none; }
.tpl-neongeo .deco.ng-num { top: 84px; left: 84px; z-index: 4; background: var(--a); color: var(--bg); font-weight: 800; font-size: 48px; padding: 18px 26px; border-radius: 0 0 28px 0; font-family: var(--font); }
.tpl-neongeo .deco.ng-num:empty { display: none; }
.tpl-neongeo .deco.ng-side { right: 84px; top: 84px; writing-mode: vertical-rl; font-size: 22px; font-weight: 600; color: var(--a); opacity: .8; letter-spacing: .1em; z-index: 4; }
.tpl-neongeo .deco.ng-wire { width: 46%; aspect-ratio: 1; color: var(--a); opacity: .55; top: 4%; right: -6%; z-index: 1; }
.tpl-neongeo.ng-wire-none .deco.ng-wire { display: none; }
.tpl-neongeo .deco.ng-cluster { z-index: 1; display: grid; gap: 6px; grid-template-columns: repeat(3, 140px); width: auto; }
.tpl-neongeo .ng-s { display: block; width: 140px; height: 140px; background: var(--a); }
.tpl-neongeo .ng-circle { border-radius: 50%; } .tpl-neongeo .ng-half { border-radius: 140px 140px 0 0; } .tpl-neongeo .ng-quarter { border-radius: 0 140px 0 0; } .tpl-neongeo .ng-ring { border-radius: 50%; background: transparent; border: 26px solid var(--a); }
.tpl-neongeo .ng-star { clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.tpl-neongeo .ng-x { clip-path: polygon(20% 0, 50% 30%, 80% 0, 100% 20%, 70% 50%, 100% 80%, 80% 100%, 50% 70%, 20% 100%, 0 80%, 30% 50%, 0 20%); }
.tpl-neongeo .ng-burst { clip-path: polygon(50% 0, 60% 38%, 100% 50%, 60% 62%, 50% 100%, 40% 62%, 0 50%, 40% 38%); }
.tpl-neongeo .ng-square { }
.tpl-neongeo.ng-cluster-corners .deco.ng-cluster { right: 84px; bottom: 84px; }
.tpl-neongeo.ng-cluster-bottom .deco.ng-cluster { left: 84px; bottom: 84px; grid-template-columns: repeat(6, 140px); }
.tpl-neongeo.ng-cluster-right .deco.ng-cluster { right: 84px; top: 50%; transform: translateY(-50%); grid-template-columns: repeat(2, 140px); }
.tpl-neongeo.ng-cluster-scatter .deco.ng-cluster { inset: 0; display: block; }
.tpl-neongeo.ng-cluster-scatter .ng-s { position: absolute; left: calc(8% + (var(--i) * 37%) - (var(--i) * var(--i) * 4%)); top: calc(10% + (var(--i) * 23%)); transform: rotate(calc(var(--i) * 17deg)); opacity: .9; }
.tpl-neongeo.ng-cluster-none .deco.ng-cluster { display: none; }
.tpl-neongeo .c-bottom { border-top: 3px solid var(--a); padding-top: 22px; }
.tpl-neongeo .c-brand::before { content: '❤ ✦ ◆  '; letter-spacing: .1em; }
.tpl-neongeo .c-check { background: var(--a); color: var(--bg); border-radius: 12px; }
/* white card: content/list/quote/stat get a paper panel */
.tpl-neongeo.ng-card-on .c-main, .tpl-neongeo.ng-card-auto:not(.type-cover):not(.type-cta) .c-main { background: var(--b); color: #0d0d0d; padding: 64px 60px; border-radius: 6px; box-shadow: 0 24px 60px rgba(0,0,0,.18); flex: 0 0 auto; margin-top: 20%; }
.tpl-neongeo.ng-card-on .c-body, .tpl-neongeo.ng-card-auto:not(.type-cover):not(.type-cta) .c-body { color: #4a4a4a; }
.tpl-neongeo.ng-card-on .c-check, .tpl-neongeo.ng-card-auto:not(.type-cover):not(.type-cta) .c-check { background: #0d0d0d; color: var(--bg); }
.tpl-neongeo.ng-card-on .c-stat, .tpl-neongeo.ng-card-auto:not(.type-cover):not(.type-cta) .c-stat { color: #0d0d0d; }
.tpl-neongeo.ng-card-on .c-title, .tpl-neongeo.ng-card-auto:not(.type-cover):not(.type-cta) .c-title { font-size: calc(66px * var(--ts) * var(--lsz, 1)); }
.tpl-neongeo.type-cover .c-title { font-size: calc(92px * var(--ts) * var(--lsz, 1)); }
.tpl-neongeo.type-cover .c-emoji { display: none; }
.tpl-neongeo.type-cover .c-body::after, .tpl-neongeo.type-cta .c-body::after { content: 'Swipe Left  →'; display: inline-block; margin-top: 28px; background: var(--a); color: var(--bg); font-weight: 700; font-size: 24px; padding: 14px 34px; border-radius: 999px; }
.tpl-neongeo.has-img .c-img { inset: auto 84px 84px auto; width: 44%; height: 40%; border-radius: 6px; overflow: hidden; z-index: 2; }
.tpl-neongeo.has-img .deco.ng-cluster { display: none; }

/* ---------- 22. HOLOGRAPHIC (pastel holo gradient, black panel, oval sticker, ring) ---------- */
.tpl-holo { --holo-panel: 46%; --holo-int: .7; background: var(--bg); }
.tpl-holo .deco.holo-bg { inset: 0; z-index: 0; background: linear-gradient(135deg, var(--bg) 0%, var(--b) 45%, var(--c) 100%); opacity: var(--holo-int); }
.tpl-holo .deco.holo-panel { z-index: 1; background: #0b0b0b; }
.tpl-holo.holo-panel-bottom .deco.holo-panel { left: 0; right: 0; bottom: 0; height: var(--holo-panel); }
.tpl-holo.holo-panel-top .deco.holo-panel { left: 0; right: 0; top: 0; height: var(--holo-panel); }
.tpl-holo.holo-panel-left .deco.holo-panel { top: 0; bottom: 0; left: 0; width: var(--holo-panel); }
.tpl-holo.holo-panel-right .deco.holo-panel { top: 0; bottom: 0; right: 0; width: var(--holo-panel); }
.tpl-holo.holo-panel-none .deco.holo-panel { display: none; }
.tpl-holo .deco.holo-ring { width: 78%; left: 11%; top: 34%; color: var(--fg); opacity: .85; z-index: 2; }
.tpl-holo.holo-ring-off .deco.holo-ring { display: none; }
.tpl-holo .deco.holo-sticker { right: 84px; top: 84px; z-index: 4; }
.tpl-holo .deco.holo-sticker span { display: inline-block; border: 3px solid var(--fg); border-radius: 50%; padding: 12px 34px; font-size: 28px; font-weight: 800; letter-spacing: .1em; color: var(--fg); background: color-mix(in srgb, var(--b) 40%, transparent); }
.tpl-holo .deco.holo-scribble { right: 84px; bottom: 84px; font-size: 90px; color: var(--fg); opacity: .8; z-index: 3; }
.tpl-holo .deco.holo-star { font-size: 44px; color: var(--fg); z-index: 3; } .tpl-holo .deco.holo-star.s1 { left: 84px; top: 30%; } .tpl-holo .deco.holo-star.s2 { right: 20%; top: 12%; font-size: 30px; }
.tpl-holo .c-title { font-family: var(--font); font-weight: 400; letter-spacing: -.02em; font-size: calc(96px * var(--ts) * var(--lsz, 1)); line-height: 1.02; }
.tpl-holo .c-title.len-l, .tpl-holo .c-title.len-xl { font-weight: 500; }
.tpl-holo .c-label { font-size: 24px; letter-spacing: .1em; }
.tpl-holo .c-body { font-size: calc(28px * var(--bs) * var(--lsz, 1)); }
/* text color adapts to panel: main sits on panel for bottom/left/right panels */
.tpl-holo.holo-panel-bottom .c-main { justify-content: flex-end; color: #f4f4f4; padding-bottom: 4%; } .tpl-holo.holo-panel-bottom .c-body { color: #cfcfcf; } .tpl-holo.holo-panel-bottom .c-bottom { color: #cfcfcf; }
.tpl-holo.holo-panel-top .c-main { justify-content: flex-start; color: #f4f4f4; padding-top: 2%; } .tpl-holo.holo-panel-top .c-body { color: #cfcfcf; } .tpl-holo.holo-panel-top .c-top { color: #cfcfcf; }
.tpl-holo.holo-panel-left .c-main, .tpl-holo.holo-panel-left .c-top, .tpl-holo.holo-panel-left .c-bottom { color: #f4f4f4; margin-right: calc(100% - var(--holo-panel) + 40px); } .tpl-holo.holo-panel-left .c-body { color: #cfcfcf; }
.tpl-holo.holo-panel-right .c-main, .tpl-holo.holo-panel-right .c-top, .tpl-holo.holo-panel-right .c-bottom { color: #f4f4f4; margin-left: calc(100% - var(--holo-panel) + 40px); } .tpl-holo.holo-panel-right .c-body { color: #cfcfcf; }
.tpl-holo.holo-panel-left .c-title, .tpl-holo.holo-panel-right .c-title { font-size: calc(72px * var(--ts) * var(--lsz, 1)); }
.tpl-holo .c-check { background: var(--b); color: #0b0b0b; }
.tpl-holo .c-stat { color: var(--b); }
.tpl-holo.has-img .c-img { z-index: 2; overflow: hidden; }
.tpl-holo.has-img.holo-panel-bottom .c-img { inset: 0 0 auto 0; height: calc(100% - var(--holo-panel)); }
.tpl-holo.has-img.holo-panel-top .c-img { inset: auto 0 0 0; height: calc(100% - var(--holo-panel)); }
.tpl-holo.has-img.holo-panel-left .c-img { inset: 0 0 0 auto; width: calc(100% - var(--holo-panel)); }
.tpl-holo.has-img.holo-panel-right .c-img { inset: 0 auto 0 0; width: calc(100% - var(--holo-panel)); }
.tpl-holo.has-img.holo-panel-none .c-img { inset: 84px 84px auto 84px; height: 44%; border-radius: 24px; }
.tpl-holo.has-img .c-img img { filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; }
.tpl-holo.has-img .deco.holo-ring { top: 12%; }

/* ---------- 23. CREATIVE BLUE (cream, blue 3D torus/blob, dot grid, pills) ---------- */
.tpl-creative { --cb-size: 60%; background: var(--bg); }
.tpl-creative .deco.cb-dots { inset: 0; z-index: 0; background-image: radial-gradient(var(--fg) 2.2px, transparent 2.6px); background-size: 34px 34px; opacity: .12; -webkit-mask: radial-gradient(circle at 15% 85%, #000 0 30%, transparent 60%); mask: radial-gradient(circle at 15% 85%, #000 0 30%, transparent 60%); }
.tpl-creative.cb-dots-off .deco.cb-dots { display: none; }
.tpl-creative .deco.cb-shape { width: var(--cb-size); aspect-ratio: 1; z-index: 1; filter: drop-shadow(0 30px 40px color-mix(in srgb, var(--a) 30%, transparent)); }
.tpl-creative .deco.cb-shape svg { width: 100%; height: 100%; display: block; overflow: visible; }
.tpl-creative.cb-pos-br .deco.cb-shape { right: -12%; bottom: -8%; } .tpl-creative.cb-pos-tr .deco.cb-shape { right: -12%; top: -8%; } .tpl-creative.cb-pos-bl .deco.cb-shape { left: -12%; bottom: -8%; } .tpl-creative.cb-pos-tl .deco.cb-shape { left: -12%; top: -6%; }
.tpl-creative.cb-pos-center .deco.cb-shape { left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .55; }
.tpl-creative.cb-shape-none .deco.cb-shape { display: none; }
.tpl-creative .deco.cb-star { color: var(--a); font-size: 64px; z-index: 2; } .tpl-creative .deco.cb-star.s1 { left: 84px; top: 84px; } .tpl-creative .deco.cb-star.s2 { right: 24%; top: 12%; font-size: 40px; }
.tpl-creative .deco.cb-plus { right: 84px; top: 40%; font-size: 60px; font-weight: 300; color: var(--fg); z-index: 2; }
.tpl-creative .deco.cb-tags { left: 84px; top: 160px; display: flex; gap: 12px; z-index: 3; }
.tpl-creative .deco.cb-tags span { border: 2px solid var(--fg); border-radius: 999px; padding: 10px 24px; font-size: 22px; font-weight: 600; color: var(--fg); }
.tpl-creative.cb-tags-off .deco.cb-tags { display: none; }
.tpl-creative .c-label { display: none; }
.tpl-creative .c-title { font-family: var(--font); font-weight: 800; letter-spacing: -.03em; font-size: calc(88px * var(--ts) * var(--lsz, 1)); line-height: 1.05; }
.tpl-creative .c-main { justify-content: flex-end; max-width: 78%; }
.tpl-creative.cb-pos-bl .c-main, .tpl-creative.cb-pos-tl .c-main { align-self: flex-end; text-align: right; align-items: flex-end; }
.tpl-creative .c-body { font-size: calc(30px * var(--bs) * var(--lsz, 1)); color: var(--muted); }
.tpl-creative .c-check { background: var(--fg); color: var(--bg); border-radius: 10px; }
.tpl-creative .c-items li { background: color-mix(in srgb, var(--fg) 5%, transparent); border-radius: 18px; padding: 18px 26px; }
.tpl-creative .c-stat { color: var(--a); }
.tpl-creative .c-bottom .c-site::before { content: '⌂ '; }
.tpl-creative.has-img .c-img { inset: 84px 84px auto auto; width: 46%; height: 42%; border-radius: 28px; overflow: hidden; z-index: 2; }
.tpl-creative.has-img .deco.cb-shape { width: 40%; }

/* ---------- 24. SWISS BOLD (black/red, condensed uppercase, small text column) ---------- */
.tpl-swiss { --sw-scale: 1.1; background: var(--bg); }
.tpl-swiss .c-title { font-family: var(--font); font-weight: 400; text-transform: uppercase; letter-spacing: -.01em; line-height: .9; font-size: calc(150px * var(--ts) * var(--lsz, 1) * var(--sw-scale)); color: var(--fg); }
.tpl-swiss .c-title.len-m { font-size: calc(124px * var(--ts) * var(--lsz, 1) * var(--sw-scale)); } .tpl-swiss .c-title.len-l { font-size: calc(100px * var(--ts) * var(--lsz, 1) * var(--sw-scale)); } .tpl-swiss .c-title.len-xl { font-size: calc(80px * var(--ts) * var(--lsz, 1) * var(--sw-scale)); }
.tpl-swiss.sw-tc-accent .c-title { color: var(--a); }
.tpl-swiss .c-body { font-family: var(--sans); font-size: calc(26px * var(--bs) * var(--lsz, 1)); max-width: 46%; color: var(--muted); }
.tpl-swiss .c-label, .tpl-swiss .c-emoji { display: none; }
.tpl-swiss .c-top { justify-content: flex-start; }
.tpl-swiss.sw-title-center .c-main { justify-content: center; }
.tpl-swiss.sw-title-bottom .c-main { justify-content: flex-end; }
.tpl-swiss.sw-title-top .c-main { justify-content: flex-start; padding-top: 12%; }
.tpl-swiss .deco.sw-col { top: 84px; right: 84px; width: 30%; font-family: var(--sans); font-size: 20px; line-height: 1.4; color: var(--muted); display: flex; flex-direction: column; gap: 6px; text-align: left; z-index: 3; }
.tpl-swiss .deco.sw-col b { color: var(--fg); font-weight: 700; font-size: 22px; }
.tpl-swiss.sw-col-top-left .deco.sw-col { right: auto; left: 84px; top: 160px; }
.tpl-swiss.sw-col-bottom .deco.sw-col { top: auto; bottom: 160px; }
.tpl-swiss.sw-col-none .deco.sw-col { display: none; }
.tpl-swiss .deco.sw-mark { width: 60px; height: 60px; right: 84px; bottom: 84px; color: var(--a); z-index: 3; }
.tpl-swiss.sw-mark-off .deco.sw-mark { display: none; }
.tpl-swiss .deco.sw-foot { left: 84px; bottom: 84px; font-family: var(--sans); font-size: 20px; color: var(--muted); }
.tpl-swiss .c-bottom { justify-content: flex-end; }
.tpl-swiss .c-check { background: var(--a); color: var(--bg); border-radius: 0; }
.tpl-swiss .c-items li { font-family: var(--sans); font-weight: 600; text-transform: uppercase; }
.tpl-swiss .c-stat { color: var(--a); font-family: var(--font); font-weight: 400; }
.tpl-swiss .c-quotemark { display: none; }
.tpl-swiss.has-img .c-img { inset: 0 0 auto 0; height: 46%; overflow: hidden; }
.tpl-swiss.has-img .c-img img { filter: grayscale(1) contrast(1.2); }
.tpl-swiss.has-img .c-main { justify-content: flex-end; }
.tpl-swiss.has-img .deco.sw-col { display: none; }

/* ---------- 25. TORN SHAPES (rotated torn rectangles, bold type) ---------- */
.tpl-torn { --tn-tilt: -12deg; --tn-spread: .9; background: var(--bg); }
.tpl-torn .deco.tn-pieces { inset: 0; z-index: 1; }
.tpl-torn .tn-p { position: absolute; left: 50%; top: 50%; width: 82%; height: 34%; background: var(--a); transform: translate(calc(-50% + var(--dx) * var(--tn-spread)), calc(-50% + var(--dy) * var(--tn-spread))) rotate(calc(var(--tn-tilt) + var(--r))); clip-path: polygon(0 4%, 6% 0, 30% 3%, 52% 0, 76% 4%, 100% 0, 98% 30%, 100% 62%, 97% 100%, 70% 96%, 48% 100%, 22% 97%, 0 100%, 3% 70%, 0 40%); }
.tpl-torn .tn-p:nth-child(2) { width: 74%; height: 30%; opacity: .96; }
.tpl-torn .tn-p:nth-child(3) { width: 66%; height: 26%; opacity: .92; }
.tpl-torn .tn-p:nth-child(4) { width: 58%; height: 22%; opacity: .88; }
.tpl-torn .c-main { z-index: 3; justify-content: center; align-items: flex-start; }
.tpl-torn .c-title { font-family: var(--font); font-weight: 400; text-transform: uppercase; letter-spacing: -.01em; line-height: .92; font-size: calc(124px * var(--ts) * var(--lsz, 1)); max-width: 80%; color: var(--fg); transform: rotate(calc(var(--tn-tilt) * .35)); }
.tpl-torn .c-title.len-m { font-size: calc(104px * var(--ts) * var(--lsz, 1)); } .tpl-torn .c-title.len-l { font-size: calc(84px * var(--ts) * var(--lsz, 1)); } .tpl-torn .c-title.len-xl { font-size: calc(70px * var(--ts) * var(--lsz, 1)); }
.tpl-torn.tn-title-bg .c-title { color: var(--fg); } .tpl-torn.tn-title-shape .c-title { color: var(--b); }
.tpl-torn .c-body { font-family: var(--sans); font-weight: 700; font-size: calc(30px * var(--bs) * var(--lsz, 1)); color: var(--fg); max-width: 60%; }
.tpl-torn .c-label, .tpl-torn .c-emoji { display: none; }
.tpl-torn .deco.tn-brand { left: 84px; bottom: 84px; font-family: var(--sans); font-size: 22px; color: var(--muted); z-index: 3; }
.tpl-torn .c-bottom { justify-content: flex-end; }
.tpl-torn .c-check { background: var(--b); color: var(--a); border-radius: 0; }
.tpl-torn .c-items li { font-family: var(--sans); font-weight: 700; }
.tpl-torn .c-stat { color: var(--b); font-family: var(--font); font-weight: 400; }
.tpl-torn .c-quotemark { display: none; }
.tpl-torn.has-img .c-img { inset: 0; z-index: 0; }
.tpl-torn.has-img .c-img img { filter: grayscale(1) contrast(1.15) brightness(.7); }

/* ---------- 26. GRADIENT SALE (pink→orange, diagonal stripes, outline button) ---------- */
.tpl-sale { --sl-angle: 135deg; background: linear-gradient(var(--sl-angle), var(--bg), var(--b)); }
.tpl-sale.custom-bg { background-image: none; }
.tpl-sale .deco.sl-stripe { width: 26%; top: -20%; bottom: -20%; background: rgba(255,255,255,.14); transform: skewX(-18deg); z-index: 0; }
.tpl-sale .deco.sl-stripe.s1 { right: 8%; } .tpl-sale .deco.sl-stripe.s2 { right: 38%; width: 10%; opacity: .7; }
.tpl-sale.sl-stripes-left .deco.sl-stripe.s1 { right: auto; left: 8%; } .tpl-sale.sl-stripes-left .deco.sl-stripe.s2 { right: auto; left: 38%; }
.tpl-sale.sl-stripes-both .deco.sl-stripe.s2 { right: auto; left: 6%; width: 18%; }
.tpl-sale.sl-stripes-none .deco.sl-stripe { display: none; }
.tpl-sale .deco.sl-vline { right: 84px; top: 25%; height: 34%; width: 3px; background: rgba(255,255,255,.7); z-index: 2; }
.tpl-sale .deco.sl-vline::after { content: ''; position: absolute; left: -6px; top: 0; width: 15px; height: 15px; background: #fff; }
.tpl-sale.sl-lines-off .deco.sl-vline { display: none; }
.tpl-sale .deco.sl-badge { left: 84px; top: 84px; background: #fff; color: var(--bg); font-weight: 800; font-size: 22px; letter-spacing: .12em; padding: 10px 22px; z-index: 3; }
.tpl-sale .deco.sl-btn { left: 84px; bottom: 26%; border: 3px solid #fff; color: #fff; font-weight: 800; font-size: 24px; letter-spacing: .12em; padding: 16px 36px; z-index: 3; }
.tpl-sale .deco.sl-code { right: 84px; bottom: 84px; font-size: 22px; font-weight: 700; letter-spacing: .1em; color: rgba(255,255,255,.9); z-index: 3; }
.tpl-sale .c-label { display: none; }
.tpl-sale .c-top { justify-content: flex-end; }
.tpl-sale .c-title { font-family: var(--font); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; font-size: calc(110px * var(--ts) * var(--lsz, 1)); line-height: .95; }
.tpl-sale .c-title.len-m { font-size: calc(92px * var(--ts) * var(--lsz, 1)); } .tpl-sale .c-title.len-l { font-size: calc(74px * var(--ts) * var(--lsz, 1)); } .tpl-sale .c-title.len-xl { font-size: calc(60px * var(--ts) * var(--lsz, 1)); }
.tpl-sale .c-main { justify-content: flex-start; padding-top: 14%; max-width: 78%; }
.tpl-sale.type-cover .c-main, .tpl-sale.type-cta .c-main { padding-bottom: 20%; justify-content: center; }
.tpl-sale .c-body { font-weight: 600; font-size: calc(30px * var(--bs) * var(--lsz, 1)); }
.tpl-sale .c-stat { font-family: var(--font); font-weight: 900; font-size: calc(300px * var(--ts) * var(--lsz, 1)); color: #fff; }
.tpl-sale .c-stat::before { content: 'UP TO'; display: block; font-size: 26px; letter-spacing: .3em; font-weight: 700; margin-bottom: 10px; }
.tpl-sale .c-check { background: #fff; color: var(--bg); }
.tpl-sale .c-items li { font-weight: 600; }
.tpl-sale .c-bottom { justify-content: flex-start; }
.tpl-sale.has-img .c-img { inset: auto 84px 84px auto; width: 46%; height: 48%; overflow: hidden; z-index: 2; border: 6px solid #fff; }
.tpl-sale.has-img .deco.sl-vline, .tpl-sale.has-img .deco.sl-code { display: none; }

/* ---------- 27. ORANGE POSTER (orange/black panels, giant cut glyph, arrow) ---------- */
.tpl-orange { background: var(--bg); }
.tpl-orange .deco.op-panel { z-index: 0; background: var(--a); display: none; }
.tpl-orange.op-panel-top .deco.op-panel { display: block; left: 0; right: 0; top: 0; height: 48%; }
.tpl-orange.op-panel-bottom .deco.op-panel { display: block; left: 0; right: 0; bottom: 0; height: 48%; }
.tpl-orange.op-panel-half .deco.op-panel { display: block; left: 0; right: 0; top: 0; height: 50%; }
.tpl-orange .deco.op-glyph { font-family: var(--display); font-weight: 900; font-size: calc(var(--H) * .92); line-height: .75; color: var(--a); z-index: 1; opacity: .95; }
.tpl-orange.op-panel-top .deco.op-glyph, .tpl-orange.op-panel-half .deco.op-glyph { color: var(--bg); }
.tpl-orange.op-glyph-br .deco.op-glyph { right: -8%; bottom: -14%; } .tpl-orange.op-glyph-bl .deco.op-glyph { left: -8%; bottom: -14%; } .tpl-orange.op-glyph-tr .deco.op-glyph { right: -8%; top: -18%; } .tpl-orange.op-glyph-tl .deco.op-glyph { left: -8%; top: -18%; }
.tpl-orange .deco.op-arrow { right: 84px; top: 40%; font-size: 120px; line-height: 1; color: var(--fg); z-index: 3; font-weight: 300; }
.tpl-orange.op-arrow-none .deco.op-arrow { display: none; }
.tpl-orange .deco.op-meta { right: 84px; top: 84px; text-align: right; font-size: 20px; line-height: 1.3; color: var(--muted); display: flex; flex-direction: column; z-index: 3; }
.tpl-orange .c-brand { display: none; }
.tpl-orange .c-label { background: var(--a); color: var(--bg); padding: 12px 26px; border-radius: 999px; font-size: 26px; letter-spacing: .04em; text-transform: none; align-self: flex-start; }
.tpl-orange.op-pill-off .c-label { background: none; color: var(--muted); padding: 0; }
.tpl-orange.op-panel-top .c-label, .tpl-orange.op-panel-half .c-label { background: var(--bg); color: var(--a); }
.tpl-orange .c-main { justify-content: flex-end; z-index: 3; }
.tpl-orange .c-title { font-family: var(--font); font-weight: 500; text-transform: uppercase; letter-spacing: -.02em; line-height: .98; font-size: calc(104px * var(--ts) * var(--lsz, 1)); max-width: 82%; }
.tpl-orange .c-title.len-m { font-size: calc(88px * var(--ts) * var(--lsz, 1)); } .tpl-orange .c-title.len-l { font-size: calc(72px * var(--ts) * var(--lsz, 1)); } .tpl-orange .c-title.len-xl { font-size: calc(60px * var(--ts) * var(--lsz, 1)); }
.tpl-orange .c-body { font-size: calc(28px * var(--bs) * var(--lsz, 1)); max-width: 60%; }
.tpl-orange .c-emoji { display: none; }
.tpl-orange .c-check { background: var(--fg); color: var(--bg); border-radius: 0; }
.tpl-orange .c-stat { color: var(--fg); font-weight: 900; }
.tpl-orange.has-img .c-img { inset: 84px 84px auto 84px; height: 40%; border-radius: 40px; overflow: hidden; z-index: 2; background: #fff; }
.tpl-orange.has-img .deco.op-glyph { opacity: .35; }
.tpl-orange.has-img .deco.op-arrow { top: auto; bottom: 30%; }

/* ---------- 28. BLOB COVER (orange rounded blobs, vertical text, split title) ---------- */
.tpl-blobcover { background: linear-gradient(180deg, var(--bg), var(--b)); }
.tpl-blobcover.custom-bg { background-image: none; }
.tpl-blobcover .deco.bc-blobs { inset: 0; z-index: 0; }
.tpl-blobcover .deco.bc-blobs i { position: absolute; background: linear-gradient(180deg, var(--c), var(--bg)); border-radius: 999px; box-shadow: 0 30px 60px rgba(0,0,0,.18); }
.tpl-blobcover.bc-shape-stack .deco.bc-blobs i { right: -10%; width: calc(70% - var(--i) * 14%); height: calc(56% - var(--i) * 6%); top: calc(-10% + var(--i) * 20%); border-radius: 999px 0 0 999px; opacity: calc(1 - var(--i) * .12); }
.tpl-blobcover.bc-shape-arch .deco.bc-blobs i { left: 50%; transform: translateX(-50%); bottom: -20%; width: calc(88% - var(--i) * 18%); height: calc(80% - var(--i) * 14%); border-radius: 999px 999px 0 0; opacity: calc(1 - var(--i) * .15); }
.tpl-blobcover.bc-shape-pill .deco.bc-blobs i { left: calc(12% + var(--i) * 26%); top: -10%; width: 20%; height: calc(80% - var(--i) * 12%); }
.tpl-blobcover.bc-shape-wave .deco.bc-blobs i { left: -20%; right: -20%; top: calc(50% + var(--i) * 16%); height: 60%; border-radius: 50% 50% 0 0 / 100% 100% 0 0; transform: rotate(calc(-6deg + var(--i) * 3deg)); opacity: calc(1 - var(--i) * .2); }
.tpl-blobcover.bc-side-left.bc-shape-stack .deco.bc-blobs i { right: auto; left: -10%; border-radius: 0 999px 999px 0; }
.tpl-blobcover.bc-side-bottom.bc-shape-stack .deco.bc-blobs i { right: auto; left: 50%; transform: translateX(-50%); top: auto; bottom: calc(-30% + var(--i) * 14%); width: calc(90% - var(--i) * 10%); height: 60%; border-radius: 999px 999px 0 0; }
.tpl-blobcover .deco.bc-vtext { left: 40px; top: 84px; writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--sans); font-size: 26px; font-weight: 600; letter-spacing: .12em; color: var(--fg); z-index: 3; }
.tpl-blobcover.bc-vert-off .deco.bc-vtext { display: none; }
.tpl-blobcover .deco.bc-lines { left: 84px; bottom: 84px; display: flex; flex-direction: column; gap: 10px; z-index: 3; }
.tpl-blobcover .deco.bc-lines i { display: block; height: 4px; background: var(--fg); width: 180px; opacity: .6; } .tpl-blobcover .deco.bc-lines i:nth-child(2) { width: 120px; } .tpl-blobcover .deco.bc-lines i:nth-child(3) { width: 60px; }
.tpl-blobcover .c-label { display: none; }
.tpl-blobcover .c-main { justify-content: flex-start; padding-top: 10%; margin-left: 40px; max-width: 70%; z-index: 3; }
.tpl-blobcover.bc-side-left .c-main { margin-left: auto; margin-right: 0; align-items: flex-end; text-align: right; }
.tpl-blobcover .c-title { font-family: var(--font); font-weight: 400; text-transform: uppercase; letter-spacing: -.01em; line-height: .88; font-size: calc(150px * var(--ts) * var(--lsz, 1)); }
.tpl-blobcover .c-title.len-m { font-size: calc(120px * var(--ts) * var(--lsz, 1)); } .tpl-blobcover .c-title.len-l { font-size: calc(96px * var(--ts) * var(--lsz, 1)); } .tpl-blobcover .c-title.len-xl { font-size: calc(76px * var(--ts) * var(--lsz, 1)); }
.tpl-blobcover.bc-split-on .c-title::after { content: '_'; color: var(--fg); }
.tpl-blobcover .c-body { font-family: var(--sans); font-size: calc(26px * var(--bs) * var(--lsz, 1)); color: var(--fg); opacity: .85; max-width: 52%; }
.tpl-blobcover .c-emoji { display: none; }
.tpl-blobcover .c-check { background: var(--fg); color: var(--bg); border-radius: 0; }
.tpl-blobcover .c-items li { font-family: var(--sans); font-weight: 600; }
.tpl-blobcover .c-stat { color: var(--fg); font-family: var(--font); font-weight: 400; }
.tpl-blobcover .c-quotemark { display: none; }
.tpl-blobcover .c-bottom, .tpl-blobcover .c-top { margin-left: 40px; }
.tpl-blobcover.has-img .c-img { inset: auto 84px 84px auto; width: 50%; height: 46%; border-radius: 999px 999px 0 0; overflow: hidden; z-index: 2; }
.tpl-blobcover.has-img .deco.bc-blobs { opacity: .5; }

/* ratio tuning for style pack */
.ratio-16-9.tpl-halftone.ht-panel-circle .deco.ht-panel { width: auto; height: 78%; }
.ratio-16-9.tpl-holo .c-title, .ratio-16-9.tpl-swiss .c-title, .ratio-16-9.tpl-blobcover .c-title, .ratio-16-9.tpl-torn .c-title { font-size: calc(90px * var(--ts) * var(--lsz, 1)); }
.ratio-16-9.tpl-neongeo .deco.ng-cluster { grid-template-columns: repeat(4, 100px); } .ratio-16-9.tpl-neongeo .ng-s { width: 100px; height: 100px; }
.ratio-1-1.tpl-orange .deco.op-glyph { font-size: calc(var(--H) * .8); }

/* style pack: title sizes must beat the generic .card.type-* rules (same specificity, declared later) */
.card.tpl-halftone.type-cover .c-title, .card.tpl-halftone.type-cta .c-title { font-size: calc(76px * var(--ts) * var(--lsz, 1)); }
.card.tpl-halftone.ht-panel-circle.type-cover .c-title, .card.tpl-halftone.ht-panel-circle.type-cta .c-title, .card.tpl-halftone.ht-panel-diamond.type-cover .c-title, .card.tpl-halftone.ht-panel-diamond.type-cta .c-title { font-size: calc(62px * var(--ts) * var(--lsz, 1)); }
.card.tpl-neongeo.type-cover .c-title, .card.tpl-neongeo.type-cta .c-title { font-size: calc(92px * var(--ts) * var(--lsz, 1)); }
.card.tpl-neongeo.type-cover .c-title.len-l, .card.tpl-neongeo.type-cta .c-title.len-l { font-size: calc(76px * var(--ts) * var(--lsz, 1)); }
.card.tpl-holo.type-cover .c-title, .card.tpl-holo.type-cta .c-title, .card.tpl-holo.type-quote .c-title { font-size: calc(104px * var(--ts) * var(--lsz, 1)); }
.card.tpl-holo.type-cover .c-title.len-l, .card.tpl-holo.type-cta .c-title.len-l, .card.tpl-holo.type-quote .c-title.len-l, .card.tpl-holo.type-cover .c-title.len-xl { font-size: calc(80px * var(--ts) * var(--lsz, 1)); }
.card.tpl-holo.holo-panel-left .c-title, .card.tpl-holo.holo-panel-right .c-title { font-size: calc(72px * var(--ts) * var(--lsz, 1)); }
.card.tpl-holo .c-stat { color: var(--fg); }
.card.tpl-holo.holo-panel-bottom .c-stat, .card.tpl-holo.holo-panel-top .c-stat, .card.tpl-holo.holo-panel-left .c-stat, .card.tpl-holo.holo-panel-right .c-stat { color: var(--b); }
.card.tpl-creative.type-cover .c-title, .card.tpl-creative.type-cta .c-title { font-size: calc(100px * var(--ts) * var(--lsz, 1)); }
.card.tpl-creative.type-cover .c-title.len-l, .card.tpl-creative.type-cta .c-title.len-l { font-size: calc(80px * var(--ts) * var(--lsz, 1)); }
.card.tpl-swiss[class] .c-title { font-size: calc(150px * var(--ts) * var(--lsz, 1) * var(--sw-scale)); }
.card.tpl-swiss[class] .c-title.len-m { font-size: calc(124px * var(--ts) * var(--lsz, 1) * var(--sw-scale)); } .card.tpl-swiss[class] .c-title.len-l { font-size: calc(100px * var(--ts) * var(--lsz, 1) * var(--sw-scale)); } .card.tpl-swiss[class] .c-title.len-xl { font-size: calc(80px * var(--ts) * var(--lsz, 1) * var(--sw-scale)); }
.card.tpl-torn[class] .c-title { font-size: calc(124px * var(--ts) * var(--lsz, 1)); }
.card.tpl-torn[class] .c-title.len-m { font-size: calc(104px * var(--ts) * var(--lsz, 1)); } .card.tpl-torn[class] .c-title.len-l { font-size: calc(84px * var(--ts) * var(--lsz, 1)); } .card.tpl-torn[class] .c-title.len-xl { font-size: calc(70px * var(--ts) * var(--lsz, 1)); }
.card.tpl-sale[class] .c-title { font-size: calc(110px * var(--ts) * var(--lsz, 1)); }
.card.tpl-sale[class] .c-title.len-m { font-size: calc(92px * var(--ts) * var(--lsz, 1)); } .card.tpl-sale[class] .c-title.len-l { font-size: calc(74px * var(--ts) * var(--lsz, 1)); } .card.tpl-sale[class] .c-title.len-xl { font-size: calc(60px * var(--ts) * var(--lsz, 1)); }
.card.tpl-orange[class] .c-title { font-size: calc(104px * var(--ts) * var(--lsz, 1)); }
.card.tpl-orange[class] .c-title.len-m { font-size: calc(88px * var(--ts) * var(--lsz, 1)); } .card.tpl-orange[class] .c-title.len-l { font-size: calc(72px * var(--ts) * var(--lsz, 1)); } .card.tpl-orange[class] .c-title.len-xl { font-size: calc(60px * var(--ts) * var(--lsz, 1)); }
.card.tpl-blobcover[class] .c-title { font-size: calc(150px * var(--ts) * var(--lsz, 1)); }
.card.tpl-blobcover[class] .c-title.len-m { font-size: calc(120px * var(--ts) * var(--lsz, 1)); } .card.tpl-blobcover[class] .c-title.len-l { font-size: calc(96px * var(--ts) * var(--lsz, 1)); } .card.tpl-blobcover[class] .c-title.len-xl { font-size: calc(76px * var(--ts) * var(--lsz, 1)); }
.card.ratio-16-9.tpl-swiss[class] .c-title, .card.ratio-16-9.tpl-torn[class] .c-title, .card.ratio-16-9.tpl-blobcover[class] .c-title { font-size: calc(96px * var(--ts) * var(--lsz, 1)); }

/* free-plan export watermark */
.card .c-watermark { position: absolute; right: 28px; bottom: 22px; z-index: 50; font: 600 22px/1 Inter, 'Noto Sans KR', sans-serif; letter-spacing: .02em; color: rgba(255,255,255,.85); background: rgba(0,0,0,.35); padding: 10px 18px; border-radius: 999px; backdrop-filter: blur(6px); pointer-events: none; }

/* ---- v3.1 smart text fit: safe-area hints for templates whose text sits in an inner panel ---- */
.tpl-halftone.ht-panel-circle .c-main { --fit-h: .52; }
.tpl-halftone.ht-panel-diamond .c-main { --fit-h: .5; }
.tpl-halftone.ht-panel-band .c-main { --fit-h: .95; }
