:root{--bg: #0A0E1A;--surface: #111827;--surface2: #1E293B;--surface3: #263244;--primary: #6366F1;--accent: #22D3EE;--text: #F8FAFC;--muted: #94A3B8;--border: #1E293B;--border2: #2D3F56;--danger: #EF4444;--success: #22C55E;--warning: #F59E0B;--chip-bg: #1E293B;--chip-text: #94A3B8;--chip-border: #2D3F56;--status-fresh-border: #22C55E;--status-fresh-text: #22C55E;--status-aging-border: #F59E0B;--status-aging-text: #F59E0B;--status-at-risk-border: #EF4444;--status-at-risk-text: #EF4444;--maturity-observed-border: #22C55E;--maturity-observed-text: #22C55E;--maturity-confirmed-border: #4ADE80;--maturity-confirmed-text: #4ADE80;--maturity-reinforced-border: #6EE7B7;--maturity-reinforced-text: #6EE7B7;--maturity-established-border: #86EFAC;--maturity-established-text: #86EFAC;--maturity-deprecated-border: #EF4444;--maturity-deprecated-text: #EF4444;--maturity-archived-border: #6B7280;--maturity-archived-text: #94A3B8}[data-theme=light]{--bg: #F1F5F9;--surface: #FFFFFF;--surface2: #E2E8F0;--surface3: #F8FAFC;--primary: #4F46E5;--accent: #0891B2;--text: #0F172A;--muted: #64748B;--border: #CBD5E1;--border2: #94A3B8;--danger: #DC2626;--success: #16A34A;--warning: #D97706;--chip-bg: #E2E8F0;--chip-text: #64748B;--chip-border: #94A3B8;--status-fresh-border: #16A34A;--status-fresh-text: #16A34A;--status-aging-border: #D97706;--status-aging-text: #D97706;--status-at-risk-border: #DC2626;--status-at-risk-text: #DC2626;--maturity-observed-border: #16A34A;--maturity-observed-text: #16A34A;--maturity-confirmed-border: #15803D;--maturity-confirmed-text: #15803D;--maturity-reinforced-border: #059669;--maturity-reinforced-text: #059669;--maturity-established-border: #047857;--maturity-established-text: #047857;--maturity-deprecated-border: #DC2626;--maturity-deprecated-text: #DC2626;--maturity-archived-border: #6B7280;--maturity-archived-text: #374151}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body{height:100%;overflow:hidden}body{background:var(--bg);color:var(--text);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:14px;line-height:1.5}::-webkit-scrollbar{width:4px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border);border-radius:2px}button{cursor:pointer;border:none;outline:none;font-family:inherit}.btn,.btn-danger,.btn-secondary,.btn-primary{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 16px;border:1px solid transparent;border-radius:8px;font-size:14px;font-weight:500;line-height:1;cursor:pointer;transition:background .15s ease,border-color .15s ease,filter .15s ease,opacity .15s ease;white-space:nowrap;-webkit-user-select:none;user-select:none}.btn:hover:not(:disabled),.btn-danger:hover:not(:disabled),.btn-secondary:hover:not(:disabled),.btn-primary:hover:not(:disabled){filter:brightness(1.08)}.btn:active:not(:disabled),.btn-danger:active:not(:disabled),.btn-secondary:active:not(:disabled),.btn-primary:active:not(:disabled){filter:brightness(.95)}.btn:focus-visible,.btn-danger:focus-visible,.btn-secondary:focus-visible,.btn-primary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.btn:disabled,.btn-danger:disabled,.btn-secondary:disabled,.btn-primary:disabled{opacity:.5;cursor:not-allowed}.btn--primary,.btn-primary{background:var(--primary);border-color:var(--primary);color:#fff}.btn--secondary,.btn-secondary{background:var(--surface2);border-color:var(--border);color:var(--text)}.btn--danger,.btn-danger{background:var(--danger);border-color:var(--danger);color:#fff}input,textarea{font-family:inherit;outline:none}app-agents-page,app-memory-page,app-plugins-page,app-settings-page{width:100%;display:block}.page{padding:32px 40px;width:100%;max-width:1200px;height:100%;overflow-y:auto;box-sizing:border-box}.page-header{display:grid;grid-template-columns:1fr auto;grid-template-areas:"title actions" "sub actions";margin-bottom:28px}h1.page-title{grid-area:title;font-size:24px;font-weight:700;color:var(--text);margin:0}p.page-sub{grid-area:sub;font-size:13px;color:var(--muted);margin:0}.page-header-actions{grid-area:actions;align-self:start;display:flex;align-items:center;gap:8px}.page-back{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--muted);font-size:16px;cursor:pointer;transition:color .15s,border-color .15s;text-decoration:none}.page-back:hover{color:var(--text);border-color:var(--border2)}.section{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:20px;margin-bottom:20px}.section-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:16px}.section-header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.section-title{font-size:13px;font-weight:700;color:var(--text);letter-spacing:.5px}.section-desc{font-size:13px;color:var(--muted);margin-top:4px}.data-table{width:100%;border-collapse:collapse}.data-table th{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);text-align:left;padding:8px 12px;border-bottom:1px solid var(--border)}.data-table td{font-size:13px;padding:10px 12px;border-bottom:1px solid var(--border)}.data-table tr:last-child td{border-bottom:none}.data-table tr:hover td{background:#ffffff05}.empty-state{color:var(--muted);text-align:center;padding:24px;font-size:13px}
