.taxai-agent-status-badge,
.agent-os-status-badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    min-height:26px;
    padding:5px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
    line-height:1;
    border:1px solid rgba(148,163,184,.28);
    background:rgba(15,23,42,.06);
    color:#334155;
    white-space:nowrap;
}
.taxai-agent-status-badge::before,
.agent-os-status-badge::before{
    content:"";
    width:7px;
    height:7px;
    border-radius:999px;
    background:#94a3b8;
}
.taxai-agent-status-badge.is-success,
.agent-os-status-badge.is-success,
.taxai-agent-status-badge.status-success,
.agent-os-status-badge.status-success{
    background:rgba(16,185,129,.12);
    color:#047857;
    border-color:rgba(16,185,129,.28);
}
.taxai-agent-status-badge.is-success::before,
.agent-os-status-badge.is-success::before,
.taxai-agent-status-badge.status-success::before,
.agent-os-status-badge.status-success::before{
    background:#10b981;
}
.taxai-agent-status-badge.is-running,
.agent-os-status-badge.is-running,
.taxai-agent-status-badge.status-running,
.agent-os-status-badge.status-running{
    background:rgba(59,130,246,.12);
    color:#1d4ed8;
    border-color:rgba(59,130,246,.28);
}
.taxai-agent-status-badge.is-running::before,
.agent-os-status-badge.is-running::before,
.taxai-agent-status-badge.status-running::before,
.agent-os-status-badge.status-running::before{
    background:#3b82f6;
    box-shadow:0 0 0 4px rgba(59,130,246,.12);
}
.taxai-agent-status-badge.is-failed,
.agent-os-status-badge.is-failed,
.taxai-agent-status-badge.status-failed,
.agent-os-status-badge.status-failed,
.taxai-agent-status-badge.is-error,
.agent-os-status-badge.is-error{
    background:rgba(239,68,68,.12);
    color:#b91c1c;
    border-color:rgba(239,68,68,.28);
}
.taxai-agent-status-badge.is-failed::before,
.agent-os-status-badge.is-failed::before,
.taxai-agent-status-badge.status-failed::before,
.agent-os-status-badge.status-failed::before,
.taxai-agent-status-badge.is-error::before,
.agent-os-status-badge.is-error::before{
    background:#ef4444;
}
.taxai-agent-status-badge.is-warning,
.agent-os-status-badge.is-warning,
.taxai-agent-status-badge.status-warning,
.agent-os-status-badge.status-warning{
    background:rgba(245,158,11,.14);
    color:#b45309;
    border-color:rgba(245,158,11,.32);
}
.taxai-agent-status-badge.is-warning::before,
.agent-os-status-badge.is-warning::before,
.taxai-agent-status-badge.status-warning::before,
.agent-os-status-badge.status-warning::before{
    background:#f59e0b;
}
.agent-os-run-detail-card{
    background:#fff;
    border:1px solid rgba(148,163,184,.22);
    border-radius:18px;
    padding:20px;
    box-shadow:0 16px 40px rgba(15,23,42,.06);
}
.agent-os-run-detail-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    margin:16px 0;
}
.agent-os-run-detail-kv{
    background:#f8fafc;
    border:1px solid rgba(148,163,184,.18);
    border-radius:14px;
    padding:14px;
}
.agent-os-run-detail-kv small{
    display:block;
    color:#64748b;
    font-weight:700;
    margin-bottom:6px;
}
.agent-os-run-detail-kv strong{
    color:#0f172a;
    font-size:18px;
}
.agent-os-log-box{
    background:#0f172a;
    color:#dbeafe;
    border-radius:14px;
    padding:16px;
    overflow:auto;
    font-size:13px;
    line-height:1.7;
}
@media(max-width:960px){
    .agent-os-run-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:640px){
    .agent-os-run-detail-grid{grid-template-columns:1fr;}
}
