:root { color-scheme: light; font-family: Inter, system-ui, sans-serif; color: #17202a; background: #f4f6f8; }
* { box-sizing: border-box; } body { margin: 0; }
header { min-height: 60px; padding: 12px 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: #17202a; color: white; }
header > div {display:flex;flex-wrap:wrap;gap:10px;align-items:center}
header .nav-link {margin-left:0}
main { width: min(920px, calc(100% - 28px)); margin: 28px auto; }
.panel, .login-card { background: white; border: 1px solid #dde2e7; border-radius: 12px; padding: 22px; margin-bottom: 18px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.login-card { width: min(420px, calc(100% - 28px)); margin: 12vh auto; } h1, h2, h3 { margin-top: 0; }
.query { display: flex; gap: 10px; margin-top: 12px; }
input { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #bac3cc; border-radius: 8px; font: inherit; }
button { border: 0; border-radius: 8px; padding: 10px 18px; background: #1769aa; color: white; font-weight: 600; cursor: pointer; }
.nav-link { margin-left: 14px; color: #dbeeff; text-decoration: none; font-size: 14px; }
.secondary { background: #3c4854; }.badge, .source { display: inline-block; border-radius: 999px; padding: 3px 8px; background: #e7f1fa; color: #155487; font-size: 12px; }
article { border-top: 1px solid #e7eaed; padding: 18px 0 4px; } article p, .answer { white-space: pre-wrap; line-height: 1.65; overflow-wrap: anywhere; }
article h3 a, .source-row a { color: #155487; }.timeline-row { display: grid; grid-template-columns: minmax(150px, 210px) 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid #edf0f2; overflow-wrap: anywhere; }.timeline-row time { color: #52606d; font-size: 13px; }.timeline-row a { color: #155487; }.knowledge-content { white-space: pre-wrap; line-height: 1.7; overflow-wrap: anywhere; max-height: 70vh; overflow-y: auto; padding: 14px; border: 1px solid #e3e8ed; border-radius: 8px; background: #fafbfc; }.history-row { padding: 10px 0; border-top: 1px solid #edf0f2; overflow-wrap: anywhere; }
.meta, .muted, small { color: #687581; font-size: 13px; }.source-row { padding: 8px 0; border-top: 1px solid #edf0f2; overflow-wrap: anywhere; }.error { color: #a42828; }.warning { padding: 10px 12px; border-radius: 8px; background: #fff4d6; color: #704d00; }
label { display: block; margin: 14px 0 6px; }.login-card button { width: 100%; margin-top: 14px; }
.timeline-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 10px; align-items: end; margin-top: 18px; }.timeline-filters label { margin: 0; font-size: 13px; }.timeline-filters input, .timeline-filters select { width: 100%; min-width: 0; margin-top: 6px; padding: 10px; border: 1px solid #bac3cc; border-radius: 8px; background: white; font: inherit; }.filter-actions { display: flex; align-items: center; gap: 10px; padding-bottom: 1px; }.filter-actions a, .timeline-pager a { color: #155487; }.timeline-pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 20px 0 30px; font-size: 14px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }.metrics div { padding: 16px; border-radius: 10px; background: #f4f7fa; }.metrics strong, .metrics span { display: block; }.metrics strong { font-size: 26px; }.metrics span { margin-top: 4px; color: #687581; font-size: 13px; }.status-list { display: grid; grid-template-columns: minmax(160px, 1fr) 2fr; gap: 10px 18px; }.status-list dt { color: #687581; }.status-list dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .query { flex-direction: column; } .query button { width: 100%; } .metrics { grid-template-columns: repeat(2, 1fr); } .status-list, .timeline-row, .timeline-filters { grid-template-columns: 1fr; } .status-list dd { margin-bottom: 8px; } }
