/* =========================================================
   ASK HKX WIDE DRAWER PROTOTYPE
   Isolated from the shared cart/navigation slider styles.
   The body.embed rules theme only Ask pages rendered in-frame.
   ========================================================= */

:root {
  --ask-hkx-red: #c8101e;
  --ask-hkx-red-dark: #940d18;
  --ask-hkx-ink: #11161e;
  --ask-hkx-ink-2: #171e28;
  --ask-hkx-line: rgba(255, 255, 255, 0.11);
  --ask-hkx-paper: #f2f4f7;
  --ask-hkx-ease: cubic-bezier(.16, 1, .3, 1);
  --ask-hkx-duration: 820ms;
}

.ask-hkx-sr-only {
  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;
}

body.ask-hkx-drawer-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.ask-hkx-launcher {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 10070;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border: 2px solid #f9b001;
  border-radius: 999px;
  background: linear-gradient(135deg, #003b72 0%, #001b3c 100%);
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 34, 75, .3), 0 0 0 1px rgba(249, 176, 1, .12);
  font: 800 14px/1 Arial, Helvetica, sans-serif;
  letter-spacing: -0.01em;
  cursor: pointer;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    transform 420ms var(--ask-hkx-ease),
    opacity 280ms ease,
    box-shadow 280ms ease,
    background-color 280ms ease;
}

.ask-hkx-launcher:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #004982 0%, #002755 100%);
  box-shadow: 0 20px 42px rgba(0, 34, 75, .36), 0 0 0 2px rgba(249, 176, 1, .16);
}

.ask-hkx-launcher:focus-visible,
.ask-hkx-drawer button:focus-visible,
.ask-hkx-drawer input:focus-visible {
  outline: 3px solid rgba(249, 176, 1, .42);
  outline-offset: 3px;
}

.ask-hkx-launcher.is-hidden {
  pointer-events: none;
  opacity: 0;
  transform: translateY(18px) scale(0.92);
}

/* The full-screen mobile navigation always owns the top interaction layer. */
body.mobile-menu-open .ask-hkx-launcher {
  z-index: -1 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  transform: translateY(18px) scale(0.92) !important;
}

html.dsn-backdrop-ready:has(.dsn-global-backdrop.is-open) .ask-hkx-launcher {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
}

@supports selector(body:has(#mobileMenu.open)) {
  body:has(#mobileMenu.open) .ask-hkx-launcher {
    z-index: -1 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    transform: translateY(18px) scale(0.92) !important;
  }
}

.ask-hkx-launcher svg {
  width: 18px;
  height: 18px;
}

.ask-hkx-launcher__signal {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f9b001;
  box-shadow: 0 0 0 5px rgba(249, 176, 1, .13);
}

.ask-hkx-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  background: rgba(5, 8, 13, 0.62);
  backdrop-filter: blur(2px);
  transition:
    opacity var(--ask-hkx-duration) var(--ask-hkx-ease),
    visibility 0s linear var(--ask-hkx-duration);
}

.ask-hkx-overlay.is-open {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transition:
    opacity var(--ask-hkx-duration) var(--ask-hkx-ease),
    visibility 0s linear 0s;
}

.ask-hkx-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 10060;
  display: flex;
  flex-direction: column;
  width: clamp(760px, 56vw, 1180px);
  max-width: 100vw;
  height: 100dvh;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  color: #fff;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    radial-gradient(circle at 18% 0%, rgba(160, 18, 36, 0.25), transparent 34%),
    var(--ask-hkx-ink);
  background-size: 32px 32px, 32px 32px, auto, auto;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.34);
  transform: translate3d(calc(100% + 28px), 0, 0);
  transition:
    transform var(--ask-hkx-duration) var(--ask-hkx-ease),
    visibility 0s linear var(--ask-hkx-duration);
}

.ask-hkx-drawer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, #b87c00, #f9b001 58%, #b87c00);
}

.ask-hkx-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transition:
    transform var(--ask-hkx-duration) var(--ask-hkx-ease),
    visibility 0s linear 0s;
}

.ask-hkx-drawer__header {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  min-height: 92px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--ask-hkx-line);
  background: rgba(12, 17, 24, 0.9);
}

.ask-hkx-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ask-hkx-brand__mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 6px;
  color: #fff;
  font: 950 17px/1 Arial, Helvetica, sans-serif;
  letter-spacing: -0.05em;
}

.ask-hkx-brand__rule {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.15);
}

.ask-hkx-drawer__identity {
  min-width: 0;
}

.ask-hkx-drawer__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #ff5d6a;
  font: 800 10px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ask-hkx-drawer__identity h2 {
  margin: 0;
  color: #fff;
  font: 900 clamp(22px, 1.8vw, 30px)/1.02 Arial, Helvetica, sans-serif;
  letter-spacing: -0.04em;
}

.ask-hkx-drawer__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #dfe5ec;
  background: rgba(255, 255, 255, 0.045);
  font: 800 11px/1 Arial, Helvetica, sans-serif;
  white-space: nowrap;
}

.ask-hkx-drawer__status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #52e49a;
  box-shadow: 0 0 0 5px rgba(82, 228, 154, 0.1);
}

.ask-hkx-drawer__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  transition:
    color 240ms ease,
    background-color 240ms ease,
    border-color 240ms ease,
    transform 420ms var(--ask-hkx-ease);
}

.ask-hkx-drawer__close:hover {
  color: #fff;
  background: var(--ask-hkx-red);
  border-color: var(--ask-hkx-red);
  transform: rotate(90deg);
}

.ask-hkx-drawer__close svg {
  width: 21px;
  height: 21px;
}

.ask-hkx-composer {
  position: relative;
  z-index: 2;
  padding: 18px 24px 15px;
  border-bottom: 1px solid var(--ask-hkx-line);
  background: rgba(17, 22, 30, 0.94);
}

.ask-hkx-composer__form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 58px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: #f7f8fa;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.ask-hkx-composer__form:focus-within {
  border-color: rgba(255, 70, 84, 0.9);
  box-shadow: 0 0 0 3px rgba(205, 22, 38, 0.14), 0 15px 34px rgba(0, 0, 0, 0.2);
}

.ask-hkx-composer__icon {
  display: grid;
  place-items: center;
  width: 54px;
  color: #8e98a5;
}

.ask-hkx-composer__icon svg {
  width: 23px;
  height: 23px;
}

.ask-hkx-composer__input {
  width: 100%;
  min-width: 0;
  height: 58px;
  padding: 0 12px 0 0;
  border: 0;
  outline: 0 !important;
  color: #151b23;
  background: transparent;
  box-shadow: none !important;
  font: 700 15px/1.2 Arial, Helvetica, sans-serif;
}

.ask-hkx-composer__input::placeholder {
  color: #747e8a;
  opacity: 1;
}

.ask-hkx-composer__submit {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 142px;
  margin: 5px;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, #d31725, #ad0d18);
  font: 900 12px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 320ms var(--ask-hkx-ease), box-shadow 220ms ease;
}

.ask-hkx-composer__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(166, 12, 27, 0.27);
}

.ask-hkx-composer__submit svg {
  width: 17px;
  height: 17px;
}

.ask-hkx-composer__hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 2px 0;
  color: #929ba8;
  font: 700 10px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: 0.025em;
}

.ask-hkx-composer__hint span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #d32a38;
}

.ask-hkx-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--ask-hkx-paper);
}

.ask-hkx-frame {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--ask-hkx-paper);
  opacity: 0;
  transition: opacity 360ms ease;
}

.ask-hkx-stage.is-ready .ask-hkx-frame {
  opacity: 1;
}

.ask-hkx-stage__loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: #5f6975;
  background: var(--ask-hkx-paper);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  font: 800 11px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ask-hkx-stage.is-loading .ask-hkx-stage__loading {
  z-index: 3;
  opacity: 1;
}

.ask-hkx-stage__loader {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(200, 16, 30, 0.13);
  border-top-color: var(--ask-hkx-red);
  border-radius: 50%;
  animation: ask-hkx-spin 760ms linear infinite;
}

@keyframes ask-hkx-spin {
  to { transform: rotate(360deg); }
}

/* =========================================================
   EMBEDDED ASK HKX SCREENS
   The stylesheet is loaded after each route's legacy styles.
   These rules deliberately do not affect standalone routes.
   ========================================================= */

body.embed {
  --ask-page-red: #c8101e;
  --ask-page-red-soft: #fff0f2;
  --ask-page-ink: #151b23;
  --ask-page-muted: #66717e;
  --ask-page-line: #dce1e7;
  --ask-page-surface: #fff;
  margin: 0 !important;
  min-height: 100%;
  overflow-x: hidden;
  color: var(--ask-page-ink) !important;
  background:
    linear-gradient(rgba(19, 27, 37, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 27, 37, .025) 1px, transparent 1px),
    #f2f4f7 !important;
  background-size: 28px 28px !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 15px;
  line-height: 1.55;
}

body.embed *,
body.embed *::before,
body.embed *::after {
  box-sizing: border-box;
}

body.embed a {
  color: var(--ask-page-red);
}

body.embed .wrap {
  width: 100% !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: clamp(22px, 3vw, 38px) !important;
}

body.embed h1,
body.embed h2,
body.embed h3,
body.embed h4 {
  color: var(--ask-page-ink) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: -0.035em !important;
}

body.embed h1 {
  margin: 0 0 10px !important;
  font-size: clamp(28px, 4vw, 46px) !important;
  line-height: 1.02 !important;
}

body.embed h2 {
  font-size: clamp(22px, 3vw, 34px) !important;
  line-height: 1.08 !important;
}

body.embed h3 {
  font-size: clamp(17px, 2vw, 23px) !important;
  line-height: 1.15 !important;
}

body.embed p,
body.embed li,
body.embed td,
body.embed th,
body.embed label,
body.embed small {
  line-height: 1.55;
}

body.embed .card,
body.embed .shell,
body.embed .box,
body.embed .panel,
body.embed .answer-box,
body.embed .ready-panel,
body.embed .machine-required-panel {
  overflow: hidden;
  border: 1px solid var(--ask-page-line) !important;
  border-radius: 14px !important;
  background: var(--ask-page-surface) !important;
  box-shadow: 0 18px 50px rgba(20, 29, 39, 0.07) !important;
}

body.embed .head,
body.embed .top {
  position: relative;
  padding: clamp(24px, 3vw, 38px) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  background:
    linear-gradient(115deg, rgba(197, 16, 31, 0.2), transparent 42%),
    linear-gradient(135deg, #121820, #202832) !important;
}

body.embed .head::before,
body.embed .top::before {
  content: "ASK HKX INTELLIGENCE";
  display: block;
  margin-bottom: 10px;
  color: #ff6470;
  font: 900 10px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.15em;
}

body.embed .head h1,
body.embed .head h2,
body.embed .head h3,
body.embed .top h1,
body.embed .top h2,
body.embed .top h3,
body.embed .head p,
body.embed .top p,
body.embed .head .label,
body.embed .top .label {
  color: #fff !important;
}

body.embed .head p,
body.embed .top p {
  max-width: 780px;
  margin: 0 !important;
  opacity: 0.82;
}

body.embed .content {
  padding: clamp(22px, 3vw, 36px) !important;
  color: var(--ask-page-ink) !important;
  background: #fff !important;
}

body.embed .label,
body.embed .ai-label,
body.embed .component-label,
body.embed .trouble-label,
body.embed .hkx-next-label,
body.embed .hkx-live-label {
  color: var(--ask-page-red) !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: 0.11em !important;
  text-transform: uppercase !important;
}

body.embed .value,
body.embed .ai-value,
body.embed .component-value {
  color: var(--ask-page-ink) !important;
  font-weight: 900 !important;
  letter-spacing: -0.025em;
}

body.embed input[type="text"],
body.embed input[type="search"],
body.embed input[type="number"],
body.embed select,
body.embed textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px !important;
  border: 1px solid #cfd5dc !important;
  border-radius: 8px !important;
  outline: 0;
  color: var(--ask-page-ink) !important;
  background: #fff !important;
  box-shadow: none !important;
  font: 700 14px/1.35 Arial, Helvetica, sans-serif !important;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

body.embed textarea {
  min-height: 110px;
  resize: vertical;
}

body.embed input:focus,
body.embed select:focus,
body.embed textarea:focus {
  border-color: var(--ask-page-red) !important;
  box-shadow: 0 0 0 3px rgba(200, 16, 30, 0.1) !important;
}

body.embed button,
body.embed .btn,
body.embed .actions a,
body.embed .back-btn,
body.embed .top-actions a,
body.embed .footer-actions a,
body.embed .action-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px !important;
  border: 1px solid var(--ask-page-red) !important;
  border-radius: 7px !important;
  color: #fff !important;
  background: var(--ask-page-red) !important;
  box-shadow: none !important;
  font: 900 11px/1 Arial, Helvetica, sans-serif !important;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 300ms var(--ask-hkx-ease), background-color 180ms ease !important;
}

body.embed button:hover,
body.embed .btn:hover,
body.embed .actions a:hover,
body.embed .back-btn:hover,
body.embed .top-actions a:hover,
body.embed .footer-actions a:hover,
body.embed .action-row a:hover {
  background: #970c17 !important;
  transform: translateY(-1px);
}

body.embed .secondary,
body.embed a.secondary,
body.embed button.secondary,
body.embed .back-btn {
  border-color: #cfd5dc !important;
  color: #26303b !important;
  background: #fff !important;
}

body.embed .secondary:hover,
body.embed .back-btn:hover {
  border-color: #aeb6c0 !important;
  background: #f3f5f7 !important;
}

body.embed .actions,
body.embed .action-row,
body.embed .top-actions,
body.embed .back-actions,
body.embed .footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px !important;
  margin-top: 20px !important;
}

body.embed .grid,
body.embed .stats,
body.embed .form-grid,
body.embed .part-grid,
body.embed .component-grid,
body.embed .ai-report-grid,
body.embed .trouble-grid {
  gap: 14px !important;
}

body.embed .part-card,
body.embed .kit,
body.embed .choice,
body.embed .component-card,
body.embed .step-card,
body.embed .trouble-card,
body.embed .ai-metric,
body.embed .stat,
body.embed .metric,
body.embed .group-box {
  border: 1px solid var(--ask-page-line) !important;
  border-radius: 11px !important;
  color: var(--ask-page-ink) !important;
  background: #fff !important;
  box-shadow: 0 9px 25px rgba(20, 29, 39, 0.045) !important;
}

body.embed .part-card:hover,
body.embed .kit:hover,
body.embed .choice:hover,
body.embed .component-card:hover {
  border-color: rgba(200, 16, 30, 0.45) !important;
  box-shadow: 0 14px 30px rgba(20, 29, 39, 0.08) !important;
}

body.embed .part-img,
body.embed .kit-img {
  border: 1px solid #e1e5ea !important;
  border-radius: 9px !important;
  background: #f7f8fa !important;
}

body.embed .part-name,
body.embed .part-number,
body.embed .group-title {
  color: var(--ask-page-ink) !important;
  font-weight: 900 !important;
}

body.embed .notice,
body.embed .note,
body.embed .diag-note,
body.embed .bom-note,
body.embed .refine-note,
body.embed .footer-note,
body.embed .glossary-note,
body.embed .wear-filter-note {
  border: 1px solid #d9dee5 !important;
  border-left: 4px solid var(--ask-page-red) !important;
  border-radius: 8px !important;
  color: #424d59 !important;
  background: #f7f8fa !important;
}

body.embed .warn,
body.embed .error,
body.embed .no-results {
  border: 1px solid #efc9ce !important;
  border-left: 4px solid var(--ask-page-red) !important;
  border-radius: 8px !important;
  color: #7b1420 !important;
  background: #fff3f4 !important;
}

body.embed .stock-good {
  color: #17754b !important;
  background: #eaf8f1 !important;
}

body.embed .table-wrap {
  overflow-x: auto !important;
  border: 1px solid var(--ask-page-line) !important;
  border-radius: 10px !important;
  background: #fff !important;
}

body.embed table {
  width: 100% !important;
  border-collapse: collapse !important;
  color: var(--ask-page-ink) !important;
  background: #fff !important;
}

body.embed th {
  padding: 12px 14px !important;
  border-bottom: 1px solid #d7dce2 !important;
  color: #fff !important;
  background: #1a212b !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

body.embed td {
  padding: 12px 14px !important;
  border-bottom: 1px solid #e4e7eb !important;
  color: #303a45 !important;
}

body.embed tr:last-child td {
  border-bottom: 0 !important;
}

/* Welcome screen */
body.embed .hero {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 4vw, 48px) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 14px !important;
  color: #fff !important;
  background:
    radial-gradient(circle at 82% 20%, rgba(204, 29, 44, .28), transparent 28%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(135deg, #111820, #202832) !important;
  background-size: auto, 28px 28px, 28px 28px, auto !important;
  box-shadow: 0 20px 45px rgba(20, 29, 39, 0.13) !important;
}

body.embed .hero::before {
  content: "HKX HYDRAULIC SUPPORT";
  position: absolute;
  top: 28px;
  left: clamp(28px, 4vw, 48px);
  color: #ff5d6a;
  font: 900 10px/1 Arial, Helvetica, sans-serif;
  letter-spacing: .15em;
}

body.embed .hero::after {
  content: "AI";
  position: absolute;
  top: 18px;
  right: 28px;
  color: rgba(255,255,255,.055);
  font: 950 100px/1 Arial, Helvetica, sans-serif;
  letter-spacing: -.08em;
}

body.embed .hero h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px !important;
  color: #fff !important;
  font-size: clamp(30px, 5vw, 52px) !important;
}

body.embed .hero p {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 !important;
  color: #dfe4ea !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

body.embed .cards {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-top: 16px !important;
}

body.embed .cards > .card {
  position: relative;
  min-height: 112px;
  padding: 20px 20px 18px 24px !important;
  border-radius: 11px !important;
  color: var(--ask-page-ink) !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  box-shadow: 0 10px 28px rgba(20, 29, 39, .055) !important;
}

body.embed .cards > .card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--ask-page-red);
}

body.embed .cards > .card small {
  display: block;
  margin-top: 8px !important;
  color: var(--ask-page-muted) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

/* Diagnostic and advisor views */
body.embed .hkx-chat-window,
body.embed .hkx-mechanic-mode,
body.embed .hkx-chat-summary,
body.embed .hkx-mechanic-summary,
body.embed .hkx-confidence-wrap,
body.embed .hkx-next-card,
body.embed .hkx-advisor-notice,
body.embed .ai-report {
  border: 1px solid var(--ask-page-line) !important;
  border-radius: 12px !important;
  color: var(--ask-page-ink) !important;
  background: #fff !important;
  box-shadow: 0 12px 32px rgba(20, 29, 39, 0.06) !important;
}

body.embed .hkx-chat-top,
body.embed .hkx-mechanic-head,
body.embed .hkx-live-bar {
  color: #fff !important;
  background: linear-gradient(135deg, #161d26, #242d38) !important;
}

body.embed .hkx-chat-top *,
body.embed .hkx-mechanic-head *,
body.embed .hkx-live-bar * {
  color: inherit;
}

body.embed .hkx-avatar,
body.embed .hkx-mechanic-badge {
  border-color: rgba(255,255,255,.18) !important;
  color: #fff !important;
  background: var(--ask-page-red) !important;
}

body.embed .hkx-bubble.ai,
body.embed .hkx-msg.ai,
body.embed .hkx-chat-question,
body.embed .hkx-mechanic-question {
  border-color: #dde2e7 !important;
  color: #27313c !important;
  background: #f4f6f8 !important;
}

body.embed .hkx-bubble.user,
body.embed .hkx-msg.user {
  border-color: var(--ask-page-red) !important;
  color: #fff !important;
  background: var(--ask-page-red) !important;
}

body.embed .hkx-chat-yes,
body.embed .hkx-mechanic-yes {
  border-color: var(--ask-page-red) !important;
  color: #fff !important;
  background: var(--ask-page-red) !important;
}

body.embed .hkx-chat-no,
body.embed .hkx-chat-skip,
body.embed .hkx-mechanic-no,
body.embed .hkx-mechanic-skip {
  border-color: #d4d9df !important;
  color: #34404c !important;
  background: #fff !important;
}

body.embed .hkx-meter-bar,
body.embed .hkx-live-confidence {
  overflow: hidden;
  background: #e6e9ed !important;
}

body.embed .hkx-meter-fill,
body.embed .hkx-live-fill {
  background: linear-gradient(90deg, #a80d19, #e13543) !important;
}

body.embed .hkx-confidence-big,
body.embed .hkx-next-score,
body.embed .hkx-live-score {
  color: var(--ask-page-red) !important;
}

body.embed .step-num,
body.embed .hkx-flow-node {
  color: #fff !important;
  background: var(--ask-page-red) !important;
}

@media (max-width: 1100px) {
  .ask-hkx-drawer {
    width: min(84vw, 860px);
  }

  .ask-hkx-drawer__status {
    display: none;
  }

  .ask-hkx-drawer__header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
}

@media (max-width: 700px) {
  .ask-hkx-launcher {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    min-height: 48px;
    padding: 0 16px;
  }

  .ask-hkx-drawer {
    width: 100vw;
    min-width: 0;
    border-left: 0;
  }

  .ask-hkx-drawer__header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 76px;
    padding: 14px 16px;
  }

  .ask-hkx-brand {
    display: none;
  }

  .ask-hkx-drawer__eyebrow {
    font-size: 9px;
  }

  .ask-hkx-drawer__identity h2 {
    font-size: 23px;
  }

  .ask-hkx-drawer__close {
    width: 42px;
    height: 42px;
  }

  .ask-hkx-composer {
    padding: 12px;
  }

  .ask-hkx-composer__form {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 52px;
  }

  .ask-hkx-composer__icon {
    width: 42px;
  }

  .ask-hkx-composer__input {
    height: 52px;
    font-size: 13px;
  }

  .ask-hkx-composer__submit {
    min-width: 48px;
    width: 48px;
    padding: 0 !important;
  }

  .ask-hkx-composer__submit span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .ask-hkx-composer__hint {
    display: none;
  }

  body.embed .wrap {
    padding: 16px !important;
  }

  body.embed .head,
  body.embed .top,
  body.embed .content {
    padding: 22px !important;
  }

  body.embed .cards {
    grid-template-columns: 1fr !important;
  }

  body.embed .hero {
    min-height: 230px;
    padding: 28px !important;
  }

  body.embed .hero::before {
    left: 28px;
  }

  body.embed .hero::after {
    font-size: 72px;
  }

  body.embed .actions,
  body.embed .action-row,
  body.embed .top-actions,
  body.embed .footer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  body.embed .actions a,
  body.embed .actions button,
  body.embed .action-row a,
  body.embed .top-actions a,
  body.embed .footer-actions a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ask-hkx-overlay,
  .ask-hkx-overlay.is-open,
  .ask-hkx-drawer,
  .ask-hkx-drawer.is-open,
  .ask-hkx-launcher,
  .ask-hkx-drawer__close,
  .ask-hkx-frame {
    transition-duration: 1ms !important;
  }

  .ask-hkx-stage__loader {
    animation: none !important;
  }
}

/* Hydraulic Seal Depot drawer presentation; widget hooks remain unchanged. */
.ask-hkx-drawer__status-dot {
  background: var(--brand-cyan);
  box-shadow: 0 0 0 5px rgba(0, 200, 255, .12);
}

.ask-hkx-drawer__header {
  background: #071827;
}

.ask-hkx-brand__mark {
  color: #00c8ff;
}

.ask-hkx-stage--coming-soon {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 42px 28px;
  background: #f5f8fb;
}

.support-coming-soon {
  width: min(100%, 440px);
  padding: 36px 28px;
  border: 1px solid #dce7ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(16, 36, 58, 0.1);
  color: #10243a;
  text-align: center;
}

.support-coming-soon__icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  background: #eaf7fd;
  color: #0078b8;
  font-size: 24px;
}

.support-coming-soon h3 {
  margin: 8px 0 12px;
  color: #073b5d;
  font-size: 24px;
  line-height: 1.2;
}

.support-coming-soon p {
  margin: 0 0 22px;
  color: #596775;
  line-height: 1.6;
}

.support-coming-soon a {
  display: inline-flex;
  min-height: 44px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #0078b8, #005f8f);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
