:root {
  color-scheme: light;
  --paper: #f2f1eb;
  --card: #fbfaf5;
  --ink: #20241e;
  --quiet: #676b60;
  --line: #cdcec2;
  --frame: #202820;
  --accent: #d8ee76;
  --error: #983928;
  --sans: Inter, "Apple SD Gothic Neo", "Malgun Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font-family: var(--sans); word-break: keep-all; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #729325; outline-offset: 3px; }
#loading, noscript { display: block; padding: 36px; color: var(--quiet); }
.topbar { border-bottom: 1px solid var(--line); background: var(--paper); }
.bar-inner, .main { width: min(1220px, calc(100% - 96px)); margin: 0 auto; }
.bar-inner { min-height: 72px; display: flex; align-items: stretch; gap: 60px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; line-height: 1.1; font-weight: 800; letter-spacing: -.085em; text-decoration: none; white-space: nowrap; }
.aperture { display: inline-block; width: 26px; height: 22px; border: 3px solid currentColor; border-radius: 4px; position: relative; transform: rotate(-8deg); }
.aperture::before { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; border: 2px solid currentColor; inset: 0; margin: auto; }
.aperture::after { content: ""; position: absolute; top: 1px; right: 2px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
nav { display: flex; align-items: stretch; gap: 26px; }
nav a { display: grid; align-items: center; text-decoration: none; font-size: 14px; font-weight: 600; border-bottom: 2px solid transparent; color: var(--quiet); }
nav a[aria-current] { border-color: var(--ink); color: var(--ink); }
.logout { margin-left: auto; font-size: 13px; font-weight: 600; align-self: center; border: 0; background: none; padding: 10px 0 10px 8px; }
.logout span { padding-left: 5px; }
.main { padding: 38px 0 64px; }
h1, h2, p { margin: 0; }
.section-head, .history-head, .monitor-top, .label-line, .mode-line, .monitor-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-head { margin-bottom: 22px; }
h1 { font-weight: 720; font-size: clamp(29px, 3.4vw, 46px); line-height: 1.22; letter-spacing: -.075em; }
.machine { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #4a5145; }
.machine i { width: 7px; height: 7px; border-radius: 50%; background: #62823b; }
.workbench { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(0,1.36fr); align-items: stretch; gap: 18px; }
.form-pane { display: grid; align-content: start; gap: 18px; background: var(--card); border: 1px solid var(--line); padding: 24px; border-radius: 13px; min-width: 0; }
.field { min-width: 0; position: relative; }
.field label, legend, .login-body label, .mode-line label { display: block; font-size: 13px; font-weight: 680; line-height: 1.4; }
.type-field { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.type-switch { margin-top: 7px; display: flex; gap: 4px; border-radius: 8px; padding: 4px; background: #ecece3; }
.type-switch button { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 37px; flex: 1; border: 0; border-radius: 5px; font-size: 14px; background: transparent; color: #555b4c; font-weight: 620; }
.type-switch button[aria-pressed="true"] { color: #f7f7ef; background: var(--frame); }
.image-icon, .video-icon { display: inline-block; width: 16px; height: 12px; border: 1.5px solid currentColor; border-radius: 2px; position: relative; overflow: hidden; }
.image-icon::before { content: ""; position: absolute; width: 10px; height: 10px; left: 3px; top: 5px; border: 1.5px solid currentColor; transform: rotate(45deg); }
.image-icon::after { content: ""; position: absolute; width: 2px; height: 2px; border-radius: 50%; background: currentColor; top: 2px; left: 2px; }
.video-icon::before { content: ""; position: absolute; inset: 1px -2px auto; height: 3px; border-bottom: 1px solid currentColor; background: repeating-linear-gradient(-45deg, transparent 0 3px, currentColor 3px 4px); }
select, textarea, input[type="number"], input[type="password"] { display: block; width: 100%; margin-top: 7px; background: #fffefa; border: 1px solid #cccec3; border-radius: 6px; padding: 11px 12px; font-size: 14px; }
select { min-height: 42px; }
textarea { resize: vertical; min-height: 104px; line-height: 1.6; }
textarea::placeholder { color: #7b7d74; }
.text-button { padding: 3px 0 3px 8px; background: none; border: 0; color: #485e30; font-size: 12px; font-weight: 650; }
small, .small-note { font-size: 12px; line-height: 1.5; color: var(--quiet); }
.small-note, .field > small { display: block; margin-top: 6px; }
.field label.dropzone { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; padding: 12px; border: 1px dashed #a6aea0; border-radius: 6px; cursor: pointer; background: #eeefe7; }
.field:focus-within .dropzone { outline: 2px solid #729325; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-action { flex-shrink: 0; font-size: 19px; line-height: 1; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; bottom: 0; left: 0; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-line { border-top: 1px solid var(--line); padding-top: 15px; }
.mode-line small { display: block; margin-top: 2px; font-weight: 400; }
.switch { appearance: none; flex: 0 0 auto; position: relative; width: 38px; height: 23px; margin: 0; border: 1px solid #979b90; border-radius: 30px; background: #e0e1d6; cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #707568; }
.switch:checked { background: var(--frame); border-color: var(--frame); }
.switch:checked::after { left: 18px; background: var(--accent); }
.primary { display: flex; justify-content: space-between; align-items: center; min-height: 45px; gap: 16px; border: 1px solid #a9c452; background: var(--accent); padding: 10px 16px; border-radius: 7px; font-size: 15px; font-weight: 720; }
.primary:hover:not(:disabled) { background: #cbe65a; }
.primary > span:last-child:not(:first-child) { font: 21px/1 var(--sans); }
.error, .notice { color: var(--error); background: #f8e8e1; border-radius: 6px; font-size: 13px; padding: 10px 12px; line-height: 1.5; }
.notice { margin-bottom: 16px; }
.monitor { background: var(--frame); color: #f1f4e8; display: flex; flex-direction: column; padding: 20px; border-radius: 13px; min-width: 0; min-height: 390px; }
.monitor-top { align-items: center; padding-bottom: 15px; }
h2 { font-size: 23px; letter-spacing: -.055em; font-weight: 700; }
.monitor-top h2 { font-size: 15px; letter-spacing: -.035em; }
.monitor-status { font-size: 12px; color: #d5e0cc; }
.monitor-status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; vertical-align: 1px; border-radius: 50%; background: #9cae92; }
.monitor-status[data-state="running"]::before, .monitor-status[data-state="succeeded"]::before { background: var(--accent); }
.monitor-status[data-state="failed"]::before { background: #f4a781; }
.viewfinder { position: relative; isolation: isolate; overflow: hidden; flex: 1; min-height: 245px; border-radius: 4px; display: grid; background-color: #151c17; background-image: linear-gradient(#38463833 1px, transparent 1px), linear-gradient(90deg,#38463833 1px, transparent 1px); background-size: 40px 40px; }
.viewfinder.has-media { background: #131813; }
.corner { position: absolute; width: 11px; height: 11px; border: 0 solid #9aa38c; z-index: 1; pointer-events: none; }
.c1 { top: 11px; left: 11px; border-width: 1px 0 0 1px; }.c2 { top: 11px; right: 11px; border-width: 1px 1px 0 0; }.c3 { bottom: 11px; left: 11px; border-width: 0 0 1px 1px; }.c4 { bottom: 11px; right: 11px; border-width: 0 1px 1px 0; }
.preview { min-width: 0; display: grid; }
.source-badge { position: absolute; top: 17px; left: 17px; padding: 3px 7px; border-radius: 3px; background: #101912d9; color: #f4f7ee; font-size: 11px; pointer-events: none; }
.preview img, .preview video { display: block; width: 100%; height: 100%; max-height: 570px; min-height: 0; object-fit: contain; align-self: center; }
.preview-empty { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #bec6b9; font-size: 13px; line-height: 1.5; padding: 36px; text-align: center; }
.focus-ring { position: relative; display: block; width: 46px; height: 46px; border: 1px solid #5a6758; border-radius: 50%; }
.focus-ring::before, .focus-ring::after { content: ""; background: #a2b49d; position: absolute; inset: 0; margin: auto; }
.focus-ring::before { width: 14px; height: 1px; }.focus-ring::after { width: 1px; height: 14px; }
.monitor-foot { align-items: flex-start; min-height: 32px; margin-top: 15px; padding: 0 1px; font-size: 12px; line-height: 1.55; color: #cad1c3; }
#preview-description { word-break: break-word; max-height: 7.5em; overflow-y: auto; }
#preview-controls { flex-shrink: 0; display: flex; gap: 6px; }
.monitor-foot button, .monitor-foot a { font-size: 12px; color: #eff3e8; background: transparent; border: 1px solid #626e60; padding: 3px 8px; border-radius: 4px; text-decoration: none; }
.progress-track { background: #475145; border-radius: 5px; overflow: hidden; height: 4px; margin-top: 5px; }
.progress-track i { display: block; min-height: 100%; max-width: 100%; width: 0; background: var(--accent); transition: width .2s; }
.progress-track.indeterminate i { width: 30%!important; animation: progress 2s ease-in-out infinite alternate; }
@keyframes progress { from {transform:translateX(0)} to {transform:translateX(233%)} }
.history { margin-top: 34px; }
.history-head { padding-bottom: 13px; border-bottom: 1px solid #a9afa1; }
.history-filters { display: inline-flex; gap: 4px; }
.history-filters button { border: 1px solid transparent; border-radius: 15px; background: none; font-size: 12px; padding: 5px 11px; color: #59614f; }
.history-filters button[aria-pressed="true"] { border-color: #8b967c; color: #2b3928; background: #e9eddc; }
.job-card { border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; min-height: 72px; position: relative; }
.job-open { display: flex; gap: 14px; align-items: center; text-align: left; flex: 1; min-width: 0; border: 0; background: none; padding: 9px 1px; }
.job-open:hover .job-name { text-decoration: underline; }
.job-thumb { display: grid; place-items: center; width: 48px; height: 44px; flex: 0 0 auto; overflow: hidden; background: #e2e4d9; color: #5c6955; border-radius: 4px; }
.job-thumb img { width: 100%; height: 100%; object-fit: cover; }
.job-text { min-width: 0; display: grid; gap: 3px; }
.job-name { font-weight: 600; font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-meta { color: var(--quiet); font-size: 11px; }
.job-state { font-size: 12px; color: #485440; flex-shrink: 0; }
.job-state[data-state="failed"] { color: var(--error); }
.retry { font-size: 12px; border: 1px solid #a5aa9e; padding: 5px 7px; background: transparent; border-radius: 5px; }
.empty-list { font-size: 14px; padding: 30px 0; color: var(--quiet); }
.all-history { display: inline-block; padding: 12px 0; font-size: 13px; text-underline-offset: 4px; }
.history-only .history { margin-top: 0; }
.history-only .history-head h2 { font-size: clamp(29px,3.4vw,46px); }
#login-page { min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; }
.login-panel { grid-row: 1; grid-column: 1; position: relative; padding: 46px clamp(28px,7vw,112px); display: flex; flex-direction: column; }
.login-body { margin: auto 0; padding: 70px 0 110px; width: 100%; max-width: 400px; }
.login-body h1 { font-size: clamp(28px,3.5vw,45px); }
.login-body > p { color: var(--quiet); margin: 12px 0 34px; font-size: 14px; line-height: 1.7; }
.login-body input { height: 48px; }
.login-body .primary { width: 100%; margin-top: 18px; }
.login-body .error { margin-top: 12px; }
.login-art { grid-column: 2; grid-row: 1; background: radial-gradient(ellipse at 43% 40%,#7d8b69 0,#56654f 30%,#2f4035 72%,#1b2b24); display: grid; place-items: center; overflow: hidden; position: relative; }
.lens { position: absolute; aspect-ratio: 1; width: 132%; bottom: -12%; right: -28%; border-radius: 50%; background: repeating-radial-gradient(circle at 50% 48%,transparent 0 2px,#1b271d55 2.5px 3px,transparent 4px 7px), conic-gradient(from -70deg,#b7c6a3,#809974 12%,#263b2d 31%,#273a2c 46%,#7d9571 64%,#b4bea0 79%,#536a52 91%,#b7c6a3); box-shadow: 0 0 34px #16271a77,inset 0 0 0 2px #c6ccb57d; }
.lens i { position: absolute; inset: 19%; border-radius: 50%; background: radial-gradient(ellipse at 40% 28%,#859d88 0,#466457 12%,#20392d 37%,#18271f 48%,#354832 71%,#7b8b60 82%,#172b20 94%); box-shadow: 0 0 0 7px #2a3828,0 0 0 12px #809477,0 0 0 13px #dbe2c16d,0 2px 32px 12px #19271e99; }
@media (min-width:1400px) { .main { padding-top: 52px; }.workbench { gap: 24px; }.form-pane,.monitor { padding: 28px; } }
@media (max-width:950px) { .bar-inner,.main { width: calc(100% - 48px); }.bar-inner { gap: 36px; }.workbench { grid-template-columns: minmax(285px, .9fr) minmax(0,1fr); }.form-pane,.monitor { padding: 18px; } }
@media (max-width:720px) { .bar-inner,.main { width: calc(100% - 32px); }.bar-inner { min-height: 58px; gap: 23px; }.wordmark { font-size: 20px; gap: 7px; }.aperture { width: 23px; height: 19px; }nav { gap: 14px; }nav a,.logout { font-size: 12px; }.logout { padding-left: 3px; }.logout span { display: none; }.main { padding-top: 24px; }.section-head { margin-bottom: 16px; }.workbench { grid-template-columns: 1fr; gap: 14px; }.form-pane { gap: 15px; }.monitor { min-height: 295px; padding: 16px; }.viewfinder { min-height: 215px; }.preview-empty { min-height: 215px; }.history { margin-top: 24px; }.job-open { gap: 9px; }.job-card { gap: 8px; }.job-thumb { width: 40px; height: 40px; }.history-head h2 { font-size: 21px; }#login-page { grid-template-columns: 1fr; grid-template-rows: 19svh 1fr; }.login-art { grid-row: 1; grid-column: 1; }.lens { width: 75%; right: -4%; bottom: -145%; }.login-panel { grid-row: 2; grid-column: 1; padding: 28px 24px; }.login-body { margin: 36px auto auto; padding: 0 0 32px; }.login-panel .wordmark { max-width: 400px; width: 100%; margin: 0 auto; }.login-body > p { margin-bottom: 24px; }.machine { font-size: 11px; } }
@media (max-width:720px) { input[type="password"], input[type="number"], textarea, select { font-size: 16px; } }
@media (max-width:370px) { .bar-inner { gap: 13px; }nav { gap: 9px; }.main,.bar-inner { width: calc(100% - 24px); }.form-pane { padding: 14px; }.machine { gap: 4px; }.job-thumb { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }*, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; } }
