.dl-report-bug-button {
  height: 42px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line, #d7dee8);
  border-radius: 10px;
  background: var(--surface, #ffffff);
  color: var(--ink, #172033);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.dl-report-bug-button:hover,
.dl-report-bug-button:focus-visible {
  border-color: var(--blue, #2563eb);
  color: var(--blue, #2563eb);
  background: var(--surface-soft, #f8fafc);
  outline: none;
}

.dl-report-bug-button__icon {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 auto;
}

.dl-report-bug-button--toolbar {
  flex: 0 0 auto;
}

.dl-report-bug-button--floating {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 10020;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
}

.dl-bug-modal[hidden] {
  display: none !important;
}

.dl-bug-modal {
  position: fixed;
  inset: 0;
  z-index: 10030;
}

.dl-bug-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(248, 251, 255, 0.72);
  backdrop-filter: blur(12px);
}

.dl-bug-dialog {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(222, 230, 244, 0.95);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
}

.dl-bug-dialog__header,
.dl-bug-dialog__body,
.dl-bug-dialog__actions {
  padding-inline: 28px;
}

.dl-bug-dialog__header {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding-right: 68px;
  border-bottom: 1px solid var(--line, #d7dee8);
}

.dl-bug-dialog__title {
  margin: 0;
  color: var(--ink, #172033);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.2;
}

.dl-bug-dialog__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #64748b;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: color 0.18s ease, box-shadow 0.18s ease;
}

.dl-bug-dialog__close:hover {
  color: var(--blue, #2563eb);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.dl-bug-dialog__body {
  padding-block: 20px 8px;
}

.dl-bug-dialog__intro {
  margin: 0 0 18px;
  color: var(--muted, #667085);
  font-size: 0.875rem;
  line-height: 1.55;
}

.dl-bug-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 12px;
}

.dl-bug-field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.dl-bug-field span {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--muted, #667085);
  font-size: 0.8125rem;
  font-weight: 600;
}

.dl-bug-field span small {
  font-size: 0.75rem;
  font-weight: 400;
  color: #94a3b8;
}

.dl-bug-field input,
.dl-bug-field select,
.dl-bug-field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink, #172033);
  font-family: Poppins, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 9px 12px;
  box-sizing: border-box;
}

.dl-bug-field select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  cursor: pointer;
}

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

.dl-bug-field input:focus,
.dl-bug-field select:focus,
.dl-bug-field textarea:focus {
  border-color: var(--blue, #2563eb);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  outline: none;
}

.dl-bug-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dl-bug-upload {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 10px;
  background: var(--surface-soft, #f8fafc);
  color: var(--muted, #667085);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.dl-bug-upload svg {
  flex: 0 0 auto;
  color: #94a3b8;
  transition: color 0.18s ease;
}

.dl-bug-upload:hover {
  border-color: var(--blue, #2563eb);
  background: #eef4ff;
  color: var(--blue, #2563eb);
}

.dl-bug-upload:hover svg {
  color: var(--blue, #2563eb);
}

.dl-bug-upload__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dl-bug-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 4px;
  color: var(--muted, #667085);
  font-size: 0.8125rem;
  line-height: 1.45;
  cursor: pointer;
}

.dl-bug-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid #cbd5e1;
  border-radius: 5px;
  background: #ffffff;
  appearance: none;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dl-bug-check input::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: transform 0.12s ease-in-out;
  box-shadow: inset 1em 1em #ffffff;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.dl-bug-check input:checked {
  border-color: var(--blue, #2563eb);
  background: var(--blue, #2563eb);
}

.dl-bug-check input:checked::before {
  transform: scale(1);
}

@media (max-width: 520px) {
  .dl-bug-grid {
    grid-template-columns: 1fr;
  }
}

.dl-bug-dialog__status {
  min-height: 20px;
  margin-top: 10px;
  color: var(--accent, #0f766e);
  font-size: 0.8125rem;
  font-weight: 600;
}

.dl-bug-dialog__status.is-error {
  color: #dc2626;
}

.dl-bug-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-block: 16px 22px;
}

.dl-bug-dialog__actions--center {
  justify-content: center;
}

.dl-bug-action {
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line, #d7dee8);
  background: var(--surface, #ffffff);
  color: var(--ink, #172033);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  padding: 0 16px;
  cursor: pointer;
}

.dl-bug-action--primary {
  border-color: var(--blue, #2563eb);
  background: var(--blue, #2563eb);
  color: #ffffff;
}

.dl-bug-action--primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.dl-bug-success {
  padding: 32px 8px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dl-bug-success__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent, #0f766e);
}

.dl-bug-success h3 {
  margin: 0 0 8px;
  color: var(--ink, #172033);
  font-size: 1.25rem;
  font-weight: 900;
}

.dl-bug-success p {
  margin: 0 auto;
  max-width: 380px;
  color: var(--muted, #667085);
  font-size: 0.875rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .dl-report-bug-button--toolbar .dl-report-bug-button__label {
    display: none;
  }

  .dl-report-bug-button--toolbar {
    width: 42px;
    padding: 0;
  }
}
