:root {
  --bg: #0c0e12;
  --card: #161a22;
  --line: #2a3140;
  --text: #eef1f6;
  --muted: #9aa3b5;
  --accent: #c8a96e;
  --err: #f08080;
  --font: system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
.panel {
  max-width: 920px;
  margin: 24px auto;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.top {
  max-width: 920px;
  margin: 16px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
h1 { font-size: 1.35rem; margin: 0 0 8px; }
h2 { font-size: 1.05rem; margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 0.9rem; }
.err { color: var(--err); white-space: pre-wrap; }
.log {
  background: #0a0c10;
  padding: 12px;
  border-radius: 8px;
  font-size: 12px;
  max-height: 200px;
  overflow: auto;
}
label { display: block; margin: 10px 0; font-size: 14px; }
input[type="text"], input[type="password"], input[type="file"] {
  display: block;
  margin-top: 4px;
  width: 100%;
  max-width: 360px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
}
button {
  margin: 8px 8px 0 0;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}
button.primary { background: var(--accent); color: #1a1208; border-color: transparent; }
button.ghost { background: transparent; }
.actions { margin: 16px 0; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.grid figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.grid img { width: 100%; display: block; aspect-ratio: 16/10; object-fit: cover; background: #000; }
.grid figcaption { font-size: 11px; padding: 6px 8px; color: var(--muted); }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.projects-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.projects-list li { margin: 0 0 8px; }
.projects-list button.project-row {
  width: 100%;
  margin: 0;
  text-align: left;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: center;
}
.projects-list button.project-row:hover,
.projects-list button.project-row.active {
  border-color: var(--accent);
}
.projects-list .row-title {
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.projects-list .row-meta {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--muted);
}
.projects-list .row-badge {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.projects-list .row-badge.completed { color: #8fd4a8; border-color: #3a5a48; }
.projects-list .row-badge.failed { color: var(--err); border-color: #5a3030; }
.projects-list .row-badge.running { color: var(--accent); border-color: #5a4a28; }
