/* «Задачі агентів» (#tasks) and the two tabs of /automations. Colours and edges as in automations.css. */
.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0 18px}
.tabs a{font:500 14px/1 'Murs',system-ui;text-decoration:none;color:#141413;padding:10px 14px;border:2px solid #141413;border-radius:10px;background:#fff;display:inline-flex;gap:8px;align-items:center}
.tabs a[aria-selected="true"]{background:#141413;color:#f4f2ee}
.tabs a:focus-visible{outline:2px solid #5F6BDE;outline-offset:3px}
.tabs .cnt{font-size:12px;font-weight:700;min-width:20px;padding:3px 6px;border-radius:999px;background:#d64532;color:#fff;text-align:center}

.tasks{display:grid;gap:12px}
.tk{border:2px solid #141413;border-radius:14px;background:#fff;padding:14px 16px;display:grid;gap:8px;min-width:0}
.tk--waiting_you{border-color:#b4321e;box-shadow:4px 4px 0 #f6d4cc}
.tk--done,.tk--dropped{background:#fbfaf7}
.tk p{margin:0;overflow-wrap:anywhere}
.tk__head{display:flex;align-items:center;gap:8px 10px;flex-wrap:wrap}
.tk__head h3{font-size:18px;line-height:1.25;margin:0;flex:0 1 auto;min-width:0;overflow-wrap:anywhere}
.tk__head .st{margin-left:0}
.tk__who{font-size:14px;color:#3d3a35}
.tk__who small{color:#7a756c}
.tk__goal{font-size:14px;color:#3d3a35;line-height:1.45}
.tk__next{font-size:15px;line-height:1.45}
.tk__dl{font-size:14px}
.tk__dl small{color:#7a756c}
.tk__dl.bad{color:#b4321e}
.tk__said{border-left:4px solid #3b7ddd;background:#f4f2ee;border-radius:0 10px 10px 0;padding:8px 12px}
.tk__said small{color:#7a756c;font-size:12.5px}
.tk__said p{font-size:14px;white-space:pre-wrap;margin-top:2px;max-height:9.5em;overflow:auto}
.tk__more summary{cursor:pointer;font-size:14px;font-weight:600}
.tk__more ul{margin:6px 0 0;padding-left:20px;font-size:14px;line-height:1.5}
.tk__check{list-style:none;padding-left:4px!important}
.tk__check .done{color:#7a756c}
.tk__watch{font-size:13px;color:#7a756c}
.tk__watch.bad{color:#b4321e}
.tk__foot{display:flex;gap:8px 12px;flex-wrap:wrap;align-items:center;font-size:14px}
.tk__foot button{font:inherit;font-size:13px;padding:6px 10px;border-radius:8px;border:2px solid #141413;background:#fff;color:#141413;cursor:pointer}
.tk__foot small{margin-left:auto}
.tk__events{list-style:none;margin:4px 0 0;padding:0;display:grid;gap:6px;max-height:480px;overflow:auto}
.ev{display:grid;gap:2px;padding:8px 10px;border-radius:8px;background:#f4f2ee;font-size:13.5px}
.ev__meta{font-size:12px;color:#7a756c}
.ev__meta b{color:#141413;text-transform:uppercase;letter-spacing:.04em;font-size:11px}
.ev__text{white-space:pre-wrap;overflow-wrap:anywhere}
.ev--in{border-left:4px solid #3b7ddd}
.ev--out{border-left:4px solid #5bb85d}
.ev--alert{border-left:4px solid #d64532}
.ev--status{border-left:4px solid #f0b429}
@media (max-width:760px){
  .tk__foot small{margin-left:0;flex-basis:100%}
}
