:root{--tenant-primary:#f7c948;--tenant-accent:#22d3ee;--bg:#050915;--panel:rgba(8,15,30,.78);--text:#eef8ff;--muted:#a8bed0;--line:rgba(125,211,252,.22)}*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,system-ui,sans-serif;background:radial-gradient(circle at 20% 0%,rgba(247,201,72,.16),transparent 28%),linear-gradient(135deg,#050915,#0a1224 55%,#050915);color:var(--text);min-height:100vh}#tenant-plexus{position:fixed;inset:0;z-index:-1;opacity:.7}.site-header{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;align-items:center;padding:18px clamp(20px,5vw,72px);background:rgba(5,9,21,.78);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;color:var(--text);text-decoration:none;font-weight:800}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,var(--tenant-primary),var(--tenant-accent));color:#06101f;font-size:1.35rem}.site-header nav{display:flex;gap:18px;align-items:center}.site-header nav a{color:var(--muted);text-decoration:none}.site-header nav a:hover{color:var(--tenant-primary)}.admin-link{border:1px solid var(--line);padding:8px 12px;border-radius:999px}.hero{padding:clamp(80px,12vw,155px) clamp(20px,7vw,100px) clamp(60px,8vw,90px);max-width:1180px}.preview-badge{display:inline-flex;padding:8px 12px;border:1px solid rgba(247,201,72,.4);border-radius:999px;color:var(--tenant-primary);background:rgba(247,201,72,.08);margin-bottom:18px}.eyebrow{color:var(--tenant-primary);text-transform:uppercase;letter-spacing:.16em;font-weight:800;font-size:.78rem}.hero h1{font-size:clamp(2.6rem,7vw,6rem);line-height:.94;margin:.12em 0 .25em;max-width:980px}.lead{font-size:clamp(1.1rem,2vw,1.45rem);line-height:1.65;color:#d2e6f5;max-width:800px}.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:30px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 18px;border-radius:16px;text-decoration:none;border:1px solid var(--line);color:var(--text);font-weight:800;cursor:pointer;background:rgba(255,255,255,.04)}.btn.primary{background:linear-gradient(135deg,var(--tenant-primary),var(--tenant-accent));color:#04101f;border:0}.btn:hover{transform:translateY(-2px);filter:brightness(1.08)}.section{padding:52px clamp(20px,7vw,100px);max-width:1280px;margin:0 auto}.section-heading{margin-bottom:22px}.section h2{font-size:clamp(2rem,4vw,3.4rem);margin:.1em 0 .4em}.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.card,.contact-card,.split,.panel,.login-card{border:1px solid var(--line);background:linear-gradient(180deg,rgba(8,15,30,.82),rgba(6,10,20,.72));box-shadow:0 24px 60px rgba(0,0,0,.28);border-radius:26px}.card{padding:26px;min-height:190px}.card h3{margin-top:0;color:#fff}.card p,.split p,.contact-card p,.small{color:var(--muted);line-height:1.65}.split{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:28px;padding:38px}.contact-card{padding:42px}footer{padding:40px;text-align:center;color:var(--muted);border-top:1px solid var(--line)}.admin-screen,.cms-admin{background:#060b16}.login-card{max-width:460px;margin:8vh auto;padding:34px}.login-card form,.admin-editor form{display:grid;gap:16px}label{display:grid;gap:8px;color:#d8e9f6;font-weight:700}input,textarea,select{width:100%;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.05);color:var(--text);padding:12px;font:inherit}textarea{resize:vertical}.error{background:rgba(248,113,113,.12);border:1px solid rgba(248,113,113,.35);color:#fecaca;padding:12px;border-radius:12px}.success{background:rgba(34,197,94,.12);border:1px solid rgba(34,197,94,.35);color:#bbf7d0;padding:12px;border-radius:12px}.admin-topbar{display:flex;justify-content:space-between;align-items:center;padding:18px 28px;border-bottom:1px solid var(--line);background:#08101e}.admin-topbar div{display:grid}.admin-topbar small{color:var(--muted)}.admin-topbar nav{display:flex;gap:16px}.admin-topbar a{color:var(--tenant-primary);text-decoration:none}.admin-editor{max-width:1100px;margin:32px auto;padding:0 20px}.panel{padding:28px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid .wide{grid-column:1/-1}@media(max-width:760px){.site-header{position:relative;align-items:flex-start;gap:16px;flex-direction:column}.site-header nav{flex-wrap:wrap}.card-grid,.split,.form-grid{grid-template-columns:1fr}.hero{padding-top:58px}.admin-topbar{align-items:flex-start;flex-direction:column;gap:12px}}


.brand-logo{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:rgba(255,255,255,.05);border:1px solid var(--line);overflow:hidden}.brand-logo img{display:block;width:100%;height:100%;object-fit:contain;padding:4px}.preview-badge.muted{color:var(--muted);border-color:rgba(168,190,208,.35);background:rgba(168,190,208,.07);margin-left:8px}.admin-section{margin:26px 0;padding:22px;border:1px solid var(--line);border-radius:22px;background:rgba(255,255,255,.025)}.admin-section h2,.repeat-editor h2{margin:.1em 0 .8em;font-size:1.35rem}.logo-row{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.logo-row img{width:108px;height:72px;object-fit:contain;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.04);padding:8px}.inline-upload{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.repeat-editor{border:1px solid rgba(125,211,252,.16);border-radius:18px;padding:18px;background:rgba(255,255,255,.025)}.repeat-row{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:14px;margin:0 0 14px;padding:0 0 14px;border-bottom:1px solid rgba(125,211,252,.12)}.repeat-row:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:18px}table{width:100%;border-collapse:collapse;min-width:760px}th,td{text-align:left;padding:12px 14px;border-bottom:1px solid rgba(125,211,252,.16);vertical-align:top}th{color:#fff;background:rgba(255,255,255,.04)}td{color:var(--muted)}code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--tenant-primary)}.row-actions,.reset-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.reset-row input{max-width:360px}.form-grid input[type=color]{height:48px;padding:5px}@media(max-width:760px){.repeat-row{grid-template-columns:1fr}.inline-upload{display:grid;width:100%}.logo-row{align-items:flex-start}.preview-badge.muted{margin-left:0;margin-top:8px}}

/* Stage 4 page management */
.site-header nav a[aria-current="page"]{color:var(--tenant-primary);font-weight:900}.page-hero{padding-bottom:clamp(42px,6vw,70px)}.page-content{max-width:920px}.page-content p{color:#d2e6f5;font-size:1.06rem;line-height:1.78;margin:0 0 1.25rem}.check-row{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:14px;padding:12px;background:rgba(255,255,255,.035)}.check-row input{width:auto}.danger-form{margin-top:20px;padding-top:18px;border-top:1px solid rgba(248,113,113,.25)}.btn.danger{border-color:rgba(248,113,113,.5);color:#fecaca;background:rgba(248,113,113,.10)}.btn.danger:hover{background:rgba(248,113,113,.16)}


/* Stage 5 media library and page images */
.hero-image-card{margin:2rem auto 0;max-width:min(960px,100%);border:1px solid rgba(255,255,255,.16);border-radius:24px;overflow:hidden;background:rgba(255,255,255,.045);box-shadow:0 24px 70px rgba(0,0,0,.35)}
.hero-image-card img{display:block;width:100%;height:auto;max-height:none;object-fit:contain}
.page-content{max-width:980px}.image-field-note{display:flex;align-items:end;padding:0 0 .35rem}.image-field-note a{color:var(--tenant-accent);font-weight:800;text-decoration:none}.selected-image-preview{border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:.75rem;background:rgba(255,255,255,.04)}.selected-image-preview img{display:block;max-width:320px;width:100%;height:auto;border-radius:12px}.media-upload{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}.media-upload input[type=file]{border:1px solid rgba(255,255,255,.14);border-radius:14px;padding:.85rem;background:rgba(255,255,255,.05);color:#e5f6ff}.media-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}.media-card{border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:1rem;background:rgba(255,255,255,.045);display:flex;flex-direction:column;gap:.8rem}.media-thumb{display:block;aspect-ratio:16/10;border-radius:14px;overflow:hidden;background:rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.08)}.media-thumb img{width:100%;height:100%;object-fit:cover;display:block}.media-meta{display:flex;flex-direction:column;gap:.35rem;min-width:0}.media-meta strong{font-size:.94rem;overflow-wrap:anywhere}.media-meta span{color:#a9bfca;font-size:.84rem}.media-meta code{font-size:.75rem;white-space:normal;overflow-wrap:anywhere;background:rgba(0,0,0,.26);border:1px solid rgba(255,255,255,.08);border-radius:10px;padding:.45rem}.badge{display:inline-flex;align-self:flex-start;border:1px solid rgba(34,211,238,.35);background:rgba(34,211,238,.12);color:#bff7ff;border-radius:999px;padding:.22rem .55rem;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.btn[disabled]{opacity:.45;cursor:not-allowed}
@media (max-width:720px){.hero-image-card{border-radius:18px}.media-grid{grid-template-columns:1fr}.media-upload{align-items:stretch}.media-upload input[type=file],.media-upload .btn{width:100%}}


/* Stage 6 tenant blog/news module */
.blog-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.25rem}.blog-card{border:1px solid var(--line);background:linear-gradient(180deg,rgba(8,15,30,.82),rgba(6,10,20,.72));border-radius:24px;overflow:hidden;box-shadow:0 24px 60px rgba(0,0,0,.28);display:flex;flex-direction:column}.blog-thumb{display:block;aspect-ratio:16/9;background:rgba(0,0,0,.24);border-bottom:1px solid rgba(255,255,255,.10);overflow:hidden}.blog-thumb img{display:block;width:100%;height:100%;object-fit:cover}.blog-card-body{padding:1.35rem;display:flex;flex-direction:column;gap:.75rem;flex:1}.blog-card-body h2{font-size:1.25rem;margin:0;line-height:1.25}.blog-card-body h2 a{color:#fff;text-decoration:none}.blog-card-body h2 a:hover{color:var(--tenant-primary)}.blog-card-body p{color:var(--muted);line-height:1.62;margin:0}.blog-card-body .btn{align-self:flex-start;margin-top:auto}.blog-article-hero .hero-image-card{max-width:min(1080px,100%)}.blog-article-content{max-width:900px}.blog-article-content p{font-size:1.06rem;line-height:1.78;color:#d2e6f5}.admin-editor .table-wrap form{margin:0}

/* Stage 7 tenant contact form and lead inbox */
.contact-card{display:grid;grid-template-columns:minmax(0,.85fr) minmax(320px,1.15fr);gap:2rem;align-items:start}.contact-copy{min-width:0}.contact-detail{margin:.6rem 0;color:#d2e6f5}.contact-detail a{color:var(--tenant-accent);font-weight:800;text-decoration:none}.contact-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;border:1px solid rgba(255,255,255,.12);border-radius:22px;background:rgba(0,0,0,.18);padding:1.1rem}.contact-form .wide,.contact-form .form-success,.contact-form .form-error{grid-column:1/-1}.contact-form label span{color:var(--muted);font-weight:600}.hp-field{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}.form-success{background:rgba(34,197,94,.12);border:1px solid rgba(34,197,94,.35);color:#bbf7d0;padding:12px;border-radius:12px;margin:0}.form-error{background:rgba(248,113,113,.12);border:1px solid rgba(248,113,113,.35);color:#fecaca;padding:12px;border-radius:12px;margin:0}.lead-list{display:grid;gap:1rem;margin-top:1.25rem}.lead-card{border:1px solid rgba(255,255,255,.12);border-radius:22px;background:rgba(255,255,255,.04);padding:1.2rem}.lead-card.is-new{border-color:rgba(247,201,72,.42);box-shadow:0 0 0 1px rgba(247,201,72,.12),0 20px 60px rgba(0,0,0,.25)}.lead-head{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.lead-head h2{margin:.1rem 0 .4rem;font-size:1.25rem}.lead-pill{display:inline-flex;border:1px solid rgba(247,201,72,.35);background:rgba(247,201,72,.1);color:var(--tenant-primary);border-radius:999px;padding:.35rem .65rem;text-transform:uppercase;letter-spacing:.08em;font-size:.72rem;font-weight:900}.lead-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem;margin:1rem 0}.lead-meta div{border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(0,0,0,.16);padding:.7rem;min-width:0}.lead-meta dt{color:var(--muted);font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;font-weight:900}.lead-meta dd{margin:.25rem 0 0;color:#eaf7ff;overflow-wrap:anywhere}.lead-meta a{color:var(--tenant-accent);font-weight:800}.lead-message{white-space:normal;color:#d2e6f5;line-height:1.7;border-top:1px solid rgba(255,255,255,.1);padding-top:1rem}.actions.compact{margin-top:1rem}.actions.compact form{display:inline-flex;margin:0}@media(max-width:900px){.contact-card{grid-template-columns:1fr}.lead-meta{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.contact-form,.lead-meta{grid-template-columns:1fr}.lead-head{display:grid}}

/* Stage 8 tenant SMTP settings */
.smtp-form .check,
.form-grid label.check{display:flex;align-items:center;gap:.7rem;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.035);padding:12px;min-height:48px}.smtp-form .check input,.form-grid label.check input{width:auto;min-width:18px}.smtp-form input[type=password]::placeholder{color:#8197a8}.smtp-form .actions{align-items:center}.admin-section ul.small{margin:.4rem 0 0;padding-left:1.2rem}.admin-section ul.small li{margin:.35rem 0}.lead-card .small strong{color:#eaf7ff}


/* Stage 9 theme/template presets */
body.theme-trade-services{background:radial-gradient(circle at 18% 0%,rgba(245,158,11,.18),transparent 30%),linear-gradient(135deg,#07101c,#111827 58%,#050915)}
body.theme-professional-services{background:radial-gradient(circle at 12% 0%,rgba(96,165,250,.18),transparent 28%),radial-gradient(circle at 86% 6%,rgba(167,139,250,.13),transparent 26%),linear-gradient(135deg,#050915,#0b1220 60%,#050915)}
body.theme-security-surveillance{background:radial-gradient(circle at 18% 0%,rgba(34,211,238,.18),transparent 28%),radial-gradient(circle at 92% 8%,rgba(239,68,68,.12),transparent 24%),linear-gradient(135deg,#020617,#08111f 60%,#030712)}
body.theme-events-night{background:radial-gradient(circle at 15% 2%,rgba(192,132,252,.2),transparent 28%),radial-gradient(circle at 85% 0%,rgba(34,211,238,.12),transparent 25%),linear-gradient(135deg,#070312,#12071f 60%,#020617)}
body.theme-it-cyber{background:radial-gradient(circle at 15% 0%,rgba(34,211,238,.18),transparent 28%),radial-gradient(circle at 90% 4%,rgba(52,211,153,.12),transparent 24%),linear-gradient(135deg,#020817,#061525 60%,#020617)}
.theme-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem}.theme-card{border:1px solid rgba(255,255,255,.12);border-radius:24px;background:linear-gradient(180deg,rgba(8,15,30,.82),rgba(6,10,20,.72));box-shadow:0 24px 60px rgba(0,0,0,.24);overflow:hidden;display:flex;flex-direction:column}.theme-card.is-current{border-color:rgba(247,201,72,.5);box-shadow:0 0 0 1px rgba(247,201,72,.15),0 24px 70px rgba(0,0,0,.34)}.theme-swatch{height:96px;background:radial-gradient(circle at 20% 20%,var(--swatch-primary),transparent 34%),radial-gradient(circle at 80% 30%,var(--swatch-accent),transparent 30%),linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.02));position:relative}.theme-swatch span{position:absolute;inset:20px;border:1px solid rgba(255,255,255,.32);border-radius:18px;background:linear-gradient(135deg,var(--swatch-primary),var(--swatch-accent));opacity:.75}.theme-card-body{padding:1.15rem;display:flex;flex-direction:column;gap:.7rem;flex:1}.theme-card-body h2{margin:0;font-size:1.35rem}.theme-card-body p{margin:0;color:var(--muted);line-height:1.6}.theme-actions{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:auto}.theme-actions .btn{flex:1 1 180px}.admin-topbar nav{flex-wrap:wrap;row-gap:8px}@media(max-width:760px){.theme-grid{grid-template-columns:1fr}.theme-actions .btn{width:100%}}

/* Stage 10 visual theme controls */
#tenant-plexus{position:fixed;inset:0;z-index:-1;opacity:.68;pointer-events:none}.bg-animation-none #tenant-plexus{display:none}.bg-animation-starfield #tenant-plexus{opacity:.78}.bg-animation-waves #tenant-plexus{opacity:.55}.bg-animation-industrial #tenant-plexus{opacity:.62}.bg-animation-aurora #tenant-plexus{opacity:.58}
body.theme-starter-one-page{background:radial-gradient(circle at 16% 8%,color-mix(in srgb,var(--tenant-primary) 18%,transparent),transparent 30%),radial-gradient(circle at 84% 10%,color-mix(in srgb,var(--tenant-accent) 16%,transparent),transparent 34%),linear-gradient(135deg,#050915,#091223 54%,#050915)}
body.theme-trade-services{background:linear-gradient(135deg,#140d04,#101827 52%,#0a0d13),repeating-linear-gradient(135deg,rgba(255,255,255,.035) 0 1px,transparent 1px 22px)}
body.theme-professional-services{--bg:#f5f8fc;--panel:rgba(255,255,255,.92);--text:#122033;--muted:#526174;--line:rgba(15,35,65,.13);background:radial-gradient(circle at 12% 0%,rgba(96,165,250,.16),transparent 32%),linear-gradient(135deg,#f7fbff,#eaf0f8 58%,#f8fbff);color:var(--text)}
body.theme-security-surveillance{background:radial-gradient(circle at 22% 0%,rgba(34,211,238,.19),transparent 30%),radial-gradient(circle at 78% 12%,rgba(239,68,68,.16),transparent 28%),linear-gradient(135deg,#02050b,#061525 55%,#050608)}
body.theme-events-night{background:radial-gradient(circle at 20% 12%,rgba(192,132,252,.28),transparent 30%),radial-gradient(circle at 80% 0%,rgba(34,211,238,.18),transparent 28%),linear-gradient(135deg,#0b0618,#1a0d2e 48%,#060714)}
body.theme-it-cyber{background:radial-gradient(circle at 18% 0%,rgba(34,211,238,.22),transparent 30%),radial-gradient(circle at 85% 14%,rgba(52,211,153,.14),transparent 32%),linear-gradient(135deg,#020814,#071421 55%,#020814)}
body.theme-coastal-waves{--bg:#061820;--panel:rgba(7,27,36,.78);--text:#eefcff;--muted:#b0d5dc;--line:rgba(45,212,191,.22);background:radial-gradient(circle at 12% 0%,rgba(56,189,248,.22),transparent 34%),radial-gradient(circle at 90% 12%,rgba(45,212,191,.2),transparent 35%),linear-gradient(135deg,#031219,#08303a 55%,#041920)}
.theme-professional-services .site-header{background:rgba(255,255,255,.76)}.theme-professional-services .site-header nav a,.theme-professional-services .brand{color:#122033}.theme-professional-services .lead{color:#435469}.theme-professional-services footer{background:rgba(255,255,255,.7)}
body.card-style-glass-glow .card,body.card-style-glass-glow .contact-card,body.card-style-glass-glow .split,body.card-style-glass-glow .panel,body.card-style-glass-glow .login-card{background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.035));border:1px solid color-mix(in srgb,var(--tenant-primary) 22%,rgba(255,255,255,.08));box-shadow:0 26px 80px rgba(0,0,0,.34),0 0 34px color-mix(in srgb,var(--tenant-primary) 12%,transparent);backdrop-filter:blur(18px)}
body.card-style-clean-solid .card,body.card-style-clean-solid .contact-card,body.card-style-clean-solid .split,body.card-style-clean-solid .panel,body.card-style-clean-solid .login-card{background:rgba(255,255,255,.92);color:#101928;border:1px solid rgba(15,35,65,.12);box-shadow:0 18px 50px rgba(15,23,42,.12);border-radius:18px}body.card-style-clean-solid .card p,body.card-style-clean-solid .split p,body.card-style-clean-solid .contact-card p{color:#566274}body.card-style-clean-solid .card h3,body.card-style-clean-solid .section h2,body.card-style-clean-solid .contact-card h2,body.card-style-clean-solid .split h2{color:#101928}
body.card-style-neon-outline .card,body.card-style-neon-outline .contact-card,body.card-style-neon-outline .split,body.card-style-neon-outline .panel,body.card-style-neon-outline .login-card{background:linear-gradient(180deg,rgba(5,12,24,.82),rgba(4,7,14,.88));border:1px solid color-mix(in srgb,var(--tenant-primary) 55%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tenant-accent) 18%,transparent),0 0 34px color-mix(in srgb,var(--tenant-primary) 18%,transparent);border-radius:10px}
body.card-style-soft-elevated .card,body.card-style-soft-elevated .contact-card,body.card-style-soft-elevated .split,body.card-style-soft-elevated .panel,body.card-style-soft-elevated .login-card{background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.055));border:1px solid rgba(255,255,255,.16);box-shadow:0 28px 70px rgba(0,0,0,.25);border-radius:34px}
body.card-style-industrial-rivet .card,body.card-style-industrial-rivet .contact-card,body.card-style-industrial-rivet .split,body.card-style-industrial-rivet .panel,body.card-style-industrial-rivet .login-card{position:relative;background:linear-gradient(180deg,rgba(19,24,32,.92),rgba(7,10,15,.9));border:1px solid rgba(245,158,11,.38);box-shadow:0 22px 52px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.08);border-radius:8px}body.card-style-industrial-rivet .card:before,body.card-style-industrial-rivet .contact-card:before,body.card-style-industrial-rivet .split:before{content:"";position:absolute;inset:10px;border:1px dashed rgba(255,255,255,.12);border-radius:4px;pointer-events:none}
body.card-style-editorial-panel .card,body.card-style-editorial-panel .contact-card,body.card-style-editorial-panel .split,body.card-style-editorial-panel .panel,body.card-style-editorial-panel .login-card{background:rgba(255,255,255,.86);color:#142033;border:1px solid rgba(25,45,75,.14);box-shadow:0 22px 48px rgba(31,45,70,.13);border-radius:4px}body.card-style-editorial-panel .card h3,body.card-style-editorial-panel .section h2,body.card-style-editorial-panel .split h2,body.card-style-editorial-panel .contact-card h2{color:#142033}body.card-style-editorial-panel .card p,body.card-style-editorial-panel .split p,body.card-style-editorial-panel .contact-card p{color:#4d5c70}
body.card-style-event-frost .card,body.card-style-event-frost .contact-card,body.card-style-event-frost .split,body.card-style-event-frost .panel,body.card-style-event-frost .login-card{background:linear-gradient(135deg,rgba(255,255,255,.12),rgba(192,132,252,.08));border:1px solid rgba(216,180,254,.26);box-shadow:0 24px 68px rgba(88,28,135,.25),0 0 34px rgba(34,211,238,.1);backdrop-filter:blur(20px);border-radius:28px}
.card,.contact-card,.split,.panel,.login-card{transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease,background .22s ease}.card:hover{transform:translateY(-5px)}
.theme-meta{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.theme-meta span{display:inline-flex;border:1px solid var(--line);border-radius:999px;padding:6px 10px;color:var(--muted);font-size:.78rem;background:rgba(255,255,255,.04)}.theme-card{overflow:hidden}.theme-card.is-current{outline:2px solid color-mix(in srgb,var(--tenant-primary) 60%,transparent)}
@supports not (color: color-mix(in srgb, red, blue)){body.card-style-glass-glow .card,body.card-style-glass-glow .contact-card,body.card-style-glass-glow .split,body.card-style-glass-glow .panel,body.card-style-glass-glow .login-card{border-color:rgba(125,211,252,.32);box-shadow:0 26px 80px rgba(0,0,0,.34)}body.card-style-neon-outline .card,body.card-style-neon-outline .contact-card,body.card-style-neon-outline .split,body.card-style-neon-outline .panel,body.card-style-neon-outline .login-card{border-color:rgba(125,211,252,.5)}}

/* Stage 11 advanced theme designer */
.tenant-bg-video{position:fixed;inset:0;width:100%;height:100%;object-fit:cover;z-index:-3;filter:saturate(1.05) contrast(1.06) brightness(.48);pointer-events:none}.bg-animation-custom-video:before,.bg-animation-custom-image:before{content:"";position:fixed;inset:0;z-index:-2;background:linear-gradient(135deg,rgba(2,6,23,.72),rgba(2,6,23,.4) 50%,rgba(2,6,23,.82));pointer-events:none}.bg-animation-custom-image{background-image:linear-gradient(135deg,rgba(2,6,23,.78),rgba(2,6,23,.42) 50%,rgba(2,6,23,.86)),var(--tenant-bg-media);background-size:cover;background-position:center;background-attachment:fixed}.bg-animation-custom-image #tenant-plexus,.bg-animation-custom-video #tenant-plexus{display:none}.background-manager{display:grid;gap:1rem}.background-preview{display:grid;grid-template-columns:220px minmax(0,1fr);gap:1rem;align-items:center}.background-preview img,.background-preview video{width:100%;aspect-ratio:16/9;object-fit:cover;border:1px solid var(--line);border-radius:18px;background:#020617}.palette-node22-cyber{--line:rgba(34,211,238,.24)}.palette-electric-blue{--line:rgba(167,139,250,.25)}.palette-trade-amber{--line:rgba(245,158,11,.28)}.palette-forest-green{--line:rgba(190,242,100,.25)}.palette-coastal-teal{--line:rgba(45,212,191,.25)}.palette-luxury-gold{--line:rgba(250,204,21,.28)}.palette-rose-magenta{--line:rgba(217,70,239,.25)}.palette-mono-slate{--line:rgba(226,232,240,.2)}.palette-security-red{--line:rgba(239,68,68,.3)}
body.layout-centered .hero{max-width:1080px;margin:0 auto;text-align:center}body.layout-centered .lead,body.layout-centered .hero h1{margin-left:auto;margin-right:auto}body.layout-centered .hero-actions{justify-content:center}body.layout-split-hero .hero{max-width:1360px;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.8fr);gap:2rem;align-items:center}body.layout-split-hero .hero .hero-image-card{grid-column:2;grid-row:1 / span 6;margin:0}body.layout-split-hero .hero>:not(.hero-image-card){grid-column:1}body.layout-wide-cards .card-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.35rem}body.layout-wide-cards .card{min-height:230px}body.layout-editorial{--text:#142033;--muted:#536174;--line:rgba(15,35,65,.14);background:linear-gradient(135deg,#f8fbff,#e8eef7 56%,#f8fbff);color:var(--text)}body.layout-editorial .site-header{background:rgba(255,255,255,.82)}body.layout-editorial .brand,body.layout-editorial .site-header nav a{color:#142033}body.layout-editorial .hero{max-width:960px}body.layout-editorial .lead,body.layout-editorial .page-content p{color:#435469}body.layout-editorial footer{background:rgba(255,255,255,.72)}body.layout-compact .hero{padding-top:clamp(52px,8vw,100px);padding-bottom:clamp(38px,6vw,64px)}body.layout-compact .section{padding-top:38px;padding-bottom:38px}body.layout-compact .card{min-height:150px;padding:22px}
body.effect-none .card:hover{transform:none}body.effect-premium-glow .hero h1{text-shadow:0 0 35px color-mix(in srgb,var(--tenant-primary) 22%,transparent)}body.effect-premium-glow .btn.primary{box-shadow:0 0 34px color-mix(in srgb,var(--tenant-primary) 25%,transparent)}body.effect-sharp-tech .card,body.effect-sharp-tech .btn,body.effect-sharp-tech .contact-card,body.effect-sharp-tech .split{border-radius:6px}body.effect-sharp-tech .eyebrow{letter-spacing:.24em}body.effect-soft-depth .card:hover{transform:translateY(-8px) scale(1.01)}body.effect-soft-depth .hero-image-card{box-shadow:0 28px 90px rgba(0,0,0,.28)}body.effect-kinetic-hover .card:hover{transform:translateY(-10px) rotateX(2deg);box-shadow:0 36px 90px rgba(0,0,0,.38),0 0 30px color-mix(in srgb,var(--tenant-accent) 18%,transparent)}
body.card-style-minimal-flat .card,body.card-style-minimal-flat .contact-card,body.card-style-minimal-flat .split,body.card-style-minimal-flat .panel,body.card-style-minimal-flat .login-card{background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.09);box-shadow:none;border-radius:14px}body.card-style-luxury-border .card,body.card-style-luxury-border .contact-card,body.card-style-luxury-border .split,body.card-style-luxury-border .panel,body.card-style-luxury-border .login-card{background:linear-gradient(180deg,rgba(16,20,28,.86),rgba(8,10,16,.78));border:1px solid color-mix(in srgb,var(--tenant-primary) 48%,rgba(255,255,255,.08));box-shadow:0 26px 78px rgba(0,0,0,.36),inset 0 0 0 1px rgba(255,255,255,.05);border-radius:30px}body.card-style-luxury-border .card:after,body.card-style-luxury-border .contact-card:after,body.card-style-luxury-border .split:after{content:"";position:absolute;inset:8px;border:1px solid color-mix(in srgb,var(--tenant-accent) 20%,transparent);border-radius:22px;pointer-events:none}body.card-style-luxury-border .card,body.card-style-luxury-border .contact-card,body.card-style-luxury-border .split{position:relative}body.card-style-bold-gradient .card,body.card-style-bold-gradient .contact-card,body.card-style-bold-gradient .split,body.card-style-bold-gradient .panel,body.card-style-bold-gradient .login-card{background:linear-gradient(135deg,color-mix(in srgb,var(--tenant-primary) 16%,rgba(8,15,30,.88)),color-mix(in srgb,var(--tenant-accent) 14%,rgba(6,10,20,.84)));border:1px solid color-mix(in srgb,var(--tenant-accent) 38%,rgba(255,255,255,.1));box-shadow:0 28px 70px rgba(0,0,0,.32);border-radius:24px}.theme-card-body .theme-meta{gap:6px}.theme-card-body .theme-meta span{font-size:.72rem}
@media(max-width:900px){body.layout-split-hero .hero{display:block}.background-preview{grid-template-columns:1fr}.background-preview img,.background-preview video{max-width:420px}}

/* Stage 12: readable dark dropdowns/select menus in tenant admin */
.cms-admin select,
.admin-screen select,
.admin-editor select,
.login-card select,
select {
  color-scheme: dark;
  background-color: #08111f !important;
  color: #eef8ff !important;
  border-color: rgba(125, 211, 252, .34) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035);
}

.cms-admin select option,
.admin-screen select option,
.admin-editor select option,
select option {
  background-color: #08111f !important;
  color: #eef8ff !important;
}

.cms-admin select optgroup,
.admin-screen select optgroup,
.admin-editor select optgroup,
select optgroup {
  background-color: #050915 !important;
  color: #a8eeff !important;
}

.cms-admin select:focus,
.admin-screen select:focus,
.admin-editor select:focus,
select:focus {
  outline: none;
  border-color: var(--tenant-accent) !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .18), inset 0 0 0 1px rgba(255, 255, 255, .04);
}

/* Stage 13: expanded visual controls - menu layouts, card shapes and extra backgrounds */
.bg-animation-matrix-rain #tenant-plexus,
.bg-animation-circuit-pulse #tenant-plexus,
.bg-animation-meteor-shower #tenant-plexus,
.bg-animation-geometric-orbs #tenant-plexus,
.bg-animation-diagonal-scan #tenant-plexus,
.bg-animation-bokeh-lights #tenant-plexus,
.bg-animation-sunrise-gradient #tenant-plexus{opacity:.72;display:block}
body.bg-animation-sunrise-gradient{background:linear-gradient(120deg,#07111f,#172554 34%,color-mix(in srgb,var(--tenant-primary) 22%,#111827) 70%,#050915);background-size:240% 240%;animation:n22cmsSunrise 22s ease-in-out infinite alternate}
@keyframes n22cmsSunrise{from{background-position:0 50%}to{background-position:100% 50%}}
body.bg-animation-diagonal-scan:before{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;background:repeating-linear-gradient(135deg,rgba(255,255,255,.035) 0 1px,transparent 1px 24px),radial-gradient(circle at 75% 10%,color-mix(in srgb,var(--tenant-accent) 16%,transparent),transparent 34%)}
body.bg-animation-circuit-pulse:before{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;background:linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px);background-size:48px 48px;mask-image:radial-gradient(circle at 50% 25%,#000,transparent 72%)}

body.menu-layout-centered .site-header{justify-content:center;flex-direction:column;gap:14px;text-align:center}body.menu-layout-centered .brand{justify-content:center}body.menu-layout-centered .site-header nav{justify-content:center;flex-wrap:wrap}
body.menu-layout-split .site-header{display:grid;grid-template-columns:1fr auto 1fr}body.menu-layout-split .brand{grid-column:1}body.menu-layout-split .site-header nav{grid-column:2;justify-content:center;flex-wrap:wrap}.menu-layout-split .admin-link{grid-column:auto}
body.menu-layout-stacked .site-header{flex-direction:column;align-items:center;gap:14px}body.menu-layout-stacked .site-header nav{justify-content:center;flex-wrap:wrap}
body.menu-layout-compact .site-header{padding:12px clamp(16px,4vw,46px)}body.menu-layout-compact .brand-mark{width:34px;height:34px;border-radius:10px;font-size:1.05rem}body.menu-layout-compact .site-header nav{gap:8px;flex-wrap:wrap}
body.menu-style-solid-bar .site-header{background:linear-gradient(135deg,color-mix(in srgb,var(--tenant-primary) 12%,#08101e),#08101e 58%,color-mix(in srgb,var(--tenant-accent) 10%,#08101e));backdrop-filter:none;border-bottom:2px solid color-mix(in srgb,var(--tenant-primary) 45%,transparent)}
body.menu-style-floating-pills .site-header{top:12px;margin:0 clamp(12px,3vw,40px);border-radius:999px;border:1px solid color-mix(in srgb,var(--tenant-accent) 28%,rgba(255,255,255,.08));box-shadow:0 18px 55px rgba(0,0,0,.28)}body.menu-style-floating-pills .site-header nav a{padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.04)}
body.menu-style-boxed-tabs .site-header nav a{padding:10px 14px;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:rgba(255,255,255,.04)}body.menu-style-boxed-tabs .site-header nav a:hover,body.menu-style-boxed-tabs .site-header nav a[aria-current="page"]{background:color-mix(in srgb,var(--tenant-primary) 18%,rgba(255,255,255,.05));border-color:color-mix(in srgb,var(--tenant-primary) 40%,transparent)}
body.menu-style-underline .site-header{background:rgba(255,255,255,.04);border-bottom:1px solid rgba(255,255,255,.08)}body.menu-style-underline .site-header nav a{padding:8px 2px;border-bottom:2px solid transparent}body.menu-style-underline .site-header nav a:hover,body.menu-style-underline .site-header nav a[aria-current="page"]{border-bottom-color:var(--tenant-primary)}
body.menu-style-neon-tabs .site-header nav a{padding:9px 13px;border:1px solid color-mix(in srgb,var(--tenant-accent) 28%,transparent);border-radius:14px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.03),0 0 18px color-mix(in srgb,var(--tenant-accent) 10%,transparent)}body.menu-style-neon-tabs .site-header nav a:hover,body.menu-style-neon-tabs .site-header nav a[aria-current="page"]{color:#fff;background:color-mix(in srgb,var(--tenant-accent) 14%,transparent);box-shadow:0 0 24px color-mix(in srgb,var(--tenant-accent) 24%,transparent)}
body.menu-style-industrial-strip .site-header{border-bottom:3px solid var(--tenant-primary);box-shadow:0 8px 0 rgba(0,0,0,.2)}body.menu-style-industrial-strip .site-header nav a{border-radius:3px;text-transform:uppercase;letter-spacing:.08em;font-size:.82rem}
body.menu-style-luxury-line .site-header{background:linear-gradient(180deg,rgba(8,10,16,.92),rgba(8,10,16,.74));border-bottom:1px solid color-mix(in srgb,var(--tenant-primary) 46%,rgba(255,255,255,.08))}body.menu-style-luxury-line .brand-mark{border-radius:50%;box-shadow:0 0 0 3px color-mix(in srgb,var(--tenant-primary) 16%,transparent)}
body.menu-style-compact-buttons .site-header nav a{padding:7px 10px;border-radius:9px;background:rgba(255,255,255,.055);font-size:.9rem}.menu-style-compact-buttons .admin-link{padding:7px 10px}

body.card-style-angled-cut .card,body.card-style-angled-cut .contact-card,body.card-style-angled-cut .split,body.card-style-angled-cut .panel,body.card-style-angled-cut .login-card{border-radius:8px;clip-path:polygon(16px 0,100% 0,100% calc(100% - 16px),calc(100% - 16px) 100%,0 100%,0 16px);border:1px solid color-mix(in srgb,var(--tenant-primary) 34%,rgba(255,255,255,.1));background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.025))}
body.card-style-hex-tech .card,body.card-style-hex-tech .contact-card,body.card-style-hex-tech .split,body.card-style-hex-tech .panel,body.card-style-hex-tech .login-card{border-radius:18px;clip-path:polygon(22px 0,calc(100% - 22px) 0,100% 22px,100% calc(100% - 22px),calc(100% - 22px) 100%,22px 100%,0 calc(100% - 22px),0 22px);background:linear-gradient(180deg,rgba(8,15,30,.92),rgba(4,7,16,.78));border:1px solid color-mix(in srgb,var(--tenant-accent) 42%,rgba(255,255,255,.08));box-shadow:0 0 42px color-mix(in srgb,var(--tenant-accent) 13%,transparent)}
body.card-style-pill-rounded .card,body.card-style-pill-rounded .contact-card,body.card-style-pill-rounded .split,body.card-style-pill-rounded .panel,body.card-style-pill-rounded .login-card{border-radius:38px;background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.045));border:1px solid rgba(255,255,255,.14)}
body.card-style-split-border .card,body.card-style-split-border .contact-card,body.card-style-split-border .split,body.card-style-split-border .panel,body.card-style-split-border .login-card{border-radius:24px;border:1px solid transparent;background:linear-gradient(var(--bg),var(--bg)) padding-box,linear-gradient(135deg,var(--tenant-primary),transparent 45%,var(--tenant-accent)) border-box;box-shadow:0 24px 60px rgba(0,0,0,.27)}
body.card-style-double-line .card,body.card-style-double-line .contact-card,body.card-style-double-line .split,body.card-style-double-line .panel,body.card-style-double-line .login-card{border:3px double color-mix(in srgb,var(--tenant-primary) 55%,rgba(255,255,255,.15));border-radius:18px;background:rgba(255,255,255,.045)}
body.card-style-thick-shadow .card,body.card-style-thick-shadow .contact-card,body.card-style-thick-shadow .split,body.card-style-thick-shadow .panel,body.card-style-thick-shadow .login-card{border-radius:14px;border:2px solid color-mix(in srgb,var(--tenant-primary) 42%,#111827);box-shadow:10px 10px 0 color-mix(in srgb,var(--tenant-primary) 28%,#000);background:rgba(255,255,255,.075)}
body.card-style-dashed-outline .card,body.card-style-dashed-outline .contact-card,body.card-style-dashed-outline .split,body.card-style-dashed-outline .panel,body.card-style-dashed-outline .login-card{border:1px dashed color-mix(in srgb,var(--tenant-accent) 65%,rgba(255,255,255,.18));border-radius:16px;background:rgba(255,255,255,.035)}
body.card-style-left-accent .card,body.card-style-left-accent .contact-card,body.card-style-left-accent .split,body.card-style-left-accent .panel,body.card-style-left-accent .login-card{border-left:6px solid var(--tenant-primary);border-radius:20px;background:linear-gradient(90deg,color-mix(in srgb,var(--tenant-primary) 10%,rgba(8,15,30,.88)),rgba(8,15,30,.64));box-shadow:0 20px 50px rgba(0,0,0,.25)}
body.card-style-folded-corner .card,body.card-style-folded-corner .contact-card,body.card-style-folded-corner .split,body.card-style-folded-corner .panel,body.card-style-folded-corner .login-card{position:relative;border-radius:18px;background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.035));overflow:hidden}body.card-style-folded-corner .card:before,body.card-style-folded-corner .contact-card:before,body.card-style-folded-corner .split:before{content:"";position:absolute;right:0;top:0;border-top:34px solid color-mix(in srgb,var(--tenant-primary) 65%,#fff);border-left:34px solid transparent;opacity:.72}
body.card-style-blueprint-grid .card,body.card-style-blueprint-grid .contact-card,body.card-style-blueprint-grid .split,body.card-style-blueprint-grid .panel,body.card-style-blueprint-grid .login-card{background:linear-gradient(rgba(255,255,255,.06),rgba(255,255,255,.025)),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px);background-size:auto,28px 28px,28px 28px;border:1px solid color-mix(in srgb,var(--tenant-accent) 42%,rgba(255,255,255,.1));border-radius:10px}
body.card-style-chrome-bevel .card,body.card-style-chrome-bevel .contact-card,body.card-style-chrome-bevel .split,body.card-style-chrome-bevel .panel,body.card-style-chrome-bevel .login-card{border-radius:20px;border:1px solid rgba(255,255,255,.22);background:linear-gradient(145deg,rgba(255,255,255,.18),rgba(255,255,255,.04) 42%,rgba(0,0,0,.22));box-shadow:inset 1px 1px 0 rgba(255,255,255,.28),inset -1px -1px 0 rgba(0,0,0,.28),0 24px 70px rgba(0,0,0,.32)}
body.card-style-soft-blob .card,body.card-style-soft-blob .contact-card,body.card-style-soft-blob .split,body.card-style-soft-blob .panel,body.card-style-soft-blob .login-card{border-radius:42px 22px 48px 24px;background:linear-gradient(145deg,color-mix(in srgb,var(--tenant-accent) 13%,rgba(255,255,255,.06)),rgba(255,255,255,.04));border:1px solid rgba(255,255,255,.12);box-shadow:0 28px 70px rgba(0,0,0,.22)}

body.effect-edge-light .contact-card,body.effect-edge-light .split{position:relative;overflow:hidden}body.effect-edge-light .contact-card:after,body.effect-edge-light .split:after{content:"";position:absolute;inset:-2px;background:linear-gradient(120deg,transparent,var(--tenant-accent),transparent);opacity:.0;transform:translateX(-80%);transition:opacity .25s,transform .8s;pointer-events:none}body.effect-edge-light .contact-card:hover:after,body.effect-edge-light .split:hover:after{opacity:.18;transform:translateX(80%)}
body.effect-tilt-lift .card:hover,body.effect-tilt-lift .blog-card:hover{transform:perspective(900px) rotateX(2deg) rotateY(-2deg) translateY(-5px)}
body.effect-high-contrast .hero h1,body.effect-high-contrast .section h2{text-shadow:0 0 28px color-mix(in srgb,var(--tenant-primary) 35%,transparent)}
body.effect-calm-fade .card,body.effect-calm-fade .contact-card,body.effect-calm-fade .split{transition:opacity .35s ease, transform .35s ease, box-shadow .35s ease}

body.layout-asymmetric .card-grid{grid-template-columns:1.35fr .85fr 1fr}body.layout-asymmetric .card:nth-child(4n+1){grid-row:span 2;min-height:260px}body.layout-magazine .hero{max-width:1400px}body.layout-magazine .section{max-width:1400px}body.layout-magazine .card-grid{grid-template-columns:2fr 1fr 1fr}body.layout-landing-pro .hero{text-align:center;margin-inline:auto}body.layout-landing-pro .lead{margin-inline:auto}body.layout-landing-pro .hero-actions{justify-content:center}body.layout-portfolio .card-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}body.layout-portfolio .card{min-height:260px;display:flex;flex-direction:column;justify-content:flex-end}
@media(max-width:900px){body.menu-style-floating-pills .site-header{margin:0;border-radius:0;top:0}body.menu-layout-split .site-header{display:flex;flex-direction:column}body.layout-asymmetric .card-grid,body.layout-magazine .card-grid{grid-template-columns:1fr}}

/* Stage 22 — template studio, typography, media, AI and security polish */
:root{--site-max:1180px;--section-gap:72px;--ui-radius:18px;--heading-font:Inter,Segoe UI,system-ui,sans-serif;--body-font:Inter,Segoe UI,system-ui,sans-serif}
body{font-family:var(--body-font)}h1,h2,h3,h4,.brand{font-family:var(--heading-font)}
body.content-width-compact{--site-max:980px}body.content-width-standard{--site-max:1180px}body.content-width-wide{--site-max:1380px}body.content-width-full{--site-max:1600px}
body.spacing-tight{--section-gap:42px}body.spacing-balanced{--section-gap:72px}body.spacing-airy{--section-gap:108px}
body.corner-style-square{--ui-radius:0px}body.corner-style-subtle{--ui-radius:8px}body.corner-style-rounded{--ui-radius:22px}body.corner-style-extra-rounded{--ui-radius:38px}
body:not(.cms-admin) .hero,body:not(.cms-admin) .section{max-width:var(--site-max)}body:not(.cms-admin) .section{padding-top:var(--section-gap);padding-bottom:var(--section-gap)}
body.corner-style-square .card,body.corner-style-square .contact-card,body.corner-style-square .split,body.corner-style-square .hero-image-card,body.corner-style-square .blog-card,body.corner-style-square .btn,body.corner-style-square .site-header{border-radius:0!important}
body.corner-style-subtle .card,body.corner-style-subtle .contact-card,body.corner-style-subtle .split,body.corner-style-subtle .hero-image-card,body.corner-style-subtle .blog-card{border-radius:8px!important}
body.corner-style-extra-rounded .card,body.corner-style-extra-rounded .contact-card,body.corner-style-extra-rounded .split,body.corner-style-extra-rounded .hero-image-card,body.corner-style-extra-rounded .blog-card{border-radius:38px!important}

/* typography combinations */
body.font-pair-geometric{--heading-font:"Trebuchet MS",Avenir Next,Segoe UI,sans-serif;--body-font:Inter,Segoe UI,sans-serif}body.font-pair-geometric h1,body.font-pair-geometric h2{letter-spacing:-.045em}
body.font-pair-humanist{--heading-font:Verdana,Segoe UI,sans-serif;--body-font:Segoe UI,Tahoma,sans-serif}body.font-pair-humanist h1{letter-spacing:-.035em}
body.font-pair-editorial-serif{--heading-font:Georgia,"Times New Roman",serif;--body-font:Inter,Segoe UI,sans-serif}body.font-pair-editorial-serif h1,body.font-pair-editorial-serif h2{font-weight:600;letter-spacing:-.04em}
body.font-pair-luxury-serif{--heading-font:"Baskerville","Palatino Linotype",Georgia,serif;--body-font:Inter,Segoe UI,sans-serif}body.font-pair-luxury-serif h1{text-transform:none;font-weight:500;letter-spacing:-.035em}
body.font-pair-classic-business{--heading-font:Arial,Helvetica,sans-serif;--body-font:Arial,Helvetica,sans-serif}body.font-pair-classic-business h1,body.font-pair-classic-business h2{letter-spacing:-.025em}
body.font-pair-condensed{--heading-font:"Arial Narrow","Roboto Condensed",Impact,sans-serif;--body-font:Inter,Segoe UI,sans-serif}body.font-pair-condensed h1,body.font-pair-condensed h2{text-transform:uppercase;letter-spacing:-.015em}
body.font-pair-rounded{--heading-font:"Arial Rounded MT Bold","Trebuchet MS",Segoe UI,sans-serif;--body-font:Inter,Segoe UI,sans-serif}
body.font-pair-mono-tech{--heading-font:"Courier New",ui-monospace,monospace;--body-font:Inter,Segoe UI,sans-serif}body.font-pair-mono-tech .eyebrow,body.font-pair-mono-tech .btn{font-family:"Courier New",ui-monospace,monospace}

/* hero compositions */
body.hero-style-split-media .hero:has(.hero-image-card){display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.9fr);gap:clamp(28px,5vw,72px);align-items:center}body.hero-style-split-media .hero:has(.hero-image-card) .hero-image-card{grid-column:2;grid-row:1/8;margin:0}body.hero-style-split-media .hero:has(.hero-image-card)>:not(.hero-image-card){grid-column:1}
body.hero-style-centered-card .hero{text-align:center;margin:clamp(40px,7vw,90px) auto;padding:clamp(50px,8vw,100px);border:1px solid var(--line);border-radius:var(--ui-radius);background:linear-gradient(145deg,rgba(8,15,30,.88),rgba(6,10,20,.68));box-shadow:0 32px 100px rgba(0,0,0,.38)}body.hero-style-centered-card .hero .lead{margin-inline:auto}body.hero-style-centered-card .hero-actions{justify-content:center}
body.hero-style-full-bleed .hero{max-width:none;min-height:min(82vh,880px);display:flex;flex-direction:column;justify-content:center;padding-inline:max(7vw,24px);position:relative;overflow:hidden}body.hero-style-full-bleed .hero:has(.hero-image-card) .hero-image-card{position:absolute;inset:0;z-index:-1;margin:0;max-width:none;border:0;border-radius:0;opacity:.34}body.hero-style-full-bleed .hero-image-card img{width:100%;height:100%;object-fit:cover}body.hero-style-full-bleed .hero:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#050915 5%,rgba(5,9,21,.74) 48%,rgba(5,9,21,.2))}
body.hero-style-minimal .hero{padding-top:clamp(70px,10vw,130px);padding-bottom:clamp(60px,8vw,100px)}body.hero-style-minimal .hero h1{font-size:clamp(2.8rem,6vw,5.4rem);font-weight:500;line-height:1.02}body.hero-style-minimal .hero .eyebrow{opacity:.72}
body.hero-style-poster .hero h1{font-size:clamp(4rem,11vw,9rem);text-transform:uppercase;letter-spacing:-.07em;line-height:.78;max-width:1200px}body.hero-style-poster .hero .lead{border-left:5px solid var(--tenant-primary);padding-left:20px}
body.hero-style-angled .hero{position:relative;padding-left:clamp(34px,9vw,130px)}body.hero-style-angled .hero:before{content:"";position:absolute;left:clamp(16px,5vw,72px);top:18%;bottom:14%;width:5px;background:linear-gradient(var(--tenant-primary),var(--tenant-accent));transform:skewY(-18deg);box-shadow:0 0 30px color-mix(in srgb,var(--tenant-accent) 36%,transparent)}
body.hero-style-framed .hero{margin:clamp(28px,5vw,70px) auto;border:1px solid color-mix(in srgb,var(--tenant-primary) 45%,rgba(255,255,255,.1));outline:1px solid color-mix(in srgb,var(--tenant-accent) 25%,transparent);outline-offset:10px;border-radius:var(--ui-radius);padding:clamp(54px,8vw,112px)}
body.hero-style-spotlight .hero{text-align:center;margin-inline:auto;background:radial-gradient(circle at 50% 28%,color-mix(in srgb,var(--tenant-primary) 17%,transparent),transparent 52%)}body.hero-style-spotlight .hero .lead{margin-inline:auto}body.hero-style-spotlight .hero-actions{justify-content:center}

/* buttons */
body.button-style-square .btn{border-radius:2px}body.button-style-pill .btn{border-radius:999px;padding-inline:24px}body.button-style-outline .btn,body.button-style-outline .btn.primary{background:transparent;color:var(--tenant-primary);border:2px solid currentColor}body.button-style-gradient .btn.primary{background:linear-gradient(110deg,var(--tenant-primary),var(--tenant-accent),var(--tenant-primary));background-size:200% 100%;transition:background-position .35s,transform .2s}body.button-style-gradient .btn.primary:hover{background-position:100% 0}body.button-style-neon .btn{border-color:color-mix(in srgb,var(--tenant-accent) 68%,transparent);box-shadow:0 0 18px color-mix(in srgb,var(--tenant-accent) 20%,transparent)}body.button-style-neon .btn.primary{box-shadow:0 0 28px color-mix(in srgb,var(--tenant-primary) 32%,transparent)}body.button-style-underline .btn{padding:6px 0;border:0;border-radius:0;background:transparent;border-bottom:2px solid var(--tenant-primary)}body.button-style-brutalist .btn{border:2px solid #fff;border-radius:0;box-shadow:5px 5px 0 var(--tenant-primary);transform:translate(-2px,-2px)}body.button-style-brutalist .btn:hover{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--tenant-primary)}

/* section treatments */
body.section-style-alternating main>.section:nth-of-type(even){background:color-mix(in srgb,var(--tenant-primary) 7%,rgba(255,255,255,.025));border-block:1px solid color-mix(in srgb,var(--tenant-primary) 18%,transparent);max-width:none;padding-inline:max(7vw,24px)}
body.section-style-boxed main>.section{border:1px solid var(--line);border-radius:var(--ui-radius);padding-inline:clamp(24px,5vw,64px);margin-block:30px;background:rgba(255,255,255,.025)}
body.section-style-banded main>.section{max-width:none;padding-inline:max(7vw,24px);border-block:1px solid rgba(255,255,255,.06);background:linear-gradient(90deg,color-mix(in srgb,var(--tenant-primary) 8%,#08101e),color-mix(in srgb,var(--tenant-accent) 6%,#08101e))}
body.section-style-edge-lines main>.section{position:relative}body.section-style-edge-lines main>.section:before{content:"";position:absolute;left:clamp(12px,3vw,42px);top:18%;bottom:18%;width:1px;background:linear-gradient(transparent,var(--tenant-primary),transparent)}
body.section-style-soft-panels main>.section{background:rgba(255,255,255,.035);border-radius:var(--ui-radius);box-shadow:inset 0 1px rgba(255,255,255,.05);margin-block:22px}

/* image treatments */
body.image-style-square .hero-image-card,body.image-style-square .blog-thumb,body.image-style-square .selected-image-preview img{border-radius:0}body.image-style-framed .hero-image-card,body.image-style-framed .blog-thumb{padding:12px;border:2px solid color-mix(in srgb,var(--tenant-primary) 55%,rgba(255,255,255,.18));background:#07101e}body.image-style-polaroid .hero-image-card{padding:14px 14px 50px;background:#f5f1e8;transform:rotate(-1deg);border-radius:3px;box-shadow:0 24px 60px rgba(0,0,0,.45)}body.image-style-cinematic .hero-image-card{aspect-ratio:21/9}body.image-style-cinematic .hero-image-card img{width:100%;height:100%;object-fit:cover}body.image-style-cut-corners .hero-image-card,body.image-style-cut-corners .blog-thumb{clip-path:polygon(22px 0,100% 0,100% calc(100% - 22px),calc(100% - 22px) 100%,0 100%,0 22px);border-radius:0}body.image-style-circle .hero-image-card{width:min(560px,80vw);aspect-ratio:1;border-radius:50%;overflow:hidden}body.image-style-circle .hero-image-card img{width:100%;height:100%;object-fit:cover}

/* header and grid behaviour */
body.header-behaviour-static .site-header{position:relative;top:auto}body.header-behaviour-floating .site-header{position:sticky;top:14px;margin:14px clamp(14px,3vw,46px) 0;border:1px solid var(--line);border-radius:var(--ui-radius);box-shadow:0 20px 60px rgba(0,0,0,.35)}
body.service-grid-two .card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.service-grid-three .card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}body.service-grid-four .card-grid{grid-template-columns:repeat(4,minmax(0,1fr))}body.service-grid-list .card-grid{grid-template-columns:1fr}body.service-grid-list .card{min-height:0;display:grid;grid-template-columns:minmax(180px,.35fr) 1fr;gap:24px;align-items:center}

/* professional CMS shell */
.cms-admin{--admin-panel:#0a1323;--admin-panel-2:#0d182a;--admin-line:rgba(125,211,252,.17);background:radial-gradient(circle at 8% 0%,rgba(34,211,238,.07),transparent 24%),#050914}.cms-admin .admin-topbar{position:sticky;top:0;z-index:30;gap:24px;box-shadow:0 14px 40px rgba(0,0,0,.28);background:rgba(7,14,27,.96);backdrop-filter:blur(16px)}.cms-admin .admin-topbar nav{display:flex;gap:5px;align-items:center;overflow-x:auto;max-width:min(74vw,1200px);padding:5px 2px;scrollbar-width:thin}.cms-admin .admin-topbar nav a{white-space:nowrap;padding:8px 10px;border-radius:9px;color:#b9ccda;font-size:.87rem;font-weight:750}.cms-admin .admin-topbar nav a:hover,.cms-admin .admin-topbar nav a.is-active{color:#fff;background:rgba(34,211,238,.1);box-shadow:inset 0 0 0 1px rgba(34,211,238,.18)}.cms-admin .admin-topbar nav a:last-child{color:#fecaca}.admin-editor-wide{max-width:1480px}.cms-admin .panel{border-radius:24px;background:linear-gradient(180deg,rgba(10,19,35,.94),rgba(7,14,27,.94));border-color:var(--admin-line)}.cms-admin .admin-section{background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.018));border-color:var(--admin-line);border-radius:20px}.cms-admin input,.cms-admin textarea,.cms-admin select{background:#07111f;border-color:rgba(148,190,219,.22);color:#eef8ff;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}.cms-admin input:focus,.cms-admin textarea:focus,.cms-admin select:focus{outline:2px solid rgba(34,211,238,.3);outline-offset:1px;border-color:rgba(34,211,238,.55)}.cms-admin select option{background:#07111f;color:#eef8ff}.cms-admin input[type=file]{padding:10px}.cms-admin .btn{min-height:42px;border-radius:11px;background:linear-gradient(180deg,#17283e,#101d30);border:1px solid rgba(136,190,224,.28);color:#f5fbff;box-shadow:0 7px 18px rgba(0,0,0,.16);transition:transform .16s,filter .16s,border-color .16s}.cms-admin .btn:hover{transform:translateY(-1px);border-color:rgba(34,211,238,.5)}.cms-admin .btn.primary{background:linear-gradient(135deg,#0ea5e9,#22d3ee);color:#03111d;border:0;box-shadow:0 10px 25px rgba(14,165,233,.22)}.cms-admin .btn.danger{background:linear-gradient(180deg,rgba(127,29,29,.68),rgba(69,10,10,.78));color:#fee2e2;border-color:rgba(248,113,113,.38)}.cms-admin .btn.ghost{background:transparent}.cms-admin .btn-small,.cms-admin .btn.small{min-height:34px;padding:7px 10px;border-radius:9px;font-size:.8rem}.page-title-row,.section-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;flex-wrap:wrap}.page-title-row h1{margin:.15em 0 .25em}.section-title-row h2{margin:.05em 0 .25em}.quick-links,.template-filters,.sticky-actions,.action-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.template-filters input{min-width:260px}.template-filters select{min-width:190px}.sticky-actions{position:sticky;bottom:14px;z-index:15;margin-top:28px;padding:13px;border:1px solid rgba(34,211,238,.18);border-radius:15px;background:rgba(7,14,27,.92);backdrop-filter:blur(14px);box-shadow:0 18px 48px rgba(0,0,0,.32)}.option-count{display:inline-flex;padding:7px 11px;border-radius:999px;background:rgba(34,211,238,.08);border:1px solid rgba(34,211,238,.2);color:#bff7ff;font-size:.82rem;font-weight:800}.empty-state{padding:28px;text-align:center;border:1px dashed rgba(148,190,219,.25);border-radius:16px;color:var(--muted)}.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}.info-grid>div,.info-grid>article{padding:18px;border:1px solid rgba(148,190,219,.15);border-radius:15px;background:rgba(255,255,255,.025)}.info-grid p{margin:.45rem 0 0;color:var(--muted);line-height:1.6}.dashboard-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.design-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.content-editor-form>.admin-section{margin-block:18px}.background-preview{display:flex;gap:16px;align-items:center;margin-bottom:16px}.background-preview img,.background-preview video{width:160px;height:100px;object-fit:cover;border:1px solid var(--admin-line);border-radius:12px;background:#02060c}

/* template library and custom designer */
.theme-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:18px}.theme-card{display:flex;flex-direction:column;min-width:0;border:1px solid rgba(148,190,219,.16);border-radius:18px;overflow:hidden;background:#081321;box-shadow:0 18px 42px rgba(0,0,0,.22)}.theme-card.is-current{border-color:color-mix(in srgb,var(--tenant-primary) 68%,transparent);box-shadow:0 0 0 1px color-mix(in srgb,var(--tenant-primary) 20%,transparent),0 20px 54px rgba(0,0,0,.3)}.theme-preview{height:180px;padding:14px;background:radial-gradient(circle at 82% 18%,color-mix(in srgb,var(--swatch-accent) 28%,transparent),transparent 28%),linear-gradient(145deg,#07111f,#0d1a2b);position:relative;overflow:hidden}.theme-preview:after{content:"";position:absolute;right:-20px;bottom:-40px;width:150px;height:150px;border-radius:50%;background:color-mix(in srgb,var(--swatch-primary) 14%,transparent);filter:blur(6px)}.preview-nav{height:18px;border:1px solid rgba(255,255,255,.12);border-radius:6px;background:rgba(255,255,255,.05);margin-bottom:24px}.preview-copy{width:60%;display:grid;gap:8px}.preview-copy i,.preview-copy b,.preview-copy span{display:block;border-radius:999px;background:rgba(255,255,255,.16)}.preview-copy i{width:34%;height:6px;background:var(--swatch-primary)}.preview-copy b{width:100%;height:20px;background:linear-gradient(90deg,#fff,rgba(255,255,255,.42))}.preview-copy span{width:75%;height:7px}.preview-cards{position:absolute;left:14px;right:14px;bottom:14px;display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.preview-cards i{height:38px;border:1px solid rgba(255,255,255,.12);border-radius:7px;background:linear-gradient(145deg,rgba(255,255,255,.1),rgba(255,255,255,.025))}.theme-card-body{display:flex;flex-direction:column;gap:11px;padding:18px;height:100%}.theme-card-body p{margin:0;color:var(--muted);line-height:1.55}.theme-card-body h3{margin:.1em 0 0;font-size:1.25rem}.theme-title-line{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.theme-meta{display:flex;gap:6px;flex-wrap:wrap}.theme-meta span{padding:5px 8px;border-radius:999px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08);font-size:.72rem;color:#b8d0df}.theme-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important;margin-top:auto}.theme-actions .btn{padding:9px 10px;font-size:.8rem}.designer-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.75fr);gap:24px;align-items:start}.designer-preview-wrap{position:sticky;top:104px}.designer-preview{--preview-primary:#f7c948;--preview-accent:#22d3ee;min-height:490px;border:1px solid rgba(255,255,255,.14);border-radius:20px;padding:17px;background:radial-gradient(circle at 75% 20%,color-mix(in srgb,var(--preview-accent) 22%,transparent),transparent 31%),linear-gradient(145deg,#050914,#0c1729);box-shadow:0 30px 80px rgba(0,0,0,.32);overflow:hidden}.dp-header{display:flex;gap:7px;align-items:center;padding:10px;border:1px solid rgba(255,255,255,.11);border-radius:9px;background:rgba(255,255,255,.04)}.dp-header i{margin-right:auto;width:28px;height:28px;border-radius:8px;background:linear-gradient(135deg,var(--preview-primary),var(--preview-accent))}.dp-header span{width:34px;height:6px;border-radius:999px;background:rgba(255,255,255,.28)}.dp-hero{padding:54px 18px 40px}.dp-hero p{font-size:.6rem;font-weight:900;letter-spacing:.16em;color:var(--preview-primary)}.dp-hero h3{font-size:2.1rem;line-height:1;margin:.25em 0}.dp-hero span{display:block;color:#b7cad8;font-size:.78rem;max-width:250px;line-height:1.5}.dp-hero button{margin-top:18px;border:0;border-radius:9px;padding:9px 13px;background:linear-gradient(135deg,var(--preview-primary),var(--preview-accent));font-weight:900;color:#04101f}.dp-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.dp-grid article{height:105px;border:1px solid rgba(255,255,255,.11);border-radius:11px;background:linear-gradient(160deg,rgba(255,255,255,.08),rgba(255,255,255,.025))}

/* media manager */
.media-stats{display:flex;gap:8px;flex-wrap:wrap}.media-stats span{display:grid;min-width:92px;padding:10px 13px;border-radius:12px;background:rgba(255,255,255,.035);border:1px solid rgba(148,190,219,.14);color:var(--muted);font-size:.72rem}.media-stats strong{font-size:1.05rem;color:#fff}.upload-zone{display:flex;justify-content:space-between;gap:22px;align-items:center}.media-manager-grid{grid-template-columns:repeat(auto-fill,minmax(270px,1fr))}.media-manager-grid .media-card{padding:0;overflow:hidden;border-radius:18px;background:#081321}.media-manager-grid .media-thumb{border:0;border-radius:0;position:relative;aspect-ratio:16/10}.media-manager-grid .media-thumb video{width:100%;height:100%;object-fit:cover;background:#02060c}.media-type-chip{position:absolute;top:10px;left:10px;padding:5px 8px;border-radius:999px;background:rgba(3,10,20,.82);border:1px solid rgba(255,255,255,.16);color:#fff;font-size:.68rem;font-weight:850}.media-manager-grid .media-meta,.media-manager-grid .media-actions,.media-manager-grid .delete-panel{margin-inline:14px}.media-manager-grid .media-meta{margin-top:2px}.media-actions{display:grid;gap:7px}.media-actions form{display:flex!important;gap:7px!important}.media-actions .btn{flex:1}.usage-list{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.usage-list small{padding:3px 6px;border-radius:7px;background:rgba(255,255,255,.035);color:#a9bfca}.badge-muted{border-color:rgba(148,190,219,.18);background:rgba(148,190,219,.06);color:#a9bfca}.delete-panel{margin-bottom:14px;border-top:1px solid rgba(148,190,219,.12);padding-top:10px}.delete-panel summary{cursor:pointer;color:#d3e4ef;font-size:.8rem;font-weight:800}.delete-panel form{margin-top:10px}.check-row.compact{padding:9px;font-size:.78rem}

/* 2FA and AI */
.security-status{display:flex;gap:14px;align-items:center;margin:22px 0;padding:17px;border:1px solid rgba(148,190,219,.16);border-radius:15px;background:rgba(255,255,255,.025)}.security-status p{margin:.3em 0 0;color:var(--muted)}.status-orb{width:18px;height:18px;border-radius:50%;background:#64748b;box-shadow:0 0 0 6px rgba(100,116,139,.12)}.security-status.is-enabled .status-orb{background:#22c55e;box-shadow:0 0 0 6px rgba(34,197,94,.12),0 0 20px rgba(34,197,94,.35)}.security-highlight{border-color:rgba(34,197,94,.32)!important;background:rgba(34,197,94,.055)!important}.backup-code-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0}.backup-code-grid code{padding:10px;text-align:center;border:1px dashed rgba(34,197,94,.35);border-radius:9px;background:rgba(0,0,0,.2)}.two-factor-setup .setup-steps{display:flex;gap:13px;align-items:flex-start;margin:18px 0}.setup-steps>span{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#0ea5e9,#22d3ee);color:#03111d;font-weight:900}.setup-steps h2{margin:.1em 0}.setup-steps p{margin:.3em 0;color:var(--muted)}.qr-layout{display:grid;grid-template-columns:230px 1fr;gap:24px;align-items:center;padding:20px;border:1px solid rgba(148,190,219,.16);border-radius:16px;background:#fff;color:#0b1320}.totp-qr{display:grid;place-items:center;min-height:200px}.secret-display{display:flex;gap:9px;align-items:center}.secret-display code{word-break:break-all;color:#0b1320;background:#e8eef4;padding:10px;border-radius:8px}.two-column-admin,.ai-studio-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.notice-card{padding:20px;border:1px solid rgba(245,158,11,.32);border-radius:16px;background:rgba(245,158,11,.07)}.notice-card p{color:var(--muted)}.three-field-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.ai-review{border-color:rgba(34,211,238,.34)!important}.review-heading{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.ai-json-preview{max-height:520px;overflow:auto;padding:18px;border:1px solid rgba(148,190,219,.16);border-radius:13px;background:#030711;color:#ccecff;white-space:pre-wrap;line-height:1.55}.otp-input{font-size:1.35rem;letter-spacing:.25em;font-weight:900;text-align:center}.stack-form{display:grid;gap:14px}.inline-form{display:inline-grid!important;margin-top:10px}.compact-form{max-width:680px}

@media(max-width:1080px){.designer-layout{grid-template-columns:1fr}.designer-preview-wrap{position:relative;top:auto}.design-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-cards{grid-template-columns:1fr}.upload-zone{align-items:stretch;flex-direction:column}.site-header nav{flex-wrap:wrap}body.service-grid-four .card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){body.hero-style-split-media .hero:has(.hero-image-card){display:block}body.hero-style-split-media .hero .hero-image-card{margin-top:28px}.cms-admin .admin-topbar{position:relative}.cms-admin .admin-topbar nav{max-width:100%;width:100%}.two-column-admin,.ai-studio-grid,.three-field-row,.qr-layout{grid-template-columns:1fr}.backup-code-grid{grid-template-columns:1fr}.theme-actions{grid-template-columns:1fr}.designer-preview{min-height:410px}.template-filters{width:100%}.template-filters input,.template-filters select{width:100%;min-width:0}}
@media(max-width:680px){.design-grid,.form-grid{grid-template-columns:1fr}.theme-grid,.media-manager-grid{grid-template-columns:1fr}.page-title-row,.section-title-row{display:block}.page-title-row>.btn,.section-title-row>.btn{margin-top:12px}.sticky-actions{bottom:6px}.service-grid-list .card{grid-template-columns:1fr}body.service-grid-two .card-grid,body.service-grid-three .card-grid,body.service-grid-four .card-grid{grid-template-columns:1fr}.background-preview{align-items:flex-start;flex-direction:column}.background-preview img,.background-preview video{width:100%;height:auto;max-height:260px}.upload-zone .media-upload{display:grid;width:100%}}


/* Stage 23 — spacing, typography, borders, buttons, menus and site-wide effects */
:root{--card-gap:20px;--card-padding:28px;--card-min-height:190px}
.card-grid{gap:var(--card-gap);grid-auto-rows:1fr;align-items:stretch}.card{display:flex;flex-direction:column;justify-content:flex-start;min-height:var(--card-min-height);height:100%;padding:var(--card-padding);overflow:hidden}.card h3{margin:0 0 12px;line-height:1.2}.card p{margin:0;max-width:68ch}.blog-grid{gap:var(--card-gap)}.blog-card{height:100%}.contact-card,.split{gap:clamp(24px,4vw,52px)}
body.card-spacing-compact{--card-gap:12px;--card-padding:20px;--card-min-height:150px}body.card-spacing-balanced{--card-gap:20px;--card-padding:28px;--card-min-height:190px}body.card-spacing-generous{--card-gap:32px;--card-padding:38px;--card-min-height:230px}body.card-spacing-editorial{--card-gap:26px;--card-padding:34px;--card-min-height:210px}body.card-spacing-editorial .card h3{font-size:1.45rem;margin-bottom:18px}body.card-spacing-dense{--card-gap:10px;--card-padding:18px;--card-min-height:130px}body.card-spacing-dense .card p{font-size:.94rem;line-height:1.5}

/* independent heading fonts */
body.heading-font-system{--heading-font:system-ui,-apple-system,"Segoe UI",sans-serif}body.heading-font-segoe{--heading-font:"Segoe UI",system-ui,sans-serif}body.heading-font-aptos{--heading-font:Aptos,Calibri,"Segoe UI",sans-serif}body.heading-font-arial{--heading-font:Arial,Helvetica,sans-serif}body.heading-font-helvetica{--heading-font:Helvetica,Arial,sans-serif}body.heading-font-verdana{--heading-font:Verdana,Geneva,sans-serif}body.heading-font-tahoma{--heading-font:Tahoma,"Segoe UI",sans-serif}body.heading-font-trebuchet{--heading-font:"Trebuchet MS","Segoe UI",sans-serif}body.heading-font-century-gothic{--heading-font:"Century Gothic",Futura,"Trebuchet MS",sans-serif}body.heading-font-rounded{--heading-font:"Arial Rounded MT Bold","Trebuchet MS","Segoe UI",sans-serif}body.heading-font-arial-narrow{--heading-font:"Arial Narrow","Roboto Condensed",Impact,sans-serif}body.heading-font-impact{--heading-font:Impact,"Arial Black",sans-serif}body.heading-font-georgia{--heading-font:Georgia,"Times New Roman",serif}body.heading-font-baskerville{--heading-font:Baskerville,"Palatino Linotype",Georgia,serif}body.heading-font-palatino{--heading-font:"Palatino Linotype",Palatino,Georgia,serif}body.heading-font-garamond{--heading-font:Garamond,"Times New Roman",serif}body.heading-font-rockwell{--heading-font:Rockwell,"Roboto Slab",Georgia,serif}body.heading-font-courier{--heading-font:"Courier New",ui-monospace,monospace}body.heading-font-lucida-console{--heading-font:"Lucida Console",Monaco,ui-monospace,monospace}
/* independent body fonts */
body.body-font-system{--body-font:system-ui,-apple-system,"Segoe UI",sans-serif}body.body-font-segoe{--body-font:"Segoe UI",system-ui,sans-serif}body.body-font-aptos{--body-font:Aptos,Calibri,"Segoe UI",sans-serif}body.body-font-arial{--body-font:Arial,Helvetica,sans-serif}body.body-font-helvetica{--body-font:Helvetica,Arial,sans-serif}body.body-font-verdana{--body-font:Verdana,Geneva,sans-serif}body.body-font-tahoma{--body-font:Tahoma,"Segoe UI",sans-serif}body.body-font-trebuchet{--body-font:"Trebuchet MS","Segoe UI",sans-serif}body.body-font-lucida-sans{--body-font:"Lucida Sans Unicode","Lucida Grande",sans-serif}body.body-font-georgia{--body-font:Georgia,"Times New Roman",serif}body.body-font-palatino{--body-font:"Palatino Linotype",Palatino,Georgia,serif}body.body-font-courier{--body-font:"Courier New",ui-monospace,monospace}

/* independent borders */
body[class*="border-style-"] .card,body[class*="border-style-"] .contact-card,body[class*="border-style-"] .split,body[class*="border-style-"] .hero-image-card,body[class*="border-style-"] .blog-card{position:relative}
body.border-style-none .card,body.border-style-none .contact-card,body.border-style-none .split,body.border-style-none .hero-image-card,body.border-style-none .blog-card{border-color:transparent!important}
body.border-style-hairline .card,body.border-style-hairline .contact-card,body.border-style-hairline .split,body.border-style-hairline .hero-image-card,body.border-style-hairline .blog-card{border:1px solid rgba(255,255,255,.14)!important}
body.border-style-soft .card,body.border-style-soft .contact-card,body.border-style-soft .split,body.border-style-soft .hero-image-card,body.border-style-soft .blog-card{border:1px solid color-mix(in srgb,var(--tenant-primary) 20%,rgba(255,255,255,.12))!important}
body.border-style-strong .card,body.border-style-strong .contact-card,body.border-style-strong .split,body.border-style-strong .hero-image-card,body.border-style-strong .blog-card{border:2px solid color-mix(in srgb,var(--tenant-primary) 72%,#fff)!important}
body.border-style-double .card,body.border-style-double .contact-card,body.border-style-double .split,body.border-style-double .hero-image-card,body.border-style-double .blog-card{border:4px double color-mix(in srgb,var(--tenant-primary) 60%,rgba(255,255,255,.25))!important}
body.border-style-dashed .card,body.border-style-dashed .contact-card,body.border-style-dashed .split,body.border-style-dashed .hero-image-card,body.border-style-dashed .blog-card{border:2px dashed color-mix(in srgb,var(--tenant-accent) 70%,rgba(255,255,255,.16))!important}
body.border-style-dotted .card,body.border-style-dotted .contact-card,body.border-style-dotted .split,body.border-style-dotted .hero-image-card,body.border-style-dotted .blog-card{border:3px dotted color-mix(in srgb,var(--tenant-primary) 70%,rgba(255,255,255,.16))!important}
body.border-style-glow .card,body.border-style-glow .contact-card,body.border-style-glow .split,body.border-style-glow .hero-image-card,body.border-style-glow .blog-card{border:1px solid color-mix(in srgb,var(--tenant-accent) 72%,#fff)!important;box-shadow:0 0 0 1px color-mix(in srgb,var(--tenant-primary) 20%,transparent),0 0 28px color-mix(in srgb,var(--tenant-accent) 24%,transparent)!important}
body.border-style-gradient .card,body.border-style-gradient .contact-card,body.border-style-gradient .split,body.border-style-gradient .hero-image-card,body.border-style-gradient .blog-card{border:2px solid transparent!important;background:linear-gradient(var(--panel),var(--panel)) padding-box,linear-gradient(135deg,var(--tenant-primary),var(--tenant-accent),transparent) border-box!important}
body.border-style-top-accent .card,body.border-style-top-accent .contact-card,body.border-style-top-accent .split,body.border-style-top-accent .hero-image-card,body.border-style-top-accent .blog-card{border:0!important;border-top:5px solid var(--tenant-primary)!important}
body.border-style-bottom-accent .card,body.border-style-bottom-accent .contact-card,body.border-style-bottom-accent .split,body.border-style-bottom-accent .hero-image-card,body.border-style-bottom-accent .blog-card{border:0!important;border-bottom:5px solid var(--tenant-accent)!important}
body.border-style-brackets .card,body.border-style-brackets .contact-card,body.border-style-brackets .split,body.border-style-brackets .hero-image-card,body.border-style-brackets .blog-card{border:0!important;background-image:linear-gradient(var(--tenant-primary),var(--tenant-primary)),linear-gradient(var(--tenant-primary),var(--tenant-primary)),linear-gradient(var(--tenant-accent),var(--tenant-accent)),linear-gradient(var(--tenant-accent),var(--tenant-accent));background-size:34px 2px,2px 34px,34px 2px,2px 34px;background-position:left top,left top,right bottom,right bottom;background-repeat:no-repeat}
body.border-style-inset .card,body.border-style-inset .contact-card,body.border-style-inset .split,body.border-style-inset .hero-image-card,body.border-style-inset .blog-card{border:1px solid rgba(255,255,255,.18)!important;box-shadow:inset 0 0 0 6px rgba(255,255,255,.025),inset 0 0 0 7px color-mix(in srgb,var(--tenant-primary) 20%,transparent),0 24px 60px rgba(0,0,0,.26)!important}
body.border-style-metallic .card,body.border-style-metallic .contact-card,body.border-style-metallic .split,body.border-style-metallic .hero-image-card,body.border-style-metallic .blog-card{border:2px solid transparent!important;background:linear-gradient(var(--panel),var(--panel)) padding-box,linear-gradient(135deg,#f8fafc,#64748b 35%,#e2e8f0 60%,#334155) border-box!important;box-shadow:inset 1px 1px rgba(255,255,255,.18),0 24px 60px rgba(0,0,0,.32)!important}

/* expanded button styles */
body.button-style-soft-shadow .btn{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.08);box-shadow:0 12px 28px rgba(0,0,0,.24)}body.button-style-soft-shadow .btn.primary{background:var(--tenant-primary);color:#07101e;box-shadow:0 14px 32px color-mix(in srgb,var(--tenant-primary) 24%,rgba(0,0,0,.22))}
body.button-style-glass .btn{background:rgba(255,255,255,.08);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.22);box-shadow:inset 0 1px rgba(255,255,255,.15),0 10px 28px rgba(0,0,0,.24)}body.button-style-glass .btn.primary{background:color-mix(in srgb,var(--tenant-primary) 28%,rgba(255,255,255,.08));color:#fff}
body.button-style-split-fill .btn.primary{background:linear-gradient(90deg,var(--tenant-primary) 0 50%,var(--tenant-accent) 50% 100%);color:#06101f;border:0}body.button-style-split-fill .btn{border:2px solid color-mix(in srgb,var(--tenant-primary) 50%,var(--tenant-accent))}
body.button-style-shine .btn{position:relative;overflow:hidden}body.button-style-shine .btn:after{content:"";position:absolute;inset:-60% auto -60% -35%;width:26%;transform:rotate(18deg);background:rgba(255,255,255,.42);filter:blur(2px);transition:left .55s ease}body.button-style-shine .btn:hover:after{left:120%}
body.button-style-raised .btn{border:0;box-shadow:0 5px 0 color-mix(in srgb,var(--tenant-primary) 58%,#111827),0 10px 22px rgba(0,0,0,.25);transform:translateY(-2px)}body.button-style-raised .btn:hover{transform:translateY(1px);box-shadow:0 2px 0 color-mix(in srgb,var(--tenant-primary) 58%,#111827),0 7px 16px rgba(0,0,0,.22)}
body.button-style-cut-corner .btn{border-radius:0;clip-path:polygon(12px 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%,0 12px)}
body.button-style-arrow .btn:after{content:"→";font-size:1.15em;transition:transform .2s ease}body.button-style-arrow .btn:hover:after{transform:translateX(5px)}
body.button-style-dot-accent .btn:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--tenant-primary);box-shadow:0 0 14px color-mix(in srgb,var(--tenant-primary) 55%,transparent)}body.button-style-dot-accent .btn.primary:before{background:#07101e;box-shadow:none}
body.button-style-ribbon .btn{border-radius:4px 4px 4px 0;position:relative}body.button-style-ribbon .btn:before{content:"";position:absolute;left:0;bottom:-8px;border-top:8px solid color-mix(in srgb,var(--tenant-primary) 55%,#111827);border-left:8px solid transparent}
body.button-style-monochrome .btn{background:#fff;color:#0b1220;border:1px solid #fff}body.button-style-monochrome .btn.primary{background:#0b1220;color:#fff;border:1px solid #fff}

/* menu page links can independently become CTAs */
.site-header nav .nav-item.nav-style-outline{padding:9px 13px;border:1px solid color-mix(in srgb,var(--tenant-primary) 55%,rgba(255,255,255,.14));border-radius:12px}.site-header nav .nav-item.nav-style-primary{padding:10px 15px;border-radius:12px;background:linear-gradient(135deg,var(--tenant-primary),var(--tenant-accent));color:#06101f!important;font-weight:900;box-shadow:0 10px 28px color-mix(in srgb,var(--tenant-primary) 18%,transparent)}.site-header nav .nav-item.nav-style-primary:hover{filter:brightness(1.08);transform:translateY(-1px)}

/* heading effects */
body.heading-effect-gradient h1,body.heading-effect-gradient .section h2{background:linear-gradient(110deg,var(--tenant-primary),#fff,var(--tenant-accent));-webkit-background-clip:text;background-clip:text;color:transparent}body.heading-effect-soft-glow h1,body.heading-effect-soft-glow .section h2{text-shadow:0 0 30px color-mix(in srgb,var(--tenant-primary) 32%,transparent)}body.heading-effect-outline h1{color:transparent;-webkit-text-stroke:1.5px color-mix(in srgb,var(--tenant-primary) 80%,#fff);text-shadow:0 18px 42px rgba(0,0,0,.28)}body.heading-effect-deep-shadow h1,body.heading-effect-deep-shadow .section h2{text-shadow:0 4px 0 color-mix(in srgb,var(--tenant-primary) 42%,#101827),0 14px 28px rgba(0,0,0,.35)}body.heading-effect-underline h1,body.heading-effect-underline .section h2{position:relative;display:table}body.heading-effect-underline h1:after,body.heading-effect-underline .section h2:after{content:"";display:block;width:42%;height:5px;margin-top:14px;background:linear-gradient(90deg,var(--tenant-primary),var(--tenant-accent));border-radius:999px}body.heading-effect-highlight h1 span,body.heading-effect-highlight .section h2{background:linear-gradient(transparent 62%,color-mix(in srgb,var(--tenant-primary) 38%,transparent) 62%)}body.heading-effect-split-colour h1,body.heading-effect-split-colour .section h2{background:linear-gradient(90deg,var(--tenant-primary) 0 45%,var(--tenant-accent) 45% 100%);-webkit-background-clip:text;background-clip:text;color:transparent}body.heading-effect-wide-tracking h1,body.heading-effect-wide-tracking .section h2{letter-spacing:.035em;text-transform:uppercase}

/* effects across headings, cards, images, menu and sections */
body.effect-gradient-flow h1,body.effect-gradient-flow .section h2,body.effect-gradient-flow .btn.primary{background-image:linear-gradient(110deg,var(--tenant-primary),var(--tenant-accent),#fff,var(--tenant-primary));background-size:260% 100%;animation:n22GradientFlow 7s linear infinite}body.effect-gradient-flow h1,body.effect-gradient-flow .section h2{-webkit-background-clip:text;background-clip:text;color:transparent}@keyframes n22GradientFlow{to{background-position:260% 0}}
body.effect-ambient-pulse .card,body.effect-ambient-pulse .contact-card,body.effect-ambient-pulse .hero-image-card{animation:n22AmbientPulse 5s ease-in-out infinite alternate}@keyframes n22AmbientPulse{from{box-shadow:0 22px 54px rgba(0,0,0,.26)}to{box-shadow:0 28px 76px rgba(0,0,0,.34),0 0 32px color-mix(in srgb,var(--tenant-primary) 18%,transparent)}}
body.effect-shimmer-sweep .contact-card,body.effect-shimmer-sweep .btn{position:relative;overflow:hidden}body.effect-shimmer-sweep .contact-card:after,body.effect-shimmer-sweep .btn:after{content:"";position:absolute;inset:-60% auto -60% -35%;width:18%;transform:rotate(18deg);background:rgba(255,255,255,.22);animation:n22Shimmer 5.5s ease-in-out infinite;pointer-events:none}@keyframes n22Shimmer{0%,55%{left:-35%}80%,100%{left:125%}}
body.effect-reveal-lines .site-header nav a,body.effect-reveal-lines h1,body.effect-reveal-lines .section h2{position:relative}body.effect-reveal-lines .site-header nav a:after,body.effect-reveal-lines h1:after,body.effect-reveal-lines .section h2:after{content:"";display:block;height:2px;width:0;background:linear-gradient(90deg,var(--tenant-primary),var(--tenant-accent));transition:width .35s ease;margin-top:7px}body.effect-reveal-lines .site-header nav a:hover:after,body.effect-reveal-lines .site-header nav a[aria-current="page"]:after,body.effect-reveal-lines h1:after,body.effect-reveal-lines .section h2:after{width:100%}
body.effect-image-zoom .hero-image-card,body.effect-image-zoom .blog-thumb{overflow:hidden}body.effect-image-zoom .hero-image-card img,body.effect-image-zoom .blog-thumb img{transition:transform .7s cubic-bezier(.2,.75,.2,1),filter .7s ease}body.effect-image-zoom .hero-image-card:hover img,body.effect-image-zoom .blog-thumb:hover img{transform:scale(1.07);filter:saturate(1.08)}
body.effect-spotlight-hover .contact-card{background-image:radial-gradient(circle at 20% 0%,color-mix(in srgb,var(--tenant-primary) 13%,transparent),transparent 42%),linear-gradient(180deg,rgba(8,15,30,.82),rgba(6,10,20,.72));transition:background-position .4s ease,transform .25s ease;background-size:160% 160%,auto}body.effect-spotlight-hover .contact-card:hover{background-position:70% 30%,0 0}
body.effect-cinematic-drift .hero-image-card img{animation:n22CinematicDrift 16s ease-in-out infinite alternate;transform-origin:center}@keyframes n22CinematicDrift{from{transform:scale(1.02) translate3d(-1%,0,0)}to{transform:scale(1.08) translate3d(1.5%,-1%,0)}}
body.effect-text-gradient h1,body.effect-text-gradient .section h2,body.effect-text-gradient .brand{background:linear-gradient(110deg,var(--tenant-primary),#fff,var(--tenant-accent));-webkit-background-clip:text;background-clip:text;color:transparent}
body.effect-section-rise main>.section,body.effect-section-rise .hero{animation:n22SectionRise .72s both;animation-timing-function:cubic-bezier(.2,.75,.2,1)}body.effect-section-rise main>.section:nth-of-type(2){animation-delay:.08s}body.effect-section-rise main>.section:nth-of-type(3){animation-delay:.16s}@keyframes n22SectionRise{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
body.effect-micro-interactions .site-header nav a,body.effect-micro-interactions .btn,body.effect-micro-interactions .card,body.effect-micro-interactions .hero-image-card{transition:transform .22s ease,box-shadow .22s ease,filter .22s ease,border-color .22s ease}body.effect-micro-interactions .site-header nav a:hover{transform:translateY(-2px)}body.effect-micro-interactions .btn:hover{transform:translateY(-3px) scale(1.015)}body.effect-micro-interactions .card:hover{transform:translateY(-7px) scale(1.01)}body.effect-micro-interactions .hero-image-card:hover{transform:translateY(-5px);box-shadow:0 34px 90px rgba(0,0,0,.38)}

/* design studio spacing and preview polish */
.theme-grid{gap:24px}.theme-card-body{gap:14px;padding:22px}.theme-card-body>p{min-height:4.65em}.template-menu-preview{display:grid;gap:8px;padding:12px;border:1px solid rgba(148,190,219,.13);border-radius:12px;background:rgba(255,255,255,.025)}.template-menu-preview strong{font-size:.76rem;color:#d9eaf5}.template-menu-preview>div{display:flex;flex-wrap:wrap;gap:6px}.nav-chip{display:inline-flex;padding:5px 8px;border-radius:8px;border:1px solid rgba(148,190,219,.16);color:#b8d0df;font-size:.69rem}.nav-chip-primary{background:linear-gradient(135deg,var(--swatch-primary),var(--swatch-accent));color:#06101f;border:0;font-weight:850}.nav-chip-outline{border-color:var(--swatch-primary);color:#fff}.preview-selections{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.preview-selections span{padding:5px 8px;border-radius:999px;background:rgba(34,211,238,.08);border:1px solid rgba(34,211,238,.18);color:#c9f8ff;font-size:.7rem}.designer-preview[data-card-spacing="compact"] .dp-grid{gap:5px}.designer-preview[data-card-spacing="generous"] .dp-grid{gap:16px}.designer-preview[data-card-spacing="dense"] .dp-grid article{height:78px}.designer-preview[data-border="strong"] .dp-grid article{border-width:2px;border-color:var(--preview-primary)}.designer-preview[data-border="dashed"] .dp-grid article{border-style:dashed}.designer-preview[data-border="double"] .dp-grid article{border:3px double var(--preview-primary)}.designer-preview[data-border="none"] .dp-grid article{border-color:transparent}

.cms-admin label small{font-weight:500;color:var(--muted);line-height:1.45}.cms-admin .form-grid>label{align-content:start}.cms-admin .admin-section{padding:clamp(20px,2.4vw,30px)}

@media(max-width:760px){.card-grid{gap:16px}.card{min-height:0}.theme-grid{gap:16px}.theme-card-body>p{min-height:0}.site-header nav .nav-item.nav-style-primary,.site-header nav .nav-item.nav-style-outline{width:auto}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Stage 24: premium agency template finish and independent motion studio */
:root{
  --premium-ease:cubic-bezier(.22,.72,.2,1);
  --premium-spring:cubic-bezier(.18,.89,.32,1.22);
  --premium-shadow:0 28px 90px rgba(0,0,0,.34);
  --premium-shadow-hover:0 38px 110px rgba(0,0,0,.43);
  --premium-highlight:color-mix(in srgb,var(--tenant-primary) 18%,transparent);
}
html{scroll-behavior:smooth;scroll-padding-top:0}body:not(.cms-admin):not(.admin-screen){overflow-x:hidden;background-attachment:scroll}body:not(.cms-admin):not(.admin-screen):before{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;background:radial-gradient(circle at 82% 12%,color-mix(in srgb,var(--tenant-accent) 8%,transparent),transparent 30%),radial-gradient(circle at 14% 74%,color-mix(in srgb,var(--tenant-primary) 7%,transparent),transparent 34%)}
.site-main{position:relative;isolation:isolate}.site-main:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,transparent 0 7%,rgba(255,255,255,.018) 7% 7.08%,transparent 7.08% 92.9%,rgba(255,255,255,.018) 92.9% 93%,transparent 93%)}
.site-header{transition:padding .35s var(--premium-ease),background .35s ease,box-shadow .35s ease,border-color .35s ease;box-shadow:0 12px 36px rgba(0,0,0,.16)}.site-header:after{content:"";position:absolute;left:clamp(20px,5vw,72px);right:clamp(20px,5vw,72px);bottom:-1px;height:1px;background:linear-gradient(90deg,transparent,var(--tenant-primary),var(--tenant-accent),transparent);opacity:.42}.brand{letter-spacing:-.015em;transition:transform .3s var(--premium-ease),filter .3s ease}.brand:hover{transform:translateY(-1px);filter:brightness(1.08)}.brand-mark,.brand-logo{box-shadow:0 12px 32px color-mix(in srgb,var(--tenant-primary) 16%,rgba(0,0,0,.25));transition:transform .45s var(--premium-spring),box-shadow .35s ease}.brand:hover .brand-mark,.brand:hover .brand-logo{transform:rotate(-3deg) scale(1.04);box-shadow:0 18px 44px color-mix(in srgb,var(--tenant-primary) 25%,rgba(0,0,0,.28))}
.hero{position:relative;isolation:isolate}.hero:before{content:"";position:absolute;z-index:-1;width:min(40vw,520px);aspect-ratio:1;right:-8%;top:8%;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--tenant-primary) 16%,transparent),transparent 68%);filter:blur(10px);opacity:.72}.hero:after{content:"";position:absolute;left:clamp(20px,7vw,100px);bottom:20px;width:min(180px,28vw);height:2px;background:linear-gradient(90deg,var(--tenant-primary),var(--tenant-accent),transparent);box-shadow:0 0 24px color-mix(in srgb,var(--tenant-primary) 42%,transparent)}.hero h1{letter-spacing:-.045em;text-wrap:balance;text-shadow:0 18px 50px rgba(0,0,0,.2)}.hero .lead{text-wrap:pretty}.hero-actions{align-items:center}.hero-image-card{position:relative;isolation:isolate;box-shadow:var(--premium-shadow);transition:transform .65s var(--premium-ease),box-shadow .65s var(--premium-ease),border-color .45s ease}.hero-image-card:before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(135deg,rgba(255,255,255,.16),transparent 28%,transparent 70%,color-mix(in srgb,var(--tenant-primary) 12%,transparent));mix-blend-mode:screen}.hero-image-card:hover{transform:translateY(-5px);box-shadow:var(--premium-shadow-hover);border-color:color-mix(in srgb,var(--tenant-primary) 46%,rgba(255,255,255,.16))}
.section{position:relative}.section-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:end}.section-heading:after{content:none;display:none}.section h2{letter-spacing:-.035em;text-wrap:balance}.section .eyebrow{margin-bottom:.75rem}.split,.contact-card{position:relative;overflow:hidden}.split:after,.contact-card:before{content:"";position:absolute;pointer-events:none;width:240px;aspect-ratio:1;border-radius:50%;right:-90px;bottom:-120px;background:radial-gradient(circle,color-mix(in srgb,var(--tenant-accent) 13%,transparent),transparent 70%)}
.card-grid{counter-reset:premium-card}.card{counter-increment:premium-card;position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-start;box-shadow:var(--premium-shadow);transition:border-color .45s ease,box-shadow .55s var(--premium-ease),background-position .55s ease,filter .45s ease,transform .55s var(--premium-ease)}.card h3{font-size:clamp(1.18rem,1.8vw,1.48rem);line-height:1.2;letter-spacing:-.02em;margin-bottom:.75rem;padding-right:3.2rem}.card p{margin-top:0}.card-grid .card>h3:after{content:"0" counter(premium-card);position:absolute;right:22px;top:21px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.72rem;letter-spacing:.12em;color:color-mix(in srgb,var(--tenant-primary) 74%,#fff);opacity:.72}.card-accent{position:absolute;z-index:4;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,var(--tenant-primary),var(--tenant-accent));transform:scaleX(.32);transform-origin:left;opacity:.7;transition:transform .55s var(--premium-ease),opacity .4s ease;pointer-events:none}.card-grid .card:hover .card-accent{transform:scaleX(1);opacity:1}.motion-card>*:not(.motion-card-overlay):not(.motion-card-effect-layer):not(.card-accent){position:relative;z-index:2}.motion-card-overlay,.motion-card-effect-layer{position:absolute;inset:0;pointer-events:none;opacity:0;border-radius:inherit}.motion-card-overlay{z-index:1;transition:opacity .4s ease,background-position .65s var(--premium-ease)}.motion-card-effect-layer{z-index:0;transition:opacity .4s ease,transform .75s var(--premium-ease),background-position .75s var(--premium-ease)}
.blog-card{position:relative;isolation:isolate;overflow:hidden;box-shadow:var(--premium-shadow);transition:transform .55s var(--premium-ease),box-shadow .55s var(--premium-ease),border-color .4s ease}.blog-card:hover{border-color:color-mix(in srgb,var(--tenant-primary) 38%,var(--line));box-shadow:var(--premium-shadow-hover)}.blog-card h2{letter-spacing:-.025em}.blog-thumb{overflow:hidden}.blog-thumb img{transition:transform 1s var(--premium-ease),filter .7s ease}.blog-card:hover .blog-thumb img{transform:scale(1.055);filter:saturate(1.06) contrast(1.03)}
.page-content{font-size:1.04rem}.page-content>p:first-child{font-size:1.14rem;color:#e4f2fb}.page-content h2,.page-content h3{letter-spacing:-.025em;margin-top:1.6em}.page-content a:not(.btn){color:var(--tenant-accent);text-decoration-thickness:1px;text-underline-offset:4px}.contact-form input,.contact-form textarea{transition:border-color .3s ease,box-shadow .3s ease,background .3s ease}.contact-form input:focus,.contact-form textarea:focus{outline:0;border-color:color-mix(in srgb,var(--tenant-primary) 75%,#fff);box-shadow:0 0 0 4px color-mix(in srgb,var(--tenant-primary) 13%,transparent);background:rgba(255,255,255,.075)}
.btn{position:relative;isolation:isolate;overflow:hidden;transition:transform .35s var(--premium-ease),box-shadow .35s var(--premium-ease),filter .3s ease,border-color .3s ease,background-position .5s ease}.btn:focus-visible,.site-header a:focus-visible{outline:2px solid var(--tenant-accent);outline-offset:4px}.btn.primary{box-shadow:0 14px 34px color-mix(in srgb,var(--tenant-primary) 20%,rgba(0,0,0,.3))}
footer{position:relative;background:linear-gradient(180deg,transparent,rgba(0,0,0,.18));letter-spacing:.02em}footer:before{content:"";position:absolute;left:50%;top:0;width:min(320px,55vw);height:1px;transform:translateX(-50%);background:linear-gradient(90deg,transparent,var(--tenant-primary),var(--tenant-accent),transparent)}

/* Scroll-reveal foundations. Content stays visible until JavaScript is ready. */
.motion-ready .motion-hero-item,.motion-ready .motion-section,.motion-ready .motion-card,.motion-ready .motion-content-item{will-change:opacity,transform,filter,clip-path;transition-property:opacity,transform,filter,clip-path;transition-duration:.82s;transition-timing-function:var(--premium-ease);transition-delay:calc(var(--motion-index,0) * 75ms)}
.motion-ready .motion-hero-item.is-visible,.motion-ready .motion-section.is-visible,.motion-ready .motion-card.is-visible,.motion-ready .motion-content-item.is-visible{opacity:1;filter:none;clip-path:inset(0 0 0 0);transform:none}

/* Hero entrances */
.motion-ready.hero-animation-refined-fade .motion-hero-item{opacity:0;transform:translateY(18px)}
.motion-ready.hero-animation-rise-sequence .motion-hero-item{opacity:0;transform:translateY(42px)}
.motion-ready.hero-animation-split-slide .motion-hero-item{opacity:0;transform:translateX(-42px)}.motion-ready.hero-animation-split-slide .motion-hero-item:nth-child(even){transform:translateX(42px)}
.motion-ready.hero-animation-scale-focus .motion-hero-item{opacity:0;transform:scale(.94) translateY(14px);filter:blur(4px)}
.motion-ready.hero-animation-editorial-wipe .motion-hero-item{opacity:0;clip-path:inset(0 100% 0 0);transform:translateY(8px)}
.motion-ready.hero-animation-spotlight-build .motion-hero-item{opacity:0;transform:translateY(24px) scale(.97);filter:brightness(.65) blur(3px)}
.motion-ready.hero-animation-kinetic-lines .motion-hero-item{opacity:0;transform:translateX(-34px) skewX(-3deg);filter:blur(2px)}
.motion-ready.hero-animation-soft-blur .motion-hero-item{opacity:0;transform:translateY(16px);filter:blur(12px)}
.motion-ready.hero-animation-cinematic-reveal .motion-hero-item{opacity:0;transform:translateY(30px) scale(1.025);filter:blur(7px);transition-duration:1.15s}

/* Section transitions */
.motion-ready.section-transition-fade-rise .motion-section{opacity:0;transform:translateY(38px)}
.motion-ready.section-transition-alternating-slide .motion-section{opacity:0;transform:translateX(-48px)}.motion-ready.section-transition-alternating-slide .motion-section:nth-of-type(even){transform:translateX(48px)}
.motion-ready.section-transition-soft-blur .motion-section{opacity:0;transform:translateY(24px);filter:blur(12px)}
.motion-ready.section-transition-clip-reveal .motion-section{opacity:.2;clip-path:inset(22% 0 0 0);transform:translateY(30px)}
.motion-ready.section-transition-scale-settle .motion-section{opacity:0;transform:scale(.965) translateY(18px)}
.motion-ready.section-transition-layered-depth .motion-section{opacity:0;transform:perspective(1200px) translateY(52px) rotateX(3deg);filter:blur(3px)}
.motion-ready.section-transition-line-draw .motion-section{opacity:0;transform:translateY(24px);border-color:transparent}.motion-ready.section-transition-line-draw .motion-section.is-visible{border-color:var(--line)}
.motion-ready.section-transition-cinematic-pan .motion-section{opacity:0;transform:translate3d(0,46px,0) scale(1.018);filter:blur(5px);transition-duration:1.05s}

/* Card entrances */
.motion-ready.card-animation-fade-up .motion-card{opacity:0;transform:translateY(26px)}
.motion-ready.card-animation-stagger-rise .motion-card{opacity:0;transform:translateY(46px) scale(.985)}
.motion-ready.card-animation-cascade-left .motion-card{opacity:0;transform:translateX(-46px)}
.motion-ready.card-animation-cascade-right .motion-card{opacity:0;transform:translateX(46px)}
.motion-ready.card-animation-scale-in .motion-card{opacity:0;transform:scale(.9);filter:blur(3px)}
.motion-ready.card-animation-flip-up .motion-card{opacity:0;transform:perspective(900px) rotateX(12deg) translateY(30px);transform-origin:50% 100%}
.motion-ready.card-animation-blur-in .motion-card{opacity:0;transform:translateY(18px);filter:blur(14px)}
.motion-ready.card-animation-spring-in .motion-card{opacity:0;transform:translateY(48px) scale(.94);transition-timing-function:var(--premium-spring)}
.motion-ready.card-animation-fan-in .motion-card{opacity:0;transform:translateY(40px) rotate(calc((var(--motion-index,0) - 1) * 2.5deg));transform-origin:50% 120%}
.motion-ready.card-animation-alternating .motion-card{opacity:0;transform:translateX(-42px) translateY(14px)}.motion-ready.card-animation-alternating .motion-card:nth-child(even){transform:translateX(42px) translateY(14px)}

/* Sitewide card effects use their own layer so they can combine with every card surface and hover option. */
body.effect-edge-light .motion-card .motion-card-effect-layer{background:linear-gradient(115deg,transparent 18%,color-mix(in srgb,var(--tenant-accent) 48%,transparent),transparent 55%);transform:translateX(-115%)}body.effect-edge-light .motion-card:hover .motion-card-effect-layer{opacity:.55;transform:translateX(115%)}
body.effect-shimmer-sweep .motion-card .motion-card-effect-layer{opacity:.7;background:linear-gradient(115deg,transparent 30%,rgba(255,255,255,.18) 46%,transparent 62%);background-size:260% 100%;animation:n22CardLayerShimmer 5.5s ease-in-out infinite}@keyframes n22CardLayerShimmer{0%,55%{background-position:145% 0}82%,100%{background-position:-65% 0}}
body.effect-spotlight-hover .motion-card .motion-card-effect-layer{background:radial-gradient(circle at var(--spot-x,20%) var(--spot-y,0%),color-mix(in srgb,var(--tenant-primary) 16%,transparent),transparent 42%)}body.effect-spotlight-hover .motion-card:hover .motion-card-effect-layer{opacity:1}

/* Card hover interactions */
.card-hover-refined-lift .motion-card.is-visible:hover{transform:translateY(-11px);box-shadow:var(--premium-shadow-hover);filter:brightness(1.035)}
.card-hover-tilt-3d .motion-card.is-visible:hover{transform:perspective(1000px) rotateX(var(--tilt-y,0deg)) rotateY(var(--tilt-x,0deg)) translateY(-8px) scale(1.012);box-shadow:var(--premium-shadow-hover)}
.card-hover-glow-edge .motion-card.is-visible:hover{transform:translateY(-7px);border-color:color-mix(in srgb,var(--tenant-primary) 72%,#fff);box-shadow:0 32px 92px rgba(0,0,0,.4),0 0 36px color-mix(in srgb,var(--tenant-primary) 24%,transparent)}
.card-hover-border-trace .motion-card.is-visible .motion-card-overlay{opacity:1;background:linear-gradient(90deg,var(--tenant-primary),var(--tenant-accent)) left top/0 2px no-repeat,linear-gradient(180deg,var(--tenant-accent),var(--tenant-primary)) right top/2px 0 no-repeat,linear-gradient(270deg,var(--tenant-primary),var(--tenant-accent)) right bottom/0 2px no-repeat,linear-gradient(0deg,var(--tenant-accent),var(--tenant-primary)) left bottom/2px 0 no-repeat;transition:background-size .65s var(--premium-ease)}.card-hover-border-trace .motion-card.is-visible:hover .motion-card-overlay{background-size:100% 2px,2px 100%,100% 2px,2px 100%}.card-hover-border-trace .motion-card.is-visible:hover{border-color:color-mix(in srgb,var(--tenant-accent) 65%,var(--line));box-shadow:var(--premium-shadow-hover)}
.card-hover-spotlight .motion-card.is-visible .motion-card-overlay{background:radial-gradient(circle at var(--spot-x,50%) var(--spot-y,50%),color-mix(in srgb,var(--tenant-primary) 22%,transparent),transparent 42%)}.card-hover-spotlight .motion-card.is-visible:hover .motion-card-overlay{opacity:1}.card-hover-spotlight .motion-card.is-visible:hover{transform:translateY(-7px);box-shadow:var(--premium-shadow-hover)}
.card-hover-floating .motion-card.is-visible:hover{transform:translateY(-9px) rotate(.35deg);box-shadow:var(--premium-shadow-hover)}
.card-hover-magnetic-lite .motion-card.is-visible:hover{transform:translate3d(var(--mag-x,0),var(--mag-y,0),0) scale(1.012);box-shadow:var(--premium-shadow-hover)}
.card-hover-shadow-pop .motion-card.is-visible:hover{transform:translate(-5px,-7px);box-shadow:12px 14px 0 color-mix(in srgb,var(--tenant-primary) 28%,rgba(0,0,0,.8)),0 28px 70px rgba(0,0,0,.35)}
.card-hover-sheen .motion-card.is-visible .motion-card-overlay{opacity:.01;background:linear-gradient(115deg,transparent 28%,rgba(255,255,255,.2) 46%,transparent 62%);background-size:240% 100%;background-position:130% 0}.card-hover-sheen .motion-card.is-visible:hover .motion-card-overlay{opacity:1;background-position:-40% 0}.card-hover-sheen .motion-card.is-visible:hover{transform:translateY(-8px);box-shadow:var(--premium-shadow-hover)}
.card-hover-depth-shift .motion-card.is-visible:hover{transform:perspective(1100px) translateZ(22px) translateY(-9px) scale(1.018);box-shadow:0 44px 120px rgba(0,0,0,.48)}
.card-hover-accent-sweep .motion-card.is-visible .motion-card-overlay{background:linear-gradient(120deg,color-mix(in srgb,var(--tenant-primary) 18%,transparent),transparent 45%,color-mix(in srgb,var(--tenant-accent) 15%,transparent));transform:translateX(-35%);opacity:0;transition:transform .6s var(--premium-ease),opacity .35s ease}.card-hover-accent-sweep .motion-card.is-visible:hover .motion-card-overlay{transform:none;opacity:1}.card-hover-accent-sweep .motion-card.is-visible:hover{transform:translateY(-8px);box-shadow:var(--premium-shadow-hover)}

/* Navigation motion */
.nav-motion-label{position:relative;display:inline-flex;align-items:center}.navigation-motion-underline-grow .nav-motion-label:after{content:"";position:absolute;left:4%;right:4%;bottom:-5px;height:2px;background:linear-gradient(90deg,var(--tenant-primary),var(--tenant-accent));transform:scaleX(0);transform-origin:center;transition:transform .35s var(--premium-ease)}.navigation-motion-underline-grow .site-header .nav-item:hover .nav-motion-label:after,.navigation-motion-underline-grow .site-header .nav-item[aria-current="page"] .nav-motion-label:after{transform:scaleX(1)}
.navigation-motion-pill-lift .site-header .nav-item{transition:transform .3s var(--premium-spring),background .3s ease}.navigation-motion-pill-lift .site-header .nav-item:hover{transform:translateY(-3px);background:color-mix(in srgb,var(--tenant-primary) 10%,transparent)}
.navigation-motion-glow-track .site-header .nav-item{transition:color .3s ease,text-shadow .3s ease}.navigation-motion-glow-track .site-header .nav-item:hover{color:#fff;text-shadow:0 0 16px var(--tenant-primary)}
.navigation-motion-colour-wipe .site-header .nav-item:not(.nav-style-primary) .nav-motion-label{background:linear-gradient(90deg,var(--tenant-primary),var(--tenant-accent),var(--muted));background-size:200% 100%;background-position:100% 0;-webkit-background-clip:text;background-clip:text;color:transparent;transition:background-position .4s var(--premium-ease)}.navigation-motion-colour-wipe .site-header .nav-item:not(.nav-style-primary):hover .nav-motion-label,.navigation-motion-colour-wipe .site-header .nav-item:not(.nav-style-primary)[aria-current="page"] .nav-motion-label{background-position:0 0}
.navigation-motion-bracket-in .nav-motion-label:before,.navigation-motion-bracket-in .nav-motion-label:after{display:inline-block;opacity:0;transition:opacity .25s ease,transform .3s var(--premium-ease);color:var(--tenant-primary)}.navigation-motion-bracket-in .nav-motion-label:before{content:"[";transform:translateX(5px)}.navigation-motion-bracket-in .nav-motion-label:after{content:"]";transform:translateX(-5px)}.navigation-motion-bracket-in .site-header .nav-item:hover .nav-motion-label:before,.navigation-motion-bracket-in .site-header .nav-item:hover .nav-motion-label:after,.navigation-motion-bracket-in .site-header .nav-item[aria-current="page"] .nav-motion-label:before,.navigation-motion-bracket-in .site-header .nav-item[aria-current="page"] .nav-motion-label:after{opacity:1;transform:none}
.navigation-motion-dot-travel .nav-motion-label:after{content:"";position:absolute;width:5px;height:5px;border-radius:50%;left:0;bottom:-6px;background:var(--tenant-accent);opacity:0;transform:translateX(0);transition:opacity .2s ease,transform .4s var(--premium-ease);box-shadow:0 0 12px var(--tenant-accent)}.navigation-motion-dot-travel .site-header .nav-item:hover .nav-motion-label:after{opacity:1;transform:translateX(calc(100% + 4px))}
.navigation-motion-soft-slide .site-header .nav-item{transition:transform .3s var(--premium-ease),color .3s ease}.navigation-motion-soft-slide .site-header .nav-item:hover{transform:translateX(4px)}

/* Independent button motion */
.button-motion-lift .btn:hover{transform:translateY(-4px);box-shadow:0 18px 44px color-mix(in srgb,var(--tenant-primary) 18%,rgba(0,0,0,.35))}
.button-motion-arrow-slide .button-motion-arrow{display:inline-block;margin-left:2px;transition:transform .3s var(--premium-spring)}.button-motion-arrow-slide .btn:hover .button-motion-arrow{transform:translateX(5px)}
.button-motion-glow-pulse .btn:hover{transform:translateY(-2px);box-shadow:0 0 0 5px color-mix(in srgb,var(--tenant-primary) 9%,transparent),0 0 34px color-mix(in srgb,var(--tenant-primary) 26%,transparent)}
.button-motion-press .btn:hover{transform:translateY(-2px)}.button-motion-press .btn:active{transform:translateY(2px) scale(.985);box-shadow:none}
.button-motion-magnetic .btn{transform:translate3d(var(--button-x,0),var(--button-y,0),0)}.button-motion-magnetic .btn:hover{box-shadow:0 18px 48px color-mix(in srgb,var(--tenant-primary) 20%,rgba(0,0,0,.35))}
.button-motion-fill-sweep .btn:not(.primary){box-shadow:inset 0 0 0 0 color-mix(in srgb,var(--tenant-primary) 18%,transparent)}.button-motion-fill-sweep .btn:not(.primary):hover{box-shadow:inset 0 0 0 999px color-mix(in srgb,var(--tenant-primary) 18%,transparent),0 16px 42px rgba(0,0,0,.28);transform:translateY(-3px)}
.button-motion-border-flow .btn{border-color:color-mix(in srgb,var(--tenant-primary) 42%,var(--line));box-shadow:inset 0 0 0 0 color-mix(in srgb,var(--tenant-primary) 12%,transparent)}.button-motion-border-flow .btn:hover{border-color:var(--tenant-accent);box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--tenant-accent) 20%,transparent),0 14px 36px rgba(0,0,0,.25);transform:translateY(-3px)}
.button-motion-bounce-soft .btn:hover{animation:n22ButtonBounce .52s var(--premium-spring)}@keyframes n22ButtonBounce{0%,100%{transform:translateY(0)}45%{transform:translateY(-6px) scale(1.02)}70%{transform:translateY(-2px)}}
.button-motion-shimmer .button-motion-shimmer-layer{position:absolute;z-index:2;inset:-45% auto -45% -45%;width:22%;transform:rotate(18deg);background:rgba(255,255,255,.28);transition:left .7s var(--premium-ease);pointer-events:none;mix-blend-mode:screen}.button-motion-shimmer .btn:hover .button-motion-shimmer-layer{left:130%}

/* Design Studio live miniature motion preview */
.designer-preview .dp-hero,.designer-preview .dp-grid article{transition:transform .55s var(--premium-ease),opacity .45s ease,filter .45s ease,box-shadow .45s ease}.designer-preview[data-hero-animation="split-slide"] .dp-hero{animation:n22PreviewHero 1.8s var(--premium-ease) infinite alternate}.designer-preview[data-hero-animation="scale-focus"] .dp-hero{animation:n22PreviewFocus 1.8s ease-in-out infinite alternate}.designer-preview[data-card-animation="stagger-rise"] .dp-grid article{animation:n22PreviewCards 2.2s var(--premium-ease) infinite alternate}.designer-preview[data-card-animation="stagger-rise"] .dp-grid article:nth-child(2){animation-delay:.12s}.designer-preview[data-card-animation="stagger-rise"] .dp-grid article:nth-child(3){animation-delay:.24s}.designer-preview[data-card-hover="glow-edge"] .dp-grid article{box-shadow:0 0 18px color-mix(in srgb,var(--preview-primary) 22%,transparent)}.designer-preview[data-card-hover="refined-lift"] .dp-grid article:nth-child(2){transform:translateY(-5px)}@keyframes n22PreviewHero{from{transform:translateX(-7px);opacity:.72}to{transform:translateX(7px);opacity:1}}@keyframes n22PreviewFocus{from{transform:scale(.96);filter:blur(2px)}to{transform:scale(1);filter:none}}@keyframes n22PreviewCards{from{transform:translateY(8px);opacity:.62}to{transform:none;opacity:1}}

@media(max-width:760px){.section-heading{grid-template-columns:1fr}.section-heading:after{display:none}.card-grid .card>h3:after{right:18px;top:18px}.hero:before{right:-30%;width:75vw}.motion-ready.section-transition-alternating-slide .motion-section,.motion-ready.section-transition-alternating-slide .motion-section:nth-of-type(even),.motion-ready.card-animation-cascade-left .motion-card,.motion-ready.card-animation-cascade-right .motion-card,.motion-ready.card-animation-alternating .motion-card,.motion-ready.card-animation-alternating .motion-card:nth-child(even){transform:translateY(28px)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.motion-ready .motion-hero-item,.motion-ready .motion-section,.motion-ready .motion-card,.motion-ready .motion-content-item{opacity:1!important;transform:none!important;filter:none!important;clip-path:none!important}.card-hover-floating .motion-card.is-visible:hover,.card-hover-tilt-3d .motion-card.is-visible:hover,.card-hover-magnetic-lite .motion-card.is-visible:hover,.button-motion-magnetic .btn{transform:none!important}}


.site-header.is-scrolled{background:rgba(5,9,21,.9);box-shadow:0 18px 46px rgba(0,0,0,.28)}.site-header.is-condensed{padding-top:12px;padding-bottom:12px}.site-header.is-condensed .brand-mark,.site-header.is-condensed .brand-logo{transform:scale(.9)}
html,body{overflow-x:clip}
/* Final reveal state must win over each selected entrance preset. */
.motion-ready[class*="hero-animation-"] .motion-hero-item.is-visible,
.motion-ready[class*="section-transition-"] .motion-section.is-visible,
.motion-ready[class*="card-animation-"] .motion-card.is-visible,
.motion-ready .motion-content-item.is-visible{opacity:1;filter:none;clip-path:inset(0 0 0 0);transform:none}

/* Stage 25 — reusable content modules */
.module-section{position:relative;max-width:none;margin:0;padding-block:clamp(42px,6vw,88px);overflow:clip;isolation:isolate}
.module-section:before{content:"";position:absolute;inset:0;z-index:-2;background:var(--module-bg) center/cover no-repeat;opacity:.18;pointer-events:none}
.module-section:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(135deg,color-mix(in srgb,var(--tenant-primary) 5%,transparent),transparent 42%,color-mix(in srgb,var(--tenant-accent) 5%,transparent));pointer-events:none}
.module-inner{width:min(100% - clamp(40px,10vw,200px),1280px);margin-inline:auto;position:relative}
.module-width-narrow .module-inner{max-width:780px}.module-width-standard .module-inner{max-width:1080px}.module-width-wide .module-inner{max-width:1440px}.module-width-full .module-inner{width:100%;max-width:none}
.module-align-center .module-heading,.module-align-center .module-rich-text,.module-align-center .module-actions{text-align:center;justify-content:center;margin-inline:auto}.module-align-center .module-intro{margin-inline:auto}.module-align-right .module-heading,.module-align-right .module-rich-text,.module-align-right .module-actions{text-align:right;justify-content:flex-end;margin-left:auto}.module-align-right .module-intro{margin-left:auto}
.module-heading{max-width:850px;margin-bottom:clamp(22px,3vw,38px)}.module-heading h2{margin:.08em 0 .32em}.module-heading .module-intro{max-width:760px;color:var(--muted);font-size:clamp(1rem,1.7vw,1.18rem);line-height:1.72}.module-heading .module-intro p{margin:.45em 0}
.module-rich-text{max-width:900px;color:#d9e9f4;font-size:1.06rem;line-height:1.82}.module-rich-text p{margin:0 0 1.25rem}
.module-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:24px}
.module-card{position:relative;border:1px solid var(--line);border-radius:var(--premium-radius,24px);background:linear-gradient(180deg,rgba(10,18,35,.88),rgba(5,10,22,.78));box-shadow:0 22px 56px rgba(0,0,0,.28);overflow:hidden}
.module-style-surface .module-inner,.module-style-glass .module-inner,.module-style-contrast .module-inner,.module-style-accent .module-inner,.module-style-outline .module-inner{padding:clamp(28px,5vw,64px);border-radius:calc(var(--premium-radius,24px) + 8px)}
.module-style-surface .module-inner{background:linear-gradient(180deg,rgba(10,18,35,.9),rgba(5,10,22,.84));border:1px solid var(--line);box-shadow:0 30px 90px rgba(0,0,0,.3)}
.module-style-glass .module-inner{background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(22px);box-shadow:inset 0 1px rgba(255,255,255,.12),0 30px 90px rgba(0,0,0,.26)}
.module-style-contrast .module-inner{background:#eef8ff;color:#07111f;box-shadow:0 30px 90px rgba(0,0,0,.32)}.module-style-contrast .module-inner h2,.module-style-contrast .module-inner h3,.module-style-contrast .module-inner strong{color:#07111f}.module-style-contrast .module-inner p,.module-style-contrast .module-intro{color:#334155}
.module-style-accent .module-inner{background:linear-gradient(135deg,color-mix(in srgb,var(--tenant-primary) 82%,#fff),color-mix(in srgb,var(--tenant-accent) 78%,#fff));color:#06101f;box-shadow:0 28px 80px color-mix(in srgb,var(--tenant-primary) 22%,rgba(0,0,0,.34))}.module-style-accent .eyebrow,.module-style-accent h2,.module-style-accent h3,.module-style-accent p,.module-style-accent .module-intro{color:#06101f}
.module-style-outline .module-inner{border:2px solid color-mix(in srgb,var(--tenant-primary) 56%,var(--line));background:rgba(5,9,21,.35)}
.module-style-minimal{padding-block:clamp(28px,4vw,58px)}.module-style-minimal:after{display:none}.module-style-full_bleed{padding-inline:0}.module-style-full_bleed .module-inner{width:100%;max-width:none}

/* Image and text */
.module-split{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(28px,5vw,72px);align-items:center}.module-media-right .module-media{order:2}.module-media-right .module-copy{order:1}.module-media img{display:block;width:100%;height:auto;max-height:720px;object-fit:cover;aspect-ratio:4/3}.module-media figcaption,.module-video-wrap figcaption{padding:12px 16px;color:var(--muted);font-size:.9rem}.module-copy>p{color:#d7e7f2;line-height:1.78}

/* Image gallery and logos */
.module-gallery,.module-feature-grid,.module-stats{display:grid;grid-template-columns:repeat(var(--module-columns,3),minmax(0,1fr));gap:clamp(12px,2vw,24px)}.module-gallery-item{display:block;aspect-ratio:4/3;cursor:zoom-in}.module-gallery-item img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .7s var(--premium-ease, ease),filter .45s ease}.module-gallery-item:hover img{transform:scale(1.055);filter:saturate(1.08) contrast(1.03)}
.module-logo-cloud{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:18px;align-items:stretch}.module-logo-item{min-height:120px;display:grid;place-items:center;padding:22px;background:rgba(255,255,255,.94)}.module-logo-item img{display:block;max-width:100%;max-height:82px;width:auto;height:auto;object-fit:contain;filter:saturate(.9);transition:filter .3s ease,transform .35s ease}.module-logo-item:hover img{filter:saturate(1);transform:scale(1.04)}

/* Video */
.module-video-wrap{margin:0;overflow:hidden;background:#02050a}.module-video-wrap video{display:block;width:100%;max-height:min(78vh,820px);background:#000;object-fit:contain}

/* Rotating banners */
.module-type-banner{padding-block:clamp(24px,4vw,56px)}.module-type-banner.module-width-full .module-inner{width:100%}.module-banner{position:relative;min-height:clamp(420px,58vw,720px);overflow:hidden;border-radius:var(--premium-radius,28px);border:1px solid rgba(255,255,255,.14);box-shadow:0 38px 110px rgba(0,0,0,.42);background:#050915}.module-width-full .module-banner{border-radius:0;border-inline:0}.module-banner-track{position:absolute;inset:0}.module-banner-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transform:scale(1.025);transition:opacity .8s ease,visibility .8s ease,transform 1.4s var(--premium-ease,ease);display:grid;align-items:end}.module-banner-slide.is-active{opacity:1;visibility:visible;transform:scale(1)}.module-banner-slide>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.module-banner-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(2,6,15,.9) 0%,rgba(2,6,15,.58) 48%,rgba(2,6,15,.12) 100%),linear-gradient(0deg,rgba(2,6,15,.72),transparent 62%)}.module-banner-content{position:relative;z-index:2;max-width:760px;padding:clamp(34px,7vw,92px);transform:translateY(16px);opacity:.25;transition:transform .75s .15s var(--premium-ease,ease),opacity .65s .15s ease}.module-banner-slide.is-active .module-banner-content{transform:none;opacity:1}.module-banner-content h2{font-size:clamp(2.2rem,5.5vw,5.2rem);line-height:1;margin:0 0 .25em;text-wrap:balance}.module-banner-content p{font-size:clamp(1rem,2vw,1.3rem);line-height:1.65;color:#dcecf7;max-width:650px}.module-banner-control{position:absolute;z-index:4;top:50%;translate:0 -50%;width:48px;height:48px;border-radius:50%;border:1px solid rgba(255,255,255,.24);background:rgba(2,6,15,.55);backdrop-filter:blur(12px);color:#fff;font-size:2rem;display:grid;place-items:center;cursor:pointer;transition:background .25s ease,transform .25s ease}.module-banner-control:hover{background:color-mix(in srgb,var(--tenant-primary) 42%,rgba(2,6,15,.7));transform:scale(1.06)}.module-banner-control.is-prev{left:clamp(12px,2vw,28px)}.module-banner-control.is-next{right:clamp(12px,2vw,28px)}.module-banner-dots{position:absolute;z-index:4;left:50%;bottom:22px;translate:-50% 0;display:flex;gap:9px;padding:8px 12px;border-radius:999px;background:rgba(2,6,15,.45);backdrop-filter:blur(12px)}.module-banner-dots button{width:9px;height:9px;border:0;border-radius:999px;padding:0;background:rgba(255,255,255,.42);cursor:pointer;transition:width .25s ease,background .25s ease}.module-banner-dots button[aria-current="true"]{width:30px;background:var(--tenant-primary)}

/* Custom forms */
.module-form-layout{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:clamp(30px,6vw,82px);align-items:start}.module-form-copy{position:sticky;top:110px}.module-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:clamp(24px,4vw,42px);border:1px solid var(--line);border-radius:var(--premium-radius,24px);background:linear-gradient(180deg,rgba(8,15,30,.9),rgba(5,10,22,.78));box-shadow:0 30px 80px rgba(0,0,0,.3)}.module-form label{min-width:0}.module-form label.wide,.module-form>.btn,.module-form>.form-error,.module-form>.form-success,.module-form>.hp-field{grid-column:1/-1}.module-form label>span{font-weight:500;color:var(--muted);font-size:.82rem}.module-checkbox{display:flex!important;align-items:center;gap:10px;min-height:48px;border:1px solid var(--line);border-radius:14px;padding:12px;background:rgba(255,255,255,.045)}.module-checkbox input{width:auto}.module-checkbox span{color:var(--text)!important;font-weight:700!important}

/* Testimonials, FAQ, stats and features */
.module-testimonials{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}.module-testimonial{margin:0;padding:clamp(24px,3vw,36px);display:flex;flex-direction:column;justify-content:space-between;min-height:250px}.module-testimonial>p{font-size:clamp(1.05rem,2vw,1.3rem);line-height:1.72;margin:0 0 28px;color:#e6f2f9}.module-testimonial footer{padding:0;border:0;text-align:left;display:grid;gap:3px}.module-testimonial footer strong{color:#fff}.module-testimonial footer span{color:var(--muted);font-size:.9rem}
.module-faq{display:grid;gap:14px}.module-faq-item{padding:0}.module-faq-item summary{list-style:none;cursor:pointer;padding:20px 58px 20px 22px;font-size:1.06rem;font-weight:850;position:relative}.module-faq-item summary::-webkit-details-marker{display:none}.module-faq-item summary:after{content:"+";position:absolute;right:22px;top:50%;translate:0 -50%;font-size:1.45rem;color:var(--tenant-primary);transition:rotate .25s ease}.module-faq-item[open] summary:after{rotate:45deg}.module-faq-item>div{padding:0 22px 22px;color:var(--muted);line-height:1.72}.module-faq-item>div p{margin:.3em 0}
.module-stat{padding:clamp(22px,3vw,38px);display:grid;gap:7px;text-align:center;min-height:150px;place-content:center}.module-stat strong{font-size:clamp(2.1rem,4vw,4.2rem);line-height:1;background:linear-gradient(135deg,var(--tenant-primary),var(--tenant-accent));-webkit-background-clip:text;background-clip:text;color:transparent}.module-stat span{color:var(--muted);font-weight:700}
.module-feature-card{padding:clamp(22px,3vw,34px);min-height:210px;display:flex;flex-direction:column}.module-feature-card h3{margin:.1em 0 .6em}.module-feature-card p{color:var(--muted);line-height:1.68;flex:1}.module-feature-card>a{color:var(--tenant-primary);font-weight:850;text-decoration:none;display:inline-flex;gap:7px;align-items:center}
.module-cta{display:flex;align-items:center;justify-content:space-between;gap:30px}.module-cta .module-heading{margin-bottom:0;max-width:820px}.module-cta .module-actions{flex-shrink:0;margin-top:0}

/* Explicit module entrance choices override the site-wide section transition */
.motion-ready .module-section.module-animation-none{opacity:1!important;transform:none!important;filter:none!important;clip-path:none!important}.motion-ready .module-section.module-animation-fade_up{opacity:0;transform:translateY(48px)}.motion-ready .module-section.module-animation-fade_in{opacity:0}.motion-ready .module-section.module-animation-slide_left{opacity:0;transform:translateX(-70px)}.motion-ready .module-section.module-animation-slide_right{opacity:0;transform:translateX(70px)}.motion-ready .module-section.module-animation-scale{opacity:0;transform:scale(.94)}.motion-ready .module-section.module-animation-blur{opacity:0;filter:blur(16px);transform:translateY(20px)}.motion-ready .module-section.module-animation-reveal{opacity:1;clip-path:inset(0 100% 0 0)}.motion-ready .module-section[class*="module-animation-"].is-visible{opacity:1;transform:none;filter:none;clip-path:inset(0 0 0 0)}.module-animation-stagger .module-card{transition-delay:calc(var(--motion-index,0) * 70ms)!important}

/* Template border and corner choices also cover module cards */
body.corner-style-square .module-card,body.corner-style-square .module-inner,body.corner-style-square .module-banner,body.corner-style-square .module-form{border-radius:0!important}body.corner-style-soft .module-card,body.corner-style-soft .module-inner,body.corner-style-soft .module-banner,body.corner-style-soft .module-form{border-radius:12px!important}body.corner-style-pill .module-card,body.corner-style-pill .module-inner{border-radius:34px!important}
body.border-style-none .module-card{border-color:transparent!important}body.border-style-strong .module-card{border:2px solid color-mix(in srgb,var(--tenant-primary) 72%,#fff)!important}body.border-style-double .module-card{border:4px double color-mix(in srgb,var(--tenant-primary) 60%,rgba(255,255,255,.25))!important}body.border-style-dashed .module-card{border:2px dashed color-mix(in srgb,var(--tenant-accent) 70%,rgba(255,255,255,.16))!important}body.border-style-dotted .module-card{border:3px dotted color-mix(in srgb,var(--tenant-primary) 70%,rgba(255,255,255,.16))!important}body.border-style-glow .module-card{border:1px solid color-mix(in srgb,var(--tenant-accent) 72%,#fff)!important;box-shadow:0 0 28px color-mix(in srgb,var(--tenant-accent) 24%,transparent),0 24px 60px rgba(0,0,0,.3)!important}

/* Gallery lightbox */
.module-lightbox{width:min(94vw,1500px);height:min(92vh,1000px);padding:0;border:1px solid rgba(255,255,255,.18);border-radius:24px;background:rgba(2,5,12,.94);color:#fff;box-shadow:0 40px 150px rgba(0,0,0,.72);overflow:hidden}.module-lightbox::backdrop{background:rgba(0,0,0,.82);backdrop-filter:blur(8px)}.module-lightbox figure{width:100%;height:100%;margin:0;padding:42px;display:grid;grid-template-rows:minmax(0,1fr) auto;place-items:center;gap:12px}.module-lightbox img{max-width:100%;max-height:calc(92vh - 100px);object-fit:contain}.module-lightbox figcaption{color:var(--muted);text-align:center}.module-lightbox-close,.module-lightbox-prev,.module-lightbox-next{position:absolute;z-index:2;border:1px solid rgba(255,255,255,.2);background:rgba(2,6,15,.64);color:#fff;display:grid;place-items:center;cursor:pointer}.module-lightbox-close{right:14px;top:14px;width:42px;height:42px;border-radius:50%;font-size:1.5rem}.module-lightbox-prev,.module-lightbox-next{top:50%;translate:0 -50%;width:46px;height:64px;border-radius:14px;font-size:2rem}.module-lightbox-prev{left:14px}.module-lightbox-next{right:14px}

/* Module builder administration */
.module-admin-list{display:grid;gap:12px}.module-admin-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;align-items:center;padding:16px;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.02));transition:border-color .2s ease,transform .2s ease,background .2s ease}.module-admin-card:hover{border-color:color-mix(in srgb,var(--tenant-primary) 48%,var(--line));transform:translateY(-1px);background:rgba(255,255,255,.052)}.module-admin-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,var(--tenant-primary),var(--tenant-accent));color:#06101f;font-weight:950;font-size:1.15rem}.module-admin-summary{min-width:0}.module-admin-title{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.module-admin-title h3{margin:0}.module-admin-summary p{margin:.3rem 0;color:#d8e8f4}.module-admin-summary small{color:var(--muted)}.module-admin-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.module-admin-actions form{display:flex;gap:6px}.module-editor{scroll-margin-top:30px}.form-subsection{padding-top:8px;border-top:1px solid rgba(255,255,255,.1);margin-top:4px}.form-subsection h3{margin:12px 0 4px}.nested-grid{margin-top:14px}.module-type-panel{padding:20px;border:1px solid rgba(255,255,255,.1);border-radius:18px;background:rgba(255,255,255,.025)}.module-type-panel>.form-subsection:first-child{border-top:0;padding-top:0}.module-media-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;max-height:520px;overflow:auto;padding:4px}.module-media-option{display:block;cursor:pointer}.module-media-option>input{position:absolute;opacity:0;pointer-events:none}.module-media-option>span{display:grid;grid-template-rows:100px auto;gap:8px;height:100%;padding:8px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.035);transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}.module-media-option img{width:100%;height:100px;object-fit:cover;border-radius:9px}.module-media-option small{overflow-wrap:anywhere;color:var(--muted);font-weight:600}.module-media-option>input:checked+span{border-color:var(--tenant-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--tenant-primary) 24%,transparent);background:color-mix(in srgb,var(--tenant-primary) 9%,rgba(255,255,255,.035));transform:translateY(-1px)}.banner-slide-editor{display:grid;gap:14px}.banner-slide-editor fieldset{border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:16px;background:rgba(0,0,0,.12)}.banner-slide-editor legend{padding:0 8px;color:var(--tenant-primary);font-weight:850}.module-builder-form code{font-size:.85em}.module-builder-form select option{background:#0a1224;color:#eef8ff}

@media(max-width:900px){.module-gallery,.module-feature-grid,.module-stats{grid-template-columns:repeat(min(2,var(--module-columns,2)),minmax(0,1fr))}.module-split,.module-form-layout{grid-template-columns:1fr}.module-media-right .module-media,.module-media-right .module-copy{order:initial}.module-form-copy{position:static}.module-cta{align-items:flex-start;flex-direction:column}.module-cta .module-actions{margin-top:12px}.module-admin-card{grid-template-columns:auto minmax(0,1fr)}.module-admin-actions{grid-column:1/-1;justify-content:flex-start;padding-left:62px}}
@media(max-width:640px){.module-inner{width:min(100% - 32px,1280px)}.module-style-surface .module-inner,.module-style-glass .module-inner,.module-style-contrast .module-inner,.module-style-accent .module-inner,.module-style-outline .module-inner{padding:24px}.module-gallery,.module-feature-grid,.module-stats{grid-template-columns:1fr}.module-form{grid-template-columns:1fr;padding:20px}.module-form label,.module-form label.wide{grid-column:1}.module-banner{min-height:520px}.module-banner-content{padding:34px 26px 64px}.module-banner-control{width:40px;height:40px}.module-lightbox figure{padding:52px 18px 36px}.module-lightbox-prev,.module-lightbox-next{top:auto;bottom:12px;translate:0}.module-admin-card{grid-template-columns:1fr}.module-admin-icon{display:none}.module-admin-actions{grid-column:auto;padding-left:0}.module-media-picker{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.module-banner-slide,.module-banner-content,.module-gallery-item img,.module-card{transition:none!important}.module-section{opacity:1!important;transform:none!important;filter:none!important;clip-path:none!important}}


/* Stage 26: template demonstration modules and verified contrast system */
body.contrast-dark{
  --text:#f4f9ff;--muted:#b4c7d7;--line:rgba(164,205,231,.22);--page-heading:#ffffff;--page-lead:#d6e6f2;
  --header-bg:rgba(5,11,23,.84);--header-text:#f7fbff;--header-muted:#bdd0df;
  --card-text:#f8fbff;--card-muted:#b9cad8;--module-card-bg:linear-gradient(180deg,rgba(10,18,35,.9),rgba(5,10,22,.82));
  --module-card-text:#f8fbff;--module-card-muted:#b9cad8;--accent-readable:color-mix(in srgb,var(--tenant-primary) 76%,#fff)
}
body.contrast-light{
  --bg:#f4f7fb;--panel:rgba(255,255,255,.94);--text:#162235;--muted:#526276;--line:rgba(30,53,82,.16);
  --page-heading:#101a2a;--page-lead:#40536a;--header-bg:rgba(255,255,255,.88);--header-text:#111c2d;--header-muted:#41536b;
  --card-text:#152033;--card-muted:#4f6074;--module-card-bg:linear-gradient(180deg,rgba(255,255,255,.98),rgba(242,247,252,.94));
  --module-card-text:#152033;--module-card-muted:#4f6074;--accent-readable:color-mix(in srgb,var(--tenant-primary) 66%,#0f172a)
}
body.contrast-light #tenant-plexus{opacity:.22}
body.contrast-light .site-header{background:var(--header-bg);border-bottom-color:var(--line);box-shadow:0 10px 34px rgba(40,57,78,.08)}
body.contrast-dark .site-header{background:var(--header-bg)}
body .brand,body .site-header nav a{color:var(--header-text)}
body .site-header nav a:not(.nav-style-primary){color:var(--header-muted)}
body .site-header nav a:hover,body .site-header nav a[aria-current="page"]{color:var(--accent-readable)}
body .hero h1,body .page-hero h1,body .section-heading h2,body .page-content h2,body .page-content h3{color:var(--page-heading)}
body .lead,body .page-content p,body .blog-card-body>p{color:var(--page-lead)}
body .eyebrow{color:var(--accent-readable)}
body .btn.primary,body .site-header nav .nav-item.nav-style-primary,body .brand-mark{color:var(--tenant-button-ink)}
body .site-header nav .nav-item.nav-style-primary:hover{color:var(--tenant-button-ink)}

/* Cards inherit a contrast-safe content colour without flattening their selected visual treatment. */
body.contrast-light .card,body.contrast-light .split,body.contrast-light .contact-card,body.contrast-light .blog-card,body.contrast-light .module-card{background-color:rgba(255,255,255,.94);color:var(--card-text)}
body.contrast-dark .card,body.contrast-dark .split,body.contrast-dark .contact-card,body.contrast-dark .blog-card{color:var(--card-text)}
body .card h3,body .split h2,body .contact-card h2,body .blog-card h2,body .module-card h3,body .module-card strong,body .module-card summary{color:var(--card-text)}
body .card p,body .split p,body .contact-card p,body .blog-card p,body .module-card p,body .module-card span,body .module-card figcaption{color:var(--card-muted)}
body.contrast-light .contact-card label,body.contrast-light .module-form label{color:var(--card-text)}
body.contrast-light .contact-card input,body.contrast-light .contact-card textarea,body.contrast-light .contact-card select,
body.contrast-light .module-form input,body.contrast-light .module-form textarea,body.contrast-light .module-form select{background:#fff;color:#172235;border-color:rgba(30,53,82,.22)}
body.contrast-light .contact-card input::placeholder,body.contrast-light .contact-card textarea::placeholder,
body.contrast-light .module-form input::placeholder,body.contrast-light .module-form textarea::placeholder{color:#6b7b8d}

/* Module surfaces follow the selected page tone, while accent and high-contrast modules retain deliberate inversions. */
body.contrast-light .module-card{background:var(--module-card-bg);color:var(--module-card-text);box-shadow:0 20px 52px rgba(38,53,72,.12)}
body.contrast-light .module-card h3,body.contrast-light .module-card strong,body.contrast-light .module-card summary{color:var(--module-card-text)}
body.contrast-light .module-card p,body.contrast-light .module-card span,body.contrast-light .module-card figcaption{color:var(--module-card-muted)}
body.contrast-light .module-style-surface .module-inner{background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(242,247,252,.96));border-color:var(--line);box-shadow:0 28px 74px rgba(38,53,72,.13)}
body.contrast-light .module-style-glass .module-inner{background:rgba(255,255,255,.7);border-color:rgba(30,53,82,.14);box-shadow:0 28px 74px rgba(38,53,72,.11)}
body.contrast-light .module-style-outline .module-inner{background:rgba(255,255,255,.38);border-color:color-mix(in srgb,var(--tenant-primary) 42%,rgba(30,53,82,.16))}
body.contrast-light .module-section:not(.module-style-accent):not(.module-style-contrast) .module-heading h2{color:var(--page-heading)}
body.contrast-light .module-section:not(.module-style-accent):not(.module-style-contrast) .module-intro,
body.contrast-light .module-section:not(.module-style-accent):not(.module-style-contrast) .module-rich-text p,
body.contrast-light .module-section:not(.module-style-accent):not(.module-style-contrast) .module-form-copy p{color:var(--page-lead)}
body .module-style-accent .btn.primary{background:rgba(7,17,31,.88);color:#fff}
body .module-style-accent .btn:not(.primary){border-color:rgba(7,17,31,.35);color:#07111f;background:rgba(255,255,255,.36)}

/* Explicit premium backgrounds for every starter template. */
body.theme-starter-one-page{background:radial-gradient(circle at 14% 4%,rgba(247,201,72,.18),transparent 31%),radial-gradient(circle at 86% 10%,rgba(34,211,238,.16),transparent 32%),linear-gradient(145deg,#040813,#0a1426 54%,#050915)}
body.theme-trade-services{background:radial-gradient(circle at 15% 0%,rgba(245,158,11,.2),transparent 30%),repeating-linear-gradient(135deg,rgba(255,255,255,.028) 0 1px,transparent 1px 24px),linear-gradient(145deg,#120c05,#101827 56%,#070b12)}
body.theme-professional-services{background:radial-gradient(circle at 10% 0%,rgba(56,189,248,.16),transparent 34%),radial-gradient(circle at 92% 8%,rgba(167,139,250,.12),transparent 30%),linear-gradient(145deg,#fbfdff,#edf3fa 58%,#f8fbff)}
body.theme-security-surveillance{background:radial-gradient(circle at 18% 0%,rgba(34,211,238,.2),transparent 30%),radial-gradient(circle at 84% 8%,rgba(239,68,68,.16),transparent 28%),linear-gradient(145deg,#02050b,#071521 58%,#030508)}
body.theme-events-night{background:radial-gradient(circle at 16% 5%,rgba(192,132,252,.3),transparent 32%),radial-gradient(circle at 84% 2%,rgba(34,211,238,.18),transparent 30%),linear-gradient(145deg,#0a0414,#1b0b2d 50%,#050711)}
body.theme-it-cyber{background:radial-gradient(circle at 15% 0%,rgba(34,211,238,.22),transparent 31%),radial-gradient(circle at 88% 14%,rgba(52,211,153,.14),transparent 30%),linear-gradient(145deg,#020713,#071827 56%,#020611)}
body.theme-coastal-waves{background:radial-gradient(circle at 12% 0%,rgba(56,189,248,.24),transparent 35%),radial-gradient(circle at 90% 14%,rgba(45,212,191,.2),transparent 34%),linear-gradient(145deg,#03131a,#08343c 56%,#041920)}
body.theme-creative-studio{background:radial-gradient(circle at 12% 8%,rgba(251,113,133,.24),transparent 32%),radial-gradient(circle at 88% 4%,rgba(217,70,239,.2),transparent 32%),linear-gradient(145deg,#130610,#25102a 54%,#080713)}
body.theme-finance-trust{background:radial-gradient(circle at 12% 0%,rgba(139,92,246,.18),transparent 32%),radial-gradient(circle at 88% 12%,rgba(250,204,21,.11),transparent 30%),linear-gradient(145deg,#080817,#14132a 56%,#080b16)}
body.theme-health-wellness{background:radial-gradient(circle at 12% 0%,rgba(45,212,191,.16),transparent 36%),radial-gradient(circle at 90% 10%,rgba(56,189,248,.12),transparent 32%),linear-gradient(145deg,#fbfffe,#eef9f7 58%,#f7fbff)}
body.theme-hospitality-restaurant{background:radial-gradient(circle at 16% 0%,rgba(251,146,60,.22),transparent 30%),radial-gradient(circle at 84% 10%,rgba(249,115,22,.14),transparent 30%),linear-gradient(145deg,#160a04,#251208 54%,#0d0907)}
body.theme-real-estate-property{background:radial-gradient(circle at 12% 0%,rgba(125,211,252,.18),transparent 34%),radial-gradient(circle at 88% 8%,rgba(148,163,184,.14),transparent 32%),linear-gradient(145deg,#fbfdff,#edf4f8 58%,#f8fafc)}
body.theme-construction-builder{background:radial-gradient(circle at 16% 0%,rgba(245,158,11,.2),transparent 30%),repeating-linear-gradient(0deg,rgba(255,255,255,.025) 0 1px,transparent 1px 28px),linear-gradient(145deg,#0c0d0f,#17191d 56%,#08090b)}
body.theme-ecommerce-retail{background:radial-gradient(circle at 14% 0%,rgba(251,113,133,.23),transparent 32%),radial-gradient(circle at 88% 12%,rgba(217,70,239,.16),transparent 30%),linear-gradient(145deg,#110712,#211126 54%,#080814)}
body.theme-education-training{background:radial-gradient(circle at 10% 0%,rgba(139,92,246,.16),transparent 34%),radial-gradient(circle at 90% 12%,rgba(250,204,21,.1),transparent 30%),linear-gradient(145deg,#fcfbff,#f0eefb 58%,#fbfcff)}
body.theme-nonprofit-community{background:radial-gradient(circle at 12% 0%,rgba(34,197,94,.16),transparent 34%),radial-gradient(circle at 88% 10%,rgba(190,242,100,.12),transparent 30%),linear-gradient(145deg,#fbfff9,#eff8ed 58%,#f9fcff)}
body.theme-automotive-workshop{background:radial-gradient(circle at 16% 0%,rgba(239,68,68,.2),transparent 30%),repeating-linear-gradient(135deg,rgba(255,255,255,.025) 0 1px,transparent 1px 18px),linear-gradient(145deg,#09090b,#18181b 56%,#050507)}
body.theme-beauty-salon{background:radial-gradient(circle at 14% 0%,rgba(251,113,133,.22),transparent 34%),radial-gradient(circle at 88% 8%,rgba(217,70,239,.15),transparent 30%),linear-gradient(145deg,#150911,#241120 54%,#0b0810)}
body.theme-architecture-interiors{background:linear-gradient(120deg,rgba(15,23,42,.035) 1px,transparent 1px),linear-gradient(30deg,rgba(15,23,42,.025) 1px,transparent 1px),linear-gradient(145deg,#fcfcfd,#eef1f4 58%,#fafbfc);background-size:44px 44px,44px 44px,auto}
body.theme-legal-practice{background:radial-gradient(circle at 12% 0%,rgba(125,211,252,.15),transparent 34%),radial-gradient(circle at 88% 10%,rgba(148,163,184,.12),transparent 30%),linear-gradient(145deg,#fbfdff,#eef3f8 58%,#fafcff)}
body.theme-cleaning-facilities{background:radial-gradient(circle at 12% 0%,rgba(132,204,22,.15),transparent 34%),radial-gradient(circle at 90% 12%,rgba(34,211,238,.11),transparent 30%),linear-gradient(145deg,#fbfff8,#eff8ed 58%,#f8fcff)}
body.theme-manufacturing-industrial{background:radial-gradient(circle at 16% 0%,rgba(132,204,22,.17),transparent 30%),repeating-linear-gradient(90deg,rgba(34,211,238,.025) 0 1px,transparent 1px 32px),linear-gradient(145deg,#050a0d,#10191c 56%,#050709)}
body.theme-childcare-family{background:radial-gradient(circle at 10% 0%,rgba(245,158,11,.16),transparent 34%),radial-gradient(circle at 90% 12%,rgba(56,189,248,.12),transparent 30%),linear-gradient(145deg,#fffdf8,#f8f2e8 58%,#f8fcff)}
body.theme-accommodation-travel{background:radial-gradient(circle at 12% 0%,rgba(45,212,191,.2),transparent 34%),radial-gradient(circle at 90% 8%,rgba(56,189,248,.17),transparent 32%),linear-gradient(145deg,#03141a,#0a3138 56%,#04181f)}

/* Light templates retain their distinctive card treatments over a clean readable base. */
body.contrast-light.card-style-soft-blob .card,body.contrast-light.card-style-soft-blob .split,body.contrast-light.card-style-soft-blob .contact-card,
body.contrast-light.card-style-chrome-bevel .card,body.contrast-light.card-style-chrome-bevel .split,body.contrast-light.card-style-chrome-bevel .contact-card,
body.contrast-light.card-style-minimal-flat .card,body.contrast-light.card-style-minimal-flat .split,body.contrast-light.card-style-minimal-flat .contact-card,
body.contrast-light.card-style-double-line .card,body.contrast-light.card-style-double-line .split,body.contrast-light.card-style-double-line .contact-card{background-color:rgba(255,255,255,.92)}
body.contrast-light footer{background:rgba(255,255,255,.58);color:var(--muted);border-top-color:var(--line)}

@media(max-width:760px){
  body.contrast-light .site-header{background:rgba(255,255,255,.96)}
  body .module-style-accent .module-actions{align-items:stretch}
}

/* Stage 26 contrast refinements for transparent and outline actions. */
body.contrast-light{
  --accent-readable:color-mix(in srgb,var(--tenant-primary) 56%,#0f172a)
}
body.contrast-light.button-style-outline .btn,
body.contrast-light.button-style-outline .btn.primary,
body.contrast-light.button-style-underline .btn,
body.contrast-light.button-style-underline .btn.primary{
  color:var(--accent-readable);
  border-color:currentColor;
}
body.contrast-dark.button-style-outline .btn,
body.contrast-dark.button-style-outline .btn.primary,
body.contrast-dark.button-style-underline .btn,
body.contrast-dark.button-style-underline .btn.primary{
  color:var(--accent-readable);
  border-color:currentColor;
}
body.contrast-light .site-header nav .nav-item.nav-style-outline{
  color:var(--accent-readable);
  border-color:color-mix(in srgb,var(--accent-readable) 62%,transparent);
  background:rgba(255,255,255,.52);
}
body.contrast-dark .site-header nav .nav-item.nav-style-outline{
  color:var(--header-text);
  border-color:color-mix(in srgb,var(--tenant-primary) 58%,rgba(255,255,255,.18));
  background:rgba(255,255,255,.035);
}
body.contrast-light .module-feature-card>a,
body.contrast-light .module-faq-item summary:after,
body.contrast-light .module-media-copy a:not(.btn){color:var(--accent-readable)}
body.contrast-light .module-form{
  background:linear-gradient(180deg,rgba(255,255,255,.99),rgba(239,245,251,.97));
  border-color:rgba(30,53,82,.16);
  color:var(--card-text);
  box-shadow:0 28px 72px rgba(38,53,72,.14);
}
body.contrast-light .module-checkbox{
  background:rgba(30,53,82,.035);
  border-color:rgba(30,53,82,.16);
}
body.contrast-light .module-checkbox span{color:var(--card-text)!important}

/* Stage 27 — template alignment and section rhythm */
:root{
  --site-inline-pad:clamp(20px,7vw,100px);
  --section-separation:clamp(28px,3.6vw,58px);
  --module-section-pad:clamp(54px,6.5vw,96px);
  --content-measure:76ch;
}
body.spacing-tight{--section-separation:clamp(20px,2.6vw,38px);--module-section-pad:clamp(42px,5vw,68px)}
body.spacing-balanced{--section-separation:clamp(28px,3.6vw,58px);--module-section-pad:clamp(54px,6.5vw,96px)}
body.spacing-airy{--section-separation:clamp(38px,4.8vw,78px);--module-section-pad:clamp(68px,8vw,118px)}

/* Keep all public page containers centred on the same layout axis. */
body:not(.cms-admin) .site-main{display:flow-root;width:100%;padding-bottom:clamp(20px,3vw,44px)}
body:not(.cms-admin) .site-main>.hero,
body:not(.cms-admin) .site-main>.section:not(.module-section){
  width:min(100%,var(--site-max));
  margin-inline:auto;
  padding-inline:var(--site-inline-pad);
}
body.hero-style-full-bleed:not(.cms-admin) .site-main>.hero,
body.section-style-alternating:not(.cms-admin) .site-main>.section:not(.module-section),
body.section-style-banded:not(.cms-admin) .site-main>.section:not(.module-section){width:100%;max-width:none}
body:not(.cms-admin) .site-main>.module-section{width:100%;max-width:none;margin-inline:0;padding-inline:0;padding-block:var(--module-section-pad)}
body:not(.cms-admin) .site-main>section+section{margin-block-start:var(--section-separation)}
body:not(.cms-admin) .site-main>.module-section+section,
body:not(.cms-admin) .site-main>section+.module-section{margin-block-start:var(--section-separation)}

/* Section styles must decorate the section content, not pull modules off the page grid. */
body.section-style-boxed:not(.cms-admin) .site-main>.section:not(.module-section),
body.section-style-soft-panels:not(.cms-admin) .site-main>.section:not(.module-section){margin-inline:auto}
body.section-style-boxed:not(.cms-admin) .site-main>.module-section,
body.section-style-soft-panels:not(.cms-admin) .site-main>.module-section{border-radius:0;margin-inline:0;background:transparent;box-shadow:none}
body.section-style-boxed:not(.cms-admin) .site-main>.module-section{border:0}

/* A shared inner axis keeps modules, page copy and standard sections aligned. */
.module-inner{width:min(calc(100% - var(--site-inline-pad) - var(--site-inline-pad)),1280px);margin-inline:auto;box-sizing:border-box}
.module-width-narrow .module-inner{max-width:780px}
.module-width-standard .module-inner{max-width:var(--site-max)}
.module-width-wide .module-inner{max-width:min(1440px,calc(var(--site-max) + 180px))}
.module-width-full .module-inner{width:100%;max-width:none}
.module-style-minimal.module-width-standard .module-inner{max-width:calc(var(--site-max) - var(--site-inline-pad) - var(--site-inline-pad))}

/* Reliable vertical spacing inside sections and modules. */
.section-heading{margin:0 0 clamp(28px,4vw,48px);min-width:0}
.section-heading>*{min-width:0}
.section-heading h2,.module-heading h2{overflow-wrap:anywhere;text-wrap:balance}
.section-heading .eyebrow,.module-heading .eyebrow{margin-top:0}
.module-heading{margin-top:0;margin-bottom:clamp(26px,3.5vw,44px)}
.module-heading h2{font-size:clamp(2rem,4vw,3.8rem);line-height:1.04;max-width:18ch}
.module-heading .module-intro{margin-top:clamp(10px,1.4vw,18px)}
.module-heading .module-intro>:first-child,.module-rich-text>:first-child,.page-content>:first-child{margin-top:0}
.module-heading .module-intro>:last-child,.module-rich-text>:last-child,.page-content>:last-child{margin-bottom:0}
.module-style-surface .module-inner,.module-style-glass .module-inner,.module-style-contrast .module-inner,.module-style-accent .module-inner,.module-style-outline .module-inner{padding:clamp(34px,5vw,70px)}
.module-style-minimal{padding-block:clamp(38px,5vw,72px)}
.module-style-full_bleed{padding-block:clamp(34px,5vw,72px)}

/* Standard content pages keep readable line lengths while preserving panel alignment. */
.page-content{width:min(100%,var(--site-max));min-width:0}
.page-content>*:not(.btn):not(.hero-actions){max-width:var(--content-measure)}
.page-content>h2,.page-content>h3{margin-bottom:.55em}
.page-content>p,.page-content>ul,.page-content>ol,.page-content>blockquote{line-height:1.78}
.page-content>p+*,.page-content>ul+*,.page-content>ol+*,.page-content>blockquote+*{margin-top:1.3em}

/* Card and grid alignment remains stable with every spacing and layout preset. */
.card-grid,.blog-grid,.module-gallery,.module-feature-grid,.module-stats,.module-testimonials,.module-logo-cloud{align-items:stretch}
.card-grid>.card,.blog-grid>.blog-card,.module-feature-grid>.module-card,.module-stats>.module-card,.module-testimonials>.module-card,.module-logo-cloud>.module-card{min-width:0}
.module-feature-card,.module-stat,.module-testimonial{height:100%}
.module-feature-card{display:flex;flex-direction:column;padding:clamp(24px,3vw,34px)}
.module-feature-card>p{flex:1}
.module-feature-card>a{margin-top:auto;align-self:flex-start}
.module-stat{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:clamp(150px,14vw,210px);padding:clamp(24px,3vw,38px);text-align:center}

/* Forms use balanced columns and never let large headings collide with fields. */
.module-form-layout{grid-template-columns:minmax(300px,.92fr) minmax(440px,1.08fr);gap:clamp(42px,6vw,88px);align-items:start}
.module-form-copy{position:sticky;top:110px;min-width:0;padding-block:clamp(4px,1vw,14px)}
.module-form-copy .module-heading{margin-bottom:clamp(20px,2.7vw,34px)}
.module-form-copy .module-heading h2{font-size:clamp(2.15rem,3.7vw,3.65rem);line-height:1.02;max-width:13ch;overflow-wrap:normal;word-break:normal}
.module-form-copy>p{max-width:48ch;margin:0;color:var(--page-lead);line-height:1.75}
.module-form{width:100%;min-width:0;align-self:start;grid-auto-rows:max-content}
.module-form label,.module-form input,.module-form textarea,.module-form select{min-width:0}
.module-form .btn{justify-self:start;min-width:min(100%,190px)}

/* Contact and split panels retain equal inner alignment and breathing room. */
.split,.contact-card{align-items:start}
.split>*{min-width:0}
.split>p{margin:0;max-width:64ch}
.contact-card>.section-heading{margin-bottom:clamp(24px,3vw,40px)}
.contact-form{align-items:start}

/* Entrance motion should feel polished without making sections look misaligned while revealing. */
.motion-ready .motion-section{transition-duration:.68s;transition-delay:calc(var(--motion-index,0) * 48ms)}
.motion-ready.section-transition-alternating-slide .motion-section{transform:translateX(-24px)}
.motion-ready.section-transition-alternating-slide .motion-section:nth-of-type(even){transform:translateX(24px)}
.motion-ready.section-transition-cinematic-pan .motion-section{transform:translate3d(0,28px,0) scale(1.008)}
.motion-ready.section-transition-layered-depth .motion-section{transform:perspective(1200px) translateY(34px) rotateX(2deg)}

@media(max-width:1000px){
  :root{--site-inline-pad:clamp(20px,5vw,52px)}
  .module-form-layout{grid-template-columns:1fr;gap:clamp(30px,5vw,48px)}
  .module-form-copy{position:static;padding:0}
  .module-form-copy .module-heading h2{max-width:18ch}
  .module-form-copy>p{max-width:64ch}
  .module-form{max-width:none}
}
@media(max-width:760px){
  :root{--site-inline-pad:20px;--section-separation:24px;--module-section-pad:46px}
  body.spacing-tight,body.spacing-balanced,body.spacing-airy{--section-separation:24px;--module-section-pad:46px}
  body:not(.cms-admin) .site-main>section+section{margin-block-start:24px}
  .module-inner{width:calc(100% - 32px)}
  .module-style-surface .module-inner,.module-style-glass .module-inner,.module-style-contrast .module-inner,.module-style-accent .module-inner,.module-style-outline .module-inner{padding:clamp(24px,7vw,34px)}
  .section-heading{grid-template-columns:1fr;gap:0;margin-bottom:28px}
  .section-heading:after{display:none}
  .module-heading h2,.module-form-copy .module-heading h2{font-size:clamp(2rem,9vw,3rem);max-width:100%;overflow-wrap:anywhere}
  .module-form{padding:22px}
  .module-form .btn{width:100%;justify-self:stretch}
  .split,.contact-card{padding-inline:24px}
  .motion-ready.section-transition-alternating-slide .motion-section,
  .motion-ready.section-transition-alternating-slide .motion-section:nth-of-type(even){transform:translateY(22px)}
}
@media(max-width:420px){
  :root{--site-inline-pad:16px}
  .module-inner{width:calc(100% - 24px)}
  .module-style-surface .module-inner,.module-style-glass .module-inner,.module-style-contrast .module-inner,.module-style-accent .module-inner,.module-style-outline .module-inner{padding:22px}
  .module-form{padding:18px}
}
/* Stage 27 reveal completion always returns sections to the shared alignment axis. */
.motion-ready[class*="section-transition-"] .motion-section.is-visible,
.motion-ready .module-section[class*="module-animation-"].is-visible{opacity:1;transform:none;filter:none;clip-path:inset(0 0 0 0)}
/* Keep section panels aligned during the alternating transition; move their contents instead. */
.motion-ready.section-transition-alternating-slide .motion-section{opacity:1;transform:none;filter:none;clip-path:none}
.motion-ready.section-transition-alternating-slide .motion-section>*{opacity:0;transform:translateX(-24px);transition:opacity .58s ease,transform .68s var(--premium-ease);transition-delay:calc(var(--motion-index,0) * 48ms)}
.motion-ready.section-transition-alternating-slide .motion-section:nth-of-type(even)>*{transform:translateX(24px)}
.motion-ready.section-transition-alternating-slide .motion-section.is-visible>*{opacity:1;transform:none}
@media(max-width:760px){
  .motion-ready.section-transition-alternating-slide .motion-section>*,
  .motion-ready.section-transition-alternating-slide .motion-section:nth-of-type(even)>*{transform:translateY(18px)}
  .motion-ready.section-transition-alternating-slide .motion-section.is-visible>*{transform:none}
}
@media(prefers-reduced-motion:reduce){
  .motion-ready.section-transition-alternating-slide .motion-section>*{opacity:1!important;transform:none!important;transition:none!important}
}

/* Stage 28 premium template refinement: stronger agency-style presentation, richer module polish, and refined section details without altering tenant data structures. */
body:not(.cms-admin) .section-heading .eyebrow,
body:not(.cms-admin) .module-heading .eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.9rem;
  margin-bottom:clamp(12px,1.8vw,18px);
  padding:0;
}
body:not(.cms-admin) .section-heading .eyebrow::after,
body:not(.cms-admin) .module-heading .eyebrow::after{
  content:"";
  width:clamp(52px,7vw,88px);
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--tenant-primary),color-mix(in srgb,var(--tenant-accent) 88%,transparent));
  box-shadow:0 0 18px color-mix(in srgb,var(--tenant-primary) 32%,transparent);
}
body:not(.cms-admin) .section-heading h2,
body:not(.cms-admin) .module-heading h2{
  letter-spacing:-.045em;
  text-wrap:balance;
}
body:not(.cms-admin) .section-heading p,
body:not(.cms-admin) .module-heading .module-intro,
body:not(.cms-admin) .module-form-copy p,
body:not(.cms-admin) .page-content p{
  line-height:1.75;
}
body:not(.cms-admin) .card,
body:not(.cms-admin) .blog-card,
body:not(.cms-admin) .contact-card,
body:not(.cms-admin) .module-card,
body:not(.cms-admin) .split{
  backdrop-filter:blur(14px);
  border-color:color-mix(in srgb,var(--tenant-primary) 18%,rgba(255,255,255,.08));
  box-shadow:0 24px 64px rgba(3,8,19,.28), inset 0 1px 0 rgba(255,255,255,.04);
}
body:not(.cms-admin) .card:hover,
body:not(.cms-admin) .blog-card:hover,
body:not(.cms-admin) .module-card:hover,
body:not(.cms-admin) .split:hover,
body:not(.cms-admin) .contact-card:hover{
  transform:translateY(-4px);
  box-shadow:0 30px 76px rgba(3,8,19,.34), 0 0 0 1px color-mix(in srgb,var(--tenant-accent) 18%,transparent), inset 0 1px 0 rgba(255,255,255,.05);
}
body:not(.cms-admin) .service-card,
body:not(.cms-admin) .module-feature-card,
body:not(.cms-admin) .module-testimonial,
body:not(.cms-admin) .module-stat,
body:not(.cms-admin) .module-faq-item,
body:not(.cms-admin) .blog-card{
  position:relative;
  isolation:isolate;
}
body:not(.cms-admin) .service-card::before,
body:not(.cms-admin) .module-feature-card::before,
body:not(.cms-admin) .module-testimonial::before,
body:not(.cms-admin) .module-stat::before,
body:not(.cms-admin) .blog-card::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:2px;
  background:linear-gradient(90deg,var(--tenant-primary),color-mix(in srgb,var(--tenant-accent) 88%,transparent));
  opacity:.9;
  pointer-events:none;
}
body:not(.cms-admin) .module-feature-card,
body:not(.cms-admin) .module-testimonial,
body:not(.cms-admin) .module-stat{
  padding:clamp(22px,3vw,30px);
}
body:not(.cms-admin) .module-feature-card h3,
body:not(.cms-admin) .service-card h3,
body:not(.cms-admin) .module-testimonial strong,
body:not(.cms-admin) .module-stat strong{
  letter-spacing:-.03em;
}
body:not(.cms-admin) .module-feature-card p,
body:not(.cms-admin) .service-card p,
body:not(.cms-admin) .module-testimonial p{
  margin-bottom:1rem;
}
body:not(.cms-admin) .module-feature-card a,
body:not(.cms-admin) .service-card .card-link,
body:not(.cms-admin) .blog-card a{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  font-weight:700;
  text-decoration:none;
}
body:not(.cms-admin) .module-stat strong{
  display:block;
  font-size:clamp(1.65rem,3vw,2.45rem);
  line-height:1;
  margin-bottom:.42rem;
}
body:not(.cms-admin) .module-stat span{
  display:block;
  line-height:1.55;
}
body:not(.cms-admin) .module-testimonials{
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:clamp(14px,2vw,24px);
}
body:not(.cms-admin) .module-testimonial{
  padding-top:clamp(34px,4vw,42px);
}
body:not(.cms-admin) .module-testimonial::before{
  content:"“";
  inset:18px auto auto 22px;
  width:auto;
  height:auto;
  background:none;
  color:color-mix(in srgb,var(--tenant-primary) 82%,#fff);
  font-size:clamp(2rem,3.2vw,3rem);
  line-height:1;
  opacity:.78;
}
body:not(.cms-admin) .module-testimonial footer{
  display:grid;
  gap:.18rem;
  margin-top:1rem;
}
body:not(.cms-admin) .module-faq-item summary{
  font-size:1.02rem;
}
body:not(.cms-admin) .module-faq-item[open]{
  box-shadow:0 28px 72px rgba(3,8,19,.32), 0 0 0 1px color-mix(in srgb,var(--tenant-accent) 20%,transparent);
}
body:not(.cms-admin) .module-cta{
  align-items:center;
  padding:clamp(24px,3vw,38px);
  border-radius:var(--premium-radius,24px);
  background:linear-gradient(140deg,color-mix(in srgb,var(--tenant-primary) 18%,rgba(3,8,19,.92)),rgba(4,10,22,.94) 44%,color-mix(in srgb,var(--tenant-accent) 14%,rgba(4,10,22,.96)));
  border:1px solid color-mix(in srgb,var(--tenant-primary) 20%,rgba(255,255,255,.08));
  box-shadow:0 28px 74px rgba(3,8,19,.32);
}
body:not(.cms-admin) .module-cta .module-actions{gap:12px;flex-wrap:wrap}
body:not(.cms-admin) .module-form,
body:not(.cms-admin) .module-banner,
body:not(.cms-admin) .module-video-wrap{
  box-shadow:0 28px 70px rgba(3,8,19,.34), inset 0 1px 0 rgba(255,255,255,.04);
}
body:not(.cms-admin) .module-banner-content{
  max-width:42rem;
}
body:not(.cms-admin) .btn{
  transition:transform .24s ease, box-shadow .24s ease, background-color .24s ease, border-color .24s ease;
}
body:not(.cms-admin) .btn:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 32px color-mix(in srgb,var(--tenant-primary) 22%,transparent);
}
body:not(.cms-admin) .hero::after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:1px;
  background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--tenant-primary) 46%,transparent),transparent);
  opacity:.7;
  pointer-events:none;
}
@media(max-width:900px){
  body:not(.cms-admin) .module-cta{align-items:flex-start}
}
@media(max-width:760px){
  body:not(.cms-admin) .module-feature-card,
  body:not(.cms-admin) .module-testimonial,
  body:not(.cms-admin) .module-stat{padding:22px}
  body:not(.cms-admin) .card:hover,
  body:not(.cms-admin) .blog-card:hover,
  body:not(.cms-admin) .module-card:hover,
  body:not(.cms-admin) .split:hover,
  body:not(.cms-admin) .contact-card:hover{transform:none}
}

/* Stage 29 — comprehensive template readability and premium finish. */
body.contrast-dark{
  --muted:#c0d0dc;
  --page-lead:#dbe9f3;
  --card-muted:#c6d6e1;
  --module-card-muted:#c6d6e1;
}
body.contrast-light{
  --muted:#44576d;
  --page-lead:#34485f;
  --card-muted:#44566c;
  --module-card-muted:#44566c;
}

/* Keep primary page copy crisp and readable on every template background. */
body:not(.cms-admin) .hero h1,
body:not(.cms-admin) .page-hero h1,
body:not(.cms-admin) .section-heading h2,
body:not(.cms-admin) .module-heading h2,
body:not(.cms-admin) .split h2,
body:not(.cms-admin) .contact-card h2{
  text-wrap:balance;
  overflow-wrap:normal;
  word-break:normal;
}
body.contrast-dark:not(.cms-admin) .lead,
body.contrast-dark:not(.cms-admin) .hero .lead,
body.contrast-dark:not(.cms-admin) .page-content p,
body.contrast-dark:not(.cms-admin) .section-heading>p:not(.eyebrow),
body.contrast-dark:not(.cms-admin) .module-heading .module-intro,
body.contrast-dark:not(.cms-admin) .split>p,
body.contrast-dark:not(.cms-admin) .contact-card p{
  color:var(--page-lead);
}
body.contrast-light:not(.cms-admin) .lead,
body.contrast-light:not(.cms-admin) .hero .lead,
body.contrast-light:not(.cms-admin) .page-content p,
body.contrast-light:not(.cms-admin) .section-heading>p:not(.eyebrow),
body.contrast-light:not(.cms-admin) .module-heading .module-intro,
body.contrast-light:not(.cms-admin) .split>p,
body.contrast-light:not(.cms-admin) .contact-card p{
  color:var(--page-lead);
}

/* Light templates retain the selected card shape and border treatment but always use a truly light surface. */
body.contrast-light.card-style-soft-blob .card,
body.contrast-light.card-style-soft-blob .split,
body.contrast-light.card-style-soft-blob .contact-card,
body.contrast-light.card-style-chrome-bevel .card,
body.contrast-light.card-style-chrome-bevel .split,
body.contrast-light.card-style-chrome-bevel .contact-card,
body.contrast-light.card-style-minimal-flat .card,
body.contrast-light.card-style-minimal-flat .split,
body.contrast-light.card-style-minimal-flat .contact-card,
body.contrast-light.card-style-double-line .card,
body.contrast-light.card-style-double-line .split,
body.contrast-light.card-style-double-line .contact-card{
  background:linear-gradient(145deg,rgba(255,255,255,.985),color-mix(in srgb,var(--tenant-primary) 4%,#eef3f8));
  color:var(--card-text);
  box-shadow:0 22px 58px rgba(32,49,69,.13),inset 0 1px 0 rgba(255,255,255,.9);
}

/* Centred hero cards are dark on dark templates and light on light templates. */
body.contrast-light.hero-style-centered-card .hero{
  background:linear-gradient(145deg,rgba(255,255,255,.97),color-mix(in srgb,var(--tenant-primary) 7%,#eef5f6));
  border-color:color-mix(in srgb,var(--tenant-primary) 24%,rgba(30,53,82,.16));
  box-shadow:0 28px 78px rgba(31,51,69,.18),inset 0 1px 0 rgba(255,255,255,.94);
}
body.contrast-light.hero-style-centered-card .hero h1{color:var(--page-heading)}
body.contrast-light.hero-style-centered-card .hero .lead{color:var(--page-lead)}
body.contrast-dark.hero-style-centered-card .hero h1,
body.contrast-dark.hero-style-centered-card .hero .lead{color:#f7fbff}
body.hero-style-full-bleed .hero h1,
body.hero-style-full-bleed .hero .lead,
body.hero-style-full-bleed .hero .eyebrow{color:#f7fbff}

/* Accent and contrast modules have deliberate, internally consistent ink colours. */
body:not(.cms-admin) .module-style-accent .module-inner{
  --module-surface-ink:#07111f;
  --module-surface-muted:#24374a;
}
body:not(.cms-admin) .module-style-contrast .module-inner{
  --module-surface-ink:#07111f;
  --module-surface-muted:#33485d;
}
body:not(.cms-admin) .module-style-accent .module-heading h2,
body:not(.cms-admin) .module-style-accent .module-heading .module-intro,
body:not(.cms-admin) .module-style-accent .module-heading .module-intro p,
body:not(.cms-admin) .module-style-accent .module-cta h2,
body:not(.cms-admin) .module-style-accent .module-cta p,
body:not(.cms-admin) .module-style-accent .module-cta .eyebrow,
body:not(.cms-admin) .module-style-contrast .module-heading h2,
body:not(.cms-admin) .module-style-contrast .module-heading .module-intro,
body:not(.cms-admin) .module-style-contrast .module-heading .module-intro p{
  color:var(--module-surface-ink)!important;
  -webkit-text-fill-color:var(--module-surface-ink)!important;
  background:none!important;
  text-shadow:none!important;
}
body:not(.cms-admin) .module-style-accent .module-heading .module-intro,
body:not(.cms-admin) .module-style-accent .module-heading .module-intro p,
body:not(.cms-admin) .module-style-accent .module-cta p,
body:not(.cms-admin) .module-style-contrast .module-heading .module-intro,
body:not(.cms-admin) .module-style-contrast .module-heading .module-intro p{
  color:var(--module-surface-muted)!important;
  -webkit-text-fill-color:var(--module-surface-muted)!important;
}
body:not(.cms-admin) .module-style-accent .module-heading .eyebrow,
body:not(.cms-admin) .module-style-contrast .module-heading .eyebrow{
  color:#183047!important;
  -webkit-text-fill-color:#183047!important;
}
body:not(.cms-admin) .module-style-accent .module-heading .eyebrow::after,
body:not(.cms-admin) .module-style-contrast .module-heading .eyebrow::after{
  background:linear-gradient(90deg,#183047,rgba(24,48,71,.18));
  box-shadow:none;
}

/* The CTA sits directly on the module surface instead of adding a second dark panel. */
body:not(.cms-admin) .module-style-accent .module-cta,
body:not(.cms-admin) .module-style-contrast .module-cta{
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
body:not(.cms-admin) .module-style-accent .module-cta .btn.primary,
body:not(.cms-admin) .module-style-contrast .module-cta .btn.primary{
  background:#07111f;
  color:#fff;
  border-color:#07111f;
}
body:not(.cms-admin) .module-style-accent .module-cta .btn:not(.primary),
body:not(.cms-admin) .module-style-contrast .module-cta .btn:not(.primary){
  background:rgba(255,255,255,.52);
  color:#07111f;
  border-color:rgba(7,17,31,.38);
}

/* Testimonial cards inside the light contrast module remain light with dark readable copy. */
body:not(.cms-admin) .module-style-contrast .module-card{
  background:linear-gradient(180deg,#ffffff,#eaf2f8);
  border-color:rgba(30,53,82,.16);
  color:#101b2b;
  box-shadow:0 18px 42px rgba(23,42,63,.16),inset 0 1px 0 #fff;
}
body:not(.cms-admin) .module-style-contrast .module-card h3,
body:not(.cms-admin) .module-style-contrast .module-card strong,
body:not(.cms-admin) .module-style-contrast .module-card summary,
body:not(.cms-admin) .module-style-contrast .module-card footer strong{
  color:#101b2b!important;
  -webkit-text-fill-color:#101b2b!important;
}
body:not(.cms-admin) .module-style-contrast .module-card p,
body:not(.cms-admin) .module-style-contrast .module-card span,
body:not(.cms-admin) .module-style-contrast .module-card figcaption,
body:not(.cms-admin) .module-style-contrast .module-card footer{
  color:#405268!important;
  -webkit-text-fill-color:#405268!important;
}
body:not(.cms-admin) .module-style-contrast .module-testimonial::before{color:#355b78}

/* Standard forms use a stable opaque surface and accessible field contrast. */
body.contrast-dark:not(.cms-admin) .contact-form,
body.contrast-dark:not(.cms-admin) .module-form{
  background:linear-gradient(180deg,rgba(7,15,29,.97),rgba(5,11,22,.98));
  border-color:rgba(167,204,229,.2);
  color:#f4f9ff;
}
body.contrast-dark:not(.cms-admin) .contact-form label,
body.contrast-dark:not(.cms-admin) .module-form label{color:#e7f1f8}
body.contrast-dark:not(.cms-admin) .contact-form input,
body.contrast-dark:not(.cms-admin) .contact-form textarea,
body.contrast-dark:not(.cms-admin) .contact-form select,
body.contrast-dark:not(.cms-admin) .module-form input,
body.contrast-dark:not(.cms-admin) .module-form textarea,
body.contrast-dark:not(.cms-admin) .module-form select{
  background:#101a2a;
  color:#f7fbff;
  border-color:rgba(174,207,230,.28);
}
body.contrast-dark:not(.cms-admin) .contact-form input::placeholder,
body.contrast-dark:not(.cms-admin) .contact-form textarea::placeholder,
body.contrast-dark:not(.cms-admin) .module-form input::placeholder,
body.contrast-dark:not(.cms-admin) .module-form textarea::placeholder{color:#91a7b9}
body.contrast-light:not(.cms-admin) .contact-form,
body.contrast-light:not(.cms-admin) .module-form{
  background:linear-gradient(180deg,#fdfefe,#edf3f8);
  border-color:rgba(30,53,82,.18);
  color:#142033;
}
body.contrast-light:not(.cms-admin) .contact-form label,
body.contrast-light:not(.cms-admin) .module-form label{color:#1c2b40}
body.contrast-light:not(.cms-admin) .contact-form input,
body.contrast-light:not(.cms-admin) .contact-form textarea,
body.contrast-light:not(.cms-admin) .contact-form select,
body.contrast-light:not(.cms-admin) .module-form input,
body.contrast-light:not(.cms-admin) .module-form textarea,
body.contrast-light:not(.cms-admin) .module-form select{
  background:#fff;
  color:#142033;
  border-color:rgba(30,53,82,.25);
}

/* Links and secondary actions remain distinct from surrounding copy. */
body.contrast-dark:not(.cms-admin) .page-content a:not(.btn),
body.contrast-dark:not(.cms-admin) .contact-card a:not(.btn),
body.contrast-dark:not(.cms-admin) .module-feature-card>a{
  color:color-mix(in srgb,var(--tenant-primary) 62%,#ffffff);
  font-weight:750;
}
body.contrast-light:not(.cms-admin) .page-content a:not(.btn),
body.contrast-light:not(.cms-admin) .contact-card a:not(.btn),
body.contrast-light:not(.cms-admin) .module-feature-card>a{
  color:var(--accent-readable);
  font-weight:750;
}

/* Headers and footers receive reliable surfaces independent of animated backgrounds. */
body.contrast-dark:not(.cms-admin) .site-header{
  background:rgba(4,10,20,.92);
  border-bottom-color:rgba(174,207,230,.18);
}
body.contrast-light:not(.cms-admin) .site-header{
  background:rgba(255,255,255,.94);
  border-bottom-color:rgba(30,53,82,.16);
}
body.contrast-dark:not(.cms-admin) footer{
  background:rgba(3,8,17,.78);
  color:#b8cad8;
}
body.contrast-light:not(.cms-admin) footer{
  background:rgba(255,255,255,.72);
  color:#465970;
}

/* Keyboard focus and small-screen layout refinement. */
body:not(.cms-admin) a:focus-visible,
body:not(.cms-admin) button:focus-visible,
body:not(.cms-admin) input:focus-visible,
body:not(.cms-admin) textarea:focus-visible,
body:not(.cms-admin) select:focus-visible,
body:not(.cms-admin) summary:focus-visible{
  outline:3px solid color-mix(in srgb,var(--tenant-accent) 72%,#fff);
  outline-offset:3px;
}
body:not(.cms-admin) .module-feature-card,
body:not(.cms-admin) .module-stat,
body:not(.cms-admin) .module-testimonial,
body:not(.cms-admin) .card{
  min-height:0;
}
@media(max-width:760px){
  body:not(.cms-admin) .site-header nav{row-gap:10px}
  body:not(.cms-admin) .hero h1{line-height:.98}
  body:not(.cms-admin) .module-heading h2,
  body:not(.cms-admin) .section-heading h2{line-height:1.02}
  body:not(.cms-admin) .module-cta .module-actions{width:100%}
  body:not(.cms-admin) .module-cta .btn{flex:1 1 180px}
}
@media(prefers-reduced-motion:reduce){
  body:not(.cms-admin) .card,
  body:not(.cms-admin) .module-card,
  body:not(.cms-admin) .btn{transition:none!important;transform:none!important}
}

/* Testimonial attribution uses a semantic footer but must not inherit the website footer panel. */
body:not(.cms-admin) .module-testimonial>footer{
  display:grid;
  gap:.2rem;
  margin-top:1rem;
  padding:0!important;
  text-align:left!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body:not(.cms-admin) .module-testimonial>footer strong,
body:not(.cms-admin) .module-testimonial>footer span{display:block}

/* Stage 29 mix-and-match safeguards: every option remains readable outside its original preset. */
body.button-style-underline .btn{
  min-height:44px;
  padding:10px 3px;
  line-height:1.2;
}
body.button-style-split-fill .btn.primary{color:var(--tenant-button-ink)}
body.contrast-light.button-style-glass .btn{
  background:rgba(255,255,255,.78);
  color:#172235;
  border-color:rgba(30,53,82,.22);
}
body.contrast-light.button-style-glass .btn.primary{
  background:linear-gradient(135deg,var(--tenant-primary),var(--tenant-accent));
  color:var(--tenant-button-ink);
}
body.contrast-light.button-style-soft-shadow .btn{
  background:rgba(255,255,255,.9);
  color:#172235;
  border-color:rgba(30,53,82,.18);
  box-shadow:0 12px 28px rgba(31,48,69,.13);
}
body.contrast-light.button-style-soft-shadow .btn.primary{
  background:linear-gradient(135deg,var(--tenant-primary),var(--tenant-accent));
  color:var(--tenant-button-ink);
}

/* Contrast-aware decorative heading effects for customer-selected combinations. */
body.contrast-light.heading-effect-gradient .hero h1,
body.contrast-light.heading-effect-gradient .section:not(.module-style-accent):not(.module-style-contrast) h2{
  background:linear-gradient(110deg,color-mix(in srgb,var(--tenant-primary) 52%,#142033),#25384e,color-mix(in srgb,var(--tenant-accent) 48%,#142033));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
body.contrast-light.heading-effect-split-colour .hero h1,
body.contrast-light.heading-effect-split-colour .section:not(.module-style-accent):not(.module-style-contrast) h2{
  background:linear-gradient(90deg,color-mix(in srgb,var(--tenant-primary) 54%,#142033) 0 48%,color-mix(in srgb,var(--tenant-accent) 48%,#142033) 48% 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
body.contrast-light.heading-effect-outline .hero h1{
  color:transparent;
  -webkit-text-stroke:1.5px color-mix(in srgb,var(--tenant-primary) 48%,#142033);
  text-shadow:0 14px 34px rgba(31,48,69,.14);
}

/* Intrinsically dark card treatments keep light copy even when selected on a light page. */
body.card-style-neon-outline .card,
body.card-style-neon-outline .split,
body.card-style-neon-outline .contact-card,
body.card-style-industrial-rivet .card,
body.card-style-industrial-rivet .split,
body.card-style-industrial-rivet .contact-card,
body.card-style-luxury-border .card,
body.card-style-luxury-border .split,
body.card-style-luxury-border .contact-card,
body.card-style-hex-tech .card,
body.card-style-hex-tech .split,
body.card-style-hex-tech .contact-card,
body.card-style-left-accent .card,
body.card-style-left-accent .split,
body.card-style-left-accent .contact-card,
body.card-style-bold-gradient .card,
body.card-style-bold-gradient .split,
body.card-style-bold-gradient .contact-card{
  --local-card-heading:#f8fbff;
  --local-card-copy:#c7d6e2;
  color:var(--local-card-heading);
}
body.card-style-neon-outline .card h3,
body.card-style-neon-outline .split h2,
body.card-style-neon-outline .contact-card h2,
body.card-style-industrial-rivet .card h3,
body.card-style-industrial-rivet .split h2,
body.card-style-industrial-rivet .contact-card h2,
body.card-style-luxury-border .card h3,
body.card-style-luxury-border .split h2,
body.card-style-luxury-border .contact-card h2,
body.card-style-hex-tech .card h3,
body.card-style-hex-tech .split h2,
body.card-style-hex-tech .contact-card h2,
body.card-style-left-accent .card h3,
body.card-style-left-accent .split h2,
body.card-style-left-accent .contact-card h2,
body.card-style-bold-gradient .card h3,
body.card-style-bold-gradient .split h2,
body.card-style-bold-gradient .contact-card h2{
  color:var(--local-card-heading)!important;
  -webkit-text-fill-color:var(--local-card-heading)!important;
}
body.card-style-neon-outline .card p,
body.card-style-neon-outline .split p,
body.card-style-neon-outline .contact-card p,
body.card-style-industrial-rivet .card p,
body.card-style-industrial-rivet .split p,
body.card-style-industrial-rivet .contact-card p,
body.card-style-luxury-border .card p,
body.card-style-luxury-border .split p,
body.card-style-luxury-border .contact-card p,
body.card-style-hex-tech .card p,
body.card-style-hex-tech .split p,
body.card-style-hex-tech .contact-card p,
body.card-style-left-accent .card p,
body.card-style-left-accent .split p,
body.card-style-left-accent .contact-card p,
body.card-style-bold-gradient .card p,
body.card-style-bold-gradient .split p,
body.card-style-bold-gradient .contact-card p{
  color:var(--local-card-copy)!important;
  -webkit-text-fill-color:var(--local-card-copy)!important;
}
body.card-style-neon-outline .contact-card label,
body.card-style-industrial-rivet .contact-card label,
body.card-style-luxury-border .contact-card label,
body.card-style-hex-tech .contact-card label,
body.card-style-left-accent .contact-card label,
body.card-style-bold-gradient .contact-card label{color:#eef6fb}

/* Accent and contrast module styles support cards and forms, not only CTA modules. */
body:not(.cms-admin) .module-style-accent .module-card{
  background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(243,248,251,.72));
  border-color:rgba(7,17,31,.16);
  box-shadow:0 18px 44px rgba(7,17,31,.14);
}
body:not(.cms-admin) .module-style-accent .module-card h3,
body:not(.cms-admin) .module-style-accent .module-card strong,
body:not(.cms-admin) .module-style-accent .module-card summary{color:#101b2b!important;-webkit-text-fill-color:#101b2b!important}
body:not(.cms-admin) .module-style-accent .module-card p,
body:not(.cms-admin) .module-style-accent .module-card span,
body:not(.cms-admin) .module-style-accent .module-card figcaption{color:#405268!important;-webkit-text-fill-color:#405268!important}
body:not(.cms-admin) .module-style-accent .module-form,
body:not(.cms-admin) .module-style-contrast .module-form{
  background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(236,244,249,.9));
  border-color:rgba(7,17,31,.18);
  color:#142033;
}
body:not(.cms-admin) .module-style-accent .module-form label,
body:not(.cms-admin) .module-style-contrast .module-form label{color:#1c2b40}
body:not(.cms-admin) .module-style-accent .module-form input,
body:not(.cms-admin) .module-style-accent .module-form textarea,
body:not(.cms-admin) .module-style-accent .module-form select,
body:not(.cms-admin) .module-style-contrast .module-form input,
body:not(.cms-admin) .module-style-contrast .module-form textarea,
body:not(.cms-admin) .module-style-contrast .module-form select{
  background:#fff;
  color:#142033;
  border-color:rgba(30,53,82,.25);
}

/* Stage 31: mix-and-match back-to-top control for every public template. */
.back-to-top{
  --bt-size:58px;
  --bt-bg:linear-gradient(145deg,color-mix(in srgb,var(--tenant-primary) 88%,#07111f),color-mix(in srgb,var(--tenant-accent) 74%,#07111f));
  --bt-ink:var(--tenant-button-ink,#04101f);
  --bt-border:color-mix(in srgb,var(--tenant-primary) 50%,rgba(255,255,255,.22));
  --bt-accent:var(--tenant-accent);
  position:fixed;
  z-index:1400;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  min-width:var(--bt-size);
  min-height:var(--bt-size);
  padding:.72rem .95rem;
  border:1px solid var(--bt-border);
  border-radius:18px;
  background:var(--bt-bg);
  color:var(--bt-ink);
  box-shadow:0 18px 42px rgba(0,0,0,.34),0 0 28px color-mix(in srgb,var(--tenant-primary) 20%,transparent),inset 0 1px 0 rgba(255,255,255,.18);
  font:800 .78rem/1 var(--font-heading,system-ui,sans-serif);
  letter-spacing:.045em;
  text-transform:uppercase;
  cursor:pointer;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(20px);
  transition:opacity .28s ease,visibility .28s ease,transform .36s cubic-bezier(.2,.8,.2,1),box-shadow .25s ease,background .25s ease,border-color .25s ease;
  isolation:isolate;
  overflow:visible;
  -webkit-tap-highlight-color:transparent;
}
.back-to-top.is-visible,
body.back-to-top-visibility-always .back-to-top{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:none;
}
body.back-to-top-visibility-off .back-to-top{display:none!important}
.back-to-top:hover{transform:translateY(-3px);box-shadow:0 24px 52px rgba(0,0,0,.4),0 0 36px color-mix(in srgb,var(--tenant-primary) 28%,transparent),inset 0 1px 0 rgba(255,255,255,.22)}
.back-to-top:active{transform:translateY(0) scale(.97)}
.back-to-top:focus-visible{outline:3px solid color-mix(in srgb,var(--tenant-accent) 72%,#fff);outline-offset:4px}
.back-to-top-icon{position:relative;z-index:3;display:grid;place-items:center;width:22px;height:22px;flex:0 0 auto}
.back-to-top-icon svg{display:block;width:100%;height:100%}
.back-to-top-text{position:relative;z-index:3;white-space:nowrap}
.back-to-top-detail{position:absolute;z-index:1;inset:0;border-radius:inherit;pointer-events:none}
.back-to-top-progress{position:absolute;z-index:2;inset:-4px;border-radius:inherit;background:conic-gradient(var(--bt-accent) var(--scroll-progress,0deg),transparent 0);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 0);mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 0);opacity:.72;pointer-events:none}
body.back-to-top-label-icon-only .back-to-top{width:var(--bt-size);padding:.7rem}
body.back-to-top-label-icon-only .back-to-top-text{display:none}

body.back-to-top-position-bottom-right .back-to-top{right:clamp(18px,2.4vw,36px);bottom:calc(clamp(18px,2.4vw,34px) + env(safe-area-inset-bottom,0px))}
body.back-to-top-position-bottom-left .back-to-top{left:clamp(18px,2.4vw,36px);bottom:calc(clamp(18px,2.4vw,34px) + env(safe-area-inset-bottom,0px))}
body.back-to-top-position-middle-right .back-to-top{right:clamp(10px,1.4vw,22px);top:50%;transform:translate(20px,-50%)}
body.back-to-top-position-middle-right .back-to-top.is-visible,body.back-to-top-position-middle-right.back-to-top-visibility-always .back-to-top{transform:translate(0,-50%)}
body.back-to-top-position-middle-right .back-to-top:hover{transform:translate(-3px,-50%)}
body.back-to-top-position-middle-left .back-to-top{left:clamp(10px,1.4vw,22px);top:50%;transform:translate(-20px,-50%)}
body.back-to-top-position-middle-left .back-to-top.is-visible,body.back-to-top-position-middle-left.back-to-top-visibility-always .back-to-top{transform:translate(0,-50%)}
body.back-to-top-position-middle-left .back-to-top:hover{transform:translate(3px,-50%)}
body.back-to-top-position-bottom-centre .back-to-top{left:50%;bottom:calc(clamp(18px,2.4vw,34px) + env(safe-area-inset-bottom,0px));transform:translate(-50%,20px)}
body.back-to-top-position-bottom-centre .back-to-top.is-visible,body.back-to-top-position-bottom-centre.back-to-top-visibility-always .back-to-top{transform:translate(-50%,0)}
body.back-to-top-position-bottom-centre .back-to-top:hover{transform:translate(-50%,-3px)}

body.back-to-top-motion-slide-edge.back-to-top-position-bottom-right .back-to-top,
body.back-to-top-motion-slide-edge.back-to-top-position-middle-right .back-to-top{transform:translateX(34px)}
body.back-to-top-motion-slide-edge.back-to-top-position-bottom-left .back-to-top,
body.back-to-top-motion-slide-edge.back-to-top-position-middle-left .back-to-top{transform:translateX(-34px)}
body.back-to-top-motion-slide-edge .back-to-top.is-visible,
body.back-to-top-motion-slide-edge.back-to-top-visibility-always .back-to-top{transform:none}
body.back-to-top-motion-scale-pop .back-to-top{transform:scale(.72)}
body.back-to-top-motion-scale-pop .back-to-top.is-visible,
body.back-to-top-motion-scale-pop.back-to-top-visibility-always .back-to-top{transform:scale(1)}
body.back-to-top-motion-none .back-to-top{transition:box-shadow .2s ease,background .2s ease;transform:none}
body.back-to-top-motion-soft-pulse .back-to-top.is-visible::after,
body.back-to-top-motion-soft-pulse.back-to-top-visibility-always .back-to-top::after{content:"";position:absolute;inset:-8px;border:1px solid color-mix(in srgb,var(--tenant-primary) 58%,transparent);border-radius:inherit;animation:n22BackTopPulse 2.4s ease-out infinite;pointer-events:none}
body.back-to-top-motion-orbit .back-to-top-detail::after{content:"";position:absolute;width:8px;height:8px;border-radius:50%;background:var(--tenant-accent);box-shadow:0 0 12px var(--tenant-accent);left:50%;top:50%;transform-origin:0 0;animation:n22BackTopOrbit 3.4s linear infinite}
body.back-to-top-motion-shimmer .back-to-top-detail{overflow:hidden}
body.back-to-top-motion-shimmer .back-to-top-detail::after{content:"";position:absolute;inset:-30% auto -30% -45%;width:34%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.42),transparent);transform:skewX(-18deg);animation:n22BackTopShimmer 3.2s ease-in-out infinite}
@keyframes n22BackTopPulse{0%{opacity:.72;transform:scale(.86)}75%,100%{opacity:0;transform:scale(1.28)}}
@keyframes n22BackTopOrbit{from{transform:rotate(0deg) translateX(calc(var(--bt-size) * .58)) translateY(-4px)}to{transform:rotate(360deg) translateX(calc(var(--bt-size) * .58)) translateY(-4px)}}
@keyframes n22BackTopShimmer{0%,58%{left:-45%}100%{left:125%}}

/* Individual template-inspired button designs. Each can be selected on any template. */
body.back-to-top-style-node-beacon .back-to-top{--bt-bg:linear-gradient(145deg,#06182b,#083a54);--bt-ink:#e8fbff;--bt-border:rgba(68,213,255,.5);clip-path:polygon(0 0,calc(100% - 13px) 0,100% 13px,100% 100%,13px 100%,0 calc(100% - 13px))}
body.back-to-top-style-node-beacon .back-to-top-detail{background:radial-gradient(circle at 22% 24%,rgba(0,217,255,.34),transparent 32%)}
body.back-to-top-style-trade-chevron .back-to-top{--bt-bg:linear-gradient(135deg,#ffd437,#f6a600);--bt-ink:#171204;--bt-border:#ffe17a;border-radius:5px;clip-path:polygon(0 0,calc(100% - 14px) 0,100% 50%,calc(100% - 14px) 100%,0 100%,8px 50%)}
body.back-to-top-style-executive-tab .back-to-top{--bt-bg:linear-gradient(180deg,#172033,#0d1423);--bt-ink:#f6f0df;--bt-border:rgba(211,188,132,.5);border-radius:3px;border-left:4px solid #d4bb7a;box-shadow:0 18px 48px rgba(0,0,0,.35)}
body.back-to-top-style-security-radar .back-to-top{--bt-size:62px;--bt-bg:radial-gradient(circle,#092536 0 45%,#04131f 46%);--bt-ink:#7fffd4;--bt-border:rgba(84,255,195,.52);border-radius:50%}
body.back-to-top-style-security-radar .back-to-top-detail{border:1px dashed rgba(84,255,195,.38);animation:n22RadarSpin 8s linear infinite}
body.back-to-top-style-event-orbit .back-to-top{--bt-size:62px;--bt-bg:radial-gradient(circle at 34% 28%,#d946ef,#5b21b6 72%);--bt-ink:#fff;--bt-border:rgba(244,114,255,.58);border-radius:50%;box-shadow:0 18px 46px rgba(91,33,182,.44),0 0 34px rgba(217,70,239,.3)}
body.back-to-top-style-cyber-circuit .back-to-top{--bt-bg:linear-gradient(145deg,#051521,#062d38);--bt-ink:#9ffcff;--bt-border:#20e9f0;border-radius:7px;clip-path:polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px)}
body.back-to-top-style-cyber-circuit .back-to-top-detail{background:linear-gradient(90deg,transparent 18%,rgba(34,211,238,.18) 19% 21%,transparent 22% 78%,rgba(34,211,238,.18) 79% 81%,transparent 82%),linear-gradient(0deg,transparent 28%,rgba(34,211,238,.16) 29% 31%,transparent 32%)}
body.back-to-top-style-coastal-bubble .back-to-top{--bt-bg:linear-gradient(145deg,#dffcff,#88e7df);--bt-ink:#064c55;--bt-border:rgba(6,148,162,.36);border-radius:32px 18px 34px 22px;box-shadow:0 18px 42px rgba(14,116,144,.22)}
body.back-to-top-style-creative-frame .back-to-top{--bt-bg:#0f1220;--bt-ink:#fff;--bt-border:var(--tenant-primary);border-radius:2px;box-shadow:7px 7px 0 var(--tenant-accent),0 18px 36px rgba(0,0,0,.28)}
body.back-to-top-style-finance-monogram .back-to-top{--bt-size:60px;--bt-bg:radial-gradient(circle,#18231f,#07110e);--bt-ink:#f4d78c;--bt-border:#b9954e;border-radius:50%;font-family:Georgia,serif}
body.back-to-top-style-wellness-bloom .back-to-top{--bt-bg:linear-gradient(145deg,#fff9fb,#f3dfe8);--bt-ink:#6b3753;--bt-border:rgba(180,112,145,.35);border-radius:50% 50% 46% 54%/54% 46% 54% 46%;box-shadow:0 16px 40px rgba(170,95,130,.2)}
body.back-to-top-style-wellness-bloom .back-to-top-detail::before,body.back-to-top-style-wellness-bloom .back-to-top-detail::after{content:"";position:absolute;width:12px;height:18px;border-radius:100% 0 100% 0;background:rgba(196,120,157,.2);top:-5px;left:50%}.back-to-top-style-wellness-bloom .back-to-top-detail::after{transform:rotate(90deg);left:auto;right:-4px;top:42%}
body.back-to-top-style-hospitality-seal .back-to-top{--bt-size:64px;--bt-bg:radial-gradient(circle,#1c1712,#080706);--bt-ink:#f8d58b;--bt-border:#c9983d;border-radius:50%;border:3px double #c9983d;font-family:Georgia,serif}
body.back-to-top-style-property-keyline .back-to-top{--bt-bg:linear-gradient(145deg,rgba(8,22,39,.96),rgba(14,43,69,.94));--bt-ink:#e9f7ff;--bt-border:rgba(125,211,252,.45);border-radius:4px 22px 4px 22px}
body.back-to-top-style-property-keyline .back-to-top-detail{border-top:2px solid var(--tenant-accent);border-right:2px solid var(--tenant-accent);width:22px;height:22px;left:auto;bottom:auto}
body.back-to-top-style-construction-bolt .back-to-top{--bt-size:62px;--bt-bg:linear-gradient(135deg,#ffd20a,#f59e0b);--bt-ink:#16120a;--bt-border:#ffe46b;border-radius:0;clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%)}
body.back-to-top-style-retail-tag .back-to-top{--bt-bg:linear-gradient(135deg,#ff4bb2,#7c3aed);--bt-ink:#fff;--bt-border:rgba(255,255,255,.42);border-radius:8px 22px 22px 8px;padding-left:1.15rem}
body.back-to-top-style-retail-tag .back-to-top-detail::before{content:"";position:absolute;left:8px;top:50%;width:7px;height:7px;border-radius:50%;background:#fff;transform:translateY(-50%);opacity:.75}
body.back-to-top-style-education-bookmark .back-to-top{--bt-bg:linear-gradient(180deg,#224b8d,#16325f);--bt-ink:#fff;--bt-border:rgba(147,197,253,.44);border-radius:5px 5px 0 0;padding-bottom:1.05rem;clip-path:polygon(0 0,100% 0,100% 100%,50% calc(100% - 12px),0 100%)}
body.back-to-top-style-community-badge .back-to-top{--bt-bg:linear-gradient(145deg,#fff4d7,#ffb98a);--bt-ink:#69331f;--bt-border:rgba(180,82,35,.26);border-radius:26px 26px 18px 18px;box-shadow:0 18px 42px rgba(196,91,45,.18)}
body.back-to-top-style-automotive-gauge .back-to-top{--bt-size:64px;--bt-bg:radial-gradient(circle at 50% 62%,#15191d 0 48%,#050607 49%);--bt-ink:#ff4838;--bt-border:#515960;border-radius:50%;border-width:3px}
body.back-to-top-style-automotive-gauge .back-to-top-detail{border-top:3px solid #ff4838;border-left:3px solid transparent;border-right:3px solid transparent;border-radius:50%;transform:rotate(-25deg)}
body.back-to-top-style-beauty-sparkle .back-to-top{--bt-size:62px;--bt-bg:linear-gradient(145deg,#fff4fb,#e8c4df);--bt-ink:#7c285e;--bt-border:rgba(190,90,154,.4);border-radius:50%;box-shadow:0 18px 44px rgba(171,78,142,.2),0 0 28px rgba(255,190,235,.34)}
body.back-to-top-style-beauty-sparkle .back-to-top-detail::before{content:"✦";position:absolute;right:-4px;top:-10px;color:#fff;font-size:1.2rem;text-shadow:0 0 12px #fff}
body.back-to-top-style-architecture-grid .back-to-top{--bt-bg:#f2f1ed;--bt-ink:#171717;--bt-border:#171717;border-radius:0;box-shadow:5px 5px 0 color-mix(in srgb,var(--tenant-primary) 70%,#111)}
body.back-to-top-style-architecture-grid .back-to-top-detail{background:linear-gradient(90deg,transparent 48%,rgba(0,0,0,.09) 49% 51%,transparent 52%),linear-gradient(0deg,transparent 48%,rgba(0,0,0,.09) 49% 51%,transparent 52%)}
body.back-to-top-style-legal-column .back-to-top{--bt-bg:linear-gradient(180deg,#f5f0e4,#ded3bd);--bt-ink:#332a1c;--bt-border:#806e4c;border-radius:2px;font-family:Georgia,serif;border-top:5px double #806e4c;border-bottom:5px double #806e4c}
body.back-to-top-style-cleaning-shine .back-to-top{--bt-bg:linear-gradient(145deg,#f6fdff,#9fe9ff);--bt-ink:#06496b;--bt-border:rgba(14,116,144,.34);border-radius:18px 5px 18px 5px;box-shadow:0 18px 42px rgba(14,116,144,.2)}
body.back-to-top-style-cleaning-shine .back-to-top-detail::after{content:"";position:absolute;inset:4px;background:linear-gradient(120deg,transparent 35%,rgba(255,255,255,.72) 48%,transparent 62%);border-radius:inherit;opacity:.62}
body.back-to-top-style-industrial-plate .back-to-top{--bt-bg:linear-gradient(145deg,#3a4249,#161b20);--bt-ink:#f6b73c;--bt-border:#717b83;border-radius:4px;box-shadow:inset 0 0 0 2px #20262b,0 18px 44px rgba(0,0,0,.38)}
body.back-to-top-style-industrial-plate .back-to-top-detail::before,body.back-to-top-style-industrial-plate .back-to-top-detail::after{content:"";position:absolute;width:5px;height:5px;border-radius:50%;background:#9aa3aa;box-shadow:0 0 0 1px #111;top:6px;left:6px}.back-to-top-style-industrial-plate .back-to-top-detail::after{left:auto;right:6px;top:auto;bottom:6px}
body.back-to-top-style-childcare-cloud .back-to-top{--bt-bg:linear-gradient(145deg,#fff8d8,#bdeeff);--bt-ink:#285277;--bt-border:rgba(80,150,190,.28);border-radius:34px;box-shadow:0 16px 36px rgba(64,138,176,.18)}
body.back-to-top-style-childcare-cloud .back-to-top-detail::before,body.back-to-top-style-childcare-cloud .back-to-top-detail::after{content:"";position:absolute;border-radius:50%;background:inherit;width:24px;height:24px;top:-9px;left:18%}.back-to-top-style-childcare-cloud .back-to-top-detail::after{width:30px;height:30px;left:auto;right:18%;top:-13px}
body.back-to-top-style-travel-compass .back-to-top{--bt-size:64px;--bt-bg:radial-gradient(circle,#10344a,#06141f);--bt-ink:#f9cc74;--bt-border:#c59242;border-radius:50%;border:2px solid #c59242}
body.back-to-top-style-travel-compass .back-to-top-detail::before{content:"";position:absolute;inset:7px;border:1px dashed rgba(249,204,116,.46);border-radius:50%;animation:n22RadarSpin 12s linear infinite}
@keyframes n22RadarSpin{to{transform:rotate(360deg)}}

/* Compact Design Studio representation of the selected back-to-top control. */
.designer-preview{position:relative}
.dp-back-top{position:absolute;right:16px;bottom:16px;z-index:4;display:flex;align-items:center;gap:5px;min-width:38px;min-height:38px;padding:8px 10px;border:1px solid color-mix(in srgb,var(--preview-primary) 55%,rgba(255,255,255,.24));border-radius:12px;background:linear-gradient(135deg,var(--preview-primary),var(--preview-accent));color:#07111f;font-weight:900;font-size:.62rem;box-shadow:0 10px 24px rgba(0,0,0,.28)}
.dp-back-top span{font-size:.9rem}.dp-back-top b{font-size:.58rem;white-space:nowrap}.dp-back-top.is-icon-only{width:40px;padding:8px}.dp-back-top.is-icon-only b{display:none}
.designer-preview[data-back-top-position="bottom-left"] .dp-back-top{left:16px;right:auto}
.designer-preview[data-back-top-position="middle-left"] .dp-back-top{left:16px;right:auto;bottom:50%;transform:translateY(50%)}
.designer-preview[data-back-top-position="middle-right"] .dp-back-top{bottom:50%;transform:translateY(50%)}
.designer-preview[data-back-top-position="bottom-centre"] .dp-back-top{left:50%;right:auto;transform:translateX(-50%)}
.designer-preview[data-back-top-style="security-radar"] .dp-back-top,.designer-preview[data-back-top-style="event-orbit"] .dp-back-top,.designer-preview[data-back-top-style="finance-monogram"] .dp-back-top,.designer-preview[data-back-top-style="hospitality-seal"] .dp-back-top,.designer-preview[data-back-top-style="automotive-gauge"] .dp-back-top,.designer-preview[data-back-top-style="beauty-sparkle"] .dp-back-top,.designer-preview[data-back-top-style="travel-compass"] .dp-back-top{border-radius:50%}
.designer-preview[data-back-top-style="trade-chevron"] .dp-back-top,.designer-preview[data-back-top-style="construction-bolt"] .dp-back-top{border-radius:2px;clip-path:polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px)}
.designer-preview[data-back-top-style="architecture-grid"] .dp-back-top,.designer-preview[data-back-top-style="legal-column"] .dp-back-top,.designer-preview[data-back-top-style="industrial-plate"] .dp-back-top{border-radius:2px}
.designer-preview[data-back-top-style="coastal-bubble"] .dp-back-top,.designer-preview[data-back-top-style="wellness-bloom"] .dp-back-top,.designer-preview[data-back-top-style="childcare-cloud"] .dp-back-top{border-radius:26px}
.designer-preview[data-back-top-motion="soft-pulse"] .dp-back-top{animation:n22BackTopPulse 2.2s ease-out infinite}
.designer-preview[data-back-top-motion="shimmer"] .dp-back-top{background:linear-gradient(110deg,var(--preview-primary),var(--preview-accent),var(--preview-primary));background-size:220% 100%;animation:n22PreviewBackTopShimmer 2.4s linear infinite}
@keyframes n22PreviewBackTopShimmer{to{background-position:220% 0}}

@media(max-width:760px){
  .back-to-top{--bt-size:52px;min-height:52px;min-width:52px;padding:.66rem .78rem;font-size:.7rem}
  body.back-to-top-position-middle-right .back-to-top,body.back-to-top-position-middle-left .back-to-top{top:auto;bottom:calc(18px + env(safe-area-inset-bottom,0px));transform:translateY(20px)}
  body.back-to-top-position-middle-right .back-to-top{right:16px}
  body.back-to-top-position-middle-left .back-to-top{left:16px}
  body.back-to-top-position-middle-right .back-to-top.is-visible,body.back-to-top-position-middle-left .back-to-top.is-visible,body.back-to-top-position-middle-right.back-to-top-visibility-always .back-to-top,body.back-to-top-position-middle-left.back-to-top-visibility-always .back-to-top{transform:none}
  body.back-to-top-position-middle-right .back-to-top:hover,body.back-to-top-position-middle-left .back-to-top:hover{transform:translateY(-2px)}
}
@media(prefers-reduced-motion:reduce){
  .back-to-top,.back-to-top::after,.back-to-top-detail,.back-to-top-detail::before,.back-to-top-detail::after{animation:none!important;transition:none!important}
}
/* Preserve vertical centring for side-mounted entrance animations. */
body.back-to-top-position-middle-right.back-to-top-motion-slide-edge .back-to-top{transform:translate(34px,-50%)}
body.back-to-top-position-middle-left.back-to-top-motion-slide-edge .back-to-top{transform:translate(-34px,-50%)}
body.back-to-top-position-middle-right.back-to-top-motion-slide-edge .back-to-top.is-visible,
body.back-to-top-position-middle-left.back-to-top-motion-slide-edge .back-to-top.is-visible,
body.back-to-top-position-middle-right.back-to-top-motion-slide-edge.back-to-top-visibility-always .back-to-top,
body.back-to-top-position-middle-left.back-to-top-motion-slide-edge.back-to-top-visibility-always .back-to-top{transform:translate(0,-50%)}
body.back-to-top-position-middle-right.back-to-top-motion-scale-pop .back-to-top,
body.back-to-top-position-middle-left.back-to-top-motion-scale-pop .back-to-top{transform:translate(0,-50%) scale(.72)}
body.back-to-top-position-middle-right.back-to-top-motion-scale-pop .back-to-top.is-visible,
body.back-to-top-position-middle-left.back-to-top-motion-scale-pop .back-to-top.is-visible,
body.back-to-top-position-middle-right.back-to-top-motion-scale-pop.back-to-top-visibility-always .back-to-top,
body.back-to-top-position-middle-left.back-to-top-motion-scale-pop.back-to-top-visibility-always .back-to-top{transform:translate(0,-50%) scale(1)}
@media(max-width:760px){
  body.back-to-top-position-middle-right.back-to-top-motion-slide-edge .back-to-top,
  body.back-to-top-position-middle-left.back-to-top-motion-slide-edge .back-to-top{transform:translateY(20px)}
  body.back-to-top-position-middle-right.back-to-top-motion-scale-pop .back-to-top,
  body.back-to-top-position-middle-left.back-to-top-motion-scale-pop .back-to-top{transform:scale(.72)}
  body.back-to-top-position-middle-right.back-to-top-motion-slide-edge .back-to-top.is-visible,
  body.back-to-top-position-middle-left.back-to-top-motion-slide-edge .back-to-top.is-visible,
  body.back-to-top-position-middle-right.back-to-top-motion-scale-pop .back-to-top.is-visible,
  body.back-to-top-position-middle-left.back-to-top-motion-scale-pop .back-to-top.is-visible{transform:none}
}

/* Stage 32: robust back-to-top rendering and right-side positioning. */
.back-to-top{
  -webkit-appearance:none!important;
  appearance:none!important;
  box-sizing:border-box!important;
  width:auto;
  max-width:min(230px,calc(100vw - 32px));
  margin:0!important;
  text-decoration:none!important;
  white-space:nowrap;
  vertical-align:middle;
  line-height:1!important;
  font-family:var(--font-heading,system-ui,-apple-system,"Segoe UI",sans-serif)!important;
  font-weight:800!important;
  text-align:center;
  -webkit-font-smoothing:antialiased;
  touch-action:manipulation;
}
.back-to-top::-moz-focus-inner{border:0;padding:0}
.back-to-top-icon,
.back-to-top-text,
.back-to-top-progress,
.back-to-top-detail{box-sizing:border-box}
.back-to-top-icon{line-height:0}
.back-to-top-icon svg{overflow:visible}
/* Defensive migration for pages that still contain an older saved position class. */
body.back-to-top-position-bottom-left .back-to-top,
body.back-to-top-position-bottom-centre .back-to-top{
  left:auto!important;
  right:clamp(18px,2.4vw,36px)!important;
  bottom:calc(clamp(18px,2.4vw,34px) + env(safe-area-inset-bottom,0px))!important;
}
body.back-to-top-position-middle-left .back-to-top{
  left:auto!important;
  right:clamp(10px,1.4vw,22px)!important;
  top:50%!important;
}
@media(max-width:760px){
  .back-to-top{
    right:16px!important;
    left:auto!important;
    bottom:calc(16px + env(safe-area-inset-bottom,0px))!important;
    top:auto!important;
    min-width:52px;
    min-height:52px;
    max-width:calc(100vw - 32px);
  }
}

/* Stage 33: owner-only backup/restore and favicon management. */
.backup-status-chip{display:inline-flex;align-items:center;gap:.45rem;padding:.65rem .85rem;border:1px solid color-mix(in srgb,var(--tenant-accent) 34%,var(--line));border-radius:999px;background:color-mix(in srgb,var(--tenant-accent) 10%,transparent);color:var(--text);font-size:.82rem;font-weight:800;white-space:nowrap}
.backup-status-chip::before{content:"";width:.55rem;height:.55rem;border-radius:50%;background:#49d98a;box-shadow:0 0 14px rgba(73,217,138,.45)}
.backup-download-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:clamp(24px,4vw,54px);background:linear-gradient(140deg,color-mix(in srgb,var(--tenant-primary) 10%,rgba(7,14,29,.94)),rgba(7,14,29,.88));border-color:color-mix(in srgb,var(--tenant-primary) 30%,var(--line))}
.backup-download-card h2,.restore-section h2{margin:.15rem 0 .7rem}
.backup-download-card p:last-child{max-width:74ch;margin-bottom:0}
.restore-section{background:linear-gradient(160deg,rgba(9,18,35,.94),rgba(5,11,24,.9));border-color:color-mix(in srgb,var(--tenant-accent) 22%,var(--line))}
.restore-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.15rem;margin-top:1.4rem}
.restore-form .wide{grid-column:1/-1}
.restore-file-field,.restore-confirm{display:grid;gap:.55rem;padding:1rem;border:1px solid var(--line);border-radius:16px;background:rgba(2,9,20,.5)}
.restore-file-field input[type=file]{padding:.82rem;border:1px dashed color-mix(in srgb,var(--tenant-primary) 38%,var(--line));border-radius:12px;background:rgba(2,9,20,.72)}
.restore-options{margin:0;padding:1rem;border:1px solid var(--line);border-radius:18px;background:rgba(2,9,20,.42)}
.restore-options legend{padding:0 .55rem;color:var(--text);font-weight:850}
.restore-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}
.restore-option-grid .toggle-field{min-height:100%;padding:.95rem;border:1px solid color-mix(in srgb,var(--line) 86%,transparent);border-radius:14px;background:rgba(7,16,31,.62)}
.restore-option-grid .toggle-field:hover{border-color:color-mix(in srgb,var(--tenant-primary) 36%,var(--line));background:rgba(9,20,39,.75)}
.restore-option-grid .warning-toggle{border-color:rgba(245,189,74,.24)}
.restore-option-grid .danger-toggle{border-color:rgba(255,91,112,.28)}
.restore-confirm code{display:inline-block;padding:.12rem .38rem;border:1px solid var(--line);border-radius:6px;background:rgba(1,7,16,.7);color:var(--text)}
.restore-safety-grid article{min-height:100%}
.restore-history-list{display:grid;gap:.75rem}
.restore-history-list article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.35rem 1rem;padding:1rem 1.1rem;border:1px solid var(--line);border-radius:14px;background:rgba(4,12,26,.62)}
.restore-history-list article>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.5rem 1rem;grid-column:1/-1}
.restore-history-list article strong{color:var(--text)}
.restore-history-list article span,.restore-history-list article small{color:var(--muted)}
.restore-history-list article p{margin:0;color:var(--text-soft)}
.restore-history-list article small{justify-self:end}
.favicon-manager{background:linear-gradient(145deg,color-mix(in srgb,var(--tenant-primary) 8%,rgba(7,15,29,.94)),rgba(5,12,25,.92));border-color:color-mix(in srgb,var(--tenant-primary) 24%,var(--line))}
.favicon-manager-grid{display:grid;grid-template-columns:minmax(260px,.72fr) minmax(320px,1.28fr);gap:1rem;align-items:stretch}
.favicon-preview-card{display:flex;align-items:center;gap:1rem;padding:1rem;border:1px solid var(--line);border-radius:18px;background:rgba(2,9,20,.62);min-width:0}
.favicon-preview-card img,.favicon-empty{flex:0 0 82px;width:82px;height:82px;border-radius:20px;border:1px solid color-mix(in srgb,var(--tenant-primary) 30%,var(--line));background:rgba(255,255,255,.04);box-shadow:0 16px 34px rgba(0,0,0,.25)}
.favicon-preview-card img{object-fit:contain;padding:8px}
.favicon-empty{display:grid;place-items:center;color:var(--tenant-primary);font-size:2rem}
.favicon-preview-card>div:last-child{display:grid;gap:.3rem;min-width:0}
.favicon-preview-card strong{color:var(--text)}
.favicon-preview-card span{color:var(--muted);font-size:.88rem;overflow-wrap:anywhere}
.favicon-actions{display:flex;flex-direction:column;justify-content:center;gap:.75rem;padding:1rem;border:1px solid var(--line);border-radius:18px;background:rgba(2,9,20,.48)}
.favicon-upload-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.85rem;align-items:end}
.favicon-upload-form label{display:grid;gap:.45rem}
.favicon-upload-form input[type=file]{padding:.72rem;border:1px dashed color-mix(in srgb,var(--tenant-primary) 38%,var(--line));border-radius:12px;background:rgba(2,9,20,.68)}
.favicon-tip{margin-top:1rem;padding:.9rem 1rem;border-left:3px solid var(--tenant-accent);background:color-mix(in srgb,var(--tenant-accent) 7%,transparent);border-radius:0 12px 12px 0}
.favicon-tip strong{color:var(--text)}
.favicon-tip p{margin:.3rem 0 0;color:var(--muted)}
.generate-favicon[disabled]{opacity:.65;cursor:wait}
@media(max-width:900px){.backup-download-card{grid-template-columns:1fr;align-items:start}.backup-download-card .btn{justify-self:start}.favicon-manager-grid{grid-template-columns:1fr}.restore-option-grid{grid-template-columns:1fr}}
@media(max-width:640px){.restore-form{grid-template-columns:1fr}.restore-form .wide{grid-column:auto}.favicon-upload-form{grid-template-columns:1fr}.favicon-upload-form .btn{width:100%}.favicon-preview-card img,.favicon-empty{flex-basis:66px;width:66px;height:66px;border-radius:16px}.restore-history-list article{grid-template-columns:1fr}.restore-history-list article small{justify-self:start}}

/* Stage 34 layered background studio */
body:not(.cms-admin){position:relative;isolation:isolate}
.tenant-background-stack{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none;background:transparent}
.tenant-background-stack .tenant-bg-media-layer{position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.tenant-background-stack .tenant-bg-image{background-position:center;background-size:cover;background-repeat:no-repeat;transform:scale(1.002)}
.tenant-background-stack .tenant-bg-video{filter:none}
.tenant-background-stack .tenant-bg-overlay{position:absolute;inset:0;z-index:1;opacity:var(--tenant-bg-overlay-opacity,.48);pointer-events:none}
.tenant-background-stack #tenant-plexus{position:absolute;inset:0;z-index:2;width:100%;height:100%;opacity:var(--tenant-bg-animation-opacity,.68)!important;pointer-events:none}
body.background-mode-media-only .tenant-background-stack #tenant-plexus,
body.bg-animation-none .tenant-background-stack #tenant-plexus{display:none}
body.background-mode-animation-only .tenant-background-stack .tenant-bg-media-layer,
body.background-mode-animation-only .tenant-background-stack .tenant-bg-overlay{display:none}
body.background-overlay-none .tenant-background-stack .tenant-bg-overlay{display:none}
body.background-overlay-dark .tenant-background-stack .tenant-bg-overlay{background:#020617}
body.background-overlay-theme .tenant-background-stack .tenant-bg-overlay{background:linear-gradient(135deg,color-mix(in srgb,var(--tenant-primary) 48%,#020617),color-mix(in srgb,var(--tenant-accent) 34%,#020617))}
body.background-overlay-gradient .tenant-background-stack .tenant-bg-overlay{background:linear-gradient(120deg,rgba(2,6,23,.94),rgba(2,6,23,.42) 48%,rgba(2,6,23,.82))}
body.background-overlay-light .tenant-background-stack .tenant-bg-overlay{background:linear-gradient(135deg,rgba(255,255,255,.82),rgba(241,245,249,.54))}
body.background-mode-media-only,
body.background-mode-media-animation{background:transparent}
body:not(.cms-admin)>.site-header,
body:not(.cms-admin)>.site-main,
body:not(.cms-admin)>footer{position:relative;z-index:1}
body:not(.cms-admin)>.back-to-top{position:fixed;z-index:1400}
body.background-mode-animation-only.contrast-light .tenant-background-stack #tenant-plexus{opacity:min(var(--tenant-bg-animation-opacity,.68),.34)!important}
@media(prefers-reduced-motion:reduce){
  .tenant-background-stack .tenant-bg-video{display:none}
  body.background-mode-media-animation .tenant-background-stack #tenant-plexus{display:none}
}

.background-layer-guide{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(250px,.65fr);gap:20px;align-items:center;margin:0 0 24px;padding:22px;border:1px solid color-mix(in srgb,var(--tenant-accent) 26%,var(--line));border-radius:22px;background:linear-gradient(145deg,rgba(34,211,238,.07),rgba(8,15,30,.84))}
.background-layer-guide h3{margin:.2rem 0 .7rem;font-size:clamp(1.2rem,2vw,1.55rem)}
.background-layer-guide p{margin:.25rem 0}
.background-layer-status{display:grid;gap:8px;padding:16px;border:1px solid var(--line);border-radius:18px;background:rgba(3,8,18,.58);min-width:0}
.background-layer-status span{color:var(--muted);font-size:.8rem;text-transform:uppercase;letter-spacing:.1em;font-weight:800}
.background-layer-status strong{overflow-wrap:anywhere;color:var(--text)}
.background-layer-status .btn{justify-self:start;margin-top:4px}
.range-control>span{display:grid;grid-template-columns:minmax(0,1fr) 54px;gap:12px;align-items:center}
.range-control input[type="range"]{padding:0;min-height:34px;accent-color:var(--tenant-accent);background:transparent;border:0}
.range-control output{display:grid;place-items:center;min-height:36px;border:1px solid var(--line);border-radius:10px;background:rgba(2,8,18,.72);color:var(--text);font-weight:800;font-variant-numeric:tabular-nums}
.range-control small{color:var(--muted);line-height:1.5;font-weight:500}
.background-preview-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}
.background-preview-actions form{display:inline-flex;margin:0}
.designer-preview::before{opacity:var(--preview-overlay-opacity,.48)}
.designer-preview[data-background-mode="media-animation"]{background-image:linear-gradient(145deg,rgba(13,24,48,var(--preview-overlay-opacity,.48)),rgba(4,11,24,.78)),radial-gradient(circle at 78% 20%,color-mix(in srgb,var(--preview-accent) 24%,transparent),transparent 34%),linear-gradient(135deg,#17253d,#07111f)}
.designer-preview[data-background-mode="media-only"]{background-image:linear-gradient(145deg,rgba(13,24,48,var(--preview-overlay-opacity,.48)),rgba(4,11,24,var(--preview-overlay-opacity,.48))),linear-gradient(135deg,#293a52,#0c1828)}
.designer-preview[data-background-mode="animation-only"]{background-image:radial-gradient(circle at 78% 20%,color-mix(in srgb,var(--preview-accent) 24%,transparent),transparent 34%),linear-gradient(135deg,#07111f,#101c33)}
@media(max-width:820px){.background-layer-guide{grid-template-columns:1fr}}
@media(max-width:640px){.background-layer-guide{padding:18px;border-radius:18px}.range-control>span{grid-template-columns:minmax(0,1fr) 50px}}

/* Stage 35 layered animation visibility fix */
body.background-mode-media-animation .tenant-background-stack{
  background:transparent;
}
body.background-mode-media-animation .tenant-background-stack::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  opacity:calc(var(--tenant-bg-animation-opacity,.68) * .16);
  background:
    radial-gradient(circle at 18% 16%,color-mix(in srgb,var(--tenant-primary) 42%,transparent),transparent 34%),
    radial-gradient(circle at 82% 22%,color-mix(in srgb,var(--tenant-accent) 34%,transparent),transparent 36%);
  mix-blend-mode:screen;
}
body.background-mode-media-animation .tenant-background-stack #tenant-plexus{
  display:block !important;
  z-index:3;
  opacity:var(--tenant-bg-animation-opacity,.68) !important;
  mix-blend-mode:screen;
  filter:saturate(1.3) brightness(1.34) contrast(1.06);
  transform:translateZ(0);
  will-change:contents;
}
body.background-mode-media-animation.background-overlay-light .tenant-background-stack #tenant-plexus{
  mix-blend-mode:multiply;
  filter:saturate(1.4) contrast(1.22) brightness(.88);
}
body.background-mode-media-animation .tenant-background-stack .tenant-bg-overlay{
  z-index:1;
}
body.background-mode-media-animation .tenant-background-stack .tenant-bg-media-layer{
  z-index:0;
}
@media(prefers-reduced-motion:reduce){
  /* The selected background animation remains active; other interface transitions still reduce normally. */
  body.background-mode-media-animation .tenant-background-stack #tenant-plexus{
    display:block !important;
  }
}


/* Stage 37: lock every back-to-top control to the right viewport edge and keep layered backgrounds from changing fixed positioning. */
body:not(.cms-admin) > .back-to-top{
  position:fixed !important;
  z-index:1400 !important;
  left:auto !important;
  margin:0 !important;
}
body.back-to-top-position-bottom-right:not(.cms-admin) > .back-to-top,
body.back-to-top-position-bottom-left:not(.cms-admin) > .back-to-top,
body.back-to-top-position-bottom-centre:not(.cms-admin) > .back-to-top{
  right:clamp(18px,2.4vw,36px) !important;
  bottom:calc(clamp(18px,2.4vw,34px) + env(safe-area-inset-bottom,0px)) !important;
  top:auto !important;
}
body.back-to-top-position-middle-right:not(.cms-admin) > .back-to-top,
body.back-to-top-position-middle-left:not(.cms-admin) > .back-to-top{
  right:clamp(10px,1.4vw,22px) !important;
  left:auto !important;
  top:50% !important;
  bottom:auto !important;
}
@media(max-width:760px){
  body:not(.cms-admin) > .back-to-top,
  body.back-to-top-position-middle-right:not(.cms-admin) > .back-to-top,
  body.back-to-top-position-middle-left:not(.cms-admin) > .back-to-top{
    right:16px !important;
    left:auto !important;
    top:auto !important;
    bottom:calc(16px + env(safe-area-inset-bottom,0px)) !important;
  }
}
/* Stage 37 middle-right controls remain vertically centred while entering and hovering. */
body.back-to-top-position-middle-right:not(.cms-admin) > .back-to-top,
body.back-to-top-position-middle-left:not(.cms-admin) > .back-to-top{
  transform:translate(24px,-50%) !important;
}
body.back-to-top-position-middle-right.back-to-top-motion-scale-pop:not(.cms-admin) > .back-to-top,
body.back-to-top-position-middle-left.back-to-top-motion-scale-pop:not(.cms-admin) > .back-to-top{
  transform:translate(0,-50%) scale(.72) !important;
}
body.back-to-top-position-middle-right:not(.cms-admin) > .back-to-top.is-visible,
body.back-to-top-position-middle-left:not(.cms-admin) > .back-to-top.is-visible,
body.back-to-top-position-middle-right.back-to-top-visibility-always:not(.cms-admin) > .back-to-top,
body.back-to-top-position-middle-left.back-to-top-visibility-always:not(.cms-admin) > .back-to-top{
  transform:translate(0,-50%) scale(1) !important;
}
body.back-to-top-position-middle-right:not(.cms-admin) > .back-to-top.is-visible:hover,
body.back-to-top-position-middle-left:not(.cms-admin) > .back-to-top.is-visible:hover{
  transform:translate(-3px,-50%) scale(1) !important;
}
@media(max-width:760px){
  body.back-to-top-position-middle-right:not(.cms-admin) > .back-to-top,
  body.back-to-top-position-middle-left:not(.cms-admin) > .back-to-top{
    transform:translateY(20px) !important;
  }
  body.back-to-top-position-middle-right:not(.cms-admin) > .back-to-top.is-visible,
  body.back-to-top-position-middle-left:not(.cms-admin) > .back-to-top.is-visible,
  body.back-to-top-position-middle-right.back-to-top-visibility-always:not(.cms-admin) > .back-to-top,
  body.back-to-top-position-middle-left.back-to-top-visibility-always:not(.cms-admin) > .back-to-top{
    transform:none !important;
  }
}

/* Stage 39: diagnostics and visual page builder */
.module-type-announcement{padding:0!important;margin:0!important;position:relative;z-index:45;overflow:visible}
.module-type-announcement .module-inner{width:100%;max-width:none}
.module-type-announcement .module-announcement{display:flex;align-items:center;justify-content:center;gap:clamp(14px,2vw,28px);min-height:52px;padding:10px clamp(18px,4vw,64px);background:linear-gradient(100deg,color-mix(in srgb,var(--tenant-primary) 26%,#06101f),color-mix(in srgb,var(--tenant-accent) 18%,#07101f));border-block:1px solid color-mix(in srgb,var(--tenant-primary) 28%,rgba(255,255,255,.08));box-shadow:0 12px 34px rgba(0,0,0,.18)}
.module-announcement-copy{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.55rem 1rem;color:#f7fbff;line-height:1.45;text-align:center}
.module-announcement-copy strong{color:#fff;font-size:1.02rem}.module-announcement-copy>span:not(.module-announcement-kicker){color:#d6e4f1}
.module-announcement-kicker{display:inline-flex;padding:.28rem .55rem;border-radius:999px;background:color-mix(in srgb,var(--tenant-primary) 20%,rgba(255,255,255,.05));color:color-mix(in srgb,var(--tenant-primary) 78%,#fff);font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.module-type-announcement .btn{min-height:38px;padding:.55rem .9rem;font-size:.82rem;white-space:nowrap}
@media(max-width:700px){.module-type-announcement .module-announcement{align-items:stretch;flex-direction:column;padding:12px 18px}.module-announcement-copy{flex-direction:column;gap:.3rem}.module-type-announcement .btn{align-self:center}}

@media(min-width:1025px){.module-hide-desktop{display:none!important}}
@media(min-width:641px) and (max-width:1024px){.module-hide-tablet{display:none!important}}
@media(max-width:640px){.module-hide-mobile{display:none!important}}

.visual-builder-section{overflow:visible}.visual-builder-board{display:grid;gap:1.25rem;margin-top:1.1rem}.builder-target{display:grid;gap:1rem}.builder-target-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;padding:1rem 1.1rem;border:1px solid rgba(93,169,226,.18);background:rgba(5,15,29,.62)}.builder-target-heading h3{margin:.15rem 0 0;font-size:1.45rem}.builder-target-heading>span{color:#95b9d6;font-weight:700}.builder-lanes{display:grid;gap:1rem}.builder-lane{min-height:116px;padding:.85rem;border:1px solid rgba(84,153,206,.2);background:linear-gradient(155deg,rgba(3,12,25,.76),rgba(7,17,32,.54));transition:border-color .2s ease,background .2s ease,box-shadow .2s ease}.builder-lane.is-drag-over{border-color:#57c7ff;background:rgba(24,94,142,.18);box-shadow:0 0 0 2px rgba(87,199,255,.12),inset 0 0 28px rgba(20,149,224,.08)}.builder-lane-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.72rem;color:#d7e6f4}.builder-lane-heading strong{font-size:.92rem}.builder-lane-heading span{display:grid;place-items:center;min-width:25px;height:25px;border-radius:50%;background:rgba(80,173,238,.12);color:#8dd8ff;font-size:.78rem;font-weight:800}.builder-items{display:grid;gap:.68rem}.builder-empty{padding:1.1rem;border:1px dashed rgba(100,170,220,.24);color:#7597b4;text-align:center;font-size:.85rem}.builder-card{grid-template-columns:auto auto minmax(0,1fr) auto!important;gap:.72rem!important;padding:.8rem!important;cursor:grab}.builder-card.is-dragging{opacity:.45;cursor:grabbing}.builder-drag-handle{align-self:stretch;width:30px;border:0;background:transparent;color:#7195b1;font-size:1.1rem;cursor:grab}.builder-card .module-admin-icon{width:38px;height:38px}.builder-card h4{margin:0;color:#f6fbff;font-size:1rem}.builder-card .module-admin-summary p{margin:.25rem 0}.builder-card .module-admin-summary small{display:block;color:#829fba}.builder-more{position:relative}.builder-more>summary{list-style:none;cursor:pointer}.builder-more>summary::-webkit-details-marker{display:none}.builder-more-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:40;width:min(330px,80vw);display:grid;gap:.7rem;padding:.85rem;border:1px solid rgba(80,174,238,.34);background:#071323;box-shadow:0 22px 54px rgba(0,0,0,.42)}.builder-more-panel form{display:grid;gap:.5rem}.builder-more-panel label{display:grid;gap:.35rem;color:#bcd1e4;font-size:.78rem;font-weight:700}.builder-more-panel input,.builder-more-panel select{min-height:40px;padding:.55rem .65rem}.section-library .library-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem}.library-card{display:grid;align-content:start;gap:.9rem;padding:1.1rem;border:1px solid rgba(82,160,218,.22);background:linear-gradient(145deg,rgba(6,18,34,.85),rgba(3,11,22,.72))}.library-card h3{margin:.2rem 0}.library-add-form{display:grid;gap:.55rem}.library-add-form label{display:grid;gap:.35rem;color:#bfd1e1;font-size:.8rem;font-weight:700}.device-visibility-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}.device-visibility-grid .check-row{min-height:52px;justify-content:center;border:1px solid rgba(89,163,217,.22);background:rgba(7,18,34,.56)}
.builder-editor-layout{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(340px,.92fr);gap:1.25rem;align-items:start}.builder-live-preview{position:sticky;top:92px;min-width:0;padding:1rem;border:1px solid rgba(80,170,232,.24);background:linear-gradient(150deg,rgba(4,14,29,.94),rgba(7,20,37,.86));box-shadow:0 22px 58px rgba(0,0,0,.25)}.builder-preview-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.builder-preview-heading h3{margin:.15rem 0 .45rem}.builder-preview-frame{overflow:hidden;border:1px solid rgba(80,170,232,.28);background:#020713;box-shadow:inset 0 0 0 1px rgba(255,255,255,.03)}.builder-preview-frame iframe{display:block;width:1440px;height:900px;border:0;transform:scale(.36);transform-origin:top left}.builder-preview-frame{height:324px}.builder-live-preview>.small:last-child{margin-bottom:0;color:#82a8c4}

.diagnostic-overall{display:grid;gap:.25rem;min-width:160px;padding:1rem 1.2rem;border:1px solid rgba(90,170,224,.22);text-align:right}.diagnostic-overall strong{font-size:1.15rem}.diagnostic-overall span{color:#8aa8c0;font-size:.75rem}.diagnostic-pass{border-color:rgba(72,211,150,.36)!important}.diagnostic-pass .diagnostic-icon,.diagnostic-pass .diagnostic-check-head span,.diagnostic-pass>strong{color:#66e3ad}.diagnostic-warn{border-color:rgba(250,190,70,.38)!important}.diagnostic-warn .diagnostic-icon,.diagnostic-warn .diagnostic-check-head span,.diagnostic-warn>strong{color:#ffd16e}.diagnostic-fail{border-color:rgba(255,91,109,.46)!important}.diagnostic-fail .diagnostic-icon,.diagnostic-fail .diagnostic-check-head span,.diagnostic-fail>strong{color:#ff7f91}.diagnostic-info .diagnostic-icon,.diagnostic-info .diagnostic-check-head span{color:#7fd7ff}.diagnostic-summary-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.75rem;margin:1.2rem 0}.diagnostic-summary-grid article{display:grid;gap:.3rem;padding:1rem;border:1px solid rgba(88,159,211,.2);background:rgba(5,16,30,.62)}.diagnostic-summary-grid strong{color:#f6fbff;font-size:1.35rem}.diagnostic-summary-grid span{color:#8daac2;font-size:.78rem}.diagnostic-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem 1rem;margin:0}.diagnostic-meta div{min-width:0;padding:.75rem;border:1px solid rgba(80,150,205,.16);background:rgba(4,13,26,.45)}.diagnostic-meta dt{margin-bottom:.35rem;color:#83a3bd;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.diagnostic-meta dd{margin:0;color:#e7f2fb;overflow-wrap:anywhere}.diagnostic-list{display:grid;gap:.7rem}.diagnostic-check{display:grid;grid-template-columns:38px minmax(0,1fr);gap:.75rem;padding:.9rem 1rem;border:1px solid rgba(87,158,210,.18);background:rgba(5,15,29,.62)}.diagnostic-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.04);font-weight:900}.diagnostic-check-head{display:flex;align-items:center;justify-content:space-between;gap:1rem}.diagnostic-check h3{margin:0;color:#f4f9ff;font-size:.98rem}.diagnostic-check-head span{font-size:.7rem;font-weight:900;letter-spacing:.1em}.diagnostic-check p{margin:.3rem 0;color:#b6cada;overflow-wrap:anywhere}.diagnostic-check small{display:block;color:#7f9eb7;line-height:1.5}

@media(max-width:1120px){.builder-editor-layout{grid-template-columns:1fr}.builder-live-preview{position:relative;top:auto}.diagnostic-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.builder-target-heading{align-items:flex-start;flex-direction:column}.builder-card{grid-template-columns:auto auto minmax(0,1fr)!important}.builder-card .module-admin-actions{grid-column:1/-1;padding-left:0}.builder-more-panel{position:fixed;inset:auto 12px 12px;width:auto;max-height:75vh;overflow:auto}.device-visibility-grid,.diagnostic-meta{grid-template-columns:1fr}.diagnostic-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.diagnostic-check-head{align-items:flex-start;flex-direction:column;gap:.25rem}.builder-preview-frame iframe{transform:scale(.24)}.builder-preview-frame{height:216px}}

/* Stage 40: revisions, staging and rollback administration. */
.staging-preview-bar{
  position:sticky;top:0;z-index:10000;display:flex;align-items:center;justify-content:center;gap:14px;
  min-height:44px;padding:9px 18px;border-bottom:1px solid rgba(125,211,252,.34);
  background:linear-gradient(90deg,rgba(2,12,27,.98),rgba(8,30,55,.98),rgba(2,12,27,.98));
  color:#eaf8ff;box-shadow:0 12px 30px rgba(0,0,0,.24);font-size:.9rem
}
.staging-preview-bar strong{color:#7dd3fc;letter-spacing:.08em;text-transform:uppercase;font-size:.78rem}
.staging-preview-bar span{color:#c7d9ea}.staging-preview-bar a{color:#fff;font-weight:800;text-decoration:none;border:1px solid rgba(125,211,252,.36);padding:6px 10px;border-radius:9px;background:rgba(14,116,144,.18)}
.staging-preview-active .site-header{top:44px}
.revision-admin-page{display:grid;gap:24px}
.revision-status-card{min-width:260px;padding:18px 20px;border:1px solid rgba(125,211,252,.24);border-radius:18px;background:rgba(3,12,26,.72);box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.revision-status-card strong,.revision-status-card span{display:block}.revision-status-card strong{font-size:.82rem;letter-spacing:.12em}.revision-status-card span{margin-top:7px;color:#a8bfd3;font-size:.82rem;line-height:1.5}.revision-status-card.is-staging{border-color:rgba(250,204,21,.34);background:linear-gradient(145deg,rgba(250,204,21,.10),rgba(3,12,26,.82))}.revision-status-card.is-staging strong{color:#fde68a}.revision-status-card.is-live strong{color:#86efac}
.revision-stage-panel{border-color:rgba(56,189,248,.28)!important;background:linear-gradient(145deg,rgba(14,116,144,.10),rgba(3,12,26,.88))!important}
.revision-stage-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:start}.revision-stage-head h2{margin:.15rem 0 .45rem}.revision-stage-counts{display:grid;grid-template-columns:repeat(3,minmax(100px,1fr));gap:10px}.revision-stage-counts span{display:grid;place-items:center;min-height:82px;padding:12px;border:1px solid rgba(125,211,252,.16);border-radius:14px;background:rgba(2,10,22,.62);color:#9fb5c9;text-align:center;font-size:.78rem}.revision-stage-counts strong{display:block;color:#f8fbff;font-size:1.6rem;line-height:1}
.revision-stage-panel .actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:20px}.revision-stage-panel .actions form{margin:0}.revision-danger-zone{margin-top:18px;border:1px solid rgba(248,113,113,.22);border-radius:14px;background:rgba(127,29,29,.08);padding:14px 16px}.revision-danger-zone summary{cursor:pointer;color:#fecaca;font-weight:800}.revision-danger-zone .stack-form{max-width:540px;margin-top:14px}
.revision-section-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.65fr);gap:28px;align-items:end}.revision-snapshot-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}.revision-snapshot-form label{margin:0}.revision-snapshot-form .btn{white-space:nowrap}
.revision-list{display:grid;gap:12px;margin-top:18px}.revision-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:center;padding:18px 20px;border:1px solid rgba(125,211,252,.16);border-radius:16px;background:linear-gradient(145deg,rgba(4,15,31,.86),rgba(2,9,20,.72));box-shadow:inset 0 1px 0 rgba(255,255,255,.035)}.revision-card:hover{border-color:rgba(125,211,252,.32)}.revision-card p{margin:.35rem 0;color:#91a9bf;font-size:.84rem}.revision-card-title{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.revision-card-title strong{color:#f7fbff;font-size:1rem}.revision-kind{display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border-radius:999px;border:1px solid rgba(125,211,252,.2);background:rgba(14,116,144,.12);color:#bae6fd;font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.revision-kind-rollback{border-color:rgba(248,113,113,.28);background:rgba(127,29,29,.15);color:#fecaca}.revision-kind-publish{border-color:rgba(74,222,128,.28);background:rgba(20,83,45,.16);color:#bbf7d0}.revision-kind-automatic{color:#c4b5fd;border-color:rgba(167,139,250,.28);background:rgba(76,29,149,.13)}.revision-metrics{display:flex;flex-wrap:wrap;gap:7px}.revision-metrics span{padding:5px 8px;border:1px solid rgba(148,163,184,.14);border-radius:8px;background:rgba(15,23,42,.52);color:#b8c9d8;font-size:.72rem}.revision-card .row-actions{justify-content:flex-end}
.revision-inspector{border-color:rgba(167,139,250,.24)!important}.revision-restore-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}.revision-restore-card{padding:20px;border:1px solid rgba(125,211,252,.18);border-radius:16px;background:rgba(2,10,22,.58)}.revision-restore-card.danger{border-color:rgba(248,113,113,.2);background:rgba(127,29,29,.07)}.revision-restore-card h3{margin:0 0 .4rem}.revision-restore-card .stack-form{margin-top:16px}.revision-diff{margin-top:22px}.revision-diff table{table-layout:fixed}.revision-diff th:first-child,.revision-diff td:first-child{width:30%}.revision-diff td{vertical-align:top;overflow-wrap:anywhere;white-space:pre-wrap}.revision-diff-added td{background:rgba(20,83,45,.08)}.revision-diff-removed td{background:rgba(127,29,29,.08)}.revision-diff-changed td{background:rgba(120,53,15,.06)}
@media(max-width:1000px){.revision-stage-head,.revision-section-heading{grid-template-columns:1fr}.revision-stage-counts{grid-template-columns:repeat(3,1fr)}.revision-snapshot-form{grid-template-columns:1fr auto}.revision-restore-grid{grid-template-columns:1fr}.revision-status-card{min-width:0}}
@media(max-width:700px){.staging-preview-bar{position:relative;top:auto;flex-wrap:wrap;justify-content:flex-start}.staging-preview-active .site-header{top:0}.revision-stage-counts{grid-template-columns:1fr}.revision-snapshot-form{grid-template-columns:1fr}.revision-card{grid-template-columns:1fr}.revision-card .row-actions{justify-content:flex-start}.revision-diff th:first-child,.revision-diff td:first-child{width:auto}.revision-diff table{min-width:760px}}

/* Stage 41: expanded template catalogue, favourites, device previews and portable design presets. */
.template-filter-panel{display:grid;grid-template-columns:minmax(250px,1.7fr) repeat(5,minmax(145px,.72fr)) auto;gap:12px;align-items:end;margin-top:20px;padding:16px;border:1px solid rgba(148,190,219,.15);border-radius:16px;background:rgba(255,255,255,.025)}
.template-filter-panel label{display:grid;gap:7px;color:#cfe2ef;font-size:.78rem;font-weight:800}.template-filter-panel input,.template-filter-panel select{width:100%;min-width:0}.template-search-wide{min-width:0}.catalogue-counts,.template-results-row,.theme-card-badges,.template-feature-list,.theme-preview-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.catalogue-counts span{display:inline-flex;padding:7px 10px;border:1px solid rgba(34,211,238,.18);border-radius:999px;background:rgba(34,211,238,.07);color:#c9f8ff;font-size:.76rem;font-weight:800}.template-results-row{justify-content:space-between;margin:16px 2px;color:#a9c1d1;font-size:.82rem}.template-results-row strong{color:#eef9ff}.template-catalogue-grid{margin-top:0}.theme-preview-rich{height:220px}.preview-browser-bar{display:flex;gap:5px;align-items:center;height:18px;margin-bottom:13px}.preview-browser-bar i{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.3)}.preview-browser-bar i:first-child{background:var(--swatch-primary)}.preview-browser-bar i:nth-child(2){background:var(--swatch-accent)}.preview-browser-bar span{height:7px;flex:1;margin-left:6px;border-radius:999px;background:rgba(255,255,255,.09)}.template-preview-launch{position:absolute;inset:0;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:0;background:linear-gradient(180deg,transparent 20%,rgba(1,7,17,.78));color:#fff;opacity:0;cursor:pointer;transition:opacity .22s ease,background .22s ease}.template-preview-launch span{font-size:1.04rem;font-weight:900}.template-preview-launch b{color:#b9d8e8;font-size:.72rem;font-weight:750}.theme-preview-rich:hover .template-preview-launch,.theme-preview-rich:focus-within .template-preview-launch{opacity:1}.template-favourite{width:36px;height:36px;border:1px solid rgba(148,190,219,.18);border-radius:10px;background:rgba(255,255,255,.035);color:#7691a3;font-size:1.1rem;cursor:pointer;transition:transform .16s,border-color .16s,color .16s,background .16s}.template-favourite:hover{transform:translateY(-1px);border-color:rgba(247,201,72,.5);color:#f7c948}.template-favourite.is-favourite{color:#f7c948;background:rgba(247,201,72,.12);border-color:rgba(247,201,72,.38);box-shadow:0 0 20px rgba(247,201,72,.08)}.favourite-form{margin:0}.template-feature-list{gap:6px}.template-feature-list span{padding:5px 8px;border:1px solid rgba(34,211,238,.16);border-radius:8px;background:rgba(34,211,238,.055);color:#bfeef5;font-size:.69rem;font-weight:750}.theme-preview-actions{margin-top:auto}.theme-preview-actions .btn{width:100%}.portable-design-section{overflow:hidden}.portable-theme-import{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:14px;align-items:end;margin-top:18px}.portable-theme-import label{display:grid;gap:7px;font-weight:800;color:#d9eaf4}.portable-theme-import input[type=file]{width:100%}.portable-design-note{margin-bottom:0}.template-preview-open{overflow:hidden}.template-preview-modal{position:fixed;inset:0;z-index:9999;padding:20px;background:rgba(0,4,12,.88);backdrop-filter:blur(14px);overflow:auto}.template-preview-modal[hidden]{display:none}.template-preview-dialog{width:min(1500px,100%);min-height:calc(100vh - 40px);margin:auto;border:1px solid rgba(148,190,219,.22);border-radius:22px;background:linear-gradient(180deg,#081321,#050b15);box-shadow:0 34px 100px rgba(0,0,0,.55);overflow:hidden}.template-preview-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:18px 20px;border-bottom:1px solid rgba(148,190,219,.14);background:rgba(8,18,32,.96)}.template-preview-dialog h2{margin:.1em 0 0}.template-preview-close{width:42px;height:42px;border:1px solid rgba(148,190,219,.2);border-radius:12px;background:#0d1b2d;color:#fff;font-size:1.7rem;line-height:1;cursor:pointer}.template-device-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:12px 18px;border-bottom:1px solid rgba(148,190,219,.12);background:#07101d}.template-device-toolbar button{min-height:38px;padding:8px 13px;border:1px solid rgba(148,190,219,.18);border-radius:9px;background:#0c1a2b;color:#bdd0dc;font-weight:800;cursor:pointer}.template-device-toolbar button.is-active{background:linear-gradient(135deg,#0ea5e9,#22d3ee);color:#03111d;border-color:transparent}.template-device-toolbar .btn{margin-left:auto}.template-preview-stage{min-height:calc(100vh - 180px);padding:22px;display:flex;justify-content:center;align-items:flex-start;background:radial-gradient(circle at 50% 0,rgba(34,211,238,.07),transparent 32%),#020711;overflow:auto}.template-preview-device{width:100%;height:calc(100vh - 220px);min-height:620px;border:1px solid rgba(148,190,219,.22);border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 26px 70px rgba(0,0,0,.45);transition:width .24s ease}.template-preview-stage[data-device="tablet"] .template-preview-device{width:820px}.template-preview-stage[data-device="mobile"] .template-preview-device{width:390px}.template-preview-device iframe{width:100%;height:100%;border:0;display:block;background:#050914}
@media(max-width:1260px){.template-filter-panel{grid-template-columns:repeat(3,minmax(0,1fr))}.template-search-wide{grid-column:span 2}.template-filter-panel .btn{width:100%}}
@media(max-width:820px){.template-filter-panel{grid-template-columns:1fr 1fr}.template-search-wide{grid-column:1/-1}.portable-theme-import{grid-template-columns:1fr}.template-preview-modal{padding:8px}.template-preview-dialog{min-height:calc(100vh - 16px);border-radius:15px}.template-preview-stage{padding:10px}.template-preview-device{height:calc(100vh - 200px);min-height:520px}.template-device-toolbar .btn{margin-left:0}}
@media(max-width:560px){.template-filter-panel{grid-template-columns:1fr}.template-search-wide{grid-column:auto}.template-results-row{align-items:flex-start;flex-direction:column}.theme-preview-rich{height:190px}.template-preview-launch{opacity:1;background:linear-gradient(180deg,transparent 40%,rgba(1,7,17,.76))}.template-preview-launch span{margin-top:auto;margin-bottom:18px}.template-preview-launch b{display:none}.template-preview-dialog>header{padding:14px}.template-device-toolbar{padding:10px}.template-preview-stage[data-device="tablet"] .template-preview-device,.template-preview-stage[data-device="mobile"] .template-preview-device{width:100%}}

/* Stage 42 AI workflow polish */
.ai-field-toolbar{display:flex;align-items:center;justify-content:flex-end;margin-top:7px;min-height:30px}
.ai-field-button{appearance:none;border:1px solid color-mix(in srgb,var(--tenant-primary,#22d3ee) 46%,rgba(255,255,255,.18));background:linear-gradient(135deg,rgba(11,31,59,.92),rgba(5,15,34,.94));color:#eaf8ff;border-radius:999px;padding:6px 11px;font:700 12px/1.1 var(--body-font,system-ui);letter-spacing:.02em;cursor:pointer;box-shadow:0 8px 22px rgba(0,0,0,.18);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.ai-field-button span{display:inline-grid;place-items:center;width:20px;height:20px;margin-right:5px;border-radius:50%;background:linear-gradient(135deg,var(--tenant-primary,#22d3ee),var(--tenant-accent,#a855f7));color:#07101d;font-size:10px}
.ai-field-button:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--tenant-primary,#22d3ee) 78%,#fff);box-shadow:0 12px 28px color-mix(in srgb,var(--tenant-primary,#22d3ee) 16%,transparent)}
.ai-assist-dialog{width:min(680px,calc(100vw - 30px));max-height:min(86vh,780px);padding:0;border:1px solid rgba(86,180,255,.32);border-radius:22px;background:#07111f;color:#edf8ff;box-shadow:0 36px 100px rgba(0,0,0,.58);overflow:hidden}
.ai-assist-dialog::backdrop{background:rgba(1,5,13,.76);backdrop-filter:blur(5px)}
.ai-assist-card{display:flex;flex-direction:column;max-height:inherit;margin:0}
.ai-assist-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 22px;border-bottom:1px solid rgba(112,186,244,.18);background:linear-gradient(135deg,rgba(17,45,80,.78),rgba(8,19,38,.92))}
.ai-assist-head>div{display:flex;align-items:center;gap:12px}.ai-assist-head strong{display:block;font-size:1.05rem}.ai-assist-head small{display:block;margin-top:3px;color:#a8bdd4}
.ai-spark{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,var(--tenant-primary,#22d3ee),var(--tenant-accent,#a855f7));color:#06101d;font-weight:900;box-shadow:0 10px 28px color-mix(in srgb,var(--tenant-primary,#22d3ee) 25%,transparent)}
.ai-dialog-close{appearance:none;border:0;background:transparent;color:#dcecff;font-size:30px;line-height:1;cursor:pointer;padding:5px}
.ai-assist-body{display:grid;gap:15px;padding:22px;overflow:auto}.ai-assist-body label{display:grid;gap:7px;color:#dcecff;font-weight:750}.ai-assist-body select,.ai-assist-body textarea{width:100%;border:1px solid rgba(112,186,244,.24);background:#030b18;color:#f5fbff;border-radius:12px;padding:11px 13px;font:inherit}.ai-assist-body textarea[readonly]{background:rgba(3,11,24,.74);min-height:180px;line-height:1.6}.ai-assist-status{margin:0;padding:10px 12px;border-radius:10px;background:rgba(52,211,153,.08);border:1px solid rgba(52,211,153,.16);color:#c9f6e5;font-size:.9rem}
.ai-assist-actions{display:flex;flex-wrap:wrap;gap:10px;padding:17px 22px;border-top:1px solid rgba(112,186,244,.16);background:rgba(2,8,18,.82)}
.ai-usage-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}.ai-usage-card{padding:18px;border:1px solid rgba(95,178,239,.18);border-radius:16px;background:linear-gradient(145deg,rgba(9,26,49,.84),rgba(4,13,28,.82))}.ai-usage-card strong{display:block;font-size:clamp(1.35rem,2.5vw,2rem);color:#fff}.ai-usage-card span{display:block;margin-top:5px;color:#a9c0d8;font-size:.86rem}.ai-permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;margin-top:10px}.ai-permission-grid label{display:flex;align-items:flex-start;gap:8px;font-weight:600}.ai-permission-grid input{margin-top:3px}.ai-alt-panel{display:grid;gap:9px;margin-top:12px;padding-top:12px;border-top:1px solid rgba(104,182,240,.14)}.ai-alt-panel textarea{min-height:72px;resize:vertical}.ai-alt-actions{display:flex;flex-wrap:wrap;gap:8px}.media-card .ai-alt-status{font-size:.78rem;color:#aac5dd;line-height:1.4}.media-card .ai-alt-status.is-set{color:#baf3df}
@media(max-width:850px){.ai-usage-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.ai-permission-grid{grid-template-columns:1fr}}
@media(max-width:560px){.ai-assist-head,.ai-assist-body,.ai-assist-actions{padding-left:16px;padding-right:16px}.ai-usage-cards{grid-template-columns:1fr}.ai-assist-actions .btn{flex:1 1 auto}}

/* Stage 43: tenant operations, quotas, scheduled backups and security history. */
.operations-panel{display:grid;gap:22px}.operations-runtime-chip{min-width:250px;padding:15px 18px;border:1px solid rgba(34,211,238,.22);border-radius:15px;background:linear-gradient(145deg,rgba(8,31,55,.88),rgba(3,13,28,.82));box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}.operations-runtime-chip strong,.operations-runtime-chip span{display:block}.operations-runtime-chip strong{color:#dffbff;font-size:.78rem;overflow-wrap:anywhere}.operations-runtime-chip span{margin-top:5px;color:#87a9bc;font-size:.78rem}.operations-health-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.operation-metric{padding:18px;border:1px solid rgba(112,186,244,.17);border-radius:17px;background:linear-gradient(145deg,rgba(8,25,47,.9),rgba(3,12,27,.86));box-shadow:0 18px 46px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.035)}.operation-metric strong{display:block;color:#f7fbff;font-size:clamp(1.3rem,2.8vw,2rem);line-height:1.05;text-transform:none;overflow-wrap:anywhere}.operation-metric span{display:block;margin-top:8px;color:#cde3ef;font-weight:800}.operation-metric small{display:block;margin-top:5px;color:#829eb1;line-height:1.45}.quota-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.quota-grid article{padding:18px;border:1px solid rgba(112,186,244,.15);border-radius:15px;background:rgba(3,13,28,.62)}.quota-copy{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}.quota-copy strong{color:#eff9ff}.quota-copy span{color:#9fb9ca;font-size:.82rem}.quota-bar{height:10px;border-radius:999px;background:rgba(255,255,255,.07);overflow:hidden;box-shadow:inset 0 1px 3px rgba(0,0,0,.35)}.quota-bar span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#0ea5e9,#22d3ee 55%,#34d399);box-shadow:0 0 18px rgba(34,211,238,.3)}.operations-settings-form .form-grid{margin-top:18px}.cron-url-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;margin:16px 0 8px}.cron-url-row code{display:block;min-width:0;padding:13px 14px;border:1px solid rgba(112,186,244,.18);border-radius:11px;background:#020914;color:#bfefff;overflow:auto;white-space:nowrap}.latest-backup{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-top:16px;padding:13px 15px;border:1px solid rgba(52,211,153,.18);border-radius:12px;background:rgba(6,78,59,.09)}.latest-backup strong{color:#d9fff2;overflow-wrap:anywhere}.latest-backup span{color:#8eb8aa;font-size:.82rem}.verify-backup-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}.verify-backup-form label{margin:0}.operations-table-wrap{overflow:auto;border:1px solid rgba(112,186,244,.14);border-radius:14px}.operations-table{width:100%;border-collapse:collapse;min-width:720px}.operations-table th,.operations-table td{padding:12px 14px;text-align:left;border-bottom:1px solid rgba(112,186,244,.1);vertical-align:top}.operations-table th{background:rgba(12,32,56,.88);color:#dff5ff;font-size:.75rem;text-transform:uppercase;letter-spacing:.08em}.operations-table td{color:#b6cbd9;font-size:.84rem}.operations-table tr:last-child td{border-bottom:0}.operations-table code{color:#d6f8ff}.operations-log-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.operations-log-list{display:grid;gap:10px;max-height:760px;overflow:auto;padding-right:4px}.operations-log-row{padding:14px 15px;border:1px solid rgba(112,186,244,.14);border-left:3px solid rgba(112,186,244,.42);border-radius:12px;background:rgba(2,11,24,.64)}.operations-log-row.status-success,.operations-log-row.status-completed{border-left-color:#34d399}.operations-log-row.status-failed,.operations-log-row.status-blocked{border-left-color:#fb7185}.operations-log-row.status-warning{border-left-color:#fbbf24}.operations-log-row>div{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.operations-log-row strong{color:#eefaff}.operations-log-row span{color:#7693a7;font-size:.72rem;white-space:nowrap}.operations-log-row p{margin:.45rem 0;color:#a9bfce;font-size:.83rem;line-height:1.5}.operations-log-row small{color:#718ba0;font-size:.72rem}.maintenance-dashboard-notice{border-color:rgba(251,191,36,.28)!important;background:rgba(120,53,15,.13)!important;color:#fde7b0!important}.maintenance-dashboard-notice a{color:#fff1bf}.diagnostic-meta .diagnostic-pass{color:#bbf7d0}.diagnostic-meta .diagnostic-warn{color:#fde68a}.diagnostic-meta .diagnostic-fail{color:#fecaca}
@media(max-width:1050px){.operations-health-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.operations-log-grid{grid-template-columns:1fr}}
@media(max-width:760px){.operations-health-grid,.quota-grid{grid-template-columns:1fr}.operations-runtime-chip{min-width:0;width:100%}.cron-url-row,.verify-backup-form{grid-template-columns:1fr}.cron-url-row .btn,.verify-backup-form .btn{width:100%}.latest-backup,.quota-copy,.operations-log-row>div{align-items:flex-start;flex-direction:column}.operations-table{min-width:620px}}

/* Stage 45: accessibility, SEO-quality administration and resilient focus treatment. */
.skip-link{position:fixed;z-index:100000;top:12px;left:12px;padding:12px 16px;border:2px solid var(--tenant-accent,#22d3ee);border-radius:10px;background:#07111f;color:#fff;font-weight:800;text-decoration:none;transform:translateY(-180%);transition:transform .18s ease;box-shadow:0 12px 36px rgba(0,0,0,.36)}
.skip-link:focus{transform:translateY(0)}
#main-content:focus{outline:none}
:where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid color-mix(in srgb,var(--tenant-accent,#22d3ee) 88%,#fff);outline-offset:3px}
.not-found-hero{min-height:min(680px,82vh);display:flex;flex-direction:column;justify-content:center}
.not-found-hero .lead{max-width:720px}
.quality-summary-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
.quality-settings-form{display:grid;gap:22px}
.redirect-add-form{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(260px,1.4fr) minmax(180px,.55fr) auto;gap:14px;align-items:end;margin:18px 0 24px}
.redirect-add-form label{display:grid;gap:7px;font-weight:800}
.redirect-add-form input,.redirect-add-form select{width:100%}
.redirect-table{display:grid;border:1px solid var(--admin-line,rgba(100,180,230,.22));border-radius:16px;overflow:hidden}
.redirect-row{display:grid;grid-template-columns:minmax(180px,.8fr) 90px minmax(220px,1.4fr) 110px;gap:14px;align-items:center;padding:14px 16px;border-top:1px solid var(--admin-line,rgba(100,180,230,.16));min-width:0}
.redirect-row:first-child{border-top:0}.redirect-head{background:rgba(55,145,215,.09);color:#cbe0f5;font-size:.8rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.redirect-row code,.redirect-row span{min-width:0;overflow-wrap:anywhere}.redirect-row form{margin:0}.redirect-row .btn{min-height:42px;padding:.65rem .85rem}
@media(max-width:1100px){.quality-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.redirect-add-form{grid-template-columns:1fr 1fr}.redirect-add-form .btn{justify-self:start}.redirect-row{grid-template-columns:minmax(140px,.75fr) 80px minmax(180px,1fr) 100px}}
@media(max-width:720px){.quality-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.redirect-add-form{grid-template-columns:1fr}.redirect-row,.redirect-head{grid-template-columns:1fr}.redirect-head{display:none}.redirect-row{gap:8px;padding:16px}.redirect-row code::before{content:"Source: ";color:#92a9c1}.redirect-row strong::before{content:"Status: ";color:#92a9c1}.redirect-row span::before{content:"Destination: ";color:#92a9c1}}
@media(prefers-reduced-motion:reduce){.skip-link{transition:none}}

/* Stage 46: deployment management and operating guide. */
.deployment-panel,.guide-panel{display:grid;gap:22px}
.deployment-version-chip{min-width:min(100%,290px);padding:18px 20px;border:1px solid rgba(89,190,255,.28);border-radius:16px;background:linear-gradient(145deg,rgba(8,29,54,.92),rgba(4,13,28,.9));box-shadow:0 18px 44px rgba(0,0,0,.24)}
.deployment-version-chip strong{display:block;color:#f4fbff;font-size:1rem;overflow-wrap:anywhere}.deployment-version-chip span{display:block;margin-top:6px;color:#9fb5ca;font-size:.84rem}.deployment-version-chip.is-current{border-color:rgba(52,211,153,.38)}.deployment-version-chip.has-problem{border-color:rgba(248,113,113,.5);background:linear-gradient(145deg,rgba(64,14,24,.88),rgba(19,8,19,.92))}
.deployment-update-notice{border-color:rgba(250,204,21,.34)!important;background:rgba(250,204,21,.08)!important}
.deployment-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.deployment-metrics article{min-width:0;padding:20px;border:1px solid rgba(82,173,235,.2);border-radius:16px;background:rgba(3,14,29,.72)}.deployment-metrics strong{display:block;color:#fff;font-size:clamp(1.35rem,2.4vw,2rem);overflow-wrap:anywhere}.deployment-metrics span{display:block;margin-top:7px;color:#d9e8f5;font-weight:800}.deployment-metrics small{display:block;margin-top:7px;color:#8fa7bd;line-height:1.45}
.deployment-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.deployment-action-card{position:relative;min-width:0;padding:24px;border:1px solid rgba(82,173,235,.22);border-radius:18px;background:linear-gradient(150deg,rgba(8,27,50,.84),rgba(3,12,26,.78));box-shadow:0 20px 50px rgba(0,0,0,.2)}.deployment-action-card h3{margin:10px 0 8px}.deployment-action-card p{color:#aebfd1;line-height:1.6}.deployment-action-card .step-number{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;background:rgba(57,189,244,.12);border:1px solid rgba(57,189,244,.38);color:#75d9ff;font-weight:900}.deployment-action-card .btn{margin-top:12px}.deployment-action-card button:disabled{opacity:.46;cursor:not-allowed;transform:none!important}
.runtime-drift-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.runtime-drift-grid>div{padding:18px;border:1px solid rgba(248,113,113,.25);border-radius:14px;background:rgba(80,14,27,.16)}.runtime-drift-grid h3{margin-top:0}.runtime-drift-grid ul{margin:0;padding-left:20px}.runtime-drift-grid li+li{margin-top:7px}.runtime-drift-grid code{overflow-wrap:anywhere}
.deployment-history-list{display:grid;gap:10px}.deployment-history-row{padding:16px 18px;border:1px solid rgba(82,173,235,.18);border-left:3px solid #4cc9f0;border-radius:12px;background:rgba(3,14,29,.62)}.deployment-history-row.status-success{border-left-color:#34d399}.deployment-history-row.status-warning{border-left-color:#facc15}.deployment-history-row.status-failed{border-left-color:#fb7185}.deployment-history-row>div{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.deployment-history-row strong{color:#fff}.deployment-history-row span,.deployment-history-row small{color:#8fa7bd}.deployment-history-row p{margin:.5rem 0;color:#c2d2e2}
.guide-jump{position:sticky;top:72px;z-index:4;display:flex;flex-wrap:wrap;gap:8px;padding:12px;border:1px solid rgba(82,173,235,.2);border-radius:14px;background:rgba(3,12,25,.94);backdrop-filter:blur(14px)}.guide-jump a{padding:8px 11px;border:1px solid rgba(82,173,235,.18);border-radius:9px;color:#cfeaff;text-decoration:none;font-weight:750;font-size:.85rem}.guide-jump a:hover,.guide-jump a:focus-visible{border-color:#55d3ff;background:rgba(57,189,244,.1)}
.guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.guide-card{position:relative;margin:0!important;scroll-margin-top:150px;overflow:hidden}.guide-card .guide-number{position:absolute;right:18px;top:12px;color:rgba(93,215,255,.14);font-size:3.4rem;font-weight:950;line-height:1}.guide-card h2{padding-right:54px}.guide-card ul,.guide-card ol{margin:16px 0 0;padding-left:22px;color:#b8cadb;line-height:1.68}.guide-card li+li{margin-top:7px}.guide-card .text-link{display:inline-flex;margin-top:18px;color:#67d7ff;font-weight:800;text-decoration:none}.guide-card .text-link:hover{text-decoration:underline}
@media(max-width:1000px){.deployment-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.guide-grid{grid-template-columns:1fr}}
@media(max-width:720px){.deployment-metrics,.deployment-action-grid,.runtime-drift-grid{grid-template-columns:1fr}.deployment-history-row>div{display:grid;gap:4px}.guide-jump{position:static}.deployment-version-chip{width:100%}}
@media print{.cms-admin .admin-topbar,.guide-jump,.guide-panel>.page-title-row .actions{display:none!important}.cms-admin{background:#fff!important;color:#111!important}.admin-editor,.panel{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;background:#fff!important;border:0!important;box-shadow:none!important}.guide-grid{display:block}.guide-card{break-inside:avoid;margin:0 0 18px!important;border:1px solid #bbb!important;background:#fff!important;color:#111!important}.guide-card h2,.guide-card strong{color:#111!important}.guide-card ul,.guide-card ol,.guide-card p{color:#333!important}}

/* Stage 47: original Node 22 premium template suite. */
body[data-template^="premium-"]{
  --premium-line:color-mix(in srgb,var(--tenant-primary) 26%,transparent);
  --premium-soft:color-mix(in srgb,var(--tenant-primary) 10%,transparent);
  --premium-accent-soft:color-mix(in srgb,var(--tenant-accent) 13%,transparent);
  --premium-shadow:0 30px 90px rgba(0,0,0,.24);
  --premium-section-space:clamp(88px,11vw,168px);
  overflow-x:hidden;
}
body[data-template^="premium-"] .site-main{position:relative;isolation:isolate}
body[data-template^="premium-"] .site-header{border-bottom:1px solid var(--premium-line);backdrop-filter:blur(22px) saturate(135%)}
body[data-template^="premium-"] .site-header .brand{font-weight:900;letter-spacing:-.035em}
body[data-template^="premium-"] .hero{min-height:min(920px,94vh);display:flex;flex-direction:column;justify-content:center;padding-block:clamp(110px,16vh,190px) clamp(90px,11vh,150px)}
body[data-template^="premium-"] .hero h1{max-width:16ch;font-size:clamp(3.4rem,9vw,9.8rem);line-height:.9;letter-spacing:-.075em;text-wrap:balance}
body[data-template^="premium-"] .hero .lead{max-width:740px;font-size:clamp(1.05rem,1.7vw,1.42rem);line-height:1.7}
body[data-template^="premium-"] .section,
body[data-template^="premium-"] .content-module{scroll-margin-top:100px}
body[data-template^="premium-"] .section{padding-block:var(--premium-section-space)}
body[data-template^="premium-"] .section-heading h2,
body[data-template^="premium-"] .module-heading h2{max-width:18ch;font-size:clamp(2.25rem,5vw,5.6rem);line-height:.98;letter-spacing:-.055em;text-wrap:balance}
body[data-template^="premium-"] .eyebrow{letter-spacing:.16em;font-weight:850}
body[data-template^="premium-"] .module-feature-card,
body[data-template^="premium-"] .module-testimonial,
body[data-template^="premium-"] .module-stat,
body[data-template^="premium-"] .card{position:relative;overflow:hidden}
body[data-template^="premium-"] .module-feature-card a{display:inline-flex;align-items:center;gap:.45rem;margin-top:auto;font-weight:850;text-decoration:none}
body[data-template^="premium-"] .premium-control{
  appearance:none;border:1px solid var(--premium-line);background:color-mix(in srgb,var(--tenant-primary) 7%,transparent);color:inherit;
  border-radius:999px;padding:.72rem 1rem;font:inherit;font-weight:850;cursor:pointer;transition:transform .2s ease,border-color .2s ease,background .2s ease
}
body[data-template^="premium-"] .premium-control:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--tenant-accent) 62%,transparent)}
.premium-dialog{width:min(900px,calc(100vw - 32px));max-height:min(820px,calc(100vh - 32px));padding:0;border:1px solid color-mix(in srgb,var(--tenant-accent) 38%,transparent);border-radius:24px;background:#07101d;color:#f7fbff;box-shadow:0 40px 140px rgba(0,0,0,.66);overflow:hidden}
.premium-dialog::backdrop{background:rgba(1,6,14,.74);backdrop-filter:blur(9px)}
.premium-dialog-shell{display:grid;max-height:inherit}.premium-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px;border-bottom:1px solid rgba(255,255,255,.12)}
.premium-dialog-head h2{margin:0;font-size:1.2rem}.premium-dialog-close{display:grid;place-items:center;width:42px;height:42px;border:1px solid rgba(255,255,255,.18);border-radius:50%;background:transparent;color:#fff;font-size:1.55rem;cursor:pointer}
.premium-dialog-body{overflow:auto;padding:clamp(20px,4vw,46px)}
.premium-kicker{margin:0 0 .7rem;color:var(--tenant-accent);font-size:.72rem;font-weight:900;letter-spacing:.16em;text-transform:uppercase}
.premium-sr-status{position:fixed;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Kinetic Bureau — expressive studio / agency. */
body[data-template="premium-kinetic-bureau"]{background:#090909;color:#f5f1e9}
body[data-template="premium-kinetic-bureau"] .tenant-background-stack{opacity:.52;mix-blend-mode:screen}
body[data-template="premium-kinetic-bureau"] .site-header{background:rgba(9,9,9,.78)}
body[data-template="premium-kinetic-bureau"] .brand-mark{border-radius:0;transform:rotate(-7deg)}
body[data-template="premium-kinetic-bureau"] .hero{align-items:flex-start;border-bottom:1px solid rgba(255,255,255,.18)}
body[data-template="premium-kinetic-bureau"] .hero::after{content:"SCROLL / EXPLORE";position:absolute;right:clamp(18px,4vw,64px);bottom:34px;font-size:.68rem;font-weight:900;letter-spacing:.19em;writing-mode:vertical-rl;color:rgba(255,255,255,.55)}
body[data-template="premium-kinetic-bureau"] .hero h1{text-transform:uppercase;max-width:11ch;font-size:clamp(4rem,12vw,12rem);line-height:.78;letter-spacing:-.095em}
body[data-template="premium-kinetic-bureau"] .hero h1::first-line{color:var(--tenant-primary)}
body[data-template="premium-kinetic-bureau"] .hero-actions .btn{border-radius:0;text-transform:uppercase;letter-spacing:.09em}
body[data-template="premium-kinetic-bureau"] #services .card-grid{display:block;border-top:1px solid rgba(255,255,255,.24)}
body[data-template="premium-kinetic-bureau"] #services .card{display:grid;grid-template-columns:minmax(110px,.25fr) minmax(220px,.85fr) minmax(260px,1.35fr) 42px;align-items:center;gap:24px;min-height:150px;padding:28px 4px;border:0;border-bottom:1px solid rgba(255,255,255,.2);border-radius:0;background:transparent;box-shadow:none}
body[data-template="premium-kinetic-bureau"] #services .card::before{content:attr(data-premium-index);font:900 .78rem/1 monospace;letter-spacing:.1em;color:var(--tenant-primary)}
body[data-template="premium-kinetic-bureau"] #services .card::after{content:"↗";font-size:1.5rem;transition:transform .22s ease}
body[data-template="premium-kinetic-bureau"] #services .card:hover::after{transform:translate(5px,-5px)}
body[data-template="premium-kinetic-bureau"] #services .card h3{margin:0;font-size:clamp(1.4rem,3vw,3.25rem);line-height:1;text-transform:uppercase}
body[data-template="premium-kinetic-bureau"] #services .card p{margin:0;max-width:58ch;color:rgba(255,255,255,.68)}
body[data-template="premium-kinetic-bureau"] .module-feature-grid{gap:0;border-top:1px solid rgba(255,255,255,.22)}
body[data-template="premium-kinetic-bureau"] .module-feature-card{min-height:330px;border-radius:0;border-width:0 1px 1px 0;background:linear-gradient(155deg,rgba(255,255,255,.035),transparent);box-shadow:none}
body[data-template="premium-kinetic-bureau"] .module-feature-card h3{font-size:clamp(1.35rem,2.4vw,2.65rem);text-transform:uppercase}
body[data-template="premium-kinetic-bureau"] .split{grid-template-columns:1.25fr .75fr;border-block:1px solid rgba(255,255,255,.18)}
.premium-cursor-hud{position:fixed;z-index:90;left:0;top:0;pointer-events:none;transform:translate(16px,16px);display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid rgba(255,255,255,.22);background:rgba(9,9,9,.74);backdrop-filter:blur(12px);font:700 10px/1 monospace;letter-spacing:.08em;color:#fff;opacity:0;transition:opacity .18s ease}
.premium-cursor-hud.is-visible{opacity:1}.premium-cursor-hud i{width:7px;height:7px;border-radius:50%;background:var(--tenant-primary);box-shadow:0 0 16px var(--tenant-primary)}

/* Signal Intelligence — data-led SaaS platform. */
body[data-template="premium-signal-intelligence"]{background:#f5f7ff;color:#11142a}
body[data-template="premium-signal-intelligence"] .tenant-background-stack{opacity:.54}
body[data-template="premium-signal-intelligence"] .site-header{background:rgba(247,249,255,.78);border-color:rgba(44,50,95,.13)}
body[data-template="premium-signal-intelligence"] .hero{min-height:880px;text-align:center;align-items:center}
body[data-template="premium-signal-intelligence"] .hero h1{max-width:12ch;background:linear-gradient(118deg,#15172e 10%,var(--tenant-primary) 56%,var(--tenant-accent));-webkit-background-clip:text;background-clip:text;color:transparent}
body[data-template="premium-signal-intelligence"] .hero::before{content:"";position:absolute;z-index:-1;width:min(900px,88vw);aspect-ratio:1.8;top:14%;left:50%;translate:-50% 0;border-radius:50%;background:radial-gradient(circle at 38% 44%,color-mix(in srgb,var(--tenant-primary) 28%,transparent),transparent 48%),radial-gradient(circle at 68% 55%,color-mix(in srgb,var(--tenant-accent) 26%,transparent),transparent 45%);filter:blur(18px)}
body[data-template="premium-signal-intelligence"] .section,
body[data-template="premium-signal-intelligence"] .content-module{position:relative}
body[data-template="premium-signal-intelligence"] #services .card-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
body[data-template="premium-signal-intelligence"] #services .card{min-height:320px;padding:34px;border:1px solid rgba(56,62,120,.13);background:rgba(255,255,255,.76);box-shadow:0 22px 70px rgba(72,69,160,.11)}
body[data-template="premium-signal-intelligence"] #services .card::before{content:attr(data-premium-index);display:grid;place-items:center;width:46px;height:46px;margin-bottom:52px;border-radius:14px;background:linear-gradient(135deg,var(--tenant-primary),var(--tenant-accent));color:#fff;font:850 .76rem/1 monospace}
body[data-template="premium-signal-intelligence"] .module-stats{padding:22px;border:1px solid rgba(66,72,132,.12);border-radius:28px;background:rgba(255,255,255,.7);box-shadow:0 30px 80px rgba(64,61,149,.1)}
body[data-template="premium-signal-intelligence"] .module-stat{border:0;background:transparent;box-shadow:none}
body[data-template="premium-signal-intelligence"] .module-stat strong{background:linear-gradient(120deg,var(--tenant-primary),var(--tenant-accent));-webkit-background-clip:text;background-clip:text;color:transparent}
.premium-narrative-rail{position:fixed;z-index:30;right:18px;top:50%;translate:0 -50%;display:grid;gap:10px;padding:12px 8px;border:1px solid rgba(65,72,132,.16);border-radius:999px;background:rgba(255,255,255,.74);backdrop-filter:blur(16px);box-shadow:0 20px 50px rgba(69,63,151,.14)}
.premium-narrative-rail button{display:grid;place-items:center;width:30px;height:30px;border:0;border-radius:50%;background:transparent;color:#656b8e;font:800 .66rem/1 monospace;cursor:pointer}
.premium-narrative-rail button.is-active{background:var(--tenant-primary);color:#fff;box-shadow:0 8px 20px color-mix(in srgb,var(--tenant-primary) 34%,transparent)}

/* Atelier Commerce — refined premium retail. */
body[data-template="premium-atelier-commerce"]{background:#f3f0e8;color:#171714}
body[data-template="premium-atelier-commerce"] .tenant-background-stack{display:none}
body[data-template="premium-atelier-commerce"] .site-header{background:rgba(243,240,232,.88);border-color:rgba(23,23,20,.16)}
body[data-template="premium-atelier-commerce"] .site-header .brand{font-family:Georgia,serif;font-weight:500;letter-spacing:.11em;text-transform:uppercase}
body[data-template="premium-atelier-commerce"] .hero{min-height:calc(100vh - 78px);align-items:flex-start;justify-content:flex-end;padding-bottom:clamp(70px,10vh,120px);background:linear-gradient(90deg,rgba(20,20,18,.86),rgba(20,20,18,.24)),radial-gradient(circle at 80% 30%,#8b8d83,#343731 62%,#181a17);color:#fff}
body[data-template="premium-atelier-commerce"] .hero h1{max-width:10ch;font-family:Georgia,serif;font-weight:400;font-size:clamp(4rem,9vw,9.5rem);line-height:.88}
body[data-template="premium-atelier-commerce"] .hero .lead{max-width:520px;color:rgba(255,255,255,.75)}
body[data-template="premium-atelier-commerce"] .btn{border-radius:0;text-transform:uppercase;letter-spacing:.09em;font-size:.75rem}
body[data-template="premium-atelier-commerce"] #services .card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:rgba(23,23,20,.17)}
body[data-template="premium-atelier-commerce"] #services .card{min-height:520px;padding:clamp(28px,5vw,62px);display:flex;flex-direction:column;justify-content:flex-end;border:0;border-radius:0;background:linear-gradient(180deg,transparent 34%,rgba(15,15,13,.88)),linear-gradient(145deg,#bbb9af,#595b54);color:#fff;box-shadow:none}
body[data-template="premium-atelier-commerce"] #services .card:nth-child(2n){background:linear-gradient(180deg,transparent 34%,rgba(15,15,13,.88)),linear-gradient(145deg,#d7d1c4,#767268)}
body[data-template="premium-atelier-commerce"] #services .card h3{font-family:Georgia,serif;font-weight:400;font-size:clamp(2rem,4vw,4rem)}
body[data-template="premium-atelier-commerce"] .module-feature-grid{gap:1px;background:rgba(23,23,20,.17)}
body[data-template="premium-atelier-commerce"] .module-feature-card{min-height:380px;border:0;border-radius:0;background:#ebe7dd;box-shadow:none}
body[data-template="premium-atelier-commerce"] .module-feature-card h3{font-family:Georgia,serif;font-weight:400;font-size:clamp(1.8rem,3vw,3.2rem)}
.premium-quick-view{position:absolute;right:18px;top:18px;z-index:3;background:rgba(243,240,232,.92)!important;color:#171714!important;border-color:rgba(23,23,20,.18)!important}
.premium-product-detail{display:grid;grid-template-columns:minmax(240px,.9fr) minmax(280px,1fr);gap:clamp(26px,5vw,64px);align-items:center}.premium-product-visual{min-height:360px;background:linear-gradient(145deg,#d6d0c4,#817d73);display:grid;place-items:center;font-family:Georgia,serif;font-size:clamp(3rem,9vw,8rem);color:rgba(255,255,255,.74)}
.premium-product-copy h3{font-family:Georgia,serif;font-size:clamp(2rem,5vw,4.8rem);font-weight:400;margin:.2rem 0 1rem}.premium-product-copy p{color:#cbd0da;line-height:1.75}

/* Object Journal — quiet designer portfolio. */
body[data-template="premium-object-journal"]{background:#e9e7df;color:#181817}
body[data-template="premium-object-journal"] .tenant-background-stack{display:none}
body[data-template="premium-object-journal"] .site-header{background:rgba(233,231,223,.88);border-color:rgba(24,24,23,.14)}
body[data-template="premium-object-journal"] .site-header .brand{font-family:Georgia,serif;font-weight:400}
body[data-template="premium-object-journal"] .hero{min-height:72vh;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(240px,.55fr);align-items:end;gap:50px;border-bottom:1px solid rgba(24,24,23,.18)}
body[data-template="premium-object-journal"] .hero h1{font-family:Georgia,serif;font-weight:400;font-size:clamp(4rem,10vw,10rem);max-width:9ch}
body[data-template="premium-object-journal"] .hero .lead{align-self:end;max-width:420px}
body[data-template="premium-object-journal"] #services .card-grid{display:block;border-top:1px solid rgba(24,24,23,.18)}
body[data-template="premium-object-journal"] #services .card{display:grid;grid-template-columns:90px minmax(220px,.8fr) minmax(260px,1fr);gap:32px;padding:26px 0;border:0;border-bottom:1px solid rgba(24,24,23,.18);border-radius:0;background:transparent;box-shadow:none}
body[data-template="premium-object-journal"] #services .card::before{content:attr(data-premium-index);font:700 .72rem/1 monospace;color:rgba(24,24,23,.55)}
body[data-template="premium-object-journal"] #services .card h3{font-family:Georgia,serif;font-weight:400;font-size:clamp(1.5rem,3vw,3rem);margin:0}
body[data-template="premium-object-journal"] #services .card p{margin:0;color:rgba(24,24,23,.62)}
body[data-template="premium-object-journal"] .module-feature-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:18px;padding:0 max(18px,calc((100vw - 1440px)/2));scrollbar-width:thin}
body[data-template="premium-object-journal"] .module-feature-card{flex:0 0 min(72vw,760px);min-height:540px;scroll-snap-align:center;border-radius:0;border:1px solid rgba(24,24,23,.16);background:linear-gradient(145deg,#d9d6cd,#b8b4a9);box-shadow:none;display:flex;flex-direction:column;justify-content:flex-end}
body[data-template="premium-object-journal"] .module-feature-card h3{font-family:Georgia,serif;font-weight:400;font-size:clamp(2.2rem,5vw,5.4rem);max-width:10ch}
.premium-rail-controls{display:flex;justify-content:flex-end;gap:8px;margin:0 auto 18px;max-width:1440px;padding:0 24px}.premium-rail-controls button{width:48px;height:48px;padding:0;border-radius:50%}

/* Trail Collective — outdoor performance and product storytelling. */
body[data-template="premium-trail-collective"]{background:#151a13;color:#f3f1e8}
body[data-template="premium-trail-collective"] .site-header{background:rgba(21,26,19,.82)}
body[data-template="premium-trail-collective"] .hero{min-height:94vh;justify-content:flex-end;background:linear-gradient(180deg,rgba(11,14,10,.08),rgba(11,14,10,.88)),linear-gradient(118deg,#778057,#303a26 50%,#11160f);border-bottom:1px solid rgba(255,255,255,.15)}
body[data-template="premium-trail-collective"] .hero h1{text-transform:uppercase;max-width:10ch;font-size:clamp(4.3rem,11vw,11rem);line-height:.81}
body[data-template="premium-trail-collective"] .hero .lead{max-width:620px;color:rgba(255,255,255,.73)}
body[data-template="premium-trail-collective"] .btn{border-radius:2px;text-transform:uppercase;letter-spacing:.08em;font-size:.76rem}
body[data-template="premium-trail-collective"] .section:nth-of-type(even),
body[data-template="premium-trail-collective"] .content-module:nth-of-type(even){background:color-mix(in srgb,var(--tenant-primary) 10%,#11160f)}
body[data-template="premium-trail-collective"] #services .card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
body[data-template="premium-trail-collective"] #services .card{min-height:430px;padding:36px;border-radius:2px;border:1px solid rgba(255,255,255,.15);background:linear-gradient(160deg,rgba(255,255,255,.08),rgba(255,255,255,.015));box-shadow:none}
body[data-template="premium-trail-collective"] #services .card h3{text-transform:uppercase;font-size:clamp(2rem,4vw,4.7rem);line-height:.9}
body[data-template="premium-trail-collective"] #services .card::before{content:attr(data-premium-index);display:block;margin-bottom:auto;color:var(--tenant-accent);font:850 .74rem/1 monospace}
body[data-template="premium-trail-collective"] .module-stat strong{font-size:clamp(2.4rem,5vw,5rem)}
.premium-compare-add{position:absolute;right:18px;top:18px;z-index:3}.premium-compare-add[aria-pressed="true"]{background:var(--tenant-accent);color:#10160d;border-color:var(--tenant-accent)}
.premium-compare-tray{position:fixed;z-index:95;left:50%;bottom:20px;translate:-50% 0;width:min(760px,calc(100vw - 32px));display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;border:1px solid rgba(255,255,255,.2);border-radius:3px;background:rgba(14,19,12,.94);backdrop-filter:blur(18px);box-shadow:0 24px 80px rgba(0,0,0,.44);transform:translateY(140%);transition:transform .28s ease}
.premium-compare-tray.is-visible{transform:translateY(0)}.premium-compare-tray strong{font-size:.9rem}.premium-compare-tray span{display:block;color:rgba(255,255,255,.65);font-size:.76rem}.premium-compare-actions{display:flex;gap:8px}
.premium-compare-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid rgba(255,255,255,.13);border-left:1px solid rgba(255,255,255,.13)}.premium-compare-column{padding:24px;border-right:1px solid rgba(255,255,255,.13);border-bottom:1px solid rgba(255,255,255,.13)}.premium-compare-column h3{font-size:1.5rem}.premium-compare-column p{color:#bfc8b8;line-height:1.7}

/* Publisher Studio — editorial, newsletter and membership. */
body[data-template="premium-publisher-studio"]{background:#fffdf7;color:#191918}
body[data-template="premium-publisher-studio"] .tenant-background-stack{display:none}
body[data-template="premium-publisher-studio"] .site-header{background:rgba(255,253,247,.9);border-color:rgba(25,25,24,.14)}
body[data-template="premium-publisher-studio"] .site-header .brand{font-family:Georgia,serif;font-weight:400;font-size:1.25rem}
body[data-template="premium-publisher-studio"] .hero{min-height:760px;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,.55fr);gap:70px;align-items:end;border-bottom:4px solid #191918}
body[data-template="premium-publisher-studio"] .hero h1{font-family:Georgia,serif;font-weight:400;font-size:clamp(4rem,10vw,10.5rem);line-height:.86;max-width:9ch}
body[data-template="premium-publisher-studio"] .hero .lead{max-width:430px;color:rgba(25,25,24,.68)}
body[data-template="premium-publisher-studio"] .section-heading h2,
body[data-template="premium-publisher-studio"] .module-heading h2{font-family:Georgia,serif;font-weight:400}
body[data-template="premium-publisher-studio"] .module-feature-grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:18px}
body[data-template="premium-publisher-studio"] .module-feature-card{grid-column:span 4;min-height:390px;border-radius:0;border:1px solid rgba(25,25,24,.18);background:#fff;box-shadow:none}
body[data-template="premium-publisher-studio"] .module-feature-card:first-child{grid-column:span 8;grid-row:span 2;min-height:798px;background:#191918;color:#fff}
body[data-template="premium-publisher-studio"] .module-feature-card h3{font-family:Georgia,serif;font-size:clamp(1.8rem,3.2vw,3.7rem);font-weight:400;line-height:1.05}
body[data-template="premium-publisher-studio"] .module-feature-card:first-child h3{font-size:clamp(3rem,6vw,6.7rem)}
body[data-template="premium-publisher-studio"] .module-testimonials{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-block:1px solid rgba(25,25,24,.2)}
body[data-template="premium-publisher-studio"] .module-testimonial{border:0;border-right:1px solid rgba(25,25,24,.2);border-radius:0;background:transparent;box-shadow:none}
.premium-reading-progress{position:fixed;z-index:110;left:0;top:0;width:100%;height:3px;background:rgba(25,25,24,.08);pointer-events:none}.premium-reading-progress i{display:block;width:100%;height:100%;background:var(--tenant-primary);transform-origin:left center;transform:scaleX(0)}
.premium-subscribe-bar{position:fixed;z-index:92;left:50%;bottom:20px;translate:-50% 0;width:min(720px,calc(100vw - 32px));display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 15px 13px 20px;border:1px solid rgba(25,25,24,.18);background:rgba(255,253,247,.94);color:#191918;box-shadow:0 22px 70px rgba(25,25,24,.18);backdrop-filter:blur(18px);transform:translateY(150%);transition:transform .28s ease}.premium-subscribe-bar.is-visible{transform:translateY(0)}.premium-subscribe-bar strong{font-family:Georgia,serif}.premium-subscribe-bar .premium-control{color:#fff;background:#191918;border-color:#191918;text-decoration:none}

/* Command Interface — dark productivity and developer tools. */
body[data-template="premium-command-interface"]{background:#070910;color:#f5f7ff}
body[data-template="premium-command-interface"] .site-header{background:rgba(7,9,16,.72);border-color:rgba(166,173,255,.18)}
body[data-template="premium-command-interface"] .hero{text-align:center;align-items:center;min-height:940px}
body[data-template="premium-command-interface"] .hero::before{content:"";position:absolute;z-index:-1;width:min(1050px,92vw);height:700px;top:60px;left:50%;translate:-50% 0;background:radial-gradient(circle at 38% 40%,color-mix(in srgb,var(--tenant-primary) 44%,transparent),transparent 45%),radial-gradient(circle at 68% 54%,color-mix(in srgb,var(--tenant-accent) 34%,transparent),transparent 43%);filter:blur(45px);opacity:.85}
body[data-template="premium-command-interface"] .hero h1{max-width:11ch;background:linear-gradient(120deg,#fff 15%,#c2c7ff 50%,var(--tenant-accent));-webkit-background-clip:text;background-clip:text;color:transparent}
body[data-template="premium-command-interface"] .hero .lead{color:#aeb6cb}
body[data-template="premium-command-interface"] .module-feature-grid{gap:16px}
body[data-template="premium-command-interface"] .module-feature-card,
body[data-template="premium-command-interface"] .card{border:1px solid rgba(174,181,255,.16);background:linear-gradient(150deg,rgba(30,35,58,.72),rgba(12,15,28,.72));box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 30px 80px rgba(0,0,0,.24)}
body[data-template="premium-command-interface"] .module-feature-card::before{content:"⌘";display:grid;place-items:center;width:42px;height:42px;margin-bottom:52px;border:1px solid rgba(255,255,255,.15);border-radius:11px;background:rgba(255,255,255,.045);font:800 1.1rem/1 monospace;color:#d5d8ff}
body[data-template="premium-command-interface"] .module-stat{background:rgba(14,17,30,.78);border:1px solid rgba(174,181,255,.15)}
.site-header .premium-command-trigger{display:inline-flex!important;align-items:center;gap:8px;min-height:38px;padding:.55rem .72rem;border:1px solid rgba(181,186,255,.2);border-radius:10px;background:rgba(255,255,255,.045);color:#e9ebff;font:inherit;font-size:.78rem;cursor:pointer}.site-header .premium-command-trigger:hover,.site-header .premium-command-trigger:focus-visible{border-color:color-mix(in srgb,var(--tenant-accent) 55%,transparent);background:rgba(255,255,255,.085)}.premium-command-trigger kbd{padding:4px 7px;border:1px solid rgba(255,255,255,.16);border-bottom-color:rgba(255,255,255,.3);border-radius:7px;background:rgba(255,255,255,.06);font:750 .68rem/1 monospace;color:inherit}
.command-palette{width:min(720px,calc(100vw - 28px));padding:0;border:1px solid rgba(181,186,255,.25);border-radius:20px;background:rgba(10,13,24,.98);color:#f7f8ff;box-shadow:0 45px 160px rgba(0,0,0,.72);overflow:hidden}.command-palette::backdrop{background:rgba(1,3,9,.7);backdrop-filter:blur(12px)}
.command-palette-search{display:flex;align-items:center;gap:12px;padding:18px 20px;border-bottom:1px solid rgba(255,255,255,.1)}.command-palette-search span{color:#9da5c1;font:800 1.1rem/1 monospace}.command-palette-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:#fff;font:inherit;font-size:1.05rem}.command-palette-search kbd{color:#8d95b3;font:700 .7rem/1 monospace}
.command-palette-list{display:grid;gap:5px;max-height:min(520px,62vh);overflow:auto;padding:10px}.command-palette-item{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;padding:11px 12px;border:0;border-radius:12px;background:transparent;color:#e9ebff;text-align:left;cursor:pointer}.command-palette-item:hover,.command-palette-item.is-active{background:linear-gradient(110deg,color-mix(in srgb,var(--tenant-primary) 24%,transparent),color-mix(in srgb,var(--tenant-accent) 12%,transparent))}.command-palette-item i{display:grid;place-items:center;width:36px;height:36px;border:1px solid rgba(255,255,255,.12);border-radius:9px;background:rgba(255,255,255,.04);font-style:normal}.command-palette-item strong,.command-palette-item span{display:block}.command-palette-item span{margin-top:3px;color:#929bb8;font-size:.75rem}.command-palette-item kbd{color:#929bb8;font:700 .67rem/1 monospace}.command-palette-empty{padding:28px;text-align:center;color:#8e97b4}

/* Catalogue additions. */
.cms-admin .badge-premium{border-color:rgba(244,196,95,.44);background:linear-gradient(135deg,rgba(244,196,95,.2),rgba(183,112,255,.18));color:#ffe7a5;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.cms-admin .theme-card[data-tier="premium"]{border-color:rgba(174,126,255,.3);box-shadow:0 22px 60px rgba(74,36,132,.14),inset 0 1px 0 rgba(255,255,255,.04)}
.cms-admin .theme-card[data-tier="premium"] .theme-preview{background:radial-gradient(circle at 78% 16%,color-mix(in srgb,var(--swatch-accent) 32%,transparent),transparent 40%),linear-gradient(145deg,#080d19,#111a2b)}
.cms-admin .theme-card[data-tier="premium"] .theme-preview::after{content:"PREMIUM EXPERIENCE";position:absolute;right:12px;bottom:10px;color:rgba(255,255,255,.48);font-size:.56rem;font-weight:900;letter-spacing:.16em;pointer-events:none}
.cms-admin .template-filter-panel{grid-template-columns:minmax(230px,1.35fr) repeat(6,minmax(130px,.72fr)) auto}
.cms-admin .theme-preview[data-preview-template="premium-kinetic-bureau"]{background:linear-gradient(120deg,#090909 0 62%,var(--swatch-primary) 62% 69%,#090909 69%)}
.cms-admin .theme-preview[data-preview-template="premium-signal-intelligence"]{background:radial-gradient(circle at 65% 38%,color-mix(in srgb,var(--swatch-accent) 58%,transparent),transparent 30%),linear-gradient(145deg,#f7f8ff,#dadfff)}
.cms-admin .theme-preview[data-preview-template="premium-atelier-commerce"]{background:linear-gradient(90deg,#d8d3c7 0 49.5%,#292a26 49.5% 50.5%,#aaa79f 50.5%)}
.cms-admin .theme-preview[data-preview-template="premium-object-journal"]{background:linear-gradient(135deg,#e9e7df 0 35%,#c4c1b7 35% 70%,#9f9d96 70%)}
.cms-admin .theme-preview[data-preview-template="premium-trail-collective"]{background:linear-gradient(160deg,#7d875e,#26321f 55%,#11170f)}
.cms-admin .theme-preview[data-preview-template="premium-publisher-studio"]{background:linear-gradient(90deg,#fffdf7 0 42%,#1b1b19 42% 66%,#f4f0e5 66%)}
.cms-admin .theme-preview[data-preview-template="premium-command-interface"]{background:radial-gradient(circle at 38% 36%,var(--swatch-primary),transparent 34%),radial-gradient(circle at 72% 62%,var(--swatch-accent),transparent 32%),#070910}

@media(max-width:1180px){
  .cms-admin .template-filter-panel{grid-template-columns:repeat(3,minmax(170px,1fr))}.cms-admin .template-search-wide{grid-column:1/-1}
  body[data-template="premium-signal-intelligence"] #services .card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-template="premium-publisher-studio"] .module-feature-card{grid-column:span 6}body[data-template="premium-publisher-studio"] .module-feature-card:first-child{grid-column:span 12;min-height:620px}
}
@media(max-width:900px){
  body[data-template^="premium-"] .hero{min-height:auto;padding-block:130px 90px}
  body[data-template^="premium-"] .hero h1{font-size:clamp(3.2rem,14vw,7rem)}
  body[data-template="premium-kinetic-bureau"] #services .card,
  body[data-template="premium-object-journal"] #services .card{grid-template-columns:58px 1fr;gap:14px 20px}
  body[data-template="premium-kinetic-bureau"] #services .card p,
  body[data-template="premium-object-journal"] #services .card p{grid-column:2}
  body[data-template="premium-kinetic-bureau"] #services .card::after{display:none}
  body[data-template="premium-signal-intelligence"] #services .card-grid,
  body[data-template="premium-atelier-commerce"] #services .card-grid,
  body[data-template="premium-trail-collective"] #services .card-grid{grid-template-columns:1fr}
  body[data-template="premium-object-journal"] .hero,
  body[data-template="premium-publisher-studio"] .hero{display:flex;align-items:flex-start;gap:25px}
  body[data-template="premium-object-journal"] .module-feature-card{flex-basis:84vw;min-height:460px}
  .premium-narrative-rail{display:none}
  .premium-product-detail{grid-template-columns:1fr}.premium-product-visual{min-height:280px}
}
@media(max-width:720px){
  .cms-admin .template-filter-panel{grid-template-columns:1fr}
  body[data-template^="premium-"]{--premium-section-space:78px}
  body[data-template^="premium-"] .hero{padding-inline:20px}
  body[data-template="premium-kinetic-bureau"] #services .card,
  body[data-template="premium-object-journal"] #services .card{grid-template-columns:1fr;padding-block:24px}
  body[data-template="premium-kinetic-bureau"] #services .card p,
  body[data-template="premium-object-journal"] #services .card p{grid-column:auto}
  body[data-template="premium-kinetic-bureau"] .module-feature-card{min-height:260px}
  body[data-template="premium-atelier-commerce"] #services .card{min-height:390px}
  body[data-template="premium-publisher-studio"] .module-feature-grid{display:grid;grid-template-columns:1fr}
  body[data-template="premium-publisher-studio"] .module-feature-card,
  body[data-template="premium-publisher-studio"] .module-feature-card:first-child{grid-column:auto;min-height:360px}
  body[data-template="premium-publisher-studio"] .module-testimonials{grid-template-columns:1fr}.premium-subscribe-bar{align-items:flex-start;flex-direction:column}.premium-subscribe-bar .premium-control{width:100%;justify-content:center}
  .premium-compare-tray{align-items:flex-start;flex-direction:column}.premium-compare-actions{width:100%}.premium-compare-actions>*{flex:1}.premium-compare-grid{grid-template-columns:1fr}
  .premium-dialog{border-radius:16px}.premium-dialog-body{padding:20px}
}
@media(pointer:coarse){.premium-cursor-hud{display:none}}
@media(prefers-reduced-motion:reduce){
  .premium-cursor-hud,.premium-narrative-rail{display:none!important}
  .premium-compare-tray,.premium-subscribe-bar{transition:none}
  body[data-template^="premium-"] *{scroll-behavior:auto!important}
}

/* Stage 48: premium template preview, purchase and entitlement states */
.template-licence-note{margin:14px 0;padding:12px 14px;border:1px solid color-mix(in srgb,var(--accent) 28%,transparent);background:color-mix(in srgb,var(--accent) 7%,transparent)}.badge-unlocked{border-color:rgba(74,222,128,.48)!important;color:#b9ffd0!important;background:rgba(74,222,128,.10)!important}.badge-locked{border-color:rgba(251,191,36,.45)!important;color:#ffe8a3!important;background:rgba(251,191,36,.09)!important}.theme-preview-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.template-price{display:grid;justify-items:end;color:var(--text);font-weight:850;line-height:1.15}.template-price small{font-size:.7rem;color:var(--muted);font-weight:650}.theme-actions-locked{display:grid!important;grid-template-columns:minmax(180px,auto) 1fr!important;align-items:center;gap:14px!important;border-top:1px solid color-mix(in srgb,var(--accent) 20%,transparent);padding-top:14px}.theme-actions-locked form{margin:0}.theme-actions-locked p{margin:0;font-size:.78rem;color:var(--muted);line-height:1.45}.theme-actions-locked .btn{width:100%;justify-content:center}@media(max-width:700px){.theme-actions-locked{grid-template-columns:1fr!important}.template-price{justify-items:start}.theme-preview-actions{align-items:flex-start;flex-direction:column}}

/* Stage 49: premium template quality overhaul and bespoke motion systems. */
body[data-template^="premium-"]{
  --premium-motion-scale:1;
  --premium-time:1;
  --premium-pointer-x:50%;
  --premium-pointer-y:50%;
  --premium-scroll-progress:0;
  isolation:isolate;
}
body[data-template^="premium-"] .tenant-background-stack #tenant-plexus{display:none!important}
body[data-template^="premium-"]>.site-header,
body[data-template^="premium-"]>.site-main,
body[data-template^="premium-"]>footer,
body[data-template^="premium-"]>.back-to-top{position:relative;z-index:2}
body[data-template^="premium-"]>.site-header{position:sticky}
body[data-template^="premium-"]>.premium-scene{position:fixed;inset:0;z-index:1;overflow:hidden;pointer-events:none;contain:strict}
.premium-scene-canvas{display:block;width:100%;height:100%;opacity:.92}
.premium-scene-texture,.premium-scene-vignette{position:absolute;inset:0;pointer-events:none}
.premium-scene-vignette{background:radial-gradient(circle at var(--premium-pointer-x) var(--premium-pointer-y),transparent 0 18%,rgba(0,0,0,.1) 58%,rgba(0,0,0,.34) 100%);opacity:.55;transition:opacity .25s ease}
body.premium-texture-clean .premium-scene-texture{display:none}
body.premium-texture-fine-grain .premium-scene-texture{opacity:.17;background-image:repeating-radial-gradient(circle at 17% 31%,rgba(255,255,255,.26) 0 .45px,transparent .65px 3px);background-size:4px 4px;mix-blend-mode:soft-light}
body.premium-texture-tactile .premium-scene-texture{opacity:.25;background-image:repeating-linear-gradient(98deg,rgba(255,255,255,.06) 0 1px,transparent 1px 5px),repeating-radial-gradient(circle at 63% 38%,rgba(255,255,255,.16) 0 .6px,transparent .8px 3.5px);background-size:100% 100%,5px 5px;mix-blend-mode:soft-light}
body.premium-motion-subtle{--premium-motion-scale:.58}
body.premium-motion-balanced{--premium-motion-scale:1}
body.premium-motion-cinematic{--premium-motion-scale:1.42}
body.premium-speed-slow{--premium-time:.62}
body.premium-speed-standard{--premium-time:1}
body.premium-speed-fast{--premium-time:1.42}
body.premium-pointer-off .premium-scene-vignette{opacity:.24}
body[data-template^="premium-"] .module-feature-card a,
body[data-template^="premium-"] .card>a{color:inherit}
body[data-template^="premium-"] .module-feature-link,
body[data-template^="premium-"] .service-row-link{
  display:inline-flex;align-items:center;justify-content:space-between;gap:18px;width:max-content;min-width:132px;margin-top:auto;padding:.78rem .9rem .78rem 1rem;
  border:1px solid color-mix(in srgb,currentColor 22%,transparent);border-radius:999px;background:color-mix(in srgb,var(--tenant-primary) 7%,transparent);
  color:inherit!important;text-decoration:none!important;font-size:.75rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase;
  transition:transform .32s cubic-bezier(.2,.78,.22,1),background .32s ease,border-color .32s ease,color .32s ease
}
body[data-template^="premium-"] .module-feature-link i,
body[data-template^="premium-"] .service-row-link i{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:currentColor;color:var(--tenant-button-ink);font-style:normal;font-size:.9rem;transition:transform .32s cubic-bezier(.2,.78,.22,1)}
body[data-template^="premium-"] .module-feature-link:hover,
body[data-template^="premium-"] .service-row-link:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--tenant-primary) 68%,transparent);background:color-mix(in srgb,var(--tenant-primary) 14%,transparent)}
body[data-template^="premium-"] .module-feature-link:hover i,
body[data-template^="premium-"] .service-row-link:hover i{transform:rotate(45deg) scale(1.06)}
body[data-template^="premium-"] .module-feature-link:focus-visible,
body[data-template^="premium-"] .service-row-link:focus-visible{outline:2px solid var(--tenant-accent);outline-offset:4px}

/* Premium preview visual is intentionally template-specific rather than a generic glass card. */
.premium-preview-stage{isolation:isolate;perspective:1200px}
.premium-preview-stage::before,.premium-preview-stage::after{content:none!important}
.premium-preview-grid{position:absolute;inset:0;opacity:.34;background-image:linear-gradient(rgba(255,255,255,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.12) 1px,transparent 1px);background-size:52px 52px;mask-image:linear-gradient(to bottom,black,transparent 90%)}
.premium-preview-panel{position:absolute;border:1px solid color-mix(in srgb,var(--tenant-accent) 38%,rgba(255,255,255,.18));background:linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.025));box-shadow:0 28px 70px rgba(0,0,0,.3);backdrop-filter:blur(14px)}
.premium-preview-panel.panel-a{left:10%;top:17%;width:50%;height:56%;transform:rotateY(8deg) rotateX(3deg)}
.premium-preview-panel.panel-b{right:9%;top:25%;width:31%;height:42%;transform:translateZ(70px) rotateY(-8deg)}
.premium-preview-panel.panel-c{left:29%;bottom:9%;width:43%;height:20%;transform:translateZ(120px)}
.premium-preview-orbit{position:absolute;border:1px solid color-mix(in srgb,var(--tenant-primary) 55%,transparent);border-radius:50%;animation:premium-preview-orbit calc(18s / var(--premium-time)) linear infinite}
.premium-preview-orbit.orbit-a{width:360px;height:360px;right:-80px;top:-120px}
.premium-preview-orbit.orbit-b{width:180px;height:180px;left:-45px;bottom:-65px;animation-direction:reverse;animation-duration:calc(12s / var(--premium-time))}
.premium-preview-label{position:absolute;right:18px;bottom:14px;font:900 .62rem/1 ui-monospace,monospace;letter-spacing:.14em;color:color-mix(in srgb,currentColor 66%,transparent)}
@keyframes premium-preview-orbit{to{transform:rotate(360deg)}}

/* Kinetic Bureau — editorial brutalism with ribbon fields, not geometric-orb reuse. */
body[data-template="premium-kinetic-bureau"]{background:#050505;color:#f7f7f4;--text:#f7f7f4;--muted:#b9b7b4;--line:rgba(255,255,255,.18)}
body[data-template="premium-kinetic-bureau"] .premium-scene-vignette{background:linear-gradient(90deg,rgba(255,77,54,.13),transparent 28%,transparent 72%,rgba(124,92,255,.12)),radial-gradient(circle at var(--premium-pointer-x) var(--premium-pointer-y),rgba(255,255,255,.06),transparent 24%);opacity:.9}
body[data-template="premium-kinetic-bureau"] .site-main{border-inline:1px solid rgba(255,255,255,.1);max-width:calc(100vw - clamp(32px,7vw,128px));margin-inline:auto}
body[data-template="premium-kinetic-bureau"] .site-header{margin:0 clamp(16px,3.5vw,64px);padding:16px 20px;background:rgba(5,5,5,.72);border:1px solid rgba(255,255,255,.13);border-top:0;box-shadow:none}
body[data-template="premium-kinetic-bureau"] .brand-mark{border-radius:50%;box-shadow:none}
body[data-template="premium-kinetic-bureau"] .hero{min-height:100svh;max-width:none;padding-inline:clamp(34px,8vw,142px);overflow:hidden;border-bottom:1px solid rgba(255,255,255,.18)}
body[data-template="premium-kinetic-bureau"] .hero::before{content:"KB / 01";position:absolute;right:-.03em;top:11%;z-index:-1;font:900 clamp(7rem,23vw,25rem)/.72 Arial Black,Arial,sans-serif;letter-spacing:-.1em;color:transparent;-webkit-text-stroke:1px rgba(255,255,255,.11);transform:translateY(calc(var(--premium-scroll-progress) * -42px));opacity:.78}
body[data-template="premium-kinetic-bureau"] .hero::after{content:"SCROLL  /  EXPLORE";right:28px;bottom:30px;padding:12px 8px;border-left:1px solid var(--tenant-primary);background:transparent}
body[data-template="premium-kinetic-bureau"] .hero .eyebrow{display:flex;align-items:center;gap:14px;color:#fff}
body[data-template="premium-kinetic-bureau"] .hero .eyebrow::before{content:"";width:62px;height:1px;background:linear-gradient(90deg,var(--tenant-primary),var(--tenant-accent))}
body[data-template="premium-kinetic-bureau"] .hero h1{position:relative;max-width:9.4ch;font-size:clamp(4.8rem,13.2vw,13.8rem);line-height:.73;letter-spacing:-.105em;text-shadow:none}
body[data-template="premium-kinetic-bureau"] .hero h1::after{content:"";display:block;width:min(520px,64vw);height:5px;margin-top:.17em;background:linear-gradient(90deg,var(--tenant-primary),var(--tenant-accent));transform:scaleX(calc(.58 + var(--premium-scroll-progress) * .42));transform-origin:left}
body[data-template="premium-kinetic-bureau"] .hero .lead{max-width:650px;margin-left:min(31vw,410px);color:rgba(255,255,255,.72)}
body[data-template="premium-kinetic-bureau"] .hero-actions{margin-left:min(31vw,410px)}
body[data-template="premium-kinetic-bureau"] .hero-actions .btn{min-height:54px;padding-inline:22px;border:1px solid rgba(255,255,255,.3);background:transparent;color:#fff}
body[data-template="premium-kinetic-bureau"] .hero-actions .btn.primary{background:#fff;color:#070707}
body[data-template="premium-kinetic-bureau"] .section{max-width:none;padding-inline:clamp(34px,8vw,142px)}
body[data-template="premium-kinetic-bureau"] .section-heading{display:grid;grid-template-columns:minmax(110px,.25fr) minmax(0,2.4fr);gap:24px;align-items:start}
body[data-template="premium-kinetic-bureau"] .section-heading .eyebrow{padding-top:12px;color:var(--tenant-primary)}
body[data-template="premium-kinetic-bureau"] .section-heading h2{max-width:13ch;text-transform:uppercase}
body[data-template="premium-kinetic-bureau"] #services .card-grid{position:relative}
body[data-template="premium-kinetic-bureau"] #services .card{grid-template-columns:92px minmax(250px,.82fr) minmax(280px,1.18fr) 144px;min-height:176px;padding:30px 0;transition:background .35s ease,padding .35s cubic-bezier(.2,.78,.22,1)}
body[data-template="premium-kinetic-bureau"] #services .card:hover{padding-inline:20px;background:linear-gradient(90deg,color-mix(in srgb,var(--tenant-primary) 10%,transparent),transparent 58%,color-mix(in srgb,var(--tenant-accent) 8%,transparent))}
body[data-template="premium-kinetic-bureau"] #services .card::after{display:none}
body[data-template="premium-kinetic-bureau"] #services .card h3{font-size:clamp(1.75rem,3.4vw,3.75rem);letter-spacing:-.055em}
body[data-template="premium-kinetic-bureau"] #services .service-row-link,
body[data-template="premium-kinetic-bureau"] #services .module-feature-link{justify-self:end;min-width:126px;border-radius:0;border-color:rgba(255,255,255,.28);background:transparent;color:#fff!important}
body[data-template="premium-kinetic-bureau"] #services .service-row-link i,
body[data-template="premium-kinetic-bureau"] #services .module-feature-link i{background:#fff;color:#050505}
body[data-template="premium-kinetic-bureau"] .module-feature-card{padding:clamp(28px,4vw,56px);background:rgba(7,7,7,.68)}
body[data-template="premium-kinetic-bureau"] .module-feature-card::after{content:attr(data-premium-index);position:absolute;right:22px;top:18px;color:var(--tenant-primary);font:800 .68rem/1 ui-monospace,monospace;letter-spacing:.14em}
body[data-template="premium-kinetic-bureau"] .premium-preview-stage{background:linear-gradient(110deg,#070707 0 58%,#ff5a3d 58% 60%,#070707 60%)}
body[data-template="premium-kinetic-bureau"] .premium-preview-panel{border-radius:0;background:#090909}
body[data-template="premium-kinetic-bureau"] .premium-preview-panel.panel-a{clip-path:polygon(0 0,100% 0,82% 100%,0 100%)}

/* Signal Intelligence — flowing decision paths and product-depth surfaces. */
body[data-template="premium-signal-intelligence"]{background:#f2f4fb;color:#12152a;--text:#12152a;--muted:#5e647f;--line:rgba(37,43,89,.14)}
body[data-template="premium-signal-intelligence"] .premium-scene-vignette{background:radial-gradient(circle at var(--premium-pointer-x) var(--premium-pointer-y),rgba(255,255,255,.3),transparent 26%),linear-gradient(180deg,rgba(255,255,255,.16),rgba(92,84,255,.05));opacity:1}
body[data-template="premium-signal-intelligence"] .site-header{margin:14px clamp(18px,3vw,52px) 0;border:1px solid rgba(52,58,106,.14);border-radius:18px;background:rgba(249,250,255,.76);box-shadow:0 18px 70px rgba(70,66,151,.08)}
body[data-template="premium-signal-intelligence"] .hero{min-height:940px;padding-top:180px}
body[data-template="premium-signal-intelligence"] .hero::before{width:min(1080px,94vw);height:700px;aspect-ratio:auto;border-radius:42%;background:radial-gradient(circle at 35% 44%,rgba(103,92,255,.34),transparent 34%),radial-gradient(circle at 70% 54%,rgba(32,211,194,.26),transparent 36%);filter:blur(45px);opacity:.75}
body[data-template="premium-signal-intelligence"] .hero::after{content:"";position:relative;display:block;width:min(1040px,92vw);height:360px;margin:68px auto -72px;border:1px solid rgba(57,63,122,.14);border-radius:30px;background:linear-gradient(180deg,rgba(255,255,255,.88),rgba(245,247,255,.72));box-shadow:0 42px 120px rgba(76,69,161,.17),inset 0 1px 0 #fff}
body[data-template="premium-signal-intelligence"] .hero h1{max-width:11ch;font-size:clamp(4rem,9.5vw,10rem);line-height:.86}
body[data-template="premium-signal-intelligence"] #services .card{border-radius:24px;background:linear-gradient(155deg,rgba(255,255,255,.94),rgba(247,248,255,.72));box-shadow:0 24px 70px rgba(70,66,151,.09);transition:transform .4s cubic-bezier(.2,.78,.22,1),box-shadow .4s ease}
body[data-template="premium-signal-intelligence"] #services .card:hover{transform:translateY(-9px);box-shadow:0 34px 90px rgba(70,66,151,.15)}
body[data-template="premium-signal-intelligence"] #services .card::after{content:"";position:absolute;left:32px;right:32px;bottom:25px;height:2px;background:linear-gradient(90deg,var(--tenant-primary),var(--tenant-accent));transform:scaleX(.25);transform-origin:left;transition:transform .4s ease}
body[data-template="premium-signal-intelligence"] #services .card:hover::after{transform:scaleX(1)}
body[data-template="premium-signal-intelligence"] .module-feature-link{background:#15182c;color:#fff!important;border-color:#15182c}
body[data-template="premium-signal-intelligence"] .module-feature-link i{background:linear-gradient(135deg,var(--tenant-primary),var(--tenant-accent));color:#fff}
body[data-template="premium-signal-intelligence"] .premium-preview-stage{background:linear-gradient(145deg,#f8f9ff,#dfe3ff)}
body[data-template="premium-signal-intelligence"] .premium-preview-panel{border-radius:22px;background:rgba(255,255,255,.78);box-shadow:0 26px 80px rgba(75,68,160,.18)}

/* Atelier Commerce — cinematic studio light and disciplined product controls. */
body[data-template="premium-atelier-commerce"] .premium-scene-vignette{background:linear-gradient(106deg,rgba(255,255,255,.11),transparent 24%,rgba(255,255,255,.04) 52%,transparent 71%),radial-gradient(circle at var(--premium-pointer-x) var(--premium-pointer-y),rgba(255,255,255,.12),transparent 24%);opacity:.75}
body[data-template="premium-atelier-commerce"] .site-header{padding-block:14px;box-shadow:none}
body[data-template="premium-atelier-commerce"] .hero{position:relative;isolation:isolate;background:linear-gradient(90deg,rgba(16,16,14,.76),rgba(16,16,14,.16) 55%,rgba(16,16,14,.36)),linear-gradient(120deg,#a9a69c,#4b4e47 56%,#191a18)}
body[data-template="premium-atelier-commerce"] .hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(108deg,transparent 0 42%,rgba(255,255,255,.18) 48%,transparent 56%);transform:translateX(calc((var(--premium-pointer-x) - 50%) * .16));mix-blend-mode:screen;opacity:.65}
body[data-template="premium-atelier-commerce"] #services .card{min-height:590px;transition:filter .5s ease,transform .7s cubic-bezier(.2,.78,.22,1)}
body[data-template="premium-atelier-commerce"] #services .card:hover{transform:scale(.988);filter:contrast(1.05) saturate(.92)}
body[data-template="premium-atelier-commerce"] #services .card::before{content:attr(data-premium-index);position:absolute;left:30px;top:28px;font:800 .7rem/1 ui-monospace,monospace;letter-spacing:.14em;color:rgba(255,255,255,.72)}
body[data-template="premium-atelier-commerce"] .premium-quick-view{right:24px;top:24px;border-radius:999px!important;padding:.7rem 1rem!important;font-size:.68rem;letter-spacing:.1em;text-transform:uppercase}
body[data-template="premium-atelier-commerce"] .module-feature-link{border-radius:0;background:transparent}
body[data-template="premium-atelier-commerce"] .premium-preview-stage{background:linear-gradient(115deg,#d8d3c7 0 48%,#232420 48% 52%,#8f9188 52%)}
body[data-template="premium-atelier-commerce"] .premium-preview-panel{border-radius:0;border-color:rgba(20,20,18,.22);background:rgba(242,239,231,.78)}

/* Object Journal — paper, ink, scale and quiet spatial transitions. */
body[data-template="premium-object-journal"] .premium-scene-vignette{background:linear-gradient(90deg,rgba(24,24,23,.045) 1px,transparent 1px),linear-gradient(rgba(24,24,23,.025) 1px,transparent 1px);background-size:clamp(180px,20vw,360px) 100%,100% 120px;opacity:.7}
body[data-template="premium-object-journal"] .hero{min-height:82vh;padding-top:160px}
body[data-template="premium-object-journal"] .hero::before{content:"OBJECT / STUDY";position:absolute;right:clamp(24px,6vw,100px);top:118px;font:700 .66rem/1 ui-monospace,monospace;letter-spacing:.18em;writing-mode:vertical-rl;color:rgba(24,24,23,.5)}
body[data-template="premium-object-journal"] .hero h1{line-height:.82;letter-spacing:-.07em}
body[data-template="premium-object-journal"] #services .card{grid-template-columns:64px minmax(230px,.82fr) minmax(0,1.35fr) 132px;min-height:160px;padding:30px 0;border-color:rgba(24,24,23,.18)}
body[data-template="premium-object-journal"] #services .card::before{color:#7c6848}
body[data-template="premium-object-journal"] #services .card h3{font-family:Georgia,serif;font-weight:400;text-transform:none;font-size:clamp(1.7rem,3vw,3.2rem)}
body[data-template="premium-object-journal"] #services .service-row-link{justify-self:end;border-radius:0;background:transparent;color:#181817!important}
body[data-template="premium-object-journal"] .module-feature-grid{scroll-snap-type:x mandatory;padding-bottom:22px}
body[data-template="premium-object-journal"] .module-feature-card{scroll-snap-align:start}
body[data-template="premium-object-journal"] .premium-preview-stage{background:#e9e7df}
body[data-template="premium-object-journal"] .premium-preview-grid{background-size:96px 100%;background-image:linear-gradient(90deg,rgba(24,24,23,.1) 1px,transparent 1px)}
body[data-template="premium-object-journal"] .premium-preview-panel{border-radius:0;border-color:rgba(24,24,23,.2);background:#d5d2c9;box-shadow:none}

/* Trail Collective — topographic movement and technical product comparison. */
body[data-template="premium-trail-collective"] .premium-scene-vignette{background:linear-gradient(180deg,rgba(5,11,5,.1),rgba(5,11,5,.48)),radial-gradient(circle at var(--premium-pointer-x) var(--premium-pointer-y),rgba(195,235,126,.12),transparent 23%);opacity:.9}
body[data-template="premium-trail-collective"] .hero{min-height:100svh;background:linear-gradient(90deg,rgba(8,13,7,.88),rgba(8,13,7,.1) 72%),linear-gradient(150deg,#87956d,#34432a 50%,#121a10);clip-path:polygon(0 0,100% 0,100% 93%,70% 100%,0 96%)}
body[data-template="premium-trail-collective"] .hero::before{content:"TRAIL / 01";position:absolute;right:3vw;bottom:10vh;font:900 clamp(4rem,13vw,13rem)/.8 Arial Black,Arial,sans-serif;color:transparent;-webkit-text-stroke:1px rgba(255,255,255,.2);opacity:.68}
body[data-template="premium-trail-collective"] #services .card{min-height:470px;background:linear-gradient(180deg,transparent 34%,rgba(7,13,6,.94)),linear-gradient(145deg,#697c54,#1d2b18);transition:transform .55s cubic-bezier(.2,.78,.22,1),filter .45s ease}
body[data-template="premium-trail-collective"] #services .card:hover{transform:translateY(-10px) rotate(-.35deg);filter:brightness(1.06)}
body[data-template="premium-trail-collective"] .premium-compare-add[aria-pressed="true"]{background:var(--tenant-primary);color:#0c120a;border-color:var(--tenant-primary)}
body[data-template="premium-trail-collective"] .premium-preview-stage{background:linear-gradient(150deg,#87956d,#34432a 52%,#121a10)}
body[data-template="premium-trail-collective"] .premium-preview-panel{border-radius:3px;background:rgba(12,20,10,.72)}

/* Publisher Studio — editorial rhythm, ink and paper movement. */
body[data-template="premium-publisher-studio"] .premium-scene-vignette{background:linear-gradient(90deg,rgba(25,25,24,.045) 1px,transparent 1px);background-size:calc(100vw / 12) 100%;opacity:.7}
body[data-template="premium-publisher-studio"] .hero{min-height:880px;padding-top:170px}
body[data-template="premium-publisher-studio"] .hero::before{content:"VOL. 01  /  INDEPENDENT";position:absolute;left:clamp(20px,7vw,100px);top:118px;font:800 .68rem/1 ui-monospace,monospace;letter-spacing:.17em;color:rgba(25,25,24,.56)}
body[data-template="premium-publisher-studio"] .module-feature-card{transition:background .38s ease,color .38s ease,transform .5s cubic-bezier(.2,.78,.22,1)}
body[data-template="premium-publisher-studio"] .module-feature-card:not(:first-child):hover{transform:translateY(-8px);background:#191918;color:#fff}
body[data-template="premium-publisher-studio"] .module-feature-link{border-radius:0;background:transparent}
body[data-template="premium-publisher-studio"] .premium-preview-stage{background:#fffdf7}
body[data-template="premium-publisher-studio"] .premium-preview-grid{background-size:calc(100% / 6) 100%;background-image:linear-gradient(90deg,rgba(25,25,24,.12) 1px,transparent 1px)}
body[data-template="premium-publisher-studio"] .premium-preview-panel{border-radius:0;border-color:#191918;background:#fffdf7;box-shadow:none}
body[data-template="premium-publisher-studio"] .premium-preview-panel.panel-a{background:#191918}

/* Command Interface — spectral command waves and precise interaction states. */
body[data-template="premium-command-interface"] .premium-scene-vignette{background:radial-gradient(circle at var(--premium-pointer-x) var(--premium-pointer-y),rgba(166,126,255,.18),transparent 21%),linear-gradient(180deg,rgba(3,5,12,.05),rgba(3,5,12,.7));opacity:.9}
body[data-template="premium-command-interface"] .site-header{margin:14px clamp(16px,3vw,46px) 0;border:1px solid rgba(181,186,255,.16);border-radius:16px;background:rgba(7,9,16,.68);box-shadow:0 22px 80px rgba(0,0,0,.26)}
body[data-template="premium-command-interface"] .hero{min-height:1000px;padding-top:190px}
body[data-template="premium-command-interface"] .hero::before{width:min(1200px,96vw);height:780px;filter:blur(65px);opacity:.7}
body[data-template="premium-command-interface"] .hero::after{content:"⌘";position:absolute;z-index:-1;left:50%;top:55%;translate:-50% -50%;font:800 min(52vw,620px)/1 ui-monospace,monospace;color:transparent;-webkit-text-stroke:1px rgba(205,208,255,.09);filter:drop-shadow(0 0 70px rgba(132,95,255,.14))}
body[data-template="premium-command-interface"] .hero h1{font-size:clamp(4.2rem,10vw,11rem);line-height:.84}
body[data-template="premium-command-interface"] .module-feature-card,
body[data-template="premium-command-interface"] .card{transition:transform .42s cubic-bezier(.2,.78,.22,1),border-color .35s ease,box-shadow .42s ease}
body[data-template="premium-command-interface"] .module-feature-card:hover,
body[data-template="premium-command-interface"] .card:hover{transform:translateY(-8px);border-color:rgba(191,166,255,.42);box-shadow:0 40px 110px rgba(0,0,0,.38),0 0 0 1px rgba(155,109,255,.1)}
body[data-template="premium-command-interface"] .module-feature-link{background:rgba(255,255,255,.05);color:#fff!important}
body[data-template="premium-command-interface"] .premium-preview-stage{background:radial-gradient(circle at 37% 38%,#7d56ff,transparent 34%),radial-gradient(circle at 70% 62%,#f04f7b,transparent 31%),#070910}
body[data-template="premium-command-interface"] .premium-preview-panel{border-radius:16px;background:rgba(18,22,42,.78)}

/* Admin explanation for the bespoke premium scene controls. */
.cms-admin .premium-motion-guide{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:center;margin:18px 0;padding:20px;border:1px solid rgba(177,126,255,.32);border-radius:16px;background:linear-gradient(135deg,rgba(119,70,202,.12),rgba(20,155,198,.08));box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.cms-admin .premium-motion-guide h3{margin:.2rem 0 .45rem;color:#f8f5ff}
.cms-admin .premium-motion-guide>span{display:inline-flex;padding:9px 12px;border:1px solid rgba(207,181,255,.28);border-radius:999px;background:rgba(177,126,255,.1);color:#e4d8ff;font-size:.75rem;font-weight:850;white-space:nowrap}

@media(max-width:980px){
  body[data-template="premium-kinetic-bureau"] .hero .lead,
  body[data-template="premium-kinetic-bureau"] .hero-actions{margin-left:0}
  body[data-template="premium-kinetic-bureau"] #services .card,
  body[data-template="premium-object-journal"] #services .card{grid-template-columns:62px 1fr 126px}
  body[data-template="premium-kinetic-bureau"] #services .card p,
  body[data-template="premium-object-journal"] #services .card p{grid-column:2/4}
  body[data-template="premium-signal-intelligence"] .hero::after{height:260px}
}
@media(max-width:720px){
  body[data-template^="premium-"]>.premium-scene{opacity:.8}
  body[data-template="premium-kinetic-bureau"] .site-main{max-width:calc(100vw - 18px)}
  body[data-template="premium-kinetic-bureau"] .site-header,
  body[data-template="premium-signal-intelligence"] .site-header,
  body[data-template="premium-command-interface"] .site-header{margin-inline:9px;border-radius:10px}
  body[data-template="premium-kinetic-bureau"] .hero h1{font-size:clamp(4rem,22vw,7.7rem)}
  body[data-template="premium-kinetic-bureau"] .section-heading{grid-template-columns:1fr}
  body[data-template="premium-kinetic-bureau"] #services .card,
  body[data-template="premium-object-journal"] #services .card{grid-template-columns:1fr;gap:14px;padding:28px 0}
  body[data-template="premium-kinetic-bureau"] #services .card p,
  body[data-template="premium-object-journal"] #services .card p{grid-column:auto}
  body[data-template="premium-kinetic-bureau"] #services .service-row-link,
  body[data-template="premium-object-journal"] #services .service-row-link{justify-self:start}
  body[data-template="premium-signal-intelligence"] .hero::after{height:200px;margin-top:42px}
  body[data-template="premium-trail-collective"] .hero{clip-path:none}
  .cms-admin .premium-motion-guide{grid-template-columns:1fr}.cms-admin .premium-motion-guide>span{white-space:normal;width:max-content;max-width:100%}
}
@media(prefers-reduced-motion:reduce){
  .premium-preview-orbit{animation:none!important}
  body[data-template^="premium-"] .module-feature-link,
  body[data-template^="premium-"] .service-row-link,
  body[data-template^="premium-"] .module-feature-card,
  body[data-template^="premium-"] .card{transition:none!important}
}

/* Kinetic Bureau cursor is a deliberate editorial interaction, never a browser-default novelty. */
.premium-cursor-hud{display:none!important}
.premium-cursor-ring{
  position:fixed;left:0;top:0;z-index:120;width:48px;height:48px;display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.68);border-radius:50%;background:rgba(5,5,5,.18);color:#fff;
  opacity:0;pointer-events:none;mix-blend-mode:difference;backdrop-filter:blur(3px);
  transition:width .28s cubic-bezier(.2,.78,.22,1),height .28s cubic-bezier(.2,.78,.22,1),opacity .2s ease,background .28s ease,border-color .28s ease;
  will-change:transform,width,height,opacity
}
.premium-cursor-ring span{font:900 .48rem/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.13em;opacity:0;transform:scale(.75);transition:opacity .22s ease,transform .28s cubic-bezier(.2,.78,.22,1)}
.premium-cursor-ring.is-visible{opacity:.72}
.premium-cursor-ring.is-active{width:84px;height:84px;opacity:1;background:rgba(255,255,255,.94);border-color:#fff;color:#050505;mix-blend-mode:normal}
.premium-cursor-ring.is-active span{opacity:1;transform:scale(1)}
@media(pointer:coarse),(max-width:820px){.premium-cursor-ring{display:none!important}}
@media(prefers-reduced-motion:reduce){.premium-cursor-ring{display:none!important}}

/* Stage 49 editorial hero placement: readable composition on real tenant pages and previews. */
body[data-template="premium-object-journal"]{--text:#181817;--muted:rgba(24,24,23,.64);--line:rgba(24,24,23,.18)}
body[data-template="premium-publisher-studio"]{--text:#191918;--muted:rgba(25,25,24,.65);--line:rgba(25,25,24,.18)}
body[data-template="premium-atelier-commerce"]{--text:#f7f7f4;--muted:rgba(255,255,255,.7);--line:rgba(255,255,255,.18)}
body[data-template="premium-object-journal"] .hero,
body[data-template="premium-publisher-studio"] .hero{
  grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);
  grid-template-areas:"eyebrow eyebrow" "title lead" "title actions" "visual visual";
  align-items:start;column-gap:clamp(40px,7vw,120px);row-gap:26px
}
body[data-template="premium-object-journal"] .hero>.eyebrow,
body[data-template="premium-publisher-studio"] .hero>.eyebrow{grid-area:eyebrow}
body[data-template="premium-object-journal"] .hero>h1,
body[data-template="premium-publisher-studio"] .hero>h1{grid-area:title;max-width:8.5ch;color:var(--text)}
body[data-template="premium-object-journal"] .hero>.lead,
body[data-template="premium-publisher-studio"] .hero>.lead{grid-area:lead;align-self:end;margin-top:clamp(80px,15vh,190px);color:var(--muted)}
body[data-template="premium-object-journal"] .hero>.hero-actions,
body[data-template="premium-publisher-studio"] .hero>.hero-actions{grid-area:actions;align-self:start}
body[data-template="premium-object-journal"] .hero>.preview-demo-visual,
body[data-template="premium-object-journal"] .hero>.hero-image-card,
body[data-template="premium-publisher-studio"] .hero>.preview-demo-visual,
body[data-template="premium-publisher-studio"] .hero>.hero-image-card{grid-area:visual;width:100%}
@media(max-width:900px){
  body[data-template="premium-object-journal"] .hero,
  body[data-template="premium-publisher-studio"] .hero{display:flex;flex-direction:column;align-items:stretch;gap:24px}
  body[data-template="premium-object-journal"] .hero>.lead,
  body[data-template="premium-publisher-studio"] .hero>.lead{margin-top:0;max-width:680px}
  body[data-template="premium-object-journal"] .hero>h1,
  body[data-template="premium-publisher-studio"] .hero>h1{max-width:9ch}
}
body[data-template="premium-atelier-commerce"] .hero>.lead{color:rgba(255,255,255,.72)!important}
body[data-template="premium-object-journal"] .hero>.lead{color:rgba(24,24,23,.66)!important}
body[data-template="premium-publisher-studio"] .hero>.lead{color:rgba(25,25,24,.66)!important}

/* Stage 50: imported-site editor and reusable legacy design components. */
.imported-site-notice{display:grid;gap:6px;margin:20px 0 26px;padding:18px 20px;border:1px solid rgba(34,211,238,.28);background:linear-gradient(135deg,rgba(34,211,238,.10),rgba(247,201,72,.06));border-radius:18px}
.imported-site-notice strong{font-size:1rem}.imported-site-notice span{color:var(--muted,#9fb1c5);line-height:1.55}
.imported-site-form{display:grid;gap:18px}.imported-site-form .admin-section{margin:0}
.imported-subgrid,.imported-repeat-grid,.imported-card-editor,.imported-gallery-editor{display:grid;gap:16px;margin-top:18px}
.imported-subgrid{grid-template-columns:repeat(3,minmax(0,1fr))}.imported-repeat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.imported-card-editor{grid-template-columns:repeat(2,minmax(0,1fr))}.imported-gallery-editor{grid-template-columns:repeat(3,minmax(0,1fr))}
.imported-site-form fieldset{min-width:0;margin:0;padding:18px;border:1px solid var(--line,rgba(255,255,255,.10));border-radius:18px;background:rgba(255,255,255,.025)}
.imported-site-form fieldset legend{padding:0 8px;font-weight:800;color:var(--text,#edf7ff)}
.imported-site-form fieldset label{display:grid;gap:7px;margin-bottom:12px}.imported-site-form fieldset label:last-child{margin-bottom:0}
.imported-save-bar{position:sticky;bottom:14px;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;border:1px solid rgba(247,201,72,.30);border-radius:18px;background:rgba(7,12,21,.94);box-shadow:0 18px 54px rgba(0,0,0,.32);backdrop-filter:blur(18px)}
.imported-save-bar div{display:grid;gap:3px}.imported-save-bar span{color:var(--muted,#9fb1c5);font-size:.88rem}
@media(max-width:1200px){.imported-subgrid{grid-template-columns:1fr 1fr}.imported-repeat-grid{grid-template-columns:1fr 1fr}.imported-gallery-editor{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.imported-subgrid,.imported-repeat-grid,.imported-card-editor,.imported-gallery-editor{grid-template-columns:1fr}.imported-save-bar{position:static;align-items:stretch;flex-direction:column}.imported-save-bar .btn{width:100%}}

.module-trust-band{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1px;overflow:hidden;border:1px solid color-mix(in srgb,var(--primary,#f7c948) 28%,transparent);border-radius:var(--module-radius,22px);background:color-mix(in srgb,var(--primary,#f7c948) 18%,transparent)}
.module-trust-item{display:grid;gap:4px;padding:20px;background:color-mix(in srgb,var(--surface,#111827) 94%,transparent)}.module-trust-item strong{font-size:1rem}.module-trust-item span{font-size:.88rem;color:var(--muted,#9fb1c5)}
.module-brand-showcase,.module-media-card-grid{display:grid;grid-template-columns:repeat(var(--module-columns,3),minmax(0,1fr));gap:18px}
.module-import-card{display:grid;grid-template-rows:220px 1fr;overflow:hidden;border:1px solid color-mix(in srgb,currentColor 12%,transparent);border-radius:var(--module-radius,24px);background:var(--card-bg,rgba(255,255,255,.045));box-shadow:0 18px 42px rgba(0,0,0,.18)}
.module-import-card-media{min-height:0;background:linear-gradient(135deg,color-mix(in srgb,var(--primary,#f7c948) 18%,#fff),color-mix(in srgb,var(--accent,#22d3ee) 10%,#111));overflow:hidden}.module-import-card-media img{width:100%;height:100%;object-fit:contain;padding:18px}
.module-import-card-copy{display:flex;flex-direction:column;gap:10px;padding:22px}.module-import-card-copy p{color:var(--muted,#9fb1c5)}.module-import-card-copy a{margin-top:auto;font-weight:800;color:var(--primary,#f7c948)}
.module-import-tag{display:inline-flex;width:max-content;max-width:100%;padding:6px 10px;border:1px solid color-mix(in srgb,var(--primary,#f7c948) 35%,transparent);border-radius:999px;color:var(--primary,#f7c948);font-size:.72rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.module-brand-showcase .layout-feature,.module-brand-showcase .layout-wide{grid-column:span 2;grid-template-columns:1.05fr 1fr;grid-template-rows:1fr}.module-brand-showcase .layout-feature .module-import-card-media,.module-brand-showcase .layout-wide .module-import-card-media{min-height:280px}.module-brand-showcase .layout-tall{grid-row:span 2}.module-brand-showcase .layout-tall .module-import-card-media{height:300px}
.module-brand-showcase .tone-dark .module-import-card-media{background:linear-gradient(135deg,#101216,#242b34)}.module-brand-showcase .tone-warm .module-import-card-media{background:linear-gradient(135deg,#f9e7c0,#d2a14c)}.module-brand-showcase .tone-deep .module-import-card-media{background:linear-gradient(135deg,#0d2432,#274a5f)}.module-brand-showcase .tone-cream .module-import-card-media{background:linear-gradient(135deg,#f6eee2,#d9ccbe)}.module-brand-showcase .tone-snack .module-import-card-media{background:linear-gradient(135deg,#0a0a0c,#2b190b)}
.module-editorial-collage{display:grid;grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);gap:clamp(28px,5vw,72px);align-items:center}.module-editorial-media{position:relative;min-height:520px}.module-editorial-media figure{position:absolute;overflow:hidden;margin:0;border-radius:var(--module-radius,26px);box-shadow:0 24px 56px rgba(0,0,0,.26)}.module-editorial-media figure img{width:100%;height:100%;object-fit:cover}.module-editorial-media .is-primary{inset:0 18% 18% 0}.module-editorial-media .is-secondary{right:0;bottom:0;width:46%;height:46%}.module-editorial-media blockquote{position:absolute;left:8%;right:34%;bottom:0;margin:0;padding:22px;border-radius:var(--module-radius,22px);background:var(--primary,#f7c948);color:#15110a;font-weight:800;box-shadow:0 18px 42px rgba(0,0,0,.22)}
.module-style-editorial_brand .module-import-card{border-radius:28px;background:linear-gradient(180deg,rgba(255,255,255,.065),rgba(255,255,255,.025))}.module-style-image_led .module-import-card-media{height:260px}.module-style-masonry .module-gallery{grid-auto-flow:dense}.module-style-masonry .module-gallery-item:nth-child(4n+1){grid-column:span 2}.module-style-masonry .module-gallery-item:nth-child(5n+2){grid-row:span 2;min-height:520px}.module-style-trade_highlight{background:linear-gradient(135deg,color-mix(in srgb,var(--primary,#f7c948) 82%,#8a5a18),color-mix(in srgb,var(--primary,#f7c948) 55%,#3d2106));color:#18120a}.module-style-collage .module-inner{overflow:visible}
@media(max-width:980px){.module-brand-showcase,.module-media-card-grid{grid-template-columns:1fr 1fr}.module-brand-showcase .layout-feature,.module-brand-showcase .layout-wide{grid-column:span 2}.module-editorial-collage{grid-template-columns:1fr}.module-editorial-media{min-height:460px}}
@media(max-width:680px){.module-brand-showcase,.module-media-card-grid{grid-template-columns:1fr}.module-brand-showcase .layout-feature,.module-brand-showcase .layout-wide{grid-column:auto;grid-template-columns:1fr;grid-template-rows:auto 1fr}.module-editorial-media{min-height:400px}.module-editorial-media .is-primary{right:8%;bottom:24%}.module-editorial-media .is-secondary{width:48%;height:38%}.module-editorial-media blockquote{left:0;right:18%;font-size:.92rem}}

/* Stage 51 Go Springs commerce and imported-site administration */
.order-admin-list{display:grid;gap:1rem}.order-admin-card{border:1px solid var(--line,#293b55);border-radius:18px;padding:1.25rem;background:rgba(10,20,36,.72)}.order-admin-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.order-admin-head h2{margin:.15rem 0}.order-admin-head>strong{font-size:1.35rem}.filter-bar{display:flex;flex-wrap:wrap;gap:.75rem;margin:1rem 0 1.5rem}.filter-bar input{flex:1 1 280px}.filter-bar select{min-width:150px}.order-admin-card .actions form{display:flex;gap:.5rem;align-items:center}.order-admin-card .actions select{min-width:130px}.imported-site-form .admin-section{scroll-margin-top:90px}.imported-site-form textarea.code,.cms-admin textarea.code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;line-height:1.55}.cms-admin .table-wrap td code{white-space:normal;overflow-wrap:anywhere}
@media(max-width:720px){.order-admin-head{align-items:flex-start}.order-admin-card .actions{align-items:stretch}.order-admin-card .actions form{width:100%;flex-wrap:wrap}.order-admin-card .actions select,.order-admin-card .actions button{flex:1}.filter-bar>*{width:100%}}

/* Stage 52: shared decorative motion overlays and ZLSOM-derived design system. */
.decorative-motion-overlay{position:fixed;inset:0;width:100%;height:100%;z-index:6;pointer-events:none;opacity:var(--tenant-decorative-opacity,.7);transition:opacity .3s ease}
body.decorative-scope-hero-only .decorative-motion-overlay{position:absolute;inset:0;width:100%;height:100%;z-index:2}
body.decorative-scope-hero-only .hero{position:relative;isolation:isolate;overflow:hidden}
body.decorative-scope-hero-only .hero>.decorative-motion-overlay{z-index:1}
body.decorative-scope-hero-only .hero>*:not(.decorative-motion-overlay){position:relative;z-index:2}
body.decorative-overlay-none .decorative-motion-overlay{display:none}
@media(prefers-reduced-motion:reduce){.decorative-motion-overlay{opacity:calc(var(--tenant-decorative-opacity,.7) * .55)}}

body.card-style-blush-glass .card,body.card-style-blush-glass .contact-card,body.card-style-blush-glass .split,body.card-style-blush-glass .panel,body.card-style-blush-glass .login-card{border-radius:30px;border:1px solid color-mix(in srgb,#d8b2bc 36%,rgba(255,255,255,.18));background:linear-gradient(145deg,color-mix(in srgb,#f4e3e8 17%,rgba(255,255,255,.1)),rgba(255,255,255,.045));backdrop-filter:blur(22px);box-shadow:0 26px 70px rgba(99,57,66,.15),inset 0 1px rgba(255,255,255,.2)}
body.card-style-champagne-frame .card,body.card-style-champagne-frame .contact-card,body.card-style-champagne-frame .split,body.card-style-champagne-frame .panel,body.card-style-champagne-frame .login-card{position:relative;border-radius:18px;border:1px solid color-mix(in srgb,#c8ae7a 58%,rgba(255,255,255,.14));background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.035));box-shadow:inset 0 0 0 5px color-mix(in srgb,#c8ae7a 7%,transparent),0 28px 75px rgba(38,28,18,.18)}
body.card-style-champagne-frame .card:after,body.card-style-champagne-frame .contact-card:after,body.card-style-champagne-frame .split:after{content:"";position:absolute;inset:8px;border:1px solid color-mix(in srgb,#c8ae7a 24%,transparent);border-radius:11px;pointer-events:none}
body.card-style-soft-floral .card,body.card-style-soft-floral .contact-card,body.card-style-soft-floral .split,body.card-style-soft-floral .panel,body.card-style-soft-floral .login-card{position:relative;overflow:hidden;border-radius:34px 20px 34px 20px;border:1px solid color-mix(in srgb,#d8b2bc 30%,rgba(255,255,255,.16));background:radial-gradient(circle at 100% 0,color-mix(in srgb,#ecd8de 22%,transparent),transparent 34%),linear-gradient(145deg,rgba(255,255,255,.1),rgba(255,255,255,.04));box-shadow:0 24px 65px rgba(75,48,54,.13)}
body.card-style-soft-floral .card:before,body.card-style-soft-floral .contact-card:before{content:"✿";position:absolute;right:16px;top:8px;font-family:Georgia,serif;font-size:44px;color:color-mix(in srgb,#d8b2bc 22%,transparent);transform:rotate(14deg);pointer-events:none}
body.contrast-light.card-style-blush-glass .card,body.contrast-light.card-style-blush-glass .contact-card,body.contrast-light.card-style-blush-glass .split,body.contrast-light.card-style-champagne-frame .card,body.contrast-light.card-style-champagne-frame .contact-card,body.contrast-light.card-style-champagne-frame .split,body.contrast-light.card-style-soft-floral .card,body.contrast-light.card-style-soft-floral .contact-card,body.contrast-light.card-style-soft-floral .split{background-color:rgba(255,253,251,.9);color:#2b2321}

.module-style-blush-glass .module-inner,.module-style-champagne-frame .module-inner,.module-style-soft-floral .module-inner{padding:clamp(30px,5vw,68px);color:#2b2321}
.module-style-blush-glass .module-inner{border:1px solid rgba(216,178,188,.45);border-radius:34px;background:linear-gradient(145deg,rgba(255,251,252,.88),rgba(244,227,232,.72));backdrop-filter:blur(20px);box-shadow:0 28px 75px rgba(104,65,73,.13)}
.module-style-champagne-frame .module-inner{border:1px solid rgba(160,125,72,.48);border-radius:20px;background:#fffdfb;box-shadow:inset 0 0 0 7px rgba(200,174,122,.08),0 28px 75px rgba(83,62,33,.12)}
.module-style-soft-floral .module-inner{border:1px solid rgba(216,178,188,.34);border-radius:38px 22px 38px 22px;background:radial-gradient(circle at 96% 6%,rgba(236,216,222,.65),transparent 25%),#fffdfb;box-shadow:0 28px 75px rgba(104,65,73,.11)}
.module-style-blush-glass .module-inner h2,.module-style-blush-glass .module-inner h3,.module-style-champagne-frame .module-inner h2,.module-style-champagne-frame .module-inner h3,.module-style-soft-floral .module-inner h2,.module-style-soft-floral .module-inner h3{color:#2b2321}
.module-style-blush-glass .module-inner p,.module-style-champagne-frame .module-inner p,.module-style-soft-floral .module-inner p{color:#665c57}

.module-zlsom-numbered{display:grid;grid-template-columns:repeat(var(--module-columns,4),minmax(0,1fr));gap:18px}
.module-zlsom-number-card{position:relative;min-height:220px;padding:28px;border:1px solid rgba(160,125,72,.18);border-radius:26px 16px;background:linear-gradient(160deg,rgba(255,255,255,.94),rgba(248,240,237,.82));box-shadow:0 18px 45px rgba(70,49,42,.08);overflow:hidden;color:#241e1c}
.module-zlsom-number-card>span{display:block;margin-bottom:42px;color:#a07d48;font-family:Georgia,serif;font-size:.92rem;letter-spacing:.16em}.module-zlsom-number-card h3{font-family:Georgia,serif;font-size:clamp(1.3rem,2.2vw,1.8rem);color:#241e1c}.module-zlsom-number-card p{color:#665c57}
.module-zlsom-profile,.module-zlsom-studio,.module-zlsom-tuition{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:clamp(28px,6vw,76px);align-items:center;padding:clamp(28px,5vw,70px);border:1px solid rgba(160,125,72,.17);border-radius:34px;background:#fffdfb;color:#241e1c;box-shadow:0 24px 70px rgba(70,49,42,.09)}
.module-zlsom-profile figure,.module-zlsom-studio figure{margin:0;border-radius:26px;overflow:hidden;box-shadow:0 20px 50px rgba(70,49,42,.14)}.module-zlsom-profile figure img,.module-zlsom-studio figure img{width:100%;height:100%;min-height:420px;object-fit:cover}
.module-zlsom-profile ul,.module-zlsom-studio ul{display:grid;gap:10px;padding:0;list-style:none}.module-zlsom-profile li,.module-zlsom-studio li{padding-left:24px;position:relative;color:#665c57}.module-zlsom-profile li:before,.module-zlsom-studio li:before{content:"✦";position:absolute;left:0;color:#a07d48}.module-zlsom-profile li span{display:block;font-weight:400}.module-zlsom-profile blockquote{margin:28px 0 0;padding:22px 24px;border-left:3px solid #d8b2bc;background:#fbf6f2;font-family:Georgia,serif;font-size:1.15rem}
.module-zlsom-studio{grid-template-columns:minmax(280px,.9fr) minmax(0,1.1fr)}
.module-zlsom-tuition aside{padding:30px;border-radius:24px;background:linear-gradient(145deg,#f7eee9,#fffaf6);border:1px solid rgba(160,125,72,.17)}
.module-zlsom-quote{margin:0 auto;max-width:920px;padding:clamp(32px,6vw,72px);border:1px solid rgba(160,125,72,.18);border-radius:36px 20px;background:radial-gradient(circle at 90% 10%,rgba(236,216,222,.66),transparent 30%),#fffdfb;color:#241e1c;text-align:center;box-shadow:0 24px 70px rgba(70,49,42,.09)}.module-zlsom-quote p{font-family:Georgia,serif;font-size:clamp(1.45rem,3vw,2.4rem);line-height:1.35;color:#4c3e39}

.decorative-overlay-guide{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 24px;padding:24px;border:1px solid rgba(216,178,188,.3);border-radius:22px;background:linear-gradient(135deg,rgba(216,178,188,.09),rgba(200,174,122,.06))}.decorative-overlay-guide h3{margin:.15rem 0 .35rem}.decorative-overlay-guide>span{flex:0 0 auto;padding:8px 12px;border-radius:999px;background:rgba(216,178,188,.12);font-size:.78rem;font-weight:700}
.imported-repeater,.imported-row{display:grid;gap:14px}.imported-row{padding:16px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.025);margin-top:12px}
@media(max-width:820px){.module-zlsom-numbered{grid-template-columns:repeat(2,minmax(0,1fr))}.module-zlsom-profile,.module-zlsom-studio,.module-zlsom-tuition{grid-template-columns:1fr}.decorative-overlay-guide{align-items:flex-start;flex-direction:column}}
@media(max-width:560px){.module-zlsom-numbered{grid-template-columns:1fr}.module-zlsom-number-card{min-height:0}.module-zlsom-profile,.module-zlsom-studio,.module-zlsom-tuition{padding:24px}.module-zlsom-profile figure img,.module-zlsom-studio figure img{min-height:320px}}

/* Stage 56: premium-template visual QA, contrast and responsive collision fixes. */
body[data-template^="premium-"] .site-main,
body[data-template^="premium-"] .hero,
body[data-template^="premium-"] .section,
body[data-template^="premium-"] .content-module,
body[data-template^="premium-"] .module-inner,
body[data-template^="premium-"] .card-grid,
body[data-template^="premium-"] .module-feature-grid,
body[data-template^="premium-"] .split,
body[data-template^="premium-"] .module-stats,
body[data-template^="premium-"] .module-testimonials{min-width:0}
body[data-template^="premium-"] .hero>*,
body[data-template^="premium-"] .section>*,
body[data-template^="premium-"] .content-module>*,
body[data-template^="premium-"] .module-inner>*,
body[data-template^="premium-"] .card-grid>*,
body[data-template^="premium-"] .module-feature-grid>*{min-width:0;max-width:100%}
body[data-template^="premium-"] .card,
body[data-template^="premium-"] .module-card,
body[data-template^="premium-"] .module-feature-card,
body[data-template^="premium-"] .module-testimonial,
body[data-template^="premium-"] .module-stat{min-width:0;overflow-wrap:break-word}
body[data-template^="premium-"] .hero-actions,
body[data-template^="premium-"] .module-actions,
body[data-template^="premium-"] .premium-compare-actions{max-width:100%;flex-wrap:wrap}
body[data-template^="premium-"] img,
body[data-template^="premium-"] video,
body[data-template^="premium-"] svg{max-width:100%}

/* Publisher Studio: explicit ink/paper contrast for the lead editorial tiles. */
body[data-template="premium-publisher-studio"] .module-feature-grid{align-items:stretch}
body[data-template="premium-publisher-studio"] .module-feature-card:first-child,
body[data-template="premium-publisher-studio"] .module-feature-card:first-child :is(h2,h3,h4,strong,blockquote){color:#fff!important;-webkit-text-fill-color:currentColor}
body[data-template="premium-publisher-studio"] .module-feature-card:first-child :is(p,span,li,small){color:rgba(255,255,255,.72)!important;-webkit-text-fill-color:currentColor}
body[data-template="premium-publisher-studio"] .module-feature-card:first-child a{color:#fff!important;-webkit-text-fill-color:currentColor}
body[data-template="premium-publisher-studio"] .module-feature-card:first-child .module-feature-link{border-color:rgba(255,255,255,.32);background:transparent;color:#fff!important}
body[data-template="premium-publisher-studio"] .module-feature-card:not(:first-child):hover :is(h2,h3,h4,strong,blockquote){color:#fff!important;-webkit-text-fill-color:currentColor}
body[data-template="premium-publisher-studio"] .module-feature-card:not(:first-child):hover :is(p,span,li,small){color:rgba(255,255,255,.72)!important;-webkit-text-fill-color:currentColor}
body[data-template="premium-publisher-studio"] .module-feature-card:not(:first-child):hover a{color:#fff!important;-webkit-text-fill-color:currentColor}
body[data-template="premium-publisher-studio"] .module-feature-card:not(:first-child):hover .module-feature-link{border-color:rgba(255,255,255,.32);background:transparent;color:#fff!important}

/* Keep premium fixed interaction trays clear of the shared back-to-top control. */
body.premium-subscribe-active{--premium-fixed-ui-offset:88px}
body.premium-compare-active{--premium-fixed-ui-offset:88px}
body.premium-subscribe-active.back-to-top-position-bottom-right .back-to-top,
body.premium-compare-active.back-to-top-position-bottom-right .back-to-top{bottom:calc(24px + var(--premium-fixed-ui-offset,0px))!important}
body.premium-subscribe-active.back-to-top-position-bottom-left .back-to-top,
body.premium-compare-active.back-to-top-position-bottom-left .back-to-top{bottom:calc(24px + var(--premium-fixed-ui-offset,0px))!important}
body.premium-subscribe-active.back-to-top-position-bottom-centre .back-to-top,
body.premium-compare-active.back-to-top-position-bottom-centre .back-to-top{bottom:calc(24px + var(--premium-fixed-ui-offset,0px))!important}

@media(max-width:900px){
  body[data-template^="premium-"] .site-header,
  body[data-template^="premium-"] .site-header nav{min-width:0;max-width:100%}
  body[data-template^="premium-"] .site-header nav{flex-wrap:wrap;gap:8px 12px}
  body[data-template^="premium-"] .site-header .nav-item{min-width:0;max-width:100%}
  body[data-template="premium-object-journal"] .module-feature-grid{scroll-padding-inline:18px}
}
@media(max-width:720px){
  body[data-template^="premium-"] .hero-actions>*{max-width:100%}
  body[data-template="premium-publisher-studio"] .module-feature-card,
  body[data-template="premium-publisher-studio"] .module-feature-card:first-child{min-height:320px}
  .premium-subscribe-bar,
  .premium-compare-tray{left:12px;right:12px;bottom:12px;translate:none;width:auto;max-width:none;max-height:calc(100svh - 24px);overflow:auto}
  .premium-subscribe-bar{padding:16px}
  .premium-compare-tray{padding:16px}
  body.premium-subscribe-active{--premium-fixed-ui-offset:170px}
  body.premium-compare-active{--premium-fixed-ui-offset:178px}
  body.premium-subscribe-active.back-to-top-position-middle-right .back-to-top,
  body.premium-compare-active.back-to-top-position-middle-right .back-to-top,
  body.premium-subscribe-active.back-to-top-position-middle-left .back-to-top,
  body.premium-compare-active.back-to-top-position-middle-left .back-to-top{bottom:calc(18px + var(--premium-fixed-ui-offset,0px))!important}
}



/* Stage 57: template presentation polish and selectable page content layouts. */

/* Standard templates use one deliberate section-heading rule, not two competing decorative lines. */
body:not(.cms-admin):not([data-template^="premium-"]) .section-heading{
  display:block;
  position:relative;
  max-width:min(100%,980px);
  margin-bottom:clamp(30px,4vw,52px);
}
body:not(.cms-admin):not([data-template^="premium-"]) .section-heading::after{content:none!important;display:none!important}
body:not(.cms-admin):not([data-template^="premium-"]) .section-heading .eyebrow{margin-bottom:clamp(14px,2vw,22px)}
body:not(.cms-admin):not([data-template^="premium-"]) .section-heading h2{margin:.05em 0 0;max-width:18ch;line-height:1.02}

/* Every template receives a designed service link; browser-default blue underlined anchors are never exposed. */
body:not(.cms-admin) #services .service-row-link,
body:not(.cms-admin) #services .module-feature-link{
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  width:max-content;
  max-width:100%;
  margin-top:auto;
  padding:.7rem .82rem .7rem .94rem;
  border:1px solid color-mix(in srgb,var(--tenant-primary) 42%,var(--line));
  border-radius:999px;
  background:color-mix(in srgb,var(--tenant-primary) 8%,transparent);
  color:var(--accent-readable,var(--tenant-primary))!important;
  text-decoration:none!important;
  font-size:.75rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  transition:transform .24s ease,background .24s ease,border-color .24s ease;
}
body:not(.cms-admin) #services .service-row-link i,
body:not(.cms-admin) #services .module-feature-link i{
  display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:currentColor;color:var(--tenant-button-ink,#07111f);font-style:normal
}
body:not(.cms-admin) #services .service-row-link:hover,
body:not(.cms-admin) #services .module-feature-link:hover{transform:translateY(-2px);background:color-mix(in srgb,var(--tenant-primary) 14%,transparent);border-color:color-mix(in srgb,var(--tenant-primary) 70%,transparent)}
body:not(.cms-admin) #services .service-row-link:focus-visible,
body:not(.cms-admin) #services .module-feature-link:focus-visible{outline:2px solid var(--tenant-accent);outline-offset:3px}

/* Template demo geometry: clean separation between hero actions and the illustrative stage. */
body.template-catalogue-preview:not([data-template^="premium-"]) .preview-demo-visual{clear:both;margin-top:clamp(46px,6vw,82px)}
body.template-catalogue-preview.theme-events-night .hero{max-width:min(100%,1320px);overflow:hidden}
body.template-catalogue-preview.theme-events-night .hero h1{max-width:12ch;font-size:clamp(3.6rem,8.4vw,7.8rem);line-height:.88;overflow-wrap:normal}
body.template-catalogue-preview.theme-events-night .hero-actions{position:relative;z-index:2;margin-bottom:0}
body.template-catalogue-preview.theme-trade-services .section-heading h2,
body.template-catalogue-preview.theme-manufacturing-industrial .section-heading h2,
body.template-catalogue-preview.theme-construction-builder .section-heading h2{max-width:17ch}

/* Publisher Studio: explicit ink/paper surfaces and unambiguous high contrast on every dark editorial lead tile. */
body[data-template="premium-publisher-studio"] .module-style-contrast .module-feature-card{background:#fffdf7;color:#191918}
body[data-template="premium-publisher-studio"] .module-style-contrast .module-feature-card:first-child{
  background:#191918!important;color:#fff!important;--card-text:#fff;--card-muted:rgba(255,255,255,.74)
}
body[data-template="premium-publisher-studio"] .module-style-contrast .module-feature-card:first-child,
body[data-template="premium-publisher-studio"] .module-style-contrast .module-feature-card:first-child *{
  color:#fff!important;-webkit-text-fill-color:#fff!important
}
body[data-template="premium-publisher-studio"] .module-style-contrast .module-feature-card:first-child p,
body[data-template="premium-publisher-studio"] .module-style-contrast .module-feature-card:first-child li,
body[data-template="premium-publisher-studio"] .module-style-contrast .module-feature-card:first-child small{
  color:rgba(255,255,255,.74)!important;-webkit-text-fill-color:rgba(255,255,255,.74)!important
}
body[data-template="premium-publisher-studio"] .module-style-contrast .module-feature-card:first-child .module-feature-link{
  color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:rgba(255,255,255,.42);background:rgba(255,255,255,.04)
}
body[data-template="premium-publisher-studio"] .module-style-contrast .module-feature-card:first-child .module-feature-link i{
  background:#fff;color:#191918!important;-webkit-text-fill-color:#191918!important
}

/* Correct the Stage 49 cursor rule boundary so malformed declarations cannot leak into responsive styles. */
@media(max-width:720px){
  body[data-template="premium-kinetic-bureau"] #services .service-row-link,
  body[data-template="premium-object-journal"] #services .service-row-link{justify-self:start}
}

/* Public page layout system. */
.page-layout{width:100%}
.page-layout-grid{display:grid;gap:clamp(18px,2.4vw,30px);min-width:0;max-width:none!important;width:100%}
.page-layout-region{min-width:0;padding:clamp(24px,3vw,42px);overflow:hidden}
.page-layout-region h2{margin:0 0 .55em;font-size:clamp(1.55rem,2.7vw,2.55rem);line-height:1.08}
.page-layout-region p{margin:.7em 0 0;max-width:72ch}
.page-layout-media{margin:0 0 24px;overflow:hidden;border-radius:calc(var(--ui-radius,18px) * .72)}
.page-layout-media img{display:block;width:100%;height:auto;max-height:520px;object-fit:cover}
.page-layout-single .page-layout-grid{grid-template-columns:minmax(0,1fr)}
.page-layout-single .page-layout-region{padding:0;border:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important}
.page-layout-sidebar-left .page-layout-grid{grid-template-columns:minmax(220px,.72fr) minmax(0,1.55fr)}
.page-layout-sidebar-right .page-layout-grid{grid-template-columns:minmax(0,1.55fr) minmax(220px,.72fr)}
.page-layout-three-columns .page-layout-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.page-layout-four-columns .page-layout-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.page-layout-sidebar-stacked .page-layout-grid{grid-template-columns:minmax(220px,.72fr) minmax(0,1.55fr);grid-template-areas:"side top" "side bottom"}
.page-layout-sidebar-stacked .page-layout-region-1{grid-area:side}.page-layout-sidebar-stacked .page-layout-region-2{grid-area:top}.page-layout-sidebar-stacked .page-layout-region-3{grid-area:bottom}
.page-layout-featured-two .page-layout-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.page-layout-featured-two .page-layout-region-1{grid-column:1/-1}
.page-layout-featured-three .page-layout-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.page-layout-featured-three .page-layout-region-1{grid-column:1/-1}
.page-layout-featured-four .page-layout-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.page-layout-featured-four .page-layout-region-1{grid-column:1/-1}
.page-layout-stacked .page-layout-grid{grid-template-columns:minmax(0,1fr)}

/* Page editor layout selector. */
.page-layout-picker{display:grid;gap:16px;padding:20px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.025)}
.page-layout-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.page-layout-option{position:relative;display:grid;align-content:start;gap:8px;min-width:0;padding:11px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.025);cursor:pointer;transition:border-color .2s ease,background .2s ease,transform .2s ease}
.page-layout-option:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--tenant-primary) 48%,var(--line))}
.page-layout-option.is-selected{border-color:var(--tenant-primary);background:color-mix(in srgb,var(--tenant-primary) 10%,rgba(255,255,255,.025));box-shadow:0 0 0 2px color-mix(in srgb,var(--tenant-primary) 18%,transparent)}
.page-layout-option>input{position:absolute;opacity:0;pointer-events:none}
.page-layout-option strong{font-size:.86rem;line-height:1.25}.page-layout-option small{color:var(--muted);font-size:.72rem;line-height:1.35}
.page-layout-thumbnail{display:grid;grid-template-columns:repeat(12,1fr);grid-auto-rows:18px;gap:3px;aspect-ratio:1.55;padding:7px;border:1px solid rgba(255,255,255,.11);border-radius:9px;background:#07111e}
.page-layout-thumbnail i{display:block;border-radius:2px;background:linear-gradient(145deg,color-mix(in srgb,var(--tenant-primary) 23%,#21334a),color-mix(in srgb,var(--tenant-accent) 16%,#132237))}
.page-layout-thumbnail .cell-full,.page-layout-thumbnail .cell-row,.page-layout-thumbnail .cell-feature{grid-column:1/-1}
.page-layout-thumbnail .cell-side{grid-column:span 4}.page-layout-thumbnail .cell-main{grid-column:span 8}
.page-layout-thumbnail .cell-third{grid-column:span 4}.page-layout-thumbnail .cell-quarter{grid-column:span 3}.page-layout-thumbnail .cell-half{grid-column:span 6}
.page-layout-thumbnail .cell-side-tall{grid-column:span 4;grid-row:span 2}.page-layout-thumbnail .cell-main-top,.page-layout-thumbnail .cell-main-bottom{grid-column:span 8}
.page-layout-region-list{display:grid;gap:16px}.page-layout-region-editor{padding:18px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.025)}
.page-layout-region-editor[hidden]{display:none}.page-layout-region-heading{display:flex;align-items:flex-start;gap:14px;margin-bottom:14px}.page-layout-region-heading>span{display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:12px;background:linear-gradient(135deg,var(--tenant-primary),var(--tenant-accent));color:#06101f;font-weight:950}.page-layout-region-heading h3{margin:.1rem 0 .2rem}.page-layout-region-heading p{margin:0}

@media(max-width:1080px){.page-layout-options{grid-template-columns:repeat(3,minmax(0,1fr))}.page-layout-four-columns .page-layout-grid,.page-layout-featured-four .page-layout-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.page-layout-featured-four .page-layout-region-1{grid-column:1/-1}}
@media(max-width:820px){.page-layout-sidebar-left .page-layout-grid,.page-layout-sidebar-right .page-layout-grid,.page-layout-sidebar-stacked .page-layout-grid,.page-layout-three-columns .page-layout-grid,.page-layout-featured-three .page-layout-grid{grid-template-columns:1fr}.page-layout-sidebar-stacked .page-layout-grid{grid-template-areas:none}.page-layout-sidebar-stacked .page-layout-region-1,.page-layout-sidebar-stacked .page-layout-region-2,.page-layout-sidebar-stacked .page-layout-region-3{grid-area:auto}.page-layout-featured-three .page-layout-region-1{grid-column:auto}.page-layout-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.page-layout-options{grid-template-columns:1fr}.page-layout-featured-two .page-layout-grid,.page-layout-four-columns .page-layout-grid,.page-layout-featured-four .page-layout-grid{grid-template-columns:1fr}.page-layout-featured-two .page-layout-region-1,.page-layout-featured-four .page-layout-region-1{grid-column:auto}.page-layout-region{padding:22px}}
.page-layout-option:has(input:focus-visible){outline:2px solid var(--tenant-accent);outline-offset:3px}
@media(max-width:720px){
  body[data-template="premium-kinetic-bureau"] .hero h1{font-size:clamp(3.55rem,19vw,6.4rem);max-width:100%;letter-spacing:-.065em}
}


/* Stage 58: advanced builder modules and premium expansion. */
.module-map{overflow:hidden;min-height:var(--map-height,420px);background:#0a1118}.module-map iframe{display:block;width:100%;height:var(--map-height,420px);border:0}.module-map-actions{margin:18px 0 0;display:flex;justify-content:flex-start}
.module-calendar{display:grid;gap:18px}.module-calendar-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.module-calendar-toolbar strong{margin-right:auto;font-size:clamp(1.05rem,2vw,1.35rem)}.module-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));overflow:hidden;background:color-mix(in srgb,var(--panel,#0b1720) 92%,transparent)}.module-calendar-day-name,.module-calendar-day{min-width:0;padding:12px;border-right:1px solid color-mix(in srgb,var(--tenant-primary) 12%,transparent);border-bottom:1px solid color-mix(in srgb,var(--tenant-primary) 12%,transparent)}.module-calendar-day-name{font-size:.72rem;text-transform:uppercase;letter-spacing:.12em;color:var(--muted)}.module-calendar-day{min-height:108px}.module-calendar-day.is-outside{opacity:.32}.module-calendar-day.is-today>strong{display:inline-grid;place-items:center;min-width:30px;height:30px;border-radius:999px;background:var(--tenant-primary);color:var(--tenant-button-ink,#051015)}.module-calendar-day strong{font-size:.85rem}.module-calendar-day-events{display:grid;gap:5px;margin-top:8px}.module-calendar-chip{display:block;padding:5px 7px;border-radius:8px;background:color-mix(in srgb,var(--tenant-primary) 15%,transparent);color:inherit;text-decoration:none;font-size:.72rem;line-height:1.25;overflow:hidden;text-overflow:ellipsis}.module-calendar-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.module-calendar-event{padding:22px}.module-calendar-event time{display:block;margin-bottom:14px;color:var(--tenant-primary);font-size:.76rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.module-calendar-event h3{margin:0 0 8px}.module-calendar[data-view="month"] [data-calendar-list]{display:none}.module-calendar[data-view="list"] [data-calendar-grid]{display:none}
.module-appointment-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(28px,5vw,72px);align-items:start}.module-appointment-services{display:grid;gap:10px;margin-top:28px}.module-appointment-services article{padding:16px 0;border-top:1px solid color-mix(in srgb,var(--tenant-primary) 20%,transparent)}.module-appointment-services strong,.module-appointment-services span{display:inline-block}.module-appointment-services span{float:right;color:var(--tenant-primary);font-size:.8rem;font-weight:800}.module-appointment-services p{margin:7px 0 0;color:var(--muted)}.module-appointment-note{color:var(--muted);font-size:.85rem}
.module-universal-player{margin:0;overflow:hidden;background:#030608}.module-universal-player video,.module-universal-player audio{display:block;width:100%}.module-universal-player video{max-height:min(78vh,820px);object-fit:contain}.module-universal-player audio{min-height:70px;padding:18px}.module-universal-player iframe{display:block;width:100%;height:min(68vw,620px);min-height:220px;border:0}.module-universal-player figcaption{padding:14px 18px;color:var(--muted)}
.module-audio-playlist{display:grid;gap:12px}.module-track{display:grid;grid-template-columns:auto auto minmax(0,1fr);gap:18px;align-items:center;padding:18px}.module-track-number{font:800 .76rem/1 ui-monospace,monospace;color:var(--tenant-primary)}.module-track img{width:84px;height:84px;object-fit:cover;border-radius:calc(var(--premium-radius,18px)*.5)}.module-track h3{margin:0}.module-track p{margin:5px 0 10px;color:var(--muted)}.module-track audio{width:100%;min-width:180px;height:38px}
.cms-admin .media-audio-thumb{display:grid;place-items:center;min-height:170px;font-size:4rem;background:radial-gradient(circle at 50% 45%,color-mix(in srgb,var(--tenant-primary,#36c8ff) 28%,transparent),transparent 55%),#071019}.cms-admin .media-card .media-thumb audio{position:absolute;left:12px;right:12px;bottom:12px;width:calc(100% - 24px);height:34px}.media-reference-list{padding:14px;border:1px solid rgba(128,188,222,.16);border-radius:12px;background:rgba(5,16,24,.45)}

/* Elite transition library: available to every premium template. */
body[data-template^="premium-"] .premium-effect-target{will-change:transform,opacity,clip-path;transition:opacity .8s var(--premium-ease,cubic-bezier(.2,.78,.22,1)),transform .9s var(--premium-ease,cubic-bezier(.2,.78,.22,1)),clip-path 1s var(--premium-ease,cubic-bezier(.2,.78,.22,1)),filter .8s ease}
body[data-template^="premium-"] .premium-effect-target:not(.is-premium-visible){opacity:0;transform:translateY(42px);clip-path:inset(0 0 18% 0);filter:blur(5px)}
body[data-template^="premium-"] .premium-effect-target.is-premium-visible{opacity:1;transform:none;clip-path:inset(0);filter:none}
body.premium-transition-architectural-wipe .premium-effect-target:not(.is-premium-visible){transform:translateX(54px);clip-path:inset(0 100% 0 0)}
body.premium-transition-editorial-mask .premium-effect-target:not(.is-premium-visible){transform:translateY(28px);clip-path:inset(0 0 100% 0)}
body.premium-transition-cinematic-cut .premium-effect-target:not(.is-premium-visible){transform:scale(.96);clip-path:polygon(0 12%,100% 0,100% 88%,0 100%)}
body.premium-transition-minimal .premium-effect-target:not(.is-premium-visible){transform:translateY(14px);clip-path:none;filter:none}
body.premium-text-effect-tracking-expand h1.premium-text-ready,body.premium-text-effect-tracking-expand h2.premium-text-ready{letter-spacing:.1em;transition:letter-spacing 1.15s var(--premium-ease),opacity .7s ease}body.premium-text-effect-tracking-expand h1.premium-text-ready.is-premium-visible,body.premium-text-effect-tracking-expand h2.premium-text-ready.is-premium-visible{letter-spacing:-.035em}
body.premium-text-effect-gradient-scan h1,body.premium-text-effect-gradient-scan h2{background:linear-gradient(100deg,currentColor 0%,currentColor 38%,var(--tenant-primary) 50%,currentColor 62%,currentColor 100%);background-size:240% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:premiumGradientScan 7s ease-in-out infinite}
@keyframes premiumGradientScan{0%,18%{background-position:120% 0}58%,100%{background-position:-120% 0}}
body.premium-media-motion-depth-tilt .module-media,body.premium-media-motion-depth-tilt .module-gallery-item,body.premium-media-motion-depth-tilt .premium-preview-stage{transform:perspective(1000px) rotateX(var(--media-ry,0deg)) rotateY(var(--media-rx,0deg)) translateZ(0);transition:transform .28s ease}
body.premium-media-motion-clip-pan .module-gallery-item img,body.premium-media-motion-clip-pan .module-media img{scale:1.05;translate:-1.5% 0;transition:translate 1.1s var(--premium-ease),scale 1.1s var(--premium-ease)}body.premium-media-motion-clip-pan .module-gallery-item:hover img,body.premium-media-motion-clip-pan .module-media:hover img{translate:1.5% 0;scale:1.08}
body.premium-media-motion-hover-zoom .module-gallery-item img,body.premium-media-motion-hover-zoom .module-media img{transition:transform 1s var(--premium-ease)}body.premium-media-motion-hover-zoom .module-gallery-item:hover img,body.premium-media-motion-hover-zoom .module-media:hover img{transform:scale(1.1)}

/* Music Studio */
body[data-template="premium-music-studio"]{background:#08080a;color:#f7f4ee;--premium-radius:8px}body[data-template="premium-music-studio"] .site-header{background:rgba(8,8,10,.78);border-bottom:1px solid rgba(217,255,63,.22);backdrop-filter:blur(18px)}body[data-template="premium-music-studio"] .brand-mark{border-radius:0;background:var(--tenant-primary);color:#070709}body[data-template="premium-music-studio"] .hero{min-height:980px;padding-top:180px;display:grid;align-content:center}body[data-template="premium-music-studio"] .hero h1{max-width:9.5ch;font-family:Impact,"Arial Narrow",sans-serif;font-size:clamp(5rem,13vw,14rem);line-height:.75;text-transform:uppercase;letter-spacing:-.045em}body[data-template="premium-music-studio"] .hero .lead{max-width:760px;color:#c9c5c0}body[data-template="premium-music-studio"] .hero::after{content:"PLAY / RECORD / RELEASE";position:absolute;right:clamp(18px,4vw,68px);top:48%;writing-mode:vertical-rl;color:var(--tenant-primary);font:800 .72rem/1 ui-monospace,monospace;letter-spacing:.22em}body[data-template="premium-music-studio"] .section-heading h2,body[data-template="premium-music-studio"] .module-heading h2{font-family:Impact,"Arial Narrow",sans-serif;text-transform:uppercase;letter-spacing:-.025em}body[data-template="premium-music-studio"] .card,body[data-template="premium-music-studio"] .module-card{background:#111114;border:1px solid rgba(255,255,255,.12);border-radius:6px;box-shadow:none}body[data-template="premium-music-studio"] .card:hover,body[data-template="premium-music-studio"] .module-card:hover{border-color:var(--tenant-primary)}body[data-template="premium-music-studio"] a:not(.btn){color:inherit;text-decoration:none}body[data-template="premium-music-studio"] .module-track-number,body[data-template="premium-music-studio"] .eyebrow{color:var(--tenant-primary)}
/* Elite Tech */
body[data-template="premium-elite-tech"]{background:#050706;color:#f4f8ef;--premium-radius:12px}body[data-template="premium-elite-tech"] .site-header{margin:14px clamp(12px,2.6vw,42px) 0;border:1px solid rgba(201,255,53,.16);border-radius:10px;background:rgba(5,8,6,.76);backdrop-filter:blur(22px)}body[data-template="premium-elite-tech"] .hero{min-height:1000px;padding-top:190px}body[data-template="premium-elite-tech"] .hero h1{max-width:12ch;font-size:clamp(4.6rem,10vw,11rem);line-height:.84;letter-spacing:-.055em}body[data-template="premium-elite-tech"] .hero::before{content:"SYSTEM / 01";position:absolute;right:clamp(18px,5vw,76px);top:190px;color:var(--tenant-primary);font:800 .72rem/1 ui-monospace,monospace;letter-spacing:.18em}body[data-template="premium-elite-tech"] .card,body[data-template="premium-elite-tech"] .module-card{background:linear-gradient(145deg,rgba(19,29,20,.82),rgba(6,11,7,.92));border:1px solid rgba(201,255,53,.15);border-radius:10px;box-shadow:inset 0 1px rgba(255,255,255,.04),0 30px 80px rgba(0,0,0,.28)}body[data-template="premium-elite-tech"] .card::before,body[data-template="premium-elite-tech"] .module-feature-card::before{content:attr(data-premium-index);display:block;margin-bottom:40px;color:var(--tenant-primary);font:800 .72rem/1 ui-monospace,monospace;letter-spacing:.14em}body[data-template="premium-elite-tech"] .module-feature-link,body[data-template="premium-elite-tech"] .service-row-link{color:#f4f8ef!important;background:rgba(201,255,53,.07);border-color:rgba(201,255,53,.2)}body[data-template="premium-elite-tech"] a:not(.btn){text-decoration:none}
/* Coffee House */
body[data-template="premium-coffee-house"]{background:#f1e9dd;color:#2d211a;--premium-radius:28px;--panel:#fffaf3;--muted:#715f54}body[data-template="premium-coffee-house"] .site-header{background:rgba(247,240,230,.78);border-color:rgba(79,52,35,.12);backdrop-filter:blur(20px)}body[data-template="premium-coffee-house"] .site-header a,body[data-template="premium-coffee-house"] .brand{color:#2d211a}body[data-template="premium-coffee-house"] .brand-mark{background:#3c2a20;color:#fff3df}body[data-template="premium-coffee-house"] .hero{min-height:900px;padding-top:170px}body[data-template="premium-coffee-house"] .hero h1{max-width:12ch;font-family:Georgia,serif;font-size:clamp(4.5rem,9vw,10rem);line-height:.9;font-weight:500;letter-spacing:-.055em}body[data-template="premium-coffee-house"] .hero .lead{color:#6c594e}body[data-template="premium-coffee-house"] .eyebrow{color:#9c4f27}body[data-template="premium-coffee-house"] .card,body[data-template="premium-coffee-house"] .module-card,body[data-template="premium-coffee-house"] .module-form{background:#fffaf3;border:1px solid rgba(79,52,35,.12);color:#2d211a;box-shadow:0 24px 70px rgba(76,50,31,.1)}body[data-template="premium-coffee-house"] .card p,body[data-template="premium-coffee-house"] .module-copy>p,body[data-template="premium-coffee-house"] .module-heading .module-intro,body[data-template="premium-coffee-house"] .module-form label span{color:#715f54}body[data-template="premium-coffee-house"] .section-heading h2,body[data-template="premium-coffee-house"] .module-heading h2{font-family:Georgia,serif;font-weight:500}body[data-template="premium-coffee-house"] input,body[data-template="premium-coffee-house"] select,body[data-template="premium-coffee-house"] textarea{background:#fff;color:#2d211a;border-color:rgba(79,52,35,.2)}body[data-template="premium-coffee-house"] a:not(.btn){color:#4d3425;text-decoration:none}

.cms-admin .theme-preview[data-preview-template="premium-music-studio"]{background:radial-gradient(circle at 24% 72%,var(--swatch-accent),transparent 26%),repeating-linear-gradient(90deg,transparent 0 7%,rgba(217,255,63,.12) 7.2% 7.6%),#08080a}.cms-admin .theme-preview[data-preview-template="premium-elite-tech"]{background:linear-gradient(90deg,rgba(201,255,53,.12) 1px,transparent 1px),linear-gradient(rgba(201,255,53,.08) 1px,transparent 1px),#050706;background-size:32px 32px}.cms-admin .theme-preview[data-preview-template="premium-coffee-house"]{background:radial-gradient(ellipse at 72% 68%,#3a2418 0 8%,transparent 8.5%),radial-gradient(circle at 26% 28%,var(--swatch-primary),transparent 27%),#efe2d0}

@media(max-width:900px){.module-calendar-list{grid-template-columns:repeat(2,minmax(0,1fr))}.module-appointment-layout{grid-template-columns:1fr}.module-calendar-day{min-height:86px;padding:8px}.module-calendar-chip{font-size:.66rem}body[data-template="premium-music-studio"] .hero,body[data-template="premium-elite-tech"] .hero,body[data-template="premium-coffee-house"] .hero{min-height:auto;padding-top:150px}}
@media(max-width:640px){.module-calendar-grid{display:none}.module-calendar[data-view="month"] [data-calendar-list]{display:grid}.module-calendar-toolbar [data-calendar-prev],.module-calendar-toolbar [data-calendar-next]{display:none}.module-calendar-list{grid-template-columns:1fr}.module-track{grid-template-columns:auto minmax(0,1fr)}.module-track img{display:none}.module-track audio{min-width:0}.module-universal-player iframe{height:260px}body[data-template="premium-music-studio"] .hero h1,body[data-template="premium-elite-tech"] .hero h1,body[data-template="premium-coffee-house"] .hero h1{font-size:clamp(3.4rem,17vw,6.6rem)}body[data-template="premium-music-studio"] .hero::after,body[data-template="premium-elite-tech"] .hero::before{display:none}}
@media(prefers-reduced-motion:reduce){body[data-template^="premium-"] .premium-effect-target{opacity:1!important;transform:none!important;clip-path:none!important;filter:none!important;transition:none!important}body.premium-text-effect-gradient-scan h1,body.premium-text-effect-gradient-scan h2{animation:none;background:none;color:inherit}body.premium-media-motion-depth-tilt .module-media,body.premium-media-motion-depth-tilt .module-gallery-item,body.premium-media-motion-depth-tilt .premium-preview-stage{transform:none!important}}

/* Stage 58 premium headline containment: preserve poster scale without clipping long words. */
body[data-template="premium-music-studio"] .hero h1{
  max-width:100%;
  font-size:clamp(4.75rem,10vw,12rem);
  line-height:.8;
  letter-spacing:-.04em;
  text-wrap:balance;
}
body[data-template="premium-elite-tech"] .hero h1{
  max-width:100%;
  font-size:clamp(4.25rem,8.5vw,10rem);
  line-height:.86;
  letter-spacing:-.045em;
  text-wrap:balance;
}
@media(max-width:640px){
  body[data-template="premium-music-studio"] .hero h1{
    font-size:clamp(2.75rem,12vw,4rem);
    line-height:.94;
    letter-spacing:-.03em;
  }
  body[data-template="premium-elite-tech"] .hero h1{
    font-size:clamp(2.65rem,11.25vw,3.8rem);
    line-height:.94;
    letter-spacing:-.03em;
  }
}

/* Stage 58 preview safety: appointment demos remain interactive but cannot submit. */
.module-appointment-form .btn[disabled]{opacity:.55;cursor:not-allowed;filter:saturate(.45);transform:none!important}


/* Stage 58.1: preserve the full 8:5 premium demonstration artwork inside gallery tiles.
   The generated artwork includes typography near the safe edge; forcing it into the
   legacy 4:3 crop removed the opening characters of several titles. */
.module-premium-demo-gallery .module-gallery-item{aspect-ratio:8/5}
.module-premium-demo-gallery .module-gallery-item img{object-position:center center}


/* Stage 58.7: Music Studio reference-matched headline motion.
   Rebuilt from the user-supplied Sunroom frontend implementation. The readable
   heading remains untouched while two pseudo-element colour channels move as
   narrow horizontal clips over a five-second linear alternate cycle. This is
   deliberately CSS-driven: no timers, burst scheduling or generated DOM layers. */
body[data-template="premium-music-studio"] .hero h1.music-studio-glitch-title{
  position:relative;
  isolation:isolate;
  overflow:visible;
  color:#fff;
  text-shadow:none;
  transform-origin:center center;
  will-change:transform;
  animation:musicStudioReferenceSkew 1s infinite linear alternate-reverse!important;
}
body[data-template="premium-music-studio"] .hero h1.music-studio-glitch-title::before,
body[data-template="premium-music-studio"] .hero h1.music-studio-glitch-title::after{
  content:attr(data-glitch-text);
  position:absolute;
  inset:0;
  z-index:1;
  width:100%;
  height:100%;
  margin:0;
  padding:0;
  overflow:hidden;
  pointer-events:none;
  user-select:none;
  color:#fff;
  font:inherit;
  font-weight:inherit;
  line-height:inherit;
  letter-spacing:inherit;
  text-align:inherit;
  text-transform:inherit;
  text-wrap:inherit;
  white-space:normal;
  will-change:clip-path,transform;
}
body[data-template="premium-music-studio"] .hero h1.music-studio-glitch-title::before{
  transform:translate3d(2px,0,0);
  text-shadow:-2px 0 #ff00ff;
  clip-path:inset(12% 0 78% 0);
  animation:musicStudioReferenceChannelA 5s infinite linear alternate-reverse!important;
}
body[data-template="premium-music-studio"] .hero h1.music-studio-glitch-title::after{
  transform:translate3d(-2px,0,0);
  text-shadow:-2px 0 #00ffff;
  clip-path:inset(72% 0 18% 0);
  animation:musicStudioReferenceChannelB 5s infinite linear alternate-reverse!important;
}
@keyframes musicStudioReferenceChannelA{
  0%{clip-path:inset(12% 0 78% 0);transform:translate3d(2px,0,0)}
  20%{clip-path:inset(68% 0 22% 0);transform:translate3d(3px,0,0)}
  40%{clip-path:inset(27% 0 61% 0);transform:translate3d(1px,0,0)}
  60%{clip-path:inset(49% 0 40% 0);transform:translate3d(3px,0,0)}
  80%{clip-path:inset(77% 0 13% 0);transform:translate3d(2px,0,0)}
  100%{clip-path:inset(18% 0 70% 0);transform:translate3d(1px,0,0)}
}
@keyframes musicStudioReferenceChannelB{
  0%{clip-path:inset(72% 0 18% 0);transform:translate3d(-2px,0,0)}
  20%{clip-path:inset(34% 0 56% 0);transform:translate3d(-3px,0,0)}
  40%{clip-path:inset(82% 0 8% 0);transform:translate3d(-1px,0,0)}
  60%{clip-path:inset(16% 0 72% 0);transform:translate3d(-3px,0,0)}
  80%{clip-path:inset(54% 0 36% 0);transform:translate3d(-2px,0,0)}
  100%{clip-path:inset(29% 0 59% 0);transform:translate3d(-1px,0,0)}
}
@keyframes musicStudioReferenceSkew{
  0%{transform:skewX(0deg)}
  10%{transform:skewX(-.55deg)}
  20%{transform:skewX(.55deg)}
  30%,100%{transform:skewX(0deg)}
}
@media(max-width:640px){
  body[data-template="premium-music-studio"] .hero h1.music-studio-glitch-title::before{
    transform:translate3d(1.5px,0,0);
    text-shadow:-1.5px 0 #ff00ff
  }
  body[data-template="premium-music-studio"] .hero h1.music-studio-glitch-title::after{
    transform:translate3d(-1.5px,0,0);
    text-shadow:-1.5px 0 #00ffff
  }
}
/* The CMS globally shortens animations for reduced-motion visitors. This named
   premium-template treatment is user-selectable and must remain visible just as
   it does on the supplied reference site, while retaining very small movement. */
@media(prefers-reduced-motion:reduce){
  body[data-template="premium-music-studio"] .hero h1.music-studio-glitch-title{
    animation:musicStudioReferenceSkew 1s infinite linear alternate-reverse!important
  }
  body[data-template="premium-music-studio"] .hero h1.music-studio-glitch-title::before{
    animation:musicStudioReferenceChannelA 5s infinite linear alternate-reverse!important
  }
  body[data-template="premium-music-studio"] .hero h1.music-studio-glitch-title::after{
    animation:musicStudioReferenceChannelB 5s infinite linear alternate-reverse!important
  }
}

/* Stage 58.8: exact in-page section alignment and shared heading-divider cleanup.
   Same-page targets have no artificial header gap, and the original global
   section-heading divider has been removed at its source. The intentional
   eyebrow rule remains unchanged. */
body:not(.cms-admin):not(.admin-screen) main :where(section[id],[data-module-id][id]){scroll-margin-top:0!important}


/* Stage 58.10: workflow-based tenant administration navigation */
.cms-admin .admin-topbar nav{
  max-width:min(78vw,1180px);
  overflow:visible;
  padding:4px 0;
}
.cms-admin .admin-topbar nav>.admin-workflow-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  flex-wrap:wrap;
  width:100%;
}
.cms-admin .admin-workflow-nav>.admin-nav-link,
.cms-admin .admin-nav-group>summary{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:8px 11px;
  border:1px solid transparent;
  border-radius:10px;
  color:#b9ccda;
  background:transparent;
  font-size:.86rem;
  font-weight:780;
  line-height:1;
  white-space:nowrap;
  text-decoration:none;
  cursor:pointer;
  list-style:none;
  transition:background .16s,border-color .16s,color .16s,transform .16s;
}
.cms-admin .admin-nav-group>summary::-webkit-details-marker{display:none}
.cms-admin .admin-nav-group>summary::after{
  content:'▾';
  color:#7692a6;
  font-size:.72rem;
  transform-origin:center;
  transition:transform .16s,color .16s;
}
.cms-admin .admin-nav-group[open]>summary::after{transform:rotate(180deg)}
.cms-admin .admin-workflow-nav>.admin-nav-link:hover,
.cms-admin .admin-nav-group>summary:hover,
.cms-admin .admin-nav-group[open]>summary,
.cms-admin .admin-nav-group.is-active>summary,
.cms-admin .admin-workflow-nav>.admin-nav-link.is-active{
  color:#fff;
  background:rgba(34,211,238,.1);
  border-color:rgba(34,211,238,.2);
  box-shadow:none;
}
.cms-admin .admin-nav-group.is-active>summary::after,
.cms-admin .admin-nav-group[open]>summary::after{color:#67e8f9}
.cms-admin .admin-nav-group{
  position:relative;
  flex:0 0 auto;
}
.cms-admin .admin-nav-menu{
  position:absolute;
  top:calc(100% + 9px);
  right:0;
  z-index:90;
  display:grid;
  gap:3px;
  width:max-content;
  min-width:230px;
  max-width:min(320px,calc(100vw - 32px));
  padding:8px;
  border:1px solid rgba(125,211,252,.2);
  border-radius:14px;
  background:rgba(7,14,27,.985);
  box-shadow:0 24px 65px rgba(0,0,0,.5);
  backdrop-filter:blur(18px);
}
.cms-admin .admin-nav-menu .admin-nav-link{
  display:flex;
  align-items:center;
  min-height:39px;
  width:100%;
  padding:9px 11px;
  border:1px solid transparent;
  border-radius:9px;
  color:#bfd0dc;
  font-size:.86rem;
  font-weight:720;
  line-height:1.25;
  text-decoration:none;
  white-space:normal;
}
.cms-admin .admin-topbar nav .admin-nav-menu a.admin-nav-link:last-child{
  color:#bfd0dc;
}
.cms-admin .admin-nav-menu .admin-nav-link:hover,
.cms-admin .admin-nav-menu .admin-nav-link.is-active,
.cms-admin .admin-topbar nav .admin-nav-menu a.admin-nav-link:last-child:hover,
.cms-admin .admin-topbar nav .admin-nav-menu a.admin-nav-link:last-child.is-active{
  color:#fff;
  background:rgba(34,211,238,.1);
  border-color:rgba(34,211,238,.18);
}
.cms-admin .admin-workflow-nav>.admin-nav-view-site{
  border-color:rgba(34,211,238,.24);
  color:#bff7ff;
}
.cms-admin .admin-workflow-nav>.admin-nav-logout{
  color:#fecaca;
}
.cms-admin .admin-workflow-nav>.admin-nav-logout:hover{
  color:#fff;
  background:rgba(248,113,113,.12);
  border-color:rgba(248,113,113,.25);
}
@media(max-width:1100px){
  .cms-admin .admin-topbar{
    align-items:flex-start;
    flex-direction:column;
    gap:10px;
  }
  .cms-admin .admin-topbar nav{
    width:100%;
    max-width:none;
  }
  .cms-admin .admin-topbar nav>.admin-workflow-nav{
    justify-content:flex-start;
  }
}
@media(max-width:680px){
  .cms-admin .admin-topbar nav>.admin-workflow-nav{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:start;
  }
  .cms-admin .admin-workflow-nav>.admin-nav-link,
  .cms-admin .admin-nav-group,
  .cms-admin .admin-nav-group>summary{
    width:100%;
  }
  .cms-admin .admin-nav-group>summary{
    justify-content:space-between;
  }
  .cms-admin .admin-nav-group[open]{grid-column:1/-1}
  .cms-admin .admin-nav-menu{
    position:static;
    width:100%;
    max-width:none;
    min-width:0;
    margin-top:6px;
    box-shadow:none;
  }
}
@media(max-width:420px){
  .cms-admin .admin-topbar nav>.admin-workflow-nav{grid-template-columns:1fr}
  .cms-admin .admin-nav-group[open]{grid-column:auto}
}

/* Stage 59 reusable consultancy modules from the Profile PR import. */
.module-profilepr-features,
.module-profilepr-testimonials{
  display:grid;
  grid-template-columns:repeat(var(--module-columns,3),minmax(0,1fr));
  gap:18px;
}
.module-profilepr-features article,
.module-profilepr-testimonials blockquote,
.module-profilepr-services article{
  margin:0;
  padding:22px;
  border:1px solid color-mix(in srgb,var(--accent) 24%,transparent);
  background:color-mix(in srgb,var(--panel) 94%,var(--accent) 6%);
}
.module-profilepr-features h3,
.module-profilepr-services h3{margin:0 0 8px}
.module-profilepr-features p,
.module-profilepr-services p,
.module-profilepr-testimonials p{margin:0;color:var(--muted)}
.module-profilepr-services{display:grid;grid-template-columns:repeat(var(--module-columns,2),minmax(0,1fr));gap:18px}
.module-profilepr-services article{display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:start}
.module-profilepr-services article>span{font-size:2rem;line-height:1;color:var(--accent);font-family:Georgia,'Times New Roman',serif}
.module-profilepr-testimonials cite{display:block;margin-top:14px;color:var(--accent);font-style:normal;font-weight:700}
@media(max-width:850px){.module-profilepr-features,.module-profilepr-testimonials,.module-profilepr-services{grid-template-columns:1fr}}

/* Stage 60: standalone off-boarding */
.offboard-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.offboard-summary-grid>article{border:1px solid rgba(111,211,223,.24);background:rgba(5,18,31,.62);padding:22px;clip-path:polygon(0 0,calc(100% - 16px) 0,100% 16px,100% 100%,16px 100%,0 calc(100% - 16px))}
.offboard-summary-grid h2{margin:.35rem 0 .65rem}
.offboard-boundary .info-grid article ul{margin:.75rem 0 0;padding-left:1.15rem}
.offboard-boundary .info-grid li{margin:.45rem 0}
.branding-removal-card{border-color:rgba(247,201,72,.38);background:linear-gradient(135deg,rgba(247,201,72,.07),rgba(34,211,238,.04))}
.offboard-export-form{display:grid;grid-template-columns:1fr;gap:18px}
.offboard-export-form fieldset{border:1px solid rgba(111,211,223,.22);padding:18px;margin:0}
.offboard-export-form legend{padding:0 8px;font-weight:800}
.toggle-field.is-disabled{opacity:.55}
.offboard-blocker{border-color:#ef4444;background:rgba(127,29,29,.18)}
.standalone-design-lock{border-color:rgba(247,201,72,.35);background:rgba(247,201,72,.07)}
@media(max-width:900px){.offboard-summary-grid{grid-template-columns:1fr}}
