.system-card{margin:8px;padding:16px;border-radius:16px;background:#fff;box-shadow:0 6px 18px #0000000f;transition:box-shadow .18s ease,transform .18s ease;cursor:pointer;display:flex;flex-direction:column;row-gap:16px}.system-card:hover,.system-card:focus-within{box-shadow:0 10px 24px #0000001a}.system-card.is-selected{outline:2px solid #0ea5e9;outline-offset:2px}.system-card>:first-child{display:flex;align-items:flex-start;justify-content:space-between;column-gap:12px}.system-card>:first-child .font-semibold{font-weight:600;color:#0f172a}.status-chip{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;font-size:12px;line-height:1.4;font-weight:600;color:#0f172a;background:#e2e8f0}.status-ready{background:#d1fae5;color:#065f46}.status-init{background:#e5e7eb;color:#374151}.status-off{background:#fee2e2;color:#991b1b}.status-rag{background:#fef3c7;color:#92400e}.status-rag-scan{background:#dbeafe;color:#1d4ed8}.status-rag-collect{background:#fef9c3;color:#92400e}.status-rag-vectorizing{background:#ede9fe;color:#5b21b6}.status-rag-complete{background:#dcfce7;color:#166534}.status-neutral{background:#e5e7eb;color:#4b5563}.new-pill{display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:999px;background:#ecfeff;color:#0e7490;font-size:11px;font-weight:700;letter-spacing:.02em;text-transform:uppercase}.metric-bars{display:flex;flex-direction:column;row-gap:12px}.metric-bar{display:flex;flex-direction:column;row-gap:8px}.metric-bar-header{display:flex;align-items:baseline;justify-content:space-between;color:#334155;font-size:13px}.metric-bar-header strong{color:#0f172a;font-weight:700}.metric-bar-track{position:relative;width:100%;height:10px;border-radius:999px;background:linear-gradient(180deg,#0000000f,#00000005);overflow:hidden}.metric-bar-track.metric-bar-track--empty{background:repeating-linear-gradient(45deg,#e5e7eb,#e5e7eb 6px,#f3f4f6 6px,#f3f4f6 12px)}.metric-bar-fill{position:absolute;inset:0 auto 0 0;width:0%;border-radius:999px;background:linear-gradient(90deg,#7dd3fc,#3b82f6);transition:width .2s ease}@media (prefers-reduced-motion: reduce){.system-card,.metric-bar-fill{transition:none}}.system-card .text-xs{font-size:12px}.system-card .text-slate-500{color:#64748b}.system-card .text-slate-600{color:#475569}[data-theme=dark] .system-card{background:#111827;box-shadow:0 6px 18px #0006}[data-theme=dark] .status-chip{background:#1f2937;color:#e5e7eb}[data-theme=dark] .metric-bar-header{color:#cbd5e1}[data-theme=dark] .metric-bar-header strong{color:#f8fafc}[data-theme=dark] .metric-bar-track{background:linear-gradient(180deg,#ffffff0f,#ffffff05)}[data-theme=dark] .metric-bar-track.metric-bar-track--empty{background:repeating-linear-gradient(45deg,#1f2937,#1f2937 6px,#111827 6px,#111827 12px)}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#f5f5f5}section{height:90vh}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}.container{max-width:1200px;margin:0 auto;padding:20px}button{cursor:pointer;font-family:inherit}input,textarea,select{font-family:inherit}.monitoring-page{min-height:100vh;padding:32px 24px 48px;max-width:1200px;margin:0 auto}.systems-grid-page{min-height:100vh;padding:32px 24px 48px;max-width:1280px;margin:0 auto}.page-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:28px}.page-header h1{font-size:1.8rem;color:#0f172a;margin-bottom:6px}.page-header p{color:#475467;font-size:.95rem}.heartbeat-indicator{display:flex;align-items:center;gap:8px;color:#475467;font-size:.9rem}.heartbeat-dot{width:10px;height:10px;border-radius:999px;background:#22c55e;position:relative}.heartbeat-dot--idle{background:#cbd5f5}.heartbeat-dot:after{content:"";position:absolute;top:-6px;right:-6px;bottom:-6px;left:-6px;border:2px solid rgba(34,197,94,.4);border-radius:999px;animation:pulse 1.2s infinite}.heartbeat-dot.heartbeat-dot--idle:after{display:none}@keyframes pulse{0%{transform:scale(.6);opacity:.8}to{transform:scale(1.4);opacity:0}}.status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-bottom:24px}.chart-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin-bottom:24px}.bottom-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px}.card{background:#fff;border:1px solid #e4e7ec;border-radius:16px;padding:20px;box-shadow:0 1px 2px #0f172a0a}.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.card-label{color:#475467;font-size:.95rem;margin-bottom:4px}.card-value{font-size:1.8rem;font-weight:600;color:#0f172a}.card-subtle{color:#98a2b3;font-size:.85rem}.badge{display:inline-flex;align-items:center;justify-content:center;padding:4px 10px;border-radius:999px;font-size:.9rem;font-weight:500;background:#f8fafc;color:#475467;border:1px solid #e4e7ec;text-transform:lowercase}.badge-soft{background:#eef2ff;color:#4c1d95;border-color:transparent}.badge-info{background:#eff6ff;color:#1d4ed8;border-color:transparent}.badge-warning{background:#fef3c7;color:#c2410c;border-color:transparent}.badge-error{background:#fee2e2;color:#b91c1c;border-color:transparent}.systems-page{width:100%}.max-w-6xl{max-width:72rem}.mx-auto{margin-left:auto;margin-right:auto}.px-4{padding-left:1rem;padding-right:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.space-y-8>*+*{margin-top:2rem}.space-y-2>*+*{margin-top:.5rem}.space-y-1>*+*{margin-top:.25rem}.space-y-4>*+*{margin-top:1rem}.grid{display:grid}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}@media (min-width: 640px){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-\[360px\,1fr\]{grid-template-columns:360px 1fr}}.gap-4{gap:1rem}.gap-6{gap:1.5rem}@media (min-width: 1024px){.lg\:gap-6{gap:1.5rem}}.flex{display:flex}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-3{gap:.75rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.font-medium{font-weight:500}.uppercase{text-transform:uppercase}.tracking-wide{letter-spacing:.08em}.text-slate-900{color:#0f172a}.text-slate-600{color:#475569}.text-slate-500{color:#64748b}.bg-white{background:#fff}.rounded-2xl{border-radius:1rem}.shadow{box-shadow:0 1px 3px #0f172a14}.transition-shadow{transition:box-shadow .2s ease}.hover\:shadow-lg:hover,.focus-within\:shadow-lg:focus-within{box-shadow:0 12px 28px #0f172a26}.cursor-pointer{cursor:pointer}.flex-1{flex:1 1 0%}.metric-bars{display:flex;flex-direction:column;gap:12px}.metric-bar{display:flex;flex-direction:column;gap:6px}.metric-bar-header{display:flex;align-items:center;justify-content:space-between;color:#475569;font-size:.875rem}.metric-bar-header strong{color:#0f172a;font-weight:600}.metric-bar-track{position:relative;height:10px;border-radius:999px;background:#94a3b82e;overflow:hidden}.metric-bar-track--empty{background:repeating-linear-gradient(90deg,#94a3b82e,#94a3b82e 10px,#94a3b852 10px,#94a3b852 20px)}.metric-bar-fill{position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(90deg,#38bdf8,#0ea5e9);border-radius:999px;transition:width .2s ease}.status-chip{display:inline-flex;align-items:center;justify-content:center;padding:4px 10px;border-radius:999px;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em}.status-init{background:#ede9fe;color:#5b21b6}.status-active{background:#e0f2fe;color:#075985}.status-ready{background:#dcfce7;color:#15803d}.status-off{background:#fee2e2;color:#b91c1c}.status-rag{background:#fef3c7;color:#c2410c}.status-inactive{background:#e5e7eb;color:#1f2937}.detail-page-header{margin-bottom:16px}.system-detail-card{display:flex;flex-direction:column;gap:16px;margin-bottom:28px}.system-detail-panel{display:flex;flex-direction:column}.system-detail-panel-head{display:flex;justify-content:flex-end}.system-log-actions{display:flex;flex-direction:column;align-items:flex-end;gap:10px}.system-log-button{border:1px solid #d0d5dd;background:#fff;color:#0f172a;padding:8px 16px;border-radius:8px;font-size:.9rem;font-weight:500;transition:background .2s ease,color .2s ease,border-color .2s ease}.system-log-button:hover{border-color:#94a3b8}.system-log-button--active{background:#1d4ed8;border-color:#1d4ed8;color:#fff}.log-delete-controls{display:flex;flex-direction:column;align-items:flex-end;gap:8px}.log-type-options{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.log-type-option{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid #e2e8f0;border-radius:9999px;background:#f8fafc;color:#0f172a;font-size:.8rem}.log-type-option input{accent-color:#1d4ed8}.log-delete-confirm__options{display:flex;flex-wrap:wrap;gap:8px}.log-delete-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px}.log-delete-button{border:1px solid #ef4444;background:#ef4444;color:#fff;padding:8px 14px;border-radius:8px;font-weight:600;font-size:.9rem;transition:background .2s ease,border-color .2s ease,opacity .2s ease}.log-delete-button:hover{background:#dc2626;border-color:#dc2626}.log-delete-button:disabled{opacity:.6;cursor:not-allowed}.log-delete-feedback{font-size:.85rem;color:#475467}.log-delete-feedback--error{color:#b91c1c}.log-delete-confirm{position:absolute;top:0;right:0;bottom:0;left:0;background:#0f172a73;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;z-index:10}.log-delete-confirm__content{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:18px 20px;width:min(420px,90vw);box-shadow:0 16px 40px #0f172a2e;display:flex;flex-direction:column;gap:10px}.log-delete-confirm__title{font-size:1rem;font-weight:700;color:#0f172a}.log-delete-confirm__body{font-size:.9rem;color:#475467;line-height:1.4}.log-delete-confirm__actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}.log-delete-cancel{border:1px solid #cbd5e1;background:#fff;color:#0f172a;padding:8px 14px;border-radius:8px;font-weight:600;font-size:.9rem;transition:background .2s ease,border-color .2s ease,color .2s ease}.log-delete-cancel:hover{background:#f8fafc;border-color:#94a3b8}.system-log-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;padding:32px 16px;z-index:40}.system-log-modal{width:920px;max-width:95vw;height:680px;max-height:90vh;position:relative;background:#fff;border-radius:20px;border:1px solid #e4e7ec;box-shadow:0 20px 45px #0f172a2e;padding:28px;display:flex;flex-direction:column;gap:16px;overflow:hidden;min-height:0}.system-log-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.system-log-modal-title{font-size:1.1rem;font-weight:600;color:#0f172a}.system-log-modal-subtitle{font-size:.9rem;color:#475467}.system-log-modal .events-card{margin:0;border:none;box-shadow:none;padding:0;display:flex;flex-direction:column;flex:1;overflow:hidden}.system-log-modal .events-list{max-height:none;overflow-y:auto;flex:1;min-height:0}.system-log-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:16px;flex:1;min-height:0}.system-log-grid .events-card{height:100%;min-height:0}.system-log-footer{display:flex;justify-content:flex-end;font-size:.85rem;color:#475467;padding-top:8px}.systems-split{align-items:flex-start}.systems-list-pane,.systems-list{display:flex;flex-direction:column;gap:1rem;min-height:0}@media (min-width: 1024px){.systems-list{max-height:calc(100vh - 120px);overflow-y:auto;padding-right:.5rem}}.systems-detail-pane{min-height:0}.systems-detail-pane>.system-detail-panel,.systems-detail-pane>.system-detail-empty{height:100%}.system-detail-empty{display:flex;align-items:center;justify-content:center;min-height:320px;text-align:center;color:#475467}.alert{display:flex;align-items:center;justify-content:space-between;gap:.75rem;border-radius:12px;padding:12px 16px;font-size:.875rem;border:1px solid transparent}.alert-warning{background:#fef3c7;border-color:#fbbf24;color:#92400e}.alert-tag{display:inline-flex;align-items:center;justify-content:center;padding:2px 8px;border-radius:999px;font-size:.75rem;font-weight:600;background:#eab30826;color:#92400e}.system-detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}.system-detail-identity{display:flex;flex-direction:column;gap:6px}.system-detail-title{font-weight:600;color:#0f172a;font-size:1.9rem}.system-detail-subtitle{color:#475467;font-size:1rem}.system-detail-description{color:#475467;font-size:.95rem}.system-detail-meta{display:flex;flex-wrap:wrap;gap:8px}.system-detail-meta .badge{text-transform:none}.system-detail-usage{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}.system-detail-status-group{display:flex;align-items:flex-start;gap:50px;flex-wrap:nowrap;justify-content:flex-end}.rag-status-card{flex:0 0 320px;width:320px;background:linear-gradient(120deg,#eef2ff,#ecfeff);border:1px solid #cbd5e1;border-radius:12px;padding:10px 14px;display:flex;flex-direction:column;gap:6px;box-shadow:0 1px 2px #0f172a14}.rag-status-card__head{display:flex;align-items:center;justify-content:space-between;gap:8px}.rag-status-card__title{margin:0;font-weight:700;color:#0f172a;font-size:.95rem}.rag-status-card__badge{background:#2563eb;color:#fff;padding:2px 10px;border-radius:999px;font-size:.75rem;font-weight:600;letter-spacing:.05em;text-transform:uppercase}.rag-status-card__body{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;color:#334155;font-size:.9rem}.rag-status-card__rows{display:flex;flex-direction:column;gap:2px}.rag-status-card__progress{width:100%;height:8px;background:#e2e8f0;border-radius:999px;overflow:hidden;position:relative}.rag-status-card__progress-fill{position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(90deg,#22c55e,#0ea5e9);width:0%;transition:width .2s ease}.rag-status-card__progress-value{font-weight:700;color:#0f172a;font-size:.9rem}.rag-status-card__footer{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#475569;font-size:.8rem}.rag-status-card__hint{padding:2px 8px;border-radius:8px;background:#e2e8f0;color:#475569}.system-detail-status-group .status-chip{flex:0 0 110px;justify-content:center;text-align:center}.llm-header-row{display:flex;align-items:center;gap:8px}.llm-source-badge{display:inline-flex;align-items:center;justify-content:center;padding:4px 10px;border-radius:999px;background:#0ea5e9;color:#fff;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.llm-source-badge--muted{background:#e2e8f0;color:#475569}.system-list-skeleton{display:flex;flex-direction:column;gap:.75rem}.system-card-skeleton{background:#fff;border:1px solid #e4e7ec;border-radius:16px;padding:20px;box-shadow:0 1px 2px #0f172a0a;display:flex;flex-direction:column;gap:12px;position:relative;overflow:hidden}.skeleton-metrics{display:flex;gap:16px;align-items:center}.skeleton-meta{display:flex;flex-direction:column;gap:8px;flex:1}.skeleton-line{height:12px;border-radius:999px;background:#e2e8f0;position:relative;overflow:hidden}.skeleton-line--title{width:60%}.skeleton-line--subtitle{width:40%}.skeleton-bar{flex:0 0 80px;height:48px;border-radius:12px;background:#e2e8f0;position:relative;overflow:hidden}.skeleton-line:after,.skeleton-bar:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);background:linear-gradient(90deg,#fff0,#fff9,#fff0);animation:skeleton-shimmer 1.4s infinite}@keyframes skeleton-shimmer{to{transform:translate(100%)}}.usage-stat{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border-radius:12px;border:1px solid #e2e8f0;background:#f8fafc}.usage-label{font-size:.8rem;color:#475467;text-transform:uppercase;letter-spacing:.04em}.usage-bar{position:relative;height:6px;border-radius:999px;background:#e2e8f0;overflow:hidden}.usage-bar-fill{position:absolute;top:0;right:0;bottom:0;left:0;width:0;border-radius:inherit;transition:width .3s ease}.usage-bar-fill--cpu{background:linear-gradient(90deg,#1d4ed8,#2563eb)}.usage-bar-fill--memory{background:linear-gradient(90deg,#0f766e,#14b8a6)}.usage-bar-fill--storage{background:linear-gradient(90deg,#b45309,#d97706)}.usage-bar--empty .usage-bar-fill{background:transparent}.usage-value{font-size:1.1rem;font-weight:600;color:#0f172a}.system-detail-agents{display:flex;flex-direction:column;gap:12px}.system-detail-agents-head{display:flex;align-items:center;justify-content:space-between}.system-detail-agents-head h2{font-size:1rem;color:#0f172a}.agent-count{font-size:.85rem;color:#475467;background:#f1f5f9;border-radius:999px;padding:4px 10px}.system-detail-agents-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}.agent-list-panel,.agent-detail-panel-wrapper{min-width:0}.agent-detail-panel-wrapper{display:flex;flex-direction:column;width:100%;max-height:800px}@media (max-width: 900px){.system-detail-agents-body{grid-template-columns:1fr}}.agent-status-list{list-style:none;margin:0;padding:0 4px 0 0;display:flex;flex-direction:column;gap:10px;max-height:800px;overflow-y:auto}.agent-status-row{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:12px 16px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;cursor:pointer;text-align:left;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease;outline:none;font:inherit;color:inherit}.agent-status-row:hover{border-color:#cbd5f5;background:#f1f5ff}.agent-status-row:focus-visible{box-shadow:0 0 0 3px #6366f14d}.agent-status-row--selected{border-color:#a5b4fc;background:#eef2ff}.agent-status-text{flex:1;min-width:0;gap:4px}.agent-status-name{font-weight:600;color:#0f172a}.agent-status-command{color:#475467;font-size:.85rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;max-width:100%}.agent-status-badge{display:inline-flex;justify-content:center;align-items:center;border-radius:999px;font-size:.8rem;font-weight:600;letter-spacing:.08em;padding:.5rem 1rem;white-space:nowrap;flex-shrink:0;text-transform:uppercase;background:#e2e8f0;color:#0f172a}.agent-status-badge--waiting-user-input{background:#fef3c7;color:#9a3412}.agent-status-badge--executing-tool{background:#eff6ff;color:#1d4ed8}.agent-status-badge--responding{background:#dcfce7;color:#166534}.agent-status-badge--unknown{background:#e2e8f0;color:#334155}.agent-status-empty{color:#94a3b8;font-size:.9rem}.agent-detail-card{height:100%;display:flex;flex-direction:column;gap:16px;overflow:hidden}.agent-detail-skeleton{width:100%;height:100%;border-radius:16px;background:linear-gradient(90deg,#e2e8f080 25%,#cbd5e1e6,#e2e8f080 75%);background-size:400% 100%;animation:agent-detail-skeleton-loading 1.4s ease infinite}@keyframes agent-detail-skeleton-loading{0%{background-position:100% 0}to{background-position:0 0}}.agent-detail-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.agent-detail-header>div{flex:1;min-width:0}.agent-detail-title{font-size:1.3rem;font-weight:600;color:#0f172a;margin:0}.agent-detail-subtitle{color:#475467;font-size:.9rem;margin:4px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.agent-detail-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.agent-detail-meta-label{font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;color:#94a3b8}.agent-detail-meta-value{font-size:.9rem;color:#0f172a;margin-top:4px;word-break:break-word}.agent-detail-scrollable{flex:1;min-height:0;overflow:hidden;overflow-y:auto;display:flex;flex-direction:column;gap:16px;padding-right:4px}.agent-detail-progress{display:flex;flex-direction:column;gap:8px}.agent-detail-progress-head{display:flex;justify-content:space-between;color:#475467;font-size:.9rem}.agent-detail-progress-bar{position:relative;height:8px;border-radius:999px;background:#e2e8f0;overflow:hidden}.agent-detail-progress-bar-fill{position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(90deg,#4f46e5,#2563eb);transition:width .3s ease}.agent-detail-section{border-top:1px solid #e2e8f0;padding-top:12px;padding-right:10px;display:flex;flex-direction:column;gap:10px}.agent-detail-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.agent-detail-section-head h3{margin:0;font-size:.95rem;color:#0f172a}.agent-detail-messages{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px}.agent-detail-messages li{padding:10px 12px;border-radius:12px;background:#f8fafc;border:1px solid #e2e8f0}.agent-detail-message-role{font-size:.75rem;font-weight:600;color:#475467;display:inline-block;margin-bottom:4px}.agent-detail-plan{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.agent-detail-plan-row{padding:12px 14px;border-radius:12px;border:1px solid #e2e8f0;background:#f8fafc;display:flex;justify-content:space-between;gap:12px}.agent-detail-plan-row--active{border-color:#4f46e5;background:linear-gradient(135deg,#eef2ff,#e0f2fe 60%,#fef9c3);box-shadow:0 10px 30px #4f46e538}.agent-detail-plan-content{flex:1;display:flex;flex-direction:column;gap:6px}.agent-detail-plan-step-head{display:flex;align-items:center;gap:8px}.agent-detail-plan-step-label{font-size:.9rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#64748b;margin:0}.agent-detail-plan-current-badge{padding:4px 10px;border-radius:999px;font-size:.75rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;background:#4f46e51f;color:#3730a3}.agent-detail-plan-description{margin:0;font-weight:600;color:#0f172a}.agent-detail-plan-owner-card{margin-top:4px;padding:14px 16px;border-radius:18px;background:linear-gradient(130deg,#eef2ff,#e0f2fe);border:1px solid #c7d2fe;display:flex;align-items:center;gap:16px;box-shadow:0 8px 16px #4f46e514}.agent-detail-plan-owner-icon{width:42px;height:42px;border-radius:999px;background:#312e81;color:#e0e7ff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1rem;letter-spacing:.02em}.agent-detail-plan-owner-copy{flex:1;display:flex;flex-direction:column;gap:2px}.agent-detail-plan-owner-label{font-size:1.1rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#4338ca;margin:0}.agent-detail-plan-owner-name{font-size:1.1rem;font-weight:700;color:#0f172a;margin:0}.agent-detail-plan-owner-chip{padding:6px 12px;border-radius:999px;font-size:.8rem;font-weight:600;white-space:nowrap}.agent-detail-plan-owner-chip--auto{background:#0f172a14;color:#0f172a}.agent-detail-plan-owner-chip--alert{background:#dc26261f;color:#a35507;font-size:.9rem}.agent-detail-plan-badge{align-self:flex-start;padding:4px 10px;border-radius:999px;background:#fee2e2;color:#b91c1c;font-size:.9rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;margin-top:10px}.agent-detail-input-prompt{font-size:.95rem;color:#0f172a;margin:0}.agent-detail-input-meta{font-size:.85rem;color:#475467;margin:0}.agent-detail-placeholder{font-size:.85rem;color:#94a3b8;margin:0}.agent-detail-empty{justify-content:center}.card-link{font-size:.75rem;font-weight:600;color:#2563eb}.card-link:hover{text-decoration:underline}.status-card .status-title{color:#475467;font-size:.9rem;margin-bottom:6px}.status-card .status-value{font-size:1.4rem;font-weight:600;display:flex;align-items:center;gap:8px;text-transform:capitalize}.status-pill{border:1px solid #e4e7ec;border-radius:12px;padding:8px 12px;display:flex;flex-direction:column;gap:2px}.status-pill span{font-size:.75rem;color:#98a2b3}.status-pill strong{font-size:.95rem;font-weight:600;color:#0f172a}.status-dot{width:10px;height:10px;border-radius:999px}.status-desc{color:#667085;font-size:.85rem;margin-top:6px}.chart-wrapper{height:220px}.chart-placeholder{height:200px;display:flex;align-items:center;justify-content:center;color:#98a2b3;font-size:.9rem;background:#f8fafc;border-radius:12px}.llm-grid{display:grid;grid-template-columns:repeat(2,minmax(140px,1fr));gap:12px}.llm-grid dt{font-size:.85rem;color:#98a2b3}.llm-grid dd{font-size:1rem;font-weight:500;color:#0f172a}.events-list{list-style:none;display:flex;flex-direction:column;gap:16px;max-height:320px;overflow-y:auto;padding-right:4px}.event-row{border:1px solid #e2e8f0;background:#f8fafc;border-radius:12px;padding:12px 14px}.event-meta{display:flex;align-items:center;gap:8px;font-size:.8rem;margin-bottom:4px}.event-channel{color:#4c1d95;font-weight:500}.event-type-heartbeat{background:#eef2ff;border-color:#e0e7ff}.event-type-status{background:#f0f9ff;border-color:#dbeafe}.event-type-agent_status{background:#f3f8ff;border-color:#e0f2fe}.event-type-system_event{background:#fff7ed;border-color:#ffedd5}.event-type-llm_usage{background:#f8f5ff;border-color:#ede9fe}.event-type-generic{background:#f8fafc;border-color:#e2e8f0}.event-time{margin-left:auto;color:#98a2b3;font-size:.75rem}.systems-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px}.system-card{background:#fff;border:1px solid #e4e7ec;border-radius:18px;padding:20px;display:flex;flex-direction:column;gap:16px;box-shadow:0 1px 2px #0f172a0a;cursor:pointer;transition:border-color .2s ease,transform .2s ease}.system-card:focus-visible{outline:2px solid #6366f1;outline-offset:2px}.system-card:hover{border-color:#c7d2fe;transform:translateY(-2px)}.system-card-head{display:flex;justify-content:space-between;gap:12px}.system-card-key{font-size:.8rem;color:#98a2b3;margin-bottom:6px}.system-card-head h2{font-size:1.3rem;color:#0f172a}.system-card-desc{color:#475467;font-size:.9rem;margin-top:4px}.system-card-badges{display:flex;flex-direction:column;align-items:flex-end;gap:8px}.system-card-meta{display:flex;align-items:center;justify-content:space-between;color:#475467;font-size:.85rem}.system-card-tags{display:flex;flex-wrap:wrap;gap:6px;font-size:.75rem;color:#6366f1;text-transform:lowercase}.system-card-tags span{background:#eef2ff;padding:2px 8px;border-radius:999px}.system-card-statuses{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.heartbeat-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:#f8fafc;color:#475467;font-size:.8rem}.system-card-spark{display:grid;grid-template-columns:auto 1fr;align-items:flex-end;gap:12px}.sparkbar-label{font-size:.85rem;color:#98a2b3}.sparkbar-value{font-size:1.6rem;font-weight:600;color:#0f172a}.sparkbar{height:64px;display:flex;align-items:flex-end;gap:3px}.sparkbar-bar{flex:1;border-radius:2px 2px 0 0;background:linear-gradient(180deg,#4c1d95,#7c3aed);opacity:.7}.sparkbar-bar--gap{background:#e2e8f0;opacity:.6}.sparkbar-bar--latest{opacity:1;background:linear-gradient(180deg,#2563eb,#60a5fa)}.sparkbar--empty{background:#f8fafc;border-radius:6px}.back-link{display:inline-flex;align-items:center;gap:6px;font-size:.85rem;color:#6366f1;text-decoration:none;margin-bottom:8px}.back-link:hover{text-decoration:underline}.detail-meta-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
