.dt-help-root,
.dt-help-root * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.dt-help-root {
  --dt-help-navy: #071827;
  --dt-help-blue: #246db6;
  --dt-help-line: #dce5ec;
  --dt-help-muted: #526173;
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 1000;
  font-family: Inter, system-ui, sans-serif;
}

.dt-help-launcher {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #ffb400;
  color: var(--dt-help-navy);
  box-shadow: 0 14px 34px rgba(7, 24, 39, 0.24);
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.dt-help-launcher:hover,
.dt-help-launcher:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(7, 24, 39, 0.28);
}

.dt-help-launcher[aria-expanded="true"] {
  background: #ffffff;
}

.dt-help-launcher[aria-expanded="false"] {
  animation: dt-help-bounce 900ms ease-in-out 1.2s 2;
}

.dt-help-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(370px, calc(100vw - 32px));
  max-height: min(610px, calc(100dvh - 110px));
  display: none;
  overflow: hidden;
  border: 1px solid var(--dt-help-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(7, 24, 39, 0.24);
}

.dt-help-panel.open {
  display: flex;
  flex-direction: column;
  animation: dt-help-enter 180ms ease-out;
}

.dt-help-header {
  display: grid;
  grid-template-columns: 1fr 38px;
  gap: 14px;
  align-items: center;
  padding: 18px;
  background: var(--dt-help-navy);
  color: #ffffff;
}

.dt-help-header strong,
.dt-help-header span {
  display: block;
}

.dt-help-header strong {
  font-family: Sora, Inter, system-ui, sans-serif;
  font-size: 18px;
}

.dt-help-header span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.4;
}

.dt-help-close {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: transparent;
  color: #ffffff;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.dt-help-body {
  overflow-y: auto;
  padding: 18px;
}

.dt-help-greeting {
  margin: 0;
  color: var(--dt-help-navy);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
}

.dt-help-intro {
  margin: 7px 0 0;
  color: var(--dt-help-muted);
  font-size: 13px;
  line-height: 1.55;
}

.dt-help-live {
  min-height: 58px;
  display: grid;
  grid-template-columns: 12px 1fr 18px;
  gap: 11px;
  align-items: center;
  margin-top: 15px;
  border: 1px solid #bfe0c5;
  border-radius: 6px;
  padding: 10px 12px;
  background: #f1fbf3;
  color: var(--dt-help-navy);
  text-decoration: none;
}

.dt-help-live:hover,
.dt-help-live:focus-visible {
  border-color: #39b83a;
  background: #e8f8eb;
}

.dt-help-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #39b83a;
  box-shadow: 0 0 0 3px rgba(57, 184, 58, 0.14);
}

.dt-help-live strong,
.dt-help-live small {
  display: block;
}

.dt-help-live strong {
  font-size: 14px;
}

.dt-help-live small {
  margin-top: 2px;
  color: #587064;
  font-size: 11px;
  line-height: 1.35;
}

.dt-help-options {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.dt-help-option {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--dt-help-line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #ffffff;
  color: #20364d;
  font-size: 14px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.dt-help-option:hover,
.dt-help-option:focus-visible {
  border-color: #8dc8e8;
  background: #eef9ff;
  color: var(--dt-help-blue);
}

.dt-help-answer {
  display: none;
  margin-top: 14px;
  border-left: 3px solid #12aee2;
  padding: 12px 0 12px 13px;
  color: #3f5265;
  font-size: 13px;
  line-height: 1.6;
}

.dt-help-answer.visible {
  display: block;
}

.dt-help-answer p {
  margin: 0;
}

.dt-help-answer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.dt-help-answer a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cdd9e4;
  border-radius: 6px;
  padding: 8px 11px;
  background: #ffffff;
  color: var(--dt-help-navy);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.dt-help-answer a.primary {
  border-color: #ffb400;
  background: #ffb400;
}

.dt-help-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--dt-help-line);
}

.dt-help-form label {
  display: block;
  color: var(--dt-help-navy);
  font-size: 12px;
  font-weight: 800;
}

.dt-help-input-row {
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 8px;
  margin-top: 8px;
}

.dt-help-form input {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid #cdd9e4;
  border-radius: 6px;
  padding: 0 11px;
  color: var(--dt-help-navy);
  font: inherit;
  font-size: 13px;
  outline: none;
}

.dt-help-form input:focus {
  border-color: #12aee2;
  box-shadow: 0 0 0 3px rgba(18, 174, 226, 0.12);
}

.dt-help-send {
  width: 46px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: var(--dt-help-navy);
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
}

.dt-help-note {
  margin: 8px 0 0;
  color: #718096;
  font-size: 11px;
  line-height: 1.45;
}

@keyframes dt-help-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dt-help-bounce {
  0%, 100% { transform: translateY(0); }
  35% { transform: translateY(-8px); }
  58% { transform: translateY(0); }
  76% { transform: translateY(-3px); }
}

@media (max-width: 600px) {
  .dt-help-root {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .dt-help-panel {
    position: fixed;
    right: 12px;
    bottom: 82px;
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 98px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dt-help-panel.open {
    animation: none;
  }

  .dt-help-launcher {
    transition: none;
    animation: none;
  }
}
