/* Экран «Этот агент» (ThisAgentPanel.js, макет agent-runs-review 02.11.2026):
   графит каркаса — токены shell.css; слева панель, справа колонка 400 px. */
.ta-root {
  height: 100%;
  overflow: auto;
  background: var(--bg-primary, #0f0f11);
  color: var(--text-primary, #ececef);
}
.ta-head { padding: 12px 16px 0; }
.ta-ttl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ta-ttl > svg { color: var(--text-secondary, #a1a1aa); }
.ta-ttl h4 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.ta-sub { margin: 6px 0 0; font-size: 13px; color: var(--text-secondary, #a1a1aa); }
.ta-warn { color: var(--accent-yellow, #facc15); }
.ta-spacer { flex: 1; }
.ta-mono { font-family: var(--font-mono, ui-monospace, monospace); font-size: 10.5px; }
.ta-mu { font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; color: var(--text-muted, #71717a); }

.ta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 10px; font-size: 12.5px;
  border: 1px solid var(--border-color, #2a2a2f);
  background: var(--bg-surface, #161618); color: var(--text-primary, #ececef);
  cursor: pointer; text-decoration: none; font: inherit; font-size: 12.5px;
}
.ta-btn:hover { background: var(--shell-hover, #222226); }
.ta-btn:disabled { opacity: 0.6; cursor: default; }
.ta-btn-ghost { background: transparent; color: var(--text-secondary, #a1a1aa); }

.ta-pill {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500;
  border: 1px solid var(--border-color, #2a2a2f);
  background: var(--bg-surface, #161618); color: var(--text-secondary, #a1a1aa);
}
.ta-pill.ta-mono { font-size: 10.5px; }
.ta-pill-ok { color: #4ade80; background: rgba(34, 197, 94, 0.08); border-color: #1f5f3a; }
.ta-pill-bad { color: #f87171; background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.45); }
.ta-pill-warn { color: #facc15; background: rgba(234, 179, 8, 0.08); border-color: rgba(234, 179, 8, 0.4); }
.ta-pill-vio { color: var(--shell-lilac, #c4b5fd); background: rgba(124, 58, 237, 0.1); border-color: #4c3a99; }
.ta-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; flex: none; }
.ta-dot-bad { background: #ef4444; }
.ta-dot-warn { background: #eab308; }
.ta-tone-ok { color: #4ade80; }
.ta-tone-bad { color: #f87171; }
.ta-tone-warn { color: #facc15; }
.ta-tone-vio { color: #a78bfa; }
.ta-tone-work { color: #93c5fd; }
.ta-tone-mute { color: var(--text-secondary, #a1a1aa); }

.ta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 14px;
  padding: 14px 16px 16px;
  align-items: start;
}
.ta-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ta-panel {
  background: var(--bg-surface, #161618);
  border: 1px solid var(--border-color, #2a2a2f);
  border-radius: 14px;
  min-width: 0;
  padding-bottom: 6px;
}
.ta-ph { display: flex; align-items: center; gap: 10px; padding: 12px 16px 4px; flex-wrap: wrap; }
.ta-ph h5 { margin: 0; font-size: 16px; font-weight: 600; }
.ta-hint {
  margin-left: auto; font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px;
  color: var(--text-muted, #71717a); border: 1px solid var(--border-color, #2a2a2f); border-radius: 999px; padding: 2px 9px;
}
.ta-kv {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 14px;
  padding: 8px 16px 4px; font-size: 12.5px;
}
.ta-kv-l { color: var(--text-muted, #71717a); }
.ta-sec { margin-top: 14px; }
.ta-h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 0 16px; font-size: 14px; font-weight: 600; }
.ta-h3 small { margin-left: auto; font-size: 11.5px; font-weight: 500; color: var(--text-muted, #71717a); }
.ta-empty { padding: 4px 16px 10px; font-size: 12.5px; color: var(--text-muted, #71717a); }
.ta-empty-pad { padding: 8px 16px 12px; }

.ta-execs { display: flex; flex-direction: column; gap: 6px; padding: 6px 16px 10px; }
.ta-ex {
  display: grid; align-items: center; gap: 10px;
  padding: 8px 10px; border: 1px solid var(--border-color, #2a2a2f); border-radius: 10px;
  background: var(--bg-primary, #0f0f11); font-size: 12.5px; min-width: 0;
}
.ta-ex-model { grid-template-columns: 28px minmax(0, 1fr) auto; }
.ta-ex-ver { grid-template-columns: 36px minmax(0, 1fr) auto; }
.ta-ex-ver small { color: var(--text-muted, #71717a); font-size: 11px; }
.ta-ex-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ta-av {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; color: #fff;
  background: linear-gradient(135deg, #6d5df6, #3b82f6);
}
.ta-av-ic { background: var(--bg-card, #1d1d20); border: 1px solid var(--border-color, #2a2a2f); color: var(--text-secondary, #a1a1aa); }
.ta-av-bad { background: var(--bg-card, #1d1d20); border: 1px solid rgba(239, 68, 68, 0.45); color: #f87171; }

.ta-jobs { display: flex; flex-direction: column; padding: 0 8px 8px; }
.ta-jr {
  display: grid; grid-template-columns: 82px minmax(0, 1fr) minmax(0, 150px) 70px; gap: 10px; align-items: center;
  padding: 7px 8px; border: 0; border-radius: 8px; background: transparent;
  color: var(--text-primary, #ececef); font: inherit; font-size: 12px; text-align: left; cursor: pointer;
}
.ta-jr:hover { background: var(--shell-hover, #222226); }
.ta-jr > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ta-jr-id { font-family: var(--font-mono, ui-monospace, monospace); font-size: 11.5px; color: var(--shell-lilac, #c4b5fd); }
.ta-jr-what b { font-weight: 600; }
.ta-jr-dur { text-align: right; }
.ta-more {
  margin: 4px 8px 0; padding: 4px 0; border: 0; background: none; text-align: left; cursor: pointer;
  color: var(--shell-lilac, #c4b5fd); font: inherit; font-size: 12px;
}

.ta-card {
  background: var(--bg-surface, #161618);
  border: 1px solid var(--border-color, #2a2a2f);
  border-radius: 14px;
  overflow: hidden;
}
.ta-hero {
  position: relative; height: 260px; display: grid; place-items: center;
  background: radial-gradient(260px 220px at 50% 50%, #1d3a5a 0%, transparent 70%);
}
.ta-tagl { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ta-tagr { position: absolute; top: 12px; right: 12px; }
.ta-nm {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px;
  background: linear-gradient(transparent, rgba(15, 15, 17, 0.92));
  display: flex; flex-direction: column; gap: 2px;
}
.ta-nm b { font-size: 20px; font-weight: 700; }
.ta-nm small { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; color: var(--text-muted, #71717a); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ta-side { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 16px; }
.ta-mgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ta-mc { padding: 7px 9px; border-radius: 10px; background: var(--bg-primary, #0f0f11); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ta-mc small { font-size: 10.5px; color: var(--text-muted, #71717a); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ta-mc b { font-size: 16px; font-weight: 700; }
.ta-k5 {
  font-family: var(--font-mono, ui-monospace, monospace); font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted, #71717a);
}
.ta-chks { display: flex; flex-direction: column; gap: 6px; }
.ta-chks-pad { padding: 4px 16px 10px; }
.ta-chk {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 12.5px;
  border: 1px solid var(--border-color, #2a2a2f); border-radius: 10px; min-width: 0;
}
.ta-chk > svg { flex: none; color: #4ade80; }
.ta-chk-no { border-color: rgba(239, 68, 68, 0.45); color: #fecaca; }
.ta-chk-no > svg { color: #f87171; }
.ta-chk-t { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.ta-chk-em { margin-left: auto; flex: none; font-style: normal; font-size: 11px; color: var(--text-muted, #71717a); }
.ta-chk-no .ta-chk-em { color: var(--shell-lilac, #c4b5fd); }
.ta-chk-link { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; font-size: 11px; color: var(--shell-lilac, #c4b5fd); }
.ta-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: #9465ff; color: #fff; font: inherit; font-size: 13.5px; font-weight: 600;
}
.ta-cta:hover { background: #a37bff; }
.ta-vgroup + .ta-vgroup { margin-top: 4px; }
.ta-vname { padding: 6px 16px 0; font-size: 12px; color: var(--text-secondary, #a1a1aa); }

@media (max-width: 1100px) {
  .ta-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ta-kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ta-kv-l { margin-top: 6px; }
  .ta-jr { grid-template-columns: 70px minmax(0, 1fr) 56px; }
  .ta-jr > span:nth-child(3) { display: none; }
}
.ta-ex-none { color: var(--text-muted, #71717a); }
