body {
  font-family: sans-serif;
  margin: 0;
  padding: 1rem 2rem;
  background: #0d1117;
  color: #e6edf3;
}

/* ── Login page ── */
body.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 0;
}

.login-box {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 2rem 2.5rem;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.login-box h1 { margin-bottom: 0.5rem; }

.login-desc {
  color: #8b949e;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.login-fields {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.pw-full {
  flex: 1;
  width: auto !important;
}

.login-btn { align-self: stretch; }

/* ── Top bar ── */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

h1 { margin-bottom: 0.25rem; }

p.sub {
  color: #8b949e;
  margin-top: 0;
  font-size: 0.85rem;
}

/* ── Blurb ── */
.blurb {
  color: #8b949e;
  font-size: 0.88rem;
  margin: 0 0 0.5rem;
  line-height: 1.6;
}

/* ── Status bar ── */
.status-bar {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.panel img {
  width: 200px;
  height: 134px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.no-thumb {
  width: 200px;
  height: 134px;
  border-radius: 4px;
  background: #0d1117;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #484f58;
  font-size: 0.8rem;
  border: 1px dashed #30363d;
}

.label {
  color: #8b949e;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.meta {
  color: #8b949e;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ── Admin section ── */
.status-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.6rem;
}

.admin-label {
  color: #8b949e;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

/* ── Daemon status ── */
.daemon-section {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot.on   { background: #3fb950; box-shadow: 0 0 6px #3fb950; }
.dot.off  { background: #f85149; }
.dot.warn { background: #f0883e; box-shadow: 0 0 6px #f0883e; }

.daemon-label      { font-size: 0.9rem; }
.daemon-label.warn { color: #f0883e; }

form.daemon-form { margin: 0; }

button.daemon-btn {
  background: #21262d;
  border: 1px solid #30363d;
  color: #e6edf3;
  padding: 0.3rem 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
}
button.daemon-btn:hover  { background: #30363d; }
button.daemon-btn.stop   { border-color: #f85149; color: #f85149; }
button.daemon-btn.stop:hover  { background: #2d1a1a; }
button.daemon-btn.start  { border-color: #3fb950; color: #3fb950; }
button.daemon-btn.start:hover { background: #0d2016; }
button.daemon-btn.lock   { border-color: #484f58; color: #8b949e; font-size: 0.78rem; }

/* ── Login form ── */
.login-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pw-input {
  background: #0d1117;
  border: 1px solid #30363d;
  color: #e6edf3;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  width: 120px;
}
.pw-input:focus { outline: none; border-color: #58a6ff; }

.login-error { color: #f85149; font-size: 0.8rem; }

/* ── Table ── */
table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 1rem;
}

th, td {
  padding: 0.45rem 0.7rem;
  border: 1px solid #30363d;
  text-align: left;
  font-size: 0.9rem;
}

th { background: #161b22; color: #58a6ff; }
tr:nth-child(even) { background: #161b22; }
tr:hover { background: #1f2937; }

img.thumb {
  width: 80px;
  height: 54px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}

a { color: #58a6ff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Pagination ── */
.pagination {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.pagination a {
  background: #21262d;
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  border: 1px solid #30363d;
}

.pagination .info { color: #8b949e; font-size: 0.85rem; }

.empty { color: #8b949e; margin-top: 2rem; font-size: 1.1rem; }
.check { color: #3fb950; }
.dash  { color: #484f58; }
