:root { color-scheme: dark; background: #111418; color: #f2f5f8; font: 16px/1.55 system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(100%, 48rem); margin: auto; padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); }
.top, .form-footer, .jobs-heading, .job-heading { display: flex; justify-content: space-between; align-items: center; gap: .65rem; }
.top { border-bottom: 1px solid #343c48; padding-bottom: 1rem; }
.wordmark { font-weight: 750; }
.wordmark span { color: #a9efce; margin-right: .3rem; }
.intro { margin: 2rem 0 1.4rem; }
h1 { font-size: clamp(2rem, 7vw, 3.1rem); line-height: 1.1; letter-spacing: -.035em; margin: 0 0 .55rem; }
h2 { font-size: 1.2rem; margin: 0; }
p { margin: 0; }
.intro p, #job-hint, #queue-status, #queue-message, .job-label, #lab-offline-status { color: #b6c1cf; }
.panel, .job, dialog { background: #1a2028; border: 1px solid #343e4b; border-radius: .9rem; padding: 1rem; }
label { display: block; margin: .7rem 0 .35rem; font-weight: 600; }
textarea { display: block; width: 100%; min-height: 6rem; resize: vertical; background: #11161d; color: inherit; border: 1px solid #586477; border-radius: .55rem; padding: .65rem; font: inherit; }
textarea::placeholder { color: #a4adbb; }
button { min-height: 44px; border-radius: .55rem; padding: .45rem .8rem; color: inherit; background: #25303d; border: 1px solid #586477; font: inherit; font-weight: 650; cursor: pointer; }
button:focus-visible, textarea:focus-visible { outline: 2px solid #a9efce; outline-offset: 2px; }
button:disabled { opacity: .6; cursor: not-allowed; }
.form-footer { margin-top: .75rem; }
#job-hint, #queue-status { font-size: .85rem; }
#submit-job { color: #102019; background: #a9efce; border-color: transparent; flex-shrink: 0; }
#form-message:not(:empty), #lab-offline-status:not(:empty) { margin-top: .65rem; }
.jobs { margin-top: 1.6rem; }
#job-list { list-style: none; padding: 0; margin: .55rem 0 0; display: grid; gap: .65rem; }
#queue-message:not(:empty) { margin-top: .55rem; border: 1px dashed #4a5666; padding: 1rem; border-radius: .75rem; }
.job-heading { margin-bottom: .5rem; }
.badge { border-radius: 2rem; padding: .15rem .65rem; font-size: .82rem; font-weight: 650; color: #ffe19e; background: #473a24; }
.badge.completed { color: #a9efce; background: #214236; }
.badge.failed { color: #ffc9c9; background: #513135; }
.job-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.job-label { display: block; font-size: .82rem; margin-top: .35rem; }
dialog { max-width: min(28rem, 90vw); color: inherit; }
dialog p { margin: .6rem 0 1rem; }
dialog::backdrop { background: #000a; }
@media (max-width: 340px) { .form-footer { flex-wrap: wrap; } }
