.hl-feedback-dialog {
  position: fixed;
  inset: 0;
  z-index: 10030;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(4px);
}

.hl-feedback-dialog-panel {
  position: relative;
  width: min(452px, calc(100vw - 48px));
  box-sizing: border-box;
  padding: 44px 36px 32px;
  border: 1px solid var(--nh-outline, rgba(15, 23, 42, 0.08));
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.08), transparent 38%),
    var(--nh-surface, #ffffff);
  color: var(--nh-on-surface, #111827);
  box-shadow: 0 24px 68px rgba(15, 23, 42, 0.22);
  text-align: center;
}

.hl-feedback-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--nh-on-surface-variant, #6b7280);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.hl-feedback-dialog-close:hover {
  background: var(--nh-secondary-container, #eef2f7);
  color: var(--nh-on-surface, #111827);
  transform: scale(1.04);
}

.hl-feedback-dialog-icon {
  position: relative;
  display: inline-flex;
  width: 92px;
  height: 92px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.1)),
    linear-gradient(145deg, #36d399, #10b981);
  box-shadow:
    0 18px 42px rgba(16, 185, 129, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hl-feedback-dialog-icon::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.52);
}

.hl-feedback-dialog-icon-mark {
  position: relative;
  color: #ffffff;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
}

.hl-feedback-dialog[data-tone="error"] .hl-feedback-dialog-icon {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.1)),
    linear-gradient(145deg, #fb7185, #ef4444);
  box-shadow:
    0 18px 42px rgba(239, 68, 68, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.hl-feedback-dialog[data-tone="info"] .hl-feedback-dialog-icon {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.1)),
    linear-gradient(145deg, #60a5fa, #2563eb);
  box-shadow:
    0 18px 42px rgba(37, 99, 235, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.hl-feedback-dialog[data-tone="info"] .hl-feedback-dialog-icon-mark {
  font-family: ui-serif, Georgia, serif;
  font-style: italic;
  font-weight: 700;
}

.hl-feedback-dialog-title {
  min-width: 0;
  margin: 0;
  color: var(--nh-on-surface, #111827);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  word-break: break-word;
}

.hl-feedback-dialog-body {
  margin-top: 12px;
  color: var(--nh-on-surface-variant, #6b7280);
  font-size: 15px;
  line-height: 1.75;
  word-break: break-word;
}

.hl-feedback-dialog-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.hl-feedback-dialog-action {
  min-width: 112px;
  height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.hl-feedback-dialog-action:hover {
  transform: translateY(-1px);
}

.hl-feedback-dialog-action-primary {
  border: 1px solid var(--nh-primary, #2563eb);
  background: var(--nh-primary, #2563eb);
  color: var(--nh-on-primary, #ffffff);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.hl-feedback-dialog-action-primary:hover {
  border-color: var(--nh-primary-hover, #1d4ed8);
  background: var(--nh-primary-hover, #1d4ed8);
}

.hl-feedback-dialog-action-secondary {
  border: 1px solid var(--nh-outline, rgba(15, 23, 42, 0.14));
  background: var(--nh-surface-container, #f8fafc);
  color: var(--nh-on-surface, #111827);
}

.hl-feedback-dialog-action-secondary:hover {
  border-color: rgba(37, 99, 235, 0.28);
  background: var(--nh-secondary-container, #eef2f7);
}

@media (max-width: 520px) {
  .hl-feedback-dialog {
    padding: 18px;
  }

  .hl-feedback-dialog-panel {
    width: min(100%, 420px);
    padding: 40px 22px 26px;
    border-radius: 20px;
  }

  .hl-feedback-dialog-icon {
    width: 78px;
    height: 78px;
    margin-bottom: 20px;
  }

  .hl-feedback-dialog-icon-mark {
    font-size: 39px;
  }

  .hl-feedback-dialog-title {
    font-size: 20px;
  }

  .hl-feedback-dialog-actions {
    flex-direction: column-reverse;
  }

  .hl-feedback-dialog-action {
    width: 100%;
  }
}

:root[data-theme="dark"] .hl-feedback-dialog {
  background: rgba(0, 0, 0, 0.58);
}

:root[data-theme="dark"] .hl-feedback-dialog-panel,
body.dark .hl-feedback-dialog-panel,
body.dark-theme .hl-feedback-dialog-panel,
.dark .hl-feedback-dialog-panel {
  border-color: rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(circle at 50% 0%, rgba(96, 165, 250, 0.16), transparent 40%),
    var(--nh-surface, #171923);
  color: var(--nh-on-surface, #f8fafc);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.52);
}

:root[data-theme="dark"] .hl-feedback-dialog-title,
body.dark .hl-feedback-dialog-title,
body.dark-theme .hl-feedback-dialog-title,
.dark .hl-feedback-dialog-title {
  color: var(--nh-on-surface, #f8fafc);
}

:root[data-theme="dark"] .hl-feedback-dialog-body,
body.dark .hl-feedback-dialog-body,
body.dark-theme .hl-feedback-dialog-body,
.dark .hl-feedback-dialog-body {
  color: var(--nh-on-surface-variant, #cbd5e1);
}

:root[data-theme="dark"] .hl-feedback-dialog-close,
body.dark .hl-feedback-dialog-close,
body.dark-theme .hl-feedback-dialog-close,
.dark .hl-feedback-dialog-close {
  color: var(--nh-on-surface-variant, #cbd5e1);
}

:root[data-theme="dark"] .hl-feedback-dialog-close:hover,
body.dark .hl-feedback-dialog-close:hover,
body.dark-theme .hl-feedback-dialog-close:hover,
.dark .hl-feedback-dialog-close:hover {
  background: rgba(148, 163, 184, 0.14);
  color: var(--nh-on-surface, #f8fafc);
}

:root[data-theme="dark"] .hl-feedback-dialog-action-secondary,
body.dark .hl-feedback-dialog-action-secondary,
body.dark-theme .hl-feedback-dialog-action-secondary,
.dark .hl-feedback-dialog-action-secondary {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.46);
  color: var(--nh-on-surface, #f8fafc);
}

:root[data-theme="dark"] .hl-feedback-dialog-action-secondary:hover,
body.dark .hl-feedback-dialog-action-secondary:hover,
body.dark-theme .hl-feedback-dialog-action-secondary:hover,
.dark .hl-feedback-dialog-action-secondary:hover {
  border-color: rgba(96, 165, 250, 0.42);
  background: rgba(30, 41, 59, 0.72);
}
