:root {
  color-scheme: dark light;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  --bg: #121512; --surface: #1a201b; --control: #141814;
  --border: #354238; --text: #eef5ee; --muted: #acbdaf;
  --accent: #a4f0b0; --accent-ink: #142416;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #eaf0e9; --surface: #fafcf9; --control: #f4f8f3;
    --border: #cdd9ce; --text: #1f2a22; --muted: #516559;
    --accent: #247740; --accent-ink: #fff;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
header { display: flex; justify-content: space-between; align-items: center; min-height: 68px; padding: 0 max(20px, calc((100% - 1160px) / 2)); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: .75rem; font-weight: 700; }
.brand i { width: 18px; height: 18px; border: 5px solid var(--accent); border-radius: 30%; }
main { margin: 2rem auto; max-width: 1192px; padding: 0 16px; }
.layout { display: grid; grid-template-columns: minmax(240px, .33fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.surface { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: clamp(14px, 3vw, 26px); }
h1, h2 { margin: 0 0 1.15rem; letter-spacing: -.035em; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.12rem; }
button, input, select, textarea { font: inherit; border-radius: 9px; border: 1px solid var(--border); padding: .65rem .8rem; color: inherit; background: var(--control); }
button { cursor: pointer; } button:hover { border-color: var(--accent); }
button.primary { background: var(--accent); color: var(--accent-ink); font-weight: 700; border-color: transparent; }
button:disabled { opacity: .55; cursor: default; }
label, small, .empty { color: var(--muted); }
#login { max-width: 390px; margin: 12vh auto 0; }
form:not([hidden]) { display: grid; gap: .7rem; }
ul, ol { padding: 0; list-style: none; }
#devices li { padding: .7rem 0; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
#devices small { display: block; margin: .2rem 0 .5rem; }
#devices button { font-size: .82rem; padding: .35rem .5rem; }
#jobs { min-height: 260px; max-height: 54vh; overflow: auto; padding-right: 4px; }
#jobs li { margin: 0 0 1rem; }
.message { white-space: pre-wrap; overflow-wrap: anywhere; margin: .4rem 0; }
.prompt { border: 1px solid var(--border); border-radius: 10px; padding: .7rem; background: var(--control); }
#compose { border-top: 1px solid var(--border); padding-top: 1rem; }
textarea { resize: vertical; }
output:not([hidden]) { display: block; margin-top: .8rem; overflow-wrap: anywhere; font-family: monospace; color: var(--accent); }
#notice { text-align: center; min-height: 1.6em; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 650px) { main { margin-top: 1rem; } .layout { display: flex; flex-direction: column-reverse; } .layout > * { width: 100%; } }
