.perf-kit{--pk-perfect:#22d3ee;--pk-good:#4ade80;--pk-medium:#fb923c;--pk-bad:#f87171;--pk-na:#8b93a1;--pk-bg:#0c0e12eb;--pk-line:#ffffff14;z-index:50;background:var(--pk-bg);color:#e6e9ef;border:1px solid var(--pk-line);backdrop-filter:blur(6px);pointer-events:auto;user-select:none;touch-action:manipulation;border-radius:8px;flex-direction:column;width:min(560px,100vw - 16px);max-height:calc(100dvh - 16px);font:13px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;display:flex;position:fixed;top:8px;right:8px;overflow:hidden}.perf-kit[data-dock=left]{left:8px;right:auto}.perf-kit[data-dock=bottom]{width:auto;max-height:45dvh;inset:auto 8px 8px}@media (width<=600px){.perf-kit,.perf-kit[data-dock]{border-radius:12px 12px 0 0;width:auto;max-height:55dvh;inset:auto 0 0}}.perf-kit[hidden]{display:none}.perf-kit *{box-sizing:border-box}.pk-head{cursor:pointer;align-items:center;gap:.7em;padding:.85em 1em;display:flex}.pk-badge{text-transform:uppercase;letter-spacing:.04em;color:#0b0d11;background:var(--c,var(--pk-na));border-radius:999px;padding:.2em .7em;font-size:.85em;font-weight:700}.pk-head b{font-size:1.15em}.pk-head .pk-sub{opacity:.65;text-align:right;flex:1}.pk-zoom{flex:none;gap:4px;display:flex}.pk-zoom button{min-width:28px;height:28px;padding:0;font-size:18px;line-height:1}.perf-kit[data-collapsed=true] .pk-bar,.perf-kit[data-collapsed=true] .pk-tabs,.perf-kit[data-collapsed=true] .pk-body{display:none}.pk-bar,.pk-tabs{flex-wrap:wrap;gap:.45em;padding:0 1em .7em;display:flex}.pk-tabs{border-bottom:1px solid var(--pk-line);padding-bottom:.7em}.perf-kit button{font:inherit;color:inherit;border:1px solid var(--pk-line);cursor:pointer;background:#ffffff0f;border-radius:5px;padding:.35em .7em;font-size:.92em}.perf-kit button:hover{background:#ffffff1f}.perf-kit button[aria-pressed=true],.perf-kit button.on{background:#ffffff38}.perf-kit button:disabled{opacity:.4;cursor:default}.pk-body{user-select:text;scrollbar-width:thin;scrollbar-color:#ffffff47 transparent;flex:auto;min-height:0;padding:1em 1em 1.15em;overflow:auto}.pk-body::-webkit-scrollbar{width:10px}.pk-body::-webkit-scrollbar-track{background:0 0;margin:6px 0}.pk-body::-webkit-scrollbar-thumb{background:#ffffff38 padding-box padding-box;border:3px solid #0000;border-radius:999px}.pk-body::-webkit-scrollbar-thumb:hover{background:#ffffff6b padding-box padding-box;border:3px solid #0000}.pk-body h4{text-transform:uppercase;letter-spacing:.06em;opacity:.6;margin:1.2em 0 .5em;font-size:.92em}.pk-body h4:first-child{margin-top:0}.pk-note{opacity:.6;margin:.6em 0;font-size:.92em;line-height:1.45}.pk-warn{color:var(--pk-medium);margin:8px 0}.pk-table{border-collapse:collapse;width:100%}.pk-table th{text-align:left;opacity:.55;padding:.45em .6em .55em 0;font-size:.92em;font-weight:500}.pk-table td{border-top:1px solid var(--pk-line);vertical-align:top;padding:7px 8px 7px 0}.pk-table td.n,.pk-table th.n{text-align:right;font-variant-numeric:tabular-nums}.pk-table td.sub{opacity:.6;padding-left:16px}.pk-dot{background:var(--c,var(--pk-na));border-radius:50%;width:8px;height:8px;margin-right:8px;display:inline-block}.pk-metric{border-top:1px solid var(--pk-line);grid-template-columns:1fr auto;gap:4px 12px;padding:7px 0;display:grid}.pk-metric .v{color:var(--c,inherit);font-variant-numeric:tabular-nums;font-weight:700}.pk-metric .note{opacity:.55;grid-column:1/-1;font-size:.92em;line-height:1.4}.pk-delta{opacity:.7;margin-left:6px;font-weight:400}[data-g=perfect]{--c:var(--pk-perfect)}[data-g=good]{--c:var(--pk-good)}[data-g=medium]{--c:var(--pk-medium)}[data-g=bad]{--c:var(--pk-bad)}[data-g=na]{--c:var(--pk-na)}.pk-bar-h{background:var(--pk-line);border-radius:2px;height:4px;margin-top:2px;overflow:hidden}.pk-bar-h i{background:var(--c,var(--pk-na));height:100%;display:block}.pk-find{border-top:1px solid var(--pk-line);padding:10px 0}.pk-find .lever,.pk-find .detail{margin-top:2px}.pk-find b{color:var(--c)}.pk-find .lever{opacity:.75}.pk-find .detail{opacity:.6}.pk-graph{background:#ffffff08;border-radius:4px;width:100%;height:4.3em;display:block}.pk-edge{z-index:3;touch-action:none;position:absolute}.pk-edge[data-edge=n]{cursor:ns-resize;height:6px;top:0;left:12px;right:12px}.pk-edge[data-edge=s]{cursor:ns-resize;height:6px;bottom:0;left:12px;right:12px}.pk-edge[data-edge=e]{cursor:ew-resize;width:6px;top:12px;bottom:12px;right:0}.pk-edge[data-edge=w]{cursor:ew-resize;width:6px;top:12px;bottom:12px;left:0}.pk-edge[data-edge=nw],.pk-edge[data-edge=ne],.pk-edge[data-edge=sw],.pk-edge[data-edge=se]{width:14px;height:14px}.pk-edge[data-edge=nw]{cursor:nwse-resize;top:0;left:0}.pk-edge[data-edge=ne]{cursor:nesw-resize;top:0;right:0}.pk-edge[data-edge=sw]{cursor:nesw-resize;bottom:0;left:0}.pk-edge[data-edge=se]{cursor:nwse-resize;bottom:0;right:0}.pk-edge[data-edge=se]:after{content:"";border-bottom:2px solid #fff6;border-right:2px solid #fff6;width:7px;height:7px;position:absolute;bottom:3px;right:3px}
