* { box-sizing: border-box; }
:root {
  --base: #080d10;
  --panel: #12232b;
  --line: #355562;
  --text: #e8e8e1;
  --muted: #a9b5b8;
  --lime: #b7f52a;
  --danger: #ffb2a9;
  font-family: system-ui, sans-serif;
  color: var(--text);
  background: var(--base);
  color-scheme: dark;
}
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at top right, #193440, transparent 62%); }
.shell { width: min(100% - 2rem, 1120px); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); background: #080d10eb; }
.header-row { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; }
.brand img { width: 126px; height: 54px; object-fit: contain; object-position: left; }
nav, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
a { color: var(--lime); }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 44px;
  text-decoration: none; padding: .55rem .95rem; border: 1px solid var(--line); border-radius: .38rem;
  color: var(--text); background: #162832; font: inherit; font-weight: 650; cursor: pointer;
}
button:not(:disabled):hover, .button:hover, [aria-current="true"] { border-color: var(--lime); color: var(--lime); }
.primary { background: var(--lime); border-color: var(--lime); color: #0a1203; }
.primary:not(:disabled):hover, .primary.button:hover { background: #d2ff80; color: #0a1203; }
.danger { color: var(--danger); }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid #d2ff80; outline-offset: 3px; }
.skip { position: absolute; top: 0; left: 1rem; transform: translateY(-110%); background: var(--base); padding: .75rem; z-index: 3; }
.skip:focus { transform: none; }
main { padding-bottom: 3rem; }
.hero { padding: clamp(2.25rem, 6vw, 4.5rem) 0 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
h1 { font-size: clamp(2rem, 7vw, 4rem); letter-spacing: -.05em; line-height: 1.03; margin: 0; }
h2 { margin: 0 0 .75rem; font-size: 1.3rem; }
h3 { margin: .45rem 0; }
p { line-height: 1.55; margin: .65rem 0; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
.stack, form, .list { display: grid; gap: .75rem; min-width: 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: .55rem; padding: clamp(1rem, 3vw, 1.65rem); min-width: 0; }
.card + .card { margin-top: 1rem; }
.grid > .card + .card { margin-top: 0; }
ul.list { list-style: none; padding: 0; }
label { display: grid; gap: .35rem; }
textarea, input, select {
  font: inherit; color: var(--text); border: 1px solid var(--line); border-radius: .35rem;
  background: var(--base); padding: .65rem; min-height: 44px; width: 100%; }
input[type="checkbox"] { width: 1.25rem; min-height: 1.25rem; }
textarea { resize: vertical; }
code, pre, .mono { font-family: ui-monospace, monospace; }
.editor { min-height: 18rem; font-family: ui-monospace, monospace; }
.message { background: #0f1d24; border-left: 3px solid var(--line); padding: .65rem .9rem; }
.message.owner { border-color: var(--lime); }
.message p { white-space: pre-wrap; }
.list-item { width: 100%; justify-content: space-between; gap: .5rem; text-align: left; overflow-wrap: anywhere; }
.list-item span { min-width: 0; }
.badge { color: var(--muted); font-size: .875rem; }
#feedback:not(:empty), .error { color: var(--danger); overflow-wrap: anywhere; }
#feedback:not(:empty) { margin-bottom: 1rem; }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { border-bottom: 1px solid var(--line); padding: .55rem; overflow-wrap: anywhere; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 540px) {
  .header-row { padding-block: .5rem; flex-wrap: wrap; }
  .brand img { max-height: 44px; }
  nav { width: 100%; }
}
