@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --ip-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bs-body-font-family: var(--ip-font-sans);
  --ip-blue: #1e9bd7;
  --ip-dark: #171717;
  --doc-radius: 1.25rem;
  --doc-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

body {
  font-family: var(--ip-font-sans);
  background: var(--bs-body-bg);
}

button, input, optgroup, select, textarea {
  font-family: var(--ip-font-sans);
}


.site-header {
  position: relative;
  z-index: 1040;
  background: #171717;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.site-header .navbar { background: #171717; }
.site-header .nav-link { color: rgba(255,255,255,.68); font-weight: 500; letter-spacing: .01em; }
.site-header .nav-link:hover { color: #fff; }

.site-header .dropdown-menu {
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 45px rgba(0,0,0,.28);
}
.site-header .nav-guides-dropdown {
  min-width: 270px;
  padding: .65rem;
  border-radius: 1rem;
}
.site-header .nav-guides-dropdown .dropdown-item {
  border-radius: .75rem;
  padding: .6rem .75rem;
  white-space: normal;
  line-height: 1.25;
}
.site-header .nav-guides-dropdown .dropdown-item:hover,
.site-header .nav-guides-dropdown .dropdown-item:focus {
  background: rgba(30,155,215,.22);
}
.site-header .nav-guides-dropdown .dropdown-header {
  color: rgba(255,255,255,.5);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .7rem;
  padding: .35rem .75rem;
}
.site-header .nav-guides-dropdown .dropdown-divider {
  border-color: rgba(255,255,255,.12);
}
@media (max-width: 991.98px) {
  .site-header .navbar-nav { padding-top: 1rem; }
  .site-header .nav-guides-dropdown {
    width: 100%;
    box-shadow: none;
    margin-top: .35rem;
  }
}
.brand-logo { width: 70px; height: auto; display: block; }
.login-logo { width: 100px; }

.hero-section {
  background:
    radial-gradient(circle at top right, rgba(30,155,215,.16), transparent 34rem),
    linear-gradient(180deg, rgba(248,249,250,1), rgba(255,255,255,1));
}
[data-bs-theme="dark"] .hero-section {
  background:
    radial-gradient(circle at top right, rgba(30,155,215,.22), transparent 34rem),
    linear-gradient(180deg, rgba(25,25,25,1), rgba(12,12,12,1));
}

.py-lg-6 { padding-top: 6rem; padding-bottom: 6rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; color: var(--ip-blue); font-weight: 700; font-size: .78rem; }

.hero-search {
  max-width: 720px;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  padding: .5rem .5rem .5rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.hero-search input { border: 0; outline: 0; flex: 1; background: transparent; min-width: 0; color: var(--bs-body-color); }

.glass-card, .doc-card, .section-card, .search-result {
  background: var(--bs-body-bg);
  border-radius: var(--doc-radius);
  box-shadow: var(--doc-shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.doc-card { border: 1px solid var(--bs-border-color); }
.doc-card-link { color: inherit; text-decoration: none; }
.doc-card-link:hover .doc-card, .section-card:hover, .search-result:hover { transform: translateY(-3px); border-color: rgba(30,155,215,.35); box-shadow: 0 22px 60px rgba(15, 23, 42, .12); }
.icon-circle { width: 48px; height: 48px; border-radius: 50%; background: rgba(30,155,215,.12); color: var(--ip-blue); display: inline-flex; align-items: center; justify-content: center; }

.page-hero { background: var(--bs-body-bg); }
.docs-sidebar { position: sticky; top: 110px; max-height: calc(100vh - 130px); overflow: auto; }
.toc-link { color: var(--bs-secondary-color); text-decoration: none; font-size: .94rem; }
.toc-link:hover { color: var(--bs-body-color); background: rgba(30,155,215,.08); }
.toc-link.active { background: rgba(30,155,215,.14); color: var(--ip-blue); font-weight: 700; }

.doc-content { max-width: 980px; }
.content-body { font-size: 1.05rem; line-height: 1.75; }
.content-body h2, .content-body h3, .content-body h4, .content-body h5, .content-body h6 { margin-top: 2.25rem; margin-bottom: 1rem; font-weight: 700; }
.content-body img { max-width: 100%; height: auto; border-radius: 1rem; border: 1px solid var(--bs-border-color); }
.content-body table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; }
.content-body th, .content-body td { border: 1px solid var(--bs-border-color); padding: .75rem; vertical-align: top; }
.content-body th { background: var(--bs-tertiary-bg); }
.content-body code { background: var(--bs-tertiary-bg); padding: .15rem .35rem; border-radius: .35rem; }

.login-section { min-height: 70vh; display: flex; align-items: center; }
.admin-shell { display: grid; grid-template-columns: 260px minmax(0,1fr); min-height: calc(100vh - 85px); }
.admin-sidebar { background: var(--bs-tertiary-bg); border-right: 1px solid var(--bs-border-color); padding: 1.5rem; }
.admin-sidebar .nav-link { color: var(--bs-secondary-color); border-radius: .75rem; }
.admin-sidebar .nav-link:hover { background: rgba(30,155,215,.1); color: var(--bs-body-color); }
.admin-main { padding: 2rem; min-width: 0; }
.code-editor { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size: .9rem; }
.media-thumb { width: 92px; height: 72px; flex: 0 0 92px; overflow: hidden; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 991.98px) {
  .docs-sidebar { position: static; max-height: none; margin-bottom: 1rem; }
  .admin-shell { display: block; }
  .admin-sidebar { border-right: 0; border-bottom: 1px solid var(--bs-border-color); }
  .admin-main { padding: 1rem; }
  .hero-search { border-radius: 1.25rem; align-items: stretch; flex-direction: column; padding: 1rem; }
  .hero-search input { width: 100%; }
}

/* Phase 1B admin polish */
.admin-sidebar .nav-link.active {
  background: rgba(30,155,215,.14);
  color: var(--ip-blue);
  font-weight: 700;
}
.admin-user-card {
  background: var(--bs-body-bg);
}
.editor-toolbar .btn {
  border-radius: 999px;
}
.url-preview {
  overflow-wrap: anywhere;
}
.media-picker-list {
  max-height: 420px;
  overflow: auto;
}
.badge {
  font-weight: 600;
}
.content-body figure figcaption:empty {
  display: none;
}
.content-body .alert {
  border: 1px solid var(--bs-border-color);
}
.table td .btn,
.table th .btn {
  white-space: nowrap;
}
[data-bs-theme="dark"] .doc-card-link:hover .doc-card,
[data-bs-theme="dark"] .section-card:hover,
[data-bs-theme="dark"] .search-result:hover {
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
}

/* Phase 1C rich editor and media workflow */
.visual-editor {
  min-height: 560px;
  padding: 1.5rem;
  outline: 0;
  background: var(--bs-body-bg);
}
.visual-editor:focus {
  box-shadow: inset 0 0 0 2px rgba(30,155,215,.25);
}
.editor-preview {
  min-height: 560px;
  background: var(--bs-body-bg);
}
.code-editor {
  min-height: 560px;
  resize: vertical;
}
.editor-toolbar {
  background: var(--bs-body-bg);
}
.editor-toolbar .btn {
  min-height: 32px;
}
.metric-box {
  background: var(--bs-body-bg);
}
.media-thumb-sm {
  width: 48px;
  height: 38px;
  flex: 0 0 48px;
}
.media-preview-large {
  min-height: 280px;
  overflow: hidden;
}
.media-preview-large img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
}
.min-width-0 {
  min-width: 0;
}
.doc-steps li {
  margin-bottom: .55rem;
}
.admin-table-actions .btn {
  white-space: nowrap;
}
.status-dot {
  width: .65rem;
  height: .65rem;
  border-radius: 999px;
  display: inline-block;
}
.status-dot.published { background: var(--bs-success); }
.status-dot.draft { background: var(--bs-warning); }
[data-bs-theme="dark"] .metric-box,
[data-bs-theme="dark"] .visual-editor,
[data-bs-theme="dark"] .editor-preview,
[data-bs-theme="dark"] .editor-toolbar {
  background: var(--bs-body-bg);
}

/* Phase 1D Word/HTML importer foundation */
.import-section-list details summary {
  cursor: pointer;
}
.import-preview {
  max-height: 320px;
  overflow: auto;
  background: var(--bs-body-bg);
}
.import-preview img {
  max-width: 100%;
  height: auto;
}
.import-preview table {
  width: 100%;
}
.import-section-list .form-check-input:disabled {
  opacity: .6;
}
[data-bs-theme="dark"] .import-preview {
  background: var(--bs-body-bg);
}

/* Phase 1E importer testing and cleanup support */
.import-section-row {
  transition: background-color .16s ease, border-color .16s ease;
}
.import-section-row:hover {
  border-color: rgba(30,155,215,.35) !important;
  background: rgba(30,155,215,.035);
}
.import-section-filter-note {
  font-size: .85rem;
}
.import-preview h1,
.import-preview h2,
.import-preview h3 {
  scroll-margin-top: 6rem;
}

/* Phase 1J DOCX layout fidelity and re-import safety */
.content-body .import-figure {
  margin: 1.75rem 0;
}
.content-body .import-image {
  display: block;
  max-height: 760px;
  object-fit: contain;
}
.content-body .import-table-wrap {
  margin: 1.5rem 0;
}
.content-body .import-table {
  font-size: .96rem;
}
.content-body .import-table p:last-child,
.import-preview .import-table p:last-child {
  margin-bottom: 0;
}
.content-body .import-list,
.import-preview .import-list {
  padding-left: 1.35rem;
  margin: .75rem 0 1rem;
}
.content-body .import-list li,
.import-preview .import-list li {
  margin-bottom: .4rem;
}
.content-body .import-procedure-list > li {
  padding-left: .15rem;
}
.content-body .import-callout,
.import-preview .import-callout {
  border: 1px solid rgba(30,155,215,.24);
  border-left: .35rem solid var(--ip-blue);
  border-radius: 1rem;
  background: rgba(30,155,215,.07);
  padding: 1rem 1.1rem;
  margin: 1.25rem 0;
}
/* Keep only the Note/Tip/Warning title on its own line */
.content-body .import-callout > strong:first-child,
.import-preview .import-callout > strong:first-child {
  display: block;
  margin-bottom: .35rem;
}
.content-body .import-callout p:last-child,
.import-preview .import-callout p:last-child {
  margin-bottom: 0;
}
.content-body .import-callout-warning,
.content-body .import-callout-important,
.import-preview .import-callout-warning,
.import-preview .import-callout-important {
  border-left-color: var(--bs-warning);
  background: rgba(255,193,7,.12);
}
[data-bs-theme="dark"] .content-body .import-callout,
[data-bs-theme="dark"] .import-preview .import-callout {
  background: rgba(30,155,215,.12);
}


/* Phase 1M public search, navigation polish and content QA */
.search-snippet mark {
  padding: .05rem .2rem;
  border-radius: .25rem;
}
.docs-sidebar-search .input-group-text {
  background: var(--bs-body-bg);
}
.js-sidebar-item.is-filter-hidden {
  display: none;
}
.on-this-page {
  border-style: dashed !important;
}
.on-this-page-link {
  color: var(--bs-secondary-color);
  text-decoration: none;
}
.on-this-page-link:hover {
  color: var(--ip-blue);
}
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
  scroll-margin-top: 7rem;
}
.doc-next-prev-card {
  color: inherit;
  background: var(--bs-body-bg);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.doc-next-prev-card:hover {
  border-color: rgba(30,155,215,.35) !important;
  transform: translateY(-2px);
  box-shadow: var(--doc-shadow);
}


/* Phase 1N SEO, sitemap and redirect health */
.seo-health-pill {
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  padding: .25rem .65rem;
  background: var(--bs-body-bg);
}
.redirect-health-table code {
  white-space: normal;
  word-break: break-word;
}


/* Phase 1S internal access mode and operational polish */
.internal-mode-banner {
  background: rgba(30,155,215,.10);
  color: var(--bs-body-color);
}
.maintenance-banner {
  background: rgba(255,193,7,.18);
  color: var(--bs-body-color);
}
.internal-status-card {
  border-left: .35rem solid var(--ip-blue) !important;
}
.internal-status-card.status-warning {
  border-left-color: var(--bs-warning) !important;
}
.internal-status-card.status-danger {
  border-left-color: var(--bs-danger) !important;
}
.ops-check-row .badge {
  min-width: 72px;
}

/* Phase 1Z PBX callout fidelity */
.content-body .import-callout,
.import-preview .import-callout {
  position: relative;
  padding-left: 3.4rem;
  min-height: 4.1rem;
}
.content-body .import-callout::before,
.import-preview .import-callout::before {
  content: "i";
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: .55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  background: var(--ip-blue);
  box-shadow: 0 .4rem .75rem rgba(30,155,215,.18);
}
.content-body .import-callout-warning::before,
.content-body .import-callout-important::before,
.import-preview .import-callout-warning::before,
.import-preview .import-callout-important::before {
  content: "!";
  background: var(--bs-warning);
  color: var(--bs-dark);
}
.content-body .import-callout-tip::before,
.import-preview .import-callout-tip::before {
  content: "✓";
}

/* Phase 2A guide import finalization and advanced DOCX cleanup */
.phase2a-cleanup-card {
  border-left: .35rem solid var(--ip-blue) !important;
}
.phase2a-cleanup-card.status-warning {
  border-left-color: var(--bs-warning) !important;
}
.content-body .import-table-wrap,
.import-preview .import-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.content-body .import-table-wrap > table,
.import-preview .import-table-wrap > table {
  min-width: 520px;
}
.content-body .import-callout + .import-callout,
.import-preview .import-callout + .import-callout {
  margin-top: .75rem;
}
.content-body .import-image[alt="Imported documentation image"],
.import-preview .import-image[alt="Imported documentation image"] {
  outline: 1px dashed rgba(30,155,215,.25);
  outline-offset: 2px;
}

/* Phase 2B DOCX callout block reconstruction */
.content-body .import-callout-rebuilt,
.import-preview .import-callout-rebuilt {
  padding-top: 1.05rem;
  padding-bottom: 1.05rem;
}
.content-body .import-callout .import-callout-list,
.import-preview .import-callout .import-callout-list,
.content-body .import-callout ul,
.content-body .import-callout ol,
.import-preview .import-callout ul,
.import-preview .import-callout ol {
  margin-top: .35rem;
  margin-bottom: 0;
  padding-left: 1.35rem;
}
.content-body .import-callout li,
.import-preview .import-callout li {
  margin-bottom: .35rem;
}
.content-body .import-callout li:last-child,
.import-preview .import-callout li:last-child {
  margin-bottom: 0;
}
.content-body .import-callout .import-callout-body:last-child,
.import-preview .import-callout .import-callout-body:last-child {
  margin-bottom: 0;
}


/* Phase 2D visual artefact detection and cleanup */
.content-body .phase2d-removed-artefact-note,
.import-preview .phase2d-removed-artefact-note {
  display: none !important;
}
.content-body figure.import-figure.phase2d-visual-artefact,
.import-preview figure.import-figure.phase2d-visual-artefact {
  outline: 2px dashed rgba(220,53,69,.35);
  outline-offset: 3px;
}
.content-body .import-callout.phase2d-near-artefact,
.import-preview .import-callout.phase2d-near-artefact {
  box-shadow: 0 0 0 .2rem rgba(13,110,253,.08);
}


/* Phase 2E inline UI icon preservation */
.content-body .import-inline-ui-icon,
.import-preview .import-inline-ui-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 .22em;
  vertical-align: -0.2em;
  line-height: 1;
}
.content-body .import-inline-ui-icon-img,
.import-preview .import-inline-ui-icon-img {
  width: 1.25em;
  max-width: 1.25em;
  height: 1.25em;
  object-fit: contain;
  vertical-align: text-bottom;
  display: inline-block;
  border-radius: .25rem;
}
.content-body .import-procedure-list li,
.import-preview .import-procedure-list li {
  margin-bottom: .55rem;
}


/* Phase 2F targeted procedure icon repair */
.content-body .import-inline-ui-icon[data-phase2f-targeted-inline-ui-icon="1"],
.import-preview .import-inline-ui-icon[data-phase2f-targeted-inline-ui-icon="1"] {
  outline: 0;
}
.content-body .import-procedure-list .import-inline-ui-icon,
.import-preview .import-procedure-list .import-inline-ui-icon {
  white-space: nowrap;
}

/* Phase 4A admin navigation simplification */
.admin-nav-details > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.admin-nav-details > summary::-webkit-details-marker {
  display: none;
}
.admin-nav-details > summary::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: auto;
  font-size: .75rem;
  opacity: .55;
}
.admin-nav-details[open] > summary::after {
  content: "\f077";
}
.admin-nav-details .nav-link {
  font-size: .95rem;
}


/* Phase 4B import workflow simplification */
.phase4b-step {
  position: relative;
  border: 1px solid rgba(108,117,125,.2);
  background: var(--bs-body-bg);
}
.phase4b-step .phase4b-step-number {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  background: var(--bs-tertiary-bg);
}
.phase4b-step.is-active {
  border-color: rgba(13,110,253,.45);
  box-shadow: 0 .75rem 2rem rgba(13,110,253,.08);
}
.phase4b-step.is-active .phase4b-step-number {
  background: var(--bs-primary);
  color: #fff;
}
.phase4b-step.is-done .phase4b-step-number {
  background: var(--bs-success);
  color: #fff;
}
.phase4b-step.is-warn .phase4b-step-number {
  background: var(--bs-warning);
  color: #111;
}
.phase4b-pill {
  border: 1px solid rgba(108,117,125,.2);
  border-radius: 999px;
  padding: .35rem .7rem;
  background: var(--bs-body-bg);
  font-size: .875rem;
}
.phase4b-guide-select { max-width: 42rem; }


/* Phase 5A - improved public documentation search */
.search-enhanced-page .search-page-form,
.search-enhanced-form {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 1.25rem;
  padding: 1rem;
  box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.06);
}
.search-result-enhanced {
  display: block;
  background: var(--bs-body-bg);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.search-result-enhanced:hover {
  transform: translateY(-1px);
  border-color: rgba(13, 110, 253, .35) !important;
  box-shadow: 0 1rem 2.2rem rgba(15, 23, 42, 0.08);
}
.search-snippet mark {
  padding: .1rem .22rem;
  border-radius: .3rem;
}
.min-width-0 { min-width: 0; }


/* Phase 5C docs assistant prototype */
.chatbot-page .chatbot-question-card,
.chatbot-page .chatbot-answer-card {
  overflow: hidden;
}
.chatbot-answer-bullets .bg-body-tertiary {
  border: 1px solid var(--bs-border-color);
}
.chatbot-source {
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.chatbot-source:hover {
  border-color: rgba(30,155,215,.45) !important;
  transform: translateY(-1px);
  background: rgba(30,155,215,.04);
}

/* Phase 5D - public chatbot polish and client-ready controls */
.phase5d-chatbot-hero {
  background: linear-gradient(135deg, rgba(30,155,215,.12), rgba(15,23,42,.03));
  border: 1px solid rgba(30,155,215,.18);
}
.phase5d-safe-card {
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(30,155,215,.18);
}
.phase5d-starter {
  font-size: .92rem;
  padding: .55rem .8rem;
}
.phase5d-feedback-box {
  border-color: rgba(30,155,215,.18) !important;
}
.chatbot-floating-button {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1030;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .75rem 1rem;
  border-radius: 999px;
  background: var(--bs-primary);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 .8rem 2rem rgba(13,110,253,.22);
  font-weight: 600;
}
.chatbot-floating-button:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 1rem 2.4rem rgba(13,110,253,.28);
}
@media (max-width: 575.98px) {
  .chatbot-floating-button {
    right: .85rem;
    bottom: .85rem;
    padding: .65rem .85rem;
  }
}
[data-bs-theme="dark"] .phase5d-safe-card {
  background: rgba(15,23,42,.75);
}


/* Phase 5E - Sidebar current-page visibility and navigation polish */
.docs-sidebar {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}
.docs-sidebar .toc-link[aria-current="page"] {
  box-shadow: inset 3px 0 0 var(--ip-blue);
}
.docs-sidebar .js-sidebar-item.is-current-branch > .toc-link:not(.active) {
  color: var(--bs-body-color);
}
.docs-sidebar .js-sidebar-item.is-filter-match > .toc-link {
  background: rgba(30,155,215,.10);
  color: var(--bs-body-color);
}
.docs-sidebar .js-sidebar-item.is-filter-ancestor > .toc-link {
  color: var(--bs-body-color);
  font-weight: 600;
}
.docs-sidebar .toc-link:focus-visible {
  outline: 2px solid rgba(30,155,215,.55);
  outline-offset: 2px;
}


/* Phase 5F - page-aware chatbot and better local answers */
.doc-page-assistant {
  border: 1px solid rgba(30,155,215,.16) !important;
  background: linear-gradient(135deg, rgba(30,155,215,.055), rgba(255,255,255,.92));
}
[data-bs-theme="dark"] .doc-page-assistant {
  background: linear-gradient(135deg, rgba(30,155,215,.12), rgba(15,23,42,.72));
}
.doc-page-assistant .badge.text-bg-light {
  color: var(--bs-body-color) !important;
}
.phase5f-current-page-source {
  border-color: rgba(13,110,253,.35) !important;
}
.chatbot-answer-bullets .badge,
.doc-page-assistant .badge {
  vertical-align: middle;
}


/* Phase 5G - floating chatbot panel */
.chatbot-floating-widget {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1040;
}
.chatbot-floating-widget .chatbot-floating-button {
  position: static;
}
.chatbot-widget-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + .85rem);
  width: min(420px, calc(100vw - 2rem));
  max-height: min(680px, calc(100vh - 7rem));
  overflow: hidden;
  background: var(--bs-body-bg);
  border: 1px solid rgba(30,155,215,.22);
  display: flex;
  flex-direction: column;
}
.chatbot-floating-widget.is-open .chatbot-floating-button {
  box-shadow: 0 .7rem 2rem rgba(13,110,253,.28);
}
.chatbot-widget-header {
  padding: 1rem;
  background: linear-gradient(135deg, var(--bs-primary), #22a7df);
  color: #fff;
}
.chatbot-widget-body {
  padding: 1rem;
  overflow-y: auto;
  min-height: 220px;
  max-height: 440px;
  background: linear-gradient(180deg, rgba(30,155,215,.045), rgba(255,255,255,0));
}
.chatbot-widget-form {
  padding: .9rem;
  border-top: 1px solid rgba(30,155,215,.16);
  background: var(--bs-body-bg);
}
.chatbot-message {
  margin-bottom: .85rem;
}
.chatbot-message-user {
  display: flex;
  justify-content: flex-end;
}
.chatbot-message-user .chatbot-message-bubble {
  background: var(--bs-primary);
  color: #fff;
  border-radius: 1rem 1rem .25rem 1rem;
  padding: .65rem .85rem;
  max-width: 86%;
}
.chatbot-message-bot .chatbot-message-bubble,
.chatbot-message-bot {
  color: var(--bs-body-color);
}
.chatbot-message-bot .chatbot-message-bubble {
  background: var(--bs-tertiary-bg);
  border: 1px solid rgba(30,155,215,.14);
  border-radius: 1rem 1rem 1rem .25rem;
  padding: .75rem .85rem;
}
.chatbot-widget-sources a {
  display: block;
  padding: .45rem .55rem;
  border: 1px solid rgba(30,155,215,.16);
  border-radius: .75rem;
  text-decoration: none;
  margin-top: .4rem;
  background: var(--bs-body-bg);
}
.chatbot-widget-sources a:hover {
  border-color: rgba(30,155,215,.45);
  background: rgba(30,155,215,.04);
}
.chatbot-widget-panel .badge-current-page {
  background: rgba(13,110,253,.12);
  color: var(--bs-primary);
  border: 1px solid rgba(13,110,253,.25);
}
@media (max-width: 575.98px) {
  .chatbot-floating-widget {
    right: .85rem;
    bottom: .85rem;
  }
  .chatbot-widget-panel {
    width: calc(100vw - 1.7rem);
    max-height: calc(100vh - 6rem);
  }
}
[data-bs-theme="dark"] .chatbot-widget-body {
  background: linear-gradient(180deg, rgba(30,155,215,.12), rgba(15,23,42,0));
}


/* Phase 6D - Mobile layout and responsive guide navigation */
.doc-mobile-guide-tools {
  padding: .85rem;
}
.doc-mobile-guide-tools .btn {
  border-radius: 999px;
  white-space: nowrap;
}
.doc-mobile-guide-offcanvas {
  --bs-offcanvas-width: min(92vw, 390px);
}
.doc-mobile-guide-offcanvas .offcanvas-body {
  padding: 1rem;
}
.doc-mobile-guide-offcanvas .docs-sidebar-mobile {
  position: static;
  max-height: none;
  overflow: visible;
  margin: 0;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}
@media (max-width: 991.98px) {
  .doc-mobile-guide-tools {
    position: sticky;
    top: .5rem;
    z-index: 1020;
    backdrop-filter: blur(10px);
  }
  .doc-content {
    max-width: 100%;
  }
  .content-body {
    font-size: 1rem;
    line-height: 1.68;
  }
  .content-body table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .content-body img {
    border-radius: .8rem;
  }
}
@media (max-width: 575.98px) {
  .doc-mobile-guide-tools {
    margin-left: -.25rem;
    margin-right: -.25rem;
    padding: .75rem;
  }
  .doc-mobile-guide-tools .btn {
    padding-left: .75rem;
    padding-right: .75rem;
  }
  .chatbot-floating-widget {
    right: .75rem;
    bottom: .75rem;
  }
  .chatbot-widget-panel {
    width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 5.5rem);
  }
}


/* Phase 6E - Article navigation, back-to-top and final public UX polish */
.on-this-page {
  border-color: rgba(30,155,215,.18) !important;
}
.on-this-page-link {
  color: var(--bs-secondary-color);
  text-decoration: none;
  border-left: 2px solid transparent;
  line-height: 1.35;
}
.on-this-page-link:hover {
  color: var(--bs-body-color);
  background: rgba(30,155,215,.08);
  border-radius: .4rem;
}
.on-this-page-link.active {
  color: var(--ip-blue);
  border-left-color: var(--ip-blue);
  background: rgba(30,155,215,.10);
  font-weight: 700;
  border-radius: .4rem;
}
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
  scroll-margin-top: 6.5rem;
}
.doc-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1080;
  height: 3px;
  pointer-events: none;
}
.doc-reading-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ip-blue);
  box-shadow: 0 0 16px rgba(30,155,215,.35);
}
.doc-back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 5.5rem;
  z-index: 1030;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  border-radius: 999px;
  box-shadow: var(--doc-shadow);
  padding: .65rem .85rem;
  opacity: 0;
  transform: translateY(.7rem);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, background-color .18s ease;
}
.doc-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.doc-back-to-top:hover {
  background: var(--bs-tertiary-bg);
}
.client-review-checklist .form-check-input:checked + .form-check-label {
  color: var(--bs-secondary-color);
  text-decoration: line-through;
}
@media (min-width: 992px) {
  .on-this-page {
    position: sticky;
    top: 1rem;
    z-index: 10;
  }
}
@media (max-width: 991.98px) {
  .on-this-page {
    margin-top: -.5rem;
  }
  .on-this-page .js-on-this-page-nav {
    max-height: 220px;
    overflow: auto;
  }
  .on-this-page:not(.is-open) .js-on-this-page-nav,
  .on-this-page:not(.is-open) .js-on-this-page-more {
    display: none;
  }
  .doc-back-to-top {
    right: .75rem;
    bottom: 5.25rem;
    padding: .55rem .7rem;
  }
}
@media (max-width: 575.98px) {
  .doc-back-to-top {
    bottom: 4.85rem;
  }
}

/* Phase 6M - Desktop on-this-page navigation flow fix
   Keep the article table-of-contents in normal page flow on desktop so it cannot
   remain pinned over the article body while scrolling. Mobile behaviour remains
   unchanged through the earlier collapsible rules. */
@media (min-width: 992px) {
  .on-this-page {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
  }
  .on-this-page .js-on-this-page-nav {
    max-height: none;
    overflow: visible;
  }
}

/* Phase 6N - Report action-table cleanup and on-page section polish */
.phase6n-report-action-summary ul {
  margin-bottom: 0;
}
.phase6n-report-action-summary li + li {
  margin-top: .35rem;
}

/* Phase 7A - ChatGPT-style chatbot and minimalist homepage */
.phase7a-home-hero {
  background:
    radial-gradient(circle at top, rgba(30,155,215,.12), transparent 32rem),
    linear-gradient(180deg, rgba(248,249,250,1), rgba(255,255,255,1));
}
[data-bs-theme="dark"] .phase7a-home-hero {
  background:
    radial-gradient(circle at top, rgba(30,155,215,.18), transparent 32rem),
    linear-gradient(180deg, rgba(25,25,25,1), rgba(12,12,12,1));
}
.phase7a-home-lead { max-width: 46rem; }
.phase7a-home-assistant {
  background: var(--bs-body-bg);
  border: 1px solid rgba(30,155,215,.18);
  overflow: hidden;
}
.phase7a-home-assistant-header {
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid var(--bs-border-color);
  background: linear-gradient(180deg, rgba(30,155,215,.055), rgba(255,255,255,0));
}
.phase7a-ai-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--bs-primary);
  background: rgba(30,155,215,.12);
  border: 1px solid rgba(30,155,215,.18);
}
.phase7a-home-chat-body {
  min-height: 250px;
  max-height: min(560px, 56vh);
  overflow: auto;
  padding: 1.35rem;
  background: linear-gradient(180deg, rgba(30,155,215,.035), rgba(255,255,255,0));
}

/* Phase 7D: keep the homepage assistant minimal until a question is asked. */
.phase7a-home-chat-body:empty {
  display: none;
}

.phase7a-home-chat-form {
  padding: 1.2rem 1.35rem 1.35rem;
  border-top: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
}
.phase7a-chat-input-group {
  border: 1px solid var(--bs-border-color);
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: 0 .75rem 2rem rgba(15, 23, 42, .05);
}
.phase7a-chat-input-group .form-control,
.phase7a-chat-input-group .btn {
  border: 0;
}
.phase7a-chat-input-group .form-control {
  padding: 1rem 1.1rem;
}
.phase7a-chat-input-group .btn {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.phase7a-welcome-bubble {
  background: transparent !important;
  border: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.phase7a-product-section {
  background: var(--bs-body-bg);
}
.phase7a-product-card {
  box-shadow: 0 .85rem 2rem rgba(15,23,42,.055);
}
.phase7a-typed-answer .chatbot-widget-ai-answer-text,
.phase7a-typewriter-target,
.js-phase7a-typewriter {
  white-space: pre-wrap;
}
.phase7a-typewriter-target.is-typing::after,
.js-phase7a-typewriter.is-typing::after {
  content: '';
  display: inline-block;
  width: .55ch;
  height: 1.05em;
  margin-left: .08rem;
  border-right: 2px solid currentColor;
  vertical-align: -.16em;
  animation: phase7aCaret .8s steps(2, start) infinite;
}
@keyframes phase7aCaret { 50% { opacity: 0; } }
.phase7a-reference-pages > .fw-semibold {
  color: var(--bs-body-color);
}
.phase7a-reference-page,
.chatbot-widget-sources.phase7a-reference-pages a {
  border-color: rgba(30,155,215,.2) !important;
}
[data-chatbot-widget].is-loading .js-chatbot-input {
  opacity: .72;
}
[data-chatbot-widget].is-loading .js-chatbot-form button[type="submit"] {
  position: relative;
  pointer-events: none;
}
[data-chatbot-widget].is-loading .js-chatbot-form button[type="submit"] i,
[data-chatbot-widget].is-loading .js-chatbot-form button[type="submit"] span:not(.visually-hidden) {
  opacity: 0;
}
[data-chatbot-widget].is-loading .js-chatbot-form button[type="submit"]::after {
  content: "";
  position: absolute;
  width: 1rem;
  height: 1rem;
  left: 50%;
  top: 50%;
  margin-left: -.5rem;
  margin-top: -.5rem;
  border: .16rem solid rgba(255,255,255,.55);
  border-top-color: #fff;
  border-radius: 999px;
  animation: chatbotSpin .75s linear infinite;
}
[data-bs-theme="dark"] .phase7a-home-assistant-header,
[data-bs-theme="dark"] .phase7a-home-chat-body {
  background: linear-gradient(180deg, rgba(30,155,215,.10), rgba(15,23,42,0));
}
@media (max-width: 767.98px) {
  .phase7a-home-chat-body { padding: 1rem; max-height: 62vh; }
  .phase7a-home-chat-form,
  .phase7a-home-assistant-header { padding: 1rem; }
  .phase7a-chat-input-group { border-radius: 1.1rem; }
}


/* Phase 7G - chatbot answer controls and reference polish */
.phase7g-answer-actions .btn,
.js-copy-chatbot-answer {
  border-radius: 999px;
}
.js-copy-chatbot-answer.is-copied {
  color: var(--bs-success);
  border-color: rgba(25,135,84,.45);
  background: rgba(25,135,84,.08);
}
.chatbot-widget-sources.phase7a-reference-pages .text-secondary.mb-2 {
  font-size: .82rem;
}
.chatbot-ai-answer .js-copy-chatbot-answer {
  white-space: nowrap;
}
@media (max-width: 575.98px) {
  .chatbot-ai-answer .js-copy-chatbot-answer {
    align-self: flex-start;
  }
}


/* Phase 7J - findability and clean help journey */
.phase7j-quick-help {
  max-width: 58rem;
  margin-left: auto;
  margin-right: auto;
}
.phase7j-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem .85rem;
  border: 1px solid rgba(30,155,215,.22);
  border-radius: 999px;
  color: var(--bs-body-color);
  background: rgba(255,255,255,.68);
  text-decoration: none;
  font-size: .92rem;
  box-shadow: 0 .35rem 1rem rgba(15,23,42,.035);
}
.phase7j-quick-chip:hover,
.phase7j-quick-chip:focus {
  border-color: rgba(30,155,215,.45);
  color: var(--bs-primary);
  background: rgba(30,155,215,.06);
}
[data-bs-theme="dark"] .phase7j-quick-chip {
  background: rgba(255,255,255,.045);
}
.phase7j-primary-reference {
  display: inline-flex !important;
  align-items: center;
  width: auto;
  margin-top: .35rem !important;
}
.phase7j-primary-reference::after {
  content: "\f35d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: .45rem;
  font-size: .78em;
}


/* Phase 7K - chatbot reference button style fix */
.chatbot-widget-sources.phase7a-reference-pages a.phase7j-primary-reference,
.phase7a-reference-pages a.phase7j-primary-reference {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: 100%;
  padding: .45rem .9rem !important;
  margin-top: .35rem !important;
  margin-bottom: .55rem !important;
  border-radius: 999px !important;
  border-color: var(--bs-primary) !important;
  background: var(--bs-primary) !important;
  color: #fff !important;
  box-shadow: 0 .45rem 1rem rgba(13,110,253,.18);
  text-decoration: none !important;
  font-weight: 600;
  line-height: 1.35;
}
.chatbot-widget-sources.phase7a-reference-pages a.phase7j-primary-reference:hover,
.chatbot-widget-sources.phase7a-reference-pages a.phase7j-primary-reference:focus,
.phase7a-reference-pages a.phase7j-primary-reference:hover,
.phase7a-reference-pages a.phase7j-primary-reference:focus {
  background: #0b5ed7 !important;
  border-color: #0a58ca !important;
  color: #fff !important;
}
.phase7j-primary-reference::after {
  content: "\f35d" !important;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: .45rem;
  font-size: .78em;
}
@media (max-width: 575.98px) {
  .chatbot-widget-sources.phase7a-reference-pages a.phase7j-primary-reference,
  .phase7a-reference-pages a.phase7j-primary-reference {
    width: 100% !important;
  }
}


/* Phase 7N - search and guide result cleanup */
.phase7n-search-result {
  background: var(--bs-body-bg);
  box-shadow: 0 .7rem 1.8rem rgba(15, 23, 42, .045);
}
.phase7n-search-result:hover {
  border-color: rgba(30,155,215,.35) !important;
  box-shadow: 0 1.1rem 2.6rem rgba(15, 23, 42, .075);
}
.phase7n-result-title {
  color: var(--bs-body-color);
  text-decoration: none;
}
.phase7n-result-title:hover,
.phase7n-result-title:focus {
  color: var(--bs-primary);
  text-decoration: underline;
}
.phase7n-match-badge {
  background: rgba(30,155,215,.12);
  color: #075985;
  border: 1px solid rgba(30,155,215,.24);
}
.phase7n-guide-badge {
  color: var(--bs-secondary-color) !important;
  font-weight: 600;
}
.phase7n-search-snippet {
  max-width: 74rem;
  line-height: 1.6;
}
.phase7n-search-snippet mark {
  background: rgba(255, 193, 7, .32);
  color: inherit;
  padding: .08rem .2rem;
  border-radius: .28rem;
}
.phase7n-no-results {
  border: 1px solid rgba(255, 193, 7, .35);
}
[data-bs-theme="dark"] .phase7n-match-badge {
  background: rgba(30,155,215,.18);
  color: #bae6fd;
  border-color: rgba(125,211,252,.26);
}
@media (max-width: 575.98px) {
  .phase7n-search-result .btn {
    width: 100%;
  }
}

/* Phase 7O - public guide page reading experience polish */
.doc-page-header {
  border-color: rgba(148, 163, 184, .22) !important;
}
.doc-page-meta {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
}
.doc-page-assistant-compact {
  border-color: rgba(30,155,215,.16) !important;
  box-shadow: 0 .5rem 1.4rem rgba(15,23,42,.035);
}
.doc-page-assistant-compact .form-control,
.doc-page-assistant-compact .btn {
  border-radius: .9rem;
}
.doc-content {
  max-width: 920px;
}
.content-body {
  font-size: 1.04rem;
  line-height: 1.72;
}
.content-body > :first-child {
  margin-top: 0;
}
.content-body p,
.content-body ul,
.content-body ol,
.content-body table,
.content-body figure,
.content-body .table-responsive {
  margin-bottom: 1.15rem;
}
.content-body li + li {
  margin-top: .28rem;
}
.content-body h2 {
  margin-top: 2.4rem;
  margin-bottom: .85rem;
  padding-top: .2rem;
}
.content-body h3 {
  margin-top: 2rem;
  margin-bottom: .7rem;
}
.content-body h4 {
  margin-top: 1.55rem;
  margin-bottom: .6rem;
}
.content-body h5,
.content-body h6 {
  margin-top: 1.25rem;
  margin-bottom: .55rem;
  font-size: 1rem;
  letter-spacing: .01em;
}

/* Phase 13A Repair 12O - imported heading hierarchy normalisation */
.content-body h2[id],
.content-body h3[id],
.content-body h4[id],
.content-body h5[id],
.content-body h6[id] {
  scroll-margin-top: 7rem;
}
.content-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem auto 1.35rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, .22);
  background: var(--bs-body-bg);
}
.content-body table {
  font-size: .96rem;
  vertical-align: top;
}
.content-body table th,
.content-body table td {
  padding: .75rem .85rem;
}
.content-body blockquote {
  border-left: 4px solid rgba(30,155,215,.38);
  background: rgba(30,155,215,.06);
  padding: 1rem 1.15rem;
  border-radius: .85rem;
  color: var(--bs-body-color);
}
.on-this-page {
  border-style: solid !important;
  border-color: rgba(30,155,215,.14) !important;
  background: rgba(30,155,215,.035) !important;
}
.on-this-page-count {
  margin-top: .05rem;
}
.on-this-page-link {
  border-radius: .45rem;
  padding-right: .35rem;
}
.doc-next-prev {
  border-top-color: rgba(148, 163, 184, .22) !important;
}
.doc-next-prev-card {
  min-height: 5.25rem;
}
.page-feedback {
  border-color: rgba(148, 163, 184, .22) !important;
  background: rgba(248,249,250,.72) !important;
}
[data-bs-theme="dark"] .page-feedback,
[data-bs-theme="dark"] .on-this-page {
  background: rgba(255,255,255,.035) !important;
}
@media (max-width: 991.98px) {
  .doc-content {
    max-width: 100%;
  }
  .content-body {
    font-size: 1rem;
    line-height: 1.68;
  }
  .content-body h2 {
    margin-top: 2rem;
  }
  .content-body img {
    border-radius: .85rem;
  }
}


/* Phase 7P: simpler public page feedback */
.page-feedback-compact {
  border-top: 1px solid rgba(148, 163, 184, .18);
  padding-top: 1rem;
  background: transparent !important;
}
.page-feedback-choice {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  min-height: 2.5rem;
}
.page-feedback-choice-label {
  font-weight: 700;
  margin-right: .25rem;
}
.page-feedback-choice .btn {
  min-width: 3.9rem;
  line-height: 1.15;
}
.page-feedback-choice .btn.is-selected {
  color: #fff;
  background: var(--bs-primary);
  border-color: var(--bs-primary);
}
.page-feedback-followup {
  max-width: 46rem;
  padding-top: .5rem;
}
.page-feedback-response-title {
  font-size: 1.12rem;
  color: var(--bs-body-color);
}
.page-feedback-textarea {
  border-radius: .85rem;
  min-height: 7.75rem;
  resize: vertical;
}
.page-feedback-privacy {
  margin-top: 1rem;
  color: var(--bs-body-color);
}
.page-feedback-thanks {
  color: var(--bs-body-color);
  font-size: 1rem;
}
[data-bs-theme="dark"] .page-feedback-compact {
  background: transparent !important;
}

/* Phase 7Q - section landing pages and child-page cards */
.phase7q-section-landing {
  padding: 1.35rem;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 1.35rem;
  background: linear-gradient(180deg, rgba(248,250,252,.78), rgba(255,255,255,.96));
}
.phase7q-section-intro h2 {
  margin-top: 0;
  padding-top: 0;
}
.phase7q-child-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}
.phase7q-child-card {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  min-height: 8.25rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 1rem;
  color: inherit;
  text-decoration: none;
  background: var(--bs-body-bg);
  box-shadow: 0 .45rem 1.1rem rgba(15,23,42,.035);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.phase7q-child-card:hover,
.phase7q-child-card:focus {
  transform: translateY(-2px);
  border-color: rgba(13,110,253,.35);
  box-shadow: 0 .85rem 1.8rem rgba(15,23,42,.08);
  color: inherit;
}
.phase7q-child-card-title {
  font-weight: 700;
  line-height: 1.25;
  color: var(--bs-body-color);
}
.phase7q-child-card-excerpt {
  color: var(--bs-secondary-color);
  font-size: .94rem;
  line-height: 1.45;
  flex: 1 1 auto;
}
.phase7q-child-card-action {
  color: var(--bs-primary);
  font-size: .9rem;
  font-weight: 600;
}
[data-bs-theme="dark"] .phase7q-section-landing {
  background: rgba(255,255,255,.035);
  border-color: rgba(255,255,255,.1);
}
[data-bs-theme="dark"] .phase7q-child-card {
  background: rgba(255,255,255,.035);
  border-color: rgba(255,255,255,.1);
}
@media (max-width: 767.98px) {
  .phase7q-section-landing {
    padding: 1rem;
    border-radius: 1.1rem;
  }
  .phase7q-child-card-grid {
    grid-template-columns: 1fr;
  }
  .phase7q-child-card {
    min-height: auto;
  }
}

/* Phase 7R - guide overview card descriptions */
.section-card .section-card-excerpt {
  line-height: 1.55;
}

.section-card .section-card-excerpt:empty::after {
  content: "Open this section for related setup steps, settings, and reference information.";
}


/* Phase 7S - guide overview and navigation consistency */
.phase7s-guide-overview .lead {
  max-width: 760px;
}

.phase7s-guide-card-grid {
  align-items: stretch;
}

.phase7s-section-card {
  display: flex !important;
  flex-direction: column;
  gap: .75rem;
  min-height: 168px;
}

.phase7s-section-card .section-card-excerpt {
  flex: 1 1 auto;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.phase7s-card-count {
  flex: 0 0 auto;
  border: 1px solid rgba(30, 155, 215, .22);
  background: rgba(30, 155, 215, .08);
  color: var(--bs-primary);
  border-radius: 999px;
  padding: .22rem .55rem;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.phase7s-card-action {
  margin-top: auto;
  color: var(--bs-primary);
  font-weight: 700;
  font-size: .9rem;
}

[data-bs-theme="dark"] .phase7s-card-count {
  background: rgba(30, 155, 215, .16);
  border-color: rgba(117, 205, 245, .25);
}

@media (max-width: 767.98px) {
  .phase7s-section-card {
    min-height: auto;
  }
  .phase7s-card-heading {
    flex-direction: column;
  }
}


/* Phase 7T - docs improvement dashboard and right-aligned breadcrumbs */
.doc-breadcrumbs {
  display: flex;
  justify-content: flex-end;
  text-align: right;
  margin-bottom: .85rem;
}
.doc-breadcrumbs .breadcrumb {
  justify-content: flex-end;
  gap: .2rem .35rem;
  margin-bottom: 0 !important;
  font-size: .78rem;
  line-height: 1.35;
}
.doc-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
  padding-right: .35rem;
}
.doc-breadcrumbs .breadcrumb-item.active {
  color: var(--bs-secondary-color);
}
.phase7t-priority-dot {
  width: .65rem;
  height: .65rem;
  border-radius: 50%;
  display: inline-block;
  margin-right: .5rem;
  background: var(--bs-secondary-color);
}
.phase7t-priority-high { background: #dc3545; }
.phase7t-priority-medium { background: #ffc107; }
.phase7t-priority-low { background: #20c997; }
.phase7t-action-list .list-group-item {
  border-left: 0;
  border-right: 0;
}
.phase7t-action-list .list-group-item:first-child { border-top: 0; }
.phase7t-action-list .list-group-item:last-child { border-bottom: 0; }
@media (max-width: 767.98px) {
  .doc-breadcrumbs {
    justify-content: flex-start;
    text-align: left;
  }
  .doc-breadcrumbs .breadcrumb {
    justify-content: flex-start;
    font-size: .76rem;
  }
}


/* Phase 7U admin/editor simplification */
.admin-editor-state { --bs-alert-padding-y: 1rem; }
.selected-image-helper { margin-top: .75rem; }
.selected-image-helper .btn { border-radius: 999px; }
.admin-content-status-note { font-size: .875rem; }
@media (max-width: 991.98px) {
  .selected-image-helper { align-items: flex-start !important; }
}


/* Phase 7V - simplified import workflow */
.phase7v-choice-card {
  transition: transform .16s ease, box-shadow .16s ease;
}
.phase7v-choice-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 .75rem 1.8rem rgba(15, 23, 42, .10) !important;
}
.phase7v-safe-note {
  background: linear-gradient(135deg, rgba(13,110,253,.08), rgba(13,110,253,.02));
}
.phase7v-next-step {
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
}
.phase7v-checklist {
  list-style: none;
  padding-left: 0;
  counter-reset: phase7v-step;
}
.phase7v-checklist li {
  counter-increment: phase7v-step;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--bs-border-color-translucent);
}
.phase7v-checklist li:last-child { border-bottom: 0; }
.phase7v-checklist li::before {
  content: counter(phase7v-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background: var(--bs-primary-bg-subtle);
  color: var(--bs-primary-text-emphasis);
  font-weight: 700;
  font-size: .85rem;
}
.phase7v-checklist span {
  display: block;
  color: var(--bs-secondary-color);
  font-size: .9rem;
  margin-top: .15rem;
}

/* Phase 7W - Collapsible guide sidebar navigation */
.docs-sidebar[data-phase7w-collapsible-sidebar="1"] .doc-sidebar-controls {
  font-size: .78rem;
}
.docs-sidebar[data-phase7w-collapsible-sidebar="1"] .doc-sidebar-row {
  min-width: 0;
}
.docs-sidebar[data-phase7w-collapsible-sidebar="1"] .doc-sidebar-row .toc-link {
  min-width: 0;
}
.docs-sidebar[data-phase7w-collapsible-sidebar="1"] .doc-sidebar-toggle {
  width: 1.55rem;
  min-width: 1.55rem;
  height: 1.85rem;
  border: 0;
  border-radius: .55rem;
  background: transparent;
  color: var(--bs-secondary-color);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: .05rem;
}
.docs-sidebar[data-phase7w-collapsible-sidebar="1"] .doc-sidebar-toggle:hover,
.docs-sidebar[data-phase7w-collapsible-sidebar="1"] .doc-sidebar-toggle:focus-visible {
  background: rgba(30,155,215,.10);
  color: var(--ip-blue);
  outline: 0;
}
.docs-sidebar[data-phase7w-collapsible-sidebar="1"] .doc-sidebar-toggle i {
  font-size: .72rem;
  transition: transform .16s ease;
}
.docs-sidebar[data-phase7w-collapsible-sidebar="1"] .js-sidebar-item.is-open > .doc-sidebar-row .doc-sidebar-toggle i {
  transform: rotate(90deg);
}
.docs-sidebar[data-phase7w-collapsible-sidebar="1"] .doc-sidebar-children[hidden] {
  display: none !important;
}
.docs-sidebar[data-phase7w-collapsible-sidebar="1"] .doc-sidebar-children {
  margin-left: .45rem;
  padding-left: .45rem;
  border-left: 1px solid rgba(30,155,215,.14);
}
.docs-sidebar[data-phase7w-collapsible-sidebar="1"] .js-sidebar-item.has-children > .doc-sidebar-row .toc-link {
  font-weight: 500;
}
.docs-sidebar[data-phase7w-collapsible-sidebar="1"] .js-sidebar-item.is-current-branch > .doc-sidebar-row .toc-link:not(.active) {
  color: var(--bs-body-color);
}
.docs-sidebar[data-phase7w-collapsible-sidebar="1"] .js-sidebar-item.is-filter-match > .doc-sidebar-row .toc-link,
.docs-sidebar[data-phase7w-collapsible-sidebar="1"] .js-sidebar-item.is-filter-match > .toc-link {
  background: rgba(30,155,215,.10);
  color: var(--bs-body-color);
}
.docs-sidebar[data-phase7w-collapsible-sidebar="1"] .js-sidebar-item.is-filter-ancestor > .doc-sidebar-row .toc-link,
.docs-sidebar[data-phase7w-collapsible-sidebar="1"] .js-sidebar-item.is-filter-ancestor > .toc-link {
  color: var(--bs-body-color);
  font-weight: 600;
}
[data-bs-theme="dark"] .docs-sidebar[data-phase7w-collapsible-sidebar="1"] .doc-sidebar-children {
  border-left-color: rgba(125,211,252,.18);
}

/* Phase 7Y - chatbot speed and compact answer experience */
.chatbot-message {
  margin-bottom: .65rem;
}
.chatbot-message-bot .chatbot-message-bubble {
  padding: .65rem .75rem;
  border-radius: .85rem .85rem .85rem .28rem;
}
.chatbot-message-user .chatbot-message-bubble {
  padding: .58rem .78rem;
  border-radius: .9rem .9rem .28rem .9rem;
}
.chatbot-widget-ai-answer.phase7a-typed-answer {
  margin-top: .15rem;
}
.chatbot-widget-ai-answer .small,
.phase7a-typed-answer .small {
  margin-bottom: .25rem !important;
}
.chatbot-widget-ai-answer-text,
.phase7a-typewriter-target {
  line-height: 1.46;
  font-size: .97rem;
}
.phase7g-answer-actions {
  margin-top: .75rem !important;
  gap: .4rem !important;
}
.phase7g-answer-actions .btn,
.js-copy-chatbot-answer {
  padding: .3rem .65rem;
  font-size: .82rem;
}
.chatbot-widget-sources.phase7a-reference-pages,
.phase7a-reference-pages {
  margin-top: .75rem !important;
  padding-top: .65rem;
  border-top: 1px solid rgba(30,155,215,.14);
}
.chatbot-widget-sources.phase7a-reference-pages > .fw-semibold,
.phase7a-reference-pages > .fw-semibold {
  margin-bottom: .15rem !important;
  font-size: .92rem;
}
.chatbot-widget-sources.phase7a-reference-pages .text-secondary.mb-2 {
  margin-bottom: .45rem !important;
  font-size: .8rem;
}
.chatbot-widget-sources.phase7a-reference-pages a:not(.phase7j-primary-reference),
.phase7a-reference-pages a:not(.phase7j-primary-reference) {
  padding: .35rem .48rem;
  margin-top: .28rem;
  border-radius: .65rem;
  font-size: .9rem;
}
.chatbot-widget-sources.phase7a-reference-pages a:not(.phase7j-primary-reference) .fw-semibold,
.phase7a-reference-pages a:not(.phase7j-primary-reference) .fw-semibold {
  font-size: .9rem;
  line-height: 1.3;
}
.chatbot-widget-sources.phase7a-reference-pages a.phase7j-primary-reference,
.phase7a-reference-pages a.phase7j-primary-reference {
  padding: .34rem .78rem !important;
  margin-bottom: .4rem !important;
  font-size: .86rem;
  box-shadow: 0 .35rem .85rem rgba(13,110,253,.14);
}
.phase7a-typewriter-target.is-typing::after,
.js-phase7a-typewriter.is-typing::after {
  animation-duration: .62s;
}
@media (max-width: 575.98px) {
  .chatbot-widget-body,
  .phase7a-home-chat-body {
    padding: .85rem;
  }
  .chatbot-message-bot .chatbot-message-bubble,
  .chatbot-message-user .chatbot-message-bubble {
    max-width: 94%;
  }
}

/* Phase 7Z - public journey QA and mobile polish */
@media (max-width: 991.98px) {
  .site-header .navbar {
    padding-top: .55rem;
    padding-bottom: .55rem;
  }
  .site-header .navbar-nav {
    gap: .15rem;
    padding-top: .45rem;
  }
  .phase7a-home-hero {
    padding-top: 2.25rem !important;
    padding-bottom: 2.25rem !important;
  }
  .phase7a-home-lead {
    max-width: 100%;
  }
  .phase7a-home-assistant {
    border-radius: 1.1rem !important;
  }
  .phase7a-home-assistant-header {
    gap: .75rem !important;
  }
  .phase7a-home-chat-body {
    max-height: 58vh;
  }
  .phase7a-chat-input-group {
    box-shadow: 0 .45rem 1.25rem rgba(15, 23, 42, .045);
  }
  .phase7a-chat-input-group .form-control {
    font-size: 1rem;
  }
  .doc-layout {
    gap: 1rem !important;
  }
  .doc-page-header h1 {
    font-size: clamp(2rem, 7vw, 2.75rem);
  }
  .doc-next-prev .row {
    row-gap: .75rem;
  }
  .doc-next-prev-card {
    min-height: auto;
  }
  .content-body table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 767.98px) {
  body {
    overflow-x: hidden;
  }
  .container,
  .container-fluid {
    --bs-gutter-x: 1.25rem;
  }
  .doc-breadcrumbs {
    margin-bottom: .55rem;
  }
  .doc-breadcrumbs .breadcrumb {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: .15rem;
    scrollbar-width: thin;
  }
  .phase7a-ai-avatar {
    width: 2.15rem;
    height: 2.15rem;
  }
  .phase7a-home-assistant-header h2,
  .phase7a-home-assistant-header .h5,
  .phase7a-home-assistant-header .fw-semibold {
    font-size: 1rem;
  }
  .phase7a-home-chat-body {
    min-height: 0;
    max-height: 52vh;
  }
  .phase7a-home-chat-form {
    padding: .85rem;
  }
  .phase7a-chat-input-group {
    display: flex;
    align-items: stretch;
    border-radius: 1rem;
  }
  .phase7a-chat-input-group .form-control {
    min-width: 0;
    padding: .85rem .95rem;
  }
  .phase7a-chat-input-group .btn {
    padding-left: .9rem;
    padding-right: .9rem;
    white-space: nowrap;
  }
  .phase7n-search-result {
    padding: 1rem !important;
  }
  .phase7n-search-result .d-flex {
    align-items: flex-start !important;
  }
  .phase7n-search-snippet {
    font-size: .95rem;
    line-height: 1.52;
  }
  .phase7s-guide-card-grid,
  .section-grid,
  .guide-card-grid {
    grid-template-columns: 1fr !important;
  }
  .phase7s-section-card,
  .section-card {
    min-height: auto !important;
    padding: 1rem !important;
  }
  .phase7s-card-heading {
    gap: .35rem !important;
  }
  .phase7s-card-count {
    align-self: flex-start;
  }
  .content-body {
    font-size: .98rem;
    line-height: 1.65;
  }
  .content-body h2,
  .content-body h3,
  .content-body h4,
  .content-body h5,
  .content-body h6 {
    scroll-margin-top: 1.25rem;
  }
  .content-body figure,
  .content-body .import-figure {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .content-body img {
    max-width: 100%;
    height: auto;
  }
  .page-feedback-choice {
    gap: .5rem;
  }
  .page-feedback-followup {
    max-width: 100%;
  }
  .page-feedback-textarea {
    min-height: 6.5rem;
  }
  .chatbot-widget-sources.phase7a-reference-pages a.phase7j-primary-reference,
  .phase7a-reference-pages a.phase7j-primary-reference {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .phase7a-home-hero {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
  .phase7a-home-assistant {
    margin-left: -.25rem;
    margin-right: -.25rem;
  }
  .phase7a-home-chat-body {
    max-height: 50vh;
  }
  .chatbot-message-bot .chatbot-message-bubble,
  .chatbot-message-user .chatbot-message-bubble {
    max-width: 100%;
  }
  .chatbot-widget-ai-answer-text,
  .phase7a-typewriter-target {
    font-size: .95rem;
  }
  .doc-page-header {
    padding-bottom: 1rem !important;
  }
  .doc-page-header h1 {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
    line-height: 1.08;
  }
  .doc-page-meta {
    font-size: .9rem;
  }
  .doc-next-prev-card {
    padding: 1rem !important;
  }
  .page-feedback-choice-label {
    width: 100%;
    margin-bottom: .1rem;
  }
  .page-feedback-choice .btn {
    min-width: 4.4rem;
  }
  .docs-sidebar[data-phase7w-collapsible-sidebar="1"] .doc-sidebar-controls {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
  }
  .docs-sidebar[data-phase7w-collapsible-sidebar="1"] .doc-sidebar-controls .btn,
  .docs-sidebar[data-phase7w-collapsible-sidebar="1"] .doc-sidebar-controls button {
    flex: 1 1 auto;
  }
}

/* Phase 8I Repair 3 - IPVoice button colour alignment
   Uses the approved IPVoice blues for public and admin action buttons.
   Dark blue: #1d477a, Light blue: #2386c7. */
:root {
  --ip-blue: #2386c7;
  --ip-blue-light: #2386c7;
  --ip-blue-dark: #1d477a;
  --bs-primary: #1d477a;
  --bs-primary-rgb: 29, 71, 122;
  --bs-link-color: #1d477a;
  --bs-link-hover-color: #2386c7;
}

.btn-primary,
.btn.btn-primary,
button.btn-primary,
a.btn-primary,
.hero-search .btn,
.phase7a-chat-input-group .btn,
.chatbot-widget-form .btn,
.doc-page-assistant .btn-primary,
.doc-mobile-guide-tools .btn-primary,
.page-feedback-choice .btn.is-selected,
.js-chatbot-form button[type="submit"] {
  background: #1d477a !important;
  border-color: #1d477a !important;
  color: #ffffff !important;
  box-shadow: 0 .45rem 1rem rgba(29, 71, 122, .18);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.hero-search .btn:hover,
.hero-search .btn:focus,
.phase7a-chat-input-group .btn:hover,
.phase7a-chat-input-group .btn:focus,
.chatbot-widget-form .btn:hover,
.chatbot-widget-form .btn:focus,
.doc-page-assistant .btn-primary:hover,
.doc-page-assistant .btn-primary:focus,
.doc-mobile-guide-tools .btn-primary:hover,
.doc-mobile-guide-tools .btn-primary:focus,
.page-feedback-choice .btn.is-selected:hover,
.page-feedback-choice .btn.is-selected:focus,
.js-chatbot-form button[type="submit"]:hover,
.js-chatbot-form button[type="submit"]:focus {
  background: #2386c7 !important;
  border-color: #2386c7 !important;
  color: #ffffff !important;
  box-shadow: 0 .55rem 1.2rem rgba(35, 134, 199, .22);
}

.btn-outline-primary,
.btn.btn-outline-primary,
a.btn-outline-primary,
button.btn-outline-primary {
  border-color: #1d477a !important;
  color: #1d477a !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
  background: #1d477a !important;
  border-color: #1d477a !important;
  color: #ffffff !important;
}

.chatbot-floating-button,
.chatbot-floating-widget .chatbot-floating-button,
.chatbot-message-user .chatbot-message-bubble,
.chatbot-widget-sources.phase7a-reference-pages a.phase7j-primary-reference,
.phase7a-reference-pages a.phase7j-primary-reference {
  background: linear-gradient(135deg, #1d477a, #2386c7) !important;
  border-color: #1d477a !important;
  color: #ffffff !important;
  box-shadow: 0 .65rem 1.6rem rgba(29, 71, 122, .22);
}

.chatbot-floating-button:hover,
.chatbot-floating-button:focus,
.chatbot-floating-widget .chatbot-floating-button:hover,
.chatbot-floating-widget .chatbot-floating-button:focus,
.chatbot-widget-sources.phase7a-reference-pages a.phase7j-primary-reference:hover,
.chatbot-widget-sources.phase7a-reference-pages a.phase7j-primary-reference:focus,
.phase7a-reference-pages a.phase7j-primary-reference:hover,
.phase7a-reference-pages a.phase7j-primary-reference:focus {
  background: linear-gradient(135deg, #2386c7, #1d477a) !important;
  border-color: #2386c7 !important;
  color: #ffffff !important;
}

.chatbot-widget-header {
  background: linear-gradient(135deg, #1d477a, #2386c7) !important;
}

.chatbot-source:hover,
.search-result:hover,
.doc-card-link:hover .doc-card,
.section-card:hover {
  border-color: rgba(35, 134, 199, .38) !important;
}

.docs-sidebar .toc-link.active,
.docs-sidebar .toc-link[aria-current="page"],
.toc-link.active {
  color: #1d477a;
}

[data-bs-theme="dark"] .docs-sidebar .toc-link.active,
[data-bs-theme="dark"] .toc-link.active {
  color: #2386c7;
}

/* Phase 8I Repair 4 - IPVoice link colour alignment
   Uses IPVoice dark blue (#1d477a) for default links and light blue (#2386c7) for hover/focus states.
   Keeps button styles from Repair 3 and avoids forcing dark-header navigation links blue. */
:root {
  --ip-link: #1d477a;
  --ip-link-hover: #2386c7;
  --bs-link-color: #1d477a;
  --bs-link-hover-color: #2386c7;
}

/* Main content and public docs links */
a:not(.btn):not(.nav-link):not(.navbar-brand):not(.dropdown-item):not(.doc-card-link):not(.toc-link),
.content-body a:not(.btn),
.doc-content a:not(.btn),
.search-result a:not(.btn),
.phase7n-search-result a:not(.btn),
.chatbot-answer a:not(.btn),
.chatbot-widget-answer a:not(.btn),
.phase7g-answer a:not(.btn),
.phase7g-source-card a:not(.btn),
.phase7g-reference-card a:not(.btn),
.admin-main a:not(.btn):not(.nav-link) {
  color: #1d477a;
  text-decoration-color: rgba(29, 71, 122, .38);
}

a:not(.btn):not(.nav-link):not(.navbar-brand):not(.dropdown-item):not(.doc-card-link):not(.toc-link):hover,
a:not(.btn):not(.nav-link):not(.navbar-brand):not(.dropdown-item):not(.doc-card-link):not(.toc-link):focus,
.content-body a:not(.btn):hover,
.content-body a:not(.btn):focus,
.doc-content a:not(.btn):hover,
.doc-content a:not(.btn):focus,
.search-result a:not(.btn):hover,
.search-result a:not(.btn):focus,
.phase7n-search-result a:not(.btn):hover,
.phase7n-search-result a:not(.btn):focus,
.chatbot-answer a:not(.btn):hover,
.chatbot-answer a:not(.btn):focus,
.chatbot-widget-answer a:not(.btn):hover,
.chatbot-widget-answer a:not(.btn):focus,
.phase7g-answer a:not(.btn):hover,
.phase7g-answer a:not(.btn):focus,
.phase7g-source-card a:not(.btn):hover,
.phase7g-source-card a:not(.btn):focus,
.phase7g-reference-card a:not(.btn):hover,
.phase7g-reference-card a:not(.btn):focus,
.admin-main a:not(.btn):not(.nav-link):hover,
.admin-main a:not(.btn):not(.nav-link):focus {
  color: #2386c7;
  text-decoration-color: rgba(35, 134, 199, .55);
}

/* Sidebar/TOC active and search match states */
.docs-sidebar .toc-link:hover,
.docs-sidebar .toc-link:focus,
.toc-link:hover,
.toc-link:focus {
  color: #1d477a;
}
.docs-sidebar .toc-link.active,
.docs-sidebar .toc-link[aria-current="page"],
.toc-link.active,
.on-this-page-link.active {
  color: #1d477a !important;
  border-left-color: #1d477a;
}
.docs-sidebar .js-sidebar-item.is-filter-match > .toc-link,
.docs-sidebar .js-sidebar-item.is-filter-match > .doc-sidebar-row .toc-link,
.docs-sidebar .js-sidebar-item.is-filter-ancestor > .toc-link,
.docs-sidebar .js-sidebar-item.is-filter-ancestor > .doc-sidebar-row .toc-link {
  color: #1d477a !important;
}

/* Search/chatbot reference labels and matched-result links */
.phase8h-section-result a,
.phase8i-table-reference a,
.phase8i-table-reference-card a,
.phase8i-source-link,
.phase8i-result-title,
.phase8i-reference-title {
  color: #1d477a !important;
}
.phase8h-section-result a:hover,
.phase8i-table-reference a:hover,
.phase8i-table-reference-card a:hover,
.phase8i-source-link:hover,
.phase8i-result-title:hover,
.phase8i-reference-title:hover {
  color: #2386c7 !important;
}

/* Dark theme: use the lighter blue for legibility. */
[data-bs-theme="dark"] a:not(.btn):not(.nav-link):not(.navbar-brand):not(.dropdown-item):not(.doc-card-link):not(.toc-link),
[data-bs-theme="dark"] .content-body a:not(.btn),
[data-bs-theme="dark"] .doc-content a:not(.btn),
[data-bs-theme="dark"] .search-result a:not(.btn),
[data-bs-theme="dark"] .phase7n-search-result a:not(.btn),
[data-bs-theme="dark"] .chatbot-answer a:not(.btn),
[data-bs-theme="dark"] .chatbot-widget-answer a:not(.btn),
[data-bs-theme="dark"] .phase7g-answer a:not(.btn),
[data-bs-theme="dark"] .phase7g-source-card a:not(.btn),
[data-bs-theme="dark"] .phase7g-reference-card a:not(.btn),
[data-bs-theme="dark"] .admin-main a:not(.btn):not(.nav-link) {
  color: #2386c7;
  text-decoration-color: rgba(35, 134, 199, .55);
}

[data-bs-theme="dark"] a:not(.btn):not(.nav-link):not(.navbar-brand):not(.dropdown-item):not(.doc-card-link):not(.toc-link):hover,
[data-bs-theme="dark"] .content-body a:not(.btn):hover,
[data-bs-theme="dark"] .doc-content a:not(.btn):hover,
[data-bs-theme="dark"] .search-result a:not(.btn):hover,
[data-bs-theme="dark"] .phase7n-search-result a:not(.btn):hover,
[data-bs-theme="dark"] .chatbot-answer a:not(.btn):hover,
[data-bs-theme="dark"] .chatbot-widget-answer a:not(.btn):hover,
[data-bs-theme="dark"] .phase7g-answer a:not(.btn):hover,
[data-bs-theme="dark"] .phase7g-source-card a:not(.btn):hover,
[data-bs-theme="dark"] .phase7g-reference-card a:not(.btn):hover,
[data-bs-theme="dark"] .admin-main a:not(.btn):not(.nav-link):hover {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, .72);
}

[data-bs-theme="dark"] .docs-sidebar .toc-link.active,
[data-bs-theme="dark"] .docs-sidebar .toc-link[aria-current="page"],
[data-bs-theme="dark"] .toc-link.active,
[data-bs-theme="dark"] .on-this-page-link.active {
  color: #2386c7 !important;
  border-left-color: #2386c7;
}

/* Phase 8O: search autocomplete and chatbot question suggestions. */
.ipvoice-autocomplete-wrap {
  position: relative;
  width: 100%;
}
.input-group .ipvoice-autocomplete-wrap {
  flex: 1 1 auto;
  min-width: 0;
}
.input-group .ipvoice-autocomplete-wrap > .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  width: 100%;
}
.ipvoice-autocomplete-panel {
  position: absolute;
  z-index: 1060;
  left: 0;
  right: 0;
  top: calc(100% + .35rem);
  background: #fff;
  border: 1px solid rgba(29, 71, 122, .18);
  border-radius: 1rem;
  box-shadow: 0 1rem 2.5rem rgba(25, 25, 25, .12);
  padding: .45rem;
  max-height: 22rem;
  overflow: auto;
}
.ipvoice-autocomplete-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: #191919;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  text-align: left;
  padding: .65rem .75rem;
  border-radius: .75rem;
}
.ipvoice-autocomplete-item:hover,
.ipvoice-autocomplete-item:focus,
.ipvoice-autocomplete-item.is-active {
  background: rgba(35, 134, 199, .10);
  outline: none;
}
.ipvoice-autocomplete-text {
  font-weight: 600;
  line-height: 1.25;
}
.ipvoice-autocomplete-label {
  flex: 0 0 auto;
  color: #1d477a;
  border: 1px solid rgba(29, 71, 122, .18);
  border-radius: 999px;
  padding: .12rem .45rem;
  font-size: .72rem;
  background: rgba(35, 134, 199, .06);
}
.chatbot-widget-form .ipvoice-autocomplete-panel,
.phase7a-home-chat-form .ipvoice-autocomplete-panel {
  top: auto;
  bottom: calc(100% + .45rem);
}

/* Phase 8Q: chatbot clarification prompts */
.chatbot-clarification-card,
.chatbot-clarification-options {
  border: 1px solid rgba(35, 134, 199, .24);
  background: rgba(35, 134, 199, .06);
  border-radius: 1rem;
  padding: .9rem;
}
.chatbot-clarification-options .btn,
.chatbot-clarification-card .btn {
  white-space: normal;
  text-align: left;
}


/* Phase 8R - inline chatbot answer links */
.chatbot-inline-source-link {
  color: var(--ipvoice-link, #1d477a);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .16em;
}
.chatbot-inline-source-link:hover,
.chatbot-inline-source-link:focus {
  color: var(--ipvoice-link-hover, #2386c7);
}
.ipvoice-autocomplete-panel .ipvoice-autocomplete-item:nth-child(n+4) {
  display: none;
}

/* Phase 8T admin sidebar polish */
.admin-sidebar-phase8t {
  overflow-y: auto;
  max-height: calc(100vh - 85px);
}
.admin-sidebar-phase8t .admin-nav-subheading {
  letter-spacing: .08em;
  font-size: .72rem;
}
.admin-sidebar-phase8t .admin-nav-details > summary {
  border-radius: .85rem;
}
.admin-sidebar-phase8t .admin-nav-details > summary:hover {
  background: rgba(29, 71, 122, .08);
}
.admin-sidebar-phase8t .admin-nav-details[open] > summary {
  color: var(--ip-blue);
  background: rgba(35, 134, 199, .10);
  font-weight: 700;
}
.admin-sidebar-phase8t .admin-nav-group-body {
  border-left: 1px solid rgba(35, 134, 199, .24);
  margin-left: .65rem;
  padding-left: .4rem !important;
}
.admin-sidebar-phase8t .admin-nav-group-body .admin-nav-details > summary,
.admin-sidebar-phase8t .admin-nav-group-body .nav-link {
  font-size: .92rem;
}
.admin-sidebar-phase8t .nav-link.active {
  background: rgba(29, 71, 122, .14);
  color: #1d477a;
}

/* Phase 8V - page editor workflow improvements */
.phase8v-editor-outline {
  display: grid;
  gap: .35rem;
  max-height: 260px;
  overflow: auto;
}
.phase8v-outline-item {
  border: 1px solid rgba(29, 71, 122, .14);
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  border-radius: .75rem;
  padding: .45rem .65rem;
  text-align: left;
  line-height: 1.25;
}
.phase8v-outline-item:hover,
.phase8v-outline-item:focus {
  border-color: rgba(35, 134, 199, .55);
  box-shadow: 0 0 0 .18rem rgba(35, 134, 199, .12);
}
.phase8v-outline-h3 { margin-left: .75rem; }
.phase8v-outline-h4 { margin-left: 1.5rem; font-size: .92em; }
.phase8v-editor-checklist {
  background: rgba(35, 134, 199, .06);
  border-color: rgba(35, 134, 199, .18) !important;
}
.editor-toolbar .btn {
  white-space: nowrap;
}
.visual-editor .table-responsive {
  outline: 1px dashed rgba(35, 134, 199, .25);
  outline-offset: 2px;
}

/* Phase 8W Repair 1 - searchable media picker */
.phase8w-media-picker-search {
  background: rgba(35, 134, 199, .06);
  border: 1px solid rgba(35, 134, 199, .14);
  border-radius: 1rem;
  padding: .75rem;
}
.phase8w-media-picker-row .media-thumb-sm {
  width: 52px;
  height: 42px;
  flex: 0 0 52px;
}
.phase8w-media-picker-row .media-thumb-sm img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.doc-inline-icon {
  display: inline-block;
  max-width: 1.35em;
  max-height: 1.35em;
  width: auto;
  height: auto;
  vertical-align: -0.2em;
  margin: 0 .18em;
  border-radius: .2em;
  box-shadow: none;
}
.visual-editor img.doc-inline-icon,
.content-body img.doc-inline-icon {
  display: inline-block;
}
/* added by henk*/
.content-body img.doc-inline-icon {
    display: inline-block;
    width: auto;
    max-width: none;
    height: 1.15em;
    margin: 0 0.2em;
    vertical-align: -0.15em;
}

/* Phase 8X - safer WYSIWYG editor upgrade and content preview polish */
.editor-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(148, 163, 184, .18);
}
.visual-editor {
  line-height: 1.65;
}
.visual-editor:empty::before {
  content: 'Start typing page content here...';
  color: var(--bs-secondary-color);
}
.phase8x-preview-frame {
  background: linear-gradient(90deg, rgba(35,134,199,.05), rgba(29,71,122,.04));
  padding: 1rem;
}
.phase8x-preview-frame .editor-preview {
  margin: 0 auto;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .08);
  overflow-x: auto;
}
.phase8x-preview-desktop .editor-preview { max-width: 1120px; }
.phase8x-preview-tablet .editor-preview { max-width: 768px; }
.phase8x-preview-mobile .editor-preview { max-width: 390px; }
.phase8x-preview-mobile .editor-preview {
  font-size: .96rem;
}
.phase8x-preview-mobile .editor-preview table {
  min-width: 560px;
}
.phase8x-preview-toolbar .btn.active {
  background: #1d477a;
  color: #fff;
  border-color: #1d477a;
}
.phase8x-editor-mode-card {
  border: 1px solid rgba(35, 134, 199, .12) !important;
}
#phase8xCleanPasteText {
  font-family: var(--bs-font-monospace);
  font-size: .92rem;
}
[data-bs-theme="dark"] .phase8x-preview-frame {
  background: rgba(15, 23, 42, .45);
}

/* Phase 8Y - editor usability refinements from real page repairs */
.phase8y-editor-repair-card {
  border: 1px solid rgba(29, 71, 122, .14) !important;
}
.phase8y-repair-summary {
  background: rgba(35, 134, 199, .06);
  border-color: rgba(35, 134, 199, .16) !important;
}
.visual-editor .is-editor-repair-target {
  outline: 3px solid rgba(255, 193, 7, .95) !important;
  outline-offset: 4px !important;
  border-radius: .35rem;
  position: relative;
}
.visual-editor .is-editor-repair-target::after {
  content: attr(data-editor-repair-label);
  display: inline-block;
  margin-left: .35rem;
  padding: .12rem .4rem;
  border-radius: 999px;
  background: #ffc107;
  color: #111827;
  font-size: .72rem;
  font-weight: 700;
  vertical-align: middle;
}
.visual-editor img.is-editor-repair-target::after {
  content: none;
}
.visual-editor img.is-editor-repair-target {
  box-shadow: 0 0 0 .25rem rgba(255, 193, 7, .22) !important;
}
.selected-image-helper .js-selected-image-inline,
.selected-image-helper .js-selected-image-wording {
  white-space: nowrap;
}

/* Phase 8Y Repair 1 - note block boundary checker */
.visual-editor .is-editor-repair-target[data-editor-repair-label="Possible note boundary issue"] {
  outline-color: rgba(220, 53, 69, .95) !important;
  box-shadow: 0 0 0 .25rem rgba(220, 53, 69, .14) !important;
}
.visual-editor .is-editor-repair-target[data-editor-repair-label="Possible note boundary issue"]::after {
  background: #dc3545;
  color: #fff;
}

/* Phase 8Y Repair 2 - IPVoice table header styling
   Gives documentation table header cells the IPVoice light-blue background
   with white text while keeping normal screenshots, inline icons and admin
   data tables unchanged. */
.content-body table thead th,
.content-body table tr:first-child > th,
.content-body .import-table thead th,
.content-body .import-table tr:first-child > th,
.import-preview table thead th,
.import-preview table tr:first-child > th,
.visual-editor table thead th,
.visual-editor table tr:first-child > th,
.editor-preview table thead th,
.editor-preview table tr:first-child > th {
  background: #2386c7 !important;
  color: #ffffff !important;
  border-color: #1d477a !important;
  font-weight: 700;
}
.content-body table thead th a,
.content-body table tr:first-child > th a,
.visual-editor table thead th a,
.visual-editor table tr:first-child > th a,
.editor-preview table thead th a,
.editor-preview table tr:first-child > th a {
  color: #ffffff !important;
  text-decoration-color: rgba(255, 255, 255, .75);
}
.content-body table thead th code,
.content-body table tr:first-child > th code,
.visual-editor table thead th code,
.visual-editor table tr:first-child > th code,
.editor-preview table thead th code,
.editor-preview table tr:first-child > th code {
  background: rgba(255, 255, 255, .18);
  color: #ffffff;
}

/* Phase 10B Repair 1/2: homepage guide cards; 4 per row with two-line card introductions. */
.phase10b-guide-grid .doc-card-link {
  display: block;
  height: 100%;
}
.phase10b-guide-card {
  min-height: 13.75rem;
  display: flex;
  flex-direction: column;
}
.phase10b-guide-card .icon-circle {
  flex: 0 0 auto;
}
.phase10b-guide-card p {
  font-size: .95rem;
  line-height: 1.45;
  min-height: calc(1.45em * 2);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.phase10b-guide-open-link {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  font-weight: 700;
  color: var(--bs-primary);
}
.phase10b-guide-card:hover .phase10b-guide-open-link,
.phase10b-guide-card:focus-within .phase10b-guide-open-link {
  text-decoration: underline;
}
@media (min-width: 1200px) {
  .phase10b-guide-grid {
    --bs-gutter-x: 1.25rem;
  }
  .phase10b-guide-card {
    min-height: 13.75rem;
  }
}

/* Phase 10E - chatbot answer readability headings and lists */
.chatbot-ai-answer-text {
  font-size: 1rem;
  line-height: 1.64;
}
.chatbot-ai-answer-text .chatbot-answer-paragraph {
  margin: 0 0 1rem;
}
.chatbot-ai-answer-text .chatbot-answer-section-heading {
  margin: 1.35rem 0 .65rem;
  padding-top: .35rem;
  color: var(--bs-body-color);
  font-size: 1.18rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -.01em;
}
.chatbot-ai-answer-text .chatbot-answer-section-heading:first-child {
  margin-top: .15rem;
}
.chatbot-ai-answer-text .chatbot-answer-section-heading::after {
  content: "";
  display: block;
  width: 3rem;
  height: .16rem;
  margin-top: .35rem;
  border-radius: 999px;
  background: rgba(30,155,215,.35);
}
.chatbot-ai-answer-text .chatbot-answer-list {
  margin: 0 0 1.05rem 1.15rem;
  padding-left: 1.1rem;
}
.chatbot-ai-answer-text .chatbot-answer-list li {
  margin-bottom: .42rem;
  padding-left: .15rem;
}
.chatbot-ai-answer-text .chatbot-answer-list li::marker,
.chatbot-ai-answer-text ul li::marker,
.chatbot-ai-answer-text ol li::marker {
  color: #1d477a;
  font-weight: 700;
}
.chatbot-ai-answer-text strong,
.chatbot-ai-answer-text b {
  font-weight: 600;
}
.chatbot-ai-answer {
  font-size: 1rem;
}
.chatbot-answer-card .chatbot-ai-answer {
  background: rgba(248,250,252,.82) !important;
}
[data-bs-theme="dark"] .chatbot-answer-card .chatbot-ai-answer {
  background: rgba(15,23,42,.54) !important;
}
[data-bs-theme="dark"] .chatbot-ai-answer-text .chatbot-answer-section-heading::after {
  background: rgba(56,189,248,.38);
}
@media (min-width: 992px) {
  .chatbot-ai-answer-text {
    font-size: 1.035rem;
  }
  .chatbot-ai-answer-text .chatbot-answer-section-heading {
    font-size: 1.24rem;
  }
}

/* Phase 10F: pulsing IPVoice logo loading screen for homepage-to-chatbot handoff */
.phase10f-chatbot-loading-page {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(240, 249, 255, 0.72), rgba(255, 255, 255, 0));
}

.phase10f-loading-card {
  overflow: hidden;
}

.phase10f-loading-logo {
  position: relative;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
}

.phase10f-loading-logo-disc {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 76, 129, 0.16), inset 0 0 0 1px rgba(14, 165, 233, 0.18);
  animation: phase10fLogoPulse 1.8s ease-in-out infinite;
}

.phase10f-loading-logo-disc img {
  width: 70px;
  max-width: 76px;
  height: auto;
  display: block;
}

.phase10f-loading-pulse-ring {
  position: absolute;
  inset: 16px;
  border-radius: 999px;
  border: 2px solid rgba(14, 165, 233, 0.35);
  animation: phase10fPulseRing 1.8s ease-out infinite;
}

.phase10f-loading-pulse-ring-delay {
  animation-delay: 0.6s;
}

.phase10f-loading-question {
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #0f172a;
  font-size: 1.05rem;
}

.phase10f-loading-spinner {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  border: 0.18rem solid rgba(14, 165, 233, 0.25);
  border-top-color: currentColor;
  animation: phase10fSpin 0.8s linear infinite;
}

@keyframes phase10fPulseRing {
  0% {
    opacity: 0.72;
    transform: scale(0.72);
  }
  70% {
    opacity: 0;
    transform: scale(1.18);
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@keyframes phase10fLogoPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@keyframes phase10fSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Phase 10G Repair 4 - structure grouped chatbot answers more clearly */
.chatbot-ai-answer-text .chatbot-answer-section-heading {
  color: #1d477a;
}
.chatbot-ai-answer-text .chatbot-answer-section-heading + .chatbot-answer-list {
  margin-top: .2rem;
}
.chatbot-ai-answer-text .chatbot-answer-section-heading + .chatbot-answer-paragraph {
  margin-top: .2rem;
}
.chatbot-ai-answer-text .chatbot-answer-list + .chatbot-answer-section-heading {
  margin-top: 1.55rem;
}


/* Phase 10I Repair 2 - guide assistant/search bar directly below top header */
.phase10i-guide-assist-section {
  margin: 0 0 1.35rem 0 !important;
  padding: 1rem 0;
  border: 0;
  border-bottom: 1px solid rgba(35, 134, 199, .16);
  border-radius: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(35, 134, 199, .12), transparent 28%),
    linear-gradient(135deg, rgba(225, 242, 255, .95), rgba(248, 252, 255, .98));
  box-shadow: 0 .65rem 1.4rem rgba(15, 23, 42, .045);
}
.phase10i-header-assist-section {
  position: relative;
  z-index: 3;
}
.phase10i-guide-assist-section-inner {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  max-width: 1180px;
  margin: 0 auto;
}
.phase10i-guide-assist-shell {
  display: flex;
  align-items: center;
  gap: .85rem;
  width: 100%;
}
.phase10i-guide-home {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1d477a;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(29, 71, 122, .14);
  box-shadow: 0 .45rem 1.2rem rgba(15, 23, 42, .08);
  text-decoration: none;
  flex: 0 0 auto;
}
.phase10i-guide-home:hover,
.phase10i-guide-home:focus {
  color: #2386c7;
  border-color: rgba(35, 134, 199, .28);
  transform: translateY(-1px);
}
.phase10i-guide-assist-form {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .45rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(29, 71, 122, .12);
  box-shadow: 0 .75rem 2rem rgba(15, 23, 42, .075);
}
.phase10i-guide-mode {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  flex: 0 0 auto;
}
.phase10i-guide-mode-btn {
  border: 0;
  background: transparent;
  color: #5f6f84;
  border-radius: 999px;
  padding: .52rem .82rem;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}
.phase10i-guide-mode-btn.is-active {
  color: #1d477a;
  background: rgba(35, 134, 199, .10);
}
.phase10i-guide-mode-btn:hover,
.phase10i-guide-mode-btn:focus {
  color: #1d477a;
  background: rgba(29, 71, 122, .08);
}
.phase10i-guide-divider {
  width: 1px;
  height: 1.9rem;
  background: rgba(29, 71, 122, .14);
  flex: 0 0 auto;
}
.phase10i-guide-assist-form .form-control {
  border: 0;
  box-shadow: none !important;
  background: transparent;
  min-width: 11rem;
  font-size: 1.02rem;
  padding-left: .1rem;
}
.phase10i-guide-assist-form .form-control:focus {
  background: transparent;
}
.phase10i-guide-submit {
  border-radius: 999px !important;
  min-width: 7.25rem;
  padding-inline: 1.15rem;
  flex: 0 0 auto;
}
.phase10i-guide-assist-note {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-left: 3.7rem;
  margin-top: -.05rem;
  color: #50647a;
  font-size: .86rem;
}
.phase10i-status-dot {
  width: .62rem;
  height: .62rem;
  border-radius: 999px;
  background: #38c172;
  box-shadow: 0 0 0 .2rem rgba(56, 193, 114, .15);
  flex: 0 0 auto;
}
[data-bs-theme="dark"] .phase10i-guide-assist-section {
  background:
    radial-gradient(circle at 10% 10%, rgba(125, 211, 252, .13), transparent 28%),
    linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(18, 30, 45, .92));
  border-bottom-color: rgba(125, 211, 252, .16);
}
[data-bs-theme="dark"] .phase10i-guide-home,
[data-bs-theme="dark"] .phase10i-guide-assist-form {
  background: rgba(15, 23, 42, .82);
  border-color: rgba(125, 211, 252, .16);
}
[data-bs-theme="dark"] .phase10i-guide-mode-btn.is-active {
  color: #bae6fd;
  background: rgba(125, 211, 252, .12);
}
[data-bs-theme="dark"] .phase10i-guide-assist-note {
  color: #a7b7ca;
}

@media (max-width: 991.98px) {
  .phase10i-guide-assist-section {
    padding: .85rem;
    border-radius: 1.15rem;
  }
  .phase10i-guide-assist-shell {
    align-items: stretch;
  }
  .phase10i-guide-assist-form {
    border-radius: 1.25rem;
    flex-wrap: wrap;
  }
  .phase10i-guide-mode {
    width: 100%;
  }
  .phase10i-guide-mode-btn {
    flex: 1 1 0;
  }
  .phase10i-guide-divider {
    display: none;
  }
  .phase10i-guide-assist-form .form-control {
    flex: 1 1 14rem;
  }
  .phase10i-guide-submit {
    flex: 0 0 auto;
  }
  .phase10i-guide-assist-note {
    margin-left: 0;
  }
}
@media (max-width: 575.98px) {
  .phase10i-guide-assist-shell {
    flex-direction: column;
  }
  .phase10i-guide-home {
    display: none;
  }
  .phase10i-guide-assist-form {
    width: 100%;
  }
  .phase10i-guide-submit {
    width: 100%;
  }
}


/* Phase 10J - reliable table header editor tool */
.phase10j-table-tools-list {
  max-height: 62vh;
  overflow: auto;
  padding-right: .25rem;
}
.phase10j-table-card {
  box-shadow: 0 .5rem 1.5rem rgba(29, 71, 122, .06);
}
.phase10j-table-card-header {
  background: linear-gradient(135deg, rgba(29, 71, 122, .06), rgba(18, 154, 213, .05));
}
.phase10j-table-preview {
  background: #fff;
  max-height: 220px;
  overflow: auto;
}
.phase10j-table-preview table {
  min-width: 420px;
}
.phase10j-table-preview th,
.phase10j-table-preview td {
  font-size: .86rem;
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.phase10j-table-preview th {
  background: rgba(29, 71, 122, .08);
  color: #1d477a;
  font-weight: 600;
}
[data-bs-theme="dark"] .phase10j-table-card-header {
  background: linear-gradient(135deg, rgba(96, 165, 250, .10), rgba(56, 189, 248, .08));
}
[data-bs-theme="dark"] .phase10j-table-preview {
  background: rgba(255, 255, 255, .03);
}
@media (max-width: 575.98px) {
  .phase10j-table-card-header {
    align-items: stretch !important;
  }
  .phase10j-table-preview table {
    min-width: 360px;
  }
}


/* Phase 10K Repair 1: wider, softer homepage inline assistant */
.phase10k-home-assistant-wide {
  border: 0;
  box-shadow: 0 1.35rem 3.5rem rgba(29, 71, 122, .12), 0 .25rem 1rem rgba(15, 23, 42, .04) !important;
}
.phase10k-home-assistant-wide .phase7a-home-assistant-header {
  border-bottom: 1px solid rgba(29, 71, 122, .10);
  background: linear-gradient(135deg, rgba(30, 155, 215, .10), rgba(255,255,255,.92));
}
.phase10k-home-assistant-wide .phase7a-home-chat-body {
  min-height: 0;
  max-height: min(680px, 68vh);
  padding: 1.55rem 1.65rem;
  background: linear-gradient(180deg, rgba(30,155,215,.035), rgba(255,255,255,0));
}
.phase10k-home-assistant-wide .phase7a-home-chat-form {
  border-top: 0;
  padding: 1.35rem 1.55rem 1.5rem;
  background: rgba(255,255,255,.94);
}
.phase10k-home-assistant-wide .phase7a-chat-input-group {
  border-color: rgba(29, 71, 122, .14);
  box-shadow: 0 .9rem 2.2rem rgba(29, 71, 122, .08);
}
.phase10k-home-assistant-wide .phase7a-chat-input-group .form-control {
  padding-left: 1.25rem;
}
.phase10k-home-assistant-wide .chatbot-message-bubble {
  max-width: min(980px, 92%);
}
.phase10k-home-assistant-wide .chatbot-message-bot .chatbot-message-bubble {
  background: rgba(248,250,252,.92);
  border: 1px solid rgba(29, 71, 122, .08);
}
@media (min-width: 1400px) {
  .phase10k-home-assistant-wide .chatbot-message-bubble {
    max-width: min(1080px, 90%);
  }
}
@media (max-width: 767.98px) {
  .phase10k-home-assistant-wide .phase7a-home-chat-body {
    padding: 1rem;
    max-height: 62vh;
  }
  .phase10k-home-assistant-wide .phase7a-home-chat-form,
  .phase10k-home-assistant-wide .phase7a-home-assistant-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
[data-bs-theme="dark"] .phase10k-home-assistant-wide {
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 1.35rem 3.5rem rgba(0,0,0,.28) !important;
}
[data-bs-theme="dark"] .phase10k-home-assistant-wide .phase7a-home-assistant-header,
[data-bs-theme="dark"] .phase10k-home-assistant-wide .phase7a-home-chat-body,
[data-bs-theme="dark"] .phase10k-home-assistant-wide .phase7a-home-chat-form {
  background: linear-gradient(180deg, rgba(30,155,215,.10), rgba(15,23,42,0));
}

/* Phase 10K Repair 2: hide the homepage intro copy once a question is asked. */
.phase10k-home-intro-row {
  max-height: 14rem;
  opacity: 1;
  transform: translateY(0);
  overflow: hidden;
  transition: max-height .34s ease, opacity .24s ease, transform .34s ease, margin .34s ease, padding .34s ease;
}
.phase7a-home-hero.phase10k-home-question-active .phase10k-home-intro-row {
  max-height: 0;
  opacity: 0;
  transform: translateY(-.75rem);
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  pointer-events: none;
}
.phase7a-home-hero.phase10k-home-question-active {
  padding-top: 2rem !important;
}
@media (prefers-reduced-motion: reduce) {
  .phase10k-home-intro-row {
    transition: none !important;
  }
}

/* Phase 10K Repair 3: make the homepage inline assistant match the full chatbot page width/style. */
.phase10k-home-assistant-chatbot-style {
  border: 0 !important;
  background: var(--bs-body-bg);
  box-shadow: 0 .5rem 1.35rem rgba(15, 23, 42, .07) !important;
}
.phase10k-home-assistant-chatbot-style .phase7a-home-assistant-header {
  padding: 1.35rem 1.55rem;
  background: var(--bs-body-bg);
  border-bottom: 1px solid rgba(29, 71, 122, .10);
}
.phase10k-home-assistant-chatbot-style .phase7a-home-chat-form {
  padding: 1.35rem 1.55rem 1.45rem;
  background: var(--bs-body-bg);
  border-top: 0;
}
.phase10k-home-assistant-chatbot-style .phase7a-home-chat-body {
  padding: 1.65rem 1.55rem;
  max-height: min(760px, 72vh);
  background: var(--bs-body-bg);
}
.phase10k-home-assistant-chatbot-style .phase7a-chat-input-group {
  border-color: var(--bs-border-color);
  border-radius: 1.1rem;
  box-shadow: none;
}
.phase10k-home-assistant-chatbot-style .phase7a-chat-input-group .form-control {
  padding: 1rem 1.15rem;
}
.phase10k-home-assistant-chatbot-style .chatbot-message {
  margin-bottom: 1rem;
}
.phase10k-home-assistant-chatbot-style .chatbot-message-bubble {
  max-width: 100%;
}
.phase10k-home-assistant-chatbot-style .chatbot-message-bot .chatbot-message-bubble {
  width: 100%;
  max-width: 100%;
  padding: 1.1rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid var(--bs-border-color);
  background: rgba(248,250,252,.82);
}
.phase10k-home-assistant-chatbot-style .chatbot-widget-ai-answer,
.phase10k-home-assistant-chatbot-style .phase7a-typed-answer {
  margin-top: .75rem;
}
.phase10k-home-assistant-chatbot-style .chatbot-widget-ai-answer-text,
.phase10k-home-assistant-chatbot-style .phase7a-typewriter-target,
.phase10k-home-assistant-chatbot-style .chatbot-ai-answer-text {
  font-size: 1rem;
  line-height: 1.64;
}
.phase10k-home-assistant-chatbot-style .phase7g-answer-actions {
  justify-content: flex-end;
}
.phase10k-home-assistant-chatbot-style .chatbot-widget-sources.phase7a-reference-pages {
  margin-top: 1.15rem !important;
}
.phase10k-home-assistant-chatbot-style .chatbot-message-user {
  display: flex;
  justify-content: flex-end;
}
.phase10k-home-assistant-chatbot-style .chatbot-message-user .chatbot-message-bubble {
  max-width: min(760px, 86%);
}
@media (min-width: 1200px) {
  .phase10k-home-assistant-chatbot-style .phase7a-home-chat-body,
  .phase10k-home-assistant-chatbot-style .phase7a-home-chat-form,
  .phase10k-home-assistant-chatbot-style .phase7a-home-assistant-header {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .phase10k-home-assistant-chatbot-style .chatbot-message-bot .chatbot-message-bubble {
    padding: 1.35rem 1.55rem;
  }
}
@media (max-width: 767.98px) {
  .phase10k-home-assistant-chatbot-style .phase7a-home-chat-body,
  .phase10k-home-assistant-chatbot-style .phase7a-home-chat-form,
  .phase10k-home-assistant-chatbot-style .phase7a-home-assistant-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .phase10k-home-assistant-chatbot-style .chatbot-message-user .chatbot-message-bubble {
    max-width: 94%;
  }
}
[data-bs-theme="dark"] .phase10k-home-assistant-chatbot-style {
  background: var(--bs-body-bg);
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: 0 1rem 2rem rgba(0,0,0,.24) !important;
}
[data-bs-theme="dark"] .phase10k-home-assistant-chatbot-style .phase7a-home-assistant-header,
[data-bs-theme="dark"] .phase10k-home-assistant-chatbot-style .phase7a-home-chat-body,
[data-bs-theme="dark"] .phase10k-home-assistant-chatbot-style .phase7a-home-chat-form {
  background: var(--bs-body-bg);
}
[data-bs-theme="dark"] .phase10k-home-assistant-chatbot-style .chatbot-message-bot .chatbot-message-bubble {
  background: rgba(15,23,42,.54);
}

/* Phase 10K Repair 4: remove the internal homepage assistant scrollbar. */
.phase10k-home-assistant-chatbot-style .phase7a-home-chat-body {
  max-height: none !important;
  overflow: visible !important;
}
.phase10k-home-assistant-chatbot-style {
  overflow: visible;
}
.phase10k-home-assistant-chatbot-style .chatbot-message-bot .chatbot-message-bubble,
.phase10k-home-assistant-chatbot-style .chatbot-widget-ai-answer,
.phase10k-home-assistant-chatbot-style .phase7a-typed-answer {
  overflow: visible;
}
@media (max-width: 767.98px) {
  .phase10k-home-assistant-chatbot-style .phase7a-home-chat-body {
    max-height: none !important;
    overflow: visible !important;
  }
}


/* Phase 10O: easier page-editor formatting while manually cleaning long guide pages. */
.editor-toolbar {
  position: sticky;
  top: .75rem;
  z-index: 1030;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  border-radius: 0 0 1rem 1rem;
  box-shadow: 0 .75rem 1.75rem rgba(15, 23, 42, .08);
}
.admin-shell .editor-toolbar {
  top: .75rem;
}
.editor-toolbar .btn {
  white-space: nowrap;
}
.phase10o-editor-mini-toolbar {
  position: fixed;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: .35rem;
  border-radius: 999px;
  border: 1px solid rgba(29, 71, 122, .16);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, .18);
  backdrop-filter: blur(14px);
}
.phase10o-editor-mini-toolbar.d-none {
  display: none !important;
}
.phase10o-mini-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-width: 2rem;
  height: 2rem;
  padding: 0 .65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .86rem;
  font-weight: 700;
  color: #1d477a;
  background: rgba(29, 71, 122, .08);
}
.phase10o-mini-btn:hover,
.phase10o-mini-btn:focus {
  color: #fff;
  background: #1d477a;
  outline: none;
}
.phase10o-mini-help {
  color: #64748b;
  font-size: .75rem;
  font-weight: 600;
  padding: 0 .55rem 0 .25rem;
}
[data-bs-theme="dark"] .editor-toolbar {
  background: rgba(15, 23, 42, .94);
  box-shadow: 0 .75rem 1.75rem rgba(0, 0, 0, .28);
}
[data-bs-theme="dark"] .phase10o-editor-mini-toolbar {
  background: rgba(15, 23, 42, .98);
  border-color: rgba(125, 211, 252, .16);
}
[data-bs-theme="dark"] .phase10o-mini-btn {
  color: #bae6fd;
  background: rgba(125, 211, 252, .12);
}
[data-bs-theme="dark"] .phase10o-mini-btn:hover,
[data-bs-theme="dark"] .phase10o-mini-btn:focus {
  color: #0f172a;
  background: #bae6fd;
}
@media (max-width: 767.98px) {
  .editor-toolbar {
    top: .25rem;
    border-radius: .9rem;
  }
  .phase10o-mini-help {
    display: none;
  }
}

/* Phase 10P - chatbot heading size and section cleanup */
.chatbot-ai-answer-text {
  line-height: 1.68;
}
.chatbot-ai-answer-text .chatbot-answer-section-heading {
  margin: 1.05rem 0 .52rem;
  padding-top: .22rem;
  color: #1d477a;
  font-size: 1.06rem;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -.005em;
}
.chatbot-ai-answer-text .chatbot-answer-section-heading:first-child {
  margin-top: .05rem;
}
.chatbot-ai-answer-text .chatbot-answer-section-heading::after {
  width: 2.35rem;
  height: .13rem;
  margin-top: .28rem;
  background: rgba(30,155,215,.32);
}
.chatbot-ai-answer-text .chatbot-answer-paragraph {
  margin: 0 0 .92rem;
}
.chatbot-ai-answer-text .chatbot-answer-list {
  margin: 0 0 1rem 1rem;
  padding-left: 1.05rem;
}
.chatbot-ai-answer-text .chatbot-answer-list li {
  margin-bottom: .34rem;
  padding-left: .1rem;
}
.chatbot-ai-answer-text .chatbot-answer-list + .chatbot-answer-section-heading {
  margin-top: 1.22rem;
}
.chatbot-ai-answer-text .chatbot-answer-section-heading + .chatbot-answer-list,
.chatbot-ai-answer-text .chatbot-answer-section-heading + .chatbot-answer-paragraph {
  margin-top: .12rem;
}
.chatbot-answer-card .chatbot-ai-answer {
  line-height: 1.68;
}
@media (min-width: 992px) {
  .chatbot-ai-answer-text .chatbot-answer-section-heading {
    font-size: 1.1rem;
  }
}

/* Phase 12B - shared answer presentation for homepage chat widget
   Keep the homepage widget answer block visually aligned with /chatbot. */
.phase12b-shared-answer-css .chatbot-message-bot .chatbot-message-bubble .chatbot-ai-answer {
  margin-top: .65rem;
  margin-bottom: .75rem !important;
  padding: 1rem 1.05rem !important;
  border: 1px solid var(--bs-border-color) !important;
  border-radius: 1rem !important;
  background: rgba(248,250,252,.82) !important;
  line-height: 1.68;
}
.phase12b-shared-answer-css .chatbot-message-bot .chatbot-ai-answer-text {
  font-size: 1rem;
  line-height: 1.68;
}
.phase12b-shared-answer-css .chatbot-message-bot .chatbot-ai-answer-text .chatbot-answer-section-heading {
  color: #1d477a;
  font-size: 1.06rem;
  line-height: 1.35;
  font-weight: 650;
}
.phase12b-shared-answer-css .chatbot-message-bot .chatbot-ai-answer-text .chatbot-answer-list {
  margin-left: 1rem;
  padding-left: 1.05rem;
}
[data-bs-theme="dark"] .phase12b-shared-answer-css .chatbot-message-bot .chatbot-message-bubble .chatbot-ai-answer {
  background: rgba(15,23,42,.54) !important;
}

/* Phase 12B Repair 1 - make homepage assistant answer cards match /chatbot
   The widget now uses the same inner answer-card structure as the full chatbot page. */
.phase12b-shared-answer-css .chatbot-message-bot .chatbot-message-bubble.phase12b-r1-home-answer-bubble {
  width: 100%;
  max-width: 100%;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.phase12b-shared-answer-css .phase12b-r1-home-answer-bubble .phase12b-r1-chatbot-answer-box {
  width: 100%;
  margin: 0 0 .85rem !important;
  padding: 1rem 1.05rem !important;
  border: 1px solid var(--bs-border-color) !important;
  border-radius: 1rem !important;
  background: rgba(248,250,252,.82) !important;
  line-height: 1.68;
}
.phase12b-shared-answer-css .phase12b-r1-home-answer-bubble .phase12b-r1-answer-actions {
  margin: 0 0 .65rem !important;
}
.phase12b-shared-answer-css .phase12b-r1-home-answer-bubble .chatbot-ai-answer-text {
  font-size: 1rem;
  line-height: 1.68;
}
.phase12b-shared-answer-css .phase12b-r1-home-answer-bubble .chatbot-ai-answer-text .chatbot-answer-section-heading {
  margin: 1.05rem 0 .52rem;
  padding-top: .22rem;
  color: #1d477a;
  font-size: 1.06rem;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -.005em;
}
.phase12b-shared-answer-css .phase12b-r1-home-answer-bubble .chatbot-ai-answer-text .chatbot-answer-section-heading:first-child {
  margin-top: .05rem;
}
.phase12b-shared-answer-css .phase12b-r1-home-answer-bubble .chatbot-ai-answer-text .chatbot-answer-section-heading::after {
  width: 2.35rem;
  height: .13rem;
  margin-top: .28rem;
  background: rgba(30,155,215,.32);
}
.phase12b-shared-answer-css .phase12b-r1-home-answer-bubble .chatbot-ai-answer-text .chatbot-answer-paragraph {
  margin: 0 0 .92rem;
}
.phase12b-shared-answer-css .phase12b-r1-home-answer-bubble .chatbot-ai-answer-text .chatbot-answer-list {
  margin: 0 0 1rem 1rem;
  padding-left: 1.05rem;
}
.phase12b-shared-answer-css .phase12b-r1-home-answer-bubble .chatbot-ai-answer-text .chatbot-answer-list li {
  margin-bottom: .34rem;
  padding-left: .1rem;
}
[data-bs-theme="dark"] .phase12b-shared-answer-css .phase12b-r1-home-answer-bubble .phase12b-r1-chatbot-answer-box {
  background: rgba(15,23,42,.54) !important;
}

/* Phase 13A Repair 12A - floating chatbot follow-up composer
   Keeps the next-question composer available while users read answers on
   both the full /chatbot page and the homepage assistant widget. */
.phase13a-repair12a-chatbot-floating-page {
  padding-bottom: clamp(10rem, 24vh, 15rem) !important;
}
.phase13a-repair12a-chatbot-floating-page .phase13a-repair12a-floating-composer,
.phase7a-home-hero.phase10k-home-question-active .phase13a-repair12a-home-floating-composer {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: min(1120px, calc(100vw - 2rem));
  transform: translateX(-50%);
  z-index: 1045;
  margin: 0 !important;
  border: 1px solid rgba(29, 71, 122, .14) !important;
  border-radius: 1.25rem !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 -0.45rem 1.8rem rgba(15, 23, 42, .10), 0 .6rem 1.9rem rgba(15, 23, 42, .10) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.phase13a-repair12a-chatbot-floating-page .phase13a-repair12a-floating-composer .card-body {
  padding: 1rem 1.15rem !important;
}
.phase13a-repair12a-chatbot-floating-page .phase13a-repair12a-floating-composer .form-label {
  margin-bottom: .55rem;
}
.phase13a-repair12a-chatbot-floating-page .phase13a-repair12a-floating-composer .form-control-lg,
.phase13a-repair12a-chatbot-floating-page .phase13a-repair12a-floating-composer .form-select-lg,
.phase13a-repair12a-chatbot-floating-page .phase13a-repair12a-floating-composer .btn-lg {
  min-height: 3.15rem;
  font-size: 1rem;
}
.phase13a-repair12a-chatbot-floating-page .phase10c-page-thinking-card {
  scroll-margin-bottom: clamp(10rem, 24vh, 15rem);
}
.phase7a-home-hero.phase10k-home-question-active {
  padding-bottom: clamp(10rem, 24vh, 15rem) !important;
}
.phase7a-home-hero.phase10k-home-question-active .phase13a-repair12a-home-floating-composer {
  padding: 1rem 1.15rem 1.05rem !important;
}
.phase7a-home-hero.phase10k-home-question-active .phase13a-repair12a-home-floating-composer .phase7a-chat-input-group {
  box-shadow: none;
}
.phase7a-home-hero.phase10k-home-question-active .phase13a-repair12a-home-floating-composer .d-flex.small {
  margin-top: .75rem !important;
}
[data-bs-theme="dark"] .phase13a-repair12a-chatbot-floating-page .phase13a-repair12a-floating-composer,
[data-bs-theme="dark"] .phase7a-home-hero.phase10k-home-question-active .phase13a-repair12a-home-floating-composer {
  background: rgba(15, 23, 42, .96) !important;
  border-color: rgba(125, 211, 252, .18) !important;
  box-shadow: 0 -0.45rem 1.8rem rgba(0, 0, 0, .32), 0 .6rem 1.9rem rgba(0, 0, 0, .28) !important;
}
@media (max-width: 767.98px) {
  .phase13a-repair12a-chatbot-floating-page,
  .phase7a-home-hero.phase10k-home-question-active {
    padding-bottom: clamp(13.5rem, 42vh, 19rem) !important;
  }
  .phase13a-repair12a-chatbot-floating-page .phase13a-repair12a-floating-composer,
  .phase7a-home-hero.phase10k-home-question-active .phase13a-repair12a-home-floating-composer {
    bottom: max(.5rem, env(safe-area-inset-bottom));
    width: calc(100vw - 1rem);
    max-height: min(48vh, 22rem);
    overflow-y: auto;
    border-radius: 1rem !important;
  }
  .phase13a-repair12a-chatbot-floating-page .phase13a-repair12a-floating-composer .card-body,
  .phase7a-home-hero.phase10k-home-question-active .phase13a-repair12a-home-floating-composer {
    padding: .85rem !important;
  }
  .phase13a-repair12a-chatbot-floating-page .phase13a-repair12a-floating-composer .form-label {
    margin-bottom: .35rem;
  }
  .phase13a-repair12a-chatbot-floating-page .phase13a-repair12a-floating-composer .small.text-secondary,
  .phase7a-home-hero.phase10k-home-question-active .phase13a-repair12a-home-floating-composer .small.text-secondary {
    font-size: .78rem;
  }
}
@media (max-width: 575.98px) {
  .phase13a-repair12a-chatbot-floating-page .phase13a-repair12a-floating-composer .form-control-lg,
  .phase13a-repair12a-chatbot-floating-page .phase13a-repair12a-floating-composer .form-select-lg,
  .phase13a-repair12a-chatbot-floating-page .phase13a-repair12a-floating-composer .btn-lg {
    min-height: 2.85rem;
    font-size: .96rem;
  }
  .phase7a-home-hero.phase10k-home-question-active .phase13a-repair12a-home-floating-composer .phase7a-chat-input-group .form-control {
    padding: .82rem .95rem;
  }
}


/* Phase 13A Repair 12B - compact floating chatbot composer
   Tightens the Repair 12A floating composer into a slimmer ChatGPT-style input bar
   for both the full /chatbot page and the homepage assistant widget. */
.phase13a-repair12a-chatbot-floating-page {
  padding-bottom: clamp(5.75rem, 13vh, 7.75rem) !important;
}
.phase7a-home-hero.phase10k-home-question-active {
  padding-bottom: clamp(5.5rem, 12vh, 7.25rem) !important;
}
.phase13a-repair12a-chatbot-floating-page .phase13a-repair12a-floating-composer,
.phase7a-home-hero.phase10k-home-question-active .phase13a-repair12a-home-floating-composer {
  bottom: max(.65rem, env(safe-area-inset-bottom));
  width: min(980px, calc(100vw - 1.25rem));
  border-radius: 1rem !important;
  box-shadow: 0 -.25rem 1rem rgba(15, 23, 42, .08), 0 .45rem 1.3rem rgba(15, 23, 42, .10) !important;
}
.phase13a-repair12a-chatbot-floating-page .phase13a-repair12a-floating-composer .card-body {
  padding: .55rem .65rem !important;
}
.phase13a-repair12a-chatbot-floating-page .phase13a-repair12a-floating-composer .row {
  --bs-gutter-x: .45rem;
  --bs-gutter-y: .45rem;
}
.phase13a-repair12a-chatbot-floating-page .phase13a-repair12a-floating-composer .form-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.phase13a-repair12a-chatbot-floating-page .phase13a-repair12a-floating-composer .small.text-secondary,
.phase13a-repair12a-chatbot-floating-page .phase13a-repair12a-floating-composer .alert,
.phase7a-home-hero.phase10k-home-question-active .phase13a-repair12a-home-floating-composer .d-flex.small {
  display: none !important;
}
.phase13a-repair12a-chatbot-floating-page .phase13a-repair12a-floating-composer .form-control-lg,
.phase13a-repair12a-chatbot-floating-page .phase13a-repair12a-floating-composer .form-select-lg,
.phase13a-repair12a-chatbot-floating-page .phase13a-repair12a-floating-composer .btn-lg {
  min-height: 2.75rem;
  padding-top: .52rem;
  padding-bottom: .52rem;
  font-size: .98rem;
}
.phase7a-home-hero.phase10k-home-question-active .phase13a-repair12a-home-floating-composer {
  padding: .55rem .65rem !important;
}
.phase7a-home-hero.phase10k-home-question-active .phase13a-repair12a-home-floating-composer .phase7a-chat-input-group {
  border-radius: .9rem;
}
.phase7a-home-hero.phase10k-home-question-active .phase13a-repair12a-home-floating-composer .phase7a-chat-input-group .form-control {
  min-height: 2.75rem;
  padding: .55rem .85rem;
  font-size: 1rem;
}
.phase7a-home-hero.phase10k-home-question-active .phase13a-repair12a-home-floating-composer .phase7a-chat-input-group .btn {
  min-height: 2.75rem;
  padding: .55rem 1.15rem;
}
.phase13a-repair12a-chatbot-floating-page .phase10c-page-thinking-card {
  scroll-margin-bottom: clamp(6rem, 14vh, 8rem);
}
[data-bs-theme="dark"] .phase13a-repair12a-chatbot-floating-page .phase13a-repair12a-floating-composer,
[data-bs-theme="dark"] .phase7a-home-hero.phase10k-home-question-active .phase13a-repair12a-home-floating-composer {
  box-shadow: 0 -.25rem 1rem rgba(0, 0, 0, .24), 0 .45rem 1.3rem rgba(0, 0, 0, .28) !important;
}
@media (max-width: 767.98px) {
  .phase13a-repair12a-chatbot-floating-page {
    padding-bottom: clamp(10.5rem, 34vh, 15rem) !important;
  }
  .phase7a-home-hero.phase10k-home-question-active {
    padding-bottom: clamp(5.25rem, 14vh, 7rem) !important;
  }
  .phase13a-repair12a-chatbot-floating-page .phase13a-repair12a-floating-composer,
  .phase7a-home-hero.phase10k-home-question-active .phase13a-repair12a-home-floating-composer {
    bottom: max(.45rem, env(safe-area-inset-bottom));
    width: calc(100vw - .9rem);
    border-radius: .9rem !important;
  }
  .phase13a-repair12a-chatbot-floating-page .phase13a-repair12a-floating-composer .card-body,
  .phase7a-home-hero.phase10k-home-question-active .phase13a-repair12a-home-floating-composer {
    padding: .5rem !important;
  }
}
@media (max-width: 575.98px) {
  .phase13a-repair12a-chatbot-floating-page .phase13a-repair12a-floating-composer .form-control-lg,
  .phase13a-repair12a-chatbot-floating-page .phase13a-repair12a-floating-composer .form-select-lg,
  .phase13a-repair12a-chatbot-floating-page .phase13a-repair12a-floating-composer .btn-lg,
  .phase7a-home-hero.phase10k-home-question-active .phase13a-repair12a-home-floating-composer .phase7a-chat-input-group .form-control,
  .phase7a-home-hero.phase10k-home-question-active .phase13a-repair12a-home-floating-composer .phase7a-chat-input-group .btn {
    min-height: 2.55rem;
    font-size: .94rem;
  }
  .phase7a-home-hero.phase10k-home-question-active .phase13a-repair12a-home-floating-composer .phase7a-chat-input-group .btn span:not(.visually-hidden) {
    display: none !important;
  }
  .phase7a-home-hero.phase10k-home-question-active .phase13a-repair12a-home-floating-composer .phase7a-chat-input-group .btn i {
    margin-right: 0 !important;
  }
}

/* Phase 13A Repair 12C - chatbot follow-up auto-scroll alignment
   Provides a CSS fallback for the JavaScript offset-aware scroll target. */
.phase13a-repair12c-answer-anchor,
.phase10c-page-thinking-card {
  scroll-margin-top: 6rem;
}


/* Phase 13A Repair 12D - homepage first answer scroll offset fix
   Adds a browser-native fallback margin for homepage widget question/answer targets. */
.phase7a-home-hero.phase10k-home-question-active .chatbot-message,
.phase7a-home-hero.phase10k-home-question-active .phase7a-home-assistant,
.phase7a-home-hero.phase10k-home-question-active [data-chatbot-widget] {
  scroll-margin-top: 9rem;
}


/* Phase 13A Repair 12E - full chatbot conversation thread alignment
   Shows the submitted question above the full /chatbot answer and restores previous
   follow-up exchanges from the current browser session, matching the homepage widget flow. */
.phase13a-repair12e-chatbot-thread-page .phase13a-repair12e-chat-thread {
  display: block;
}
.phase13a-repair12e-history:empty {
  display: none;
}
.phase13a-repair12e-current-exchange,
.phase13a-repair12e-history-exchange {
  margin-bottom: 1rem;
  scroll-margin-top: 6.5rem;
}
.phase13a-repair12e-history-exchange {
  opacity: .94;
}
.phase13a-repair12e-question-row {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 .9rem;
}
.phase13a-repair12e-question-bubble {
  max-width: min(46rem, 88%);
  padding: .72rem 1rem;
  border-radius: 1rem 1rem .25rem 1rem;
  background: var(--bs-primary, #0d6efd);
  color: #fff;
  box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .10);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.phase13a-repair12e-history-exchange .chatbot-answer-card {
  box-shadow: 0 .25rem .9rem rgba(15, 23, 42, .055) !important;
}
.phase13a-repair12e-history-exchange .chatbot-answer-card .card-body {
  padding: 1.35rem !important;
}
.phase13a-repair12e-history-exchange .chatbot-answer-card h2 {
  font-size: 1rem;
}
.phase13a-repair12e-history-exchange + .phase13a-repair12e-history-exchange {
  margin-top: 1.15rem;
}
.phase13a-repair12e-history:not(:empty) {
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(29, 71, 122, .10);
}
.phase13a-repair12e-pending-exchange .phase10c-page-thinking-card {
  margin-bottom: 1rem !important;
}
[data-bs-theme="dark"] .phase13a-repair12e-question-bubble {
  box-shadow: 0 .35rem 1rem rgba(0, 0, 0, .26);
}
[data-bs-theme="dark"] .phase13a-repair12e-history:not(:empty) {
  border-bottom-color: rgba(125, 211, 252, .14);
}
@media (max-width: 767.98px) {
  .phase13a-repair12e-question-bubble {
    max-width: 94%;
    padding: .65rem .85rem;
  }
  .phase13a-repair12e-history-exchange .chatbot-answer-card .card-body {
    padding: 1rem !important;
  }
}

/* Phase 13A Repair 12F - full chatbot scroll match with homepage */
.phase13a-repair12e-chatbot-thread-page .phase13a-repair12e-current-exchange,
.phase13a-repair12e-chatbot-thread-page .phase13a-repair12e-question-row,
.phase13a-repair12e-chatbot-thread-page .phase13a-repair12e-pending-exchange {
  scroll-margin-top: 10rem;
}

@media (max-width: 767.98px) {
  .phase13a-repair12e-chatbot-thread-page .phase13a-repair12e-current-exchange,
  .phase13a-repair12e-chatbot-thread-page .phase13a-repair12e-question-row,
  .phase13a-repair12e-chatbot-thread-page .phase13a-repair12e-pending-exchange {
    scroll-margin-top: 8.5rem;
  }
}

/* Phase 13A Repair 12J - guide parent navigation polish */
.phase13a-repair12j-page-header {
  position: relative;
}
.phase13a-repair12j-guide-return {
  display: flex;
  align-items: center;
}
.phase13a-repair12j-guide-return-link {
  font-weight: 700;
  border-width: 1px;
  box-shadow: 0 .35rem .85rem rgba(20, 76, 130, .08);
  background: rgba(var(--bs-primary-rgb), .04);
}
.phase13a-repair12j-guide-return-link:hover,
.phase13a-repair12j-guide-return-link:focus {
  box-shadow: 0 .45rem 1rem rgba(20, 76, 130, .14);
  text-decoration: none;
}
.doc-breadcrumbs .breadcrumb-item a {
  font-weight: 650;
  text-underline-offset: .18em;
}
.doc-breadcrumbs .breadcrumb-item a:hover,
.doc-breadcrumbs .breadcrumb-item a:focus {
  text-decoration: underline;
}
[data-bs-theme="dark"] .phase13a-repair12j-guide-return-link {
  background: rgba(var(--bs-primary-rgb), .12);
  box-shadow: none;
}
@media (max-width: 767.98px) {
  .phase13a-repair12j-guide-return-link {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }
}

/* Phase 13A Repair 12K - rich chatbot answer formatting */
.phase13a-repair12k-related-images {
  border: 1px solid rgba(15, 23, 42, .08);
  background: rgba(248, 250, 252, .75);
  border-radius: 1rem;
  padding: .85rem;
}

.chatbot-related-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .75rem;
}

.chatbot-related-image-card {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(15, 23, 42, .1);
  background: #fff;
  border-radius: .85rem;
  padding: .45rem;
  box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.chatbot-related-image-card:hover,
.chatbot-related-image-card:focus {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, .35);
  box-shadow: 0 .6rem 1.35rem rgba(15, 23, 42, .1);
  text-decoration: none;
}

.chatbot-related-image-card img {
  width: 100%;
  max-height: 170px;
  object-fit: contain;
  border-radius: .65rem;
  background: #f8fafc;
}

.chatbot-related-image-card span {
  font-size: .78rem;
  line-height: 1.25;
  color: #475569;
}

.chatbot-ai-answer-text .chatbot-answer-section-heading {
  scroll-margin-top: 7rem;
}

[data-bs-theme="dark"] .phase13a-repair12k-related-images {
  border-color: rgba(148, 163, 184, .22);
  background: rgba(15, 23, 42, .55);
}

[data-bs-theme="dark"] .chatbot-related-image-card {
  border-color: rgba(148, 163, 184, .22);
  background: rgba(15, 23, 42, .75);
}

[data-bs-theme="dark"] .chatbot-related-image-card img {
  background: rgba(2, 6, 23, .5);
}

[data-bs-theme="dark"] .chatbot-related-image-card span {
  color: #cbd5e1;
}


/* Phase 13A Repair 12P - final render heading normalisation enforcement */
.content-body [data-phase13a-heading-level-normalised="12p"] {
  scroll-margin-top: 7rem;
}

/* Phase 13A Repair 12Q - answer-relevant inline source images */
.chatbot-ai-answer-text .chatbot-inline-source-image,
.chatbot-widget-ai-answer-text .chatbot-inline-source-image {
  margin: .85rem 0 1.05rem;
  max-width: min(100%, 42rem);
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 1rem;
  background: var(--bs-body-bg, #fff);
  overflow: hidden;
  box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .08);
}
.chatbot-ai-answer-text .chatbot-inline-source-image a,
.chatbot-widget-ai-answer-text .chatbot-inline-source-image a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.chatbot-ai-answer-text .chatbot-inline-source-image img,
.chatbot-widget-ai-answer-text .chatbot-inline-source-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 26rem;
  object-fit: contain;
  background: var(--bs-tertiary-bg, #f8f9fa);
}
.chatbot-ai-answer-text .chatbot-inline-source-image figcaption,
.chatbot-widget-ai-answer-text .chatbot-inline-source-image figcaption {
  padding: .55rem .75rem .65rem;
  font-size: .82rem;
  line-height: 1.35;
  color: var(--bs-secondary-color, #6c757d);
  border-top: 1px solid var(--bs-border-color, #dee2e6);
}

/* Phase 13A Repair 12R - guide inline icon radius preservation */
.content-body .import-inline-ui-icon,
.import-preview .import-inline-ui-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 .22em;
  vertical-align: -0.2em;
  line-height: 1;
}
.content-body img.import-inline-ui-icon-img,
.import-preview img.import-inline-ui-icon-img,
.content-body .import-inline-ui-icon img,
.import-preview .import-inline-ui-icon img,
.content-body img.doc-inline-icon,
.import-preview img.doc-inline-icon {
  display: inline-block !important;
  width: auto;
  max-width: 1.35em !important;
  height: 1.25em !important;
  max-height: 1.35em !important;
  margin: 0 .18em !important;
  vertical-align: -0.2em;
  object-fit: contain;
  border-radius: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Homepage assistant: clean Gemini-style search layout */
@media (min-width: 992px) {
  .phase7a-home-assistant.phase10k-home-assistant-chatbot-style {
    width: 100%;
    max-width: 824px;
    margin: 0 auto;
    padding: 40px 50px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .phase7a-home-assistant .phase7a-home-assistant-header {
    padding: 0;
    margin-bottom: 24px;
    border: 0;
    background: transparent;
    text-align: center;
  }

  .phase7a-home-assistant .phase7a-home-assistant-header-icon,
  .phase7a-home-assistant .phase7a-home-assistant-header p {
    display: none;
  }

  .phase7a-home-assistant .phase7a-home-assistant-header h2 {
    margin: 0;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.15;
    font-weight: 400;
  }

  .phase7a-home-assistant .phase7a-home-chat-form,
  .phase7a-home-assistant .phase7a-home-chat-body {
    padding: 0;
    background: transparent;
    border: 0;
  }

  .phase7a-home-assistant .phase7a-chat-input-group {
    width: 100%;
    max-width: 724px;
    margin: 0 auto;
    padding: 8px 10px 8px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #d9dee5;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(20, 35, 55, 0.10);
  }

  .phase7a-home-assistant .phase7a-chat-input-group input,
  .phase7a-home-assistant .phase7a-chat-input-group textarea {
    flex: 1;
    min-width: 0;
    padding: 14px 0;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
  }

  .phase7a-home-assistant .phase7a-chat-input-group button {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
  }

  .phase7a-home-assistant .chatbot-message-bot,
  .phase7a-home-assistant .phase12b-r1-chatbot-answer-box {
    width: 100%;
    max-width: 724px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Homepage chatbot: clean Gemini-style layout */
.phase7a-home-assistant.phase10k-home-assistant-chatbot-style {
  width: 100%;
  max-width: 824px;
  margin: 0 auto;
  padding: 0;
  overflow: visible;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Hide the internal assistant card heading */
.phase7a-home-assistant .phase7a-home-assistant-header {
  display: none !important;
}

/* Remove the surrounding form box */
.phase7a-home-assistant .phase7a-home-chat-form {
  width: 100%;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Gemini-style search pill */
.phase7a-home-assistant .phase7a-chat-input-group {
  width: 100%;
  max-width: 724px;
  margin: 0 auto;
  padding: 7px 8px 7px 22px;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #d8dee7 !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10) !important;
  overflow: hidden;
}

/* Search field */
.phase7a-home-assistant .phase7a-chat-input-group .form-control {
  min-width: 0;
  min-height: 52px;
  padding: 10px 4px;
  font-size: 1.05rem;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* Ask button */
.phase7a-home-assistant .phase7a-chat-input-group .btn {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px !important;
}

/* Hide the small status and manual-search row */
.phase7a-home-assistant .phase7a-home-chat-form > .d-flex.small {
  display: none !important;
}

/* Answer section */
.phase7a-home-assistant .phase7a-home-chat-body {
  width: 100%;
  max-width: 724px;
  margin: 26px auto 0;
  padding: 0 !important;
  background: transparent !important;
}

/* Keep generated answers at the same width */
.phase7a-home-assistant .chatbot-message,
.phase7a-home-assistant .chatbot-message-bot,
.phase7a-home-assistant .chatbot-message-bot .chatbot-message-bubble,
.phase7a-home-assistant .chatbot-widget-ai-answer,
.phase7a-home-assistant .phase7a-typed-answer,
.phase7a-home-assistant .phase12b-r1-chatbot-answer-box {
  width: 100%;
  max-width: 724px;
  margin-left: auto;
  margin-right: auto;
}

/* Keep the follow-up search pill at 724px after an answer is shown */
.phase7a-home-hero.phase10k-home-question-active
.phase13a-repair12a-home-floating-composer {
  width: min(724px, calc(100vw - 32px)) !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

.phase7a-home-hero.phase10k-home-question-active
.phase13a-repair12a-home-floating-composer
.phase7a-chat-input-group {
  width: 100%;
  max-width: 724px;
  border-radius: 999px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
}

/* Mobile */
@media (max-width: 767.98px) {
  .phase7a-home-assistant.phase10k-home-assistant-chatbot-style {
    max-width: 100%;
  }

  .phase7a-home-assistant .phase7a-chat-input-group {
    padding-left: 16px;
  }

  .phase7a-home-assistant .phase7a-chat-input-group .form-control {
    min-height: 46px;
    font-size: 1rem;
  }

  .phase7a-home-assistant .phase7a-chat-input-group .btn {
    min-height: 46px;
    padding: 0 16px;
  }

  .phase7a-home-assistant .phase7a-home-chat-body {
    margin-top: 20px;
  }
}

/* Dark mode */
[data-bs-theme="dark"]
.phase7a-home-assistant .phase7a-chat-input-group {
  background: var(--bs-body-bg);
  border-color: rgba(255, 255, 255, 0.16) !important;
}

[data-bs-theme="dark"]
.phase7a-home-assistant.phase10k-home-assistant-chatbot-style {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
/* Phase 13A Repair 12V - vertically centred homepage assistant */
@media (min-width: 992px) {
  .phase13a-repair12v-home-hero-centred:not(.phase10k-home-question-active) {
    min-height: calc(100vh - 82px);
    min-height: calc(100svh - 82px);
    display: flex;
    align-items: center;
    padding-top: clamp(4rem, 8vh, 7rem) !important;
    padding-bottom: clamp(4rem, 8vh, 7rem) !important;
  }

  .phase13a-repair12v-home-hero-centred:not(.phase10k-home-question-active) > .container-fluid {
    width: 100%;
  }
}

/* Phase 13A Repair 12W - simplified guide assistant bar and mobile tools */
.phase13a-repair12w-simple-guide-assist {
  padding: .9rem 0;
}
.phase13a-repair12w-simple-guide-assist .phase10i-guide-assist-section-inner {
  gap: 0;
}
.phase13a-repair12w-simple-guide-assist .phase10i-guide-assist-shell {
  gap: .85rem;
}
.phase13a-repair12w-simple-guide-assist .phase10i-guide-assist-form {
  min-height: 3.65rem;
  gap: .5rem;
  padding: .4rem .45rem .4rem 1.25rem;
  flex-wrap: nowrap;
}
.phase13a-repair12w-simple-guide-assist .phase10i-guide-assist-form .form-control {
  flex: 1 1 auto;
  min-width: 0;
  padding: .65rem 0;
}
.phase13a-repair12w-simple-guide-assist .phase10i-guide-submit {
  min-height: 2.85rem;
  min-width: 7.25rem;
}

@media (max-width: 991.98px) {
  .phase13a-repair12w-simple-guide-assist {
    margin-bottom: 1rem !important;
    padding: .75rem 0;
    border-radius: 0;
  }
  .phase13a-repair12w-simple-guide-assist .phase10i-guide-assist-shell {
    align-items: center;
    gap: .6rem;
  }
  .phase13a-repair12w-simple-guide-assist .phase10i-guide-home {
    width: 2.75rem;
    height: 2.75rem;
  }
  .phase13a-repair12w-simple-guide-assist .phase10i-guide-assist-form {
    min-width: 0;
    border-radius: 999px;
  }
  .phase13a-repair12w-mobile-guide-tools {
    padding: .7rem;
  }
}

@media (max-width: 575.98px) {
  .phase13a-repair12w-simple-guide-assist .phase10i-guide-assist-shell {
    flex-direction: row;
  }
  .phase13a-repair12w-simple-guide-assist .phase10i-guide-home {
    display: inline-flex;
    width: 2.6rem;
    height: 2.6rem;
  }
  .phase13a-repair12w-simple-guide-assist .phase10i-guide-assist-form {
    width: auto;
    min-height: 3.25rem;
    padding: .3rem .35rem .3rem .9rem;
  }
  .phase13a-repair12w-simple-guide-assist .phase10i-guide-assist-form .form-control {
    min-width: 0;
    font-size: .95rem;
    padding: .55rem 0;
  }
  .phase13a-repair12w-simple-guide-assist .phase10i-guide-submit {
    width: auto;
    min-width: 5.5rem;
    min-height: 2.55rem;
    padding-inline: .85rem;
  }
}

@media (max-width: 390px) {
  .phase13a-repair12w-simple-guide-assist .phase10i-guide-assist-shell {
    gap: .45rem;
  }
  .phase13a-repair12w-simple-guide-assist .phase10i-guide-home {
    width: 2.45rem;
    height: 2.45rem;
  }
  .phase13a-repair12w-simple-guide-assist .phase10i-guide-assist-form {
    padding-left: .75rem;
  }
  .phase13a-repair12w-simple-guide-assist .phase10i-guide-submit {
    min-width: 4.85rem;
    padding-inline: .65rem;
  }
}


/* Phase 13A Repair 12X - align guide assistant width with homepage */
@media (min-width: 992px) {
  .phase13a-repair12w-simple-guide-assist .phase10i-guide-assist-section-inner {
    width: 100%;
    max-width: 824px;
  }

  .phase13a-repair12w-simple-guide-assist .phase10i-guide-assist-shell {
    justify-content: center;
  }

  .phase13a-repair12w-simple-guide-assist .phase10i-guide-assist-form {
    width: 100%;
    max-width: 724px;
    flex: 0 1 724px;
  }
}

/* Phase 13A Repair 13A - guide image modal zoom */
.content-body img.doc-image-zoomable {
  cursor: zoom-in;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.content-body img.doc-image-zoomable:hover,
.content-body img.doc-image-zoomable:focus-visible {
  border-color: rgba(30, 155, 215, .55);
  box-shadow: 0 12px 34px rgba(15, 23, 42, .14);
  transform: translateY(-1px);
  outline: 3px solid rgba(30, 155, 215, .2);
  outline-offset: 3px;
}
body.doc-image-lightbox-open {
  overflow: hidden;
}
.doc-image-lightbox[hidden] {
  display: none !important;
}
.doc-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(5, 10, 18, .92);
  opacity: 0;
  visibility: hidden;
  transition: opacity .16s ease, visibility .16s ease;
}
.doc-image-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.doc-image-lightbox-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(96vw, 1600px);
  max-height: calc(100vh - 2.5rem);
}
.doc-image-lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}
.doc-image-lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  margin: 0;
  object-fit: contain;
  border: 0;
  border-radius: .8rem;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
}
.doc-image-lightbox-caption {
  max-width: min(90vw, 1000px);
  margin-top: .9rem;
  padding: .45rem .75rem;
  color: rgba(255, 255, 255, .92);
  font-size: .95rem;
  line-height: 1.45;
  text-align: center;
}
.doc-image-lightbox-close {
  position: absolute;
  top: -.6rem;
  right: -.6rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: #fff;
  background: rgba(15, 23, 42, .88);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  box-shadow: 0 .65rem 1.8rem rgba(0, 0, 0, .28);
}
.doc-image-lightbox-close:hover,
.doc-image-lightbox-close:focus-visible {
  color: #fff;
  background: #1e9bd7;
  outline: 3px solid rgba(255, 255, 255, .35);
  outline-offset: 2px;
}
@media (max-width: 767.98px) {
  .doc-image-lightbox {
    padding: .75rem;
  }
  .doc-image-lightbox-dialog {
    width: 100%;
    max-height: calc(100vh - 1.5rem);
  }
  .doc-image-lightbox-image {
    max-height: calc(100vh - 6rem);
    border-radius: .55rem;
  }
  .doc-image-lightbox-close {
    position: fixed;
    top: .75rem;
    right: .75rem;
  }
  .doc-image-lightbox-caption {
    margin-top: .65rem;
    font-size: .86rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .content-body img.doc-image-zoomable,
  .doc-image-lightbox {
    transition: none;
  }
}


/* Phone User Guides sidebar enhancement
   Move the page section navigation into the desktop guide sidebar while
   retaining the compact collapsible in-page panel on smaller screens. */
@media (min-width: 992px) {
  .phone-guide-sidebar-sections .on-this-page-sidebar {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
  }
  .phone-guide-sidebar-sections .on-this-page-sidebar .js-on-this-page-nav {
    max-height: min(42vh, 420px);
    overflow-y: auto;
    padding-right: .25rem;
    scrollbar-width: thin;
  }
  .phone-guide-sidebar-sections .on-this-page-sidebar .on-this-page-link {
    font-size: .875rem;
    padding-top: .35rem !important;
    padding-bottom: .35rem !important;
  }
  .phone-guide-sidebar-sections .on-this-page-sidebar .on-this-page-count {
    font-size: .75rem;
  }
  .docs-sidebar:has(.phone-guide-sidebar-sections) {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    scrollbar-width: thin;
  }
}

@media (max-width: 991.98px) {
  .docs-sidebar-mobile .phone-guide-sidebar-sections {
    display: none;
  }
}

/* Phone User Guides card-image enhancement */
.phone-guide-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.phone-guide-card {
  min-height: 100%;
  padding: 1rem 1rem 1.1rem;
  text-align: center;
  align-items: center;
  background: var(--bs-body-bg, #fff);
}

.phone-guide-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 210px;
  margin-bottom: .85rem;
  padding: .5rem;
  overflow: hidden;
  border-radius: .9rem;
  background: rgba(248, 250, 252, .9);
}

.phone-guide-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .2s ease;
}

.phone-guide-card:hover .phone-guide-card-image img,
.phone-guide-card:focus .phone-guide-card-image img {
  transform: scale(1.025);
}

.phone-guide-card .phase7q-child-card-title {
  font-size: 1.05rem;
  line-height: 1.35;
}

.phone-guide-card .phase7q-child-card-action {
  margin-top: .65rem;
}

[data-bs-theme="dark"] .phone-guide-card-image {
  background: rgba(255, 255, 255, .06);
}

@media (max-width: 1199.98px) {
  .phone-guide-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .phone-guide-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phone-guide-card-image { height: 190px; }
}

@media (max-width: 479.98px) {
  .phone-guide-card-grid { grid-template-columns: 1fr; }
  .phone-guide-card-image { height: 230px; }
}

/* Phone User Guides overview cards - corrected guide overview renderer */
.phone-guide-overview-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  text-align: center;
}

.phone-guide-overview-card .phase7s-card-heading {
  justify-content: center !important;
  width: 100%;
}

.phone-guide-overview-card .phase7s-card-action {
  margin-top: auto;
  padding-top: .75rem;
}

/* VoiceX guide audience mega menu */
.nav-guides-mega { position: static; }
.guides-mega-panel { position: fixed; z-index: 1042; top: var(--guides-mega-top, 70px); left: 0; right: 0; opacity: 0; visibility: hidden; transform: translateY(-10px); pointer-events: none; background: rgba(250,250,252,.985); color: #171717; border-top: 1px solid rgba(0,0,0,.06); box-shadow: 0 28px 60px rgba(0,0,0,.18); transition: opacity 180ms ease, transform 220ms cubic-bezier(.2,.8,.2,1), visibility 180ms ease; }
.nav-guides-mega.is-open .guides-mega-panel { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.guides-mega-inner { max-width: 1180px; margin: 0 auto; padding: 1.35rem 2rem 2.25rem; }
.guides-mega-topline { padding-bottom: 1rem; margin-bottom: 1.25rem; border-bottom: 1px solid rgba(0,0,0,.08); }
.guides-mega-overview { display:inline-flex; align-items:center; gap:.65rem; color:#171717; text-decoration:none; font-weight:600; }
.guides-mega-columns { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,6vw,6rem); }
.guides-mega-kicker { margin:0 0 .35rem; color:#6e6e73; font-size:.72rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.guides-mega-summary { margin:0 0 .9rem; color:#6e6e73; font-size:.9rem; }
.guides-mega-links { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.15rem 1rem; }
.guides-mega-links a { display:flex; align-items:center; gap:.7rem; padding:.55rem .6rem; margin-left:-.6rem; border-radius:.7rem; color:#171717; text-decoration:none; font-weight:550; transition:background 150ms ease,color 150ms ease,transform 150ms ease; }
.guides-mega-links a:hover,.guides-mega-links a:focus-visible { background:rgba(30,155,215,.11); color:#0879ad; transform:translateX(2px); outline:none; }
.guides-mega-links i { width:1.15rem; text-align:center; color:#1e9bd7; }
body.guides-mega-ready::after {
  content:"";
  position:fixed;
  z-index:1020;
  top:var(--guides-mega-top,70px);
  right:0;
  bottom:0;
  left:0;
  background:rgba(15,23,42,.18);
  -webkit-backdrop-filter:blur(5px);
  backdrop-filter:blur(5px);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity 180ms ease, visibility 180ms ease;
}
body.guides-mega-ready.guides-mega-open::after {
  opacity:1;
  visibility:visible;
}
.guide-audience-section > h2,.guide-audience-section > h3 { letter-spacing:-.01em; }
@media (max-width:991.98px){
 .nav-guides-mega{position:relative;width:100%;}
 .guides-mega-panel{position:static;display:none;opacity:1;visibility:visible;transform:none;pointer-events:auto;background:transparent;color:#fff;box-shadow:none;border:0;}
 .nav-guides-mega.is-open .guides-mega-panel{display:block;}
 .guides-mega-inner{padding:.5rem 0 1rem;}
 .guides-mega-topline{border-color:rgba(255,255,255,.12);}
 .guides-mega-overview,.guides-mega-links a{color:#fff;}
 .guides-mega-columns{grid-template-columns:1fr;gap:1rem;}
 .guides-mega-column{border:1px solid rgba(255,255,255,.12);border-radius:.9rem;padding:.9rem;}
 .guides-mega-summary{display:none;}
 .guides-mega-links{grid-template-columns:1fr;}
 body.guides-mega-ready::after{display:none;}
}
@media (prefers-reduced-motion:reduce){.guides-mega-panel,.guides-mega-links a,body.guides-mega-ready::after{transition:none!important;}}


/* Phase 17B.2 - chatbot loading styles preload
   These rules previously arrived through JavaScript only after submit. Keeping them
   in the main stylesheet prevents the loading/thinking text from appearing unstyled
   before its spinner, spacing and motion styles are applied. */
.chatbot-thinking { display: flex; align-items: flex-start; gap: .65rem; }
.chatbot-thinking-icon { width: 1.8rem; height: 1.8rem; border-radius: 999px; background: rgba(13,110,253,.12); color: var(--bs-primary); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.chatbot-thinking-dots { display: inline-flex; gap: .18rem; margin-left: .15rem; vertical-align: middle; }
.chatbot-thinking-dots span { width: .32rem; height: .32rem; border-radius: 999px; background: currentColor; opacity: .38; animation: chatbotThinkingDot 1.05s infinite ease-in-out; }
.chatbot-thinking-dots span:nth-child(2) { animation-delay: .16s; }
.chatbot-thinking-dots span:nth-child(3) { animation-delay: .32s; }
.chatbot-floating-widget.is-loading .js-chatbot-input { opacity: .72; }
.chatbot-floating-widget.is-loading .js-chatbot-form button[type="submit"] { position: relative; pointer-events: none; }
.chatbot-floating-widget.is-loading .js-chatbot-form button[type="submit"] i { opacity: 0; }
.chatbot-floating-widget.is-loading .js-chatbot-form button[type="submit"]::after { content: ""; position: absolute; width: 1rem; height: 1rem; left: 50%; top: 50%; margin-left: -.5rem; margin-top: -.5rem; border: .16rem solid rgba(255,255,255,.55); border-top-color: #fff; border-radius: 999px; animation: chatbotSpin .75s linear infinite; }
.phase5d-chatbot-hero { will-change: max-height, opacity, transform, margin, padding; transition: max-height .32s ease, opacity .26s ease, transform .32s ease, margin .32s ease, padding .32s ease, border-width .32s ease; }
.phase5d-chatbot-hero.phase10c-intro-slide-hide { max-height: 0 !important; opacity: 0; transform: translateY(-.75rem); margin-bottom: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; border-width: 0 !important; pointer-events: none; overflow: hidden; }
.chatbot-question-card.phase10c-question-submitting { opacity: .86; }
.chatbot-question-card.phase10c-question-submitting button[type="submit"] { position: relative; pointer-events: none; }
.chatbot-question-card.phase10c-question-submitting button[type="submit"] i { opacity: 0; }
.chatbot-question-card.phase10c-question-submitting button[type="submit"]::after { content: ""; position: absolute; width: 1.05rem; height: 1.05rem; left: 50%; top: 50%; margin-left: -.525rem; margin-top: -.525rem; border: .16rem solid rgba(255,255,255,.55); border-top-color: #fff; border-radius: 999px; animation: phase10cChatbotSpin .75s linear infinite; }
.phase10c-page-thinking-card { animation: phase10cPageThinkingIn .22s ease both; }
.phase10c-page-thinking-card .card-body { min-height: 8rem; }
.phase10c-answer-thinking { display: inline-flex; align-items: center; gap: .65rem; color: var(--bs-secondary-color, #6c757d); min-height: 2rem; }
.phase10c-thinking-spinner { width: 1.35rem; height: 1.35rem; border: .18rem solid rgba(13,110,253,.18); border-top-color: var(--bs-primary, #0d6efd); border-radius: 999px; animation: phase10cChatbotSpin .75s linear infinite; flex: 0 0 auto; }
.phase10c-thinking-dots { display: inline-flex; gap: .18rem; margin-left: .1rem; }
.phase10c-thinking-dots span { width: .32rem; height: .32rem; border-radius: 999px; background: currentColor; opacity: .38; animation: phase10cThinkingDot 1.05s infinite ease-in-out; }
.phase10c-thinking-dots span:nth-child(2) { animation-delay: .16s; }
.phase10c-thinking-dots span:nth-child(3) { animation-delay: .32s; }
@keyframes chatbotThinkingDot { 0%, 80%, 100% { transform: translateY(0); opacity: .32; } 40% { transform: translateY(-.22rem); opacity: .95; } }
@keyframes chatbotSpin { to { transform: rotate(360deg); } }
@keyframes phase10cChatbotSpin { to { transform: rotate(360deg); } }
@keyframes phase10cThinkingDot { 0%, 80%, 100% { transform: translateY(0); opacity: .32; } 40% { transform: translateY(-.22rem); opacity: .95; } }
@keyframes phase10cPageThinkingIn { from { opacity: 0; transform: translateY(.45rem); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .chatbot-thinking-dots span, .chatbot-floating-widget.is-loading .js-chatbot-form button[type="submit"]::after,
  .phase5d-chatbot-hero.phase10c-intro-slide-hide, .phase10c-page-thinking-card, .phase10c-thinking-spinner,
  .phase10c-thinking-dots span, .chatbot-question-card.phase10c-question-submitting button[type="submit"]::after { animation: none !important; transition: none !important; }
}

/* Phase 24B.2 — isolated Cloud staging preview and source guide chapter overview */
.cloud-staging-preview-banner {
  background: #fff3cd;
  color: #3d3100;
}
.cloud-staging-preview-banner a { color: inherit; }
.doc-content .guide-chapters-new {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin: 1rem 0 1.5rem;
}
.doc-content .guide-chapters-new .chapter > div {
  height: 100%;
}
.doc-content .guide-chapters-new .chapter_text {
  height: 100%;
}
.doc-content .guide-chapters-new .chapter_title a {
  display: block;
  height: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .75rem;
  text-decoration: none;
  font-weight: 600;
  background: var(--bs-body-bg);
}
.doc-content .guide-chapters-new .chapter_title a:hover {
  background: var(--bs-tertiary-bg);
}
@media (max-width: 767.98px) {
  .doc-content .guide-chapters-new { grid-template-columns: 1fr; }
}


/* Phase 25E.2.4 - access-aware responsive Guides mega-menu */
@media (min-width: 992px) {
  .nav-guides-mega.guides-mega-single-group .guides-mega-inner {
    max-width: 1040px;
  }
  .nav-guides-mega.guides-mega-single-group .guides-mega-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .nav-guides-mega.guides-mega-single-group .guides-mega-column {
    width: 100%;
  }
  .nav-guides-mega.guides-mega-single-group .guides-mega-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 1.5rem;
    row-gap: .25rem;
  }
  .nav-guides-mega.guides-mega-single-group .guides-mega-summary {
    max-width: 48rem;
  }
}

@media (min-width: 992px) and (max-width: 1180px) {
  .nav-guides-mega.guides-mega-single-group .guides-mega-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
\n\n/* Phase 25E.2.8 - Wider Phone / Headset catalogue layout */\n.device-guide-catalogue {\n  width: 100%;\n  max-width: 1540px;\n}\n\n.device-guide-catalogue .phone-guide-overview-grid {\n  --bs-gutter-x: 1.35rem;\n  --bs-gutter-y: 1.35rem;\n}\n\n.device-guide-catalogue .phone-guide-overview-card {\n  padding: 1.25rem !important;\n}\n\n.device-guide-catalogue .phone-guide-card-image {\n  width: 100%;\n  max-width: 100%;\n  min-height: 210px;\n  margin-bottom: 1rem;\n}\n\n.device-guide-catalogue .phone-guide-overview-card .phase7s-card-heading h2 {\n  font-size: 1.08rem;\n  line-height: 1.3;\n}\n\n@media (min-width: 1200px) {\n  .device-guide-catalogue .phone-guide-overview-grid > [class*="col-"] {\n    flex: 0 0 auto;\n    width: 25%;\n  }\n}\n\n@media (min-width: 1600px) {\n  .device-guide-catalogue { max-width: 1620px; }\n}\n\n@media (max-width: 1199.98px) {\n  .device-guide-catalogue { max-width: 1080px; }\n}\n\n@media (max-width: 767.98px) {\n  .device-guide-catalogue .phone-guide-overview-card { padding: 1rem !important; }\n  .device-guide-catalogue .phone-guide-card-image { min-height: 180px; }\n}\n
/* Phase 25E.2.9 - Device catalogue spacing and header alignment */
.device-catalogue-overview-section {
  padding-top: 2.2rem !important;
  padding-bottom: 3.25rem !important;
}

.device-catalogue-page-shell {
  width: 100%;
  max-width: 1760px;
  margin-inline: auto;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.device-guide-catalogue {
  max-width: 1680px;
}

.device-catalogue-utility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
  min-height: 2.55rem;
}

.device-catalogue-breadcrumbs {
  margin-left: auto;
  text-align: right;
}

.device-catalogue-breadcrumbs .breadcrumb,
.device-catalogue-breadcrumbs nav,
.device-catalogue-breadcrumbs > * {
  margin-bottom: 0 !important;
}

.device-catalogue-menu-button {
  flex: 0 0 auto;
}

.device-catalogue-header {
  align-items: flex-start;
  margin-bottom: 1.65rem !important;
}

.device-catalogue-header .eyebrow {
  margin-bottom: .45rem !important;
}

.device-catalogue-header h1 {
  margin-bottom: .55rem !important;
}

.device-catalogue-header .lead {
  margin-bottom: 0;
  max-width: 56rem;
}

.device-guide-catalogue .phone-guide-overview-grid {
  --bs-gutter-x: 1.15rem;
  --bs-gutter-y: 1.15rem;
}

.device-guide-catalogue .phone-guide-overview-card {
  padding: 1.15rem !important;
}

.device-guide-catalogue .phone-guide-card-image {
  min-height: 205px;
  margin-bottom: .9rem;
}

.device-guide-catalogue .phone-guide-overview-card .phase7s-card-action {
  margin-top: .8rem;
}

@media (min-width: 1400px) {
  .device-catalogue-page-shell {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
}

@media (min-width: 1800px) {
  .device-catalogue-page-shell { max-width: 1840px; }
  .device-guide-catalogue { max-width: 1760px; }
}

@media (max-width: 991.98px) {
  .device-catalogue-overview-section { padding-top: 1.65rem !important; }
  .device-catalogue-utility-row {
    align-items: flex-start;
    margin-bottom: 1.15rem;
  }
}

@media (max-width: 767.98px) {
  .device-catalogue-page-shell {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .device-catalogue-utility-row {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: .8rem;
  }
  .device-catalogue-breadcrumbs {
    margin-left: 0;
    text-align: left;
  }
  .device-catalogue-menu-button { align-self: flex-start; }
  .device-catalogue-header { margin-bottom: 1.35rem !important; }
  .device-guide-catalogue .phone-guide-overview-grid {
    --bs-gutter-x: .9rem;
    --bs-gutter-y: .9rem;
  }
}

/* Phase 25E.2.10 - Desktop/Laptop compact device catalogue */
@media (min-width: 1200px) {
  .device-catalogue-page-shell {
    max-width: 1520px;
    padding-left: 3rem !important;
    padding-right: 3rem !important;
  }

  .device-guide-catalogue {
    max-width: 1440px;
  }

  .device-catalogue-overview-section {
    padding-top: 1.65rem !important;
    padding-bottom: 2.35rem !important;
  }

  .device-catalogue-utility-row {
    margin-bottom: .9rem;
    min-height: 2.25rem;
  }

  .device-catalogue-header {
    margin-bottom: 1.1rem !important;
  }

  .device-catalogue-header .eyebrow {
    margin-bottom: .3rem !important;
  }

  .device-catalogue-header h1 {
    margin-bottom: .35rem !important;
  }

  .device-guide-catalogue .phone-guide-overview-grid {
    --bs-gutter-x: .9rem;
    --bs-gutter-y: .9rem;
  }

  .device-guide-catalogue .phone-guide-overview-card {
    padding: .9rem !important;
  }

  .device-guide-catalogue .phone-guide-card-image {
    min-height: 168px;
    height: 168px;
    margin-bottom: .55rem;
  }

  .device-guide-catalogue .phone-guide-card-image img {
    max-height: 148px;
  }

  .device-guide-catalogue .phone-guide-overview-card .phase7s-card-heading h2 {
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: .35rem;
  }

  .device-guide-catalogue .phone-guide-overview-card .phase7s-card-action {
    margin-top: .5rem;
    font-size: .9rem;
  }
}

@media (min-width: 1500px) {
  .device-guide-catalogue .phone-guide-overview-grid > [class*="col-"] {
    flex: 0 0 auto;
    width: 20%;
  }
}

@media (min-width: 1200px) and (max-width: 1499.98px) {
  .device-guide-catalogue .phone-guide-overview-grid > [class*="col-"] {
    flex: 0 0 auto;
    width: 25%;
  }
}
/* =========================================================
   Mobile Guides Menu - improved contrast
   ========================================================= */

@media (max-width: 991.98px) {

    /* VoiceX overview link */
    .guides-mega-overview,
    .guides-mega-overview span {
        color: #f2f5f8 !important;
        font-weight: 500;
    }

    .guides-mega-overview i {
        color: #58bfff !important;
    }

    /* User guide section heading */
    .guides-mega-column .guides-mega-kicker {
        color: #9fb0c2 !important;
        font-weight: 600;
        letter-spacing: 0.08em;
    }

    /* User guide links */
    .guides-mega-links a,
    .guides-mega-links a span {
        color: #e3e8ee !important;
        font-weight: 500;
    }

    /* User guide icons */
    .guides-mega-links a i {
        color: #58bfff !important;
    }

    /* Hover / focus */
    .guides-mega-links a:hover,
    .guides-mega-links a:focus,
    .guides-mega-links a:hover span,
    .guides-mega-links a:focus span,
    .guides-mega-overview:hover,
    .guides-mega-overview:focus,
    .guides-mega-overview:hover span,
    .guides-mega-overview:focus span {
        color: #5fc3ff !important;
    }

    .guides-mega-links a:hover i,
    .guides-mega-links a:focus i,
    .guides-mega-overview:hover i,
    .guides-mega-overview:focus i {
        color: #7fd0ff !important;
    }
}

/* ==================================================
   VoiceX Docs — Compact Guide Overview Cards
   Excludes Phone and Headset image catalogues
   ================================================== */

.phase7s-guide-overview:not(.device-guide-catalogue)
.phase7s-guide-card-grid .phase7s-section-card {
    min-height: 110px !important;
    height: 100%;
    padding: 16px 18px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.phase7s-guide-overview:not(.device-guide-catalogue)
.phase7s-guide-card-grid .phase7s-card-heading {
    margin: 0 !important;
}

.phase7s-guide-overview:not(.device-guide-catalogue)
.phase7s-guide-card-grid .phase7s-card-heading h2 {
    margin: 0 !important;
    line-height: 1.35;
}

.phase7s-guide-overview:not(.device-guide-catalogue)
.phase7s-guide-card-grid .phase7s-card-action {
    margin-top: auto;
}

/* Mobile */
@media (max-width: 767px) {
    .phase7s-guide-overview:not(.device-guide-catalogue)
    .phase7s-guide-card-grid .phase7s-section-card {
        min-height: 100px !important;
        padding: 14px 16px !important;
        gap: 10px;
    }
}