/* Breeze Help — public site and shared components
   Built on the Breeze design style guide v1.2 tokens. */

:root {
  --bz-font-ui: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --bz-font-code: "JetBrains Mono", ui-monospace, monospace;
  /* Long-form reading text (article bodies). Headings and UI stay in Space Grotesk. */
  --bz-font-read: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --bz-brand: #4048ff;
  --bz-brand-hover: #353dd6;
  --bz-brand-soft: #e8e9ff;
  --bz-canvas: #f7f8fc;
  --bz-surface: #ffffff;
  --bz-surface-muted: #f1f3f8;
  --bz-surface-subtle: #fafbfe;
  --bz-text: #121214;
  --bz-text-secondary: #4a4a52;
  --bz-text-muted: #6e6e78;
  --bz-text-disabled: #9a9aa4;
  --bz-border: #dadee8;
  --bz-divider: #eceef4;
  --bz-control-border: #858c9c;

  --bz-accent-warm: #9a4d18;
  --bz-accent-warm-soft: #fff3e8;
  --bz-accent-teal: #0f766e;
  --bz-accent-teal-soft: #eaf8f5;
  --bz-success: #15803d;
  --bz-success-soft: #ecfdf3;
  --bz-warning: #8a6a00;
  --bz-warning-soft: #fff8e1;
  --bz-danger: #b42318;
  --bz-danger-soft: #fff1f0;

  --bz-radius-control: 8px;
  --bz-radius-card: 10px;
  --bz-radius-overlay: 12px;
  --bz-radius-pill: 999px;
  --bz-shadow-overlay: 0 12px 32px rgb(18 18 20 / 16%);
  --bz-focus-halo: 0 0 0 3px rgb(64 72 255 / 16%);

  --bz-header-h: 60px;
  --bz-sidebar-width: 280px;
  --bz-content-max: 1480px;
  --bz-page-gutter: 40px;
  --bz-control-h: 40px;
  --bz-transition-fast: 120ms ease;
  --bz-transition-base: 180ms ease;

  --doc-measure: 760px;
  --rail-width: 220px;
}

@media (max-width: 1199px) { :root { --bz-page-gutter: 24px; } }
@media (max-width: 767px)  { :root { --bz-page-gutter: 16px; } }
@media (prefers-reduced-motion: reduce) {
  :root { --bz-transition-fast: 0ms; --bz-transition-base: 0ms; }
  html { scroll-behavior: auto !important; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--bz-font-ui);
  font-size: 15px;
  line-height: 1.5;
  color: var(--bz-text);
  background: var(--bz-canvas);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
img, video { max-width: 100%; height: auto; }
a { color: var(--bz-brand); text-decoration: none; }
a:hover { color: var(--bz-brand-hover); text-decoration: underline; text-underline-offset: 3px; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--bz-brand);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.icon { flex: none; display: inline-block; vertical-align: middle; }
h1, h2, h3, h4 { margin: 0; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--bz-surface); padding: 8px 14px; border-radius: var(--bz-radius-control);
  border: 1px solid var(--bz-border); font-weight: 600;
}
.skip-link:focus { top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--bz-control-h); padding: 0 16px;
  border-radius: var(--bz-radius-control); border: 1px solid transparent;
  font-size: 13px; font-weight: 600; line-height: 1.4; white-space: nowrap;
  cursor: pointer; text-decoration: none !important;
  transition: background var(--bz-transition-fast), border-color var(--bz-transition-fast), color var(--bz-transition-fast);
}
.btn .icon { width: 16px; height: 16px; }
.btn-primary { background: var(--bz-brand); border-color: var(--bz-brand); color: #fff; }
.btn-primary:hover { background: var(--bz-brand-hover); border-color: var(--bz-brand-hover); color: #fff; }
.btn-secondary { background: var(--bz-surface); border-color: var(--bz-border); color: var(--bz-text); }
.btn-secondary:hover { background: var(--bz-surface-muted); color: var(--bz-text); }
.btn-subtle { background: var(--bz-brand-soft); color: var(--bz-brand-hover); }
.btn-subtle:hover { background: #dcdeff; color: var(--bz-brand-hover); }
.btn-danger { background: var(--bz-surface); border-color: var(--bz-border); color: var(--bz-danger); }
.btn-danger:hover { background: var(--bz-danger); border-color: var(--bz-danger); color: #fff; }
.btn-sm { height: 32px; padding: 0 12px; }
.btn-sm .icon { width: 14px; height: 14px; }
.btn-header { height: 36px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0;
  border-radius: var(--bz-radius-control); border: 1px solid var(--bz-border);
  background: var(--bz-surface); color: var(--bz-text-secondary); cursor: pointer;
  transition: background var(--bz-transition-fast);
}
.icon-btn:hover { background: var(--bz-surface-muted); color: var(--bz-text); }

/* ---------- Fields ---------- */
.field {
  display: block; width: 100%; min-height: var(--bz-control-h);
  padding: 9px 12px; font-size: 15px; line-height: 1.4;
  background: var(--bz-surface); border: 1px solid var(--bz-border);
  border-radius: var(--bz-radius-control);
  transition: border-color var(--bz-transition-fast), box-shadow var(--bz-transition-fast);
}
.field:hover { border-color: var(--bz-control-border); }
.field:focus { outline: none; border-color: var(--bz-brand); box-shadow: var(--bz-focus-halo); }
.field::placeholder { color: var(--bz-text-disabled); }
.field:disabled { background: var(--bz-surface-muted); color: var(--bz-text-disabled); }
select.field {
  appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234a4a52' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.field-icon { position: relative; flex: 1; }
.field-icon > .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--bz-text-muted); pointer-events: none; }
.field-icon > .field { padding-left: 38px; }
.label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.help-text { font-size: 13px; color: var(--bz-text-muted); margin: 6px 0 0; }
.code, code, kbd, pre { font-family: var(--bz-font-code); }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 9px; border-radius: var(--bz-radius-pill);
  font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap;
  text-decoration: none !important;
}
.pill-xs { height: 18px; padding: 0 7px; font-size: 11px; }
.pill-neutral { background: var(--bz-surface-muted); color: var(--bz-text-secondary); }
a.pill-neutral:hover { background: var(--bz-brand-soft); color: var(--bz-brand-hover); }
.pill-brand { background: var(--bz-brand-soft); color: var(--bz-brand-hover); }
.pill-success { background: var(--bz-success-soft); color: var(--bz-success); }
.pill-warning { background: var(--bz-warning-soft); color: var(--bz-warning); }
.pill-danger { background: var(--bz-danger-soft); color: var(--bz-danger); }
.pill-teal { background: var(--bz-accent-teal-soft); color: var(--bz-accent-teal); }

/* ---------- Cards ---------- */
.bz-card { background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: var(--bz-radius-card); }
.icon-well {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 36px; height: 36px; border-radius: var(--bz-radius-control);
  background: var(--bz-brand-soft); color: var(--bz-brand);
}
.icon-well-lg { width: 48px; height: 48px; border-radius: var(--bz-radius-card); }

/* ---------- Application header (in flow, 60px) ---------- */
.app-header {
  position: relative; z-index: 30;
  display: flex; align-items: center; gap: 20px;
  min-height: var(--bz-header-h); padding: 0 20px;
  background: var(--bz-surface); border-bottom: 1px solid var(--bz-border);
}
.header-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.header-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--bz-text); text-decoration: none !important; }
.brand-wordmark { height: 20px; width: auto; display: block; }
.brand-text { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--bz-brand); }
.brand-sub {
  font-size: 15px; font-weight: 500; color: var(--bz-text-muted);
  padding-left: 10px; border-left: 1px solid var(--bz-border); line-height: 20px;
}
.nav-open { display: none; }

.switcher { position: relative; }
.switcher-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px;
  background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: var(--bz-radius-control);
  font-size: 13px; font-weight: 600; color: var(--bz-text); cursor: pointer;
}
.switcher-btn > .icon:first-child { color: var(--bz-brand); }
.switcher-btn .chev { color: var(--bz-text-disabled); }
.switcher-btn:hover { background: var(--bz-surface-muted); }

.menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; min-width: 220px;
  background: var(--bz-surface); border: 1px solid var(--bz-border);
  border-radius: var(--bz-radius-overlay); padding: 6px; box-shadow: var(--bz-shadow-overlay);
}
.menu-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--bz-radius-control);
  font-size: 14px; font-weight: 500; color: var(--bz-text); text-decoration: none !important;
}
.menu-item .icon { color: var(--bz-text-secondary); }
.menu-item:hover { background: var(--bz-surface-muted); color: var(--bz-text); }
.menu-item.is-current { background: var(--bz-brand-soft); color: var(--bz-brand-hover); }
.menu-item.is-current .icon { color: var(--bz-brand); }

/* Header search */
.header-search { position: relative; flex: 0 1 460px; display: flex; align-items: center; margin-left: 12px; }
.header-search .search-icon { position: absolute; left: 12px; color: var(--bz-text-muted); pointer-events: none; }
.header-search input {
  width: 100%; height: 38px; padding: 0 52px 0 38px;
  border: 1px solid var(--bz-border); border-radius: var(--bz-radius-control);
  background: var(--bz-surface-subtle); font-size: 14px;
  transition: border-color var(--bz-transition-fast), box-shadow var(--bz-transition-fast), background var(--bz-transition-fast);
}
.header-search input:hover { border-color: var(--bz-control-border); }
.header-search input:focus { outline: none; background: var(--bz-surface); border-color: var(--bz-brand); box-shadow: var(--bz-focus-halo); }
.header-search input::-webkit-search-cancel-button { display: none; }
.search-kbd {
  position: absolute; right: 8px; padding: 2px 6px; font-size: 11px; color: var(--bz-text-muted);
  border: 1px solid var(--bz-border); border-radius: 6px; background: var(--bz-surface); pointer-events: none;
}
.search-pop {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  max-height: min(70vh, 520px); overflow: auto;
  background: var(--bz-surface); border: 1px solid var(--bz-border);
  border-radius: var(--bz-radius-overlay); box-shadow: var(--bz-shadow-overlay); padding: 6px;
}
.search-hit { display: block; padding: 10px 12px; border-radius: var(--bz-radius-control); color: var(--bz-text); text-decoration: none !important; }
.search-hit:hover, .search-hit.is-active { background: var(--bz-surface-muted); color: var(--bz-text); }
.search-hit.is-active { background: var(--bz-brand-soft); }
.search-hit-title { display: block; font-size: 14px; font-weight: 600; }
.search-hit-trail { display: block; font-size: 12px; color: var(--bz-text-muted); margin-top: 1px; }
.search-hit-snippet { display: block; font-size: 13px; color: var(--bz-text-secondary); margin-top: 4px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.search-pop mark, .result-snippet mark { background: #fff0a8; color: inherit; border-radius: 2px; padding: 0 1px; }
.search-empty { padding: 14px 12px; font-size: 14px; color: var(--bz-text-muted); }
.search-all { display: flex; align-items: center; gap: 6px; margin-top: 4px; padding: 10px 12px; border-top: 1px solid var(--bz-divider);
  font-size: 13px; font-weight: 600; text-decoration: none !important; }

/* ---------- Shell ---------- */
.shell { display: flex; align-items: flex-start; }
.sidebar {
  position: sticky; top: 0; flex: none;
  width: var(--bz-sidebar-width); height: 100vh;
  background: var(--bz-surface); border-right: 1px solid var(--bz-border);
  overflow-y: auto; overscroll-behavior: contain;
}
.sidebar-inner { padding: 18px 14px 48px; }
.sidebar-head { display: none; }
.main { flex: 1; min-width: 0; outline: none; }

/* Navigation tree */
.nav { font-size: 14px; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav-line { display: flex; align-items: center; gap: 2px; }
.nav-row {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 11px;
  padding: 7px 10px; border-radius: var(--bz-radius-control);
  color: var(--bz-text-secondary); text-decoration: none !important; line-height: 1.35;
  transition: background var(--bz-transition-fast), color var(--bz-transition-fast);
}
.nav-row .icon { color: var(--bz-text-muted); }
a.nav-row:hover { background: var(--bz-surface-muted); color: var(--bz-text); }
.nav-row.is-active { background: var(--bz-brand-soft); color: var(--bz-brand-hover); font-weight: 600; }
.nav-row.is-active .icon { color: var(--bz-brand); }
.nav-label { color: var(--bz-text); font-weight: 500; cursor: default; }
.nav-text { flex: 1; min-width: 0; }
.nav-tree > .nav-item > .nav-line > .nav-row { color: var(--bz-text); font-weight: 500; font-size: 15px; }
.nav-tree > .nav-item > .nav-line > .nav-row.is-active { font-weight: 600; color: var(--bz-brand-hover); }
.nav-caret {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border: 0; background: none; border-radius: 6px;
  color: var(--bz-text-disabled); cursor: pointer;
}
.nav-caret:hover { background: var(--bz-surface-muted); color: var(--bz-text-secondary); }
.nav-caret .icon { transition: transform var(--bz-transition-fast); }
.nav-item.is-open > .nav-line > .nav-caret .icon { transform: rotate(90deg); }
.nav-children { margin: 2px 0 4px 18px !important; padding-left: 10px !important; border-left: 1px solid var(--bz-divider); }
.nav-tree > .nav-item > .nav-children { margin-left: 19px !important; }
.nav-overview { margin-bottom: 2px; }
.nav-rule { height: 1px; background: var(--bz-divider); margin: 10px 6px 12px; }
.nav-tree > .nav-item { margin-bottom: 2px; }

/* ---------- Pages ---------- */
.page { max-width: var(--bz-content-max); padding: 28px var(--bz-page-gutter) 72px; }
.page-narrow { max-width: 900px; }
.page-head { margin-bottom: 28px; }
.page h1, .doc-title { font-size: 34px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.page-intro { font-size: 16px; line-height: 1.55; color: var(--bz-text-muted); max-width: 660px; margin: 10px 0 0; }
.section-heading { font-size: 18px; font-weight: 500; margin: 28px 0 12px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--bz-text-muted); margin-bottom: 14px; }
.crumbs a { color: var(--bz-text-muted); }
.crumbs a:hover { color: var(--bz-brand); }
.crumbs .icon { color: var(--bz-text-disabled); }

/* Home + product landing */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.product-card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; color: var(--bz-text); text-decoration: none !important;
  transition: border-color var(--bz-transition-fast); }
.product-card:hover { border-color: var(--bz-brand); color: var(--bz-text); }
.product-card-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.product-card-name { font-size: 16px; font-weight: 600; }
.product-card-tagline { font-size: 14px; color: var(--bz-text-muted); }
.product-card-count { font-size: 12px; font-weight: 600; color: var(--bz-text-disabled); margin-top: 4px; }
.product-card-arrow { color: var(--bz-text-disabled); }
.product-card:hover .product-card-arrow { color: var(--bz-brand); }

.hero { margin-bottom: 8px; }
.hero-row { display: flex; align-items: center; gap: 18px; }
.hero-text { min-width: 0; }
.product-logo { display: block; flex: none; object-fit: cover; border-radius: 22%; }
.switcher-btn .product-logo, .menu-item .product-logo { border-radius: 6px; }
.hero .product-logo { box-shadow: 0 10px 22px rgb(64 72 255 / 22%); }
.kb-card .product-logo { box-shadow: 0 8px 18px rgb(18 18 20 / 14%); transition: transform var(--bz-transition-base); }
.kb-card:hover .product-logo { transform: rotate(-6deg) scale(1.04); }
.hero-well { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; flex: none;
  border-radius: var(--bz-radius-card); background: linear-gradient(135deg, #353dd6, #4048ff); color: #fff; }
.hero-lede { font-size: 16px; color: var(--bz-text-muted); margin: 6px 0 0; }
.prose-intro { max-width: 760px; color: var(--bz-text-secondary); }

.section-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.section-card { padding: 18px 20px 16px; display: flex; flex-direction: column; }
.section-card-head { display: flex; align-items: center; gap: 12px; }
.section-card h3 { font-size: 16px; font-weight: 600; line-height: 1.35; }
.section-card h3 a { color: var(--bz-text); }
.section-card h3 a:hover { color: var(--bz-brand); }
.section-card-summary { font-size: 14px; color: var(--bz-text-muted); margin: 10px 0 0; }
.section-card-links { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--bz-divider); }
.section-card-links li a, .section-card-links li span { display: flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 14px; color: var(--bz-text-secondary); }
.section-card-links li a:hover { color: var(--bz-brand); text-decoration: none; }
.section-card-links .icon { color: var(--bz-text-disabled); }
.section-card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 600; }

/* ---------- Article ---------- */
.doc-layout {
  display: grid; grid-template-columns: minmax(0, var(--doc-measure)) var(--rail-width);
  gap: 56px; padding: 28px var(--bz-page-gutter) 72px; max-width: var(--bz-content-max);
}
.doc-layout.no-rail { grid-template-columns: minmax(0, var(--doc-measure)); }
.doc { min-width: 0; }
.doc-lede { font-family: var(--bz-font-read); font-size: 17px; line-height: 1.55; color: var(--bz-text-muted); margin: 10px 0 0; max-width: 660px; }
.doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 16px 0 6px; font-size: 13px; color: var(--bz-text-muted); }
.meta-item { display: inline-flex; align-items: center; gap: 6px; }
.meta-item .icon { color: var(--bz-text-disabled); }

.toc-mobile { display: none; margin: 18px 0 0; border: 1px solid var(--bz-border); border-radius: var(--bz-radius-card); background: var(--bz-surface); }
.toc-mobile summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile .chev { margin-left: auto; color: var(--bz-text-disabled); transition: transform var(--bz-transition-fast); }
.toc-mobile[open] .chev { transform: rotate(180deg); }
.toc-mobile ul { list-style: none; margin: 0; padding: 4px 14px 12px; border-top: 1px solid var(--bz-divider); }
.toc-mobile li { padding: 4px 0; font-size: 14px; }
.toc-mobile li.lvl-3 { padding-left: 14px; }

.rail { position: relative; }
.rail-inner { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; padding-top: 6px; }
.rail-title { font-size: 12px; font-weight: 600; color: var(--bz-text-muted); margin: 0 0 10px; }
.rail-list { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--bz-divider); }
.rail-list a {
  display: block; margin-left: -1px; padding: 5px 0 5px 14px; border-left: 2px solid transparent;
  font-size: 13px; line-height: 1.4; color: var(--bz-text-muted); text-decoration: none !important;
}
.rail-list li.lvl-3 a { padding-left: 26px; }
.rail-list a:hover { color: var(--bz-text); }
.rail-list a.is-active { color: var(--bz-brand-hover); border-left-color: var(--bz-brand); font-weight: 600; }

/* Prose */
.prose { font-family: var(--bz-font-read); font-size: 16px; line-height: 1.7; color: var(--bz-text); margin-top: 24px; }
.prose h2, .prose h3, .prose h4, .prose th, .prose .callout-title, .prose figcaption { font-family: var(--bz-font-ui); }
.prose strong { font-weight: 600; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li, .prose td, .prose th, .prose .callout-body { overflow-wrap: anywhere; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure, .prose .table-wrap, .prose pre, .prose .embed, .prose .callout, .prose details { margin: 0 0 18px; }
.prose h2, .prose h3, .prose h4 { position: relative; scroll-margin-top: 24px; }
.prose h2 { font-size: 25px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; margin: 56px 0 16px; padding-top: 30px; border-top: 1px solid var(--bz-border); }
.prose h2::before { content: ""; position: absolute; top: -2px; left: 0; width: 44px; height: 3px; border-radius: 3px; background: var(--bz-brand); }
.prose h3 { font-size: 19px; font-weight: 600; line-height: 1.35; margin: 36px 0 10px; }
.prose h4 { font-size: 16px; font-weight: 600; margin: 24px 0 8px; }
.heading-anchor { margin-left: 8px; color: var(--bz-text-disabled); font-weight: 400; opacity: 0; text-decoration: none !important; transition: opacity var(--bz-transition-fast); }
.prose :is(h2, h3, h4):hover .heading-anchor, .heading-anchor:focus { opacity: 1; }
.heading-anchor:hover { color: var(--bz-brand); }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: 4px 0; }
.prose li > ul, .prose li > ol { margin: 4px 0 0; }
.prose li::marker { color: var(--bz-text-muted); }
.prose ol > li::marker { font-weight: 600; }

/* Numbered steps: numbers sit in circles joined by a line, so a sequence reads as one block */
.prose ol { list-style: none; counter-reset: step; padding: 20px 22px 20px 20px; background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: var(--bz-radius-card); }
.prose ol > li { position: relative; counter-increment: step; margin: 0; padding: 1px 0 18px 46px; min-height: 30px; }
.prose ol > li:last-child { padding-bottom: 2px; }
.prose ol > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; z-index: 1;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bz-brand); color: #fff; font: 600 14px/1 var(--bz-font-ui);
}
.prose ol > li::after { content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; width: 2px; background: rgb(64 72 255 / 28%); }
.prose ol > li:last-child::after { display: none; }
.prose ol > li > :is(ul, ol, p, figure, .callout, pre, .table-wrap):last-child { margin-bottom: 0; }
.prose ol > li > p { margin: 0 0 10px; }
/* Bullets: small dots joined by a thin line, a lighter version of the steps */
.prose ul:not(.ref-list) { list-style: none; padding-left: 0; }
.prose ul:not(.ref-list) > li { position: relative; margin: 0; padding: 0 0 8px 26px; }
.prose ul:not(.ref-list) > li:last-child { padding-bottom: 0; }
.prose ul:not(.ref-list) > li::before {
  content: ""; position: absolute; left: 4px; top: calc(0.85em - 4px); z-index: 1;
  width: 9px; height: 9px; border-radius: 50%; box-sizing: border-box;
  background: var(--bz-canvas); border: 2px solid rgb(64 72 255 / 70%);
}
.prose ul:not(.ref-list) > li::after { content: ""; position: absolute; left: 8px; top: calc(0.85em + 5px); bottom: calc(-0.85em + 4px); width: 1px; background: rgb(64 72 255 / 26%); }
.prose ul:not(.ref-list) > li:last-child::after { display: none; }
.prose ul:not(.ref-list) > li > :is(ul, ol, p):last-child { margin-bottom: 0; }
/* Bullets inside other lists, tables and callouts stay plain */
.prose li ul:not(.ref-list), .prose td ul, .prose .callout ul { list-style: disc; padding-left: 20px; }
.prose li ul:not(.ref-list) > li, .prose td ul > li, .prose .callout ul > li { padding: 0; margin: 3px 0; }
.prose li ul:not(.ref-list) > li::before, .prose li ul:not(.ref-list) > li::after,
.prose td ul > li::before, .prose td ul > li::after, .prose .callout ul > li::before, .prose .callout ul > li::after { display: none; }
.prose ol > li > ul { margin-top: 6px; }

/* Lists inside a step, or inside tables, stay simple */
.prose li ol, .prose td ol, .prose .callout ol { list-style: decimal; padding: 0 0 0 22px; counter-reset: none; background: none; border: 0; border-radius: 0; }
.prose li ol > li, .prose td ol > li, .prose .callout ol > li { padding: 0; min-height: 0; margin: 4px 0; }
.prose li ol > li::before, .prose li ol > li::after, .prose td ol > li::before, .prose td ol > li::after,
.prose .callout ol > li::before, .prose .callout ol > li::after { display: none; }
.prose .callout ol > li::marker, .prose li ol > li::marker { color: var(--bz-text-muted); }
.prose a { text-decoration: underline; text-decoration-color: rgb(64 72 255 / 35%); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose a.ext::after {
  content: ""; display: inline-block; width: 11px; height: 11px; margin-left: 3px; vertical-align: 1px;
  background: currentColor; opacity: .7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.prose strong { font-weight: 600; }
.prose hr { border: 0; height: 14px; margin: 44px 0; position: relative; overflow: visible; background: none; }
.prose hr::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--bz-border); }
.prose hr::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; translate: -50% -50%; rotate: 45deg;
  background: var(--bz-brand); border-radius: 2px; box-shadow: 0 0 0 7px var(--bz-canvas);
}
.prose hr + h2 { border-top: 0; padding-top: 0; margin-top: 0; }
.prose hr + h2::before { display: none; }
.prose hr + h3, .prose hr + h4 { margin-top: 0; }
.prose hr:first-child, .prose hr:last-child, .prose hr + hr { display: none; }
.prose blockquote { padding: 2px 0 2px 18px; border-left: 3px solid var(--bz-border); color: var(--bz-text-secondary); }
.prose code { font-size: 0.86em; padding: 2px 6px; border-radius: 6px; background: var(--bz-surface-muted); border: 1px solid var(--bz-divider); word-break: break-word; }
.prose pre { padding: 16px 18px; border-radius: var(--bz-radius-card); background: #16161d; color: #e9e9f2; overflow-x: auto; font-size: 13.5px; line-height: 1.6; }
.prose pre code { padding: 0; background: none; border: 0; font-size: inherit; color: inherit; word-break: normal; }
.prose kbd { font-size: 0.82em; padding: 2px 6px; border: 1px solid var(--bz-border); border-bottom-width: 2px; border-radius: 6px; background: var(--bz-surface); }
.prose figure.media { margin-left: 0; margin-right: 0; }
.prose figure.media img, .prose figure.media video, .prose p > img {
  display: block; border: 1px solid var(--bz-border); border-radius: var(--bz-radius-card); background: var(--bz-surface);
}
.prose figure.media img { cursor: zoom-in; }
.prose figure.media video { width: 100%; background: #000; }
.prose figcaption { margin-top: 8px; font-size: 13px; color: var(--bz-text-muted); }
.prose .embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--bz-radius-card); overflow: hidden; background: #000; }
.prose .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose input[type="checkbox"] { margin-right: 6px; }
.link-broken { color: var(--bz-danger); border-bottom: 1px dashed var(--bz-danger); }

/* Tables — §6 anatomy */
.table-wrap { overflow-x: auto; background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: var(--bz-radius-card); }
.prose table, table.bz-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.prose th, .bz-table th {
  background: var(--bz-surface-subtle); color: var(--bz-text-muted); font-size: 13px; font-weight: 600;
  text-align: left; white-space: nowrap; padding: 11px 16px; border-bottom: 1px solid var(--bz-border);
}
.prose td, .bz-table td { padding: 13px 16px; border-bottom: 1px solid var(--bz-divider); vertical-align: top; }
.prose tr:last-child td, .bz-table tbody tr:last-child td { border-bottom: 0; }
.prose td code { white-space: nowrap; }

/* Callouts */
.callout { --c-edge: var(--bz-brand); padding: 14px 18px 14px 24px; border-radius: 6px; border: 1px solid; box-shadow: inset 5px 0 0 var(--c-edge); font-size: 15px; line-height: 1.6; }
.callout-body { min-width: 0; }
.callout-body > :last-child { margin-bottom: 0; }
.callout-body > p, .callout-body > ul, .callout-body > ol { margin: 0 0 10px; }
.callout-title { font-weight: 600; margin: 0 0 4px !important; color: var(--c-edge); }
.callout-info { --c-edge: #4048ff; background: #f3f4ff; border-color: #d4d7ff; }
.callout-success { --c-edge: #16a34a; background: var(--bz-success-soft); border-color: #bfe8cf; }
.callout-warning { --c-edge: #d9a400; background: var(--bz-warning-soft); border-color: #f1dd9a; }
.callout-danger { --c-edge: #d93a2e; background: var(--bz-danger-soft); border-color: #f6c8c3; }
.callout-teal { --c-edge: #0f9488; background: var(--bz-accent-teal-soft); border-color: #bfe5dd; }
.callout-warm { --c-edge: #e0782a; background: var(--bz-accent-warm-soft); border-color: #f3d3b5; }
.callout-info .callout-title { color: var(--bz-brand-hover); }
.callout-warning .callout-title { color: var(--bz-warning); }
.doc > .callout { margin: 16px 0 0; }

/* Pager + footer */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 48px; }
.pager-card {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 18px;
  background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: var(--bz-radius-card);
  color: var(--bz-text); text-decoration: none !important; transition: border-color var(--bz-transition-fast);
}
.pager-card:hover { border-color: var(--bz-brand); color: var(--bz-text); }
.pager-card.next { text-align: right; align-items: flex-end; grid-column: 2; }
.pager-dir { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--bz-text-muted); }
.pager-title { font-size: 15px; font-weight: 600; color: var(--bz-brand-hover); }
.doc-footer { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--bz-divider); font-size: 13px; }
.doc-footer a { display: inline-flex; align-items: center; gap: 6px; color: var(--bz-text-muted); }
.doc-footer a:hover { color: var(--bz-brand); }

/* Search page */
.search-page-form { display: flex; gap: 8px; margin: 20px 0 8px; max-width: 720px; }
.result-count { font-size: 13px; color: var(--bz-text-muted); margin: 18px 0 8px; }
.results { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.result { padding: 16px 0; border-bottom: 1px solid var(--bz-divider); }
.result-title { font-size: 17px; font-weight: 600; }
.result-trail { display: block; font-size: 12px; color: var(--bz-text-muted); margin-top: 2px; }
.result-snippet { font-family: var(--bz-font-read); margin: 6px 0 0; font-size: 14px; color: var(--bz-text-secondary); }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 10px;
  border: 1px solid var(--bz-border); border-radius: var(--bz-radius-control); background: var(--bz-surface);
  font-size: 13px; font-weight: 600; color: var(--bz-text); text-decoration: none !important; }
.page-btn:hover { background: var(--bz-surface-muted); color: var(--bz-text); }
.page-btn.is-current { background: var(--bz-brand); border-color: var(--bz-brand); color: #fff; }
.empty-state { padding: 40px 24px; text-align: center; border: 1px dashed var(--bz-border); border-radius: var(--bz-radius-card); color: var(--bz-text-muted); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 32px;
  background: rgb(18 18 20 / 82%); cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--bz-radius-card); background: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
  .doc-layout { grid-template-columns: minmax(0, var(--doc-measure)); }
  .rail { display: none; }
  .toc-mobile { display: block; }
}
@media (max-width: 1023px) {
  .nav-open { display: inline-flex; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 80; height: auto;
    width: min(320px, 86vw); transform: translateX(-102%);
    transition: transform var(--bz-transition-base); box-shadow: var(--bz-shadow-overlay);
  }
  .sidebar.is-open { transform: none; }
  .sidebar-head { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 12px; }
  .sidebar-title { font-size: 14px; font-weight: 600; }
  .scrim { position: fixed; inset: 0; z-index: 70; background: rgb(18 18 20 / 45%); }
  .search-kbd { display: none; }
}
/* Search sits in the middle of the header: the two side columns stay equal while there's room,
   and give way to their content (brand, guide switcher, buttons) when the window is narrow. */
@media (min-width: 860px) {
  .app-header { display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(240px, 440px) minmax(max-content, 1fr); }
  .app-header .header-left { justify-self: start; }
  .app-header .header-search { width: 100%; margin-left: 0; }
  .app-header .header-right { grid-column: 3; justify-self: end; margin-left: 0; }
}
@media (max-width: 859px) {
  .app-header { flex-wrap: wrap; gap: 10px 12px; padding: 10px 16px; }
  .header-search { order: 3; flex: 1 1 100%; margin-left: 0; }
  .header-search input { height: 40px; font-size: 16px; }
  .hide-narrow { display: none; }
  .brand-sub { display: none; }
  .page h1, .doc-title { font-size: 28px; }
  .doc-layout { padding-top: 20px; gap: 0; }
  .prose { font-size: 16px; }
  .pager { grid-template-columns: 1fr; }
  .pager-card.next { grid-column: auto; }
  .search-page-form { flex-direction: column; }
  .hero { align-items: flex-start; }
  .hero-well { width: 48px; height: 48px; }
}
@media print {
  .app-header, .sidebar, .rail, .pager, .doc-footer, .toc-mobile { display: none !important; }
  .doc-layout { display: block; padding: 0; }
  body { background: #fff; }
}

/* ---------- Help centre home ---------- */
.kb { max-width: var(--bz-content-max); padding: 28px var(--bz-page-gutter) 72px; }
.kb-hero {
  position: relative; z-index: 5; isolation: isolate;
  border-radius: 16px; padding: 56px 56px 44px; color: #fff;
}
.kb-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit;
  background: linear-gradient(135deg, #2b31c4 0%, #353dd6 38%, #4048ff 100%); }
.kb-hero-bg::after { /* soft glow */
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -140px; top: -220px;
  background: radial-gradient(closest-side, rgb(255 255 255 / 22%), transparent); pointer-events: none;
}
.kb-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.kb-float { transform-box: fill-box; transform-origin: center; animation: kbfloat 9s ease-in-out infinite; }
.kb-float.b { animation-duration: 11s; animation-delay: -3s; }
.kb-float.c { animation-duration: 13s; animation-delay: -6s; }
.kb-float.d { animation-duration: 7s; animation-delay: -2s; }
.kb-float.e { animation-duration: 8s; animation-delay: -5s; }
.kb-float.f { animation: kbtwinkle 4s ease-in-out infinite; }
/* Photo booth icons scattered in the open space of the hero (Phosphor) */
.kb-icons { position: absolute; inset: 0; pointer-events: none; }
.kb-ic { position: absolute; display: block; color: #fff; translate: -50% -50%; }
.kb-ic svg { display: block; width: 100%; height: auto; rotate: var(--r, 0deg); }
@media (max-width: 1100px) { .kb-ic-wide { display: none; } }
@media (max-width: 700px) { .kb-icons { display: none; } }
@keyframes kbfloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes kbfloat-ic { 0%, 100% { translate: -50% -50%; } 50% { translate: -50% calc(-50% - 12px); } }
.kb-ic.kb-float:not(.f) { animation-name: kbfloat-ic; }
@keyframes kbtwinkle { 0%, 100% { opacity: .9; scale: 1; } 50% { opacity: .35; scale: .7; } }
.kb-ic.f { animation-name: kbtwinkle-ic; }
@keyframes kbtwinkle-ic { 0%, 100% { scale: 1; filter: none; } 50% { scale: .7; filter: opacity(.45); } }
@media (prefers-reduced-motion: reduce) { .kb-float { animation: none !important; } }

.kb-hero-inner { position: relative; max-width: 760px; }
.kb-eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 5px 12px 5px 10px; border-radius: 999px;
  background: rgb(255 255 255 / 14%); font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.kb-hero h1 { font-size: 48px; font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; margin: 0; }
.kb-sub { font-size: 18px; line-height: 1.5; margin: 12px 0 28px; color: rgb(255 255 255 / 86%); }

.kb-search { position: relative; }
.kb-search-box {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px;
  background: #fff; border-radius: 14px; box-shadow: 0 18px 40px rgb(18 18 20 / 22%);
  transition: box-shadow var(--bz-transition-base);
}
.kb-search-box:focus-within { box-shadow: 0 18px 40px rgb(18 18 20 / 22%), 0 0 0 4px rgb(255 255 255 / 35%); }
.kb-search-icon { color: var(--bz-brand); flex: none; }
.kb-search-box input { flex: 1; min-width: 0; height: 48px; border: 0; outline: none; background: none; font-size: 18px; color: var(--bz-text); }
.kb-search-box input::placeholder { color: var(--bz-text-disabled); }
.kb-search-box input::-webkit-search-cancel-button { display: none; }
.kb-search-btn { height: 48px; padding: 0 22px; border-radius: 10px; font-size: 14px; }
.kb-pop { top: calc(100% + 8px); left: 0; right: 0; color: var(--bz-text); text-align: left; }
.kb-pop .search-hit-trail .pill { margin-right: 6px; vertical-align: 1px; }

.kb-scopes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.kb-scopes-label { font-size: 13px; color: rgb(255 255 255 / 75%); margin-right: 2px; }
.kb-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgb(255 255 255 / 30%); background: rgb(255 255 255 / 8%); color: #fff;
  font-size: 13px; font-weight: 600; transition: background var(--bz-transition-fast), color var(--bz-transition-fast), border-color var(--bz-transition-fast);
}
.kb-chip:hover { background: rgb(255 255 255 / 18%); }
.kb-chip[aria-pressed="true"] { background: #fff; color: var(--bz-brand-hover); border-color: #fff; }
.kb-chip:focus-visible { outline-color: #fff; }

.kb-section { margin-top: 40px; }
.kb-section-head { display: flex; align-items: baseline; justify-content: space-between; }
.kb-section .section-heading { font-size: 22px; font-weight: 600; margin: 0 0 16px; }

.kb-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.kb-card {
  --acc: var(--bz-brand); --acc-soft: var(--bz-brand-soft); --acc-grad: linear-gradient(135deg, #353dd6, #4048ff);
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: 14px;
  transition: transform var(--bz-transition-base), box-shadow var(--bz-transition-base), border-color var(--bz-transition-base);
}
.kb-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--acc-grad); }
.kb-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgb(18 18 20 / 9%); border-color: color-mix(in srgb, var(--acc) 35%, var(--bz-border)); }
@media (prefers-reduced-motion: reduce) { .kb-card:hover { transform: none; } }
.accent-green { --acc: var(--bz-success); --acc-soft: var(--bz-success-soft); --acc-grad: linear-gradient(135deg, #15803d, #1e9e52); }
.accent-teal { --acc: var(--bz-accent-teal); --acc-soft: var(--bz-accent-teal-soft); --acc-grad: linear-gradient(135deg, #0b5f59, #0f766e); }
.accent-warm { --acc: var(--bz-accent-warm); --acc-soft: var(--bz-accent-warm-soft); --acc-grad: linear-gradient(135deg, #7d3c10, #9a4d18); }
.kb-card-main { display: flex; align-items: center; gap: 16px; padding: 24px 22px 18px; color: var(--bz-text); text-decoration: none !important; }
.kb-card-main:hover { color: var(--bz-text); }
.kb-card-well { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 56px; height: 56px; border-radius: 14px;
  background: var(--acc-grad); color: #fff; box-shadow: 0 8px 18px color-mix(in srgb, var(--acc) 30%, transparent);
  transition: transform var(--bz-transition-base); }
.kb-card:hover .kb-card-well { transform: rotate(-6deg) scale(1.04); }
.kb-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.kb-card-name { font-size: 18px; font-weight: 600; }
.kb-card-tagline { font-size: 14px; color: var(--bz-text-muted); line-height: 1.4; }
.kb-card-go { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--acc-soft); color: var(--acc); transition: transform var(--bz-transition-base); }
.kb-card:hover .kb-card-go { transform: translateX(3px); }
.kb-card-links { list-style: none; margin: 0 22px; padding: 10px 0; border-top: 1px solid var(--bz-divider); display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.kb-card-links a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin: 0 -8px; border-radius: var(--bz-radius-control);
  font-size: 14px; color: var(--bz-text-secondary); text-decoration: none !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-card-links a .icon { color: var(--acc); }
.kb-card-links a:hover { background: var(--acc-soft); color: var(--bz-text); }
.kb-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 12px 22px 16px; border-top: 1px solid var(--bz-divider); }
.kb-count { font-size: 13px; color: var(--bz-text-muted); }
.kb-count strong { color: var(--bz-text); font-weight: 600; }
.kb-card-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--acc); }
.kb-card-cta:hover { color: var(--acc); }

.kb-lower { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 18px; margin-top: 40px; align-items: start; }
.card-head-row { padding: 16px 22px; border-bottom: 1px solid var(--bz-divider); }
.kb-card-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.kb-card-title .icon { color: var(--bz-brand); }
.kb-recent-list { list-style: none; margin: 0; padding: 6px 10px 10px; }
.kb-recent-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 12px; border-radius: var(--bz-radius-control);
  color: var(--bz-text); text-decoration: none !important; }
.kb-recent-list a:hover { background: var(--bz-surface-muted); color: var(--bz-text); }
.kb-recent-title { font-size: 15px; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-recent-meta { display: inline-flex; align-items: center; gap: 10px; flex: none; font-size: 13px; color: var(--bz-text-muted); }

.kb-help { position: relative; overflow: hidden; padding: 26px 24px; border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, #15803d, #1e9e52); }
.kb-help::after { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; bottom: -90px; border-radius: 50%;
  border: 28px solid rgb(255 255 255 / 10%); pointer-events: none; }
.kb-help-well { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: rgb(255 255 255 / 18%); }
.kb-help h2 { font-size: 20px; font-weight: 600; margin: 14px 0 6px; }
.kb-help p { margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: #fff; }
.kb-help-btn { background: #fff; color: var(--bz-success); }
.kb-help-btn:hover { background: var(--bz-success-soft); color: var(--bz-success); }
.kb-help-ai { display: flex; align-items: center; gap: 6px; margin: 16px 0 0 !important; font-size: 13px !important; color: rgb(255 255 255 / 85%) !important; }
.kb-help-ai a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.scope-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--bz-text-muted); margin: 4px 0 0; }

@media (max-width: 1023px) { .kb-lower { grid-template-columns: 1fr; } }
@media (max-width: 859px) {
  .kb { padding-top: 16px; }
  .kb-hero { padding: 36px 20px 28px; border-radius: 14px; }
  .kb-hero h1 { font-size: 34px; }
  .kb-sub { font-size: 16px; margin-bottom: 20px; }
  .kb-search-box { padding-left: 14px; }
  .kb-search-box input { font-size: 16px; height: 44px; }
  .kb-search-btn { width: 44px; height: 44px; padding: 0; }
  .kb-search-btn span { display: none; }
  .kb-card-links { grid-template-columns: 1fr; }
  .kb-recent-meta .pill { display: none; }
}

/* Home: support banner (full width) */
.kb-help { display: flex; align-items: center; gap: 20px; margin-top: 40px; }
.kb-help-text { flex: 1; min-width: 0; }
.kb-help-text h2 { margin: 0 0 4px; }
.kb-help-text p { margin: 0 !important; }
.kb-help-btn { flex: none; }
@media (max-width: 859px) { .kb-help { flex-direction: column; align-items: flex-start; } }

/* Sidebar: AI call-out */
.ai-callout {
  position: relative; display: flex; align-items: center; gap: 12px; margin: 18px 4px 0; padding: 14px 14px;
  border-radius: 12px; overflow: hidden; text-decoration: none !important; color: #fff;
  background: linear-gradient(135deg, #353dd6, #4048ff);
  transition: transform var(--bz-transition-base), box-shadow var(--bz-transition-base);
}
.ai-callout::after { content: ""; position: absolute; width: 90px; height: 90px; right: -30px; top: -40px; border-radius: 50%;
  border: 14px solid rgb(255 255 255 / 12%); pointer-events: none; }
.ai-callout:hover, .ai-callout.is-active { color: #fff; box-shadow: 0 10px 22px rgb(64 72 255 / 28%); transform: translateY(-1px); }
.ai-callout-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: rgb(255 255 255 / 18%); }
.ai-callout-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ai-callout-title { font-size: 14px; font-weight: 600; }
.ai-callout-sub { font-size: 12px; line-height: 1.4; color: rgb(255 255 255 / 85%); }
.ai-callout-go { flex: none; opacity: .85; transition: transform var(--bz-transition-fast); }
.ai-callout:hover .ai-callout-go { transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) { .ai-callout:hover { transform: none; } }

/* Product overview actions */
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* System pages */
.sys-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.sys-hero-well { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 60px; height: 60px; border-radius: 14px;
  background: linear-gradient(135deg, #353dd6, #4048ff); color: #fff; box-shadow: 0 10px 22px rgb(64 72 255 / 25%); }
.sys-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 10px 0 0; font-size: 14px; color: var(--bz-text-muted); }
.sys-hero-meta a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.sys-companion { max-width: var(--doc-measure); margin-top: 40px; }

.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; max-width: 1100px; }
.dl-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: 14px;
  transition: border-color var(--bz-transition-base), box-shadow var(--bz-transition-base); }
.dl-card:hover { border-color: #c5c9ff; box-shadow: 0 12px 26px rgb(18 18 20 / 7%); }
.dl-card-top { display: flex; align-items: center; gap: 14px; }
.dl-well { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--bz-brand-soft); color: var(--bz-brand); }
.dl-mac, .dl-windows { background: var(--bz-accent-teal-soft); color: var(--bz-accent-teal); }
.dl-web { background: var(--bz-success-soft); color: var(--bz-success); }
.dl-file { background: var(--bz-accent-warm-soft); color: var(--bz-accent-warm); }
.dl-name { font-size: 17px; font-weight: 600; line-height: 1.3; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 0; font-size: 13px; color: var(--bz-text-muted); }
.dl-meta span + span::before { content: "·"; margin-right: 12px; color: var(--bz-text-disabled); }
.dl-note { margin: 0; font-size: 14px; color: var(--bz-text-secondary); font-family: var(--bz-font-read); }
.dl-btn { align-self: flex-start; margin-top: auto; }

/* Previous versions (Downloads page) */
.dl-previous { max-width: 1100px; margin-top: 44px; scroll-margin-top: 24px; }
.dl-previous-head h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.dl-previous-head p { margin: 6px 0 16px; max-width: var(--doc-measure); font-size: 15px; color: var(--bz-text-secondary); font-family: var(--bz-font-read); }
.dl-table-wrap { overflow-x: auto; background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: 14px; }
.dl-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.dl-table th { padding: 12px 18px; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--bz-text-muted); border-bottom: 1px solid var(--bz-border); }
.dl-table td { padding: 10px 18px; border-bottom: 1px solid var(--bz-divider); vertical-align: middle; }
.dl-table tbody tr:last-child td { border-bottom: 0; }
.dl-table tbody tr:hover { background: var(--bz-surface-hover, #f7f7fb); }
.dl-more-btn { display: block; width: 100%; padding: 12px; background: none; border: 0; border-top: 1px solid var(--bz-divider); font: inherit; font-size: 14px; font-weight: 600; color: var(--bz-brand); cursor: pointer; }
.dl-more-btn:hover { background: var(--bz-brand-soft); }
.dl-version { font-weight: 600; font-variant-numeric: tabular-nums; }
.dl-date { color: var(--bz-text-muted); white-space: nowrap; }
.dl-links { display: flex; justify-content: flex-end; align-items: center; gap: 16px; white-space: nowrap; }
.dl-links > a:not(.btn) { font-size: 14px; font-weight: 600; }
@media (max-width: 560px) {
  .dl-table th:nth-child(2), .dl-date { display: none; }
  .dl-links > a:not(.btn) { display: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Release history */
.releases { list-style: none; margin: 28px 0 0; padding: 0 0 0 26px; border-left: 2px solid var(--bz-divider); }
.release { position: relative; padding: 0 0 32px; scroll-margin-top: 24px; }
.release::before { content: ""; position: absolute; left: -33px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bz-surface); border: 2px solid var(--bz-control-border); }
.release.is-latest::before { background: var(--bz-success); border-color: var(--bz-success); box-shadow: 0 0 0 4px var(--bz-success-soft); }
.release-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 6px; }
.release-version { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.release-version a { color: var(--bz-text); text-decoration: none !important; }
.release-version a:hover { color: var(--bz-brand); }
.release-date { font-size: 14px; color: var(--bz-text-muted); }
.release-dl { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-size: 14px; font-weight: 600; }
.release-notes { margin-top: 8px; font-size: 15px; }
.release-notes ul { margin-bottom: 10px; list-style: disc; }
.release-notes li { margin: 2px 0; }
.rail-date { color: var(--bz-text-disabled); font-size: 12px; margin-left: 4px; }

/* Using AI page */
.ai-hero { position: relative; overflow: hidden; padding: 36px 36px 32px; margin-bottom: 24px; border-radius: 16px; color: #fff;
  background: linear-gradient(135deg, #2b31c4, #4048ff); }
.ai-hero::after { content: ""; position: absolute; width: 260px; height: 260px; right: -60px; top: -90px; border-radius: 50%;
  border: 36px solid rgb(255 255 255 / 10%); pointer-events: none; }
.ai-hero-text { position: relative; max-width: 680px; }
.ai-hero h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
.ai-hero p { margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: rgb(255 255 255 / 88%); }
.ai-eyebrow { margin-bottom: 12px !important; }
.ai-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.ai-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: 14px; }
.ai-card h2 { font-size: 17px; font-weight: 600; margin: 0; }
.ai-card p { margin: 0; font-size: 14px; color: var(--bz-text-secondary); font-family: var(--bz-font-read); line-height: 1.55; }
.ai-card .btn-row { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.ai-step { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--bz-brand-soft); color: var(--bz-brand-hover); font-weight: 700; font-size: 14px; }
.copy-field { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 6px 6px 6px 12px; background: var(--bz-surface-subtle);
  border: 1px solid var(--bz-border); border-radius: var(--bz-radius-control); }
.copy-field code, .copy-field span { flex: 1; min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.copy-field span { font-family: var(--bz-font-read); color: var(--bz-text-secondary); line-height: 1.5; }
.copy-field-block { align-items: flex-start; }
[data-copy-text].is-copied { background: var(--bz-success-soft); border-color: #bfe8cf; color: var(--bz-success); }
.ai-tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px 18px; margin-top: 18px; }
.ai-tip { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--bz-surface-muted); font-size: 14px; color: var(--bz-text-secondary); }
.ai-tip .icon { color: var(--bz-brand); flex: none; margin-top: 2px; }
.ai-tip strong { color: var(--bz-text); }
.ai-tip code { font-size: 12px; background: var(--bz-surface); padding: 1px 5px; border-radius: 4px; }
@media (max-width: 859px) { .ai-hero { padding: 26px 20px; } .ai-hero h1 { font-size: 28px; } .sys-hero h1 { font-size: 28px; } }

/* Segmented switch (40px, tab-strip pattern) */
.segmented { display: inline-flex; height: var(--bz-control-h); border: 1px solid var(--bz-border); border-radius: var(--bz-radius-control); background: var(--bz-surface); overflow: hidden; }
.segmented > * { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border: 0; border-right: 1px solid var(--bz-divider);
  background: none; font-size: 13px; font-weight: 600; color: var(--bz-text-muted); cursor: pointer; text-decoration: none !important; }
.segmented > *:last-child { border-right: 0; }
.segmented > *:hover { background: var(--bz-surface-muted); color: var(--bz-text); }
.segmented > [aria-pressed="true"] { background: var(--bz-brand); color: #fff; }

.tut-body.show-transcript .rail { visibility: hidden; }

/* ---------- Video tutorials ---------- */
.tut { max-width: var(--bz-content-max); }
.tut-head { padding: 28px var(--bz-page-gutter) 0; max-width: 1100px; }
.tut-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.tut-badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px;
  background: linear-gradient(135deg, #353dd6, #4048ff); color: #fff; font-size: 12px; font-weight: 600; }
.tut-tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  background: var(--bz-surface); border: 1px solid var(--bz-border); color: var(--bz-text-secondary); font-size: 12px; font-weight: 600; }
.tut-tag .icon { color: var(--bz-text-muted); }

.tut-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px var(--bz-page-gutter) 0; max-width: 1240px; }
.tut-stage.has-chapters { grid-template-columns: minmax(0, 1fr) 300px; }
.tut-player { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0d0d14;
  box-shadow: 0 18px 40px rgb(18 18 20 / 18%); }
.tut-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tut-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #0d0d14; }
.tut-facade img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms ease, opacity var(--bz-transition-base); opacity: .92; }
.tut-facade:hover img { transform: scale(1.02); opacity: 1; }
.tut-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(13 13 20 / 45%)); pointer-events: none; }
.tut-play { position: absolute; z-index: 1; left: 50%; top: 50%; translate: -50% -50%; display: inline-flex; align-items: center; justify-content: center;
  width: 84px; height: 84px; padding-left: 4px; border-radius: 50%; color: #fff; background: rgb(64 72 255 / 92%);
  box-shadow: 0 0 0 10px rgb(255 255 255 / 18%), 0 12px 30px rgb(0 0 0 / 35%); transition: transform var(--bz-transition-base), box-shadow var(--bz-transition-base); }
.tut-facade:hover .tut-play, .tut-facade:focus-visible .tut-play { transform: scale(1.08); box-shadow: 0 0 0 14px rgb(255 255 255 / 22%), 0 12px 30px rgb(0 0 0 / 35%); }
.tut-dur { position: absolute; z-index: 1; right: 12px; bottom: 12px; padding: 3px 8px; border-radius: 6px; background: rgb(13 13 20 / 80%);
  color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }

.tut-chapters { display: flex; flex-direction: column; min-height: 0; max-height: 100%; background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: 14px; overflow: hidden; }
.tut-stage.has-chapters .tut-chapters { aspect-ratio: auto; }
.tut-chapters-title { margin: 0; padding: 14px 16px 10px; font-size: 13px; font-weight: 600; color: var(--bz-text-muted); border-bottom: 1px solid var(--bz-divider); }
.tut-chapters ol { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; }
.tut-chapter { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0;
  border-radius: var(--bz-radius-control); background: none; text-align: left; cursor: pointer; color: var(--bz-text); font-size: 14px; }
.tut-chapter:hover { background: var(--bz-surface-muted); }
.tut-chapter.is-current { background: var(--bz-brand-soft); color: var(--bz-brand-hover); }
.tut-chapter-n { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bz-surface-muted); color: var(--bz-text-muted); font-size: 11px; font-weight: 700; }
.tut-chapter.is-current .tut-chapter-n { background: var(--bz-brand); color: #fff; }
.tut-chapter-label { line-height: 1.35; font-weight: 500; }
.tut-chapter-t { font-size: 12px; color: var(--bz-text-muted); font-variant-numeric: tabular-nums; }

.tut-body { padding-top: 32px; }
.tut-tabs { margin-bottom: 8px; }
.tut-transcript-bar { display: flex; gap: 8px; margin: 16px 0; }
.tut-transcript { font-family: var(--bz-font-read); font-size: 16px; line-height: 1.75; }
.tut-cue { display: grid; grid-template-columns: 64px 1fr; gap: 12px; margin: 0; padding: 10px 12px; border-radius: var(--bz-radius-control); transition: background var(--bz-transition-fast); }
.tut-cue.is-current { background: var(--bz-brand-soft); }
.tut-cue-t { align-self: start; margin-top: 3px; padding: 2px 8px; border: 1px solid var(--bz-border); border-radius: 999px; background: var(--bz-surface);
  font: 600 12px/1.4 var(--bz-font-ui); color: var(--bz-brand-hover); cursor: pointer; font-variant-numeric: tabular-nums; justify-self: start; }
.tut-cue-t:hover { background: var(--bz-brand); border-color: var(--bz-brand); color: #fff; }
.tut-cue mark { background: #fff0a8; border-radius: 2px; }

/* Tutorial cards (hub + product overview) */
.section-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 12px; }
.section-title-row .section-heading { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.section-title-row .section-heading .icon { color: var(--bz-brand); }
.section-more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.tut-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.tut-card { display: flex; flex-direction: column; overflow: hidden; background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: 14px;
  color: var(--bz-text); text-decoration: none !important; transition: transform var(--bz-transition-base), box-shadow var(--bz-transition-base), border-color var(--bz-transition-base); }
.tut-card:hover { color: var(--bz-text); transform: translateY(-3px); box-shadow: 0 14px 30px rgb(18 18 20 / 10%); border-color: #c5c9ff; }
.tut-thumb { position: relative; aspect-ratio: 16 / 9; background: #0d0d14; overflow: hidden; }
.tut-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms ease; }
.tut-card:hover .tut-thumb img { transform: scale(1.04); }
.tut-thumb-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding-left: 3px; border-radius: 50%; background: rgb(64 72 255 / 92%); color: #fff; box-shadow: 0 0 0 6px rgb(255 255 255 / 20%);
  transition: transform var(--bz-transition-base); }
.tut-card:hover .tut-thumb-play { transform: scale(1.1); }
.tut-card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.tut-card-title { font-size: 15px; font-weight: 600; line-height: 1.35; }
.tut-card-summary { font-size: 13px; color: var(--bz-text-muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sys-companion-top { margin: 0 0 28px; }
@media (prefers-reduced-motion: reduce) { .tut-card:hover, .tut-card:hover .tut-thumb img, .tut-facade:hover img { transform: none; } }

@media (max-width: 1279px) { .tut-stage.has-chapters { grid-template-columns: 1fr; } .tut-chapters ol { max-height: 280px; } }
@media (max-width: 859px) {
  .tut-head { padding-top: 20px; }
  .tut-stage { padding-top: 16px; }
  .tut-player { border-radius: 10px; }
  .tut-play { width: 64px; height: 64px; }
  .tut-cue { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Reference layout (tokens, screen names) ---------- */
.ref-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; margin: 20px -12px 0; padding: 12px;
  background: color-mix(in srgb, var(--bz-canvas) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 12px; }
.ref-search { flex: 1; }
.ref-search .field { height: 46px; padding-right: 40px; font-size: 16px; border-radius: 10px; box-shadow: 0 4px 14px rgb(18 18 20 / 5%); }
.ref-kbd { position: absolute; right: 12px; top: 50%; translate: 0 -50%; padding: 1px 7px; font-size: 12px; color: var(--bz-text-muted);
  border: 1px solid var(--bz-border); border-radius: 6px; background: var(--bz-surface); pointer-events: none; }
.ref-search .field:focus ~ .ref-kbd { display: none; }
.ref-count { flex: none; font-size: 13px; font-weight: 600; color: var(--bz-text-muted); font-variant-numeric: tabular-nums; }
.ref-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.ref-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--bz-border);
  background: var(--bz-surface); font-size: 13px; font-weight: 600; color: var(--bz-text-secondary); text-decoration: none !important; }
.ref-chip:hover { border-color: var(--bz-brand); color: var(--bz-brand-hover); background: var(--bz-brand-soft); }
.ref-prose h2 { scroll-margin-top: 90px; }
.ref-prose h3, .ref-prose h4 { scroll-margin-top: 90px; }
.ref-prose td:first-child { white-space: nowrap; position: relative; padding-right: 40px; }
.ref-prose td:first-child code { white-space: nowrap; }
.ref-prose tbody tr { scroll-margin-top: 100px; transition: background var(--bz-transition-fast); }
.ref-prose tbody tr:hover { background: var(--bz-surface-subtle); }
.ref-prose tbody tr:target { background: var(--bz-brand-soft); }
.ref-copy { position: absolute; right: 8px; top: 50%; translate: 0 -50%; display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border: 1px solid var(--bz-border); border-radius: 6px; background: var(--bz-surface); color: var(--bz-text-secondary);
  cursor: pointer; opacity: 0; transition: opacity var(--bz-transition-fast); }
.ref-prose tr:hover .ref-copy, .ref-copy:focus-visible { opacity: 1; }
.ref-copy.is-copied { opacity: 1; background: var(--bz-success-soft); border-color: #bfe8cf; color: var(--bz-success); }
.ref-prose.is-filtering h2 { border-top: 0; padding-top: 0; margin-top: 28px; }
.ref-prose mark { background: #fff0a8; color: inherit; border-radius: 2px; padding: 0 1px; }
@media (hover: none) { .ref-copy { opacity: 1; } }
@media (max-width: 859px) { .ref-bar { margin: 16px -8px 0; padding: 8px; } .ref-prose td:first-child { white-space: normal; } }
.ref-list { list-style: none; padding-left: 0 !important; background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: var(--bz-radius-card); overflow: hidden; }
.ref-list > li { position: relative; margin: 0 !important; padding: 11px 16px; border-bottom: 1px solid var(--bz-divider); scroll-margin-top: 100px; }
.ref-list > li:last-child { border-bottom: 0; }
.ref-list > li:hover { background: var(--bz-surface-subtle); }
.ref-list > li:target { background: var(--bz-brand-soft); }
.ref-list > li > code:first-child { font-weight: 500; }
.ref-list .ref-copy { position: static; translate: none; vertical-align: middle; margin: 0 6px 0 4px; width: 24px; height: 24px; }
.ref-list > li:hover .ref-copy { opacity: 1; }

/* ======================================================================
   Help Centre identity. Same Breeze system, but a deep indigo header and a
   cooler, slightly deeper canvas so the guides never look like the Cloud app.
   ====================================================================== */
.theme-help {
  --help-ink: #191c48;
  --help-ink-2: #23277a;
  --bz-canvas: #eff1f8;
  --help-side: #e7eaf5;
  background: var(--bz-canvas);
}
.theme-help .app-header {
  background: linear-gradient(100deg, var(--help-ink) 0%, var(--help-ink) 55%, var(--help-ink-2) 100%);
  border-bottom: 0; color: #fff;
  box-shadow: 0 1px 0 rgb(255 255 255 / 6%) inset, 0 6px 18px rgb(25 28 72 / 14%);
}
.theme-help .brand-sub {
  /* Plain text beside the wordmark, sitting on the same baseline, with a thin divider */
  position: relative; padding-left: 13px; border: 0; background: none; box-shadow: none; border-radius: 0;
  font-family: var(--bz-font-ui); font-size: 17px; font-weight: 500; letter-spacing: -0.01em; text-transform: none;
  line-height: 1; color: rgb(255 255 255 / 80%);
}
.theme-help .brand-sub::before {
  content: ""; position: absolute; left: 0; top: -3px; bottom: -2px; width: 1px; background: rgb(255 255 255 / 30%);
}
.theme-help .brand, .theme-help .site-brand { align-items: center; }
/* The wordmark's lowercase letters ("reeze") sit low in its box: their middle is ~12% of
   the logo height below the box's middle. Shift the label down by that much so it lines up
   with the middle of the final "e". */
.theme-help .brand .brand-sub { translate: 0 2.4px; }
.theme-help .site-brand .brand-sub { translate: 0 2.7px; }
.theme-help .site-brand .brand-sub { font-size: 18px; }
.theme-help .switcher-btn { background: rgb(255 255 255 / 8%); border-color: rgb(255 255 255 / 18%); color: #fff; }
.theme-help .switcher-btn:hover { background: rgb(255 255 255 / 14%); }
.theme-help .switcher-btn > .icon:first-child { color: #c9ccff; }
.theme-help .switcher-btn .chev { color: rgb(255 255 255 / 55%); }
.theme-help .header-search .search-icon { color: rgb(255 255 255 / 60%); }
.theme-help .header-search input { background: rgb(255 255 255 / 9%); border-color: rgb(255 255 255 / 16%); color: #fff; }
.theme-help .header-search input::placeholder { color: rgb(255 255 255 / 62%); }
.theme-help .header-search input:hover { border-color: rgb(255 255 255 / 32%); }
.theme-help .header-search input:focus { background: #fff; color: var(--bz-text); border-color: #fff; box-shadow: 0 0 0 3px rgb(255 255 255 / 22%); }
.theme-help .header-search input:focus::placeholder { color: var(--bz-text-muted); }
.theme-help .header-search:focus-within .search-icon { color: var(--bz-text-muted); }
.theme-help .search-kbd { background: transparent; border-color: rgb(255 255 255 / 22%); color: rgb(255 255 255 / 60%); }
.theme-help .header-right .btn-secondary { background: rgb(255 255 255 / 8%); border-color: rgb(255 255 255 / 18%); color: #fff; }
.theme-help .header-right .btn-secondary:hover { background: rgb(255 255 255 / 16%); color: #fff; }
.theme-help .header-right .btn-subtle { background: #fff; color: var(--bz-brand-hover); }
.theme-help .app-header .nav-open { color: #fff; border-color: rgb(255 255 255 / 18%); background: rgb(255 255 255 / 8%); }
.theme-help :where(.app-header) :focus-visible { outline-color: #fff; }

/* Product colour in the header, so moving from one guide to another is obvious.
   A glow of the guide's colour fills the right of the header, with a thin
   coloured edge underneath. It fades in when you arrive from a different guide. */
.theme-help.has-product .app-header { isolation: isolate; box-shadow: inset 0 -3px 0 var(--acc), 0 6px 18px rgb(25 28 72 / 14%); }
.theme-help.has-product .app-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(90% 260% at 100% 50%, rgb(var(--acc-rgb) / 62%) 0%, rgb(var(--acc-rgb) / 22%) 45%, rgb(var(--acc-rgb) / 0%) 75%),
    linear-gradient(100deg, rgb(var(--acc-rgb) / 0%) 30%, rgb(var(--acc-rgb) / 14%) 100%);
}
.theme-help.has-product.guide-changed .app-header::before { animation: guide-glow .9s cubic-bezier(.2, .7, .2, 1) both; }
.theme-help.has-product.guide-changed .app-header { animation: guide-edge .9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes guide-glow { from { opacity: 0; transform: translateX(8%); } to { opacity: 1; transform: none; } }
@keyframes guide-edge { from { box-shadow: inset 0 0 0 transparent, 0 6px 18px rgb(25 28 72 / 14%); } }
.theme-help.has-product .switcher-btn { background: rgb(var(--acc-rgb) / 24%); border-color: rgb(var(--acc-rgb) / 60%); }
.theme-help.has-product .switcher-btn:hover { background: rgb(var(--acc-rgb) / 34%); }
@media (prefers-reduced-motion: reduce) {
  .theme-help.has-product.guide-changed .app-header,
  .theme-help.has-product.guide-changed .app-header::before { animation: none; }
}

/* Sidebar: a cool tint instead of white, with the current page lifted out as a white card */
.theme-help .sidebar { background: var(--help-side); border-right-color: #d8dcec; }
.theme-help .nav-row:hover { background: rgb(255 255 255 / 60%); }
.theme-help .nav-row.is-active { background: #fff; box-shadow: 0 1px 2px rgb(25 28 72 / 8%), inset 3px 0 0 var(--bz-brand); }

/* Long section names on product cards: one line with an ellipsis */
.kb-card-links li { min-width: 0; }
.kb-card-links a { min-width: 0; }
.kb-card-links a > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* Table cells wrap between words, not mid-word (except very long tokens) */
.prose td, .prose th { overflow-wrap: break-word; }

/* ======================================================================
   Home: full-bleed hero carrying the main breezesoftware.com menu
   ====================================================================== */
.is-home .kb-hero {
  border-radius: 0; margin: 0; padding: 0 0 96px;
  min-height: 0; display: flex; flex-direction: column;
}
.is-home .kb-hero-bg { border-radius: 0; background: linear-gradient(160deg, #191c48 0%, #23277a 34%, #353dd6 72%, #4048ff 100%); }
.is-home .kb-hero-bg::after { width: 760px; height: 760px; right: -120px; top: -260px; }
.is-home .kb-hero-art { left: auto; width: min(1200px, 100%); }
.is-home .kb-hero-inner { width: 100%; max-width: var(--bz-content-max); margin: 0 auto; padding: 84px var(--bz-page-gutter) 0; }
.is-home .kb-hero-inner { display: grid; grid-template-columns: minmax(0, 780px) minmax(300px, 400px); justify-content: space-between; align-items: center; gap: 48px; }
.is-home .kb-hero-main { min-width: 0; }
.is-home .kb-hero h1 { font-size: 64px; }
.is-home .kb-sub { font-size: 20px; }
.is-home .kb { padding-top: 8px; }
.is-home .kb-section:first-child { margin-top: 44px; }

.site-header { position: relative; z-index: 40; border-bottom: 1px solid rgb(255 255 255 / 10%); }
.site-header-inner { display: flex; align-items: center; gap: 28px; max-width: var(--bz-content-max); margin: 0 auto; height: 72px; padding: 0 var(--bz-page-gutter); }
.site-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none !important; flex: none; }
.site-brand .brand-wordmark { height: 22px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav-group { position: relative; }
.site-nav-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 0; border-radius: var(--bz-radius-control);
  background: none; color: rgb(255 255 255 / 88%); font-size: 15px; font-weight: 500; cursor: pointer;
}
.site-nav-btn:hover, .site-nav-btn[aria-expanded="true"] { background: rgb(255 255 255 / 10%); color: #fff; }
.site-nav-btn .chev { opacity: .7; transition: transform var(--bz-transition-fast); }
.site-nav-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.site-nav-panel {
  position: absolute; top: calc(100% + 10px); left: -8px; z-index: 60; min-width: 240px; padding: 8px;
  background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: var(--bz-radius-overlay); box-shadow: var(--bz-shadow-overlay);
  display: grid; gap: 2px;
}
.site-nav-panel[hidden] { display: none; }
.site-nav-panel.cols-2 { grid-template-columns: 1fr 1fr; min-width: 480px; }
.site-nav-item { flex-direction: column; align-items: flex-start; gap: 1px; padding: 9px 12px; }
.site-nav-label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--bz-text); }
.site-nav-label .icon { color: var(--bz-text-muted); }
.site-nav-note { font-size: 12.5px; font-weight: 400; color: var(--bz-text-muted); }
.site-nav-item.is-current .site-nav-label { color: var(--bz-brand-hover); }

.site-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.site-btn {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: var(--bz-radius-pill);
  font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none !important; transition: background var(--bz-transition-fast);
}
.site-btn-ghost { color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 32%); }
.site-btn-ghost:hover { background: rgb(255 255 255 / 12%); color: #fff; }
.site-btn-solid { background: #fff; color: var(--bz-brand-hover); }
.site-btn-solid:hover { background: var(--bz-brand-soft); color: var(--bz-brand-hover); }
.site-burger { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: var(--bz-radius-control);
  border: 1px solid rgb(255 255 255 / 22%); background: rgb(255 255 255 / 8%); color: #fff; cursor: pointer; }
.site-header :focus-visible { outline-color: #fff; }

.site-drawer { margin: 0 16px 12px; padding: 8px; background: var(--bz-surface); border-radius: var(--bz-radius-overlay); box-shadow: var(--bz-shadow-overlay); color: var(--bz-text); }
.site-drawer-group { border-bottom: 1px solid var(--bz-divider); }
.site-drawer-group summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px; font-weight: 600; cursor: pointer; list-style: none; }
.site-drawer-group summary::-webkit-details-marker { display: none; }
.site-drawer-group[open] summary .chev { transform: rotate(180deg); }
.site-drawer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 0 4px 10px; }
.site-drawer-links a { padding: 8px 6px; border-radius: var(--bz-radius-control); color: var(--bz-text-secondary); font-size: 14px; text-decoration: none !important; }
.site-drawer-links a:hover { background: var(--bz-surface-muted); }
.site-drawer-links a[aria-current] { color: var(--bz-brand-hover); font-weight: 600; }
.site-drawer-actions { display: flex; gap: 8px; padding: 12px 4px 4px; }
.site-drawer-actions .site-btn { flex: 1; justify-content: center; }
.site-drawer .site-btn-ghost { color: var(--bz-text); box-shadow: inset 0 0 0 1px var(--bz-border); }
.site-drawer .site-btn-solid { background: var(--bz-brand); color: #fff; }

.site-back { gap: 6px; }
@media (max-width: 959px) {
  .site-nav { display: none; }
  .site-btn { height: 36px; padding: 0 14px; font-size: 13px; }
  .site-header-inner { height: 64px; padding: 0 16px; }
  .is-home .kb-hero { min-height: 0; padding-bottom: 40px; }
  .is-home .kb-hero-inner { padding: 40px 20px 0; }
  .is-home .kb-hero h1 { font-size: 38px; }
  .is-home .kb-sub { font-size: 16px; }
}
@media (min-width: 960px) { .site-drawer { display: none !important; } }
@media (max-width: 560px) {
  .site-back span { display: none; }          /* arrow only on phones */
  .site-back { padding: 0 11px; }
}

/* Home search: product scope menu inside the search box */
.kb-scope { position: relative; flex: none; }
.kb-scope-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px 0 14px; max-width: 220px;
  border: 0; border-left: 1px solid var(--bz-border); border-radius: 0; background: none; cursor: pointer;
  color: var(--bz-text-secondary); font-size: 14px; font-weight: 600;
}
.kb-scope-btn:hover, .kb-scope-btn[aria-expanded="true"] { color: var(--bz-text); }
.kb-scope-icon { display: inline-flex; color: var(--bz-brand); }
.kb-scope-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-scope-btn .chev { color: var(--bz-text-disabled); transition: transform var(--bz-transition-fast); }
.kb-scope-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.kb-scope-menu { left: auto; right: 0; top: calc(100% + 14px); min-width: 250px; z-index: 70; }
.kb-scope-head { margin: 4px 10px 6px; font-size: 12px; font-weight: 600; color: var(--bz-text-muted); text-transform: uppercase; letter-spacing: .04em; }
.kb-scope-menu .menu-item { width: 100%; border: 0; background: none; cursor: pointer; text-align: left; }
.kb-scope-menu .menu-item > span { flex: 1; }
.kb-scope-menu .menu-item .icon:first-child { color: var(--bz-brand); }
.kb-scope-tick { visibility: hidden; color: var(--bz-brand); }
.kb-scope-menu [aria-checked="true"] { background: var(--bz-brand-soft); color: var(--bz-brand-hover); }
.kb-scope-menu [aria-checked="true"] .kb-scope-tick { visibility: visible; }
.kb-scope-menu .menu-item:hover { background: var(--bz-surface-muted); }
@media (max-width: 859px) {
  .kb-scope-btn { height: 44px; padding: 0 8px 0 10px; max-width: 132px; font-size: 13px; }
  .kb-scope-btn .kb-scope-icon { display: none; }
}
@media (max-width: 420px) {
  .kb-scope-label { display: none; }
  .kb-scope-btn .kb-scope-icon { display: inline-flex; }
}

/* Product cards line up: two-line tagline slot, same quick links on every card */
.kb-card-tagline { min-height: 2.8em; }
.kb-card-main { align-items: flex-start; }
.kb-card-go { align-self: center; }

/* ======================================================================
   Product colours. Each product carries --acc (brand fill), --acc-ink
   (same hue, dark enough for text), --acc-soft (tint) and --acc-grad.
   ====================================================================== */
:root { --acc: var(--bz-brand); --acc-ink: var(--bz-brand-hover); --acc-soft: var(--bz-brand-soft); --acc-rgb: 64 72 255; --acc-grad: linear-gradient(135deg, #353dd6, #4048ff); }
.product-star { display: block; flex: none; border-radius: 23%; }
.product-logo { border-radius: 23%; }

/* Home cards */
.kb-card .kb-card-main > .product-star { box-shadow: 0 8px 18px rgb(var(--acc-rgb) / 30%); }
.kb-card .kb-card-go { background: var(--acc-soft); color: var(--acc-ink); }
.kb-card-links a .icon { color: var(--acc-ink); }
.kb-card-links a:hover { background: var(--acc-soft); }
.kb-card-cta, .kb-card-cta:hover { color: var(--acc-ink); }
.kb-card:hover { border-color: rgb(var(--acc-rgb) / 45%); }
.kb-card::before { background: var(--acc); }

/* Small marks in menus */
.switcher-btn .product-star, .menu-item .product-star { width: 20px; height: 20px; }
.kb-scope-icon .product-star { width: 18px; height: 18px; }

/* Product pages: the colour runs through the hero, the menu and the page furniture */
.has-product .hero {
  position: relative; isolation: isolate; padding: 26px 28px 24px; margin: 0 0 8px; border-radius: 16px;
  background: linear-gradient(120deg, var(--acc-soft) 0%, rgb(255 255 255 / 70%) 70%);
  border: 1px solid rgb(var(--acc-rgb) / 22%);
}
.has-product .hero::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; border-radius: 16px 0 0 16px; background: var(--acc); }
.has-product .hero .product-star { box-shadow: 0 10px 22px rgb(var(--acc-rgb) / 30%); }
.has-product .nav-row.is-active { color: var(--acc-ink); box-shadow: 0 1px 2px rgb(25 28 72 / 8%), inset 3px 0 0 var(--acc); }
.has-product .nav-row.is-active .icon { color: var(--acc-ink); }
.has-product .nav-tree > .nav-item > .nav-line > .nav-row.is-active { color: var(--acc-ink); }
.has-product .crumbs a:hover { color: var(--acc-ink); }
.has-product .rail-list a.is-active { color: var(--acc-ink); border-left-color: var(--acc); }
.has-product .prose h2::before { background: var(--acc); }
.kb-card .kb-card-main > .product-star { transition: transform var(--bz-transition-base); }
.kb-card:hover .kb-card-main > .product-star { transform: rotate(-6deg) scale(1.04); }
.has-product .section-card-head .icon-well { background: var(--acc-soft); color: var(--acc-ink); }
.has-product .section-card-more, .has-product .section-card-more:hover { color: var(--acc-ink); }
.has-product .section-card:hover { border-color: rgb(var(--acc-rgb) / 40%); }

/* Help beyond the guides: community first, then support */
.kb-support { margin-top: 44px; }
.kb-support .section-heading { font-size: 22px; font-weight: 600; margin: 0 0 16px; }
.kb-support-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; }
.kb-support-card {
  position: relative; overflow: hidden; display: flex; gap: 18px; padding: 26px 26px 24px; border-radius: 16px;
  text-decoration: none !important; transition: transform var(--bz-transition-base), box-shadow var(--bz-transition-base);
}
.kb-support-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgb(18 18 20 / 12%); }
.kb-support-well { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; }
.kb-support-text { display: flex; flex-direction: column; gap: 6px; }
.kb-support-title { font-size: 20px; font-weight: 600; }
.kb-support-sub { font-size: 15px; line-height: 1.5; }
.kb-support-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 600; }
.kb-community { background: linear-gradient(135deg, #1659c7, #1877f2); color: #fff; }
.kb-community::after { content: ""; position: absolute; width: 240px; height: 240px; right: -80px; bottom: -110px; border-radius: 50%; background: rgb(255 255 255 / 10%); }
.kb-community .kb-support-well { background: #fff; color: #1877f2; }
.kb-community .kb-support-sub { color: rgb(255 255 255 / 88%); }
.kb-community .kb-support-title, .kb-community .kb-support-cta, .kb-community:hover { color: #fff; }
.kb-contact { background: var(--bz-surface); border: 1px solid var(--bz-border); color: var(--bz-text); }
.kb-contact .kb-support-well { background: var(--bz-brand-soft); color: var(--bz-brand); }
.kb-contact .kb-support-sub { color: var(--bz-text-secondary); }
.kb-contact .kb-support-cta { color: var(--bz-brand-hover); }
.kb-contact:hover { color: var(--bz-text); }
@media (max-width: 859px) { .kb-support-grid { grid-template-columns: 1fr; } .kb-support-card { padding: 20px; } }

.community-callout {
  display: flex; align-items: center; gap: 10px; margin: 10px 4px 0; padding: 11px 12px; border-radius: 12px;
  background: var(--bz-surface); border: 1px solid var(--bz-border); color: var(--bz-text); text-decoration: none !important;
}
.community-callout:hover { border-color: #1877f2; color: var(--bz-text); }
.community-callout-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: #1877f2; color: #fff; flex: none; }
.community-callout-text { display: flex; flex-direction: column; flex: 1; font-size: 13px; line-height: 1.35; }
.community-callout-text span { color: var(--bz-text-muted); font-size: 12px; }
.community-callout-go { color: var(--bz-text-muted); }

/* MCP promo in the home hero */
.kb-mcp {
  position: relative; padding: 24px 24px 20px; border-radius: 18px; color: #fff;
  background: linear-gradient(160deg, rgb(255 255 255 / 16%), rgb(255 255 255 / 6%));
  border: 1px solid rgb(255 255 255 / 22%); box-shadow: 0 24px 50px rgb(10 12 50 / 28%);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.kb-mcp-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--bz-brand-hover); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.kb-mcp h2 { margin: 14px 0 8px; font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.kb-mcp p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.55; color: rgb(255 255 255 / 86%); }
.kb-mcp-url { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 12px; background: rgb(10 12 50 / 38%); border: 1px solid rgb(255 255 255 / 16%); }
.kb-mcp-url code { flex: 1; min-width: 0; font-size: 13px; color: #fff; background: none; border: 0; padding: 0; overflow-wrap: anywhere; }
.kb-mcp-copy { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9px; border: 0; cursor: pointer; background: #fff; color: var(--bz-brand-hover); }
.kb-mcp-copy:hover { background: var(--bz-brand-soft); }
.kb-mcp-steps { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13px; line-height: 1.45; color: rgb(255 255 255 / 80%); }
.kb-mcp-steps strong { color: #fff; font-weight: 600; }
@media (max-width: 1100px) {
  .is-home .kb-hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .kb-mcp { max-width: 780px; }
}

/* Home: everything sits on the same centred column as the website menu (1200px, 32px sides). Guides keep the full width. */
.is-home { --bz-content-max: 1200px; }
@media (min-width: 1200px) { .is-home { --bz-page-gutter: 32px; } }
.is-home .kb { margin-left: auto; margin-right: auto; }
.is-home .kb-hero-inner, .is-home .site-header-inner, .is-home .kb { max-width: var(--bz-content-max); box-sizing: border-box; }

/* Minor and legacy products: compact tiles under the main cards */
.kb-more { margin-top: 32px; }
.kb-more-title { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--bz-text-muted); }
.kb-mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.kb-mini {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-width: 0;
  background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: 12px;
  color: var(--bz-text); text-decoration: none !important;
  transition: border-color var(--bz-transition-fast), box-shadow var(--bz-transition-fast), transform var(--bz-transition-fast);
}
.kb-mini:hover { border-color: rgb(var(--acc-rgb) / 50%); box-shadow: 0 8px 18px rgb(18 18 20 / 7%); transform: translateY(-1px); color: var(--bz-text); }
.kb-mini .product-star { width: 40px; height: 40px; }
.kb-mini-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.kb-mini-name { font-size: 15px; font-weight: 600; }
.kb-mini-tag { font-size: 12.5px; color: var(--bz-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-mini-go { color: var(--acc-ink); opacity: .5; transition: opacity var(--bz-transition-fast), transform var(--bz-transition-fast); }
.kb-mini:hover .kb-mini-go { opacity: 1; transform: translateX(2px); }
/* Main products: four across on wide screens, two on tablets, one on phones */
.kb-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1279px) { .kb-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) { .kb-products { grid-template-columns: 1fr; } }
.kb-products .kb-card-main { padding: 22px 20px 16px; gap: 14px; }
.kb-products .kb-card-links { margin: 0 20px; }
.kb-products .kb-card-tagline { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kb-mini-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* Inline code stands out on the tinted page background */
.prose :not(pre) > code { background: #fff; border: 1px solid #d6daea; color: #2a2f8f; box-shadow: 0 1px 0 rgb(25 28 72 / 4%); }
.prose .callout :not(pre) > code, .prose td code { background: rgb(255 255 255 / 85%); }
.prose a code { color: inherit; }

/* "Was this page helpful?" */
.feedback { margin: 40px 0 8px; padding: 18px 20px; border: 1px solid var(--bz-border); border-radius: var(--bz-radius-card); background: var(--bz-surface); }
.feedback-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.feedback-q { margin: 0; font-size: 16px; font-weight: 600; font-family: var(--bz-font-ui); }
.feedback-btns { display: flex; gap: 8px; }
.feedback-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: var(--bz-radius-pill);
  border: 1px solid var(--bz-border); background: var(--bz-surface); color: var(--bz-text); font-size: 14px; font-weight: 600; cursor: pointer;
}
.feedback-btn:hover { border-color: var(--acc); background: var(--acc-soft); }
.feedback-btn[aria-pressed="true"] { border-color: var(--acc-ink); background: var(--acc-soft); color: var(--acc-ink); }
.feedback-more { margin-top: 14px; display: grid; gap: 8px; }
.feedback-label { font-size: 14px; font-weight: 600; }
.feedback-more textarea { width: 100%; resize: vertical; }
.feedback-actions { display: flex; justify-content: flex-end; }
.feedback-thanks { margin: 12px 0 0; font-size: 14px; color: var(--bz-success); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-hero { position: relative; padding: 28px 30px 22px; margin-bottom: 26px; border-radius: 18px; background: linear-gradient(120deg, var(--acc-soft), rgb(255 255 255 / 75%) 75%); border: 1px solid rgb(var(--acc-rgb) / 22%); }
.faq-hero h1 { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.faq-hero-text p { margin: 6px 0 18px; color: var(--bz-text-secondary); font-size: 16px; }
.faq-search { position: relative; display: flex; align-items: center; max-width: 620px; }
.faq-search input { width: 100%; height: 48px; padding: 0 110px 0 44px; border-radius: 12px; border: 1px solid var(--bz-border); background: #fff; font-size: 16px; box-shadow: 0 6px 18px rgb(25 28 72 / 6%); }
.faq-search input:focus { outline: none; border-color: var(--bz-brand); box-shadow: var(--bz-focus-halo); }
.faq-search-icon { position: absolute; left: 15px; color: var(--bz-text-muted); }
.faq-count { position: absolute; right: 14px; font-size: 13px; color: var(--bz-text-muted); }
.faq-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.faq-topic { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 6px 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--bz-border); color: var(--bz-text); font-size: 13px; font-weight: 600; text-decoration: none !important; }
.faq-topic span { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--acc-soft); color: var(--acc-ink); font-size: 12px; }
.faq-topic:hover { border-color: var(--acc); color: var(--bz-text); }

.faq-eyebrow { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--bz-text-muted); }
.faq-top { margin-bottom: 30px; }
.faq-top-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.faq-top-card { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--bz-border); border-top: 3px solid var(--acc); color: var(--bz-text); text-decoration: none !important; transition: transform var(--bz-transition-fast), box-shadow var(--bz-transition-fast); }
.faq-top-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgb(18 18 20 / 8%); color: var(--bz-text); }
.faq-top-topic { font-size: 12px; font-weight: 600; color: var(--acc-ink); }
.faq-top-q { font-size: 15px; font-weight: 600; line-height: 1.4; font-family: var(--bz-font-ui); }
.faq-top-go { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--bz-brand-hover); }

.faq-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.faq-group { background: #fff; border: 1px solid var(--bz-border); border-radius: 16px; padding: 6px 6px 8px; scroll-margin-top: 20px; }
.faq-group-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 14px 16px 10px; font-size: 18px; font-weight: 600; }
.faq-group-n { font-size: 12px; font-weight: 600; color: var(--bz-text-muted); background: var(--bz-surface-muted); border-radius: 999px; padding: 2px 9px; }
.faq-item { border-radius: 10px; scroll-margin-top: 20px; }
.faq-item + .faq-item { border-top: 1px solid var(--bz-divider); }
.faq-item summary { display: flex; align-items: center; gap: 10px; padding: 13px 14px; cursor: pointer; list-style: none; border-radius: 10px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--bz-surface-subtle); }
.faq-q { flex: 1; font-size: 15px; font-weight: 600; line-height: 1.45; }
.faq-chev { flex: none; color: var(--bz-text-muted); transition: transform var(--bz-transition-fast); }
.faq-item[open] > summary .faq-chev { transform: rotate(180deg); color: var(--acc-ink); }
.faq-item[open] { background: var(--bz-surface-subtle); }
.faq-item[open] > summary .faq-q { color: var(--acc-ink); }
.faq-item.is-flash { animation: tocflash 1.2s ease; box-shadow: inset 3px 0 0 var(--acc); }
.faq-a { padding: 0 16px 14px; }
.faq-a .prose { margin-top: 0; font-size: 15px; }
.faq-a .prose > :last-child { margin-bottom: 0; }
.faq-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--bz-border); font-size: 13px; color: var(--bz-text-muted); }
.faq-related { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.faq-link { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; color: var(--bz-text-muted); font-size: 13px; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.faq-link:hover { color: var(--bz-brand-hover); background: var(--bz-brand-soft); }
.faq-empty { grid-column: 1 / -1; padding: 20px; text-align: center; color: var(--bz-text-muted); }
.faq-more { margin-top: 36px; padding: 22px 24px; border-radius: 16px; background: #fff; border: 1px solid var(--bz-border); }
.faq-more h2 { margin: 0 0 12px; font-size: 18px; }
.faq-more-links { display: flex; flex-wrap: wrap; gap: 10px; }
@keyframes tocflash { 0% { background: var(--acc-soft); } 100% { background: transparent; } }
@media (max-width: 1100px) { .faq-groups { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .faq-hero { padding: 22px 18px; } .faq-hero h1 { font-size: 26px; } }

.faq-related-box { margin: 36px 0 0; padding: 16px 18px; border-radius: var(--bz-radius-card); background: var(--acc-soft); border: 1px solid rgb(var(--acc-rgb) / 25%); }
.faq-related-box h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--acc-ink); }
.faq-related-box ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 4px; }
.faq-related-box a { font-size: 14.5px; }

/* Priority FAQ panels: Licensing and Troubleshooting */
.faq-desks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; margin-bottom: 30px; }
.faq-desks.is-single { grid-template-columns: 1fr; }
.faq-desk { --desk: var(--acc); --desk-rgb: var(--acc-rgb); --desk-ink: var(--acc-ink); position: relative; padding: 6px 6px 0; border-radius: 18px; background: #fff; border: 1px solid rgb(var(--desk-rgb) / 30%); box-shadow: 0 10px 28px rgb(25 28 72 / 7%); scroll-margin-top: 20px; overflow: hidden; }
.faq-desk::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--desk); }
.faq-desk-troubleshooting { --desk: #f6714e; --desk-rgb: 246 113 78; --desk-ink: #b8401f; }
.faq-desk-head { display: flex; gap: 14px; align-items: flex-start; padding: 18px 16px 12px; margin: 0 -6px; background: linear-gradient(180deg, rgb(var(--desk-rgb) / 9%), transparent); }
.faq-desk-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: rgb(var(--desk-rgb) / 14%); color: var(--desk-ink); }
.faq-desk-head h2 { display: flex; align-items: center; gap: 10px; margin: 2px 0 4px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.faq-desk-head p { margin: 0; font-size: 14px; color: var(--bz-text-secondary); }
.faq-desk .faq-item[open] > summary .faq-q { color: var(--desk-ink); }
.faq-desk .faq-item[open] > summary .faq-chev { color: var(--desk-ink); }
.faq-desk .faq-item.is-flash { box-shadow: inset 3px 0 0 var(--desk); }
.faq-desk-foot { display: flex; align-items: center; gap: 6px; margin: 6px -6px 0; padding: 12px 18px; border-top: 1px solid var(--bz-divider); background: var(--bz-surface-subtle); font-size: 13px; color: var(--bz-text-secondary); }
.faq-desk-foot a { font-weight: 600; color: var(--desk-ink); }
.faq-topic.is-priority { background: var(--bz-text); border-color: var(--bz-text); color: #fff; }
.faq-topic.is-priority span { background: rgb(255 255 255 / 18%); color: #fff; }
.faq-topic.is-priority:hover { background: #000; color: #fff; }
@media (max-width: 1100px) { .faq-desks { grid-template-columns: 1fr; } }

/* FAQ mosaic: sections stack in the shortest column (JS); CSS columns as the no-JS fallback */
.faq-groups { display: block; columns: 2; column-gap: 18px; }
.faq-groups > [data-faq-group] { break-inside: avoid; margin-bottom: 18px; }
.faq-groups.is-mosaic { display: flex; align-items: flex-start; gap: 18px; columns: auto; }
.faq-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.faq-col > [data-faq-group] { margin: 0; }
.faq-col > [hidden] { display: none; }
@media (max-width: 1100px) { .faq-groups { columns: 1; } }

/* Numbered reference lists (e.g. a screen sequence on a reference page): keep the step circles inside the card */
.prose ol.ref-list { padding: 0 !important; }
.prose ol.ref-list > li { padding: 11px 16px 11px 62px; min-height: 0; }
.prose ol.ref-list > li:last-child { padding-bottom: 11px; }
.prose ol.ref-list > li::before { left: 16px; top: 50%; translate: 0 -50%; }
.prose ol.ref-list > li::after { left: 30px; top: calc(50% + 15px); bottom: calc(-50% + 15px); z-index: 0; }

/* Video tutorials: sections and descriptions */
.tut-sections { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.tut-section { scroll-margin-top: 20px; }
.tut-section + .tut-section { margin-top: 34px; }
.tut-section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--bz-divider); font-size: 20px; font-weight: 600; }
.tut-card-summary { -webkit-line-clamp: 3; }
.tut-card-level { align-self: flex-start; margin-bottom: 2px; padding: 2px 8px; border-radius: 999px; background: var(--acc-soft, var(--bz-brand-soft)); color: var(--acc-ink, var(--bz-brand)); font-size: 11px; font-weight: 600; letter-spacing: .02em; }

/* Sidebar section divider: a menu label with nothing under it, e.g. "Advanced & reference" */
.nav-section { list-style: none; margin: 18px 0 6px; padding: 14px 12px 0; border-top: 1px solid var(--bz-divider); }
.nav-section span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--bz-text-muted); }
.nav-tree > .nav-section:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.section-heading.is-subsection { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--bz-divider); font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--bz-text-muted); }

/* Developer links (e.g. API docs) at the end of the Advanced & reference section */
.nav-external .nav-external-icon { margin-left: auto; color: var(--bz-text-muted); opacity: .7; }
.section-card-external { display: flex; flex-direction: column; color: var(--bz-text); text-decoration: none !important; }
.section-card-external:hover { border-color: var(--acc); color: var(--bz-text); }
.section-card-external h3 { display: inline-flex; align-items: center; gap: 6px; }
.section-card-external .section-card-more { margin-top: auto; }

/* FAQ: an open question gets a solid, straight accent bar down its left edge (no thin curved line) */
.faq-item { position: relative; }
.faq-item[open], .faq-item.is-flash { box-shadow: none; border-radius: 0 10px 10px 0; }
.faq-item[open]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--acc); }
.faq-desk .faq-item[open]::before { background: var(--desk); }
.faq-item[open] > summary { border-radius: 0 10px 0 0; }
.faq-item[open] > summary, .faq-item[open] > .faq-a { padding-left: 18px; }

/* Private guides */
.private-pill { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 4px 10px; border-radius: 999px; background: var(--bz-accent-warm-soft); color: var(--bz-accent-warm); font-size: 13px; font-weight: 600; }
.lock-page { display: grid; place-items: center; min-height: calc(100vh - 160px); padding: 40px 20px; }
.lock-card { width: 100%; max-width: 420px; padding: 32px; background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: 18px; box-shadow: 0 18px 40px rgb(18 18 20 / 8%); text-align: center; }
.lock-card .lock-well { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 14px; background: var(--bz-brand-soft); color: var(--bz-brand); }
.lock-card h1 { font-size: 22px; font-weight: 600; margin: 0 0 6px; }
.lock-card p { margin: 0 0 18px; color: var(--bz-text-secondary); font-size: 15px; }
.lock-card form { display: grid; gap: 10px; text-align: left; }
.lock-card .lock-error { margin: 0; color: var(--bz-danger, #c62828); font-size: 14px; }



/* Search: quick answers from the FAQ, and typo corrections */
.result-answer { padding: 18px 20px; margin-bottom: 8px; background: var(--bz-surface); border: 1px solid #c9ccff; border-radius: 14px; box-shadow: inset 4px 0 0 var(--acc, var(--bz-brand)); }
.result-kicker, .search-hit-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--acc-ink, var(--bz-brand)); }
.result-answer .result-title { display: block; margin-top: 4px; }
.result-answer-text { margin: 6px 0 8px; font-size: 15px; line-height: 1.55; color: var(--bz-text); font-family: var(--bz-font-read); }
.result-more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; }
.search-corrected { margin: 0 0 14px; font-size: 14px; color: var(--bz-text-secondary); }
.search-pop .search-corrected { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--bz-divider); font-size: 13px; }
.search-hit-answer { background: var(--acc-soft, var(--bz-brand-soft)); }
.search-hit-answer .search-hit-snippet { color: var(--bz-text); }

/* Release history: related product updates (Breeze Cloud, FX …) shown collapsed in the timeline */
.release-related { padding-bottom: 22px; }
.release-related::before { top: 14px; left: -31px; width: 8px; height: 8px; border-color: var(--acc); background: var(--acc-soft); }
.release-related details { border-radius: 12px; background: var(--bz-surface); border: 1px solid var(--bz-border); box-shadow: inset 3px 0 0 var(--acc); }
.release-related summary { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; list-style: none; }
.release-related summary::-webkit-details-marker { display: none; }
.release-related summary:hover { background: var(--bz-surface-subtle); border-radius: 12px; }
.rr-title { flex: 1; min-width: 0; font-size: 15px; }
.rr-tag { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--acc-soft); color: var(--acc-ink); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; }
.release-related .release-date { font-size: 13px; }
.rr-chev { color: var(--bz-text-muted); transition: transform var(--bz-transition-fast); }
.release-related details[open] .rr-chev { transform: rotate(180deg); }
.release-related .release-notes { margin: 0; padding: 4px 18px 0 18px; font-size: 14.5px; }
.rr-more { display: inline-flex; align-items: center; gap: 4px; margin: 4px 18px 14px; font-size: 14px; font-weight: 600; color: var(--acc-ink); }
@media (max-width: 560px) { .rr-tag { display: none; } }

/* Home at menu width: product cards two across so names and links fit */
@media (min-width: 768px) { .is-home .kb-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Private pages (/p/…) */
.doc-layout.pp-layout { display: block; max-width: 860px; margin-inline: auto; }
.pp-layout .doc { max-width: none; }
.pp-pill { margin: 0 0 18px; }
.pp-product { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 600; color: var(--bz-text-secondary); }
.pp-help { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--bz-border); color: var(--bz-text-secondary); font-size: 15px; }
.pp-help p { margin: 0 0 6px; }

/* Private pages: link to the customer's other pages, and their history list */
.pp-history-link { display: flex; align-items: center; gap: 12px; margin-top: 40px; padding: 14px 16px; border: 1px solid var(--bz-border); border-radius: 12px; background: var(--bz-surface); color: inherit; text-decoration: none; transition: border-color .15s, background .15s; }
.pp-history-link:hover { border-color: var(--bz-brand); background: var(--bz-surface-subtle); }
.pp-history-link > span { display: flex; flex-direction: column; gap: 2px; flex: 1; font-size: 15px; }
.pp-history-link .muted { font-size: 13px; }
.pp-hist { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.pp-hist a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--bz-border); border-radius: 12px; background: var(--bz-surface); color: inherit; text-decoration: none; transition: border-color .15s, background .15s; }
.pp-hist a:hover { border-color: var(--bz-brand); background: var(--bz-surface-subtle); }
.pp-hist-mark { flex: none; display: grid; place-items: center; width: 36px; height: 36px; }
.pp-hist-plain { border-radius: 9px; background: var(--bz-brand-soft); color: var(--bz-brand); }
.pp-hist-text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pp-hist-text strong { font-size: 16px; }
.pp-hist-text .muted { font-size: 13px; }

/* Private page header: who it was prepared for */
.pp-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; margin: 0 0 28px; padding: 16px 18px; border: 1px solid rgb(64 72 255 / 16%); border-radius: 16px;
  background: radial-gradient(120% 140% at 0% 0%, rgb(64 72 255 / 10%), transparent 60%), linear-gradient(135deg, var(--bz-surface), var(--bz-surface-subtle)); overflow: hidden; }
.pp-head::after { content: ""; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgb(124 92 255 / 14%), transparent 70%); pointer-events: none; }
.pp-for { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pp-avatar { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #4048ff, #8a5cff); color: #fff;
  font: 700 16px/1 var(--bz-font-ui); letter-spacing: .02em; box-shadow: 0 6px 16px rgb(64 72 255 / 28%), inset 0 0 0 2px rgb(255 255 255 / 22%); }
.pp-for-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pp-for-label { font: 600 11.5px/1 var(--bz-font-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--bz-brand); }
.pp-for-text strong { font: 700 clamp(17px, 2.2vw, 20px)/1.2 var(--bz-font-ui); color: var(--bz-text); overflow-wrap: anywhere; }
.pp-private { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: var(--bz-surface);
  border: 1px solid var(--bz-border); color: var(--bz-text-secondary); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) { .pp-head { padding: 14px; } .pp-avatar { width: 40px; height: 40px; font-size: 14px; } }

/* Private page with a left column: their other pages, related products */
.doc-layout.pp-layout.has-side { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; max-width: 1160px; }
.pp-layout.has-side > .doc { grid-column: 2; grid-row: 1; max-width: 820px; }
.pp-side { grid-column: 1; grid-row: 1; align-self: start; position: sticky; top: calc(var(--bz-header-h) + 24px); display: grid; gap: 26px; padding-top: 4px; }
.pp-side-sec { display: grid; gap: 10px; }
.pp-side-title { margin: 0; font: 600 11.5px/1 var(--bz-font-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--bz-text-muted); }
.pp-side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pp-side-item { display: flex; align-items: flex-start; gap: 9px; padding: 8px 10px; border-radius: 8px; color: var(--bz-text-secondary); font-size: 14px; line-height: 1.35; text-decoration: none; }
.pp-side-item .icon { flex: none; margin-top: 2px; color: var(--bz-text-disabled); }
a.pp-side-item:hover { background: var(--bz-surface-muted); color: var(--bz-text); }
.pp-side-item.is-current { background: var(--bz-brand-soft); color: var(--bz-brand); font-weight: 600; }
.pp-side-item.is-current .icon { color: var(--bz-brand); }
.pp-side-more { display: inline-flex; align-items: center; gap: 6px; padding-left: 10px; font-size: 13px; font-weight: 600; }
.pp-prods { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pp-prod { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--bz-border); border-radius: 12px; background: var(--bz-surface); }
.pp-prod-name { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.pp-prod-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-prod-links a { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; background: var(--bz-surface-muted); color: var(--bz-text-secondary); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.pp-prod-links a:hover { background: var(--bz-brand-soft); color: var(--bz-brand); }
@media (max-width: 900px) {
  .doc-layout.pp-layout.has-side { display: block; }
  .pp-side { position: static; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--bz-border); }
}

.doc-layout.pp-layout.has-side { grid-template-columns: 270px minmax(0, 1fr); }
.pp-prod-links { flex-wrap: nowrap; gap: 4px; }
.pp-prod-links a { padding: 4px 8px; font-size: 12px; white-space: nowrap; }
@media (max-width: 900px) { .pp-prod-links { flex-wrap: wrap; } }

/* Private page: CTA to the customer's list of pages */
.pp-side-cta { display: grid; grid-template-columns: auto 1fr; gap: 12px 12px; padding: 16px; border-radius: 14px; text-decoration: none; color: #fff;
  background: radial-gradient(120% 120% at 100% 0%, rgb(255 255 255 / 16%), transparent 55%), linear-gradient(135deg, #4048ff, #7a52ff); box-shadow: 0 10px 24px rgb(64 72 255 / 22%); transition: transform .15s, box-shadow .15s; }
.pp-side-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgb(64 72 255 / 30%); color: #fff; }
.pp-side-cta-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgb(255 255 255 / 18%); }
.pp-side-cta-text { display: flex; flex-direction: column; gap: 3px; align-self: center; }
.pp-side-cta-text strong { font: 700 15px/1.2 var(--bz-font-ui); }
.pp-side-cta-text span { font-size: 13px; opacity: .85; }
.pp-side-cta-go { grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: #fff; color: #353dd6; font-size: 13px; font-weight: 700; }
/* Customer's list of pages: grouped by month */
.pp-hist-group { margin-top: 30px; }
.pp-hist-group + .pp-hist-group { margin-top: 34px; }
.pp-hist-month { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 700 13px/1 var(--bz-font-ui); text-transform: uppercase; letter-spacing: .07em; color: var(--bz-text-muted); }
.pp-hist-month span { padding: 3px 8px; border-radius: 999px; background: var(--bz-surface-muted); font-size: 11.5px; letter-spacing: 0; }
.pp-hist-group .pp-hist { margin-top: 0; }

/* ---------- Mobile fixes (24 Nov 2026) ---------- */
.kb-search-box input { text-overflow: ellipsis; }
@media (max-width: 600px) {
  /* MCP address on one line (scrolls if it must) instead of breaking mid-domain */
  .kb-mcp-url code { overflow-wrap: normal; white-space: nowrap; overflow-x: auto; scrollbar-width: none; font-size: 12.5px; }
  .kb-mcp-url code::-webkit-scrollbar { display: none; }
  /* Video play button off the title baked into the thumbnail */
  .tut-play { left: auto; top: auto; right: 12px; bottom: 12px; translate: none; width: 52px; height: 52px; }
}
