* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; margin: 0; background: #f6f6f8; color: #1d1d1f; }
main { max-width: 760px; margin: 0 auto; padding: 16px; }
header { display: flex; justify-content: space-between; align-items: center; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.1rem; margin-top: 2rem; }
label { display: block; margin: 12px 0; font-size: .95rem; }
input, textarea, select { display: block; width: 100%; margin-top: 4px; padding: 8px; font: inherit; border: 1px solid #ccc; border-radius: 8px; background: #fff; }
input[type=checkbox] { display: inline; width: auto; margin: 0 6px 0 0; }
fieldset { border: 1px solid #ddd; border-radius: 8px; padding: 8px 12px; }
button { padding: 9px 16px; font: inherit; border: 0; border-radius: 8px; background: #3b5bdb; color: #fff; cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
button.small { padding: 4px 10px; font-size: .85rem; background: #868e96; }
button.link { background: none; color: #3b5bdb; padding: 0; }
.card { background: #fff; border-radius: 10px; padding: 12px; margin: 10px 0; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.muted { color: #6c757d; font-size: .85rem; }
.msg { min-height: 1.2em; }
.err { color: #c92a2a; } .ok { color: #2b8a3e; }
.banner { background: #e7f5ff; padding: 10px; border-radius: 8px; }
.warn { background: #fff4e6; padding: 10px; border-radius: 8px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: .8rem; background: #e9ecef; }
.tag.done, .tag.scheduled_remote { background: #d3f9d8; } .tag.error { background: #ffe3e3; }
.tag.uploading, .tag.processing { background: #fff3bf; }
code { font-size: .8rem; word-break: break-all; }
progress { width: 100%; margin-top: 8px; }
