#root{width:100%}:root{--primary: #2563eb;--primary-dark: #1d4ed8;--success: #22c55e;--warning: #f59e0b;--error: #ef4444;--bg: #0f172a;--bg-card: #1e293b;--bg-hover: #334155;--text: #f1f5f9;--text-muted: #94a3b8;--border: #334155}*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);line-height:1.6}.app{min-height:100vh}.header{display:flex;justify-content:space-between;align-items:center;padding:1rem 2rem;background:var(--bg-card);border-bottom:1px solid var(--border)}.header-left{display:flex;align-items:center;gap:2rem}.header h1{font-size:1.5rem;font-weight:600;color:var(--primary)}.nav{display:flex;gap:.5rem}.nav-link{padding:.5rem 1rem;color:var(--text-muted);text-decoration:none;border-radius:6px;transition:all .2s}.nav-link:hover{color:var(--text);background:var(--bg-hover)}.nav-link.active{color:var(--text);background:var(--primary)}.settings-btn{padding:.5rem 1rem;background:var(--bg-hover);color:var(--text);border:1px solid var(--border);border-radius:6px;cursor:pointer;transition:all .2s}.settings-btn:hover{background:var(--bg-card);border-color:var(--primary)}.settings-panel{padding:1.5rem 2rem;background:var(--bg-card);border-bottom:1px solid var(--border);display:flex;gap:2rem;align-items:flex-end}.setting-row{display:flex;flex-direction:column;gap:.5rem;flex:1;max-width:400px}.setting-row label{font-size:.875rem;color:var(--text-muted)}.setting-row input{padding:.75rem 1rem;background:var(--bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:1rem}.setting-row input:focus{outline:none;border-color:var(--primary)}.close-btn{padding:.75rem 1.5rem;background:var(--primary);color:#fff;border:none;border-radius:6px;cursor:pointer;transition:all .2s}.close-btn:hover{background:var(--primary-dark)}.main{padding:2rem}.page{max-width:1200px;margin:0 auto}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.page-header h2{font-size:1.75rem;font-weight:600}.controls{display:flex;gap:1rem;align-items:center}.controls select{padding:.5rem 1rem;background:var(--bg-card);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:.875rem;cursor:pointer}.btn{padding:.5rem 1rem;background:var(--primary);color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:.875rem;transition:all .2s}.btn:hover{background:var(--primary-dark)}.btn-small{padding:.25rem .75rem;background:var(--bg-hover);color:var(--text);border:1px solid var(--border);border-radius:4px;cursor:pointer;font-size:.75rem}.alert{padding:1rem 1.5rem;border-radius:8px;margin-bottom:1rem}.alert.warning{background:#f59e0b1a;border:1px solid var(--warning);color:var(--warning)}.alert.error{background:#ef44441a;border:1px solid var(--error);color:var(--error)}.loading{text-align:center;padding:3rem;color:var(--text-muted)}.status-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:1.5rem}.status-card{background:var(--bg-card);border-radius:12px;padding:1.5rem;border:1px solid var(--border)}.status-card.healthy{border-left:4px solid var(--success)}.status-card.unhealthy{border-left:4px solid var(--error)}.status-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.status-header h3{font-size:1.25rem}.health-badge{padding:.25rem .75rem;border-radius:9999px;font-size:.75rem;font-weight:600}.health-badge.healthy{background:#22c55e33;color:var(--success)}.health-badge.unhealthy{background:#ef444433;color:var(--error)}.status-section{margin-bottom:1.5rem}.status-section h4{font-size:.875rem;color:var(--text-muted);margin-bottom:.75rem;text-transform:uppercase;letter-spacing:.05em}.status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem}.status-item{display:flex;flex-direction:column;gap:.25rem}.status-item .label{font-size:.75rem;color:var(--text-muted)}.status-item .value{font-weight:500}.status-item .value.success{color:var(--success)}.status-item .value.error{color:var(--error)}.status-section.issues ul{list-style:none;padding:0}.status-section.issues li{padding:.5rem 0;color:var(--error);border-bottom:1px solid var(--border)}.status-section.issues li:last-child{border-bottom:none}.last-updated{margin-top:2rem;text-align:center;color:var(--text-muted);font-size:.875rem}.error-tooltip{display:inline-block;width:16px;height:16px;background:var(--error);color:#fff;border-radius:50%;text-align:center;font-size:.75rem;margin-left:.5rem;cursor:help}.history-summary{display:flex;justify-content:space-between;align-items:center;padding:1rem;background:var(--bg-card);border-radius:8px;margin-bottom:1rem;color:var(--text-muted);font-size:.875rem}.history-table-container{background:var(--bg-card);border-radius:12px;overflow:hidden;border:1px solid var(--border)}.history-table{width:100%;border-collapse:collapse}.history-table th,.history-table td{padding:1rem;text-align:left;border-bottom:1px solid var(--border)}.history-table th{background:var(--bg-hover);font-weight:600;font-size:.875rem;text-transform:uppercase;color:var(--text-muted)}.history-table tr:hover,.history-table tr.expanded{background:var(--bg-hover)}.details-row td{padding:0}.json-preview{padding:1rem;background:var(--bg);margin:.5rem 1rem 1rem;border-radius:8px;font-size:.75rem;max-height:300px;overflow:auto;color:var(--text-muted)}.anomaly-summary{background:var(--bg-card);border-radius:12px;padding:1.5rem;margin-bottom:2rem;border:1px solid var(--border)}.summary-stats{display:flex;gap:2rem;margin-bottom:1rem}.stat{text-align:center}.stat-value{display:block;font-size:2rem;font-weight:700}.stat-label{font-size:.75rem;color:var(--text-muted);text-transform:uppercase}.stat.high .stat-value{color:var(--error)}.stat.medium .stat-value{color:var(--warning)}.stat.low .stat-value{color:#17a2b8}.summary-period{color:var(--text-muted);font-size:.875rem}.no-anomalies{text-align:center;padding:4rem 2rem;background:var(--bg-card);border-radius:12px;border:1px solid var(--border)}.check-icon{display:inline-block;width:64px;height:64px;background:#22c55e33;color:var(--success);border-radius:50%;font-size:2rem;line-height:64px;margin-bottom:1rem}.no-anomalies h3{color:var(--success);margin-bottom:.5rem}.no-anomalies p{color:var(--text-muted)}.anomaly-list{display:flex;flex-direction:column;gap:1rem}.anomaly-card{background:var(--bg-card);border-radius:12px;padding:1.5rem;border:1px solid var(--border);border-left:4px solid}.anomaly-header{display:flex;gap:1rem;align-items:center;margin-bottom:.75rem}.severity-badge{padding:.25rem .75rem;border-radius:9999px;font-size:.625rem;font-weight:700}.severity-badge.high{background:#ef444433;color:var(--error)}.severity-badge.medium{background:#f59e0b33;color:var(--warning)}.severity-badge.low{background:#17a2b833;color:#17a2b8}.anomaly-type{font-weight:600}.anomaly-data-type{background:var(--bg-hover);padding:.25rem .5rem;border-radius:4px;font-size:.75rem;color:var(--text-muted)}.anomaly-message{margin-bottom:.75rem;color:var(--text)}.anomaly-footer{font-size:.75rem;color:var(--text-muted)}.profile-layout{display:grid;grid-template-columns:300px 1fr;gap:2rem}.profile-versions-panel{background:var(--bg-card);border-radius:12px;padding:1.5rem;border:1px solid var(--border);height:fit-content}.profile-versions-panel h3{font-size:1.25rem;margin-bottom:1rem}.default-version-info{padding:.75rem;background:var(--bg);border-radius:6px;margin-bottom:1rem;font-size:.875rem;color:var(--text-muted)}.version-list{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1.5rem}.version-item{padding:.75rem 1rem;background:var(--bg);border-radius:8px;cursor:pointer;border:1px solid transparent;transition:all .2s}.version-item:hover{background:var(--bg-hover);border-color:var(--border)}.version-item.selected{border-color:var(--primary);background:var(--bg-hover)}.version-item.is-default{border-left:3px solid var(--success)}.version-number{font-weight:500;display:flex;align-items:center;gap:.5rem}.default-badge{font-size:.625rem;padding:.125rem .5rem;background:#22c55e33;color:var(--success);border-radius:9999px;font-weight:700}.version-date{font-size:.75rem;color:var(--text-muted);margin-top:.25rem}.no-versions{padding:1rem;text-align:center;color:var(--text-muted);font-size:.875rem}.create-version{border-top:1px solid var(--border);padding-top:1rem}.create-version h4{font-size:.875rem;color:var(--text-muted);margin-bottom:.75rem}.create-version-form{display:flex;gap:.5rem}.create-version-form input{flex:1;padding:.5rem .75rem;background:var(--bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:.875rem}.create-version-form input:focus{outline:none;border-color:var(--primary)}.profile-editor-panel{background:var(--bg-card);border-radius:12px;padding:1.5rem;border:1px solid var(--border)}.profile-editor-panel h3{font-size:1.25rem;margin-bottom:1rem}.profile-actions{display:flex;gap:.75rem;margin-bottom:1rem}.btn-primary{background:var(--primary)}.btn-primary:hover{background:var(--primary-dark)}.btn-primary:disabled{background:var(--bg-hover);color:var(--text-muted);cursor:not-allowed}.btn-danger{background:var(--error)}.btn-danger:hover{background:#dc2626}.btn-danger:disabled{background:var(--bg-hover);color:var(--text-muted);cursor:not-allowed}.profile-meta{display:flex;gap:1.5rem;margin-bottom:1rem;font-size:.75rem;color:var(--text-muted)}.profile-editor textarea{width:100%;min-height:500px;padding:1rem;background:var(--bg);border:1px solid var(--border);border-radius:8px;color:var(--text);font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.875rem;resize:vertical}.profile-editor textarea:focus{outline:none;border-color:var(--primary)}.profile-save-actions{margin-top:1rem;display:flex;justify-content:flex-end}.no-selection{text-align:center;padding:4rem 2rem;color:var(--text-muted)}.no-selection p{margin-bottom:.5rem}.alert.success{background:#22c55e1a;border:1px solid var(--success);color:var(--success)}@media(max-width:768px){.header,.header-left{flex-direction:column;gap:1rem}.settings-panel{flex-direction:column}.setting-row{max-width:100%}.page-header{flex-direction:column;gap:1rem;align-items:flex-start}.controls{flex-wrap:wrap}.status-cards{grid-template-columns:1fr}.summary-stats{flex-wrap:wrap}}
