:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #17201b; background: #f4f6f4; }
* { box-sizing: border-box; }
body { margin: 0; }
header { height: 58px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; background: #173f35; color: white; border-bottom: 3px solid #e7b53c; }
.brand { color: white; text-decoration: none; font-weight: 750; }
main { width: min(960px, calc(100% - 32px)); margin: 32px auto 64px; }
section { margin-bottom: 40px; }
h1, h2 { letter-spacing: 0; margin: 0 0 18px; }
h1 { font-size: 24px; }
h2 { font-size: 18px; }
form { max-width: 620px; }
label { display: grid; gap: 7px; font-size: 13px; font-weight: 650; color: #39433e; }
input, select { width: 100%; height: 40px; border: 1px solid #b9c2bd; border-radius: 4px; padding: 0 11px; background: white; font: inherit; }
input:focus, select:focus { outline: 2px solid #3b7c68; outline-offset: 1px; }
.grid { display: grid; gap: 12px; margin-top: 14px; }
.two { grid-template-columns: 1fr 1fr; }
.four { grid-template-columns: repeat(4, 1fr); }
fieldset { border: 1px solid #ccd2ce; border-radius: 5px; padding: 14px; margin: 18px 0; }
.logout { margin: 0; }
.logout button { min-height: 32px; padding: 6px 10px; background: transparent; border: 1px solid #87a59b; font-size: 13px; }
legend { font-size: 13px; font-weight: 700; }
button, .button { min-height: 40px; border: 0; border-radius: 4px; padding: 10px 16px; background: #20624f; color: white; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.table-wrap { overflow-x: auto; border: 1px solid #d4dad6; background: white; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #e1e5e2; white-space: nowrap; }
th { background: #edf0ee; color: #4a554f; font-size: 12px; text-transform: uppercase; }
td a { color: #17604c; font-weight: 650; }
.empty { color: #78817c; text-align: center; padding: 30px; }
.status { display: inline-flex; min-height: 24px; padding: 3px 8px; border-radius: 3px; background: #dfe4e1; font-size: 12px; font-weight: 750; }
.status.completed { background: #d4eadf; color: #14563e; }
.status.failed { background: #f2d9d5; color: #842d24; }
.status.downloading, .status.probing, .status.encoding, .status.verifying { background: #dce8ef; color: #235873; }
.title-row { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.queue-summary { display: flex; gap: 12px; font-size: 13px; color: #4a554f; }
.queue-summary span { padding: 7px 9px; border: 1px solid #ccd2ce; border-radius: 4px; background: white; }
.queue-note { max-width: 620px; padding: 10px 12px; border-left: 3px solid #d19a24; background: #fff8e7; font-size: 13px; }
.range-heading { max-width: 620px; margin: 20px 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.range-heading h2 { margin: 0; }
.ranges { max-width: 620px; display: grid; gap: 9px; }
.range-row { display: grid; grid-template-columns: 1fr 1fr minmax(130px, 0.8fr) auto; gap: 10px; align-items: end; padding-bottom: 9px; border-bottom: 1px solid #d9dedb; }
.secondary, .remove-range { background: #e4e9e6; color: #27332d; }
.remove-range { min-width: 82px; }
.remove-range:disabled { visibility: hidden; }
button:disabled { cursor: not-allowed; opacity: 0.6; }
.title-row a { display: inline-block; color: #3f6559; margin-bottom: 12px; font-size: 13px; }
dl { display: grid; grid-template-columns: 110px 1fr; max-width: 700px; border-top: 1px solid #d9dedb; }
dt, dd { margin: 0; padding: 11px 0; border-bottom: 1px solid #d9dedb; }
dt { color: #68716c; font-size: 13px; }
dd { overflow-wrap: anywhere; }
.error { max-width: 700px; border-left: 3px solid #ad3c30; background: #faeae7; padding: 12px; color: #71271f; }
.actions { display: flex; gap: 10px; align-items: center; }
.actions form { margin: 0; }
.danger { background: #9a352b; }
.clip-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.clip-list li { padding-left: 4px; }
.clip-list li span { display: inline-block; min-width: 150px; }
.compact { min-height: 32px; padding: 6px 10px; font-size: 13px; }
.login-page { min-height: 100vh; display: grid; place-items: center; }
.login-shell { width: min(340px, calc(100% - 32px)); margin: 0; }
.login-form { padding: 24px; border: 1px solid #ccd2ce; border-radius: 5px; background: white; }
.login-form button { width: 100%; justify-content: center; margin-top: 18px; }
.login-form .error { margin: 14px 0 0; font-size: 13px; }

.verbose-heading { max-width: 700px; margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.verbose-heading h2 { margin: 0; }
.verbose-switch { display: inline-flex; grid-template-columns: none; flex-direction: row; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.verbose-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.switch-track { position: relative; width: 36px; height: 20px; flex: 0 0 auto; border-radius: 10px; background: #aeb8b2; transition: background 120ms ease; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: white; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform 120ms ease; }
.verbose-switch input:checked + .switch-track { background: #20624f; }
.verbose-switch input:checked + .switch-track::after { transform: translateX(16px); }
.verbose-switch input:focus-visible + .switch-track { outline: 2px solid #3b7c68; outline-offset: 2px; }
.job-output { max-width: 700px; max-height: 360px; min-height: 120px; margin: 12px 0 0; overflow: auto; border: 1px solid #303733; border-radius: 4px; padding: 12px; background: #151917; color: #dbe5df; font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 600px) { header { padding: 0 16px; } .two { grid-template-columns: 1fr; } .four { grid-template-columns: 1fr 1fr; } .title-row { align-items: stretch; flex-direction: column; } .queue-summary { justify-content: flex-start; } .range-row { grid-template-columns: 1fr 1fr; } .remove-range { grid-column: 1 / -1; width: 100%; } dl { grid-template-columns: 85px 1fr; } }
