:root {
  --accent: #3559d6;
  --accent-soft: #eef2ff;
  --amber: #d88418;
  --blue: #2e6bd9;
  --coral: #d85243;
  --green: #1d8c63;
  --ink: #1c2430;
  --line: #dfe7ed;
  --muted: #637384;
  --surface: #ffffff;
  --teal: #1d8c8a;
  --violet: #7555d9;
  color: #1c2430;
  background: #f6f7f9;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 10px 16px;
}

.shell {
  min-height: 100vh;
  padding: 28px;
}

.shell.loadedShell {
  padding-top: 18px;
}

.hero {
  align-items: start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto 28px;
  max-width: 1360px;
}

.brandLockup {
  align-items: center;
  display: inline-flex;
  gap: 14px;
  margin: 0 0 22px;
}

.brandLockup img {
  display: block;
  height: 58px;
  width: 58px;
}

.brandLockup span {
  color: #121c2a;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

h1 {
  font-size: clamp(40px, 5vw, 80px);
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

.intro {
  color: #4c5b69;
  font-size: 19px;
  margin: 18px 0 0;
}

.dropzone {
  align-items: center;
  background:
    linear-gradient(white, white) padding-box,
    linear-gradient(135deg, #dce6ed, #f1d186, #b9d2ff, #d7c9ff) border-box;
  border: 2px solid transparent;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 auto 20px;
  max-width: 1360px;
  min-height: 210px;
  padding: 34px;
  transition: background 160ms ease;
}

.dropzone.compactDropzone {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 2fr) auto;
  min-height: 72px;
  padding: 14px 18px;
}

.dropzone.dragging {
  background:
    linear-gradient(#f2f6ff, #f2f6ff) padding-box,
    linear-gradient(135deg, var(--accent), var(--amber), var(--teal)) border-box;
}

.dropzone input {
  display: none;
}

.dropzone strong {
  font-size: 24px;
}

.dropzone span,
.note {
  color: #657482;
}

.compactDropzone strong {
  font-size: 17px;
}

.compactDropzone span {
  justify-self: start;
}

.note,
.error {
  margin: 18px auto;
  max-width: 1360px;
}

.error {
  background: #fff1f1;
  border-left: 4px solid #b42318;
  color: #7a271a;
  padding: 14px 16px;
}

.viewer {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 auto;
  max-width: none;
  overflow: hidden;
  width: 100%;
}

.reportBar {
  align-items: center;
  background:
    radial-gradient(circle at 16px 16px, rgba(46, 107, 217, 0.06) 1px, transparent 1.5px),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 45%, #fbfcf8 100%);
  background-size: 18px 18px, auto;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 16px 18px;
}

.fileName {
  color: #253b6f;
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 4px;
}

.reportBar h2,
.snapshot h3,
.insightPanel h3 {
  font-size: 18px;
  margin: 0 0 4px;
}

.reportBar p,
.insightPanel p {
  color: #657482;
  margin: 0;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.stats span {
  background: #eef2ff;
  border-radius: 999px;
  color: #2d3f7f;
  font-size: 13px;
  padding: 6px 10px;
}

.snapshot {
  align-items: stretch;
  background:
    radial-gradient(circle at 18px 18px, rgba(53, 89, 214, 0.045) 1px, transparent 1.5px),
    linear-gradient(135deg, #fbfcff, #f7fafc 55%, #fcfbf5);
  background-size: 20px 20px, auto;
  border-bottom: 1px solid #dde4e8;
  border-top: 1px solid #eef3f6;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(170px, 0.65fr) minmax(430px, 1.45fr) minmax(320px, 1fr);
  padding: 16px 18px;
}

.snapshotStats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
}

.metricTile {
  align-items: center;
  background: white;
  border: 1px solid #e2e9ed;
  border-radius: 6px;
  color: #526273;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  justify-content: center;
  min-height: 74px;
  padding: 11px 10px;
  text-align: center;
}

.metricTile strong {
  color: #1c2430;
  display: block;
  font-size: 25px;
  line-height: 1;
  margin-bottom: 6px;
}

.metricTile.blue {
  border-top: 4px solid var(--blue);
}

.metricTile.green {
  border-top: 4px solid var(--green);
}

.metricTile.coral {
  border-top: 4px solid var(--coral);
}

.metricTile.amber {
  border-top: 4px solid var(--amber);
}

.privacyStrip {
  display: grid;
  gap: 5px;
}

.privacyStrip strong {
  color: #324452;
  font-size: 12px;
}

.privacyStrip span {
  color: #5a6975;
  font-size: 12px;
  line-height: 1.45;
}

.toolbar {
  align-items: end;
  background:
    linear-gradient(135deg, rgba(53, 89, 214, 0.035), transparent 38%),
    linear-gradient(90deg, #fbfcff, #f7fafb);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 18px;
}

.searchBox {
  background:
    linear-gradient(#fbfcff, #fbfcff) padding-box,
    linear-gradient(135deg, #d8e1e6, #f5d98d, #bdd5ff, #d7c8ff) border-box;
  border: 1px solid transparent;
  border-radius: 7px;
  display: grid;
  gap: 5px;
  min-width: 240px;
  padding: 3px;
}

.searchBox label {
  color: #516270;
  font-size: 12px;
  font-weight: 800;
}

.searchBox input {
  background: white;
  border: 1px solid #d8e1e7;
  border-radius: 6px;
  color: #1c2430;
  font: inherit;
  min-height: 38px;
  padding: 8px 10px;
}

.resultCount {
  color: #657482;
  font-size: 13px;
  margin: 0;
}

.segmented {
  background:
    linear-gradient(#eef3f6, #eef3f6) padding-box,
    linear-gradient(135deg, #d8e1e6, #f5d98d, #bdd5ff, #d7c8ff) border-box;
  border: 1px solid transparent;
  border-radius: 7px;
  display: flex;
  gap: 6px;
  padding: 3px;
}

.segmented button {
  background: transparent;
  color: #3b4b58;
  min-height: 38px;
  min-width: 82px;
  padding: 8px 11px;
}

.segmented button.active {
  background: white;
  border: 1px solid #dfe7ed;
  box-shadow: 0 1px 5px rgba(36, 52, 83, 0.08);
  color: var(--accent);
}

.insightPanel {
  background:
    radial-gradient(circle at 18px 18px, rgba(29, 140, 138, 0.055) 1px, transparent 1.5px),
    linear-gradient(135deg, #f9fbff, #f8fbfc 58%, #fbfcf8);
  background-size: 20px 20px, auto;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px 18px;
}

.recordTable {
  overflow-x: auto;
}

.recordHeader,
.recordRow {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) 90px 100px 100px 130px minmax(260px, 2fr);
  min-width: 980px;
}

.recordHeader span,
.recordRow span {
  align-items: center;
  border-bottom: 1px solid #edf1f3;
  display: flex;
  font-size: 13px;
  min-height: 38px;
  min-width: 0;
  overflow: hidden;
  padding: 0 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recordHeader span {
  background: #f2f5f6;
  color: #40515f;
  font-weight: 800;
}

.recordRow {
  background: white;
}

.recordRow:hover span {
  background: #f8fafb;
}

.recordRow.attention span:last-child {
  color: #8a361f;
  font-weight: 700;
}

.pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 5px 8px;
}

.pill.pass {
  background: #eaf7f0;
  color: #176342;
}

.pill.fail {
  background: #fff1f1;
  color: #9c2b1f;
}

.pill.neutral {
  background: #eef2f7;
  color: #40515f;
}

.pill.warn {
  background: #fff7e8;
  color: #8a5a14;
}

.optiraCta {
  align-items: center;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #d7e1e8, #efd78b, #bed7ff, #d8caff) border-box;
  border: 1px solid transparent;
  border-radius: 8px;
  bottom: 18px;
  box-shadow: 0 14px 35px rgba(22, 36, 51, 0.16);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  left: 18px;
  max-width: min(430px, calc(100vw - 36px));
  padding: 14px 42px 14px 16px;
  position: fixed;
  z-index: 20;
}

.optiraCta strong {
  color: #121c2a;
  display: block;
  font-size: 15px;
}

.optiraCta span {
  color: #607080;
  display: block;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 2px;
}

.optiraCta a {
  background: var(--accent);
  border-radius: 6px;
  color: white;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 11px;
  text-decoration: none;
  white-space: nowrap;
}

.ctaClose {
  align-items: center;
  background: #eef2f7;
  border-radius: 999px;
  color: #45586a;
  display: flex;
  height: 24px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 9px;
  top: 9px;
  width: 24px;
}

@media (max-width: 760px) {
  .shell {
    padding: 18px;
  }

  .hero,
  .reportBar,
  .snapshot,
  .toolbar,
  .insightPanel,
  .compactDropzone {
    align-items: stretch;
    display: flex;
    flex-direction: column;
  }

  .snapshotStats {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .brandLockup img {
    height: 48px;
    width: 48px;
  }

  .brandLockup span {
    font-size: 30px;
  }

  h1 {
    font-size: clamp(34px, 12vw, 52px);
  }

  .optiraCta {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .optiraCta a {
    text-align: center;
  }
}
