:root {
  --bg: #030806;
  --panel: #07110d;
  --text: #f4f7f0;
  --muted: #a7b5ab;
  --dim: #74827a;
  --green: #83f4bf;
  --green-2: #1cc984;
  --paper: #f5f4ec;
  --line: rgba(255, 255, 255, 0.12);
  --mono:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, ui-monospace,
    monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.report-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 8, 6, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, var(--green) 0 45%, transparent 45% 55%, #7ec7ff 55%),
    #ffffff;
  box-shadow: 0 0 28px rgba(131, 244, 191, 0.32);
}

.report-header nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.report-header .report-mobile-nav {
  display: none;
  gap: 14px;
  font-weight: 680;
}

.report-header nav a:hover {
  color: var(--text);
}

.report-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 5vw;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.88rem;
}

.report-footer a {
  color: var(--green);
}

main {
  width: min(1180px, 90vw);
  margin: 0 auto;
  padding: 54px 0 84px;
}

.report-hero {
  max-width: 820px;
  padding: 28px 0 36px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 740;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 760;
  line-height: 0.96;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.05;
}

p {
  color: var(--muted);
  line-height: 1.62;
}

.report-hero > p:last-of-type {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: 1.08rem;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 6px;
  font-weight: 720;
  cursor: pointer;
}

.button.primary {
  color: #04100b;
  border: 1px solid rgba(131, 244, 191, 0.72);
  background: var(--green);
}

.button.secondary {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.54;
}

.trust-banner {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  margin-bottom: 18px;
  padding: 17px 18px;
  border: 1px solid rgba(131, 244, 191, 0.28);
  border-radius: 8px;
  background: rgba(131, 244, 191, 0.075);
}

.trust-banner span {
  display: block;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 740;
  text-transform: uppercase;
}

.trust-banner strong {
  display: block;
  margin-top: 8px;
  font-size: 1.03rem;
  line-height: 1.3;
}

.trust-banner p {
  margin: 0;
  font-size: 0.92rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.summary-grid article {
  min-height: 112px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.summary-grid article:last-child {
  border-right: 0;
}

.summary-grid article > span {
  display: block;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.summary-grid strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.status-grid article {
  min-height: 94px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.status-grid span {
  display: block;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.status-grid strong {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.25;
}

.tool-panel {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.tool-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.tool-heading p:last-child {
  max-width: 480px;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-align: right;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 0.8fr 1.5fr;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}

.filters label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.filters input,
.filters select {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(3, 8, 6, 0.74);
}

.filter-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 34px;
}

.filter-actions p {
  margin: 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.filter-actions button {
  min-height: 32px;
  padding: 0 10px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.filter-actions button:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.075);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
}

.source-table {
  min-width: 1040px;
}

th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  vertical-align: top;
}

th {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

td {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

td strong,
.market,
.capacity {
  color: var(--text);
  font-weight: 730;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.review-needs {
  color: #ffb4aa;
}

.review-ok {
  color: var(--green);
}

.review-detail {
  display: block;
  max-width: 180px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.evidence {
  display: block;
  max-width: 260px;
  overflow: hidden;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-link {
  display: inline-flex;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.empty {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.decision-grid article {
  min-height: 310px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.decision-grid h2 {
  max-width: 560px;
}

.decision-grid ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.decision-grid li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.5;
}

.decision-grid li::before {
  position: absolute;
  top: 0.67em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

@media (max-width: 1060px) {
  .summary-grid,
  .status-grid,
  .decision-grid,
  .filters {
    grid-template-columns: 1fr 1fr;
  }

  .summary-grid article:nth-child(2n) {
    border-right: 0;
  }

  .summary-grid article {
    border-bottom: 1px solid var(--line);
  }

  .summary-grid article:last-child {
    border-right: 0;
    border-bottom: 0;
  }

  .filters .search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .report-header {
    padding: 12px 18px;
  }

  .report-header nav {
    display: none;
  }

  .report-header .report-mobile-nav {
    display: flex;
  }

  main {
    width: min(100% - 36px, 1180px);
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(2.4rem, 12vw, 3.2rem);
  }

  .report-actions,
  .trust-banner,
  .summary-grid,
  .status-grid,
  .decision-grid,
  .filters {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .summary-grid article,
  .summary-grid article:nth-child(2n),
  .summary-grid article:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .summary-grid article:last-child {
    border-bottom: 0;
  }

  .tool-heading {
    display: grid;
  }

  .tool-heading p:last-child {
    max-width: none;
    text-align: left;
  }

  .report-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 18px;
  }

  .filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-actions button {
    width: 100%;
  }
}
