@font-face{font-family:Montserrat;src:url(assets/Montserrat.ttf) format('truetype');font-weight:100 900;font-display:swap}
:root{font-family:Montserrat,Arial,sans-serif;color:#18191c;background:#f6f6f8;--bronze:#987347;--bronze-light:#f0e7da;--muted:#81828c;--line:#e5e5ea;color-scheme:light}*{box-sizing:border-box}body{margin:0;font-size:13px}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.4}a{color:inherit;text-decoration:none}button{border:0}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[hidden]{display:none!important}:focus-visible{outline:3px solid #b69364;outline-offset:4px}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.topbar{height:82px;background:#fdfdfde8;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;position:relative;z-index:5}.brand{display:flex;align-items:center;gap:10px;font-size:20px;letter-spacing:-.025em;font-weight:850}.brand img{filter:invert(1);object-fit:contain;width:20px;height:29px}.brand-divider{width:1px;height:24px;background:var(--line);margin-inline:14px}.hub-label{font-size:10px;letter-spacing:.17em;font-weight:600;color:#7c7e88}.topbar-actions{display:flex;gap:29px;align-items:center}.shop-link{font-size:11px;color:#74757f}.shop-link span{margin-left:10px}.button{display:inline-flex;gap:13px;align-items:center;justify-content:center;padding:13px 21px;min-height:43px;border-radius:9px;font-weight:600;font-size:11px;transition:background .18s,transform .18s;white-space:nowrap}.dark{background:#202124;color:#fff;border:1px solid #202124}.dark:hover:enabled{background:#38393d}.outline{background:transparent;border:1px solid #dadbe1;color:#555660}.outline:hover:enabled{background:#ececf1}.button svg{width:16px;height:16px}.text-button{background:none;color:var(--bronze);font-weight:600;font-size:11px;padding:8px 0}.text-button:hover{color:#684a2b}.app-shell{display:grid;grid-template-columns:219px minmax(0,1fr);min-height:calc(100vh - 82px)}.sidebar{border-right:1px solid var(--line);padding:33px 17px 140px;background:#f3f3f6;display:flex;flex-direction:column}.sidebar-label{font-size:9px;letter-spacing:.16em;color:#9798a0;margin:0 14px 19px}.device-mini{display:flex;align-items:center;gap:13px;margin:0 12px 30px}.device-mini-art{height:64px;display:grid;place-items:center;background:#e8e8ed;border:1px solid #dfdfe5;border-radius:11px;width:51px}.device-mini img{height:51px;width:auto;filter:drop-shadow(0 3px 3px #1113)}.device-mini strong{display:block;font-size:12px;font-weight:750;letter-spacing:.04em}.device-mini div>span{display:flex;gap:5px;align-items:center;font-size:9px;color:#8d8e97;margin-top:8px;white-space:nowrap}.status-dot{width:6px;height:6px;border-radius:50%;background:#aaaab2;display:inline-block;flex-shrink:0}.status-dot.online{background:#7d9174;box-shadow:0 0 0 3px #7d917418}.sidebar nav{display:grid;gap:6px}.nav-item{width:100%;display:flex;align-items:center;gap:12px;padding:14px 14px;border-radius:9px;text-align:left;font-size:11px;font-weight:550;color:#72737e;background:none;transition:background .2s,color .2s}.nav-item svg{width:17px;height:17px}.nav-item:hover{background:#e9e9ee}.nav-item.active{color:#80603b;background:#eae2d7;font-weight:650}.sidebar-bottom{margin-top:auto;padding:65px 14px 0}.bronze-line{display:block;width:25px;height:2px;background:#b48a58;margin-bottom:16px}.sidebar-bottom strong{font-size:19px;letter-spacing:-.03em;line-height:1.45;font-weight:600}.sidebar-bottom p{font-size:8px;letter-spacing:.12em;color:#94959f;margin:16px 0 34px}.sidebar-bottom a{font-size:10px;color:#8b7b67}.sidebar-bottom small{display:block;font-size:8px;color:#a4a4ad;margin-top:15px;letter-spacing:.09em}main{padding:35px clamp(24px,3vw,50px) 135px;max-width:1620px;width:100%;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:26px}.eyebrow{font-size:8px;color:#9696a0;letter-spacing:.17em;font-weight:600;margin:0 0 12px}h1{font-size:clamp(27px,2.7vw,40px);font-weight:650;letter-spacing:-.055em;margin:0;line-height:1.2}.page-heading p:last-child{font-size:11px;color:#888995;margin:12px 0 0}.connection-badge{border:1px solid #dedee6;background:#efeff3;display:flex;align-items:center;gap:7px;border-radius:25px;padding:8px 13px;color:#9696a0;font-size:9px;white-space:nowrap}.connection-badge.connected{background:#eef2ec;color:#65745d;border-color:#dce3d7}.notice{display:flex;align-items:center;gap:13px;border:1px solid #e6dfd4;background:#f5f0e9;border-radius:11px;padding:14px 17px;margin-bottom:24px;line-height:1.6;color:#947850}.notice>svg{width:18px}.notice>div{flex:1}.notice strong{font-size:10px;font-weight:650;display:block;color:#80633e}.notice span{font-size:10px;display:block;color:#9a8a75;margin-top:2px}.notice>.text-button{flex-shrink:0;padding-inline:10px}.notice>.text-button span{display:inline;font-size:12px;margin-left:8px}.notice.error{border-color:#dfc6bd;background:#faf0ec;color:#9a654e}.notice.error strong,.notice.error span{color:#915b45}.workbench{display:grid;grid-template-columns:minmax(220px,.78fr) minmax(0,1.45fr);gap:23px;align-items:start}.product-card{border-radius:19px;position:sticky;top:24px;overflow:hidden;background:linear-gradient(140deg,#e9e9ef,#eeeef3 65%,#e5e5ed);border:1px solid #e3e3e9;padding:25px 25px 0}.product-card-top{display:flex;align-items:center;justify-content:space-between}.product-card-top>span:first-child{font-size:18px;font-weight:800;font-style:italic;letter-spacing:-.04em}.product-card-top em{color:#a68050;font-style:italic}.model-mark{font-size:9px;color:#a0a0ab;border:1px solid #d6d6df;padding:5px 9px;border-radius:20px}.mouse-stage{height:365px;display:flex;align-items:center;justify-content:center;position:relative;padding:23px 0 17px}.mouse-stage>img{height:100%;width:auto;max-width:100%;object-fit:contain;position:relative;z-index:1;filter:drop-shadow(0 20px 13px #25253326);animation:mouse-in .8s ease-out both}.mouse-halo{position:absolute;width:95%;aspect-ratio:1;top:15%;border:1px solid #ffffff6b;border-radius:50%;box-shadow:0 0 0 27px #ffffff13,0 0 0 54px #ffffff10}.mouse-hotspot{position:absolute;bottom:55px;right:4px;z-index:2;background:#fff9;border:1px solid #fff;border-radius:10px;backdrop-filter:blur(10px);padding:11px 14px;display:flex;flex-direction:column;gap:3px;text-align:center;font-size:19px;font-weight:600;letter-spacing:-.03em;box-shadow:0 6px 18px #3030400c}.mouse-hotspot span{font-size:7px;letter-spacing:.15em;color:#96929a;font-weight:500}.product-card-bottom{border-top:1px solid #d9d9e3;padding-top:20px}.product-caption{font-size:7px;color:#a2a2ad;font-weight:500;letter-spacing:.18em}.product-specs{display:flex;justify-content:space-between;gap:12px;margin:18px 0 24px}.product-specs small{font-size:7px;letter-spacing:.12em;color:#9d9da8;display:block;margin-bottom:6px}.product-specs strong{font-size:11px;font-weight:650;letter-spacing:-.015em}.device-status-line{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #d9d9e3;margin-inline:-25px;padding:15px 25px;font-size:8px;color:#92929d;background:#ffffff26;gap:10px}.device-status-line>span:first-child{display:flex;gap:7px;align-items:center}.settings-column{min-width:0}.view{display:grid;gap:19px}.card{border-radius:16px;background:#fff;border:1px solid #e7e7ed;padding:26px 28px;box-shadow:0 3px 5px #20202b02}.card-title{display:flex;justify-content:space-between;align-items:center;gap:10px}.section-index{font-size:7px;font-weight:600;color:#a0a0aa;letter-spacing:.15em;display:block;margin-bottom:10px}h2{font-size:18px;font-weight:600;letter-spacing:-.035em;margin:0;line-height:1.35}.card-description{font-size:10px;color:#91919d;line-height:1.8;margin:13px 0 21px}.stage-count-label{font-size:8px;color:#a0a0aa;display:flex;align-items:center;gap:6px;white-space:nowrap}select{color:#686874;border:1px solid #e2e2e9;background:#f9f9fb;padding:8px;border-radius:7px;font-size:10px}.dpi-value{display:flex;align-items:baseline;gap:10px;margin:24px 0 22px}.dpi-value>strong{font-size:58px;font-weight:550;letter-spacing:-.075em;line-height:1}.dpi-value>span{color:#a0a0aa;font-size:11px}.dpi-value>.dpi-tag{margin-left:auto;font-size:8px;letter-spacing:.07em;color:#a0a0aa}.dpi-stages{display:flex;gap:7px;margin-bottom:25px;flex-wrap:wrap}.dpi-stage{background:#f6f6f8;border:1px solid #ececf0;border-radius:8px;min-height:48px;min-width:46px;flex:1;padding:7px 8px;color:#898995;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:10px;font-weight:600;position:relative;transition:background .2s}.dpi-stage small{font-size:7px;font-weight:500;color:#aaaab4}.dpi-stage.active{background:var(--bronze-light);border-color:#d2b38b;color:#84623b}.dpi-stage.active small{color:#b18c5e}.range-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:9px;color:#90909d;margin:15px 0 12px}.value-input{display:flex;align-items:center;gap:7px;border:1px solid #e3e3e9;border-radius:6px;padding:7px 8px;color:#9999a5;font-size:8px}.value-input input{width:56px;background:none;border:0;color:#5b5b67;text-align:right;font-size:10px;-moz-appearance:textfield}.value-input input::-webkit-inner-spin-button{-webkit-appearance:none}input[type=range]{display:block;accent-color:var(--bronze);width:100%;height:5px;cursor:pointer;margin:5px 0 0}input[type=range]::-webkit-slider-runnable-track{height:3px;background:#e7e1d8;border-radius:9px}input[type=range]::-webkit-slider-thumb{-webkit-appearance:auto;margin-top:-6px}.range-limits{display:flex;justify-content:space-between;font-size:7px;color:#b0b0bb;margin-top:14px}.setting-row{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:19px 0;border-bottom:1px solid #eeeef2}.setting-row:last-child{border:0;padding-bottom:0}.setting-row strong{font-size:11px;font-weight:550}.setting-row p{font-size:9px;line-height:1.8;color:#a0a0aa;margin:5px 0 0}.axis-row{margin-top:19px;padding-top:19px;border-top:1px solid #eeeef2}.axis-row strong{font-size:9px}.axis-row p{font-size:8px}.switch{display:inline-block;position:relative;flex-shrink:0;width:32px;height:19px}.switch input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer;z-index:1}.switch>span{display:block;width:100%;height:100%;border-radius:20px;background:#e6e6ec;transition:background .2s}.switch>span:after{content:'';position:absolute;top:3px;left:3px;width:13px;height:13px;background:white;box-shadow:0 1px 3px #0001;border-radius:50%;transition:transform .2s}.switch input:checked+span{background:#ac8c65}.switch input:checked+span:after{transform:translateX(13px)}.switch input:focus-visible+span{outline:2px solid #a98455;outline-offset:3px}.switch input:disabled+span{opacity:.35}.latency{color:#a0a0aa;font-size:8px;white-space:nowrap}.latency strong{font-size:15px;font-weight:500;color:#97754c}.polling-rates{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.polling-rates button{padding:11px 3px;border-radius:7px;border:1px solid #e8e8ef;background:#f7f7fa;font-size:10px;color:#8b8b97;white-space:nowrap}.polling-rates button.high-rate{color:#a27e51;background:#fbf7f1;border-color:#e9ddcc}.polling-rates button.active{background:#ece3d6;border-color:#c6a171;color:#82603a;font-weight:650}.polling-rates button:disabled{opacity:.35}.bronze-note{font-size:8px;line-height:1.9;color:#aa8c64;margin:16px 0 0}.rate-card{padding-block:22px}.content-footer{display:flex;justify-content:space-between;gap:15px;color:#aaaab4;font-size:7px;letter-spacing:.08em;margin-top:28px}.content-footer a{letter-spacing:0}.savebar{position:fixed;z-index:8;bottom:0;left:219px;right:0;padding:17px clamp(24px,3vw,50px);display:flex;align-items:center;justify-content:space-between;gap:15px;background:#fdfdfdf0;backdrop-filter:blur(15px);border-top:1px solid #e5e5ea}.savebar>div:first-child{display:flex;align-items:center;gap:11px}.save-status-icon{color:#b3b4bd;border:1px solid #e0e0e6;border-radius:50%;height:28px;width:28px;display:grid;place-items:center}.save-status-icon svg{width:13px;height:13px}.savebar strong{font-size:9px;font-weight:600;color:#73737f;display:block;margin-bottom:4px}.savebar span#save-description{color:#a3a3af;font-size:8px;display:block;max-width:300px;line-height:1.6}.savebar-actions{display:flex;gap:10px}.savebar .button{font-size:9px;min-height:39px}.savebar .button svg{width:15px}.lod-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.lod-option{text-align:left;background:#f8f8fa;border:1px solid #e7e7ec;border-radius:10px;padding:20px 15px;color:#868693}.lod-option strong{font-size:24px;font-weight:500;letter-spacing:-.05em}.lod-option span{font-size:9px}.lod-option small{display:block;font-size:8px;margin-top:10px}.lod-option.active{color:#87633b;background:#f5eee5;border-color:#d4b58d}.chip{font-size:8px;white-space:nowrap;background:#f3f3f6;border:1px solid #e9e9ee;border-radius:20px;padding:7px 10px;color:#9696a0}.quiet-note{font-size:9px;line-height:1.8;color:#a0a0aa;margin:22px 0 0}.debounce-row{margin-top:22px}.button-mapping{display:flex;align-items:center;gap:12px;padding:17px 0;border-bottom:1px solid #eeeef3}.button-mapping:last-child{border:0}.button-number{background:#f2ece3;color:#a17c4a;width:27px;height:27px;display:grid;place-items:center;border-radius:7px;font-size:10px}.button-mapping>span:nth-child(2){font-size:10px;flex:1}.button-mapping select{width:180px;max-width:50%;min-height:37px}.text-input{font-size:11px;padding:13px 12px;border:1px solid #e1e1e9;border-radius:8px;min-width:0;width:100%;background:#fafafc;color:#4b4b55}.field-label{font-size:10px;color:#92929e;display:block;margin-bottom:9px}.profile-save>div{display:flex;gap:10px}.profile-save{margin-bottom:22px}.profiles-list{display:grid;gap:10px}.profile-item{border:1px solid #e7e7ed;border-radius:10px;padding:16px;display:flex;gap:12px;align-items:center;justify-content:space-between}.profile-item strong{font-size:11px;font-weight:600;overflow-wrap:anywhere}.profile-item p{font-size:8px;color:#9a9aa5;margin:7px 0 0}.profile-item>div:last-child{display:flex;gap:12px}.profile-file-actions,.button-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:24px}.profiles-empty{padding:25px 15px;text-align:center;background:#f8f8fb;border-radius:10px;font-size:10px;color:#a1a1ac;line-height:1.8}.device-info{margin:22px 0 0}.device-info>div{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid #eeeef3;padding:15px 0;font-size:10px}.device-info dt{color:#93939e}.device-info dd{margin:0;text-align:right;overflow-wrap:anywhere}.help-card{display:flex;gap:18px;background:#f0e9df66;border-color:#e6dcd0}.help-card>svg{color:#a18155;width:26px;height:26px}.help-card h2{font-size:15px}.help-card p{font-size:10px;color:#96908a;line-height:1.8}.help-card a{font-size:10px;color:#9b784a}.toast{position:fixed;bottom:100px;left:calc(50% + 109px);transform:translateX(-50%);z-index:15;background:#2a2a2e;color:white;padding:15px 22px;border-radius:11px;box-shadow:0 10px 30px #0002;max-width:calc(100vw - 40px);font-size:11px;line-height:1.7;text-align:center}.toast.error{background:#78513e}.macro-record-area{margin:20px 0 0;min-height:100px;border:1px dashed #d2c6b7;border-radius:10px;padding:25px;text-align:center;font-size:11px;line-height:1.8;color:#b09a7f;background:#fbf8f4}.macro-record-area.recording{border-color:#a77d47;background:#f2e9dc}.macro-events{font-size:10px;line-height:2;color:#90909d;max-height:240px;overflow:auto}.mono{font-variant-numeric:tabular-nums}.unavailable{opacity:.5}@keyframes mouse-in{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1550px){main{padding-top:45px}.mouse-stage{height:430px}.product-card{padding-top:30px}.card{padding:32px}.dpi-card{padding-bottom:30px}.dpi-value{margin-block:32px}.dpi-stages{margin-bottom:30px}.rate-card{padding-block:28px}.workbench{gap:30px}}
@media(max-width:1150px){.app-shell{grid-template-columns:185px minmax(0,1fr)}.sidebar{padding-inline:12px}.nav-item{font-size:10px;gap:9px;padding-inline:10px}.device-mini{margin-inline:7px;gap:8px}.sidebar-bottom{padding-inline:10px}.workbench{grid-template-columns:minmax(180px,.65fr) minmax(0,1.3fr);gap:16px}main{padding-inline:23px}.card{padding:22px}.product-card{padding-inline:18px}.mouse-stage{height:320px}.product-card-top>span:first-child{font-size:15px}.product-specs{display:grid;gap:15px}.device-status-line{margin-inline:-18px;padding-inline:18px}.product-caption{font-size:6px;letter-spacing:.1em}.savebar{left:185px;padding-inline:23px}.savebar span#save-description{max-width:190px}.toast{left:calc(50% + 92px)}.dpi-value>strong{font-size:51px}.dpi-stage{padding-inline:4px}.polling-rates{gap:4px}.polling-rates button{font-size:8px}h2{font-size:16px}.sidebar-bottom strong{font-size:18px}}
@media(max-width:900px){.workbench{grid-template-columns:1fr}.product-card{display:none}.page-heading{align-items:start}.topbar{padding-inline:22px}.topbar-actions{gap:15px}.brand-divider{margin-inline:7px}.brand{font-size:18px}.hub-label{font-size:8px}.card{padding:26px}.polling-rates button{font-size:10px}.savebar{align-items:center}.savebar-actions{gap:7px}.savebar .button{padding:12px}.savebar .button svg{display:none}.savebar span#save-description{max-width:180px}.notice>.text-button{display:none}.content-footer>span:nth-child(2){display:none}}
@media(max-width:680px){.topbar{height:70px;padding-inline:18px}.topbar-actions{gap:0}.shop-link{display:none}.brand{font-size:16px;gap:7px}.brand img{width:16px;height:24px}.brand-divider{height:18px;margin-inline:5px}.hub-label{font-size:7px;letter-spacing:.06em}.topbar .connect-button{padding:10px 12px;font-size:8px;min-height:36px;gap:7px}.topbar .connect-button svg{width:13px}.app-shell{display:block}.sidebar{display:block;padding:0;border:0;position:relative;z-index:4;background:#f3f3f6;border-bottom:1px solid var(--line)}.sidebar-label,.device-mini,.sidebar-bottom{display:none}.sidebar nav{display:flex;overflow:auto;padding:10px 14px;gap:5px;scrollbar-width:none}.nav-item{width:auto;flex-shrink:0;padding:11px;font-size:9px;gap:6px;min-height:38px}.nav-item svg{width:14px;height:14px}main{padding:26px 17px 170px}.eyebrow{font-size:6px;letter-spacing:.12em}h1{font-size:28px}.page-heading{gap:10px;margin-bottom:22px}.page-heading p:last-child{font-size:10px;line-height:1.7;max-width:230px}.connection-badge{font-size:7px;padding:7px 9px;margin-top:24px;gap:5px}.connection-badge .status-dot{width:5px;height:5px}.notice{padding:13px;align-items:start;gap:10px;margin-bottom:18px}.notice>svg{margin-top:1px;flex-shrink:0;width:16px}.notice strong{font-size:9px}.notice span{font-size:9px;line-height:1.8}.card{padding:22px 19px;border-radius:13px}.section-index{font-size:6px}h2{font-size:16px}.stage-count-label{font-size:7px}.stage-count-label select{padding:7px}.dpi-value>strong{font-size:58px}.dpi-value{margin-block:25px}.dpi-stages{gap:6px}.dpi-stage{min-width:45px;font-size:10px}.dpi-tag{font-size:7px!important}.polling-rates{grid-template-columns:repeat(4,1fr);gap:7px}.polling-rates button{font-size:11px;padding:12px 6px}.card-description{font-size:9px}.bronze-note{font-size:8px}.axis-row strong{font-size:9px}.axis-row p{font-size:8px;max-width:220px}.range-heading{font-size:10px}.range-limits{font-size:8px}.savebar{left:0;padding:13px 17px 17px;flex-wrap:wrap;gap:12px}.savebar>div:first-child{width:100%}.savebar strong{font-size:9px}.savebar span#save-description{font-size:8px;max-width:100%}.save-status-icon{height:24px;width:24px}.savebar-actions{width:100%;gap:9px}.savebar-actions .button{flex:1;font-size:9px;min-height:40px}.toast{left:50%;bottom:158px;min-width:240px}.content-footer{font-size:7px;line-height:1.6}.lod-option{padding:17px 11px}.lod-option strong{font-size:22px}.setting-row strong{font-size:10px}.setting-row p{font-size:9px}.button-mapping{gap:10px}.button-mapping select{font-size:9px;width:155px}.button-number{width:23px;height:23px;font-size:9px}.button-mapping>span:nth-child(2){font-size:9px}.profile-save>div{flex-wrap:wrap}.profile-save .button{width:100%}.profile-item{padding:13px;flex-wrap:wrap}.profile-item>div:last-child{margin-left:auto}.profile-file-actions .button{flex:1;font-size:9px}.device-info>div{font-size:9px}.help-card{gap:12px}.help-card>svg{width:20px}.help-card h2{font-size:14px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Readable controls at desktop and mobile sizes. */
.card-description{font-size:11px;color:#7e7e89}.range-heading{font-size:10px;color:#81818d}.value-input input{font-size:11px}.dpi-stage{font-size:11px}.dpi-stage small{font-size:8px}.setting-row p{font-size:10px;color:#8a8a96}.axis-row p{font-size:9px}.axis-row strong{font-size:10px}.quiet-note{font-size:10px;color:#8a8a96}.bronze-note{font-size:10px}.polling-rates button{font-size:11px}.notice span{font-size:11px}.notice strong{font-size:11px}.savebar strong{font-size:10px}.savebar span#save-description{font-size:9px}.device-info>div{font-size:11px}.profile-item p{font-size:10px}.button-mapping>span:nth-child(2){font-size:11px}
input[type=range]{appearance:none;-webkit-appearance:none;background:transparent;border:0;outline-offset:7px;height:6px}input[type=range]::-webkit-slider-runnable-track{height:3px;border:0;background:#e5ded5}input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:14px;height:14px;background:#a47e4f;border:2px solid white;border-radius:50%;box-shadow:0 0 0 1px #a47e4f40;margin-top:-5px}input[type=range]::-moz-range-thumb{width:12px;height:12px;background:#a47e4f;border:2px solid white;border-radius:50%}
@media(max-width:680px){.page-heading{flex-wrap:wrap}.page-heading>div{min-width:0;flex:1 1 220px}.connection-badge{margin-top:0}.notice span,.notice strong{font-size:10px}.card-description{font-size:10px}.device-info>div{font-size:10px}.button-mapping>span:nth-child(2){font-size:10px}.polling-rates button{font-size:11px}}
@media(max-width:380px){.hub-label,.brand-divider{display:none}.brand{font-size:15px}.page-heading h1{font-size:26px}.dpi-value>.dpi-tag{display:none}.button-mapping select{max-width:53%;font-size:8px}}

.card-title{flex-wrap:wrap}.card-title>div{min-width:0;flex:1 1 190px}.card-title>.chip{max-width:100%;white-space:normal}


/* ============================================================
   Theme switch, stable page headings and page transitions
   ============================================================ */
.theme-switch{display:flex;gap:2px;padding:3px;border-radius:10px;border:1px solid #e3e3e9;background:#ececf0;margin:0 12px 22px;width:max-content;align-self:flex-start}
.theme-option{width:30px;height:26px;display:grid;place-items:center;border-radius:7px;background:none;color:#8a8b96;transition:background-color .25s ease,color .25s ease,box-shadow .25s ease}
.theme-option svg{width:15px;height:15px}
.theme-option:hover{color:#5b5c67}
.theme-option[aria-pressed=true]{background:#fff;color:#80603b;box-shadow:0 1px 3px #1a1c2214}

/* Smooth cross-fade for the whole palette while the theme is changing. */
html.theming,html.theming *,html.theming *::before,html.theming *::after{transition:background-color .45s ease,color .45s ease,border-color .45s ease,box-shadow .45s ease,opacity .45s ease,fill .45s ease,stroke .45s ease!important}

/* A fixed heading box keeps the layout still when the section title changes. */
.page-heading{min-height:112px}
.page-heading>div{transition:opacity .16s ease,transform .16s ease}
.page-heading.switching>div{opacity:0;transform:translateY(-5px)}
@media(max-width:900px){.page-heading{min-height:118px}}
@media(max-width:680px){.page-heading{min-height:132px}}

/* Section transitions: the incoming view and its cards settle in. */
@keyframes view-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes card-in{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}
.view.view-enter{animation:view-in .34s cubic-bezier(.22,.68,.26,1) both}
.view.view-enter>.card{animation:card-in .44s cubic-bezier(.22,.68,.26,1) both}
.view.view-enter>.card:nth-child(2){animation-delay:.05s}
.view.view-enter>.card:nth-child(3){animation-delay:.1s}

@media(max-width:680px){
  .theme-switch{margin:10px 14px 0}
}

/* ============================================================
   Dark theme — the "Instrument" palette
   ============================================================ */
html[data-theme=dark]{--line:#252b31;--muted:#98a1a9;--bronze:#d3aa5a;--bronze-light:#2a2418;color-scheme:dark;background:#0e1113;color:#eef1f4}
html[data-theme=dark] body{background:#0e1113;color:#eef1f4}
html[data-theme=dark] :focus-visible{outline-color:#d3aa5a}

html[data-theme=dark] .topbar{background:#12161ae8;border-bottom-color:#23282e}
html[data-theme=dark] .brand img{filter:none}
html[data-theme=dark] .brand-divider{background:#2a3037}
html[data-theme=dark] .hub-label{color:#8e979f}
html[data-theme=dark] .shop-link{color:#9aa3ac}
html[data-theme=dark] .shop-link:hover{color:#eef1f4}

html[data-theme=dark] .button.dark{background:linear-gradient(180deg,#e3bf7e,#c49b4f);border-color:#00000033;color:#241c0c}
html[data-theme=dark] .button.dark:hover:enabled{background:linear-gradient(180deg,#eccb8e,#d0a75a)}
html[data-theme=dark] .button.outline{background:transparent;border-color:#333940;color:#c9d0d6}
html[data-theme=dark] .button.outline:hover:enabled{background:#1f252b}
html[data-theme=dark] .text-button{color:#d3aa5a}
html[data-theme=dark] .text-button:hover{color:#e8c98d}

html[data-theme=dark] .app-shell{background:#0e1113}
html[data-theme=dark] .sidebar{background:#12161a;border-right-color:#23282e}
html[data-theme=dark] .sidebar-label{color:#8a929b}
html[data-theme=dark] .device-mini-art{background:radial-gradient(120% 100% at 50% 15%,#2b333b,#171b20);border-color:#2a3037}
html[data-theme=dark] .device-mini img{filter:drop-shadow(0 3px 3px #0008)}
html[data-theme=dark] .device-mini strong{color:#eef1f4}
html[data-theme=dark] .device-mini div>span{color:#8e979f}
html[data-theme=dark] .status-dot{background:#5a636b}
html[data-theme=dark] .status-dot.online{background:#7fae7a;box-shadow:0 0 0 3px #7fae7a1f}
html[data-theme=dark] .nav-item{color:#97a0a9}
html[data-theme=dark] .nav-item:hover{background:#1c2228}
html[data-theme=dark] .nav-item.active{background:#2a2418;color:#e6c48e}
html[data-theme=dark] .sidebar-bottom strong{color:#eef1f4}
html[data-theme=dark] .sidebar-bottom p{color:#8e979f}
html[data-theme=dark] .sidebar-bottom a{color:#b79a72}
html[data-theme=dark] .sidebar-bottom small{color:#6f7881}
html[data-theme=dark] .bronze-line{background:#8d7038}

html[data-theme=dark] .theme-switch{background:#1b2026;border-color:#2a3037}
html[data-theme=dark] .theme-option{color:#8e979f}
html[data-theme=dark] .theme-option:hover{color:#eef1f4}
html[data-theme=dark] .theme-option[aria-pressed=true]{background:#2a2418;color:#e6c48e;box-shadow:none}

html[data-theme=dark] .eyebrow{color:#7f8891}
html[data-theme=dark] h1{color:#f1f3f5}
html[data-theme=dark] .page-heading p:last-child{color:#9aa3ac}
html[data-theme=dark] .connection-badge{background:#1b2026;border-color:#2a3037;color:#9aa3ac}
html[data-theme=dark] .connection-badge.connected{background:#18241a;border-color:#2c3d2e;color:#a8c4a2}

html[data-theme=dark] .notice{background:#221d14;border-color:#3a3020;color:#c9b184}
html[data-theme=dark] .notice strong{color:#e8c98d}
html[data-theme=dark] .notice span{color:#b3a184}
html[data-theme=dark] .notice.error{background:#2a1c17;border-color:#4a2f26;color:#d8a68c}
html[data-theme=dark] .notice.error strong,html[data-theme=dark] .notice.error span{color:#d8a68c}

html[data-theme=dark] .product-card{background:linear-gradient(140deg,#1a1f24,#171c21 65%,#14181d);border-color:#252b31}
html[data-theme=dark] .product-card-top>span{color:#eef1f4}
html[data-theme=dark] .model-mark{border-color:#333940;color:#98a1a9}
html[data-theme=dark] .mouse-stage>img{filter:drop-shadow(0 22px 16px #00000080)}
html[data-theme=dark] .mouse-halo{border-color:#ffffff14;box-shadow:0 0 0 27px #ffffff05,0 0 0 54px #ffffff04}
html[data-theme=dark] .mouse-hotspot{background:#0f1316cc;border-color:#2a3037;color:#f2f4f6}
html[data-theme=dark] .mouse-hotspot span{color:#9aa3ac}
html[data-theme=dark] .product-card-bottom{border-top-color:#252b31}
html[data-theme=dark] .product-caption{color:#8e979f}
html[data-theme=dark] .product-specs small{color:#8e979f}
html[data-theme=dark] .product-specs strong{color:#eef1f4}
html[data-theme=dark] .device-status-line{background:#ffffff06;border-top-color:#252b31;color:#98a1a9}

html[data-theme=dark] .card{background:#161a1e;border-color:#252b31;box-shadow:none}
html[data-theme=dark] .section-index{color:#8e979f}
html[data-theme=dark] h2{color:#eef1f4}
html[data-theme=dark] .card-description{color:#9aa3ac}
html[data-theme=dark] .chip{background:#1b2026;border-color:#2a3037;color:#9aa3ac}
html[data-theme=dark] .quiet-note{color:#8e979f}
html[data-theme=dark] .bronze-note{color:#a98c5e}

html[data-theme=dark] .stage-count-label{color:#8e979f}
html[data-theme=dark] select{background:#1b2026;border-color:#2a3037;color:#c9d0d6}
html[data-theme=dark] .dpi-value>strong{color:#fff}
html[data-theme=dark] .dpi-value>span,html[data-theme=dark] .dpi-value>.dpi-tag{color:#8e979f}
html[data-theme=dark] .dpi-stage{background:#1b2026;border-color:#262d34;color:#9aa3ac}
html[data-theme=dark] .dpi-stage small{color:#6f7881}
html[data-theme=dark] .dpi-stage.active{background:#2a2418;border-color:#8d7038;color:#e6c48e}
html[data-theme=dark] .dpi-stage.active small{color:#b18c5e}

html[data-theme=dark] .range-heading{color:#8e979f}
html[data-theme=dark] .value-input{border-color:#2a3037;color:#8e979f}
html[data-theme=dark] .value-input input{color:#eef1f4}
html[data-theme=dark] .range-limits{color:#6f7881}
html[data-theme=dark] input[type=range]::-webkit-slider-runnable-track{background:#2a3037}
html[data-theme=dark] input[type=range]::-webkit-slider-thumb{border-color:#161a1e;box-shadow:0 0 0 1px #d3aa5a66}
html[data-theme=dark] input[type=range]::-moz-range-track{background:#2a3037}
html[data-theme=dark] input[type=range]::-moz-range-thumb{border-color:#161a1e}

html[data-theme=dark] .setting-row{border-color:#22282e}
html[data-theme=dark] .setting-row strong{color:#eef1f4}
html[data-theme=dark] .setting-row p{color:#9aa3ac}
html[data-theme=dark] .axis-row{border-top-color:#22282e}
html[data-theme=dark] .switch>span{background:#2b3037}
html[data-theme=dark] .switch input:checked+span{background:#c9a05f}
html[data-theme=dark] .latency{color:#8e979f}
html[data-theme=dark] .latency strong{color:#d3aa5a}

html[data-theme=dark] .polling-rates button{background:#1b2026;border-color:#262d34;color:#9aa3ac}
html[data-theme=dark] .polling-rates button.high-rate{background:#221d14;border-color:#3a3020;color:#c9a871}
html[data-theme=dark] .polling-rates button.active{background:#2a2418;border-color:#8d7038;color:#e6c48e}

html[data-theme=dark] .lod-option{background:#1b2026;border-color:#262d34;color:#9aa3ac}
html[data-theme=dark] .lod-option.active{background:#2a2418;border-color:#8d7038;color:#e6c48e}

html[data-theme=dark] .button-mapping{border-color:#22282e}
html[data-theme=dark] .button-mapping>span:nth-child(2){color:#eef1f4}
html[data-theme=dark] .button-number{background:#2a2418;color:#d3aa5a}

html[data-theme=dark] .text-input{background:#1b2026;border-color:#2a3037;color:#eef1f4}
html[data-theme=dark] .text-input::placeholder{color:#6f7881}
html[data-theme=dark] .field-label{color:#8e979f}
html[data-theme=dark] .profile-item{border-color:#262b31}
html[data-theme=dark] .profile-item strong{color:#eef1f4}
html[data-theme=dark] .profile-item p{color:#8e979f}
html[data-theme=dark] .profiles-empty{background:#1b2026;color:#8e979f}

html[data-theme=dark] .device-info>div{border-color:#22282e}
html[data-theme=dark] .device-info dt{color:#8e979f}
html[data-theme=dark] .device-info dd{color:#eef1f4}
html[data-theme=dark] .help-card{background:#1d1a13;border-color:#332c1e}
html[data-theme=dark] .help-card>svg{color:#d3aa5a}
html[data-theme=dark] .help-card h2{color:#eef1f4}
html[data-theme=dark] .help-card p{color:#a79c8b}
html[data-theme=dark] .help-card a{color:#d3aa5a}

html[data-theme=dark] .macro-record-area{background:#171410;border-color:#3a3327;color:#b09a7f}
html[data-theme=dark] .macro-record-area.recording{background:#221d14;border-color:#8d7038}
html[data-theme=dark] .macro-events{color:#9aa3ac}

html[data-theme=dark] .savebar{background:#0e1113eb;border-top-color:#252b31}
html[data-theme=dark] .save-status-icon{border-color:#2a3037;color:#7f8891}
html[data-theme=dark] .savebar strong{color:#c9d0d6}
html[data-theme=dark] .savebar span#save-description{color:#8e979f}
html[data-theme=dark] .content-footer{color:#6f7881}
html[data-theme=dark] .toast{background:#2b3138;color:#fff}
html[data-theme=dark] .toast.error{background:#7a4a35}

/* ============================================================
   Layout stability: the left panel and the sidebar footer must not
   follow the height of the section content.
   ============================================================ */
html{scrollbar-gutter:stable}
.app-shell{position:relative}
.app-shell:before{content:'';position:absolute;top:0;bottom:0;left:0;width:219px;background:#f3f3f6;border-right:1px solid var(--line);pointer-events:none}
.sidebar{background:transparent;border-right:0;align-self:start;min-height:calc(100vh - 82px);position:relative;z-index:1}
@media(max-width:1150px){.app-shell:before{width:185px}}
@media(max-width:680px){html{scrollbar-gutter:auto}.app-shell:before{display:none}.sidebar{background:#f3f3f6;border-bottom:1px solid var(--line);min-height:0;align-self:auto}}
html[data-theme=dark] .app-shell:before{background:#12161a;border-right-color:#23282e}
html[data-theme=dark] .sidebar{background:transparent}
@media(max-width:680px){html[data-theme=dark] .sidebar{background:#12161a;border-bottom-color:#23282e}}

/* The page heading keeps its baseline: no vertical centring, no shift while fading. */
.page-heading{align-items:flex-start}
.page-heading .connection-badge{margin-top:2px}
.page-heading.switching>div{opacity:0;transform:none}

/* The page column must not be vertically centred inside the grid row:
   when a section was shorter than the sidebar, main{margin:auto} pushed the
   whole column down and the page title "jumped" between sections. */
main{margin:0 auto}

/* Match the storefront's readable Montserrat scale in both palettes. */
:root{--readable-muted:#595b65;--readable-accent:#765329}
html[data-theme=dark]{--readable-muted:#abb4be;--readable-accent:#e0bd83}
body{font-size:15px;line-height:1.5}
h1{font-size:clamp(30px,4.1vw,52px);overflow-wrap:anywhere}
h2{font-size:clamp(19px,2.05vw,28px);line-height:1.22}
.page-heading p:last-child{font-size:15px;line-height:1.55}
.nav-item,.button,.text-button,.card-description,.notice strong,.notice span,.setting-row strong,.axis-row strong,.button-mapping>span:nth-child(2),.button-mapping select,.field-label,.text-input,.device-info>div,.profile-item p,.help-card p,.macro-record-area,.macro-events{font-size:14px}
.sidebar-label,.eyebrow,.section-index,.stage-count-label,.range-heading,.range-limits,.quiet-note,.bronze-note,.connection-badge,.product-caption,.device-status-line,.model-mark,.chip,.content-footer,.savebar span#save-description,.lod-option span,.device-mini div>span{font-size:12px}
.savebar strong,.dpi-stage,.polling-rates button,.value-input input,.device-mini strong{font-size:14px}
.dpi-stage small{font-size:11px}
.setting-row p,.axis-row p,.shop-link,.sidebar-bottom a,.help-card a,.product-specs strong{font-size:13px}
.product-specs small,.sidebar-bottom small,.hub-label{font-size:11px}
html[data-theme] :is(.eyebrow,.section-index,.sidebar-label,.page-heading p:last-child,.card-description,.stage-count-label,.range-heading,.range-limits,.quiet-note,.setting-row p,.axis-row p,.device-info dt,.content-footer,.device-mini div>span,.sidebar-bottom small,.savebar span#save-description,.profile-item p,.product-caption,.lod-option span,.help-card p,.macro-events,.field-label,.chip,.product-specs small,.hub-label,.model-mark,.device-status-line){color:var(--readable-muted)}
html[data-theme] .macro-record-area{color:var(--readable-accent)}
html[data-theme] :is(.bronze-note,.text-button,.help-card a,.sidebar-bottom a){color:var(--readable-accent)}
html[data-theme] :is(.notice span,.notice strong){color:inherit}
html[data-theme=light] .notice{color:#4a3942}
html[data-theme=dark] .notice{color:#dde4eb}
html[data-theme] .connection-badge.waiting{color:var(--readable-accent);border-color:#a57c4580}
.status-dot.waiting{background:#b58a4f}
.button-row,.profile-file-actions{flex-wrap:wrap}
.button-mapping select{min-width:0}
.card-title>div,.savebar>div{min-width:0}
.card-title .chip{white-space:normal;text-align:center}
.sidebar .device-mini div>span{white-space:normal}
@media(min-width:681px){
  .topbar{position:sticky;top:0}
  .sidebar{position:sticky;top:82px;min-height:0;height:calc(100dvh - 82px);padding-block:24px;overflow-y:auto;overscroll-behavior-y:contain}
  .sidebar>*{flex-shrink:0}
  .sidebar-bottom{padding-top:24px}
  .nav-item{text-align:left;white-space:normal}
}
@media(max-width:1150px){.nav-item{font-size:13px}.nav-item svg{width:17px}.topbar .button{font-size:13px}}
.savebar .savebar-actions .button{font-size:16px;font-weight:650;line-height:1.25;min-height:44px;text-align:center}
html[data-theme=light] .savebar .button:disabled{opacity:1;background:#e9e9ee;border-color:#c6c8d0;color:#555864}
html[data-theme=dark] .savebar .button:disabled{opacity:1;background:#1b2025;border-color:#3b444d;color:#aab3bd}
html[data-theme=dark] .savebar .button.dark:disabled{background:#30291d;border-color:#584a31;color:#c9b798}
@media(max-width:1150px){.savebar .savebar-actions .button{font-size:15px;white-space:normal}}
@media(max-width:900px){.savebar span#save-description{max-width:none}.card-title{flex-wrap:wrap}}
@media(max-width:680px){
  main{padding-bottom:195px}
  .hub-label{font-size:9px}
  .topbar .connect-button{font-size:11px;white-space:normal;line-height:1.25}
  .page-heading{min-height:0}
  .page-heading p:last-child{max-width:none}
  .dpi-stages,.polling-rates{grid-template-columns:repeat(4,minmax(0,1fr))}
  .dpi-stage{min-width:0;padding-inline:3px;font-size:12px}
  .polling-rates button{font-size:13px}
  .button-mapping select{font-size:12px;width:min(53%,175px)}
  .button-mapping>span:nth-child(2){font-size:13px}
  .savebar strong{font-size:13px}
  .savebar .savebar-actions .button{min-width:0;padding-inline:8px}
  .savebar{padding-bottom:max(14px,env(safe-area-inset-bottom))}
}

/* A transparent top-layer target makes the rest of the page inert during capture. */
#macro-capture{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:inherit;overscroll-behavior:contain}
#macro-capture::backdrop{background:transparent}
html:has(#macro-capture[open]){overflow:hidden;scrollbar-gutter:stable}
.macro-capture-controls{position:absolute;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 24px);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;background:#fdfdfd;border:1px solid #d4d5dd;border-radius:12px;box-shadow:0 12px 36px #1013182b}
.macro-capture-controls p{font-size:14px;font-weight:600;margin:0}
.macro-capture-controls p span{font-size:12px;color:var(--readable-muted)}
html[data-theme=dark] .macro-capture-controls{background:#161a1e;border-color:#424b54;color:#f1f3f5}
@media(max-width:380px){.macro-capture-controls{gap:10px;padding:10px}.macro-capture-controls .button{padding-inline:10px;font-size:12px}}
