body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f3f5f8;
  color: #16202a;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.sub, .meta {
  color: #5f6b77;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 16px;
}

.controls {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.status-details {
  padding: 0;
}

.status-details summary {
  cursor: pointer;
  font-weight: 700;
  padding: 18px;
  list-style-position: inside;
}

.status-details[open] summary {
  border-bottom: 1px solid #e7ebef;
}

.status-grid {
  padding: 18px;
  margin: 0;
}

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

.list-head h2 {
  margin: 0;
}

.sort-control {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #5f6b77;
  font-size: 14px;
}

.sort-control select {
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  background: #fff;
  color: #16202a;
  padding: 10px 12px;
  font-size: 14px;
}

button {
  border: 0;
  background: #17324d;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.stats {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px 12px;
}

.stats dt {
  color: #5f6b77;
}

.stats dd {
  margin: 0;
  font-weight: 700;
}

.run {
  padding: 10px 0;
  border-bottom: 1px solid #e7ebef;
}

.item {
  border-top: 1px solid #e7ebef;
  padding: 16px 0;
}

.item:first-child {
  border-top: 0;
  padding-top: 0;
}

.item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.item-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  align-items: start;
}

.item-media img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  background: #eef3f8;
}

.no-image {
  background: #eef3f8;
  color: #5f6b77;
  border-radius: 12px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
}

.source-text {
  white-space: pre-wrap;
  line-height: 1.5;
  margin: 14px 0;
}

.reason {
  color: #4b5563;
  background: #f8fafc;
  border-left: 4px solid #dbeafe;
  padding: 10px 12px;
  border-radius: 8px;
}

.article-preview {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #eff6ff;
  line-height: 1.45;
}

.item-actions {
  margin: 14px 0;
}

.secondary {
  background: #60758b;
}

.score {
  min-width: 44px;
  text-align: center;
  background: #e8eef4;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 700;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  background: #eef3f8;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
}

.modal {
  width: min(900px, calc(100vw - 40px));
  border: 0;
  border-radius: 16px;
  padding: 0;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #e7ebef;
}

.modal-body {
  padding: 20px;
  white-space: pre-wrap;
  line-height: 1.6;
  max-height: 70vh;
  overflow: auto;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }

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

  .list-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
