/* Palette, rounded cards and typography follow ButtheadGeo cabinet/race styles. */
:root{color-scheme:dark;--green:#65f49b;--mute:#98aaa0;--line:#35463b;--bg:#0b100d}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:#f0f6f1;font-family:"Sora","IBM Plex Sans",system-ui,sans-serif}header{padding:23px 4vw;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.brand{font-size:24px;font-weight:800;letter-spacing:-.05em;color:inherit;text-decoration:none}.brand span{color:var(--green)}main{max-width:1400px;margin:auto;padding:42px 24px}.heading{display:flex;align-items:end;justify-content:space-between;gap:40px;margin-bottom:32px}h1{font-size:clamp(32px,4.3vw,61px);letter-spacing:-.065em;line-height:1.05;margin:12px 0}h1 span{color:var(--green)}h2{font-size:19px;letter-spacing:-.035em;margin:0 0 18px}.eyebrow{color:var(--green);font-size:11px;letter-spacing:.18em;font-weight:700}.lead{max-width:370px;line-height:1.6;color:var(--mute)}.card{background:linear-gradient(130deg,#151d19,#101412);border:1px solid var(--line);border-radius:23px;padding:24px;margin-bottom:18px}.pill{color:#77eda6;background:#133524;border:1px solid #3e704e;border-radius:100px;padding:7px 12px;font-size:12px}label{display:block;color:#acbfb2;font-size:13px;margin:0 0 8px}input,select,textarea{width:100%;min-height:43px;border-radius:11px;border:1px solid var(--line);padding:10px 12px;background:#141b17;color:#e9f2eb;font:inherit}input{flex:1;min-width:180px}button{min-height:43px;padding:10px 17px;border:1px solid #65f49b66;border-radius:13px;background:var(--green);color:#092512;font:inherit;font-size:13px;font-weight:700;cursor:pointer}button:hover{box-shadow:0 0 24px #65f49b25}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #a8fcc7;outline-offset:3px}.secondary{background:#12231a;color:#c9efda;border-color:#36543f}.danger{background:#ff746c;color:#230b0a;border-color:#ffaaa4}.row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.muted{color:var(--mute);font-size:12px;line-height:1.6}.toolbar{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.toolbar>div{flex:1;min-width:220px}.layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px}.screen-top{display:flex;justify-content:space-between;gap:15px}#screen{display:flex;align-items:center;justify-content:center;background:#080b09;border:1px solid #27342c;border-radius:15px;min-height:380px;height:min(68vh,800px);padding:0;overflow:hidden}#screen video,#screen img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;touch-action:none;user-select:none}#placeholder{padding:24px;max-width:300px;color:var(--mute);text-align:center;line-height:1.6}#text-form{margin:22px 0}#text-form button{margin-top:10px;width:100%}.error{color:#ffaaa4;white-space:pre-wrap}#status{font-size:14px;line-height:1.6;overflow-wrap:anywhere}footer{text-align:center;padding:20px;color:var(--mute);font-size:12px}[hidden]{display:none!important}@media(max-width:820px){.heading{display:block}.layout{grid-template-columns:1fr}.toolbar button{flex:1}.card{padding:18px}main{padding:26px 16px}#screen{height:62vh}}

/* Once signed in, the device becomes the workspace rather than a landing-page illustration. */
body.authenticated .heading,body.authenticated footer{display:none}
body.authenticated header{height:44px;padding:8px 24px}
body.authenticated .brand{font-size:21px}
body.authenticated main{max-width:1600px;padding:8px 24px 12px}
body.authenticated .toolbar{min-height:52px;padding:7px 12px;margin-bottom:8px;border-radius:14px;flex-wrap:nowrap;align-items:center;gap:8px}
body.authenticated .toolbar>div{display:flex;align-items:center;gap:10px;min-width:180px}
body.authenticated .toolbar label{margin:0;white-space:nowrap}
body.authenticated .toolbar select,body.authenticated .toolbar button{min-height:36px;padding:6px 12px}
body.authenticated .toolbar button{white-space:nowrap}
body.authenticated .layout{grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:start}
body.authenticated .screen-card{padding:0;border:0;background:none;margin:0}
body.authenticated .screen-top,body.authenticated .screen-card>.muted{display:none}
body.authenticated #screen{height:calc(100dvh - 124px);min-height:280px;border-radius:18px}
body.authenticated aside{max-height:calc(100dvh - 124px);overflow:auto;padding-right:2px}
body.authenticated aside .card{padding:18px;border-radius:18px;margin-bottom:12px}
body.authenticated #error:empty{display:none}
.job-buttons{display:grid;gap:8px;margin-top:12px}#run-parameters label{margin-top:12px}#run-parameters input{min-width:0}
.file-buttons{margin-top:10px}#file-panel input{min-width:0}#file-list{list-style:none;padding:0;margin:14px 0;max-height:260px;overflow:auto}#file-list li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;padding:10px 0;border-bottom:1px solid var(--line)}#file-list li>span{overflow-wrap:anywhere;font-size:13px}#file-list small{grid-column:1;color:var(--mute);font-size:11px}#file-list button{grid-column:2;grid-row:1/3;align-self:center;padding:6px 9px;min-height:34px;font-size:11px}#file-upload-form>button{margin-top:10px;width:100%}#file-upload{font-size:12px}#file-status{overflow-wrap:anywhere}
@media(max-width:820px){body.authenticated header{padding:8px 16px}body.authenticated main{padding:8px 12px 16px}body.authenticated .toolbar{flex-wrap:wrap}body.authenticated .toolbar>div{flex-basis:100%}body.authenticated .toolbar button{flex:1}body.authenticated .layout{grid-template-columns:1fr}body.authenticated #screen{height:calc(100dvh - 196px);min-height:320px}body.authenticated aside{max-height:none;overflow:visible;padding:0}}

#file-list .file-row-actions{grid-column:2;grid-row:1/3;display:flex;flex-direction:column;gap:5px;align-self:center}#file-list .file-row-actions button{position:static}.file-confirm{position:fixed;inset:auto auto 16px 50%;transform:translateX(-50%);z-index:30;width:min(440px,calc(100vw - 32px));box-sizing:border-box;border:1px solid var(--line);border-radius:16px;background:var(--card,#151d19);color:var(--text,#fff);padding:22px;box-shadow:0 20px 70px #0008}.file-confirm{max-height:60dvh;overflow:auto}.file-confirm p{overflow-wrap:anywhere}.file-confirm .file-delete-path{font-family:monospace;font-size:13px}.file-confirm .row{flex-wrap:wrap}

#file-history-list{list-style:none;padding:0;margin:16px 0 0;max-height:420px;overflow:auto}#file-history-list li{padding:14px 0;border-top:1px solid var(--line,#dce7df);overflow-wrap:anywhere}#file-history-list strong{font-size:13px}#file-history-list p{margin:6px 0;font-size:13px}#file-history-list small{display:block;line-height:1.6;color:var(--mute,#98aaa0)}
