:root {
  --bg: #070b12;
  --bg2: #0a0f18;
  --card: #101827;
  --card2: #131d2f;
  --line: rgba(255, 255, 255, .07);
  --line2: rgba(255, 255, 255, .12);
  --txt: #e9f0fa;
  --dim: #8d9db5;
  --dim2: #64748b;
  --mint: #5eead4;
  --green: #34d399;
  --blue: #60a5fa;
  --violet: #a78bfa;
  --amber: #fbbf24;
  --red: #fb7185;
  --r: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--txt);
  font: 14.5px/1.5 "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(900px 600px at 8% -10%, rgba(94, 234, 212, .10), transparent 60%),
    radial-gradient(900px 700px at 95% 0%, rgba(167, 139, 250, .10), transparent 55%),
    var(--bg);
  overflow: hidden;
}

a { color: var(--mint); }

.app { display: flex; height: 100vh; height: 100dvh; }

/* ------------------------------------------------------------- sidebar */

.sidebar {
  width: 236px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 14px 16px;
  background: linear-gradient(180deg, rgba(16, 24, 39, .9), rgba(8, 12, 20, .9));
  border-right: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand { display: flex; align-items: center; gap: 11px; padding: 0 6px; }

.logo {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--mint), #2dd4bf 55%, var(--blue));
  color: #04121a; font-weight: 800; font-size: 19px;
  box-shadow: 0 6px 18px rgba(94, 234, 212, .25);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 15.5px; letter-spacing: .14em; }
.brand-text span { font-size: 11.5px; color: var(--dim); letter-spacing: .04em; }

.nav { display: flex; flex-direction: column; gap: 4px; }

.nav button {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--dim);
  font: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: .15s;
}
.nav button .ico { width: 18px; text-align: center; opacity: .8; font-size: 14px; }
.nav button em {
  margin-left: auto;
  font-style: normal;
  font-size: 11.5px;
  color: var(--dim2);
  background: rgba(255, 255, 255, .05);
  border-radius: 999px;
  padding: 1px 8px;
}
.nav button:hover { color: var(--txt); background: rgba(255, 255, 255, .04); }
.nav button.on {
  color: #04121a;
  background: linear-gradient(135deg, var(--mint), #34d399);
  box-shadow: 0 8px 20px rgba(52, 211, 153, .18);
}
.nav button.on em { color: #053122; background: rgba(0, 0, 0, .12); }

.side-stats {
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, .02);
  display: flex; flex-direction: column;
}
.stat {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px; color: var(--dim);
}
.stat:last-child { border-bottom: 0; }
.stat b { font-size: 15px; color: var(--txt); }
.stat.run b { color: var(--blue); }
.stat.wait b { color: var(--amber); }
.stat.ok b { color: var(--green); }

.side-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 0 4px; }
.live-row { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--dim); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--red); transition: .2s; }
.live.on { background: var(--green); box-shadow: 0 0 0 4px rgba(52, 211, 153, .14); }

/* ------------------------------------------------------------- main */

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 24px 14px;
  flex: none;
}
.titles h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.titles p { margin: 2px 0 0; font-size: 12.5px; color: var(--dim); }
.spacer { flex: 1; }
.sync { font-size: 11.5px; color: var(--dim2); }

.btn {
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, .04);
  color: var(--txt);
  padding: 8px 14px;
  border-radius: 11px;
  font: inherit; font-size: 13.5px; font-weight: 500;
  cursor: pointer;
  transition: .15s;
  white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.btn.primary {
  background: linear-gradient(135deg, var(--mint), #2dd4bf);
  border-color: transparent;
  color: #04121a;
  font-weight: 650;
  box-shadow: 0 8px 22px rgba(45, 212, 191, .22);
}
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 11px; font-size: 12.5px; border-radius: 9px; }
.btn.danger { color: #ffb4bc; border-color: rgba(251, 113, 133, .3); background: rgba(251, 113, 133, .12); }

/* ------------------------------------------------------------- views */

.view { display: none; flex: 1; min-height: 0; }
.view.on { display: flex; }

#view-tasks { flex-direction: column; }

.toolbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 0 24px 12px;
  flex: none;
}
.hint { font-size: 12.5px; color: var(--dim2); }

.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filt {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  color: var(--dim);
  padding: 6px 13px;
  border-radius: 999px;
  font: inherit; font-size: 12.5px;
  cursor: pointer;
  transition: .15s;
}
.filt:hover { color: var(--txt); }
.filt.on {
  color: #04121a;
  background: var(--mint);
  border-color: transparent;
  font-weight: 600;
}

select, input, textarea {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  color: var(--txt);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit; font-size: 13px;
  outline: none;
  transition: .15s;
}
select:focus, input:focus, textarea:focus { border-color: rgba(94, 234, 212, .5); }
select option { background: #0f1624; }
.mini { max-width: 168px; }
.search { max-width: 220px; }
::placeholder { color: var(--dim2); }

/* ------------------------------------------------------------- board */

.board {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 14px;
  overflow: auto;
  padding: 4px 24px 26px;
  align-content: start;
  align-items: start;
}

.col {
  min-width: 0;
  max-height: 100%;
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .018);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.col-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px 10px;
  font-size: 12.5px; font-weight: 600; color: var(--dim);
  letter-spacing: .03em;
}
.col-count {
  margin-left: auto;
  font-style: normal;
  font-size: 11.5px;
  background: rgba(255, 255, 255, .06);
  border-radius: 999px;
  padding: 1px 8px;
  color: var(--dim);
}
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.run { background: var(--blue); box-shadow: 0 0 0 3px rgba(96, 165, 250, .15); }
.dot.wait { background: var(--amber); box-shadow: 0 0 0 3px rgba(251, 191, 36, .13); }
.dot.ok { background: var(--green); box-shadow: 0 0 0 3px rgba(52, 211, 153, .14); }
.dot.bad { background: var(--red); box-shadow: 0 0 0 3px rgba(251, 113, 133, .13); }

.col-body {
  display: flex; flex-direction: column; gap: 10px;
  padding: 0 10px 12px;
  overflow: auto;
}
.col-empty, .empty {
  color: var(--dim2);
  font-size: 12.5px;
  text-align: center;
  padding: 26px 10px;
}
.empty { flex: 1; padding: 60px 20px; font-size: 14px; }

/* ------------------------------------------------------------- card */

.card {
  --accent: var(--blue);
  position: relative;
  background: linear-gradient(180deg, #111a29, #0d1522);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px 14px 10px;
  display: flex; flex-direction: column; gap: 7px;
  transition: .16s;
}
.card:hover { border-color: var(--line2); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0, 0, 0, .28); }
.card::before {
  content: "";
  position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--accent);
  opacity: .9;
}
.card.p1 { --accent: var(--red); }
.card.p2 { --accent: var(--amber); }
.card.p3 { --accent: var(--blue); }
.card.p4 { --accent: var(--dim2); }
.card.p5 { --accent: #475569; }
.card.st-running { border-color: rgba(96, 165, 250, .28); }
.card.st-done { opacity: .78; }
.card.st-done:hover { opacity: 1; }

.card-top { display: flex; align-items: center; gap: 6px; }
.tag {
  font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
  border-radius: 999px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  color: var(--dim);
  text-transform: none;
  white-space: nowrap;
}
.tag.proj { color: #c4b5fd; border-color: rgba(167, 139, 250, .25); background: rgba(167, 139, 250, .1); }
.tag.prio { border-color: transparent; background: rgba(255, 255, 255, .05); }
.tag.prio.p1 { color: #ffc2c9; background: rgba(251, 113, 133, .14); }
.tag.prio.p2 { color: #ffe1a8; background: rgba(251, 191, 36, .13); }
.card .time { font-size: 11px; color: var(--dim2); margin-left: auto; }

.card h3 { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.35; letter-spacing: -.005em; }
.card .details {
  margin: 0;
  font-size: 12.5px; line-height: 1.5; color: var(--dim);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; white-space: pre-wrap;
}
.card .act-line {
  margin: 0;
  font-size: 11.5px; line-height: 1.4; color: var(--dim2);
  border-left: 2px solid rgba(94, 234, 212, .3);
  padding-left: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot { display: flex; align-items: center; gap: 7px; margin-top: 2px; }
.who { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.who-name { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.claim { font-size: 11px; color: var(--dim2); }

.av {
  --h: 160;
  flex: none;
  width: 24px; height: 24px; border-radius: 8px;
  display: inline-grid; place-items: center;
  font-style: normal; font-size: 11.5px; font-weight: 700;
  color: #061019;
  background: linear-gradient(135deg, hsl(var(--h) 72% 64%), hsl(calc(var(--h) + 45) 68% 46%));
}
.av.big { width: 46px; height: 46px; border-radius: 14px; font-size: 19px; }
.av.small { width: 30px; height: 30px; border-radius: 10px; font-size: 13px; }

.acts { display: flex; gap: 4px; }
.icon {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--dim);
  font: inherit; font-size: 12.5px;
  cursor: pointer;
  transition: .14s;
}
.icon:hover { color: var(--txt); border-color: var(--line2); background: rgba(255, 255, 255, .08); }
.icon.take { color: #04121a; background: var(--mint); border-color: transparent; }
.icon.take:hover { filter: brightness(1.08); }

/* ------------------------------------------------------------- agents */

#view-agents { flex-direction: column; }

.agents {
  flex: 1; min-height: 0; overflow: auto;
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  align-content: start;
  padding: 4px 24px 30px;
}

.agent {
  background: linear-gradient(180deg, #111a29, #0d1522);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  transition: .16s;
}
.agent:hover { border-color: var(--line2); }
.agent .head { display: flex; align-items: center; gap: 12px; }
.agent-info { min-width: 0; flex: 1; }
.agent .name { font-size: 15px; font-weight: 650; }
.agent .role { font-size: 12px; color: var(--dim); margin-top: 1px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim2); }
.status-dot.working { background: var(--blue); box-shadow: 0 0 0 4px rgba(96, 165, 250, .14); }
.status-dot.idle { background: var(--green); box-shadow: 0 0 0 4px rgba(52, 211, 153, .12); }
.status-dot.blocked { background: var(--amber); }
.status-dot.offline { background: var(--dim2); }

.agent .cur {
  font-size: 12.5px; color: var(--dim);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 44px;
}
.agent .cur b { color: var(--txt); font-weight: 600; }
.agent .cur .none { color: var(--dim2); }

.facts { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--dim); }
.facts b { color: var(--txt); }
.facts .dim { margin-left: auto; color: var(--dim2); }

.status-dot.working { animation: beat 1.8s ease-in-out infinite; }
@keyframes beat {
  0%, 100% { box-shadow: 0 0 0 3px rgba(96, 165, 250, .16); }
  50% { box-shadow: 0 0 0 7px rgba(96, 165, 250, .04); }
}

.agent .cur .dur { color: var(--dim2); }
.agent.offline { opacity: .72; }
.agent.offline:hover { opacity: .9; }
.presence.on { color: var(--green); }
.presence.recent { color: var(--dim); }
.presence.stale { color: var(--amber); }
.presence.dead { color: var(--red); }

.agent-actions { display: flex; gap: 6px; }

/* ------------------------------------------------------------- chat */

#view-chat { flex-direction: column; }

.chat {
  flex: 1; min-height: 0; overflow: auto;
  padding: 8px 24px 18px;
  display: flex; flex-direction: column; gap: 12px;
}

.msg { display: flex; gap: 10px; align-items: flex-end; max-width: min(760px, 88%); }
.msg .bubble {
  position: relative;
  background: #121b29;
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 5px;
  padding: 8px 13px 9px;
  min-width: 0;
}
.msg.me { margin-left: auto; flex-direction: row-reverse; }
.msg.me .bubble {
  background: rgba(94, 234, 212, .09);
  border-color: rgba(94, 234, 212, .22);
  border-radius: 16px 16px 5px 16px;
}
.msg-head { display: flex; gap: 9px; align-items: baseline; margin-bottom: 2px; }
.msg.me .msg-head { justify-content: flex-end; }
.msg-name { font-size: 11.5px; font-weight: 600; color: var(--mint); }
.msg.me .msg-name { color: var(--mint); }
.msg-head time { font-size: 10.5px; color: var(--dim2); }
.msg-text { font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }

.msg-del {
  position: absolute; top: -8px; right: -8px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  background: #0d1420;
  color: var(--dim);
  font-size: 12px; line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: .15s;
}
.msg:hover .msg-del { opacity: 1; }
.msg-del:hover { color: var(--red); border-color: rgba(251, 113, 133, .4); }

.sys {
  align-self: center;
  display: flex; gap: 8px; align-items: baseline;
  font-size: 11.5px; color: var(--dim2);
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  max-width: 90%;
}
.sys time { color: var(--dim2); opacity: .7; }

.chat-empty {
  margin: auto;
  text-align: center;
  color: var(--dim2);
  display: flex; flex-direction: column; gap: 6px;
  padding: 40px 20px;
}
.chat-empty-t { font-size: 17px; font-weight: 600; color: var(--dim); }
.chat-empty-s { font-size: 13px; }

.chat-hint {
  flex: none;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 8px 24px 0;
  font-size: 11.5px;
}
.chat-hint .hint-t { color: var(--dim2); margin-right: 2px; }
.chip {
  font: inherit; font-size: 11.5px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--dim);
  border-radius: 999px;
  padding: 3px 10px;
  cursor: pointer;
  transition: .14s;
}
.chip:hover { color: var(--txt); border-color: var(--line2); background: rgba(255, 255, 255, .07); }
.chip.busy { color: var(--blue); border-color: rgba(96, 165, 250, .25); background: rgba(96, 165, 250, .08); }

.chat-form {
  flex: none;
  display: flex; gap: 8px; align-items: center;
  padding: 12px 24px 18px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 15, 24, .4), rgba(10, 15, 24, .9));
}
.chat-form .namebox { width: 130px; flex: none; }
.chat-form input { flex: 1; border-radius: 12px; padding: 11px 14px; background: rgba(255, 255, 255, .04); }
.send {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(135deg, var(--mint), #2dd4bf);
  color: #04121a;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(45, 212, 191, .2);
}
.send:hover { filter: brightness(1.06); }

/* ------------------------------------------------------------- modal */

.overlay {
  position: fixed; inset: 0;
  background: rgba(3, 6, 11, .72);
  backdrop-filter: blur(5px);
  display: none; align-items: center; justify-content: center;
  padding: 16px; z-index: 40;
}
.overlay.on { display: flex; }
.modal {
  background: #0d1420;
  border: 1px solid var(--line2);
  border-radius: 20px;
  width: min(680px, 100%);
  max-height: 92vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.mhead { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.mhead h2 { margin: 0; font-size: 16.5px; flex: 1; font-weight: 650; }
.mbody { padding: 16px 20px; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.mfoot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; background: rgba(0, 0, 0, .2); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11.5px; color: var(--dim); font-weight: 500; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.log {
  border: 1px solid var(--line); border-radius: 12px; padding: 10px;
  background: rgba(0, 0, 0, .22); max-height: 220px; overflow: auto;
  font-size: 12px; display: flex; flex-direction: column; gap: 6px;
}
.log .l { display: flex; gap: 8px; color: var(--dim); }
.log .l time { color: var(--dim2); min-width: 58px; font-variant-numeric: tabular-nums; }
.result {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  background: rgba(0, 0, 0, .22); font-size: 13px; white-space: pre-wrap;
  max-height: 260px; overflow: auto;
}

/* ------------------------------------------------------------- login */

.login-wrap {
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center;
  padding: 20px;
}
.login {
  width: min(390px, 100%);
  background: linear-gradient(180deg, rgba(19, 29, 47, .96), rgba(11, 17, 27, .96));
  border: 1px solid var(--line2);
  border-radius: 24px;
  padding: 30px 28px 26px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(94, 234, 212, .05);
}
.login .brand { padding: 0; margin-bottom: 4px; }
.login h1 { margin: 6px 0 0; font-size: 22px; }
.login p { margin: 0; color: var(--dim); font-size: 13px; }
.login input { padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.login .btn { padding: 12px; border-radius: 12px; font-size: 14px; }
.err { color: var(--red); font-size: 12.5px; min-height: 17px; }

/* ------------------------------------------------------------- toasts */

#toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast {
  background: #131d2f;
  border: 1px solid var(--line2);
  border-left: 3px solid var(--mint);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
}
.toast.bad { border-left-color: var(--red); }

/* ------------------------------------------------------------- mobile */

@media (max-width: 900px) {
  .app { flex-direction: column; }
  .sidebar {
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
  }
  .brand-text, .side-stats, .side-foot .live-row { display: none; }
  .nav { flex-direction: row; gap: 4px; }
  .nav button { padding: 8px 11px; white-space: nowrap; }
  .nav button em { display: none; }
  .side-foot { margin: 0 0 0 auto; }
  .topbar { padding: 12px 14px 10px; }
  .titles h1 { font-size: 18px; }
  .titles p, .sync { display: none; }
  .toolbar, .board, .agents, .chat { padding-left: 14px; padding-right: 14px; }
  .board { gap: 10px; grid-template-columns: 1fr; }
  .msg { max-width: 94%; }
  .chat-form { padding: 10px 14px 14px; }
  .chat-form .namebox { display: none; }
}

/* ---- проверка, модель, диффы ---- */
.chip.model {
  cursor: help;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
  padding: 2px 8px;
  color: #9fd4ff;
  border-color: rgba(96, 165, 250, .22);
  background: rgba(96, 165, 250, .07);
}
.chip.model.bad { color: #ffc2c9; border-color: rgba(251, 113, 133, .3); background: rgba(251, 113, 133, .1); }
.chip.model.sm { padding: 1px 6px; font-size: 10px; }
.tag.kind.rev { color: #ffe1a8; border-color: rgba(251, 191, 36, .25); background: rgba(251, 191, 36, .1); }
.card.st-review { border-color: rgba(251, 191, 36, .18); }

.model-row { display: flex; align-items: center; gap: 8px; margin-top: 7px; font-size: 11.5px; flex-wrap: wrap; }
.health { font-size: 11px; }
.health.ok { color: var(--green); }
.health.bad { color: var(--red); }
.health-err {
  margin-top: 5px; font-size: 11px; line-height: 1.4; color: #ffb3bd;
  max-height: 32px; overflow: hidden;
}

pre.diff, pre.build {
  margin: 0; padding: 8px 10px;
  max-height: 340px; overflow: auto;
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px; line-height: 1.5;
  white-space: pre;
}
pre.diff .add { color: #7ee2a8; background: rgba(52, 211, 153, .09); }
pre.diff .del { color: #ff9aa7; background: rgba(251, 113, 133, .09); }
pre.diff .hunk { color: #9fd4ff; }
pre.diff .cx { color: var(--dim); }
pre.build { max-height: 200px; white-space: pre-wrap; color: #cfd8e6; }
