.assistant-vehicle-options {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  min-width: min(480px, 100%);
}

.assistant-vehicle-preview {
  position: absolute;
  left: 0;
  right: 102px;
  bottom: calc(100% + 12px);
  z-index: 24;
  display: grid;
  gap: 8px;
  max-height: min(360px, calc(100vh - 238px));
  padding: 11px;
  overflow-y: auto;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(28, 37, 60, 0.94), rgba(12, 18, 34, 0.95)),
    rgba(9, 14, 28, 0.84);
  box-shadow:
    0 22px 52px rgba(2, 8, 23, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
  -webkit-backdrop-filter: blur(18px) saturate(1.06);
  backdrop-filter: blur(18px) saturate(1.06);
  scrollbar-width: none;
}

#assistant-view .assistant-shell.assistant-home-stage .assistant-vehicle-preview {
  left: 0 !important;
  right: 0 !important;
  top: calc(100% + 10px) !important;
  bottom: auto !important;
  z-index: 42 !important;
  max-height: min(340px, 42vh);
  border-radius: 18px;
  border-color: rgba(148, 163, 184, 0.28);
  background:
    linear-gradient(180deg, rgba(26, 35, 58, 0.96), rgba(12, 18, 34, 0.96)),
    rgba(9, 14, 28, 0.88);
  box-shadow:
    0 22px 52px rgba(2, 8, 23, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform-origin: top center;
  animation: assistantPreviewDropIn 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes assistantPreviewDropIn {
  0% {
    opacity: 0;
    transform: translateY(-6px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.assistant-vehicle-preview::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.assistant-vehicle-preview[hidden] {
  display: none;
}

.assistant-vehicle-preview-head,
.assistant-vehicle-preview-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 3px 8px;
  color: rgba(238, 242, 255, 0.92);
}

.assistant-vehicle-preview-status {
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
  padding: 8px 9px;
}

.assistant-vehicle-preview-head strong,
.assistant-vehicle-preview-status strong {
  font-size: 12px;
  font-weight: 820;
  line-height: 1.25;
}

.assistant-vehicle-preview-head small,
.assistant-vehicle-preview-status small {
  color: rgba(203, 213, 225, 0.68);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.25;
}

.assistant-vehicle-preview-option {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(74px, 0.26fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.3);
  color: rgba(238, 242, 255, 0.92);
  cursor: pointer;
  text-align: left;
  transition:
    background 170ms ease,
    border-color 170ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.assistant-vehicle-preview-option:hover,
.assistant-vehicle-preview-option.is-active {
  border-color: rgba(125, 170, 255, 0.54);
  background: rgba(44, 58, 92, 0.68);
  box-shadow: 0 10px 24px rgba(2, 8, 23, 0.28);
  transform: translateY(-1px);
}

.assistant-vehicle-preview-brand,
.assistant-vehicle-preview-copy,
.assistant-vehicle-preview-copy strong,
.assistant-vehicle-preview-copy small {
  min-width: 0;
  display: block;
}

.assistant-vehicle-preview-brand {
  color: rgba(148, 197, 255, 0.84);
  font-size: 10px;
  font-weight: 850;
  overflow-wrap: anywhere;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.assistant-vehicle-preview-copy strong {
  color: rgba(248, 250, 252, 0.95);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.assistant-vehicle-preview-copy small {
  margin-top: 3px;
  color: rgba(203, 213, 225, 0.72);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.25;
}

.assistant-vehicle-preview-state {
  min-width: 46px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(112, 162, 255, 0.16);
  color: #acd0ff;
  font-size: 10px;
  font-weight: 850;
  text-align: center;
  letter-spacing: 0.02em;
}

.assistant-vehicle-preview-state.no-catalog {
  background: rgba(148, 163, 184, 0.14);
  color: rgba(203, 213, 225, 0.78);
}

.assistant-vehicle-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  border: 1px solid rgba(112, 162, 255, 0.24);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.34);
  color: rgba(238, 242, 255, 0.94);
  cursor: pointer;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.assistant-vehicle-option:hover {
  border-color: rgba(112, 162, 255, 0.5);
  background: rgba(38, 48, 80, 0.72);
  transform: translateY(-1px);
}

.assistant-vehicle-option:disabled {
  cursor: default;
  opacity: 0.56;
  transform: none;
}

.assistant-vehicle-option.is-selected {
  opacity: 1;
  border-color: rgba(112, 162, 255, 0.72);
  background: rgba(47, 65, 112, 0.72);
}

.assistant-vehicle-option span,
.assistant-vehicle-option strong,
.assistant-vehicle-option small {
  display: block;
  min-width: 0;
}

.assistant-vehicle-option strong {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.assistant-vehicle-option small {
  margin-top: 4px;
  color: rgba(203, 213, 225, 0.72);
  font-size: 11px;
  font-weight: 650;
}

.assistant-vehicle-option em {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(112, 162, 255, 0.16);
  color: #9cc0ff;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.assistant-part-results {
  display: grid;
  gap: 10px;
  width: min(820px, 100%);
  min-width: 0;
  margin-top: 12px;
}

.assistant-upload-card {
  display: grid;
  gap: 12px;
}

.assistant-brand-quote-card {
  width: min(780px, 100%);
  padding: 12px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(56, 189, 248, 0.08), transparent 56%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.52), rgba(2, 8, 23, 0.4)),
    rgba(2, 8, 23, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 16px 34px rgba(2, 8, 23, 0.2);
}

.assistant-upload-progress-card {
  gap: 10px;
}

.assistant-brand-progress-track {
  position: relative;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.78), rgba(15, 23, 42, 0.68)),
    rgba(2, 6, 23, 0.52);
  overflow: hidden;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(14, 165, 233, 0.06);
}

.assistant-brand-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(56, 189, 248, 0.92), rgba(45, 212, 191, 0.92));
  box-shadow:
    0 0 18px rgba(56, 189, 248, 0.42),
    0 0 26px rgba(45, 212, 191, 0.24);
  transition: width 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.assistant-brand-progress-status {
  color: rgba(191, 219, 254, 0.9);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.01em;
}

.assistant-brand-quote-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.assistant-upload-start.assistant-upload-start--inline {
  grid-area: unset;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
}

.assistant-brand-quote-results {
  display: grid;
  gap: 8px;
}

.assistant-brand-quote-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.34);
}

.assistant-brand-quote-row.is-miss {
  border-color: rgba(244, 114, 182, 0.22);
  background: rgba(244, 114, 182, 0.07);
}

.assistant-brand-quote-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.assistant-brand-quote-main strong {
  color: rgba(241, 245, 249, 0.94);
  font-size: 13px;
  line-height: 1.2;
}

.assistant-brand-quote-main span {
  color: rgba(191, 219, 254, 0.86);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.assistant-brand-quote-meta {
  text-align: right;
  display: grid;
  gap: 2px;
  justify-items: end;
}

.assistant-brand-quote-meta small {
  color: rgba(148, 163, 184, 0.86);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.assistant-brand-quote-meta b {
  color: rgba(226, 232, 240, 0.96);
  font-size: 13px;
  line-height: 1.15;
}

.assistant-upload-card-head span,
.assistant-upload-card-head strong,
.assistant-upload-card-head small {
  display: block;
}

.assistant-upload-card-head span {
  color: rgba(45, 212, 191, 0.82);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.assistant-upload-card-head strong {
  margin-top: 3px;
  color: rgba(248, 250, 252, 0.95);
  font-size: 13px;
}

.assistant-upload-card-head small {
  margin-top: 3px;
  color: rgba(203, 213, 225, 0.74);
  font-size: 11px;
  line-height: 1.35;
}

.assistant-upload-sample {
  display: grid;
  grid-template-columns: minmax(190px, 235px) minmax(210px, 1fr) minmax(116px, auto);
  grid-template-areas:
    "field presets start"
    "error error start";
  align-items: stretch;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(112, 162, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.42), rgba(15, 23, 42, 0.22)),
    rgba(2, 8, 23, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.assistant-upload-field {
  grid-area: field;
  display: grid;
  grid-template-columns: 1fr 88px;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.assistant-upload-field label {
  color: rgba(226, 232, 240, 0.74);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.assistant-upload-field input {
  width: 88px;
  height: 34px;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.7);
  color: rgba(248, 250, 252, 0.96);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.assistant-upload-presets {
  grid-area: presets;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.36);
}

.assistant-upload-presets button,
.assistant-upload-start {
  border: 0;
  color: rgba(226, 232, 240, 0.82);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.assistant-upload-presets button {
  height: 34px;
  min-width: 0;
  border-right: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 0;
  background: transparent;
  transition: background 160ms ease, color 160ms ease;
}

.assistant-upload-presets button:last-child {
  border-right: 0;
}

.assistant-upload-presets button:hover {
  background: rgba(112, 162, 255, 0.12);
  color: rgba(248, 250, 252, 0.96);
}

.assistant-upload-start {
  grid-area: start;
  min-height: 77px;
  padding: 0 14px;
  border: 1px solid rgba(45, 212, 191, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(20, 184, 166, 0.2), rgba(15, 118, 110, 0.14)),
    rgba(15, 23, 42, 0.22);
  color: rgba(204, 251, 241, 0.94);
  box-shadow: 0 12px 26px rgba(20, 184, 166, 0.08);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.assistant-upload-start:hover {
  transform: translateY(-1px);
  border-color: rgba(94, 234, 212, 0.5);
  background:
    linear-gradient(180deg, rgba(20, 184, 166, 0.28), rgba(15, 118, 110, 0.18)),
    rgba(15, 23, 42, 0.28);
}

.assistant-upload-error-mode {
  grid-area: error;
  min-height: 34px;
  display: grid;
  grid-template-columns: 30px auto 1fr;
  column-gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.055);
  cursor: pointer;
}

.assistant-upload-error-mode input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.assistant-upload-error-mode span {
  width: 30px;
  height: 16px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.18);
}

.assistant-upload-error-mode span::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 2px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.92);
  transition: transform 180ms ease, background 180ms ease;
}

.assistant-upload-error-mode input:checked + span {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(245, 158, 11, 0.22);
}

.assistant-upload-error-mode input:checked + span::before {
  transform: translateX(14px);
  background: rgba(253, 230, 138, 0.98);
}

.assistant-upload-error-mode strong {
  color: rgba(254, 243, 199, 0.94);
  font-size: 11px;
  line-height: 1.15;
  white-space: nowrap;
}

.assistant-upload-error-mode small {
  min-width: 0;
  color: rgba(254, 215, 170, 0.72);
  font-size: 9px;
  line-height: 1.25;
}

@media (max-width: 840px) {
  .assistant-upload-sample {
    grid-template-columns: 1fr;
    grid-template-areas:
      "field"
      "presets"
      "error"
      "start";
    align-items: stretch;
  }

  .assistant-upload-field {
    grid-template-columns: 1fr 92px;
  }

  .assistant-upload-field input,
  .assistant-upload-start {
    width: 100%;
  }

  .assistant-upload-start {
    min-height: 38px;
  }

  .assistant-brand-quote-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .assistant-brand-quote-meta {
    justify-items: start;
    text-align: left;
  }

  .assistant-brand-quote-main span {
    white-space: normal;
  }
}

.assistant-upload-pdf {
  width: max-content;
  margin: 0 0 10px;
  padding: 8px 12px;
  border: 1px solid rgba(45, 212, 191, 0.36);
  border-radius: 8px;
  background: rgba(20, 184, 166, 0.14);
  color: rgba(204, 251, 241, 0.94);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.assistant-upload-order-title {
  display: grid;
  gap: 2px;
  margin: 12px 0 8px;
  padding: 8px 10px;
  border: 1px solid rgba(45, 212, 191, 0.16);
  border-radius: 8px;
  background: rgba(20, 184, 166, 0.08);
}

.assistant-upload-order-title strong {
  color: rgba(240, 253, 250, 0.96);
  font-size: 13px;
}

.assistant-upload-order-title small {
  color: rgba(204, 251, 241, 0.74);
  font-size: 11px;
}

.assistant-application-results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  min-width: min(560px, 100%);
}

.assistant-part-group,
.assistant-application-group {
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid rgba(112, 162, 255, 0.22);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.32);
}

.assistant-part-group {
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-color: rgba(112, 162, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(17, 30, 52, 0.8), rgba(10, 20, 36, 0.58)),
    rgba(15, 23, 42, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 34px rgba(2, 8, 23, 0.16);
}

.assistant-part-group strong,
.assistant-application-group strong {
  color: #9cc0ff;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.assistant-part-group > strong {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(112, 162, 255, 0.16);
  background: rgba(112, 162, 255, 0.08);
  color: #bfdbfe;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0;
}

.assistant-application-group ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.assistant-application-group li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.assistant-application-group li:first-child {
  padding-top: 0;
  border-top: 0;
}

.assistant-application-group li span {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: rgba(238, 242, 255, 0.92);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.3;
}

.assistant-application-group li span small {
  color: rgba(203, 213, 225, 0.68);
  font-size: 10px;
  font-weight: 700;
}

.assistant-application-group li em {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(112, 162, 255, 0.14);
  color: #9cc0ff;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.assistant-application-group li em b,
.assistant-application-group li em i {
  display: inline-block;
  font: inherit;
  font-style: normal;
  white-space: nowrap;
}

.assistant-application-group li em b {
  color: rgba(240, 253, 244, 0.98);
}

.assistant-application-confirmed {
  border-color: rgba(34, 197, 94, 0.36);
  background: rgba(20, 83, 45, 0.12);
}

.assistant-application-confirmed > strong {
  color: #86efac;
}

.assistant-application-confirmed li em {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.assistant-application-use {
  min-width: 52px;
  height: 27px;
  padding: 0 10px;
  border: 1px solid rgba(147, 197, 253, 0.28);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.assistant-application-use:hover {
  border-color: rgba(147, 197, 253, 0.58);
  background: rgba(59, 130, 246, 0.28);
  color: #fff;
  transform: translateY(-1px);
}

.assistant-application-use:disabled {
  cursor: default;
  opacity: 0.56;
  transform: none;
}

.assistant-application-use.is-selected {
  border-color: rgba(34, 197, 94, 0.58);
  background: rgba(34, 197, 94, 0.2);
  color: #bbf7d0;
  opacity: 1;
}

.assistant-part-row {
  display: grid;
  gap: 0;
  padding: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0;
  background: rgba(8, 17, 31, 0.28);
  box-shadow: none;
}

.assistant-part-row:first-of-type {
  border-top: 0;
}

.assistant-part-row-selected {
  background:
    linear-gradient(90deg, rgba(34, 197, 94, 0.16), rgba(34, 197, 94, 0.04) 34%, rgba(8, 17, 31, 0.28)),
    rgba(8, 17, 31, 0.34);
  box-shadow: inset 3px 0 0 rgba(74, 222, 128, 0.82);
}

.assistant-part-row-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 6px 10px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease;
}

.assistant-part-row-toggle:hover {
  background: rgba(112, 162, 255, 0.06);
}

.assistant-part-row-toggle::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 8px;
  height: 8px;
  align-self: center;
  justify-self: end;
  border-right: 2px solid rgba(191, 219, 254, 0.78);
  border-bottom: 2px solid rgba(191, 219, 254, 0.78);
  transform: rotate(45deg);
  transition: transform 160ms ease, opacity 160ms ease;
  opacity: 0.76;
}

.assistant-part-row.is-collapsed .assistant-part-row-toggle::after {
  transform: rotate(-45deg);
}

.assistant-part-row-toggle:focus-visible {
  outline: 2px solid rgba(134, 239, 172, 0.45);
  outline-offset: -4px;
  border-radius: 8px;
}

.assistant-part-row-toggle span,
.assistant-part-row > span {
  min-width: 0;
  color: rgba(238, 242, 255, 0.94);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.assistant-part-row-toggle small,
.assistant-part-row > small:first-of-type {
  grid-column: 1;
  min-width: 0;
  color: rgba(148, 163, 184, 0.86);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.25;
  text-transform: uppercase;
}

.assistant-part-row-static-head {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.assistant-part-row-static-head span {
  min-width: 0;
  color: rgba(238, 242, 255, 0.94);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.assistant-part-row-static-head small {
  color: rgba(148, 163, 184, 0.86);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.25;
  text-transform: uppercase;
}

.assistant-part-row-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px 14px;
}

.assistant-part-row.is-collapsed {
  padding-bottom: 0;
}

.assistant-part-row.is-collapsed .assistant-part-row-body {
  display: none;
}

.assistant-part-row small,
.assistant-part-group > small,
.assistant-application-group > small {
  color: rgba(203, 213, 225, 0.74);
  font-size: 11px;
  font-weight: 650;
}

.assistant-part-group > small {
  padding: 12px 14px 14px;
}

.assistant-part-row-body > small {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.34);
  line-height: 1.3;
}

.assistant-part-row small.assistant-selection-note {
  grid-column: 1 / -1;
  border-color: rgba(74, 222, 128, 0.22);
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
  font-weight: 850;
}

.assistant-part-row small.assistant-borgali-variants {
  grid-column: 1 / -1;
  margin-top: 0;
  border-color: rgba(251, 191, 36, 0.18);
  background: rgba(245, 158, 11, 0.1);
  color: rgba(251, 191, 36, 0.88);
  line-height: 1.35;
}

.assistant-part-row small.assistant-part-vehicle {
  grid-column: 1 / -1;
  color: rgba(147, 197, 253, 0.78);
  letter-spacing: 0;
}

.assistant-part-row small.assistant-part-tabela {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(226, 232, 240, 0.9);
}

.assistant-part-row small.assistant-part-tabela::before {
  content: "Preco";
  color: rgba(148, 163, 184, 0.78);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.assistant-part-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(150px, 0.52fr) minmax(220px, 1fr);
  gap: 8px;
  align-items: stretch;
  margin-top: 0;
}

.assistant-part-row em,
.assistant-part-row b {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-top: 0;
  padding: 8px 10px;
  border-radius: 8px;
  line-height: 1.25;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.assistant-part-row b {
  flex-wrap: wrap;
  gap: 4px 7px;
}

.assistant-stock-label {
  color: rgba(203, 213, 225, 0.62);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.assistant-part-row b .assistant-stock-value {
  font-size: 13px;
  font-weight: 950;
  color: currentColor;
}

.assistant-part-row em {
  border: 1px solid rgba(34, 197, 94, 0.16);
  background: rgba(34, 197, 94, 0.11);
  color: #86efac;
}

.assistant-part-row b.assistant-stock-stock {
  border: 1px solid rgba(34, 197, 94, 0.18);
  background: rgba(34, 197, 94, 0.13);
  color: #86efac;
}

.assistant-part-row b.assistant-stock-zero {
  border: 1px solid rgba(245, 158, 11, 0.18);
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.assistant-part-row b.assistant-stock-variant {
  border: 1px solid rgba(245, 158, 11, 0.2);
  background: rgba(245, 158, 11, 0.14);
  color: #fde68a;
}

.assistant-part-row b.assistant-stock-unknown {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(148, 163, 184, 0.12);
  color: rgba(226, 232, 240, 0.78);
}

@media (max-width: 680px) {
  .assistant-part-row-body,
  .assistant-part-metrics {
    grid-template-columns: 1fr;
  }
}

/* Assistant part results: keep the chat answer scan-friendly. */
.assistant-part-results {
  gap: 8px;
  width: min(820px, 100%);
}

.assistant-part-group {
  overflow: hidden;
  border: 1px solid rgba(112, 162, 255, 0.32);
  border-radius: 8px;
  background: rgba(8, 17, 31, 0.48);
  box-shadow: none;
}

.assistant-part-group > strong {
  min-height: 34px;
  padding: 10px 13px;
  border-bottom: 1px solid rgba(112, 162, 255, 0.18);
  background: rgba(59, 130, 246, 0.12);
  color: #bfdbfe;
  font-size: 11px;
}

.assistant-part-row {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: transparent;
}

.assistant-part-row-selected {
  background: rgba(20, 184, 166, 0.06);
  box-shadow: inset 2px 0 0 rgba(74, 222, 128, 0.9);
}

.assistant-part-row-toggle {
  grid-template-columns: minmax(0, 1fr) 16px;
  gap: 3px 8px;
  padding: 11px 12px 8px;
}

.assistant-part-row-toggle:hover {
  background: rgba(112, 162, 255, 0.05);
}

.assistant-part-row-toggle::after {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 7px;
  height: 7px;
  border-color: rgba(191, 219, 254, 0.72);
}

.assistant-part-row-toggle span,
.assistant-part-row-static-head span {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1.25;
}

.assistant-part-best {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  color: #bbf7d0;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.assistant-part-row-toggle small,
.assistant-part-row-static-head small {
  color: rgba(148, 163, 184, 0.84);
  font-size: 10px;
}

.assistant-part-row-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px 8px;
  padding: 0 12px 12px;
}

.assistant-part-row-body > small {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.assistant-part-row small.assistant-selection-note {
  display: none;
}

.assistant-part-row small.assistant-part-vehicle {
  grid-column: 1 / -1;
  color: rgba(147, 197, 253, 0.86);
  font-size: 10px;
  line-height: 1.3;
}

.assistant-part-row small.assistant-part-tabela {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 5px 8px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.42);
  color: rgba(226, 232, 240, 0.9);
  font-weight: 850;
  white-space: nowrap;
}

.assistant-part-row small.assistant-part-tabela::before {
  content: "";
}

.assistant-part-metrics {
  grid-column: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.assistant-part-row em,
.assistant-part-row b {
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.25;
}

.assistant-part-row em {
  border: 1px solid rgba(34, 197, 94, 0.18);
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
}

.assistant-part-row b,
.assistant-part-row b.assistant-stock-stock,
.assistant-part-row b.assistant-stock-zero,
.assistant-part-row b.assistant-stock-variant,
.assistant-part-row b.assistant-stock-unknown {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(148, 163, 184, 0.12);
  color: rgba(226, 232, 240, 0.84);
}

.assistant-part-row b.assistant-stock-stock {
  border-color: rgba(34, 197, 94, 0.18);
  background: rgba(34, 197, 94, 0.11);
  color: #bbf7d0;
}

.assistant-stock-label {
  color: currentColor;
  opacity: 0.64;
}

.assistant-part-row small.assistant-borgali-variants {
  grid-column: 1 / -1;
  padding: 7px 8px;
  border-radius: 6px;
}

@media (max-width: 680px) {
  .assistant-part-row-body {
    grid-template-columns: 1fr;
  }

  .assistant-part-metrics {
    grid-column: 1;
  }
}

.assistant-part-row-body {
  grid-template-columns: 1fr;
  gap: 5px;
}

.assistant-part-row small.assistant-part-tabela {
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(226, 232, 240, 0.82);
}

.assistant-part-metrics {
  grid-column: 1;
  gap: 10px;
  align-items: center;
}

.assistant-part-row em,
.assistant-part-row b,
.assistant-part-row b.assistant-stock-stock,
.assistant-part-row b.assistant-stock-zero,
.assistant-part-row b.assistant-stock-variant,
.assistant-part-row b.assistant-stock-unknown {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.assistant-part-row em {
  color: #86efac;
}

.assistant-part-row b,
.assistant-part-row b.assistant-stock-stock,
.assistant-part-row b.assistant-stock-zero,
.assistant-part-row b.assistant-stock-variant,
.assistant-part-row b.assistant-stock-unknown {
  color: rgba(203, 213, 225, 0.78);
  font-weight: 760;
}

.assistant-part-row b.assistant-stock-stock {
  color: #86efac;
}

/* Clean quotation table used inside assistant answers. */
.assistant-part-results {
  width: min(820px, 100%);
  min-width: 0;
  gap: 10px;
}

.assistant-part-group {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(112, 162, 255, 0.26);
  border-radius: 8px;
  background: rgba(8, 17, 31, 0.58);
  box-shadow: none;
}

.assistant-part-group-head {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(112, 162, 255, 0.16);
  background: rgba(59, 130, 246, 0.1);
}

.assistant-part-group-head strong {
  color: rgba(219, 234, 254, 0.96);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.assistant-part-group-head small {
  color: rgba(147, 197, 253, 0.78);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}

.assistant-part-table {
  width: 100%;
  overflow-x: auto;
}

.assistant-part-table-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.45fr) 112px 92px 116px minmax(150px, 0.9fr);
  align-items: center;
  min-width: 750px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.assistant-part-table-price .assistant-part-table-row {
  grid-template-columns: minmax(220px, 1fr) 92px 92px 112px;
  min-width: 516px;
}

.assistant-part-table-row:first-child {
  border-top: 0;
}

.assistant-part-table-row-head {
  min-height: 28px;
  background: rgba(15, 23, 42, 0.52);
}

.assistant-part-table-row-head .assistant-part-table-cell {
  color: rgba(148, 163, 184, 0.82);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.assistant-part-table-row-selected {
  background: rgba(34, 197, 94, 0.055);
  box-shadow: inset 2px 0 0 rgba(74, 222, 128, 0.74);
}

.assistant-part-table-cell {
  min-width: 0;
  padding: 8px 9px;
  color: rgba(226, 232, 240, 0.9);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.25;
}

.assistant-part-table-name {
  display: grid;
  gap: 3px;
}

.assistant-part-name-layout {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
}

.assistant-part-name-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.assistant-part-piece-thumb {
  min-width: 0;
  max-width: 32px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(2, 8, 23, 0.25);
  cursor: zoom-in;
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.assistant-part-piece-thumb::after {
  content: none !important;
  display: none !important;
}

.assistant-part-piece-thumb:hover,
.assistant-part-piece-thumb:focus {
  transform: translateY(-1px) scale(1.04);
  border-color: rgba(159, 244, 223, 0.96);
  box-shadow:
    0 8px 22px rgba(2, 8, 23, 0.35),
    0 0 0 3px rgba(20, 184, 166, 0.16);
  outline: none;
}

.assistant-part-piece-thumb img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.assistant-part-piece-thumb--empty {
  border: 1px dashed rgba(148, 163, 184, 0.34);
  background: rgba(15, 23, 42, 0.5);
  box-shadow: none;
  cursor: default;
}

.assistant-part-piece-thumb--empty span {
  padding: 0 4px;
  color: rgba(148, 163, 184, 0.8);
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  text-align: center;
}

.assistant-part-table-name strong {
  display: -webkit-box;
  min-width: 0;
  color: rgba(248, 250, 252, 0.95);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.22;
  text-transform: none;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}

.assistant-part-table-name small {
  display: block;
  min-width: 0;
  color: rgba(148, 163, 184, 0.76);
  font-size: 9px;
  font-weight: 760;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.assistant-part-table-name span {
  width: fit-content;
  color: #86efac;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.assistant-part-table-code {
  color: rgba(203, 213, 225, 0.82);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  overflow-wrap: normal;
  word-break: normal;
}

.assistant-part-table-money {
  color: rgba(226, 232, 240, 0.92);
  white-space: nowrap;
}

.assistant-part-table-net {
  color: #86efac;
}

.assistant-part-table-stock {
  color: rgba(203, 213, 225, 0.78);
  font-size: 10px;
  display: grid;
  gap: 2px;
  overflow-wrap: normal;
}

.assistant-part-table-stock.assistant-stock-stock {
  color: rgba(203, 213, 225, 0.78);
}

.assistant-part-table-stock.assistant-stock-zero,
.assistant-part-table-stock.assistant-stock-variant {
  color: #fbbf24;
}

.assistant-part-table-stock.assistant-stock-unknown {
  color: rgba(203, 213, 225, 0.72);
}

.assistant-part-table-stock .assistant-stock-value {
  color: currentColor;
  font-size: 11px;
  font-weight: 900;
}

.assistant-stock-line {
  display: block;
  min-width: 0;
  color: rgba(203, 213, 225, 0.76);
  line-height: 1.2;
}

.assistant-stock-source {
  color: rgba(148, 163, 184, 0.82);
  font-weight: 850;
}

.assistant-stock-muted {
  color: rgba(203, 213, 225, 0.76);
}

.assistant-stock-available,
.assistant-stock-available .assistant-stock-value {
  color: #86efac;
  font-weight: 900;
}

.assistant-orders-panel {
  width: min(820px, 100%);
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.assistant-orders-workspace .assistant-orders-panel {
  width: 100%;
}

.assistant-orders-chat-note {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.26);
}

.assistant-orders-chat-note strong,
.assistant-orders-chat-note small {
  display: block;
  min-width: 0;
}

.assistant-orders-chat-note strong {
  color: rgba(248, 250, 252, 0.94);
  font-size: 12px;
  font-weight: 850;
}

.assistant-orders-chat-note small {
  color: rgba(203, 213, 225, 0.68);
  font-size: 10px;
  font-weight: 720;
}

.assistant-orders-side-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.22);
  text-align: center;
}

.assistant-orders-side-state strong,
.assistant-orders-side-state small {
  display: block;
  min-width: 0;
}

.assistant-orders-side-state strong {
  color: rgba(248, 250, 252, 0.94);
  font-size: 13px;
  font-weight: 850;
}

.assistant-orders-side-state small {
  max-width: 420px;
  color: rgba(203, 213, 225, 0.7);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.4;
}

.assistant-orders-side-state.warn {
  border-color: rgba(251, 191, 36, 0.28);
}

.assistant-orders-head {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

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

.assistant-orders-head strong {
  color: rgba(248, 250, 252, 0.96);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
}

.assistant-orders-titleline {
  display: inline-flex !important;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  white-space: nowrap;
}

.assistant-orders-titleline small::before {
  content: "·";
  margin-right: 7px;
  color: rgba(148, 163, 184, 0.5);
}

.assistant-orders-head small,
.assistant-orders-foot,
.assistant-orders-empty small,
.assistant-order-detail-head small,
.assistant-order-item small {
  color: rgba(203, 213, 225, 0.6);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.assistant-orders-periods,
.assistant-orders-filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.assistant-orders-periods {
  justify-content: flex-end;
}

.assistant-orders-filters {
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.assistant-orders-filters::-webkit-scrollbar {
  display: none;
}

.assistant-orders-period,
.assistant-orders-chip {
  box-sizing: border-box;
  min-width: 0;
  min-height: 24px;
  flex: 0 0 auto;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.18);
  color: rgba(226, 232, 240, 0.74);
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.assistant-orders-period {
  width: auto;
  min-width: 54px;
  padding: 0 10px;
}

.assistant-orders-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 7px 0 9px;
}

.assistant-orders-chip b {
  min-width: 16px;
  padding: 2px 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  color: rgba(203, 213, 225, 0.72);
  font-size: 8px;
  font-weight: 900;
  text-align: center;
}

.assistant-orders-period:hover,
.assistant-orders-chip:hover {
  border-color: rgba(148, 197, 253, 0.32);
  background: rgba(30, 41, 59, 0.32);
  color: rgba(248, 250, 252, 0.88);
}

.assistant-orders-period.active,
.assistant-orders-chip.active {
  border-color: rgba(125, 211, 252, 0.42);
  background:
    linear-gradient(180deg, rgba(14, 165, 233, 0.16), rgba(15, 23, 42, 0.16)),
    rgba(15, 23, 42, 0.22);
  color: rgba(240, 249, 255, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 6px 16px rgba(14, 165, 233, 0.08);
}

.assistant-orders-chip.active b {
  background: rgba(125, 211, 252, 0.14);
  color: rgba(224, 242, 254, 0.92);
}

.assistant-orders-list {
  display: grid;
  gap: 8px;
}

.assistant-orders-workspace .assistant-orders-list {
  gap: 7px;
}

.assistant-order-row {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border: 1px solid rgba(112, 162, 255, 0.2);
  border-left-width: 3px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.56), rgba(15, 23, 42, 0.36)),
    rgba(2, 8, 23, 0.16);
  color: rgba(238, 242, 255, 0.94);
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.assistant-order-row.aberto {
  border-left-color: rgba(96, 165, 250, 0.82);
}

.assistant-order-row.faturado {
  border-left-color: rgba(52, 211, 153, 0.86);
}

.assistant-order-row.atrasado {
  border-left-color: rgba(251, 191, 36, 0.9);
}

.assistant-order-row.cancelado {
  border-left-color: rgba(248, 113, 113, 0.86);
}

.assistant-order-row:hover {
  border-color: rgba(112, 162, 255, 0.48);
  background:
    linear-gradient(180deg, rgba(45, 58, 96, 0.68), rgba(20, 30, 52, 0.46)),
    rgba(2, 8, 23, 0.18);
  box-shadow: 0 14px 34px rgba(2, 8, 23, 0.22);
  transform: translateY(-1px);
}

.assistant-order-main,
.assistant-order-main strong,
.assistant-order-main small {
  display: block;
  min-width: 0;
}

.assistant-order-main strong {
  color: rgba(248, 250, 252, 0.96);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.assistant-order-company {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-right: 7px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(14, 165, 233, 0.13);
  color: rgba(186, 230, 253, 0.96);
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  vertical-align: 1px;
}

.assistant-order-main small {
  margin-top: 3px;
  color: rgba(203, 213, 225, 0.68);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.assistant-order-money {
  color: #86efac;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.assistant-order-arrow {
  color: rgba(203, 213, 225, 0.58);
  font-size: 22px;
  line-height: 1;
}

.assistant-orders-empty {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.24);
}

.assistant-orders-empty strong {
  color: rgba(248, 250, 252, 0.92);
  font-size: 13px;
  font-weight: 850;
}

.assistant-orders-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-top: 2px;
}

.assistant-orders-foot > span {
  min-width: 0;
}

.assistant-orders-pagination {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.assistant-orders-pagination span {
  color: rgba(226, 232, 240, 0.78);
  font-size: 10px;
  font-weight: 850;
}

.assistant-orders-pagination button,
.assistant-orders-back {
  height: 30px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014)),
    rgba(15, 23, 42, 0.32);
  color: rgba(226, 232, 240, 0.86);
  padding: 0 10px;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.assistant-orders-pagination button:disabled {
  cursor: default;
  opacity: 0.42;
}

.assistant-orders-back {
  justify-self: end;
}

.assistant-order-detail {
  width: min(760px, 100%);
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.assistant-order-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.assistant-order-detail-head span,
.assistant-order-detail-head strong,
.assistant-order-detail-head small {
  display: block;
  min-width: 0;
}

.assistant-order-detail-head strong {
  color: rgba(248, 250, 252, 0.96);
  font-size: 14px;
  font-weight: 850;
}

.assistant-order-detail ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.assistant-order-item {
  display: grid;
  gap: 0;
  padding: 0;
  border: 1px solid rgba(96, 165, 250, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.62), rgba(15, 23, 42, 0.38)),
    rgba(2, 8, 23, 0.18);
  overflow: hidden;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.assistant-order-item-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.09);
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.48), rgba(15, 23, 42, 0.16));
  color: inherit;
}

.assistant-order-item span,
.assistant-order-item strong,
.assistant-order-item small {
  display: block;
  min-width: 0;
}

.assistant-order-item strong {
  color: rgba(248, 250, 252, 0.94);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.assistant-order-item small {
  margin-top: 3px;
}

.assistant-order-item em {
  color: #86efac;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.assistant-order-item-result {
  padding: 0;
}

.assistant-order-item-result:empty {
  display: none;
}

.assistant-order-quote-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px 12px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.24), rgba(2, 8, 23, 0.12)),
    rgba(2, 8, 23, 0.1);
}

.assistant-order-quote-result.ok {
  border-top: 1px solid rgba(52, 211, 153, 0.16);
}

.assistant-order-quote-result.warn {
  border-top: 1px solid rgba(251, 191, 36, 0.18);
}

.assistant-order-quote-result.loading {
  min-height: 34px;
  display: flex;
  align-items: center;
  color: rgba(203, 213, 225, 0.72);
}

.assistant-order-quote-head,
.assistant-order-price-summary,
.assistant-order-price-grid,
.assistant-order-quote-result span,
.assistant-order-quote-result strong,
.assistant-order-quote-result small {
  min-width: 0;
}

.assistant-order-quote-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.assistant-order-quote-head span,
.assistant-order-quote-head strong,
.assistant-order-quote-head small {
  display: block;
  min-width: 0;
}

.assistant-order-quote-result strong {
  color: rgba(248, 250, 252, 0.94);
  font-size: 12px;
  font-weight: 850;
}

.assistant-order-quote-result small {
  margin-top: 3px;
  color: rgba(203, 213, 225, 0.68);
  font-size: 10px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.assistant-order-stock-chips {
  width: fit-content;
  max-width: 100%;
  min-height: 32px;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: stretch;
  gap: 0;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.48)),
    rgba(2, 8, 23, 0.24);
  box-shadow:
    0 10px 24px rgba(2, 8, 23, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.assistant-order-stock-source,
.assistant-order-stock-metric {
  display: grid;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
}

.assistant-order-stock-source {
  min-width: 66px;
  min-height: 32px;
  place-items: center;
  justify-content: center;
  padding: 0 9px;
  border-right: 1px solid rgba(148, 163, 184, 0.13);
  background:
    linear-gradient(180deg, rgba(20, 184, 166, 0.12), rgba(15, 23, 42, 0.2)),
    rgba(15, 23, 42, 0.36);
  color: rgba(226, 232, 240, 0.82);
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.assistant-order-stock-metric {
  min-width: 54px;
  min-height: 32px;
  grid-template-rows: 10px 14px;
  align-content: center;
  justify-items: start;
  row-gap: 1px;
  padding: 4px 10px 5px;
  border-right: 1px solid rgba(148, 163, 184, 0.11);
}

.assistant-order-stock-metric:last-child {
  border-right: 0;
}

.assistant-order-stock-metric small,
.assistant-order-stock-metric strong {
  display: block;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
}

.assistant-order-stock-metric small {
  color: rgba(203, 213, 225, 0.7);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.assistant-order-stock-metric strong {
  color: rgba(248, 250, 252, 0.96);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
}

.assistant-order-stock-chips.positive {
  border-color: rgba(52, 211, 153, 0.38);
  background:
    linear-gradient(180deg, rgba(6, 78, 59, 0.28), rgba(5, 46, 22, 0.18)),
    rgba(15, 23, 42, 0.3);
}

.assistant-order-stock-chips.positive .assistant-order-stock-source {
  color: rgba(167, 243, 208, 0.92);
  background:
    linear-gradient(180deg, rgba(16, 185, 129, 0.28), rgba(6, 78, 59, 0.18)),
    rgba(6, 78, 59, 0.24);
}

.assistant-order-stock-chips.positive .assistant-order-stock-metric strong {
  color: #eafff4;
}

.assistant-order-stock-chips.zero {
  border-color: rgba(148, 163, 184, 0.13);
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.42), rgba(15, 23, 42, 0.26)),
    rgba(2, 8, 23, 0.2);
}

.assistant-order-stock-chips.zero .assistant-order-stock-metric strong {
  color: rgba(203, 213, 225, 0.68);
}

.assistant-order-quote-status {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.13);
  color: rgba(186, 230, 253, 0.95);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.assistant-order-price-summary {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.8fr 1fr;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.28);
}

.assistant-order-price-summary > span {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 48px;
  padding: 8px 10px;
  border-right: 1px solid rgba(148, 163, 184, 0.1);
}

.assistant-order-price-summary > span:last-child {
  border-right: 0;
}

.assistant-order-price-summary > span.final {
  background: rgba(6, 78, 59, 0.14);
}

.assistant-order-price-summary small {
  margin: 0;
  color: rgba(203, 213, 225, 0.62);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.assistant-order-price-summary strong {
  color: #86efac;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.assistant-order-plate-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.assistant-order-plate-form input {
  min-width: 0;
  height: 36px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.28);
  color: #f8fafc;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  outline: none;
}

.assistant-order-plate-form input:focus {
  border-color: rgba(96, 165, 250, 0.54);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.13);
}

.assistant-order-plate-form input[aria-invalid="true"] {
  border-color: rgba(248, 113, 113, 0.62);
}

.assistant-order-plate-form button {
  height: 36px;
  border: 1px solid rgba(134, 239, 172, 0.38);
  border-radius: 8px;
  background: rgba(22, 163, 74, 0.15);
  color: #bbf7d0;
  padding: 0 13px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.assistant-order-plate-hint {
  color: rgba(203, 213, 225, 0.62);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 680px) {
  .assistant-vehicle-preview {
    right: 94px;
    max-height: min(300px, calc(100vh - 220px));
  }

  .assistant-vehicle-preview-option {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .assistant-vehicle-preview-brand {
    display: none;
  }

  .assistant-part-results {
    width: 100%;
  }

  .assistant-part-name-layout {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 6px;
  }

  .assistant-part-piece-thumb {
    max-width: 28px;
    width: 28px;
    height: 28px;
  }

  .assistant-part-piece-thumb img {
    width: 24px;
    height: 24px;
  }

  .assistant-orders-panel,
  .assistant-order-detail {
    width: 100%;
  }

  .assistant-orders-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .assistant-orders-titleline {
    display: grid !important;
    gap: 2px;
    white-space: normal;
  }

  .assistant-orders-titleline small::before {
    content: "";
    margin-right: 0;
  }

  .assistant-orders-foot,
  .assistant-order-detail-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .assistant-orders-pagination,
  .assistant-orders-back {
    justify-self: start;
  }

  .assistant-order-row,
  .assistant-order-item-card,
  .assistant-order-quote-result,
  .assistant-order-price-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .assistant-order-price-summary > span {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  }

  .assistant-order-price-summary > span:last-child {
    border-bottom: 0;
  }

  .assistant-order-money,
  .assistant-order-item em {
    justify-self: start;
  }
}

@media (max-width: 860px) {
  .assistant-orders-panel,
  .assistant-order-detail {
    gap: 10px;
  }

  .assistant-orders-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 10px;
  }

  .assistant-orders-periods,
  .assistant-orders-filters {
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .assistant-orders-periods::-webkit-scrollbar,
  .assistant-orders-filters::-webkit-scrollbar {
    display: none;
  }

  .assistant-orders-period,
  .assistant-orders-chip {
    min-height: 26px;
    font-size: 10px;
  }

  .assistant-order-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 9px 10px;
  }

  .assistant-order-arrow {
    display: none;
  }

  .assistant-order-item-card,
  .assistant-order-quote-result {
    gap: 8px;
  }

  .assistant-order-price-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assistant-order-price-summary > span:nth-child(2n) {
    border-right: 0;
  }

  .assistant-order-price-summary > span:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .assistant-order-price-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .assistant-order-price-summary > span {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  }

  .assistant-order-price-summary > span:last-child {
    border-bottom: 0;
  }

  .assistant-order-quote-head {
    display: grid;
    justify-content: stretch;
  }

  .assistant-order-quote-status {
    width: fit-content;
  }
}

.assistant-batch-master {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  padding: 14px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(120% 95% at 8% 10%, rgba(16, 185, 129, 0.09) 0%, rgba(15, 23, 42, 0.18) 36%, rgba(2, 6, 23, 0.9) 100%),
    rgba(2, 6, 23, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 14px 28px rgba(2, 8, 23, 0.18);
  overflow: hidden;
}

.assistant-batch-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 10px 14px;
}

.assistant-batch-head-copy span,
.assistant-batch-head-copy strong,
.assistant-batch-head-copy small {
  display: block;
}

.assistant-batch-head-copy span {
  color: rgba(45, 212, 191, 0.92);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.assistant-batch-head-copy strong {
  margin-top: 2px;
  color: rgba(240, 249, 255, 0.96);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.assistant-batch-head-copy small {
  margin-top: 6px;
  color: rgba(191, 219, 254, 0.84);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.35;
}

.assistant-batch-kpis {
  display: flex;
  gap: 9px;
}

.assistant-batch-kpi {
  min-width: 112px;
  padding: 8px 10px 9px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.62);
  text-align: center;
}

.assistant-batch-kpi b,
.assistant-batch-kpi small {
  display: block;
}

.assistant-batch-kpi b {
  color: rgba(226, 232, 240, 0.96);
  font-size: 40px;
  font-weight: 900;
  line-height: 1.05;
}

.assistant-batch-kpi small {
  margin-top: 3px;
  color: rgba(148, 163, 184, 0.9);
  font-size: 9px;
  font-weight: 830;
  text-transform: uppercase;
  white-space: nowrap;
}

.assistant-batch-kpi--done {
  border-color: rgba(34, 197, 94, 0.48);
  background: rgba(21, 128, 61, 0.24);
}

.assistant-batch-kpi--done b {
  color: #9ef8c1;
}

.assistant-batch-decision {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.66);
}

.assistant-batch-decision strong,
.assistant-batch-decision small {
  display: block;
  margin: 0;
}

.assistant-batch-decision strong {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.assistant-batch-decision small {
  font-size: 12px;
  font-weight: 710;
  color: rgba(203, 213, 225, 0.9);
  line-height: 1.35;
}

.assistant-batch-decision--pending {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(51, 65, 85, 0.44);
}

.assistant-batch-decision--pending strong {
  color: rgba(226, 232, 240, 0.94);
}

.assistant-batch-decision--approved {
  border-color: rgba(74, 222, 128, 0.42);
  background: linear-gradient(130deg, rgba(22, 163, 74, 0.26), rgba(20, 83, 45, 0.28));
}

.assistant-batch-decision--approved strong {
  color: #bbf7d0;
}

.assistant-batch-decision--blocked {
  border-color: rgba(248, 113, 113, 0.46);
  background: linear-gradient(130deg, rgba(185, 28, 28, 0.24), rgba(127, 29, 29, 0.24));
}

.assistant-batch-decision--blocked strong {
  color: #fecaca;
}

.assistant-batch-vehicle {
  display: grid;
  grid-template-columns: minmax(130px, 168px) minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  padding: 11px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 13px;
  background: linear-gradient(130deg, rgba(15, 23, 42, 0.78), rgba(4, 18, 36, 0.84));
}

.assistant-batch-vehicle-thumb {
  width: 100%;
  height: 104px;
  object-fit: cover;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.68);
}

.assistant-batch-vehicle-thumb--logo {
  object-fit: contain;
  padding: 10px;
  background: rgba(15, 23, 42, 0.9);
}

.assistant-batch-vehicle-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(148, 163, 184, 0.9);
  font-size: 11px;
  font-weight: 760;
}

.assistant-batch-vehicle-meta h4,
.assistant-batch-vehicle-meta p {
  margin: 0;
}

.assistant-batch-vehicle-meta h4 {
  color: rgba(240, 249, 255, 0.98);
  font-size: 17px;
  font-weight: 860;
  line-height: 1.28;
}

.assistant-batch-vehicle-meta p {
  margin-top: 4px;
  color: rgba(191, 219, 254, 0.88);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.32;
}

.assistant-batch-vehicle-meta p strong {
  color: rgba(125, 211, 252, 0.94);
  font-weight: 860;
}

.assistant-batch-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.assistant-batch-column {
  display: grid;
  gap: 9px;
  min-height: 225px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 13px;
  background: rgba(2, 6, 23, 0.54);
}

.assistant-batch-column header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.assistant-batch-column h5,
.assistant-batch-column small {
  margin: 0;
}

.assistant-batch-column h5 {
  color: rgba(240, 249, 255, 0.94);
  font-size: 14px;
  font-weight: 860;
  text-transform: uppercase;
  line-height: 1.06;
}

.assistant-batch-column small {
  color: rgba(148, 163, 184, 0.9);
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.assistant-batch-column [data-batch-processing-list],
.assistant-batch-column [data-batch-done-list] {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 112px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.34) transparent;
}

.assistant-batch-column--processing [data-batch-processing-list] {
  max-height: min(44vh, 340px);
}

.assistant-batch-column--done [data-batch-done-list] {
  max-height: min(44vh, 340px);
}

.assistant-batch-column [data-batch-processing-list]:empty::before,
.assistant-batch-column [data-batch-done-list]:empty::before {
  display: block;
  margin-top: 6px;
  color: rgba(148, 163, 184, 0.64);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.assistant-batch-column [data-batch-processing-list]:empty::before {
  content: "Aguardando peças em processamento...";
}

.assistant-batch-column [data-batch-done-list]:empty::before {
  content: "Nenhum item finalizado até o momento.";
}

.assistant-batch-item {
  display: grid;
  gap: 6px;
  padding: 9px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  transition: transform 220ms ease, opacity 220ms ease, filter 220ms ease, border-color 180ms ease, background 180ms ease;
}

.assistant-batch-item.is-processing {
  border-color: rgba(148, 163, 184, 0.32);
  background: linear-gradient(130deg, rgba(71, 85, 105, 0.46), rgba(30, 41, 59, 0.62));
}

.assistant-batch-item.is-success {
  border-color: rgba(74, 222, 128, 0.52);
  background: linear-gradient(130deg, rgba(22, 163, 74, 0.3), rgba(15, 118, 110, 0.24));
}

.assistant-batch-item.is-warn {
  border-color: rgba(251, 146, 60, 0.52);
  background: linear-gradient(130deg, rgba(124, 45, 18, 0.34), rgba(154, 52, 18, 0.26));
}

.assistant-batch-item.is-failed {
  border-color: rgba(248, 113, 113, 0.56);
  background: linear-gradient(130deg, rgba(185, 28, 28, 0.3), rgba(127, 29, 29, 0.3));
}

.assistant-batch-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 10px;
  flex-wrap: wrap;
}

.assistant-batch-item-head strong,
.assistant-batch-item-head small {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.assistant-batch-item-head strong {
  color: rgba(240, 249, 255, 0.96);
  font-size: 15px;
  font-weight: 900;
}

.assistant-batch-item-head small {
  color: rgba(226, 232, 240, 0.92);
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.assistant-batch-item-line {
  margin: 0;
  color: rgba(226, 232, 240, 0.92);
  font-size: 13px;
  font-weight: 730;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

.assistant-batch-stage-reel {
  display: grid;
  gap: 2px;
  min-height: 74px;
  max-height: 92px;
  overflow: hidden;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 58%, rgba(0, 0, 0, 0.32) 82%, transparent 100%);
}

.assistant-batch-stage {
  margin: 0;
  color: rgba(226, 232, 240, 0.88);
  font-size: 13px;
  font-weight: 730;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform-origin: center left;
  transition: transform 180ms ease, opacity 180ms ease;
}

.assistant-batch-stage.is-live {
  color: rgba(240, 249, 255, 0.98);
  font-weight: 820;
  transform: translateY(0) scale(1);
}

.assistant-batch-stage.is-live::after {
  content: " ...";
  animation: assistant-batch-ellipsis 1s steps(4, end) infinite;
}

.assistant-batch-stage.is-current {
  color: rgba(240, 249, 255, 0.95);
  font-weight: 790;
  transform: translateY(0) scale(0.99);
}

.assistant-batch-stage.is-prev {
  opacity: 0.72;
  transform: translateY(-3px) scale(0.97);
}

.assistant-batch-stage.is-fade-top {
  opacity: 0.32;
  transform: translateY(-6px) scale(0.95);
}

@keyframes assistant-batch-ellipsis {
  0% { content: " ."; }
  33% { content: " .."; }
  66% { content: " ..."; }
  100% { content: " ."; }
}

.assistant-batch-item.is-current {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: saturate(1.02);
}

.assistant-batch-item.is-prev,
.assistant-batch-item.is-next {
  opacity: 0.82;
  transform: translateY(-3px) scale(0.98);
  filter: saturate(0.92);
}

.assistant-batch-item.is-dim {
  opacity: 0.56;
  transform: translateY(-6px) scale(0.95);
  filter: saturate(0.82);
}

.assistant-batch-item-logs {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 3px;
}

.assistant-batch-item-logs li {
  color: rgba(226, 232, 240, 0.88);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.28;
}

.assistant-batch-column--done .assistant-batch-item {
  gap: 4px;
}

.assistant-batch-column--done .assistant-batch-item-head strong {
  font-size: 14px;
}

.assistant-batch-column--done .assistant-batch-stage-reel {
  min-height: 50px;
  max-height: 62px;
  mask-image: none;
}

.assistant-batch-item-commerce {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px 10px;
  padding: 7px 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.54);
}

.assistant-batch-item-commerce span {
  min-width: 0;
}

.assistant-batch-item-commerce small,
.assistant-batch-item-commerce strong {
  display: block;
  margin: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.assistant-batch-item-commerce small {
  color: rgba(148, 163, 184, 0.92);
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
}

.assistant-batch-item-commerce strong {
  margin-top: 1px;
  color: rgba(241, 245, 249, 0.96);
  font-size: 13px;
  font-weight: 830;
}

.assistant-batch-summary-note {
  margin: 10px 2px 0;
}

.assistant-batch-report-button {
  margin-top: 10px;
}

.assistant-batch-pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.88);
  box-shadow: 0 0 0 rgba(226, 232, 240, 0.4);
  animation: assistant-batch-pulse 1.2s infinite;
}

.assistant-v2-card {
  margin-top: 8px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.5));
  display: grid;
  gap: 10px;
}

.assistant-v2-card.is-approved {
  border-color: rgba(52, 211, 153, 0.48);
}

.assistant-v2-card.is-blocked {
  border-color: rgba(248, 113, 113, 0.5);
}

.assistant-v2-card.is-pending {
  border-color: rgba(251, 191, 36, 0.52);
}

.assistant-v2-card-head {
  display: grid;
  gap: 2px;
}

.assistant-v2-card-head strong {
  color: rgba(241, 245, 249, 0.97);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.25;
}

.assistant-v2-card-head small {
  color: rgba(191, 211, 237, 0.88);
  font-size: 11px;
  font-weight: 700;
}

.assistant-v2-status-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 3px 7px;
  margin-bottom: 3px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(148, 163, 184, 0.32);
}

.assistant-v2-status-badge.is-approved {
  color: #072a17;
  background: rgba(110, 231, 183, 0.95);
  border-color: rgba(16, 185, 129, 0.9);
}

.assistant-v2-status-badge.is-blocked {
  color: #3e0909;
  background: rgba(254, 202, 202, 0.95);
  border-color: rgba(248, 113, 113, 0.92);
}

.assistant-v2-status-badge.is-pending {
  color: #3b2400;
  background: rgba(254, 240, 138, 0.95);
  border-color: rgba(245, 158, 11, 0.92);
}

.assistant-v2-reason {
  margin: 3px 0 0;
  color: rgba(226, 232, 240, 0.95);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.32;
}

.assistant-v2-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.assistant-v2-kpis span {
  width: 92px;
  min-height: 36px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(2, 6, 23, 0.28);
  border-radius: 10px;
  padding: 5px 8px 4px;
  display: grid;
  align-content: center;
  gap: 1px;
  box-sizing: border-box;
}

.assistant-v2-kpis small,
.assistant-v2-kpis strong {
  display: block;
  margin: 0;
}

.assistant-v2-kpis small {
  color: rgba(148, 163, 184, 0.92);
  font-size: 9px;
  font-weight: 720;
  text-transform: uppercase;
  line-height: 1.1;
}

.assistant-v2-kpis strong {
  color: rgba(241, 245, 249, 0.98);
  font-size: 12px;
  font-weight: 740;
  line-height: 1.1;
}

.assistant-v2-items {
  display: grid;
  gap: 7px;
}

.assistant-v2-item {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.32);
  padding: 5px 6px;
}

.assistant-v2-row-ok {
  display: grid;
  gap: 2px;
}

.assistant-v2-row-ok strong {
  color: rgba(226, 232, 240, 0.98);
  font-size: 13px;
  font-weight: 780;
}

.assistant-v2-row-ok span {
  color: rgba(191, 211, 237, 0.92);
  font-size: 11px;
  font-weight: 700;
}

.assistant-v2-row-ok em {
  color: rgba(110, 231, 183, 0.95);
  font-size: 11px;
  font-style: normal;
  font-weight: 740;
}

.assistant-v2-row-ok small {
  color: rgba(148, 163, 184, 0.9);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.assistant-v2-extra-codes {
  margin-top: 5px;
  display: grid;
  gap: 4px;
}

.assistant-v2-extra-codes > small {
  color: rgba(148, 163, 184, 0.84);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.assistant-v2-extra-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.assistant-v2-extra-list span {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(2, 6, 23, 0.3);
  color: rgba(226, 232, 240, 0.92);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 650;
}

.assistant-v2-diff-toggle-wrap {
  margin-top: 6px;
  display: grid;
  gap: 4px;
}

.assistant-v2-diff-title {
  color: rgba(148, 163, 184, 0.84);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.assistant-v2-diff-panel-result {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.25);
  border-radius: 8px;
  padding: 7px;
  color: rgba(191, 211, 237, 0.9);
  font-size: 10px;
  line-height: 1.35;
}

.assistant-v2-diff-panel-result p {
  margin: 0;
}

.assistant-v2-variant-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 6px;
}

.assistant-v2-variant-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 3px 8px;
  border: 1px solid rgba(125, 211, 252, 0.34);
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.42), rgba(2, 132, 199, 0.28));
}

.assistant-v2-variant-chip strong {
  color: rgba(224, 242, 254, 0.98);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.02em;
}

.assistant-v2-variant-chip em {
  color: rgba(186, 230, 253, 0.95);
  font-size: 10px;
  font-style: normal;
  font-weight: 670;
}

.assistant-v2-variant-chip.is-tone-1 {
  border-color: rgba(56, 189, 248, 0.4);
  background: linear-gradient(135deg, rgba(7, 89, 133, 0.4), rgba(3, 105, 161, 0.28));
}

.assistant-v2-variant-chip.is-tone-2 {
  border-color: rgba(34, 211, 238, 0.38);
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.34), rgba(14, 116, 144, 0.28));
}

.assistant-v2-variant-chip.is-tone-3 {
  border-color: rgba(147, 197, 253, 0.36);
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.35), rgba(37, 99, 235, 0.24));
}

.assistant-v2-diff-panel-result ul {
  margin: 5px 0 0;
  padding-left: 16px;
  display: grid;
  gap: 3px;
}

.assistant-v2-diff-panel-result li {
  color: rgba(226, 232, 240, 0.92);
  font-size: 10px;
}

.assistant-v2-diff-loading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.99);
  text-shadow: none;
  font-size: 10px;
  font-weight: 790;
  letter-spacing: 0.02em;
  animation: assistantPearlPulse 0.95s ease-in-out infinite;
}

.assistant-v2-diff-loading::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 0 0 0 rgba(34, 211, 238, 0.72),
    0 0 10px rgba(255, 255, 255, 0.95);
  animation: assistantCyanPing 0.95s ease-out infinite;
}

@keyframes assistantCyanPulse {
  0%, 100% {
    opacity: 0.82;
  }
  50% {
    opacity: 1;
  }
}

@keyframes assistantPearlPulse {
  0%, 100% {
    opacity: 0.84;
    filter: brightness(1);
  }
  50% {
    opacity: 1;
    filter: brightness(1.08);
  }
}

@keyframes assistantCyanPing {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.52);
  }
  70% {
    transform: scale(1.12);
    box-shadow: 0 0 0 7px rgba(34, 211, 238, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
  }
}

.assistant-v2-variant-details {
  margin-top: 6px;
  display: grid;
  gap: 5px;
}

.assistant-v2-variant-detail-row {
  border-radius: 8px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.32), rgba(2, 132, 199, 0.18));
  padding: 6px 7px;
  display: grid;
  gap: 2px;
}

.assistant-v2-variant-detail-row.is-tone-1 {
  border-color: rgba(56, 189, 248, 0.34);
  background: linear-gradient(135deg, rgba(7, 89, 133, 0.3), rgba(3, 105, 161, 0.17));
}

.assistant-v2-variant-detail-row.is-tone-2 {
  border-color: rgba(34, 211, 238, 0.34);
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.28), rgba(14, 116, 144, 0.17));
}

.assistant-v2-variant-detail-row.is-tone-3 {
  border-color: rgba(147, 197, 253, 0.34);
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.28), rgba(37, 99, 235, 0.15));
}

.assistant-v2-variant-detail-code {
  color: rgba(224, 242, 254, 0.98);
  font-size: 10px;
  font-weight: 800;
}

.assistant-v2-variant-detail-name {
  color: rgba(186, 230, 253, 0.95);
  font-size: 10px;
  font-weight: 700;
}

.assistant-v2-variant-detail-row p {
  margin: 1px 0 0;
  color: rgba(226, 232, 240, 0.96);
  font-size: 10px;
  line-height: 1.35;
}

.assistant-copy-code-btn {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.35);
  color: rgba(191, 211, 237, 0.95);
  border-radius: 6px;
  min-width: 16px;
  height: 16px;
  margin: 0 4px 0 3px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  vertical-align: text-top;
  cursor: pointer;
}

.assistant-copy-code-btn:hover {
  border-color: rgba(125, 211, 252, 0.48);
  color: rgba(226, 232, 240, 0.98);
}

.assistant-copy-code-btn.is-copied {
  border-color: rgba(74, 222, 128, 0.72);
  background: rgba(6, 95, 70, 0.26);
  color: rgba(187, 247, 208, 0.98);
}

.assistant-v2-diff-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
  gap: 5px;
  align-items: stretch;
}

.assistant-v2-diff-panel {
  border-radius: 8px;
  padding: 6px;
  display: grid;
  gap: 1px;
}

.assistant-v2-diff-panel.is-wrong {
  border: 1px solid rgba(248, 113, 113, 0.52);
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.24), rgba(69, 10, 10, 0.2));
}

.assistant-v2-diff-panel.is-right {
  border: 1px solid rgba(52, 211, 153, 0.52);
  background: linear-gradient(180deg, rgba(6, 95, 70, 0.22), rgba(4, 78, 59, 0.18));
}

.assistant-v2-diff-panel small {
  color: rgba(226, 232, 240, 0.84);
  font-size: 9px;
  font-weight: 760;
  text-transform: uppercase;
}

.assistant-v2-diff-panel strong {
  color: rgba(248, 250, 252, 0.98);
  font-size: 12px;
  font-weight: 790;
  line-height: 1.25;
  word-break: break-word;
}

.assistant-v2-diff-panel em {
  color: rgba(255, 255, 255, 0.9);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.assistant-v2-swap-arrow {
  align-self: center;
  justify-self: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: #042314;
  background: linear-gradient(180deg, rgba(134, 239, 172, 0.98), rgba(74, 222, 128, 0.98));
  border: 1px solid rgba(34, 197, 94, 0.9);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.34);
  z-index: 2;
}

.assistant-loading-line {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.assistant-loading-timer {
  color: rgba(148, 163, 184, 0.84);
  font-size: 10px;
  font-weight: 560;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.assistant-loading-timer::before {
  content: "⏱";
  font-size: 10px;
  opacity: 0.86;
}

.assistant-v2-resolved-time {
  color: rgba(148, 163, 184, 0.86) !important;
  font-size: 10px !important;
  font-weight: 620 !important;
}

.assistant-v2-resolved-seconds {
  font-weight: 760;
}

.assistant-v2-resolved-seconds.is-fast {
  color: rgba(134, 239, 172, 0.98);
}

.assistant-v2-resolved-seconds.is-medium {
  color: rgba(74, 222, 128, 0.96);
}

.assistant-v2-resolved-seconds.is-slow {
  color: rgba(250, 204, 21, 0.96);
}

.assistant-v2-json-toggle {
  margin: 6px 2px 0;
  font-size: 11px;
}

.assistant-v2-json-toggle summary {
  cursor: pointer;
  color: rgba(148, 163, 184, 0.82);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  list-style: none;
}

.assistant-v2-json-toggle summary::-webkit-details-marker {
  display: none;
}

.assistant-v2-json-toggle summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 6px;
  color: rgba(148, 163, 184, 0.74);
  transform: translateY(-0.5px);
}

.assistant-v2-json-toggle[open] summary::before {
  content: "▾";
}

.assistant-v2-json-toggle summary strong {
  font-weight: 600;
}

.assistant-v2-json-toggle pre {
  margin: 6px 0 0;
  padding: 8px;
  max-height: 220px;
  overflow: auto;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.35);
  color: rgba(191, 211, 237, 0.84);
  font-size: 10px;
  line-height: 1.35;
}

@keyframes assistant-batch-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(226, 232, 240, 0.42);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(226, 232, 240, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(226, 232, 240, 0);
  }
}

@media (max-width: 930px) {
  .assistant-batch-head-copy strong {
    font-size: clamp(28px, 6vw, 42px);
  }

  .assistant-batch-kpi {
    min-width: 100px;
  }

  .assistant-batch-kpi b {
    font-size: 34px;
  }

  .assistant-batch-columns {
    grid-template-columns: 1fr;
  }

  .assistant-batch-item-commerce {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assistant-v2-diff-grid {
    grid-template-columns: 1fr;
  }

  .assistant-v2-swap-arrow {
    width: 20px;
    height: 20px;
    transform: rotate(90deg);
    margin: 1px auto;
  }
}

@media (max-width: 680px) {
  .assistant-batch-master {
    padding: 11px;
  }

  .assistant-batch-head {
    grid-template-columns: 1fr;
  }

  .assistant-batch-head-copy strong {
    font-size: 30px;
  }

  .assistant-batch-vehicle {
    grid-template-columns: 1fr;
  }

  .assistant-batch-vehicle-thumb {
    height: 142px;
  }

  .assistant-batch-item-commerce {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assistant-v2-kpis span {
    width: 84px;
    min-height: 34px;
  }
}
