:root {
  --teal: #5fa8a4;
  --teal-bright: #7ed0cb;
  --blue: #4a90e2;
  --blue-soft: #8ec0ff;
  --surface: rgba(13, 24, 31, 0.84);
  --surface-strong: rgba(18, 33, 41, 0.9);
  --surface-panel: linear-gradient(180deg, rgba(20, 37, 46, 0.92) 0%, rgba(9, 18, 24, 0.9) 100%);
  --border: rgba(95, 168, 164, 0.34);
  --border-strong: rgba(126, 208, 203, 0.78);
  --text-primary: #edf8ff;
  --text-secondary: #d0e3ef;
  --text-muted: #a9c2d0;
}

body.report-backdrop-page {
  position: relative;
  overflow-x: hidden;
  background: linear-gradient(180deg, #08121b 0%, #050b11 100%);
}

.report-backdrop-stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(78, 180, 198, 0.16) 0%, rgba(78, 180, 198, 0) 22%),
    radial-gradient(circle at 82% 12%, rgba(82, 132, 255, 0.14) 0%, rgba(82, 132, 255, 0) 22%),
    linear-gradient(180deg, rgba(4, 10, 15, 0.18) 0%, rgba(4, 10, 15, 0.64) 100%);
}

.report-backdrop-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(7, 18, 28, 0.04) 0%, rgba(7, 18, 28, 0.48) 58%, rgba(4, 9, 15, 0.8) 100%),
    linear-gradient(180deg, rgba(5, 11, 17, 0.18) 0%, rgba(5, 11, 17, 0.6) 100%);
  pointer-events: none;
}

.report-backdrop-image-shell {
  position: absolute;
  inset: 0;
  opacity: 0.5;
}

.report-backdrop-image {
  width: 104vw;
  height: auto;
  position: absolute;
  top: 7vh;
  left: 52.5%;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}

.utility-panel-upload-shell {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100vw - 32px));
}

.utility-panel-upload-stack {
  align-items: center;
  gap: 18px;
}

.utility-panel-upload-topline {
  width: min(660px, 100%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.utility-panel-upload-panel {
  width: min(660px, 100%);
  background:
    linear-gradient(180deg, rgba(10, 21, 30, 0.86) 0%, rgba(8, 15, 22, 0.82) 100%);
  border: 1px solid rgba(108, 184, 227, 0.26);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(196, 227, 255, 0.04),
    0 0 0 1px rgba(59, 116, 168, 0.08);
  text-align: center;
}

.utility-panel-upload-panel .eyebrow,
.utility-panel-upload-panel h1,
.utility-panel-upload-panel .lead {
  text-align: center;
}

.utility-panel-upload-panel .lead {
  max-width: none;
  font-size: 16px;
  white-space: nowrap;
}

.upload-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.file-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border: 1px dashed rgba(95, 168, 164, 0.54);
  border-radius: 14px;
  color: var(--text-primary);
  background: linear-gradient(180deg, rgba(14, 28, 38, 0.88) 0%, rgba(11, 22, 31, 0.86) 100%);
  gap: 6px;
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
  will-change: transform, box-shadow;
  box-shadow: inset 0 1px 0 rgba(142, 192, 255, 0.05);
  border-color: rgba(117, 194, 191, 0.34);
}

.file-picker:hover {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(30, 53, 62, 0.96) 0%, rgba(16, 31, 39, 0.9) 100%);
  animation: file-picker-pulse 1.75s ease-in-out infinite;
}

.file-picker.is-drag-over {
  border-color: rgba(126, 208, 203, 0.92);
  background: linear-gradient(180deg, rgba(37, 71, 74, 0.96) 0%, rgba(22, 40, 48, 0.94) 100%);
  animation: file-picker-pulse 1.45s ease-in-out infinite;
}

.file-picker.has-file {
  border-color: rgba(74, 144, 226, 0.72);
  background: linear-gradient(180deg, rgba(16, 31, 49, 0.92) 0%, rgba(13, 24, 38, 0.9) 100%);
}

.file-picker-title {
  font-size: 18px;
  font-weight: 600;
}

.file-picker-subtitle {
  color: var(--text-muted);
  font-size: 14px;
}

input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.file-selection-status {
  margin: -4px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.utility-panel-upload-panel .file-selection-status,
.utility-panel-upload-panel .primary-button {
  justify-self: center;
  text-align: center;
}

.utility-panel-examples-panel {
  width: min(660px, 100%);
  background:
    linear-gradient(180deg, rgba(10, 20, 29, 0.84) 0%, rgba(8, 15, 22, 0.8) 100%);
  border: 1px solid rgba(108, 184, 227, 0.18);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(196, 227, 255, 0.04),
    0 0 0 1px rgba(59, 116, 168, 0.06);
  text-align: left;
}

.utility-panel-examples-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.utility-panel-examples-heading .eyebrow,
.utility-panel-examples-heading h2,
.utility-panel-examples-heading .lead {
  text-align: center;
}

.utility-panel-examples-heading h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(24px, 3vw, 32px);
}

.utility-panel-examples-heading .lead {
  margin: 0;
  max-width: none;
}

.utility-panel-example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.utility-panel-example-link {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(95, 168, 164, 0.24);
  background: linear-gradient(180deg, rgba(13, 27, 37, 0.92) 0%, rgba(10, 20, 30, 0.88) 100%);
  box-shadow: inset 0 1px 0 rgba(142, 192, 255, 0.05);
  text-decoration: none;
  text-align: center;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.utility-panel-example-link:hover {
  transform: translateY(-3px);
  border-color: rgba(126, 208, 203, 0.56);
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(74, 144, 226, 0.12);
  background: linear-gradient(180deg, rgba(17, 34, 46, 0.96) 0%, rgba(12, 24, 35, 0.92) 100%);
}

.utility-panel-example-tag {
  width: fit-content;
  justify-self: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(74, 144, 226, 0.18);
  color: var(--blue-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.utility-panel-example-title {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.primary-button {
  width: fit-content;
  min-width: 240px;
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #5fa8a4 0%, #4a90e2 100%);
  color: #08111d;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 32px rgba(74, 144, 226, 0.18);
}

.primary-button:hover {
  filter: brightness(1.08);
}

@media (max-width: 760px) {
  .utility-panel-upload-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .report-backdrop-image-shell {
    inset: 0;
  }

  .report-backdrop-image {
    width: 168vw;
    height: auto;
    top: 12vh;
    left: 54%;
    transform: translateX(-50%);
  }

  .utility-panel-upload-panel {
    padding: 24px;
  }

  .utility-panel-upload-panel .lead {
    max-width: none;
    white-space: normal;
  }

  .utility-panel-example-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes file-picker-pulse {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
  }

  50% {
    transform: translateY(-7px) scale(1.025);
    box-shadow: 0 0 0 1px rgba(126, 208, 203, 0.34), 0 20px 32px rgba(0, 0, 0, 0.24), 0 0 28px rgba(74, 144, 226, 0.18);
  }

  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
  }
}
