:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --ink: #18202f;
  --muted: #667085;
  --line: #d9dee7;
  --accent: #0f766e;
  --accent-2: #7c3aed;
  --warn: #b45309;
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.topbar {
  min-height: 104px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}

.status {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 92px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--muted);
}

.status span:first-child {
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
}

.layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  min-height: calc(100vh - 105px);
}

.sidebar {
  border-right: 1px solid var(--line);
  background: #fbfcfd;
  padding: 18px;
  overflow: auto;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.sidebar h2 {
  margin: 0;
  font-size: 18px;
}

button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}

button:hover {
  border-color: var(--accent);
}

.search {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
}

.search input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  color: var(--ink);
  background: var(--panel);
}

.report-list {
  display: grid;
  gap: 10px;
}

.report-item {
  display: grid;
  gap: 5px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
}

.report-item.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.12);
}

.report-date {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}

.report-title {
  font-weight: 700;
}

.report-summary {
  color: var(--muted);
  font-size: 13px;
}

.reader {
  padding: 28px;
  overflow: auto;
}

.empty,
.report-meta,
.report-content {
  max-width: 980px;
  margin: 0 auto;
}

.empty {
  margin-top: 80px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 32px;
  color: var(--muted);
  text-align: center;
  background: var(--panel);
}

.hidden {
  display: none;
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 8px;
  background: #e7f7f4;
  color: #0f5f59;
  font-size: 13px;
  font-weight: 700;
}

.pill.secondary {
  background: #f0ecff;
  color: #5b21b6;
}

.report-content {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.report-content h1 {
  margin-top: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.report-content h2 {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 22px;
}

.report-content h3 {
  margin-top: 24px;
  font-size: 18px;
}

.report-content blockquote {
  margin: 18px 0;
  border-left: 4px solid var(--accent);
  padding: 8px 14px;
  background: #eefaf8;
  color: #174b47;
}

.report-content a {
  color: var(--accent-2);
  text-decoration-thickness: 1px;
}

.report-content code {
  background: #eef1f5;
  border-radius: 5px;
  padding: 2px 5px;
  font-size: 0.92em;
}

.report-content ul,
.report-content ol {
  padding-left: 1.4rem;
}

.report-content li + li {
  margin-top: 6px;
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    max-height: 380px;
  }

  .reader {
    padding: 18px;
  }

  .report-content {
    padding: 20px;
  }
}
