/* Private DIY Dome feedback widget — not a public comment thread */
.dome-feedback-root {
  position: relative;
  z-index: 99990;
  font: 14px/1.45 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.dome-feedback-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 99991;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: #1c2028;
  color: #e8eaed;
  font: inherit;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.dome-feedback-fab:hover,
.dome-feedback-fab:focus-visible {
  border-color: #7dcea0;
  outline: 2px solid #7dcea0;
  outline-offset: 2px;
}

.dome-feedback-overlay {
  position: fixed;
  inset: 0;
  z-index: 99992;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 16px;
  background: rgba(8, 10, 14, 0.45);
}

.dome-feedback-overlay[hidden] {
  display: none !important;
}

.dome-feedback-dialog {
  width: min(380px, 100%);
  max-height: min(80vh, 560px);
  overflow: auto;
  background: #1c2028;
  color: #e8eaed;
  border: 1px solid #2e3542;
  border-radius: 12px;
  padding: 14px 16px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.dome-feedback-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.dome-feedback-title {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
}

.dome-feedback-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #9aa3b2;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}

.dome-feedback-close:hover,
.dome-feedback-close:focus-visible {
  color: #e8eaed;
  outline: 2px solid #7dcea0;
  outline-offset: 1px;
}

.dome-feedback-note {
  margin: 0 0 8px;
  color: #9aa3b2;
  font-size: 12px;
}

.dome-feedback-status {
  min-height: 1.2em;
  margin: 0 0 8px;
  font-size: 12px;
  color: #9aa3b2;
}

.dome-feedback-status.is-success {
  color: #7dcea0;
}

.dome-feedback-status.is-error {
  color: #f28b82;
}

.dome-feedback-status.is-info {
  color: #9aa3b2;
}

.dome-feedback-form label {
  display: block;
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: #c5cad3;
}

.dome-feedback-form textarea,
.dome-feedback-form select,
.dome-feedback-form input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #2e3542;
  background: #121418;
  color: #e8eaed;
  font: inherit;
}

.dome-feedback-form textarea:focus-visible,
.dome-feedback-form select:focus-visible,
.dome-feedback-form input[type="email"]:focus-visible {
  outline: 2px solid #7dcea0;
  outline-offset: 1px;
  border-color: #7dcea0;
}

.dome-feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
}

.dome-feedback-submit {
  appearance: none;
  border: 1px solid #3d8bfd;
  border-radius: 8px;
  background: #2a3140;
  color: #e8eaed;
  font: inherit;
  font-weight: 650;
  padding: 8px 12px;
  cursor: pointer;
}

.dome-feedback-submit:hover:not(:disabled),
.dome-feedback-submit:focus-visible:not(:disabled) {
  border-color: #7dcea0;
  color: #7dcea0;
  outline: 2px solid #7dcea0;
  outline-offset: 1px;
}

.dome-feedback-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

html.dome-feedback-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .dome-feedback-overlay {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
  }

  .dome-feedback-dialog {
    width: 100%;
    max-height: none;
    height: 100%;
    border-radius: 0;
  }

  .dome-feedback-fab {
    right: 12px;
    bottom: 12px;
  }
}
