:root{box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);--sans: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;--mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;--page: #ffffff;--card: #ffffff;--line: #e6e6e6;--line-soft: #f2f2f2;--surface: #f7f7f7;--head: #0b0b0b;--text: #1f1f1f;--sec: #4b4b4b;--muted: #6f6f6f;--accent: #0b7a62;--accent-hover: #064a3c;--accent-text: #064a3c;--accent-soft: #e3f3ee;--btn2-border: #d9d9d9;--shadow: 0 8px 24px rgba(10, 18, 16, .1), 0 1px 2px rgba(10, 18, 16, .06);--hit: #12a383;--hit-bg: #e3f3ee;--hit-fg: #064a3c;--miss: #c4c4c4;--miss-bg: #efefef;--miss-fg: #444444;--byp: #e0a030;--byp-bg: #faeeda;--byp-fg: #633806;--rej: #e0533d;--rej-bg: #fcebeb;--rej-fg: #791f1f;--jdg: #6e62e6;--jdg-bg: #eeedfe;--jdg-fg: #3c3489;--radius-sm: 4px;--radius: 6px;--radius-lg: 10px;--radius-xl: 14px;--space-1: 4px;--space-2: 8px;--space-3: 12px;--space-4: 16px;--space-5: 20px;--space-6: 24px;--space-8: 32px;--space-10: 40px;--text-xs: 11px;--text-sm: 12px;--text-md: 13px;--text-base: 14px;--text-lg: 19px;--text-xl: 24px;--text-2xl: 26px;--sidebar-width: 240px;--topbar-height: 60px;--motion: .15s ease-out}html{scroll-padding-top:env(safe-area-inset-top,0px)}:root[data-theme=dark]{--page: #0a0a0a;--card: #0a0a0a;--line: #262626;--line-soft: #1c1c1c;--surface: #141414;--head: #fafafa;--text: #e4e4e4;--sec: #ababab;--muted: #8a8a8a;--accent: #3dd6ae;--accent-hover: #8fe3c9;--accent-text: #3dd6ae;--accent-soft: #0b2620;--btn2-border: #3a3a3a;--shadow: 0 8px 24px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .4);--hit-bg: #0b2620;--hit-fg: #3dd6ae;--miss: #454545;--miss-bg: #262626;--miss-fg: #ababab;--byp-bg: #2a1f08;--byp-fg: #f2b55a;--rej-bg: #2a0f0c;--rej-fg: #f28b7a;--jdg-bg: #16142e;--jdg-fg: #c9c3ff}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--page: #0a0a0a;--card: #0a0a0a;--line: #262626;--line-soft: #1c1c1c;--surface: #141414;--head: #fafafa;--text: #e4e4e4;--sec: #ababab;--muted: #8a8a8a;--accent: #3dd6ae;--accent-hover: #8fe3c9;--accent-text: #3dd6ae;--accent-soft: #0b2620;--btn2-border: #3a3a3a;--shadow: 0 8px 24px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .4);--hit-bg: #0b2620;--hit-fg: #3dd6ae;--miss: #454545;--miss-bg: #262626;--miss-fg: #ababab;--byp-bg: #2a1f08;--byp-fg: #f2b55a;--rej-bg: #2a0f0c;--rej-fg: #f28b7a;--jdg-bg: #16142e;--jdg-fg: #c9c3ff}}*,*:before,*:after{box-sizing:border-box}html,body{margin:0;height:100%}body{background:var(--page);color:var(--text);font-family:var(--sans);font-size:var(--text-base);line-height:1.4;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}a{color:inherit;text-decoration:none}button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:var(--radius-sm)}.mono,code,kbd{font-family:var(--mono)}h1,h2,h3{margin:0;color:var(--head);font-weight:600}p{margin:0}svg{display:block}.icon{width:16px;height:16px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none;flex:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.app{display:grid;grid-template-columns:var(--sidebar-width) minmax(0,1fr);min-height:100%}.sidebar{background:var(--card);border-right:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:0;height:100vh;height:100dvh}.brand{height:var(--topbar-height);display:flex;align-items:center;padding:0 var(--space-5);border-bottom:1px solid var(--line)}.logo{display:inline-flex;align-items:center;gap:10px;color:var(--head);font-size:20px;font-weight:600;letter-spacing:-.02em}.logo .mark{color:var(--accent)}.nav{padding:var(--space-3);display:grid;gap:2px}.nav-label{font-size:var(--text-sm);color:var(--muted);padding:14px 10px 6px}.nav a{display:flex;align-items:center;gap:10px;height:36px;padding:0 10px;border-radius:var(--radius);color:var(--sec);font-weight:400;transition:background-color var(--motion),color var(--motion)}.nav a:hover{background:var(--surface);color:var(--head)}.nav a[aria-current=page]{background:var(--surface);color:var(--accent-text);font-weight:500}.nav a .count{margin-left:auto;font-family:var(--mono);font-size:var(--text-sm);color:var(--muted)}.nav a[aria-current=page] .count{color:var(--accent-text)}.sidebar-foot{margin-top:auto;padding:var(--space-3);border-top:1px solid var(--line);display:grid;gap:2px}.sidebar-foot a{display:flex;align-items:center;gap:10px;height:34px;padding:0 10px;border-radius:var(--radius);color:var(--sec)}.sidebar-foot a:hover{background:var(--surface);color:var(--head)}.sidebar-foot a .ext{margin-left:auto;color:var(--muted);font-size:var(--text-sm)}.main{display:flex;flex-direction:column;min-width:0}.topbar{height:var(--topbar-height);background:var(--card);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:14px;padding:0 var(--space-5) 0 var(--space-6);position:sticky;top:0;z-index:5}.topbar .spacer{margin-left:auto}.org{display:inline-flex;align-items:center;gap:var(--space-2);height:34px;padding:0 10px;border-radius:var(--radius);font-weight:500;color:var(--head)}.org:hover{background:var(--surface)}.org .avatar{width:20px;height:20px;border-radius:5px;background:var(--accent);color:#fff;font-size:var(--text-xs);font-weight:600;display:grid;place-items:center}.org .icon{width:14px;height:14px;color:var(--muted)}.env{display:inline-flex;align-items:center;gap:7px;height:24px;padding:0 10px;border-radius:999px;font-family:var(--mono);font-size:var(--text-sm);background:var(--byp-bg);color:var(--byp-fg)}.env:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--byp)}.env.dev{background:var(--miss-bg);color:var(--miss-fg)}.env.dev:before{background:var(--miss)}.iconbtn{width:34px;height:34px;border-radius:var(--radius);display:grid;place-items:center;color:var(--sec)}.iconbtn:hover{background:var(--surface);color:var(--head)}.user{width:30px;height:30px;border-radius:50%;background:var(--surface);color:var(--head);font-size:var(--text-sm);font-weight:600;display:grid;place-items:center;border:1px solid var(--line)}.content{padding:var(--space-8) var(--space-10) 48px;display:grid;gap:var(--space-6);align-content:start}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--space-6);flex-wrap:wrap}.page-title{display:flex;align-items:baseline;gap:10px}.page-title h1{font-size:var(--text-2xl);letter-spacing:-.02em;line-height:1.2}.page-title .count{font-family:var(--mono);font-size:var(--text-base);color:var(--muted)}.page-sub{margin-top:6px;color:var(--sec)}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);height:36px;padding:0 14px;border-radius:var(--radius);font-size:var(--text-base);font-weight:500;transition:background-color var(--motion),border-color var(--motion),color var(--motion);white-space:nowrap}.btn-primary{background:#0b7a62;color:#fff;border:1px solid #0b7a62}.btn-primary:hover{background:#064a3c;border-color:#064a3c}.btn-secondary{background:var(--card);color:var(--text);border:1px solid var(--btn2-border)}.btn-secondary:hover{border-color:var(--muted)}.btn-ghost{color:var(--sec);padding:0 10px}.btn-ghost:hover{background:var(--surface);color:var(--head)}.btn .icon{width:15px;height:15px}.btn:disabled{opacity:.5;cursor:not-allowed}.chip{display:inline-flex;align-items:center;font-family:var(--mono);font-size:var(--text-sm);line-height:1;padding:5px 9px;border-radius:999px;white-space:nowrap}.chip.hit{background:var(--hit-bg);color:var(--hit-fg)}.chip.miss{background:var(--miss-bg);color:var(--miss-fg)}.chip.byp{background:var(--byp-bg);color:var(--byp-fg)}.chip.rej{background:var(--rej-bg);color:var(--rej-fg)}.chip.jdg{background:var(--jdg-bg);color:var(--jdg-fg)}.state{display:inline-flex;align-items:center;gap:7px;font-size:var(--text-md);color:var(--text)}.state:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--hit)}.state.shadow:before{background:var(--miss)}.state.paused:before{background:var(--byp)}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius-lg)}.card-body{padding:var(--space-5) var(--space-6);display:grid;gap:var(--space-4)}.table-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius-lg);overflow:hidden}table{width:100%;border-collapse:collapse}thead th{text-align:left;font-weight:400;font-size:var(--text-sm);color:var(--muted);background:var(--surface);border-bottom:1px solid var(--line);height:38px;padding:0 var(--space-4);white-space:nowrap}thead th.num,td.num{text-align:right}tbody tr{border-bottom:1px solid var(--line-soft);transition:background-color var(--motion)}tbody tr:last-child{border-bottom:0}tbody tr:hover{background:var(--surface)}td{height:48px;padding:0 var(--space-4);vertical-align:middle;white-space:nowrap}td:first-child,th:first-child{padding-left:22px}td:last-child,th:last-child{padding-right:22px}.table-foot{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);padding:var(--space-3) 22px;border-top:1px solid var(--line);font-size:var(--text-sm);color:var(--muted)}.empty{background:var(--card);border:1px dashed var(--line);border-radius:var(--radius-lg);padding:56px var(--space-6);display:grid;justify-items:center;text-align:center;gap:var(--space-2)}.empty h2{font-size:17px;letter-spacing:-.01em}.empty p{color:var(--sec);max-width:44ch}.empty .actions{margin-top:var(--space-3);justify-content:center}.crumbs{display:flex;align-items:center;gap:var(--space-2);font-size:var(--text-md);color:var(--muted)}.crumbs a:hover{color:var(--head)}.crumbs .sep{color:var(--line)}.detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--space-6);flex-wrap:wrap}.detail-title{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap}.detail-title h1{font-family:var(--mono);font-size:var(--text-xl);font-weight:500;letter-spacing:-.01em}.meta{display:flex;align-items:center;gap:14px;margin-top:var(--space-2);font-family:var(--mono);font-size:var(--text-sm);color:var(--muted);flex-wrap:wrap}.tabs{display:flex;gap:2px;border-bottom:1px solid var(--line);margin-top:var(--space-2);overflow-x:auto}.tabs a{display:inline-flex;align-items:center;height:40px;padding:0 var(--space-3);color:var(--sec);font-size:var(--text-base);border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap;transition:color var(--motion)}.tabs a:hover{color:var(--head)}.tabs a[aria-current=page]{color:var(--head);font-weight:500;border-bottom-color:var(--accent)}.rel{position:relative}.menu{position:absolute;top:calc(100% + 6px);right:0;min-width:200px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow);padding:6px;display:none;z-index:10}.menu[data-open=true]{display:grid;gap:2px}.menu button,.menu a{display:flex;align-items:center;gap:10px;height:32px;padding:0 10px;border-radius:var(--radius);font-size:var(--text-md);color:var(--text);width:100%;text-align:left}.menu button:hover,.menu a:hover{background:var(--surface)}.menu .sep{height:1px;background:var(--line);margin:4px 0}.menu .k{margin-left:auto;font-family:var(--mono);font-size:var(--text-xs);color:var(--muted)}.field{display:grid;gap:6px}.field label{font-size:var(--text-md);color:var(--sec)}.input{height:36px;padding:0 var(--space-3);border:1px solid var(--line);border-radius:var(--radius);background:var(--card);color:var(--text);font:inherit;width:100%}.input:hover{border-color:var(--muted)}.notice{border:1px solid var(--line);border-left:3px solid var(--byp);border-radius:var(--radius);background:var(--surface);padding:var(--space-3) var(--space-4);color:var(--sec);display:grid;gap:var(--space-1)}.notice.error{border-left-color:var(--rej)}.notice h1{font-size:17px}.notice strong{color:var(--head);font-weight:500}.centered{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:var(--space-6)}.centered .card{width:min(100%,420px)}.state.deleting:before{background:var(--rej)}.name-cell{font-family:var(--mono);font-size:var(--text-md);color:var(--head);font-weight:500}.name-cell:hover{color:var(--accent-text)}.kind,.mode,.when{font-family:var(--mono);font-size:var(--text-sm);color:var(--sec)}.num .v{font-family:var(--mono);font-size:var(--text-md)}.obar-wrap{display:flex;align-items:center;gap:10px;min-width:150px}.obar{flex:1;display:flex;height:6px;gap:2px;border-radius:3px;overflow:hidden;background:var(--line-soft)}.obar span{display:block;height:100%}.obar .h{background:var(--hit)}.obar .m{background:var(--miss)}.obar .b{background:var(--byp)}.obar-pct{font-family:var(--mono);font-size:var(--text-md);color:var(--head);width:42px;text-align:right}.filters,.toolbar{display:flex;align-items:flex-end;gap:var(--space-2);flex-wrap:wrap}.filters .field{gap:var(--space-1)}.filters .field label{font-size:var(--text-sm)}.filters .input,.filters select.input{height:32px;width:180px;font-size:var(--text-md)}.filters .input.wide{width:360px;max-width:100%}.toolbar .spacer{flex:1}.btn-small{height:32px;padding:0 var(--space-3);font-size:var(--text-md)}.seg{display:inline-flex;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.seg a{display:inline-flex;align-items:center;height:30px;padding:0 var(--space-3);font-family:var(--mono);font-size:var(--text-sm);color:var(--sec);border-right:1px solid var(--line)}.seg a:last-child{border-right:0}.seg a:hover{color:var(--head)}.seg a[aria-current=page]{background:var(--head);color:var(--card)}.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--card);overflow:hidden}.metric{padding:var(--space-4) var(--space-5);display:grid;gap:6px;min-width:0;box-shadow:-1px 0 0 var(--line)}.metric .label{font-size:var(--text-sm);color:var(--muted)}.metric .value{font-size:var(--text-xl);font-weight:600;letter-spacing:-.02em;line-height:1.1;color:var(--head)}.metric .value small{font-size:var(--text-sm);font-weight:400;color:var(--muted);letter-spacing:0;margin-left:3px}.metric .delta{font-family:var(--mono);font-size:var(--text-sm);color:var(--muted)}.chart{border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--card)}.chart-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);padding:14px var(--space-5);border-bottom:1px solid var(--line)}.chart-head h2{font-size:var(--text-base);font-weight:500}.legend{display:flex;gap:14px;font-family:var(--mono);font-size:var(--text-sm);color:var(--sec)}.legend span:before{content:"";display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:6px}.legend .l-hit:before{background:var(--hit)}.legend .l-miss:before{background:var(--miss)}.legend .l-byp:before{background:var(--byp)}.legend .l-rej:before{background:var(--rej)}.legend .l-jdg:before{background:var(--jdg)}.chart-plot{position:relative;padding:var(--space-6) var(--space-5) var(--space-3)}.chart-plot svg{width:100%;height:200px;display:block;overflow:visible}.chart-y{position:absolute;top:6px;left:var(--space-5);font-family:var(--mono);font-size:var(--text-xs);color:var(--muted)}.chart-x{display:flex;justify-content:space-between;margin-top:6px;font-family:var(--mono);font-size:var(--text-xs);color:var(--muted)}.chart-empty{margin-top:6px;font-size:var(--text-md);color:var(--muted)}.chart-grid line{stroke:var(--line-soft);stroke-width:1}.chart-grid line:last-child{stroke:var(--line)}.chart-line{fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}.tone-hit{stroke:var(--hit)}.tone-miss{stroke:var(--miss)}.tone-byp{stroke:var(--byp)}.tone-rej{stroke:var(--rej)}.tone-jdg{stroke:var(--jdg)}.chart-hover rect{fill:transparent}.chart-hover rect:hover{fill:var(--line-soft);fill-opacity:.5}.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:var(--space-5)}.editor{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);overflow:hidden}.editor textarea{display:block;width:100%;min-height:320px;border:0;padding:var(--space-3);background:var(--card);color:var(--text);font-family:var(--mono);font-size:var(--text-md);line-height:1.5;resize:vertical}.editor[data-enhanced=true] textarea{display:none}.editor .cm-editor{min-height:320px;max-height:640px;font-size:var(--text-md)}.editor .cm-editor.cm-focused{outline:2px solid var(--accent);outline-offset:-2px}.editor .cm-scroller{font-family:var(--mono);line-height:1.5}.issues{margin:0;padding-left:var(--space-5);display:grid;gap:var(--space-1);font-size:var(--text-md)}.issues code{color:var(--head)}.form-actions{display:flex;gap:var(--space-2);flex-wrap:wrap;align-items:center}.diff-list{margin:0;padding:0;list-style:none;display:grid;gap:var(--space-2);font-size:var(--text-md)}.diff-list code{color:var(--head)}.dialog{border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--card);color:var(--text);box-shadow:var(--shadow);padding:var(--space-5) var(--space-6);width:min(92vw,440px)}.dialog::backdrop{background:#0a121066}.dialog form{display:grid;gap:var(--space-4)}.dialog h2{font-size:17px}.pager{display:flex;gap:var(--space-2)}.pager a{font-family:var(--mono)}.btn-danger{background:var(--card);color:var(--rej-fg);border:1px solid var(--btn2-border)}.btn-danger:hover{border-color:var(--rej)}.stack{display:grid;gap:var(--space-4)}.check{display:flex;align-items:center;gap:var(--space-2);font-size:var(--text-md);color:var(--text)}.check input{width:16px;height:16px;accent-color:var(--accent)}.field-hint{font-size:var(--text-sm);color:var(--muted)}.field-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:var(--space-4)}.textarea{height:auto;min-height:160px;padding:var(--space-3);font-family:var(--mono);font-size:var(--text-md);line-height:1.5;resize:vertical}.section-title{font-size:15px;color:var(--head);font-weight:500}.once{display:block;padding:var(--space-2) var(--space-3);border:1px dashed var(--line);border-radius:var(--radius);background:var(--card);font-family:var(--mono);font-size:var(--text-md);color:var(--head);word-break:break-all;-webkit-user-select:all;user-select:all}.facts{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:var(--space-2) var(--space-5);margin:0;font-size:var(--text-md)}.facts dt{color:var(--muted)}.facts dd{margin:0;color:var(--head);font-family:var(--mono);word-break:break-all}.json{margin:0;padding:var(--space-3);border:1px solid var(--line-soft);border-radius:var(--radius);background:var(--surface);font-family:var(--mono);font-size:var(--text-sm);color:var(--text);overflow-x:auto}.predicates{margin:0;padding:0;list-style:none;display:grid;gap:var(--space-1)}.live{display:inline-flex;align-items:center;gap:var(--space-2);font-family:var(--mono);font-size:var(--text-sm);color:var(--sec)}.live:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--miss)}.live[data-state=open]:before{background:var(--hit)}@media(max-width:1180px){.search{width:240px}}@media(max-width:960px){.app{grid-template-columns:64px minmax(0,1fr)}.sidebar .logo span,.nav a span,.nav-label,.sidebar-foot a span,.sidebar-foot .ext,.nav .count{display:none}.nav a,.sidebar-foot a{justify-content:center;padding:0}.content{padding:var(--space-6) var(--space-5) var(--space-10)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
