/* Dingfelder page-aware helper MVP */
.de-helper-root {
  --de-helper-navy: #07111f;
  --de-helper-panel: #0e1b2c;
  --de-helper-panel-2: #12243a;
  --de-helper-line: rgba(255, 255, 255, 0.16);
  --de-helper-text: #edf6ff;
  --de-helper-muted: #b9c8dc;
  --de-helper-gold: #ffc94f;
  --de-helper-blue: #58a6ff;
  --de-helper-green: #7ff0b8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: fixed;
  right: clamp(14px, 2vw, 24px);
  bottom: clamp(14px, 2vw, 24px);
  z-index: 2147483000;
  color: var(--de-helper-text);
}

.de-helper-launcher {
  border: 1px solid rgba(255, 201, 79, 0.42);
  background:
    radial-gradient(circle at 22% 16%, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(135deg, #ffd978 0%, #ffc94f 42%, #f2a90b 100%);
  color: #08121f;
  border-radius: 999px;
  min-height: 54px;
  padding: 0.62rem 1rem 0.62rem 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36), 0 0 0 7px rgba(255, 201, 79, 0.10);
  cursor: pointer;
  font-weight: 950;
  letter-spacing: -0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.de-helper-launcher:hover,
.de-helper-launcher:focus-visible {
  transform: translateY(-2px);
  filter: saturate(1.06);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.42), 0 0 0 9px rgba(255, 201, 79, 0.14);
  outline: none;
}

.de-helper-launcher__mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #08121f;
  color: #ffc94f;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
  font-size: 1.12rem;
  line-height: 1;
}

.de-helper-launcher__text {
  display: grid;
  gap: 0.02rem;
  text-align: left;
}

.de-helper-launcher__text strong {
  font-size: 0.96rem;
  line-height: 1;
}

.de-helper-launcher__text span {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.78;
}

.de-helper-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: min(410px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 110px));
  display: none;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 16% 8%, rgba(88, 166, 255, 0.22), transparent 36%),
    radial-gradient(circle at 86% 6%, rgba(255, 201, 79, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(18, 36, 58, 0.98), rgba(7, 17, 31, 0.985));
  box-shadow: 0 30px 86px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(18px);
}

.de-helper-root.is-open .de-helper-panel {
  display: grid;
}

.de-helper-root.is-open .de-helper-launcher {
  display: none;
}

.de-helper-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.de-helper-title {
  display: grid;
  gap: 0.2rem;
}

.de-helper-title strong {
  font-size: 1.05rem;
  color: #ffffff;
}

.de-helper-title span {
  color: var(--de-helper-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.de-helper-close {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.07);
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.de-helper-close:hover,
.de-helper-close:focus-visible {
  border-color: rgba(255, 201, 79, 0.42);
  background: rgba(255, 201, 79, 0.13);
  outline: none;
}

.de-helper-body {
  overflow: auto;
  padding: 1rem;
  display: grid;
  gap: 0.88rem;
}

.de-helper-message {
  border-radius: 18px;
  padding: 0.82rem 0.9rem;
  font-size: 0.92rem;
  line-height: 1.48;
  border: 1px solid rgba(255,255,255,0.12);
}

.de-helper-message--bot {
  background: rgba(255,255,255,0.075);
  color: #eaf4ff;
}

.de-helper-message--user {
  justify-self: end;
  max-width: 88%;
  background: rgba(255,201,79,0.15);
  border-color: rgba(255,201,79,0.26);
  color: #fff6d8;
}

.de-helper-message strong {
  color: #ffffff;
}

.de-helper-message a {
  color: #ffc94f;
  font-weight: 900;
}

.de-helper-quick-title {
  color: #ffc94f;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.de-helper-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
}

.de-helper-chip {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255,255,255,0.065);
  color: #f5fbff;
  border-radius: 999px;
  min-height: 36px;
  padding: 0 0.78rem;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
}

.de-helper-chip:hover,
.de-helper-chip:focus-visible {
  border-color: rgba(255, 201, 79, 0.42);
  background: rgba(255, 201, 79, 0.13);
  outline: none;
}

.de-helper-form {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 0.82rem;
  display: grid;
  gap: 0.48rem;
  background: rgba(3, 9, 16, 0.32);
}

.de-helper-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.de-helper-input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.09);
  color: #fff;
  border-radius: 16px;
  padding: 0.78rem 0.9rem;
  font-size: 0.92rem;
}

.de-helper-input::placeholder {
  color: rgba(234,244,255,0.62);
}

.de-helper-input:focus {
  outline: 2px solid rgba(255, 201, 79, 0.35);
  border-color: rgba(255, 201, 79, 0.48);
}

.de-helper-send {
  border: 0;
  border-radius: 16px;
  padding: 0 0.92rem;
  min-height: 43px;
  background: linear-gradient(135deg, #ffd978, #ffc94f);
  color: #08121f;
  font-weight: 950;
  cursor: pointer;
}

.de-helper-send:hover,
.de-helper-send:focus-visible {
  filter: brightness(1.05);
  outline: 2px solid rgba(255, 255, 255, 0.22);
}

.de-helper-note {
  color: rgba(222, 235, 249, 0.68);
  font-size: 0.72rem;
  line-height: 1.35;
}

@media (max-width: 620px) {
  .de-helper-root {
    right: 12px;
    bottom: 12px;
  }

  .de-helper-panel {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 84px);
    border-radius: 22px;
  }

  .de-helper-launcher {
    min-height: 50px;
    padding-right: 0.86rem;
  }

  .de-helper-launcher__text span {
    display: none;
  }
}

@media print {
  .de-helper-root {
    display: none !important;
  }
}
