:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101214;
  color: #f4f1ec;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #101214;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  background: #d6ff5f;
  color: #111;
  font-weight: 700;
  cursor: pointer;
}

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

.ghost {
  background: #24282c;
  color: #f4f1ec;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.topbar,
.actions,
.log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 6px;
  color: #d6ff5f;
  font-size: 0.78rem;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

article,
.log-panel,
.login-card {
  border: 1px solid #30363d;
  border-radius: 8px;
  background: #171a1e;
}

article {
  padding: 16px;
}

article span {
  display: block;
  color: #aeb6be;
  font-size: 0.82rem;
}

article strong {
  display: block;
  margin-top: 10px;
  font-size: 1.1rem;
  word-break: break-word;
}

.actions {
  justify-content: flex-start;
  margin-bottom: 18px;
}

.log-panel {
  padding: 16px;
}

.log-head {
  margin-bottom: 14px;
}

#connection {
  color: #aeb6be;
}

pre {
  min-height: 420px;
  max-height: 62vh;
  overflow: auto;
  margin: 0;
  padding: 16px;
  border-radius: 6px;
  background: #090b0d;
  color: #dce7ef;
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  padding: 24px;
}

label {
  display: grid;
  gap: 8px;
  margin: 24px 0 16px;
  color: #c8d0d8;
}

input {
  width: 100%;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 0.8rem;
  background: #0d0f12;
  color: #f4f1ec;
}

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

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