:root {
  color-scheme: dark;
  --bg: #0a1219;
  --surface: #111b23;
  --surface-2: #16232d;
  --line: #24323d;
  --line-strong: #3b4f5e;
  --text: #f4f7f2;
  --muted: #a9b6bd;
  --lime: #c8f36a;
  --lime-ink: #0a1006;
  --ok: #7fdc95;
  --warn: #f0c266;
  --bad: #ff8a80;
  --info: #7fc3ff;
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  background: var(--bg);
  color: var(--text);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  line-height: 1.55;
  background:
    radial-gradient(800px 420px at 90% -10%, rgba(200, 243, 106, 0.09), transparent 60%), var(--bg);
}
main {
  max-width: 980px;
  margin: auto;
  padding: 20px 20px 48px;
}
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0 20px;
}
.brand {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: var(--text);
}
.tag {
  color: var(--muted);
  font-size: 14px;
}
section {
  margin-top: 24px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
}
.narrow {
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
h1 {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: -0.01em;
}
h2 {
  margin: 0 0 8px;
  font-size: 18px;
}
p,
small {
  color: var(--muted);
}
.lead {
  margin: 0 0 20px;
}
label {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  max-width: 420px;
  color: var(--muted);
  font-size: 14px;
}
.narrow label {
  max-width: none;
}
input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
textarea {
  min-height: 96px;
  resize: vertical;
}
button {
  min-height: 46px;
  margin: 4px 8px 4px 0;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
button:hover:not(:disabled) {
  border-color: var(--lime);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button.primary,
#login-button {
  background: var(--lime);
  color: var(--lime-ink);
  border-color: var(--lime);
  font-weight: 700;
}
button.ghost {
  background: transparent;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}
#tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
#tabs button {
  margin: 0;
  border-radius: 999px;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
#tabs button[aria-current='page'] {
  background: var(--surface-2);
  border-color: var(--line-strong);
  color: var(--text);
}
#tabs #logout {
  margin-left: auto;
}
.card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 18px;
  margin: 12px 0;
}
.card h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.actions {
  margin-top: 8px;
}
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid currentColor;
}
.badge-ok {
  color: var(--ok);
}
.badge-warn {
  color: var(--warn);
}
.badge-bad {
  color: var(--bad);
}
.badge-info {
  color: var(--info);
}
.badge-muted {
  color: var(--muted);
}
.empty {
  padding: 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
}
#notice {
  min-height: 26px;
  margin: 0 0 8px;
}
.notice-bad {
  color: var(--bad);
}
.notice-ok {
  color: var(--ok);
}
#login-message {
  min-height: 24px;
}
@media (max-width: 600px) {
  main {
    padding: 14px;
  }
  .panel {
    padding: 20px;
  }
  .tag {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }
}
