/* Native first-paint gate also wins over the workspace's display rules. */
[hidden]{display:none!important}
.practice-access{width:min(460px,calc(100% - 32px));margin:32px auto}
.practice-access-card{padding:32px;border:1px solid var(--border);border-radius:16px;background:var(--panel);box-shadow:var(--shadow)}
.practice-access-rule{display:block;width:38px;height:3px;background:#4d1822;margin:30px 0 20px}
.practice-access h1{font-size:clamp(24px,5vw,30px);font-weight:650;letter-spacing:-.7px;line-height:1.2;margin:0 0 12px;color:var(--text)}
.practice-access p{color:var(--muted);font-size:14px;line-height:1.65;margin:0 0 24px}
.practice-access-actions{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.practice-access-actions .btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;text-decoration:none}
.practice-access-home{color:var(--muted);font-size:13px;line-height:1.5;text-underline-offset:4px}
.practice-access-home:hover{color:var(--text)}
body[data-theme=dark] .practice-access-rule{border:1px solid #8c7478}
@media(max-width:560px){body:has(.practice-access:not([hidden])){align-items:center}.practice-access-card{padding:25px}.practice-access-actions{gap:14px}}

:root{--bg:#111;--panel:#1b1b1b;--panel2:#242424;--border:#3a3a3a;--text:#e6e6e6;--muted:#9b9b9b;--green:#54e36c;--blue:#979799;--amber:#ffb544;--red:#ef6a6a;--cyan:#27e6f2;--orange:#ff9f35}
*{box-sizing:border-box} html,body{margin:0;background:#0d0d0d;color:var(--text);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;min-height:100%}
body{min-height:100vh;display:flex;justify-content:center;align-items:center;padding:10px}
button,select,input{font:inherit}.app{width:min(1500px,100%);height:min(930px,calc(100vh - 20px));min-height:650px;background:#111;border:1px solid #333;border-radius:12px;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) 360px;grid-template-rows:48px minmax(0,1fr) auto;box-shadow:0 12px 50px #0008;position:relative}
.top{grid-column:1/3;background:#202020;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 12px;gap:10px}.brand{font-weight:800;color:#fff}.brand small{color:var(--muted);font-weight:400}.top-right{display:flex;align-items:center;gap:8px;white-space:nowrap}.chip{border:1px solid #444;background:#171717;border-radius:999px;padding:5px 9px;color:#bbb;font-size:12px}.chip.good{color:#8ff09c;border-color:#346b3c}.chip.warn{color:#ffc76f;border-color:#79561f}
.target-wrap{grid-column:1;grid-row:2;background:#cfcfcf;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}.target-wrap canvas{display:block;max-width:100%;max-height:100%;touch-action:none;cursor:crosshair;background:#bbb}.overlay-label{position:absolute;left:8px;top:8px;background:#ffffffb8;color:#222;padding:4px 7px;border-radius:4px;font-weight:700;font-size:12px;pointer-events:none}.status-banner{position:absolute;top:56px;left:50%;transform:translateX(-50%);z-index:50;padding:9px 16px;border-radius:6px;background:var(--blue);font-weight:800;color:white;display:none;max-width:80%;text-align:center;box-shadow:0 4px 15px #0007}.sound-meter{position:absolute;left:10px;bottom:10px;width:130px;height:8px;background:#2229;border:1px solid #555;border-radius:5px;overflow:hidden}.sound-meter>div{height:100%;width:0;background:var(--green)}
.sidebar{grid-column:2;grid-row:2;background:#121212;display:flex;flex-direction:column;border-left:1px solid var(--border);min-width:0}.shot-head,.shot-row{display:grid;grid-template-columns:42px 36px 45px 56px 56px 1fr;align-items:center;gap:4px;padding:7px 10px}.shot-head{font-size:12px;color:#888;border-bottom:1px solid #333;background:#181818;font-weight:700}.shot-list{flex:1;overflow:auto;min-height:0}.shot-row{font-size:16px;border-bottom:1px solid #242424;cursor:pointer}.shot-row:hover,.shot-row.selected{background:#292929}.shot-row .dec{color:#aaa}.shot-row .metric{font-size:10px;color:#777;text-align:right}.stats{border-top:1px solid #333;padding:10px;display:grid;gap:6px}.statline{display:flex;justify-content:space-between;gap:12px}.statline strong{color:#fff}.last-shot{height:92px;background:#1d1d1d;display:grid;grid-template-columns:55px 1fr 70px;align-items:center;padding:8px}.last-shot .num{font-size:28px;color:#888;text-align:center}.last-shot .int{font-size:54px;color:var(--green);font-weight:900;text-align:center}.last-shot .decimal{font-size:25px;color:#bbb;text-align:center}
.bottom{grid-column:1/3;grid-row:3;background:#202020;border-top:1px solid var(--border);display:grid;grid-template-columns:240px minmax(0,1fr);align-items:center;padding:9px 10px;gap:8px}.controls{grid-column:1/3;border-top:1px solid #303030;padding-top:7px}.who{min-width:0}.who .event{font-size:12px;color:#aaa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.who .name{font-size:18px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bottom-metrics{display:grid;grid-template-columns:repeat(5,minmax(90px,1fr));gap:6px}.metric-card{background:#171717;border:1px solid #333;border-radius:6px;padding:7px;min-width:0}.metric-card label{display:block;color:#888;font-size:10px}.metric-card span{display:block;color:#ddd;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.controls{display:flex;flex-wrap:wrap;justify-content:space-evenly;gap:7px;align-items:center}.controls>.btn,.controls>select,.controls>.zoom-group{flex:1 1 105px;max-width:180px}.zoom-group{justify-content:center}.btn{border:1px solid #555;background:#ededed;color:#222;border-radius:5px;padding:8px 10px;font-weight:800;cursor:pointer}.btn:hover{filter:brightness(.92)}.btn.dark{background:#262626;color:#eee}.btn.danger{background:#d86c6c;color:#111;border-color:#d86c6c}.btn.active{background:#ffe54d;color:#111;border-color:#ffe54d}.btn:disabled{opacity:.4;cursor:not-allowed}.zoom-group{display:flex;gap:3px;align-items:center}.zoom-label{font-size:11px;color:#aaa;min-width:42px;text-align:center}
.modal{position:absolute;inset:0;z-index:100;background:#000d;display:flex;align-items:center;justify-content:center;padding:16px}.modal.hidden{display:none}.modal-card{width:min(780px,100%);max-height:94vh;overflow:auto;background:#222;border:1px solid #444;border-radius:10px;padding:18px}.modal-card h2{margin:0 0 14px;color:#fff}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.field{margin-bottom:10px}.field label{display:block;color:#ccc;font-size:12px;margin-bottom:5px}.field input,.field select{width:100%;padding:8px;border-radius:5px;border:1px solid #555;background:#111;color:#fff}.field input[type=range]{padding:0}.field small{display:block;color:#777;margin-top:4px}.box{border:1px solid #373737;background:#181818;border-radius:7px;padding:10px;margin:10px 0}.box h3{font-size:14px;margin:0 0 8px;color:#eee}.inline{display:flex;gap:8px;align-items:center}.inline>*{min-width:0}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px;position:sticky;bottom:-18px;background:#222;padding:10px 0 2px}.calib-help{font-size:12px;color:#bbb;line-height:1.45}.legend{display:flex;gap:12px;flex-wrap:wrap;font-size:11px;color:#999}.dot{display:inline-block;width:11px;height:3px;vertical-align:middle;margin-right:4px}.dot.cyan{background:var(--cyan)}.dot.orange{background:var(--orange)}

.timer-overlay{position:absolute;right:10px;top:10px;z-index:25;background:rgba(10,10,10,.82);border:1px solid #666;border-radius:8px;padding:8px 11px;display:none;min-width:170px;box-shadow:0 3px 12px #0008;pointer-events:none}.timer-overlay.visible{display:block}.timer-line{display:flex;justify-content:space-between;gap:16px;font-size:13px}.timer-line strong{font-size:18px;color:#fff}.timer-line.shot strong{color:#ffd166}.timer-overlay.ready{border-color:#ffd166}.timer-overlay.ready .timer-line strong{color:#ffd166}
.login-note{font-size:11px;color:#888;line-height:1.4}.user-chip{max-width:155px;overflow:hidden;text-overflow:ellipsis}.btn.small{padding:5px 8px;font-size:11px}.canvas-resize{position:absolute;right:8px;bottom:8px;background:#111b;color:#fff;border:1px solid #777;border-radius:5px;padding:4px 6px;font-size:10px;z-index:20}.report-email-row{display:flex;gap:6px;align-items:center}.impact-status{position:absolute;left:10px;top:42px;z-index:26;background:rgba(10,10,10,.82);border:1px solid #666;border-radius:7px;padding:6px 9px;font-size:11px;color:#ddd;display:none;pointer-events:none}.impact-status.visible{display:block}.impact-status.good{border-color:#3f8150;color:#9af1a7}.impact-status.warn{border-color:#8a652a;color:#ffc878}.impact-status.bad{border-color:#913f3f;color:#ff9999}.impact-help{font-size:11px;color:#888;line-height:1.4}
.app:fullscreen{width:100vw;height:100vh;max-width:none;border:0;border-radius:0}.app:fullscreen .target-wrap{min-height:0}.target-wrap.compact{min-height:360px}.target-wrap.tall{min-height:620px}.minimal-exit{display:none;position:absolute;right:12px;bottom:12px;z-index:90;background:#111d;color:#fff;border:1px solid #777;border-radius:6px;padding:8px 10px;font-weight:800}.app.minimal-mode{display:block;width:100vw;height:100vh;max-width:none;min-height:0;border:0;border-radius:0;background:#000}.app.minimal-mode>.top,.app.minimal-mode>.sidebar,.app.minimal-mode>.bottom,.app.minimal-mode>.status-banner{display:none!important}.app.minimal-mode>.target-wrap{position:absolute;inset:0;width:100%;height:100%;min-height:0;background:#000}.app.minimal-mode .target-wrap canvas{max-width:100%;max-height:100%;width:auto;height:auto}.app.minimal-mode .overlay-label,.app.minimal-mode .sound-meter,.app.minimal-mode .impact-status,.app.minimal-mode .canvas-resize{display:none!important}.app.minimal-mode .timer-overlay.visible{display:block}.app.minimal-mode .minimal-exit{display:block}

@media(max-width:1100px){.controls{justify-content:space-evenly}.bottom{grid-template-columns:1fr}.controls{grid-column:1}.bottom-metrics{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){body{padding:0;align-items:flex-start}.app{width:100%;height:auto;min-height:100vh;border-radius:0;border:0;display:flex;flex-direction:column;overflow:visible}.top{min-height:48px;position:sticky;top:0;z-index:60}.brand small,.top-right .chip:nth-of-type(2){display:none}.target-wrap{height:min(68vw,500px);min-height:330px;border-bottom:1px solid #333}.sidebar{border-left:0;max-height:330px;min-height:250px}.last-shot{position:absolute;right:8px;top:60px;width:150px;height:64px;border-radius:7px;background:#111d;z-index:30;grid-template-columns:34px 1fr 45px}.last-shot .num{font-size:18px}.last-shot .int{font-size:37px}.last-shot .decimal{font-size:19px}.bottom{display:flex;flex-direction:column;align-items:stretch}.bottom-metrics{grid-template-columns:repeat(3,1fr)}.controls{justify-content:space-evenly}.who{width:100%}.grid2,.grid3{grid-template-columns:1fr}.modal-card{padding:13px}.shot-row{grid-template-columns:36px 32px 40px 48px 48px 1fr}}
@media(max-width:560px){.top-right #date-time{display:none}.target-wrap{height:76vw;min-height:280px}.bottom-metrics{grid-template-columns:repeat(2,1fr)}.controls .btn{padding:8px;font-size:12px}.sidebar{max-height:280px}.sound-meter{width:90px}}

.home-link{color:#fff;text-decoration:none}.top a.btn{text-decoration:none}.practice-note{color:#b4b4b4;line-height:1.5;font-size:12px}.top{flex-wrap:wrap;height:auto;min-height:48px}.top-right{flex-wrap:wrap}.app{grid-template-rows:minmax(48px,auto) minmax(0,1fr) auto}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #a6ed51;outline-offset:3px}

/* The practice workspace shares the site's palette and preference. */
body{--bg:#f5f5f7;--panel:#fff;--panel2:#f8f2f4;--border:#d2d2d7;--text:#1d1d1f;--muted:#6e6e73;--green:#4d1822;--blue:#4d1822;--amber:#b7791f;--red:#bd3349;--cyan:#168fba;--orange:#b7791f;--input:#fff;--hover:#f8f2f4;--shadow:0 12px 40px #1d1d1f15;background:var(--bg);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color-scheme:light;font-size:14px}
body[data-theme=dark]{--bg:#161617;--panel:#242426;--panel2:#2c2c2e;--border:#444448;--text:#f5f5f7;--muted:#b0b0b5;--green:#c8b7b7;--blue:#c8b7b7;--amber:#f0bc66;--red:#ff8797;--cyan:#49c5eb;--orange:#f0bc66;--input:#161617;--hover:#343438;--shadow:0 12px 40px #0004;color-scheme:dark}
.app{background:var(--panel);border-color:var(--border);box-shadow:var(--shadow)}
.top,.bottom{background:var(--panel);border-color:var(--border)}
.brand{display:flex;align-items:center;gap:14px;flex-shrink:0;letter-spacing:-.4px;font-weight:600}
.brand small{font-size:12px;letter-spacing:0;color:var(--muted)}
.home-link{display:flex;align-items:center;gap:9px;font-size:18px;font-weight:500;color:var(--text)}
.home-link img{display:block;flex-shrink:0}body[data-theme=dark] .home-link img{filter:invert(1)}
.top{padding:8px 14px;gap:8px}.top-right{gap:6px}.top-right .btn{text-transform:none;font-weight:600}
.chip{border-color:var(--border);background:var(--bg);color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}
.chip.good{color:#187447;border-color:#aadac2;background:#effaf4}.chip.warn{color:#926519;border-color:#ebd29f;background:#fff9ed}
body[data-theme=dark] .chip.good{color:#8dddb2;border-color:#326750;background:#14372d}body[data-theme=dark] .chip.warn{color:#efc580;border-color:#785f38;background:#382d1e}
.sidebar{background:var(--panel);border-color:var(--border)}
.shot-head{background:var(--bg);color:var(--muted);border-color:var(--border);font-size:11px}
.shot-row{border-color:var(--border);font-variant-numeric:tabular-nums;font-size:15px}.shot-row:hover,.shot-row.selected{background:var(--hover)}
.shot-row .dec,.shot-row .metric,.who .event,.legend,.zoom-label{color:var(--muted)}
.stats{border-color:var(--border);padding:14px}.statline strong{color:var(--text);font-variant-numeric:tabular-nums}
.last-shot{background:var(--panel2)}.last-shot .num,.last-shot .decimal{color:var(--muted)}
.who .name{font-size:17px}.bottom{padding:12px 14px;gap:12px}
.metric-card{background:var(--bg);border-color:var(--border);border-radius:8px;padding:9px}.metric-card label{color:var(--muted);font-size:10px;letter-spacing:.35px}.metric-card span{color:var(--text);font-variant-numeric:tabular-nums}
.controls{border-color:var(--border);gap:8px;padding-top:10px}
.btn{background:var(--panel);color:var(--text);border-color:var(--border);border-radius:6px;padding:9px 12px;font-weight:600;min-height:38px;transition:background .15s,border-color .15s}
.btn.dark{background:var(--bg);color:var(--text)}.btn:hover{filter:none;background:var(--hover);border-color:var(--blue)}
.btn.active,#btn-save-start{background:#4d1822;border-color:#4d1822;color:#fff}.btn.active:hover,#btn-save-start:hover{background:#4d1822;border-color:#4d1822}
.btn.danger{background:var(--panel);border-color:var(--border);color:var(--red)}.btn.danger:hover{border-color:var(--red)}
.btn.small{min-height:32px;font-size:11px;padding:6px 9px}.btn:disabled{opacity:.5}
.target-wrap{background:#f0f0f2;border-color:var(--border)}.target-wrap canvas{background:#f0f0f2}
body[data-theme=dark] .target-wrap,body[data-theme=dark] .target-wrap canvas{background:#242426}
.modal{position:fixed;inset:0;padding:24px;background:#16161799;backdrop-filter:blur(3px);height:100vh;height:100dvh;z-index:100}
.modal-card{width:min(780px,100%);max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);padding:24px;background:var(--panel);border-color:var(--border);border-radius:12px;box-shadow:var(--shadow);overscroll-behavior:contain}
.modal-card h2{font-size:23px;letter-spacing:-.6px;color:var(--text);font-weight:650}.modal-card h3{color:var(--text);font-size:14px}
.practice-note,.calib-help,.impact-help,.login-note,.field small{color:var(--muted);line-height:1.6;font-size:12px}
.field label{color:var(--text);font-size:12px;font-weight:600}.field input,.field select{background:var(--input);border-color:var(--border);color:var(--text);min-height:40px;font-size:14px;padding:9px 10px}.field input[type=range]{min-height:24px;accent-color:#4d1822;padding:0}
.box{background:var(--bg);border-color:var(--border);border-radius:9px;padding:14px;margin:14px 0}
.modal-actions{bottom:-24px;background:var(--panel);border-top:1px solid var(--border);padding:12px 0 0;margin-top:18px;box-shadow:0 -8px 12px var(--panel);gap:10px}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.practice-tools{display:contents}.practice-tools>summary{display:none}.practice-tools-menu{display:flex;gap:6px;align-items:center}
@media(max-width:1100px){.app{height:auto;min-height:calc(100vh - 20px);grid-template-rows:auto minmax(420px,1fr) auto}.brand{width:100%}.top-right{width:100%}.bottom-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}.practice-tools{display:block;position:relative}.practice-tools>summary{display:block;list-style:none;cursor:pointer}.practice-tools>summary::-webkit-details-marker{display:none}.practice-tools-menu{display:none;position:absolute;right:0;top:calc(100% + 8px);z-index:80;min-width:170px;padding:10px;background:var(--panel);border:1px solid var(--border);border-radius:9px;box-shadow:var(--shadow);flex-direction:column;align-items:stretch}.practice-tools[open] .practice-tools-menu{display:flex}.practice-tools-menu .btn{min-height:40px}.practice-tools-menu #date-time{text-align:center}}
@media(max-width:900px){body{padding:0}.app{height:auto;min-height:100vh}.top{position:relative;padding:10px 16px}.brand{width:auto;flex:1}.top-right{width:100%;justify-content:flex-start;gap:7px}.top-right .btn,.practice-tools>summary{min-height:38px}.top-right #fps-chip,.top-right .user-chip{display:none}.target-wrap{height:clamp(330px,65vw,550px);min-height:0}.sidebar{max-height:350px;min-height:280px;border-bottom:1px solid var(--border)}.last-shot{position:static;align-self:stretch;width:100%;height:70px;border-radius:0;grid-template-columns:55px 1fr 70px}.last-shot .int{font-size:40px}.bottom{padding:16px}.bottom-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.shot-head,.shot-row{grid-template-columns:36px 32px 40px 48px 48px 1fr}.grid2{grid-template-columns:1fr 1fr}.grid3{grid-template-columns:repeat(3,1fr)}}
@media(max-width:560px){.top{padding:10px 12px}.brand small{display:block}.top-right{gap:6px}.top-right .btn,.practice-tools>summary{padding:7px 10px;font-size:11px;min-height:40px}.top-right #sync-chip{width:100%;border:0;background:none;padding:0 0 3px;text-align:left;font-size:10px}.target-wrap{height:76vw;min-height:280px}.sidebar{min-height:280px;max-height:360px}.bottom-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.controls{display:grid;grid-template-columns:1fr 1fr}.controls>.btn,.controls>select,.controls>.zoom-group{width:100%;max-width:none;min-width:0;min-height:44px;flex:none}.zoom-group .btn{min-width:34px;min-height:40px;padding:6px}.controls .btn{font-size:12px;padding:8px}.modal{padding:12px}.modal-card{max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:18px}.modal-card h2{font-size:22px}.grid2,.grid3{grid-template-columns:1fr}.modal-actions{bottom:-18px;padding:12px 0 0}.modal-actions .btn{min-height:44px}.shot-head,.shot-row{padding:8px 12px;grid-template-columns:28px 28px 34px 42px 40px 1fr;gap:4px}}

/* Inset decorative chevron; the control remains a native keyboard/touch select. */
:root{--select-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
body[data-theme=dark]{--select-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%23b0b0b5' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
body select:not([multiple]):not([size]),body select:not([multiple])[size="1"]{-webkit-appearance:none;appearance:none;background-image:var(--select-chevron);background-repeat:no-repeat;background-position:right 12px center;background-size:12px 8px;padding-inline-end:36px}
body select:not([multiple]):not([size]):dir(rtl),body select:not([multiple])[size="1"]:dir(rtl){background-position:left 12px center}
@media(forced-colors:active){body select:not([multiple]):not([size]),body select:not([multiple])[size="1"]{-webkit-appearance:auto;appearance:auto;background-image:none;padding-inline-end:12px}}

/* Neutral practice surfaces share the website's chosen burgundy identity. */
body{--bg:#f5f5f7;--panel:#fff;--panel2:#f8f2f4;--border:#d2d2d7;--text:#1d1d1f;--muted:#6e6e73;--green:#4d1822;--blue:#4d1822;--input:#fff;--hover:#f8f2f4;--shadow:0 12px 40px #0000000b;background:var(--bg)}
body[data-theme=dark]{--bg:#161617;--panel:#242426;--panel2:#2c2c2e;--border:#444448;--text:#f5f5f7;--muted:#b0b0b5;--green:#c8b7b7;--blue:#c8b7b7;--input:#161617;--hover:#343438;--shadow:0 12px 40px #00000040}
.btn.active,#btn-save-start{background:#4d1822;border-color:#4d1822;color:#fff}.btn.active:hover,#btn-save-start:hover{background:#3e111b;border-color:#3e111b}
body[data-theme=dark] .btn.active,body[data-theme=dark] #btn-save-start{background:#c8b7b7;border-color:#c8b7b7;color:#1d1d1f}body[data-theme=dark] .btn.active:hover,body[data-theme=dark] #btn-save-start:hover{background:#d4c5c5;border-color:#d4c5c5}
.target-wrap,.target-wrap canvas{background:#f0f0f2}body[data-theme=dark] .target-wrap,body[data-theme=dark] .target-wrap canvas{background:#242426}
.modal{background:#16161799}.field input[type=range]{accent-color:#4d1822}body[data-theme=dark] .field input[type=range]{accent-color:#c8b7b7}
/* Keep the primary fill deep burgundy in both themes with a distinct dark border. */
body[data-theme=dark]{--panel2:#2c2c2e;--green:#c8b7b7;--blue:#c8b7b7}
body[data-theme=dark] .btn.active,body[data-theme=dark] #btn-save-start{background:#4d1822;border-color:#907e83;color:#fff}
body[data-theme=dark] .btn.active:hover,body[data-theme=dark] #btn-save-start:hover{background:#60212e;border-color:#c8b7b7}

/* Stable shooter identity stays separate from account identity. */
.practice-shooters{border:1px solid var(--border);border-radius:10px;padding:18px;margin:20px 0;background:var(--panel2)}.practice-shooters .field{min-width:0}.practice-shooter-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:10px 0}.practice-shooter-actions .btn{min-height:44px;white-space:normal}.practice-shooter-actions a{color:var(--text);font-size:12px;text-underline-offset:3px}.practice-shooters .practice-note{line-height:1.65;margin-bottom:9px}.practice-shooters select:disabled{opacity:1;color:var(--text);cursor:default}#new-shooter-fields{border-top:1px solid var(--border);padding-top:16px;margin-top:16px}#btn-create-shooter{min-height:44px}
.home-link[data-home-hint]{position:relative;min-height:44px}.home-link[data-home-hint]::after{content:attr(data-home-hint);position:absolute;top:calc(100% + 8px);left:0;z-index:80;opacity:0;visibility:hidden;pointer-events:none;border:1px solid var(--border);border-radius:6px;padding:7px 11px;background:var(--panel);color:var(--text);white-space:nowrap;font-size:12px;font-weight:500;box-shadow:var(--shadow)}.home-link[data-home-hint]:hover::after,.home-link[data-home-hint]:focus-visible::after{opacity:1;visibility:visible}
@media(max-width:560px){.practice-shooters{padding:15px}.practice-shooter-actions .btn{flex:1 1 140px}.practice-shooter-actions a{width:100%;min-height:32px;display:flex;align-items:center}}

.device-recovery{position:absolute;left:12px;right:12px;top:66px;z-index:65;background:var(--panel);color:var(--text);border:1px solid var(--border);border-radius:9px;padding:12px 16px;box-shadow:var(--shadow);max-width:760px;margin:auto;font-size:12px}.device-recovery[hidden]{display:none}.device-recovery p{line-height:1.5;margin:0 0 8px}.device-recovery>div{display:flex;gap:8px;flex-wrap:wrap}.device-recovery .btn{min-height:38px}.device-recovery:has(#btn-resume-camera[hidden]):has(#btn-device-sign-in[hidden]){opacity:.96}@media(max-width:1100px){.device-recovery{position:relative;inset:auto;margin:12px;max-width:none;grid-column:1/-1}}

.recovery-dismiss{position:absolute;right:6px;top:4px;background:none;color:var(--muted);border:0;cursor:pointer;padding:4px 7px;font-size:20px}.device-recovery p{padding-right:18px}

.device-session-picker{margin-bottom:10px;align-items:center}.device-session-picker label{font-size:11px}.device-session-picker select{min-width:0;max-width:100%;flex:1;padding:8px 30px 8px 10px;background:var(--panel2);color:var(--text);border:1px solid var(--border);border-radius:6px}@media(max-width:560px){.device-session-picker label{width:100%}.device-session-picker select{width:100%;flex-basis:100%}}

/* Corner selection uses the full camera frame, with guidance outside it. */
.app.calibrating{grid-template-rows:auto auto minmax(0,1fr) auto}
.app.calibrating>.target-wrap,.app.calibrating>.sidebar{grid-row:3}
.app.calibrating>.bottom{grid-row:4}
.app.calibrating .top{flex-wrap:wrap}
.calibration-instructions{flex:1 0 100%;margin:0;padding:8px 0 2px;border-top:1px solid var(--border);font-size:13px;font-weight:600;line-height:1.5;color:var(--text)}
.app.calibrating .status-banner,.app.calibrating .target-wrap .overlay-label,.app.calibrating .target-wrap .timer-overlay,.app.calibrating .target-wrap .sound-meter,.app.calibrating .target-wrap .impact-status,.app.calibrating .target-wrap .canvas-resize{display:none!important}
.app.calibrating .device-recovery{position:relative;inset:auto;margin:12px;max-width:none;grid-column:1/-1;grid-row:2}
.app.calibrating .zoom-group{opacity:.5;pointer-events:none}
.app.calibrating #canvas{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.calibration-loupe{position:fixed;z-index:95;pointer-events:none;border:3px solid var(--panel);border-radius:50%;box-shadow:0 0 0 1px var(--border),0 8px 28px #0005;image-rendering:pixelated;background:#242426}

/* The next corner is illustrated in the header, outside the camera image. */
.calibration-instructions{display:flex;align-items:center;gap:12px;min-width:0;padding:8px 0}
.calibration-guide{display:block;flex:0 0 72px;width:72px;height:72px;color:#4d1822}
.calibration-guide-paper{fill:#f5f5f7;stroke:#8b8b90;stroke-width:1.2}
.calibration-guide-black{fill:#242426}
.calibration-guide-rings{fill:none;stroke:#d2d2d7;stroke-width:.8}
.calibration-guide-step{display:none;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.calibration-guide-step circle{fill:#4d1822;stroke:#fff;stroke-width:1.2}
.calibration-guide[data-step="1"] .calibration-guide-step-1,.calibration-guide[data-step="2"] .calibration-guide-step-2,.calibration-guide[data-step="3"] .calibration-guide-step-3,.calibration-guide[data-step="4"] .calibration-guide-step-4{display:inline}
.calibration-instruction-copy{min-width:0;flex:1}
.calibration-instruction-copy p{margin:0}
.calibration-instruction-copy .calibration-gesture-help{margin-top:4px;font-size:12px;font-weight:400;line-height:1.5;color:var(--muted)}
body[data-theme=dark] .calibration-guide{color:#f5f5f7}
@media(max-width:560px){.calibration-instructions{gap:10px}.calibration-guide{flex-basis:64px;width:64px;height:64px}.calibration-instruction-copy{font-size:12px}.calibration-instruction-copy .calibration-gesture-help{font-size:11px}}
.calibration-guide-outer-rings{fill:none;stroke:#8b8b90;stroke-width:.8}

/* A quiet opening mark becomes a target; authentication never waits for it. */
.practice-startup{position:relative;height:108px;margin:22px 0 4px;overflow:hidden}
.practice-startup-mark,.practice-startup-target{position:absolute;inset:0;margin:auto}
.practice-startup-mark{animation:practice-start-mark 1.4s ease both}
.practice-startup-target{animation:practice-start-target 1.4s ease both}
.startup-ring{fill:none;stroke:var(--border);stroke-width:1}
.startup-black{fill:#242426}.startup-inner{fill:none;stroke:#a7a7ad;stroke-width:.8}
.startup-shot{fill:#f5f5f7;stroke:#4d1822;stroke-width:1.2;animation:practice-start-shot 1.4s ease both;transform-origin:46px 42px}
body[data-theme=dark] .practice-startup-mark{filter:invert(1)}
.practice-access[data-phase=choosing] .practice-startup-mark{animation:practice-welcome-mark 10s ease both}
.practice-access[data-phase=choosing] .practice-startup-target{animation:practice-welcome-target 10s ease both}
.practice-access[data-phase=choosing] .startup-shot{animation:practice-welcome-shot 10s ease both}
.practice-account-email{font-size:15px;font-weight:600;overflow-wrap:anywhere;color:var(--text)!important}
.practice-sign-out{min-height:38px;text-transform:none}
.practice-access-actions #practice-continue,.practice-access-actions #practice-sign-in{min-width:120px}
#practice-notifications:not([hidden]){margin-top:22px;padding-top:18px;border-top:1px solid var(--border);font-size:14px;line-height:1.5}
#practice-notifications .check-row{display:flex;align-items:flex-start;gap:10px;cursor:pointer}
#practice-notifications .check-row input{flex:0 0 18px;width:18px;height:18px;margin:2px 0 0;accent-color:#4d1822}
#practice-notifications .hint{margin:10px 0 0;color:var(--muted);font-size:13px;line-height:1.6}
@keyframes practice-start-mark{0%,28%{opacity:1;transform:scale(1)}58%,100%{opacity:0;transform:scale(.92)}}
@keyframes practice-start-target{0%,32%{opacity:0;transform:scale(.92)}65%,100%{opacity:1;transform:scale(1)}}
@keyframes practice-start-shot{0%,76%{opacity:0;transform:scale(.4)}88%,100%{opacity:1;transform:scale(1)}}
@keyframes practice-welcome-mark{0%,13%{opacity:1;transform:scale(1)}27%,100%{opacity:0;transform:scale(.92)}}
@keyframes practice-welcome-target{0%,17%{opacity:0;transform:scale(.92)}34%,100%{opacity:1;transform:scale(1)}}
@keyframes practice-welcome-shot{0%,49%{opacity:0;transform:scale(.4)}52%,100%{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.practice-startup-mark,.practice-startup-target,.startup-shot{animation:none!important}.practice-startup-mark{display:none}.practice-startup-target,.startup-shot{opacity:1;transform:none}}

/* Fullscreen follows the device's orientation; secondary controls live in Tools. */
.app:fullscreen{height:100dvh;min-height:0;overflow:auto}
.app.minimal-mode{position:fixed;inset:0;height:100dvh;min-height:0;overflow:hidden;z-index:100}
.app.minimal-mode .minimal-exit{position:fixed;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));min-height:44px;max-width:calc(100vw - 24px);white-space:normal}
.practice-tools-menu{max-height:calc(100dvh - 100px);overflow-y:auto}
/* Reserve toolbar geometry for changing status text and fullscreen labels. */
.top-right{font-variant-numeric:tabular-nums;min-width:0}
.top-right .btn,.practice-tools>summary{flex-shrink:0;border-width:1px;transform:none}
.top-right .btn:hover,.top-right .btn:focus-visible{font-weight:600;letter-spacing:normal;transform:none}
.practice-install-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:20px}
.practice-install-actions .btn{min-height:44px}.practice-install-actions [data-install-state]{width:100%}
@media(min-width:1101px){
 .top-right{flex:1 1 820px;justify-content:flex-end}
 .practice-tools-menu{max-width:100%;flex-wrap:wrap;justify-content:flex-end;overflow:visible}
 #btn-fullscreen{inline-size:144px;flex:0 0 144px}
 #btn-minimal{inline-size:116px;flex:0 0 116px}
 #fps-chip{inline-size:80px;flex:0 0 80px;text-align:center}
 #sync-chip{min-inline-size:114px;text-align:center}
 #btn-wake-lock{min-inline-size:164px}
 #date-time{inline-size:190px;flex:0 0 190px;text-align:center;overflow:hidden;text-overflow:ellipsis}
}
@media(max-width:1100px){.practice-tools-menu{scrollbar-gutter:stable}.practice-tools-menu a.btn{text-align:center;text-decoration:none}}
@media(max-width:1100px){.controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));justify-content:stretch}.controls>.btn,.controls>.zoom-group{max-width:none;min-width:0;width:100%;min-height:44px}.practice-tools-menu select{width:100%;max-width:240px;min-height:44px}}
@media(max-width:560px){.controls{grid-template-columns:repeat(2,minmax(0,1fr))}.top-right>.practice-sign-out{margin-left:auto}}
@media(max-width:1100px){.controls .zoom-group{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}.controls .zoom-group .btn{min-width:0;width:100%;padding-inline:2px}.controls .zoom-label{min-width:0;text-align:center;font-size:10px}}
@media(max-width:1100px) and (max-height:600px) and (orientation:landscape){
 .app:fullscreen:not(.minimal-mode){display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,30%);grid-template-rows:auto minmax(140px,1fr) auto;overflow:auto}
 .app:fullscreen:not(.minimal-mode)>.top{grid-column:1/-1;grid-row:1;flex-wrap:nowrap;padding:7px 10px;gap:10px}
 .app:fullscreen:not(.minimal-mode) .brand{flex:0 0 auto;width:auto}
 .app:fullscreen:not(.minimal-mode) .brand small,.app:fullscreen:not(.minimal-mode) #sync-chip,.app:fullscreen:not(.minimal-mode) #history-link{display:none}
 .app:fullscreen:not(.minimal-mode) .top-right{width:auto;flex:1;justify-content:flex-end;gap:5px}
 .app:fullscreen:not(.minimal-mode) .top-right>.btn,.app:fullscreen:not(.minimal-mode) .practice-tools>summary{font-size:10px;min-height:36px;padding:6px 8px}
 .app:fullscreen:not(.minimal-mode)>.target-wrap{grid-column:1;grid-row:2;height:100%;min-height:0}
 .app:fullscreen:not(.minimal-mode)>.sidebar{grid-column:2;grid-row:2;min-height:0;max-height:none;overflow:auto}
 .app:fullscreen:not(.minimal-mode) .shot-head,.app:fullscreen:not(.minimal-mode) .shot-row{grid-template-columns:28px 25px 30px 40px 34px minmax(24px,1fr);gap:4px;padding:7px 8px}
 .app:fullscreen:not(.minimal-mode)>.bottom{grid-column:1/-1;grid-row:3;display:block;padding:7px 10px}
 .app:fullscreen:not(.minimal-mode) .bottom>.who,.app:fullscreen:not(.minimal-mode) .bottom-metrics{display:none}
 .app:fullscreen:not(.minimal-mode) .controls{grid-template-columns:repeat(4,minmax(0,1fr));padding-top:0;border:0}
 .app:fullscreen.calibrating:not(.minimal-mode){grid-template-rows:auto auto minmax(140px,1fr) auto}
 .app:fullscreen.calibrating:not(.minimal-mode)>.top{flex-wrap:wrap}
 .app:fullscreen.calibrating:not(.minimal-mode)>.target-wrap,.app:fullscreen.calibrating:not(.minimal-mode)>.sidebar{grid-row:3}
 .app:fullscreen.calibrating:not(.minimal-mode)>.bottom{grid-row:4}
 .app:fullscreen .practice-tools-menu{max-height:calc(100dvh - 70px)}
}
@media(max-width:640px) and (max-height:600px) and (orientation:landscape){.app:fullscreen:not(.minimal-mode) .brand-wordmark{display:none}.app:fullscreen:not(.minimal-mode) .top-right{min-width:0;flex-wrap:wrap}.app:fullscreen:not(.minimal-mode) .top-right>.practice-sign-out{margin-left:0}}

@media(max-width:1100px) and (orientation:portrait){
 .app:fullscreen:not(.minimal-mode){display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(160px,1fr) auto;overflow:hidden}
 .app:fullscreen:not(.minimal-mode)>.top{grid-column:1;grid-row:1;flex-wrap:wrap;gap:8px;padding:8px 12px}
 .app:fullscreen:not(.minimal-mode) .brand{width:100%;flex:none}
 .app:fullscreen:not(.minimal-mode) .brand small,.app:fullscreen:not(.minimal-mode) #history-link,.app:fullscreen:not(.minimal-mode) #btn-login,.app:fullscreen:not(.minimal-mode) #sync-chip,.app:fullscreen:not(.minimal-mode) #fps-chip,.app:fullscreen:not(.minimal-mode) #user-chip{display:none}
 .app:fullscreen:not(.minimal-mode) .top-right{width:100%;flex:none;flex-wrap:nowrap;justify-content:space-between;gap:6px}
 .app:fullscreen:not(.minimal-mode) .top-right>.practice-sign-out{margin-left:0}
 .app:fullscreen:not(.minimal-mode)>.target-wrap{grid-column:1;grid-row:2;height:100%;min-height:0}
 .app:fullscreen:not(.minimal-mode)>.sidebar,.app:fullscreen:not(.minimal-mode) .bottom>.who,.app:fullscreen:not(.minimal-mode) .bottom-metrics{display:none}
 .app:fullscreen:not(.minimal-mode)>.bottom{grid-column:1;grid-row:3;display:block;padding:8px 12px}
 .app:fullscreen:not(.minimal-mode) .controls{border:0;padding-top:0}
 .app:fullscreen.calibrating:not(.minimal-mode){grid-template-rows:auto auto minmax(160px,1fr) auto}
 .app:fullscreen.calibrating:not(.minimal-mode)>.target-wrap{grid-row:3}
 .app:fullscreen.calibrating:not(.minimal-mode)>.bottom{grid-row:4}
 .app:fullscreen .practice-tools-menu{max-height:calc(100dvh - 120px)}
}
/* Anchor to the whole toolbar, so a wrapped Tools button cannot push its menu
   beyond either edge of a narrow screen. The menu scrolls within the viewport. */
@media(max-width:1100px){
 .app .top-right{position:relative}
 .app .practice-tools{position:static}
 .app .top-right .practice-tools-menu{left:0;right:auto;top:calc(100% + 8px);width:min(280px,100%);min-width:0;max-width:100%;max-height:min(50dvh,420px)}
}
