/* Guidance retains the Consultant Tools palette, including portal dialogs. */
.ct-utility-backdrop {
  --ctx-surface-strong: #151e2e;
  --ctx-surface-soft: #1b273a;
  --ctx-text: #f8faff;
  --ctx-muted: #b7c1d3;
  --ctx-border: rgba(255, 255, 255, 0.13);
}
html:not(.dark) .ct-utility-backdrop {
  --ctx-surface-strong: #fff;
  --ctx-surface-soft: #f3f6fc;
  --ctx-text: #0b1322;
  --ctx-muted: #4c5b70;
  --ctx-border: rgba(25, 43, 70, 0.16);
}
.ct-tour-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  max-height: calc(100dvh - 2rem);
  border-radius: 22px;
}
.ct-tour-copy { min-height: 0; overflow-y: auto; }
.ct-tour-step-count, .ct-tour-progress, .ct-tour-actions { flex-shrink: 0; }
.ct-tour-step-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 54px);
  margin-bottom: 0.6rem;
  color: var(--ctx-muted);
  font-size: 0.75rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.ct-tour-progress { width: calc(100% - 54px); margin-bottom: 1.35rem; gap: 0.25rem; }
.ct-tour-copy h2 {
  max-width: 20ch;
  font-size: clamp(1.45rem, 5.5vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.ct-tour-copy .ct-eyebrow { margin: 0 0 0.5rem; color: var(--ctx-muted); }
#ct-tour-body { margin: 0.9rem 0 0; color: var(--ctx-text); font-size: 0.95rem; line-height: 1.6; }
.ct-tour-tip {
  margin: 0.9rem 0 0;
  border-left: 2px solid #65bfff;
  padding: 0.1rem 0 0.1rem 0.75rem;
  color: var(--ctx-muted);
  font-size: 0.825rem;
  line-height: 1.5;
}
.ct-tour-actions {
  position: sticky;
  bottom: -1px;
  border-top: 1px solid var(--ctx-border);
  background: var(--ctx-surface-strong);
  padding-top: 1rem;
  gap: 0.4rem;
}
.ct-tour-actions button { padding-inline: 0.85rem; font-size: 0.85rem; }
.ct-tour-actions .ct-tour-next { min-width: 80px; background: #3458d4; }
.ct-tour-close, .ct-utility-close { width: 44px; height: 44px; color: var(--ctx-text); }
.ct-utility-dialog { display: flex; flex-direction: column; max-height: calc(100dvh - 2rem); overflow: hidden; }
.ct-utility-dialog .ct-eyebrow, .ct-utility-dialog h2, #ct-utility-description, .ct-replay-tour { flex-shrink: 0; }
.ct-utility-options, .ct-theme-choices { min-height: 0; overflow-y: auto; }
.ct-utility-dialog h2 { max-width: calc(100% - 40px); font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.1; }
.ct-utility-options small { color: var(--ctx-muted); }
.ct-quick-guide { margin: 0 0 1rem; border: 1px solid transparent; border-radius: 18px; }
.ct-quick-guide.is-open { border-color: var(--ctx-border); background: var(--ctx-surface-soft); padding: 0.5rem 1rem 1rem; }
.ct-quick-guide-heading { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.ct-quick-guide-heading button {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  background: transparent;
  color: var(--ctx-text);
  padding: 0;
  text-align: left;
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
}
.ct-quick-guide-heading button > span:first-child { display: grid; width: 20px; height: 20px; place-items: center; border: 1px solid var(--ctx-border); border-radius: 50%; font-size: 0.75rem; }
.ct-quick-guide-name { color: var(--ctx-muted); font-weight: 500; }
.ct-quick-guide-heading .ct-quick-guide-close { flex: 0 0 44px; justify-content: center; font-size: 1.3rem; }
.ct-quick-guide-content { max-width: 72ch; font-size: 0.875rem; line-height: 1.6; }
.ct-quick-guide-content ol { display: grid; gap: 0.4rem; margin: 0.25rem 0 0; padding-left: 1.2rem; list-style: decimal; color: var(--ctx-text); }
.ct-quick-guide-content li::marker { color: var(--ctx-muted); }
.ct-quick-guide-content p { margin: 0.65rem 0 0; color: var(--ctx-muted); font-size: 0.8rem; }
.ct-quick-guide :focus-visible { outline: 3px solid #65bfff; outline-offset: 3px; }
/* The main layout switches at 1100px; support must follow the same breakpoint. */
html .consultant-tools-root.ctp[data-ct-tour-review='true'] .ct-rail-footer > .ct-gradient-action {
  display: block;
  opacity: 1;
}
@media (max-width: 1099px) {
  .ct-support-dock.is-mobile { display: block; }
  html .consultant-tools-root.ctp[data-ct-tour-review='true'] .ct-mobile-actionbar {
    position: fixed;
    display: flex;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
  }
  html .consultant-tools-root.ctp[data-ct-tour-review='true'] .ct-mobile-actionbar > button:disabled {
    opacity: 1;
    filter: none;
    background: #263752;
    color: #fff;
  }
  html:not(.dark) .consultant-tools-root.ctp[data-ct-tour-review='true'] .ct-mobile-actionbar > button:disabled {
    background: #e2eafb;
    color: #223b76;
  }
}
.ct-tour-spotlight > span { top: -13px; left: 8px; width: 26px; height: 26px; font-size: 12px; }
@media (max-height: 480px) {
  .ct-tour-card { padding: 0.75rem 1rem; }
  .ct-tour-progress { margin-bottom: 0.65rem; }
  .ct-tour-actions { padding-top: 0.5rem; }
}
@media (max-width: 360px) {
  .ct-tour-card { left: 0.75rem; right: 0.75rem; width: calc(100% - 1.5rem); }
  .ct-tour-actions > div { gap: 0.3rem; }
  .ct-tour-actions button { padding-inline: 0.65rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-tour-layer *, .ct-utility-backdrop * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
