:root { --fg: #1d1d1f; --muted: #6e6e73; --line: #e5e5ea; --bg: #f7f7f8; --accent: #0a66c2; --warn: #b3261e; --ok: #1b7f3b; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", "Noto Sans Thai", sans-serif; color: var(--fg); background: var(--bg); }
nav { display: flex; gap: 16px; align-items: center; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
nav form { margin-left: auto; }
main { max-width: 1280px; margin: 0 auto; padding: 16px; }
h1 { font-size: 20px; margin: 8px 0 12px; }
h2 { font-size: 16px; margin: 24px 0 8px; }
a { color: var(--accent); text-decoration: none; }
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 12px; color: inherit; }
.narrow { max-width: 360px; margin: 40px auto; }
.muted { color: var(--muted); font-size: 13px; }
.error { color: var(--warn); }
.issues { border-color: var(--warn); color: var(--warn); }
.badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: #eceef5; }
.badge.r1, .badge.review { background: #fff1c9; }
.badge.failed { background: #fde7e7; color: var(--warn); }
.badge.ready, .badge.r1_done { background: #e3f4e8; color: var(--ok); }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; background: #fff; font-size: 13px; }
th, td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
th { background: #f1f1f4; white-space: nowrap; }
input, select, textarea, button { font: inherit; }
input[type=text], input[type=password], input[type=number], select, textarea { width: 100%; padding: 7px 9px; border: 1px solid #c7c7cc; border-radius: 7px; background: #fff; }
input[type=file] { margin: 6px 0; max-width: 100%; }
textarea { min-height: 3.2em; resize: vertical; margin-top: 6px; }
button, a.button { display: inline-block; padding: 8px 16px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; cursor: pointer; }
button:disabled { opacity: .6; }
button.secondary { background: #e6e6eb; color: var(--fg); }
button.link { background: none; color: var(--accent); padding: 0; }
label { display: block; margin: 12px 0 4px; font-weight: 600; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row .short, .short { width: 9em; }
.push { margin-left: auto; }
.spaced { margin-top: 16px; }
.actions { position: sticky; bottom: 0; background: var(--bg); padding: 10px 0; }
video { width: 100%; max-height: 55vh; background: #000; border-radius: 8px; }
.thumb { width: 64px; border-radius: 4px; }
.wide { max-width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.grid img { width: 100%; border-radius: 6px; border: 1px solid var(--line); }
@media (min-width: 900px) {
  .split { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
  .split .sticky { position: sticky; top: 60px; }
}
progress { width: 100%; height: 10px; margin-top: 8px; }
