/* XtrikeW shared visual foundation. All appearance settings live on html. */
:root{--xw-bg:#fff;--xw-surface:#f3f4f5;--xw-ink:#17191d;--xw-muted:#69707b;--xw-line:#e0e2e5;--xw-red:#b61620;--xw-track:#e1e3e6;--red:#b61620;--blue:#17191d;--navy:#17191d;--ink:#17191d;--ring-weight:13}
[hidden]{display:none!important}
.brand{display:none!important}
.edit-header,.equipment-header,.centres-header,.centre-header,.ball-header{height:0;min-height:0;padding:0;position:relative;background:none}
.edit-header .back-button,.equipment-header .back-button,.centres-header .back-button,.centre-header .back-button,.ball-header .back-button{top:4px;bottom:auto;left:12px;position:absolute;color:var(--xw-ink)}
.edit-content>h1,.equipment-content>h1,.centres-content>h1,.centre-content>h1,.ball-content>h1{margin:18px 48px 24px;font-size:27px;color:var(--xw-ink)}
.profile-topline .back-button{top:auto;left:auto}
#delivery-style{width:100%;min-height:44px;padding:8px 12px;border:1px solid var(--xw-line);border-radius:8px;color:var(--xw-ink);background:var(--xw-surface);font:inherit}
html[data-theme=dark] :is(.game-nav,.bottom-nav,.profile-nav){background:var(--xw-bg);border-color:var(--xw-line)}
html[data-theme=dark]{--xw-bg:#151618;--xw-surface:#222428;--xw-ink:#f5f5f6;--xw-muted:#adb1b9;--xw-line:#3b3e44;--xw-red:#ec6571;--xw-track:#3b3e44;--red:#ec6571;--blue:#f5f5f6;--navy:#f5f5f6;--ink:#f5f5f6;--muted:#adb1b9;--secondary:#adb1b9;--black:#f5f5f6;--line:#3b3e44;--card:#222428;--soft:#222428}
html{background:var(--xw-bg);color:var(--xw-ink)}
.xw-brand-header{height:calc(96px + var(--xw-header-clearance,0px));min-height:calc(96px + var(--xw-header-clearance,0px));display:flex;align-items:center;justify-content:space-between;gap:20px;padding:calc(8px + var(--xw-header-clearance,0px)) 20px 8px;border:0;background:var(--xw-bg);color:var(--xw-ink);box-sizing:border-box;position:relative;z-index:2}
.screen>.xw-brand-header{margin:0 -20px 20px}.app-shell>.xw-brand-header{margin:0 0 16px}
.xw-brand{display:flex;flex-direction:column;align-items:center;text-decoration:none;color:var(--xw-ink);width:184px;flex:none;line-height:1}
.xw-wordmark{display:block;width:184px;height:45px;overflow:hidden}.xw-wordmark img{display:block;width:184px;height:auto;max-width:none;mix-blend-mode:multiply}
.xw-brand small{font-size:14px;font-weight:500;line-height:1.25;letter-spacing:.15px;color:var(--xw-ink);margin-top:0}
html[data-theme=dark] .xw-wordmark img{filter:invert(1) hue-rotate(180deg);mix-blend-mode:screen}
.xw-profile-link{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;background:var(--xw-surface);color:var(--xw-muted);text-decoration:none;font-size:17px;font-weight:650}
.xw-brand:focus-visible,.xw-profile-link:focus-visible{outline:2px solid var(--xw-red);outline-offset:4px}
.score-donut,.eq-ring .score-donut,.eq-performance-row .score-donut,.practice-rate-ring{width:132px;height:auto;aspect-ratio:1;max-width:100%;margin-inline:auto}
.score-donut svg,.practice-rate-ring svg{stroke-width:var(--ring-weight);fill:none}
.score-track,.practice-ring-track{stroke:var(--xw-track)}.score-arc,.practice-ring-value{stroke:var(--xw-red);stroke-linecap:round}
.score-donut strong,.eq-performance-row .score-donut strong,.practice-rate-ring b{font-weight:750;font-size:30px;letter-spacing:-.7px;color:var(--xw-ink)}
h1,h2,h3{font-weight:750}button,input,select{accent-color:var(--xw-red)}
.back,.back-button,.summary-back,.report-back{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}.back svg,.back-button svg,.report-back svg{width:24px;height:24px;display:block}
.appearance-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;background:var(--xw-surface);padding:4px;border-radius:10px;margin-top:8px}
.appearance-options button{min-height:44px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--xw-ink);font-size:14px}
.appearance-options button[aria-pressed=true]{border-color:var(--xw-ink);background:var(--xw-bg);font-weight:700}
.appearance-options button:focus-visible{outline:2px solid var(--xw-red);outline-offset:2px}
@media(max-width:359px){.xw-brand-header{padding-inline:16px}.xw-brand,.xw-wordmark{width:166px}.xw-wordmark{height:41px}.xw-wordmark img{width:166px}.score-donut,.eq-ring .score-donut,.eq-performance-row .score-donut,.practice-rate-ring{width:112px}}

/* Original angular wordmark retained, with theme-matched red in both modes. */
.xw-brand-header .xw-wordmark img{content:url('assets/xtrikew-logo-light.svg?v=227');filter:none;mix-blend-mode:normal}
html[data-theme=dark] .xw-brand-header .xw-wordmark img{content:url('assets/xtrikew-logo-dark.svg?v=227');filter:none;mix-blend-mode:normal}

.xw-profile-link [data-profile-initials]{display:grid;place-items:center;width:100%;height:100%;border-radius:50%;overflow:hidden}

.xw-profile-link{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:auto;max-width:100px;height:auto;min-height:62px;background:transparent;border-radius:0}.xw-profile-link [data-profile-initials]{width:48px;height:48px;flex:none;background:var(--xw-surface);border-radius:50%}.xw-profile-link [data-profile-name]{display:block;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;line-height:18px;font-weight:600;color:var(--xw-ink)}

/* Centre the logo and avatar stacks as complete units. */
.xw-brand-header .xw-brand,.xw-brand-header .xw-profile-link{align-self:center}

/* Keep header content below the mobile WebKit top-edge treatment. */
@supports (-webkit-touch-callout:none){@media(max-width:700px){:root{--xw-header-clearance:12px}}}

/* One shared logo and tagline treatment across every app header. */
.xw-brand-header .xw-brand{transform:translateY(4px)}
@media(max-width:359px){.xw-profile-link,.xw-profile-link [data-profile-name]{max-width:80px}}

*{box-sizing:border-box}body{margin:0;font:16px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--xw-bg);color:var(--xw-ink)}button,input,select{font:inherit;color:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit}.app-frame{max-width:620px;margin:auto;padding-top:env(safe-area-inset-top)}.screen{padding:0 20px 18px}.screen>.xw-brand-header{height:calc(96px + var(--xw-header-clearance,0px));min-height:calc(96px + var(--xw-header-clearance,0px));margin:0 -20px;padding:calc(8px + var(--xw-header-clearance,0px)) 20px 8px;border:0}.topbar{display:flex;align-items:center;gap:4px;min-height:52px;margin-left:-10px}.topbar h1{font-size:24px;line-height:1.2;font-weight:800;letter-spacing:-.5px;margin:0}.back{border:0;background:none;width:44px;height:44px;padding:10px;flex:none}.back svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.spacer{display:none}.setup-row{display:grid;grid-template-columns:minmax(100px,.65fr) minmax(0,1fr);align-items:center;gap:12px;margin:8px 0}.setup-row>div{min-width:0}label,.field-label{font-size:14px}input,select{display:block;width:100%;min-width:0;min-height:44px;border:1px solid var(--xw-line);border-radius:6px;background:var(--xw-bg);padding:8px 10px;font-size:16px;line-height:24px}select option{background:var(--xw-bg);color:var(--xw-ink)}input[type=date]{appearance:none;max-width:100%;text-align:left}input[type=date]::-webkit-date-and-time-value{text-align:left}.setup-row:has(.session-types){display:block;margin:10px 0 14px}.field-label{display:block;font-weight:650;margin-bottom:6px}.session-types,.line-options{display:grid;grid-template-columns:1fr 1fr 1.15fr;gap:5px}.session-types button,.line-options button{min-height:44px;min-width:0;padding:7px 3px;border:1px solid var(--xw-line);border-radius:5px;background:var(--xw-bg);font-size:14px;line-height:1.25}.session-types [aria-pressed=true],.line-options [aria-pressed=true]{border-color:var(--xw-ink);box-shadow:inset 0 0 0 .5px var(--xw-ink);background:var(--xw-surface);font-weight:700}.optional-setup{border-top:1px solid var(--xw-line);border-bottom:1px solid var(--xw-line);padding:10px 0;margin-bottom:12px}.optional-setup h2{display:flex;justify-content:space-between;gap:8px;font-size:15px;font-weight:750;margin:0 0 6px}.optional-setup h2 span{font-size:13px;font-weight:400;color:var(--xw-muted)}.ball-choice{display:flex;align-items:center;gap:8px}.ball-choice select{flex:1;min-width:0}#ball-photo{width:34px;height:34px;object-fit:contain}.pattern-row{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:10px}.pattern-row label{display:block;margin-bottom:4px}.setup-hint{font-size:13px;line-height:1.4;color:var(--xw-muted);margin:7px 0}.line-heading h2{font-size:21px;line-height:1.2;font-weight:800;margin:0}.line-options{margin:10px 0 0}.line-toolbar{display:flex;align-items:center;justify-content:space-between;min-height:32px;font-size:12px;color:var(--xw-muted)}.line-toolbar button{border:0;background:none;padding:4px 8px;min-height:32px;font-size:13px;text-decoration:underline}.lane-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,1.1fr);gap:10px;align-items:start}.lane-wrap{min-width:0}.lane-wrap svg{display:block;width:100%;height:auto;overflow:visible;touch-action:pan-y}.line-controls{display:grid;gap:6px;padding-top:3px}.line-controls label{display:grid;grid-template-columns:minmax(0,1fr) 67px;gap:6px;align-items:center;min-height:43px;font-size:12px;line-height:1.25}.line-controls label>span{display:flex;position:relative;align-items:center}.line-controls input{min-height:40px;padding:6px 3px;text-align:center;font-size:16px;font-weight:600}.line-controls small{display:none}.line-controls label[for=distance-value] input{padding-right:16px}.line-controls label[for=distance-value] small{display:block;position:absolute;right:5px;font-size:10px;color:var(--xw-muted)}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{appearance:none;margin:0}.primary{display:block;width:100%;min-height:48px;margin-top:12px;padding:11px 12px;border:0;border-radius:6px;background:#b61620;color:#fff;font-size:18px;font-weight:750}.primary:disabled{opacity:.5}.form-error{color:var(--xw-red);font-size:14px}.form-error:empty{display:none}#line-warning{color:var(--xw-red);font-size:14px}#add-centre-link{display:inline-block;font-size:14px;padding:8px 0}.bottom-nav{display:flex;justify-content:space-around;border-top:1px solid var(--xw-line);padding:10px 6px max(12px,env(safe-area-inset-bottom));background:var(--xw-bg)}.bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:5px;min-height:44px;text-decoration:none;font-size:12px;color:var(--xw-muted)}.bottom-nav svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.bottom-nav a.active{color:#b61620;font-weight:700}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid var(--xw-ink);outline-offset:3px}@media(max-width:359px){.screen{padding-inline:14px}.screen>.xw-brand-header{margin-inline:-14px;padding-inline:14px}.lane-editor{grid-template-columns:minmax(0,.9fr) minmax(155px,1.1fr);gap:5px}.line-controls label{grid-template-columns:minmax(0,1fr) 59px;gap:3px}.session-types button,.line-options button{font-size:13px}}@media(min-width:700px){.app-frame{border-inline:1px solid var(--xw-line)}.lane-editor{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}.line-controls{gap:12px;padding-top:10px}.line-controls label{font-size:14px;grid-template-columns:minmax(0,1fr) 90px}.lane-wrap{max-width:245px}}

.line-style-options{grid-template-columns:1fr 1fr}.line-options[hidden]{display:none}#rule31-estimate{font-size:14px}

/* Compact shot-shape switch beside the title, with full touch targets. */
.line-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.line-heading h2{flex:1;min-width:0}
.line-heading .line-style-options{display:flex;flex:none;gap:0;margin:0;border:1px solid var(--xw-line);border-radius:6px;overflow:hidden}
.line-heading .line-style-options button{min-width:64px;min-height:44px;padding:6px 9px;border:0;border-radius:0;background:transparent;color:var(--xw-muted);font-size:14px;box-shadow:none}
.line-heading .line-style-options [aria-pressed=true]{background:var(--xw-surface);color:var(--xw-ink);font-weight:700}
#rule31-estimate{margin:6px 0 12px;line-height:1.35}
@media(max-width:359px){.line-heading{gap:6px}.line-heading h2{font-size:19px}.line-heading .line-style-options button{min-width:58px;padding-inline:6px}}

/* Single source of truth; !important intentionally retires page-level nav overrides. */
:root{--xw-nav-height:68px;--xw-nav-safe:env(safe-area-inset-bottom,0px)}
.xw-primary-nav{box-sizing:border-box!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:0!important;align-items:stretch!important;height:calc(var(--xw-nav-height) + var(--xw-nav-safe))!important;min-height:calc(var(--xw-nav-height) + var(--xw-nav-safe))!important;padding:6px 8px calc(6px + var(--xw-nav-safe))!important;margin:0!important;background:var(--xw-bg,#fff)!important;border:0!important;border-top:1px solid var(--xw-line,#e0e2e5)!important;border-radius:0!important;box-shadow:none!important;flex-shrink:0!important}
.xw-main-nav{position:fixed!important;inset:auto 0 0!important;transform:none!important;width:100%!important;max-width:620px!important;margin-inline:auto!important;z-index:40!important}
.xw-primary-nav>a{box-sizing:border-box!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;min-width:0!important;min-height:44px!important;padding:2px!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;text-decoration:none!important;color:var(--xw-muted,#69707b)!important;font:500 12px/16px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:0!important}
.xw-primary-nav>a.active,.xw-primary-nav>a[aria-current=page]{color:#b61620!important;font-weight:650!important}
.xw-primary-nav>a svg{display:block!important;width:24px!important;height:24px!important;flex:none!important;margin:0!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.xw-primary-nav>a::before,.xw-primary-nav>a::after{content:none!important}
.xw-primary-nav>a:focus-visible{outline:2px solid var(--xw-ink)!important;outline-offset:-2px!important}
.xw-navigation-content{padding-bottom:calc(var(--xw-nav-height) + var(--xw-nav-safe) + 16px)!important;scroll-padding-bottom:calc(var(--xw-nav-height) + var(--xw-nav-safe) + 16px)}
/* Preserve each page's scrolling model; only reserve space for the shared fixed bar. */
.xw-navigation-frame{max-width:620px!important;border:0!important;border-radius:0!important;box-shadow:none!important}
html.xw-navigation-page body{padding:0!important}
.home-shell.xw-navigation-content,.settings-shell.xw-navigation-content,.equipment-shell.xw-navigation-content,.centres-shell.xw-navigation-content{max-width:620px!important}
@media(min-width:700px){.xw-navigation-frame{height:100dvh!important}}
/* Full-screen editors keep their own top-layer bar and existing scroll clearance. */
dialog .xw-primary-nav{position:fixed!important;inset:auto 0 0!important;transform:none!important;width:100%!important;max-width:620px!important;margin-inline:auto!important;z-index:40!important}

/* Editor feedback stays visible above the shared navigation. */
.xw-navigation-content .toast{bottom:calc(var(--xw-nav-height) + var(--xw-nav-safe) + 16px);z-index:41}

/* Remove trailing container padding; retain one safe clearance above the bar. */
.xw-navigation-content>.home-content,.xw-navigation-content>.centres-content{padding-bottom:0}
.xw-navigation-content> :last-child:not(nav){margin-bottom:0}

.competition-page{background:var(--xw-bg);color:var(--xw-ink);font:16px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}.competition-page .screen{max-width:620px;margin:auto;padding:env(safe-area-inset-top,0px) 20px 24px}.competition-page h1{font-size:24px;margin:0;font-weight:800}.competition-page h2{font-size:20px;margin:0 0 10px}.competition-page button,.competition-page input,.competition-page select{font:inherit;color:var(--xw-ink)}.comp-toolbar{display:flex;gap:10px;align-items:center;margin:12px 0}.comp-tabs{display:flex;flex:1;min-width:0;background:var(--xw-surface);border:1px solid var(--xw-line);border-radius:8px;padding:2px}.comp-tabs button{flex:1;min-width:0;min-height:44px;background:none;border:1px solid transparent;border-radius:6px;font-size:14px;padding:5px}.comp-tabs button[aria-pressed=true]{border-color:var(--xw-ink);font-weight:700}.comp-create{font-size:14px!important;min-height:44px;padding:8px 12px;background:var(--xw-bg);border:1px solid var(--xw-line);border-radius:8px}.comp-picker{margin:12px 0}.comp-picker select{width:100%;min-height:48px;border:1px solid var(--xw-line);border-radius:9px;background:var(--xw-surface);padding:10px;font-weight:650}.comp-picker p{color:var(--xw-muted);font-size:14px;margin:5px 0}.comp-rank{padding:18px;border:1px solid var(--xw-line);border-radius:11px;background:#f0f1f3;margin:16px 0}.comp-rank-label{font-size:13px;text-transform:uppercase;color:var(--xw-muted);margin:0 0 12px}.comp-rank-line{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.comp-place b{font:800 64px/1.1 XWDisplay,system-ui,sans-serif;letter-spacing:-2px}.comp-place span{font-size:24px;font-weight:700}.comp-rank p:last-child{border-bottom:2px solid #b61620;padding-bottom:12px;margin-bottom:0;font-size:14px}.comp-movement{font-size:16px;font-weight:700;color:var(--xw-muted)}.comp-movement.up{color:#137c35}.comp-movement.down{color:#b61620}.comp-update{display:inline-block;margin-top:12px;font-size:14px;background:none;border:0;padding:8px 0;text-decoration:underline;min-height:44px}.comp-pair{display:grid;grid-template-columns:1fr 1fr;margin:16px 0;text-align:center;gap:10px}.comp-pair>div{min-width:0}.comp-pair>div+div{border-left:1px solid var(--xw-line)}.comp-pair b{display:block;font:800 clamp(30px,9vw,44px)/1.2 XWDisplay,system-ui,sans-serif}.comp-pair span,.comp-pair small{display:block;font-size:14px;color:var(--xw-muted)}.comp-result{border-top:1px solid var(--xw-line);margin-top:22px;padding-top:14px}.comp-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.comp-section-heading small{font-size:14px;color:var(--xw-muted)}.comp-note{text-align:center;color:var(--xw-muted);font-size:14px}.comp-link{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;padding:12px 0;color:var(--xw-ink);text-decoration:none;border:0;border-top:1px solid var(--xw-line);background:none;font:inherit;text-align:left;gap:10px}.comp-link span{min-width:0}.comp-link small{display:block;color:var(--xw-muted);font-size:14px}.comp-title{display:flex;align-items:center;gap:16px;margin:14px 0 20px}.comp-title a{min-width:44px;min-height:44px;display:grid;place-items:center;font-size:28px;text-decoration:none;color:var(--xw-ink)}.comp-form label{display:block;font-size:14px;margin:14px 0 5px}.comp-form input,.comp-form select{width:100%;min-height:44px;border:1px solid var(--xw-line);border-radius:7px;background:var(--xw-surface);padding:10px}.comp-form fieldset{border:0;padding:0;margin:16px 0}.comp-form legend{font-size:14px;margin-bottom:6px}.comp-form .comp-tabs label{margin:0;flex:1;position:relative;text-align:center}.comp-form .comp-tabs input{position:absolute;opacity:0;width:1px;height:1px;min-height:0}.comp-form .comp-tabs span{display:flex;align-items:center;justify-content:center;min-height:44px;border:1px solid transparent;border-radius:5px;padding:5px;font-size:14px}.comp-form .comp-tabs input:checked+span{border-color:var(--xw-ink);font-weight:700}.comp-form .comp-tabs input:focus-visible+span{outline:2px solid var(--xw-ink)}.comp-primary{display:block;width:100%;min-height:48px;margin:20px 0 12px;padding:10px;border:0;border-radius:8px;background:#b61620;color:#fff!important;font-weight:700!important}.comp-empty{padding:28px 16px;border:1px solid var(--xw-line);border-radius:11px;margin:20px 0}.competition-page [hidden]{display:none!important}.competition-page [role=alert]{color:#b61620}.competition-page a:focus-visible,.competition-page button:focus-visible{outline:2px solid var(--xw-ink);outline-offset:3px}.comp-history-rank{display:grid;grid-template-columns:1fr auto;gap:12px;border-bottom:1px solid var(--xw-line);padding:12px 0}.comp-history-rank small{display:block;color:var(--xw-muted)}.comp-rank-form{border:1px solid var(--xw-line);border-radius:10px;padding:12px;margin:12px 0}.comp-filterscope{display:block;width:100%;font-size:14px;min-height:44px;background:var(--xw-surface);color:var(--xw-ink);border:1px solid var(--xw-line);border-radius:6px;padding:8px;margin:0 0 8px}.comp-session-fields{padding:12px 0;border-top:1px solid var(--xw-line)}.comp-session-fields label{display:block;margin:10px 0 4px;font-size:14px}.comp-session-fields select,.comp-session-fields input{width:100%;min-height:44px;background:var(--xw-surface);color:var(--xw-ink);border:1px solid var(--xw-line);border-radius:7px;padding:8px;font:inherit}.comp-session-fields a{display:inline-block;padding:10px 0;color:var(--xw-ink);font-size:14px}html[data-theme=dark] .comp-rank{background:#26282c}html[data-theme=dark] .comp-movement.up{color:#53cd78}html[data-theme=dark] .comp-movement.down,html[data-theme=dark] .competition-page [role=alert]{color:#ff858b}@font-face{font-family:XWDisplay;src:url('assets/profile-display-bold.woff') format('woff');font-weight:800;font-display:swap}@media(min-width:700px){.competition-page .screen{padding-inline:28px}}
/* Scope controls share the report width without displacing the two standard filters. */
#competition-filter-host{width:100%;flex-basis:100%;min-width:0}#competition-filter-host[hidden]{display:none!important}.comp-return{display:inline-block;color:var(--xw-muted);font-size:14px;margin:0 0 6px;padding:5px 0}.comp-session-fields[hidden],.comp-session-fields [hidden]{display:none!important}.comp-session-fields .comp-note{text-align:left}.comp-session-fields p{margin:6px 0}.competition-page .comp-form .comp-pair{gap:16px}.competition-page .comp-form .comp-pair>div+div{border:0}.competition-page .comp-form .comp-pair{text-align:left}.competition-page .comp-rank>p:not(.comp-rank-label){font-size:14px;color:var(--xw-muted);margin:8px 0 0}.competition-page .comp-rank{border-bottom:3px solid #b61620}.competition-page .comp-rank .comp-update{margin-top:2px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.competition-page #comp-error:empty{display:none}

@media(min-width:700px){.competition-page .screen>.xw-brand-header{margin-inline:-28px}}

.competition-page .comp-link{font-weight:600}.competition-page .comp-link small{font-weight:400}

/* Competition management: 16px section rhythm, 12px card padding, 44px actions. */
.competition-page .comp-landing-title{margin:12px 0 16px}
.comp-create-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 20px}
.comp-create-actions a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px 8px;border:1px solid var(--xw-line);border-radius:8px;color:var(--xw-ink);text-decoration:none;font-size:14px;font-weight:650;line-height:1.3}
.comp-create-actions a>span{color:#b61620;font-size:24px;font-weight:400}
.comp-list-section{margin:0 0 20px}
.comp-list-card{display:grid;grid-template-columns:minmax(0,1fr) auto 12px;align-items:center;gap:10px;padding:12px;margin:8px 0;border:1px solid var(--xw-line);border-radius:10px;background:var(--xw-surface);color:var(--xw-ink);text-decoration:none;min-height:72px}
.comp-list-card b{display:block;font-size:16px;line-height:1.3;overflow-wrap:anywhere}
.comp-list-card small{display:block;margin-top:4px;font-size:13px;line-height:1.35;color:var(--xw-muted);overflow-wrap:anywhere}
.comp-list-rank{font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}
.comp-empty-note{font-size:14px;color:var(--xw-muted);margin:0;padding:12px;border:1px solid var(--xw-line);border-radius:10px}
.comp-archive{margin-top:16px;border-top:1px solid var(--xw-line)}
.comp-archive summary{display:flex;align-items:center;justify-content:space-between;min-height:48px;font-size:14px;cursor:pointer;list-style:none}
.comp-archive summary::after{content:'›'}
.comp-archive[open] summary::after{transform:rotate(90deg)}
.comp-archive summary>span{margin-left:auto;margin-right:12px;color:var(--xw-muted)}
.comp-back{display:inline-flex;align-items:center;min-height:44px;font-size:14px;color:var(--xw-muted);text-decoration:none}
.comp-detail-heading{margin:4px 0 16px}
.comp-detail-heading h1{overflow-wrap:anywhere}
.comp-detail-heading p{margin:6px 0 0;font-size:14px;color:var(--xw-muted);overflow-wrap:anywhere}
.competition-page .comp-rank{margin:0 0 16px;padding:16px;border:1px solid var(--xw-line);border-radius:10px}
.competition-page .comp-rank-label{margin:0 0 8px;text-transform:none}
.competition-page .comp-place b{font-size:48px;letter-spacing:-1px}
.competition-page .comp-place span{font-size:18px}
.competition-page .comp-rank .comp-update,.competition-page #comp-body>#rank-open{display:block;width:100%;min-height:44px;margin:12px 0 0;padding:10px;border:1px solid var(--xw-line);border-radius:7px;background:var(--xw-bg);color:var(--xw-ink);font-size:15px;font-weight:650;text-decoration:none;text-align:center}
.competition-page .comp-pair{margin:16px 0;gap:12px}
.competition-page .comp-pair b{font-size:30px}
.competition-page .comp-pair span,.competition-page .comp-pair small{margin-top:4px;line-height:1.35}
.competition-page .comp-result{margin-top:16px;padding-top:16px}
.competition-page .comp-title{gap:8px;margin:4px 0 16px}
.competition-page .comp-note{line-height:1.4}
.competition-page .comp-rank-form{margin:0 0 16px;padding:16px}
@media(max-width:359px){.comp-create-actions{gap:8px}.comp-create-actions a{font-size:13px;gap:4px}.comp-list-card{gap:8px;padding:10px}.comp-list-rank{font-size:13px}}

/* Match the Sessions banner proportions while retaining this photo's bright exposure. */
.competition-page .screen:has(.competition-photo-banner)>.xw-brand-header{height:calc(90px + var(--xw-header-clearance,0px));min-height:calc(90px + var(--xw-header-clearance,0px));padding-bottom:2px;margin-bottom:0}
.competition-page .competition-photo-banner{position:relative;isolation:isolate;display:flex;align-items:flex-end;min-height:144px;aspect-ratio:2.5;overflow:hidden;border-radius:12px;background:#d9d4cc;margin:0 0 12px;padding:14px 16px}
.competition-photo-banner>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:-2}
.competition-photo-banner::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(transparent 50%,rgba(0,0,0,.52))}
.competition-page .competition-photo-banner h1{margin:0;color:#fff;font-size:24px;line-height:1.25;letter-spacing:-.3px;text-shadow:0 1px 3px #0005}

body.session-page .screen>.xw-brand-header{height:calc(90px + var(--xw-header-clearance,0px));min-height:calc(90px + var(--xw-header-clearance,0px));padding-bottom:2px;margin-bottom:6px}
body.session-page .session-photo-banner{position:relative;isolation:isolate;display:flex;align-items:flex-end;min-height:144px;aspect-ratio:2.5;overflow:hidden;border-radius:12px;background:#d9d4cc;margin:0 0 20px;padding:14px 16px}
.session-photo-banner>.session-banner-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:-2}
.session-photo-banner::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(transparent 50%,rgba(0,0,0,.52))}
body.session-page .session-photo-banner h1{margin:0;color:#fff;font-size:24px;font-weight:800;line-height:1.25;letter-spacing:-.3px;text-shadow:0 1px 3px #0005}

body.session-page .setup-row{margin:12px 0}
body.session-page .setup-row:has(.session-types){margin:16px 0 18px}
body.session-page .field-label{margin-bottom:8px}
body.session-page .optional-setup{padding:16px 0;margin-bottom:18px}
body.session-page .optional-setup h2{margin-bottom:10px}
body.session-page .pattern-row label{margin-bottom:6px}
body.session-page .setup-hint{margin:10px 0}

/* Keep the primary action visible without compressing the form. */
body.session-page .session-action-bar{position:fixed;z-index:39;left:0;right:0;bottom:calc(var(--xw-nav-height,68px) + var(--xw-nav-safe,env(safe-area-inset-bottom,0px)));width:100%;max-width:620px;margin-inline:auto;padding:10px 20px;background:var(--xw-bg);border-top:1px solid var(--xw-line);box-sizing:border-box}
body.session-page .session-action-bar .primary{margin:0;min-height:48px}
body.session-page .screen.xw-navigation-content{padding-bottom:calc(var(--xw-nav-height,68px) + var(--xw-nav-safe,env(safe-area-inset-bottom,0px)) + 88px)!important;scroll-padding-bottom:calc(var(--xw-nav-height,68px) + var(--xw-nav-safe,env(safe-area-inset-bottom,0px)) + 88px)}
body.session-page #session-form input,body.session-page #session-form select{scroll-margin-bottom:160px}
@media(max-width:359px){body.session-page .session-action-bar{padding-inline:14px}}

/* Preserve the phone design across narrow covers and short viewports. */
.xw-primary-nav>a>span{max-width:100%;overflow-wrap:anywhere;text-align:center}
@media(max-width:359px){
 :root{--xw-nav-height:80px}
 body.sessions-final #review-scoreboard{grid-template-columns:repeat(9,minmax(32px,1fr)) minmax(48px,1.5fr);overflow-x:auto;overscroll-behavior-x:contain;margin-inline:0}
}
/* A short viewport needs form space more than a second fixed bottom bar. */
@media(max-height:500px){
 body.session-page .session-action-bar{position:static;width:100%;padding:12px 0;margin-top:16px}
 body.session-page .screen.xw-navigation-content{padding-bottom:calc(var(--xw-nav-height,68px) + var(--xw-nav-safe,0px) + 16px)!important;scroll-padding-bottom:calc(var(--xw-nav-height,68px) + var(--xw-nav-safe,0px) + 16px)}
}
@media(max-width:319px){
 body.stats-final #pane-overview #game-breakdown #scoring-grid .score-donut{width:88px;height:88px}
 #scoring-grid .breakdown-rings{gap:12px}
}

/* Keep focus within the control edge, including clipped cards and dark theme. */
html body :is(input,select,textarea):focus-visible{outline:2px solid var(--xw-ink,#17191d)!important;outline-offset:-2px!important}
html body button:focus-visible{outline:2px solid var(--xw-ink,#17191d);outline-offset:-3px}
html body .header-ball:focus-within{outline:2px solid var(--xw-ink,#17191d);outline-offset:-2px;border-radius:5px}
html body .header-ball select:focus-visible{outline:none!important}
html[data-theme] .session-page :is(.session-types,.line-options) button[aria-pressed=true]{border-color:var(--xw-ink);color:var(--xw-ink);background:var(--xw-surface);box-shadow:inset 0 0 0 .5px var(--xw-ink)}

/* Additions only: reuse existing profile rows, fields, dialogs and app colours. */
.xw-sharing-section{border-top:1px solid var(--xw-line);margin-top:16px;padding-top:2px}
.xw-sharing-section .backup-row{min-height:68px}
.xw-sharing-section .backup-row .action-icon{width:26px;height:26px}
.xw-owner-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;margin:0 0 14px;border:1px solid var(--xw-line);border-radius:8px;background:var(--xw-surface);font:14px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--xw-ink)}
.xw-owner-strip a{color:inherit;font-weight:650;text-decoration:none}.xw-owner-strip small{display:block;color:var(--xw-muted);font-size:12px}
.xw-share-dialog{box-sizing:border-box;width:min(440px,calc(100% - 28px));max-height:calc(100dvh - 32px);overflow-y:auto;border:1px solid var(--xw-line);border-radius:14px;padding:22px;background:var(--xw-bg);color:var(--xw-ink);font:15px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.xw-share-dialog::backdrop{background:#0008}.xw-share-dialog h2{margin:0 0 14px;font-size:24px;line-height:1.2;letter-spacing:-.5px}.xw-share-dialog h3{font-size:17px;margin:18px 0 8px}.xw-share-dialog p{margin:10px 0}.xw-share-dialog .xw-muted{color:var(--xw-muted);font-size:14px}.xw-share-dialog .xw-choice{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--xw-line)}.xw-share-dialog input[type=checkbox]{width:22px;height:22px;flex:none;accent-color:#b61620}.xw-share-dialog select{width:100%;font:inherit;color:var(--xw-ink);background:var(--xw-surface);border:1px solid var(--xw-line);border-radius:8px;padding:10px;margin:6px 0;min-height:44px}.xw-share-actions{display:grid;gap:8px;margin-top:18px}.xw-share-button{width:100%;min-height:46px;padding:10px 14px;border:1px solid var(--xw-line);border-radius:8px;background:var(--xw-bg);color:var(--xw-ink);font:650 15px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;cursor:pointer}.xw-share-button.primary{background:#b61620;color:#fff;border-color:#b61620}.xw-share-button:disabled{opacity:.5;cursor:default}.xw-share-error{color:var(--xw-red);white-space:pre-line;font-size:14px}.xw-share-error:empty{display:none}.xw-share-info{margin:14px 0;padding:12px;border-radius:8px;background:var(--xw-surface);font-size:14px}.xw-share-controls{display:grid;gap:8px;margin:18px 0}.xw-attribution{font-size:13px;color:var(--xw-muted);margin:12px 0}.xw-bowler-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;border-bottom:1px solid var(--xw-line);text-decoration:none;color:var(--xw-ink)}.xw-bowler-row strong{display:block;font-size:18px}.xw-bowler-row small{display:block;color:var(--xw-muted);font-size:14px;margin-top:4px}.xw-bowler-details{font-size:14px;color:var(--xw-muted)}.xw-share-dialog img.xw-scorecard-preview{display:block;width:100%;height:auto;border-radius:8px}.xw-share-dialog details{margin:12px 0}.xw-share-dialog summary{cursor:pointer;min-height:44px;padding:10px 0}.xw-share-dialog ul{padding-left:20px;font-size:14px}.xw-sharing-section h2{font-size:25px}.xw-share-dialog:focus-visible,.xw-share-button:focus-visible{outline:2px solid var(--xw-ink);outline-offset:3px}

.xw-bowler-photo{width:100%;height:100%;object-fit:cover;border-radius:inherit}

/* Editable lanes share one layout; saved diagrams and statistics are untouched. */
html .lane-editor,
html.practice-page .practice-redesign #setup-lane-editor,
html.practice-page .practice-editor .line-section,
html.log-page :is(#shot-dialog,#change-dialog) .shared-lane-editor {
  display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start;
}
html .lane-editor .lane-wrap {width:100%;max-width:360px;margin:0 auto}
html .lane-editor .lane-wrap svg,
html.practice-page .practice-redesign #setup-lane,
html.practice-page .practice-editor #practice-lane,
html.log-page :is(#shot-dialog,#change-dialog) .shared-lane-editor :is(#detail-lane,#change-lane) {
  display:block;width:min(100%,360px,calc((100svh - 260px) / 2));height:auto;max-height:none;margin:0 auto;background:transparent;touch-action:pan-y;
}
html .lane-editor .line-controls,
html.practice-page .practice-redesign #setup-line-inputs,
html.practice-page .practice-editor #line-inputs,
html.log-page #shot-dialog #detail-boards,
html.log-page #change-dialog .shared-lane-editor .change-boards {
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;
  padding:12px 2px;margin:0;background:var(--xw-surface);border:0;border-radius:12px;min-width:0;
}
html .lane-editor .line-controls>label,
html.practice-page .practice-redesign #setup-line-inputs>div,
html.practice-page .practice-editor #line-inputs>div,
html.log-page #shot-dialog #detail-boards>div,
html.log-page #change-dialog .shared-lane-editor .change-boards>div {
  display:flex;flex-direction:column;align-items:stretch;justify-content:flex-end;
  gap:4px;min-width:0;margin:0;padding:0 2px;text-align:center;border:0;
}
html .lane-editor .line-controls>label,
html.practice-page .practice-redesign #setup-line-inputs label,
html.practice-page .practice-editor #line-inputs label,
html.log-page #shot-dialog #detail-boards label,
html.log-page #change-dialog .shared-lane-editor .change-boards label {
  font-size:12px;line-height:1.35;font-weight:400;margin:0;overflow-wrap:anywhere;color:var(--xw-muted);text-align:center;
}
html .lane-editor .line-controls input,
html.practice-page .practice-redesign #setup-line-inputs input,
html.practice-page .practice-editor #line-inputs input,
html.log-page #shot-dialog #detail-boards input,
html.log-page #change-dialog .shared-lane-editor .change-boards input {
  box-sizing:border-box;width:100%;min-width:0;min-height:44px;margin:0;padding:8px 2px;
  text-align:center;font-size:16px;line-height:24px;font-weight:650;
  height:44px;border:0;border-radius:0;background:transparent;color:var(--xw-ink);box-shadow:none;
}
html .lane-editor .line-controls>label:not(:first-child),
html.practice-page .practice-redesign #setup-line-inputs>div:not(:first-child),
html.practice-page .practice-editor #line-inputs>div:not(:first-child),
html.log-page #shot-dialog #detail-boards>div:not(:first-child),
html.log-page #change-dialog .shared-lane-editor .change-boards>div:not(:first-child) {border-left:1px solid var(--xw-line)}
html .lane-editor .line-controls label>span {border:0}
html .lane-editor .line-controls label[for=distance-value]>span,
html #setup-line-inputs .lane-value-unit,
html #line-inputs .lane-value-unit,
html.log-page #shot-dialog #detail-boards .lane-value-unit,
html.log-page #change-dialog .change-boards .lane-value-unit {display:flex;align-items:center;justify-content:center;gap:2px;min-width:0}
html .lane-editor .line-controls label[for=distance-value] input,
html #setup-line-inputs .lane-value-unit input,
html #line-inputs .lane-value-unit input,
html.log-page #shot-dialog #detail-boards .lane-value-unit input,
html.log-page #change-dialog .change-boards .lane-value-unit input {flex:0 1 4ch;width:4ch;min-width:0;padding-inline:0;text-align:right}
html .lane-editor .line-controls label[for=distance-value] small,
html .lane-value-unit small {position:static;display:block;font-size:12px;line-height:1;color:var(--xw-muted);padding-right:3px;flex:none}
html .lane-landing {margin:8px 0 0;padding:0;border:0;background:none;grid-column:1/-1}
html .lane-landing summary {font-size:14px;min-height:36px;padding:8px 0;color:var(--xw-muted);cursor:pointer}
html .lane-landing label {display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;margin:4px 0}
html .lane-landing .lane-value-unit {display:flex;align-items:center;gap:2px}
html .lane-landing input {width:5ch;min-height:44px;padding:6px 2px;text-align:right;font-size:16px}
html .lane-editor .line-controls>[hidden],
html.practice-page .practice-redesign #setup-line-inputs>[hidden],
html.practice-page .practice-editor #line-inputs>[hidden],
html.log-page #shot-dialog #detail-boards>[hidden],
html.log-page #change-dialog .shared-lane-editor .change-boards>[hidden] {display:none}

/* One banner title treatment across app sections. */
html body :is(.stats-photo-banner,.sessions-photo-banner,.session-photo-banner,.competition-photo-banner,.home-photo-banner)>:is(h1,h2,p){font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:24px;font-weight:800;line-height:1.25;letter-spacing:-.3px}

html body .home-content .home-photo-banner .home-glance-title{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:24px;font-weight:800;line-height:1.25;letter-spacing:-.3px}

/* Session Stats typography shared by editable and recorded lane values. */
html body :is(.line-controls,#setup-line-inputs,#line-inputs,#detail-boards,.change-boards,.recorded-values){gap:2px;padding:16px 2px;border-radius:13px;background:var(--xw-surface)}
html body :is(.line-controls,#setup-line-inputs,#line-inputs,#detail-boards,.change-boards)>:is(label,div){gap:8px;justify-content:flex-start}
html body :is(.line-controls,#setup-line-inputs,#line-inputs,#detail-boards,.change-boards) label,
html body .line-controls>label,
html body .recorded-values span{font-size:12px;line-height:16px;font-weight:400;color:var(--xw-muted)}
html body :is(.line-controls,#setup-line-inputs,#line-inputs,#detail-boards,.change-boards) input,
html.log-page body.log-redesign #change-dialog .change-boards input{font-size:14px;line-height:20px;font-weight:600}
html.log-page body.log-redesign #change-dialog .shared-lane-editor .change-boards{padding:16px 2px;border-radius:13px;gap:2px}
html.log-page body.log-redesign #change-dialog .change-boards>div{gap:8px}
html.log-page body.log-redesign #change-dialog .change-boards label{font-size:12px;line-height:16px;margin:0;font-weight:400;color:var(--xw-muted)}
html.practice-page .practice-redesign #setup-line-inputs input,
html.practice-page .practice-editor #line-inputs input,
html.log-page #shot-dialog #detail-boards input{font-size:14px;line-height:20px;font-weight:600}
html.practice-page .practice-redesign #setup-line-inputs label,
html.practice-page .practice-editor #line-inputs label,
html.log-page #shot-dialog #detail-boards label{font-size:12px;line-height:16px;font-weight:400;color:var(--xw-muted)}

/* Keep the unit outside the numeric input without squeezing away its digits. */
html body :is(#setup-line-inputs,#line-inputs,#detail-boards,.change-boards) label{
 font-size:12px!important;line-height:16px!important;white-space:nowrap!important;
}
html body :is(#setup-line-inputs,#line-inputs,#detail-boards,.change-boards) .lane-value-unit{
 display:flex!important;align-items:center;gap:0!important;width:100%;min-width:0;
 box-sizing:border-box;padding:0 1px!important;border:1px solid var(--xw-line);
 border-radius:6px;background:var(--xw-bg);
}
html body :is(#setup-line-inputs,#line-inputs,#detail-boards,.change-boards) .lane-value-unit input{
 flex:1 1 0!important;width:0!important;min-width:0!important;max-width:none!important;
 padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important;
 text-align:center!important;font-size:14px!important;letter-spacing:-.3px;
}
html body :is(#setup-line-inputs,#line-inputs,#detail-boards,.change-boards) .lane-value-unit small{
 flex:0 0 11px!important;width:11px;padding:0!important;font-size:10px!important;text-align:right;
}

/* Compact working surface. Shared brand header and lane geometry are untouched. */
.named-lines{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}
.named-lines button,html.log-page body.log-redesign #change-dialog .named-lines button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:64px;padding:10px 6px;border:1px solid var(--xw-line,#ddd);border-radius:10px;background:var(--xw-surface,#f5f5f6);color:var(--xw-ink,#18191c);font-family:inherit;font-size:14px;line-height:1.25;font-weight:600;cursor:pointer}
.named-lines button small{display:block;font-size:13px;font-weight:400;color:var(--xw-muted,#707580)}
.named-lines button[aria-pressed=true],html.log-page body.log-redesign #change-dialog .named-lines button[aria-pressed=true]{border-color:#b61620;background:#b61620;color:#fff}
.named-lines button[aria-pressed=true] small{color:#fff}
.named-lines[hidden]{display:none}
.line-guide{font-size:14px;line-height:1.5;margin:12px 0;color:var(--xw-muted,#707580)}
.line-guide summary{cursor:pointer;color:var(--xw-ink,#18191c)}
html.log-page body.log-redesign #change-dialog .change-selection{grid-template-columns:minmax(0,1fr);background:transparent;border:0;border-bottom:1px solid var(--xw-line);border-radius:0;padding-bottom:12px}
html.log-page body.log-redesign #change-dialog .change-frame-field{display:none}
html.log-page body.log-redesign #change-dialog .change-ball-card{padding:0;min-height:60px}
html.log-page body.log-redesign #change-dialog #change-ball-name{font-size:16px;line-height:22px}
html.log-page body.log-redesign #change-dialog .change-ball-card label{font-size:14px}
html.log-page body.log-redesign #change-dialog .change-line{margin-top:16px}
html.log-page body.log-redesign #change-dialog .change-lane-toolbar{margin-bottom:0}
html.log-page body.log-redesign #change-dialog .named-lines button{font-family:inherit;font-size:14px;line-height:18px}
html.log-page body.log-redesign #change-dialog :is(.lane-landing,#change-history){border:0;border-bottom:1px solid var(--xw-line);border-radius:0;background:transparent;padding:0;margin-top:0}
html.log-page body.log-redesign #change-dialog :is(.lane-landing,#change-history)>summary{font-size:16px;font-weight:500;min-height:56px}
html.log-page body.log-redesign.log-reference :is(#rack-clear,#rack-spare,#rack-zero){display:flex;align-items:center;justify-content:center;text-align:center;gap:0;padding:0;font-size:26px;line-height:1}
html.log-page body.log-redesign.log-reference :is(#rack-clear,#rack-spare,#rack-zero)::after{content:none}
#home-average[role=button]{cursor:pointer;border-radius:8px}
#home-average-info{padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;min-height:44px;text-align:left}
#home-average[role=button]:focus-visible{outline:2px solid #b61620;outline-offset:4px}
.favourite-ball-setting{display:flex!important;align-items:center;gap:10px;min-height:44px}
.favourite-ball-setting input{width:22px!important;height:22px!important;accent-color:#b61620}
@media(max-width:359px){.named-lines{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Navy supports the red brand: spare data, secondary actions and app headings. */
:root{--xw-navy:#203d60;--xw-navy-soft:#edf2f7;--xw-chart-red:#b61620}
html[data-theme=dark]{--xw-navy:#91b5dd;--xw-navy-soft:#202c3b;--xw-chart-red:#ed7881}
main h2{color:var(--xw-navy)}
:is(.game-nav,.bottom-nav,.profile-nav) a:not(.active):not([aria-current=page]) svg{color:var(--xw-navy)}
:is(.stats-back,.explore-link,.cv-explore){color:var(--xw-navy)!important}
:is(.cv-pager button,.frame-analysis-tabs button):focus-visible{outline:2px solid var(--xw-navy);outline-offset:3px}
body.stats-final .frame-analysis-tabs button[aria-pressed=true]{color:var(--xw-navy);border-color:var(--xw-navy);background:var(--xw-navy-soft)}
body.stats-final #pane-pins :is(.sd-track i,.sd-frame-plot i,.strike-track i),body.stats-final [data-metric=spare] .sd-track i{background:var(--xw-navy)}
body.stats-final #pane-pins .sd-ring-fill,body.stats-final [data-metric=spare] .sd-ring-fill{stroke:var(--xw-navy)}
body.stats-final .cv-tone-1{background:var(--xw-navy)}
body.stats-final .sd-mini-bars i:not(.sd-red),body.stats-final .pinfall-bin:not(.is-strike) .pinfall-plot i,body.stats-final .cv-bonus button:not(:last-child) i{background:var(--xw-navy)}
body.stats-final .sx-form-trend{display:block;width:100%;height:auto;overflow:visible;color:var(--xw-chart-red)}
body.stats-final #spare-trend-chart .sx-form-trend{color:var(--xw-navy)}
body.stats-final .sx-form-trend .trend-line{fill:none;stroke:currentColor!important;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
body.stats-final .sx-form-trend .trend-dot{fill:var(--xw-bg)!important;stroke:currentColor!important;stroke-width:2.5}
body.stats-final .sx-form-trend .trend-value{font:600 12px system-ui!important;fill:var(--xw-ink)!important}
body.stats-final .sx-form-trend .trend-axis-label{font:11px system-ui!important;fill:var(--xw-muted)!important}
body.stats-final :is(#strike-trend,#spare-trend-chart,#closing-trend,.sx-form-chart){overflow-x:auto}
.sx-conversion-list{display:grid;gap:8px;margin:16px 0}.sx-conversion-list button{display:grid;grid-template-columns:100px minmax(0,1fr) 48px;gap:12px;align-items:center;min-height:54px;border:0;background:none;color:var(--xw-ink);padding:4px 0;text-align:left;font:inherit;cursor:pointer}.sx-conversion-list button>span:first-child{font-size:14px}.sx-conversion-list small{display:block;color:var(--xw-muted);font-size:12px;margin-top:4px}.sx-conversion-list strong{text-align:right;font-size:20px}.sx-style-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:20px}.sx-style-grid button{display:flex;flex-direction:column;gap:10px;align-items:flex-start;background:none;border:0;padding:0;font:inherit;color:var(--xw-ink);cursor:pointer}.sx-style-grid strong{font-size:28px}.sx-style-grid .sd-track{width:100%}.sx-style-grid small{font-size:13px;color:var(--xw-muted)}

.sx-frame-chart{position:relative}.sx-frame-targets{position:absolute;inset:0;display:grid;grid-template-columns:repeat(10,minmax(0,1fr))}.sx-frame-targets button{background:transparent;border:0;padding:0;min-width:0;border-radius:6px;cursor:pointer}.sx-frame-targets button:focus-visible{outline:2px solid var(--xw-navy);background:var(--xw-navy-soft)}body.stats-final #spare-by-frame .sx-form-trend{color:var(--xw-navy)}

/* Shared semantic roles, layered over the restored Build 358 neutral palette. */
:root{--xw-navy:#203d60;--xw-navy-soft:#edf2f7;--xw-control-text:#203d60}
html[data-theme=dark]{--xw-navy:#4476ad;--xw-navy-soft:#202c3b;--xw-control-text:#f5f5f6}
main :is(h1,h2,h3,h4),body.stats-final main :is(h1,h2,h3,h4){color:var(--xw-ink)}
:is(.game-nav,.home-nav,.bottom-nav,.profile-nav) a:not(.active):not([aria-current=page]),:is(.game-nav,.home-nav,.bottom-nav,.profile-nav) a:not(.active):not([aria-current=page]) svg{color:var(--xw-muted)!important}
:is(.game-nav,.home-nav,.bottom-nav,.profile-nav) :is(a.active,a[aria-current=page]){color:var(--xw-red)!important}
body.stats-final .frame-analysis-tabs button[aria-pressed=true]{color:var(--xw-red);border-color:var(--xw-red);background:var(--xw-bg)}
:is(.stats-back,.explore-link,.cv-explore,.back-button,.report-back){color:var(--xw-control-text)!important}
.performance-metric[data-performance=spare] .score-arc,.performance-metric[data-performance=opens] .score-arc,[data-stat=spare] :is(.score-arc,.practice-ring-value,.ar-arc),.practice-series-spare{stroke:var(--xw-navy)!important}
.practice-point-spare,.practice-legend .spare,#pane-equipment .ar-spare{fill:var(--xw-navy)!important;background:var(--xw-navy)!important}
[data-stat=strike] :is(.score-arc,.practice-ring-value),.practice-series-strike{stroke:var(--xw-red)!important}
.performance-details{display:flex;flex-direction:column;align-items:center;width:100%;gap:3px;text-decoration:none;color:var(--xw-ink)}
.performance-details .performance-label{color:var(--xw-ink)}
body.stats-final :is(.sd-mini-bars i:not(.sd-red),.pinfall-bin:not(.is-strike) .pinfall-plot i,.cv-bonus button:not(:last-child) i){background:var(--xw-muted)}
/* Spare graphic contrast: deep blue against the base surface, not a similar grey. */
html[data-theme=dark] #pane-pins :is(.sd-track,.strike-track,.ar-track),html[data-theme=dark] [data-metric=spare] .sd-track{background:var(--xw-bg)}
html[data-theme=dark] #pane-pins .sd-ring svg>circle:first-child,html[data-theme=dark] [data-metric=spare] .sd-ring svg>circle:first-child,html[data-theme=dark] [data-stat=spare] :is(.score-track,.practice-ring-track),html[data-theme=dark] .performance-metric[data-performance=spare] .score-track,html[data-theme=dark] .performance-metric[data-performance=opens] .score-track{stroke:var(--xw-bg)}
html[data-theme=dark] #pane-equipment [data-stat=spare] .ar-donut svg>circle:first-child{stroke:var(--xw-bg)}

/* Platform-friendly interaction foundation. Layout, branding and score sizing stay intact. */
html{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-text-size-adjust:100%;text-size-adjust:100%;color-scheme:light}
html[data-theme=dark]{color-scheme:dark}
button,input,select,textarea{font-family:inherit}
button:not(.pinfall-bin):not([data-frame]):not([data-sd-frame]):not([data-bonus]),input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select{min-height:44px}
:is(.cv-pager button,.dialog-heading button,.back-button,.stats-back,.cv-explore,.performance-details){min-height:44px}
:is(.game-nav,.home-nav,.bottom-nav,.profile-nav) a{min-height:44px}
:is(button,a,input,select,textarea,[role=button]):focus-visible{outline:2px solid var(--xw-red);outline-offset:3px}
:where(button,a,[role=button]){touch-action:manipulation}
input,select,textarea{scroll-margin-block:80px}
dialog{max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box}
button:disabled{cursor:default}
@media(max-width:700px){input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{font-size:16px}.dialog-heading{gap:12px}.dialog-heading h2{min-width:0;overflow-wrap:anywhere}.dialog-heading button{flex-shrink:0}}
@media(prefers-reduced-motion:reduce){html,body,*{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
@media(prefers-contrast:more){:root{--xw-muted:#30343b;--xw-line:#60656d}html[data-theme=dark]{--xw-muted:#e4e6ea;--xw-line:#9298a2}body.stats-final .sd-note{color:var(--xw-muted)}}

/* Shared bold typography; each banner keeps its own image and message. */
html body :is(.home-photo-banner,.sessions-photo-banner,.session-photo-banner,.competition-photo-banner,.stats-photo-banner,.more-photo-banner,.practice-setup-banner){min-height:152px}
html body :is(.home-photo-banner,.sessions-photo-banner,.session-photo-banner,.competition-photo-banner,.stats-photo-banner,.more-photo-banner,.practice-setup-banner) :is(h1,h2,p[role=heading]),html body .home-content .home-photo-banner .home-glance-title,html.practice-page body.practice-redesign #landing .practice-setup-banner h1,body.sessions-journal .sessions-photo-banner h1{
 font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:clamp(28px,7.5vw,34px);font-weight:800;line-height:1.08;letter-spacing:-.8px;color:#fff;margin:0;text-shadow:0 1px 4px #0006;max-width:100%
}
html body .home-photo-banner::before{background:linear-gradient(90deg,#0009,transparent 85%)}
html body .stats-photo-banner #stats-banner-title{white-space:normal}

/* One responsive banner layout, overriding retired page-specific geometry. */
:root{--xw-page-gutter:20px;--xw-banner-height:160px}
html body .home-content,html body .settings-content,html body.stats-final .screen,html body.sessions-journal .screen,html body.session-page .screen,html body.competition-page .screen,html.practice-page body .practice-screen{padding-inline:var(--xw-page-gutter)!important;box-sizing:border-box;min-width:0}
html body :is(.home-photo-banner,.sessions-photo-banner,.session-photo-banner,.competition-photo-banner,.stats-photo-banner,.more-photo-banner,.practice-setup-banner){position:relative!important;isolation:isolate;display:flex!important;align-items:flex-end!important;justify-content:flex-start!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:var(--xw-banner-height)!important;height:auto!important;aspect-ratio:auto!important;overflow:hidden!important;border-radius:12px!important;border:0!important;background:#27282b!important;margin:0 0 14px!important;padding:18px!important;flex-shrink:0}
html body :is(.home-photo-banner,.sessions-photo-banner,.session-photo-banner,.competition-photo-banner,.stats-photo-banner,.more-photo-banner,.practice-setup-banner)>img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:center 52%!important;filter:brightness(1.18) contrast(.88) saturate(1.05)!important;opacity:1!important;z-index:-2!important}
html body :is(.home-photo-banner,.sessions-photo-banner,.session-photo-banner,.competition-photo-banner,.stats-photo-banner,.more-photo-banner,.practice-setup-banner)::before{content:""!important;position:absolute!important;inset:0!important;z-index:-1!important;pointer-events:none;background:linear-gradient(0deg,rgba(0,0,0,.32),transparent 68%)!important}
html body :is(.home-photo-banner,.sessions-photo-banner,.session-photo-banner,.competition-photo-banner,.stats-photo-banner,.more-photo-banner,.practice-setup-banner)::after{content:none!important}
html body :is(.home-photo-banner,.sessions-photo-banner,.session-photo-banner,.competition-photo-banner,.stats-photo-banner,.more-photo-banner,.practice-setup-banner) :is(h1,h2,p[role=heading]){position:relative!important;inset:auto!important;transform:none!important;box-sizing:border-box;min-width:0;width:auto!important;max-width:100%!important;margin:0!important;padding:0!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;font-size:clamp(1.75rem,7.5vw,2rem)!important;font-weight:800!important;line-height:1.08!important;letter-spacing:-.7px!important;white-space:normal!important;overflow-wrap:normal;color:#fff!important;text-align:left!important;text-shadow:0 1px 4px #000b!important}
html body :is(.home-photo-banner,.sessions-photo-banner,.session-photo-banner,.competition-photo-banner,.stats-photo-banner,.more-photo-banner,.practice-setup-banner)>div{min-width:0;max-width:100%}
html body :is(.home-photo-banner,.sessions-photo-banner,.session-photo-banner,.competition-photo-banner,.stats-photo-banner,.more-photo-banner,.practice-setup-banner)>img[src*="home-lane-crimson"]{filter:brightness(1.35) contrast(.9) saturate(.9)!important}
html body :is(.home-photo-banner,.sessions-photo-banner,.session-photo-banner,.competition-photo-banner,.stats-photo-banner,.more-photo-banner,.practice-setup-banner)>img[src*="competition-lanes"]{filter:brightness(1.04) contrast(.92) saturate(1.02)!important}
html body :is(.home-photo-banner,.sessions-photo-banner,.session-photo-banner,.competition-photo-banner,.stats-photo-banner,.more-photo-banner,.practice-setup-banner)>img[src*="score-sheet"]{object-position:65% center!important;filter:brightness(1.3) contrast(.83) saturate(1.02)!important}
html body .profile-preferences h2,html body #appearance-message{text-align:center}
html body .profile-preferences .appearance-options{width:100%;margin-inline:auto}
html body .average-card h1{text-transform:none}
@media(min-width:700px){:root{--xw-page-gutter:24px;--xw-banner-height:180px}}
@media(max-width:359px){:root{--xw-page-gutter:16px}html body :is(.home-photo-banner,.sessions-photo-banner,.session-photo-banner,.competition-photo-banner,.stats-photo-banner,.more-photo-banner,.practice-setup-banner){padding:16px!important}}

html body :is(.home-photo-banner,.sessions-photo-banner)>img{filter:brightness(1.32) contrast(.82) saturate(1.08)!important}

/* Matching logo/avatar stacks with shared visual and text dimensions. */
html body .xw-brand-header{--header-logo-width:184px;--header-logo-height:45px;--header-copy-height:18px;--header-stack-gap:3px;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;height:auto!important;min-height:0!important;padding-top:calc(8px + var(--xw-header-clearance,0px))!important;padding-bottom:8px!important;margin-bottom:0!important;box-sizing:border-box}
html body .xw-brand-header .xw-brand{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;align-self:center!important;gap:var(--header-stack-gap)!important;transform:none!important;flex:0 0 var(--header-logo-width)!important;width:var(--header-logo-width)!important;max-width:none!important;height:calc(var(--header-logo-height) + var(--header-copy-height) + var(--header-stack-gap))!important}
html body .xw-brand-header .xw-wordmark{display:block!important;width:var(--header-logo-width)!important;max-width:none!important;height:var(--header-logo-height)!important;flex:none!important;overflow:hidden!important}
html body .xw-brand-header .xw-wordmark img{display:block!important;width:var(--header-logo-width)!important;max-width:none!important;height:auto!important;object-fit:initial!important}
html body .xw-brand-header .xw-brand small{display:block!important;margin:0!important;white-space:nowrap!important;font-size:14px!important;line-height:var(--header-copy-height)!important;letter-spacing:0!important}
html body .xw-brand-header .xw-profile-link{display:flex!important;flex-direction:column!important;align-items:center!important;align-self:center!important;justify-content:flex-start!important;gap:var(--header-stack-gap)!important;min-width:0!important;min-height:0!important;max-width:110px!important;width:auto!important;flex:0 1 auto!important;height:calc(var(--header-logo-height) + var(--header-copy-height) + var(--header-stack-gap))!important;background:transparent!important;position:static!important;text-decoration:none}
html body .xw-brand-header .xw-profile-link [data-profile-initials]{order:0;display:grid!important;place-items:center;align-self:center!important;width:var(--header-logo-height)!important;height:var(--header-logo-height)!important;min-width:var(--header-logo-height)!important;flex:0 0 var(--header-logo-height)!important;border-radius:50%!important;overflow:hidden!important}
html body .xw-brand-header .xw-profile-link img{width:100%!important;height:100%!important;border-radius:50%!important;object-fit:cover!important}
html body .xw-brand-header .xw-profile-link [data-profile-name]{order:1;align-self:center!important;display:block!important;min-width:0!important;width:auto!important;max-width:110px!important;margin:0!important;font-size:14px!important;line-height:var(--header-copy-height)!important;letter-spacing:0!important;text-align:center!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body .xw-brand-header + :is(.home-content,.settings-content){padding-top:0!important}
@media(max-width:359px){html body .xw-brand-header{--header-logo-width:166px;--header-logo-height:41px;gap:8px!important}}
#strike-next{width:100%;min-height:48px;margin:12px 0;font-size:17px}
#strike-next[hidden]{display:none!important}
.strike-paused #frame-pin-rack,.strike-paused #rack-help,.strike-paused #rack-selection-summary,.strike-paused #frame-keypad,.strike-paused .frame-count-controls,.strike-paused .rack-heading{display:none!important}

/* Shared polish: preserve the approved layout and semantic chart colours. */
:root{--xw-bg:#fff;--xw-surface:#f4f5f7;--xw-ink:#15171b;--xw-muted:#626974;--xw-line:#dce0e5;--xw-red:#c8102e;--xw-chart-red:#c8102e;--xw-navy:#245a83;--xw-navy-soft:#edf4fa;--red:#c8102e}
html[data-theme=dark]{--xw-bg:#111214;--xw-surface:#202226;--xw-ink:#f8f9fb;--xw-muted:#b9bec8;--xw-line:#393e46;--xw-red:#ff6575;--xw-chart-red:#ff6575;--xw-navy:#87bce7;--xw-navy-soft:#1b2b3b;--red:#ff6575}
html body .xw-brand-header{--header-logo-width:196px;--header-logo-height:40px;--header-copy-height:20px;--header-stack-gap:5px;padding-bottom:10px!important;gap:12px!important}
html body .xw-brand-header .xw-wordmark{display:flex!important;align-items:center;justify-content:center;overflow:visible!important}
html body .xw-brand-header .xw-wordmark img{content:url('assets/xtrikew-wordmark-light.build401.svg')!important;width:100%!important;height:100%!important;object-fit:contain!important;filter:none!important;mix-blend-mode:normal!important}
html[data-theme=dark] body .xw-brand-header .xw-wordmark img{content:url('assets/xtrikew-wordmark-dark.build401.svg')!important}
html body .xw-brand-header :is(.xw-brand small,.xw-profile-link [data-profile-name]){font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;font-size:14px!important;font-weight:600!important;line-height:20px!important;color:var(--xw-ink)!important}
html body .xw-brand-header .xw-profile-link [data-profile-initials]{box-shadow:0 0 0 1px var(--xw-line)}
/* Distinct photographs keep their character, with one common crop and type scale. */
html body :is(.home-photo-banner,.sessions-photo-banner,.session-photo-banner,.competition-photo-banner,.stats-photo-banner,.more-photo-banner,.practice-setup-banner){border-radius:14px!important;background:#635445!important;padding:18px!important;margin-bottom:16px!important}
html body :is(.home-photo-banner,.sessions-photo-banner,.session-photo-banner,.competition-photo-banner,.stats-photo-banner,.more-photo-banner,.practice-setup-banner)>img{filter:brightness(1.14) contrast(1.04) saturate(1.2)!important;object-position:center 52%!important}
html body :is(.home-photo-banner,.sessions-photo-banner)>img{filter:brightness(1.23) contrast(1.03) saturate(1.24)!important}
html body :is(.stats-photo-banner,.competition-photo-banner)>img[src*="competition-lanes"]{filter:brightness(1.03) contrast(1.04) saturate(1.16)!important}
html body :is(.stats-photo-banner,.more-photo-banner)>img[src*="score-sheet"]{filter:brightness(1.22) contrast(1.02) saturate(1.18)!important;object-position:65% center!important}
html body :is(.home-photo-banner,.sessions-photo-banner,.session-photo-banner,.competition-photo-banner,.stats-photo-banner,.more-photo-banner,.practice-setup-banner)::before{background:linear-gradient(90deg,rgba(8,13,20,.24),rgba(8,13,20,0) 78%),linear-gradient(0deg,rgba(8,13,20,.38),transparent 72%)!important}
html body :is(.home-photo-banner,.sessions-photo-banner,.session-photo-banner,.competition-photo-banner,.stats-photo-banner,.more-photo-banner,.practice-setup-banner) :is(h1,h2,p[role=heading]),html body .home-content .home-photo-banner .home-glance-title{font-size:clamp(1.75rem,7.5vw,2rem)!important;font-weight:800!important;line-height:1.1!important;letter-spacing:-.65px!important;text-shadow:0 1px 2px rgba(0,0,0,.32)!important;color:#fff!important}
/* Strong readable section titles without adding colour to every surface. */
html body :is(.home-content,.settings-content,.screen,.practice-screen)>h2{color:var(--xw-ink);letter-spacing:-.4px}
html body :is(.game-nav,.bottom-nav,.profile-nav) a:focus-visible{outline:2px solid var(--xw-red);outline-offset:-3px;border-radius:8px}
@media(max-width:359px){html body .xw-brand-header{--header-logo-width:174px;--header-logo-height:35px;gap:8px!important}html body :is(.home-photo-banner,.sessions-photo-banner,.session-photo-banner,.competition-photo-banner,.stats-photo-banner,.more-photo-banner,.practice-setup-banner){padding:16px!important}}

/* One safe-area owner and one header geometry on every page. */
html.xw-stable-layout body{margin:0!important}
html.xw-stable-layout body > :is(.app-frame,.home-shell,.settings-shell,.equipment-shell,.centres-shell,.centre-shell,.ball-shell,.edit-shell){padding-top:0!important;width:100%;max-width:620px;margin-inline:auto}
html.xw-stable-layout body .app-frame > :is(.screen,.game-screen,.practice-screen,.spare-screen,.history-screen){padding-top:0!important;padding-inline:var(--xw-page-gutter,20px)!important}
html.xw-stable-layout body.log-redesign.log-reference .app-frame>.game-screen{padding-top:0!important;padding-inline:var(--xw-page-gutter,20px)!important}
html.xw-stable-layout body .xw-brand-header{--header-logo-width:196px;--header-logo-height:40px;--header-copy-height:20px;--header-stack-gap:5px;box-sizing:border-box!important;flex-shrink:0!important;height:calc(83px + env(safe-area-inset-top,0px))!important;min-height:calc(83px + env(safe-area-inset-top,0px))!important;padding:calc(8px + env(safe-area-inset-top,0px)) var(--xw-page-gutter,20px) 10px!important;margin-block:0!important;transition:none!important;transform:none!important}
html.xw-stable-layout body .app-frame>main>.xw-brand-header,
html.xw-stable-layout.log-page body.log-redesign.log-reference .game-screen>.xw-brand-header{margin-inline:calc(-1 * var(--xw-page-gutter,20px))!important}
html.xw-stable-layout body :is(.home-shell,.settings-shell,.equipment-shell,.centres-shell,.centre-shell,.ball-shell,.edit-shell,dialog)>.xw-brand-header{margin-inline:0!important}
html.xw-stable-layout body .xw-brand-header .xw-wordmark img{width:196px!important;height:40px!important}
html.xw-stable-layout body .xw-brand-header .xw-profile-link{height:65px!important}
html.xw-stable-layout body .xw-brand-header .xw-profile-link [data-profile-name]{height:20px!important}
html.xw-stable-layout body .home-photo-banner>img{filter:none!important;object-position:center 53%!important}
html.xw-stable-layout body .home-photo-banner::before{background:linear-gradient(90deg,rgba(12,17,23,.24),transparent 72%),linear-gradient(0deg,rgba(12,17,23,.3),transparent 65%)!important}
html.xw-stable-layout body :is(.more-ball,.hub-card img[src*="black-widow-icon"]){object-fit:contain;background:transparent}
@media(max-width:359px){html.xw-stable-layout body .xw-brand-header{--header-logo-width:174px;--header-logo-height:35px}html.xw-stable-layout body .xw-brand-header .xw-wordmark img{width:174px!important;height:35px!important}html.xw-stable-layout body .xw-brand-header .xw-profile-link{height:60px!important}}

/* Approved compact app bar shared by all app pages. */
html.xw-stable-layout body .xw-brand-header.compact-app-header{--header-logo-width:156px;--header-logo-height:32px;height:calc(64px + env(safe-area-inset-top,0px))!important;min-height:calc(64px + env(safe-area-inset-top,0px))!important;padding-top:calc(10px + env(safe-area-inset-top,0px))!important;padding-bottom:10px!important;gap:12px!important}
html.xw-stable-layout body .xw-brand-header.compact-app-header .xw-brand{height:44px!important;justify-content:center!important;align-items:flex-start!important}
html.xw-stable-layout body .xw-brand-header.compact-app-header .xw-wordmark{width:156px!important;height:32px!important}
html.xw-stable-layout body .xw-brand-header.compact-app-header .xw-wordmark img{width:156px!important;height:32px!important}
html.xw-stable-layout body .xw-brand-header.compact-app-header .xw-profile-link{flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;height:44px!important;min-height:44px!important;max-width:156px!important;gap:10px!important;border-radius:0!important;background:transparent!important}
html.xw-stable-layout body .xw-brand-header.compact-app-header [data-profile-name]{order:0!important;height:auto!important;font-size:15px!important;line-height:20px!important;max-width:100px!important;text-align:right!important}
html.xw-stable-layout body .xw-brand-header.compact-app-header [data-profile-initials]{order:1!important;width:38px!important;height:38px!important;min-width:38px!important;flex:0 0 38px!important}
html.xw-stable-layout body .home-shell .home-photo-banner{min-height:126px!important;padding:16px!important;margin-bottom:14px!important}
html.xw-stable-layout body .home-shell .home-photo-banner #home-glance-title{font-size:26px!important;line-height:1.1!important;letter-spacing:-.45px!important}
@media(max-width:359px){html.xw-stable-layout body .xw-brand-header.compact-app-header{--header-logo-width:140px;gap:8px!important}html.xw-stable-layout body .xw-brand-header.compact-app-header .xw-wordmark,html.xw-stable-layout body .xw-brand-header.compact-app-header .xw-wordmark img{width:140px!important}html.xw-stable-layout body .xw-brand-header.compact-app-header .xw-profile-link{max-width:126px!important;gap:8px!important}html.xw-stable-layout body .xw-brand-header.compact-app-header [data-profile-name]{max-width:80px!important}}

html.xw-stable-layout body :is(.home-photo-banner,.sessions-photo-banner,.session-photo-banner,.competition-photo-banner,.stats-photo-banner,.more-photo-banner,.practice-setup-banner){min-height:126px!important;padding:16px!important;margin-bottom:14px!important}
html.xw-stable-layout body :is(.home-photo-banner,.sessions-photo-banner,.session-photo-banner,.competition-photo-banner,.stats-photo-banner,.more-photo-banner,.practice-setup-banner)>img{filter:none!important;opacity:1!important;transform:none!important}
html.xw-stable-layout body :is(.home-photo-banner,.sessions-photo-banner,.session-photo-banner,.competition-photo-banner,.stats-photo-banner,.more-photo-banner,.practice-setup-banner)::before{background:linear-gradient(90deg,rgba(5,10,16,.28),transparent 76%),linear-gradient(0deg,rgba(5,10,16,.22),transparent 62%)!important}
html.xw-stable-layout body :is(.home-photo-banner,.sessions-photo-banner,.session-photo-banner,.competition-photo-banner,.stats-photo-banner,.more-photo-banner,.practice-setup-banner) :is(h1,h2,p[role=heading]){font-size:26px!important;line-height:1.1!important;letter-spacing:-.45px!important;text-shadow:0 1px 2px #0005!important}

/* Path-only wordmark: no raster image, colour filter or sharpening layer. */
html.xw-stable-layout body .xw-brand-header.compact-app-header .xw-wordmark img{content:url('assets/xtrikew-vector-light.build405.svg')!important;filter:none!important;image-rendering:auto!important}
html[data-theme=dark].xw-stable-layout body .xw-brand-header.compact-app-header .xw-wordmark img{content:url('assets/xtrikew-vector-dark.build405.svg')!important}
/* Strengthen only the default avatar. Uploaded profile photos stay untouched. */
html.xw-stable-layout body .xw-profile-link [data-profile-initials]:has(>svg){background:#eef1f5!important;color:#39424e!important;box-shadow:inset 0 0 0 1px #cbd1db!important}
html.xw-stable-layout body .xw-profile-link [data-profile-initials]>svg{stroke-width:2!important}
html[data-theme=dark].xw-stable-layout body .xw-profile-link [data-profile-initials]:has(>svg){background:#242a32!important;color:#e4e8ef!important;box-shadow:inset 0 0 0 1px #535d6b!important}

/* A small top-edge buffer for mobile WebKit. Keep the existing safe-area
   owner and bottom padding, so logo/avatar move together without opening
   a larger gap between the header and banner. Native blur remains host-owned. */
@supports (-webkit-touch-callout: none){
  @media(max-width:767px){
    html.xw-stable-layout body .xw-brand-header.compact-app-header{
      height:calc(74px + env(safe-area-inset-top,0px))!important;
      min-height:calc(74px + env(safe-area-inset-top,0px))!important;
      padding-top:calc(20px + env(safe-area-inset-top,0px))!important;
      padding-bottom:10px!important;
    }
  }
}

/* Reuse the established stats hero, ring, section and card styles. */
#pane-split .sd-detail-hero{margin:12px 0}
#pane-split .sd-detail-hero small{font-size:14px;line-height:1.4}
#pane-split .split-makeable-breakdown{align-items:stretch;gap:16px;text-align:left}
.split-makeable-row{display:flex;flex-direction:column;gap:5px;width:100%}
.split-makeable-row>span{display:flex;justify-content:space-between;gap:8px;font-size:16px}
.split-makeable-row small{color:var(--xw-muted)}
#pane-split .split-chart{overflow-x:auto;margin:16px 0;padding-bottom:4px}
#pane-split .split-chart svg{display:block;width:100%;height:auto;color:var(--xw-chart-red,#b61620)}
.split-grid{stroke:var(--xw-line);stroke-width:1}
.split-axis{font-size:12px;fill:var(--xw-muted)}
.split-value{font-size:13px;font-weight:650;fill:var(--xw-ink)}
.split-impact{display:flex;flex-direction:column;gap:6px;margin:18px 0}
.split-impact>strong{font-size:42px;line-height:1.1;color:var(--xw-ink)}
.split-impact>span{font-size:17px}.split-impact>small{font-size:14px;color:var(--xw-muted)}
.split-comparison-bars{display:grid;gap:20px;margin:22px 0}
.split-bar-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:baseline}
.split-bar-row>span{font-size:16px}.split-bar-row>strong{font-size:24px}.split-bar-row>strong small{font-size:14px;font-weight:400;color:var(--xw-muted)}
.split-bar-track{display:block;height:12px;background:var(--xw-track,var(--xw-line));border-radius:6px;overflow:hidden;width:100%}
.split-bar-row>.split-bar-track{grid-column:1/-1}
.split-bar-track>i{display:block;height:100%;background:var(--xw-chart-red,#b61620);border-radius:inherit}
.split-bar-track>i.estimated{background:var(--xw-navy,#254c73)}
.split-outcomes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0}
.split-outcomes>div{display:flex;flex-direction:column;gap:8px;min-width:0}
.split-outcomes span{font-size:14px;line-height:1.4}.split-outcomes strong{font-size:28px}
.split-outcomes .split-bar-track{height:8px}
.split-bar-track>i.outcome-0{background:#21865b}.split-bar-track>i.outcome-1{background:var(--xw-navy,#254c73)}
.split-explanation{margin-top:18px;font-size:15px;line-height:1.5;color:var(--xw-muted)}
.split-explanation summary{min-height:44px;padding:10px 0;cursor:pointer;color:var(--xw-ink);font-weight:600}
.split-explanation a{color:var(--xw-ink);text-underline-offset:3px}
.split-explanation p{margin:8px 0 16px}
#pane-split .xw-leave-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 8px}
#pane-split .xw-leave-card{min-width:0}#pane-split .xw-leave-card small{font-size:14px;line-height:1.4}
.split-report-link{display:block;color:var(--xw-red,#b61620);font-size:16px;font-weight:600;padding:14px 0}
#pane-insights .stats-entry>.split-entry-pins{display:flex;align-items:center;justify-content:space-between;width:64px;flex:0 0 64px;height:70px}
#pane-insights .stats-entry>.split-entry-pins img{display:block;width:21px;height:60px;object-fit:contain}
html.xw-stable-layout body :is(.sessions-photo-banner,.session-photo-banner,.more-photo-banner)::before{background:linear-gradient(90deg,rgba(5,10,16,.20),transparent 70%)!important}

/* One compact, predictable navigation format; artwork never competes with labels. */
html.xw-stable-layout body.stats-final #pane-insights .stats-entry.insight-link{
 display:grid;grid-template-columns:54px minmax(0,1fr) 14px;gap:14px;align-items:center;
 min-height:96px;margin:10px 0;padding:16px;border:1px solid var(--xw-line);
 border-radius:12px;background:var(--xw-bg);color:var(--xw-ink);box-shadow:none;
 text-decoration:none;overflow:visible;
}
html.xw-stable-layout body.stats-final #pane-insights .insight-link .insight-symbol{
 display:grid;place-items:center;width:54px;height:54px;min-width:0;border-radius:14px;
 color:#254c73;background:#254c7310;
}
html.xw-stable-layout body.stats-final #pane-insights .insight-symbol svg{
 display:block;width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.8;
 stroke-linecap:round;stroke-linejoin:round;
}
html.xw-stable-layout body.stats-final #pane-insights .insight-link[data-stats-route=strike] .insight-symbol{color:#21865b;background:#21865b10}
html.xw-stable-layout body.stats-final #pane-insights .insight-link[data-stats-route=split] .insight-symbol{color:#b61620;background:#b6162010}
html.xw-stable-layout body.stats-final #pane-insights .insight-link .insight-arsenal{background:transparent;border-radius:0}
html.xw-stable-layout body.stats-final #pane-insights .insight-arsenal img{display:block;width:54px;height:54px;max-width:100%;object-fit:contain;background:transparent;filter:none;border:0;border-radius:0}
html.xw-stable-layout body.stats-final #pane-insights .insight-copy{display:block;min-width:0}
html.xw-stable-layout body.stats-final #pane-insights .insight-copy b{font-size:18px;line-height:1.3;letter-spacing:-.3px;font-weight:700;white-space:normal;overflow-wrap:normal}
html.xw-stable-layout body.stats-final #pane-insights .insight-copy small{display:block;margin-top:5px;font-size:14px;line-height:1.4;color:var(--xw-muted);overflow-wrap:normal}
html.xw-stable-layout body.stats-final #pane-insights .insight-link>.entry-chevron{display:block;position:static;color:var(--xw-muted);font-size:24px;line-height:1;text-align:right}
html.xw-stable-layout body.stats-final #pane-insights .insight-link:focus-visible{outline:2px solid var(--xw-ink);outline-offset:3px}
html[data-theme=dark].xw-stable-layout body.stats-final #pane-insights .insight-link .insight-symbol{color:#81b2de;background:#81b2de12}
html[data-theme=dark].xw-stable-layout body.stats-final #pane-insights .insight-link[data-stats-route=strike] .insight-symbol{color:#7cd4a8;background:#7cd4a812}
html[data-theme=dark].xw-stable-layout body.stats-final #pane-insights .insight-link[data-stats-route=split] .insight-symbol{color:#ff7c89;background:#ff7c8912}
html[data-theme=dark].xw-stable-layout body.stats-final #pane-insights .insight-link .insight-arsenal{background:transparent}
@media(max-width:359px){
 html.xw-stable-layout body.stats-final #pane-insights .stats-entry.insight-link{grid-template-columns:46px minmax(0,1fr) 12px;gap:10px;padding:14px}
 html.xw-stable-layout body.stats-final #pane-insights .insight-link .insight-symbol,
 html.xw-stable-layout body.stats-final #pane-insights .insight-arsenal img{width:46px;height:46px}
}

/* Shared dimensional navigation: readable text, optically balanced bowling objects. */
html.xw-stable-layout body.stats-final #pane-insights .stats-entry.object-nav-link,
html.xw-stable-layout body.more-dimensional .more-links a.object-nav-link{
 display:grid;grid-template-columns:minmax(0,1fr) 60px 12px;gap:12px;align-items:center;
 min-height:96px;margin:10px 0;padding:16px;border:1px solid var(--xw-line);
 border-radius:12px;background:var(--xw-bg);color:var(--xw-ink);box-shadow:none;
 text-decoration:none;overflow:visible;
}
html.xw-stable-layout body.more-dimensional .more-links a.object-nav-link{min-height:84px;padding:12px 16px}
html.xw-stable-layout body :is(#pane-insights,.more-links) .object-nav-link .object-nav-copy{display:block;min-width:0}
html.xw-stable-layout body :is(#pane-insights,.more-links) .object-nav-link .object-nav-copy b{display:block;font-size:18px;font-weight:700;line-height:1.3;letter-spacing:-.3px;white-space:normal}
html.xw-stable-layout body :is(#pane-insights,.more-links) .object-nav-link .object-nav-copy small{display:block;margin-top:5px;font-size:14px;line-height:1.4;color:var(--xw-muted)}
html.xw-stable-layout body :is(#pane-insights,.more-links) .object-nav-link .object-nav-art{display:flex;align-items:center;justify-content:center;width:60px;height:60px;position:relative;background:transparent}
html.xw-stable-layout body :is(#pane-insights,.more-links) .object-nav-link .object-nav-art img{display:block;width:60px;height:60px;max-width:none;object-fit:contain;background:transparent;border:0;border-radius:0;filter:none;margin:0}
html.xw-stable-layout body :is(#pane-insights,.more-links) .object-nav-link .object-nav-art.single-pin img{width:22px;height:56px}
html.xw-stable-layout body :is(#pane-insights,.more-links) .object-nav-link .object-nav-art.split-pins{justify-content:space-around}
html.xw-stable-layout body :is(#pane-insights,.more-links) .object-nav-link .object-nav-art.split-pins img{width:20px;height:54px}
html.xw-stable-layout body :is(#pane-insights,.more-links) .object-nav-link .object-nav-art.pin-rack{display:block}
html.xw-stable-layout body :is(#pane-insights,.more-links) .object-nav-link .pin-rack .pin-row{position:absolute;left:0;right:0;display:flex;justify-content:center;gap:1px;top:var(--pin-top)}
html.xw-stable-layout body :is(#pane-insights,.more-links) .object-nav-link .pin-rack .pin-row img{width:13px;height:32px}
html.xw-stable-layout body :is(#pane-insights,.more-links) .object-nav-link>.object-nav-chevron{position:static;display:block;font-size:24px;line-height:1;color:var(--xw-muted);text-align:right}
html.xw-stable-layout body :is(#pane-insights,.more-links) .object-nav-link:focus-visible{outline:2px solid var(--xw-ink);outline-offset:3px}
html body.more-dimensional .profile-preferences{margin:24px 0 0;padding:0;border:0}
html body.more-dimensional .profile-preferences h2{margin:0 0 12px;text-align:center;font-size:18px;line-height:1.4}
html body.more-dimensional .profile-preferences .appearance-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;max-width:340px;margin:0 auto;padding:0}
html body.more-dimensional .appearance-options button{min-height:44px;padding:10px 8px;font-size:16px;line-height:1.25}
html body.more-dimensional .app-version{margin:24px 0 0;text-align:center;font-size:13px;line-height:1.4}
html body.more-dimensional .settings-shell.xw-navigation-content{padding-bottom:calc(var(--xw-nav-height) + var(--xw-nav-safe) + 24px)!important}
@media(max-width:359px){
 html.xw-stable-layout body.stats-final #pane-insights .stats-entry.object-nav-link,
 html.xw-stable-layout body.more-dimensional .more-links a.object-nav-link{gap:8px;padding-left:12px;padding-right:12px}
 html.xw-stable-layout body :is(#pane-insights,.more-links) .object-nav-link .object-nav-copy b{font-size:17px}
}
