* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f3f4f6; color: #111827; font-size: 14px; }
.header { background: #1e1b4b; color: #fff; padding: 18px 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.header h1 { font-size: 1.1rem; font-weight: 700; }
.header p  { font-size: .8rem; color: #a5b4fc; margin-top: 3px; }
.ro { background: #fef3c7; color: #92400e; font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 10px; }
.content { padding: 20px 28px 40px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.btn { padding: 9px 16px; border: none; border-radius: 8px; font-size: .84rem; font-weight: 600; cursor: pointer; background: #4f46e5; color: #fff; }
.btn:hover { background: #4338ca; } .btn:disabled { background: #a5b4fc; cursor: not-allowed; }
.muted { color: #6b7280; font-size: .78rem; }
.alert { border-radius: 8px; padding: 12px 16px; margin-bottom: 12px; font-size: .86rem; line-height: 1.55; }
.alert.ok   { background: #f0fdf4; border: 1px solid #86efac; color: #14532d; }
.alert.err  { background: #fef2f2; border: 1px solid #fca5a5; color: #7f1d1d; }
.alert.info { background: #eef2ff; border: 1px solid #c7d2fe; color: #312e81; }
.alert code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; font-size: .8rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 20px; }
.card { background: #fff; border-radius: 10px; padding: 14px 16px; border-left: 4px solid #6366f1; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.card b { display: block; margin-bottom: 4px; } .card.err { border-color: #dc2626; } .card.off { border-color: #d1d5db; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.chip { border: 1.5px solid #d1d5db; background: #fff; border-radius: 20px; padding: 5px 12px; font-size: .78rem; font-weight: 600; color: #374151; text-decoration: none; }
.chip.active { background: #1e1b4b; color: #fff; border-color: #1e1b4b; }
.chip .n { opacity: .7; margin-left: 4px; }
form.search { display: flex; gap: 6px; margin-left: auto; }
form.search input { padding: 6px 10px; border: 1.5px solid #d1d5db; border-radius: 8px; font-size: .8rem; }
.panel { background: #fff; border-radius: 10px; box-shadow: 0 1px 6px rgba(0,0,0,.07); overflow: auto; }
table { width: 100%; border-collapse: collapse; }
thead th { background: #f9fafb; padding: 9px 12px; text-align: left; font-size: .72rem; color: #6b7280; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid #e5e7eb; white-space: nowrap; }
tbody tr { border-bottom: 1px solid #f3f4f6; }
td { padding: 8px 12px; font-size: .8rem; }
.mono { font-family: monospace; font-size: .78rem; }
.r { text-align: right; font-variant-numeric: tabular-nums; }
.title { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: .7rem; font-weight: 700; white-space: nowrap; background: #f3f4f6; color: #6b7280; }
.pill.ok { background: #f0fdf4; color: #15803d; } .pill.err { background: #fef2f2; color: #b91c1c; } .pill.warn { background: #fffbeb; color: #b45309; }
.bad { color: #b91c1c; font-weight: 700; }
@media (max-width: 700px) { .content, .header { padding-left: 16px; padding-right: 16px; } form.search { margin-left: 0; width: 100%; } }
h2.sec { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; margin: 22px 0 10px; }
h2.sec:first-child { margin-top: 0; }
.card.warn { border-color: #f59e0b; } .card.ok { border-color: #16a34a; }
.card .big { font-size: 1.4rem; font-weight: 700; margin: 2px 0; }
details summary { cursor: pointer; color: #4f46e5; font-size: .75rem; }
details pre { white-space: pre-wrap; font-size: .72rem; background: #f9fafb; padding: 8px; border-radius: 6px; margin-top: 6px; max-height: 240px; overflow: auto; }
td a { color: #4f46e5; }
