:root {
  color-scheme: light;
  --bg: #f6f7f8;
  --text: #1d2329;
  --muted: #67717c;
  --line: #d9dee3;
  --accent: #116d6e;
  --danger: #b3261e;
  --panel: #ffffff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}
.brand {
  font-weight: 750;
  text-decoration: none;
}
.topbar nav a {
  color: var(--muted);
  text-decoration: none;
}
.page {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
}
.intro {
  margin-bottom: 32px;
}
.intro h1, .panel h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.15;
}
.intro p {
  margin: 0;
  color: var(--muted);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.project-card, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(20, 28, 35, 0.04);
}
.project-card {
  display: flex;
  flex-direction: column;
  min-height: 132px;
  padding: 20px;
  text-decoration: none;
}
.project-card:hover { border-color: var(--accent); }
.project-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.project-description, .empty, small {
  color: var(--muted);
}
.panel {
  padding: 24px;
}
.narrow {
  width: min(420px, 100%);
  margin: 40px auto;
}
label {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  font-weight: 650;
}
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
}
button {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
}
.danger {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--danger);
}
.error {
  color: var(--danger);
  font-weight: 650;
}
.admin-layout {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 20px;
  align-items: start;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.check input { width: auto; }
.table {
  display: grid;
  gap: 10px;
}
.row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.row small {
  display: block;
  margin-top: 4px;
}
.status {
  color: var(--muted);
}
@media (max-width: 760px) {
  .topbar { padding: 0 16px; }
  .admin-layout { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr auto; }
}
