:root { color-scheme: light; --ink:#1d2733; --muted:#667085; --line:#d6dbe1; --bg:#f6f7f9; --panel:#fff; --blue:#0b5cad; --green:#087443; --amber:#9a6700; --red:#b42318; }
* { box-sizing: border-box; }
body { margin:0; font:14px/1.45 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; color:var(--ink); background:var(--bg); }
a { color:var(--blue); text-decoration:none; }
.topbar { height:58px; display:flex; align-items:center; justify-content:space-between; padding:0 28px; background:#fff; border-bottom:1px solid var(--line); }
.brand { color:var(--ink); font-weight:700; font-size:17px; }
nav { display:flex; gap:18px; align-items:center; color:var(--muted); }
.shell { max-width:1180px; margin:0 auto; padding:28px; }
h1 { font-size:26px; margin:0 0 6px; letter-spacing:0; }
h2 { font-size:18px; margin:0 0 14px; letter-spacing:0; }
p { color:var(--muted); margin:0 0 16px; }
.page-head { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin-bottom:22px; }
.button { display:inline-flex; align-items:center; justify-content:center; min-height:36px; padding:7px 13px; border:1px solid var(--line); border-radius:6px; background:#fff; color:var(--ink); font-weight:600; cursor:pointer; }
.button.primary { background:var(--blue); border-color:var(--blue); color:#fff; }
.button.small { min-height:30px; padding:4px 9px; font-size:13px; }
.login { max-width:430px; margin:12vh auto; background:#fff; border:1px solid var(--line); border-radius:8px; padding:28px; }
.grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:18px; }
.panel { background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:18px; margin-bottom:18px; }
table { width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
th, td { padding:11px 12px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
th { color:#344054; background:#f1f3f5; font-size:13px; }
tr:last-child td { border-bottom:0; }
.form { display:grid; gap:14px; max-width:760px; }
.form.compact { max-width:none; gap:10px; }
label { display:grid; gap:6px; font-weight:600; color:#344054; }
input, textarea, select { width:100%; border:1px solid #c9d0d8; border-radius:6px; min-height:38px; padding:8px 10px; font:inherit; background:#fff; color:var(--ink); }
textarea { resize:vertical; }
dl { display:grid; grid-template-columns:110px 1fr; gap:8px 14px; margin:0 0 16px; }
dt { color:#344054; font-weight:700; }
dd { margin:0; color:var(--muted); word-break:break-word; }
.badge { display:inline-flex; padding:4px 9px; border-radius:999px; font-size:12px; font-weight:700; background:#eef2f6; color:#344054; }
.badge.done { background:#ecfdf3; color:var(--green); }
.badge.blocked, .badge.extract_failed { background:#fef3f2; color:var(--red); }
.badge.running, .badge.ready { background:#eff8ff; color:var(--blue); }
.badge.qa { background:#fffaeb; color:var(--amber); }
.messages { display:grid; gap:10px; margin-bottom:14px; }
.message { border:1px solid var(--line); border-radius:7px; padding:12px; background:#fbfcfd; }
.message time { color:var(--muted); margin-left:10px; font-size:12px; }
.message p { color:var(--ink); margin:8px 0 0; white-space:pre-wrap; }
.inline { display:flex; gap:8px; align-items:center; }
.check { display:flex; grid-template-columns:none; gap:5px; align-items:center; font-weight:500; }
.check input { width:auto; min-height:0; }
@media (max-width: 760px) { .topbar { padding:0 14px; } nav { gap:10px; } .shell { padding:18px; } .grid, .page-head { display:block; } dl { grid-template-columns:1fr; } }
