:root { color-scheme: light; --bg: #f4f4f2; --surface: #fcfcfb; --surface-2: #ededea; --border: #d9d8d3; --text: #0b0b0b; --text-2: #52514e; --muted: #7a7974; --accent: #2a78d6; --accent-ink: #ffffff; --focus: #2a78d6; --good: #008300; --warn: #c98500; --serious: #d95926; --critical: #c7302f; --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948; --radius: 10px; --shadow: 0 1px 2px rgba(0,0,0,.06); --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; } @media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) { color-scheme: dark; --bg: #121211; --surface: #1a1a19; --surface-2: #252524; --border: #343431; --text: #f0efec; --text-2: #c3c2b7; --muted: #8f8e86; --accent: #3987e5; --good: #2fb344; --warn: #e0a023; --serious: #e36f3d; --critical: #e66767; --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767; --shadow: none; } } :root[data-theme="dark"] { color-scheme: dark; --bg: #121211; --surface: #1a1a19; --surface-2: #252524; --border: #343431; --text: #f0efec; --text-2: #c3c2b7; --muted: #8f8e86; --accent: #3987e5; --good: #2fb344; --warn: #e0a023; --serious: #e36f3d; --critical: #e66767; --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767; --shadow: none; } * { box-sizing: border-box; } html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.45; -webkit-text-size-adjust: 100%; } a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; } code, pre, .mono { font-family: var(--mono); font-size: 12.5px; } pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px; overflow: auto; max-height: 70vh; white-space: pre-wrap; word-break: break-word; margin: 0; } h1 { font-size: 22px; margin: 0 0 4px; } h2 { font-size: 17px; margin: 18px 0 8px; } h3 { font-size: 14px; margin: 12px 0 6px; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; } p { margin: 6px 0; } :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; } button, input, select, textarea { font: inherit; color: inherit; } button { cursor: pointer; } .btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); min-height: 38px; } .btn:hover { background: var(--surface-2); } .btn:disabled { opacity: .55; cursor: not-allowed; } .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); } .btn.primary:hover { filter: brightness(1.08); } .btn.danger { border-color: var(--critical); color: var(--critical); } .btn.sm { padding: 4px 9px; min-height: 30px; font-size: 13px; } input, select, textarea { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; width: 100%; min-height: 38px; } textarea { min-height: 80px; font-family: var(--mono); font-size: 12.5px; } label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 4px; } .field { margin-bottom: 10px; } .form-grid { display: grid; grid-template-columns: 1fr; gap: 10px 14px; } @media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .span2 { grid-column: span 2; } } .hint { font-size: 12px; color: var(--muted); } /* layout */ .app { display: grid; grid-template-rows: auto 1fr; min-height: 100vh; } .topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); background: var(--surface); border-bottom: 1px solid var(--border); } .topbar .brand { font-weight: 700; letter-spacing: .02em; white-space: nowrap; } .topbar form { flex: 1; display: flex; } .topbar input { min-height: 36px; } .iconbtn { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); } .body { display: grid; grid-template-columns: 1fr; } .sidebar { display: none; } .drawer { position: fixed; inset: 0; z-index: 30; display: none; } .drawer.open { display: block; } .drawer .scrim { position: absolute; inset: 0; background: rgba(0,0,0,.4); } .drawer nav { position: absolute; top: 0; left: 0; bottom: 0; width: min(82vw, 300px); background: var(--surface); padding: 14px; overflow: auto; box-shadow: 2px 0 12px rgba(0,0,0,.2); } .nav a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; color: var(--text); } .nav a:hover { background: var(--surface-2); text-decoration: none; } .nav a.active { background: var(--accent); color: var(--accent-ink); } .nav .group { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 12px 10px 4px; } .main { padding: 14px 12px 40px; max-width: 1280px; width: 100%; margin: 0 auto; } @media (min-width: 1024px) { .body { grid-template-columns: 240px 1fr; } .sidebar { display: block; position: sticky; top: 55px; height: calc(100vh - 55px); overflow: auto; border-right: 1px solid var(--border); padding: 12px; background: var(--surface); } .hamburger { display: none; } .main { padding: 20px 24px 60px; } } .userbox { font-size: 12px; color: var(--text-2); display: none; } @media (min-width: 720px) { .userbox { display: block; } } /* components */ .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); margin-bottom: 14px; } .card.tight { padding: 10px 12px; } .grid { display: grid; gap: 12px; grid-template-columns: 1fr; } @media (min-width: 720px) { .grid.c2 { grid-template-columns: 1fr 1fr; } .grid.c3 { grid-template-columns: repeat(3, 1fr); } } @media (min-width: 1100px) { .grid.c4 { grid-template-columns: repeat(4, 1fr); } } .tiles { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); } @media (min-width: 720px) { .tiles { grid-template-columns: repeat(4, 1fr); } } @media (min-width: 1100px) { .tiles { grid-template-columns: repeat(6, 1fr); } } .tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; } .tile .k { font-size: 12px; color: var(--text-2); } .tile .v { font-size: 26px; font-weight: 600; line-height: 1.1; margin-top: 2px; font-variant-numeric: tabular-nums; } .badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); white-space: nowrap; } .badge.good { color: var(--good); border-color: var(--good); background: transparent; } .badge.warn { color: var(--warn); border-color: var(--warn); background: transparent; } .badge.serious { color: var(--serious); border-color: var(--serious); background: transparent; } .badge.critical { color: var(--critical); border-color: var(--critical); background: transparent; } .badge.accent { color: var(--accent); border-color: var(--accent); background: transparent; } .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .row.between { justify-content: space-between; } .stack > * + * { margin-top: 8px; } .alert { border-radius: 8px; padding: 10px 12px; border: 1px solid var(--border); background: var(--surface-2); font-size: 14px; } .alert.error { border-color: var(--critical); color: var(--critical); } .alert.ok { border-color: var(--good); color: var(--good); } .alert.warn { border-color: var(--warn); } .empty { padding: 24px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); } .loading { color: var(--muted); padding: 12px; } .kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; font-size: 13.5px; } .kv dt { color: var(--text-2); } .kv dd { margin: 0; word-break: break-word; } @media (max-width: 480px) { .kv { grid-template-columns: 1fr; } .kv dt { margin-top: 6px; } } .tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 12px; } .tabs button { border: 0; background: none; padding: 8px 10px; border-bottom: 2px solid transparent; color: var(--text-2); white-space: nowrap; } .tabs button.active { color: var(--text); border-bottom-color: var(--accent); } .filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; } .filters > * { flex: 1 1 140px; width: auto; } .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; display: block; } details summary { cursor: pointer; } .jsontree { font-family: var(--mono); font-size: 12.5px; line-height: 1.5; } .jsontree ul { list-style: none; margin: 0; padding-left: 16px; } .jsontree .key { color: var(--s7); } .jsontree .str { color: var(--s3); } .jsontree .num { color: var(--s2); } .jsontree .lit { color: var(--muted); } .jsontree summary { list-style: none; } .jsontree summary::before { content: "▸ "; color: var(--muted); } .jsontree details[open] > summary::before { content: "▾ "; } /* responsive table */ .tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; } .tbl th { text-align: left; font-weight: 600; color: var(--text-2); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 8px 8px; border-bottom: 1px solid var(--border); } .tbl td { padding: 8px; border-bottom: 1px solid var(--border); vertical-align: top; word-break: break-word; } .tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: var(--surface-2); } .tbl .num { text-align: right; font-variant-numeric: tabular-nums; } @media (max-width: 719px) { .tbl thead { display: none; } .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; } .tbl tr { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; padding: 6px 8px; background: var(--surface); } .tbl td { border: 0; padding: 3px 0; display: grid; grid-template-columns: 38% 1fr; gap: 8px; } .tbl td::before { content: attr(data-l); color: var(--muted); font-size: 12px; } .tbl td.num { text-align: left; } .tbl td.wide { grid-template-columns: 1fr; } } .chart { width: 100%; height: auto; display: block; } .chart text { fill: var(--text-2); font-size: 11px; font-family: var(--font); } .chart .grid line { stroke: var(--border); stroke-width: 1; } .chart .axis { stroke: var(--border); } .legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); margin: 4px 0; } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; } .tooltip { position: fixed; z-index: 50; pointer-events: none; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 6px 9px; font-size: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.18); } .graphwrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); } .graph .node { cursor: pointer; } .graph .node rect { fill: var(--surface-2); stroke: var(--border); rx: 6; } .graph .node:hover rect { stroke: var(--accent); } .graph .node text { font-size: 11px; fill: var(--text); font-family: var(--font); } .graph .edge { stroke: var(--muted); stroke-width: 1.2; fill: none; opacity: .7; } .graph .col { font-size: 11px; fill: var(--muted); text-transform: uppercase; letter-spacing: .05em; } .login { min-height: 100vh; display: grid; place-items: center; padding: 20px; } .login .card { width: 100%; max-width: 380px; } .check { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; } .check .ic { width: 18px; text-align: center; font-weight: 700; } .check.ok .ic { color: var(--good); } .check.bad .ic { color: var(--critical); } .pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 8px; font-size: 13px; } .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .codebox { position: relative; } .codebox .copy { position: absolute; top: 6px; right: 6px; }