.assistant-view {
  min-height: min(560px, calc(100dvh - 150px));
  outline: none;
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.panel:has(#assistant-view.active) {
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 42%, rgba(6, 16, 28, 0) 0%, rgba(6, 16, 28, 0.2) 58%, rgba(6, 16, 28, 0.68) 100%),
    linear-gradient(180deg, rgba(14, 28, 48, 0.34) 0%, rgba(8, 18, 32, 0.28) 100%);
}

.panel:has(#assistant-view.active)::before {
  z-index: 2;
}

.panel:has(#assistant-view.active)::after {
  content: "";
  position: absolute;
  inset: 0;
  height: auto;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 18%),
    radial-gradient(circle at 52% 38%, rgba(14, 165, 233, 0.08), transparent 48%),
    url('/falling-stars-stars.gif?v=89435d7c') center/cover repeat;
  opacity: 0.01;
  mix-blend-mode: screen;
  filter: saturate(1.05) contrast(1.08);
}

.panel:has(#assistant-view.active) > .view {
  position: relative;
  z-index: 1;
}

.panel:has(#assistant-view.active) .toolbar {
  min-height: 42px;
}

.panel:has(#assistant-view.active) .tabs {
  gap: 2px;
  padding: 3px;
  border-color: rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(3, 10, 20, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 12px 26px rgba(2, 8, 23, 0.16);
}

.panel:has(#assistant-view.active) .tab {
  height: 32px;
  gap: 6px;
  border-radius: 9px;
  padding: 0 13px;
  color: rgba(203, 213, 225, 0.62);
  font-size: 12px;
  font-weight: 760;
  transition:
    color 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.panel:has(#assistant-view.active) .tab::before {
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.05);
}

.panel:has(#assistant-view.active) .tab::after {
  left: 12px;
  right: 12px;
  bottom: 3px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.52), transparent);
}

.panel:has(#assistant-view.active) .tab:hover {
  background: rgba(255, 255, 255, 0.055);
  color: rgba(248, 250, 252, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-0.5px);
}

.panel:has(#assistant-view.active) .tab.active {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(226, 232, 240, 0.86));
  color: #0b1220;
  box-shadow:
    0 8px 18px rgba(2, 8, 23, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transform: translateY(0);
}

.panel:has(#assistant-view.active) .tab.active::after {
  opacity: 0;
}

.assistant-view::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(6, 16, 28, 0) 0%, rgba(6, 16, 28, 0.26) 62%, rgba(6, 16, 28, 0.74) 100%),
    url('/falling-stars-stars.gif?v=89435d7c') center/cover repeat;
  opacity: 0.055;
  mix-blend-mode: screen;
  filter: saturate(1.05) contrast(1.12);
  display: none;
}

.assistant-view::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 8, 23, 0.18), rgba(2, 8, 23, 0.02) 44%, rgba(2, 8, 23, 0.2)),
    radial-gradient(circle at 52% 40%, rgba(14, 165, 233, 0.08), transparent 48%);
  display: none;
}

.assistant-shell {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: min(560px, calc(100dvh - 150px));
  height: clamp(360px, calc(100dvh - 150px), 720px);
  display: grid;
  place-items: stretch center;
  padding: clamp(0px, 0.45vh, 4px) clamp(10px, 2.2vw, 28px) clamp(12px, 2.6vh, 24px);
}

.assistant-chat {
  width: 100%;
  max-width: none;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(4px, 1vh, 8px);
  padding: 1px 0 0;
  transform-origin: 50% 8%;
  transition:
    transform 920ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 920ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 920ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, filter, opacity;
}

.panel {
  transition: opacity 220ms ease-out;
}

.panel.assistant-quick-quote-focus,
body.assistant-quick-quote-focus .panel {
  opacity: 0 !important;
  pointer-events: none !important;
}

.assistant-shell.assistant-orders-mode {
  grid-template-columns: minmax(320px, 0.76fr) minmax(500px, 1fr);
  place-items: stretch;
  align-items: stretch;
  gap: clamp(14px, 2vw, 22px);
  padding-inline: clamp(14px, 3vw, 34px);
}

.assistant-shell.assistant-orders-mode .assistant-chat {
  width: 100%;
  max-width: none;
}

.assistant-shell.assistant-orders-mode .assistant-message {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
}

.assistant-shell.assistant-orders-mode .assistant-avatar {
  width: 38px;
}

.assistant-shell.assistant-orders-mode .assistant-message-ai .assistant-bubble,
.assistant-shell.assistant-orders-mode .assistant-message-user .assistant-bubble {
  max-width: 100%;
}

.assistant-orders-workspace {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(3, 9, 20, 0.62)),
    rgba(2, 8, 23, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 18px 42px rgba(2, 8, 23, 0.24);
}

.assistant-orders-workspace[hidden] {
  display: none;
}

.assistant-orders-workspace-top {
  min-width: 0;
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.assistant-orders-workspace-top span,
.assistant-orders-workspace-top strong,
.assistant-orders-workspace-top small {
  display: block;
  min-width: 0;
}

.assistant-orders-workspace-top small {
  color: rgba(125, 211, 252, 0.74);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.assistant-orders-workspace-top strong {
  margin-top: 2px;
  color: rgba(248, 250, 252, 0.96);
  font-size: 15px;
  font-weight: 850;
}

.assistant-orders-workspace-top button {
  height: 30px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.36);
  color: rgba(226, 232, 240, 0.82);
  padding: 0 10px;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.assistant-orders-workspace-body {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.26) transparent;
}

.assistant-header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  padding: 0 6px;
  color: rgba(238, 242, 255, 0.94);
}

.assistant-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.assistant-header-actions button {
  min-width: 0;
  height: 28px;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.014)),
    rgba(15, 23, 42, 0.34);
  color: rgba(226, 232, 240, 0.88);
  font: inherit;
  font-size: 11px;
  font-weight: 820;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 9px 20px rgba(2, 8, 23, 0.14);
  transition:
    color 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.assistant-header-actions button:hover {
  border-color: rgba(125, 211, 252, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)),
    rgba(20, 34, 56, 0.58);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.075),
    0 12px 24px rgba(2, 8, 23, 0.2);
  transform: translateY(-1px);
}

.assistant-header-actions button::after {
  display: none;
}

.assistant-header-orders-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.assistant-header-quick-quote-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.assistant-header-orders-button svg {
  width: 13px;
  height: 13px;
  opacity: 0.84;
}

.assistant-header-quick-quote-button svg {
  width: 13px;
  height: 13px;
  opacity: 0.84;
}

.assistant-header-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding: 4px;
  background: rgba(9, 20, 35, 0.82);
  border: 1px solid transparent;
  color: #8bdcff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 5px rgba(45, 212, 191, 0.08),
    0 14px 30px rgba(2, 8, 23, 0.34);
}

.assistant-header strong,
.assistant-header span {
  display: block;
  min-width: 0;
}

.assistant-header strong {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.assistant-header span {
  margin-top: 1px;
  color: rgba(203, 213, 225, 0.72);
  font-size: 11px;
  font-weight: 650;
}

.assistant-quick-quote-modal {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 30px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 460ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.assistant-quick-quote-modal[hidden] {
  display: none;
}

.assistant-quick-quote-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.assistant-quick-quote-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.5);
}

.assistant-quick-quote-modal__panel {
  position: relative;
  width: min(620px, 100%);
  border: 1px solid rgba(120, 176, 220, 0.35);
  border-radius: 14px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(19, 52, 84, 0.52), transparent 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)),
    rgba(10, 18, 33, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 22px 48px rgba(2, 6, 23, 0.5);
  transform: translateY(12px) scale(0.985);
  opacity: 0;
  transition:
    transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 560ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: 110ms;
}

.assistant-quick-quote-modal.is-open .assistant-quick-quote-modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.assistant-quick-quote-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px 11px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.assistant-quick-quote-modal__head strong {
  display: block;
  color: rgba(248, 250, 252, 0.96);
  font-size: 17px;
  font-weight: 860;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.assistant-quick-quote-modal__head small {
  display: block;
  margin-top: 2px;
  color: rgba(203, 213, 225, 0.72);
  font-size: 13px;
  font-weight: 630;
}

.assistant-quick-quote-modal__close {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(119, 170, 212, 0.4);
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.46);
  color: rgba(226, 232, 240, 0.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.assistant-quick-quote-modal__close:hover,
.assistant-quick-quote-modal__close:focus {
  border-color: rgba(125, 211, 252, 0.45);
  color: #fff;
  outline: none;
}

.assistant-quick-quote-modal__body {
  padding: 12px 16px 15px;
}

.assistant-quick-quote-form {
  display: grid;
  gap: 9px;
}

.assistant-quick-quote-field {
  display: grid;
  gap: 6px;
}

.assistant-quick-quote-field label {
  color: rgba(226, 232, 240, 0.82);
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.assistant-qq-brand-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.assistant-qq-brand-tile {
  position: relative;
  min-width: 0;
  height: 50px;
  border: 1px solid rgba(130, 161, 198, 0.25);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(12, 21, 39, 0.84);
  color: rgba(226, 232, 240, 0.9);
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: center;
  padding: 4px 5px 3px;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.assistant-qq-brand-tile:hover {
  border-color: rgba(141, 201, 255, 0.5);
  transform: translateY(-1px);
}

.assistant-qq-brand-tile.is-selected {
  border-color: rgba(165, 219, 255, 0.86);
  box-shadow:
    0 0 0 1px rgba(165, 219, 255, 0.45),
    0 0 16px rgba(123, 208, 255, 0.4);
}

.assistant-qq-brand-logo-wrap {
  width: 30px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.assistant-qq-brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.18));
}

.assistant-qq-brand-glyph {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(163, 194, 222, 0.5);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.2), rgba(10, 18, 33, 0.6));
  color: rgba(240, 249, 255, 0.94);
  font-size: 10px;
  font-weight: 840;
  letter-spacing: 0.03em;
  display: none;
  align-items: center;
  justify-content: center;
}

.assistant-qq-brand-name {
  max-width: 100%;
  font-size: 8px;
  font-weight: 730;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.assistant-qq-selected-brand {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid rgba(139, 193, 241, 0.34);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)),
    rgba(8, 20, 38, 0.75);
}

.assistant-qq-selected-brand small {
  color: rgba(196, 214, 234, 0.8);
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.assistant-qq-selected-brand strong {
  color: rgba(227, 245, 255, 0.96);
  font-size: 11px;
  font-weight: 840;
  letter-spacing: 0.02em;
}

.assistant-quick-quote-field input {
  width: 100%;
  height: 37px;
  border: 1px solid rgba(229, 173, 93, 0.64);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.008)),
    rgba(9, 16, 30, 0.9);
  color: rgba(241, 245, 249, 0.96);
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 199, 111, 0.1);
}

.assistant-quick-quote-field input:focus {
  border-color: rgba(255, 205, 128, 0.92);
  box-shadow:
    0 0 0 1px rgba(255, 205, 128, 0.7),
    0 0 16px rgba(255, 187, 92, 0.36);
  outline: none;
}

.assistant-quick-quote-submit {
  position: relative;
  isolation: isolate;
  height: 39px;
  border: 1px solid rgba(110, 196, 255, 0.44);
  border-radius: 10px;
  background:
    radial-gradient(95% 145% at 10% 0%, rgba(56, 189, 248, 0.34), transparent 60%),
    linear-gradient(180deg, rgba(29, 78, 216, 0.46) 0%, rgba(8, 47, 73, 0.72) 100%),
    rgba(9, 18, 36, 0.94);
  color: rgba(236, 249, 255, 0.98);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(8, 47, 73, 0.65),
    0 10px 20px rgba(2, 8, 23, 0.34),
    0 0 0 1px rgba(56, 189, 248, 0.12);
  transition:
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 180ms ease,
    box-shadow 200ms ease,
    filter 180ms ease;
}

.assistant-quick-quote-submit::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.02));
  opacity: 0.62;
  pointer-events: none;
  z-index: -1;
}

.assistant-quick-quote-submit:disabled {
  opacity: 0.58;
  cursor: wait;
  filter: saturate(0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 6px 14px rgba(2, 8, 23, 0.2);
}

.assistant-quick-quote-submit:hover {
  border-color: rgba(125, 211, 252, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 14px 24px rgba(2, 8, 23, 0.44),
    0 0 18px rgba(56, 189, 248, 0.42);
  transform: translateY(-1px);
}

.assistant-quick-quote-submit:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

.assistant-qq-visual {
  margin-top: 11px;
  border: 1px solid rgba(83, 138, 188, 0.35);
  border-radius: 12px;
  background:
    radial-gradient(120% 120% at 12% 6%, rgba(21, 97, 170, 0.24), transparent 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008)),
    rgba(6, 17, 34, 0.88);
  padding: 8px 11px 10px;
}

.assistant-qq-visual-stage {
  position: relative;
  height: 66px;
  border-radius: 9px;
  background:
    linear-gradient(120deg, rgba(45, 212, 191, 0.18), transparent 34%),
    radial-gradient(circle at 84% 20%, rgba(251, 191, 36, 0.24), transparent 38%),
    rgba(4, 12, 26, 0.72);
  overflow: hidden;
}

.assistant-qq-scan-beam {
  position: absolute;
  inset: -18% -20% -18% auto;
  width: 56%;
  background: linear-gradient(90deg, transparent, rgba(79, 240, 220, 0.4), transparent);
  transform: skewX(-24deg) translateX(120%);
  animation: assistantQQScanBeam 2.6s linear infinite;
}

.assistant-qq-car-wire {
  position: absolute;
  left: 16%;
  top: 44%;
  width: 68%;
  height: 1px;
  background: rgba(138, 233, 255, 0.42);
  box-shadow:
    0 -9px 0 rgba(138, 233, 255, 0.14),
    0 9px 0 rgba(138, 233, 255, 0.14);
}

.assistant-qq-radar-arc {
  position: absolute;
  right: 12%;
  top: 14%;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: 2px solid rgba(250, 204, 21, 0.4);
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(20deg);
  animation: assistantQQRadarArc 2.2s linear infinite;
}

.assistant-qq-visual small {
  display: block;
  margin-top: 7px;
  color: rgba(196, 215, 238, 0.8);
  font-size: 11px;
  font-weight: 620;
  text-align: center;
}

.assistant-qq-visual[data-state="loading"] small {
  color: rgba(186, 235, 255, 0.96);
}

.assistant-qq-visual[data-state="success"] small {
  color: rgba(134, 239, 172, 0.96);
}

.assistant-qq-visual[data-state="error"] small {
  color: rgba(254, 202, 202, 0.96);
}

.assistant-quick-quote-result {
  margin-top: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.012)),
    rgba(5, 11, 25, 0.7);
  padding: 11px 12px;
  min-height: 46px;
  transition:
    border-color 240ms ease,
    box-shadow 240ms ease,
    transform 240ms ease,
    filter 240ms ease,
    background 240ms ease;
}

.assistant-quick-quote-result.is-error {
  border-color: rgba(248, 113, 113, 0.42);
  background:
    linear-gradient(180deg, rgba(248, 113, 113, 0.08), rgba(248, 113, 113, 0.016)),
    rgba(35, 10, 17, 0.62);
}

.assistant-quick-quote-result strong {
  display: block;
  color: rgba(248, 250, 252, 0.96);
  font-size: 13px;
  font-weight: 760;
}

.assistant-quick-quote-result span {
  display: block;
  margin-top: 4px;
  color: rgba(203, 213, 225, 0.86);
  font-size: 12px;
  font-weight: 620;
}

.assistant-quick-quote-compatible {
  margin-top: 9px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(56, 189, 248, 0.05), rgba(56, 189, 248, 0.012)),
    rgba(5, 14, 31, 0.68);
  padding: 10px 11px;
}

.assistant-quick-quote-compatible.is-loading strong,
.assistant-quick-quote-compatible.is-error strong,
.assistant-quick-quote-compatible.is-empty strong {
  display: block;
  color: rgba(239, 246, 255, 0.95);
  font-size: 12px;
  font-weight: 760;
}

.assistant-quick-quote-compatible.is-loading span,
.assistant-quick-quote-compatible.is-error span,
.assistant-quick-quote-compatible.is-empty span {
  display: block;
  margin-top: 4px;
  color: rgba(191, 219, 254, 0.84);
  font-size: 11px;
  font-weight: 610;
}

.assistant-quick-quote-compatible.is-loading {
  border-color: rgba(56, 189, 248, 0.38);
}

.assistant-quick-quote-compatible.is-error {
  border-color: rgba(251, 113, 133, 0.42);
  background:
    linear-gradient(180deg, rgba(239, 68, 68, 0.1), rgba(127, 29, 29, 0.04)),
    rgba(29, 10, 19, 0.62);
}

.assistant-quick-quote-compatible.is-empty {
  border-color: rgba(250, 204, 21, 0.34);
  background:
    linear-gradient(180deg, rgba(234, 179, 8, 0.08), rgba(113, 63, 18, 0.04)),
    rgba(28, 20, 8, 0.58);
}

.assistant-quick-quote-compatible__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.assistant-quick-quote-compatible__head strong {
  color: rgba(236, 254, 255, 0.97);
  font-size: 12px;
  font-weight: 780;
}

.assistant-quick-quote-compatible__head small {
  color: rgba(147, 197, 253, 0.78);
  font-size: 10px;
  font-weight: 670;
}

.assistant-quick-quote-compatible__summary {
  margin: 5px 0 0;
  color: rgba(191, 219, 254, 0.84);
  font-size: 11px;
  font-weight: 600;
}

.assistant-quick-quote-compatible__list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 132px;
  overflow: auto;
}

.assistant-quick-quote-compatible__list li {
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-radius: 999px;
  padding: 4px 9px;
  color: rgba(226, 232, 240, 0.92);
  font-size: 10px;
  font-weight: 640;
  background: rgba(2, 18, 42, 0.68);
}

.assistant-quick-quote-modal.is-result-focus .assistant-quick-quote-modal__head,
.assistant-quick-quote-modal.is-result-focus .assistant-quick-quote-form,
.assistant-quick-quote-modal.is-result-focus .assistant-qq-visual,
.assistant-quick-quote-modal.is-result-focus .assistant-quick-quote-result,
.assistant-quick-quote-modal.is-result-focus .assistant-quick-quote-compatible {
  filter: blur(2px) saturate(0.72) brightness(0.72);
  opacity: 0.35;
  transform: scale(0.99);
  pointer-events: none;
  transition: filter 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.assistant-qq-result-focus {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 14px;
}

.assistant-qq-result-focus__backdrop {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(3, 8, 20, 0.52);
}

.assistant-qq-result-focus__card {
  position: relative;
  width: min(92%, 500px);
  border-radius: 14px;
  border: 1px solid rgba(168, 200, 232, 0.62);
  background:
    radial-gradient(100% 130% at 8% 0%, rgba(56, 189, 248, 0.14), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)),
    rgba(7, 16, 33, 0.97);
  box-shadow:
    0 0 0 1px rgba(236, 245, 255, 0.16) inset,
    0 8px 22px rgba(2, 8, 23, 0.44),
    0 0 10px rgba(125, 211, 252, 0.16);
  padding: 15px 15px 14px;
  transform: scale(0.88) translateY(14px);
  opacity: 0;
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease;
}

.assistant-qq-result-focus.is-open .assistant-qq-result-focus__card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.assistant-qq-result-focus__card small {
  display: block;
  color: rgba(191, 219, 254, 0.86);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.assistant-qq-result-focus__card strong {
  display: block;
  margin-top: 6px;
  color: rgba(241, 245, 249, 0.98);
  font-size: 22px;
  font-weight: 840;
  line-height: 1.25;
}

.assistant-qq-result-focus__card span {
  display: block;
  margin-top: 7px;
  color: rgba(226, 232, 240, 0.9);
  font-size: 14px;
  font-weight: 700;
}

.assistant-qq-result-focus-price {
  display: block;
  color: #86efac;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-shadow:
    0 0 10px rgba(134, 239, 172, 0.36),
    0 0 20px rgba(74, 222, 128, 0.2);
}

.assistant-qq-result-focus-meta {
  display: block;
  margin-top: 6px;
  color: rgba(226, 232, 240, 0.8);
  font-size: 13px;
  font-weight: 680;
}

.assistant-qq-result-focus__close {
  margin-top: 13px;
  width: 100%;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(125, 211, 252, 0.56);
  background:
    linear-gradient(180deg, rgba(56, 189, 248, 0.24), rgba(14, 116, 144, 0.22)),
    rgba(9, 24, 43, 0.9);
  color: rgba(236, 254, 255, 0.98);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.assistant-qq-result-focus__close:hover {
  border-color: rgba(168, 214, 244, 0.78);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.24) inset;
}

@keyframes assistantQQScanBeam {
  0% { transform: skewX(-24deg) translateX(120%); }
  100% { transform: skewX(-24deg) translateX(-170%); }
}

@keyframes assistantQQRadarArc {
  0% { transform: rotate(0deg); opacity: 0.5; }
  50% { opacity: 1; }
  100% { transform: rotate(360deg); opacity: 0.5; }
}

@media (max-width: 760px) {
  .assistant-quick-quote-modal__panel {
    width: min(94vw, 560px);
  }

  .assistant-qq-brand-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.assistant-messages {
  position: relative;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(10px, 1.7vh, 14px);
  overflow-y: auto;
  padding: clamp(3px, 0.8vh, 8px) clamp(6px, 1.2vw, 10px) 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.28) transparent;
}

.assistant-messages.has-past {
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 56px,
    #000 calc(100% - 10px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 56px,
    #000 calc(100% - 10px),
    transparent 100%
  );
}

.assistant-message {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  overflow: visible;
}

.assistant-message-user {
  display: flex;
  justify-content: flex-end;
}

.assistant-message--batch {
  display: block;
  align-self: stretch;
  width: 100%;
  max-width: none;
  gap: 0;
}

.assistant-message--batch .assistant-avatar {
  display: none;
}

.assistant-avatar {
  width: 40px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-top: 3px;
  padding: 0;
  background: transparent;
  border: 0;
  color: #8bdcff;
  box-shadow: none;
  overflow: visible;
}

.assistant-avatar-logo {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
}

.assistant-bubble {
  min-width: 0;
  max-width: min(100%, 460px);
  border-radius: 8px;
  color: rgba(238, 242, 255, 0.92);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.assistant-message-ai .assistant-bubble {
  width: 100%;
  max-width: min(1180px, 100%);
  padding-top: 7px;
  color: rgba(238, 242, 255, 0.9);
}

.assistant-message-ai .assistant-bubble.assistant-bubble--batch {
  display: block;
  width: 100%;
  max-width: 100%;
  padding-top: 0;
}

.assistant-message-user .assistant-bubble {
  padding: 11px 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(42, 51, 78, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 10px 22px rgba(2, 8, 23, 0.14);
}

.assistant-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.assistant-quick-action-button {
  position: relative;
  min-width: 0;
  height: 35px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.02)),
    rgba(15, 23, 42, 0.4);
  color: rgba(238, 242, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(2, 8, 23, 0.16);
  font: inherit;
  font-size: 13px;
  font-weight: 780;
  cursor: pointer;
  overflow: hidden;
  transition:
    color 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.assistant-quick-action-button::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 10%, rgba(125, 211, 252, 0.2) 48%, transparent 86%);
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}

.assistant-quick-action-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0);
  transition: box-shadow 180ms ease;
}

.assistant-quick-action-button svg {
  width: 13px;
  height: 13px;
  opacity: 0.82;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), color 180ms ease;
}

.assistant-quick-action-button:hover {
  border-color: rgba(125, 211, 252, 0.48);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.026)),
    rgba(28, 40, 64, 0.68);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 30px rgba(2, 8, 23, 0.22);
  transform: translateY(-1px) scale(1.01);
}

.assistant-quick-action-button:hover::before {
  opacity: 1;
  transform: translateX(115%);
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease;
}

.assistant-quick-action-button:hover::after {
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.22);
}

.assistant-quick-action-button:hover svg {
  opacity: 1;
  transform: translateY(-0.5px) scale(1.03);
}

.assistant-quick-action-button:active {
  transform: translateY(0) scale(0.99);
}

.assistant-quick-action-button:focus-visible {
  outline: none;
  border-color: rgba(125, 211, 252, 0.56);
  box-shadow:
    0 0 0 3px rgba(125, 211, 252, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 28px rgba(2, 8, 23, 0.22);
}

.assistant-message.is-loading .assistant-bubble {
  width: fit-content;
  max-width: min(100%, 620px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 7px;
  color: rgba(148, 163, 184, 0.82);
  background: transparent;
  box-shadow: none;
}

.assistant-message.is-loading .assistant-bubble.assistant-bubble--batch {
  width: 100%;
  max-width: 100%;
}

.assistant-loading-text {
  display: inline-block;
  color: rgba(148, 163, 184, 0.82);
  background:
    linear-gradient(
      100deg,
      rgba(148, 163, 184, 0.82) 0%,
      rgba(148, 163, 184, 0.82) 39%,
      rgba(255, 255, 255, 0.96) 48%,
      rgba(255, 255, 255, 0.96) 52%,
      rgba(148, 163, 184, 0.82) 61%,
      rgba(148, 163, 184, 0.82) 100%
    );
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: assistant-text-sheen 1.35s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.assistant-inline-loading {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(148, 163, 184, 0.82);
}

.assistant-inline-loading .assistant-loading-text {
  font-size: 11px;
  font-weight: 760;
  line-height: 1.2;
}

@keyframes assistant-text-sheen {
  0% {
    background-position: 140% 50%;
  }

  100% {
    background-position: -140% 50%;
  }
}

.assistant-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px 38px;
  align-items: center;
  gap: 9px;
  position: relative;
  z-index: 1;
  transition:
    opacity 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 180ms ease;
}

.assistant-composer.is-busy {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  visibility: hidden;
}

.assistant-input-bar {
  position: relative;
  min-width: 0;
  min-height: 40px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  padding: 0 6px 0 4px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02)),
    linear-gradient(120deg, rgba(56, 189, 248, 0.08), rgba(99, 102, 241, 0.04) 42%, rgba(15, 23, 42, 0.24) 88%),
    rgba(20, 28, 46, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(15, 23, 42, 0.36),
    0 14px 34px rgba(2, 8, 23, 0.3),
    0 4px 18px rgba(56, 189, 248, 0.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.25);
  backdrop-filter: blur(12px) saturate(1.25);
  overflow: hidden;
  transition:
    border-color 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.assistant-input-bar::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(108deg, transparent 12%, rgba(125, 211, 252, 0.3) 48%, transparent 84%);
  opacity: 0;
  transform: translateX(-130%);
  pointer-events: none;
}

.assistant-input-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(125, 211, 252, 0),
    inset 0 10px 18px rgba(255, 255, 255, 0.035);
  transition: box-shadow 180ms ease;
}

.assistant-input-bar:focus-within {
  border-color: rgba(125, 211, 252, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03)),
    linear-gradient(118deg, rgba(56, 189, 248, 0.14), rgba(99, 102, 241, 0.07) 42%, rgba(15, 23, 42, 0.2) 88%),
    rgba(26, 36, 58, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -1px 0 rgba(15, 23, 42, 0.4),
    0 0 0 3px rgba(125, 211, 252, 0.18),
    0 18px 38px rgba(2, 8, 23, 0.34),
    0 0 30px rgba(56, 189, 248, 0.16);
}

.assistant-input-bar:focus-within::before {
  opacity: 1;
  transform: translateX(115%);
  transition: transform 820ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease;
}

.assistant-input-bar:focus-within::after {
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.2);
}

.assistant-composer textarea {
  width: 100%;
  max-height: 110px;
  min-height: 37px;
  padding: 9px 4px 7px;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: rgba(241, 245, 255, 0.96);
  font: inherit;
  font-size: 13px;
  font-weight: 740;
  letter-spacing: 0.005em;
  line-height: 1.35;
  overflow: hidden;
}

.assistant-composer textarea::placeholder {
  color: rgba(148, 163, 184, 0.92);
  font-weight: 640;
  font-style: italic;
  letter-spacing: 0.01em;
}

.assistant-tool-button,
.assistant-send-button,
.assistant-round-button {
  width: 38px;
  min-width: 0;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(27, 35, 58, 0.42);
  color: rgba(208, 220, 240, 0.88);
  box-shadow: none;
  cursor: pointer;
  filter: none;
  overflow: visible;
  transition:
    color 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.assistant-tool-button {
  width: 34px;
  height: 34px;
  justify-self: start;
  background: transparent;
  border-color: transparent;
  color: rgba(203, 213, 225, 0.86);
}

.assistant-send-button {
  width: 34px;
  height: 34px;
  justify-self: end;
  border-color: rgba(125, 211, 252, 0.16);
  background:
    linear-gradient(180deg, rgba(125, 211, 252, 0.12), rgba(56, 189, 248, 0.04)),
    rgba(30, 41, 64, 0.5);
}

.assistant-round-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014)),
    rgba(35, 44, 67, 0.82);
  border-color: rgba(148, 163, 184, 0.15);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.048),
    0 10px 24px rgba(2, 8, 23, 0.18);
}

.assistant-tool-button::after,
.assistant-send-button::after,
.assistant-round-button::after {
  display: none;
}

.assistant-tool-button svg,
.assistant-send-button svg,
.assistant-round-button svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.assistant-tool-button:hover,
.assistant-send-button:hover,
.assistant-round-button:hover {
  color: #fff;
  border-color: rgba(125, 211, 252, 0.36);
  background: rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 13px 28px rgba(2, 8, 23, 0.22);
  filter: none;
  transform: translateY(-1px) scale(1.02);
}

.assistant-round-button:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.074), rgba(255, 255, 255, 0.02)),
    rgba(49, 60, 90, 0.86);
}

.assistant-send-button:hover {
  background:
    linear-gradient(180deg, rgba(125, 211, 252, 0.2), rgba(56, 189, 248, 0.08)),
    rgba(30, 41, 64, 0.62);
}

.assistant-tool-button:active,
.assistant-send-button:active,
.assistant-round-button:active {
  transform: translateY(0) scale(0.985);
}

.assistant-tool-button:focus-visible,
.assistant-send-button:focus-visible,
.assistant-round-button:focus-visible,
.assistant-composer textarea:focus-visible {
  outline: none;
}

.assistant-tool-button:focus-visible,
.assistant-send-button:focus-visible,
.assistant-round-button:focus-visible {
  border-color: rgba(125, 211, 252, 0.52);
  box-shadow:
    0 0 0 3px rgba(125, 211, 252, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 26px rgba(2, 8, 23, 0.22);
}

.assistant-send-button:disabled {
  cursor: progress;
  opacity: 0.6;
  transform: none;
  filter: none;
}

.assistant-view-soft .assistant-message-user .assistant-bubble,
.assistant-view-soft .assistant-input-bar,
.assistant-view-soft .assistant-round-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.016)),
    rgba(49, 60, 90, 0.78);
}

@media (max-width: 760px) {
  .assistant-view {
    min-height: min(520px, calc(100dvh - 96px));
  }

  .assistant-shell {
    height: clamp(340px, calc(100dvh - 96px), 620px);
    min-height: min(460px, calc(100dvh - 96px));
    padding: 10px 0 0;
  }

  .assistant-chat {
    min-height: 0;
  }

  .assistant-composer {
    grid-template-columns: minmax(0, 1fr) 36px 36px;
    gap: 7px;
  }

  .assistant-round-button {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 900px) {
  .panel:has(#assistant-view.active) {
    padding: clamp(10px, 2vw, 16px);
  }

  .assistant-shell {
    padding-inline: clamp(10px, 3vw, 22px);
  }

  .assistant-header {
    align-items: flex-start;
    flex-wrap: wrap;
    padding-inline: 4px;
  }

  .assistant-header-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .assistant-message {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
  }

  .assistant-avatar {
    width: 36px;
    height: 32px;
  }

  .assistant-message-ai .assistant-bubble,
  .assistant-message-user .assistant-bubble {
    max-width: 100%;
  }
}

@media (max-width: 1040px) {
  .assistant-shell.assistant-orders-mode {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(280px, 0.92fr) minmax(320px, 1fr);
  }
}

@media (max-height: 680px) and (min-width: 761px) {
  .assistant-view,
  .assistant-shell {
    min-height: min(440px, calc(100dvh - 126px));
  }

  .assistant-shell {
    height: clamp(320px, calc(100dvh - 126px), 560px);
    padding-block: 8px 10px;
  }

  .assistant-header {
    min-height: 38px;
    padding-block: 2px;
  }

  .assistant-composer textarea {
    max-height: 84px;
  }
}

/* ------------------------------------------------------------------
   Assistant Supreme Final Layer (single-source override, 2026-05-31)
   ------------------------------------------------------------------ */

:root {
  --assistant-home-width: 760px;
}

/* Keep only chat surface when assistant tab is active */
.panel:has(#assistant-view.active) .toolbar,
.panel:has(#assistant-view.active) #quote-view {
  display: none !important;
}

/* Hard kill for all container cards/backgrounds in assistant area */
section.panel[aria-labelledby="tab-assistant"],
section.panel[aria-labelledby="tab-assistant"]::before,
section.panel[aria-labelledby="tab-assistant"]::after,
section.panel[aria-labelledby="tab-assistant"] > .view,
section.panel[aria-labelledby="tab-assistant"] > .view.active,
section.panel[aria-labelledby="tab-assistant"] > #assistant-view {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  animation: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

section.panel[aria-labelledby="tab-assistant"]::before,
section.panel[aria-labelledby="tab-assistant"]::after {
  content: none !important;
  display: none !important;
}

section.panel[aria-labelledby="tab-assistant"] {
  padding: 0 !important;
}

#assistant-view.assistant-view {
  min-height: min(700px, calc(100dvh - 108px));
  background: transparent !important;
  overflow: visible !important;
}

#assistant-view .assistant-shell {
  min-height: min(700px, calc(100dvh - 108px));
  height: min(780px, calc(100dvh - 108px));
  padding: 0 clamp(14px, 2.8vw, 38px) clamp(20px, 3.2vh, 32px);
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#assistant-view .assistant-chat {
  width: min(1060px, 100%);
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(8px, 1.2vh, 14px);
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#assistant-view .assistant-header {
  min-height: 50px;
  padding: 4px 0 0;
}

#assistant-view .assistant-header-actions {
  gap: 9px;
}

#assistant-view .assistant-messages {
  align-items: stretch;
  justify-content: flex-start;
  gap: clamp(10px, 1.6vh, 15px);
  padding: clamp(2px, 0.45vh, 6px) clamp(0px, 0.8vw, 8px) 10px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.24) transparent;
}

#assistant-view .assistant-messages::-webkit-scrollbar {
  width: 7px;
}

#assistant-view .assistant-messages::-webkit-scrollbar-track {
  background: transparent;
}

#assistant-view .assistant-messages::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.26);
}

#assistant-view .assistant-messages.has-past {
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

#assistant-view .assistant-composer {
  width: min(980px, 100%);
  margin: 0 auto;
}

.assistant-home-chip-row {
  display: none;
  grid-column: 1 / -1;
  width: min(var(--assistant-home-width), 100%);
  margin: 2px auto 0;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.assistant-home-chip {
  height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.38);
  color: rgba(226, 232, 240, 0.92);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.assistant-home-chip svg {
  width: 12px;
  height: 12px;
  opacity: 0.9;
}

.assistant-home-chip:hover {
  border-color: rgba(125, 211, 252, 0.5);
  background: rgba(30, 41, 64, 0.72);
  color: rgba(248, 250, 252, 0.98);
  box-shadow: 0 10px 22px rgba(2, 8, 23, 0.26);
  transform: translateY(-1px);
}

.assistant-home-chip:focus-visible {
  outline: none;
  border-color: rgba(125, 211, 252, 0.64);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.2);
}

.assistant-home-chip--action {
  border-color: rgba(125, 211, 252, 0.42);
  background:
    linear-gradient(180deg, rgba(56, 189, 248, 0.18), rgba(37, 99, 235, 0.12)),
    rgba(22, 35, 60, 0.8);
  color: rgba(236, 254, 255, 0.98);
}

/* Hide default welcome bubble after real interaction */
#assistant-view .assistant-messages:has(.assistant-message-welcome):has(.assistant-message:not(.assistant-message-welcome)) .assistant-message-welcome {
  display: none !important;
}

/* HOME STAGE (only welcome) */
#assistant-view .assistant-shell.assistant-home-stage .assistant-chat {
  grid-template-rows: auto auto 1fr !important;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-header {
  min-height: 54px;
  padding: 8px 0 0;
  justify-content: center;
  border: 0;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-header > div:first-child {
  display: none !important;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-header-actions {
  width: auto;
  margin: 0;
  justify-content: center;
  gap: 10px;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-header-quick-quote-button,
#assistant-view .assistant-shell.assistant-home-stage .assistant-header-orders-button {
  height: 34px;
  padding: 0 14px;
  border-radius: 11px;
  border-color: rgba(148, 163, 184, 0.36);
  background: rgba(15, 23, 42, 0.44);
  color: rgba(226, 232, 240, 0.93);
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-messages {
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: clamp(56px, 11vh, 126px) 0 0;
  overflow: hidden !important;
  scrollbar-width: none;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-messages::-webkit-scrollbar {
  width: 0;
  height: 0;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-messages::before {
  content: "Como posso te ajudar?";
  max-width: none;
  color: rgba(241, 245, 255, 0.98);
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 820;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-align: center;
  white-space: nowrap;
  text-wrap: nowrap;
  text-shadow: 0 22px 46px rgba(2, 8, 23, 0.45);
  transition: opacity 180ms ease, transform 220ms ease;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-message {
  display: none !important;
}

#assistant-view .assistant-shell.assistant-home-stage.assistant-home-intro-running .assistant-messages::before,
#assistant-view .assistant-shell.assistant-home-stage.assistant-home-intro-done .assistant-messages::before {
  content: none;
}

#assistant-view .assistant-shell.assistant-home-stage.assistant-home-intro-running .assistant-header-actions {
  visibility: hidden;
  opacity: 0;
}

#assistant-view .assistant-shell.assistant-home-stage.assistant-home-intro-running .assistant-message {
  display: flex !important;
  opacity: 0;
  transform: translateY(22px);
  animation: assistantIntroMessageIn 620ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

#assistant-view .assistant-shell.assistant-home-stage.assistant-home-intro-running .assistant-message .assistant-bubble,
#assistant-view .assistant-shell.assistant-home-stage.assistant-home-intro-done .assistant-message .assistant-bubble {
  white-space: nowrap;
  overflow: hidden;
}

#assistant-view .assistant-shell.assistant-home-stage.assistant-home-intro-running .assistant-composer {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

#assistant-view .assistant-shell.assistant-home-stage.assistant-home-intro-done .assistant-message {
  display: flex !important;
  opacity: 1;
  transform: translateY(0);
}

#assistant-view .assistant-shell.assistant-home-stage.assistant-home-intro-done .assistant-composer {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 340ms ease, transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes assistantIntroMessageIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-composer {
  align-self: start;
  width: min(var(--assistant-home-width), 100%);
  margin: clamp(20px, 3.6vh, 34px) auto 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-home-chip-row {
  display: flex;
}

#assistant-view .assistant-home-input-meta {
  display: none;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-input-bar {
  min-height: 68px;
  border-radius: 17px;
  border-color: rgba(148, 163, 184, 0.27);
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 0;
  padding: 7px 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.018)),
    linear-gradient(108deg, rgba(56, 189, 248, 0.1), rgba(67, 56, 202, 0.06) 46%, rgba(15, 23, 42, 0.2) 88%),
    rgba(14, 21, 35, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(15, 23, 42, 0.34),
    0 18px 38px rgba(2, 8, 23, 0.34);
  overflow: visible;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-input-bar::before {
  display: none;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-input-bar:focus-within {
  border-color: rgba(125, 211, 252, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(15, 23, 42, 0.38),
    0 0 0 2px rgba(125, 211, 252, 0.14),
    0 20px 42px rgba(2, 8, 23, 0.4),
    0 0 20px rgba(56, 189, 248, 0.14);
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-composer textarea {
  grid-row: 1;
  grid-column: 2;
  min-height: 18px;
  max-height: 30px;
  padding: 0 3px 0 0;
  font-size: 12px;
  font-weight: 510;
  letter-spacing: 0;
  line-height: 1.2;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-composer textarea::placeholder {
  font-size: 12px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0;
  color: rgba(203, 213, 225, 0.78);
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-input-bar[data-home-mode="quote"] textarea {
  opacity: 0;
  pointer-events: none;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-input-bar[data-home-mode="sheet"] textarea {
  opacity: 0;
  pointer-events: none;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-input-bar[data-home-mode="quote"] {
  grid-template-columns: auto;
  justify-items: start;
  min-height: 50px;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-input-bar[data-home-mode="sheet"] {
  grid-template-columns: auto;
  justify-items: start;
  min-height: 50px;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-input-bar[data-home-mode="quote"] .assistant-home-input-meta {
  grid-column: 1;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-input-bar[data-home-mode="sheet"] .assistant-home-input-meta {
  grid-column: 1;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-tool-button,
#assistant-view .assistant-shell.assistant-home-stage .assistant-send-button {
  display: none !important;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-home-input-meta {
  grid-row: 1;
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 24px;
  position: relative;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-home-mode-pill {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(8, 14, 26, 0.38);
  color: rgba(226, 232, 240, 0.86);
  font: inherit;
  font-size: 9px;
  font-weight: 650;
  cursor: pointer;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-home-mode-pill[aria-expanded="true"] {
  border-color: rgba(125, 211, 252, 0.42);
  background: rgba(10, 17, 30, 0.62);
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-home-mode-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background:
    conic-gradient(from 150deg, #22d3ee, #4f46e5, #22d3ee);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-home-mode-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 160;
  min-width: 182px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)),
    rgba(6, 12, 23, 0.98);
  box-shadow:
    0 20px 40px rgba(2, 8, 23, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-home-mode-option {
  width: 100%;
  height: 33px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(226, 232, 240, 0.88);
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  text-align: left;
  padding: 0 10px;
  cursor: pointer;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-home-mode-option:hover,
#assistant-view .assistant-shell.assistant-home-stage .assistant-home-mode-option.is-active {
  border-color: rgba(125, 211, 252, 0.34);
  background: rgba(28, 43, 68, 0.56);
  color: rgba(241, 245, 255, 0.96);
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-round-button {
  display: none !important;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-home-chip-row {
  justify-content: flex-start;
  margin-top: 0;
  padding-left: 2px;
  gap: 7px;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-home-quote-grid {
  margin-top: 4px;
  padding-left: 2px;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 7px;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-home-sheet-panel {
  margin-top: 4px;
  padding-left: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-home-sheet-upload {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.42);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.18), rgba(37, 99, 235, 0.12)), rgba(22, 35, 60, 0.8);
  color: rgba(236, 254, 255, 0.98);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-home-sheet-template {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(14, 22, 38, 0.5);
  color: rgba(226, 232, 240, 0.92);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-home-sheet-template:hover {
  border-color: rgba(125, 211, 252, 0.42);
  background: rgba(26, 37, 60, 0.74);
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-home-sheet-panel small {
  color: rgba(196, 214, 234, 0.82);
  font-size: 11px;
  font-weight: 520;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-home-quote-tile {
  height: 56px;
  border-radius: 10px;
  box-shadow: none;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-home-chip {
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(14, 22, 38, 0.5);
  font-size: 11px;
  font-weight: 640;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-home-chip:hover {
  border-color: rgba(125, 211, 252, 0.42);
  background: rgba(26, 37, 60, 0.74);
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-home-chip--action {
  border-color: rgba(125, 211, 252, 0.38);
  background:
    linear-gradient(180deg, rgba(56, 189, 248, 0.16), rgba(37, 99, 235, 0.1)),
    rgba(20, 32, 54, 0.78);
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-composer.assistant-preview-open .assistant-home-chip-row {
  display: none !important;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-composer.assistant-preview-open .assistant-home-quote-grid {
  display: none !important;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-composer.assistant-preview-open .assistant-home-sheet-panel {
  display: none !important;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-composer.assistant-preview-open {
  margin-top: clamp(14px, 2.8vh, 26px);
}

#assistant-view .assistant-shell.assistant-home-stage.assistant-preview-open .assistant-messages::before {
  opacity: 0.44;
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  #assistant-view .assistant-shell {
    padding: 0 12px 18px;
  }

  #assistant-view .assistant-shell.assistant-home-stage .assistant-messages {
    padding-top: clamp(42px, 9vh, 92px);
  }

  #assistant-view .assistant-shell.assistant-home-stage .assistant-messages::before {
    font-size: clamp(30px, 8.2vw, 46px);
    line-height: 1.02;
  }

  #assistant-view .assistant-shell.assistant-home-stage .assistant-composer {
    width: 100%;
    margin-top: 18px;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  #assistant-view .assistant-shell.assistant-home-stage .assistant-input-bar {
    min-height: 76px;
    border-radius: 16px;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    column-gap: 8px;
    padding: 9px 10px;
  }

  #assistant-view .assistant-shell.assistant-home-stage .assistant-composer textarea {
    min-height: 18px;
    max-height: 32px;
    font-size: 12px;
  }

  #assistant-view .assistant-shell.assistant-home-stage .assistant-composer textarea::placeholder {
    font-size: 11px;
  }

  #assistant-view .assistant-shell.assistant-home-stage .assistant-home-chip-row {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  #assistant-view .assistant-shell.assistant-home-stage .assistant-home-quote-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  #assistant-view .assistant-shell.assistant-home-stage .assistant-home-input-meta {
    gap: 8px;
  }

  #assistant-view .assistant-shell.assistant-home-stage .assistant-home-mode-pill {
    font-size: 9px;
    padding: 0 8px;
  }
}

@media (max-height: 760px) and (min-width: 981px) {
  #assistant-view .assistant-shell.assistant-home-stage .assistant-messages {
    padding-top: clamp(28px, 6vh, 58px);
  }

  #assistant-view .assistant-shell.assistant-home-stage .assistant-composer {
    margin-top: 14px;
  }
}
