:root{--void:#07070d;--surface:#10101a;--raised:#171724;--border:#23233a;--white:#f2f3f8;--muted:#9a9db3;--accent:#3b82f6;--good:#34d399;--warn:#fbbf24;--bad:#f87171}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--void);color:var(--white);font:16px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
a{color:#7fb0ff}
main{max-width:760px;margin:0 auto;padding:16px 16px 96px}
h1{font-size:1.5rem;margin:8px 0 16px}
h2{font-size:.82rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:28px 0 10px}
h3{font-size:1rem;margin:18px 0 8px}
.top{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:16px;padding:10px 16px;background:rgba(7,7,13,.92);border-bottom:1px solid var(--border)}
.brand{font-weight:700;color:var(--white);text-decoration:none}
.signout{margin-left:auto}
.tabs a{color:var(--muted);text-decoration:none;padding:8px 10px;border-radius:8px;white-space:nowrap}
.tabs a.on{color:var(--white);background:var(--raised)}
.tabs{display:flex;gap:2px}
.count{display:inline-block;min-width:20px;padding:0 6px;border-radius:10px;background:var(--accent);color:#fff;font-size:.75rem;text-align:center}
button,.button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;border:1px solid var(--border);border-radius:10px;background:var(--raised);color:var(--white);font:inherit;font-weight:600;text-decoration:none;cursor:pointer}
button:hover,.button:hover{border-color:#3a3a5c}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.primary{background:var(--accent);border-color:var(--accent);color:#fff}
.good{color:var(--good)}button.good{border-color:var(--good)}
.danger{color:var(--bad);margin-left:auto}
.link{min-height:0;padding:4px;background:none;border:0;color:var(--muted);font-weight:400;text-decoration:underline}
.card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:14px;margin:0 0 12px}
.card.quiet{opacity:.85}
.bad-edge{border-color:var(--bad)}.warn-edge{border-color:var(--warn)}
.meta{margin:0 0 8px;color:var(--muted);font-size:.875rem}.meta strong{color:var(--white)}
.body{white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 12px}
.clip{font-size:.875rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.actions form{margin:0}
.muted{color:var(--muted)}.small{font-size:.875rem}.warn{color:var(--warn)}
.error{color:var(--bad);font-size:.875rem;overflow-wrap:anywhere}
.poll{margin:0 0 12px;padding-left:20px;color:var(--muted)}
.flash{padding:10px 14px;border-radius:10px;margin:0 0 12px;background:var(--raised);border:1px solid var(--border)}
.flash.good{border-color:var(--good);color:var(--white)}.flash.bad{border-color:var(--bad);color:var(--white)}.flash ul{margin:6px 0 0;padding-left:20px}
.warn-note{border-color:var(--warn)}
.empty{padding:20px;text-align:center;border:1px dashed var(--border);border-radius:14px;color:var(--muted)}.empty p{margin:0 0 10px}.empty strong{color:var(--white)}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:0 0 8px}
.stats div{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:10px}
.stats dt{font-size:.75rem;color:var(--muted)}.stats dd{margin:2px 0 0;font-size:1.25rem;font-weight:700}
.stack{display:flex;flex-direction:column;gap:14px}
.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:.9rem}
label.check{flex-direction:row;align-items:center;font-weight:400;gap:10px}
input,select,textarea{width:100%;min-height:44px;padding:10px;border:1px solid var(--border);border-radius:10px;background:var(--void);color:var(--white);font:inherit;font-size:16px;font-weight:400}
input[type=checkbox]{width:22px;min-height:22px;height:22px;flex:none}
small{font-weight:400;display:block}
.filters{display:flex;gap:6px;flex-wrap:wrap}.filters a{padding:6px 12px;border:1px solid var(--border);border-radius:20px;color:var(--muted);text-decoration:none}.filters a.on{color:var(--white);background:var(--raised)}
.status{font-size:.8rem;font-weight:600;white-space:nowrap}
.status.good,.status.posted,.status.approved{color:var(--good)}.status.warn,.status.with_board,.status.pending{color:var(--warn)}.status.failed{color:var(--bad)}.status.muted,.status.skipped,.status.rejected,.status.withdrawn{color:var(--muted)}
summary{cursor:pointer;font-weight:600}
summary small{margin-top:2px}
details.card form{margin-top:14px}
.gname{margin-right:8px}
.list{list-style:none;margin:0;padding:0;background:var(--surface);border:1px solid var(--border);border-radius:14px}
.list li{display:flex;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--border)}.list li:last-child{border:0}
.plain{padding-left:20px;color:var(--muted)}
.narrow{max-width:400px;margin:48px auto}
[hidden]{display:none!important}
@media(max-width:640px){
 .top{flex-wrap:wrap;gap:6px 12px}
 .tabs{position:fixed;left:0;right:0;bottom:0;z-index:6;background:var(--surface);border-top:1px solid var(--border);padding:4px 4px calc(4px + env(safe-area-inset-bottom));justify-content:space-around}
 .tabs a{flex:1;text-align:center;padding:10px 2px;font-size:.82rem;min-height:44px}
 .stats{grid-template-columns:repeat(2,1fr)}
 .actions>*,.actions form,.actions form button{flex:1 1 auto}
 .danger{margin-left:0}
}
