:root { color-scheme: dark; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #e8eee9; background: #101713; --muted: #92a398; --line: #2c3b31; --green: #b8e5a4; }
* { box-sizing: border-box; }
body { margin: 0; }
header { max-width: 840px; margin: auto; display: flex; align-items: center; gap: 14px; padding: 26px 24px; border-bottom: 1px solid var(--line); }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #6b8b60; border-radius: 12px; font-size: 24px; font-weight: 600; color: var(--green); }
h1 { margin: 0; font-size: 19px; letter-spacing: -.5px; }
header p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.connection { margin-left: auto; color: var(--muted); font-size: 12px; }
main { max-width: 760px; margin: auto; padding: 32px 24px 140px; }
.eyebrow { font-size: 10px; letter-spacing: 2px; color: var(--green); }
h2 { font-size: 34px; font-weight: 500; letter-spacing: -1.2px; margin: 12px 0 8px; }
.intro p { color: var(--muted); line-height: 1.5; margin: 0 0 28px; }
.form-card, .status-card { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: #17201a; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #bbc8bf; }
.field.wide { grid-column: 1 / -1; }
input, select, textarea { width: 100%; border: 1px solid #394d3e; border-radius: 8px; background: #101713; color: #e8eee9; padding: 12px; font: inherit; font-size: 16px; }
textarea { min-height: 160px; resize: vertical; font-family: ui-monospace, monospace; font-size: 13px; line-height: 1.6; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.field.checkbox { flex-direction: row; align-items: center; min-height: 44px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--green); }
.section-label { grid-column: 1 / -1; padding-top: 8px; margin: 4px 0 0; font-size: 11px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--muted); }
.section-label.parameters { border-top: 1px solid var(--line); padding-top: 22px; }
.submit { width: 100%; margin-top: 26px; border: none; border-radius: 9px; padding: 15px; background: var(--green); color: #172511; font: inherit; font-weight: 600; cursor: pointer; }
.submit:hover { background: #c9efb9; }
.submit:disabled { opacity: .45; cursor: wait; }
.notice { margin: 20px 0 0; color: #baa883; font-size: 12px; line-height: 1.5; }
.status-card { margin-top: 18px; padding: 20px 24px; }
.status-heading { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #8c9b91; }
#elapsed { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
#status-message { font-size: 13px; color: var(--muted); margin: 12px 0 0; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.status-card[data-state=running] .status-dot { background: var(--green); animation: pulse 1.2s infinite; }
.status-card[data-state=completed] .status-dot { background: var(--green); }
.status-card[data-state=error] .status-dot { background: #f19488; }
.status-card[data-state=error] #status-message { color: #f4a89c; }
.progress-track { height: 3px; margin-top: 18px; background: #29392c; overflow: hidden; border-radius: 4px; }
.progress-track div { width: 35%; height: 100%; background: var(--green); animation: move 1.5s infinite; }
details { margin-top: 16px; color: var(--muted); font-size: 12px; }
details ol { padding-left: 20px; line-height: 1.8; overflow-wrap: anywhere; }
.tabs { position: fixed; z-index: 10; bottom: 0; left: 0; right: 0; display: flex; gap: 4px; justify-content: center; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); background: #101713f5; border-top: 1px solid var(--line); }
.tabs button { flex: 1; max-width: 145px; min-width: 0; border: none; background: transparent; color: var(--muted); border-radius: 9px; padding: 13px 6px; font: inherit; font-size: 12px; cursor: pointer; }
.tabs button[aria-selected=true] { color: var(--green); background: #263523; }
@keyframes move { from { transform: translateX(-100%); } to { transform: translateX(400%); } }
@keyframes pulse { 50% { opacity: .35; } }
@media (max-width: 520px) { header { padding: 20px; } main { padding: 24px 16px 130px; } .form-card { padding: 20px 16px; } .fields { grid-template-columns: 1fr; gap: 16px; } h2 { font-size: 30px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }
