.st-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 1rem;
  align-items: start;
}

.st-side {
  position: sticky;
  top: 0.75rem;
}

.st-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.st-stat {
  background: #faf8f5;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
}

.st-stat .n {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.st-stat .l {
  font-size: 0.72rem;
  color: var(--muted);
}

.st-filters {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.st-cat-list {
  display: grid;
  gap: 0.35rem;
  max-height: calc(100vh - 280px);
  overflow: auto;
}

.st-cat-btn {
  text-align: left;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  margin: 0;
  cursor: pointer;
}

.st-cat-btn:hover { border-color: var(--accent); }
.st-cat-btn.active {
  border-color: var(--accent);
  background: var(--accent-light);
}

.st-cat-btn .name { font-size: 0.88rem; font-weight: 600; display: block; }
.st-cat-btn .meta {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.st-main {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.st-list-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.st-list-head h2 { margin: 0; font-size: 1.05rem; }
.st-list-head input {
  min-width: 200px;
  flex: 1;
  max-width: 320px;
}

.st-list {
  display: grid;
  gap: 0.45rem;
  max-height: 420px;
  overflow: auto;
}

.st-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.75rem;
  align-items: center;
}

.st-item:hover { border-color: var(--accent); }
.st-item.active { border-color: var(--accent); background: var(--accent-light); }
.st-item .t { font-size: 0.9rem; font-weight: 600; }
.st-item .s { font-size: 0.75rem; color: var(--muted); }

.st-badge {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: #f0ebe3;
  color: var(--muted);
  white-space: nowrap;
}

.st-badge.warn { background: #f7ecd8; color: var(--warn); }
.st-badge.ok { background: var(--accent-light); color: var(--accent); }
.st-badge.phase { background: #e8eef2; color: #3a5566; }

.st-detail-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.st-detail-head h2 { margin: 0; font-size: 1.05rem; }

.st-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.st-table-wrap { overflow: auto; margin-bottom: 0.75rem; }

.st-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.st-table th,
.st-table td {
  border: 1px solid var(--border);
  padding: 0.4rem 0.55rem;
  text-align: center;
  white-space: nowrap;
}

.st-table th { background: #faf8f5; font-weight: 600; }
.st-table td.size { font-weight: 700; background: #faf8f5; }

.hidden { display: none !important; }

@media (max-width: 860px) {
  .st-layout {
    grid-template-columns: 1fr;
  }
  .st-side { position: static; }
  .st-cat-list { max-height: 220px; }
}
