:root{color-scheme:dark;--surface:#101713;--tile:#1c2720;--ink:#eaf3ec;--dim:#a7b8aa;--stroke:#334638;--green:#b6db81;font:15px/1.45 system-ui,sans-serif;background:var(--surface);color:var(--ink)}*{box-sizing:border-box}body{margin:0;height:100dvh;display:flex;flex-direction:column}header{padding:14px 20px;padding-top:max(14px,env(safe-area-inset-top));display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--stroke)}a{color:inherit;text-decoration:none}.brand{font-size:18px;font-weight:600}main{position:relative;flex:1;min-height:0;overflow:auto;padding:20px}main.map-page{padding:0}#map{width:100%;height:100%;background:#e8ede7;color:#17291c}nav{display:flex;padding:8px 8px max(12px,env(safe-area-inset-bottom));background:var(--tile);border-top:1px solid var(--stroke)}nav a{flex:1;text-align:center;min-height:44px;padding:12px 3px;font-size:13px}nav a[aria-current=page]{color:var(--green)}h1{font-size:26px;line-height:1.2;font-weight:500;margin:12px 0 18px}h2{font-size:19px;font-weight:500}.muted,small{color:var(--dim)}button,input,select{font:inherit;font-size:16px;min-height:44px;border:1px solid var(--stroke);border-radius:12px;padding:10px 14px;background:var(--tile);color:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button.primary{background:var(--green);color:#16250e;border-color:transparent}input,select{width:100%}input[type=checkbox]{width:24px;min-height:24px}label{display:grid;gap:6px;margin:16px 0}form,.content{max-width:760px;margin:auto}.row{display:flex;justify-content:space-between;align-items:center;gap:12px}.card{display:block;width:100%;text-align:left;background:var(--tile);border:1px solid var(--stroke);border-radius:16px;padding:16px;margin:12px 0}.card img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:10px}.back{border:0;background:transparent;padding-left:0}.status{padding:14px}.map-status{position:absolute;top:12px;left:12px;right:12px;background:var(--tile);border-radius:12px;z-index:2}.club-pin{border:2px solid #fff;background:#245735;color:#fff;border-radius:24px;box-shadow:0 3px 12px #1235;font-weight:600}.ball{display:grid;place-items:center;background:#fff;color:#18261d;border-radius:50%;width:52px;height:52px;font-weight:600;font-size:22px}.actions{display:grid;gap:10px}.error{color:#ffc5b5}[hidden]{display:none!important}:focus-visible{outline:3px solid var(--green);outline-offset:3px}@media(min-width:800px){nav{justify-content:center}nav a{flex:0 1 190px}}
.game-heading{display:flex;align-items:center;gap:12px;justify-content:space-between}.game-heading h2{margin:0}.game-heading button{flex:0 0 auto;min-width:44px;min-height:44px}
.status:empty,.game-people:empty{display:none}.game-score{font-size:32px;letter-spacing:.04em}.game-people{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:16px 0}.game-person{display:grid;justify-items:center;gap:8px;max-width:45%;overflow-wrap:anywhere;text-align:center}.player-avatar{display:inline-grid;place-items:center;width:52px;height:52px;flex:0 0 52px;border-radius:50%;background:#fff;overflow:hidden}.card .player-avatar img,.player-avatar img{width:52px;height:52px;aspect-ratio:1;object-fit:cover;border-radius:50%}
.game-person{max-width:32%}.game-people .game-score{white-space:nowrap;margin:0}
.avatar-palette{display:flex;gap:10px;flex-wrap:wrap}.avatar-swatch{width:40px;height:40px;min-height:40px;padding:0;border:2px solid #89978d;border-radius:50%}
.shot-filters{display:flex;gap:20px;flex-wrap:wrap;margin:12px 0}.shot-filters label{display:flex;align-items:center;gap:8px;margin:0}.shot-filters input{margin:0}.card>button{margin:4px 4px 4px 0}
:root .map-club-list{position:absolute;top:80px;left:12px;right:12px;max-width:460px;max-height:65dvh;overflow:auto;padding:16px;border-radius:16px;background:#f7f8f5;color:#142219;z-index:3}.map-club-list[hidden]{display:none}.map-club-list button{display:block;width:100%;margin:8px 0}.maplibregl-ctrl-attrib{color:#333;background:#fff!important}

:root{color-scheme:dark;--surface:#101217;--tile:#1c2028;--ink:#f5f6f8;--dim:#979faa;--stroke:#ffffff12;--green:#a5e4cc;font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--surface);color:var(--ink);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;height:100dvh;display:flex;flex-direction:column;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}a{color:inherit;text-decoration:none}button{touch-action:manipulation;cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.45;cursor:default}
header{flex:none;padding:14px 24px;padding-top:max(14px,env(safe-area-inset-top));display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--stroke);background:#101217}.brand{font-size:18px;letter-spacing:-.4px;font-weight:650}#network{font-size:12px;color:var(--dim)}main{position:relative;flex:1;min-height:0;overflow:auto;padding:28px 20px 36px;overscroll-behavior-y:contain}.content{max-width:720px;margin:auto}main.map-page{padding:0}#map{width:100%;height:100%;background:#edf0ec;color:#1a2320}
nav{display:flex;flex:none;padding:9px 10px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--stroke);background:#161a20}nav a{flex:1;min-height:48px;text-align:center;display:grid;justify-items:center;align-content:center;gap:4px;color:#9099a6;font-size:11px;letter-spacing:.1px;font-weight:500}nav svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}nav a[aria-current=page]{color:var(--green)}
h1{font-size:34px;line-height:1.1;letter-spacing:-1.15px;font-weight:720;margin:4px 0 14px}h2{font-size:20px;line-height:1.3;letter-spacing:-.4px;font-weight:650;margin:10px 0}h3{font-size:18px;font-weight:650;letter-spacing:-.3px}.page-subtitle{color:var(--dim);margin:0 0 26px;max-width:56ch}.muted,small,.footnote{color:var(--dim)}.footnote{font-size:13px;margin-top:24px}
button,input,select{min-height:48px;font-size:16px;border:1px solid var(--stroke);border-radius:14px;padding:12px 16px;background:var(--tile);color:inherit}input,select{width:100%;outline:none}input:focus{border-color:var(--green)}input[type=checkbox]{width:22px;min-height:22px;accent-color:var(--green)}label{display:grid;gap:9px;font-size:13px;color:var(--dim);margin:22px 0}label input{color:var(--ink)}button.primary{background:var(--green);border-color:transparent;color:#153a30;font-weight:650}.secondary{background:#ffffff09;border-color:transparent}.back{padding:0;min-height:36px;background:none;border:0;color:var(--green);font-size:14px;margin-bottom:12px}.status{font-size:14px;color:var(--dim);padding:12px 0}.status:empty,.game-people:empty{display:none}[hidden]{display:none!important}:focus-visible{outline:2px solid var(--green);outline-offset:4px}
.card{background:var(--tile);border:1px solid var(--stroke);border-radius:22px;padding:20px;margin:14px 0}.card img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:14px}.row,.game-heading{display:flex;gap:12px;align-items:center;justify-content:space-between}.game-heading h2{margin:0}.empty-title{padding-top:54px;color:var(--ink);font-weight:650;letter-spacing:-.5px;font-size:23px}.empty-description{color:var(--dim);font-size:15px;line-height:1.6;max-width:320px;margin:8px 0 50px}
.day-group{border-top:1px solid var(--stroke);margin-top:12px}.day-group>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 2px;font-size:17px;font-weight:600;letter-spacing:-.3px}.day-group>summary::-webkit-details-marker{display:none}.day-count{font-size:12px;font-weight:500;min-width:28px;text-align:center;padding:4px 8px;background:#ffffff08;color:var(--dim);border-radius:20px}.day-group>summary:after{content:'⌄';color:var(--dim);font-size:20px}.day-group[open]>summary:after{transform:rotate(180deg)}.day-count{margin-left:auto}.day-records{display:grid;gap:14px;padding-bottom:20px}.record-card{margin:0;padding:18px;min-width:0}.record-date{font-size:12px;color:var(--dim);margin:0 0 8px;letter-spacing:.2px}.record-card h2{margin:0;font-size:19px}.record-state{font-size:12px;color:var(--dim);margin:5px 0 16px}.record-actions{display:grid;grid-template-columns:1.3fr 1fr;gap:9px;margin-top:16px}.record-actions button{font-size:13px;padding:11px 8px;min-height:44px}.load-more{display:block;margin:24px auto 0;background:none;color:var(--green);border-color:var(--stroke);font-size:14px}
.table-preview{position:relative;aspect-ratio:16/9;background:linear-gradient(145deg,#253c36,#152823);border-radius:14px;overflow:hidden;display:grid;place-items:center;margin:12px 0}.table-preview img{width:100%;height:100%;aspect-ratio:16/9;object-fit:cover}.preview-placeholder{font-size:13px;color:#b3c4bc;text-align:center;padding:24px}.preview-caption{position:absolute;left:10px;top:10px;padding:4px 8px;border-radius:7px;background:#0b1217b8;color:#fff;font-size:10px;letter-spacing:.2px;pointer-events:none}.preview-play{position:absolute;bottom:12px;right:12px;min-height:34px;padding:6px 11px;background:#f5f6f7ed;color:#18251f;border:0;border-radius:9px;font-size:12px;font-weight:600}
.game-people{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:24px 0}.game-person{max-width:32%;text-align:center;font-size:15px;overflow-wrap:anywhere}.game-score{font-size:38px;letter-spacing:-1px;font-weight:700;white-space:nowrap}.shot-filters{display:flex;flex-wrap:wrap;gap:16px;margin:12px 0 20px}.shot-filters label{display:flex;align-items:center;gap:8px;margin:0}.shot-filters input{margin:0}.shot-card>button{margin:5px 5px 5px 0;font-size:13px}.shot-card h3{margin:6px 0}.shot-card>p{color:var(--dim);font-size:13px}.shot-card form{padding-top:12px;border-top:1px solid var(--stroke)}
.profile-form{max-width:480px;margin:auto}.profile-hero{text-align:center;padding:22px 0 14px}.profile-hero p{font-size:13px;margin:14px 0}.profile-ball{--ball-color:#fff;display:grid;place-items:center;width:96px;height:96px;margin:auto;border-radius:50%;background:radial-gradient(circle at 31% 24%,#fff9 0%,transparent 55%),var(--ball-color);box-shadow:inset -8px -12px 18px #0002,0 10px 25px #0003;color:#20242a;font-size:34px;font-weight:700;letter-spacing:-1px}.profile-form h2{margin-top:32px}.segmented{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:#080b1080;border-radius:15px;margin:16px 0 22px}.segmented button{border:0;background:none;font-size:13px;min-height:40px;padding:8px;color:var(--dim);border-radius:11px}.segmented button[aria-pressed=true]{background:#323944;color:var(--ink);box-shadow:0 2px 6px #0003}.ball-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;justify-items:center;padding:10px 0 20px}.number-ball{padding:0;width:46px;height:46px;min-height:46px;border-radius:50%;background:radial-gradient(circle at 30% 20%,#fff,#e6e8ec);color:#24272d;border:0;font-weight:650;box-shadow:inset -3px -4px 8px #0001}.number-ball[aria-pressed=true],.avatar-swatch[aria-pressed=true]{outline:2px solid var(--green);outline-offset:5px}.avatar-palette{display:grid;grid-template-columns:repeat(4,1fr);justify-items:center;gap:20px;padding:12px 0 24px}.avatar-swatch{background:radial-gradient(circle at 30% 22%,#fff7,transparent 65%),var(--swatch);width:48px;height:48px;padding:0;border:0;border-radius:50%;box-shadow:inset -4px -6px 10px #0002}.custom-color{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:var(--tile);border-radius:16px;font-size:15px;color:var(--ink)}input[type=color]{width:48px;height:44px;min-height:44px;padding:3px;border:0;background:none;border-radius:12px}.color-choices>label:last-child{display:grid;grid-template-columns:1fr 130px;align-items:center}.color-choices input[type=text]{font-family:ui-monospace,monospace}.profile-form>button.primary{width:100%;margin-top:28px}.sign-out{display:block;border:0;background:none;color:#e3a8aa;margin:28px auto 0;font-size:14px}.share-form{padding:12px 0 24px}.share-form>button{width:100%}.switch-row{display:flex;align-items:center;gap:14px;color:var(--ink);padding:20px;background:var(--tile);border-radius:18px;font-size:15px}.share-link{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:16px}.share-link input{font-size:12px;min-width:0}
.map-status{position:absolute;top:16px;left:16px;right:16px;background:#19211fed;color:#e8efeb;border:1px solid #fff1;padding:14px 16px;border-radius:16px;z-index:2;font-size:13px}.club-pin{border:2px solid #fff;background:#245b47;color:#fff;border-radius:24px;box-shadow:0 4px 14px #1234;font-size:12px;font-weight:650;min-height:40px;padding:8px 12px}.map-club-list{position:absolute;top:80px;left:16px;right:16px;max-width:460px;max-height:65dvh;overflow:auto;padding:20px;border-radius:20px;background:#f7f8f5;color:#142219;z-index:3}.map-club-list button{display:block;width:100%;margin:8px 0}.maplibregl-ctrl-attrib{color:#333;background:#fff!important}.error{color:#f1aaa6}.actions{display:grid;gap:10px}.player-avatar{display:none}
@media(min-width:700px){main{padding:40px 28px}.day-records{grid-template-columns:1fr 1fr}.content{max-width:820px}nav{justify-content:center}nav a{flex:0 1 160px}.profile-form{max-width:460px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s,opacity .15s,transform .15s}button:active{transform:scale(.98)}}

.live-scoreboard{text-align:center;padding:24px 12px;background:var(--panel,#1c2028);border-radius:24px}.live-scoreboard .game-score{font-size:52px;display:block}.live-metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.player-stat{background:#1c2028;border-radius:18px;padding:16px}.live-metrics small{grid-column:1/-1}.live-players{font-size:20px}.shot-card{overflow:hidden}

.touch-palette{padding:8px 0 16px}.color-plane{position:relative;height:210px;border-radius:18px;touch-action:none;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,transparent);outline-offset:4px}.color-thumb{position:absolute;width:24px;height:24px;border:3px solid white;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 1px 6px #0008;pointer-events:none}.touch-palette input[type=range]{appearance:none;padding:0;border:0;min-height:24px;height:24px;border-radius:20px;background:linear-gradient(to right,red,#ff0,#0f0,#0ff,#00f,#f0f,red);touch-action:pan-y}.touch-palette input::-webkit-slider-thumb{appearance:none;width:32px;height:32px;border:3px solid white;border-radius:50%;background:transparent;box-shadow:0 1px 5px #0008}.touch-palette input::-moz-range-thumb{width:26px;height:26px;border:3px solid white;border-radius:50%;background:transparent}.shot-card details{padding:12px 0}.shot-card summary{color:var(--dim);font-size:14px;cursor:pointer}nav svg{overflow:visible}

.shot-inline-player{position:absolute;z-index:5;border:0;border-radius:14px;background:#000}.table-preview>.preview-play{z-index:2}

.qr-camera{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:24px;background:#000;margin:20px 0}.join-seat{font-size:22px;font-weight:600}.join-table{color:var(--dim)}

.correction-toggle{font-size:13px;background:none;border:0;color:var(--dim);padding:8px 0}.vote-panel{padding:8px 0 12px}.vote-panel .segmented{margin:4px 0 16px}.vote-numbers{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0 18px}.vote-numbers button:first-child{grid-column:1/-1}.vote-numbers button[aria-pressed=true]{background:var(--green);color:#153a30}.vote-panel>.primary{width:100%}

.login-form{display:grid;gap:12px}.login-form label{margin:10px 0}.login-form p{margin:0}.logout-confirm{display:flex;flex-wrap:wrap;gap:12px;margin:28px 0}.logout-confirm p{width:100%;margin:0}.match-board{padding:24px 20px 14px;background:var(--tile);border:1px solid var(--stroke);border-radius:24px;margin:22px 0}.match-seats{display:grid;grid-template-columns:1fr 1fr;gap:20px}.match-seat{text-align:center;display:grid;gap:10px;min-width:0}.match-seat strong{font-size:16px;overflow-wrap:anywhere}.match-score{font-size:54px;line-height:1.15;letter-spacing:-2px}.match-stats{font-size:12px;color:var(--dim);white-space:nowrap}.match-seat.is-turn strong:before{content:"";display:inline-block;width:6px;height:6px;background:var(--green);border-radius:50%;margin-right:6px}.match-share{display:block;margin:20px auto 0;border:0;background:none;color:var(--green);min-height:40px;padding:8px}.shots-heading{display:flex;align-items:center;gap:12px;margin-top:28px}.sync-indicator{width:14px;height:14px;border:2px solid transparent;border-radius:50%}.sync-indicator.is-updating{border-color:var(--stroke);border-top-color:var(--green);animation:sync-spin 1s linear infinite}@keyframes sync-spin{to{transform:rotate(360deg)}}.preview-share{position:absolute;bottom:12px;left:12px;z-index:3;min-height:34px;padding:6px 11px;background:#15201ddd;font-size:12px;border-radius:9px}.table-preview[role=button]{cursor:pointer}.clip-loading:after{content:"Загружаем удар…";position:absolute;inset:0;display:grid;place-items:center;background:#101217b8;font-size:14px;z-index:4}.full-game-video iframe{width:100%;height:min(660px,75dvh);border:0;border-radius:18px;background:#000}.whole-game{width:100%;margin:4px 0 14px}.shot-result:empty{display:none}
.shot-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.shot-labels{min-width:0;display:grid;gap:5px}.shot-labels h3{margin:0;font-size:16px;overflow-wrap:anywhere}.shot-result{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--dim)}.shot-result:before{content:"";width:17px;height:3px;background:currentColor;transform:rotate(-35deg);border-radius:2px;margin:4px}.shot-result.has-pots:before{width:11px;height:11px;border-radius:50%;background:var(--green);transform:none}.shot-heading .correction-toggle{width:44px;height:44px;min-width:44px;padding:11px;margin:0;border:0;background:transparent;color:var(--dim)}.correction-toggle svg{width:22px;height:22px;display:block}.shot-card>.correction:empty{display:none}
.full-game-video iframe{display:block;height:clamp(340px,calc((100vw - 40px)*.5625 + 190px),560px)}
.record-line{display:flex;align-items:center;gap:12px;margin-bottom:14px;min-width:0}.record-clock{font-size:25px;font-weight:450;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-1px;color:var(--dim);flex:none}.record-players{min-width:0;flex:1;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.record-result{font-size:21px;color:var(--dim);flex:none}.record-result.winner{color:var(--green)}.records-sentinel{height:2px}
.match-estimate,.match-delivery{font-size:12px;line-height:1.5;text-align:center;color:var(--dim);margin:8px 0 0}
/* The app shell never scrolls; only main owns the page scroll position. */
html{height:100%;overflow:hidden;overscroll-behavior:none}
body{position:fixed;inset:0;height:100dvh;overflow:hidden;overscroll-behavior:none}
body>nav{position:relative;z-index:6;flex-shrink:0;padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}
body>main{min-width:0;overflow-x:hidden}
.shot-heading{gap:8px;margin-bottom:8px;min-width:0}
.shot-labels{display:flex;align-items:center;gap:10px;flex:1;min-width:0}
.shot-labels h3{flex:1;min-width:0;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shot-labels .shot-result{flex:0 1 auto;min-width:0;max-width:48%;font-size:12px;line-height:1.3}
.shot-result:before{flex-shrink:0}
.record-match{display:flex;align-items:center;gap:7px;flex:1;min-width:0;font-size:13px}
.record-player{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.record-player:last-child{text-align:right}
.record-player.winner{color:var(--green)}
.record-score{flex:none;white-space:nowrap;font-size:15px;font-weight:650;font-variant-numeric:tabular-nums}
/* Thumb actions sit above navigation while their content scrolls independently. */
main.action-page{display:flex;flex-direction:column;padding:0;overflow:hidden}
.action-page>.content{flex:1;min-height:0;width:100%;overflow:auto;overscroll-behavior:contain;padding:20px;margin:0 auto}
.bottom-actions{flex:none;display:flex;gap:12px;width:100%;max-width:760px;margin:0 auto;padding:14px max(20px,env(safe-area-inset-right)) 16px max(20px,env(safe-area-inset-left));background:var(--surface);border-top:1px solid var(--stroke)}
.bottom-actions>button{flex:1;min-width:0;min-height:52px;margin:0}
.action-page .qr-camera{display:block;max-height:42dvh;margin:12px 0;object-fit:contain}
.bottom-actions:has(>.login-form){display:block;flex:0 1 auto;max-height:75%;overflow:auto;overscroll-behavior:contain}
.bottom-actions>.login-form{width:100%;max-width:none;gap:12px}
.bottom-actions .login-form label{margin:0}
.bottom-actions .login-form button,.bottom-actions .login-form input{min-height:52px}
.bottom-actions .login-form .status{padding:0;font-size:13px}
.bottom-actions .login-form .status:empty{display:none}
.bottom-actions .login-form .muted{font-size:13px}
[data-install-help]>button{width:100%;min-height:48px}
.join-loading{display:flex;align-items:center;gap:12px}
.join-loading:before{content:"";flex:none;width:20px;height:20px;border:2px solid var(--stroke);border-top-color:var(--green);border-radius:50%;animation:sync-spin 1s linear infinite}
@media(prefers-reduced-motion:reduce){.join-loading:before{animation:none}}
.clip-note{position:absolute;left:10px;right:10px;bottom:10px;z-index:6;padding:6px 9px;border-radius:8px;background:#101217dd;color:var(--ink);font-size:12px;pointer-events:none}
.practice-summary{font-size:20px;font-weight:650;text-align:center;margin:0;font-variant-numeric:tabular-nums}
.practice-players{grid-template-columns:repeat(3,minmax(0,1fr))}
.practice-players>button{font-size:12px;padding-left:6px;padding-right:6px}

.content:has(>.records-refresh){position:relative}.records-refresh{position:absolute;right:0;top:0;display:flex;align-items:center;gap:8px;background:none;border:0;color:var(--green);font-size:13px}.records-refresh:before{content:'↻';font-size:23px;line-height:1}.records-refresh[aria-busy=true]:before{animation:sync-spin 1s linear infinite}.history-card{padding:12px 16px;margin:0}.history-card .record-line{margin:0}.history-card>.history-open{display:block;width:calc(100% + 32px);min-height:49px;margin:-12px -16px;padding:12px 16px;border:0;background:none;text-align:left}.day-more{display:block;margin:10px auto}.day-records>.status:empty{display:none}
@media(prefers-reduced-motion:reduce){.records-refresh[aria-busy=true]:before{animation:none;opacity:.5}}

.vote-numbers{display:flex;align-items:center;justify-content:space-between;gap:12px}.vote-numbers button{width:44px;flex:none}.vote-numbers output{font-size:18px;font-variant-numeric:tabular-nums}.clip-editor{border-bottom:1px solid var(--stroke);margin-bottom:12px;padding-bottom:10px}.clip-editor summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--green)}.clip-editor label{position:relative;margin:8px 0;font-size:12px}.clip-editor output{position:absolute;right:0;top:0;color:var(--dim)}.clip-editor input[type=range]{padding:0;min-height:32px;accent-color:var(--green)}.clip-editor-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.clip-editor-actions button,.clip-editor button,.clip-save{font-size:12px;min-height:44px}.clip-save{display:block;margin:8px 0;color:var(--green)}.cached-shot-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000;z-index:2;touch-action:pan-y}

.clip-padding-row{display:flex;align-items:center;gap:5px;margin:8px 0}.clip-padding-row>span{flex:1;font-size:12px}.clip-padding-row button{padding:6px;min-width:38px}.clip-padding-row output{position:static;min-width:36px;text-align:center;font-size:14px;font-variant-numeric:tabular-nums}

/* B7: six-pocket result editor, contained in the existing pencil panel. */
.shot-edit-tabs{margin-bottom:16px}.shot-result-editor>.segmented{display:flex}.shot-result-editor>.segmented button{flex:1;min-height:44px}
.shot-pocket-table{position:relative;height:152px;margin:24px 10px 16px;border:9px solid #776752;border-radius:15px;background:#205e58;box-shadow:inset 0 0 0 3px #398a77}
.shot-pocket-table .shot-pocket{position:absolute;z-index:2;width:44px;height:44px;min-width:44px;padding:0;border:0;background:transparent;color:#fff;border-radius:50%;font-size:13px;font-weight:700;isolation:isolate}
.shot-pocket:before{content:'';position:absolute;inset:9px;border-radius:50%;background:#0a2421;border:2px solid #81735c;z-index:-1}.shot-pocket[aria-pressed=true]:before{border-color:#e2eaca;box-shadow:0 0 0 3px #e2eaca33}
.pocket-0,.pocket-3{left:-19px}.pocket-1,.pocket-4{left:calc(50% - 22px)}.pocket-2,.pocket-5{right:-19px}.pocket-0,.pocket-2{top:-19px}.pocket-1{top:-21px}.pocket-3,.pocket-5{bottom:-19px}.pocket-4{bottom:-21px}
.shot-pocket-center{position:absolute;inset:24px 8px;display:flex;align-items:center;justify-content:center;gap:14px}.shot-pocket-center button{width:44px;height:44px;min-height:44px;border-radius:50%;background:#ffffff16;color:#eef5da;border:1px solid #ffffff36;font-size:24px}.shot-pocket-center output{min-width:32px;text-align:center;font-size:30px;color:#eef5da}.shot-result-editor>.quiet{display:block;margin:8px auto 12px}.clip-editor{border:0;padding:0}.clip-editor[hidden],.shot-result-editor[hidden]{display:none}

.shot-pot-total{text-align:center;color:var(--dim);font-size:13px}.shot-pocket[aria-pressed=true]:before{background:#dbebe4;border-color:#9af0d4;box-shadow:0 0 0 4px #c0e7d72b}.shot-pocket[aria-pressed=true]{color:#133d35}.clip-editor>div>button{width:100%;margin-top:8px}.clip-editor-actions{margin-bottom:12px}

.shot-pocket-center{flex-direction:column;gap:6px}.shot-pocket-controls{display:flex;align-items:center;justify-content:center;gap:16px}.shot-pocket-controls[hidden]{display:none}.shot-pocket-chosen{color:#d4e8df;font-size:11px;text-align:center}

/* One shell connection state; loaded content and drafts remain mounted. */
.service-unavailable header{align-items:flex-start}.service-unavailable #network{display:flex;align-items:center;gap:8px;max-width:70%;font-size:11px;color:var(--dim)}.service-unavailable #network button{font-size:11px;padding:6px;min-height:40px;flex:none}.service-unavailable #main .status{visibility:hidden}.service-unavailable #main:empty:before{content:"Загружаем экран…";display:block;padding:24px;color:var(--dim)}
.service-unavailable #main .content:has(>h1:only-child):after{content:"Загружаем экран…";display:block;color:var(--dim);padding:12px 0;font-size:14px}

/* Profile editing stays within thumb reach without shrinking touch targets. */
.profile-hero{display:grid;grid-template-columns:72px minmax(0,1fr) 44px;align-items:center;gap:10px;padding:4px 0 12px;text-align:left}.profile-hero .profile-ball{width:64px;height:64px;font-size:25px;grid-column:1;grid-row:1}.profile-hero label{grid-column:2;grid-row:1;margin:0;font-size:12px;color:var(--dim)}.profile-hero input{margin:4px 0 0;font-size:17px;width:100%;min-width:0}.profile-edit{grid-column:3;grid-row:1;width:44px;height:44px;padding:0;border-radius:50%;font-size:25px;color:var(--green)}.profile-form .segmented{margin:8px 0 12px}.profile-form .ball-grid{gap:12px;padding:6px 0 12px}.profile-form .avatar-palette{gap:12px;padding:6px 0 16px}.profile-form .avatar-swatch{width:44px;height:44px;min-height:44px}.profile-form .touch-palette{padding:0 0 8px}.profile-form .color-plane{height:140px}.profile-form .touch-palette input[type=range]{margin:14px 0 0;min-height:32px}.profile-form>button.primary{margin-top:12px}.profile-form>.status:empty{display:none}.profile-form>.status{margin:8px 0;font-size:13px}.profile-install{max-width:480px;margin:14px auto 0}.profile-install .card{padding:0;background:none;border:0;box-shadow:none}.profile-install button{width:100%}.profile-install p{font-size:13px;line-height:1.5;margin:10px 0}.profile-install+.sign-out{margin-top:12px}
.content:has(>.profile-form)>h1{margin:4px 0 14px}.profile-form .color-plane{height:120px}.profile-form .touch-palette label{margin:8px 0}.profile-form .touch-palette input[type=range]{margin-top:6px}
/* B10: compact, stable shot cards and one export action. */
.shot-card{overflow-anchor:none}.shot-card .shot-heading{display:flex;gap:10px;align-items:center}.shot-number{font-size:24px;font-weight:500;color:var(--dim);font-variant-numeric:tabular-nums;flex:none;min-width:30px}.shot-card .shot-labels{flex:1;display:grid;gap:3px;min-width:0}.shot-card .shot-labels h3{font-size:13px;line-height:1.3}.shot-card .shot-labels .shot-result{max-width:none;font-size:10px}.shot-at-score{white-space:nowrap;font-size:16px;font-variant-numeric:tabular-nums;color:var(--ink)}.shot-card .shot-heading .correction-toggle{flex:none;width:36px;min-width:36px;padding:7px}.shot-vote-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.shot-card .shot-vote-actions button,.shot-card .shot-pocket-controls button{margin:0}.shot-card .shot-pocket-controls button{padding:0;flex:none;width:44px;height:44px}.shot-pocket-controls{gap:12px}.shot-pocket-controls output{position:static;display:block;flex:0 0 32px}.shot-pocket-center{inset:16px 8px}.shot-pot-total:empty{display:none}.shot-vote-actions .quiet{font-size:12px}.clip-studio{padding:14px;border-radius:18px;background:#0c1016;border:1px solid #ffffff0b}.clip-summary{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:12px}.clip-summary strong{font-size:25px;font-weight:500;font-variant-numeric:tabular-nums}.clip-summary span{font-size:10px;text-align:right}.clip-settings{min-height:108px}.clip-studio .clip-padding-row{display:grid;grid-template-columns:minmax(65px,1fr) 36px 38px 36px 36px;gap:4px;margin:8px 0}.shot-card .clip-padding-row button{margin:0;min-width:0;width:36px;min-height:44px;padding:0;border-radius:12px;font-size:13px}.clip-padding-row>span{font-size:11px}.clip-editor .clip-padding-row output{position:static;min-width:0;font-size:13px}.clip-studio .clip-editor-actions{margin:4px 0 0;grid-template-columns:1fr 1.4fr;gap:8px}.shot-card .clip-editor-actions button{margin:0;width:100%;padding:9px 6px;font-size:12px;min-height:46px}.clip-progress{min-height:57px}.clip-progress progress{appearance:none;display:block;width:100%;height:3px;border:0;border-radius:3px;background:#ffffff0d}.clip-progress progress::-webkit-progress-bar{background:#ffffff0d;border-radius:3px}.clip-progress progress::-webkit-progress-value{background:var(--green);border-radius:3px;transition:width .3s}.clip-progress progress::-moz-progress-bar{background:var(--green)}.clip-feedback{font-size:11px;line-height:1.4;color:var(--dim);margin:7px 0;min-height:30px}.clip-save{font-size:12px;margin:0}.clip-progress.is-preparing progress{animation:clip-pulse 1.2s ease-in-out infinite}@keyframes clip-pulse{50%{opacity:.5}}@media(prefers-reduced-motion:reduce){.clip-progress.is-preparing progress{animation:none}}@media(max-width:350px){.clip-studio{padding:10px}.shot-card .shot-heading{gap:6px}.shot-at-score{font-size:14px}}
.table-preview[data-video-cached=true]:after{content:"На устройстве";position:absolute;top:10px;right:10px;padding:4px 7px;background:#101713dd;border-radius:7px;color:#b7e7d4;font-size:10px;z-index:3}.table-preview.clip-loading[data-video-cached=true]:after{content:"Загружаем удар…";inset:0;padding:0;border-radius:0;font-size:14px;z-index:4}
