/* Porto ops. Tokens first (light, then dark), then components. No external fonts or scripts. */
:root { --bg:#f6f7f9; --panel:#fff; --ink:#1b1f24; --muted:#5f6b7a; --line:#dde2e8; --accent:#2357c6;
  --ok:#11845b; --warn:#b26a00; --bad:#c62828; --chip:#eef1f5; }
@media (prefers-color-scheme: dark) { :root { --bg:#111418; --panel:#1a1e24; --ink:#e6e9ee; --muted:#9aa5b3;
  --line:#2c333c; --accent:#7aa2ff; --ok:#4cc38a; --warn:#f0a43a; --bad:#ff6b6b; --chip:#242a32; } }
* { box-sizing:border-box; }
html,body { margin:0; background:var(--bg); color:var(--ink); font:15px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; }
a { color:var(--accent); text-decoration:none; } a:hover { text-decoration:underline; }
header.top { display:flex; flex-wrap:wrap; gap:8px 16px; align-items:center; padding:10px 16px; background:var(--panel); border-bottom:1px solid var(--line); }
.brand { font-weight:700; color:var(--ink); } nav { display:flex; gap:12px; flex-wrap:wrap; } nav a.on { font-weight:650; text-decoration:underline; }
main { max-width:1100px; margin:0 auto; padding:16px; }
h1 { font-size:22px; margin:8px 0 6px; } h2 { font-size:16px; margin:18px 0 6px; }
.muted { color:var(--muted); } .small { font-size:12px; } .empty { color:var(--muted); padding:16px; background:var(--panel); border:1px dashed var(--line); border-radius:10px; }
.card { background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:12px 14px; margin:10px 0; }
.card h2 { margin:0; } .row { display:flex; flex-wrap:wrap; gap:6px 12px; align-items:baseline; }
.try { background:var(--chip); border-radius:8px; padding:8px 10px; margin:8px 0; }
.pill, .state { background:var(--chip); border-radius:999px; padding:1px 9px; font-size:12px; white-space:nowrap; }
.pill.bad, .state.s-failed, .state.s-error, .state.s-refused, .state.s-capped, .state.s-schema_violation, .state.s-rejected { color:var(--bad); }
.pill.warn, .state.s-proposed, .state.s-pending, .state.s-unavailable, .state.s-no_key { color:var(--warn); }
.state.s-done, .state.s-deployed, .state.s-ok, .state.s-built, .state.s-triggered { color:var(--ok); }
.fb { margin:4px 0; } .fbform { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; } .fbform input { flex:1 1 220px; }
input { font:inherit; padding:6px 8px; border:1px solid var(--line); border-radius:6px; background:var(--panel); color:var(--ink); }
button { font:inherit; padding:6px 12px; border:1px solid var(--accent); border-radius:6px; background:var(--accent); color:#fff; cursor:pointer; }
button.secondary, button.link { background:transparent; color:var(--accent); } button.link { border:0; padding:0; }
form.inline { display:inline; } label.block { display:block; margin:4px 0; }
.caps { display:flex; flex-wrap:wrap; gap:10px; align-items:end; } .caps label { display:flex; flex-direction:column; font-size:13px; }
table { width:100%; border-collapse:collapse; background:var(--panel); border:1px solid var(--line); border-radius:10px; font-size:13px; }
th,td { text-align:left; padding:6px 8px; border-top:1px solid var(--line); vertical-align:top; } th { color:var(--muted); font-weight:600; }
pre { white-space:pre-wrap; word-break:break-word; margin:0; font-size:12px; max-width:420px; }
.tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:10px; margin:10px 0; }
.tile { background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:12px; } .big { font-size:24px; font-weight:650; }
.meter { height:8px; background:var(--chip); border-radius:4px; overflow:hidden; margin-top:6px; } .meter span { display:block; height:100%; background:var(--accent); }
.bars { display:flex; gap:4px; align-items:end; height:140px; background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:8px; }
.bar { flex:1; display:flex; flex-direction:column; justify-content:end; align-items:center; height:100%; }
.bar span { display:block; width:100%; background:var(--accent); border-radius:3px 3px 0 0; min-height:1px; } .bar small { font-size:10px; color:var(--muted); }
.msg { padding:8px 10px; border-radius:8px; background:var(--chip); } .msg.error { color:var(--bad); }
@media (max-width:640px) { main { padding:10px; } table { display:block; overflow-x:auto; } }
