@font-face {
  font-family: "KDCB Outfit";
  src: url("./fonts/outfit-normal-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "KDCB Inter";
  src: url("./fonts/inter-normal-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.kdcb-widget {
  --kdcb-color-primary: #d1af1a;
  --kdcb-color-primary-strong: #c4a002;
  --kdcb-color-secondary: #071424;
  --kdcb-color-text: #1f2d3a;
  --kdcb-color-text-soft: #465361;
  --kdcb-color-border: #d9dde3;
  --kdcb-color-bg: #f5f6f6;
  --kdcb-color-surface: #fdfdfd;
  --kdcb-color-ok-bg: #edf9f1;
  --kdcb-color-ok-fg: #236a42;
  --kdcb-color-error-bg: #fff3f1;
  --kdcb-color-error-fg: #a93828;
  --kdcb-hover-tint-bg: rgba(209, 175, 26, 0.14);
  --kdcb-hover-tint-text: #5e4a14;
  --kdcb-hover-tint-border: #d2b53f;
  --kdcb-hover-tint-bg-soft: rgba(209, 175, 26, 0.1);
  --kdcb-radius-sm: 8px;
  --kdcb-radius-md: 16px;
  --kdcb-radius-lg: 22px;
  --kdcb-shadow-soft: 0 10px 24px rgba(7, 20, 36, 0.15);
  --kdcb-shadow-strong: 0 20px 52px rgba(7, 20, 36, 0.24);
  --kdcb-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --kdcb-motion-shell-duration: 0.82s;
  --kdcb-motion-shell-opacity-duration: 0.52s;
  --kdcb-motion-shell-delay: 0.06s;
  --kdcb-motion-cherry-duration: 0.82s;
  --kdcb-motion-micro-duration: 0.18s;
  --kdcb-cherry-open-shift-x: -30px;
  --kdcb-cherry-width: 304px;
  --kdcb-cherry-height: 202px;
  --kdcb-cherry-open-lift: 112px;
  --kdcb-shell-width: min(760px, calc(100vw - 24px));
  --kdcb-shell-height: min(540px, calc(100vh - 24px));
  --kdcb-bubble-anchor-right: calc(var(--kdcb-cherry-width) - 62px);
  --kdcb-controls-anchor-right: calc(var(--kdcb-bubble-anchor-right) + 60px);
  --kdcb-bubble-anchor-left: calc(var(--kdcb-cherry-width) - 62px);
  --kdcb-controls-anchor-left: calc(var(--kdcb-bubble-anchor-left) + 60px);

  position: fixed;
  right: 18px;
  bottom: 18px;
  width: var(--kdcb-cherry-width);
  height: var(--kdcb-cherry-height);
  overflow: visible;
  z-index: 999999;
  font-family: "KDCB Inter", "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--kdcb-color-text);
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 769px) {
  .kdcb-widget.kdcb-open {
    width: var(--kdcb-shell-width);
    height: var(--kdcb-shell-height);
  }
}

.kdcb-widget.kdcb-side-left {
  left: 18px;
  right: auto;
  --kdcb-cherry-open-shift-x: 30px;
}

.kdcb-widget,
.kdcb-widget * {
  box-sizing: border-box;
}

.kdcb-widget button,
.kdcb-widget input,
.kdcb-widget select,
.kdcb-widget textarea {
  font-family: "KDCB Inter", "Inter", "Segoe UI", Arial, sans-serif !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.kdcb-widget .kdcb-main-bubble {
  background: linear-gradient(168deg, #ffffff 0%, #fffdf7 40%, #fff8ec 100%) !important;
  border: none !important;
}

.kdcb-widget .kdcb-main-bubble::before {
  background: #fff8ec !important;
}

.kdcb-widget .kdcb-defect-shortcut,
.kdcb-widget .kdcb-utility-btn,
.kdcb-widget .kdcb-send,
.kdcb-widget .kdcb-privacy-accept,
.kdcb-widget .kdcb-sheet-action-btn,
.kdcb-widget .kdcb-sheet-close,
.kdcb-widget .kdcb-defect-close {
  appearance: none !important;
  -webkit-appearance: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.kdcb-widget input,
.kdcb-widget select,
.kdcb-widget textarea {
  font-family: "KDCB Inter", "Inter", "Segoe UI", Arial, sans-serif !important;
}

.kdcb-widget [hidden] {
  display: none !important;
}

.kdcb-cherry-launcher {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 6;
  width: var(--kdcb-cherry-width);
  height: var(--kdcb-cherry-height);
  border: 0 !important;
  border-radius: 0;
  padding: 0;
  background: transparent !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  overflow: visible;
  display: grid;
  place-items: center;
  transform: translateY(0);
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  transition: transform var(--kdcb-motion-cherry-duration) var(--kdcb-motion-ease);
}

.kdcb-widget.kdcb-side-left .kdcb-cherry-launcher {
  left: 0;
  right: auto;
  transform: translateX(-70px);
}

.kdcb-cherry-launcher::before,
.kdcb-cherry-launcher::after {
  content: none !important;
  display: none !important;
}

.kdcb-widget.kdcb-open .kdcb-cherry-launcher {
  animation: none;
  transform: translate(var(--kdcb-cherry-open-shift-x), calc(-1 * var(--kdcb-cherry-open-lift)));
}

.kdcb-widget.kdcb-side-left.kdcb-open .kdcb-cherry-launcher {
  transform: translate(calc(-70px + var(--kdcb-cherry-open-shift-x)), calc(-1 * var(--kdcb-cherry-open-lift)));
}

@keyframes kdcb-cherry-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

.kdcb-cherry-launcher:focus-visible {
  outline: 3px solid rgba(209, 175, 26, 0.36);
  outline-offset: 2px;
}

.kdcb-cherry-launcher img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.kdcb-widget:not(.kdcb-open) .kdcb-cherry-launcher img {
  animation: kdcb-cherry-float 7.8s ease-in-out infinite;
}

.kdcb-widget.kdcb-open .kdcb-cherry-launcher img {
  animation: none;
}

.kdcb-shell {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 7;
  width: var(--kdcb-shell-width);
  height: var(--kdcb-shell-height);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  transform: translateY(30px);
  visibility: hidden;
  transition:
    opacity var(--kdcb-motion-shell-opacity-duration) ease var(--kdcb-motion-shell-delay),
    transform var(--kdcb-motion-shell-duration) var(--kdcb-motion-ease) var(--kdcb-motion-shell-delay),
    visibility 0s linear calc(var(--kdcb-motion-shell-duration) + var(--kdcb-motion-shell-delay));
}

.kdcb-widget.kdcb-open .kdcb-shell {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition:
    opacity var(--kdcb-motion-shell-opacity-duration) ease var(--kdcb-motion-shell-delay),
    transform var(--kdcb-motion-shell-duration) var(--kdcb-motion-ease) var(--kdcb-motion-shell-delay),
    visibility 0s linear 0s;
}

.kdcb-widget.kdcb-side-left .kdcb-shell {
  left: 0;
  right: auto;
}

/* privacy notice – rendered inline inside bubble */
.kdcb-privacy-notice {
  font-size: 0.74rem;
  line-height: 1.4;
  color: #50431f;
}

.kdcb-privacy-notice strong {
  display: block;
  margin-bottom: 6px;
  font-family: "KDCB Outfit", "Outfit", "KDCB Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #42330d;
}

.kdcb-privacy-notice p {
  margin: 0 0 12px;
  font-weight: 500;
}

.kdcb-privacy-accept {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px;
  padding: 6px 18px !important;
  border: none !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #d1af1a 0%, #c9a20e 100%) !important;
  color: #fff !important;
  font-family: "KDCB Outfit", "Outfit", "KDCB Inter", sans-serif !important;
  font-size: 0.76rem !important;
  font-weight: 650 !important;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(209, 175, 26, 0.25);
  transition:
    background var(--kdcb-motion-micro-duration) ease,
    box-shadow var(--kdcb-motion-micro-duration) ease,
    transform var(--kdcb-motion-micro-duration) ease;
}

.kdcb-privacy-accept:hover {
  background: linear-gradient(135deg, #c9a20e 0%, #b89200 100%);
  box-shadow: 0 3px 10px rgba(209, 175, 26, 0.35);
  transform: translateY(-1px);
}

.kdcb-privacy-accept:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(209, 175, 26, 0.2);
}

.kdcb-privacy-accept:focus-visible {
  outline: 2px solid rgba(209, 175, 26, 0.5);
  outline-offset: 2px;
}

.kdcb-main-bubble {
  --tail-size: 22px;
  --tail-pos: 92%;
  --tail-base: 26px;
  position: absolute;
  right: var(--kdcb-bubble-anchor-right);
  bottom: 151px;
  width: min(430px, calc(100vw - 132px));
  z-index: 8;
  min-height: 138px;
  max-height: 270px;
  overflow: visible;
  border-radius: 24px 24px 8px 24px;
  border: none;
  background: linear-gradient(168deg, #ffffff 0%, #fffdf7 40%, #fff8ec 100%);
  padding: 16px 18px;
  filter:
    drop-shadow(0 1px 2px rgba(7, 20, 36, 0.05))
    drop-shadow(0 8px 24px rgba(7, 20, 36, 0.10))
    drop-shadow(0 0 0.5px rgba(209, 175, 26, 0.18));
  pointer-events: auto;
}

/* tail – extends ::before beyond the right edge, clips to triangle */
.kdcb-main-bubble::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 calc(-1 * var(--tail-size)) 0 0;
  background: #fff8ec;
  clip-path: polygon(
    50% 50%,
    calc(100% - var(--tail-size)) max(0%, calc(var(--tail-pos) - var(--tail-base) / 2)),
    100% var(--tail-pos),
    calc(100% - var(--tail-size)) min(100%, calc(var(--tail-pos) + var(--tail-base) / 2))
  );
  pointer-events: none;
}

.kdcb-main-bubble::after {
  content: none;
}

.kdcb-widget.kdcb-side-left .kdcb-main-bubble {
  left: var(--kdcb-bubble-anchor-left);
  right: auto;
  border-radius: 24px 24px 24px 8px;
}

.kdcb-widget.kdcb-side-left .kdcb-main-bubble::before {
  inset: 0 0 0 calc(-1 * var(--tail-size));
  clip-path: polygon(
    50% 50%,
    var(--tail-size) max(0%, calc(var(--tail-pos) - var(--tail-base) / 2)),
    0 var(--tail-pos),
    var(--tail-size) min(100%, calc(var(--tail-pos) + var(--tail-base) / 2))
  );
}

.kdcb-main-content {
  position: relative;
  z-index: 2;
  font-size: 0.97rem;
  line-height: 1.5;
  color: var(--kdcb-color-text);
  font-weight: 500;
  max-height: 232px;
  overflow: auto;
  padding-right: 4px;
}

.kdcb-main-typing {
  position: relative;
  z-index: 2;
}

.kdcb-main-content p {
  margin: 0;
}

.kdcb-main-content p + p,
.kdcb-main-content ul + p,
.kdcb-main-content ol + p,
.kdcb-main-content p + ul,
.kdcb-main-content p + ol {
  margin-top: 10px;
}

.kdcb-main-content ul,
.kdcb-main-content ol {
  margin: 8px 0 0;
  padding-left: 20px;
}

.kdcb-main-content li + li {
  margin-top: 6px;
}

.kdcb-main-content a {
  color: var(--kdcb-color-secondary);
  font-weight: 600;
}

.kdcb-main-content strong {
  font-weight: 700;
}

.kdcb-welcome-heading {
  font-family: "KDCB Outfit", "Outfit", "KDCB Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 720;
  color: var(--kdcb-color-secondary);
  letter-spacing: -0.01em;
}

.kdcb-main-content em {
  font-style: italic;
}

.kdcb-main-content code {
  font-family: inherit;
  background: #f0f2f6;
  border-radius: 6px;
  padding: 0.1em 0.35em;
  font-size: 0.86em;
  font-weight: 600;
}

.kdcb-main-content .kdcb-code {
  margin: 10px 0 0;
  padding: 10px;
  border-radius: 10px;
  background: #f3f5f8;
  border: 1px solid #e4e8ef;
  overflow: auto;
  font-family: inherit;
}

.kdcb-main-content .kdcb-code code {
  font-family: inherit;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.kdcb-main-sources {
  position: relative;
  z-index: 3;
  margin-top: 10px;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  transform: none;
}

.kdcb-main-sources a {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: min(100%, 200px);
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #e1d5a2;
  background: #faf4de;
  color: #6b5620;
  text-decoration: none;
  font-size: 0.72rem;
  line-height: 1.15;
  font-weight: 600;
  transition:
    background-color var(--kdcb-motion-micro-duration) ease,
    border-color var(--kdcb-motion-micro-duration) ease,
    color var(--kdcb-motion-micro-duration) ease;
}

.kdcb-source-pill-label {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kdcb-main-sources a:hover {
  background: #f3e8c4;
  border-color: #d5bc5f;
  color: #5a4714;
}

.kdcb-main-typing {
  display: inline-flex;
  gap: 5px;
  margin-top: 6px;
}

.kdcb-main-typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(209, 175, 26, 0.45);
  animation: kdcb-typing 1.4s infinite both;
}

.kdcb-main-typing span:nth-child(2) {
  animation-delay: 0.18s;
}

.kdcb-main-typing span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes kdcb-typing {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

@keyframes kdcb-stagger-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kdcb-stagger > * {
  opacity: 0;
  animation: kdcb-stagger-in 0.3s var(--kdcb-motion-ease) forwards;
}

.kdcb-stagger > *:nth-child(1) { animation-delay: 0.02s; }
.kdcb-stagger > *:nth-child(2) { animation-delay: 0.06s; }
.kdcb-stagger > *:nth-child(3) { animation-delay: 0.1s; }
.kdcb-stagger > *:nth-child(4) { animation-delay: 0.14s; }
.kdcb-stagger > *:nth-child(5) { animation-delay: 0.18s; }
.kdcb-stagger > *:nth-child(6) { animation-delay: 0.22s; }

.kdcb-actions {
  position: absolute;
  right: 0;
  bottom: 6px;
  width: min(318px, calc(100vw - 26px));
  z-index: 8;
  pointer-events: auto;
  padding: 0;
}

.kdcb-widget.kdcb-side-left .kdcb-actions {
  left: 0;
  right: auto;
}

.kdcb-composer {
  border: 0;
  background: transparent;
  padding: 0;
}

.kdcb-composer-label {
  display: none;
}

.kdcb-input-row {
  --kdcb-input-fade-progress: 0;
  --kdcb-input-fade-opacity: 0;
  --kdcb-input-fade-blur: 0px;
  --kdcb-input-fade-height: 12px;

  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  padding: 10px 10px 10px 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 2px 8px rgba(7, 20, 36, 0.06),
    0 10px 28px rgba(7, 20, 36, 0.09);
}

.kdcb-input-row::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 50px;
  top: 1px;
  height: var(--kdcb-input-fade-height);
  border-radius: 999px;
  pointer-events: none;
  opacity: var(--kdcb-input-fade-opacity);
  transform: translateY(calc((1 - var(--kdcb-input-fade-progress)) * -3px));
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.99) 0%,
    rgba(255, 255, 255, 0.84) 44%,
    rgba(255, 255, 255, 0) 100%
  );
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 48%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 48%, rgba(0, 0, 0, 0) 100%);
  backdrop-filter: blur(var(--kdcb-input-fade-blur));
  -webkit-backdrop-filter: blur(var(--kdcb-input-fade-blur));
  will-change: opacity, transform, backdrop-filter, -webkit-backdrop-filter;
}

.kdcb-input-row:focus-within {
  background: rgba(255, 253, 250, 0.75);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 0 0 3px rgba(209, 175, 26, 0.08),
    0 2px 8px rgba(7, 20, 36, 0.05),
    0 10px 28px rgba(7, 20, 36, 0.08);
}

.kdcb-input {
  flex: 1;
  min-height: 22px;
  max-height: 82px;
  border: 0;
  outline: none;
  resize: none;
  display: block;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  font-size: 0.94rem;
  line-height: 1.4;
  font-weight: 500;
  color: var(--kdcb-color-text);
  background: transparent;
  font-family: "KDCB Inter", "Inter", "Segoe UI", Arial, sans-serif !important;
  font: 500 0.94rem/1.45 "KDCB Inter", "Inter", "Segoe UI", Arial, sans-serif !important;
  letter-spacing: normal;
  word-spacing: normal;
  text-transform: none;
  scrollbar-width: none !important;
  scrollbar-color: transparent transparent;
  -ms-overflow-style: none;
}

.kdcb-input::placeholder {
  color: #a0a8b4;
  font-weight: 400;
}

.kdcb-input::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  background: transparent;
  display: none !important;
}

.kdcb-send {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  flex-shrink: 0;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(145deg, #d9b830 0%, #c9a20e 100%) !important;
  color: #fff !important;
  display: inline-grid !important;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(209, 175, 26, 0.3);
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  text-indent: 0 !important;
  vertical-align: middle !important;
  aspect-ratio: 1 / 1;
  transition:
    transform var(--kdcb-motion-micro-duration) ease,
    background var(--kdcb-motion-micro-duration) ease,
    box-shadow var(--kdcb-motion-micro-duration) ease;
}

.kdcb-send svg {
  width: 16px !important;
  height: 16px !important;
  display: block !important;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kdcb-send:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.04);
  background: linear-gradient(145deg, #c9a20e 0%, #b89200 100%);
  box-shadow: 0 4px 16px rgba(209, 175, 26, 0.4);
}

.kdcb-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@keyframes kdcb-send-pulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.14); }
  100% { transform: scale(1); }
}

.kdcb-send.kdcb-pulse {
  animation: kdcb-send-pulse 0.28s ease;
}

.kdcb-defect-shortcut {
  border: 0 !important;
  border-right: 1px solid #e1e7f1 !important;
  border-radius: 0 !important;
  background: rgba(209, 175, 26, 0.09) !important;
  color: #5e4a14 !important;
  font-family: "KDCB Outfit", "Outfit", "KDCB Inter", sans-serif !important;
  font-size: 0.74rem !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px;
  height: 30px !important;
  padding: 0 11px !important;
  cursor: pointer;
  transition:
    background-color var(--kdcb-motion-micro-duration) ease,
    color var(--kdcb-motion-micro-duration) ease;
}

.kdcb-defect-shortcut svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.kdcb-defect-shortcut:hover {
  background: rgba(209, 175, 26, 0.18);
  color: #4a3b10;
}

.kdcb-defect-shortcut:focus-visible {
  outline: 2px solid rgba(209, 175, 26, 0.4);
  outline-offset: -2px;
}

.kdcb-utility-pill {
  position: absolute;
  right: calc(var(--kdcb-bubble-anchor-right) + min(430px, calc(100vw - 132px)) - 273px);
  bottom: 99px;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d2dbe6;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(7, 20, 36, 0.08);
  overflow: hidden;
  pointer-events: auto;
}

.kdcb-widget.kdcb-side-left .kdcb-utility-pill {
  left: calc(var(--kdcb-bubble-anchor-left) + min(430px, calc(100vw - 132px)) - 273px);
  right: auto;
}

.kdcb-utility-btn {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--kdcb-color-secondary) !important;
  font-family: "KDCB Outfit", "Outfit", "KDCB Inter", sans-serif !important;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px;
  height: 30px !important;
  padding: 0 10px !important;
  cursor: pointer;
  transition:
    background-color var(--kdcb-motion-micro-duration) ease,
    color var(--kdcb-motion-micro-duration) ease;
}

.kdcb-utility-btn + .kdcb-utility-btn {
  border-left: 1px solid #e1e7f1;
}

.kdcb-utility-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.kdcb-utility-btn:hover {
  background: var(--kdcb-hover-tint-bg);
  color: var(--kdcb-hover-tint-text);
}

.kdcb-utility-btn:focus-visible {
  outline: 2px solid rgba(209, 175, 26, 0.4);
  outline-offset: -2px;
}

.kdcb-utility-history[aria-expanded="true"] {
  background: var(--kdcb-hover-tint-bg);
  color: var(--kdcb-hover-tint-text);
}

.kdcb-history-drawer {
  position: absolute;
  right: var(--kdcb-bubble-anchor-right);
  bottom: 286px;
  width: min(430px, calc(100vw - 132px));
  max-height: min(290px, calc(100vh - 305px));
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #d8dee8;
  border-radius: 16px;
  padding: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  box-shadow: 0 14px 34px rgba(7, 20, 36, 0.18);
  z-index: 10;
  pointer-events: auto;
  scrollbar-width: none !important;
  scrollbar-color: transparent transparent;
  -ms-overflow-style: none !important;
  -webkit-overflow-scrolling: touch;
}

.kdcb-widget.kdcb-side-left .kdcb-history-drawer {
  left: var(--kdcb-bubble-anchor-left);
  right: auto;
}

.kdcb-history-drawer::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none;
  background: transparent;
}

.kdcb-history-drawer::-webkit-scrollbar-track,
.kdcb-history-drawer::-webkit-scrollbar-thumb,
.kdcb-history-drawer::-webkit-scrollbar-corner {
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.kdcb-history-drawer * {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.kdcb-history-drawer *::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent;
}

.kdcb-history-head {
  position: sticky;
  top: -10px;
  z-index: 1;
  margin: -10px -10px 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #d8dee8;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.kdcb-history-head-copy {
  display: grid;
  gap: 2px;
}

.kdcb-history-head-title {
  font-family: "KDCB Outfit", "Outfit", "KDCB Inter", sans-serif;
  font-size: 0.82rem;
  line-height: 1.1;
  font-weight: 700;
  color: var(--kdcb-color-secondary);
}

.kdcb-history-head-count {
  font-size: 0.72rem;
  line-height: 1.1;
  font-weight: 550;
  color: var(--kdcb-color-text-soft);
}

.kdcb-history-close {
  width: 26px;
  height: 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--kdcb-color-secondary);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color var(--kdcb-motion-micro-duration) ease,
    color var(--kdcb-motion-micro-duration) ease,
    border-color var(--kdcb-motion-micro-duration) ease;
}

.kdcb-history-close:hover {
  background: var(--kdcb-hover-tint-bg-soft);
  color: var(--kdcb-hover-tint-text);
  border-color: var(--kdcb-hover-tint-border);
}

.kdcb-history-close:focus-visible {
  outline: 2px solid rgba(209, 175, 26, 0.4);
  outline-offset: 1px;
}

.kdcb-history-empty-state {
  border: 1px dashed #d6deea;
  border-radius: 12px;
  padding: 11px 12px;
  background: #fbfcfe;
}

.kdcb-history-empty-title {
  margin: 0;
  font-family: "KDCB Outfit", "Outfit", "KDCB Inter", sans-serif;
  font-size: 0.82rem;
  line-height: 1.25;
  font-weight: 650;
  color: var(--kdcb-color-secondary);
}

.kdcb-history-empty {
  margin: 4px 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--kdcb-color-text-soft);
  font-weight: 500;
}

.kdcb-history-item {
  border: 1px solid #dde3eb;
  border-radius: 12px;
  padding: 10px;
  background: #fcfdff;
}

.kdcb-history-item + .kdcb-history-item {
  margin-top: 8px;
}

.kdcb-history-assistant {
  border-color: #dbe1ea;
  background: #fcfdff;
}

.kdcb-history-user {
  border-color: #e7d7a0;
  background: #fff9ea;
}

.kdcb-history-role {
  font-family: "KDCB Outfit", "Outfit", "KDCB Inter", sans-serif;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6f7b8a;
  margin-bottom: 4px;
}

.kdcb-history-user .kdcb-history-role {
  color: #866a20;
}

.kdcb-history-body {
  font-size: 0.86rem;
  line-height: 1.45;
  font-weight: 500;
}

.kdcb-history-body p {
  margin: 0;
}

.kdcb-history-body p + p,
.kdcb-history-body ul + p,
.kdcb-history-body ol + p,
.kdcb-history-body p + ul,
.kdcb-history-body p + ol {
  margin-top: 8px;
}

.kdcb-history-body ul,
.kdcb-history-body ol {
  margin: 7px 0 0;
  padding-left: 18px;
}

.kdcb-history-body code {
  font-family: inherit;
  font-size: 0.84em;
  font-weight: 600;
}

.kdcb-history-body .kdcb-code {
  margin: 8px 0 0;
  font-family: inherit;
}

.kdcb-history-body .kdcb-code code {
  font-family: inherit;
}

.kdcb-history-sources {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.kdcb-history-sources-toggle {
  margin-top: 8px;
}

.kdcb-history-sources-toggle summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #d5deea;
  background: #f7f9fc;
  color: #4a5868;
  font-size: 0.73rem;
  line-height: 1.1;
  font-weight: 650;
  cursor: pointer;
  transition:
    background-color var(--kdcb-motion-micro-duration) ease,
    color var(--kdcb-motion-micro-duration) ease,
    border-color var(--kdcb-motion-micro-duration) ease;
}

.kdcb-history-sources-toggle summary:hover {
  background: var(--kdcb-hover-tint-bg-soft);
  color: var(--kdcb-hover-tint-text);
  border-color: var(--kdcb-hover-tint-border);
}

.kdcb-history-sources-toggle summary::marker,
.kdcb-history-sources-toggle summary::-webkit-details-marker {
  display: none;
}

.kdcb-history-sources-toggle summary::before {
  content: "▸";
  font-size: 0.76rem;
  line-height: 1;
  transform: translateY(-0.5px);
  transition: transform var(--kdcb-motion-micro-duration) ease;
}

.kdcb-history-sources-toggle[open] summary::before {
  transform: rotate(90deg) translateX(1px);
}

.kdcb-history-sources a {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: min(100%, 200px);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #e1d5a2;
  background: #f8f1d9;
  color: #6b5620;
  text-decoration: none;
  font-size: 0.74rem;
  line-height: 1.15;
  font-weight: 600;
}

.kdcb-history-sources a:hover {
  background: #f3e8c4;
  border-color: #d5bc5f;
  color: #5a4714;
}

.kdcb-defect-panel {
  position: absolute;
  right: calc(var(--kdcb-bubble-anchor-right) + 24px);
  bottom: 74px;
  width: min(390px, calc(100vw - var(--kdcb-cherry-width) - 78px));
  max-height: min(470px, calc(100vh - 50px));
  pointer-events: auto;
  z-index: 10;
}

.kdcb-widget.kdcb-side-left .kdcb-defect-panel {
  left: calc(var(--kdcb-bubble-anchor-left) + 24px);
  right: auto;
}

.kdcb-defect-card {
  width: 100%;
  max-height: inherit;
  overflow: auto;
  background: var(--kdcb-color-surface);
  border: 1px solid #dde3eb;
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(7, 20, 36, 0.2);
  padding: 16px;
}

.kdcb-defect-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.kdcb-defect-title {
  margin: 0;
  font-family: "KDCB Outfit", "Outfit", "KDCB Inter", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--kdcb-color-secondary);
}

.kdcb-defect-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--kdcb-color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--kdcb-color-secondary);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color var(--kdcb-motion-micro-duration) ease,
    color var(--kdcb-motion-micro-duration) ease,
    border-color var(--kdcb-motion-micro-duration) ease;
}

.kdcb-defect-close:hover {
  background: var(--kdcb-hover-tint-bg-soft);
  color: var(--kdcb-hover-tint-text);
  border-color: var(--kdcb-hover-tint-border);
}

.kdcb-defect-close:focus-visible {
  outline: 2px solid rgba(209, 175, 26, 0.4);
  outline-offset: 1px;
}

.kdcb-defect-form {
  display: grid;
  gap: 12px;
}

.kdcb-step {
  display: grid;
  gap: 10px;
}

.kdcb-step[hidden] {
  display: none !important;
}

.kdcb-step-intro {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--kdcb-color-text-soft);
  font-weight: 500;
}

.kdcb-grid {
  display: grid;
  gap: 10px;
}

.kdcb-grid-step1,
.kdcb-grid-step2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kdcb-field {
  display: grid;
  gap: 5px;
}

.kdcb-field label {
  font-size: 0.78rem;
  font-family: "KDCB Outfit", "Outfit", "KDCB Inter", sans-serif;
  font-weight: 600;
  color: #445160;
  letter-spacing: 0.01em;
}

.kdcb-field input,
.kdcb-field select,
.kdcb-field textarea {
  width: 100%;
  border: 1px solid var(--kdcb-color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--kdcb-color-text);
  font-family: "KDCB Inter", "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 500;
  padding: 10px 11px;
}

.kdcb-field textarea {
  min-height: 120px;
  resize: vertical;
  overflow-y: auto;
  scrollbar-width: none !important;
  scrollbar-color: transparent transparent;
  -ms-overflow-style: none;
}

.kdcb-field textarea::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  background: transparent;
  display: none !important;
}

.kdcb-field input:focus,
.kdcb-field select:focus,
.kdcb-field textarea:focus {
  outline: none;
  border-color: rgba(209, 175, 26, 0.82);
  box-shadow: 0 0 0 3px rgba(209, 175, 26, 0.16);
}

.kdcb-callback-card {
  border: 1px solid #ece3c4;
  background: #f8f4e4;
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.kdcb-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "KDCB Outfit", "Outfit", "KDCB Inter", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: #5a4a1a;
}

.kdcb-checkbox input {
  width: 15px;
  height: 15px;
  accent-color: var(--kdcb-color-primary-strong);
}

.kdcb-callback-hint {
  margin: 0;
  font-size: 0.77rem;
  line-height: 1.4;
  color: #65562a;
  font-weight: 500;
}

.kdcb-callback-phone {
  margin-top: 2px;
}

.kdcb-form-nav {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.kdcb-widget .kdcb-form-nav button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  padding: 10px 14px !important;
  margin: 0 !important;
  min-height: 42px !important;
  font-family: "KDCB Outfit", "Outfit", "KDCB Inter", sans-serif !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer;
  transition:
    background-color var(--kdcb-motion-micro-duration) ease,
    color var(--kdcb-motion-micro-duration) ease,
    border-color var(--kdcb-motion-micro-duration) ease;
}

.kdcb-widget .kdcb-prev {
  background: #fff !important;
  color: var(--kdcb-color-secondary) !important;
  border-color: var(--kdcb-color-border) !important;
}

.kdcb-widget .kdcb-next,
.kdcb-widget .kdcb-submit {
  background: var(--kdcb-color-primary) !important;
  color: #fff !important;
  border-color: var(--kdcb-color-primary) !important;
}

.kdcb-widget .kdcb-prev:hover,
.kdcb-widget .kdcb-next:hover:not(:disabled),
.kdcb-widget .kdcb-submit:hover:not(:disabled) {
  filter: none;
}

.kdcb-widget .kdcb-prev:hover {
  border-color: var(--kdcb-hover-tint-border) !important;
  background: var(--kdcb-hover-tint-bg) !important;
  color: var(--kdcb-hover-tint-text) !important;
}

.kdcb-widget .kdcb-next:hover:not(:disabled),
.kdcb-widget .kdcb-submit:hover:not(:disabled) {
  background: var(--kdcb-color-primary-strong) !important;
  border-color: var(--kdcb-color-primary-strong) !important;
}

.kdcb-widget .kdcb-next:disabled,
.kdcb-widget .kdcb-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.kdcb-status {
  min-height: 18px;
  border-radius: 8px;
  padding: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  font-weight: 550;
}

.kdcb-status:not(:empty) {
  padding: 9px 10px;
}

.kdcb-status.kdcb-ok {
  background: var(--kdcb-color-ok-bg);
  color: var(--kdcb-color-ok-fg);
}

.kdcb-status.kdcb-error {
  background: var(--kdcb-color-error-bg);
  color: var(--kdcb-color-error-fg);
}

@media (max-width: 900px) {
  .kdcb-shell {
    width: min(680px, calc(100vw - 18px));
    height: min(500px, calc(100vh - 18px));
  }

  .kdcb-defect-panel {
    right: calc(var(--kdcb-cherry-width) + 22px);
    width: min(350px, calc(100vw - var(--kdcb-cherry-width) - 72px));
  }
}

/* ── backdrop overlay ── */
.kdcb-backdrop {
  display: none;
}

/* ── sheet header + actions (mobile only) ── */
.kdcb-sheet-header {
  display: none;
}

.kdcb-sheet-actions {
  display: none;
}

@media (max-width: 768px) {
  .kdcb-widget,
  .kdcb-widget.kdcb-side-left {
    left: auto !important;
    right: 12px !important;
    bottom: 12px !important;
  }

  .kdcb-widget.kdcb-side-left .kdcb-cherry-launcher,
  .kdcb-widget.kdcb-side-left.kdcb-open .kdcb-cherry-launcher {
    left: auto !important;
    right: 0 !important;
    transform: none !important;
  }

  .kdcb-widget.kdcb-side-left .kdcb-shell,
  .kdcb-widget.kdcb-side-left .kdcb-actions,
  .kdcb-widget.kdcb-side-left .kdcb-utility-pill,
  .kdcb-widget.kdcb-side-left .kdcb-history-drawer,
  .kdcb-widget.kdcb-side-left .kdcb-defect-panel,
  .kdcb-widget.kdcb-side-left .kdcb-main-bubble {
    left: auto !important;
    right: auto !important;
  }

  .kdcb-widget .kdcb-send {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    display: inline-grid !important;
    place-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(145deg, #d9b830 0%, #c9a20e 100%) !important;
    color: #fff !important;
    line-height: 1 !important;
    box-shadow: 0 2px 8px rgba(209, 175, 26, 0.3) !important;
    aspect-ratio: 1 / 1;
  }

  .kdcb-widget .kdcb-send svg {
    width: 16px !important;
    height: 16px !important;
    display: block !important;
  }

  .kdcb-widget {
    --kdcb-cherry-width: 125px;
    --kdcb-cherry-height: 83px;
    --kdcb-cherry-open-lift: 0px;
    --kdcb-cherry-open-shift-x: 0px;
    --kdcb-motion-shell-duration: 0.48s;
    --kdcb-motion-shell-opacity-duration: 0.32s;
    --kdcb-motion-shell-delay: 0.02s;
    --kdcb-motion-cherry-duration: 0.48s;
  }

  /* cherry stays at bottom-right; when open, hide it */
  .kdcb-widget.kdcb-open .kdcb-cherry-launcher {
    opacity: 0;
    pointer-events: none;
    transform: none;
    transition: opacity 0.2s ease;
  }

  /* backdrop – must sit below shell (z-index 7) inside widget stacking context */
  .kdcb-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(7, 20, 36, 0.32);
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s ease;
  }

  .kdcb-widget.kdcb-open .kdcb-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  /* shell → bottom sheet */
  .kdcb-shell {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: min(80vh, 600px);
    min-height: 0;
    background: var(--kdcb-color-surface);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 24px rgba(7, 20, 36, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translateY(100%);
    pointer-events: auto;
  }

  .kdcb-widget.kdcb-open .kdcb-shell {
    transform: translateY(0);
  }

  /* sheet header */
  .kdcb-sheet-header {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 10px 14px 10px 16px;
    border-bottom: 1px solid var(--kdcb-color-border);
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    position: relative;
    order: 1;
  }

  .kdcb-sheet-handle {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: #d0d5dc;
  }

  .kdcb-sheet-title {
    flex: 1;
    font-family: "KDCB Outfit", "Outfit", "KDCB Inter", sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--kdcb-color-secondary);
    padding-top: 2px;
  }

.kdcb-sheet-close {
    width: 32px;
    height: 32px;
  border: 1px solid var(--kdcb-color-border) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--kdcb-color-secondary) !important;
  font-size: 1.15rem !important;
  line-height: 1 !important;
    cursor: pointer;
    flex-shrink: 0;
    transition:
      background-color var(--kdcb-motion-micro-duration) ease,
      color var(--kdcb-motion-micro-duration) ease,
      border-color var(--kdcb-motion-micro-duration) ease;
  }

  .kdcb-sheet-close:hover {
    background: var(--kdcb-hover-tint-bg-soft);
    color: var(--kdcb-hover-tint-text);
    border-color: var(--kdcb-hover-tint-border);
  }

  /* sheet header actions group */
  .kdcb-sheet-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .kdcb-widget .kdcb-sheet-action-btn,
  .kdcb-widget .kdcb-sheet-close {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 10px !important;
    margin: 0 !important;
    border: 1px solid var(--kdcb-color-border) !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: var(--kdcb-color-secondary) !important;
    line-height: 1 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
  }

  .kdcb-widget .kdcb-sheet-action-btn {
    gap: 4px;
    height: 30px !important;
    min-height: 30px !important;
    font-family: "KDCB Outfit", "Outfit", "KDCB Inter", sans-serif !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition:
      background-color var(--kdcb-motion-micro-duration) ease,
      color var(--kdcb-motion-micro-duration) ease,
      border-color var(--kdcb-motion-micro-duration) ease;
  }

  .kdcb-widget .kdcb-sheet-action-btn svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
    flex-shrink: 0;
  }

  .kdcb-widget .kdcb-sheet-action-btn:hover {
    background: var(--kdcb-hover-tint-bg);
    color: var(--kdcb-hover-tint-text);
    border-color: var(--kdcb-hover-tint-border);
  }

  /* mobile chat bubbles */
  .kdcb-chat-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 4px;
  }

  .kdcb-chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.92rem;
    line-height: 1.45;
    font-weight: 500;
    word-break: break-word;
  }

  .kdcb-chat-msg p { margin: 0; }
  .kdcb-chat-msg p + p,
  .kdcb-chat-msg ul + p,
  .kdcb-chat-msg p + ul { margin-top: 8px; }
  .kdcb-chat-msg ul, .kdcb-chat-msg ol { margin: 6px 0 0; padding-left: 18px; }
  .kdcb-chat-msg li + li { margin-top: 4px; }
  .kdcb-chat-msg a { color: var(--kdcb-color-secondary); font-weight: 600; }
  .kdcb-chat-msg strong { font-weight: 700; }

  .kdcb-chat-msg-assistant {
    align-self: flex-start;
    background: linear-gradient(168deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid #e4e8ef;
    border-radius: 16px 16px 16px 4px;
    color: var(--kdcb-color-text);
  }

  .kdcb-chat-msg-user {
    align-self: flex-end;
    background: linear-gradient(135deg, #d1af1a 0%, #c4a002 100%);
    color: #fff;
    border-radius: 16px 16px 4px 16px;
  }

  .kdcb-chat-msg-user a {
    color: #fff;
    text-decoration: underline;
  }

  /* bubble → flex child, no tail, no shadow */
  .kdcb-main-bubble {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    min-height: 0;
    max-height: none;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border-radius: 0;
    background: transparent;
    filter: none;
    box-shadow: none;
    padding: 14px 16px;
    order: 2;
  }

  .kdcb-main-bubble::before {
    content: none;
  }

  .kdcb-main-content {
    max-height: none;
  }

  /* utility pill → hidden on mobile (actions moved to sheet header) */
  .kdcb-utility-pill {
    display: none !important;
  }

  /* actions / input → flex child at bottom */
  .kdcb-actions {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    flex-shrink: 0;
    padding: 6px 10px 8px;
    order: 6;
  }

  .kdcb-input {
    font: 500 16px/1.45 "KDCB Inter", "Inter", "Segoe UI", Arial, sans-serif !important;
  }

  /* history drawer → flex child */
  .kdcb-history-drawer {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-height: none;
    flex: 1;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid var(--kdcb-color-border);
    order: 3;
  }

  /* defect panel → flex child */
  .kdcb-defect-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-height: none;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    order: 4;
  }

  .kdcb-defect-card {
    padding: 14px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }

  .kdcb-grid-step1,
  .kdcb-grid-step2 {
    grid-template-columns: 1fr;
  }
}

/* dvh support for bottom sheet height */
@supports (height: 100dvh) {
  @media (max-width: 768px) {
    .kdcb-shell {
      height: min(80dvh, 600px);
    }
  }
}

/* compact mobile (short screens) */
@media (max-width: 768px) and (max-height: 620px) {
  .kdcb-shell {
    height: min(88vh, 520px);
  }

  .kdcb-main-bubble {
    padding: 10px 14px;
  }

  .kdcb-main-content {
    font-size: 0.9rem;
    line-height: 1.42;
  }

  .kdcb-sheet-header {
    padding: 8px 12px 8px 14px;
  }

  .kdcb-actions {
    padding: 4px 8px 6px;
  }

  .kdcb-input-row {
    padding: 8px 8px 8px 14px;
  }
}

@supports (height: 100dvh) {
  @media (max-width: 768px) and (max-height: 620px) {
    .kdcb-shell {
      height: min(88dvh, 520px);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .kdcb-widget {
    --kdcb-motion-shell-duration: 0.01s;
    --kdcb-motion-shell-opacity-duration: 0.01s;
    --kdcb-motion-shell-delay: 0s;
    --kdcb-motion-cherry-duration: 0.01s;
    --kdcb-motion-micro-duration: 0.01s;
  }

  .kdcb-main-typing span,
  .kdcb-widget:not(.kdcb-open) .kdcb-cherry-launcher img,
  .kdcb-stagger > *,
  .kdcb-send.kdcb-pulse {
    animation: none !important;
    opacity: 1 !important;
  }
}
  padding: 0 !important;
