/* Browser automations: what they are doing and why they stopped (js/autotrace.js). */
.atr-chip { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 650; border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.atr-chip.atr-ok { color: var(--ok); border-color: rgba(62, 207, 142, .4); background: rgba(62, 207, 142, .1); }
.atr-chip.atr-run { color: var(--accent-2); border-color: rgba(108, 140, 255, .4); background: var(--accent-bg); }
.atr-chip.atr-warn { color: var(--warn); border-color: rgba(245, 185, 66, .45); background: rgba(245, 185, 66, .1); }
.atr-chip.atr-bad { color: var(--danger); border-color: rgba(255, 107, 107, .45); background: var(--danger-bg); }
.atr-btnwrap { display: inline-flex; }
.atr-btn-warn { border-color: rgba(245, 185, 66, .55) !important; color: var(--warn) !important; background: rgba(245, 185, 66, .08) !important; }

.atr { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.atr-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.atr-line .grow { flex: 1 1 auto; }
.atr-banners { display: flex; flex-direction: column; gap: 8px; } .atr-banners:empty { display: none; }
.atr-note { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); font-size: 13px; line-height: 1.5; }
.atr-note p { margin: 4px 0 0; }
.atr-note.warn { border-color: rgba(245, 185, 66, .5); background: rgba(245, 185, 66, .08); }
.atr-note.bad { border-color: rgba(255, 107, 107, .5); background: var(--danger-bg); }
.atr-note .btn { margin-left: 8px; }
.atr-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 860px) { .atr-cols { grid-template-columns: minmax(0, 1fr); } }
.atr-left { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.atr-img { width: 100%; max-height: 52vh; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #05070b; }
.atr-img[hidden] { display: none; }
.atr-cap { margin: 0; }
.atr-shots { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; } .atr-shots[hidden] { display: none; }
.atr-shot { flex: none; width: 74px; padding: 0; border-radius: 6px; border: 1px solid var(--line); background: none; cursor: pointer; overflow: hidden; }
.atr-shot:hover { border-color: var(--accent); } .atr-shot img { display: block; width: 100%; height: auto; }
.atr-right { min-width: 0; }
.atr-steps { list-style: none; margin: 0; padding: 0; max-height: 52vh; overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column; gap: 2px; }
.atr-step { display: grid; grid-template-columns: 16px 84px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; font-size: 12.5px; line-height: 1.45; padding: 3px 4px; border-radius: 6px; }
.atr-step time { white-space: nowrap; color: var(--faint); font-variant-numeric: tabular-nums; font-size: 11.5px; }
.atr-lab { overflow-wrap: anywhere; } .atr-dur { font-size: 11.5px; white-space: nowrap; }
.atr-mark { text-align: center; color: var(--ok); }
.atr-step.s-waiting .atr-mark, .atr-step.s-warn .atr-mark, .atr-step.s-stuck .atr-mark, .atr-step.s-needs-person .atr-mark { color: var(--warn); }
.atr-step.s-error { background: var(--danger-bg); } .atr-step.s-error .atr-mark { color: var(--danger); }
.atr-step.s-stuck, .atr-step.s-needs-person { background: rgba(245, 185, 66, .08); }

.atr-panel { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.atr-panel h3 { margin: 0; font-size: 14px; }
.atr-sum:empty { display: none; } .atr-sum p { margin: 2px 0; }
.atr-list { display: flex; flex-direction: column; gap: 6px; }
.atr-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 4px 10px; align-items: center; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.atr-rt { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atr-rs { grid-column: 2 / 3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atr-row .atr-chip { grid-row: 1 / 3; }
.atr-row .atr-btnwrap { grid-row: 1 / 3; grid-column: 3; } .atr-row .icon-btn { grid-row: 1 / 3; grid-column: 4; }

.atr-strip { padding: 4px 12px 0; } .atr-strip[hidden] { display: none; }
.atr-stripbtn { width: 100%; display: flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 12.5px; cursor: pointer; text-align: left; }
.atr-stripbtn:hover { color: var(--text); border-color: var(--line-2); }
.atr-stripbtn.hot { color: var(--warn); border-color: rgba(245, 185, 66, .5); background: rgba(245, 185, 66, .08); }
.atr-panel[hidden] { display: none; }
.lv-trace:empty { display: none; } .lv-trace { margin: 4px 0 2px; }
.atr-cols.one { grid-template-columns: minmax(0, 1fr); } .atr-left[hidden] { display: none; }
