/* Интерфейс сервиса: форма, список прогонов, статус. Без сборки, без внешних шрифтов. */
:root { --bg: #f5f6f8; --card: #fff; --text: #1d2330; --muted: #6b7280; --line: #e3e6eb;
  --accent: #0f766e; --ok: #1f8a4c; --err: #c0392b; --warn: #b7791f; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
header.top { background: var(--card); border-bottom: 1px solid var(--line); padding: 12px 16px;
  display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.brand { font-weight: 600; text-decoration: none; color: var(--text); }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 16px 20px; margin-bottom: 16px; }
h1 { font-size: 22px; margin: 0 0 12px; } h2 { font-size: 18px; margin: 0 0 12px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .nowrap { white-space: nowrap; }
.form label { display: block; margin-bottom: 12px; font-weight: 500; }
.form input, .form select { display: block; width: 100%; margin-top: 4px; padding: 8px 10px;
  font: inherit; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
button, .button { display: inline-block; padding: 8px 16px; font: inherit; border-radius: 6px;
  border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer;
  text-decoration: none; }
button.secondary { background: #fff; color: var(--accent); }
.actions { margin-top: 12px; } form.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.inline select { padding: 7px; font: inherit; border: 1px solid var(--line); border-radius: 6px; }
.notice { padding: 10px 14px; border-radius: 6px; margin: 0 0 12px; }
.notice.err { background: #fdecea; color: var(--err); } .notice.warn { background: #fff7e6; color: var(--warn); }
.err-text { color: var(--err); }
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line);
  vertical-align: top; }
table.list th { font-size: 13px; color: var(--muted); font-weight: 500; }
td.url { max-width: 280px; overflow-wrap: anywhere; font-size: 13px; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 13px; background: var(--line); }
.badge.done { background: #e3f4ea; color: var(--ok); } .badge.failed { background: #fdecea; color: var(--err); }
.badge.running { background: #e0f2f0; color: var(--accent); } .badge.queued { background: #fff7e6; color: var(--warn); }
.halt-note { color: var(--warn); margin-top: 2px; } /* s3 halt: анализ не выполнен */
tr.st-finished td:nth-child(2) { color: var(--ok); } tr.st-started td:nth-child(2) { color: var(--accent); font-weight: 600; }
tr.st-error td:nth-child(2) { color: var(--err); } tr.st-waiting { color: var(--muted); }
dl.meta { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
dl.meta dt { color: var(--muted); } dl.meta dd { margin: 0; overflow-wrap: anywhere; }
pre.log { background: #1d2330; color: #e3e6eb; padding: 12px; border-radius: 6px; overflow-x: auto;
  font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
summary { cursor: pointer; font-weight: 600; }
nav.nav { margin-left: auto; display: flex; gap: 16px; }
.scroll { overflow-x: auto; }
table.spend td, table.spend th { text-align: right; } table.spend td:first-child, table.spend th:first-child { text-align: left; }
table.spend tr.empty { color: var(--muted); } table.spend tfoot th { color: var(--text); font-weight: 600; }
table.spend td.bars { width: 22%; min-width: 90px; text-align: left; }
.bar { display: block; height: 6px; border-radius: 3px; margin: 3px 0; min-width: 2px; }
.bar.rub { background: var(--accent); } .bar.usd { background: var(--warn); }
.bar.legend { display: inline-block; width: 16px; vertical-align: middle; margin: 0; }
@media (max-width: 700px) { table.list { font-size: 13px; } td.url { max-width: 140px; }
  dl.meta { grid-template-columns: 1fr; } }
/* вход и шапка (ADR-16) */
.login { max-width: 420px; margin: 32px auto; }
header.top .who { margin-left: 8px; }
button.small { padding: 3px 10px; }
/* кабинет и админка (T6.4) */
.hint { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }
header.top nav.nav { flex-wrap: wrap; gap: 8px 16px; }
.scroll table.list { min-width: 520px; }
table.users { min-width: 960px; } table.users td, table.users th { white-space: nowrap; }
table.users td.act { white-space: normal; min-width: 260px; }
table.users form { display: inline-flex; gap: 6px; margin: 0 6px 6px 0; align-items: center; }
table.users input[type=number] { width: 80px; padding: 4px 6px; font: inherit; border: 1px solid var(--line); border-radius: 6px; }
textarea.nicks { width: 100%; font: inherit; font-size: 13px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; }
.badge.blocked { background: #fdecea; color: var(--err); }
@media (max-width: 480px) { main { padding: 10px; } .card { padding: 12px; } header.top { padding: 10px; } }
.notice.ok { background: #e3f4ea; color: var(--ok); }

/* простой режим (T7.11) */
.lead { font-size: 17px; margin: 0 0 10px; }
.button.big { font-size: 18px; padding: 12px 22px; }
.stages-box summary { cursor: pointer; margin: 8px 0; color: var(--muted); }

#job-tz code, #tz-url { overflow-wrap: anywhere; word-break: break-all; }
