.ie-page {
  color: #172033;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0 auto;
  max-width: 1500px;
  padding: 24px;
}

.ie-hero,
.ie-filter-card,
.ie-issues,
.ie-issue-card {
  background: #ffffff;
  border: 1px solid #d8dee9;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ie-hero {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  padding: 22px;
}

.ie-back-link {
  color: #4b647d;
  font-size: 13px;
  text-decoration: none;
}

.ie-back-link:hover {
  color: #0f62fe;
  text-decoration: underline;
}

.ie-eyebrow {
  color: #5c708a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.ie-hero h1 {
  font-size: 28px;
  letter-spacing: 0;
  margin: 0;
}

.ie-description {
  color: #526173;
  margin: 8px 0 0;
  max-width: 780px;
}

.ie-warnings {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.ie-warnings p {
  background: #fefce8;
  border: 1px solid #facc15;
  border-radius: 8px;
  color: #854d0e;
  font-size: 14px;
  margin: 0;
  padding: 12px 14px;
}

.ie-filter-card {
  margin-bottom: 16px;
  padding: 16px;
}

.ie-filters {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) minmax(150px, 1fr) 140px 140px 130px;
}

.ie-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ie-filters label span {
  color: #5c708a;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.ie-filters input,
.ie-filters select {
  border: 1px solid #c9d3df;
  border-radius: 6px;
  color: #172033;
  font: inherit;
  min-height: 36px;
  padding: 7px 9px;
}

.ie-filters select[multiple] {
  min-height: 84px;
}

.ie-filter-actions {
  display: flex;
  gap: 8px;
}

.ie-filter-actions button,
.ie-filter-actions a {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  text-decoration: none;
}

.ie-filter-actions button {
  background: #1769aa;
  border: 1px solid #1769aa;
  color: #ffffff;
}

.ie-filter-actions a {
  background: #ffffff;
  border: 1px solid #c9d3df;
  color: #334155;
}

.ie-empty-state {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #526173;
  padding: 18px;
}

.ie-empty-title {
  color: #172033;
  font-weight: 700;
  margin: 0 0 6px;
}

.ie-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 16px;
}

.ie-stat {
  background: #ffffff;
  border: 1px solid #d8dee9;
  border-radius: 8px;
  border-top: 4px solid #5c708a;
  padding: 14px 16px;
}

.ie-stat strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.ie-stat span {
  color: #5c708a;
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
  text-transform: uppercase;
}

.ie-stat--danger {
  border-top-color: #c2410c;
}

.ie-issues {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.ie-section-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.ie-section-heading h2 {
  margin: 0;
}

.ie-section-heading span {
  color: #5c708a;
  font-size: 13px;
}

.ie-issue-card {
  padding: 16px;
}

.ie-issue-header {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.ie-issue-header code {
  color: #475569;
  font-size: 12px;
  word-break: break-word;
}

.ie-code,
.ie-issue-header__meta span {
  background: #f3f6f9;
  border: 1px solid #d8dee9;
  border-radius: 6px;
  color: #334155;
  display: inline-block;
  font-size: 12px;
  padding: 5px 8px;
}

.ie-issue-header__meta {
  display: flex;
  gap: 8px;
  text-align: right;
}

.ie-issue-metrics {
  color: #526173;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 14px;
  margin-top: 10px;
}

.ie-issue-outcome {
  background: #f8fafc;
  border-left: 3px solid #1769aa;
  margin-top: 10px;
  padding: 8px 10px;
}

.ie-details {
  margin-top: 10px;
}

.ie-details summary {
  color: #1769aa;
  cursor: pointer;
  font-weight: 700;
}

.ie-timeline {
  border-left: 2px solid #d8dee9;
  list-style: none;
  margin: 12px 0 0 5px;
  padding: 0 0 0 14px;
}

.ie-timeline__item {
  margin-bottom: 14px;
  position: relative;
}

.ie-timeline__item::before {
  background: #6b7280;
  border: 2px solid #ffffff;
  border-radius: 999px;
  content: "";
  height: 10px;
  left: -20px;
  position: absolute;
  top: 4px;
  width: 10px;
}

.ie-timeline__item--success::before { background: #16834a; }
.ie-timeline__item--info::before { background: #1769aa; }
.ie-timeline__item--warning::before { background: #b7791f; }
.ie-timeline__item--danger::before { background: #c2410c; }
.ie-timeline__item--neutral::before { background: #6b7280; }

.ie-timeline__item div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.ie-timeline__item div span {
  color: #64748b;
}

.ie-timeline__item p {
  color: #526173;
  margin: 6px 0 0;
}

.ie-timeline__item dl {
  display: grid;
  gap: 3px 8px;
  grid-template-columns: max-content minmax(0, 1fr);
  margin: 8px 0 0;
}

.ie-timeline__item dt {
  color: #64748b;
  font-weight: 700;
}

.ie-timeline__item dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .ie-page {
    padding: 14px;
  }

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

  .ie-issue-header__meta {
    text-align: left;
  }
}
