.cbp-page {
    --cbp-ink: #2d243c;
    --cbp-muted: #796e89;
    --cbp-purple: #6b39f4;
    --cbp-line: #e9e3f0;
    --demo-color: #6b39f4;
    --demo-tint: #eee6ff;
    color: var(--cbp-ink);
    background: #fff;
    overflow: clip;
}
.cbp-page *, .cbp-page *::before, .cbp-page *::after { box-sizing: border-box; }
.cbp-page .container { max-width: 1200px; }
.cbp-page [hidden] { display: none !important; }
.cbp-page h1, .cbp-page h2, .cbp-page h3, .cbp-page h4 { color: var(--cbp-ink); letter-spacing: -.035em; font-weight: 650; text-transform: none; }
.cbp-page h2 { font-size: clamp(27px, 3.1vw, 40px); line-height: 1.22; margin: 0; }
.cbp-page p { color: var(--cbp-muted); line-height: 1.8; }
.cbp-page a { text-decoration: none; }
.cbp-page button, .cbp-page input { font: inherit; }
.cbp-page a:focus-visible, .cbp-page button:focus-visible, .cbp-page summary:focus-visible { outline: 2px solid var(--cbp-purple); outline-offset: 5px; border-radius: 4px; }
.cbp-page section[id] { scroll-margin-top: 100px; }
.cbp-eyebrow { display: block; margin-bottom: 18px; color: #796a89; font-size: 10px; font-weight: 700; letter-spacing: .13em; line-height: 1.7; text-transform: uppercase; }
.cbp-hero { padding: 86px 0 66px; text-align: center; background: radial-gradient(ellipse at 50% 0, #f1ecff 0, transparent 65%); }
.cbp-hero .cbp-eyebrow { color: var(--cbp-purple); }
.cbp-hero h1 { margin: 0 auto 24px; max-width: 1000px; font-size: clamp(37px, 5.2vw, 66px); line-height: 1.13; }
.cbp-hero h1 > span { color: #7950cd; }
.cbp-hero p { max-width: 590px; margin: 0 auto; font-size: 16px; }
.cbp-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.cbp-button { min-height: 46px; padding: 13px 22px; border: 1px solid transparent; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; font-size: 13px; font-weight: 600; transition: background .18s, box-shadow .18s; }
.cbp-button i { font-size: 11px; }
.cbp-button-primary { background: var(--cbp-purple); color: #fff; box-shadow: 0 5px 14px #6b39f419; }
.cbp-button-primary:hover { background: #5827dc; color: #fff; box-shadow: 0 7px 18px #6b39f428; }
.cbp-button-secondary { color: #71627f; background: #fff; border-color: var(--cbp-line); }
.cbp-button-secondary:hover { color: var(--cbp-purple); background: #faf8ff; }
.cbp-hero-notes { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 25px; list-style: none; padding: 0; margin: 24px 0 0; color: var(--cbp-muted); font-size: 11px; }
.cbp-hero-notes i { margin-right: 6px; color: #6d9c8b; font-size: 9px; }
.cbp-preview-section { padding: 25px 0 85px; }
.cbp-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 30px; }
.cbp-section-heading .cbp-eyebrow { margin-bottom: 10px; }
.cbp-section-heading > p { max-width: 365px; margin: 0; font-size: 14px; }
.cbp-preview-section .cbp-section-heading h2 { font-size: clamp(25px, 2.8vw, 34px); }
.cbp-demo { display: grid; grid-template-columns: 262px minmax(0, 1fr); padding: 10px; border: 1px solid var(--cbp-line); border-radius: 24px; background: #f8f6fc; box-shadow: 0 22px 60px -32px #36244940; }
.cbp-controls { padding: 24px 22px 20px 14px; min-width: 0; display: flex; flex-direction: column; }
.cbp-controls-heading { display: flex; gap: 12px; align-items: center; margin-bottom: 30px; }
.cbp-controls-heading strong, .cbp-controls-heading small { display: block; }
.cbp-controls-heading strong { font-size: 14px; font-weight: 650; }
.cbp-controls-heading small { margin-top: 2px; font-size: 11px; color: var(--cbp-muted); }
.cbp-settings-icon { flex: 0 0 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--cbp-line); background: #fff; color: #9d88b3; font-size: 13px; }
.cbp-controls fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.cbp-controls legend { float: none; width: auto; margin: 0 0 12px; color: var(--cbp-muted); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.cbp-toggle { display: flex; align-items: center; justify-content: space-between; position: relative; gap: 8px; min-height: 38px; margin: 0; color: #665876; font-size: 12px; cursor: pointer; }
.cbp-toggle input, .cbp-color-picker input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.cbp-toggle-track { position: relative; flex: 0 0 30px; height: 18px; border-radius: 20px; background: #ddd6e7; transition: background .2s; }
.cbp-toggle-track::after { content: ''; position: absolute; width: 12px; height: 12px; border-radius: 50%; top: 3px; left: 3px; background: #fff; box-shadow: 0 1px 3px #33264115; transition: transform .2s; }
.cbp-toggle input:checked + .cbp-toggle-track { background: var(--cbp-purple); }
.cbp-toggle input:checked + .cbp-toggle-track::after { transform: translateX(12px); }
.cbp-toggle input:focus-visible + .cbp-toggle-track { outline: 2px solid var(--cbp-purple); outline-offset: 4px; }
.cbp-controls-note { display: flex; align-items: start; gap: 9px; margin: 5px 0 25px; font-size: 11px; }
.cbp-controls-note i { margin-top: 6px; color: #b4a5c4; }
.cbp-demo-status { display: block; padding-top: 18px; border-top: 1px solid var(--cbp-line); margin-top: auto; color: var(--cbp-muted); font-size: 11px; }
.cbp-portal { min-width: 0; border: 1px solid #e6deee; background: #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.cbp-mark { display: inline-block; width: 36px; height: 36px; flex-shrink: 0; color: var(--demo-color); background: currentColor; -webkit-mask: url('../images/logo/visualizer-logomark.svg') center / contain no-repeat; mask: url('../images/logo/visualizer-logomark.svg') center / contain no-repeat; transition: color .3s; }
.cbp-lockup { display: flex; align-items: center; gap: 11px; color: var(--demo-color); transition: color .3s; }
.cbp-lockup strong { font-size: 30px; font-weight: 700; letter-spacing: -.045em; white-space: nowrap; }
.cbp-lockup strong > span { font-size: .62em; font-weight: 500; letter-spacing: -.025em; }
.cbp-mini-app { width: 43px; height: 43px; border-radius: 12px; display: grid; place-items: center; background: var(--demo-color); box-shadow: 0 6px 12px #32204414; transition: background .3s; }
.cbp-mini-app .cbp-mark { width: 27px; height: 27px; color: #fff; }
.cbp-file-icon { width: 33px; height: 36px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid #ebe4f3; border-radius: 8px; color: #ad96c2; background: #faf8fd; font-size: 13px; }
.cbp-page button:disabled { cursor: wait; opacity: .5; }
.cbp-page .cbp-example-note { margin: 15px 0 0; text-align: center; color: var(--cbp-muted); font-size: 11px; }
.cbp-heading-center { display: block; max-width: 730px; text-align: center; margin: 0 auto 40px; }
.cbp-heading-center > p { max-width: 660px; margin: 17px auto 0; }
.cbp-problems { padding: 80px 0; background: #f8f6fc; }
.cbp-problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.cbp-problem { padding: 34px; background: #fff; border: 1px solid var(--cbp-line); border-radius: 20px; }
.cbp-problem .cbp-eyebrow { font-size: 9px; margin-bottom: 24px; }
.cbp-problem h3 { font-size: clamp(24px, 2.6vw, 31px); line-height: 1.35; margin: 0 0 17px; }
.cbp-problem h3 span { color: #7950cd; }
.cbp-problem > p { margin: 0; font-size: 14px; }
.cbp-lost-demo { margin-top: 30px; padding: 22px; background: #fcfaff; border: 1px solid #f0e9f6; border-radius: 13px; }
.cbp-message { border: 1px solid #eee7f5; padding: 13px; border-radius: 10px; background: #fff; color: var(--cbp-muted); font-size: 12px; }
.cbp-message i { margin-right: 7px; color: #b7a5c7; }
.cbp-found { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.cbp-found strong, .cbp-found small { display: block; }
.cbp-found strong { color: #776088; font-size: 11px; }
.cbp-found small { color: var(--cbp-muted); font-size: 10px; margin-top: 4px; }
.cbp-found > i { margin-left: auto; color: #6d9c8b; font-size: 12px; }
.cbp-color-picker { border: 0; padding: 0; margin: 25px 0 17px; display: flex; align-items: center; gap: 14px; }
.cbp-color-picker legend { float: left; width: auto; padding: 0; margin: 0 5px 0 0; color: var(--cbp-muted); font-size: 11px; line-height: 26px; }
.cbp-color-picker label { margin: 0; cursor: pointer; line-height: 0; position: relative; }
.cbp-color-picker label > span:not(.visually-hidden) { display: block; width: 23px; height: 23px; background: var(--swatch); border: 3px solid #fff; border-radius: 50%; }
.cbp-color-picker input:checked + span { outline: 2px solid var(--swatch); outline-offset: 1px; }
.cbp-color-picker input:focus-visible + span { box-shadow: 0 0 0 5px #ded4ee; }
.cbp-sync-previews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cbp-sync-previews figure { margin: 0; min-width: 0; }
.cbp-sync-previews figcaption { margin-top: 9px; text-align: center; color: var(--cbp-muted); font-size: 10px; }
.cbp-sync-scene { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 11px; height: 105px; border: 1px solid #e5dbef; border-radius: 12px; transition: background .3s, border-color .3s; }
.cbp-sync-scene-app { background: var(--demo-tint); }
.cbp-sync-scene .cbp-mini-app { width: 51px; height: 51px; border-radius: 14px; }
.cbp-sync-scene .cbp-mini-app .cbp-mark { width: 32px; height: 32px; }
.cbp-sync-scene-export .cbp-lockup { gap: 4px; }
.cbp-sync-scene-export .cbp-mark { width: 15px; height: 15px; }
.cbp-sync-scene-export .cbp-lockup strong { font-size: 13px; }
.cbp-sync-scene-export small { font-size: 7px; color: #ab94b8; }
.cbp-sync-scene-portal { border-top: 4px solid var(--demo-color); }
.cbp-sync-scene-portal .cbp-mark { width: 26px; height: 26px; }
.cbp-sync-lines { width: 50px; height: 16px; background: repeating-linear-gradient(180deg, var(--demo-tint) 0 3px, transparent 3px 6px); }
.cbp-problem .cbp-sync-status { margin: 13px 0 0; min-height: 36px; color: var(--cbp-muted); font-size: 11px; }
.cbp-control-section { padding: 80px 0; }
.cbp-control-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 45px; }
.cbp-detail-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #f7f3fd; color: #a081bc; margin-bottom: 22px; font-size: 15px; }
.cbp-control-grid h3 { margin: 0 0 13px; font-size: 19px; line-height: 1.4; }
.cbp-control-grid p { font-size: 14px; margin: 0; }
.cbp-workflow { padding: 70px 0; border-top: 1px solid #f0ebf5; border-bottom: 1px solid #f0ebf5; }
.cbp-workflow-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0; list-style: none; margin: 0; }
.cbp-workflow-steps li { min-width: 0; padding: 23px 20px; border-left: 1px solid var(--cbp-line); }
.cbp-workflow-steps li:first-child { border-left: 0; }
.cbp-step-number { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #e6dfec; border-radius: 50%; color: #ac99ba; font-size: 9px; margin-bottom: 19px; }
.cbp-workflow-steps strong { display: block; color: #6d557e; font-size: 14px; font-weight: 600; }
.cbp-workflow-steps a:hover strong { color: var(--cbp-purple); }
.cbp-workflow-steps p { margin: 9px 0 0; font-size: 12px; line-height: 1.7; }
.cbp-workflow-steps .is-final { background: #f8f4ff; border-radius: 0 12px 12px 0; }
.cbp-workflow-steps .is-final strong { color: var(--cbp-purple); }
.cbp-workflow-steps .is-final .cbp-step-number { background: var(--cbp-purple); color: #fff; border-color: var(--cbp-purple); }
.cbp-page .cbp-workflow-note { text-align: center; font-size: 12px; margin: 27px 0 0; }
.cbp-workflow-note a, .cbp-text-link { color: var(--cbp-purple); }
.cbp-workflow-note a:hover, .cbp-text-link:hover { text-decoration: underline; }
.cbp-faq { padding: 80px 0; }
.cbp-faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 65px; }
.cbp-faq-layout h2 { max-width: 350px; }
.cbp-faq-list details { border-bottom: 1px solid var(--cbp-line); padding: 19px 0; }
.cbp-faq-list details:first-child { padding-top: 0; }
.cbp-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; list-style: none; cursor: pointer; color: #705b80; font-size: 14px; font-weight: 600; line-height: 1.7; }
.cbp-faq-list summary::-webkit-details-marker { display: none; }
.cbp-faq-list summary > span { color: #b49bc5; font-size: 20px; font-weight: 400; transition: transform .2s; }
.cbp-faq-list details[open] summary > span { transform: rotate(45deg); }
.cbp-faq-list p { font-size: 14px; margin: 15px 0 0; }
.cbp-closing { text-align: center; padding: 76px 0 87px; background: #f8f5fe; }
.cbp-closing h2 { font-size: clamp(30px, 3.8vw, 48px); }
.cbp-closing p { margin: 18px 0 0; font-size: 14px; }
.cbp-closing .cbp-actions { gap: 24px; }
.cbp-text-link { font-size: 12px; font-weight: 500; }
@media (max-width: 991px) {
    .cbp-hero { padding-top: 60px; }
    .cbp-demo { grid-template-columns: 220px minmax(0, 1fr); }
    .cbp-controls { padding-left: 9px; padding-right: 16px; }
    .cbp-problem { padding: 25px; }
    .cbp-sync-previews { gap: 7px; }
    .cbp-sync-scene { height: 85px; }
    .cbp-sync-scene-export .cbp-lockup strong { font-size: 10px; }
    .cbp-sync-scene-export .cbp-mark { width: 11px; height: 11px; }
    .cbp-control-grid { gap: 28px; }
    .cbp-workflow-steps li { padding: 19px 12px; }
    .cbp-faq-layout { gap: 35px; }
}
@media (max-width: 767px) {
    .cbp-hero { padding: 48px 0; }
    .cbp-hero p { font-size: 14px; }
    .cbp-hero-notes { gap: 8px 14px; font-size: 11px; }
    .cbp-preview-section { padding: 10px 0 55px; }
    .cbp-section-heading { display: block; }
    .cbp-section-heading > p { margin-top: 15px; max-width: none; }
    .cbp-demo { grid-template-columns: minmax(0, 1fr); border-radius: 18px; padding: 8px; }
    .cbp-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 0 25px; padding: 17px 13px; }
    .cbp-controls-heading, .cbp-controls-note, .cbp-demo-status { grid-column: 1 / -1; }
    .cbp-controls-heading { margin-bottom: 20px; }
    .cbp-controls fieldset { margin-bottom: 12px; }
    .cbp-controls-note { margin: 5px 0 12px; }
    .cbp-demo-status { padding-top: 10px; }
    .cbp-problems, .cbp-control-section, .cbp-workflow, .cbp-faq { padding: 55px 0; }
    .cbp-problem-grid, .cbp-control-grid, .cbp-faq-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .cbp-problem { padding: 27px; }
    .cbp-problem h3 { font-size: 27px; }
    .cbp-control-grid { gap: 32px; }
    .cbp-detail-icon { margin-bottom: 15px; }
    .cbp-control-grid p { max-width: 510px; }
    .cbp-sync-scene { height: 100px; }
    .cbp-sync-scene-export .cbp-lockup strong { font-size: 13px; }
    .cbp-sync-scene-export .cbp-mark { width: 14px; height: 14px; }
    .cbp-workflow-steps { grid-template-columns: minmax(0, 1fr); }
    .cbp-workflow-steps li, .cbp-workflow-steps li:first-child { border: 0; border-bottom: 1px solid var(--cbp-line); padding: 20px; }
    .cbp-workflow-steps a { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 18px; }
    .cbp-step-number { grid-row: span 2; margin: 2px 0 0; }
    .cbp-workflow-steps .is-final { border-radius: 12px; border: 0; }
    .cbp-workflow-steps p { margin-top: 4px; }
    .cbp-faq-layout { gap: 30px; }
    .cbp-closing { padding: 55px 0; }
}
@media (max-width: 420px) {
    .cbp-hero h1 { font-size: 34px; }
    .cbp-actions { gap: 10px; }
    .cbp-button { padding: 12px 15px; font-size: 12px; gap: 10px; }
    .cbp-controls { column-gap: 16px; padding-inline: 9px; }
    .cbp-toggle { font-size: 11px; }
    .cbp-lockup strong { font-size: 25px; }
    .cbp-problem { padding: 23px; }
    .cbp-lost-demo { padding: 15px; }
    .cbp-sync-scene-export .cbp-lockup strong { font-size: 10px; }
    .cbp-sync-scene-export .cbp-mark { width: 11px; height: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .cbp-page *, .cbp-page *::before, .cbp-page *::after { transition: none !important; }
}

/* The example uses the real portal in its own viewport. */
.cbp-portal-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--cbp-line); font-size: 11px; color: #675974; }
.cbp-portal-bar-divider { padding: 0 7px; color: #b3a7bf; }
.cbp-portal-bar a { color: var(--cbp-purple); font-size: 10px; white-space: nowrap; }
.cbp-portal-bar a i { margin-left: 4px; font-size: 9px; }
.cbp-preview-nav { display: flex; gap: 7px; padding: 10px 17px; background: #fcfbff; border-bottom: 1px solid var(--cbp-line); }
.cbp-preview-nav button { padding: 7px 10px; border: 0; border-radius: 6px; background: transparent; color: #655571; font-size: 11px; cursor: pointer; }
.cbp-preview-nav button:hover:not(:disabled) { background: #eee7ff; color: var(--cbp-purple); }
.cbp-preview-nav button:last-child { margin-left: auto; color: var(--cbp-purple); }
.cbp-preview-nav button i { font-size: 9px; margin-left: 5px; }
.cbp-preview-nav button:disabled { cursor: default; }
.cbp-portal-frame { display: block; border: 0; width: 100%; height: 740px; background: #efe9fc; }
.cbp-portal-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--cbp-line); color: #83718f; font-size: 10px; }
.cbp-portal-footer i { margin-right: 5px; }

/* Only the example document uses these additions; published portals keep their own styles. */
html.cbp-preview-root { height: 100%; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; }
.cbp-preview-document { min-height: 100%; margin: 0; overflow: visible; }
.cbp-preview-document [hidden] { display: none !important; }
.cbp-preview-document .brand-identity-reveal { opacity: 1; transform: none; }
.cbp-preview-document .brand-identity-hero { min-height: 440px; }
.cbp-preview-document .brand-identity-hero.has-client-delivery .brand-identity-hero-logo { height: 220px; }
.cbp-preview-document .cbp-preview-files { grid-template-columns: minmax(0, 1fr); }
.cbp-preview-file { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 92px; padding: 18px; border: 1px solid #e5e1e9; border-radius: 8px; background: #fff; }
.cbp-preview-file > i:first-child { display: grid; place-items: center; height: 40px; color: #6b39f4; background: #f1edff; border-radius: 8px; font-size: 15px; }
.cbp-preview-file > i:last-child { color: #8e8798; font-size: 11px; }
.cbp-preview-document button:disabled { opacity: .5; cursor: default; }
.cbp-preview-document .cbp-preview-empty { padding: 100px 30px; margin: 0; text-align: center; font-size: 16px; color: #716b78; }
.cbp-preview-document a:focus-visible, .cbp-preview-document button:focus-visible { outline: 2px solid #6b39f4; outline-offset: 4px; }
@media (max-width: 767px) {
    .cbp-portal-bar { align-items: flex-start; padding: 13px; gap: 10px; }
    .cbp-portal-bar > span { font-size: 10px; }
    .cbp-preview-nav { gap: 2px; padding: 9px; }
    .cbp-preview-nav button { padding: 7px; font-size: 10px; }
    .cbp-portal-frame { height: 650px; }
    .cbp-portal-footer { flex-wrap: wrap; padding: 12px; font-size: 9px; }
    .cbp-preview-document .brand-identity-hero { min-height: 400px; }
    .cbp-preview-document .brand-identity-hero-logo { width: 75%; }
}
@media (prefers-reduced-motion: reduce) {
    html.cbp-preview-root { scroll-behavior: auto; }
}
