/* Report a Bug — full page (matches settings / delete-account polish) */
#report-bug.report-bug-page {
  background: #f1f5f9;
  min-height: calc(100vh - var(--top-header-stack-h, 118px));
}

#report-bug .report-bug-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 28px) max(16px, env(safe-area-inset-right, 0px))
    calc(88px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}

#report-bug .report-bug-hero {
  margin-bottom: 18px;
}

#report-bug .report-bug-back-btn {
  margin-bottom: 12px;
}

#report-bug .report-bug-hero__title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

#report-bug .report-bug-hero__lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #64748b;
}

#report-bug .report-bug-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: clamp(16px, 3vw, 22px);
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

#report-bug .report-bug-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

#report-bug .report-bug-field:last-child {
  margin-bottom: 0;
}

#report-bug .report-bug-label {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

#report-bug .report-bug-hint {
  margin: -4px 0 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

#report-bug .report-bug-input,
#report-bug .report-bug-select,
#report-bug .report-bug-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #0f172a;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#report-bug .report-bug-input:focus,
#report-bug .report-bug-select:focus,
#report-bug .report-bug-textarea:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

#report-bug .report-bug-textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.5;
}

#report-bug .report-bug-device-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 640px) {
  #report-bug .report-bug-device-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#report-bug .report-bug-device-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12px;
}

#report-bug .report-bug-device-row dt {
  color: #64748b;
  font-weight: 600;
}

#report-bug .report-bug-device-row dd {
  margin: 0;
  color: #0f172a;
  font-weight: 700;
  text-align: right;
  word-break: break-word;
}

#report-bug .report-bug-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

#report-bug .report-bug-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px dashed #94a3b8;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

#report-bug .report-bug-upload-btn:hover {
  border-color: #0d9488;
  background: #f0fdfa;
}

#report-bug .report-bug-shots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

#report-bug .report-bug-shot {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

#report-bug .report-bug-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#report-bug .report-bug-shot__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

#report-bug .report-bug-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.25);
}

#report-bug .report-bug-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

#report-bug .report-bug-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 13px;
}

#report-bug .report-bug-success {
  text-align: center;
  padding: 28px 18px;
}

#report-bug .report-bug-success__icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 12px;
}

#report-bug .report-bug-success__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

#report-bug .report-bug-success__msg {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
}
