html[data-game-opening] .game-screen>:not(.xw-brand-header){visibility:hidden}html[data-game-opening] #game-content{display:none!important}
:root{--ink:#07155c;--muted:#657293;--soft:#f4f6f9;--red:#e10600;--gap:clamp(16px,5vw,24px)}
.detail-body>select{width:100%;min-height:48px;border:1px solid #dae0ea;border-radius:10px;background:white;padding:10px;font-size:16px}
*{box-sizing:border-box}body{margin:0;background:#eef2f6;color:var(--ink);font:16px/1.45 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.4;cursor:default}[hidden]{display:none!important}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #1769e0;outline-offset:3px}
.app-frame>.game-screen{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 var(--gap) 24px;width:100%;background:white}.game-toolbar{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:76px}.game-toolbar img{width:110px;height:42px;object-fit:contain;justify-self:center}.back-link,.text-button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:0;background:none;text-decoration:none}.back-link{font-size:32px}.text-button{font-size:14px;color:var(--muted);padding:8px 0}.page-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0 24px}.page-title h1{font-size:27px;letter-spacing:-.7px;line-height:1.2;margin:0}.page-title span{white-space:nowrap;color:var(--muted);font-size:14px}.context{display:flex;align-items:center;gap:14px}.context img{width:48px;height:48px;object-fit:contain;border-radius:50%}.context div{min-width:0}.context b{display:block;font-size:16px;overflow-wrap:anywhere}.context p{margin:4px 0 0;color:var(--muted);font-size:14px;overflow-wrap:anywhere}.line-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:8px;align-items:center;margin:20px 0 28px}.line-summary span{display:block;font-size:14px;color:var(--muted)}.line-summary strong{font-size:20px}.line-summary button{border:0;background:none;min-height:44px;color:#1769e0;font-size:14px}.total{text-align:center;margin:0 0 24px}.total label{display:block;font-size:13px;letter-spacing:1px;color:var(--muted);font-weight:600}.total input{display:block;width:100%;height:90px;border:0;background:none;text-align:center;font-size:64px;font-weight:750;letter-spacing:-3px;padding:0}.total p{font-size:13px;margin:0;color:var(--muted)}input[type=number]{appearance:textfield;-moz-appearance:textfield}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.counters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.counter{background:var(--soft);border-radius:16px;padding:16px 8px 12px;text-align:center;min-width:0}.counter label{display:block;font-size:15px;font-weight:650;min-height:44px}.stepper{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center}.stepper button{border:0;background:#e7ecf4;width:44px;height:44px;border-radius:50%;font-size:26px}.stepper input{border:0;background:none;width:100%;min-width:0;padding:0;text-align:center;font-size:40px;font-weight:750;height:60px}.tenth{margin:28px 0 32px}.tenth h2,.memory h2{font-size:18px;line-height:24px;margin:0;letter-spacing:-.3px}.tenth-boxes{display:flex;gap:12px;margin-top:14px}.tenth-boxes button{width:52px;height:52px;border:0;border-radius:12px;background:var(--soft);font-size:23px;font-weight:650}.tenth p{font-size:14px;color:var(--muted);margin:12px 0 0}.memory .helper{font-size:14px;line-height:20px;color:var(--muted);margin:12px 0 0}.pin-rack{--pin:48px;--pitch:clamp(60px,17vw,76px);display:flex;flex-direction:column;gap:20px;align-items:center;margin:28px auto 32px;width:100%}.pin-row{display:flex;justify-content:center;gap:calc(var(--pitch) - var(--pin))}.pin{width:var(--pin);height:var(--pin);border:0;border-radius:50%;background:var(--soft);font-size:20px;font-weight:600;padding:0;flex-shrink:0}.pin[aria-pressed=true]{background:var(--red);color:#fff}.extras details{margin:0}.extras summary{list-style:none;min-height:52px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-weight:550}.extras summary::-webkit-details-marker{display:none}.extras summary::after{content:'›';font-size:25px;color:var(--muted)}.extras details[open]>summary::after{transform:rotate(90deg)}.detail-body{padding:8px 0 20px}.helper{font-size:14px;color:var(--muted)}.detail-buttons{display:flex;flex-wrap:wrap;gap:8px}.secondary{min-height:44px;border:0;border-radius:10px;background:var(--soft);padding:10px 14px}.entry-list{list-style:none;padding:0;margin:12px 0}.entry-list li{display:flex;gap:12px;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0f5;padding:10px 0;font-size:14px;overflow-wrap:anywhere}.entry-list button{flex-shrink:0;min-height:44px;border:0;background:none;color:var(--red)}.primary{display:block;width:100%;min-height:52px;background:var(--red);color:#fff;border:0;border-radius:14px;font-weight:700;font-size:18px;padding:12px 16px}.save-area{margin-top:20px}.error{color:#b42318;font-size:14px;line-height:1.5}.status{color:#285b45;font-size:14px;line-height:1.5}.empty{padding:32px 0}.empty h1{font-size:26px}.empty a{color:var(--red)}
.game-nav{display:flex;border-top:1px solid #edf0f5}.game-nav a{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center;text-decoration:none;color:var(--muted);font-size:12px}.game-nav a.active{color:var(--red)}.game-nav svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
dialog{border:0;border-radius:20px;padding:24px;width:calc(100% - 32px);max-width:420px;max-height:85dvh;overflow:auto;color:var(--ink)}dialog::backdrop{background:#101c4066}dialog h2{font-size:22px;margin:0 0 16px}.dialog-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.dialog-top button{border:0;background:var(--soft);border-radius:50%;width:44px;height:44px;font-size:24px;flex-shrink:0}dialog label,.detail-body>label{display:block;font-size:14px;font-weight:600;margin:16px 0 6px}dialog input,dialog select,dialog textarea,.detail-body textarea{width:100%;min-width:0;min-height:48px;border:1px solid #dae0ea;border-radius:10px;padding:10px;font-size:16px;background:#fff}textarea{resize:vertical;min-height:90px!important}dialog .primary{margin-top:20px}.form-pair{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));gap:12px}.form-pair>div{min-width:0}dialog .pin-rack{--pin:44px;--pitch:62px}.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:20px}.keypad button{height:52px;border:0;background:var(--soft);border-radius:12px;font-size:23px}.delivery-select{display:flex;gap:12px}.delivery-select button{height:48px;min-width:48px;border:1px solid transparent;border-radius:10px;background:var(--soft);font-size:21px}.delivery-select button.active{border-color:var(--red);color:var(--red)}.lane-preview svg{display:block;width:190px;max-width:100%;height:auto;margin:16px auto}.lane-preview p{font-size:14px;color:var(--muted)}
@media(max-width:359px){.stepper{grid-template-columns:44px minmax(0,1fr) 44px}.stepper input{font-size:30px}.counter{padding-left:4px;padding-right:4px}.counter label{font-size:14px}.game-toolbar img{width:86px}.line-summary{grid-template-columns:repeat(3,1fr)}.line-summary button{grid-column:1/-1;justify-self:end}.page-title h1{font-size:24px}}
@media(prefers-reduced-motion:no-preference){.pin,.secondary,.stepper button{transition:background .15s,transform .15s}.pin:active,.stepper button:active{transform:scale(.94)}}

/* Board summaries must fit after dragging produces fractional values. */
.line-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px;align-items:start}
.line-summary>div{min-width:0}
.line-summary strong{display:block;white-space:nowrap;line-height:1.35;font-variant-numeric:tabular-nums}
.line-summary button{grid-column:1/-1;justify-self:end;padding:0;min-height:44px}
#line-description{overflow-wrap:anywhere;line-height:1.6}

/* Generated by scripts/apply-foundation.cjs; page-specific dark palette. */
html[data-theme="dark"]{--ink:#f5f5f6;--muted:#adb1b9;--soft:#222428;--red:#ec6571}
html[data-theme="dark"] .detail-body>select{border:1px solid #3b3e44;background:#151618}
html[data-theme="dark"] body{background:#151618}
html[data-theme="dark"] button:focus-visible,html[data-theme="dark"] a:focus-visible,html[data-theme="dark"] input:focus-visible,html[data-theme="dark"] select:focus-visible,html[data-theme="dark"] textarea:focus-visible{outline:3px solid #3b3e44}
html[data-theme="dark"] .app-frame>.game-screen{background:#151618}
html[data-theme="dark"] .line-summary button{color:#adb1b9}
html[data-theme="dark"] .stepper button{background:#222428}
html[data-theme="dark"] .pin[aria-pressed=true]{background:#b61620;color:#f5f5f6}
html[data-theme="dark"] .entry-list li{border-bottom:1px solid #3b3e44}
html[data-theme="dark"] .primary{background:#b61620;color:#f5f5f6}
html[data-theme="dark"] .error{color:#ec6571}
html[data-theme="dark"] .status{color:#f5f5f6}
html[data-theme="dark"] .game-nav{border-top:1px solid #3b3e44}
html[data-theme="dark"] dialog input,html[data-theme="dark"] dialog select,html[data-theme="dark"] dialog textarea,html[data-theme="dark"] .detail-body textarea{border:1px solid #3b3e44;background:#151618}
@media(max-width:359px){}@media(prefers-reduced-motion:no-preference){}
/* One bounded app: scrollable content plus a non-scrolling navigation row. */
html, body { height: 100%; overflow: hidden; }
body { padding: 0; }
.app-frame {
  width: 100%; max-width: 430px; height: 100dvh;
  margin: 0 auto; display: flex; flex-direction: column;
  overflow: hidden; background: #fff; position: relative;
  box-sizing: border-box;
}
/* 4.24: consistent, in-app lane condition choices. */
html body details.xw-condition,html body #lane-condition-details.xw-condition{display:block;margin:0;padding:0;border:0;border-bottom:1px solid var(--xw-line,#ddd);border-radius:0;background:transparent;box-shadow:none}
html body details.xw-condition>summary,html body #lane-condition-details.xw-condition>summary{display:flex;align-items:center;gap:12px;min-height:64px;box-sizing:border-box;margin:0;padding:12px 0;list-style:none;background:transparent;color:var(--xw-ink);font:650 15px/20px system-ui;cursor:pointer}
html body details.xw-condition>summary::-webkit-details-marker{display:none}
html body details.xw-condition>summary strong{font:inherit}
html body details.xw-condition .condition-value{margin-left:auto;color:var(--xw-muted);font-size:13px;font-weight:400;text-align:right}
html body details.xw-condition>summary::after,html body #lane-condition-details.xw-condition>summary::after{content:'';flex:none;width:8px;height:8px;margin:0 5px 0 0;border:0;border-right:1.5px solid var(--xw-muted);border-bottom:1.5px solid var(--xw-muted);transform:rotate(-45deg)}
html body details.xw-condition[open]>summary::after,html body #lane-condition-details.xw-condition[open]>summary::after{transform:rotate(45deg);border-color:var(--xw-red)}
html body details.xw-condition>select[hidden]{display:none!important}
html body details.xw-condition .condition-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:0 0 12px}
html body details.xw-condition .condition-choices button{min-width:0;min-height:46px;margin:0;padding:8px 4px;border:1px solid var(--xw-line,#ddd);border-radius:8px;background:var(--xw-bg,#fff);color:var(--xw-ink);font:600 14px/1.3 system-ui;box-shadow:none}
html body details.xw-condition .condition-choices button[aria-pressed=true]{background:var(--xw-red,#b61620);border-color:var(--xw-red,#b61620);color:#fff}
html body details.xw-condition :is(button,summary):focus-visible{outline:2px solid var(--xw-red);outline-offset:2px}
html body #log-method-warning{width:calc(100% - 40px);max-width:380px;box-sizing:border-box;padding:24px;border:1px solid var(--xw-line);border-radius:16px;background:var(--xw-bg,#fff);color:var(--xw-ink)}
html body #log-method-warning::backdrop{background:#0007}
html body #log-method-warning h2{margin:0 0 12px;font-size:21px;line-height:1.25}
html body #log-method-warning p{font-size:15px;line-height:1.5;color:var(--xw-muted)}
html body #log-method-warning .method-actions{display:grid;gap:8px;margin-top:20px}
html body #log-method-warning button{min-height:46px;padding:10px 12px;border:1px solid var(--xw-line);border-radius:8px;background:var(--xw-bg);color:var(--xw-ink);font:600 15px/1.3 system-ui}
html body #log-method-warning #log-method-switch{background:var(--xw-red,#b61620);border-color:var(--xw-red,#b61620);color:#fff}
/* 4.23: shared feedback controls for game logging and Practice. */
html body :is(#quick-observations,#practice-feedback){padding:0;margin:12px 0 0;border-top:1px solid var(--xw-line,#ddd);border-bottom:1px solid var(--xw-line,#ddd)}
html body :is(#quick-observations,#practice-feedback) .feedback-toggle{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-height:64px;padding:12px 0;border:0;border-radius:0;background:transparent;color:var(--xw-ink);text-align:left;font:inherit;box-shadow:none}
html body :is(#quick-observations,#practice-feedback) .feedback-toggle>span{display:block;min-width:0}
html body :is(#quick-observations,#practice-feedback) .feedback-toggle strong{display:block;font-size:15px;font-weight:650;line-height:20px}
html body :is(#quick-observations,#practice-feedback) .feedback-toggle small{display:block;margin-top:3px;font-size:12px;line-height:17px;color:var(--xw-muted);font-weight:400}
html body :is(#quick-observations,#practice-feedback) .feedback-toggle>i{flex:none;width:8px;height:8px;margin-right:5px;border-right:1.5px solid var(--xw-muted);border-bottom:1.5px solid var(--xw-muted);transform:rotate(-45deg)}
html body :is(#quick-observations,#practice-feedback) .feedback-toggle[aria-expanded=true]>i{transform:rotate(45deg);border-color:var(--xw-red)}
html body :is(#quick-observations,#practice-feedback) .feedback-body{padding:0 0 12px}
html body :is(#quick-observations,#practice-feedback) [hidden]{display:none!important}
html body :is(#quick-observations,#practice-feedback) :is(.quick-observation-row,.segments){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:6px 0 0;padding:0;border:0;border-radius:0;background:transparent}
html body :is(#quick-observations,#practice-feedback) :is(.quick-observation-row,.segments)>button{min-width:0;min-height:46px;padding:8px 4px;font:600 14px/1.3 system-ui;border:1px solid var(--xw-line,#ddd);border-radius:8px;background:var(--xw-bg,#fff);color:var(--xw-ink,#17181b);box-shadow:none;overflow-wrap:normal}
html body :is(#quick-observations,#practice-feedback) :is(.quick-observation-row,.segments)>button[aria-pressed=true]{border-color:var(--xw-red,#b61620);background:var(--xw-red,#b61620);color:#fff}
html body :is(#quick-observations,#practice-feedback) button:focus-visible{outline:2px solid var(--xw-red);outline-offset:2px}
html body #practice-feedback .quality-group{margin:0;padding:0}
html body #practice-feedback .quality-group>label{display:none}
html body #practice-feedback[data-practice-mode=spare] .quality-group>label{display:block;font-size:12px;line-height:18px;font-weight:500;color:var(--xw-muted);margin:10px 0 0}
html.practice-page body.practice-redesign #practice-panel .practice-settings{background:transparent}
.app-frame > .app-shell,
.app-frame > .screen,
.app-frame > .wrap {
  flex: 1 1 0%; min-height: 0; width: 100%; max-width: none;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain;
  border: 0; border-radius: 0; margin: 0;
  padding-bottom: 24px; box-shadow: none;
}
.app-frame > nav {
  position: relative; inset: auto; transform: none;
  flex: 0 0 auto; width: 100%; max-width: none;
  height: calc(72px + env(safe-area-inset-bottom, 0px));
  margin: 0; border-radius: 0; box-sizing: border-box;
  padding: 7px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  background: #fff; z-index: 100;
}
.screen .date-row {
  display: grid; grid-template-columns: minmax(0, 1fr);
  justify-items: center; gap: 6px; margin: 0 0 16px;
}
.screen .date-row label { text-align: center; margin: 0; }
.screen .date-row input {
  width: 100%; max-width: 260px; min-width: 0;
  text-align: center; color-scheme: light;
  appearance: none; -webkit-appearance: none;
}
.screen .date-row input::-webkit-date-and-time-value { text-align: center; }
.screen .date-row input::-webkit-datetime-edit { text-align: center; padding: 0; }
.date-control {
  position: relative; width: 100%; max-width: 260px; height: 48px;
  display: grid; place-items: center; border: 1px solid #d7dde8;
  border-radius: 11px; background: #fff;
}
.date-control span { text-align: center; pointer-events: none; }
.screen .date-control input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; margin: 0; cursor: pointer;
}
.date-control:focus-within { outline: 2px solid #e10600; outline-offset: 2px; }

/* Home budgets its six sections inside the space ABOVE navigation. */
.app-frame > .app-shell {
  display: grid; padding: 0 0 6px; gap: 6px;
  grid-template-rows: minmax(52px,.65fr) minmax(110px,1.25fr) 60px minmax(106px,1fr) minmax(110px,1fr) minmax(110px,1fr);
}
.app-shell > .topbar { height: auto; padding: 4px 20px; align-items: center; }
.app-shell .brand { width: 148px; height: 52px; }
.app-shell .profile { bottom: auto; top: 50%; transform: translateY(-50%); }
.app-shell > .hero, .app-shell > .trend-card,
.app-shell > .pair-grid, .app-shell > .game-card { height: auto; min-height: 0; }
.app-shell > .pair-grid { margin: 0 10px; }
.app-shell .mini-card { height: 100%; }
.app-frame > .app-shell > .game-card { height: auto; margin-bottom: 0; }
.app-shell > .quick-actions { height: 60px; padding: 4px 10px; }
.app-shell .quick-actions button { justify-content: center; gap: 4px; }
.app-shell .hero-content { padding: 8px 18px; }
.app-shell .score { font-size: 44px; }
.app-shell .hero-label { font-size: 16px; }
.app-shell .hero-stats { font-size: 14px; }
.app-shell .hero-meta { font-size: 12px; }
.app-shell .play { width: 48px; height: 48px; bottom: 8px; }
.app-shell .play span { margin-left: 11px; }
.app-shell .card-heading { height: 42px; padding: 4px 14px; }
.app-shell .trend-grid strong { font-size: 23px; }
.app-shell .trend-grid em { margin-top: 2px; font-size: 13px; }
.app-shell .mini-title { height: 30px; padding: 3px 10px; font-size: 14px; }
.app-shell .equipment-body { padding: 3px 8px; grid-template-columns: 44px minmax(0,1fr); gap: 5px; }
.app-shell .equipment-body img, .app-shell .centre-body img { width: 42px; height: 42px; }
.app-shell .equipment-body p { margin-top: 5px; }
.app-shell .empty-add { gap: 6px; padding: 4px 8px; }
.app-shell .empty-add .plus { flex-basis: 40px; height: 40px; font-size: 30px; }
.app-shell .game-card > button { padding: 8px 16px; }
.app-shell .game-copy b { margin-top: 3px; }
.app-shell .game-copy b span { font-size: 23px; }
.app-shell .bars { right: 30px; bottom: 14px; transform: scale(.75); transform-origin: bottom right; }
@media (min-width: 700px) {
  body { padding: 30px; box-sizing: border-box; }
  .app-frame {
    height: calc(100dvh - 60px); border: 8px solid #111;
    border-radius: 44px; box-shadow: 0 22px 50px rgba(17,24,39,.24);
  }
}

/* Generated by scripts/apply-foundation.cjs; page-specific dark palette. */
html[data-theme="dark"] .app-frame{background:#151618}
html[data-theme="dark"] .app-frame > nav{background:#151618}
html[data-theme="dark"] .date-control{border:1px solid #3b3e44;background:#151618}
html[data-theme="dark"] .date-control:focus-within{outline:2px solid #ec6571}
@media (min-width: 700px){html[data-theme="dark"] .app-frame{border:8px solid #3b3e44}
}
:root{--ink:#202124;--muted:#6b7079;--red:#b61620;--soft:#f3f4f6}
/* Delivery pin entry: compact overview, generous touch targets. */
.game-toolbar b{font-size:23px;letter-spacing:-.5px}.back-link{color:#202124}.game-toolbar{margin-bottom:10px}.log-mode{display:flex;padding:4px;background:#edeef0;border-radius:12px;gap:4px}.log-mode button{flex:1;border:0;border-radius:9px;min-height:44px;background:none;font-size:15px}.log-mode button[aria-pressed=true]{background:#fff;box-shadow:0 1px 5px #00000012;font-weight:600}.page-title{margin:12px 0;justify-content:flex-end}.context{padding:14px;border-radius:14px;background:var(--soft);margin-bottom:24px}.context p:empty{display:none}.total{padding-top:8px}.counter{padding:16px 10px}.counter label{min-height:36px}.counters{gap:14px}.extras>section{margin:28px 0}.extras h2{font-size:18px;margin:0 0 14px}.detail-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.detail-buttons button{padding:10px 2px}.helper:empty{display:none}.detail-body>label{margin-top:16px}.frame-score{text-align:center;padding:18px;background:var(--soft);border-radius:14px;margin-bottom:20px}.frame-score span,.frame-score small{display:block;color:var(--muted)}.frame-score strong{display:block;font-size:40px;line-height:1.5}.scoreboard{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0 0 24px}.scoreboard button{min-width:0;padding:7px 2px;border:1px solid transparent;border-radius:8px;background:var(--soft);min-height:92px}.scoreboard b,.scoreboard span,.scoreboard strong{display:block}.scoreboard b{font-size:13px}.scoreboard span{font-size:16px;white-space:pre;margin:9px 0}.scoreboard strong{font-size:15px;font-variant-numeric:tabular-nums}.scoreboard .selected,.frame-deliveries .selected{border:1px solid #575b62}.frame-editor{border:1px solid #e1e3e7;border-radius:16px;padding:16px;margin:0 0 28px}.frame-editor h2{text-align:center;font-size:20px;margin:0 0 16px}.frame-deliveries{display:flex;gap:10px;margin-bottom:20px}.frame-deliveries button{flex:1;min-width:0;min-height:48px;background:var(--soft);border:1px solid transparent;border-radius:9px;font-size:14px}.frame-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.frame-keypad button{min-height:48px;border:0;background:var(--soft);border-radius:9px;font-size:20px;font-weight:600}.frame-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;font-size:14px}.frame-tools button{background:none;border:0;min-height:44px;color:var(--muted)}.frame-tools label{display:flex;align-items:center;gap:6px}.frame-tools input{width:18px;height:18px;accent-color:#5b6068}.frame-tools label:has(input:disabled){opacity:.4}
#shot-dialog{width:min(100%,430px);max-width:430px;max-height:100dvh;height:100dvh;border-radius:0;padding:20px;margin:0 auto;top:0;box-sizing:border-box}#shot-dialog .dialog-top{position:sticky;top:-20px;background:white;z-index:4;padding:12px 0;margin-bottom:8px}#shot-dialog .dialog-top h2{margin:0;font-size:24px}#shot-dialog .dialog-top button{background:none}.detail-lane-toolbar{display:flex;justify-content:center;align-items:center;gap:4px;margin:24px 0 14px}.detail-lane-toolbar button{border:0;border-radius:10px;background:#f0f1f3;min-height:44px;padding:8px 18px}.detail-lane-toolbar button[aria-pressed=true]{background:white;box-shadow:0 1px 7px #0002}#detail-reset{background:none;font-size:26px}#detail-lane{display:block;width:min(100%,280px);height:auto;margin:auto;touch-action:none}.detail-boards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border:1px solid #e1e3e7;border-radius:14px 14px 0 0;padding:12px 2px;margin-top:16px}.detail-boards>div{text-align:center;min-width:0;border-right:1px solid #e1e3e7;padding:0 2px}.detail-boards>div:last-child{border:0}.detail-boards span{display:block;font-size:12px;color:var(--muted)}.detail-boards strong{display:block;font-size:17px;margin-top:8px;white-space:nowrap}#detail-drift{text-align:center;font-size:13px;color:var(--muted);border:1px solid #e1e3e7;border-top:0;border-radius:0 0 14px 14px;margin:0 0 28px;padding:12px}.detail-quality{margin:0 0 24px}.detail-quality label{margin-bottom:10px;font-weight:400}.detail-segments{display:flex;gap:3px;padding:3px;border-radius:10px;background:#f0f1f3}.detail-segments button{flex:1;min-width:0;min-height:46px;border:0;border-radius:8px;background:none;font-size:14px;padding:6px 2px}.detail-segments button[aria-pressed=true]{background:white;color:#202124;box-shadow:0 1px 5px #0001}.observed-section{margin:28px 0}.observed-section h2{font-size:20px}.observed-section .form-pair{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 12px}.observed-section label{font-weight:400;margin:0 0 8px;font-size:13px}.observed-section input{padding:8px;min-height:44px}.observed-section p{font-size:13px;text-align:center;color:var(--muted)}#detail-pins h3{text-align:center;font-size:18px;margin:28px 0}#detail-pins .pin-rack{margin:24px auto 32px}#remaining-pins{display:flex;justify-content:center;gap:16px;margin:20px 0 32px}#detail-remaining h3{text-align:center;font-size:16px}.detail-photo{width:44px;height:44px;object-fit:cover;border-radius:50%;margin-top:10px}#shot-dialog .primary{margin-bottom:24px}
input,select,textarea{accent-color:#5b6068;-webkit-tap-highlight-color:transparent}input:focus,select:focus,textarea:focus{outline:none;box-shadow:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #858991;outline-offset:2px}
@media(max-width:359px){.game-toolbar b{font-size:20px}.frame-editor{padding:12px}.scoreboard{gap:5px}.detail-boards span{font-size:11px}.detail-boards strong{font-size:15px}.detail-segments button{font-size:12px}.frame-tools{font-size:12px}.game-toolbar{gap:4px}.context{padding:12px}}

.frame-ball-label{display:block;font-size:14px;color:var(--muted);margin-bottom:8px}#frame-ball{width:100%;min-height:46px;padding:8px 12px;border:1px solid #e1e3e7;border-radius:10px;background:white;margin-bottom:20px;font-size:16px}#finish-dialog button{width:100%;margin:12px 0}#finish-dialog .helper{font-size:13px}#finish-dialog:has(#finish-draft[hidden]) .helper{display:none}

/* One horizontal score strip, fixed-size entry controls, ball picker in header. */
.context{display:flex;align-items:center;justify-content:space-between;gap:12px}.session-context{flex:1;min-width:0}.session-context b{font-size:14px}.session-context p{font-size:12px}.header-ball{position:relative;display:flex;align-items:center;gap:8px;flex:1;min-width:0;min-height:48px}.header-ball #ball-photo{width:38px;height:38px;object-fit:cover;flex:none}.header-ball #ball-name{font-size:14px;overflow-wrap:anywhere}.header-ball #frame-ball{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;padding:0;opacity:0;cursor:pointer}.header-ball:focus-within{outline:1px solid #858991;outline-offset:3px;border-radius:8px}
.scoreboard{grid-template-columns:repeat(10,minmax(48px,1fr));gap:4px;overflow-x:auto;overscroll-behavior-x:contain;padding:2px 0 6px;margin-bottom:12px;scrollbar-width:thin}.scoreboard button{min-height:74px;padding:5px 2px}.scoreboard span{font-size:14px;margin:7px 0}.scoreboard strong{font-size:13px}.frame-score{display:grid;grid-template-columns:1fr 1fr;text-align:center;padding:8px 12px;margin-bottom:12px}.frame-score>span{grid-column:1;grid-row:1}.frame-score>strong{grid-column:1;grid-row:2;font-size:32px;line-height:1.25}.frame-score>small{grid-column:1;grid-row:3}.possible-score{grid-column:2;grid-row:1/4;border-left:1px solid #dedfe3;align-self:center}.possible-score span{font-size:13px}.possible-score strong{font-size:24px;line-height:1.4}.frame-score>small:empty{display:none}.frame-editor{padding:12px;margin-bottom:18px}.frame-editor h2{font-size:17px;margin-bottom:10px}.frame-deliveries{margin-bottom:12px}.frame-deliveries button{min-height:44px}.frame-keypad{gap:7px}.frame-keypad button{min-height:44px}.frame-tools{margin-top:8px}.frame-tools button{min-height:36px}#frame-error:empty{display:none}.frame-mode-active .game-toolbar{min-height:60px;margin-bottom:4px}.frame-mode-active .page-title{margin:6px 0}.frame-mode-active .context{margin-bottom:12px;padding:10px}.frame-mode-active .log-mode button{min-height:40px}

/* Generated by scripts/apply-foundation.cjs; page-specific dark palette. */
html[data-theme="dark"]{--ink:#f5f5f6;--muted:#adb1b9;--red:#ec6571;--soft:#222428}
html[data-theme="dark"] .back-link{color:#f5f5f6}
html[data-theme="dark"] .log-mode{background:#222428}
html[data-theme="dark"] .log-mode button[aria-pressed=true]{background:#151618}
html[data-theme="dark"] .scoreboard .selected,html[data-theme="dark"] .frame-deliveries .selected{border:1px solid #3b3e44}
html[data-theme="dark"] .frame-editor{border:1px solid #3b3e44}
html[data-theme="dark"] .frame-tools input{accent-color:#adb1b9}
html[data-theme="dark"] #shot-dialog .dialog-top{background:#151618}
html[data-theme="dark"] .detail-lane-toolbar button{background:#151618}
html[data-theme="dark"] .detail-lane-toolbar button[aria-pressed=true]{background:#151618}
html[data-theme="dark"] .detail-boards{border:1px solid #3b3e44}
html[data-theme="dark"] .detail-boards>div{border-right:1px solid #3b3e44}
html[data-theme="dark"] #detail-drift{border:1px solid #3b3e44}
html[data-theme="dark"] .detail-segments{background:#151618}
html[data-theme="dark"] .detail-segments button[aria-pressed=true]{background:#151618;color:#f5f5f6}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{accent-color:#adb1b9}
html[data-theme="dark"] button:focus-visible,html[data-theme="dark"] a:focus-visible,html[data-theme="dark"] input:focus-visible,html[data-theme="dark"] select:focus-visible,html[data-theme="dark"] textarea:focus-visible{outline:2px solid #3b3e44}
@media(max-width:359px){}html[data-theme="dark"] #frame-ball{border:1px solid #3b3e44;background:#151618}
html[data-theme="dark"] .header-ball:focus-within{outline:1px solid #3b3e44}
html[data-theme="dark"] .possible-score{border-left:1px solid #3b3e44}

.game-toolbar,.frame-mode-active .game-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:0 0 24px;min-height:0}.game-toolbar .back-link{grid-column:1;grid-row:1}.game-toolbar #end-session{grid-column:2;grid-row:1;justify-self:end}.game-toolbar b{grid-column:1/3;grid-row:2;font-size:32px;line-height:1.2;margin-bottom:4px}.session-context{display:none}.context,.frame-mode-active .context{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;background:none;padding:0;margin:20px 0 24px}.header-ball{padding:12px 8px;background:#f5f6f8;border-radius:14px;gap:8px;min-height:78px}.header-ball>div{min-width:0}.header-ball small{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}.header-ball #ball-name,.header-ball #spare-ball-name{font-size:14px;line-height:1.3;font-weight:600;display:block;overflow-wrap:anywhere}.header-ball #ball-photo,.header-ball #spare-ball-photo{width:44px;height:44px;object-fit:cover;border-radius:50%;flex:none}.header-ball select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.header-ball>span:last-of-type{margin-left:auto}.page-title,.frame-mode-active .page-title{margin:14px 0;font-size:13px}.game-screen:not(.frame-mode-active) .context{grid-template-columns:1fr}.frame-score{padding:16px 10px;margin-bottom:24px}.frame-score>strong,.possible-score strong{font-size:48px;line-height:1.2}.frame-score span,.possible-score span{font-size:14px;margin-bottom:8px}.scoreboard{grid-template-columns:repeat(10,minmax(0,1fr));gap:0;overflow:visible;border:1px solid #d5d8de;border-radius:7px;padding:0;margin-bottom:20px}.scoreboard button{border:0;border-right:1px solid #d5d8de;border-radius:0;min-height:72px;padding:5px 0;background:#f8f9fa}.scoreboard button:last-child{border-right:0}.scoreboard .selected{outline:2px solid #34383e;outline-offset:-2px;border:0;border-radius:4px}.scoreboard span{font-size:12px;white-space:normal;letter-spacing:-.3px;margin:7px 0}.scoreboard b,.scoreboard strong{font-size:12px}.frame-editor{padding:20px 12px;background:#f5f6f8;border:0;border-radius:16px}.frame-editor h2{text-align:left;font-size:22px;margin:0 0 16px}.frame-deliveries{gap:8px}.frame-deliveries button{background:white;min-height:44px;font-size:13px}.rack-heading{display:flex;justify-content:space-between;align-items:center;min-height:24px}.rack-heading span{font-size:13px;color:var(--muted)}#rack-split:not(:empty){padding:4px 10px;border-radius:20px;background:#f7e4e6;color:#a1111b}#rack-help{margin:12px 0 4px;font-size:14px;color:var(--muted)}#rack-ball-used{font-size:12px;color:var(--muted);margin:4px 0 0}#frame-pin-rack{margin:24px auto;display:flex;flex-direction:column;gap:12px}#frame-pin-rack .pin-row{display:flex;justify-content:center;gap:12px}#frame-pin-rack .pin{width:44px;height:44px;min-width:44px;padding:0;border:1px solid #b9bec7;background:transparent;color:#747b86;border-radius:50%;font-size:18px}#frame-pin-rack .pin[aria-pressed=true]{background:#b61620;border-color:#b61620;color:white}.rack-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.rack-actions button{min-height:48px;font-size:15px;padding:10px 4px}.rack-actions .primary{margin:0}.rack-actions button:disabled{opacity:.4}.frame-tools label{display:none}.frame-mode-active .memory{display:none}.frame-mode-active .extras .helper{display:none}.frame-mode-active .extras>section{margin:24px 0}.frame-mode-active .extras details>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;min-height:48px;cursor:pointer;font-size:17px}.frame-mode-active .extras details>summary:after{content:'›'}.frame-mode-active .extras details[open]>summary{margin-bottom:16px}.frame-mode-active .extras details .detail-body{padding-bottom:12px}.frame-mode-active .save-area{padding-top:4px}
#save-frames{display:none}.frame-mode-active .extras>section{border-bottom:1px solid #e7e9ed;margin:8px 0}.frame-mode-active .extras summary{font-weight:400}
@media(max-width:359px){.header-ball{flex-wrap:wrap;padding:10px}.header-ball #ball-photo,.header-ball #spare-ball-photo{width:38px;height:38px}.frame-score>strong,.possible-score strong{font-size:42px}.scoreboard span{font-size:12px}.game-toolbar b{font-size:30px}}

.rack-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.rack-actions .secondary{background:white;border:1px solid #d9dce1;font-size:23px}.rack-actions #rack-confirm{grid-column:1/-1}.scoreboard .frame-rolls{display:flex;justify-content:center;align-items:center;gap:1px;min-height:18px}.frame-rolls i{display:inline-flex;align-items:center;justify-content:center;font-style:normal;min-width:9px;height:17px}.frame-rolls .split-mark{border:1px solid currentColor;border-radius:50%;min-width:15px}#rack-split{display:none}.rack-heading{justify-content:flex-end}

/* Retain the approved sequence; reclaim padding instead of moving controls. */
.frame-mode-active .game-toolbar{gap:8px;margin-bottom:12px}
.frame-mode-active .game-toolbar b{margin-bottom:0}
.frame-mode-active .page-title{margin:4px 0}
.frame-mode-active .context{margin:8px 0 12px}
.frame-mode-active .header-ball{min-height:64px;padding:8px}
.frame-mode-active .header-ball small{margin-bottom:4px}
.frame-mode-active .frame-score{padding:8px 10px;margin-bottom:12px}
.frame-mode-active .frame-score span{margin-bottom:4px}
.frame-mode-active .scoreboard{margin-bottom:12px}
.frame-mode-active .scoreboard button{min-height:66px}
.frame-mode-active .frame-editor{padding:12px;margin-bottom:16px}
.frame-mode-active .frame-editor h2{margin-bottom:8px}
.frame-mode-active .frame-deliveries{margin-bottom:8px}
.frame-mode-active .rack-heading{min-height:19px}
.frame-mode-active #rack-help{margin:6px 0 2px}
.frame-mode-active #rack-ball-used{margin:2px 0 0}
.frame-mode-active #frame-pin-rack{margin:12px auto;gap:10px}
.frame-mode-active .frame-tools{display:none}
.frame-mode-active #frame-error:empty{margin:0}
@media(max-height:760px){
 .frame-mode-active .game-toolbar{gap:4px;margin-bottom:8px}
 .frame-mode-active .context{margin:6px 0 10px}
 .frame-mode-active .frame-score{margin-bottom:10px}
 .frame-mode-active .scoreboard{margin-bottom:10px}
 .frame-mode-active .frame-editor{padding:10px 12px}
 .frame-mode-active #frame-pin-rack{gap:8px;margin:10px auto}
}

#detail-feedback:empty{display:none}#detail-context{display:none}

/* Generated by scripts/apply-foundation.cjs; page-specific dark palette. */
html[data-theme="dark"] .header-ball{background:#151618}
html[data-theme="dark"] .scoreboard{border:1px solid #3b3e44}
html[data-theme="dark"] .scoreboard button{border-right:1px solid #3b3e44;background:#151618}
html[data-theme="dark"] .scoreboard .selected{outline:2px solid #3b3e44}
html[data-theme="dark"] .frame-editor{background:#151618}
html[data-theme="dark"] .frame-deliveries button{background:#151618}
html[data-theme="dark"] #rack-split:not(:empty){background:#222428;color:#ec6571}
html[data-theme="dark"] #frame-pin-rack .pin{border:1px solid #3b3e44;color:#adb1b9}
html[data-theme="dark"] #frame-pin-rack .pin[aria-pressed=true]{border-color:#ec6571;color:#f5f5f6}
html[data-theme="dark"] .frame-mode-active .extras>section{border-bottom:1px solid #3b3e44}
@media(max-width:359px){}html[data-theme="dark"] .rack-actions .secondary{background:#151618;border:1px solid #3b3e44}
@media(max-height:760px){}
/* Shared ball and observation presentation; game-only selectors stay in Game Log. */
.accessible-label{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
#shot-dialog .shot-ball-picker,.practice-screen #review .shot-ball-picker{display:flex;align-items:center;gap:12px;padding:10px 12px;margin:20px 0;border:1px solid #e1e3e7;border-radius:12px;background:white}
.shot-ball-picker>div{flex:1;min-width:0}
#shot-dialog .shot-ball-picker img,.practice-screen .shot-ball-picker img{width:44px;height:44px;object-fit:cover;border-radius:50%;margin:0;flex-shrink:0}
#shot-dialog .shot-ball-picker select,.practice-screen .shot-ball-picker select{flex:1;min-width:0;width:100%;min-height:48px;border:0;background:transparent;margin:0;padding:8px 0;font-size:16px;font-weight:600;color:#202124}
#shot-frame{margin:8px 0 0;background:#f6f7f9;border-color:#e1e3e7}#shot-delivery-wrap{margin:12px 0}#shot-delivery-wrap label{font-weight:400}
#shot-dialog .detail-quality,.practice-screen .quality-group{margin-bottom:24px}
#shot-dialog .detail-quality label,.practice-screen .quality-group label{font-size:14px;font-weight:400;color:#60656e;margin:0 0 10px}
#shot-dialog .detail-segments,.practice-screen .segments{background:#f0f1f3;border-radius:10px;padding:3px;gap:2px}
#shot-dialog .detail-segments button,.practice-screen .segments button{min-height:46px;font-size:14px;line-height:1.4;padding:8px 3px}
#shot-dialog .detail-segments button[aria-pressed=true],.practice-screen .segments button[aria-pressed=true]{background:white;color:#202124;box-shadow:0 1px 5px #00000012}
.practice-screen .notes-detail{margin-top:24px}

/* Generated by scripts/apply-foundation.cjs; page-specific dark palette. */
html[data-theme="dark"] #shot-dialog .shot-ball-picker,html[data-theme="dark"] .practice-screen #review .shot-ball-picker{border:1px solid #3b3e44;background:#151618}
html[data-theme="dark"] #shot-dialog .shot-ball-picker select,html[data-theme="dark"] .practice-screen .shot-ball-picker select{color:#f5f5f6}
html[data-theme="dark"] #shot-frame{background:#151618;border-color:#3b3e44}
html[data-theme="dark"] #shot-dialog .detail-quality label,html[data-theme="dark"] .practice-screen .quality-group label{color:#adb1b9}
html[data-theme="dark"] #shot-dialog .detail-segments,html[data-theme="dark"] .practice-screen .segments{background:#151618}
html[data-theme="dark"] #shot-dialog .detail-segments button[aria-pressed=true],html[data-theme="dark"] .practice-screen .segments button[aria-pressed=true]{background:#151618;color:#f5f5f6}

/* 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}}

/* Quick Log and two-row Frame by Frame. Shared logo uses existing SVGs unchanged. */
body.log-redesign{background:var(--xw-bg);color:var(--xw-ink);--ink:var(--xw-ink);--muted:var(--xw-muted);--soft:var(--xw-surface);--red:#b61620}.log-redesign .app-frame{display:block;width:100%;max-width:620px;height:auto;min-height:100dvh;max-height:none;margin:auto;background:var(--xw-bg);overflow:visible;padding-top:env(safe-area-inset-top)}.log-redesign .app-frame>.game-screen{padding:0 18px 10px;background:var(--xw-bg);overflow:visible;height:auto}.log-redesign .game-toolbar,.log-redesign .frame-mode-active .game-toolbar{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:6px;min-height:48px;margin:0}.log-redesign .game-toolbar .back-link{grid-column:1;grid-row:1;min-width:28px}.log-redesign .game-toolbar b{grid-column:2;grid-row:1;font-size:21px;margin:0;line-height:1.2}.log-redesign .game-toolbar #end-session{grid-column:3;grid-row:1;font-size:13px}.log-redesign .log-mode{display:grid;grid-template-columns:1fr 1fr;gap:0;background:var(--xw-surface);border:1px solid var(--xw-line);border-radius:6px;padding:0;margin:4px 0 10px}.log-redesign .log-mode button{min-height:40px;border:1px solid transparent;background:none;font-size:15px;border-radius:5px;color:var(--xw-ink)}.log-redesign .log-mode button[aria-pressed=true]{border-color:var(--xw-ink);background:var(--xw-bg);color:var(--xw-ink);font-weight:700;box-shadow:inset 0 0 0 .5px var(--xw-ink)}.log-redesign .page-title{margin:8px 0 0}.log-redesign .page-title span{font-size:22px;font-weight:800;color:var(--xw-ink)}.log-redesign .context,.log-redesign .frame-mode-active .context{display:flex;flex-direction:column;align-items:stretch;gap:5px;margin:0 0 10px;padding:0;background:none}.log-redesign .session-context{display:block;font-size:13px;color:var(--xw-muted);margin-bottom:4px}.log-redesign .session-context b,.log-redesign .session-context p{display:inline;font-size:13px;font-weight:400;line-height:1.4;margin:0}.log-redesign .session-context p:not(:empty):before{content:' · '}.log-redesign .header-ball,.log-redesign .frame-mode-active .header-ball{position:relative;display:flex;align-items:center;min-height:37px;padding:7px 10px;border:1px solid var(--xw-line);border-radius:5px;background:none;gap:0}.log-redesign .header-ball>img{display:none}.log-redesign .header-ball>div{display:flex;align-items:center;gap:10px;flex:1}.log-redesign .header-ball small{margin:0;min-width:72px;font-size:13px;color:var(--xw-ink)}.log-redesign .header-ball #ball-name,.log-redesign .header-ball #spare-ball-name{font-size:13px;font-weight:500}.log-redesign .header-ball select{position:absolute;inset:0;width:100%;height:100%;opacity:0}.log-redesign .total{border-top:1px solid var(--xw-line);margin:6px 0 10px;padding-top:6px}.log-redesign .total label{font-size:14px;letter-spacing:0;color:var(--xw-ink)}.log-redesign .total input{font-size:54px;height:62px;color:var(--xw-ink)}.log-redesign .counters{gap:8px}.log-redesign .counter{padding:5px 9px 7px;border:1px solid var(--xw-line);border-radius:5px;background:none}.log-redesign .counter label{font-size:13px;min-height:20px}.log-redesign .stepper{grid-template-columns:36px minmax(0,1fr) 36px;border:1px solid var(--xw-line);border-radius:4px}.log-redesign .stepper button{width:36px;height:34px;border-radius:0;background:none;font-size:22px}.log-redesign .stepper input{height:34px;font-size:24px;border-inline:1px solid var(--xw-line)}.log-redesign .tenth{margin:14px 0 12px}.log-redesign .tenth h2{display:flex;justify-content:space-between;font-size:17px}.log-redesign .tenth h2 small{font-size:13px;font-weight:400;color:var(--xw-muted)}.log-redesign .tenth-boxes{gap:6px;margin-top:6px}.log-redesign .tenth-boxes button{flex:1;height:38px;border:1px solid var(--xw-line);border-radius:4px;background:none;font-size:20px}.log-redesign .tenth p{font-size:12px;margin:4px 0}.log-redesign .frame-score{display:grid;grid-template-columns:1fr 1fr;padding:0;margin:8px 0 10px;gap:0;background:none;border:0;border-radius:0;text-align:center}.log-redesign .frame-score>span{grid-column:1;grid-row:1;margin:0;font-size:13px;color:var(--xw-ink)}.log-redesign .frame-score>strong{grid-column:1;grid-row:2;font-size:34px;line-height:1.2;color:var(--xw-ink)}.log-redesign #frame-status{grid-column:1;grid-row:3;font-size:12px}.log-redesign .possible-score{grid-column:2;grid-row:1/4;border-left:1px solid var(--xw-line);margin:0;padding:0}.log-redesign .possible-score span{display:block;margin:0;font-size:13px}.log-redesign .possible-score strong{display:block;font-size:29px;line-height:1.4}.log-redesign .scoreboard{display:grid;grid-template-columns:repeat(9,minmax(0,1fr)) minmax(0,1.5fr);gap:0;overflow:visible;border:1px solid var(--xw-line);border-radius:4px;margin:0 -8px 8px;padding:0}.log-redesign .scoreboard button{min-width:0;min-height:69px;padding:2px 0;background:none;border:0;border-right:1px solid var(--xw-line);border-radius:0;color:var(--xw-ink);opacity:1;display:flex;flex-direction:column;justify-content:space-between}.log-redesign .scoreboard button:last-child{border:0}.log-redesign .scoreboard button.selected{outline:2px solid var(--xw-ink);outline-offset:-2px;border-radius:3px}.log-redesign .scoreboard b,.log-redesign .scoreboard strong{font-size:12px;font-weight:650;line-height:18px;width:100%;text-align:center}.log-redesign .scoreboard .frame-rolls{display:flex;width:100%;gap:0;margin:1px 0;border-block:1px solid var(--xw-line);min-height:23px;letter-spacing:-.3px}.log-redesign .frame-rolls i{flex:1;min-width:0;height:23px;font-size:12px;line-height:23px;text-align:center}.log-redesign .frame-rolls i+i{border-left:1px solid var(--xw-line)}.log-redesign .frame-rolls i.split-mark{border:1px solid currentColor;border-radius:50%;min-width:0}.log-redesign .frame-editor{padding:0;background:none;border:0;border-radius:0;margin:0}.log-redesign .frame-editor h2{text-align:center;font-size:19px;margin:8px 0 0;line-height:1.3}.log-redesign .frame-deliveries{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.log-redesign .frame-deliveries:focus-within{position:static;width:auto;height:auto;overflow:visible;clip-path:none;display:flex;gap:6px}.log-redesign .rack-heading{display:none}.log-redesign #rack-help{text-align:center;font-size:13px;margin:3px 0 8px}.log-redesign #rack-ball-used{text-align:center;font-size:12px;margin:5px 0}.log-redesign #frame-pin-rack{margin:12px auto 8px;gap:8px}.log-redesign #frame-pin-rack .pin-row{gap:10px}.log-redesign #frame-pin-rack .pin{position:relative;width:44px;height:44px;min-width:44px;font-size:16px;background:var(--xw-bg);color:var(--xw-muted);border:1px solid var(--xw-muted);opacity:1}.log-redesign #frame-pin-rack .pin:not(:disabled){background:url('assets/lane-pin-v2.webp') center/contain no-repeat;border-color:transparent;border-radius:0;color:#17191d;font-size:12px;padding-top:24px;font-weight:700}.log-redesign #frame-pin-rack .pin[aria-pressed=true]{outline:2px solid var(--xw-ink);outline-offset:2px;border-radius:5px}.log-redesign #frame-pin-rack .pin:disabled{opacity:.65;cursor:default}.log-redesign .rack-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.log-redesign .rack-actions .secondary{min-height:38px;padding:3px;font-size:24px;border:1px solid var(--xw-line);border-radius:4px;background:none;color:var(--xw-ink)}.log-redesign .primary{background:#b61620;color:#fff;box-shadow:none;border:0;border-radius:5px;min-height:44px;padding:10px;font-size:18px;font-weight:700}.log-redesign .rack-actions #rack-confirm{margin:0;grid-column:1/-1}.log-redesign .memory,.log-redesign .extras>details{border-top:1px solid var(--xw-line);margin:0}.log-redesign .extras{margin-top:8px}.log-redesign summary{list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:38px;font-size:14px;font-weight:650;cursor:pointer}.log-redesign summary::-webkit-details-marker{display:none}.log-redesign summary:after{content:'›';font-size:22px;font-weight:400}.log-redesign details[open]>summary:after{transform:rotate(90deg)}.log-redesign .save-area{padding:6px 0 0;margin:0}.log-redesign .save-area .primary{width:100%}.log-redesign .status:empty,.log-redesign .error:empty{display:none}.log-redesign .game-nav{position:static;transform:none;width:100%;display:flex;justify-content:space-around;border-top:1px solid var(--xw-line);background:var(--xw-bg);padding:10px 6px max(12px,env(safe-area-inset-bottom))}.log-redesign .game-nav a{font-size:12px;color:var(--xw-muted)}.log-redesign .game-nav a.active{color:#b61620}.log-redesign button:focus-visible,.log-redesign a:focus-visible{outline:2px solid var(--xw-ink);outline-offset:2px}@media(max-width:359px){.log-redesign .app-frame>.game-screen{padding-inline:12px}.log-redesign .game-toolbar b{font-size:19px}.log-redesign .counter{padding-inline:4px}.log-redesign .stepper{grid-template-columns:32px minmax(0,1fr) 32px}.log-redesign .stepper button{width:32px}.log-redesign .scoreboard b,.log-redesign .scoreboard strong,.log-redesign .frame-rolls i{font-size:11px}}

/* The old app frame locked root scrolling after this page switched to document flow. */
html.log-page{height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto}
html.log-page body.log-redesign{height:auto;min-height:100dvh;overflow:visible;padding:0}
html.log-page .app-frame{height:auto;max-height:none;overflow:visible;border:0;border-radius:0;box-shadow:none}
/* Restore the first approved ten-frame mockup: two rows of five. */
.log-redesign .scoreboard{grid-template-columns:repeat(5,minmax(0,1fr));row-gap:8px;margin-inline:0;border:0;border-radius:0}
.log-redesign .scoreboard button{border:1px solid var(--xw-line);border-right:0;min-height:72px}
.log-redesign .scoreboard button:nth-child(5n){border:1px solid var(--xw-line)}
.log-redesign .scoreboard b,.log-redesign .scoreboard strong{font-size:13px}
.log-redesign .scoreboard .frame-rolls i{font-size:15px;height:25px;line-height:25px}

/* Approved spacious single-row refinement. Root scrolling overrides above remain active. */
.log-redesign .game-toolbar,.log-redesign .frame-mode-active .game-toolbar{grid-template-columns:28px minmax(0,1fr) minmax(132px,42%);gap:5px;min-height:52px;margin-bottom:4px}
.log-redesign .game-toolbar b{font-size:20px;white-space:nowrap}
.log-redesign #entry-mode{width:100%;min-width:0;min-height:38px;font-size:14px;font-weight:600;border:1px solid var(--xw-line);border-radius:5px;background:var(--xw-bg);color:var(--xw-ink);padding:7px 4px}
.log-redesign #entry-mode:focus-visible{outline:2px solid var(--xw-ink);outline-offset:2px}
.log-redesign #entry-mode option{background:var(--xw-bg);color:var(--xw-ink)}
.log-redesign .game-context-line{display:flex;align-items:center;gap:5px;min-height:40px;margin:0 0 7px;min-width:0}
.log-redesign #game-number{font-size:15px;font-weight:750;white-space:nowrap;flex:none}
.log-redesign .game-context-line .session-context{display:block;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;font-size:13px}
.log-redesign .game-context-line .session-context:before{content:'· ';color:var(--xw-muted)}
.log-redesign .game-context-line #end-session{font-size:13px;white-space:nowrap;min-height:40px;padding:4px 0 4px 4px;flex:none}
.log-redesign .header-ball,.log-redesign .frame-mode-active .header-ball{min-height:40px;padding:8px 10px}
.log-redesign .header-ball small{font-size:14px;min-width:88px;white-space:nowrap}
.log-redesign .header-ball>div{min-width:0;gap:12px}
.log-redesign .header-ball #ball-name,.log-redesign .header-ball #spare-ball-name{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.log-redesign .frame-score{margin:14px 0 18px;padding:0}.log-redesign .frame-score>strong{font-size:30px}.log-redesign .possible-score strong{font-size:28px}
/* Larger frame cells: frames 1–5, then 6–10, including three tenth-frame rolls. */
.log-redesign #scoreboard{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px 0;margin:0 0 24px;border:0;border-radius:0;overflow:visible}
.log-redesign #scoreboard button{min-width:0;min-height:86px;padding:3px 0;border:1px solid var(--xw-line);border-right:0;background:var(--xw-bg)}
.log-redesign #scoreboard button:nth-child(5n){border-right:1px solid var(--xw-line)}
.log-redesign #scoreboard b{font-size:14px;line-height:21px}
.log-redesign #scoreboard strong{font-size:17px;line-height:24px}
.log-redesign #scoreboard .frame-rolls{min-height:30px;letter-spacing:0}
.log-redesign #scoreboard .frame-rolls i{height:30px;line-height:30px;font-size:17px}
.log-redesign .frame-editor h2{font-size:19px;margin:0 0 4px}
.log-redesign #rack-help{font-size:14px;margin:4px 0 18px}
.log-redesign #frame-pin-rack{margin:20px auto 12px;gap:12px}
.log-redesign #frame-pin-rack .pin-row{gap:14px}
.log-redesign #frame-pin-rack .pin{width:44px;height:44px;min-width:44px;font-size:18px}
.log-redesign #frame-pin-rack .pin:not(:disabled){font-size:12px}
.log-redesign #rack-ball-used{font-size:13px;margin:12px 0}
.log-redesign .rack-actions{gap:9px}.log-redesign .rack-actions .secondary{min-height:44px}
.log-redesign .rack-actions #rack-confirm{min-height:48px;font-size:18px}
.log-redesign .extras{margin-top:16px}.log-redesign .extras>details>summary{min-height:44px;font-size:14px}
.log-redesign .app-frame>.game-screen{padding-bottom:calc(90px + env(safe-area-inset-bottom))}
.log-redesign .app-frame>.game-nav{position:fixed;inset:auto auto 0 50%;transform:translateX(-50%);width:min(100%,620px);height:calc(68px + env(safe-area-inset-bottom));padding:8px 6px calc(8px + env(safe-area-inset-bottom));z-index:20;background:var(--xw-bg)}
@media(max-width:359px){.log-redesign .game-toolbar b{font-size:18px}.log-redesign .game-toolbar,.log-redesign .frame-mode-active .game-toolbar{grid-template-columns:25px minmax(0,1fr) minmax(124px,42%)}.log-redesign #entry-mode{font-size:13px}.log-redesign .header-ball small{min-width:78px}.log-redesign .header-ball>div{gap:8px}.log-redesign .scoreboard b,.log-redesign .scoreboard strong,.log-redesign .scoreboard .frame-rolls i{font-size:11px}}

/* Final reference: balanced spacing with two mode tabs, original logo retained. */
.log-redesign .game-toolbar,.log-redesign .frame-mode-active .game-toolbar{grid-template-columns:28px minmax(0,1fr) auto;gap:6px;min-height:48px;margin-bottom:0}
.log-redesign .game-toolbar b{font-size:21px}.log-redesign .game-toolbar #end-session{grid-column:3;font-size:13px}
.log-redesign .log-mode{margin:4px 0 10px}.log-redesign .log-mode button{font-size:14px;min-height:40px}
.log-redesign .game-context-line{justify-content:space-between;gap:12px;min-height:34px;margin:0 0 8px}
.log-redesign #game-number{font-size:21px;line-height:1.3}.log-redesign .game-context-line .session-context{text-align:right;flex:1;font-size:13px}
.log-redesign .game-context-line .session-context:before{content:none}
.log-redesign .header-ball,.log-redesign .frame-mode-active .header-ball{min-height:38px;padding:7px 10px}
.log-redesign .frame-score{margin:12px 0 14px}.log-redesign .scoreboard{margin-bottom:18px}
.log-redesign #rack-help{margin:4px 0 12px}.log-redesign #frame-pin-rack{margin:14px auto 10px;gap:10px}
.log-redesign #frame-pin-rack .pin-row{gap:12px}.log-redesign #rack-ball-used{margin:10px 0}
.log-redesign .extras{margin-top:12px}.log-redesign .extras>details>summary{min-height:40px}
/* Explicit dark surface rules prevent legacy selectors overriding this layout. */
html.log-page[data-theme=dark] .log-redesign .game-screen{background:#151618;color:#f5f5f6}
html.log-page[data-theme=dark] .log-redesign .log-mode{background:#222428;border-color:#454a50}
html.log-page[data-theme=dark] .log-redesign .log-mode button{color:#f5f5f6;background:transparent}
html.log-page[data-theme=dark] .log-redesign .log-mode button[aria-pressed=true]{background:#151618;border-color:#f5f5f6;box-shadow:inset 0 0 0 .5px #f5f5f6}
html.log-page[data-theme=dark] .log-redesign .header-ball{background:transparent;border-color:#60656d;color:#f5f5f6}
html.log-page[data-theme=dark] .log-redesign .scoreboard button{background:transparent;color:#f5f5f6}
html.log-page[data-theme=dark] .log-redesign .scoreboard button.selected{outline:2px solid #f5f5f6;outline-offset:-2px;border:0;border-right:1px solid #454a50}
html.log-page[data-theme=dark] .log-redesign .frame-editor{background:transparent;border:0}
html.log-page[data-theme=dark] .log-redesign #frame-pin-rack .pin{color:#adb1b9;border-color:#adb1b9}
html.log-page[data-theme=dark] .log-redesign #frame-pin-rack .pin:not(:disabled){color:#17191d;border-color:transparent}
html.log-page[data-theme=dark] .log-redesign #frame-pin-rack .pin[aria-pressed=true]{outline:2px solid #f5f5f6}
html.log-page[data-theme=dark] .log-redesign .rack-actions .secondary{color:#f5f5f6;border-color:#747982;background:transparent}
html.log-page[data-theme=dark] .log-redesign .rack-actions .secondary:disabled{background:#222428;color:#adb1b9;opacity:.6}
html.log-page[data-theme=dark] .log-redesign .primary{background:#b61620;color:#fff}
html.log-page[data-theme=dark] .log-redesign :is(button,a,input,select):focus-visible{outline:2px solid #f5f5f6;outline-offset:2px}

/* Full realistic rack; selected pins are the recorded leave, not inferred pinfall. */
html.log-page .log-redesign #frame-pin-rack{margin:18px auto 16px;gap:10px}
html.log-page .log-redesign #frame-pin-rack .pin-row{gap:12px}
html.log-page .log-redesign #frame-pin-rack .pin{position:relative;width:52px;height:78px;min-width:52px;display:grid;place-items:center;padding:0;border:2px solid transparent;border-radius:8px;background:none;background-image:none;color:#17191d;font-weight:700;line-height:1;opacity:1;outline:none;box-shadow:none}
html.log-page .log-redesign #frame-pin-rack .pin::before{display:none}
html.log-page .log-redesign #frame-pin-rack .pin img{display:block;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:32px;height:72px;object-fit:contain;pointer-events:none;opacity:.6}
html.log-page .log-redesign #frame-pin-rack .pin-number{position:absolute;bottom:13px;left:50%;transform:translateX(-50%);z-index:1;pointer-events:none;font-variant-numeric:tabular-nums;font-size:16px;line-height:20px;color:#17191d;text-shadow:0 1px 1px #fff;opacity:.7}
html.log-page .log-redesign #frame-pin-rack .pin[aria-pressed=true]{border-color:var(--xw-red);background:none;outline:none;box-shadow:none}
html.log-page .log-redesign #frame-pin-rack .pin[aria-pressed=true] img,html.log-page .log-redesign #frame-pin-rack .pin[aria-pressed=true] .pin-number{opacity:1}
html.log-page .log-redesign #frame-pin-rack .pin:disabled{border-color:transparent;background:none;cursor:default}
html.log-page .log-redesign #frame-pin-rack .pin:disabled img,html.log-page .log-redesign #frame-pin-rack .pin:disabled .pin-number{opacity:.2}
html.log-page .log-redesign #frame-pin-rack .pin:focus-visible{outline:2px solid var(--xw-ink);outline-offset:2px}

.log-redesign #edit-cancel{grid-column:3;grid-row:1;min-height:44px;padding:8px 0 8px 8px;background:none;border:0;font-size:14px;color:var(--xw-ink)}
.log-redesign #edit-entry-label{font-size:14px;color:var(--xw-muted);margin:4px 0 8px}
.log-redesign .log-mode[hidden],.log-redesign #edit-cancel[hidden]{display:none}

/* Approved Shot Details, light/dark share layout and source tokens. */
html.log-page #shot-dialog.shot-editor{position:fixed;inset:0;margin:0 auto;width:min(100%,620px);max-width:620px;height:100dvh;max-height:100dvh;box-sizing:border-box;padding:0 0 calc(90px + env(safe-area-inset-bottom));overflow-x:hidden;overflow-y:auto;border:0;border-radius:0;background:var(--xw-bg);color:var(--xw-ink);font:1rem/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;box-shadow:none}
html.log-page #shot-dialog::backdrop{background:#0008}
html.log-page #shot-dialog .xw-brand-header{height:auto;min-height:calc(96px + env(safe-area-inset-top) + var(--xw-header-clearance,0px));padding:calc(8px + env(safe-area-inset-top) + var(--xw-header-clearance,0px)) 20px 8px;margin:0;background:var(--xw-bg)}
html.log-page #shot-dialog .shot-editor-content{padding:0 20px}
html.log-page #shot-dialog .shot-editor-heading{display:flex;align-items:center;gap:8px;margin:0 0 10px;min-height:44px}
html.log-page #shot-dialog #shot-title{font-size:1.5rem;font-weight:750;letter-spacing:-.4px;line-height:1.2;margin:0;color:var(--xw-ink)}
html.log-page #shot-dialog #shot-back{display:grid;place-items:center;font-size:32px;min-width:32px;min-height:44px;width:32px;padding:0;border:0;background:none;color:var(--xw-ink)}
html.log-page #shot-dialog button,html.log-page #shot-dialog select,html.log-page #shot-dialog input,html.log-page #shot-dialog textarea{box-sizing:border-box;min-height:44px;max-width:100%;min-width:0;padding:8px 10px;border:1px solid var(--xw-line);border-radius:5px;background-color:var(--xw-bg);color:var(--xw-ink);font:inherit;box-shadow:none}
html.log-page #shot-dialog button:focus-visible,html.log-page #shot-dialog select:focus-visible{outline:2px solid var(--xw-ink);outline-offset:2px}
html.log-page #shot-dialog .shot-selectors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 10px}
html.log-page #shot-dialog .shot-selectors>div{position:relative;min-width:0;margin:0}
html.log-page #shot-dialog .shot-selectors select{appearance:none;-webkit-appearance:none;width:100%;font-size:1rem;font-weight:650;margin:0;padding-inline:30px;text-align:center;text-align-last:center}
html.log-page #shot-dialog .shot-selectors>div::after{content:'';position:absolute;right:14px;top:18px;width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);pointer-events:none}
html.log-page #shot-dialog .shot-info-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;min-height:44px;box-sizing:border-box;border-top:1px solid var(--xw-line);border-bottom:1px solid var(--xw-line)}
html.log-page #shot-dialog .shot-info-row strong{font-size:1.125rem}
html.log-page #shot-dialog .shot-ball-picker{display:flex;align-items:center;gap:12px;margin:0 0 12px;padding:0;border:0;border-bottom:1px solid var(--xw-line);border-radius:0;background:none;min-height:44px}
html.log-page #shot-dialog .shot-ball-picker>label{font:inherit;white-space:nowrap;margin:0;color:var(--xw-ink)}
html.log-page #shot-dialog .shot-ball-picker{position:relative}
html.log-page #shot-dialog .shot-ball-picker::after{content:'';position:absolute;right:5px;top:18px;width:8px;height:8px;border-right:1.5px solid currentColor;border-top:1.5px solid currentColor;transform:rotate(45deg);pointer-events:none}
html.log-page #shot-dialog .shot-ball-picker select{appearance:none;-webkit-appearance:none;flex:1;min-width:0;text-align:right;text-align-last:right;font-size:1rem;font-weight:400;padding:8px 28px 8px 4px;margin:0;border:0;background-color:transparent}
html.log-page #shot-dialog #detail-ball-photo{display:none}
html.log-page #shot-dialog .detail-quality{margin:0 0 12px}
html.log-page #shot-dialog .detail-quality>label{display:block;margin:0 0 5px;font-size:1rem;font-weight:600;color:var(--xw-ink);line-height:1.4}
html.log-page #shot-dialog .detail-segments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0;padding:0;background:none;border-radius:0}
html.log-page #shot-dialog .detail-segments button{font-size:.875rem;line-height:1.25;min-height:44px;padding:7px 4px;background:var(--xw-surface);color:var(--xw-ink);border:1px solid var(--xw-line);border-radius:5px;white-space:normal;overflow-wrap:normal}
html.log-page #shot-dialog .detail-segments button[aria-pressed=true]{background:var(--xw-bg);color:var(--xw-ink);font-weight:700;border:1.5px solid var(--xw-ink);box-shadow:none}
html.log-page #shot-dialog #shot-hook-amount+.detail-segments button{min-height:52px}
html.log-page #shot-dialog .shot-extra{border-top:1px solid var(--xw-line);margin:0}
html.log-page #shot-dialog #shot-notes-details{border-bottom:1px solid var(--xw-line)}
html.log-page #shot-dialog .shot-extra>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:44px;padding:10px 0;box-sizing:border-box;font-size:1rem;list-style:none;cursor:pointer;color:var(--xw-ink)}
html.log-page #shot-dialog .shot-extra>summary::-webkit-details-marker{display:none}
html.log-page #shot-dialog .shot-extra>summary::after{content:'';width:8px;height:8px;flex:0 0 8px;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor;transform:rotate(45deg);margin-right:5px}
html.log-page #shot-dialog .shot-extra[open]>summary::after{transform:rotate(135deg)}
html.log-page #shot-dialog .shot-extra h3,html.log-page #shot-dialog .observed-section h2{font-size:1rem;margin:12px 0;font-weight:650}
html.log-page #shot-dialog .shot-extra textarea{display:block;width:100%;margin:0 0 12px}
html.log-page #shot-dialog .shot-helper{font-size:.875rem;line-height:1.4;color:var(--xw-muted);margin:8px 0}
html.log-page #shot-dialog .primary{display:block;width:100%;background:#b61620;color:#fff;border:0;font-weight:700;font-size:1.125rem;min-height:44px;margin:8px 0 0;padding:10px 12px}
html.log-page #shot-dialog #shot-error:empty{display:none}
html.log-page #shot-dialog #shot-error{font-size:.875rem;color:var(--xw-red);line-height:1.4}
html.log-page #shot-dialog #detail-lane{width:min(100%,280px);height:auto;max-height:none;display:block;margin:12px auto;touch-action:none}
html.log-page #shot-dialog .detail-lane-toolbar{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;background:none}
html.log-page #shot-dialog .detail-lane-toolbar button[aria-pressed=true]{border-color:var(--xw-ink);font-weight:700}
html.log-page #shot-dialog #detail-boards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;background:var(--xw-surface);padding:12px;border:0;border-radius:5px}
html.log-page #shot-dialog #detail-boards>div{padding:4px;border:0;text-align:center}
html.log-page #shot-dialog #detail-boards span{display:block;font-size:.875rem;color:var(--xw-muted)}
html.log-page #shot-dialog #detail-boards strong{display:block;font-size:1.125rem;color:var(--xw-ink)}
html.log-page #shot-dialog #detail-drift,html.log-page #shot-dialog #detail-observed-drift{font-size:.875rem;color:var(--xw-muted)}
html.log-page #shot-dialog .observed-section{margin:16px 0;background:none;padding:0}
html.log-page #shot-dialog .observed-section .form-pair{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
html.log-page #shot-dialog .observed-section label{display:block;font-size:.875rem;margin:0 0 5px;color:var(--xw-muted)}
html.log-page #shot-dialog .observed-section input{width:100%;margin:0}
html.log-page #shot-dialog .game-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,620px);height:calc(68px + env(safe-area-inset-bottom));padding:8px 6px calc(8px + env(safe-area-inset-bottom));box-sizing:border-box;display:grid;grid-template-columns:repeat(4,1fr);background:var(--xw-bg);border-top:1px solid var(--xw-line);z-index:5}
html.log-page #shot-dialog .game-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:12px;color:var(--xw-muted);text-decoration:none}
html.log-page #shot-dialog .game-nav a[aria-current=page]{color:#b61620;font-weight:650}
html.log-page #shot-dialog .game-nav svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;margin:0}
html.log-page #shot-discard-dialog{width:min(360px,calc(100% - 32px));box-sizing:border-box;max-height:85dvh;overflow:auto;border:1px solid var(--xw-line);border-radius:12px;padding:20px;background:var(--xw-bg);color:var(--xw-ink);font:1rem/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
html.log-page #shot-discard-dialog::backdrop{background:#0008}
html.log-page #shot-discard-dialog h2{font-size:1.25rem;margin:0 0 10px}
html.log-page #shot-discard-dialog button{display:block;min-height:44px;width:100%;margin-top:10px;padding:10px;border:1px solid var(--xw-line);border-radius:5px;background:var(--xw-bg);color:var(--xw-ink);font:inherit}
html.log-page #shot-discard-dialog #shot-discard{background:#b61620;color:#fff;border:0}
@media(max-width:359px){html.log-page #shot-dialog .shot-editor-content{padding-inline:16px}html.log-page #shot-dialog .xw-brand-header{padding-inline:16px}}

/* Expanded Line & Observed Path: shared light/dark geometry. */
html.log-page #shot-dialog #shot-line-details>summary{font-weight:700}
html.log-page #shot-dialog .detail-lane-toolbar{display:grid;grid-template-columns:1fr 1fr auto;gap:6px;margin:8px 0;align-items:center}
html.log-page #shot-dialog .detail-lane-toolbar button{margin:0;font-size:1rem;border:1px solid var(--xw-line);background:var(--xw-surface);box-shadow:none}
html.log-page #shot-dialog .detail-lane-toolbar button[aria-pressed=true]{border-color:var(--xw-ink);background:var(--xw-bg)}
html.log-page #shot-dialog #detail-reset{border:0;background:none;color:#b61620;padding-inline:12px;font-size:.875rem}
html.log-page #shot-dialog #detail-lane{display:block;width:100%;height:auto;max-height:none;margin:8px 0 12px;border-radius:5px;background:#313330}

html.log-page #shot-dialog #detail-boards{grid-template-columns:minmax(0,1fr);gap:8px;padding:0;margin:8px 0;background:none;border:0;border-radius:0}
html.log-page #shot-dialog #detail-boards>div{display:grid;grid-template-columns:minmax(0,1fr) 70px;gap:8px;align-items:center;padding:0;border:0;text-align:left;min-width:0}
html.log-page #shot-dialog #detail-boards>div[hidden]{display:none}
html.log-page #shot-dialog #detail-boards label{overflow-wrap:anywhere}
html.log-page #shot-dialog #detail-boards label,html.log-page #shot-dialog .observed-section label{display:block;font-size:.875rem;line-height:1.4;font-weight:400;margin:0 0 4px;color:var(--xw-ink)}
html.log-page #shot-dialog #detail-boards input,html.log-page #shot-dialog .observed-section input{width:100%;margin:0;min-height:44px;padding:8px 4px;text-align:center;font-size:1rem;background:var(--xw-surface);appearance:textfield;-moz-appearance:textfield}
html.log-page #shot-dialog #detail-boards input{font-weight:650}
html.log-page #shot-dialog #shot-line-details input::-webkit-inner-spin-button,html.log-page #shot-dialog #shot-line-details input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
html.log-page #shot-dialog .observed-section{border-top:1px solid var(--xw-line);padding:12px 0 0;margin:12px 0}
html.log-page #shot-dialog .observed-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:8px}
html.log-page #shot-dialog .observed-heading h2{margin:0;font-size:1rem}
html.log-page #shot-dialog .observed-heading span{font-size:.875rem;color:var(--xw-muted)}
html.log-page #shot-dialog .observed-section .form-pair{gap:10px 12px}
html.log-page #shot-dialog .observed-section .shot-helper{text-align:left;font-size:.875rem;margin:8px 0}
html.log-page #shot-dialog #detail-line-error:empty{display:none}
html.log-page #shot-dialog #detail-line-error{font-size:.875rem;color:var(--xw-red);margin:8px 0}

/* Approved expanded notes. Keep the selection helper out of the notes flow. */
html.log-page #shot-dialog #shot-notes-details[open]~#shot-selection-help{display:none}
html.log-page #shot-dialog #shot-notes-details[open]{padding-bottom:8px}
html.log-page #shot-dialog #shot-notes-optional{margin:0 0 6px}
html.log-page #shot-dialog #shot-notes{display:block;box-sizing:border-box;width:100%;min-height:100px!important;margin:0;padding:10px 12px;font-size:1rem;line-height:1.4;background:var(--xw-surface);color:var(--xw-ink);border:1px solid var(--xw-line);border-radius:5px;resize:vertical;scroll-margin-block:24px 100px}
html.log-page #shot-dialog #shot-notes-context{margin:6px 0 0;font-size:.875rem;line-height:1.4}
html.log-page #shot-dialog #shot-notes:focus-visible{outline:2px solid var(--xw-ink);outline-offset:2px}

/* Exact recorded leaves are read-only; scoring edits stay on the frame rack. */
html.log-page #shot-dialog #shot-recorded-leave{margin:0 0 16px}
html.log-page #shot-dialog .recorded-leave-title,html.log-page #shot-dialog .recorded-leave-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 6px;font-size:1rem}
html.log-page #shot-dialog .recorded-leave-title h3{font-size:1rem;font-weight:600;margin:0}
html.log-page #shot-dialog #shot-recorded-style{font-size:.875rem;color:var(--xw-muted)}
html.log-page #shot-dialog .recorded-leave-heading strong{font-size:.875rem;text-align:right}
html.log-page #shot-dialog #shot-leave-rack{display:flex;flex-direction:column;align-items:center;gap:4px;margin:12px auto 8px}
html.log-page #shot-dialog .recorded-pin-row{display:flex;justify-content:center;gap:12px}
html.log-page #shot-dialog .recorded-pin{display:grid;place-items:center;box-sizing:border-box;width:34px;height:34px;border:1px solid var(--xw-muted);border-radius:50%;font-size:1rem;color:var(--xw-ink);position:relative}
html.log-page #shot-dialog .recorded-pin.standing{border:0;border-radius:0}
html.log-page #shot-dialog .recorded-pin img{display:block;position:absolute;bottom:0;width:20px;height:48px;object-fit:contain}
html.log-page #shot-dialog #shot-leave-remaining{text-align:center;font-size:.875rem;line-height:1.4;color:var(--xw-muted);margin:10px 0 0}
html.log-page .log-redesign .rack-heading:has(#rack-split:not(:empty)){display:block;text-align:center;margin:4px 0;font-size:.875rem;color:var(--xw-ink)}
html.log-page .frame-mode-active .detail-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html.log-page .frame-mode-active .detail-buttons button{min-width:0;min-height:44px;font-size:1rem}
html.log-page #shot-dialog #shot-recorded-leave.opening-leave{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px}
html.log-page #shot-dialog .opening-leave .recorded-leave-title{grid-column:1;grid-row:1}
html.log-page #shot-dialog .opening-leave .recorded-leave-heading{grid-column:2;grid-row:1;font-weight:650}
html.log-page #shot-dialog .opening-leave #shot-leave-rack,html.log-page #shot-dialog .opening-leave #shot-leave-remaining{grid-column:1/-1}

/* Approved Ball & Line Changes: identical geometry in both themes. */
html.log-page #change-dialog{position:fixed;inset:0;margin:0 auto;width:min(100%,620px);max-width:620px;height:100dvh;max-height:100dvh;box-sizing:border-box;padding:0 0 calc(90px + env(safe-area-inset-bottom));overflow:auto;border:0;border-radius:0;background:var(--xw-bg);color:var(--xw-ink);font:1rem/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
html.log-page #change-dialog::backdrop{background:#0008}
html.log-page #change-dialog .xw-brand-header{height:auto;min-height:calc(96px + env(safe-area-inset-top) + var(--xw-header-clearance,0px));padding:calc(8px + env(safe-area-inset-top) + var(--xw-header-clearance,0px)) 20px 8px;margin:0;background:var(--xw-bg)}
html.log-page #change-dialog .change-editor-content{padding:0 20px}
html.log-page #change-dialog .change-editor-heading{display:flex;align-items:center;gap:8px;margin:0 0 12px;min-height:44px}
html.log-page #change-dialog #change-title{font-size:1.25rem;font-weight:750;line-height:1.2;margin:0}
html.log-page #change-dialog button,html.log-page #change-dialog input,html.log-page #change-dialog select{box-sizing:border-box;min-height:44px;min-width:0;max-width:100%;margin:0;padding:8px 10px;border:1px solid var(--xw-line);border-radius:5px;background:var(--xw-surface);color:var(--xw-ink);font:inherit;box-shadow:none}
html.log-page #change-dialog #change-back{display:grid;place-items:center;width:32px;min-width:32px;min-height:44px;padding:0;border:0;background:none;font-size:32px}
html.log-page #change-dialog label{display:block;font-size:.875rem;font-weight:400;line-height:1.4;margin:0 0 4px;color:var(--xw-ink)}
html.log-page #change-dialog .change-selection{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);align-items:center;gap:8px 12px}
html.log-page #change-dialog .change-selection label{font-size:1rem;font-weight:650;margin:0}
html.log-page #change-dialog .change-selection select{width:100%;background-color:var(--xw-bg);font-weight:600}
html.log-page #change-dialog .change-helper{font-size:.875rem;line-height:1.4;color:var(--xw-muted);margin:8px 0 12px}
html.log-page #change-dialog .change-line{border-top:1px solid var(--xw-line);padding-top:12px}
html.log-page #change-dialog h3{font-size:1rem;font-weight:700;margin:0 0 8px}
html.log-page #change-dialog .change-lane-toolbar{display:grid;grid-template-columns:1fr 1fr auto;gap:6px;align-items:center;margin:8px 0}
html.log-page #change-dialog .change-lane-toolbar button[aria-pressed=true]{background:var(--xw-bg);border-color:var(--xw-ink);font-weight:700}
html.log-page #change-dialog #change-reset{border:0;background:none;color:#b61620;font-size:.875rem;padding-inline:12px}
html.log-page #change-dialog #change-lane{display:block;width:100%;height:auto;margin:8px 0 12px;border-radius:5px;background:#313330;touch-action:none}

html.log-page #change-dialog .change-boards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 12px}
html.log-page #change-dialog .change-boards>div{min-width:0}
html.log-page #change-dialog .change-boards input{width:100%;padding:8px 4px;text-align:center;font-weight:650;appearance:textfield;-moz-appearance:textfield}
html.log-page #change-dialog input::-webkit-inner-spin-button,html.log-page #change-dialog input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
html.log-page #change-dialog .change-preserve{border-top:1px solid var(--xw-line);padding-top:12px;margin-top:14px}
html.log-page #change-dialog .primary{display:block;width:100%;margin-top:12px;border:0;background:#b61620;color:#fff;font-size:1.125rem;font-weight:700}
html.log-page #change-dialog #change-error:empty{display:none}
html.log-page #change-dialog #change-error{font-size:.875rem;color:var(--xw-red);margin:8px 0}
html.log-page #change-dialog :is(button,input,select,a):focus-visible{outline:2px solid var(--xw-ink);outline-offset:2px}
html.log-page #change-dialog .game-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,620px);height:calc(68px + env(safe-area-inset-bottom));padding:8px 6px calc(8px + env(safe-area-inset-bottom));box-sizing:border-box;display:grid;grid-template-columns:repeat(4,1fr);background:var(--xw-bg);border-top:1px solid var(--xw-line);z-index:5}
html.log-page #change-dialog .game-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:12px;color:var(--xw-muted);text-decoration:none}
html.log-page #change-dialog .game-nav a[aria-current=page]{color:#b61620;font-weight:650}
html.log-page #change-dialog .game-nav svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;margin:0}
html.log-page #change-discard-dialog{width:min(360px,calc(100% - 32px));max-height:85dvh;overflow:auto;box-sizing:border-box;border:1px solid var(--xw-line);border-radius:12px;padding:20px;background:var(--xw-bg);color:var(--xw-ink);font:1rem/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
html.log-page #change-discard-dialog::backdrop{background:#0008}
html.log-page #change-discard-dialog h2{font-size:1.25rem;margin:0 0 10px}
html.log-page #change-discard-dialog button{display:block;min-height:44px;width:100%;margin-top:10px;padding:10px;border:1px solid var(--xw-line);border-radius:5px;background:var(--xw-bg);color:var(--xw-ink);font:inherit}
html.log-page #change-discard-dialog #change-discard{background:#b61620;color:#fff;border:0}
@media(max-width:359px){html.log-page #change-dialog .change-editor-content{padding-inline:16px}html.log-page #change-dialog .xw-brand-header{padding-inline:16px}html.log-page #change-dialog #change-title{font-size:1.125rem}}

html.log-page .log-redesign .line-access{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:56px;padding:8px 12px;margin:6px 0 10px;border:1px solid var(--xw-line);border-radius:5px;background:var(--xw-bg);color:var(--xw-ink);text-align:left;font:inherit;gap:12px}html.log-page .line-access b{display:block;font-size:16px;font-weight:600}html.log-page .line-access small{display:block;font-size:14px;line-height:1.4;color:var(--xw-muted)}html.log-page .line-access>span:last-child{font-size:26px}html.log-page .line-access:focus-visible{outline:2px solid var(--xw-ink);outline-offset:2px}

html.log-page :is(#change-dialog,#shot-dialog) .shared-lane-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:12px;align-items:start}html.log-page :is(#change-dialog,#shot-dialog) .shared-lane-editor svg{width:100%;height:auto;margin:8px 0;max-height:none}html.log-page :is(#change-dialog,#shot-dialog) .shared-lane-editor :is(.change-boards,.detail-boards){display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:8px 0}html.log-page .shared-lane-editor :is(.change-boards,.detail-boards)>div{display:grid;grid-template-columns:minmax(0,1fr) 64px;gap:6px;align-items:center}html.log-page .shared-lane-editor label{font-size:14px;line-height:1.3}html.log-page .shared-lane-editor input{width:100%;min-width:0;min-height:44px;text-align:center}

/* Approved Game Notes, saved confirmation and End Session, both themes. */
html.log-page .log-redesign #game-notes-details .detail-body{padding:4px 0 12px}
html.log-page .log-redesign #game-notes-optional,html.log-page .log-redesign #game-notes-help{font-size:.875rem;line-height:1.4;color:var(--xw-muted);margin:4px 0 8px}
html.log-page .log-redesign #game-notes-help{margin:8px 0 0}
html.log-page .log-redesign #notes{display:block;width:100%;min-height:112px!important;box-sizing:border-box;margin:0;padding:10px 12px;border:1px solid var(--xw-line);border-radius:5px;background:var(--xw-surface);color:var(--xw-ink);font:1rem/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;resize:vertical}
html.log-page .game-complete .game-context-line{justify-content:center;text-align:center;margin:14px 0 0}
html.log-page .game-complete:not(.editing-completed) .context{display:none}
html.log-page .game-complete .frame-score{display:flex;flex-direction:column;align-items:center;border:0;padding:0;margin:8px 0 18px}
html.log-page .game-complete .possible-score{display:none}
html.log-page .game-complete #frame-total{font-size:3.5rem;line-height:1.1}
html.log-page .game-complete #frame-status{font-size:.875rem;color:var(--xw-muted);margin-top:6px}
html.log-page #saved-game-dialog{position:fixed;inset:0;margin:0 auto;width:min(100%,620px);max-width:620px;height:100dvh;max-height:100dvh;box-sizing:border-box;padding:0 0 calc(90px + env(safe-area-inset-bottom));overflow:auto;border:0;border-radius:0;background:var(--xw-bg);color:var(--xw-ink);font:1rem/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
html.log-page #saved-game-dialog .xw-brand-header{height:auto;min-height:calc(96px + env(safe-area-inset-top) + var(--xw-header-clearance,0px));padding:calc(8px + env(safe-area-inset-top) + var(--xw-header-clearance,0px)) 20px 8px;margin:0;background:var(--xw-bg)}
html.log-page #saved-game-dialog .saved-game-content{padding:0 20px}
html.log-page #saved-game-dialog .saved-game-toolbar{display:flex;align-items:center;gap:8px;min-height:44px;font-size:1.25rem;font-weight:700}
html.log-page #saved-game-dialog #saved-back{display:grid;place-items:center;width:32px;min-width:32px;min-height:44px;padding:0;border:0;background:none;color:var(--xw-ink);font-size:32px}
html.log-page #saved-game-dialog .saved-game-summary{text-align:center;padding:22px 0 16px}
html.log-page #saved-game-title{font-size:1.75rem;font-weight:750;margin:0 0 4px}
html.log-page #saved-game-number{margin:4px 0 12px}
html.log-page #saved-game-score{display:block;font-size:4.5rem;line-height:1.1;font-weight:800}
html.log-page #saved-game-score+span{display:block;margin-top:4px}
html.log-page #saved-game-dialog .saved-game-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:22px 0 12px}
html.log-page #saved-game-dialog .saved-game-metrics>div+div{border-left:1px solid var(--xw-line)}
html.log-page #saved-game-dialog .saved-game-metrics strong{display:block;font-size:2rem;line-height:1.2}
html.log-page #saved-game-dialog .saved-game-metrics span{display:block;font-size:.875rem;padding:4px 2px 0}
html.log-page #saved-clean{font-size:.875rem;color:var(--xw-muted);margin:12px 0 0}
html.log-page #saved-notes-section{padding:14px 0;border-block:1px solid var(--xw-line)}
html.log-page #saved-notes-section h3{font-size:1rem;margin:0 0 8px}
html.log-page #saved-game-notes{white-space:pre-wrap;overflow-wrap:anywhere;font-size:1rem;line-height:1.5;margin:0}
html.log-page #saved-ready{text-align:center;color:var(--xw-muted);margin:18px 0 12px}
html.log-page #saved-game-dialog :is(.primary,.secondary){display:block;width:100%;min-height:44px;padding:10px 12px;margin:0 0 10px;font:700 1.125rem/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;border:1px solid var(--xw-line);border-radius:5px;box-shadow:none;background:var(--xw-bg);color:var(--xw-ink)}
html.log-page #saved-game-dialog .primary{background:#b61620;border-color:#b61620;color:#fff}
html.log-page #saved-game-dialog .game-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,620px);height:calc(68px + env(safe-area-inset-bottom));padding:8px 6px calc(8px + env(safe-area-inset-bottom));box-sizing:border-box;display:grid;grid-template-columns:repeat(4,1fr);background:var(--xw-bg);border-top:1px solid var(--xw-line);z-index:5}
html.log-page #saved-game-dialog .game-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:12px;color:var(--xw-muted);text-decoration:none}
html.log-page #saved-game-dialog .game-nav a[aria-current=page]{color:#b61620;font-weight:650}
html.log-page #saved-game-dialog .game-nav svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;margin:0}
html.log-page #finish-dialog{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,620px);max-width:620px;max-height:calc(100dvh - max(16px,env(safe-area-inset-top)));box-sizing:border-box;overflow:auto;padding:20px 20px calc(24px + env(safe-area-inset-bottom));border:1px solid var(--xw-line);border-bottom:0;border-radius:14px 14px 0 0;background:var(--xw-bg);color:var(--xw-ink);font:1rem/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
html.log-page :is(#finish-dialog,#discard-game-dialog)::backdrop{background:#0008}
html.log-page #finish-dialog .finish-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 12px}
html.log-page #finish-title{font-size:1.5rem;margin:0}
html.log-page #finish-dialog button{display:block;width:100%;min-height:44px;margin:10px 0 0;padding:10px 12px;border:1px solid var(--xw-line);border-radius:5px;background:none;color:var(--xw-ink);font:600 1rem/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;box-shadow:none}
html.log-page #finish-dialog #finish-close{width:44px;min-width:44px;margin:0;padding:0;border:0;font-size:28px}
html.log-page #finish-dialog .primary{background:#b61620;border-color:#b61620;color:white}
html.log-page #finish-message{margin:0 0 16px}
html.log-page #finish-draft-help,html.log-page #finish-discard-section p{font-size:.875rem;color:var(--xw-muted);text-align:center;margin:8px 0 14px}
html.log-page #finish-discard-section{border-top:1px solid var(--xw-line);margin-top:18px;padding-top:8px}
html.log-page #finish-dialog #finish-discard{border:0;color:#b61620;font-weight:500}
html.log-page #discard-game-dialog{width:min(380px,calc(100% - 32px));max-height:85dvh;box-sizing:border-box;overflow:auto;padding:20px;border:1px solid var(--xw-line);border-radius:12px;background:var(--xw-bg);color:var(--xw-ink);font:1rem/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
html.log-page #discard-game-title{font-size:1.25rem;margin:0 0 10px}
html.log-page #discard-game-dialog button{width:100%;min-height:44px;margin:10px 0 0;padding:10px;border:1px solid var(--xw-line);border-radius:5px;background:var(--xw-bg);color:var(--xw-ink);font:600 1rem/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
html.log-page #discard-game-dialog .primary{background:#b61620;border-color:#b61620;color:#fff}
html.log-page :is(#finish-dialog,#discard-game-dialog) .error{font-size:.875rem;color:var(--xw-red)}
html.log-page :is(#finish-dialog,#discard-game-dialog) .error:empty{display:none}
html.log-page :is(#saved-game-dialog,#finish-dialog,#discard-game-dialog) :is(button,a):focus-visible,html.log-page #notes:focus-visible{outline:2px solid var(--xw-ink);outline-offset:2px}
@media(max-width:359px){html.log-page #saved-game-dialog .saved-game-content{padding-inline:16px}html.log-page #saved-game-dialog .xw-brand-header{padding-inline:16px}html.log-page #finish-dialog{padding-inline:16px}}

/* Approved Quick Log batch: shared neutral selection and theme tokens. */
html.log-page .log-redesign .game-screen:not(.frame-mode-active) .header-ball{min-height:44px}
html.log-page .log-redesign .game-screen:not(.frame-mode-active) .header-ball small,
html.log-page .log-redesign .game-screen:not(.frame-mode-active) .header-ball #ball-name,
html.log-page .log-redesign .game-screen:not(.frame-mode-active) .header-ball #spare-ball-name{font-size:1rem;line-height:1.3}
html.log-page .log-redesign .game-screen:not(.frame-mode-active) .header-ball>div{justify-content:space-between;min-width:0}
html.log-page .log-redesign .game-screen:not(.frame-mode-active) .header-ball>span{margin-left:10px}
html.log-page .log-redesign #quick-entry .total{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);align-items:center;gap:16px;text-align:left;border:0;padding:0;margin:16px 0 12px}
html.log-page .log-redesign #quick-entry .total label{font-size:1rem;font-weight:650}
html.log-page .log-redesign #quick-entry .total input{height:48px;min-width:0;border:1px solid var(--xw-line);border-radius:5px;background:var(--xw-bg);font-size:2rem;letter-spacing:-.5px;line-height:1.2;padding:4px 10px}
html.log-page .log-redesign #quick-entry .counters{display:flex;flex-direction:column;gap:6px}
html.log-page .log-redesign #quick-entry .counter{display:grid;grid-template-columns:minmax(0,1fr) minmax(152px,46%);gap:12px;align-items:center;border:0;padding:0;background:none}
html.log-page .log-redesign #quick-entry .counter label{font-size:1rem;line-height:1.3;margin:0;color:var(--xw-ink);font-weight:400}
html.log-page .log-redesign #quick-entry .stepper{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;border:1px solid var(--xw-line);border-radius:5px;overflow:hidden}
html.log-page .log-redesign #quick-entry .stepper button{width:44px;min-width:0;height:44px;min-height:44px;padding:0;color:var(--xw-ink);background:var(--xw-bg)}
html.log-page .log-redesign #quick-entry .stepper input{height:44px;min-width:0;width:100%;font-size:1.125rem;letter-spacing:0;background:var(--xw-bg);color:var(--xw-ink);border-inline:1px solid var(--xw-line)}
html.log-page .log-redesign #quick-entry .tenth{border-top:1px solid var(--xw-line);padding-top:12px;margin:16px 0 8px}
html.log-page .log-redesign #quick-entry .tenth h2{font-size:1rem;margin:0 0 8px}
html.log-page .log-redesign #quick-entry .tenth h2 small{font-size:.875rem}
html.log-page .log-redesign #quick-entry .tenth-boxes button{min-height:44px;height:auto;color:var(--xw-ink);font-size:1.125rem;background:var(--xw-bg)}
html.log-page .log-redesign #quick-entry #clean-status{text-align:center;font-size:.875rem;line-height:1.4;margin:10px 0}
html.log-page .log-redesign #quick-entry .tenth>details{border:0}
html.log-page .log-redesign #quick-entry .tenth>details summary{font-size:.875rem;font-weight:400;color:var(--xw-muted);min-height:44px}
html.log-page .log-redesign #quick-entry .tenth>details p{font-size:.875rem;line-height:1.5}
html.log-page .log-redesign .game-screen:not(.frame-mode-active) .extras>details>summary{font-size:1rem;min-height:44px;font-weight:500}
html.log-page .log-redesign .game-screen:not(.frame-mode-active) .save-area .primary{min-height:44px;font-size:1.125rem;background:#b61620;color:#fff}
html.log-page #shot-dialog.quick-detail .shot-ball-picker{display:block;border:0;margin-bottom:16px}
html.log-page #shot-dialog.quick-detail .shot-ball-picker>label{display:block;font-weight:650;margin-bottom:6px}
html.log-page #shot-dialog.quick-detail .shot-ball-picker select{display:block;width:100%;text-align:left;text-align-last:left;border:1px solid var(--xw-line);padding:10px 32px 10px 12px;border-radius:5px}
html.log-page #shot-dialog.quick-detail .shot-ball-picker::after{top:45px;right:16px;transform:rotate(135deg)}
html.log-page #shot-dialog #quick-detail-caption{margin:0 0 12px}
html.log-page #shot-dialog #detail-pins{border-top:1px solid var(--xw-line);padding-top:12px}
html.log-page #shot-dialog #detail-pins h3,html.log-page #shot-dialog #detail-remaining h3{font-size:1rem;font-weight:650;margin:0 0 4px}
html.log-page #shot-dialog #shot-rack{display:flex;flex-direction:column;align-items:center;gap:8px;margin:22px auto 10px}
html.log-page #shot-dialog #shot-rack .pin-row{display:flex;justify-content:center;gap:12px}
html.log-page #shot-dialog :is(#shot-rack,#remaining-pins) .pin{display:grid;place-items:center;position:relative;box-sizing:border-box;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--xw-muted);border-radius:50%;background:transparent;color:var(--xw-ink);font-size:1.125rem;box-shadow:none;outline:none}
html.log-page #shot-dialog :is(#shot-rack,#remaining-pins) .pin[aria-pressed=true]{border:0;border-radius:0;background:transparent;box-shadow:none}
html.log-page #shot-dialog :is(#shot-rack,#remaining-pins) .pin img{display:block;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:24px;height:58px;object-fit:contain;pointer-events:none}
html.log-page #shot-dialog :is(#shot-rack,#remaining-pins) .pin:focus-visible{outline:2px solid var(--xw-ink);outline-offset:3px}
html.log-page #shot-dialog #quick-leave-name{text-align:center;color:var(--xw-ink);font-size:.875rem;min-height:20px;margin:12px 0}
html.log-page #shot-dialog #leave-fields>.detail-quality{border-top:1px solid var(--xw-line);padding-top:10px}
html.log-page #shot-dialog #shot-result+.detail-segments{grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
html.log-page #shot-dialog #detail-remaining{border-top:1px solid var(--xw-line);padding:10px 0;margin:0}
html.log-page #shot-dialog #remaining-pins{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin:20px 0 10px}
html.log-page #shot-dialog #quick-detail-context:not(:empty){margin:8px 0 12px}
@media(max-width:359px){html.log-page .log-redesign #quick-entry .counter{grid-template-columns:minmax(0,1fr) 144px;gap:8px}html.log-page .log-redesign .game-screen:not(.frame-mode-active) .header-ball small,html.log-page .log-redesign .game-screen:not(.frame-mode-active) .header-ball #ball-name,html.log-page .log-redesign .game-screen:not(.frame-mode-active) .header-ball #spare-ball-name{font-size:.875rem}}
html.log-page[data-theme=dark] .log-redesign #quick-entry :is(.stepper,.total input,.tenth-boxes button),html.log-page[data-theme=dark] #shot-dialog.quick-detail .shot-ball-picker select{border-color:#60656d}
/* Approved tenth-frame editor, same geometry for both themes. */
html.log-page #tenth-dialog{position:fixed;inset:0;margin:0 auto;width:min(100%,620px);max-width:620px;height:100dvh;max-height:100dvh;box-sizing:border-box;padding:0 0 calc(90px + env(safe-area-inset-bottom));overflow-y:auto;overflow-x:hidden;border:0;border-radius:0;background:var(--xw-bg);color:var(--xw-ink);font:1rem/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;box-shadow:none}
html.log-page #tenth-dialog::backdrop,html.log-page #tenth-discard-dialog::backdrop{background:#0008}
html.log-page #tenth-dialog .xw-brand-header{height:auto;min-height:calc(96px + env(safe-area-inset-top) + var(--xw-header-clearance,0px));padding:calc(8px + env(safe-area-inset-top) + var(--xw-header-clearance,0px)) 20px 8px;margin:0;background:var(--xw-bg)}
html.log-page #tenth-dialog .tenth-editor-content{padding:0 20px}
html.log-page #tenth-dialog .tenth-heading{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:6px;min-height:48px;margin:0 0 16px}
html.log-page #tenth-dialog .tenth-heading h2{margin:0;font-size:1.25rem;font-weight:750;line-height:1.2}
html.log-page #tenth-dialog .tenth-heading>span{font-size:.875rem;color:var(--xw-muted)}
html.log-page #tenth-dialog button{font:inherit;min-height:44px;box-sizing:border-box;border:1px solid var(--xw-line);border-radius:5px;background:var(--xw-bg);color:var(--xw-ink);box-shadow:none;padding:10px}
html.log-page #tenth-dialog #tenth-back{display:grid;place-items:center;min-width:28px;width:28px;padding:0;border:0;font-size:32px;background:none}
html.log-page #tenth-dialog .delivery-select{display:flex;gap:8px;margin:0}
html.log-page #tenth-dialog .delivery-select button{flex:1;min-width:0;min-height:76px;display:flex;flex-direction:column;align-items:center;gap:4px}
html.log-page #tenth-dialog .delivery-select strong{font-size:1.75rem;font-weight:750;line-height:1.2}
html.log-page #tenth-dialog .delivery-select button.active{border:2px solid var(--xw-ink);padding:9px;background:var(--xw-bg);color:var(--xw-ink)}
html.log-page #tenth-dialog .tenth-helper{text-align:center;font-size:.875rem;line-height:1.4;color:var(--xw-muted);margin:12px 0 18px}
html.log-page #tenth-dialog #tenth-ball-heading{border-top:1px solid var(--xw-line);padding-top:16px;margin:0 0 12px;font-size:1.125rem}
html.log-page #tenth-dialog #tenth-keypad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
html.log-page #tenth-dialog #tenth-keypad button{height:56px;min-width:0;font-size:1.5rem;font-weight:650;padding:8px}
html.log-page #tenth-dialog button:disabled{opacity:.45;background:var(--xw-surface);color:var(--xw-muted);cursor:default}
html.log-page #tenth-dialog button:focus-visible{outline:2px solid var(--xw-ink);outline-offset:3px}
html.log-page #tenth-dialog #tenth-complete{border-top:1px solid var(--xw-line);padding-top:16px;margin:16px 0 12px;text-align:center;min-height:24px;color:var(--xw-muted);font-size:1rem}
html.log-page #tenth-dialog #tenth-error:empty{display:none}
html.log-page #tenth-dialog #tenth-error{color:var(--xw-red);font-size:.875rem;margin:8px 0}
html.log-page #tenth-dialog :is(#clear-tenth,#done-tenth){display:block;width:100%;margin:8px 0;font-size:1.125rem}
html.log-page #tenth-dialog #done-tenth{background:#b61620;color:#fff;border:0;font-weight:700}
html.log-page #tenth-dialog .game-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,620px);height:calc(68px + env(safe-area-inset-bottom));padding:8px 6px calc(8px + env(safe-area-inset-bottom));box-sizing:border-box;display:grid;grid-template-columns:repeat(4,1fr);background:var(--xw-bg);border-top:1px solid var(--xw-line);z-index:5}
html.log-page #tenth-dialog .game-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:12px;color:var(--xw-muted);text-decoration:none}
html.log-page #tenth-dialog .game-nav a[aria-current=page]{color:#b61620;font-weight:650}
html.log-page #tenth-dialog .game-nav svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;margin:0}
html.log-page #tenth-discard-dialog{width:min(360px,calc(100% - 32px));box-sizing:border-box;max-height:85dvh;overflow:auto;border:1px solid var(--xw-line);border-radius:12px;padding:20px;background:var(--xw-bg);color:var(--xw-ink);font:1rem/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
html.log-page #tenth-discard-dialog h2{font-size:1.25rem;margin:0 0 10px}
html.log-page #tenth-discard-dialog button{display:block;min-height:44px;width:100%;margin-top:10px;padding:10px;border:1px solid var(--xw-line);border-radius:5px;background:var(--xw-bg);color:var(--xw-ink);font:inherit}
html.log-page #tenth-discard-dialog #tenth-discard{background:#b61620;color:#fff;border:0}
html.log-page #shot-dialog.quick-strike .shot-ball-picker{border:0;margin:0 0 12px}
html.log-page #shot-dialog.quick-strike .shot-ball-picker select{border:1px solid var(--xw-line);border-radius:5px;padding:8px 28px 8px 10px;text-align:left;text-align-last:left;margin-left:12px}
html.log-page #shot-dialog.quick-strike .shot-ball-picker::after{right:12px;transform:rotate(135deg)}
html.log-page #shot-dialog.quick-strike .detail-quality>label{font-weight:500}
html.log-page[data-theme=dark] #tenth-dialog button:not(.primary):not(.active),html.log-page[data-theme=dark] #shot-dialog.quick-strike select{border-color:#60656d}
@media(max-width:359px){html.log-page #tenth-dialog .tenth-heading{grid-template-columns:28px minmax(0,1fr)}html.log-page #tenth-dialog .tenth-heading>span{grid-column:2}html.log-page #tenth-dialog .tenth-editor-content{padding-inline:16px}html.log-page #tenth-dialog .xw-brand-header{padding-inline:16px}}

/* 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}

/* 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}

/* Option 1: shared functional racks only. Ranking miniatures, charts and lane drawings are excluded. */
html body :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack,.practice-rack,#pin-selector,#rack,#pin-rack,.saved-rack) {
 --rack-panel:transparent;--rack-text:#17191d;--rack-selection:rgba(182,22,32,.13);
 box-sizing:border-box;width:100%;max-width:360px;padding:8px 8px;margin:12px auto;
 border:0;border-radius:0;background:var(--rack-panel);box-shadow:none;
 --pitch:68px;--pin:56px;gap:2px;
}
html[data-theme="dark"] body :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack,.practice-rack,#pin-selector,#rack,#pin-rack,.saved-rack) {--rack-panel:transparent;--rack-text:#f5f5f7;--rack-selection:rgba(218,50,61,.24)}
html body :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack,.practice-rack,#pin-selector,#rack,#pin-rack,.saved-rack)[hidden]{display:none}
html body :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack,.practice-rack,#pin-selector,#rack,#pin-rack,.saved-rack) .xw-pin.xw-pin.xw-pin {
 position:relative;display:inline-grid;place-items:center;flex:none;box-sizing:border-box;
 width:56px;height:86px;min-width:56px;min-height:86px;max-width:none;padding:0;margin:0;
 border:0;border-radius:0;background:transparent;background-image:none;box-shadow:none;
 color:var(--rack-text);line-height:1;opacity:1;font-style:normal;vertical-align:middle;
 animation:none;transition:none;isolation:isolate;overflow:visible;
}
html body :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack,.practice-rack,#pin-selector,#rack,#pin-rack,.saved-rack) .xw-pin.xw-pin.xw-pin::before{display:none}
html body :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack,.practice-rack,#pin-selector,#rack,#pin-rack,.saved-rack) .xw-pin.xw-pin.xw-pin::after{content:none}
html body :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack,.practice-rack,#pin-selector,#rack,#pin-rack,.saved-rack) .xw-pin.xw-pin.xw-pin img {
 display:block;position:absolute;left:50%;top:1px;bottom:auto;transform:translateX(-50%);
 width:34px;height:60px;max-width:none;object-fit:contain;pointer-events:none;opacity:1;
 filter:none;z-index:1;animation:none;transition:none;
}
html body :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack,.practice-rack,#pin-selector,#rack,#pin-rack,.saved-rack) .xw-pin.xw-pin.xw-pin .pin-number {
 position:absolute;left:50%;top:auto;bottom:0;transform:translateX(-50%);
 width:auto;height:22px;min-width:0;display:block;z-index:1;border:0;border-radius:0;
 background:transparent;padding:0;margin:0;color:var(--rack-text);
 font:700 18px/22px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
 font-variant-numeric:tabular-nums;text-shadow:none;pointer-events:none;opacity:1;
}
html body :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack,.practice-rack,#pin-selector,#rack,#pin-rack,.saved-rack) button.xw-pin.xw-pin.xw-pin[aria-pressed=true]{background:transparent;box-shadow:none;border:0}
html body :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack,.practice-rack,#pin-selector,#rack,#pin-rack,.saved-rack) button.xw-pin.xw-pin.xw-pin[aria-pressed=true]::after{
 content:"";display:block;position:absolute;left:50%;top:0;transform:translateX(-50%);
 width:46px;height:64px;border-radius:50%;background:var(--rack-selection);z-index:0;pointer-events:none;
}
html body :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack,.practice-rack,#pin-selector,#rack,#pin-rack,.saved-rack) button.xw-pin:disabled{cursor:default}
html body :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack,.practice-rack,#pin-selector,#rack,#pin-rack,.saved-rack) button.xw-pin.xw-pin.xw-pin:focus-visible{outline:2px solid var(--rack-text);outline-offset:2px;border-radius:8px}
html body :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack,.practice-rack,#pin-selector,#rack,#pin-rack,.saved-rack) .xw-pin:is(:disabled,:not(button):not(.standing):not(.on)) img{visibility:hidden}
html body :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack,.practice-rack,#pin-selector,#rack,#pin-rack,.saved-rack) .xw-pin:is(:disabled,:not(button):not(.standing):not(.on)) .pin-number{opacity:.65}
html body :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack,#pin-selector,#pin-rack,.saved-rack)>div {
 display:flex;justify-content:center;align-items:center;gap:clamp(6px,3vw,18px);
 height:86px;min-height:86px;margin:0;padding:0;
}
html body :is(.practice-rack,#rack){display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:repeat(4,86px);gap:2px 0;padding-inline:28px}
html body :is(.practice-rack,#rack) .xw-pin{justify-self:center}
@media(max-width:359px){html body :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack,.practice-rack,#pin-selector,#rack,#pin-rack,.saved-rack){padding-inline:12px}html body :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack,.practice-rack,#pin-selector,#rack,#pin-rack,.saved-rack) .xw-pin.xw-pin.xw-pin{width:48px;min-width:48px}html body :is(.practice-rack,#rack){padding-inline:24px}}

/* Preserve the same open rack spacing under the Stats page's existing selectors. */
html body #pin-selector#pin-selector#pin-selector{padding:8px 8px;margin:12px auto;max-width:360px}
@media(max-width:359px){html body #pin-selector#pin-selector#pin-selector{padding-inline:12px}}

/* Focused frame logging. Quick Log and statistical racks retain their layout. */
html.log-page body.log-redesign .frame-mode-active .extras>details[open]>summary{margin-bottom:0}
html.log-page body.log-redesign .frame-mode-active .extras>details>.detail-body{padding:4px 0 12px}
html.log-page body.log-redesign .frame-mode-active .extras .detail-body>label{margin:0 0 6px}
html.log-page body.log-redesign .frame-mode-active .extras .entry-list:empty{margin:0}
html.log-page body.log-redesign .frame-mode-active:not(.game-complete) .frame-score{display:flex;align-items:baseline;justify-content:center;gap:8px;margin:4px 0 8px;padding:0;min-height:0}
html.log-page body.log-redesign .frame-mode-active:not(.game-complete) .frame-score>strong{font-size:24px;line-height:28px}
html.log-page body.log-redesign .frame-mode-active:not(.game-complete) .possible-score{display:flex;align-items:baseline;gap:8px;border:0;padding:0 0 0 24px;margin:0}
html.log-page body.log-redesign .frame-mode-active:not(.game-complete) .possible-score strong{font-size:24px;line-height:28px}
html.log-page body.log-redesign .frame-mode-active:not(.game-complete) #frame-status:empty{display:none}
html.log-page body.log-redesign .frame-mode-active:not(.game-complete) #scoreboard{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:0;margin:0 0 12px;overflow:visible}
html.log-page body.log-redesign .frame-mode-active:not(.game-complete) #scoreboard>button{min-width:0;min-height:64px;padding:0;border:1px solid var(--xw-line,#e0e2e5);border-right:0}
html.log-page body.log-redesign .frame-mode-active:not(.game-complete) #scoreboard>button:last-child{border-right:1px solid var(--xw-line,#e0e2e5)}
html.log-page body.log-redesign .frame-mode-active:not(.game-complete) #scoreboard b{font-size:12px;line-height:18px}
html.log-page body.log-redesign .frame-mode-active:not(.game-complete) #scoreboard strong{font-size:14px;line-height:22px}
html.log-page body.log-redesign .frame-mode-active:not(.game-complete) #scoreboard .frame-rolls{min-height:22px}
html.log-page body.log-redesign .frame-mode-active:not(.game-complete) #scoreboard .frame-rolls i{font-size:12px;line-height:22px;min-width:0}
html.log-page body.log-redesign .frame-mode-active #rack-help{margin:2px 0 4px}
html.log-page body.log-redesign .frame-mode-active #frame-pin-rack{margin:4px auto;padding:0 8px;gap:0}
html.log-page body.log-redesign .frame-mode-active #frame-pin-rack>div{height:74px;min-height:74px}
html.log-page body.log-redesign .frame-mode-active #frame-pin-rack .xw-pin.xw-pin.xw-pin{height:74px;min-height:74px}
html.log-page body.log-redesign .frame-mode-active #frame-pin-rack .xw-pin img{height:52px;width:30px;top:0}
html.log-page body.log-redesign .frame-mode-active #frame-pin-rack .xw-pin.xw-pin.xw-pin::after{height:54px}
html.log-page body.log-redesign .frame-mode-active #rack-ball-used{margin:4px 0;font-size:12px}
html.log-page body.log-redesign .frame-mode-active .rack-actions{gap:8px;margin:4px 0 0;padding-bottom:0}
html.log-page body.log-redesign .frame-mode-active #rack-confirm{position:fixed;z-index:39;bottom:calc(var(--xw-nav-height,68px) + var(--xw-nav-safe,0px));left:50%;transform:translateX(-50%);box-sizing:border-box;width:calc(100% - 36px);max-width:584px;min-height:48px;height:48px;margin:0 0 8px;box-shadow:0 0 0 8px var(--xw-bg,#fff)}
html.log-page body.log-redesign .frame-mode-active.xw-navigation-content{padding-bottom:calc(var(--xw-nav-height,68px) + var(--xw-nav-safe,0px) + 80px)!important}

/* Keep both ball choices together in either logging mode. */
html.log-page body.log-redesign .game-screen:not(.game-complete) #game-setup .context,html.log-page body.log-redesign .game-screen.editing-completed #game-setup .context{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html.log-page body.log-redesign #game-setup .header-ball{min-width:0;min-height:60px;box-sizing:border-box;padding:8px 10px}
html.log-page body.log-redesign #game-setup .header-ball>div{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;min-width:0;overflow:hidden}
html.log-page body.log-redesign #game-setup .header-ball small{min-width:0;font-size:14px;line-height:18px;color:var(--xw-muted)}
html.log-page body.log-redesign #game-setup .header-ball :is(#ball-name,#spare-ball-name){display:block;width:100%;font-size:16px;line-height:21px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.log-page body.log-redesign #game-setup .header-ball>span{flex:none;margin-left:6px}
html.log-page body.log-redesign #game-setup .header-ball:focus-within{outline:2px solid var(--xw-ink);outline-offset:2px}

/* 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}


html.log-page body.log-redesign .game-toolbar{min-height:40px}
html.log-page body.log-redesign .game-toolbar b{font-size:20px}
html.log-page body.log-redesign .log-mode{margin:4px 0 8px;border:0;border-radius:9px;padding:3px;background:var(--xw-surface)}
html.log-page body.log-redesign .log-mode button{min-height:40px;border:0;border-radius:7px;font-size:14px}
html.log-page body.log-redesign .log-mode button[aria-pressed=true]{background:#b61620;color:#fff;border:0;box-shadow:none}
html.log-page body.log-redesign .game-context-line{min-height:28px;margin:0 0 6px}
html.log-page body.log-redesign #game-number{font-size:18px}
html.log-page body.log-redesign #game-setup .context{margin:0;gap:8px}
html.log-page body.log-redesign #game-setup .header-ball{min-height:58px;padding:7px 8px;gap:7px;border:1px solid var(--xw-line);border-radius:9px;background:var(--xw-bg)}
html.log-page body.log-redesign #game-setup .header-ball>div{flex:1;gap:2px}
html.log-page body.log-redesign #game-setup .header-ball small{font-size:12px;line-height:16px;margin:0}
html.log-page body.log-redesign #game-setup .header-ball :is(#ball-name,#spare-ball-name){font-size:14px;line-height:19px;letter-spacing:-.2px}
html.log-page body.log-redesign #game-setup .header-ball>span{margin-left:0}
html.log-page body.log-redesign #game-setup .header-ball img:not([hidden]){display:block;width:32px;height:32px;object-fit:contain;flex:none;border-radius:50%}
html.log-page body.log-redesign #line-access{min-height:44px;margin:6px 0 8px;padding:6px 10px;border-radius:9px;gap:8px}
html.log-page body.log-redesign #line-access>span:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:1;min-width:0}
html.log-page body.log-redesign #line-access b{font-size:14px;flex:none}
html.log-page body.log-redesign #line-access small{font-size:12px;line-height:18px;text-align:right}
html.log-page body.log-redesign #quick-entry .total{display:flex;flex-direction:column;gap:0;text-align:center;background:var(--xw-surface);border-radius:12px;margin:8px 0 12px;padding:10px 16px}
html.log-page body.log-redesign #quick-entry .total label{font-size:14px;color:var(--xw-muted);font-weight:500}
html.log-page body.log-redesign #quick-entry .total input{width:100%;height:70px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--xw-ink);font-size:64px;line-height:1;font-weight:750;text-align:center;letter-spacing:-2px;appearance:textfield}
html.log-page body.log-redesign #quick-entry .total input::-webkit-inner-spin-button{appearance:none}
html.log-page body.log-redesign .totals-heading{display:flex;align-items:center;justify-content:space-between;margin:0;font-size:16px;min-height:32px}
html.log-page body.log-redesign .totals-heading small{font-size:13px;font-weight:400;color:var(--xw-muted)}
html.log-page body.log-redesign #quick-entry .counters{gap:0}
html.log-page body.log-redesign #quick-entry .counter{grid-template-columns:minmax(0,1fr) 144px;min-height:48px;gap:8px;border-top:1px solid var(--xw-line)}
html.log-page body.log-redesign #quick-entry .counter label{text-align:left;font-size:14px}
html.log-page body.log-redesign #quick-entry .stepper{grid-template-columns:44px minmax(0,1fr) 44px;gap:2px;border:0;border-radius:0}
html.log-page body.log-redesign #quick-entry .stepper button{height:44px;min-height:44px;border:0;border-radius:8px;background:var(--xw-surface);font-size:22px}
html.log-page body.log-redesign #quick-entry .stepper input{height:44px;border:0;background:transparent;font-size:18px;font-weight:650}
html.log-page body.log-redesign #quick-entry .tenth{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,40%);gap:4px 12px;align-items:center;margin:8px 0 0;padding:8px 0;border-top:1px solid var(--xw-line)}
html.log-page body.log-redesign #quick-entry .tenth h2{font-size:14px;margin:0}
html.log-page body.log-redesign #quick-entry .tenth h2 small{display:block;margin-top:2px;font-size:12px;font-weight:400}
html.log-page body.log-redesign #quick-entry .tenth-boxes{gap:6px;margin:0}
html.log-page body.log-redesign #quick-entry .tenth-boxes button{border-radius:8px;font-size:16px;min-height:44px}
html.log-page body.log-redesign #quick-entry #clean-status{grid-column:1/-1;font-size:12px;margin:2px 0;color:var(--xw-muted)}
html.log-page body.log-redesign .memory>summary,
html.log-page body.log-redesign .game-details-group>summary{min-height:48px;font-size:14px;font-weight:600}
html.log-page body.log-redesign .game-details-group{border-top:1px solid var(--xw-line);margin:0}
html.log-page body.log-redesign .game-details-group>summary small{margin-left:auto;margin-right:10px;color:var(--xw-muted);font-size:12px;font-weight:400}
html.log-page body.log-redesign .game-details-group .extras{margin:0;padding:0 12px;background:var(--xw-surface);border-radius:10px}
html.log-page body.log-redesign .extras>details:first-child{border-top:0}
html.log-page body.log-redesign .extras>details>summary{min-height:44px;font-size:14px}
html.log-page body.log-redesign .extras>details[open]>summary{margin:0}
html.log-page body.log-redesign .extras .detail-body{padding:4px 0 12px}
html.log-page body.log-redesign .extras .detail-body>label{margin:0 0 6px;font-size:14px}
html.log-page body.log-redesign .extras .detail-body textarea{min-height:96px;border-radius:8px;background:var(--xw-bg)}
html.log-page body.log-redesign .extras .detail-buttons{gap:8px;margin:0}
html.log-page body.log-redesign .extras .detail-buttons button{min-height:44px;border-radius:8px;background:var(--xw-bg);font-size:14px}
html.log-page body.log-redesign .save-area{margin:8px 0 0;padding:0}
html.log-page body.log-redesign .primary{border-radius:9px;min-height:48px;font-size:17px}
/* Keep the ten-frame table and the complete rack above an in-flow action. */
html.log-page body.log-redesign .frame-mode-active:not(.game-complete) .frame-score{margin:0 0 8px;padding:6px 12px;border-radius:9px;background:var(--xw-surface);gap:8px}
html.log-page body.log-redesign .frame-mode-active:not(.game-complete) #scoreboard{margin:0 0 8px}
html.log-page body.log-redesign .frame-mode-active:not(.game-complete) #scoreboard>button{min-height:64px}
html.log-page body.log-redesign .frame-mode-active:not(.game-complete) #scoreboard>button.selected{outline:2px solid var(--xw-red);outline-offset:-2px;border-radius:5px}
html.log-page body.log-redesign .frame-editor h2{font-size:18px;margin:4px 0 0}
html.log-page body.log-redesign .frame-mode-active #rack-help{font-size:14px;margin:2px 0 4px}
html.log-page body.log-redesign .frame-mode-active #rack-ball-used{font-size:12px;margin:4px 0}
html.log-page body.log-redesign .frame-mode-active .rack-actions{gap:6px;margin:4px 0 8px}
html.log-page body.log-redesign .frame-mode-active .rack-actions .secondary{min-height:44px;border-radius:8px;font-size:24px;background:var(--xw-surface);border:0}
html.log-page body.log-redesign .frame-mode-active #rack-confirm{position:static;inset:auto;transform:none;width:100%;max-width:none;min-height:48px;height:auto;margin:0;box-shadow:none;grid-column:1/-1}
html.log-page body.log-redesign .frame-mode-active.xw-navigation-content{padding-bottom:calc(var(--xw-nav-height,68px) + var(--xw-nav-safe,0px) + 16px)!important}
/* Dark mockup rack: close rows, full pins, numbers on the body, selected red glow. */
html.log-page body.log-redesign :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack){max-width:340px;padding:4px 8px;margin:4px auto;gap:0;background:transparent}
html.log-page body.log-redesign :is(#frame-pin-rack,#shot-rack,#memory-rack,#shot-leave-rack)>div{height:58px;min-height:58px;gap:14px}
html.log-page body.log-redesign :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack) .xw-pin.xw-pin.xw-pin{width:48px;min-width:48px;height:58px;min-height:58px;background:transparent;border:0;border-radius:0;outline:none;box-shadow:none}
html.log-page body.log-redesign :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack) .xw-pin.xw-pin.xw-pin img{width:40px;height:58px;top:0;transform:translateX(-50%);opacity:1;filter:drop-shadow(0 2px 2px #0003)}
html.log-page body.log-redesign :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack) .xw-pin.xw-pin.xw-pin .pin-number{top:auto;bottom:7px;height:20px;font-size:16px;line-height:20px;color:#17191d;text-shadow:0 1px 2px #fff;background:transparent}
html.log-page body.log-redesign :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack) .xw-pin.xw-pin.xw-pin[aria-pressed=true]::after{content:none}
html.log-page body.log-redesign :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack) .xw-pin.xw-pin.xw-pin[aria-pressed=true] img{filter:drop-shadow(1px 0 0 #df2536) drop-shadow(-1px 0 0 #df2536) drop-shadow(0 0 5px #df2536)}
html.log-page body.log-redesign :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack) .xw-pin.xw-pin.xw-pin:disabled .pin-number{color:var(--xw-muted);text-shadow:none}
html.log-page body.log-redesign :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack) .xw-pin.xw-pin.xw-pin:focus-visible{outline:2px solid var(--xw-ink);outline-offset:0;border-radius:8px}
/* Detail screens inherit the same spacing, radii and neutral selection surfaces. */
html.log-page body.log-redesign :is(#shot-dialog,#change-dialog,#tenth-dialog,#saved-game-dialog) .xw-brand-header{padding-top:calc(6px + env(safe-area-inset-top));min-height:calc(56px + env(safe-area-inset-top))}
html.log-page body.log-redesign :is(.shot-editor-content,.change-editor-content,.tenth-editor-content,.saved-game-content){padding-inline:18px}
html.log-page body.log-redesign #shot-dialog #shot-title{font-size:21px}
html.log-page body.log-redesign #shot-dialog .detail-quality{padding:10px 0;margin:0;border-bottom:1px solid var(--xw-line)}
html.log-page body.log-redesign #shot-dialog .detail-quality>label{font-size:14px;margin-bottom:6px}
html.log-page body.log-redesign #shot-dialog .detail-segments{gap:4px;background:var(--xw-surface);border-radius:9px;padding:3px}
html.log-page body.log-redesign #shot-dialog .detail-segments button{border:0;border-radius:7px;min-height:44px;background:transparent}
html.log-page body.log-redesign #shot-dialog .detail-segments button[aria-pressed=true]{background:var(--xw-bg);box-shadow:0 0 0 1px var(--xw-muted);color:var(--xw-ink)}
html.log-page body.log-redesign #shot-dialog .shot-extra>summary{font-size:14px;min-height:48px}
html.log-page body.log-redesign #shot-dialog :is(select,textarea),
html.log-page body.log-redesign #change-dialog select{border-radius:8px}
html.log-page body.log-redesign #tenth-dialog .delivery-select button{border-radius:10px;min-height:88px}
html.log-page body.log-redesign #tenth-dialog .delivery-select button.active{border-color:var(--xw-red)}
html.log-page body.log-redesign #tenth-dialog .delivery-select strong{font-size:36px}
html.log-page body.log-redesign #tenth-dialog #tenth-keypad button{border:0;border-radius:9px;background:var(--xw-surface)}
html.log-page body.log-redesign #tenth-dialog #done-tenth{border-radius:9px;min-height:48px}
@media(max-width:359px){html.log-page body.log-redesign #game-setup .header-ball img:not([hidden]){width:26px;height:26px}html.log-page body.log-redesign #game-setup .header-ball{gap:5px;padding-inline:6px}html.log-page body.log-redesign #line-access>span:first-child{gap:6px}}
@media(min-width:600px){html.log-page body.log-redesign :is(#frame-pin-rack,#shot-rack,#memory-rack,#shot-leave-rack)>div{height:68px;min-height:68px}}

/* Approved dark reference. Scoped to logging; static statistics retain their presentation. */

html.log-page body.log-redesign.log-reference{--log-panel:#f4f5f6;--log-border:#dfe1e4}
html.log-page[data-theme=dark] body.log-redesign.log-reference{--log-panel:#1d2023;--log-border:#363b40}
html.log-page body.log-redesign.log-reference .app-frame>.game-screen{padding-inline:12px}
html.log-page body.log-redesign.log-reference .game-toolbar{min-height:36px;grid-template-columns:80px minmax(0,1fr) 80px;margin:0 0 4px}
html.log-page body.log-redesign.log-reference .game-toolbar b{text-align:center;font-size:20px}
html.log-page body.log-redesign.log-reference .game-toolbar #end-session{font-size:12px;padding:0;min-height:36px}
html.log-page body.log-redesign.log-reference .log-mode{padding:0;border:1px solid var(--log-border);border-radius:10px;margin:0 0 8px}
html.log-page body.log-redesign.log-reference .log-mode button{min-height:38px;border-radius:8px}
html.log-page body.log-redesign.log-reference .game-context-line{min-height:30px;border-top:1px solid var(--log-border);margin:0;padding:0 6px}
html.log-page body.log-redesign.log-reference #game-number{font-size:16px}
html.log-page body.log-redesign.log-reference #draft-state{font-size:12px;color:var(--xw-muted)}
html.log-page body.log-redesign.log-reference #game-setup .context{gap:0;border-block:1px solid var(--log-border)}
html.log-page body.log-redesign.log-reference #game-setup .header-ball{border:0;border-radius:0;min-height:68px;padding:8px 6px;gap:8px;background:transparent}
html.log-page body.log-redesign.log-reference #game-setup .header-ball+.header-ball{border-left:1px solid var(--log-border)}
html.log-page body.log-redesign.log-reference #game-setup .header-ball img:not([hidden]){width:48px;height:48px;object-fit:contain}
html.log-page body.log-redesign.log-reference #game-setup .header-ball :is(#ball-name,#spare-ball-name){font-size:14px;line-height:20px;letter-spacing:-.3px}
html.log-page body.log-redesign.log-reference #line-access{margin:0 0 8px;border:0;border-bottom:1px solid var(--log-border);border-radius:0;min-height:40px;padding:4px 6px;gap:6px}
html.log-page body.log-redesign.log-reference #line-access>span:first-child{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;width:100%}
html.log-page body.log-redesign.log-reference #line-access small{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;width:100%;font-size:14px;line-height:20px;text-align:center}
html.log-page body.log-redesign.log-reference #line-access small>span{white-space:nowrap}
html.log-page body.log-redesign.log-reference #game-setup .header-ball img{background:transparent;border:0;box-shadow:none;object-fit:contain}
@media(max-width:359px){html.log-page body.log-redesign.log-reference #line-access small{font-size:12px}html.log-page body.log-redesign.log-reference #line-access>span:first-child{gap:6px}}
html.log-page body.log-redesign.log-reference .score-panel{padding:10px 10px 4px;background:var(--log-panel);border:1px solid var(--log-border);border-radius:10px;margin:0 0 10px}
html.log-page body.log-redesign.log-reference #quick-entry .total{align-items:flex-start;text-align:left;padding:0;margin:0;background:transparent;border-radius:0}
html.log-page body.log-redesign.log-reference #quick-entry .total input{height:80px;font-size:76px;line-height:1.05;text-align:left;font-weight:750;letter-spacing:-3px;padding:0}
html.log-page body.log-redesign.log-reference .totals-heading{display:none}
html.log-page body.log-redesign.log-reference #quick-entry .counter{grid-template-columns:minmax(0,1fr) 140px;min-height:46px;border-color:var(--log-border)}
html.log-page body.log-redesign.log-reference #quick-entry .stepper{grid-template-columns:44px 44px 44px;gap:4px}
html.log-page body.log-redesign.log-reference #quick-entry .stepper input{grid-column:1;grid-row:1;background:transparent;font-size:16px}
html.log-page body.log-redesign.log-reference #quick-entry .stepper button:first-child{grid-column:2;grid-row:1}
html.log-page body.log-redesign.log-reference #quick-entry .stepper button:last-child{grid-column:3;grid-row:1}
html.log-page body.log-redesign.log-reference #quick-entry .stepper button{border:1px solid var(--log-border);background:var(--xw-bg);border-radius:6px;min-height:40px;height:40px;align-self:center}
html.log-page body.log-redesign.log-reference #quick-entry .tenth{margin:0;padding:4px 6px;grid-template-columns:minmax(0,1fr) 116px;border:0;border-bottom:1px solid var(--log-border);min-height:48px}
html.log-page body.log-redesign.log-reference #quick-entry .tenth h2 small{display:none}
html.log-page body.log-redesign.log-reference #quick-entry .tenth-boxes button{padding:0;border:0;background:transparent;min-height:44px;font-size:17px}
html.log-page body.log-redesign.log-reference #quick-entry #clean-status{margin:0;font-size:12px;line-height:16px}
html.log-page body.log-redesign.log-reference :is(.memory,.game-details-group){border:0;border-bottom:1px solid var(--log-border)}
html.log-page body.log-redesign.log-reference :is(.memory,.game-details-group)>summary{padding:0 6px}
html.log-page body.log-redesign.log-reference .save-area{margin:12px 0 4px}
html.log-page body.log-redesign.log-reference .primary{min-height:46px;border-radius:9px;font-size:17px;background:#bd1120}
html.log-page body.log-redesign.log-reference .frame-mode-active:not(.game-complete) .frame-score{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto;column-gap:12px;row-gap:0;padding:8px 14px;margin:0 0 5px;background:var(--log-panel);border:1px solid var(--log-border);border-radius:9px}
html.log-page body.log-redesign.log-reference .frame-mode-active:not(.game-complete) .frame-score>span{grid-column:1;grid-row:1;font-size:13px;margin:0;line-height:18px;text-align:left}
html.log-page body.log-redesign.log-reference .frame-mode-active:not(.game-complete) .frame-score>strong{grid-column:1;grid-row:2;font-size:30px;line-height:32px;text-align:left}
html.log-page body.log-redesign.log-reference .frame-mode-active:not(.game-complete) .possible-score{grid-column:2;grid-row:1/3;display:flex;flex-direction:column;gap:0;align-items:flex-start;justify-content:center;border-left:1px solid var(--log-border);padding:0 0 0 24px}
html.log-page body.log-redesign.log-reference .frame-mode-active:not(.game-complete) .possible-score span{font-size:13px;line-height:18px;margin:0}
html.log-page body.log-redesign.log-reference .frame-mode-active:not(.game-complete) .possible-score strong{font-size:30px;line-height:32px}
html.log-page body.log-redesign.log-reference .frame-mode-active #scoreboard{margin-bottom:6px}
html.log-page body.log-redesign.log-reference .frame-mode-active #scoreboard>button{min-height:60px}
html.log-page body.log-redesign.log-reference .frame-editor h2{font-size:16px;line-height:21px;margin:2px 0 0}
html.log-page body.log-redesign.log-reference .frame-mode-active #rack-help{margin:0 0 2px;font-size:13px;line-height:18px}
/* Images remain individual selectable pins, not a flattened rack screenshot. */
html.log-page body.log-redesign.log-reference :is(#frame-pin-rack,#shot-rack,#memory-rack,#shot-leave-rack){max-width:100%;padding:10px 4px 6px;margin:0 auto;gap:0;background:transparent;border-radius:10px;overflow:visible}
html.log-page body.log-redesign.log-reference :is(#frame-pin-rack,#shot-rack,#memory-rack,#shot-leave-rack)>div{height:44px;min-height:44px;gap:8px;position:relative}
html.log-page body.log-redesign.log-reference :is(#frame-pin-rack,#shot-rack,#memory-rack,#shot-leave-rack)>div:last-child{height:76px;min-height:76px}
html.log-page body.log-redesign.log-reference :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack) .xw-pin.xw-pin.xw-pin{width:44px;min-width:44px;height:44px;min-height:44px;align-self:flex-start}
html.log-page body.log-redesign.log-reference :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack) .xw-pin.xw-pin.xw-pin img{width:36px;height:76px;object-fit:fill;top:0;opacity:1;pointer-events:auto;filter:none}
html.log-page body.log-redesign.log-reference :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack) .xw-pin.xw-pin.xw-pin .pin-number{top:44px;bottom:auto;font-size:16px;line-height:20px;height:20px;color:#17191d;text-shadow:none}
html.log-page body.log-redesign.log-reference :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack) .xw-pin.xw-pin.xw-pin[aria-pressed=true] img{filter:grayscale(1)}
html.log-page body.log-redesign.log-reference :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack) .xw-pin.xw-pin.xw-pin:is(:disabled,:not(button):not(.standing):not(.on)) .pin-number{color:#e1e1e1;opacity:.5;text-shadow:0 1px 2px #000}
html.log-page body.log-redesign.log-reference #remaining-pins{padding-bottom:36px;background:#18191b;border-radius:10px}
/* Strong selected state: a red pin silhouette, white number and checkmark. */
html.log-page body.log-redesign.log-reference :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins) button.xw-pin.xw-pin.xw-pin[aria-pressed=true]::before{content:'';display:block;position:absolute;left:50%;top:0;transform:translateX(-50%);width:36px;height:76px;background:#da1427;mix-blend-mode:multiply;-webkit-mask:url('assets/lane-pin-v2.webp') center/100% 100% no-repeat;mask:url('assets/lane-pin-v2.webp') center/100% 100% no-repeat;opacity:1;z-index:2;pointer-events:none}
html.log-page body.log-redesign.log-reference :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins) button.xw-pin.xw-pin.xw-pin[aria-pressed=true] .pin-number{color:#fff;text-shadow:0 1px 1px #6008;z-index:3}
html.log-page body.log-redesign.log-reference :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins) button.xw-pin.xw-pin.xw-pin[aria-pressed=true]::after{content:'✓';display:grid;place-items:center;position:absolute;left:50%;right:auto;top:23px;transform:translateX(-50%);box-sizing:border-box;width:20px;height:20px;border:0;border-radius:0;background:transparent;color:#fff;font:800 17px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;z-index:4;pointer-events:none;box-shadow:none;text-shadow:0 1px 2px #6006}
html.log-page body.log-redesign.log-reference .frame-mode-active #rack-ball-used{display:none}
html.log-page body.log-redesign.log-reference #rack-selection-summary{font-size:12px;line-height:18px;text-align:center;min-height:18px;margin:2px 0 4px;color:var(--xw-muted)}
html.log-page body.log-redesign.log-reference .frame-mode-active .rack-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 8px}
html.log-page body.log-redesign.log-reference .frame-mode-active .rack-actions .secondary{min-height:52px;height:52px;padding:4px;border:1px solid var(--log-border);border-radius:8px;font-size:28px;background:var(--log-panel);display:flex;align-items:center;justify-content:center;gap:7px}
html.log-page body.log-redesign.log-reference #rack-clear::after{content:none;font-size:14px}
html.log-page body.log-redesign.log-reference #rack-spare::after{content:none;font-size:14px}
html.log-page body.log-redesign.log-reference #rack-zero::after{content:none;font-size:14px}
html.log-page body.log-redesign.log-reference .extras{margin:8px 0 0;padding:0;background:transparent}
html.log-page body.log-redesign.log-reference .lane-condition-row{position:relative;display:flex;align-items:center;min-height:48px;border-top:1px solid var(--log-border);padding:0 6px}
html.log-page body.log-redesign.log-reference .lane-condition-row label{margin:0;font-size:16px;font-weight:400;white-space:nowrap;pointer-events:none}
html.log-page body.log-redesign.log-reference .lane-condition-row select{position:absolute;inset:0;width:100%;height:100%;min-height:48px;margin:0;padding:0 28px 0 135px;border:0;border-radius:0;box-shadow:none;background:transparent;appearance:none;-webkit-appearance:none;font-size:14px;color:var(--xw-muted);text-align:right;text-align-last:right;cursor:pointer}
html.log-page body.log-redesign.log-reference .lane-condition-row::after{content:'';position:absolute;right:8px;width:7px;height:7px;border-right:2px solid var(--xw-muted);border-top:2px solid var(--xw-muted);transform:rotate(45deg);pointer-events:none}
html.log-page body.log-redesign.log-reference .extras>details{border-top:1px solid var(--log-border)}
html.log-page body.log-redesign.log-reference .extras>details>summary{min-height:48px;font-size:16px;padding:0 6px}
html.log-page body.log-redesign.log-reference :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins) button.xw-pin.xw-pin.xw-pin[aria-pressed=true] .pin-number{min-width:22px;background:transparent;border-radius:0;box-shadow:none}
html.log-page body.log-redesign.log-reference .frame-mode-active #rack-confirm{min-height:44px;margin:0;position:static}
@media(max-width:359px){html.log-page body.log-redesign.log-reference #game-setup .header-ball img:not([hidden]){width:38px;height:38px}html.log-page body.log-redesign.log-reference #game-setup .header-ball{gap:5px}html.log-page body.log-redesign.log-reference .game-toolbar{grid-template-columns:70px minmax(0,1fr) 70px}html.log-page body.log-redesign.log-reference .game-toolbar b{font-size:18px}}

/* Focused logging, with centred scores and two rows of five frames. */
html.log-page body.log-redesign.log-reference .frame-mode-active:not(.game-complete) .frame-score::before{content:none}
html.log-page body.log-redesign.log-reference .log-mode button[aria-pressed=true]{background:#b61620!important;color:#fff!important;border:0!important;box-shadow:none!important}
html.log-page body.log-redesign.log-reference .game-context-line{border:0;padding:0 2px;min-height:28px}
html.log-page body.log-redesign.log-reference #game-setup .context{border:0;gap:8px}
html.log-page body.log-redesign.log-reference #game-setup .header-ball{border:1px solid var(--log-border);border-radius:10px;background:var(--log-panel);min-height:66px;padding:6px;gap:6px}
html.log-page body.log-redesign.log-reference #game-setup .header-ball+.header-ball{border:1px solid var(--log-border)}
html.log-page body.log-redesign.log-reference #game-setup .header-ball>div{min-width:0}
html.log-page body.log-redesign.log-reference #game-setup .header-ball :is(#ball-name,#spare-ball-name){white-space:normal;overflow-wrap:anywhere;font-size:13px;line-height:17px}
html.log-page body.log-redesign.log-reference #line-access{border:1px solid var(--log-border);border-radius:9px;background:var(--log-panel);margin:6px 0 8px;padding:5px 10px;min-height:48px}
html.log-page body.log-redesign.log-reference #line-access>span:first-child{display:block}
html.log-page body.log-redesign.log-reference #line-access>span:first-child>b{display:none}
html.log-page body.log-redesign.log-reference #line-access small{font-size:12px;line-height:16px}
html.log-page body.log-redesign.log-reference #line-access small>span{display:flex;flex-direction:column;align-items:center;gap:0}
html.log-page body.log-redesign.log-reference #line-access small>span+span{border-left:1px solid var(--log-border)}
html.log-page body.log-redesign.log-reference #line-access small strong{font-size:17px;line-height:21px;color:var(--xw-ink)}
html.log-page body.log-redesign.log-reference .score-panel{padding:10px;border-radius:12px}
html.log-page body.log-redesign.log-reference #quick-entry .total{align-items:center;text-align:center;margin:0 0 8px}
html.log-page body.log-redesign.log-reference #quick-entry .total label{font-size:14px}
html.log-page body.log-redesign.log-reference #quick-entry .total input{width:100%;max-width:240px;height:94px;font-size:88px;line-height:1;text-align:center;letter-spacing:-4px;font-variant-numeric:tabular-nums}
html.log-page body.log-redesign.log-reference #quick-entry .total input:focus-visible{outline:2px solid var(--xw-red);outline-offset:2px}
html.log-page body.log-redesign.log-reference #quick-entry .counters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html.log-page body.log-redesign.log-reference #quick-entry .counter{display:flex;flex-direction:column;align-items:stretch;gap:2px;padding:8px 6px 6px;border:1px solid var(--log-border);border-radius:9px;min-height:0;background:var(--xw-bg)}
html.log-page body.log-redesign.log-reference #quick-entry .counter label{min-height:18px;font-size:12px;line-height:18px;font-weight:500;text-align:left}
html.log-page body.log-redesign.log-reference #quick-entry .stepper{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:0;width:100%}
html.log-page body.log-redesign.log-reference #quick-entry .stepper input{grid-column:2;grid-row:1;font-size:26px;height:44px}
html.log-page body.log-redesign.log-reference #quick-entry .stepper button:first-child{grid-column:1}
html.log-page body.log-redesign.log-reference #quick-entry .stepper button:last-child{grid-column:3}
html.log-page body.log-redesign.log-reference #quick-entry .stepper button{width:44px;height:44px;min-height:44px;border-radius:50%;background:var(--log-panel);font-size:23px}
html.log-page body.log-redesign.log-reference .frame-mode-active:not(.game-complete) .frame-score{display:grid;grid-template-columns:1fr;justify-content:center;grid-template-rows:auto auto auto;column-gap:12px;row-gap:0;align-items:center;padding:12px;margin:0 0 0;border:1px solid var(--log-border);border-bottom:0;border-radius:10px 10px 0 0;background:var(--log-panel);text-align:center}
html.log-page body.log-redesign.log-reference .frame-mode-active:not(.game-complete) .frame-score>span{grid-column:1;grid-row:1;text-align:center;font-size:12px;line-height:16px;margin:0}
html.log-page body.log-redesign.log-reference .frame-mode-active:not(.game-complete) .frame-score>strong{grid-column:1;grid-row:2;text-align:center;font-size:var(--log-score-size);line-height:1.05;letter-spacing:-2px;font-variant-numeric:tabular-nums}
html.log-page body.log-redesign.log-reference .frame-mode-active:not(.game-complete) .possible-score{grid-column:1;grid-row:3;display:flex;flex-direction:row;align-items:baseline;justify-content:center;gap:5px;border:0;padding:0;margin:3px 0 0;color:var(--xw-muted)}
html.log-page body.log-redesign.log-reference .frame-mode-active:not(.game-complete) .possible-score span{font-size:12px;line-height:20px;margin:0}
html.log-page body.log-redesign.log-reference .frame-mode-active:not(.game-complete) .possible-score strong{font-size:18px;line-height:22px;letter-spacing:0;font-weight:600;font-variant-numeric:tabular-nums}
html.log-page body.log-redesign.log-reference .frame-mode-active #scoreboard{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;gap:8px 0;margin:0 0 8px;overflow:visible}
html.log-page body.log-redesign.log-reference .frame-mode-active #scoreboard>button{padding:2px 0;min-width:0;min-height:84px}
html.log-page body.log-redesign.log-reference .frame-mode-active #scoreboard>button:nth-child(5n){border-right:1px solid var(--xw-line,#e0e2e5)}
html.log-page body.log-redesign.log-reference .frame-mode-active #scoreboard b{font-size:16px;line-height:22px}
html.log-page body.log-redesign.log-reference .frame-mode-active #scoreboard strong{font-size:18px;line-height:25px;letter-spacing:0;font-variant-numeric:tabular-nums}
html.log-page body.log-redesign.log-reference .frame-mode-active #scoreboard .frame-rolls{min-height:28px}
html.log-page body.log-redesign.log-reference .frame-mode-active #scoreboard .frame-rolls i{font-size:18px;line-height:28px;min-width:0}
html.log-page body.log-redesign.log-reference .frame-editor h2{font-size:19px;line-height:24px;margin:3px 0 0}
html.log-page body.log-redesign.log-reference .frame-mode-active:not(.game-complete) #rack-help{margin:0 0 4px}
html.log-page body.log-redesign.log-reference .extras{border:1px solid var(--log-border);border-radius:10px;padding:0 10px;background:var(--log-panel);margin:10px 0 0}
html.log-page body.log-redesign.log-reference .lane-condition-row{border-top:0}
html.log-page body.log-redesign.log-reference .extras>details>summary{font-size:14px;min-height:44px}
html.log-page body.log-redesign.log-reference .lane-condition-row{min-height:44px}
html.log-page body.log-redesign.log-reference .lane-condition-row label{font-size:14px}
html.log-page body.log-redesign.log-reference .lane-condition-row select{min-height:44px}
@media(max-width:359px){
html.log-page body.log-redesign.log-reference #quick-entry .counter{padding-inline:3px}
html.log-page body.log-redesign.log-reference #quick-entry .stepper{grid-template-columns:40px minmax(0,1fr) 40px}
html.log-page body.log-redesign.log-reference #quick-entry .stepper button{width:40px}
html.log-page body.log-redesign.log-reference .frame-mode-active #scoreboard strong{font-size:17px}
}

/* Remove redundant logging labels while preserving the existing controls and layout. */
html.log-page body.log-redesign.log-reference #game-back,
html.log-page body.log-redesign.log-reference .game-toolbar:has(#edit-cancel[hidden]) #game-title,
html.log-page body.log-redesign.log-reference #draft-state{display:none}

/* Logo size, alignment and tagline are owned by design-system.css.
   Keep the shared brand header unchanged when editing logging controls. */
html.log-page body.log-redesign.log-reference .game-screen>.xw-brand-header{margin:0 -12px}

/* Keep logging focused: one seamless mode control and a quiet session action. */
html.log-page body.log-redesign.log-reference .game-toolbar:has(#edit-cancel[hidden]){display:none}
html.log-page body.log-redesign.log-reference .log-mode{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:0;overflow:hidden;border:1px solid var(--log-border);border-radius:10px;margin:4px 0 8px;background:var(--xw-surface)}
html.log-page body.log-redesign.log-reference .log-mode>button{box-sizing:border-box;min-width:0;min-height:44px;margin:0;padding:8px 6px;border:0;border-radius:0;display:flex;align-items:center;justify-content:center;line-height:20px;box-shadow:none}
html.log-page body.log-redesign.log-reference .log-mode>button:focus-visible{outline:2px solid var(--xw-ink);outline-offset:-3px}
html.log-page body.log-redesign.log-reference #game-form>#end-session{display:block;min-height:44px;min-width:120px;width:max-content;max-width:100%;margin:12px auto 0;padding:10px 16px;border:0;border-radius:8px;background:transparent;color:var(--xw-muted);font-size:14px;line-height:24px;font-weight:500;text-align:center;cursor:pointer}
html.log-page body.log-redesign.log-reference #game-form>#end-session[hidden]{display:none}
html.log-page body.log-redesign.log-reference #game-form>#end-session:hover{color:var(--xw-ink);background:var(--xw-surface)}

/* Match ball-card spacing in both entry modes; keep native selectors within their card. */
html.log-page body.log-redesign.log-reference .game-screen:not(.frame-mode-active) #game-setup .header-ball>div{justify-content:center;gap:2px}
html.log-page body.log-redesign.log-reference .game-screen:not(.frame-mode-active) #game-setup .header-ball>span{margin-left:0}
html.log-page body.log-redesign.log-reference #game-setup .header-ball select{inset:0;width:100%;height:100%;max-width:100%;min-height:0;margin:0}
html.log-page body.log-redesign.log-reference #quick-entry #clean-status:empty{display:none}

/* Shared score scale and detail-row typography in both logging modes. */
html.log-page body.log-redesign.log-reference .game-screen{--log-score-size:clamp(52px,15vw,64px)}
html.log-page body.log-redesign.log-reference #quick-entry .total input{height:66px;font-size:clamp(48px,14vw,60px);line-height:1.05;letter-spacing:-2px;align-self:center;text-align:center;padding:0;margin-inline:auto}
html.log-page body.log-redesign.log-reference #quick-entry .total input::placeholder{color:var(--xw-ink);opacity:1;text-align:center}
html.log-page body.log-redesign.log-reference .extras>details>summary,
html.log-page body.log-redesign.log-reference .lane-condition-row{box-sizing:border-box;min-height:44px;padding:0 6px;font-size:14px;line-height:20px;font-weight:650;color:var(--xw-ink)}
html.log-page body.log-redesign.log-reference .lane-condition-row label{font:inherit;color:inherit;margin:0}
html.log-page body.log-redesign.log-reference .extras>details>summary::after,
html.log-page body.log-redesign.log-reference .lane-condition-row::after{content:'›';display:flex;align-items:center;justify-content:center;width:20px;height:24px;border:0;font-size:22px;line-height:24px;font-weight:400;color:var(--xw-muted)}
html.log-page body.log-redesign.log-reference .lane-condition-row::after{right:6px;transform:none}

/* 4.12: keep the existing frame action within reach above navigation. */
html.log-page body.log-redesign.log-reference .frame-mode-active :is(#rack-confirm,#strike-next){
 position:fixed;z-index:39;
 inset:auto auto calc(var(--xw-nav-height,68px) + var(--xw-nav-safe,0px) + 8px) 50%;
 transform:translateX(-50%);box-sizing:border-box;
 width:calc(100% - 36px);max-width:584px;
 min-height:48px;height:48px;margin:0;
 box-shadow:0 0 0 8px var(--xw-bg,#fff);
}
html.log-page body.log-redesign.log-reference .frame-mode-active.xw-navigation-content{
 padding-bottom:calc(var(--xw-nav-height,68px) + var(--xw-nav-safe,0px) + 80px)!important;
 scroll-padding-bottom:calc(var(--xw-nav-height,68px) + var(--xw-nav-safe,0px) + 80px);
}

/* 4.19: lighter logging layout, preserving frame and pin dimensions. */
html.log-page body.log-redesign.log-reference .frame-mode-active:not(.game-complete) .frame-score{padding:6px 12px}
html.log-page body.log-redesign.log-reference .frame-mode-active #quick-observations{margin-bottom:0}
html.log-page body.log-redesign.log-reference .frame-mode-active .extras{margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
html.log-page body.log-redesign.log-reference .frame-mode-active .extras>details{margin:0;padding:0;border:0;border-bottom:1px solid var(--xw-line);border-radius:0;background:transparent}
html.log-page body.log-redesign.log-reference .frame-mode-active .extras>details>summary,
html.log-page body.log-redesign.log-reference .frame-mode-active .lane-condition-row{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:64px;padding:12px 0;margin:0;font-size:15px;line-height:20px;font-weight:650;color:var(--xw-ink);background:transparent}
html.log-page body.log-redesign.log-reference .frame-mode-active .lane-condition-row{border:0;border-bottom:1px solid var(--xw-line);border-radius:0}
html.log-page body.log-redesign.log-reference .frame-mode-active .lane-condition-row select{min-height:64px;padding-right:28px;padding-left:140px}
html.log-page body.log-redesign.log-reference .frame-mode-active .extras>details>summary::after,
html.log-page body.log-redesign.log-reference .frame-mode-active .lane-condition-row::after{content:'';display:block;box-sizing:content-box;flex:none;width:8px;height:8px;margin:0 5px 0 0;border:0;border-right:1.5px solid var(--xw-muted);border-bottom:1.5px solid var(--xw-muted);transform:rotate(-45deg)}
html.log-page body.log-redesign.log-reference .frame-mode-active .lane-condition-row::after{right:0;top:50%;transform:translateY(-50%) rotate(-45deg)}
html.log-page body.log-redesign.log-reference .frame-mode-active .extras>details[open]>summary::after{transform:rotate(45deg);border-color:var(--xw-red)}
html.log-page body.log-redesign.log-reference .frame-mode-active .extras>details>.detail-body{padding:0 0 14px}

/* 4.21: opaque action shelf, independent of disabled button opacity. */
html.log-page body.log-redesign.log-reference .game-screen.frame-mode-active:not(.game-complete):not(.count-entry):not(.strike-paused)::after,
html.log-page body.log-redesign.log-reference .game-screen.frame-mode-active:has(#strike-next:not([hidden]))::after{content:'';position:fixed;z-index:38;left:50%;bottom:calc(var(--xw-nav-height,68px) + var(--xw-nav-safe,0px));transform:translateX(-50%);width:100%;max-width:620px;height:64px;box-sizing:border-box;background:var(--xw-bg,#fff);border-top:1px solid var(--xw-line,#dfe1e4);pointer-events:auto}
html.log-page body.log-redesign.log-reference .frame-mode-active :is(#rack-confirm,#strike-next){box-shadow:none}

/* 4.20: one compact score treatment across both logging methods. */
html.log-page body.log-redesign.log-reference #quick-entry .total,
html.log-page body.log-redesign.log-reference .frame-mode-active:not(.game-complete) #frame-entry .frame-score{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto;align-items:center;gap:10px;min-height:64px;padding:8px 12px;margin:0;text-align:left;box-sizing:border-box}
html.log-page body.log-redesign.log-reference #quick-entry .total label,
html.log-page body.log-redesign.log-reference .frame-mode-active:not(.game-complete) #frame-entry .frame-score>span{grid-column:1;grid-row:1;margin:0;font-size:13px;line-height:18px;font-weight:500;color:var(--xw-muted);text-align:left}
html.log-page body.log-redesign.log-reference #quick-entry .total input,
html.log-page body.log-redesign.log-reference .frame-mode-active:not(.game-complete) #frame-entry .frame-score>strong{grid-column:2;grid-row:1;width:100%;max-width:none;min-width:0;height:48px;min-height:48px;padding:0;margin:0;border:0;background:transparent;color:var(--xw-ink);font-size:40px;line-height:48px;font-weight:700;letter-spacing:-1.5px;text-align:left;font-variant-numeric:tabular-nums}
html.log-page body.log-redesign.log-reference #quick-entry .total input::placeholder{text-align:left}
html.log-page body.log-redesign.log-reference #quick-entry .score-panel{padding:0 0 4px}
html.log-page body.log-redesign.log-reference #quick-entry .score-panel .counters{margin:0 10px}
html.log-page body.log-redesign.log-reference .frame-mode-active:not(.game-complete) #frame-entry .possible-score{grid-column:3;grid-row:1;display:flex;flex-direction:row;align-items:baseline;justify-content:flex-end;gap:5px;padding:0;margin:0;border:0;white-space:nowrap;color:var(--xw-muted)}
html.log-page body.log-redesign.log-reference .frame-mode-active:not(.game-complete) #frame-entry .possible-score span{font-size:12px;line-height:20px}
html.log-page body.log-redesign.log-reference .frame-mode-active:not(.game-complete) #frame-entry .possible-score strong{font-size:18px;line-height:22px;font-weight:600;letter-spacing:0}
html.log-page body.log-redesign.log-reference .frame-mode-active:not(.game-complete) #frame-status:not(:empty){grid-column:1/-1;grid-row:2;margin:0;font-size:12px}

/* Logging's shared surfaces and spacing; lane size and geometry are unchanged. */
html.log-page body.log-redesign #quick-entry .total input:focus::placeholder{color:transparent;opacity:0}
html.log-page body.log-redesign #change-dialog .change-editor-content{padding-inline:20px}
html.log-page body.log-redesign #change-dialog .change-editor-heading{margin:0 0 16px;gap:8px}
html.log-page body.log-redesign #change-dialog #change-title{font-size:20px;line-height:26px;letter-spacing:-.3px}
html.log-page body.log-redesign #change-dialog .change-selection{display:grid;grid-template-columns:minmax(84px,.65fr) minmax(0,1.6fr);align-items:stretch;gap:0;border:1px solid var(--xw-line);border-radius:12px;background:var(--xw-surface);overflow:hidden}
html.log-page body.log-redesign #change-dialog .change-frame-field{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:8px;min-width:0;border-right:1px solid var(--xw-line)}
html.log-page body.log-redesign #change-dialog .change-frame-field label{font-size:12px;line-height:16px;font-weight:400;color:var(--xw-muted);text-align:center;margin:0}
html.log-page body.log-redesign #change-dialog #change-frame{width:100%;height:36px;min-height:36px;padding:4px 8px;text-align:center;font-size:16px;font-weight:650;border:0;background:transparent}
html.log-page body.log-redesign #change-dialog #change-frame-fixed{display:grid;place-items:center;min-height:36px;font-size:16px;font-weight:650}
html.log-page body.log-redesign #change-dialog :is(#change-frame,#change-frame-fixed)[hidden]{display:none}
html.log-page body.log-redesign #change-dialog .change-ball-card{position:relative;display:flex;align-items:center;gap:10px;min-width:0;padding:8px 12px}
html.log-page body.log-redesign #change-dialog #change-ball-photo{width:44px;height:44px;object-fit:contain;flex:none}
html.log-page body.log-redesign #change-dialog .change-ball-card>div{flex:1;min-width:0}
html.log-page body.log-redesign #change-dialog .change-ball-card label{font-size:12px;line-height:16px;font-weight:400;color:var(--xw-muted);margin:0 0 2px}
html.log-page body.log-redesign #change-dialog #change-ball-name{display:block;font-size:14px;line-height:20px;font-weight:650;overflow-wrap:anywhere}
html.log-page body.log-redesign #change-dialog #change-ball{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
html.log-page body.log-redesign #change-dialog .change-ball-card:focus-within{outline:2px solid var(--xw-ink);outline-offset:-2px}
html.log-page body.log-redesign #change-dialog .change-line{border:0;padding:0;margin:16px 0 0}
html.log-page body.log-redesign #change-dialog .change-line>h3{display:none}
html.log-page body.log-redesign #change-dialog .change-lane-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:0;margin:0 0 12px;border:1px solid var(--xw-line);border-radius:10px;overflow:hidden;background:var(--xw-surface)}
html.log-page body.log-redesign #change-dialog .change-lane-toolbar button{border:0;border-radius:0;min-height:44px;font-size:14px;background:transparent}
html.log-page body.log-redesign #change-dialog .change-lane-toolbar button[aria-pressed=true]{background:#b61620;color:#fff;font-weight:700}
html.log-page body.log-redesign #change-dialog .shared-lane-editor{gap:0;background:transparent;border:0;border-radius:0}
html.log-page body.log-redesign #change-dialog #change-reset{justify-self:center;min-height:44px;padding:8px 16px;background:transparent;border:0;color:var(--xw-muted);font-size:14px}
html.log-page body.log-redesign #change-dialog .shared-lane-editor .change-boards{border:1px solid var(--xw-line);border-radius:12px;margin:0;padding:12px 2px}
html.log-page body.log-redesign #change-dialog :is(.lane-landing,#change-history){margin:12px 0 0;border:1px solid var(--xw-line);border-radius:10px;background:var(--xw-surface);padding:0 12px}
html.log-page body.log-redesign #change-dialog :is(.lane-landing,#change-history)>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;min-height:48px;box-sizing:border-box;padding:12px 0;font-size:14px;line-height:20px;font-weight:650;color:var(--xw-ink);cursor:pointer}
html.log-page body.log-redesign #change-dialog .change-explanations{border-top:1px solid var(--xw-line);padding:8px 0}
html.log-page body.log-redesign #change-dialog .change-helper{font-size:13px;line-height:20px;color:var(--xw-muted);margin:6px 0}
html.log-page body.log-redesign #change-dialog .change-preserve{border:0;padding:0;margin:6px 0}
html.log-page body.log-redesign #change-dialog #apply-line{border-radius:10px;min-height:48px;font-size:16px;margin-top:20px}
@media(max-width:359px){html.log-page body.log-redesign #change-dialog .change-editor-content{padding-inline:16px}html.log-page body.log-redesign #change-dialog .change-ball-card{padding:8px;gap:6px}}

html.log-page body.log-redesign #change-dialog :is(.lane-landing,#change-history)>summary::-webkit-details-marker{display:none}
html.log-page body.log-redesign #change-dialog :is(.lane-landing,#change-history)>summary::marker{content:''}
html.log-page body.log-redesign #change-dialog :is(.lane-landing,#change-history)>summary::after{content:'›';display:block;flex:none;font-size:25px;line-height:20px;font-weight:400;color:var(--xw-muted);transform:none}
html.log-page body.log-redesign #change-dialog :is(.lane-landing,#change-history)[open]>summary::after{transform:rotate(90deg)}

/* Centre the label itself as well as its grid cell. */
html.log-page body.log-redesign #change-dialog #change-reset{display:block;justify-self:stretch;width:100%;margin:0;padding:8px 16px;text-align:center}
html.log-page body.log-redesign #change-dialog :is(.lane-landing,#change-history)>summary{position:relative;width:100%;padding-right:24px}
html.log-page body.log-redesign #change-dialog :is(.lane-landing,#change-history)>summary::after{position:absolute;right:0;top:50%;width:16px;text-align:center;transform:translateY(-50%)}
html.log-page body.log-redesign #change-dialog :is(.lane-landing,#change-history)[open]>summary::after{transform:translateY(-50%) rotate(90deg)}

/* 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))}}

/* Canonical Log Game rack: shared by interactive and saved practice racks. */
html body :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack,.practice-rack,#pin-selector,#rack,#pin-rack,.saved-rack){background:transparent!important;background-image:none!important;box-shadow:none!important;border:0!important;border-radius:0!important}
html body :is(.practice-rack,.saved-rack){display:flex!important;flex-direction:column;align-items:stretch;width:100%;max-width:100%;padding:10px 4px 6px!important;margin:0 auto!important;gap:0!important}
html body :is(.practice-rack,.saved-rack)>div{display:flex!important;justify-content:center;align-items:flex-start;gap:8px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0!important}
html body :is(.practice-rack,.saved-rack)>div:last-child{height:76px!important;min-height:76px!important}
html body :is(.practice-rack,.saved-rack) .xw-pin.xw-pin.xw-pin{position:relative;display:inline-grid!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;align-self:flex-start;flex:none}
html body :is(.practice-rack,.saved-rack) .xw-pin.xw-pin.xw-pin img{position:absolute;left:50%;transform:translateX(-50%);top:0!important;width:36px!important;height:76px!important;object-fit:fill!important;max-width:none;filter:none;opacity:1}
html body :is(.practice-rack,.saved-rack) .xw-pin.xw-pin.xw-pin .pin-number{position:absolute;left:50%;transform:translateX(-50%);top:44px!important;bottom:auto!important;width:auto!important;height:20px!important;min-width:0;display:block!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#17191d!important;font:700 16px/20px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;text-shadow:none!important;z-index:1}
html body :is(.practice-rack,.saved-rack) .xw-pin.xw-pin.xw-pin[aria-pressed=true] .pin-number{color:#fff!important;z-index:3}
html body :is(.practice-rack,.saved-rack) .xw-pin.xw-pin.xw-pin:is(:disabled,.down) .pin-number{color:var(--xw-muted)!important;opacity:.65}
html body :is(#frame-pin-rack,#shot-rack,#memory-rack,#remaining-pins,#shot-leave-rack,.practice-rack,#pin-selector,#rack,#pin-rack,.saved-rack)[hidden]{display:none!important}
html body :is(.practice-rack,.saved-rack) .xw-pin.xw-pin.xw-pin[aria-pressed=true] img{filter:grayscale(1)!important}

/* Only the new method selector and scan surface extend the existing logger. */
html.log-page body.log-redesign.log-reference .log-mode{grid-template-columns:repeat(3,minmax(0,1fr))}
#scan-panel{padding:12px 0}
#scan-panel h2{font-size:20px;margin:0 0 8px}
#scan-status,#scan-validation{font-size:14px;line-height:1.5;color:var(--xw-muted);margin:10px 0}
#scan-rows{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;min-width:0}
.scan-row{display:flex;flex-direction:column;gap:8px;width:100%;min-width:0;max-width:100%;text-align:left;padding:10px}
.scan-row img{width:100%;height:auto;max-height:90px;object-fit:contain}
#scan-photo{display:block;width:100%;height:auto;max-height:none;object-fit:contain}
.scan-photo-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 6px}
#scan-photo-title{font-size:14px;font-weight:650;margin:0;color:var(--xw-muted)}
#scan-panel #scan-clear-photo{min-height:44px;padding:8px 0 8px 12px;border:0;background:transparent;color:var(--xw-muted);font-size:14px;font-weight:500;box-shadow:none}
#scan-panel #scan-clear-photo:hover{color:var(--xw-ink)}
#scan-review{padding:12px 0;border-bottom:1px solid var(--xw-line)}
.scan-total-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
#scan-total{width:90px;min-height:44px;text-align:center;font-size:18px}
.scan-confirm{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px}
.scan-confirm input{width:20px;height:20px;flex:none}
.scan-mode-active #scoreboard .scan-check{box-shadow:inset 0 -3px 0 #c87916}
.scan-mode-active .game-complete #frame-entry{display:block}


/* Keep row selection available after importing. */
#scan-row-picker{margin:14px 0}#scan-row-picker[hidden],#scan-clear-photo[hidden],#scan-selected-row[hidden]{display:none}
#scan-rows button[aria-pressed=true]{border:2px solid var(--xw-ink);background:var(--xw-surface)}
#scan-selected-row{margin:12px 0;font-weight:650;color:var(--xw-ink)}

/* Shared frame controls for scanned and manually logged games. */
html.log-page body.log-redesign.log-reference .frame-mode-active .frame-deliveries{position:static;clip-path:none;width:100%;height:auto;overflow:visible;display:flex;gap:4px;margin:8px 0;padding:4px;border:1px solid var(--xw-line);border-radius:11px;background:var(--xw-surface)}
html.log-page body.log-redesign.log-reference .frame-mode-active .frame-deliveries button{display:flex;align-items:center;justify-content:center;gap:10px;flex:1;min-width:0;min-height:44px;margin:0;padding:8px 10px;border:1px solid transparent;border-radius:7px;background:transparent;box-shadow:none;color:var(--xw-muted);font-size:14px;font-weight:600;line-height:20px}
html.log-page body.log-redesign.log-reference .frame-mode-active .frame-deliveries button.selected{background:var(--xw-bg);border-color:var(--xw-line);color:var(--xw-ink);box-shadow:0 1px 3px #0000000d}
html.log-page body.log-redesign.log-reference .frame-mode-active .frame-deliveries .delivery-mark{font-size:16px;font-weight:700;line-height:20px;font-variant-numeric:tabular-nums;min-width:12px}
html.log-page body.log-redesign.log-reference .frame-mode-active .frame-deliveries button.selected .delivery-mark{color:var(--xw-red)}
html.log-page body.log-redesign.log-reference .frame-mode-active .frame-deliveries button:disabled{opacity:.4;cursor:default}
html.log-page body.log-redesign.log-reference .frame-mode-active .frame-deliveries button:focus-visible{outline:2px solid var(--xw-red);outline-offset:1px}
@media(max-width:359px){html.log-page body.log-redesign.log-reference .frame-mode-active .frame-deliveries button{gap:6px;padding-inline:6px}}
html.log-page body.log-redesign.log-reference .frame-mode-active .rack-actions{grid-template-columns:repeat(4,minmax(0,1fr))}
html.log-page body.log-redesign.log-reference .frame-mode-active #rack-split-button{font-size:17px}
#rack-split-button[aria-pressed=true]{outline:2px solid var(--xw-ink);outline-offset:-2px;font-weight:700}
#frame-keypad{display:flex;align-items:center;justify-content:center;gap:12px;margin:12px 0}
#frame-keypad label{font-size:15px;color:var(--xw-ink)}
#frame-pin-count{width:88px;min-height:44px;text-align:center;font-size:22px;color:var(--xw-ink);background:var(--xw-bg);border:1px solid var(--xw-line);border-radius:6px}

/* Photos provide counts, not individual pin identities. */
html.log-page body.log-redesign.log-reference .scan-mode-active #frame-pin-rack,html.log-page body.log-redesign.log-reference .scan-mode-active .rack-heading,html.log-page body.log-redesign.log-reference .scan-mode-active #rack-help,html.log-page body.log-redesign.log-reference .scan-mode-active #rack-ball-used,html.log-page body.log-redesign.log-reference .scan-mode-active #rack-selection-summary{display:none}

#frame-number-buttons{display:none}
html.log-page body.log-redesign.log-reference .scan-mode-active #frame-number-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:8px 0}
html.log-page body.log-redesign.log-reference .scan-mode-active #frame-number-buttons button{min-height:44px;font-size:20px;padding:8px 0}
#frame-number-buttons button[aria-pressed=true]{outline:2px solid var(--xw-ink);outline-offset:-2px}
html.log-page body.log-redesign.log-reference .scan-mode-active #frame-keypad,html.log-page body.log-redesign.log-reference .scan-mode-active #rack-confirm{display:none}
.scan-photo-header h3{flex:1}
#scan-panel #scan-photo-original{min-height:44px;padding:8px 4px;border:0;background:transparent;font-size:14px;color:var(--xw-muted);box-shadow:none}
#scan-photo-original[hidden]{display:none}
#scan-photo{margin-inline:auto}

html.log-page body.log-redesign.log-reference .scan-mode-active .frame-count-controls{display:grid;grid-template-columns:minmax(0,3fr) minmax(64px,1fr);gap:8px;align-items:stretch}
html.log-page body.log-redesign.log-reference .scan-mode-active #frame-number-buttons{margin:0;gap:6px}
html.log-page body.log-redesign.log-reference .scan-mode-active .frame-count-controls .rack-actions{display:grid;grid-template-columns:1fr;grid-template-rows:repeat(4,minmax(36px,1fr));gap:5px;margin:0}
html.log-page body.log-redesign.log-reference .scan-mode-active .frame-count-controls .rack-actions button{min-height:36px;padding:5px 0;grid-column:1}
html.log-page body.log-redesign.log-reference .scan-mode-active .frame-count-controls .rack-actions #rack-confirm{display:none}
#scan-review{margin:12px 0;border:0;padding:10px 0}
.scan-mode-active #scan-photo-wrap{position:sticky;top:0;z-index:4;background:var(--xw-bg);padding-bottom:6px}
.scan-mode-active #scan-photo{max-height:28vh;object-fit:contain}
@media(min-width:900px){.scan-mode-active #scan-photo{max-height:38vh}}

#scan-recover{font-size:14px;min-height:44px;padding:8px 0}
#scan-recover[hidden],#scan-crop-editor[hidden],#scan-crop-selection[hidden]{display:none}
#scan-crop-editor p{font-size:14px;line-height:1.4}
#scan-crop-surface{position:relative;touch-action:none;user-select:none;overflow:hidden}
#scan-crop-photo{display:block;width:100%;height:auto;pointer-events:none}
#scan-crop-selection{position:absolute;border:2px solid var(--xw-ink);background:#8882;pointer-events:none;box-sizing:border-box}
.scan-crop-actions{display:flex;gap:12px;margin:8px 0}
.scan-divider-scroll{overflow-x:auto;border:1px solid var(--xw-border,#ddd);border-radius:12px;margin:12px 0;padding-top:28px;background:var(--xw-bg,#fff)}
.scan-divider-strip{position:relative;min-width:900px;touch-action:pan-x}
.scan-divider-strip>img{display:block;width:100%;min-height:100px;pointer-events:none}
.scan-frame-number{position:absolute;top:-25px;transform:translateX(-50%);font-size:14px;font-weight:700}
.scan-frame-divider{position:absolute!important;top:0;bottom:0;transform:translateX(-50%);width:32px;min-width:32px!important;min-height:100px;padding:0!important;border:0!important;border-radius:0!important;background:linear-gradient(to right,transparent 14px,#fff 14px,#fff 16px,transparent 16px)!important;touch-action:none;cursor:ew-resize;box-shadow:none!important}
.scan-frame-divider:focus-visible{outline:3px solid var(--xw-ink,#b61620);outline-offset:-3px}
.scan-frame-divider::after{content:'↔';position:absolute;bottom:2px;left:3px;background:#fff;color:#161719;border-radius:5px;padding:2px 3px;font-size:16px}

.scan-mode-active #scan-photo-wrap.photo-expanded #scan-photo{max-height:65vh}
.scan-mode-active #scan-photo-wrap.photo-expanded{position:static}

/* Consistent primary score sizing across logging methods. */
html.log-page body.log-redesign.log-reference .total input,
html.log-page body.log-redesign.log-reference .frame-score>strong{font-size:48px;line-height:1.2;font-weight:700;min-height:58px;font-variant-numeric:tabular-nums}
html.log-page body.log-redesign.log-reference .total input{height:58px}
html.log-page body.log-redesign.log-reference #frame-keypad{display:none}
#scan-status:empty{display:none}
html.log-page body.log-redesign.log-reference .count-entry #frame-number-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:8px 0}
html.log-page body.log-redesign.log-reference .count-entry #frame-number-buttons button{min-height:44px;font-size:20px}
html.log-page body.log-redesign.log-reference .count-entry #frame-pin-rack,
html.log-page body.log-redesign.log-reference .count-entry #rack-confirm{display:none}
#scan-align-surface{position:relative;margin:28px 22px;touch-action:none}#scan-align-photo{display:block;width:100%;height:auto}#scan-align-outline{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.scan-corner{position:absolute;transform:translate(-50%,-50%);width:44px;height:44px;min-height:44px;padding:0;border:0;background:transparent;display:grid;place-items:center;touch-action:none}.scan-corner span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#b61620;color:white;border:2px solid white;font-weight:700;box-shadow:0 1px 5px #0005}#scan-align-editor{padding:12px;border:1px solid var(--xw-line);border-radius:12px;margin:12px 0}#scan-align-editor p{font-size:14px;line-height:1.4}#scan-align-message:empty{display:none}#scan-align-read:disabled{opacity:.45}.scan-row-image{overflow-x:auto;width:100%;border-radius:6px}.scan-row .scan-row-image img{width:100%;min-width:480px;max-width:none;height:auto;max-height:none;object-fit:contain}

/* 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)}}

.quick-observations{margin:12px 0;padding:12px 0;border-top:1px solid var(--xw-line,#ddd);border-bottom:1px solid var(--xw-line,#ddd)}

/* 4.14: optional first-ball feedback, using the existing disclosure style. */
html.log-page body.log-redesign #quick-observations{padding:0}
#quick-observations .feedback-toggle{
 display:flex;align-items:center;justify-content:space-between;gap:14px;
 width:100%;min-height:64px;padding:12px 0;border:0;border-radius:0;
 background:transparent;color:var(--xw-ink);text-align:left;font:inherit;
}
.feedback-toggle>span{display:block;min-width:0}
.feedback-toggle strong{display:block;font-size:15px;font-weight:650;line-height:20px}
.feedback-toggle small{display:block;margin-top:3px;font-size:12px;line-height:17px;color:var(--xw-muted);font-weight:400}
.feedback-toggle>i{flex:none;width:8px;height:8px;margin-right:5px;border-right:1.5px solid var(--xw-muted);border-bottom:1.5px solid var(--xw-muted);transform:rotate(-45deg)}
.feedback-toggle[aria-expanded=true]>i{transform:rotate(45deg);border-color:var(--xw-red)}
.feedback-toggle:focus-visible{outline:2px solid var(--xw-red);outline-offset:3px}
#quick-observations .feedback-body{padding:0 0 12px}
#quick-observations .feedback-body[hidden]{display:none!important}
#quick-observations .feedback-help{margin:0 0 10px;font-size:12px;line-height:18px;color:var(--xw-muted)}
.quick-observation-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.quick-observation-heading strong{font-size:14px}.quick-observation-heading>button{border:0;background:none;color:var(--xw-red,#b61620);font:inherit;font-size:13px;min-height:36px;padding:4px 0}
.quick-observation-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:6px}
.quick-observation-row>button{min-width:0;min-height:46px;padding:8px 4px;font:600 13px/1.3 system-ui;border:1px solid var(--xw-line,#ddd);border-radius:8px;background:var(--xw-bg,#fff);color:var(--xw-ink,#17181b)}
.quick-observation-row>button[aria-pressed=true]{border-color:var(--xw-red,#b61620);background:var(--xw-red,#b61620);color:#fff}
#shot-observation-stats{margin:18px 0}#shot-observation-stats h2,#all-pin-leave-cards h2{font-size:22px;line-height:1.3;margin:0 0 14px}.observation-filters{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}.observation-filters select{width:100%;font-size:14px;border:1px solid var(--xw-line);background:var(--xw-bg)}
.observation-card{border:1px solid var(--xw-line);border-radius:12px;padding:16px;margin:12px 0;background:var(--xw-bg)}.observation-card h3{font-size:18px;margin:0 0 14px}.observation-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.observation-results button{display:flex;flex-direction:column;gap:6px;align-items:center;min-width:0;background:transparent;border:0;padding:8px 0;color:var(--xw-ink);font:inherit}.observation-results button:disabled{opacity:1;cursor:default}.observation-results strong{font-size:28px}.observation-results span{font-size:14px}.observation-results small{font-size:12px;color:var(--xw-muted)}.observation-track{display:flex;overflow:hidden;height:8px;background:var(--xw-line);border-radius:6px;margin-bottom:10px}.observation-track .intended{background:#254c73}.observation-track .deviation{background:#b61620}.observation-track .other{background:#858992}.observation-card .sd-note{margin:10px 0 0}
html body .xw-leave-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 8px;width:100%;margin:14px 0 20px}
html body .xw-leave-card{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;padding:12px 5px;border:1px solid var(--xw-line,#ddd);border-radius:12px;background:var(--xw-bg,#fff);color:var(--xw-ink,#17181b);text-align:center;text-decoration:none;box-sizing:border-box}
html body .xw-leave-card>b{font-size:14px;line-height:1.35;min-height:20px;overflow-wrap:anywhere}html body .xw-leave-card>strong{font-size:26px;line-height:1.2}html body .xw-leave-card>span,html body .xw-leave-card>small{font-size:12px;line-height:1.4;color:var(--xw-muted,#69707b)}
.xw-leave-rack{width:100%;margin-bottom:6px}.xw-leave-rack>div{display:flex;justify-content:center;gap:2px;margin:2px 0}.xw-leave-rack i{display:grid;place-items:center;width:17px;height:17px;font:10px/1 system-ui;font-style:normal;border-radius:50%;background:var(--xw-track,#e0e2e6);color:var(--xw-muted,#69707b)}.xw-leave-rack i.standing{background:#b61620;color:#fff}.xw-leave-track{display:block;height:5px;overflow:hidden;border-radius:4px;background:var(--xw-line,#ddd);width:90%;margin:4px 0}.xw-leave-track i{display:block;height:100%;background:#254c73}
html body #pin-performance{display:block}html body #all-pin-leave-cards{width:100%;margin:22px 0}
@media(max-width:359px){.xw-leave-rack i{width:15px;height:15px;font-size:9px}html body .xw-leave-grid{gap:14px 6px}html body .xw-leave-card{padding:10px 3px}.quick-observation-row>button{font-size:12px}.observation-results strong{font-size:25px}}

html body .stats-photo-banner[data-performance]>img{filter:brightness(1.06) contrast(.92) saturate(1.04)!important;object-position:center 48%!important}
html body .stats-photo-banner[data-performance]::before{background:linear-gradient(0deg,rgba(0,0,0,.55),rgba(0,0,0,.12) 45%,transparent 78%)!important}
html body .stats-photo-banner[data-performance=strike]>img{object-position:70% 35%!important}
#shot-line-details[hidden],.detail-quality[hidden],#quick-observations[hidden]{display:none!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}
}

/* Build 5.75: remember which scoreboard row is yours */
#scan-remember{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding:10px 12px;border:1px solid var(--xw-line);border-radius:12px;background:var(--xw-surface);color:var(--xw-ink);font-weight:600}
#scan-remember[hidden]{display:none}
#scan-remember button{min-height:38px;padding:6px 20px;border:0;border-radius:10px;background:var(--xw-red);color:#fff;font-size:16px;font-weight:700}
