:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#0b0f12;color:#edf2f7;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}:root[data-theme=light]{color-scheme:light;background:#f5f7fa;color:#182027}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:linear-gradient(180deg,#384c5947,#0b0f1200 300px),#0b0f12}:root[data-theme=light] body{background:linear-gradient(180deg,#97b0bc47,#f5f7fa00 300px),#f5f7fa}button{border:0;color:inherit;font:inherit}.app-shell{width:min(1540px,calc(100vw - 32px));margin:0 auto;padding:28px 0 40px}.app-header{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:18px}.eyebrow{margin:0 0 4px;color:#8fb3aa;font-size:.78rem;font-weight:700;text-transform:uppercase}h1,h2,h3,p{margin:0}h1{font-size:clamp(2rem,5vw,4.8rem);line-height:.95;letter-spacing:0}h2{font-size:1.05rem}h3{font-size:.92rem;color:#dbe6ef}:root[data-theme=light] h3{color:#24313b}.reset-button,.sound-toggle,.capture-toggle,.pointer-actions button{min-height:40px;padding:0 16px;border-radius:7px;background:#dfe7ec;color:#11171c;font-weight:800;cursor:pointer}.reset-button:hover,.sound-toggle:hover,.capture-toggle:hover,.pointer-actions button:hover{background:#fff}.header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.sound-toggle,.capture-toggle{border:1px solid #3a4650;background:#172027;color:#dbe6ef}.sound-toggle.on,.capture-toggle.on{border-color:#8fd6ca;background:#1a6b62;color:#fff}.sound-toggle.on:hover,.capture-toggle.on:hover{background:#207d73}.volume-control,.select-control{display:flex;align-items:center;gap:8px;min-height:40px;padding:0 10px;border:1px solid #26313a;border-radius:7px;background:#11171c;color:#aab6c0;font-size:.82rem;font-weight:700}.volume-control input{width:118px;accent-color:#8fd6ca}.volume-control strong{min-width:28px;color:#edf2f7;text-align:right}.select-control select{min-height:28px;border:1px solid #34414c;border-radius:6px;background:#172027;color:#edf2f7;font:inherit;font-size:.82rem}.dashboard{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;margin-bottom:18px}.metric,.stat-block{border:1px solid #26313a;border-radius:8px;background:#11171c}.metric{min-height:78px;padding:12px}.metric span,.split-stat span,.surface-readout span,.section-title p{color:#8b99a5}.metric strong{display:block;margin-top:8px;overflow:hidden;color:#f3f7fa;font-size:clamp(1.15rem,2.2vw,1.8rem);line-height:1.1;text-overflow:ellipsis;white-space:nowrap}.keyboard-section,.pointer-panel,.pointer-stats{min-width:0}.section-title{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:16px 0 10px}.section-title p{font-size:.86rem}.keyboard{--unit: 50px;--gap: 5px;position:relative;overflow-x:auto;width:100%;height:calc(var(--kh) * var(--unit) + (var(--kh) - 1) * var(--gap) + 24px);padding:0;border:1px solid #26313a;border-radius:8px;background:#11171c}.keyboard:before{display:block;width:calc(var(--kw) * var(--unit) + (var(--kw) - 1) * var(--gap) + 24px);height:1px;content:""}.key{position:absolute;left:calc(12px + var(--x) * (var(--unit) + var(--gap)));top:calc(12px + var(--y) * (var(--unit) + var(--gap)));display:flex;align-items:center;justify-content:center;width:calc(var(--w) * var(--unit) + (var(--w) - 1) * var(--gap));height:calc(var(--h) * var(--unit) + (var(--h) - 1) * var(--gap));border:1px solid #303b44;border-radius:6px;background:#181f25;color:#87939e;font-size:.72rem;font-weight:800;line-height:1;cursor:pointer;white-space:nowrap;transition:background 80ms ease,border-color 80ms ease,color 80ms ease,transform 80ms ease}.key.pressed{border-color:#4c8799;background:#14323a;color:#bdeaf1}.key.active{border-color:#8fd6ca;background:#1a6b62;color:#fff;transform:translateY(1px)}.key.flash{animation:key-flash .18s ease-out}@keyframes key-flash{0%{border-color:#fff;background:#edf7f5;box-shadow:0 0 #8fd6ca94;color:#0b0f12;transform:translateY(1px) scale(.98)}to{box-shadow:0 0 0 10px #8fd6ca00}}.key.reserved:after{position:absolute;top:4px;right:4px;width:6px;height:6px;border-radius:50%;background:#f4b860;content:""}.key.ghost{border-color:transparent;background:transparent}.legend{display:flex;gap:18px;margin:10px 0 18px;color:#aab6c0;font-size:.86rem}.dot{display:inline-block;width:9px;height:9px;margin-right:6px;border-radius:50%}.active-dot{background:#42c7b7}.pressed-dot{background:#4c8799}.never-dot{background:#4b5560}.reserved-mark{display:inline-block;width:9px;height:9px;margin-right:6px;border-radius:50%;background:#f4b860}.capture-note{color:#f4b860;font-weight:700}.pointer-grid{display:grid;grid-template-columns:minmax(420px,.95fr) minmax(520px,1.05fr);gap:14px;align-items:start}.pointer-surface{position:relative;display:grid;min-height:360px;place-items:center;overflow:hidden;border:1px solid #31404a;border-radius:8px;background:linear-gradient(#182127 1px,transparent 1px),linear-gradient(90deg,#182127 1px,transparent 1px),#101418;background-size:28px 28px;outline:none;-webkit-user-select:none;user-select:none;touch-action:none}.pointer-surface:focus{border-color:#8fd6ca}.crosshair{position:absolute;width:70px;height:70px;border:1px solid #52616c;border-radius:50%}.crosshair:before,.crosshair:after{position:absolute;content:"";background:#52616c}.crosshair:before{top:50%;left:-28px;width:126px;height:1px}.crosshair:after{top:-28px;left:50%;width:1px;height:126px}.surface-readout{position:relative;z-index:1;display:grid;grid-template-columns:1fr;gap:6px;min-width:220px;padding:16px;border:1px solid #2b3842;border-radius:8px;background:#101418db;text-align:center}.surface-readout strong{font-size:1.35rem}.pointer-actions{display:flex;align-items:center;gap:12px;margin-top:10px}.lock-on{color:#8fd6ca}.lock-off{color:#8b99a5}.pointer-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat-block{min-height:122px;padding:14px}.button-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.mouse-button{min-width:76px;padding:8px 10px;border:1px solid #34414c;border-radius:7px;color:#9ba8b3;text-align:center}.mouse-button.down{border-color:#8fd6ca;background:#1a6b62;color:#fff}.split-stat{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #26313a}.split-stat:last-child{border-bottom:0}.graph-block{grid-column:1 / -1}.graph-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.graph-legend{display:flex;gap:14px;color:#aab6c0;font-size:.82rem}.cursor-line:before,.scroll-line:before{display:inline-block;width:18px;height:3px;margin-right:6px;content:"";vertical-align:middle}.cursor-line:before{background:#42c7b7}.scroll-line:before{background:#f4b860}.speed-graph{display:block;width:100%;height:240px;border-radius:7px}:root[data-theme=light] .eyebrow{color:#28756d}:root[data-theme=light] .reset-button,:root[data-theme=light] .pointer-actions button{background:#182027;color:#fff}:root[data-theme=light] .reset-button:hover,:root[data-theme=light] .pointer-actions button:hover{background:#000}:root[data-theme=light] .sound-toggle,:root[data-theme=light] .capture-toggle,:root[data-theme=light] .volume-control,:root[data-theme=light] .select-control,:root[data-theme=light] .metric,:root[data-theme=light] .stat-block,:root[data-theme=light] .keyboard{border-color:#d4dde5;background:#fff;color:#54616d}:root[data-theme=light] .sound-toggle.on,:root[data-theme=light] .capture-toggle.on{border-color:#158277;background:#158277;color:#fff}:root[data-theme=light] .sound-toggle:hover,:root[data-theme=light] .capture-toggle:hover{background:#eef3f6}:root[data-theme=light] .sound-toggle.on:hover,:root[data-theme=light] .capture-toggle.on:hover{background:#0f6f66}:root[data-theme=light] .select-control select{border-color:#c8d4dc;background:#f8fafc;color:#182027}:root[data-theme=light] .volume-control strong,:root[data-theme=light] .metric strong{color:#182027}:root[data-theme=light] .metric span,:root[data-theme=light] .split-stat span,:root[data-theme=light] .surface-readout span,:root[data-theme=light] .section-title p{color:#687580}:root[data-theme=light] .key{border-color:#cdd7df;background:#f5f8fa;color:#65727e}:root[data-theme=light] .key.pressed{border-color:#3d91a6;background:#dff4f7;color:#145467}:root[data-theme=light] .key.active{border-color:#0f7f73;background:#158277;color:#fff}:root[data-theme=light] .legend,:root[data-theme=light] .graph-legend{color:#5f6d78}:root[data-theme=light] .pointer-surface{border-color:#cbd6df;background:linear-gradient(#e3eaf0 1px,transparent 1px),linear-gradient(90deg,#e3eaf0 1px,transparent 1px),#f8fafc}:root[data-theme=light] .pointer-surface:focus{border-color:#158277}:root[data-theme=light] .crosshair{border-color:#94a3af}:root[data-theme=light] .crosshair:before,:root[data-theme=light] .crosshair:after{background:#94a3af}:root[data-theme=light] .surface-readout{border-color:#d4dde5;background:#ffffffe0;color:#182027}:root[data-theme=light] .mouse-button{border-color:#cbd6df;color:#62707b}:root[data-theme=light] .mouse-button.down{border-color:#158277;background:#158277;color:#fff}:root[data-theme=light] .split-stat{border-bottom-color:#d9e2e8}@media(max-width:980px){.app-shell{width:min(100% - 20px,760px);padding-top:18px}.app-header,.section-title{align-items:start;flex-direction:column}.header-actions{width:100%;justify-content:flex-start}.dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}.pointer-grid,.pointer-stats{grid-template-columns:1fr}.pointer-surface{min-height:300px}}@media(max-width:560px){.dashboard{grid-template-columns:1fr}.metric{min-height:68px}.legend,.pointer-actions,.graph-head{align-items:start;flex-direction:column}}
