@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}

:root {
  --bg: #030405;
  --ink: #07111d;
  --fg: #f5f5f0;
  --muted: #a7aaad;
  --line: rgba(245, 245, 240, 0.16);
  --lime: #c7ff48;
  --violet: #8f7cff;
  --amber: #ffb829;
  --nav: 13.5rem;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
html { font-family: Inter, Arial, sans-serif; font-size: 100%; }
body { min-height: 100svh; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--lime);
  color: var(--ink);
  padding: 0.6rem 0.8rem;
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 600; letter-spacing: -0.04em; }
.brand-signal { display: flex; gap: 2px; transform: skewY(-13deg); }
.brand-signal i { width: 6px; height: 17px; display: block; background: var(--lime); }
.brand-signal i:nth-child(2) { height: 13px; margin-top: 3px; background: var(--violet); }
.brand-signal i:nth-child(3) { height: 9px; margin-top: 6px; background: var(--amber); }

.auth-main {
  min-height: 100svh;
  display: grid;
  align-content: center;
  width: min(28rem, calc(100% - 2rem));
  margin: 0 auto;
  gap: 1.25rem;
}
.shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: var(--nav) 1fr;
  grid-template-rows: auto 1fr;
}
.top {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.menu-toggle { display: none; }
.nav {
  padding: 1.25rem;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}
.nav a:hover, .nav a:focus { color: var(--fg); }
.main { padding: 1.75rem 1.5rem 3rem; max-width: 58rem; }
h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 600; letter-spacing: -0.04em; margin: 0 0 0.6rem; }
h2 { font-size: 1.05rem; font-weight: 600; margin: 2rem 0 0.6rem; letter-spacing: -0.02em; }
.lede, p { color: var(--muted); line-height: 1.5; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border: 0;
  background: var(--violet);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
form { display: grid; gap: 1rem; max-width: 28rem; }
form[method="get"] {
  max-width: none;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 14rem));
  align-items: end;
}
.field { display: grid; gap: 0.35rem; }
label { font-size: 0.9rem; }
input, select, textarea, button {
  font: inherit;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--line);
  min-height: 2.75rem;
  padding: 0.5rem 0.7rem;
}
textarea { min-height: 8rem; }
.rows { list-style: none; padding: 0; margin: 0; }
.rows li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.facts { display: grid; grid-template-columns: 10rem 1fr; gap: 0.6rem 1rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.85rem; }
.status { display: inline-flex; align-items: center; gap: 0.4rem; text-transform: capitalize; }
.status .dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--muted); }
.status.ok .dot { background: var(--lime); }
.status.attention .dot { background: var(--amber); }
.status.unknown .dot { background: var(--muted); }
.banner { padding: 0.7rem 0; }
.banner.error { color: var(--amber); }
.banner.notice { color: var(--fg); }
.thread { list-style: none; padding: 0; }
.thread li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.thread .internal { color: var(--muted); }

@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  .nav { display: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .menu-toggle { display: inline-flex; min-height: 2.75rem; min-width: 2.75rem; align-items: center; }
  .rows li { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}
