/* The platform's own pages: front page, sign-up, owner console. */
:root {
  --p-bg: #F7F4EE; --p-surface: #FFFFFF; --p-ink: #14202B; --p-muted: #56616B; --p-line: #E3DDD2; --p-soft: #EFEAE0;
  --p-accent: #B4741B; --p-accent-ink: #FFFFFF; --p-deep: #14202B; --p-deep-ink: #F4EFE6;
  --p-ok: #1E6B45; --p-ok-bg: #E2F3EA; --p-warn: #7A4A0C; --p-warn-bg: #FBEFD9; --p-bad: #B42318; --p-bad-bg: #FDECEA;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --p-bg: #0F151B; --p-surface: #161E26; --p-ink: #ECE7DE; --p-muted: #A9B3BB; --p-line: #26313B; --p-soft: #1B242D;
    --p-accent: #E0A04A; --p-accent-ink: #1A1206; --p-deep: #0A0F14; --p-deep-ink: #ECE7DE;
    --p-ok: #7DD3A8; --p-ok-bg: #12301F; --p-warn: #F4C27A; --p-warn-bg: #3A2A0F; --p-bad: #FF9B90; --p-bad-bg: #3A1512;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body.platform { margin: 0; background: var(--p-bg); color: var(--p-ink); font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.platform a { color: var(--p-accent); }
.platform :focus-visible { outline: 3px solid var(--p-accent); outline-offset: 2px; }
.platform h1, .platform h2, .platform h3 { font-family: "Spectral", Georgia, serif; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .4em; }
.p-wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.p-narrow { max-width: 560px; margin: 0 auto; padding: 32px 16px 64px; }

/* header / footer */
.p-top { display: flex; align-items: center; gap: 16px; padding-block: 18px; }
.p-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--p-ink) !important; text-decoration: none; font-size: 17px; }
.p-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--p-accent); color: var(--p-accent-ink); display: grid; place-items: center; font-family: "Spectral", serif; font-size: 19px; }
.p-top .spacer { flex: 1; }
.p-top nav a { color: var(--p-ink); text-decoration: none; font-weight: 600; font-size: 15px; margin-left: 18px; }
.p-top nav a[lang] { font-weight: 500; color: var(--p-muted); }
.p-foot { border-top: 1px solid var(--p-line); padding: 28px 0 40px; color: var(--p-muted); font-size: 14px; }

/* buttons */
.p-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--p-line); background: var(--p-surface); color: var(--p-ink) !important; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.p-btn.primary { background: var(--p-accent); border-color: var(--p-accent); color: var(--p-accent-ink) !important; }
.p-btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 9px; }
.p-btn.danger { color: var(--p-bad) !important; }
.p-btn.block { width: 100%; }

/* front page */
.p-hero { padding-block: 56px 64px; display: grid; gap: 36px; }
.p-hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); max-width: 14ch; }
.p-hero .lede { font-size: 1.2rem; color: var(--p-muted); max-width: 36rem; }
.p-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.p-hero-card { background: var(--p-deep); color: var(--p-deep-ink); border-radius: 22px; padding: 28px; align-self: start; }
.p-hero-card h2 { font-size: 1.35rem; }
.p-hero-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.p-hero-card li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; }
.p-hero-card li::before { content: "✓"; color: var(--p-accent); font-weight: 800; }
.p-section { padding: 56px 0; border-top: 1px solid var(--p-line); }
.p-section > h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); max-width: 22ch; }
.p-grid { display: grid; gap: 16px; margin-top: 28px; }
.p-tile { background: var(--p-surface); border: 1px solid var(--p-line); border-radius: 16px; padding: 22px; }
.p-tile h3 { font-size: 1.2rem; }
.p-tile p { margin: 0; color: var(--p-muted); }
.p-quote { font-family: "Spectral", serif; font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.4; max-width: 40rem; }
@media (min-width: 820px) {
  .p-hero { grid-template-columns: 1.3fr 1fr; align-items: center; padding-block: 80px 88px; }
  .p-grid.three { grid-template-columns: repeat(3, 1fr); }
  .p-grid.two { grid-template-columns: repeat(2, 1fr); }
}

/* forms */
.p-card { background: var(--p-surface); border: 1px solid var(--p-line); border-radius: 18px; padding: 24px; }
.p-card + .p-card { margin-top: 16px; }
.platform .field { margin-bottom: 16px; }
.platform label, .platform .label { display: block; font-weight: 650; font-size: 15px; margin-bottom: 6px; }
.platform input[type=text], .platform input[type=email], .platform input[type=password], .platform input[type=search], .platform select, .platform textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--p-line); background: var(--p-bg); color: var(--p-ink); font: inherit; }
.platform .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.platform .check input { margin-top: 5px; width: 18px; height: 18px; }
.platform .help { color: var(--p-muted); font-size: 14px; margin-top: 4px; }
.platform .errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: var(--p-bad); font-size: 14px; font-weight: 600; }
.platform .muted { color: var(--p-muted); }
.platform .small { font-size: 14px; }
.p-slug { display: flex; align-items: stretch; }
.p-slug input { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.p-slug span { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--p-line); border-left: 0; border-radius: 0 10px 10px 0; background: var(--p-soft); color: var(--p-muted); font-size: 15px; white-space: nowrap; }
.form-two { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .form-two { grid-template-columns: 1fr 1fr; } }
.msg { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; background: var(--p-soft); font-weight: 600; }
.msg-success { background: var(--p-ok-bg); color: var(--p-ok); }
.msg-error { background: var(--p-bad-bg); color: var(--p-bad); }
.messages { padding: 0; }

/* console */
.c-top { background: var(--p-deep); color: var(--p-deep-ink); }
.c-top .p-brand { color: var(--p-deep-ink) !important; }
.c-top nav a { color: var(--p-deep-ink); }
.c-top form { margin: 0 0 0 18px; }
.c-top button { background: none; border: 0; color: var(--p-deep-ink); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.c-main { padding-block: 28px 64px; }
.c-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.c-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.c-stat { background: var(--p-surface); border: 1px solid var(--p-line); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--p-ink) !important; }
.c-stat span { display: block; font-size: 13px; color: var(--p-muted); font-weight: 600; }
.c-stat strong { font-size: 1.6rem; }
.c-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.c-filter input { flex: 1 1 220px; }
.c-table-wrap { overflow-x: auto; background: var(--p-surface); border: 1px solid var(--p-line); border-radius: 14px; }
.c-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.c-table th, .c-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--p-line); white-space: nowrap; }
.c-table th { font-size: 13px; color: var(--p-muted); font-weight: 650; }
.c-table tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; background: var(--p-soft); color: var(--p-muted); }
.pill.trial { background: var(--p-warn-bg); color: var(--p-warn); }
.pill.active { background: var(--p-ok-bg); color: var(--p-ok); }
.pill.past_due, .pill.suspended, .pill.cancelled { background: var(--p-bad-bg); color: var(--p-bad); }
.c-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.c-actions form { margin: 0; }
.c-cols { display: grid; gap: 16px; }
@media (min-width: 900px) { .c-cols { grid-template-columns: 1.4fr 1fr; } }
.c-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.c-dl dt { color: var(--p-muted); font-weight: 600; }
.c-dl dd { margin: 0; overflow-wrap: anywhere; }
.qr svg { width: 180px; height: 180px; background: #fff; padding: 8px; border-radius: 8px; }

/* error log and status page */
.c-count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--p-bad); color: #fff; font-size: 12px; font-weight: 700; text-align: center; line-height: 20px; }
.c-trace { background: var(--p-soft); border: 1px solid var(--p-line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-size: 13px; line-height: 1.5; white-space: pre; max-height: 60vh; }
.c-table td.wrap { white-space: normal; min-width: 260px; overflow-wrap: anywhere; }
.s-word.ok { color: var(--p-ok); } .s-word.delayed { color: var(--p-warn); } .s-word.down { color: var(--p-bad); }
.s-banner { border-radius: 16px; padding: 20px 22px; margin: 8px 0 24px; border: 1px solid var(--p-line); }
.s-banner h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 0 0 4px; }
.s-banner p { margin: 0; }
.s-banner.ok { background: var(--p-ok-bg); color: var(--p-ok); border-color: transparent; }
.s-banner.delayed { background: var(--p-warn-bg); color: var(--p-warn); border-color: transparent; }
.s-banner.down { background: var(--p-bad-bg); color: var(--p-bad); border-color: transparent; }
.s-list { list-style: none; margin: 0 0 28px; padding: 0; background: var(--p-surface); border: 1px solid var(--p-line); border-radius: 14px; }
.s-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--p-line); }
.s-list li:last-child { border-bottom: 0; }
.s-state { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; }
.s-state::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.s-state.ok { color: var(--p-ok); } .s-state.delayed { color: var(--p-warn); } .s-state.down { color: var(--p-bad); }
.s-notice { background: var(--p-surface); border: 1px solid var(--p-line); border-left: 4px solid var(--p-warn); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.s-notice.outage { border-left-color: var(--p-bad); }
.s-notice.maintenance { border-left-color: var(--p-accent); }
.s-notice h3 { font-size: 1.1rem; margin: 0 0 4px; }
.s-notice p { margin: 4px 0 0; white-space: pre-line; }
.s-meta { font-size: 14px; color: var(--p-muted); }
.c-top .p-top { flex-wrap: wrap; row-gap: 8px; }
.c-top nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.c-top nav a { margin-left: 0; }
.s-wrap { max-width: 760px; }
.s-foot { margin: 28px 0 48px; }
.s-actions { margin-top: 8px; }
.platform .c-section { margin-top: 32px; }
.platform .s-wrap h2 { margin-top: 32px; }
.p-top nav a { white-space: nowrap; }
.c-top form { margin-left: 0; }
@media (min-width: 700px) { .c-top form { margin-left: 18px; } }
.c-break { overflow-wrap: anywhere; }
/* live demo page */
.lede-sm { font-size: 1.1rem; color: var(--p-muted); }
.p-checks { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 8px; }
.p-checks li { padding-left: 28px; position: relative; }
.p-checks li::before { content: "✓"; position: absolute; left: 4px; color: var(--p-ok); font-weight: 800; }
.p-alert { background: var(--p-bad-bg); color: var(--p-bad); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.demo-start .small { margin: 12px 0 0; }
.platform .m0 { margin: 0; padding-left: 20px; }

/* Console: overview chart, lists, billing */
.c-chart { display: block; width: 100%; height: auto; max-height: 200px; margin: 4px 0 6px; }
.c-chart-bar { fill: var(--p-accent); }
.c-chart-base { stroke: var(--p-line); stroke-width: 1; }
.c-chart-n { fill: var(--p-ink); font-size: 12px; font-weight: 700; }
.c-chart-x { fill: var(--p-muted); font-size: 11px; }
.c-list { list-style: none; margin: 0; padding: 0; }
.c-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--p-line); }
.c-list li:last-child { border-bottom: 0; }
.c-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.c-tabs a { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--p-line); text-decoration: none; color: var(--p-ink); font-size: 14px; font-weight: 600; }
.c-tabs a[aria-current="page"] { background: var(--p-ink); border-color: var(--p-ink); color: var(--p-surface); }
.c-table tr.bad td { background: var(--p-bad-bg); }
.c-note { border-left: 4px solid var(--p-warn); background: var(--p-warn-bg); padding: 12px 14px; border-radius: 10px; margin: 0 0 16px; }
.c-preview { white-space: pre-wrap; font: 15px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--p-soft); border-radius: 12px; padding: 16px; margin: 0; overflow-wrap: anywhere; }
.c-checks ul, .c-checks > div > div { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.c-section-gap { margin-top: 20px; }
.c-cols > * { min-width: 0; }  /* wide tables scroll inside their card instead of widening the page */

/* Terms of Service and Privacy Policy (/terms, /privacy) */
.legal { padding-top: 24px; padding-bottom: 56px; }
.legal-head h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 0 0 4px; }
.legal-layout { display: grid; gap: 28px; margin-top: 24px; }
@media (min-width: 960px) { .legal-layout { grid-template-columns: 240px minmax(0, 1fr); } .legal-toc { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow: auto; } }
.legal-toc { font-size: 14px; background: var(--p-surface); border: 1px solid var(--p-line); border-radius: 14px; padding: 14px 16px; }
.legal-toc-title { font-weight: 700; margin: 0 0 6px; }
.legal-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.legal-toc a { color: var(--p-ink); text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.legal-toc .toc-part { list-style: none; margin: 8px 0 0 -20px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--p-muted); }
.legal-body { max-width: 46rem; line-height: 1.65; overflow-wrap: anywhere; }
.legal-body h2 { font-size: 1.35rem; margin: 2.2em 0 .6em; scroll-margin-top: 16px; }
.legal-body h3 { font-size: 1.05rem; margin: 1.6em 0 .4em; }
.legal-body li { margin: .35em 0; }
.legal-lead { font-size: 1.08rem; }
.legal-callout { background: var(--p-warn-bg); color: var(--p-ink); border-left: 4px solid var(--p-warn); border-radius: 10px; padding: 12px 14px; }
.legal-caps { font-size: .92rem; letter-spacing: .01em; }
.legal-tag { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 9px; border-radius: 99px; background: var(--p-soft); color: var(--p-muted); font-weight: 700; font-size: 11px; line-height: 1.6; letter-spacing: .05em; text-transform: uppercase; }
.legal-table { overflow-x: auto; margin: 1em 0; border: 1px solid var(--p-line); border-radius: 12px; background: var(--p-surface); }
.legal-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--p-line); }
.legal-table th { font-size: .85rem; color: var(--p-muted); }
.legal-table tr:last-child td { border-bottom: 0; }
.p-foot a { color: inherit; }
/* ---------- Console: sidebar layout ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body:has(.cx) { font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 15px; background: var(--p-bg); }
.cx { display: flex; flex-wrap: wrap; min-height: 100vh; }
.cx-side { flex: 1 1 248px; max-width: 100%; box-sizing: border-box; background: #14202B; color: #C9D1D8; padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; }
@media (min-width: 900px) { .cx-side { flex: 0 0 248px; min-height: 100vh; position: sticky; top: 0; max-height: 100vh; overflow-y: auto; } }
.cx-brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 14px; color: #fff !important; text-decoration: none; line-height: 1.2; }
.cx-brand strong { display: block; font-weight: 600; }
.cx-brand small { display: block; font-size: 12px; color: #9AA6B0; }
.cx-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #E0A04A; color: #14202B; font-weight: 700; flex-shrink: 0; }
.cx-jump { display: flex; align-items: center; gap: 8px; height: 40px; margin: 0 4px 12px; padding: 0 10px; border: 1px solid #2B3A47; border-radius: 8px; background: #1B2935; color: #9AA6B0; font: 400 14px "IBM Plex Sans", sans-serif; cursor: pointer; text-align: left; }
.cx-jump span { flex: 1; }
.cx-jump:hover { border-color: #3A4A58; color: #fff; }
.cx kbd, .cx-dialog kbd { font: 500 11px "IBM Plex Mono", monospace; padding: 2px 6px; border-radius: 4px; background: #24323F; color: #C9D1D8; }
.cx-dialog kbd { background: var(--p-soft); color: var(--p-muted); }
.cx-nav { display: flex; flex-direction: column; gap: 2px; }
.cx-nav a { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px; border-radius: 8px; color: #C9D1D8; text-decoration: none; font-size: 14px; }
.cx-nav a > span:first-of-type { flex: 1; }
.cx-icon { flex-shrink: 0; }
.cx-nav a:hover { background: #1B2935; color: #fff; }
.cx-nav a[aria-current="page"] { background: #24323F; color: #fff; font-weight: 500; }
.cx-group { margin: 16px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8794A0; }
.cx-badge { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 10px; background: #2B3A47; color: #fff; }
.cx-badge.warm { background: #E0A04A; color: #14202B; }
.cx-badge.bad { background: #B42318; }
.cx-portal { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 12px 10px; border-top: 1px solid #24323F; color: #C9D1D8 !important; text-decoration: none; font-size: 14px; }
.cx-portal:hover { color: #fff !important; }
.cx-portal + .cx-me { margin-top: 0; }
.cx-me { margin-top: auto; padding: 14px 6px 4px; border-top: 1px solid #24323F; display: flex; align-items: center; gap: 10px; }
.cx-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 16px; background: #2B3A47; color: #fff; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.cx-me-text { flex: 1; min-width: 0; line-height: 1.25; }
.cx-me-text strong { display: block; color: #fff; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-me-text small { display: block; font-size: 12px; color: #E0A04A; }
.cx-me form { margin: 0; }
.cx-signout { background: none; border: 0; color: #9AA6B0; font: 500 13px "IBM Plex Sans", sans-serif; cursor: pointer; padding: 8px 4px; }
.cx-signout:hover { color: #fff; }
.cx-body { flex: 999 1 560px; min-width: 0; }
.cx-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 32px; border-bottom: 1px solid var(--p-line); background: var(--p-surface); min-height: 38px; }
.cx-top form { margin: 0; }
.cx-crumb { flex: 1; color: var(--p-muted); }
.cx-main { max-width: 1180px; padding: 24px 32px 56px; }
@media (max-width: 700px) { .cx-top, .cx-main { padding-inline: 16px; } }
.cx-main h1 { font-size: 26px; font-weight: 600; margin: 0; }
.cx-main h2 { font-size: 16px; font-weight: 600; }
.cx .p-card { border-radius: 12px; padding: 18px 20px; border-color: var(--p-line); }
.cx .p-card h2:first-child { margin-top: 0; }
.cx .c-stat { border-radius: 12px; border-color: var(--p-line); }
.cx .c-table-wrap { border-radius: 12px; border-color: var(--p-line); }
.cx .c-table { font-size: 14px; }
.cx .p-btn { border-radius: 8px; font-weight: 600; }
.cx .p-btn.primary { background: #8F5A12; border-color: #8F5A12; color: #fff !important; }
.cx .p-btn.warm { background: #E0A04A; border-color: #E0A04A; color: #14202B !important; }
.cx .p-btn.ghost-dark { background: transparent; border-color: #3A4A58; color: #fff !important; }
.cx-body a:not(.p-btn) { color: var(--p-link, #8F5A12); }
.cx .c-head { margin-bottom: 20px; }
.cx .c-head p { margin: 4px 0 0; }
.cx-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 14px; }
.cx-kpi { background: var(--p-surface); border: 1px solid var(--p-line); border-radius: 12px; padding: 16px 18px; color: var(--p-ink) !important; text-decoration: none; display: block; }
.cx-kpi span { display: block; font-size: 13px; color: var(--p-muted); }
.cx-kpi strong { display: block; font-size: 28px; font-weight: 600; margin-top: 4px; }
.cx-kpi small { display: block; font-size: 13px; color: var(--p-muted); margin-top: 2px; }
.cx-kpi small.up { color: var(--p-ok); }
.cx-support { background: #14202B; color: #E6EBEF; border-radius: 12px; padding: 18px; }
.cx-support h2 { color: #fff; margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.cx-support p { color: #B9C3CB; font-size: 14px; line-height: 1.5; margin: 8px 0 14px; }
.cx-support .c-actions { gap: 8px; }
.cx-churchhead { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; margin-bottom: 20px; }
.cx-churchhead > div:first-child { flex: 1 1 380px; min-width: 0; }
.cx-churchhead > .cx-support { flex: 0 1 420px; }
.cx-mono { font: 500 13px "IBM Plex Mono", ui-monospace, monospace; overflow-wrap: anywhere; }
.c-error { color: var(--p-bad); }
pre.cx-mono { white-space: pre-wrap; background: var(--p-soft); border: 1px solid var(--p-line); border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
.cx-split { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.cx-split > :first-child { flex: 999 1 560px; min-width: 0; }
.cx-split > :last-child { flex: 1 1 320px; min-width: 0; }
.cx-perm { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--p-line); }
.cx-perm:first-of-type { border-top: 0; }
.cx-perm input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: #8F5A12; }
.cx-perm label { font-weight: 600; }
.cx-perm p { margin: 2px 0 0; color: var(--p-muted); font-size: 14px; }
.cx-yes { color: var(--p-ok); font-weight: 600; }
.cx-no { color: var(--p-muted); }
.cx-snippet { width: 100%; box-sizing: border-box; min-height: 180px; font: 500 13px/1.5 "IBM Plex Mono", monospace; padding: 12px; border: 1px solid var(--p-line); border-radius: 8px; background: var(--p-soft); color: var(--p-ink); }
.cx-linkbox { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 8px; background: var(--p-soft); }
.cx-linkbox .cx-mono { flex: 1 1 240px; }
.cx-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px; border-radius: 12px; background: #14202B; color: #fff; margin-bottom: 14px; }
.cx-hero > div { flex: 1 1 320px; min-width: 0; }
.cx-hero h2 { margin: 0; font-size: 13px; font-weight: 500; color: #B9C3CB; }
.cx-hero .cx-mono { font-size: 18px; color: #fff; margin: 4px 0 0; }
.cx-dialog { width: min(640px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 14px; box-shadow: 0 24px 60px rgba(10,15,20,.35); margin-top: 12vh; font-family: "IBM Plex Sans", system-ui, sans-serif; color: var(--p-ink); background: var(--p-surface); }
.cx-dialog::backdrop { background: rgba(10,15,20,.55); }
.cx-jump-head { display: flex; align-items: center; gap: 10px; padding: 0 14px 0 18px; border-bottom: 1px solid var(--p-line); color: var(--p-muted); }
.cx-jump-head input { flex: 1; height: 56px; border: 0; outline: none; font: 400 17px "IBM Plex Sans", sans-serif; color: var(--p-ink); background: transparent; min-width: 0; box-shadow: none; padding: 0; }
.cx-esc { font: 500 11px "IBM Plex Mono", monospace; padding: 4px 8px; border-radius: 4px; background: var(--p-soft); color: var(--p-muted); border: 0; cursor: pointer; }
.cx-jump-results { max-height: 50vh; overflow-y: auto; padding: 8px; }
.cx-jump-hint { margin: 10px; color: var(--p-muted); }
.cx-jump-list { list-style: none; margin: 0; padding: 0; }
.cx-jump-item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; }
.cx-jump-item.active { background: var(--p-soft); }
.cx-jump-item form { margin: 0; }
.cx-jump-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: #14202B; color: #fff; font-weight: 600; flex-shrink: 0; }
.cx-jump-text { flex: 1 1 200px; min-width: 0; line-height: 1.3; }
.cx-jump-text strong { display: block; font-weight: 600; }
.cx-jump-text small { display: block; font-size: 13px; color: var(--p-muted); overflow-wrap: anywhere; }
.cx-jump-foot { display: flex; flex-wrap: wrap; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--p-line); background: var(--p-soft); font-size: 12px; color: var(--p-muted); border-radius: 0 0 14px 14px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --p-link: #E0A04A; } }
.cx h1, .cx h2, .cx h3, .cx-dialog h2 { font-family: inherit; }
.platform .cx-dialog .cx-jump-head input[type=search] { border: 0; background: transparent; box-shadow: none; border-radius: 0; min-height: 56px; padding: 0; outline: none; }
.cx-jump { white-space: nowrap; font-size: 13px; }
.cx-nav a { min-height: 34px; }
.cx-group { margin-top: 12px; }
.platform input[type=date], .platform input[type=number] { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--p-line); background: var(--p-bg); color: var(--p-ink); font: inherit; }
.cx .c-actions input, .cx .c-actions select, .cx .c-filter select { width: auto; min-height: 36px; padding: 6px 10px; border-radius: 8px; }
.cx-body .c-tabs a { color: var(--p-ink); text-decoration: none; }
.cx-body .c-tabs a[aria-current="page"] { color: var(--p-surface); }
@media (max-width: 899px) {
  .cx-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .cx-nav a { background: #1B2935; }
  .cx-group { display: none; }
  .cx-me { margin-top: 10px; }
}
.p-plans { margin-top: 18px; }
.p-plan { display: flex; flex-direction: column; gap: 8px; }
.p-plan h3 { margin: 0; }
.p-plan-price { margin: 0; }
.p-plan-price strong { font-size: 1.8rem; }
.p-plan ul { margin: 0; padding-left: 18px; color: var(--p-muted); flex: 1; }
.p-plan .p-btn { margin-top: 8px; }

/* public site: header, footer, draft bar */
.p-top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.p-top nav a { margin-left: 0; }
.p-top nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--p-accent); }
.p-top nav .p-nav-cta { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 10px; background: var(--p-accent); color: var(--p-accent-ink); }
.p-draftbar { background: #FBEFD9; color: #5C3708; border-bottom: 1px solid #EBCB91; padding: 10px 16px; font-size: 14px; text-align: center; }
.p-foot-cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 28px; }
.p-foot-brand p { margin: 10px 0 0; max-width: 26ch; }
.p-foot h2 { font-family: "Figtree", system-ui, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--p-ink); margin: 4px 0 10px; }
.p-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.p-foot a { color: var(--p-muted); }
.p-foot a:hover { color: var(--p-ink); }
.p-foot .p-brand { color: var(--p-ink) !important; }
.p-foot-legal { margin: 0; padding-top: 18px; border-top: 1px solid var(--p-line); }
.p-btn.dark { background: var(--p-deep); border-color: var(--p-deep); color: var(--p-deep-ink) !important; }
.p-btn.ghost { background: transparent; border-color: rgba(244,239,230,.35); color: var(--p-deep-ink) !important; }

/* pricing and comparison pages */
.s-hero { padding-block: 48px 24px; }
.s-hero.center { text-align: center; }
.s-hero.center .lede, .s-hero.center h1 { margin-inline: auto; }
.s-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 20ch; }
.s-hero .lede { font-size: 1.15rem; color: var(--p-muted); max-width: 40rem; }
.s-hero .actions, .s-final .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.s-kicker { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--p-accent); }
.s-toggle { display: inline-flex; gap: 4px; padding: 4px; margin-top: 22px; border-radius: 12px; background: var(--p-soft); }
.s-toggle button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 9px; background: transparent; color: var(--p-muted); font: 600 15px "Figtree", system-ui, sans-serif; cursor: pointer; }
.s-toggle button[aria-pressed="true"] { background: var(--p-surface); color: var(--p-ink); font-weight: 700; box-shadow: 0 1px 2px rgba(20,32,43,.12); }
.s-save { color: var(--p-ok); }
.s-plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); padding-block: 16px 56px; }
.s-plan { display: flex; flex-direction: column; background: var(--p-surface); border: 1px solid var(--p-line); border-radius: 20px; padding: 26px; }
.s-plan.featured { border: 2px solid var(--p-accent); padding: 25px; }
.s-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.s-plan h2 { font-size: 1.6rem; margin: 0; }
.s-plan > p { margin: 2px 0 0; }
.s-tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--p-warn-bg); color: var(--p-warn); white-space: nowrap; }
.s-price { margin: 20px 0 0 !important; display: flex; align-items: baseline; gap: 6px; }
.s-price strong { font-family: "Spectral", Georgia, serif; font-size: 3rem; font-weight: 600; line-height: 1; }
.s-price span { color: var(--p-muted); font-weight: 600; }
.s-price-note { margin: 6px 0 18px !important; font-size: 14px; color: var(--p-muted); min-height: 22px; }
.s-under { margin: 8px 0 0 !important; font-size: 13px; color: var(--p-muted); text-align: center; }
.s-checks { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--p-line); display: grid; gap: 10px; }
.s-checks li { padding-left: 28px; position: relative; }
.s-checks li::before { content: "✓"; position: absolute; left: 4px; color: var(--p-ok); font-weight: 800; }
.s-call-text .s-checks { border-top: 0; padding-top: 0; }
.s-four { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.s-band { margin-block: 0 56px; background: var(--p-deep); color: var(--p-deep-ink); border-radius: 22px; padding: 32px; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; }
.s-band > div { flex: 1 1 380px; }
.s-band h2 { color: var(--p-deep-ink); font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.s-band p { margin: 8px 0 0; opacity: .85; max-width: 36rem; }
.s-big { font-family: "Spectral", Georgia, serif; font-size: 3rem; font-weight: 600; color: #E0A04A; line-height: 1; margin: 0; }
.s-big span { display: block; font-family: "Figtree", sans-serif; font-size: 14px; font-weight: 600; color: var(--p-deep-ink); opacity: .85; margin-top: 6px; }
.s-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.s-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--p-line); background: var(--p-surface); color: var(--p-ink); font-weight: 600; text-decoration: none; }
.s-narrow { max-width: 780px; }
.s-faq { display: grid; gap: 10px; margin-top: 20px; }
.s-faq details { background: var(--p-surface); border: 1px solid var(--p-line); border-radius: 14px; padding: 16px 18px; }
.s-faq summary { font-weight: 700; cursor: pointer; }
.s-faq p { margin: 10px 0 0; color: var(--p-muted); }
.s-final { margin-block: 0 64px; text-align: center; background: var(--p-surface); border: 1px solid var(--p-line); border-radius: 22px; padding: 40px 24px; }
.s-final .actions { justify-content: center; }
.s-final.dark { background: var(--p-deep); color: var(--p-deep-ink); border-color: var(--p-deep); }
.s-final.dark h2 { color: var(--p-deep-ink); }
.s-hero-split { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.s-hero-split > div { flex: 1 1 480px; }
.s-crumb { font-size: 14px; color: var(--p-muted); margin-bottom: 14px; }
.s-crumb a { color: var(--p-muted); }
.s-glance { flex: 1 1 320px; background: var(--p-deep); color: var(--p-deep-ink); border-radius: 22px; padding: 24px; }
.s-glance .s-kicker { color: #E0A04A; }
.s-glance dl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 12px 0 0; }
.s-glance dt { font-size: 14px; opacity: .8; }
.s-glance dd { margin: 2px 0 0; font-size: 1.05rem; }
.s-two { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.s-why { background: var(--p-surface); border: 1px solid var(--p-line); border-radius: 20px; padding: 24px; }
.s-why.ours { border: 2px solid var(--p-accent); padding: 23px; }
.s-why h2 { font-size: 1.4rem; }
.s-why ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.s-table-wrap { overflow-x: auto; margin-top: 20px; background: var(--p-surface); border: 1px solid var(--p-line); border-radius: 16px; }
.s-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.s-table th, .s-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--p-line); vertical-align: top; }
.s-table thead th { font-size: 13px; color: var(--p-muted); }
.s-table tbody th { font-weight: 600; }
.s-table tr:last-child th, .s-table tr:last-child td { border-bottom: 0; }
.s-table .ours { background: color-mix(in srgb, var(--p-accent) 7%, var(--p-surface)); }
.s-steps { list-style: none; counter-reset: step; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.s-steps li { counter-increment: step; background: var(--p-surface); border: 1px solid var(--p-line); border-radius: 16px; padding: 20px; }
.s-steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 16px; background: var(--p-accent); color: var(--p-accent-ink); font-weight: 700; margin-bottom: 10px; }
.s-steps h3 { font-size: 1.15rem; }
.s-steps p { margin: 6px 0 0; color: var(--p-muted); }
.s-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); padding-block: 8px 64px; }
.s-card { display: block; background: var(--p-surface); border: 1px solid var(--p-line); border-radius: 18px; padding: 22px; color: var(--p-ink) !important; text-decoration: none; }
.s-card h2 { font-size: 1.3rem; }
.s-card p { margin: 6px 0 0; color: var(--p-muted); }
.s-more { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--p-accent); }
.s-call { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-block: 40px 72px; }
.s-call-text { flex: 1 1 340px; }
.s-call-text h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.s-call-text h2 { font-size: 1.3rem; margin-top: 24px; }
.s-call-form { flex: 1 1 440px; }
.platform textarea { min-height: 90px; }

/* console: page manager, plan editor */
.cx-details { margin: 4px 0 16px; border: 1px solid var(--p-line); border-radius: 10px; padding: 10px 14px; }
.cx-details summary { font-weight: 600; cursor: pointer; }
.cx-details[open] summary { margin-bottom: 12px; }
.cx-serp { display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 1px solid var(--p-line); border-radius: 10px; background: var(--p-surface); margin-bottom: 10px; }
.cx-serp-url { font-size: 13px; color: var(--p-muted); }
.cx-serp-title { font-size: 18px; color: #1A0DAB; }
.cx-serp-desc { font-size: 14px; color: var(--p-muted); }
.s-plans [hidden] { display: none !important; }
.s-band, .s-final { width: calc(100% - 32px); max-width: 1048px; margin-inline: auto; box-sizing: border-box; }
.p-top { flex-wrap: wrap; row-gap: 10px; }
@media (max-width: 640px) { .p-top nav { width: 100%; gap: 6px 16px; } .p-top nav .p-nav-cta { margin-left: auto; } }

/* Pages built from sections */
.s-plans-head { padding-block: 0; }
.s-plans-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.s-text h2 { margin-bottom: 12px; }
.s-text h3 { margin-top: 24px; }
.s-text ul, .s-text ol { padding-left: 1.3em; }

/* Console → Website pages → the page builder */
.sb { display: grid; gap: 18px; align-items: start; }
@media (min-width: 1100px) { .sb { grid-template-columns: minmax(380px, 460px) 1fr; } }
.sb-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; counter-reset: sb; }
.sb-item { background: var(--p-surface); border: 1px solid var(--p-line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; counter-increment: sb; scroll-margin-top: 80px; }
.sb-item:target { border-color: var(--p-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p-accent) 20%, transparent); }
.sb-item-text { display: grid; gap: 2px; }
.sb-item-text strong::before { content: counter(sb) ". "; color: var(--p-muted); font-weight: 500; }
.sb-item-text .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.sb-add > summary { list-style: none; display: inline-flex; cursor: pointer; }
.sb-add > summary::-webkit-details-marker { display: none; }
.sb-add[open] > summary { margin-bottom: 14px; }
.sb-pos { width: 100%; margin-bottom: 12px; }
.sb-types { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.sb-types button { text-align: left; display: grid; gap: 4px; padding: 12px; border: 1px solid var(--p-line); border-radius: 10px; background: var(--p-bg, #fff); font: inherit; cursor: pointer; color: inherit; }
.sb-types button:hover, .sb-types button:focus-visible { border-color: var(--p-accent); }
.sb-types span { font-size: .85rem; color: var(--p-muted); line-height: 1.35; }
.sb-settings { margin-top: 14px; }
.sb-settings summary { cursor: pointer; }
.sb-settings[open] summary { margin-bottom: 14px; }
.sb-preview { position: sticky; top: 16px; display: grid; gap: 8px; }
.sb-preview-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.sb-spacer { flex: 1; }
.cx .sb-preview .p-btn[aria-pressed="true"] { background: #1d2430; color: #fff !important; border-color: #1d2430; }
.sb-frame { border: 1px solid var(--p-line); border-radius: 12px; overflow: hidden; background: #fff; height: calc(100vh - 140px); min-height: 520px; }
.sb-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.sb-frame.phone { width: 390px; max-width: 100%; margin-inline: auto; }

.se-langs, .se-row { display: grid; gap: 6px 14px; grid-template-columns: 1fr; }
.se-langs { display: none; }
@media (min-width: 900px) {
  .se-langs, .se-row { grid-template-columns: 170px 1fr 1fr; align-items: start; }
  .se-langs { display: grid; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--p-muted); margin-bottom: 4px; }
  .se-row.one { grid-template-columns: 170px minmax(0, 1fr); }
  .se-row.one .se-cell { max-width: 520px; }
  .se-lang { display: none; }
}
.se-row { padding: 10px 0; border-bottom: 1px solid var(--p-line); }
.se-label { font-weight: 600; padding-top: 8px; margin: 0; }
.se-lang { font-size: .78rem; font-weight: 700; color: var(--p-muted); }
.se-cell input, .se-cell textarea, .se-cell select { width: 100%; }
.se-items { border: 0; padding: 0; margin: 16px 0 0; }
.se-items > legend { font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.se-item { border: 1px solid var(--p-line); border-radius: 10px; padding: 4px 14px 10px; margin: 0 0 10px; }
.se-item.is-new { border-style: dashed; }
.se-item > legend { font-size: .85rem; font-weight: 700; color: var(--p-muted); padding: 0 6px; }
.se-item .se-row:last-of-type { border-bottom: 0; }
.se-item-tools { display: flex; gap: 16px; align-items: center; justify-content: flex-end; }
.se-order { width: 64px !important; min-height: 32px; padding: 4px 8px; }
.se-save { position: sticky; bottom: 0; background: var(--p-surface); padding: 12px 0 4px; margin-top: 12px; }

/* The formatting editor (static/js/editor.js), in the console */
.cx .rte { border: 1px solid var(--p-line); border-radius: 10px; background: #fff; overflow: hidden; }
.cx .rte-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px; border-bottom: 1px solid var(--p-line); background: var(--p-soft); }
.cx .rte-btn { min-width: 32px; height: 30px; padding: 0 8px; border: 1px solid transparent; border-radius: 7px; background: transparent; font: inherit; font-size: .85rem; cursor: pointer; }
.cx .rte-btn:hover, .cx .rte-btn[aria-pressed="true"] { background: #fff; border-color: var(--p-line); }
.cx .rte-b { font-weight: 800; }
.cx .rte-i { font-style: italic; }
.cx .rte-sep { width: 1px; height: 18px; margin: 0 3px; background: var(--p-line); }
.cx .rte-area { padding: 12px 14px; outline: none; line-height: 1.55; min-height: 140px; }
.cx .rte-area > :first-child { margin-top: 0; }

/* help articles and agent training */
.cx-search { display: flex; gap: 8px; }
.cx-search input { min-width: 0; width: 220px; max-width: 100%; }
.cx-help-group { font-size: 1.05rem; margin: 24px 0 10px; }
.cx-row3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; }
.cx-prose { line-height: 1.6; overflow-wrap: anywhere; }
.cx-prose h2 { font-size: 1.15rem; margin: 22px 0 6px; }
.cx-prose h3 { font-size: 1rem; margin: 18px 0 4px; }
.cx-prose ul, .cx-prose ol { padding-left: 22px; }
.cx-prose li + li { margin-top: 4px; }
.cx-prose blockquote { margin: 14px 0; padding: 10px 14px; border-left: 3px solid var(--p-accent); background: var(--p-soft); border-radius: 0 10px 10px 0; }
.cx-prose .help-shot { margin: 14px 0; }
.cx-prose .help-shot img { width: 100%; height: auto; border: 1px solid var(--p-line); border-radius: 10px; }
.cx-prose .help-shot figcaption { font-size: 13px; color: var(--p-muted); margin-top: 4px; }
.cx-help-preview { max-height: 80vh; overflow: auto; }
.cx-train-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.cx-bar { flex: 1 1 200px; height: 10px; border: 0; border-radius: 99px; background: var(--p-soft); overflow: hidden; appearance: none; }
.cx-bar::-webkit-progress-bar { background: var(--p-soft); }
.cx-bar::-webkit-progress-value { background: var(--p-ok); border-radius: 99px; }
.cx-bar::-moz-progress-bar { background: var(--p-ok); border-radius: 99px; }
.cx-m0 { margin: 0; }
.cx-lessons { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.cx-lessons .p-card { padding: 0; margin: 0; }
.cx-lessons a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; color: inherit; text-decoration: none; }
.cx-lessons a > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cx-lesson-n { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--p-soft); }
.cx-lessons .is-done .cx-lesson-n { background: var(--p-ok-bg); color: var(--p-ok); }
.cx-lesson { max-width: 760px; }
.cx-lesson-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; max-width: 760px; }
.cx-lesson-foot .spacer { flex: 1; }
.cx-ok { color: var(--p-ok); font-weight: 700; }
.cx-mt { margin-top: 16px; }
.cx-support-form { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.cx-support-form input { flex: 1 1 180px; min-width: 0; background: #1B2935; border: 1px solid #3A4A58; color: #fff; border-radius: 8px; padding: 8px 10px; font: inherit; }
.cx-support-form input::placeholder { color: #9AA6B0; }
.cx-support .small { color: #B9C3CB; margin: 10px 0 0; }
.cx-waiting { border: 2px solid #E0A04A; }
.cx-salescard { background: var(--p-soft); }
.cx-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; border-bottom: 1px solid var(--p-line); }
.cx-tabs a { padding: 8px 12px; text-decoration: none; color: var(--p-muted) !important; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.cx-tabs a[aria-current="page"] { color: var(--p-ink) !important; border-bottom-color: #8F5A12; font-weight: 600; }
/* ---------- Sales portal: the console's layout in the product's own type ---------- */
body:has(.sx) { font-family: "Figtree", system-ui, sans-serif; font-size: 16px; }
.sx .cx-side { padding: 20px 14px; gap: 4px; }
.sx .cx-brand strong { font-weight: 700; font-size: 16px; }
.sx .cx-mark { width: 34px; height: 34px; border-radius: 9px; font-family: "Spectral", Georgia, serif; font-size: 20px; font-weight: 600; color: #1A1206; }
.sx .cx-nav a { min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: 15px; font-weight: 600; gap: 12px; }
.sx .cx-nav a[aria-current="page"] { box-shadow: inset 0 0 0 1px #3A4A58; font-weight: 600; }
.sx .cx-group { margin: 18px 12px 6px; }
.sx .cx-badge { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 8px; background: #E0A04A; color: #1A1206; }
.sx .cx-me-text small { color: #B9C3CB; }
.sx .cx-signout, .sx .cx-jump { font-family: "Figtree", system-ui, sans-serif; }
.sx .cx-main h1 { font-family: "Spectral", Georgia, serif; font-size: 30px; font-weight: 600; }
.sx .cx-main h2 { font-family: "Figtree", system-ui, sans-serif; font-size: 17px; font-weight: 700; }
.sx .cx-kpi strong { font-family: "Spectral", Georgia, serif; font-size: 32px; }
.sx .cx-hero { background: #14202B; border-radius: 14px; padding: 20px 22px; }
.sx-money { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 14px; }
.sx-money .cx-kpi.lead { background: #14202B; color: #F4EFE6 !important; border-color: #14202B; }
.sx-money .cx-kpi.lead span, .sx-money .cx-kpi.lead small { color: #B9C3CB; }
.sx-roles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sx-roles > div { border: 1px solid var(--p-line); border-radius: 12px; padding: 14px 16px; background: var(--p-surface); }
.sx-roles h3 { font-family: "Figtree", system-ui, sans-serif; font-size: 15px; margin: 0 0 4px; }
.sx-roles p { margin: 0; font-size: 14px; color: var(--p-muted); }
.sx-inline { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.sx-inline select { min-width: 0; }
/* Sales portal: the leads board, a lead's record, the demo builder */
.sx-viewswitch { display: inline-flex; border: 1px solid var(--p-line); border-radius: 8px; overflow: hidden; margin-left: auto; }
.sx-viewswitch a { padding: 6px 12px; text-decoration: none; color: var(--p-muted) !important; }
.sx-viewswitch a[aria-current="page"] { background: #14202B; color: #fff !important; }
.sx-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.sx-col { background: var(--p-soft); border-radius: 12px; padding: 12px; min-height: 120px; }
.sx-col h2 { font-size: 14px !important; margin: 0 0 10px; display: flex; justify-content: space-between; }
.sx-card { background: var(--p-surface); border: 1px solid var(--p-line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.sx-card p { margin: 4px 0 0; }
.sx-card-title { font-weight: 700; text-decoration: none; }
.sx-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.sx-tags:empty { display: none; }
.sx-due { color: var(--p-bad); font-weight: 600; }
.sx-narrow { max-width: 760px; }
.sx-stages { display: flex; flex-wrap: wrap; margin: 0 0 16px; border: 1px solid var(--p-line); border-radius: 10px; overflow: hidden; width: fit-content; max-width: 100%; }
.sx-stages button { border: 0; border-right: 1px solid var(--p-line); background: var(--p-surface); padding: 9px 14px; font: 600 14px "Figtree", system-ui, sans-serif; color: var(--p-muted); cursor: pointer; }
.sx-stages button:last-child { border-right: 0; }
.sx-stages button[aria-pressed="true"] { background: #14202B; color: #fff; }
.sx-kinds { display: flex; flex-wrap: wrap; gap: 8px 16px; border: 0; padding: 0; margin: 0 0 10px; }
.sx-kinds label, .sx-radios label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.sx-radios { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.sx-radios > div { display: contents; }
.sx-timeline { list-style: none; margin: 0; padding: 0; }
.sx-ev { position: relative; padding: 0 0 14px 18px; border-left: 2px solid var(--p-line); margin-left: 4px; }
.sx-ev::before { content: ""; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 5px; background: var(--p-line); }
.sx-ev.call::before, .sx-ev.meeting::before { background: #8F5A12; }
.sx-ev.email::before, .sx-ev.note::before { background: #E0A04A; }
.sx-ev-when { display: block; font-size: 12px; color: var(--p-muted); }
.sx-ev p { margin: 4px 0 0; }
.sx-bars { list-style: none; margin: 0 0 12px; padding: 0; }
.sx-bars li { display: grid; grid-template-columns: 1fr 2fr auto; gap: 10px; align-items: center; padding: 4px 0; }
meter.sx-bar { width: 100%; height: 10px; }
.sx-suggest { background: var(--p-soft); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.sx-suggest p { margin: 4px 0 0; }
.sx-preview { --p-demo: #1F5F5B; border: 1px solid var(--p-line); border-radius: 14px; overflow: hidden; background: var(--p-surface); margin-bottom: 12px; }
.sx-preview > .small { padding: 0 16px 12px; }
.sx-preview-url { margin: 0; padding: 8px 14px; background: var(--p-soft); font-size: 12px; color: var(--p-muted); }
.sx-preview-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.sx-preview-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--p-demo); color: #fff; font-weight: 700; }
.sx-preview-hero { margin: 0 16px 14px; padding: 22px; border-radius: 12px; background: #16212B; color: #fff; }
.sx-preview-h { font: 600 24px "Spectral", Georgia, serif; margin: 0; }
.sx-preview-btn { display: inline-block; margin-top: 10px; padding: 8px 14px; border-radius: 10px; background: var(--p-demo); color: #fff; font-weight: 600; }
.sx fieldset.field { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.sx fieldset.field legend { padding: 0; margin-bottom: 6px; font-weight: 600; }
.sx input[type="color"] { width: 64px; height: 44px; padding: 4px; border-radius: 8px; }
meter.sx-bar::-webkit-meter-optimum-value { background: #8F5A12; }
meter.sx-bar::-webkit-meter-bar { background: var(--p-soft); border: 0; border-radius: 5px; }
meter.sx-bar::-moz-meter-bar { background: #8F5A12; }
.sx-steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; padding: 0; margin: 0 0 16px; counter-reset: step; }
.sx-steps li { background: var(--p-surface); border: 1px solid var(--p-line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.sx-steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 12px; background: var(--p-soft); font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.sx-steps li.done::before { content: "✓"; background: #1E6B45; color: #fff; }
.sx-steps li.now { border: 2px solid #8F5A12; }
.sx-mode { display: flex; gap: 8px; align-items: center; padding: 6px 0; font-weight: 500; }
.sx input[type="number"]#bt { width: 80px; display: inline-block; }
.sx-printonly { display: none; }
@media print {
  .cx-side, .cx-top, .sx-noprint, .msg, .p-btn { display: none !important; }
  .sx-printonly { display: block; }
  body:has(.sx) { background: #fff; }
  .cx-main { padding: 0; max-width: none; }
  .p-card, .cx-kpi { break-inside: avoid; border-color: #ccc; }
  .cx-kpi.lead { background: #fff !important; color: #000 !important; border: 2px solid #000 !important; }
  .cx-kpi.lead span, .cx-kpi.lead small { color: #333 !important; }
}
