body.askcarbi-vision-open {
  overflow: hidden !important;
}

.askcarbi-vision-launcher {
  appearance: none;
  border: 0;
  border-radius: 16px;
  background: #eef5ff;
  color: #0f64c8;
  min-height: 48px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.askcarbi-vision-launcher span {
  font-size: 20px;
}

.askcarbi-vision-launcher strong {
  font-size: 12px;
}

#askcarbi-vision-panel {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
}

.avc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 24, 47, 0.68);
  backdrop-filter: blur(9px);
}

.avc-shell {
  position: relative;
  width: min(720px, calc(100vw - 22px));
  max-height: calc(100vh - 22px);
  overflow: auto;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(8, 33, 70, 0.32);
}

.avc-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 23px 22px 18px;
  background: linear-gradient(135deg, #0b65ca, #1787f5);
  color: white;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.avc-header small {
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0.78;
}

.avc-header h2 {
  margin: 5px 0 3px;
  font-size: 25px;
}

.avc-header p {
  margin: 0;
  font-size: 13px;
  opacity: 0.9;
}

.avc-close {
  border: 0;
  background: rgba(255,255,255,0.18);
  color: white;
  border-radius: 50%;
  width: 39px;
  height: 39px;
  font-size: 25px;
  cursor: pointer;
}

.avc-body {
  padding: 20px;
}

.avc-notice,
.avc-safety {
  padding: 12px 14px;
  border-radius: 15px;
  background: #f1f7ff;
  color: #315271;
  font-size: 12px;
  line-height: 1.5;
}

.avc-field {
  display: grid;
  gap: 7px;
  margin-top: 17px;
}

.avc-field > span {
  color: #21364e;
  font-size: 13px;
  font-weight: 750;
}

.avc-field select,
.avc-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d5e0ee;
  border-radius: 15px;
  padding: 13px 14px;
  background: white;
  color: #14283f;
  font: inherit;
}

.avc-field textarea {
  resize: vertical;
  min-height: 104px;
}

.avc-upload-grid {
  margin-top: 17px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.avc-upload-card {
  position: relative;
  min-height: 112px;
  border: 1px dashed #8db9e8;
  border-radius: 18px;
  padding: 17px;
  background: #f7fbff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
}

.avc-upload-card strong {
  color: #1269c8;
  font-size: 15px;
}

.avc-upload-card span {
  margin-top: 4px;
  color: #71849a;
  font-size: 11px;
}

.avc-upload-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.avc-file-name {
  margin-top: 9px;
  color: #597089;
  font-size: 12px;
}

.avc-permission {
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #425970;
  font-size: 12px;
  line-height: 1.45;
}

.avc-permission input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
}

.avc-analyze {
  width: 100%;
  margin-top: 17px;
  border: 0;
  border-radius: 16px;
  padding: 15px;
  background: linear-gradient(135deg, #0868cf, #1691ff);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.avc-analyze:disabled {
  opacity: 0.62;
  cursor: wait;
}

.avc-status {
  min-height: 20px;
  margin-top: 12px;
  text-align: center;
  color: #557089;
  font-size: 12px;
}

.avc-status[data-type="error"] {
  color: #b42318;
}

.avc-status[data-type="success"] {
  color: #08783e;
}

.avc-status[data-type="working"] {
  color: #0d67c2;
}

.avc-result {
  margin: 15px 0 0;
  border-radius: 18px;
  padding: 17px;
  background: #f5f8fc;
  color: #172c43;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.avc-safety {
  margin-top: 16px;
  background: #fff8e9;
  color: #6d5726;
}

@media (max-width: 650px) {
  .askcarbi-vision-launcher {
    min-width: 48px;
    width: 48px;
    padding: 0;
    justify-content: center;
  }

  .askcarbi-vision-launcher strong {
    display: none;
  }

  .avc-shell {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }

  .avc-header {
    padding-top: max(19px, env(safe-area-inset-top));
  }

  .avc-upload-grid {
    grid-template-columns: 1fr;
  }
}
