* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #fafafa;
  color: #333;
  line-height: 1.6;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.subtitle {
  color: #666;
  margin-bottom: 24px;
}

.subtitle a {
  color: #7c3aed;
  text-decoration: none;
}

.subtitle a:hover {
  text-decoration: underline;
}

.tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
}

.tab {
  padding: 8px 0;
  border: none;
  background: none;
  color: #666;
  font-size: 18px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.tab:hover {
  color: #333;
}

.tab.active {
  color: #7c3aed;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #7c3aed;
}

.report-list {
  display: flex;
  flex-direction: column;
}

.report-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f0f0f0;
  transition: opacity 0.2s;
}

.report-card:hover {
  opacity: 0.7;
}

.report-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.report-title {
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.report-date {
  color: #888;
  font-size: 13px;
  flex-shrink: 0;
}

.report-badges {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 14px;
}

.section-divider {
  text-align: center;
  color: #999;
  font-size: 13px;
  margin: 40px 0 12px;
}

.section-divider span {
  background: #fafafa;
  padding: 0 12px;
  position: relative;
  z-index: 1;
}

.footer {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: 20px;
  width: 100%;
  max-width: 900px;
}

.footer-line {
  height: 1px;
  background: #e0e0e0;
}

.footer-text {
  color: #999;
  font-size: 13px;
  text-align: center;
  margin-top: 12px;
}

.report-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  background: #f0f0f0;
  color: #666;
}

.report-badge.multi {
  background: #fef3c7;
  color: #92400e;
}

.report-badge.html {
  background: #dbeafe;
  color: #1e40af;
}

.report-badge.md {
  background: #f3e8ff;
  color: #7c3aed;
}

.empty-hint {
  color: #999;
  font-size: 14px;
  padding: 20px;
  text-align: center;
  background: #f5f5f5;
  border-radius: 8px;
}

.md-viewer {
  display: none;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background: #fff;
  border-radius: 8px;
  min-height: 100vh;
}

.md-viewer.active {
  display: block;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: #666;
  text-decoration: none;
  font-size: 14px;
}

.back-link:hover {
  color: #333;
}

.markdown-body {
  max-width: 100%;
  background: #fff;
  color: #24292e;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  color: #1a1a1a;
  border-bottom: none;
  padding-bottom: 0;
}

.markdown-body h1 {
  font-size: 2em;
  margin-bottom: 0.5em;
}

.markdown-body h2 {
  font-size: 1.5em;
  margin-top: 1em;
}

.markdown-body p {
  margin: 1em 0;
}

.markdown-body pre {
  background: #f6f8fa;
  border-radius: 6px;
}

.markdown-body code {
  background: #f6f8fa;
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

.markdown-body pre code {
  background: none;
  padding: 0;
}

.md-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  display: none;
}

.md-meta.active {
  display: block;
}

.md-meta span {
  margin-right: 16px;
}