/* =========================================================
   VoidFix Gateway — Templates layout design variants.
   Loaded on every templates page after solutions.css. Everything below is scoped to .tpl
   (the wrapper a page gets when its content file sets PAGE["design"]), except the [hidden] fix.
   Catalog: tools/sol/layouts/templates_design.py
   ========================================================= */

/* Library filtering sets [hidden]; make sure card display rules never override it */
.sol-tpl[hidden], .sol-lib-group[hidden] { display: none !important; }

/* ---------- Themes (accent palette as custom properties) ---------- */
.tpl { --t-deep: var(--dark); --t-deep-2: #0a3d8f; --t-tint: var(--soft); --t-on-deep: #5fd3ff; --t-deep-text: var(--dark-text); --t-glow: rgba(0,188,212,.25); }
.tpl-theme--indigo { --brand: #4f46e5; --brand-600: #4338ca; --brand-2: #818cf8; --brand-soft: #eef0ff; --t-deep: #14123a; --t-deep-2: #312e81; --t-tint: #f6f6ff; --t-on-deep: #a5b4fc; --t-deep-text: #c9cdf0; --t-glow: rgba(99,102,241,.38); }
.tpl-theme--wa { --brand: #0b7a52; --brand-600: #075e3f; --brand-2: #25d366; --brand-soft: #e3f6ea; --t-deep: #06261d; --t-deep-2: #075e54; --t-tint: #f3f8f4; --t-on-deep: #6ee7a8; --t-deep-text: #bcd7ca; --t-glow: rgba(37,211,102,.25); }
.tpl-theme--amber { --brand: #b45309; --brand-600: #92400e; --brand-2: #f59e0b; --brand-soft: #fff3dc; --t-deep: #1f1206; --t-deep-2: #78350f; --t-tint: #fffaf2; --t-on-deep: #fcd34d; --t-deep-text: #e6d6c1; --t-glow: rgba(245,158,11,.28); }
.tpl-theme--violet { --brand: #6d28d9; --brand-600: #5b21b6; --brand-2: #a78bfa; --brand-soft: #f3edff; --t-deep: #1a0f33; --t-deep-2: #4c1d95; --t-tint: #faf7ff; --t-on-deep: #c4b5fd; --t-deep-text: #d6cbef; --t-glow: rgba(139,92,246,.3); }
.tpl-theme--teal { --brand: #0f766e; --brand-600: #115e59; --brand-2: #2dd4bf; --brand-soft: #e2f6f4; --t-deep: #062724; --t-deep-2: #134e4a; --t-tint: #f3faf9; --t-on-deep: #5eead4; --t-deep-text: #bfdcd8; --t-glow: rgba(45,212,191,.25); }
.tpl .btn--primary { background: linear-gradient(135deg, var(--brand), var(--brand-600)); box-shadow: 0 10px 26px color-mix(in srgb, var(--brand) 35%, transparent); }
.tpl .btn--primary:hover { box-shadow: 0 16px 34px color-mix(in srgb, var(--brand) 45%, transparent); }
.tpl .callout--tip { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 22%, #fff); }
.tpl .callout--tip > .i { color: var(--brand); }
.tpl .sol-tpl-copy.is-done { color: #0f7a3d; }

/* ---------- Bands (section backgrounds) ---------- */
.tpl-band--white { background: #fff; }
.tpl-band--soft { background: var(--t-tint); }
.tpl-band--accent { background: var(--brand-soft); }
.tpl-band--deep { background: radial-gradient(900px 420px at 88% 0%, var(--t-glow), transparent 62%), var(--t-deep); color: var(--t-deep-text); overflow: hidden; }
.tpl-band--deep .sec-head h2, .tpl-band--deep .sol-scn-story h2 { color: #fff; }
.tpl-band--deep .eyebrow { color: var(--t-on-deep); }
.tpl-band--deep .sec-head p, .tpl-band--deep .sol-scn-story p { color: var(--t-deep-text); }
.tpl-band--deep a:not(.btn) { color: var(--t-on-deep); }
.tpl-band--deep .sol-scn-label { background: rgba(255,255,255,.08); color: var(--t-deep-text); }
.tpl-band--deep .sol-match .table-wrap { box-shadow: none; }
.tpl-band--accent .sol-lib-bar, .tpl-band--accent .sol-lib-filter button:not([aria-pressed="true"]) { border-color: color-mix(in srgb, var(--brand) 18%, #fff); }

/* ---------- Section heads ---------- */
.tpl-head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px 56px; align-items: end; text-align: left; margin: 0 0 44px; padding-bottom: 28px; border-bottom: 1px solid color-mix(in srgb, var(--brand) 20%, var(--line)); }
.tpl-head--split h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.tpl-head--split p { font-size: 1.05rem; }
.tpl-band--deep .tpl-head--split { border-color: rgba(255,255,255,.14); }
@media (max-width: 860px) { .tpl-head--split { grid-template-columns: 1fr; } }

.tpl-ch { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 56px; align-items: start; }
.tpl-ch-side { position: sticky; top: 104px; }
.tpl-head--chapter { text-align: left; margin: 0; max-width: none; padding-left: 18px; border-left: 3px solid var(--brand-2); }
.tpl-head--chapter h2 { font-size: clamp(1.5rem, 2.2vw, 1.95rem); }
.tpl-head--chapter p { font-size: .98rem; }
.tpl-ch-n { display: block; font-family: var(--display); font-weight: 800; font-size: 3.6rem; line-height: 1; letter-spacing: -.04em; color: var(--brand); margin-bottom: 10px; }
.tpl-band--deep .tpl-ch-n { color: var(--t-on-deep); }
.tpl-ch-main > :first-child { margin-top: 0; }
.tpl-ch-main .sol-match, .tpl-ch-main .sol-gw, .tpl-ch-main .sol-rules, .tpl-ch-main .faq-list, .tpl-ch-main .sol-limit-grid { max-width: none; }
.tpl-ch-main .sol-rules { grid-template-columns: 1fr 1fr; }
.tpl-ch-main .sol-match:first-child { margin-top: 0; }
@media (max-width: 960px) { .tpl-ch { grid-template-columns: minmax(0, 1fr); gap: 28px; } .tpl-ch-side { position: static; } .tpl-ch-n { font-size: 2.6rem; } .tpl-ch-main .sol-rules { grid-template-columns: 1fr; } }
.tpl-heads--chapter .sol-jump { justify-content: flex-start; max-width: 920px; margin-left: auto; margin-right: auto; }
.tpl-jn { font-weight: 800; color: var(--brand); margin-right: 6px; font-size: .78rem; }

/* ---------- Answer bar: only the phone hero overlaps it ---------- */
.tpl:not(.tpl-hero-is-phone) .sol-benefits { margin-top: 0; padding: 40px 0 8px; }

/* ---------- Heroes (shared) ---------- */
.tpl-hero { position: relative; overflow: hidden; padding: 150px 0 96px; }
.tpl-hero .wrap { position: relative; }
.tpl-hero h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); line-height: 1.06; letter-spacing: -.03em; margin-bottom: 18px; }
.tpl-hero-sub { font-size: 1.14rem; line-height: 1.65; max-width: 600px; margin-bottom: 30px; }
.tpl-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tpl-hero .sol-hero-badges .badge .i { width: 14px; height: 14px; }
.tpl-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
@media (max-width: 960px) { .tpl-hero { padding: 124px 0 72px; } .tpl-hero-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Light hero (ticket): dark header text while it sits over the light band */
.tpl-hero--light { background: radial-gradient(700px 380px at 92% 10%, color-mix(in srgb, var(--brand-2) 28%, transparent), transparent 65%), linear-gradient(180deg, var(--t-tint), #fff 88%); color: var(--body); }
.tpl-hero--light::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--brand) 16%, transparent) 1px, transparent 1.5px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); pointer-events: none; }
.tpl-hero--light h1 { color: var(--ink); }
.tpl-hero--light .tpl-hero-sub { color: var(--body); }
.tpl-hero--light .crumbs { color: var(--muted); }
.tpl-hero--light .crumbs a { color: var(--body) !important; }
.tpl-hero--light .crumbs a:hover { color: var(--brand) !important; }
.tpl-hero--light .crumbs [aria-current] { color: var(--ink); }
.tpl-hero--light .badge--dark { background: #fff; color: var(--ink); border-color: var(--line); }
body:has(.tpl-hero--light) .site-header:not(.is-scrolled):not(.menu-open) .brand-logo img { filter: none; }
body:has(.tpl-hero--light) .site-header:not(.is-scrolled):not(.menu-open) .nav a { color: var(--body); }
body:has(.tpl-hero--light) .site-header:not(.is-scrolled):not(.menu-open) .nav a:hover { color: var(--brand); background: var(--brand-soft); }
body:has(.tpl-hero--light) .site-header:not(.is-scrolled):not(.menu-open) .header-cta .login,
body:has(.tpl-hero--light) .site-header:not(.is-scrolled):not(.menu-open) .lang { color: var(--ink); }
body:has(.tpl-hero--light) .site-header:not(.is-scrolled):not(.menu-open) .menu-btn { color: var(--ink); border-color: var(--line); }

.tpl-ticket { position: relative; max-width: 440px; justify-self: end; width: 100%; background: #fff; border-radius: 24px; border: 1px solid var(--line); border-top: 6px solid var(--brand); box-shadow: var(--shadow-lg); transform: rotate(1.5deg); }
.tpl-ticket-top { display: flex; align-items: center; gap: 14px; padding: 22px 24px 16px; }
.tpl-ticket-top small { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.tpl-ticket-top b { font-family: var(--display); font-size: 1.2rem; color: var(--ink); }
.tpl-ticket-ok { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; flex-shrink: 0; }
.tpl-ticket-ok .i { stroke-width: 3; }
.tpl-ticket-rows { margin: 0; padding: 0 24px 18px; display: grid; gap: 10px; }
.tpl-ticket-rows div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.tpl-ticket-rows div:last-child { border-bottom: 0; padding-bottom: 0; }
.tpl-ticket-rows dt { color: var(--muted); font-size: .82rem; font-weight: 600; }
.tpl-ticket-rows dd { margin: 0; color: var(--ink); font-weight: 700; }
.tpl-ticket-cut { position: relative; height: 0; border-top: 2px dashed var(--line); margin: 0 18px; }
.tpl-ticket-cut::before, .tpl-ticket-cut::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--t-tint); border: 1px solid var(--line); }
.tpl-ticket-cut::before { left: -32px; } .tpl-ticket-cut::after { right: -32px; }
.tpl-ticket-sms { padding: 18px 24px 24px; }
.tpl-ticket-sms small { display: flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--muted); margin-bottom: 10px; }
.tpl-ticket-sms small .i { width: 14px; height: 14px; }
.tpl-ticket-sms p { margin: 0; padding: 12px 14px; border-radius: 16px 16px 4px 16px; background: var(--brand-soft); color: var(--ink); font-size: .92rem; line-height: 1.5; }
.tpl-statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; margin: 64px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tpl-statrow li { padding: 22px 24px; border-left: 1px solid var(--line); }
.tpl-statrow li:first-child { border-left: 0; padding-left: 0; }
.tpl-statrow b { display: block; font-family: var(--display); font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1; color: var(--brand); letter-spacing: -.03em; }
.tpl-statrow span { color: var(--muted); font-size: .92rem; }
@media (max-width: 960px) { .tpl-ticket { justify-self: center; transform: none; } }
@media (max-width: 600px) { .tpl-statrow li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } .tpl-statrow li:first-child { border-top: 0; } .tpl-ticket-rows div { grid-template-columns: 1fr; gap: 2px; } }

/* Chat hero: centred copy, wide messenger strip */
.tpl-hero--chat { background: radial-gradient(900px 500px at 50% -10%, var(--t-glow), transparent 60%), linear-gradient(180deg, var(--t-deep), color-mix(in srgb, var(--t-deep-2) 70%, var(--t-deep))); color: var(--t-deep-text); padding-bottom: 0; }
.tpl-hero-center { max-width: 860px; margin: 0 auto; text-align: center; }
.tpl-hero--chat .crumbs, .tpl-hero--chat .sol-hero-badges, .tpl-hero--chat .hero-actions { justify-content: center; }
.tpl-hero--chat .crumbs [aria-current] { color: #fff; }
.tpl-hero--chat h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.7rem); }
.tpl-hero--chat .tpl-hero-sub { color: var(--t-deep-text); margin: 0 auto 30px; max-width: 680px; }
.tpl-hero--chat .btn--ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.tpl-hero--chat .btn--ghost:hover { color: #fff; border-color: #fff; }
.tpl-statchips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.tpl-statchips li { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); font-size: .9rem; }
.tpl-statchips b { color: #fff; font-family: var(--display); font-size: 1.1rem; }
.tpl-widechat { max-width: 1040px; margin: 56px auto 0; border-radius: 24px 24px 0 0; overflow: hidden; box-shadow: 0 -20px 60px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); border-bottom: 0; }
.tpl-widechat-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: var(--t-deep-2); color: #fff; }
.tpl-widechat-head .chat-avatar { margin: 0; width: 40px; height: 40px; background: rgba(255,255,255,.18); }
.tpl-widechat-head b { display: block; font-size: .95rem; }
.tpl-widechat-head small { color: rgba(255,255,255,.75); font-size: .78rem; }
.tpl-widechat-note { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; color: rgba(255,255,255,.75); }
.tpl-widechat-note .i { width: 14px; height: 14px; }
.tpl-widechat-body { display: flex; flex-direction: column; gap: 10px; padding: 26px 6% 34px; background: #efe7de; min-height: 240px; }
.tpl-widechat .bubble { max-width: 58%; font-size: .95rem; padding: 10px 14px; box-shadow: 0 1px .5px rgba(0,0,0,.13); }
.tpl-widechat .bubble.out { background: #34c759; color: #fff; }
.tpl-widechat[data-ch="whatsapp"] .bubble.out { background: #d9fdd3; color: #111; border-radius: 12px 0 12px 12px; }
.tpl-widechat[data-ch="whatsapp"] .bubble.in { background: #fff; border-radius: 0 12px 12px 12px; }
.tpl-widechat:not([data-ch="whatsapp"]) .tpl-widechat-body { background: #fff; }
@media (max-width: 760px) { .tpl-widechat .bubble { max-width: 88%; } .tpl-widechat-note { display: none; } }

/* Calendar hero: countdown grid built from the timing steps */
.tpl-hero--calendar { background: radial-gradient(900px 480px at 85% 0%, var(--t-glow), transparent 62%), linear-gradient(160deg, var(--t-deep), color-mix(in srgb, var(--t-deep-2) 45%, var(--t-deep))); color: var(--t-deep-text); }
.tpl-hero--calendar .glow--a { background: var(--brand-2); opacity: .16; }
.tpl-hero--calendar h1 { color: #fff; }
.tpl-hero--calendar .tpl-hero-sub { color: var(--t-deep-text); }
.tpl-hero--calendar .crumbs [aria-current] { color: #fff; }
.tpl-hero--calendar .btn--ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.tpl-hero--calendar .btn--ghost:hover { color: #fff; border-color: #fff; }
.tpl-statbig { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 34px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid rgba(255,255,255,.12); }
.tpl-statbig li { display: flex; flex-direction: column; font-size: .86rem; }
.tpl-statbig b { font-family: var(--display); font-size: 2.3rem; line-height: 1.05; color: var(--t-on-deep); }
.tpl-cal { padding: 24px; border-radius: 26px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.tpl-cal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.tpl-cal-head b { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-family: var(--display); }
.tpl-cal-head b .i { color: var(--t-on-deep); }
.tpl-cal-head small { font-size: .78rem; }
.tpl-cal-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.tpl-cal-cell { position: relative; min-height: 74px; padding: 8px 6px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; }
.tpl-cal-cell i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--t-deep); color: var(--t-on-deep); }
.tpl-cal-cell i .i { width: 14px; height: 14px; }
.tpl-cal-cell.is-pin { background: var(--brand-2); border-color: transparent; color: var(--t-deep); }
.tpl-cal-cell.is-day { background: #fff; color: var(--ink); }
.tpl-cal-cell.is-day i { background: var(--brand-2); color: var(--t-deep); }
.tpl-cal-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tpl-cal-list li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.04); }
.tpl-cal-list small { display: block; font-size: .76rem; color: var(--t-on-deep); font-weight: 700; }
.tpl-cal-list b { color: #fff; font-size: .95rem; }
.tpl-cal-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--t-on-deep); }
.tpl-cal-ic .i { width: 18px; height: 18px; }
.tpl-cal-list .is-stop .tpl-cal-ic { color: #fda4a4; }
@media (max-width: 520px) { .tpl-cal { padding: 16px; } .tpl-cal-grid { gap: 3px; } .tpl-cal-cell { min-height: 60px; padding: 6px 2px; font-size: .66rem; } .tpl-cal-cell i { width: 20px; height: 20px; } .tpl-cal-cell i .i { width: 11px; height: 11px; } }

/* ---------- Anatomy ---------- */
.tpl-anat--stacked .tpl-anat-msg { max-width: 860px; margin: 0 auto; }
.tpl-anat--stacked .sol-anat-msg { font-size: 1.28rem; line-height: 2; padding: 32px 36px; border-radius: 26px 26px 26px 6px; }
.tpl-anat--stacked .sol-anat-meta { justify-content: center; }
.tpl-anat-cols { list-style: none; margin: 40px auto 0; padding: 0; max-width: 1080px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.tpl-anat-cols li { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 4px solid var(--c, var(--brand)); }
.tpl-anat-cols .n { font-family: var(--display); font-weight: 800; color: var(--c, var(--brand)); font-size: .9rem; }
.tpl-anat-cols b { color: var(--ink); }
.tpl-anat-cols span:last-child { color: var(--muted); font-size: .93rem; line-height: 1.5; }
.tpl-ch-main .tpl-anat-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 520px) { .tpl-ch-main .tpl-anat-cols { grid-template-columns: 1fr; } .tpl-anat--stacked .sol-anat-msg { font-size: 1.08rem; padding: 22px; } }
.tpl-anat--reverse .sol-anat { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.tpl-anat--reverse .sol-anat > div:first-child { order: 2; }
.tpl-anat--reverse .sol-anat-msg { background: var(--t-deep-2); color: #fff; border: 0; box-shadow: var(--shadow-lg); border-radius: 22px 0 22px 22px; }
.tpl-anat--reverse .sol-anat-msg mark { color: #fff; border-bottom-color: var(--c); background: rgba(255,255,255,.06); }
.tpl-anat--reverse .sol-anat-msg sup { color: #fff; }
@media (max-width: 860px) { .tpl-anat--reverse .sol-anat { grid-template-columns: 1fr; } .tpl-anat--reverse .sol-anat > div:first-child { order: 0; } }

/* ---------- Library: rows ---------- */
.tpl-toolbar { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 16px 16px 0; margin-bottom: 30px; }
.tpl-toolbar .sol-lib-bar { border: 0; box-shadow: none; padding: 0; margin: 0 0 12px; }
.tpl-toolbar .sol-lib-filter { margin: 0 -16px; padding: 0 16px; gap: 2px; border-top: 1px solid var(--line); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
.tpl-toolbar .sol-lib-filter button { flex: 0 0 auto; border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 12px 12px 11px; background: none; color: var(--body); }
.tpl-toolbar .sol-lib-filter button[aria-pressed="true"] { background: none; color: var(--brand); border-bottom-color: var(--brand); }
.tpl-rows-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.tpl-rows-head h3 { margin: 0; font-size: 1.15rem; }
.tpl-rows-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.tpl-rows { list-style: none; margin: 0; padding: 0; }
.tpl-lib--rows .sol-lib-group { margin-bottom: 40px; }
.tpl-lib--rows .sol-tpl { display: grid; grid-template-columns: 190px minmax(0, 1fr) 150px; gap: 24px; align-items: start; padding: 18px 8px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.tpl-lib--rows .sol-tpl:hover { transform: none; box-shadow: none; background: #fff; }
.tpl-row-label b { display: block; color: var(--ink); font-size: .95rem; }
.tpl-row-n { font-family: var(--display); font-weight: 800; color: color-mix(in srgb, var(--brand) 45%, #fff); font-size: .82rem; }
.tpl-row-body { display: grid; gap: 6px; }
.tpl-lib--rows .sol-tpl-text { background: none; border-left: 3px solid var(--brand); border-radius: 0; padding: 2px 0 2px 14px; font-size: 1rem; }
.tpl-row-act { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.tpl-lib-note { margin-top: 8px; }
@media (max-width: 860px) { .tpl-lib--rows .sol-tpl { grid-template-columns: 1fr; gap: 10px; } .tpl-row-act { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---------- Library: chat feed ---------- */
.tpl-feed { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: 780px; border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.tpl-feed-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: #fff; }
.tpl-feed-me { padding: 18px 18px 14px; background: var(--t-deep-2); color: #fff; }
.tpl-feed-me b { display: block; font-family: var(--display); font-size: 1.1rem; }
.tpl-feed-me small { color: rgba(255,255,255,.8); }
.tpl-feed-search { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tpl-feed-search label { display: grid; gap: 4px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tpl-feed-search input { font: inherit; font-size: .9rem; text-transform: none; letter-spacing: 0; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: #f0f2f5; color: var(--ink); }
.tpl-feed-side .sol-lib-filter { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0; margin: 0; }
.tpl-feed-side .sol-lib-filter button { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; border: 0; border-bottom: 1px solid #f0f2f5; border-left: 4px solid transparent; border-radius: 0; background: #fff; text-align: left; color: var(--ink); font-size: .9rem; }
.tpl-feed-side .sol-lib-filter button:hover { background: #f5f6f6; }
.tpl-feed-side .sol-lib-filter button[aria-pressed="true"] { background: var(--brand-soft); color: var(--ink); border-left-color: var(--brand); }
.tpl-feed-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.tpl-feed-side button[aria-pressed="true"] .tpl-feed-av { background: var(--brand); color: #fff; }
.tpl-feed-av .i { width: 18px; height: 18px; }
.tpl-feed-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-feed-side .sol-lib-filter small { opacity: 1; margin: 0; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 800; }
.tpl-feed-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.tpl-feed-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #f0f2f5; border-bottom: 1px solid var(--line); }
.tpl-feed-head .chat-avatar { margin: 0; width: 40px; height: 40px; background: var(--t-deep-2); flex-shrink: 0; }
.tpl-feed-head .sol-lib-bar { flex: 1; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.tpl-feed-head .sol-lib-bar label { font-size: .68rem; gap: 3px; }
.tpl-feed-head .sol-lib-bar input { padding: 7px 10px; border-radius: 10px; background: #fff; font-size: .88rem; }
.tpl-feed-body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 6% 28px; background-color: #efe7de; background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1.5px); background-size: 18px 18px; overscroll-behavior: contain; }
.tpl-feed-body:focus-visible { outline-offset: -3px; }
.tpl-feed .sol-lib-group { margin: 0 0 18px; display: flex; flex-direction: column; }
.tpl-feed-day { align-self: center; margin: 8px 0 8px; font-size: .74rem; font-family: var(--font); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.tpl-feed-day span { display: inline-block; padding: 6px 12px; border-radius: 8px; background: #fff; color: #54656f; box-shadow: 0 1px .5px rgba(0,0,0,.13); }
.tpl-feed-sys { align-self: center; max-width: 520px; margin: 0 0 14px; padding: 8px 12px; border-radius: 8px; background: #fff7d1; color: #54656f; font-size: .82rem; text-align: center; line-height: 1.45; }
.tpl-feed .sol-tpl { position: relative; align-self: flex-end; width: min(560px, 82%); gap: 4px; margin: 0 0 10px; padding: 8px 12px 8px; border: 0; border-radius: 12px 0 12px 12px; background: #d9fdd3; box-shadow: 0 1px .5px rgba(0,0,0,.13); }
.tpl-feed .sol-tpl::after { content: ""; position: absolute; top: 0; right: -8px; width: 0; height: 0; border-style: solid; border-width: 0 0 10px 8px; border-color: transparent transparent transparent #d9fdd3; }
.tpl-feed .sol-tpl:hover { transform: none; }
.tpl-feed .sol-tpl-head b { color: var(--brand-600); font-size: .8rem; }
.tpl-feed .sol-tpl-text { padding: 0; background: none; border-radius: 0; font-size: .95rem; color: #111b21; }
.tpl-feed .sol-tpl-foot { justify-content: flex-end; align-items: center; gap: 8px; font-weight: 600; }
.tpl-feed .sol-tpl-foot span { padding: 0; background: none; color: #667781; font-size: .72rem; }
.tpl-feed .sol-tpl-copy { padding: 3px 10px; font-size: .74rem; border-color: rgba(0,0,0,.12); background: rgba(255,255,255,.65); }
.tpl-feed .sol-tpl-why { font-size: .8rem; padding-top: 6px; border-top: 1px solid rgba(0,0,0,.07); color: #54656f; }
.tpl-feed .sol-lib-empty { background: #fff; border-radius: 12px; }
.tpl-feed[data-ch="sms"] .sol-tpl { background: var(--brand-soft); }
.tpl-feed[data-ch="sms"] .sol-tpl::after { border-left-color: var(--brand-soft); }
@media (max-width: 860px) {
  .tpl-feed { grid-template-columns: minmax(0, 1fr); height: auto; }
  .tpl-feed-side { min-width: 0; }
  .tpl-feed-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .tpl-feed-side .sol-lib-filter { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 8px; gap: 6px; }
  .tpl-feed-side .sol-lib-filter button { flex: 0 0 auto; grid-template-columns: auto auto; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; }
  .tpl-feed-side .sol-lib-filter button[aria-pressed="true"] { border-color: var(--brand); }
  .tpl-feed-av { display: none; }
  .tpl-feed-head { align-items: flex-start; }
  .tpl-feed-head .chat-avatar { display: none; }
  .tpl-feed-body { max-height: 640px; padding: 14px 10px 20px; }
  .tpl-feed .sol-tpl { width: 92%; }
}

/* ---------- Library: accordion ---------- */
.tpl-acc-bar { position: sticky; top: 84px; z-index: 5; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 14px; margin-bottom: 20px; }
.tpl-acc-bar .sol-lib-bar { border: 0; box-shadow: none; padding: 0; margin: 0 0 10px; }
.tpl-acc-tools { display: flex; gap: 10px; align-items: flex-start; }
.tpl-acc-tools .sol-lib-filter { flex: 1; min-width: 0; margin: 0; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.tpl-acc-tools .sol-lib-filter button { flex: 0 0 auto; padding: 6px 12px; font-size: .8rem; }
.tpl-acc-all { flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; border: 1.5px dashed var(--brand); background: #fff; color: var(--brand); font-weight: 700; font-size: .8rem; }
.tpl-acc { display: grid; gap: 12px; }
.tpl-acc > .sol-lib-group { margin: 0; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; transition: border-color .2s, box-shadow .2s; }
.tpl-acc > .sol-lib-group[open] { border-color: color-mix(in srgb, var(--brand) 35%, #fff); box-shadow: var(--shadow); }
.tpl-acc summary { list-style: none; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto 30px; gap: 16px; align-items: center; padding: 16px 20px; cursor: pointer; }
.tpl-acc summary::-webkit-details-marker { display: none; }
.tpl-acc-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.tpl-acc-t b { display: block; font-family: var(--display); color: var(--ink); font-size: 1.06rem; }
.tpl-acc-t small { display: block; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.tpl-acc-n { font-size: .78rem; font-weight: 800; color: var(--brand); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.tpl-acc .pm { width: 30px; height: 30px; border-radius: 50%; background: var(--soft); position: relative; }
.tpl-acc .pm::before, .tpl-acc .pm::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); border-radius: 2px; }
.tpl-acc .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.tpl-acc [open] .pm { background: var(--brand); }
.tpl-acc [open] .pm::before, .tpl-acc [open] .pm::after { background: #fff; }
.tpl-acc [open] .pm::after { transform: translate(-50%, -50%) rotate(0); }
.tpl-acc .sol-lib-grid { padding: 0 20px 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tpl-acc .sol-tpl { background: var(--t-tint); }
.tpl-acc .sol-tpl-text { background: #fff; border: 1px solid var(--line); }
@media (max-width: 600px) { .tpl-acc-bar { position: static; } .tpl-acc summary { grid-template-columns: 40px minmax(0, 1fr) 26px; gap: 12px; padding: 14px; } .tpl-acc-n { display: none; } .tpl-acc-ic { width: 40px; height: 40px; } .tpl-acc .sol-lib-grid { padding: 0 12px 14px; } .tpl-acc-tools { flex-direction: column; align-items: stretch; } .tpl-acc-tools .sol-lib-filter { min-width: 0; } }

/* ---------- Library: horizontal scroller ---------- */
.tpl-lib--scroller .sol-lib-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 340px); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.tpl-lib--scroller .sol-tpl { scroll-snap-align: start; }

/* ---------- Timing: vertical ---------- */
.tpl-vt { position: relative; list-style: none; margin: 0 auto; padding: 0; max-width: 980px; display: grid; gap: 22px; }
.tpl-vt::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 50%; width: 3px; margin-left: -1.5px; border-radius: 3px; background: linear-gradient(180deg, var(--brand-2), color-mix(in srgb, var(--brand-2) 15%, transparent)); }
.tpl-vt li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); gap: 20px; align-items: center; }
.tpl-vt-when { font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--ink); text-align: right; }
.tpl-vt-dot { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-2); color: var(--t-deep); position: relative; z-index: 1; box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand-2) 20%, transparent); }
.tpl-vt-card { padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.tpl-vt-card b { display: block; font-family: var(--display); color: var(--ink); margin-bottom: 4px; font-size: 1.05rem; }
.tpl-vt-card p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.tpl-vt li:nth-child(even) .tpl-vt-when { order: 3; text-align: left; }
.tpl-vt li:nth-child(even) .tpl-vt-dot { order: 2; }
.tpl-vt li:nth-child(even) .tpl-vt-card { order: 1; }
.tpl-vt li.is-stop .tpl-vt-dot { background: #f87171; color: #fff; box-shadow: 0 0 0 6px rgba(248,113,113,.2); }
.tpl-band--deep .tpl-vt-when { color: #fff; }
.tpl-band--deep .tpl-vt-card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.tpl-band--deep .tpl-vt-card b { color: #fff; }
.tpl-band--deep .tpl-vt-card p { color: var(--t-deep-text); }
.tpl-ch-main .tpl-vt::before { left: 28px; }
.tpl-ch-main .tpl-vt li, .tpl-ch-main .tpl-vt li:nth-child(even) { grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "dot when" "dot card"; gap: 4px 18px; align-items: start; }
.tpl-ch-main .tpl-vt .tpl-vt-when { grid-area: when; text-align: left; order: 0; font-size: 1.05rem; }
.tpl-ch-main .tpl-vt .tpl-vt-dot { grid-area: dot; order: 0; }
.tpl-ch-main .tpl-vt .tpl-vt-card { grid-area: card; order: 0; }
@media (max-width: 760px) {
  .tpl-vt::before { left: 22px; }
  .tpl-vt li, .tpl-vt li:nth-child(even) { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "dot when" "dot card"; gap: 4px 14px; align-items: start; }
  .tpl-vt .tpl-vt-when, .tpl-vt li:nth-child(even) .tpl-vt-when { grid-area: when; text-align: left; order: 0; font-size: 1rem; }
  .tpl-vt .tpl-vt-dot, .tpl-vt li:nth-child(even) .tpl-vt-dot { grid-area: dot; width: 44px; height: 44px; order: 0; }
  .tpl-vt .tpl-vt-card, .tpl-vt li:nth-child(even) .tpl-vt-card { grid-area: card; order: 0; }
  .tpl-ch-main .tpl-vt::before { left: 22px; }
  .tpl-ch-main .tpl-vt li, .tpl-ch-main .tpl-vt li:nth-child(even) { grid-template-columns: 44px minmax(0, 1fr); }
}

/* ---------- Timing: arrow strip ---------- */
.tpl-strip { list-style: none; margin: 0 auto; padding: 0; max-width: 1120px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; filter: drop-shadow(0 10px 24px rgba(11,27,51,.08)); }
.tpl-strip li { position: relative; padding: 26px 34px 26px 40px; background: #fff; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%, 22px 50%); margin-left: -14px; }
.tpl-strip li:first-child { margin-left: 0; padding-left: 26px; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); border-radius: 18px 0 0 18px; }
.tpl-strip li:nth-child(even) { background: color-mix(in srgb, var(--brand) 8%, #fff); }
.tpl-strip li.is-stop { background: #fff1ef; }
.tpl-strip-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 10px; }
.tpl-strip small { display: block; font-weight: 700; color: var(--brand); font-size: .8rem; margin-bottom: 4px; }
.tpl-strip b { display: block; font-family: var(--display); color: var(--ink); margin-bottom: 6px; }
.tpl-strip p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 860px) { .tpl-strip { grid-auto-flow: row; gap: 8px; filter: none; } .tpl-strip li, .tpl-strip li:first-child { clip-path: none; margin: 0; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); } }

/* ---------- Timing: agenda ---------- */
.tpl-agenda { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; }
.tpl-agenda li { position: relative; display: grid; grid-template-columns: 200px 44px minmax(0, 1fr); gap: 20px; padding-bottom: 30px; }
.tpl-agenda li::before { content: ""; position: absolute; left: 241px; top: 44px; bottom: 0; width: 2px; background: color-mix(in srgb, var(--brand-2) 40%, transparent); }
.tpl-agenda li:last-child::before { display: none; }
.tpl-agenda time { text-align: right; font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--ink); padding-top: 9px; }
.tpl-ag-dot { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-2); color: var(--t-deep); }
.tpl-agenda b { display: block; font-family: var(--display); font-size: 1.1rem; color: var(--ink); margin: 9px 0 4px; }
.tpl-agenda p { margin: 0; color: var(--muted); line-height: 1.6; }
.tpl-agenda li.is-stop .tpl-ag-dot { background: #f87171; color: #fff; }
.tpl-band--deep .tpl-agenda time, .tpl-band--deep .tpl-agenda b { color: #fff; }
.tpl-band--deep .tpl-agenda p { color: var(--t-deep-text); }
@media (max-width: 700px) { .tpl-agenda li { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "dot time" "dot body"; gap: 0 14px; } .tpl-agenda li::before { left: 21px; } .tpl-agenda time { grid-area: time; text-align: left; } .tpl-ag-dot { grid-area: dot; } .tpl-agenda li > div { grid-area: body; } .tpl-agenda b { margin-top: 2px; } }

/* ---------- Good vs weak: table ---------- */
.tpl-gw-table { min-width: 0; }
.tpl-gw-table th .i { width: 15px; height: 15px; stroke-width: 3; vertical-align: -2px; }
.tpl-gw-table th:nth-child(2) { color: #c2410c; } .tpl-gw-table th:nth-child(3) { color: #12803f; }
.tpl-gw-table td.tpl-gw-n, .tpl-gw-table th.tpl-gw-n { width: 56px; text-align: center; font-family: var(--display); font-weight: 800; color: var(--brand); font-size: 1.2rem; }
.tpl-gw-table td { width: 47%; }
.tpl-gw-table td.tpl-gw-weak { background: #fffafa; }
.tpl-gw-table td.tpl-gw-good { background: #f6fcf8; }
.tpl-gw-table q { display: block; quotes: none; color: var(--ink); line-height: 1.55; margin-bottom: 8px; }
.tpl-gw-table td.tpl-gw-weak q { color: #7a3b33; }
.tpl-gw-table p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.tpl-gw--table .table-wrap { max-width: 1100px; margin: 0 auto; }
@media (max-width: 700px) {
  .tpl-gw-table thead { display: none; }
  .tpl-gw-table tr, .tpl-gw-table td { display: block; width: auto; }
  .tpl-gw-table td.tpl-gw-n { text-align: left; padding-bottom: 0; width: auto; }
  .tpl-gw-table td.tpl-gw-weak::before { content: "Weak"; } .tpl-gw-table td.tpl-gw-good::before { content: "Better"; }
  .tpl-gw-table td.tpl-gw-weak::before, .tpl-gw-table td.tpl-gw-good::before { display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; color: #c2410c; }
  .tpl-gw-table td.tpl-gw-good::before { color: #12803f; }
  .tpl-gw-table tbody tr:not(:last-child) td.tpl-gw-good { border-bottom: 2px solid var(--line); }
}

/* ---------- Good vs weak: before/after toggle ---------- */
.tpl-gwt-switch { display: flex; width: max-content; max-width: 100%; margin: 0 auto 28px; padding: 5px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); }
.tpl-gwt-switch button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 999px; border: 0; background: none; font-weight: 700; color: var(--body); }
.tpl-gwt-switch button .i { width: 16px; height: 16px; stroke-width: 3; }
.tpl-gwt-switch button[data-show="weak"][aria-pressed="true"] { background: #c2410c; color: #fff; }
.tpl-gwt-switch button[data-show="good"][aria-pressed="true"] { background: var(--brand); color: #fff; }
.tpl-gwt-switch { display: none; }
.tpl-gwt[data-show] .tpl-gwt-switch { display: flex; }
.tpl-gwt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1080px; margin: 0 auto; }
.tpl-gwt-card { display: grid; gap: 12px; }
.tpl-gwt-v { padding: 22px 24px; border-radius: 20px; border: 1px solid var(--line); background: #fff; }
.tpl-gwt-v q { display: block; quotes: none; font-size: 1.04rem; color: var(--ink); line-height: 1.55; margin-bottom: 10px; }
.tpl-gwt-v p { margin: 0; color: var(--muted); font-size: .9rem; }
.tpl-gwt-v--weak { background: #fff6f5; border-color: #f6d3cf; }
.tpl-gwt-v--weak .sol-gw-tag { color: #c2410c; }
.tpl-gwt-v--good { background: #fff; border: 2px solid var(--brand); box-shadow: var(--shadow); border-radius: 20px 20px 4px 20px; }
.tpl-gwt-v--good .sol-gw-tag { color: var(--brand); }
.tpl-gwt[data-show="weak"] .tpl-gwt-v--good, .tpl-gwt[data-show="good"] .tpl-gwt-v--weak { display: none; }
@media (max-width: 760px) { .tpl-gwt-grid { grid-template-columns: 1fr; } }

/* ---------- Good vs weak: strike-through rewrites ---------- */
.tpl-strike { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; display: grid; gap: 26px; }
.tpl-strike li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; }
.tpl-st-n { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: var(--brand); border: 2px solid var(--brand); }
.tpl-strike del { display: block; color: var(--muted); text-decoration: line-through; text-decoration-color: #e05a4f; text-decoration-thickness: 2px; line-height: 1.55; }
.tpl-strike ins { display: block; margin: 10px 0; padding: 14px 16px; border-radius: 14px; background: var(--brand-soft); border-left: 4px solid var(--brand); color: var(--ink); text-decoration: none; font-size: 1.04rem; line-height: 1.55; }
.tpl-strike p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.55; }
.tpl-strike p b { color: var(--ink); }

/* ---------- Rules: numbered ---------- */
.tpl-rn { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; }
.tpl-rn li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.tpl-rn li:last-child { border-bottom: 1px solid var(--line); }
.tpl-rn-n { font-family: var(--display); font-weight: 800; font-size: 3.6rem; line-height: .9; color: transparent; -webkit-text-stroke: 2px var(--brand); }
.tpl-rn h3 { font-size: 1.3rem; margin-bottom: 8px; }
.tpl-rn p { margin: 0 0 10px; color: var(--body); line-height: 1.65; }
.tpl-rn a { font-weight: 700; }
@media (max-width: 600px) { .tpl-rn li { grid-template-columns: 1fr; gap: 6px; } .tpl-rn-n { font-size: 2.4rem; } }

/* ---------- Rules: deep band, split ---------- */
.tpl-rb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 64px; align-items: start; }
.tpl-rb .sec-head { text-align: left; margin: 0; position: sticky; top: 110px; }
.tpl-rb .tpl-head--split { display: block; border: 0; padding: 0; }
.tpl-rb .tpl-head--split h2 { margin-bottom: 14px; }
.tpl-rb-list { margin: 0; padding: 0; list-style: none; }
.tpl-rb-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.tpl-rb-list li:first-child { padding-top: 0; }
.tpl-rb-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: var(--t-on-deep); border: 1px solid rgba(255,255,255,.12); }
.tpl-rb-list h3 { color: #fff; font-size: 1.12rem; margin: 4px 0 6px; }
.tpl-rb-list p { margin: 0 0 8px; color: var(--t-deep-text); line-height: 1.6; }
.tpl-rb-list a { font-weight: 700; }
@media (max-width: 860px) { .tpl-rb { grid-template-columns: 1fr; gap: 28px; } .tpl-rb .sec-head { position: static; } }

/* ---------- Setup: light steps / accent band ---------- */
.tpl-su { list-style: none; margin: 0 auto; padding: 0; max-width: 1080px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 28px; position: relative; }
.tpl-su li { position: relative; }
.tpl-su-n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 16px; position: relative; z-index: 1; box-shadow: 0 0 0 8px var(--brand-soft); }
.tpl-su h3 { font-size: 1.1rem; margin-bottom: 6px; }
.tpl-su p { margin: 0 0 10px; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.tpl-su a { font-weight: 700; font-size: .9rem; }
.tpl-setup--steps .tpl-su li:not(:last-child)::after { content: ""; position: absolute; top: 26px; left: 70px; right: -18px; height: 2px; background: repeating-linear-gradient(90deg, var(--brand) 0 8px, transparent 8px 14px); }
.tpl-su-need { display: flex; gap: 10px; align-items: flex-start; max-width: 1080px; margin: 36px auto 0; padding: 16px 18px; border-radius: 14px; background: var(--brand-soft); color: var(--ink); font-size: .93rem; }
.tpl-su-need .i { color: var(--brand); margin-top: 2px; }
.tpl-band--accentfill { background: radial-gradient(800px 400px at 90% 0%, rgba(255,255,255,.14), transparent 60%), linear-gradient(135deg, var(--brand-600), var(--t-deep-2) 55%, var(--t-deep)); color: rgba(255,255,255,.86); }
.tpl-band--accentfill .sec-head h2 { color: #fff; }
.tpl-band--accentfill .sec-head p { color: rgba(255,255,255,.85); }
.tpl-band--accentfill .eyebrow { color: #fff; }
.tpl-band--accentfill .tpl-su li { padding: 24px; border-radius: 20px; background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.tpl-band--accentfill .tpl-su-n { box-shadow: none; }
.tpl-band--accentfill .tpl-su-need { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.tpl-band--accentfill .tpl-su-need .i { color: #fff; }
.tpl-band--accentfill .tpl-su-need a { color: #fff; text-decoration: underline; }
.tpl-band--accentfill .tpl-head--chapter { border-left-color: rgba(255,255,255,.6); }
.tpl-band--accentfill .tpl-ch-n { color: #fff; }
.tpl-ch-main .tpl-su { grid-auto-flow: row; grid-template-columns: 1fr; gap: 14px; }
.tpl-ch-main .tpl-su li { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 18px; }
.tpl-ch-main .tpl-su li > :not(.tpl-su-n) { grid-column: 2; }
.tpl-ch-main .tpl-su-n { grid-row: span 3; margin: 0; }
@media (max-width: 860px) { .tpl-su { grid-auto-flow: row; gap: 18px; } .tpl-setup--steps .tpl-su li::after { display: none; } }

/* ---------- Scenario, limits, FAQ, CTA ---------- */
.tpl-scn--flip { grid-template-columns: 440px minmax(0, 1fr); }
.tpl-scn--flip .sol-thread { order: -1; }
@media (max-width: 960px) { .tpl-scn--flip { grid-template-columns: 1fr; } .tpl-scn--flip .sol-thread { order: 0; } }
.tpl-limits--list .sol-limit-grid { grid-template-columns: 1fr; max-width: 900px; gap: 0; }
.tpl-limits--list .sol-limit { background: none; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--brand) 16%, var(--line)); border-radius: 0; box-shadow: none; padding: 18px 4px; }
.tpl-limits--list .sol-limit > .i { color: var(--brand); }
.tpl-faq--columns { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 860px) { .tpl-faq--columns { grid-template-columns: 1fr; } }
.tpl-cta--band { padding: 0; background: radial-gradient(800px 400px at 85% 0%, var(--t-glow), transparent 60%), linear-gradient(135deg, var(--t-deep), var(--t-deep-2)); }
.tpl-cta--band .cta-box { background: none; border: 0; box-shadow: none; border-radius: 0; padding: 96px 0 40px; }
.tpl-cta--band .sol-updated { margin: 0; padding-bottom: 32px; color: var(--t-deep-text); }
.tpl-cta--band .btn--white { color: var(--brand-600); }
.tpl-cta--light .cta-box { background: var(--brand-soft); border: 2px solid color-mix(in srgb, var(--brand) 40%, #fff); box-shadow: none; color: var(--body); }
.tpl-cta--light .cta-box h2 { color: var(--ink); }
.tpl-cta--light .cta-box p { color: var(--body); }
.tpl-cta--light .btn--white { background: var(--brand); color: #fff; }
.tpl-cta--light .btn--white:hover { color: #fff; }
.tpl-cta--light .btn--ghost { color: var(--ink); border-color: color-mix(in srgb, var(--brand) 35%, #fff); }
.tpl-cta--light .btn--ghost:hover { color: var(--brand); border-color: var(--brand); background: #fff; }
@media (max-width: 760px) { .tpl-cta--band .cta-box { padding: 64px 0 28px; } }

/* Tables keep their light card look inside deep bands; the default CTA box follows the theme */
.tpl-band--deep .table-wrap { background: #fff; color: var(--body); border-color: transparent; }
.tpl-band--deep .table thead th { color: var(--ink); }
.tpl .cta-box { background: radial-gradient(600px 300px at 90% 0%, var(--t-glow), transparent 60%), linear-gradient(135deg, var(--t-deep-2), var(--t-deep)); }
.tpl .cta-band.tpl-cta--band .cta-box { background: none; }
.tpl .cta-band.tpl-cta--light .cta-box { background: var(--brand-soft); }

/* =========================================================
   Second wave: more themes, heroes, heads and libraries
   ========================================================= */
.tpl-theme--rose { --brand: #be123c; --brand-600: #9f1239; --brand-2: #fb7185; --brand-soft: #ffe8ec; --t-deep: #24070f; --t-deep-2: #881337; --t-tint: #fff7f8; --t-on-deep: #fda4af; --t-deep-text: #efcdd4; --t-glow: rgba(244,63,94,.32); }
.tpl-theme--sky { --brand: #0369a1; --brand-600: #075985; --brand-2: #38bdf8; --brand-soft: #e3f3fd; --t-deep: #061a2b; --t-deep-2: #0c4a6e; --t-tint: #f3f9fd; --t-on-deep: #7dd3fc; --t-deep-text: #c4dbea; --t-glow: rgba(56,189,248,.28); }
.tpl-theme--slate { --brand: #334155; --brand-600: #1e293b; --brand-2: #fb923c; --brand-soft: #eef1f5; --t-deep: #0f172a; --t-deep-2: #334155; --t-tint: #f7f8fa; --t-on-deep: #fdba74; --t-deep-text: #cbd5e1; --t-glow: rgba(251,146,60,.2); }
.tpl-theme--emerald { --brand: #15803d; --brand-600: #166534; --brand-2: #a3e635; --brand-soft: #e8f8dc; --t-deep: #0a1f0e; --t-deep-2: #14532d; --t-tint: #f6fbf1; --t-on-deep: #bef264; --t-deep-text: #c7dcc8; --t-glow: rgba(163,230,53,.22); }
.tpl-theme--coral { --brand: #c4361f; --brand-600: #a02a17; --brand-2: #ff7a59; --brand-soft: #ffece5; --t-deep: #1e0d09; --t-deep-2: #6b2414; --t-tint: #fff8f5; --t-on-deep: #ffab91; --t-deep-text: #eed3c9; --t-glow: rgba(255,122,89,.28); }

/* ---------- Heads: rail, boxed, index ---------- */
.tpl-head--rail { max-width: 1000px; margin: 0 auto 48px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 24px; text-align: left; align-items: stretch; }
.tpl-head--rail .eyebrow { writing-mode: vertical-rl; transform: rotate(180deg); margin: 0; justify-content: flex-end; padding: 6px 0; border-right: 3px solid var(--brand); padding-right: 12px; white-space: nowrap; font-size: .72rem; }
.tpl-head--rail h2 { margin-bottom: 12px; }
.tpl-band--deep .tpl-head--rail .eyebrow { border-color: var(--t-on-deep); }
@media (max-width: 600px) { .tpl-head--rail { grid-template-columns: 1fr; gap: 0; } .tpl-head--rail .eyebrow { writing-mode: horizontal-tb; transform: none; border-right: 0; border-left: 3px solid var(--brand); padding: 0 0 0 10px; margin-bottom: 12px; justify-content: flex-start; } }

.tpl-head--boxed { max-width: 820px; margin: 0 auto 48px; text-align: center; }
.tpl-boxed-in { display: inline-block; max-width: 100%; padding: 18px 28px 20px; margin-bottom: 20px; background: #fff; border: 2px solid var(--ink); border-radius: 6px; box-shadow: 8px 8px 0 var(--brand-2); }
.tpl-boxed-in .eyebrow { margin-bottom: 8px; }
.tpl-boxed-in h2 { margin: 0; color: var(--ink); }
.tpl-band--deep .tpl-boxed-in, .tpl-band--dark .tpl-boxed-in { background: var(--t-deep-2); border-color: var(--t-on-deep); }
.tpl-band--deep .tpl-boxed-in h2 { color: #fff; }
@media (max-width: 600px) { .tpl-boxed-in { padding: 14px 16px; box-shadow: 5px 5px 0 var(--brand-2); } }

.tpl-head--index { max-width: none; margin: 0 0 44px; display: grid; grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px 32px; align-items: end; text-align: left; }
.tpl-ix-n { font-family: var(--display); font-weight: 800; font-size: clamp(3.4rem, 7vw, 5.6rem); line-height: .8; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 2px var(--brand); }
.tpl-head--index h2 { margin: 0; }
.tpl-head--index p { margin: 0; padding-left: 20px; border-left: 2px solid var(--line); }
.tpl-band--deep .tpl-ix-n { -webkit-text-stroke-color: var(--t-on-deep); }
.tpl-band--deep .tpl-head--index p { border-color: rgba(255,255,255,.15); }
.tpl-heads--index .sol-jump, .tpl-heads--rail .sol-jump { justify-content: flex-start; max-width: 1000px; margin-left: auto; margin-right: auto; }
@media (max-width: 860px) { .tpl-head--index { grid-template-columns: auto minmax(0, 1fr); } .tpl-head--index p { grid-column: 1 / -1; padding: 0; border: 0; } }

/* ---------- Shared bits for the newer heroes ---------- */
.tpl-hero--missed, .tpl-hero--ba, .tpl-hero--watch, .tpl-hero--ad, .tpl-hero--bubble { color: var(--t-deep-text); }
.tpl-hero--missed h1, .tpl-hero--ba h1, .tpl-hero--watch h1, .tpl-hero--ad h1, .tpl-hero--bubble h1 { color: #fff; }
.tpl-hero--missed .tpl-hero-sub, .tpl-hero--ba .tpl-hero-sub, .tpl-hero--watch .tpl-hero-sub, .tpl-hero--ad .tpl-hero-sub, .tpl-hero--bubble .tpl-hero-sub { color: var(--t-deep-text); }
.tpl-hero--missed .crumbs [aria-current], .tpl-hero--ba .crumbs [aria-current], .tpl-hero--watch .crumbs [aria-current], .tpl-hero--ad .crumbs [aria-current], .tpl-hero--bubble .crumbs [aria-current] { color: #fff; }
.tpl-hero--missed .btn--ghost, .tpl-hero--ba .btn--ghost, .tpl-hero--watch .btn--ghost, .tpl-hero--ad .btn--ghost, .tpl-hero--bubble .btn--ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.tpl-hero--missed .btn--ghost:hover, .tpl-hero--ba .btn--ghost:hover, .tpl-hero--watch .btn--ghost:hover, .tpl-hero--ad .btn--ghost:hover, .tpl-hero--bubble .btn--ghost:hover { color: #fff; border-color: #fff; }
.tpl-bb { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: .93rem; line-height: 1.5; overflow-wrap: anywhere; box-shadow: 0 1px .5px rgba(0,0,0,.13); }
.tpl-bb.out { align-self: flex-end; background: #34c759; color: #fff; border-bottom-right-radius: 5px; }
.tpl-bb.in { align-self: flex-start; background: #fff; color: #111; border-bottom-left-radius: 5px; }
[data-ch="whatsapp"] .tpl-bb.out { background: #d9fdd3; color: #111; border-radius: 12px 0 12px 12px; }
[data-ch="whatsapp"] .tpl-bb.in { border-radius: 0 12px 12px 12px; }
.tpl-statrow--compact { margin-top: 36px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.tpl-statrow--compact li { padding: 18px 18px; }
.tpl-statrow--compact b { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.tpl-statchips--left { justify-content: flex-start; }
.tpl-hero-grid--rev { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
@media (max-width: 960px) { .tpl-hero-grid--rev > :first-child { order: 2; } }

/* Missed-call hero: light call-log slab bleeding off the right edge */
.tpl-hero--missed { background: radial-gradient(700px 420px at 10% 0%, var(--t-glow), transparent 60%), linear-gradient(170deg, var(--t-deep), color-mix(in srgb, var(--t-deep-2) 55%, var(--t-deep))); padding-bottom: 0; }
.tpl-hero--missed .tpl-hero-grid { align-items: end; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tpl-hero--missed .tpl-hero-copy { padding-bottom: 96px; }
.tpl-mslab { margin-right: calc(50% - 50vw); padding: 34px 40px 44px; background: var(--t-tint); color: var(--body); border-radius: 32px 0 0 0; box-shadow: -30px 0 80px rgba(0,0,0,.3); }
.tpl-mslab-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line); max-width: 520px; }
.tpl-mslab-head > span { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: #fff; }
.tpl-mslab-head b { display: block; font-family: var(--display); color: var(--ink); font-size: 1.1rem; }
.tpl-mslab-head small { color: var(--muted); font-size: .8rem; }
.tpl-mslog { list-style: none; margin: 0; padding: 0; max-width: 520px; position: relative; }
.tpl-mslog::before { content: ""; position: absolute; left: 21px; top: 30px; bottom: 30px; width: 2px; background: repeating-linear-gradient(180deg, var(--brand-2) 0 6px, transparent 6px 11px); }
.tpl-mslog li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 16px 0; }
.tpl-ms-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brand); border: 2px solid var(--brand-2); position: relative; z-index: 1; }
.tpl-ms-ic .i { width: 18px; height: 18px; }
.tpl-mslog li.is-miss .tpl-ms-ic { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 8px color-mix(in srgb, var(--brand) 16%, transparent); }
.tpl-mslog b { display: block; color: var(--ink); font-family: var(--display); padding-top: 10px; }
.tpl-mslog li.is-miss b { color: var(--brand); font-size: 1.25rem; padding-top: 2px; }
.tpl-mslog small { color: var(--muted); font-size: .85rem; }
.tpl-mslog p { margin: 10px 0 0; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: .93rem; line-height: 1.5; }
.tpl-mslog li.is-out p { background: var(--brand); border-color: var(--brand); color: #fff; border-radius: 16px 16px 4px 16px; }
@media (max-width: 960px) { .tpl-hero--missed .tpl-hero-copy { padding-bottom: 0; } .tpl-mslab { margin-right: -20px; margin-left: 0; padding: 26px 20px 34px; } }

/* Before / after hero */
.tpl-hero--ba { background: radial-gradient(900px 480px at 50% -10%, var(--t-glow), transparent 60%), var(--t-deep); padding-bottom: 80px; }
.tpl-hero--ba .crumbs, .tpl-hero--ba .sol-hero-badges, .tpl-hero--ba .hero-actions { justify-content: center; }
.tpl-hero--ba .tpl-hero-sub { margin: 0 auto 30px; max-width: 700px; }
.tpl-ba { display: grid; grid-template-columns: minmax(0, .8fr) 56px minmax(0, 1.2fr); align-items: center; gap: 12px; max-width: 1040px; margin: 56px auto 0; }
.tpl-ba-pane { position: relative; border-radius: 24px; padding: 34px 22px 22px; }
.tpl-ba-pane--before { background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.22); }
.tpl-ba-pane--after { background: var(--t-deep-2); border: 1px solid color-mix(in srgb, var(--brand-2) 45%, transparent); box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.tpl-ba-tag { position: absolute; top: -13px; left: 22px; padding: 4px 12px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: #3b3f45; color: #fff; }
.tpl-ba-pane--after .tpl-ba-tag { background: var(--brand-2); color: var(--t-deep); }
.tpl-ba-log { background: #fff; border-radius: 16px; padding: 16px; color: var(--body); }
.tpl-ba-log > small { display: block; font-weight: 800; color: var(--ink); font-size: .9rem; margin-bottom: 8px; }
.tpl-ba-call { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.tpl-ba-call > span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--muted); }
.tpl-ba-call .i { width: 16px; height: 16px; }
.tpl-ba-call .tpl-ba-miss { background: #fde8e8; color: #c62828; }
.tpl-ba-call b { display: block; color: #c62828; font-size: .95rem; }
.tpl-ba-call small { color: var(--muted); font-size: .78rem; }
.tpl-ba-call.is-dim b { color: var(--ink); }
.tpl-ba-call.is-dim { opacity: .6; }
.tpl-ba-arrow { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-2); color: var(--t-deep); }
.tpl-ba-chat { border-radius: 16px; overflow: hidden; }
.tpl-ba-chathead { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(0,0,0,.25); color: #fff; }
.tpl-ba-chathead .chat-avatar { margin: 0; width: 34px; height: 34px; background: rgba(255,255,255,.18); }
.tpl-ba-chathead b { display: block; font-size: .9rem; } .tpl-ba-chathead small { font-size: .74rem; color: rgba(255,255,255,.75); }
.tpl-ba-body { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: #efe7de; }
@media (max-width: 860px) { .tpl-ba { grid-template-columns: 1fr; gap: 26px; } .tpl-ba-arrow { justify-self: center; transform: rotate(90deg); } }

/* Lock-screen hero */
.tpl-hero--lock .tpl-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.tpl-ls { justify-self: center; width: 100%; max-width: 360px; }
.tpl-ls-screen { position: relative; border-radius: 46px; padding: 46px 16px 34px; min-height: 560px; border: 10px solid #111; background: radial-gradient(260px 260px at 20% 15%, color-mix(in srgb, var(--brand-2) 70%, transparent), transparent 70%), radial-gradient(300px 300px at 90% 80%, color-mix(in srgb, var(--brand) 80%, transparent), transparent 70%), linear-gradient(160deg, var(--t-deep-2), var(--t-deep)); box-shadow: 0 40px 80px rgba(11,27,51,.28); color: #fff; }
.tpl-ls-top { text-align: center; margin-bottom: 26px; }
.tpl-ls-lock { display: inline-grid; place-items: center; margin-bottom: 6px; }
.tpl-ls-lock .i { width: 18px; height: 18px; }
.tpl-ls-top small { display: block; font-size: .8rem; opacity: .85; }
.tpl-ls-top b { display: block; font-family: var(--display); font-size: 1.3rem; line-height: 1.15; margin-top: 4px; }
.tpl-ls-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tpl-ls-n { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 12px; border-radius: 20px; background: rgba(255,255,255,.88); color: var(--ink); backdrop-filter: blur(10px); animation: tplDrop .5s var(--ease) both; animation-delay: calc(.4s + var(--i) * .35s); }
.tpl-ls-n.is-in { margin-left: 26px; background: rgba(255,255,255,.7); }
.tpl-ls-app { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #25d366; color: #fff; }
.tpl-ls-app .i { width: 18px; height: 18px; }
.tpl-ls-n small { display: block; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tpl-ls-n b { display: block; font-size: .86rem; }
.tpl-ls-n p { margin: 2px 0 0; font-size: .82rem; line-height: 1.4; color: var(--body); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tpl-ls-bar { position: absolute; left: 50%; bottom: 12px; width: 120px; height: 5px; margin-left: -60px; border-radius: 3px; background: rgba(255,255,255,.7); }
.tpl-ls-note { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 14px 0 0; font-size: .78rem; color: var(--muted); }
.tpl-ls-note .i { width: 14px; height: 14px; }
@keyframes tplDrop { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: none; } }

/* Stopwatch hero */
.tpl-hero--watch { background: radial-gradient(800px 500px at 80% 30%, var(--t-glow), transparent 60%), linear-gradient(200deg, var(--t-deep-2) -30%, var(--t-deep) 55%); }
.tpl-sw { display: grid; grid-template-columns: 210px minmax(0, 1fr); grid-template-areas: "dial read" "flow flow"; gap: 22px 26px; align-items: center; }
.tpl-sw-dial { grid-area: dial; position: relative; width: 210px; height: 210px; border-radius: 50%; background: radial-gradient(circle, var(--t-deep) 58%, transparent 59%), conic-gradient(var(--brand-2) 0 62deg, rgba(255,255,255,.08) 62deg 360deg); box-shadow: 0 0 0 10px rgba(255,255,255,.04), 0 30px 60px rgba(0,0,0,.4); }
.tpl-sw-crown { position: absolute; top: -18px; left: 50%; width: 26px; height: 16px; margin-left: -13px; border-radius: 5px 5px 2px 2px; background: var(--brand-2); }
.tpl-sw-dial i { position: absolute; left: 50%; top: 50%; width: 2px; height: 12px; margin: -6px 0 0 -1px; background: rgba(255,255,255,.4); transform: rotate(var(--r)) translateY(-78px); }
.tpl-sw-hand { position: absolute; left: 50%; top: 50%; width: 4px; height: 76px; margin-left: -2px; border-radius: 2px; background: #fff; transform-origin: 50% 0; transform: rotate(242deg); }
.tpl-sw-sweep { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--brand-2); border: 3px solid var(--t-deep); }
@media (prefers-reduced-motion: no-preference) { .tpl-sw-hand { animation: tplSweep 2.4s var(--ease) both .3s; } }
@keyframes tplSweep { from { transform: rotate(180deg); } to { transform: rotate(242deg); } }
.tpl-sw-read { grid-area: read; }
.tpl-sw-read small { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--t-on-deep); }
.tpl-sw-read small .i { width: 14px; height: 14px; }
.tpl-sw-read b { display: block; font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.05; color: #fff; margin-top: 8px; }
.tpl-sw-flow { grid-area: flow; display: grid; grid-template-columns: minmax(0, .8fr) 40px minmax(0, 1.4fr); gap: 12px; align-items: center; }
.tpl-sw-form { padding: 16px; border-radius: 16px; background: #fff; color: var(--body); box-shadow: 0 20px 40px rgba(0,0,0,.3); }
.tpl-sw-form small { display: flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.tpl-sw-form small .i { width: 13px; height: 13px; }
.tpl-sw-form b { display: block; color: var(--ink); font-size: 1.1rem; margin: 6px 0 2px; }
.tpl-sw-form span { font-size: .86rem; color: var(--muted); }
.tpl-sw-arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-2); color: var(--t-deep); }
.tpl-sw-sms { padding: 14px 16px; border-radius: 18px 18px 4px 18px; background: var(--brand); color: #fff; }
.tpl-sw-sms small { display: flex; align-items: center; gap: 6px; font-size: .72rem; opacity: .85; margin-bottom: 6px; }
.tpl-sw-sms small .i { width: 13px; height: 13px; }
.tpl-sw-sms p { margin: 0; font-size: .92rem; line-height: 1.5; }
@media (max-width: 600px) { .tpl-sw { grid-template-columns: 1fr; grid-template-areas: "dial" "read" "flow"; justify-items: center; text-align: center; } .tpl-sw-read small { justify-content: center; } .tpl-sw-flow { grid-template-columns: 1fr; text-align: left; width: 100%; } .tpl-sw-arrow { justify-self: center; transform: rotate(90deg); } }

/* Ad-to-chat hero */
.tpl-hero--ad { background: radial-gradient(1000px 500px at 50% 110%, var(--t-glow), transparent 60%), linear-gradient(180deg, var(--t-deep), var(--t-deep-2) 160%); }
.tpl-hero--ad .crumbs, .tpl-hero--ad .sol-hero-badges, .tpl-hero--ad .hero-actions { justify-content: center; }
.tpl-hero--ad .tpl-hero-sub { margin: 0 auto 30px; max-width: 700px; }
.tpl-ad { list-style: none; margin: 60px auto 0; padding: 0; max-width: 1080px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 22px; align-items: start; counter-reset: ad; }
.tpl-ad-step { display: flex; flex-direction: column; gap: 12px; position: relative; }
.tpl-ad-step > small { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; color: var(--t-on-deep); }
.tpl-ad-step > small span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-2); color: var(--t-deep); font-weight: 800; }
.tpl-ad-step:nth-child(2) { margin-top: 48px; } .tpl-ad-step:nth-child(3) { margin-top: 96px; }
.tpl-ad-step:not(:last-child)::after { content: ""; position: absolute; top: 12px; right: -18px; width: 14px; height: 14px; border-top: 2px solid var(--t-on-deep); border-right: 2px solid var(--t-on-deep); transform: rotate(45deg); opacity: .7; }
.tpl-ad-card { background: #fff; color: var(--body); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 50px rgba(0,0,0,.35); }
.tpl-ad-who { display: flex; align-items: center; gap: 10px; padding: 12px; }
.tpl-ad-who .chat-avatar { margin: 0; width: 34px; height: 34px; background: var(--brand); }
.tpl-ad-who b { display: block; color: var(--ink); font-size: .9rem; } .tpl-ad-who small { color: var(--muted); font-size: .74rem; }
.tpl-ad-img { height: 120px; display: grid; place-items: end start; padding: 12px; background: linear-gradient(135deg, var(--brand-2), var(--brand) 70%); }
.tpl-ad-img span { color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.2rem; text-transform: capitalize; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.tpl-ad-btn { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px; padding: 10px; border-radius: 10px; background: #25d366; color: #073b1f; font-weight: 800; font-size: .88rem; }
.tpl-ad-btn .i { width: 16px; height: 16px; }
.tpl-ad .tpl-bb { max-width: 100%; }
@media (max-width: 860px) { .tpl-ad { grid-template-columns: 1fr; max-width: 460px; } .tpl-ad-step:not(:last-child)::after { display: none; } .tpl-ad-step:nth-child(n) { margin-top: 0; } }

/* Quote document hero */
.tpl-hero--quote { background: linear-gradient(90deg, var(--t-tint) 0 46%, #fff 46%); }
.tpl-hero--quote::before { display: none; }
.tpl-qdoc { position: relative; max-width: 460px; width: 100%; }
.tpl-qdoc-paper { background: #fff; border: 1px solid var(--line); border-radius: 6px 30px 6px 6px; padding: 28px 28px 24px; box-shadow: 0 2px 0 var(--line), 0 6px 0 -1px #fff, 0 7px 0 -1px var(--line), var(--shadow-lg); position: relative; }
.tpl-qdoc-paper::after { content: ""; position: absolute; top: 0; right: 0; width: 30px; height: 30px; background: linear-gradient(225deg, var(--t-tint) 50%, color-mix(in srgb, var(--brand) 14%, #fff) 50%); border-radius: 0 0 0 8px; }
.tpl-qdoc-top { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 3px solid var(--ink); }
.tpl-qdoc-ic { width: 46px; height: 54px; border-radius: 6px; display: grid; place-items: center; background: #e5484d; color: #fff; }
.tpl-qdoc-top small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tpl-qdoc-top b { font-family: var(--display); font-size: 1.25rem; color: var(--ink); }
.tpl-qdoc-rows { margin: 14px 0 0; display: grid; gap: 6px; }
.tpl-qdoc-rows div { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; padding: 4px 0; border-bottom: 1px dotted var(--line); }
.tpl-qdoc-rows dt { color: var(--muted); } .tpl-qdoc-rows dd { margin: 0; color: var(--ink); font-weight: 700; text-align: right; }
.tpl-qdoc-lines { display: grid; gap: 7px; margin: 16px 0 20px; }
.tpl-qdoc-lines i { height: 7px; border-radius: 4px; background: var(--soft); }
.tpl-qdoc-lines i:nth-child(2) { width: 82%; } .tpl-qdoc-lines i:nth-child(3) { width: 64%; } .tpl-qdoc-lines i:nth-child(4) { width: 40%; background: color-mix(in srgb, var(--brand-2) 40%, #fff); }
.tpl-qdoc-track { list-style: none; margin: 0; padding: 14px 0 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; border-top: 1px solid var(--line); }
.tpl-qdoc-track li { position: relative; padding-top: 18px; font-size: .7rem; line-height: 1.3; color: var(--muted); }
.tpl-qdoc-track li::before { content: ""; position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--brand); background: #fff; }
.tpl-qdoc-track li::after { content: ""; position: absolute; top: 6px; left: 16px; right: -2px; height: 2px; background: var(--line); }
.tpl-qdoc-track li:last-child::after { display: none; }
.tpl-qdoc-track li.is-on::before { background: var(--brand-2); border-color: var(--brand-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 25%, transparent); }
.tpl-qdoc-track span { display: block; font-weight: 800; color: var(--ink); }
.tpl-qdoc-sms { position: relative; z-index: 1; margin: -18px -40px 0 auto; width: 300px; padding: 14px 16px; border-radius: 18px 18px 4px 18px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); transform: rotate(-2deg); }
.tpl-qdoc-sms small { display: flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--t-on-deep); margin-bottom: 6px; }
.tpl-qdoc-sms small .i { width: 13px; height: 13px; }
.tpl-qdoc-sms p { margin: 0; font-size: .9rem; line-height: 1.5; }
@media (max-width: 960px) { .tpl-hero--quote { background: var(--t-tint); } .tpl-qdoc { justify-self: center; } }
@media (max-width: 600px) { .tpl-qdoc-sms { width: auto; margin: -10px 8px 0; transform: none; } .tpl-qdoc-paper { padding: 22px 18px; } .tpl-qdoc-track { grid-auto-flow: row; } .tpl-qdoc-track li::after { display: none; } .tpl-qdoc-track li { padding: 0 0 0 20px; } }

/* Big-message hero */
.tpl-hero--bubble { background: radial-gradient(800px 600px at 100% 100%, var(--t-glow), transparent 60%), linear-gradient(135deg, var(--t-deep) 30%, var(--t-deep-2)); }
.tpl-bq-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.tpl-hero--bubble h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
.tpl-bq { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.tpl-bq figcaption { display: flex; align-items: center; gap: 10px; color: #fff; font-size: .9rem; }
.tpl-bq figcaption .chat-avatar { margin: 0; width: 36px; height: 36px; background: var(--brand-2); color: var(--t-deep); }
.tpl-bq figcaption small { margin-left: auto; color: var(--t-deep-text); font-size: .76rem; }
.tpl-bq-file { align-self: flex-end; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; }
.tpl-bq-file > span { width: 40px; height: 48px; border-radius: 6px; display: grid; place-items: center; background: #e5484d; }
.tpl-bq-file b { display: block; font-size: .9rem; overflow-wrap: anywhere; } .tpl-bq-file small { font-size: .76rem; color: var(--t-deep-text); }
.tpl-bq-msg { position: relative; margin: 0; padding: 30px 34px; border-radius: 30px 30px 6px 30px; background: #fff; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.4; box-shadow: 0 40px 80px rgba(0,0,0,.4); }
.tpl-bq-msg::before { content: "\201C"; position: absolute; top: -34px; left: 18px; font-size: 6rem; line-height: 1; color: var(--brand-2); font-family: Georgia, serif; }
.tpl-bq-reply { align-self: flex-start; max-width: 80%; padding: 12px 16px; border-radius: 6px 20px 20px 20px; background: rgba(255,255,255,.12); color: #fff; font-size: .95rem; }
@media (max-width: 960px) { .tpl-bq-grid { grid-template-columns: 1fr; gap: 44px; } }
@media (max-width: 600px) { .tpl-bq-msg { padding: 22px 20px; } .tpl-bq figcaption small { display: none; } }

/* Review-stars hero */
.tpl-hero--stars { background: radial-gradient(600px 400px at 85% 20%, #fff3c4, transparent 65%), linear-gradient(180deg, var(--t-tint), #fff 90%); }
.tpl-st-bg { position: absolute; right: -120px; top: 40px; color: #fbbf24; opacity: .13; pointer-events: none; }
.tpl-st-bg .i { width: 640px; height: 640px; fill: currentColor; }
.tpl-rv { position: relative; display: grid; gap: 14px; max-width: 440px; justify-self: end; width: 100%; }
.tpl-rv-sms { max-width: 360px; padding: 14px 16px; border-radius: 18px 18px 18px 4px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.tpl-rv-sms small { display: flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--muted); margin-bottom: 6px; }
.tpl-rv-sms small .i { width: 13px; height: 13px; }
.tpl-rv-sms p { margin: 0; font-size: .9rem; color: var(--ink); line-height: 1.5; overflow-wrap: anywhere; }
.tpl-rv-card { margin-left: 40px; padding: 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.tpl-rv-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tpl-rv-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; }
.tpl-rv-head b { display: block; color: var(--ink); } .tpl-rv-head small { color: var(--muted); font-size: .82rem; }
.tpl-rv-stars { display: flex; gap: 6px; color: #f5a524; }
.tpl-rv-stars .i { width: 34px; height: 34px; fill: currentColor; }
@media (prefers-reduced-motion: no-preference) { .tpl-rv-stars .i { animation: tplPop .4s var(--ease) both; } .tpl-rv-stars .i:nth-child(2) { animation-delay: .1s; } .tpl-rv-stars .i:nth-child(3) { animation-delay: .2s; } .tpl-rv-stars .i:nth-child(4) { animation-delay: .3s; } .tpl-rv-stars .i:nth-child(5) { animation-delay: .4s; } }
@keyframes tplPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.tpl-rv-lines { display: grid; gap: 7px; margin: 16px 0; }
.tpl-rv-lines i { height: 8px; border-radius: 4px; background: var(--soft); } .tpl-rv-lines i:nth-child(2) { width: 85%; } .tpl-rv-lines i:nth-child(3) { width: 55%; }
.tpl-rv-link { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--brand); font-weight: 700; overflow-wrap: anywhere; }
.tpl-rv-link .i { width: 14px; height: 14px; flex-shrink: 0; }
.tpl-rv-reply { justify-self: end; max-width: 300px; padding: 10px 14px; border-radius: 18px 18px 4px 18px; background: #34c759; color: #fff; font-size: .9rem; }
@media (max-width: 960px) { .tpl-rv { justify-self: center; } }
@media (max-width: 600px) { .tpl-rv-card { margin-left: 0; } .tpl-st-bg .i { width: 360px; height: 360px; } }

@media (prefers-reduced-motion: reduce) { .tpl-ls-n, .tpl-sw-hand, .tpl-rv-stars .i { animation: none !important; } }

/* ---------- Library: inbox (folders | list | preview) ---------- */
.tpl-chip-ic { display: inline-grid; place-items: center; }
.tpl-chip-ic .i { width: 15px; height: 15px; }
.tpl-ib-bar { margin-bottom: 16px; }
.tpl-ib { display: grid; grid-template-columns: 230px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; }
.tpl-ib.is-js { grid-template-columns: 230px minmax(0, 1fr) minmax(0, 1.05fr); height: 720px; }
.tpl-ib-folders { background: var(--t-tint); border-right: 1px solid var(--line); padding: 16px 10px; overflow-y: auto; }
.tpl-ib-title { display: block; padding: 0 10px 10px; font-family: var(--display); color: var(--ink); }
.tpl-ib-filter { flex-direction: column; flex-wrap: nowrap; gap: 2px; margin: 0; }
.tpl-ib-filter button { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; border: 0; border-radius: 10px; padding: 9px 10px; background: none; font-size: .86rem; color: var(--body); }
.tpl-ib-filter button:hover { background: #fff; }
.tpl-ib-filter button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.tpl-ib-filter small { font-weight: 700; }
.tpl-ib-list { min-height: 0; overflow-y: auto; padding: 0 0 12px; border-right: 1px solid var(--line); overscroll-behavior: contain; }
.tpl-ib-list:focus-visible { outline-offset: -3px; }
.tpl-ib .sol-lib-group { margin: 0; }
.tpl-ib-gh { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 10px 18px; font-size: .78rem; font-family: var(--font); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #f8fafc; border-bottom: 1px solid var(--line); }
.tpl-ib-gd { margin: 0; padding: 10px 18px 4px; font-size: .84rem; color: var(--muted); }
.tpl-ib .sol-tpl { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 18px; gap: 8px; position: relative; }
.tpl-ib .sol-tpl:hover { transform: none; box-shadow: none; }
.tpl-ib-pick { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.tpl-ib-pick .i { width: 15px; height: 15px; color: var(--brand); flex-shrink: 0; }
.tpl-ib-pick b { font-size: .92rem; }
.tpl-ib.is-js .sol-tpl { cursor: pointer; }
.tpl-ib.is-js .tpl-ib-pick::after { content: ""; position: absolute; inset: 0; }
.tpl-ib.is-js .sol-tpl .sol-tpl-copy { position: relative; z-index: 1; }
.tpl-ib.is-js .sol-tpl .sol-tpl-text { padding: 0; background: none; color: var(--muted); font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.tpl-ib.is-js .sol-tpl .sol-tpl-why, .tpl-ib.is-js .sol-tpl .sol-tpl-foot { display: none; }
.tpl-ib.is-js .sol-tpl.is-picked { background: var(--brand-soft); box-shadow: inset 4px 0 0 var(--brand); }
.tpl-ib-pane { display: none; }
.tpl-ib.is-js .tpl-ib-pane { display: flex; flex-direction: column; gap: 16px; padding: 28px; overflow-y: auto; background: radial-gradient(400px 300px at 100% 0%, color-mix(in srgb, var(--brand-2) 18%, transparent), transparent 70%), #fff; }
.tpl-ib-pane-head small { display: block; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.tpl-ib-pane-head b { display: block; font-family: var(--display); font-size: 1.45rem; color: var(--ink); margin-top: 4px; }
.tpl-ib-pane-text { margin: 0; padding: 20px 22px; border-radius: 20px 20px 20px 6px; background: var(--brand); color: #fff; font-size: 1.05rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.tpl-ib-pane-text .tk { background: rgba(255,255,255,.2); border-radius: 4px; padding: 0 3px; font-weight: 700; }
.tpl-ib-pane-why { margin: 0; color: var(--body); line-height: 1.6; }
.tpl-ib-pane-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.tpl-ib-pane-foot > span { font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.tpl-ib-pane-foot > span.is-warn { background: #fff7e8; color: #b45309; }
.tpl-ib-copy { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; }
.tpl-ib-copy .i { width: 16px; height: 16px; }
.tpl-ib-copy.is-done { background: #12a150; }
.tpl-ib.is-empty .tpl-ib-pane { visibility: hidden; }
.tpl-ib .sol-lib-empty { margin: 18px; }
@media (max-width: 1100px) { .tpl-ib.is-js { grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 860px) {
  .tpl-ib, .tpl-ib.is-js { grid-template-columns: minmax(0, 1fr); height: auto; }
  .tpl-ib-folders { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; }
  .tpl-ib-title { display: none; }
  .tpl-ib-filter { flex-direction: row; overflow-x: auto; gap: 6px; }
  .tpl-ib-filter button { flex: 0 0 auto; grid-template-columns: auto auto auto; border: 1px solid var(--line); background: #fff; border-radius: 999px; }
  .tpl-ib-list { max-height: none; overflow: visible; border-right: 0; }
  .tpl-ib.is-js .tpl-ib-pane { display: none; }
  .tpl-ib.is-js .tpl-ib-pick::after { display: none; }
  .tpl-ib.is-js .sol-tpl { cursor: auto; }
  .tpl-ib.is-js .sol-tpl .sol-tpl-text { display: block; padding: 12px 14px; background: var(--brand-soft); color: var(--ink); font-size: .95rem; white-space: pre-wrap; -webkit-line-clamp: none; }
  .tpl-ib.is-js .sol-tpl .sol-tpl-why { display: block; } .tpl-ib.is-js .sol-tpl .sol-tpl-foot { display: flex; }
  .tpl-ib.is-js .sol-tpl.is-picked { background: none; box-shadow: none; }
  .tpl-ib-pick .i { display: none; }
}

/* ---------- Library: masonry wall ---------- */
.tpl-mw-tools { display: grid; gap: 14px; margin-bottom: 30px; }
.tpl-mw-tools .sol-lib-bar { margin: 0; }
.tpl-mw-filter { margin: 0; justify-content: center; }
.tpl-mw { columns: 3 300px; column-gap: 20px; }
.tpl-mw-g { display: contents; }
.tpl-mw-gh { break-inside: avoid; margin: 0 0 20px; padding: 22px; border-radius: 22px; background: var(--t-deep-2); color: var(--t-deep-text); }
.tpl-mw-gh .icon-badge { background: rgba(255,255,255,.12); color: var(--t-on-deep); margin-bottom: 12px; }
.tpl-mw-gh h3 { color: #fff; font-size: 1.2rem; margin-bottom: 6px; }
.tpl-mw-gh p { margin: 0; font-size: .9rem; line-height: 1.5; }
.tpl-mw .sol-tpl { break-inside: avoid; margin: 0 0 20px; position: relative; padding: 22px 20px 18px; border-radius: 22px; box-shadow: 0 1px 2px rgba(11,27,51,.06); }
.tpl-mw .sol-tpl:hover { transform: none; }
.tpl-mw-q { position: absolute; top: 4px; right: 16px; font-family: Georgia, serif; font-size: 4rem; line-height: 1; color: color-mix(in srgb, var(--brand-2) 55%, #fff); }
.tpl-mw .sol-tpl-text { background: none; padding: 0 30px 0 0; font-size: 1rem; line-height: 1.6; }
.tpl-mw .sol-tpl-head { padding-top: 12px; border-top: 1px dashed var(--line); }
.tpl-mw .sol-tpl-head b { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); }
.tpl-ch-main .tpl-mw { columns: 2 260px; }

/* ---------- Library: stage stepper ---------- */
.tpl-stp-tools { margin-bottom: 36px; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.tpl-stp-tools .sol-lib-bar { margin: 0 0 12px; padding: 0; border: 0; box-shadow: none; }
.tpl-stp-filter { margin: 0; gap: 0; flex-wrap: nowrap; overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); scrollbar-width: thin; }
.tpl-stp-filter button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-right: 1px solid var(--line); border-radius: 0; padding: 9px 12px; font-size: .8rem; background: #fff; }
.tpl-stp-filter button:last-child { border-right: 0; }
.tpl-stp-chipn { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--soft); color: var(--ink); font-size: .72rem; font-weight: 800; }
.tpl-stp-filter button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.tpl-stp-filter button[aria-pressed="true"] .tpl-stp-chipn { background: var(--brand-2); color: var(--t-deep); }
.tpl-stp { list-style: none; margin: 0; padding: 0; position: relative; }
.tpl-stp::before { content: ""; position: absolute; left: 35px; top: 20px; bottom: 20px; width: 3px; background: linear-gradient(180deg, var(--brand-2), var(--brand)); border-radius: 3px; }
.tpl-stp-g { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 28px; margin: 0 0 44px; }
.tpl-stp-mark { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: #fff; border: 3px solid var(--brand); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1; position: relative; z-index: 1; }
.tpl-stp-mark small { font-family: var(--font); font-size: .56rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tpl-stp-body h3 { font-size: 1.3rem; margin: 10px 0 4px; }
.tpl-stp-body > p { margin: 0 0 16px; color: var(--muted); }
.tpl-stp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tpl-stp .sol-tpl { border-top: 4px solid var(--brand-2); }
@media (max-width: 700px) { .tpl-stp-tools { position: static; } .tpl-stp::before { left: 21px; } .tpl-stp-g { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; } .tpl-stp-mark { width: 44px; height: 44px; font-size: 1.1rem; } .tpl-stp-mark small { display: none; } .tpl-stp-cards { grid-template-columns: 1fr; } }

/* ---------- Library: sidebar rows ---------- */
.tpl-sb-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 34px; }
.tpl-sb-tools .sol-lib-bar { margin: 0; }
.tpl-sb-filter { margin: 0; }
.tpl-sb-filter button { display: inline-flex; align-items: center; gap: 6px; }
.tpl-sb-g { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); }
.tpl-sb-side { position: sticky; top: 100px; align-self: start; padding: 22px; border-radius: 20px; background: var(--brand-soft); }
.tpl-sb-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); color: #fff; margin-bottom: 14px; }
.tpl-sb-side h3 { font-size: 1.15rem; margin-bottom: 6px; }
.tpl-sb-side p { margin: 0 0 12px; color: var(--body); font-size: .9rem; line-height: 1.5; }
.tpl-sb-side small { font-weight: 800; color: var(--brand); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.tpl-sb-cards { display: grid; gap: 12px; }
.tpl-sb .sol-tpl { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 20px; align-items: start; padding: 18px 20px; border-radius: 18px; }
.tpl-sb .sol-tpl:hover { transform: none; }
.tpl-sb-main { display: grid; gap: 8px; }
.tpl-sb .sol-tpl-text { border-radius: 0 14px 14px 14px; }
.tpl-sb-act { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }
.tpl-sb-act .sol-tpl-foot { justify-content: flex-end; }
@media (max-width: 860px) { .tpl-sb-g { grid-template-columns: 1fr; gap: 16px; padding: 22px 0; } .tpl-sb-side { position: static; } .tpl-sb .sol-tpl { grid-template-columns: 1fr; gap: 10px; } .tpl-sb-act { flex-direction: row; justify-content: space-between; align-items: center; } }

/* Library chrome on deep bands (grid / masonry) */
.tpl-band--deep .sol-lib-filter button:not([aria-pressed="true"]) { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }
.tpl-band--deep .sol-lib-group h3 { color: #fff; }
.tpl-band--deep .sol-lib-group > p { color: var(--t-deep-text); }
.tpl-band--deep .tpl-lib-note, .tpl-band--deep .sol-lib-group + .sol-tpl-why { color: var(--t-deep-text); }
.tpl-ba-call.is-dim i { display: block; height: 8px; width: 60%; border-radius: 4px; background: var(--soft); margin: 4px 0; }
.tpl-ba-call.is-dim i + i { width: 38%; }
.tpl-mw-lead { break-inside: avoid; display: block; }
.tpl-ib-bar, .tpl-mw-tools .sol-lib-bar, .tpl-stp-tools .sol-lib-bar, .tpl-sb-tools .sol-lib-bar { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.tpl .sol-anat-msg { overflow-wrap: anywhere; }
@media (max-width: 960px) { .tpl-hero--missed .tpl-hero-grid, .tpl-hero--lock .tpl-hero-grid, .tpl .tpl-hero-grid--rev { grid-template-columns: minmax(0, 1fr); } }

/* =========================================================
   Day 2 additions: six themes and six heroes (invoice, billchat, label, route, cart, funnel)
   ========================================================= */
.tpl-theme--navy { --brand: #1e3a8a; --brand-600: #172e6e; --brand-2: #eab308; --brand-soft: #eaf0fb; --t-deep: #0b1430; --t-deep-2: #1e3a8a; --t-tint: #f5f7fc; --t-on-deep: #fde68a; --t-deep-text: #c8d1e8; --t-glow: rgba(234,179,8,.2); }
.tpl-theme--plum { --brand: #86198f; --brand-600: #701a75; --brand-2: #e879f9; --brand-soft: #fbeafc; --t-deep: #1f0822; --t-deep-2: #581c63; --t-tint: #fdf6fd; --t-on-deep: #f0abfc; --t-deep-text: #e3cbe6; --t-glow: rgba(232,121,249,.26); }
.tpl-theme--ocean { --brand: #0e6178; --brand-600: #0b4f62; --brand-2: #22d3ee; --brand-soft: #e2f5f9; --t-deep: #041c24; --t-deep-2: #155e75; --t-tint: #f2f9fb; --t-on-deep: #67e8f9; --t-deep-text: #bcdbe3; --t-glow: rgba(34,211,238,.24); }
.tpl-theme--kraft { --brand: #7a4f2a; --brand-600: #613e20; --brand-2: #d9a066; --brand-soft: #f6ede2; --t-deep: #1d140c; --t-deep-2: #5a3b20; --t-tint: #fbf7f1; --t-on-deep: #f1c58f; --t-deep-text: #e3d5c4; --t-glow: rgba(217,160,102,.26); }
.tpl-theme--berry { --brand: #9d174d; --brand-600: #831843; --brand-2: #f472b6; --brand-soft: #fde9f2; --t-deep: #22060f; --t-deep-2: #831843; --t-tint: #fff6fa; --t-on-deep: #f9a8d4; --t-deep-text: #ecccd9; --t-glow: rgba(244,114,182,.26); }
.tpl-theme--olive { --brand: #3f6212; --brand-600: #365314; --brand-2: #facc15; --brand-soft: #eff5e0; --t-deep: #10170a; --t-deep-2: #3f6212; --t-tint: #f8faf1; --t-on-deep: #fde047; --t-deep-text: #d3dcc2; --t-glow: rgba(250,204,21,.2); }

/* Dark Day 2 heroes share the light-on-dark copy styles */
.tpl-hero--dk { color: var(--t-deep-text); }
.tpl-hero--dk h1, .tpl-hero--dk .crumbs [aria-current] { color: #fff; }
.tpl-hero--dk .tpl-hero-sub { color: var(--t-deep-text); }
.tpl-hero--dk .btn--ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.tpl-hero--dk .btn--ghost:hover { color: #fff; border-color: #fff; }
.tpl-hero--dk .tpl-hero-center .hero-actions { justify-content: center; }
.tpl-statbig--light { border-top-color: var(--line); }
.tpl-statbig--light b { color: var(--brand); }
.tpl-statbig--light li { color: var(--muted); }

/* Shared stage track (invoice, label) */
.tpl-inv-steps, .tpl-lbl-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: relative; }
.tpl-inv-steps::before, .tpl-lbl-steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 11px; height: 2px; background: var(--line); }
.tpl-inv-steps li, .tpl-lbl-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.tpl-inv-steps small, .tpl-lbl-steps small { font-size: .72rem; line-height: 1.25; color: var(--muted); font-weight: 600; }
.tpl-inv-steps-dot, .tpl-lbl-steps-dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); position: relative; z-index: 1; }
.tpl-inv-steps-dot .i, .tpl-lbl-steps-dot .i { width: 12px; height: 12px; stroke-width: 3; }
.is-done > .tpl-inv-steps-dot, .is-done > .tpl-lbl-steps-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.is-now > .tpl-inv-steps-dot, .is-now > .tpl-lbl-steps-dot { border-color: var(--brand-2); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand-2) 28%, transparent); }
.tpl-inv-steps .is-now small, .tpl-lbl-steps .is-now small { color: var(--ink); }

/* Invoice hero */
.tpl-hero--invoice { background: linear-gradient(180deg, var(--t-tint), #fff 85%); }
.tpl-hero--invoice::before { background-image: linear-gradient(color-mix(in srgb, var(--brand) 7%, transparent) 1px, transparent 1px); background-size: 100% 34px; }
.tpl-inv { position: relative; max-width: 470px; width: 100%; justify-self: end; }
.tpl-inv-paper { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 26px 28px 24px; box-shadow: var(--shadow-lg); border-left: 8px solid var(--brand); }
.tpl-inv-stamp { position: absolute; top: 20px; right: 18px; transform: rotate(-9deg); padding: 6px 12px; border: 3px double var(--brand-2); color: color-mix(in srgb, var(--brand-2) 70%, #000); font-family: var(--display); font-weight: 800; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; border-radius: 6px; background: color-mix(in srgb, var(--brand-2) 10%, #fff); }
.tpl-inv-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid var(--line); padding-right: 110px; }
.tpl-inv-top small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.tpl-inv-top b { font-family: var(--display); font-size: 1.2rem; color: var(--ink); }
.tpl-inv-top > span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.tpl-inv-rows { margin: 0; display: grid; gap: 8px; }
.tpl-inv-rows div { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; }
.tpl-inv-rows dt { color: var(--muted); }
.tpl-inv-rows dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.tpl-inv-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: var(--brand-soft); }
.tpl-inv-total span { font-weight: 700; color: var(--ink); font-size: .9rem; }
.tpl-inv-total b { font-family: var(--display); font-size: 1.6rem; color: var(--brand); letter-spacing: -.02em; }
.tpl-inv-sms { position: relative; margin: -12px 0 0 -36px; max-width: 340px; background: var(--ink); color: #fff; border-radius: 18px 18px 18px 4px; padding: 12px 16px; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.tpl-inv-sms small { display: flex; align-items: center; gap: 6px; font-size: .72rem; color: rgba(255,255,255,.65); margin-bottom: 6px; }
.tpl-inv-sms small .i { width: 13px; height: 13px; }
.tpl-inv-sms p { margin: 0; font-size: .9rem; line-height: 1.5; }
@media (max-width: 960px) { .tpl-inv { justify-self: center; } .tpl-inv-sms { margin-left: 12px; } }
@media (max-width: 520px) { .tpl-inv-paper { padding: 20px 16px; border-left-width: 5px; } .tpl-inv-top { padding-right: 0; flex-wrap: wrap; } .tpl-inv-stamp { position: static; display: inline-block; margin-bottom: 10px; } .tpl-inv-sms { margin: -10px 10px 0; } }

/* Invoice-in-chat hero (WhatsApp) */
.tpl-hero--billchat { background: radial-gradient(700px 500px at 85% 20%, var(--t-glow), transparent 60%), linear-gradient(160deg, var(--t-deep) 40%, var(--t-deep-2) 140%); }
.tpl-bc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 460px; width: 100%; justify-self: end; }
.tpl-bc-chat, .tpl-rt-chat { border-radius: 22px; overflow: hidden; background: #efeae2; box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.tpl-bc-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #075e54; color: #fff; }
.tpl-bc-head .chat-avatar { margin: 0; width: 34px; height: 34px; background: rgba(255,255,255,.2); }
.tpl-bc-head b { display: block; font-size: .95rem; }
.tpl-bc-head small { font-size: .74rem; color: rgba(255,255,255,.7); }
.tpl-bc-body, .tpl-rt-body, .tpl-fn-body { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.tpl-bc-file { align-self: flex-end; display: flex; align-items: center; gap: 10px; background: #d9fdd3; border-radius: 12px 0 12px 12px; padding: 10px 12px; min-width: 230px; color: #111; }
.tpl-bc-file > span { width: 36px; height: 42px; border-radius: 5px; display: grid; place-items: center; background: #e5484d; color: #fff; flex-shrink: 0; }
.tpl-bc-file b { display: block; font-size: .86rem; overflow-wrap: anywhere; }
.tpl-bc-file small { font-size: .74rem; color: #54656f; }
.tpl-bc-check { padding: 16px 18px; border-radius: 18px; border: 1px dashed rgba(255,255,255,.25); background: rgba(255,255,255,.05); }
.tpl-bc-check > b { display: flex; align-items: center; gap: 8px; color: #fff; font-family: var(--display); margin-bottom: 8px; }
.tpl-bc-check > b .i { color: var(--t-on-deep); }
.tpl-bc-check ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tpl-bc-check li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: .88rem; line-height: 1.45; }
.tpl-bc-check li > span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.tpl-bc-check li > span .i { width: 12px; height: 12px; stroke-width: 3; }
.tpl-bc-check .is-ok > span { background: var(--t-on-deep); color: var(--t-deep); }
.tpl-bc-check .is-no > span { background: rgba(255,255,255,.12); color: #fda4af; }
.tpl-bc-check code { color: #fff; font-size: .84rem; overflow-wrap: anywhere; }
@media (max-width: 960px) { .tpl-bc { justify-self: center; } }
@media (max-width: 420px) { .tpl-bc-file { min-width: 0; } }

/* Shipping-label hero */
.tpl-hero--label { background: linear-gradient(90deg, var(--t-tint) 0 48%, #fff 48%); }
.tpl-hero--label::before { display: none; }
.tpl-lbl { max-width: 440px; width: 100%; position: relative; }
.tpl-lbl-card { background: #fff; border: 2px solid var(--ink); border-radius: 6px; padding: 0 0 20px; box-shadow: 10px 10px 0 color-mix(in srgb, var(--brand) 22%, transparent), var(--shadow-lg); transform: rotate(-1.2deg); }
.tpl-lbl-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 2px solid var(--ink); }
.tpl-lbl-top > span { width: 40px; height: 40px; border-radius: 6px; display: grid; place-items: center; background: var(--ink); color: #fff; flex-shrink: 0; }
.tpl-lbl-top small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tpl-lbl-top b { font-family: var(--display); color: var(--ink); }
.tpl-lbl-top em { margin-left: auto; font-style: normal; font-weight: 800; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; background: var(--brand); color: #fff; }
.tpl-lbl-rows { margin: 0; padding: 12px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; border-bottom: 1px dashed var(--line); }
.tpl-lbl-rows dt { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tpl-lbl-rows dd { margin: 2px 0 0; color: var(--ink); font-weight: 700; font-size: .92rem; }
.tpl-lbl-code { padding: 14px 18px 4px; text-align: center; }
.tpl-lbl-code i { display: block; height: 54px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 7px, transparent 7px 8px, var(--ink) 8px 9px, transparent 9px 12px); }
.tpl-lbl-code small { display: block; margin-top: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; letter-spacing: .14em; color: var(--ink); }
.tpl-lbl-steps { margin: 12px 10px 0; }
.tpl-lbl-sms { margin: -6px 0 0 34px; position: relative; background: #34c759; color: #fff; border-radius: 18px 18px 4px 18px; padding: 12px 16px; box-shadow: 0 16px 36px rgba(0,0,0,.18); max-width: 360px; }
.tpl-lbl-sms small { display: flex; align-items: center; gap: 6px; font-size: .72rem; color: rgba(255,255,255,.85); margin-bottom: 6px; }
.tpl-lbl-sms small .i { width: 13px; height: 13px; }
.tpl-lbl-sms p { margin: 0; font-size: .9rem; line-height: 1.5; }
@media (max-width: 960px) { .tpl-hero--label { background: var(--t-tint); } .tpl-lbl { justify-self: center; } }
@media (max-width: 520px) { .tpl-lbl-card { transform: none; box-shadow: 6px 6px 0 color-mix(in srgb, var(--brand) 22%, transparent); } .tpl-lbl-rows { grid-template-columns: 1fr; } .tpl-lbl-sms { margin-left: 12px; } }

/* Delivery-route hero (WhatsApp) */
.tpl-hero--route { background: radial-gradient(900px 400px at 50% 100%, var(--t-glow), transparent 60%), var(--t-deep); }
.tpl-rt { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 22px; align-items: stretch; }
.tpl-rt-map { position: relative; border-radius: 22px; padding: 22px 26px 18px; background-color: color-mix(in srgb, var(--t-deep-2) 45%, var(--t-deep)); 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: 32px 32px; border: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; }
.tpl-rt-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.tpl-rt-head b { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-family: var(--display); font-size: 1.1rem; }
.tpl-rt-head b .i { color: var(--t-on-deep); }
.tpl-rt-head small { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--t-deep-text); font-size: .8rem; letter-spacing: .08em; }
.tpl-rt-line { position: relative; margin: auto 14px; padding: 70px 0 10px; }
.tpl-rt-line::before { content: ""; position: absolute; left: 0; right: 0; top: 84px; border-top: 3px dashed rgba(255,255,255,.3); }
.tpl-rt-line::after { content: ""; position: absolute; left: 0; width: var(--van); top: 83px; height: 5px; border-radius: 3px; background: var(--t-on-deep); }
.tpl-rt-van { position: absolute; top: 22px; left: var(--van); transform: translateX(-50%); width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--t-on-deep); color: var(--t-deep); z-index: 2; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.tpl-rt-van::after { content: ""; position: absolute; bottom: -7px; left: 50%; margin-left: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: var(--t-on-deep); }
.tpl-rt-line ol { list-style: none; margin: 0; padding: 0; position: relative; height: 70px; }
.tpl-rt-line li { position: absolute; left: var(--x); top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; width: 96px; text-align: center; }
.tpl-rt-line li > span { width: 16px; height: 16px; border-radius: 50%; background: var(--t-deep); border: 3px solid rgba(255,255,255,.45); display: grid; place-items: center; }
.tpl-rt-line li > span .i { width: 0; height: 0; }
.tpl-rt-line li.is-done > span, .tpl-rt-line li.is-now > span { border-color: var(--t-on-deep); background: var(--t-on-deep); }
.tpl-rt-line small { font-size: .76rem; line-height: 1.3; color: var(--t-deep-text); }
.tpl-rt-line li.is-now small { color: #fff; font-weight: 700; }
.tpl-rt-line li:first-child { transform: none; align-items: flex-start; text-align: left; }
.tpl-rt-line li:last-child { transform: translateX(-100%); align-items: flex-end; text-align: right; }
.tpl-rt-note { margin: 6px 0 0; display: flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--t-deep-text); }
.tpl-rt-note .i { width: 13px; height: 13px; }
@media (max-width: 900px) { .tpl-rt { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .tpl-rt-map { padding: 18px 16px; } .tpl-rt-line { margin: 10px 4px; } .tpl-rt-line li { width: 64px; } .tpl-rt-line small { font-size: .66rem; } }

/* Cart hero */
.tpl-hero--cart { background: radial-gradient(600px 420px at 90% 30%, color-mix(in srgb, var(--brand-2) 30%, transparent), transparent 65%), #fff; }
.tpl-hero--cart::before { background-image: radial-gradient(color-mix(in srgb, var(--brand) 14%, transparent) 1.2px, transparent 1.6px); background-size: 18px 18px; }
.tpl-cart { max-width: 420px; width: 100%; justify-self: end; position: relative; }
.tpl-cart-card { background: #fff; border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 22px; }
.tpl-cart-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tpl-cart-top > span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.tpl-cart-top small { display: block; color: var(--muted); font-size: .78rem; }
.tpl-cart-top b { font-family: var(--display); font-size: 1.15rem; color: var(--ink); }
.tpl-cart-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tpl-cart-items li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; background: var(--t-tint); }
.tpl-cart-th { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--brand)); filter: hue-rotate(calc(var(--h) * 1deg)); }
.tpl-cart-items b { display: block; color: var(--ink); font-size: .93rem; }
.tpl-cart-items small { color: var(--muted); font-size: .8rem; }
.tpl-cart-items em { font-style: normal; font-weight: 700; color: var(--ink); padding-right: 6px; }
.tpl-cart-sub { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 4px 0; padding-top: 12px; border-top: 1px dashed var(--line); }
.tpl-cart-sub span { color: var(--muted); }
.tpl-cart-sub b { font-family: var(--display); font-size: 1.4rem; color: var(--ink); }
.tpl-cart-flag { margin-top: 14px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .86rem; }
.tpl-cart-flag .i { width: 16px; height: 16px; }
.tpl-cart-sms { margin: -12px -18px 0 40px; position: relative; background: #34c759; color: #fff; border-radius: 18px 18px 4px 18px; padding: 12px 16px; box-shadow: 0 16px 36px rgba(0,0,0,.18); }
.tpl-cart-sms small { display: flex; align-items: center; gap: 6px; font-size: .72rem; color: rgba(255,255,255,.85); margin-bottom: 6px; }
.tpl-cart-sms small .i { width: 13px; height: 13px; }
.tpl-cart-sms p { margin: 0; font-size: .9rem; line-height: 1.5; }
@media (max-width: 960px) { .tpl-cart { justify-self: center; } }
@media (max-width: 520px) { .tpl-cart-sms { margin: -10px 6px 0 18px; } .tpl-cart-card { padding: 16px; } .tpl-cart-items li { grid-template-columns: 44px minmax(0, 1fr) auto; } .tpl-cart-th { width: 44px; height: 44px; } }

/* Checkout-funnel hero (WhatsApp) */
.tpl-hero--funnel { background: radial-gradient(700px 360px at 50% 0%, var(--t-glow), transparent 65%), linear-gradient(180deg, var(--t-deep), color-mix(in srgb, var(--t-deep-2) 50%, var(--t-deep)) 150%); }
.tpl-fn { margin: 48px auto 0; max-width: 1000px; }
.tpl-fn-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.tpl-fn-steps li { position: relative; padding: 16px 16px 18px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 4px; }
.tpl-fn-steps li > span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; margin-bottom: 6px; }
.tpl-fn-steps li > span .i { width: 14px; height: 14px; stroke-width: 2.6; }
.tpl-fn-steps b { color: #fff; font-family: var(--display); }
.tpl-fn-steps small { font-size: .8rem; color: var(--t-deep-text); line-height: 1.4; }
.tpl-fn-steps li.is-done > span { background: var(--t-on-deep); color: var(--t-deep); }
.tpl-fn-steps li.is-drop { border: 2px dashed var(--t-on-deep); background: rgba(255,255,255,.1); }
.tpl-fn-steps li.is-drop > span { background: #f87171; }
.tpl-fn-steps li.is-todo { opacity: .55; }
.tpl-fn-chat { margin: 18px auto 0; max-width: 560px; border-radius: 22px; background: #efeae2; box-shadow: 0 30px 70px rgba(0,0,0,.4); position: relative; }

.tpl-fn-tag { display: flex; align-items: center; gap: 6px; padding: 10px 16px 0; font-size: .74rem; color: #54656f; }
.tpl-fn-tag .i { width: 13px; height: 13px; }
@media (max-width: 760px) { .tpl-fn-steps { grid-auto-flow: row; } .tpl-fn-steps li { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; } .tpl-fn-steps li > span { margin: 0; } .tpl-fn-steps small { flex-basis: 100%; } }

/* Small status tags inside custom-section tables (Day 2) */
.tpl-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.tpl-tag--info { background: #e3f6ea; color: #0f6b3a; }
.tpl-tag--mkt { background: #fdecef; color: #a3123a; }
.tpl-tag--grey { background: #fff3dc; color: #8a4b08; }
.tpl-rt-events { list-style: none; margin: 0 0 4px; padding: 14px 0 0; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 8px; }
.tpl-rt-events li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; font-size: .86rem; color: var(--t-deep-text); }
.tpl-rt-events time { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; color: var(--t-on-deep); }
@media (max-width: 520px) { .tpl-rt-line li:not(:first-child):not(:last-child):not(.is-now) small { display: none; } .tpl-rt-events li { grid-template-columns: 1fr; gap: 0; } }

/* =========================================================
   Day 3 additions: five themes and five heroes (invite, invitechat, stub, rsvp, leadcard)
   ========================================================= */
.tpl-theme--gold { --brand: #8a5a00; --brand-600: #6f4800; --brand-2: #e0b84a; --brand-soft: #fbf1d9; --t-deep: #1c1405; --t-deep-2: #5c3d06; --t-tint: #fdf9ef; --t-on-deep: #f3d27a; --t-deep-text: #e6dcc4; --t-glow: rgba(224,184,74,.26); }
.tpl-theme--jade { --brand: #046c5a; --brand-600: #035446; --brand-2: #f5c451; --brand-soft: #e0f3ee; --t-deep: #04211c; --t-deep-2: #065f52; --t-tint: #f2faf8; --t-on-deep: #f5c451; --t-deep-text: #c2ddd6; --t-glow: rgba(245,196,81,.2); }
.tpl-theme--cobalt { --brand: #1d4ed8; --brand-600: #1e40af; --brand-2: #f97316; --brand-soft: #e7eefe; --t-deep: #0a1233; --t-deep-2: #1e3a8a; --t-tint: #f5f8ff; --t-on-deep: #fdba74; --t-deep-text: #c7d0ee; --t-glow: rgba(249,115,22,.24); }
.tpl-theme--copper { --brand: #9a3412; --brand-600: #7c2d12; --brand-2: #fb923c; --brand-soft: #fdeee4; --t-deep: #1f0e06; --t-deep-2: #7c2d12; --t-tint: #fff8f3; --t-on-deep: #fdba74; --t-deep-text: #ead2c4; --t-glow: rgba(251,146,60,.26); }
.tpl-theme--stone { --brand: #44403c; --brand-600: #292524; --brand-2: #0ea5e9; --brand-soft: #f0eeec; --t-deep: #1c1917; --t-deep-2: #44403c; --t-tint: #f8f7f5; --t-on-deep: #7dd3fc; --t-deep-text: #d6d3d1; --t-glow: rgba(14,165,233,.22); }

/* Invitation-card hero */
.tpl-hero--invite { background: radial-gradient(640px 420px at 86% 40%, color-mix(in srgb, var(--brand-2) 34%, transparent), transparent 66%), linear-gradient(180deg, var(--t-tint), #fff 90%); }
.tpl-hero--invite::before { background-image: radial-gradient(color-mix(in srgb, var(--brand-2) 40%, transparent) 1px, transparent 1.6px); background-size: 26px 26px; }
.tpl-inv8 { position: relative; max-width: 430px; width: 100%; justify-self: end; }
.tpl-inv8-card { background: #fffdf8; padding: 14px; border-radius: 4px; box-shadow: 0 2px 0 color-mix(in srgb, var(--brand-2) 40%, #fff), var(--shadow-lg); transform: rotate(1.6deg); }
.tpl-inv8-frame { border: 2px solid var(--brand-2); outline: 1px solid var(--brand-2); outline-offset: -8px; padding: 30px 26px 26px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tpl-inv8-kick { font-size: .74rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--brand); }
.tpl-inv8-title { font-family: var(--display); font-size: 1.75rem; line-height: 1.12; letter-spacing: -.02em; color: var(--ink); }
.tpl-inv8-host { font-style: italic; color: var(--body); font-size: .95rem; }
.tpl-inv8-rule { display: flex; align-items: center; gap: 10px; width: 70%; color: var(--brand-2); margin: 4px 0; }
.tpl-inv8-rule::before, .tpl-inv8-rule::after { content: ""; flex: 1; height: 1px; background: var(--brand-2); }
.tpl-inv8-rule .i { width: 14px; height: 14px; }
.tpl-inv8-rows { margin: 0; width: 100%; display: grid; gap: 6px; }
.tpl-inv8-rows div { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; text-align: left; font-size: .9rem; }
.tpl-inv8-rows dt { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.tpl-inv8-rows dd { margin: 0; color: var(--ink); font-weight: 600; }
.tpl-inv8-rsvp { margin-top: 10px; padding: 6px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .82rem; }
.tpl-inv8-sms { position: relative; margin: -18px 0 0 -40px; max-width: 330px; background: #34c759; color: #fff; border-radius: 18px 18px 18px 4px; padding: 12px 16px; box-shadow: 0 16px 36px rgba(0,0,0,.2); }
.tpl-inv8-sms small { display: flex; align-items: center; gap: 6px; font-size: .72rem; color: rgba(255,255,255,.85); margin-bottom: 6px; }
.tpl-inv8-sms small .i { width: 13px; height: 13px; }
.tpl-inv8-sms p { margin: 0; font-size: .9rem; line-height: 1.5; }
@media (max-width: 960px) { .tpl-inv8 { justify-self: center; } .tpl-inv8-sms { margin-left: 10px; } }
@media (max-width: 520px) { .tpl-inv8-card { transform: none; padding: 10px; } .tpl-inv8-frame { padding: 22px 14px 18px; } .tpl-inv8-title { font-size: 1.4rem; } .tpl-inv8-rows div { grid-template-columns: 1fr; gap: 0; } .tpl-inv8-sms { margin: -12px 8px 0; } }

/* Invitation-in-chat hero (WhatsApp) */
.tpl-hero--ichat { background: radial-gradient(760px 480px at 18% 30%, var(--t-glow), transparent 62%), linear-gradient(200deg, var(--t-deep) 45%, var(--t-deep-2) 150%); }
.tpl-ic { max-width: 440px; width: 100%; border-radius: 22px; overflow: hidden; background: #efeae2; box-shadow: 0 30px 70px rgba(0,0,0,.45); transform: rotate(-1.2deg); }
.tpl-ic-body { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.tpl-ic-media { align-self: flex-end; margin: 0; width: 82%; background: #d9fdd3; border-radius: 12px 0 12px 12px; padding: 5px; color: #111; }
.tpl-ic-poster { aspect-ratio: 4 / 3; border-radius: 9px; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; background: radial-gradient(circle at 80% 20%, var(--brand-2), transparent 45%), linear-gradient(150deg, var(--brand), var(--t-deep)); color: #fff; }
.tpl-ic-poster small { font-size: .66rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--t-on-deep); }
.tpl-ic-poster b { font-family: var(--display); font-size: 1.35rem; line-height: 1.1; }
.tpl-ic-poster span { font-size: .8rem; opacity: .9; }
.tpl-ic-media figcaption { padding: 8px 6px 4px; font-size: .86rem; line-height: 1.45; }
.tpl-ic-place { align-self: flex-end; width: 82%; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; background: #d9fdd3; border-radius: 12px 0 12px 12px; padding: 6px; color: #111; }
.tpl-ic-map { height: 56px; border-radius: 8px; display: grid; place-items: center; background-color: #e8f0e0; background-image: linear-gradient(#cfdcc4 1px, transparent 1px), linear-gradient(90deg, #cfdcc4 1px, transparent 1px), linear-gradient(35deg, transparent 46%, #fff 46% 54%, transparent 54%); background-size: 12px 12px, 12px 12px, 100% 100%; }
.tpl-ic-map i { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #e5484d; display: grid; place-items: center; }
.tpl-ic-map .i { width: 13px; height: 13px; color: #fff; transform: rotate(45deg); }
.tpl-ic-place b { display: block; font-size: .86rem; }
.tpl-ic-place small { font-size: .76rem; color: #54656f; }
.tpl-ic .tpl-bb { max-width: 82%; }
@media (max-width: 960px) { .tpl-hero--ichat .tpl-hero-grid--rev { grid-template-columns: minmax(0, 1fr); } .tpl-ic { justify-self: center; order: 2; } }
@media (max-width: 520px) { .tpl-ic { transform: none; } .tpl-ic-media, .tpl-ic-place { width: 92%; } }

/* Ticket-stub hero */
.tpl-hero--stub { background: radial-gradient(520px 520px at 78% 45%, var(--t-glow), transparent 60%), repeating-linear-gradient(115deg, transparent 0 60px, rgba(255,255,255,.025) 60px 61px), var(--t-deep); }
.tpl-stub { max-width: 480px; width: 100%; justify-self: end; position: relative; }
.tpl-stub-tk { display: grid; grid-template-columns: minmax(0, 1fr) 130px; border-radius: 16px; filter: drop-shadow(0 26px 50px rgba(0,0,0,.45)); transform: rotate(-2deg); }
.tpl-stub-main { position: relative; background: #fff; border-radius: 16px 0 0 16px; padding: 22px 22px 20px; border-right: 2px dashed var(--line); -webkit-mask: radial-gradient(circle 12px at 100% 0, transparent 98%, #000) top right / 100% 51% no-repeat, radial-gradient(circle 12px at 100% 100%, transparent 98%, #000) bottom right / 100% 51% no-repeat; mask: radial-gradient(circle 12px at 100% 0, transparent 98%, #000) top right / 100% 51% no-repeat, radial-gradient(circle 12px at 100% 100%, transparent 98%, #000) bottom right / 100% 51% no-repeat; }
.tpl-stub-main > small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); }
.tpl-stub-main > b { display: block; font-family: var(--display); font-size: 1.4rem; line-height: 1.15; color: var(--ink); margin: 4px 0 14px; }
.tpl-stub-rows { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.tpl-stub-rows dt { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tpl-stub-rows dd { margin: 2px 0 0; color: var(--ink); font-weight: 700; font-size: .9rem; }
.tpl-stub-tear { background: var(--brand); color: #fff; border-radius: 0 16px 16px 0; padding: 18px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; -webkit-mask: radial-gradient(circle 12px at 0 0, transparent 98%, #000) top left / 100% 51% no-repeat, radial-gradient(circle 12px at 0 100%, transparent 98%, #000) bottom left / 100% 51% no-repeat; mask: radial-gradient(circle 12px at 0 0, transparent 98%, #000) top left / 100% 51% no-repeat, radial-gradient(circle 12px at 0 100%, transparent 98%, #000) bottom left / 100% 51% no-repeat; }
.tpl-stub-tear > span { font-size: .66rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.tpl-stub-tear > b { font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--brand-2); }
.tpl-stub-tear > small { font-size: .76rem; line-height: 1.3; }
.tpl-stub-code { display: block; width: 70%; height: 34px; margin-top: 8px; background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 8px); opacity: .8; }
.tpl-stub-sms { margin: 18px 0 0 34px; max-width: 360px; background: #34c759; color: #fff; border-radius: 18px 18px 4px 18px; padding: 12px 16px; box-shadow: 0 16px 36px rgba(0,0,0,.3); }
.tpl-stub-sms small { display: flex; align-items: center; gap: 6px; font-size: .72rem; color: rgba(255,255,255,.85); margin-bottom: 6px; }
.tpl-stub-sms small .i { width: 13px; height: 13px; }
.tpl-stub-sms p { margin: 0; font-size: .9rem; line-height: 1.5; }
@media (max-width: 960px) { .tpl-stub { justify-self: center; } }
@media (max-width: 520px) { .tpl-stub-tk { grid-template-columns: minmax(0, 1fr) 92px; transform: none; } .tpl-stub-main { padding: 18px 14px; } .tpl-stub-rows { grid-template-columns: 1fr; } .tpl-stub-tear > b { font-size: 2rem; } .tpl-stub-sms { margin: 14px 4px 0 12px; } }

/* RSVP-board hero (WhatsApp) */
.tpl-hero--rsvp { background: radial-gradient(900px 380px at 50% 100%, color-mix(in srgb, var(--brand-2) 26%, transparent), transparent 62%), linear-gradient(180deg, var(--t-tint), #fff 80%); }
.tpl-hero--rsvp .tpl-hero-center .hero-actions { justify-content: center; }
.tpl-rs { margin: 44px auto 0; max-width: 980px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 22px; align-items: start; }
.tpl-rs-board { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 22px; }
.tpl-rs-head { display: flex; align-items: center; gap: 12px; }
.tpl-rs-head > span { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; flex-shrink: 0; }
.tpl-rs-head small { display: block; font-size: .78rem; color: var(--muted); }
.tpl-rs-head b { font-family: var(--display); font-size: 1.15rem; color: var(--ink); }
.tpl-rs-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin: 18px 0 10px; background: var(--line); }
.tpl-rs-bar i { width: var(--w); }
.tpl-rs-bar .is-going, .tpl-rs-keys .is-going b { background: var(--brand); }
.tpl-rs-bar .is-maybe, .tpl-rs-keys .is-maybe b { background: var(--brand-2); }
.tpl-rs-bar .is-none, .tpl-rs-keys .is-none b { background: #cbd5e1; }
.tpl-rs-bar .is-no, .tpl-rs-keys .is-no b { background: #f87171; }
.tpl-rs-keys { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.tpl-rs-keys li { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.tpl-rs-keys b { min-width: 26px; height: 22px; padding: 0 6px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-size: .78rem; }
.tpl-rs-keys .is-none b { color: var(--ink); }
.tpl-rs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tpl-rs-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 12px; background: var(--t-tint); }
.tpl-rs-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.tpl-rs-list b { color: var(--ink); font-size: .9rem; }
.tpl-rs-list em { font-style: normal; font-size: .76rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #e2e8f0; color: #334155; white-space: nowrap; }
.tpl-rs-list em.is-going { background: var(--brand-soft); color: var(--brand); }
.tpl-rs-list em.is-maybe { background: color-mix(in srgb, var(--brand-2) 22%, #fff); color: color-mix(in srgb, var(--brand-2) 55%, #000); }
.tpl-rs-list em.is-no { background: #fee2e2; color: #b91c1c; }
.tpl-rs-note { margin: 12px 0 0; display: flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--muted); }
.tpl-rs-note .i { width: 13px; height: 13px; }
.tpl-rs-chat { border-radius: 22px; overflow: hidden; background: #efeae2; box-shadow: var(--shadow-lg); }
.tpl-rs-body { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
@media (max-width: 860px) { .tpl-rs { grid-template-columns: minmax(0, 1fr); } }

/* Dormant-lead hero */
.tpl-hero--lead { background: linear-gradient(180deg, #f5f3f0, #fff 85%); }
.tpl-hero--lead::before { background-image: radial-gradient(rgba(120,113,108,.22) 1px, transparent 1.4px); background-size: 14px 14px; }
.tpl-ld { position: relative; max-width: 440px; width: 100%; justify-self: end; }
.tpl-ld-card { position: relative; background: #fbfaf8; border: 1px solid #e7e2dc; border-radius: 18px; padding: 20px; box-shadow: var(--shadow-lg); filter: saturate(.55); }
.tpl-ld-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(rgba(120,113,108,.14) 1px, transparent 1.2px) 0 0 / 7px 7px, linear-gradient(160deg, rgba(255,255,255,0), rgba(214,211,209,.35)); }
.tpl-ld-top { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid #e7e2dc; }
.tpl-ld-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #e7e5e4; color: #78716c; font-weight: 800; font-size: 1.1rem; flex-shrink: 0; }
.tpl-ld-top small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #a8a29e; }
.tpl-ld-top b { font-family: var(--display); font-size: 1.15rem; color: #57534e; }
.tpl-ld-top em { margin-left: auto; font-style: normal; font-size: .74rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: #e0f2fe; color: #0369a1; white-space: nowrap; }
.tpl-ld-rows { margin: 0; display: grid; gap: 7px; }
.tpl-ld-rows div { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; }
.tpl-ld-rows dt { color: #a8a29e; }
.tpl-ld-rows dd { margin: 0; color: #57534e; font-weight: 600; text-align: right; }
.tpl-ld-last { margin-top: 12px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: #f0eeec; color: #78716c; font-size: .84rem; font-weight: 700; }
.tpl-ld-last .i { width: 15px; height: 15px; }
.tpl-ld-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: relative; }
.tpl-ld-steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 11px; height: 2px; background: #e7e2dc; }
.tpl-ld-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.tpl-ld-steps small { font-size: .7rem; line-height: 1.25; color: #a8a29e; font-weight: 600; }
.tpl-ld-steps-dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid #e7e2dc; position: relative; z-index: 1; }
.tpl-ld-steps-dot .i { width: 12px; height: 12px; stroke-width: 3; }
.tpl-ld-steps .is-done > .tpl-ld-steps-dot { background: #a8a29e; border-color: #a8a29e; color: #fff; }
.tpl-ld-steps .is-now > .tpl-ld-steps-dot { border-color: #78716c; border-style: dashed; }
.tpl-ld-steps .is-now small { color: #57534e; }
.tpl-ld-sms { position: relative; margin: -14px 0 0 -34px; max-width: 330px; background: var(--brand-2); color: #fff; border-radius: 18px 18px 18px 4px; padding: 12px 16px; box-shadow: 0 16px 36px rgba(0,0,0,.2); }
.tpl-ld-sms small { display: flex; align-items: center; gap: 6px; font-size: .72rem; color: rgba(255,255,255,.88); margin-bottom: 6px; }
.tpl-ld-sms small .i { width: 13px; height: 13px; }
.tpl-ld-sms p { margin: 0; font-size: .9rem; line-height: 1.5; }
.tpl-ld-reply { margin: 10px 0 0 auto; max-width: 260px; background: #e9e9eb; color: #111; border-radius: 18px 18px 4px 18px; padding: 10px 14px; font-size: .9rem; line-height: 1.45; }
@media (max-width: 960px) { .tpl-ld { justify-self: center; } .tpl-ld-sms { margin-left: 10px; } }
@media (max-width: 520px) { .tpl-ld-card { padding: 16px; } .tpl-ld-top { flex-wrap: wrap; } .tpl-ld-top em { margin-left: 54px; } .tpl-ld-sms { margin: -10px 8px 0; } .tpl-ld-reply { margin-right: 8px; } }
.tpl-hero--light .tpl-statchips li { background: #fff; border-color: color-mix(in srgb, var(--brand) 20%, var(--line)); color: var(--muted); box-shadow: 0 4px 14px rgba(15,23,42,.05); }
.tpl-hero--light .tpl-statchips b { color: var(--brand); }
