/* Интерфейс всегда светлый: он открывается внутри светлого портала Bitrix24.
   Цвета те же, что в отчёте: белый лист, серые плашки, коралловый акцент Ortonica. */
:root {
  color-scheme: light;
  --bg: #ffffff; --card: #ffffff; --text: #141414; --muted: #5a5a59; --line: #dcdcdb;
  --accent: #b33f39; --accent-text: #ffffff; --danger: #c62828; --ok: #006300; --warn: #8a5a00;
  --chip: #f4f4f3;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
       font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.wrap { max-width: 920px; margin: 0 auto; padding: 24px 16px 48px; }
header.top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 20px; }
h1 { font-size: 22px; margin: 0; }
.card > h1 { margin-bottom: 14px; }
h2 { font-size: 16px; margin: 0 0 12px; }
.who { color: var(--muted); font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 18px; }
.muted { color: var(--muted); }
.notice { border-left: 3px solid var(--warn); padding: 8px 12px; background: var(--chip); border-radius: 0 8px 8px 0; margin: 0 0 14px; }
.error { color: var(--danger); margin: 10px 0 0; min-height: 1.5em; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
input[type="text"], input[type="password"] {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--text); font: inherit; margin-bottom: 14px;
}
.drop { border: 1.5px dashed var(--line); border-radius: 10px; padding: 22px 16px; text-align: center; cursor: pointer; }
.drop.over { border-color: var(--accent); background: var(--chip); }
.drop input { display: none; }
ul.files { list-style: none; margin: 12px 0 0; padding: 0; }
ul.files li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
ul.files li:last-child { border-bottom: 0; }
ul.files .name { overflow-wrap: anywhere; }
ul.files .meta { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
ul.files .note { display: block; color: var(--muted); font-size: 13px; }
button { font: inherit; border: 0; border-radius: 8px; padding: 9px 16px; cursor: pointer;
         background: var(--accent); color: var(--accent-text); font-weight: 600; margin-top: 14px; }
button:disabled { opacity: .5; cursor: default; }
button.link { background: none; color: var(--muted); font-weight: 400; padding: 0 4px; margin: 0; }
.pack { border-top: 1px solid var(--line); padding: 14px 0; }
.pack:first-of-type { border-top: 0; padding-top: 0; }
.pack .head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.pack .title { font-weight: 600; overflow-wrap: anywhere; }
.badge { font-size: 12px; padding: 1px 9px; border-radius: 999px; background: var(--chip); white-space: nowrap; }
.badge.done { color: var(--ok); } .badge.failed { color: var(--danger); }
.badge.waiting_model, .badge.queued, .badge.processing { color: var(--warn); }
