:root{--scope-surface:#131d30;--scope-grid:rgb(120 140 170 / .48);--scope-reference:#dce6f7;--scope-sector-line:rgb(255 255 255 / .24);--scope-contour:rgb(204 212 240 / .75);--scope-cursor:#7deaff;--scope-cursor-outline:#10253a;--scope-text-outline:#101823;--scope-switch-thumb:#131d30;--scope-caption:#ced9ee;--scope-value:#ffffff;--scope-text:#cdd7ed;--scope-accent:#b9c3ff}html[data-theme=light]{--scope-surface:#f4f6ff;--scope-grid:rgb(100 120 150 / .38);--scope-reference:#43516a;--scope-sector-line:rgb(255 255 255 / .3);--scope-contour:rgb(75 90 130 / .55);--scope-cursor:#006b85;--scope-cursor-outline:#ffffff;--scope-text-outline:#ffffff;--scope-switch-thumb:#ffffff;--scope-caption:#425578;--scope-value:#152347;--scope-text:#3e4c68;--scope-accent:#3e46a8}.stick-scope-plot{position:relative;width:100%;aspect-ratio:1;container-type:inline-size}.stick-scope-plot canvas{display:block;width:100%;height:100%}.stick-scope-summary{position:absolute;top:58%;left:50%;transform:translate(-50%);display:flex;flex-direction:column;align-items:center;gap:3px;max-width:74%;padding:2px 6px 4px;background:transparent;text-align:center;pointer-events:none}.stick-scope-caption{color:var(--scope-caption);font:600 clamp(10px,4.4cqi,12px)/1.35 var(--font-ui);letter-spacing:.04em;white-space:nowrap;-webkit-text-stroke:1.4px var(--scope-text-outline);paint-order:stroke fill}.stick-scope-summary .stick-scope-error{color:var(--scope-value);font:700 clamp(22px,12cqi,36px)/1 var(--font-data);font-variant-numeric:tabular-nums;letter-spacing:-.025em;white-space:nowrap;-webkit-text-stroke:1.8px var(--scope-text-outline);paint-order:stroke fill}.stick-scope-error-unit{display:inline-block;margin-left:2px;font-size:.58em;font-weight:600;letter-spacing:0;vertical-align:.06em;-webkit-text-stroke:1.4px var(--scope-text-outline)}.stick-scope-error-unit[hidden],.stick-scope-summary[hidden]{display:none}body .gamepad-coordinate strong,.stick-tune-coordinates{color:var(--scope-text)}.stick-test-toggle{display:inline-flex;align-items:center;gap:10px;min-height:32px;cursor:pointer;color:var(--scope-text);font-size:11px;font-weight:700;line-height:1.5}.profile-operation-status{margin:8px 4px 0;color:var(--orange);font-size:10px;line-height:1.5;overflow-wrap:anywhere}.profile-operation-status:empty{display:none}.profile-operation-status.is-error{color:#df603f}.profile-grid[aria-busy=true]{opacity:.6}.stick-test-toggle input{appearance:none;position:relative;box-sizing:border-box;flex-shrink:0;width:46px;height:26px;margin:0;padding:0;background:var(--line);border:1px solid var(--muted);border-radius:999px;cursor:pointer;transition:background .16s ease,border-color .16s ease}.stick-test-toggle input:after{position:absolute;top:3px;left:3px;width:18px;height:18px;content:"";background:var(--scope-text);border-radius:50%;transition:transform .16s ease,background .16s ease}.stick-test-toggle input:checked{background:var(--scope-accent);border-color:var(--scope-accent)}.stick-test-toggle input:checked:after{background:var(--scope-switch-thumb);transform:translate(20px)}@media(prefers-reduced-motion:reduce){.stick-test-toggle input,.stick-test-toggle input:after{transition:none}}.stick-test-toggle:hover,.stick-test-toggle:has(input:checked){color:var(--scope-accent)}.gamepad-circle-error .stick-test-toggle span{color:inherit;letter-spacing:0}.stick-test-toggle input:focus-visible{outline:2px solid var(--scope-accent);outline-offset:3px}.gamepad-circle-error{flex-wrap:wrap;gap:8px}.calibration-tune-modal[hidden]{display:none}.calibration-tune-modal{position:fixed;z-index:50;inset:0;display:grid;place-items:center;padding:24px}.calibration-tune-backdrop{position:absolute;inset:0;background:#000000bf}.calibration-tune-dialog{position:relative;width:min(1240px,100%);max-height:calc(100dvh - 48px);overflow:auto;padding:26px;background:var(--canvas);color:var(--white);border:1px solid var(--line);border-radius:12px;box-shadow:0 25px 80px #00000059}.stick-tune-header{position:sticky;top:-26px;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:8px;background:var(--canvas)}.stick-tune-header h2{margin:0;font-size:22px;font-weight:800;letter-spacing:-.02em}.stick-tune-header p{margin:8px 0 0;color:var(--muted);font-size:12px;line-height:1.6}.stick-tune-close{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;padding:0;font:400 28px/1 sans-serif;color:var(--muted);background:var(--black);border:1px solid var(--line);border-radius:7px;cursor:pointer}.stick-tune-close:hover{color:var(--orange);border-color:var(--orange)}.stick-tune-toolbar{display:flex;align-items:center;min-height:18px;margin:8px 0 16px}.stick-tune-toolbar [data-calibration-tuning-status]{margin-left:auto;font-size:12px;color:var(--muted);line-height:1.5}.stick-tune-toolbar [data-calibration-tuning-status].is-error{color:#df603f}.stick-tune-zoom{display:grid;grid-template-columns:auto minmax(70px,1fr) 3.5ch;align-items:center;flex:1 1 260px;gap:12px;min-width:0;max-width:320px;color:var(--scope-text);font-size:12px;font-weight:600;cursor:pointer}.stick-tune-zoom .trigger-range-track{background:var(--line)}.stick-tune-zoom output{color:var(--orange);text-align:right;font:700 13px var(--font-data);font-variant-numeric:tabular-nums;white-space:nowrap}.stick-tune-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.stick-tune-card{min-width:0;padding:18px;background:var(--black);border:1px solid var(--line);border-radius:9px}.stick-tune-card>header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 20px}.stick-tune-card h3{margin:0;font-size:16px;font-weight:800}.stick-tune-card>header>span{color:var(--muted);font-size:10px}.stick-tune-compass{display:grid;grid-template-columns:98px minmax(0,1fr) 98px;grid-template-rows:auto minmax(100px,1fr) auto;align-items:center;gap:6px;margin-top:18px}.stick-tune-compass .stick-scope-plot{width:100%;max-width:240px;min-width:0;grid-column:2;grid-row:2;justify-self:center}.stick-tune-field{display:grid;gap:7px;min-width:0;text-align:center;font-size:11px;color:var(--muted)}.stick-tune-field.edge-top{grid-column:2;grid-row:1;width:110px;justify-self:center}.stick-tune-field.edge-bottom{grid-column:2;grid-row:3;width:110px;justify-self:center}.stick-tune-field.edge-left{grid-column:1;grid-row:2}.stick-tune-field.edge-right{grid-column:3;grid-row:2}.stick-tune-stepper{display:grid;grid-template-columns:24px minmax(0,1fr) 24px;min-height:34px;background:var(--canvas);border:1px solid var(--line);border-radius:6px;overflow:hidden}.stick-tune-stepper button{padding:0;border:0;background:transparent;color:var(--muted);font:500 18px/1 sans-serif;cursor:pointer}.stick-tune-stepper button:hover:not(:disabled){color:var(--orange);background:#ff660014}.stick-tune-stepper input{min-width:0;width:100%;padding:0 2px;border:0;background:transparent;color:var(--orange);text-align:center;font:700 13px var(--font-data);appearance:textfield;-moz-appearance:textfield}.stick-tune-stepper input::-webkit-inner-spin-button,.stick-tune-stepper input::-webkit-outer-spin-button{appearance:none;margin:0}.stick-tune-stepper:has(input[aria-invalid=true]){border-color:#df603f}.stick-tune-center-row{display:grid;grid-template-columns:repeat(2,minmax(0,150px));justify-content:center;gap:20px;margin-top:18px;padding-top:15px;border-top:1px solid var(--line)}.stick-tune-coordinates{display:block;margin:20px 0 12px;text-align:center;color:var(--white);font:600 12px var(--font-data);font-variant-numeric:tabular-nums}.stick-tune-metrics{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:10px;padding-top:12px;border-top:1px solid var(--line)}.stick-tune-footnote{margin:16px 0 0;color:var(--muted);font-size:11px;line-height:1.7}.calibration-tune-dialog :is(button,input):focus-visible{outline:2px solid var(--orange);outline-offset:-2px}.calibration-tune-dialog :disabled{opacity:.35;cursor:not-allowed}.calibration-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;width:min(780px,100%);margin:16px auto 0}.calibration-button{min-width:0;min-height:44px;padding:8px 12px;color:var(--white);font-size:12px;font-weight:700;line-height:1.4;background:var(--black);border:1px solid var(--line);border-radius:7px;cursor:pointer;transition:color .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease}.calibration-button:hover:not(:disabled){color:var(--orange);background:#d9783d14;border-color:var(--orange)}.calibration-button:active:not(:disabled){transform:translateY(1px)}.calibration-button:focus-visible{outline:2px solid var(--yellow);outline-offset:3px}.calibration-button:disabled{opacity:.4;cursor:not-allowed}.calibration-button[data-calibration-action=combined]{background:var(--orange);color:var(--black);border-color:var(--orange);font-weight:800}.calibration-button[data-calibration-action=combined]:hover:not(:disabled){color:var(--black);background:var(--orange);box-shadow:0 0 0 3px #d9783d26}@media(max-width:760px){.calibration-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.calibration-button{padding:8px}}@media(prefers-reduced-motion:reduce){.calibration-button{transition:none}.calibration-button:active:not(:disabled){transform:none}}@media(max-width:1050px){.stick-tune-columns{grid-template-columns:1fr}.calibration-tune-dialog{width:min(680px,100%)}.stick-tune-compass{grid-template-columns:100px minmax(0,1fr) 100px}.stick-tune-compass .stick-scope-plot{max-width:280px;justify-self:center}}@media(max-width:560px){.calibration-tune-modal{padding:8px}.calibration-tune-dialog{padding:15px;max-height:calc(100dvh - 16px)}.stick-tune-header h2{font-size:19px}.stick-tune-card{padding:12px}.stick-tune-card>header>span{font-size:9px}.stick-tune-compass{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto auto auto;gap:12px}.stick-tune-compass .stick-scope-plot{grid-column:1/-1;grid-row:1;max-width:260px}.stick-tune-field.edge-top,.stick-tune-field.edge-bottom{grid-row:2;width:100%;justify-self:stretch}.stick-tune-field.edge-top,.stick-tune-field.edge-left{grid-column:1}.stick-tune-field.edge-bottom,.stick-tune-field.edge-right{grid-column:2}.stick-tune-field.edge-left,.stick-tune-field.edge-right{grid-row:3}.stick-tune-stepper{grid-template-columns:24px minmax(0,1fr) 24px}.stick-tune-stepper input{font-size:12px}.stick-tune-toolbar output{margin-left:0;font-size:11px}.stick-tune-coordinates{font-size:11px}}@media(max-width:560px){.stick-tune-header{top:-15px}.stick-tune-zoom{flex-basis:100%;max-width:none}}@media(prefers-reduced-motion:reduce){.calibration-tune-dialog *{scroll-behavior:auto;animation:none!important}}.calibration-reminder{width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:28px;color:var(--white);background:var(--canvas);border:1px solid var(--line);border-top:3px solid var(--orange);border-radius:10px;box-shadow:0 24px 80px #0006}.calibration-reminder::backdrop{background:#000000b3}.calibration-reminder h2{margin:0;font-size:22px;font-weight:800;letter-spacing:-.02em}.calibration-reminder p{margin:14px 0 24px;color:var(--muted);font-size:13px;line-height:1.8}.calibration-reminder-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px}.calibration-reminder-actions button{min-width:100px;min-height:38px}.calibration-reminder-actions button:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
