/* Rink IQ · lab extras. Uses the app's own tokens (hsl(var(--ice)) etc.), so light and dark themes both work. */
.lx-main { max-width: 1480px; margin: 0 auto; padding: 28px 24px 56px; }
.lx-eyebrow { font: 500 11px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .16em; color: hsl(var(--muted-foreground)); }
.lx-h1 { margin: 6px 0 0; font: 700 26px/1.15 var(--font-display); letter-spacing: -.02em; }
.lx-h3 { margin: 4px 0 0; font: 600 15px/1.3 var(--font-display); letter-spacing: -.01em; }
.lx-h4 { margin: 18px 0 8px; font: 600 13.5px/1.3 var(--font-display); }
.lx-sub { margin-top: 4px; font-size: 13px; color: hsl(var(--muted-foreground)); }
.lx-muted { color: hsl(var(--muted-foreground)); font-size: 13px; line-height: 1.55; margin: 4px 0 0; }
.lx-strong { font: 600 15px/1.3 var(--font-display); }
.lx-hint { display: block; font-size: 12px; color: hsl(var(--muted-foreground)); margin-top: 2px; }
.lx-mono { font-family: var(--font-mono); font-size: 12.5px; }
.lx-pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.lx-pagehead-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* cards */
.lx-card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 12px; }
.lx-card + .lx-card { margin-top: 16px; }
.lx-card-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid hsl(var(--border)); }
.lx-card-foot { padding: 16px 20px 18px; border-top: 1px solid hsl(var(--border)); }
.lx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.lx-kpi { padding: 16px 18px; }
.lx-kpi + .lx-kpi { margin-top: 0; }
.lx-kpi-val { margin-top: 8px; font: 800 30px/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lx-kpi-sub { margin-top: 6px; font: 400 11px/1.4 var(--font-mono); color: hsl(var(--muted-foreground)); }

/* buttons */
.lx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--foreground)); font: 600 13px/1 var(--font-sans); cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
.lx-btn:hover { background: hsl(var(--muted)); }
.lx-btn:focus-visible, .lx-chip:focus-visible, .lx-icon-btn:focus-visible, .lx-menu-item:focus-visible, .lx-notif:focus-visible, .lx-game-row:focus-visible, .lx-roster-row:focus-visible, .lx-tab:focus-visible, .lx-seg-btn:focus-visible, .lx-switch:focus-visible, .lx-line-chip:focus-visible, .lx-playlist-item:focus-visible, .lx-menu-btn:focus-visible, .lx-profile:focus-visible, .lx-bell:focus-visible, .lx-result:focus-visible, .lx-chart-bar:focus-visible { outline: 2px solid hsl(var(--ice)); outline-offset: 2px; }
.lx-btn:disabled { opacity: .45; cursor: default; }
.lx-btn-primary { background: hsl(var(--ice)); border-color: hsl(var(--ice)); color: #fff; }
.lx-btn-primary:hover { background: hsl(200 90% 44%); }
.lx-btn-success { background: hsl(var(--save-green) / .15); border-color: hsl(var(--save-green) / .5); color: hsl(var(--save-green)); }
.lx-btn-ghost { background: transparent; border-color: transparent; color: hsl(var(--foreground)); }
.lx-btn-ghost:hover { background: hsl(var(--muted)); }
.lx-btn-sm { min-height: 32px; padding: 0 10px; font-size: 12.5px; }
.lx-btn-block { width: 100%; }
.lx-icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 8px; background: transparent; color: hsl(var(--muted-foreground)); cursor: pointer; }
.lx-icon-btn:hover { background: hsl(var(--muted)); color: hsl(var(--foreground)); }
.lx-icon-btn:disabled { opacity: .35; cursor: default; }
.lx-added { background: hsl(var(--save-green) / .15); color: hsl(var(--save-green)); border: 1px solid hsl(var(--save-green) / .45); }

/* forms */
.lx-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.lx-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.lx-span2 { grid-column: 1 / -1; }
.lx-field { display: grid; gap: 6px; min-width: 0; }
.lx-label { font: 600 11.5px/1.3 var(--font-sans); color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: .06em; }
.lx-input { width: 100%; min-height: 40px; padding: 8px 12px; border-radius: 8px; border: 1px solid hsl(var(--input)); background: hsl(var(--background)); color: hsl(var(--foreground)); font: 400 14px/1.4 var(--font-sans); }
textarea.lx-input { resize: vertical; min-height: 64px; }
.lx-input:focus { outline: none; border-color: hsl(var(--ice)); box-shadow: 0 0 0 3px hsl(var(--ice) / .18); }
.lx-input[aria-invalid="true"] { border-color: hsl(var(--goal-light)); }
.lx-select-sm { width: auto; min-height: 36px; padding: 6px 10px; font-size: 13px; }
.lx-inline { display: flex; gap: 8px; min-width: 0; }
.lx-inline .lx-input { flex: 1; min-width: 0; }
.lx-error { padding: 9px 12px; border-radius: 8px; background: hsl(var(--goal-light) / .1); color: hsl(var(--goal-light)); font-size: 13px; }
.lx-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.lx-actions-left { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.lx-fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.lx-check-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid hsl(var(--border)); border-radius: 10px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.lx-check-row:hover { background: hsl(var(--muted) / .6); }
.lx-check-row.is-on { border-color: hsl(var(--ice) / .6); background: hsl(var(--ice) / .07); }
.lx-check-row input, .lx-check input { width: 18px; height: 18px; accent-color: hsl(var(--ice)); flex: none; }
.lx-check-text { display: grid; gap: 2px; font-size: 13.5px; }
.lx-check-text small { color: hsl(var(--muted-foreground)); font-size: 12px; }
.lx-check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 13.5px; cursor: pointer; }
.lx-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lx-quick .lx-label { margin-right: 4px; }
.lx-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid hsl(var(--border)); background: hsl(var(--background)); color: hsl(var(--muted-foreground)); font: 500 12.5px/1 var(--font-sans); cursor: pointer; white-space: nowrap; }
.lx-chip:hover { color: hsl(var(--foreground)); border-color: hsl(var(--ice) / .5); }
.lx-chip.is-on { background: hsl(var(--ice) / .14); border-color: hsl(var(--ice)); color: hsl(var(--ice)); }
.lx-seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 10px; background: hsl(var(--muted)); max-width: 100%; }
.lx-seg-btn { min-height: 34px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: hsl(var(--muted-foreground)); font: 600 12.5px/1 var(--font-sans); cursor: pointer; white-space: nowrap; }
.lx-seg-btn.is-on { background: hsl(var(--card)); color: hsl(var(--foreground)); box-shadow: var(--shadow-sm); }
.lx-switch { position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px; border: 0; background: hsl(var(--input)); cursor: pointer; transition: background-color .15s; }
.lx-switch.is-on { background: hsl(var(--ice)); }
.lx-switch-knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .15s; }
.lx-switch.is-on .lx-switch-knob { transform: translateX(18px); }

/* modal */
html.lx-lock { overflow: hidden; }
.lx-overlay { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 16px; background: rgb(6 10 18 / .62); backdrop-filter: blur(4px); animation: lx-fade .15s ease-out; }
.lx-overlay-dark { background: rgb(3 6 12 / .8); }
.lx-modal { min-width: 0; width: min(560px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; border-radius: 14px; border: 1px solid hsl(var(--border)); background: hsl(var(--popover)); color: hsl(var(--popover-foreground)); box-shadow: var(--shadow-2xl); outline: none; animation: lx-pop .18s ease-out; }
.lx-modal-wide { width: min(920px, 100%); }
.lx-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 16px 12px 22px; border-bottom: 1px solid hsl(var(--border)); }
.lx-modal-titles { min-width: 0; padding-top: 2px; }
.lx-modal-title { margin: 4px 0 0; font: 700 19px/1.25 var(--font-display); letter-spacing: -.02em; }
.lx-modal-body { min-width: 0; padding: 18px 22px; overflow-y: auto; overscroll-behavior: contain; }
.lx-modal-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid hsl(var(--border)); }
.lx-foot-note { margin-right: auto; font-size: 12px; color: hsl(var(--muted-foreground)); }
@keyframes lx-fade { from { opacity: 0; } }
@keyframes lx-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .lx-overlay, .lx-modal, .lx-toast { animation: none; } .lx-drill-path { animation: none !important; } }
.lx-done { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 18px 6px 8px; }
.lx-done-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: hsl(var(--save-green) / .15); color: hsl(var(--save-green)); }
.lx-done-title { font: 700 18px/1.25 var(--font-display); }
.lx-done-text { max-width: 420px; margin: 0; font-size: 14px; line-height: 1.55; color: hsl(var(--muted-foreground)); }

/* toasts */
.lx-toasts { position: fixed; left: 50%; bottom: 20px; z-index: 70; display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); transform: translateX(-50%); pointer-events: none; }
.lx-toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 10px; background: hsl(220 25% 12%); color: #f8fafc; font-size: 13.5px; line-height: 1.45; box-shadow: var(--shadow-xl); animation: lx-pop .2s ease-out; }
.lx-toast svg { flex: none; margin-top: 2px; color: hsl(145 60% 55%); }
.lx-toast-info svg { color: hsl(200 90% 65%); }
.dark .lx-toast { background: hsl(0 0% 97%); color: hsl(220 25% 12%); }
.dark .lx-toast svg { color: hsl(145 60% 38%); }

/* header: phone menu button, unread dot, menus */
.lx-menu-btn { display: none; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: hsl(var(--foreground)); cursor: pointer; }
html.lx-all-read .lx-bell > span { display: none; }
.lx-menu-layer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; }
.lx-panel { position: absolute; background: hsl(var(--popover)); color: hsl(var(--popover-foreground)); border: 1px solid hsl(var(--border)); box-shadow: var(--shadow-xl); animation: lx-pop .15s ease-out; }
.lx-panel-pop { top: 8px; right: 16px; width: min(400px, calc(100vw - 24px)); max-height: calc(100% - 24px); overflow-y: auto; border-radius: 12px; }
.lx-panel-profile { width: min(300px, calc(100vw - 24px)); }
.lx-panel-nav { top: 0; left: 0; right: 0; display: grid; padding: 8px 12px 14px; border-width: 0 0 1px; border-radius: 0 0 14px 14px; }
.lx-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 10px 16px; border-bottom: 1px solid hsl(var(--border)); }
.lx-panel-title { font: 700 15px/1.2 var(--font-display); }
.lx-panel-sub { margin-top: 2px; font-size: 12px; color: hsl(var(--muted-foreground)); }
.lx-panel-foot { padding: 6px; border-top: 1px solid hsl(var(--border)); }
.lx-menu-group { padding: 6px; }
.lx-menu-group + .lx-menu-group { border-top: 1px solid hsl(var(--border)); }
.lx-menu-label { padding: 8px 10px 4px; font: 500 10.5px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: hsl(var(--muted-foreground)); }
.lx-menu-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: hsl(var(--foreground)); font: 500 14px/1.2 var(--font-sans); text-align: left; cursor: pointer; }
.lx-menu-item:hover { background: hsl(var(--muted)); }
.lx-menu-item svg { color: hsl(var(--muted-foreground)); flex: none; }
.lx-menu-item.is-active { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.lx-menu-item.is-active svg { color: currentColor; }
.lx-menu-meta { margin-left: auto; font: 500 11px/1 var(--font-mono); color: hsl(var(--muted-foreground)); }
.lx-notif-list { list-style: none; margin: 0; padding: 6px; }
.lx-notif { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.lx-notif:hover { background: hsl(var(--muted)); }
.lx-notif-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.lx-notif.is-unread .lx-notif-icon { background: hsl(var(--ice) / .14); color: hsl(var(--ice)); }
.lx-notif-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.lx-notif-title { font: 600 13.5px/1.35 var(--font-sans); }
.lx-notif-body { font-size: 12.5px; line-height: 1.45; color: hsl(var(--muted-foreground)); }
.lx-notif-when { font: 500 11px/1.4 var(--font-mono); color: hsl(var(--muted-foreground)); }
.lx-dot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: hsl(var(--goal-light)); }

/* games */
.lx-chart-card { overflow: hidden; }
.lx-chart-scroll { padding: 10px 16px 14px; overflow-x: auto; }
.lx-chart-box { min-width: 520px; }
.lx-chart { display: block; }
.lx-chart-grid { stroke: hsl(var(--border)); stroke-dasharray: 2 4; }
.lx-chart-axis { font: 500 11px var(--font-mono); fill: hsl(var(--muted-foreground)); }
.lx-chart-val { font: 700 11px var(--font-mono); fill: hsl(var(--foreground)); }
.lx-chart-bar { cursor: pointer; outline: none; }
.lx-chart-bar:hover rect { opacity: .8; }
.lx-grade-a-fill { fill: hsl(var(--ice)); background: hsl(var(--ice)); }
.lx-grade-b-fill { fill: hsl(var(--save-green)); background: hsl(var(--save-green)); }
.lx-grade-c-fill { fill: hsl(var(--rebound-yellow)); background: hsl(var(--rebound-yellow)); }
.lx-legend { display: flex; align-items: center; gap: 6px; font: 500 11px var(--font-mono); color: hsl(var(--muted-foreground)); }
.lx-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 6px; }
.lx-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid hsl(var(--border)); }
.lx-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.lx-toolbar-right { display: flex; gap: 8px; flex-wrap: wrap; }
.lx-search { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 1px solid hsl(var(--input)); border-radius: 8px; background: hsl(var(--background)); color: hsl(var(--muted-foreground)); }
.lx-search:focus-within { border-color: hsl(var(--ice)); box-shadow: 0 0 0 3px hsl(var(--ice) / .18); }
.lx-search input { width: 200px; min-width: 0; border: 0; outline: none; background: transparent; color: hsl(var(--foreground)); font: 400 13.5px var(--font-sans); }
.lx-games-head, .lx-game-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) 86px 90px 100px 64px 24px; align-items: center; gap: 12px; padding: 0 20px; }
.lx-games-head { min-height: 38px; font: 500 10.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: hsl(var(--muted-foreground)); border-bottom: 1px solid hsl(var(--border)); }
.lx-game-row { min-height: 64px; color: inherit; text-decoration: none; border-bottom: 1px solid hsl(var(--border)); transition: background-color .12s; }
.lx-game-row:last-child { border-bottom: 0; }
.lx-game-row:hover { background: hsl(var(--muted) / .6); }
.lx-game-date { font: 500 12px var(--font-mono); color: hsl(var(--muted-foreground)); text-transform: uppercase; }
.lx-game-opp { display: grid; gap: 2px; min-width: 0; }
.lx-game-opp b { font: 600 14.5px/1.3 var(--font-display); }
.lx-game-opp small { font-size: 12px; color: hsl(var(--muted-foreground)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-game-res { font: 700 12.5px var(--font-mono); }
.lx-win { color: hsl(var(--save-green)); } .lx-loss { color: hsl(var(--goal-light)); } .lx-tie { color: hsl(var(--muted-foreground)); }
.lx-game-num { font: 600 13px var(--font-mono); font-variant-numeric: tabular-nums; }
.lx-game-num small { font-weight: 400; color: hsl(var(--muted-foreground)); }
.lx-game-go { color: hsl(var(--muted-foreground)); display: grid; place-items: center; }
.lx-grade { display: inline-grid; place-items: center; min-width: 34px; padding: 3px 8px; border-radius: 6px; font: 700 12px/1.2 var(--font-mono); }
.lx-grade-a { background: hsl(var(--ice) / .15); color: hsl(var(--ice)); }
.lx-grade-b { background: hsl(var(--save-green) / .15); color: hsl(var(--save-green)); }
.lx-grade-c { background: hsl(var(--rebound-yellow) / .22); color: hsl(var(--foreground)); }
.lx-empty { display: grid; justify-items: center; gap: 6px; padding: 40px 16px; text-align: center; }
.lx-empty b { font: 600 15px var(--font-display); }
.lx-empty p { margin: 0 0 8px; font-size: 13px; color: hsl(var(--muted-foreground)); }

/* rows (settings, added insights) */
.lx-rows { list-style: none; margin: 10px 0 0; padding: 0; }
.lx-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid hsl(var(--border)); }
.lx-row:first-child { border-top: 0; }
.lx-row-main { display: grid; gap: 2px; min-width: 0; flex: 1; }
.lx-row-main b { font: 600 14px/1.3 var(--font-sans); }
.lx-row-main small { font-size: 12.5px; color: hsl(var(--muted-foreground)); line-height: 1.4; }
.lx-avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, hsl(var(--ice)), hsl(var(--goal-light))); color: #fff; font: 700 12px var(--font-sans); }
.lx-sev { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 7px; font: 700 10.5px var(--font-mono); }
.lx-sev-high { background: hsl(var(--goal-light) / .15); color: hsl(var(--goal-light)); }
.lx-sev-med { background: hsl(var(--rebound-yellow) / .22); }
.lx-sev-low { background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.lx-added-card .lx-rows { margin: 0; padding: 4px 20px 8px; }
.lx-tag { display: inline-flex; align-items: center; width: fit-content; padding: 3px 8px; border-radius: 6px; font: 600 10.5px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); white-space: nowrap; }
.lx-tag-ok { background: hsl(var(--save-green) / .15); color: hsl(var(--save-green)); }
.lx-tag-wait, .lx-tag-skills { background: hsl(var(--rebound-yellow) / .22); color: hsl(var(--foreground)); }
.lx-tag-game { background: hsl(var(--goal-light) / .14); color: hsl(var(--goal-light)); }
.lx-tag-practice { background: hsl(var(--ice) / .14); color: hsl(var(--ice)); }
.lx-note { padding: 12px 14px; border-radius: 10px; background: hsl(var(--muted)); font-size: 13px; line-height: 1.5; color: hsl(var(--muted-foreground)); }
.lx-note b { color: hsl(var(--foreground)); }
.lx-note-ice { background: hsl(var(--ice) / .09); }

/* roster */
.lx-tabs { display: flex; gap: 4px; margin: -4px 0 16px; border-bottom: 1px solid hsl(var(--border)); overflow-x: auto; scrollbar-width: none; }
.lx-tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; color: hsl(var(--muted-foreground)); font: 600 13.5px var(--font-sans); text-decoration: none; white-space: nowrap; }
.lx-tab:hover { color: hsl(var(--foreground)); }
.lx-tab.is-on { color: hsl(var(--ice)); border-bottom-color: hsl(var(--ice)); }
.lx-roster { padding: 6px 0 10px; }
.lx-roster-label { padding: 14px 20px 6px; font: 500 10.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: hsl(var(--muted-foreground)); }
.lx-roster-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) repeat(4, 76px) 24px; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 6px 20px; border: 0; border-top: 1px solid hsl(var(--border)); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.lx-roster-row:hover { background: hsl(var(--muted) / .6); }
.lx-roster-row.is-me { background: hsl(var(--ice) / .07); }
.lx-roster-num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: hsl(var(--muted)); font: 700 14px var(--font-mono); }
.lx-roster-row.is-me .lx-roster-num { background: hsl(var(--ice)); color: #fff; }
.lx-roster-name { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 2px; min-width: 0; }
.lx-roster-name b { font: 600 14.5px/1.3 var(--font-display); }
.lx-roster-name small { flex-basis: 100%; font-size: 12px; color: hsl(var(--muted-foreground)); }
.lx-you { padding: 2px 7px; border-radius: 999px; background: hsl(var(--ice) / .15); color: hsl(var(--ice)); font: 600 10.5px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.lx-roster-stat { display: grid; justify-items: end; gap: 2px; font: 600 14px var(--font-mono); font-variant-numeric: tabular-nums; }
.lx-roster-stat small { font: 500 10px var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: hsl(var(--muted-foreground)); }
.lx-statline { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 8px; }
.lx-statline div { display: grid; gap: 4px; padding: 12px; border-radius: 10px; background: hsl(var(--muted)); text-align: center; }
.lx-statline b { font: 800 22px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.lx-statline span { font: 500 10.5px var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: hsl(var(--muted-foreground)); }
.lx-lines { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.lx-lines .lx-card + .lx-card { margin-top: 0; }
.lx-lines-side { display: grid; gap: 16px; }
.lx-line { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid hsl(var(--border)); }
.lx-line:first-of-type { border-top: 0; }
.lx-line-label { flex: none; width: 30px; font: 700 12px var(--font-mono); color: hsl(var(--muted-foreground)); }
.lx-line-chips { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; flex: 1; min-width: 0; }
.lx-line-chip { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px; border: 1px solid hsl(var(--border)); border-radius: 10px; background: hsl(var(--background)); color: inherit; text-align: left; cursor: pointer; min-width: 0; }
.lx-line-chip:hover { border-color: hsl(var(--ice) / .6); }
.lx-line-chip.is-me { border-color: hsl(var(--ice)); background: hsl(var(--ice) / .08); }
.lx-line-chip span:last-child { display: grid; min-width: 0; }
.lx-line-chip b { font: 600 13px/1.25 var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-line-chip small { font: 500 10.5px var(--font-mono); color: hsl(var(--muted-foreground)); }
.lx-line-num { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: hsl(var(--muted)); font: 700 12px var(--font-mono); }
.lx-line-chip.is-me .lx-line-num { background: hsl(var(--ice)); color: #fff; }
.lx-sched { list-style: none; margin: 0; padding: 0; }
.lx-sched-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 20px; border-top: 1px solid hsl(var(--border)); }
.lx-sched-row:first-child { border-top: 0; }
.lx-sched-date { display: grid; justify-items: center; gap: 1px; padding: 8px 4px; border-radius: 10px; background: hsl(var(--muted)); }
.lx-sched-date span, .lx-sched-date small { font: 500 10.5px var(--font-mono); text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.lx-sched-date b { font: 800 22px/1 var(--font-display); }
.lx-sched-main { display: grid; gap: 4px; min-width: 0; }
.lx-sched-main b { font: 600 15px/1.3 var(--font-display); }
.lx-sched-main small { font-size: 12.5px; color: hsl(var(--muted-foreground)); }
.lx-sched-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.lx-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.lx-result { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border: 1px solid hsl(var(--border)); border-radius: 10px; color: inherit; text-decoration: none; font-size: 13.5px; font-weight: 600; }
.lx-result:hover { border-color: hsl(var(--ice) / .6); }
.lx-result small { margin-left: auto; font: 500 11px var(--font-mono); color: hsl(var(--muted-foreground)); text-transform: uppercase; }
.lx-result svg { color: hsl(var(--muted-foreground)); flex: none; }

/* settings */
.lx-settings { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
.lx-settings > * { min-width: 0; }
@media (min-width: 1280px) { .lx-settings-body { display: block; columns: 2; column-gap: 16px; max-width: none; } .lx-settings-body .lx-set { break-inside: avoid; margin: 0 0 16px; display: inline-block; width: 100%; } }
.lx-settings-nav { position: sticky; top: calc(var(--lab-bar-h, 0px) + 76px); display: grid; gap: 2px; }
.lx-settings-nav a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 8px; color: hsl(var(--muted-foreground)); font: 500 13.5px var(--font-sans); text-decoration: none; }
.lx-settings-nav a:hover { background: hsl(var(--muted)); color: hsl(var(--foreground)); }
.lx-settings-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 860px; }
.lx-settings-body .lx-card + .lx-card { margin-top: 0; }
.lx-set { padding: 20px 22px; scroll-margin-top: calc(var(--lab-bar-h, 0px) + 76px); }
.lx-set > .lx-muted { margin-bottom: 12px; }
.lx-set .lx-grid2 { margin-top: 12px; }
.lx-addplayer { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; margin-top: 12px; padding-top: 14px; border-top: 1px solid hsl(var(--border)); }
.lx-addplayer .lx-actions-left { grid-column: 1 / -1; margin-top: 0; }
.lx-invite { margin-top: 12px; padding-top: 14px; border-top: 1px solid hsl(var(--border)); display: grid; gap: 8px; max-width: 520px; }

/* share link etc. */
.lx-film-qr { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 20px; align-items: center; }
.lx-qr { display: grid; grid-template-columns: repeat(9, 1fr); gap: 2px; width: 148px; height: 148px; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid hsl(var(--border)); }
.lx-qr span { border-radius: 2px; background: #fff; }
.lx-qr span.on { background: #0f172a; }
.lx-live { position: relative; overflow: hidden; border-radius: 12px; background: #0a0f1a; aspect-ratio: 1000 / 425; }
.lx-live svg { display: block; width: 100%; height: 100%; }
.lx-rec { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; background: rgb(0 0 0 / .6); color: #fff; font: 600 11px var(--font-mono); letter-spacing: .06em; }
.lx-rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: lx-blink 1s steps(2) infinite; }
@keyframes lx-blink { 50% { opacity: .2; } }
.lx-film-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lx-film-stats div { display: grid; gap: 3px; padding: 10px 12px; border-radius: 10px; background: hsl(var(--muted)); }
.lx-film-stats b { font: 800 22px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.lx-film-stats span { font: 500 10.5px var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: hsl(var(--muted-foreground)); }

/* clip player */
.lx-clip { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; }
.lx-clip-screen { position: relative; overflow: hidden; border-radius: 12px; background: #0a0f1a; aspect-ratio: 445 / 425; max-height: 56vh; margin: 0 auto; }
.lx-clip-screen svg { display: block; width: 100%; height: 100%; }
.lx-clip-tag, .lx-clip-time { position: absolute; top: 10px; padding: 4px 8px; border-radius: 6px; background: rgb(0 0 0 / .62); color: #fff; font: 600 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.lx-clip-tag { left: 10px; } .lx-clip-time { right: 10px; }
.lx-clip-controls { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.lx-play { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: hsl(var(--ice)); color: #fff; cursor: pointer; }
.lx-range { flex: 1; min-width: 60px; height: 32px; accent-color: hsl(var(--ice)); }
.lx-clip-clock { font: 600 12px var(--font-mono); color: hsl(var(--muted-foreground)); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lx-speed { min-width: 48px; min-height: 36px; border: 1px solid hsl(var(--border)); border-radius: 8px; background: transparent; color: hsl(var(--foreground)); font: 600 12px var(--font-mono); cursor: pointer; }
.lx-clip-note { margin: 12px 0 0; font-size: 13.5px; line-height: 1.55; }
.lx-clip-disclaimer { margin: 6px 0 0; font: 500 11px/1.5 var(--font-mono); color: hsl(var(--muted-foreground)); }
.lx-playlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.lx-playlist-item { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 10px; border: 1px solid hsl(var(--border)); border-radius: 10px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.lx-playlist-item:hover { border-color: hsl(var(--ice) / .5); }
.lx-playlist-item.is-active { border-color: hsl(var(--ice)); background: hsl(var(--ice) / .1); }
.lx-playlist-item span:last-child { display: grid; gap: 3px; }
.lx-playlist-item b { font: 600 13px/1.35 var(--font-sans); }
.lx-playlist-item small { font: 500 11px var(--font-mono); color: hsl(var(--muted-foreground)); }
.lx-playlist-num { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 7px; background: hsl(var(--muted)); font: 700 12px var(--font-mono); }
.lx-playlist-item.is-active .lx-playlist-num { background: hsl(var(--ice)); color: #fff; }

/* drill detail */
.lx-drill { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.lx-drill-diagram { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid hsl(var(--border)); aspect-ratio: 445 / 425; align-self: start; }
.lx-drill-diagram svg { display: block; width: 100%; height: 100%; }
.lx-drill-path { animation: lx-dash 1.2s linear infinite; }
@keyframes lx-dash { to { stroke-dashoffset: -28; } }
.lx-drill-legend { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; background: rgb(0 0 0 / .6); color: #fff; font: 500 11px var(--font-mono); }
.lx-cone { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid #f97316; margin-left: 4px; }
.lx-skater { width: 9px; height: 9px; border-radius: 50%; background: hsl(var(--ice)); margin-left: 8px; }
.lx-drill-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.lx-drill-meta div { display: grid; gap: 3px; padding: 10px 12px; border-radius: 10px; background: hsl(var(--muted)); }
.lx-drill-meta span { font: 500 10.5px var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: hsl(var(--muted-foreground)); }
.lx-drill-meta b { font: 600 13px/1.35 var(--font-sans); }
.lx-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.5; }
.lx-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.45; }
.lx-points li { display: flex; gap: 8px; }
.lx-points svg { flex: none; margin-top: 3px; color: hsl(var(--save-green)); }

/* print sheet */
.lx-sheet { padding: 26px 28px; border-radius: 10px; background: #fff; color: #0f172a; box-shadow: inset 0 0 0 1px #e2e8f0; font-size: 12.5px; }
.lx-sheet .lx-eyebrow { color: #64748b; }
.lx-sheet h3 { margin: 6px 0 2px; font: 700 20px/1.2 var(--font-display); letter-spacing: -.02em; }
.lx-sheet h4 { margin: 18px 0 8px; font: 700 13px var(--font-display); }
.lx-sheet p { margin: 0; color: #475569; line-height: 1.5; }
.lx-sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid #0f172a; }
.lx-sheet .lx-grade { font-size: 15px; padding: 8px 12px; }
.lx-sheet .lx-grade-a { background: #e0f2fe; color: #0369a1; } .lx-sheet .lx-grade-b { background: #dcfce7; color: #15803d; }
.lx-sheet-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.lx-sheet-kpi { display: grid; gap: 2px; padding: 10px; border-radius: 8px; background: #f1f5f9; }
.lx-sheet-kpi b { font: 800 18px/1.1 var(--font-display); }
.lx-sheet-kpi span { font: 500 10px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: #64748b; }
.lx-table-wrap { overflow-x: auto; max-width: 100%; }
.lx-table td:last-child { min-width: 160px; }
.lx-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.lx-table th { text-align: left; padding: 6px 8px; font: 600 10px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: #64748b; border-bottom: 1px solid #cbd5e1; white-space: nowrap; }
.lx-table td { padding: 7px 8px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.lx-table-tight td { padding: 4px 8px; }
.lx-sheet-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; line-height: 1.5; color: #334155; }
.lx-sheet-block { margin-top: 4px; }
.lx-sheet-checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.lx-sheet-checks li { display: flex; align-items: center; gap: 8px; }
.lx-box { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1.5px solid #334155; border-radius: 3px; font-size: 11px; font-weight: 700; }
.lx-box.is-on { background: #0f172a; color: #fff; }
.lx-sheet-note { margin-top: 16px !important; padding: 10px 12px; border-left: 3px solid #0ea5e9; background: #f0f9ff; }
.lx-sheet-foot { margin-top: 20px; padding-top: 10px; border-top: 1px solid #e2e8f0; font: 500 10px var(--font-mono); color: #94a3b8; }
@media print {
  html.lx-printing body * { visibility: hidden !important; }
  html.lx-printing .lx-sheet, html.lx-printing .lx-sheet * { visibility: visible !important; }
  html.lx-printing .lx-sheet { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; padding: 0; }
  html.lx-printing .lx-overlay { position: absolute; background: none; backdrop-filter: none; }
  html.lx-printing .lx-modal { box-shadow: none; border: 0; max-height: none; }
  html.lx-printing .lx-modal-body { overflow: visible; }
  .lab-bar { display: none !important; }
}

/* landing: row 12 phone */
#root div.relative:has(> .lx-r12) { aspect-ratio: auto !important; }
.lx-r12 { position: relative; z-index: 1; display: grid; place-items: center; align-content: center; gap: 14px; min-height: 560px; padding: 32px 20px 64px; }
.lx-r12-note { display: flex; align-items: center; gap: 10px; width: min(300px, 92%); padding: 10px 12px; border-radius: 14px; background: rgb(255 255 255 / .9); color: #0f172a; box-shadow: 0 10px 30px rgb(2 8 23 / .25); backdrop-filter: blur(6px); transform: translateX(18px); }
.lx-r12-note span:last-child { display: grid; gap: 1px; font-size: 12px; line-height: 1.35; }
.lx-r12-note b { font-size: 11px; font-weight: 700; color: #334155; }
.lx-r12-bell { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: hsl(200 90% 50%); color: #fff; }
.lx-r12-phone { position: relative; width: min(236px, 70%); padding: 10px; border-radius: 34px; background: #0b1220; box-shadow: 0 30px 60px -20px rgb(2 8 23 / .6), inset 0 0 0 2px rgb(255 255 255 / .08); }
.lx-r12-notch { position: absolute; top: 14px; left: 50%; width: 64px; height: 16px; border-radius: 10px; background: #0b1220; transform: translateX(-50%); z-index: 1; }
.lx-r12-screen { display: grid; gap: 8px; padding: 34px 14px 16px; border-radius: 26px; background: #f8fafc; color: #0f172a; }
.lx-r12-eyebrow { font: 600 9.5px var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: #64748b; }
.lx-r12-title { font: 700 16px/1.15 var(--font-display); letter-spacing: -.02em; }
.lx-r12-meta { font: 500 10.5px var(--font-mono); color: #16a34a; margin-top: -4px; }
.lx-r12-grade { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: #e0f2fe; }
.lx-r12-grade b { font: 800 26px/1 var(--font-display); color: #0284c7; }
.lx-r12-grade span { font-size: 11px; color: #0369a1; line-height: 1.3; }
.lx-r12-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid #e2e8f0; font-size: 11px; line-height: 1.3; }
.lx-r12-num { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 6px; background: #e2e8f0; font: 700 10px var(--font-mono); }
.lx-r12-txt { flex: 1; min-width: 0; color: #334155; }
.lx-r12-row .lx-grade { min-width: 28px; padding: 2px 6px; font-size: 10px; }
.lx-r12-row .lx-grade-a { background: #e0f2fe; color: #0369a1; } .lx-r12-row .lx-grade-b { background: #dcfce7; color: #15803d; } .lx-r12-row .lx-grade-c { background: #fef3c7; color: #92400e; }
.lx-r12-plan { display: grid; gap: 2px; padding: 9px 10px; border-radius: 10px; background: #0f172a; color: #fff; font-size: 11.5px; line-height: 1.35; }
.lx-r12-plan small { font: 600 9px var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: #7dd3fc; }
.lx-r12-caption { padding: 5px 12px; border-radius: 999px; background: rgb(15 23 42 / .78); font: 600 10px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: #fff; text-align: center; }

/* ---------------------------------------------------------------- existing app: responsive and touch fixes */
/* dev plan: the AI coach panel only needs to fill the screen when it sits beside the plan */
@media (max-width: 1023px) {
  #root aside .sticky.top-20 { position: static !important; height: 560px !important; }
}
@media (max-width: 899px) {
  #root header.sticky nav { display: none !important; }
  .lx-menu-btn { display: grid; }
}
@media (max-width: 1100px) {
  .lx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-games-head { display: none; }
  .lx-game-row { grid-template-columns: 74px minmax(0, 1fr) auto auto 20px; padding: 12px 16px; row-gap: 4px; }
  .lx-game-row > .lx-game-num { display: none; }
  .lx-roster-row { grid-template-columns: 44px minmax(0, 1fr) repeat(2, 64px) 20px; }
  .lx-roster-row > .lx-roster-stat:nth-of-type(2), .lx-roster-row > .lx-roster-stat:nth-of-type(4) { display: none; }
  .lx-lines { grid-template-columns: 1fr; }
  .lx-clip { grid-template-columns: 1fr; }
  .lx-playlist { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 760px) {
  .lx-settings { grid-template-columns: minmax(0, 1fr); }
  .lx-settings-nav { position: static; display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; margin: -6px 0 0; }
  .lx-settings-nav a { flex: none; border: 1px solid hsl(var(--border)); }
  .lx-drill { grid-template-columns: 1fr; }
  .lx-drill-diagram { max-width: 420px; width: 100%; justify-self: center; }
  .lx-results { grid-template-columns: 1fr; }
  .lx-sched-row { grid-template-columns: 56px minmax(0, 1fr); }
  .lx-sched-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .lx-sheet-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .lx-main, #root main.mx-auto { padding-left: 16px !important; padding-right: 16px !important; }
  #root header.sticky > div { padding-left: 12px !important; padding-right: 8px !important; gap: 2px !important; }
  #root header.sticky > div > a[data-testid="link-home"] { margin-right: 4px !important; }
  .lx-profile > span { display: none; }
  .lx-h1 { font-size: 23px; }
  .lx-pagehead-actions, .lx-pagehead-actions .lx-btn { width: 100%; }
  .lx-grid2, .lx-addplayer { grid-template-columns: minmax(0, 1fr); }
  .lx-kpi-val { font-size: 24px; }
  .lx-toolbar-right, .lx-search { width: 100%; }
  .lx-search { flex: 1; }
  .lx-search input { width: 100%; }
  .lx-film-qr { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .lx-game-row { grid-template-columns: minmax(0, 1fr) auto auto; padding: 12px 14px; }
  .lx-game-row > .lx-game-date { grid-column: 1 / -1; font-size: 11px; }
  .lx-game-row > .lx-game-go { display: none; }
  .lx-roster-row { grid-template-columns: 40px minmax(0, 1fr) 56px 18px; padding: 8px 14px; gap: 10px; }
  .lx-roster-row > .lx-roster-stat:nth-of-type(1) { display: none; }
  .lx-line { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 14px; }
  .lx-line-chips { grid-template-columns: 1fr; }
  #root main h1 + div.flex { flex-wrap: wrap; row-gap: 2px; }
  #root main h1 > span.font-mono { display: inline-block; white-space: nowrap; }
  #root main div.justify-between.px-5 > span.font-mono { display: none; }
  .lx-modal-head { padding: 14px 12px 10px 16px; }
  .lx-modal-body { padding: 16px; }
  .lx-modal-foot { padding: 12px 16px; }
  .lx-overlay { padding: 8px; align-items: end; }
  .lx-modal { max-height: calc(100dvh - 16px); }
  .lx-sheet { padding: 16px; }
  .lx-table { min-width: 560px; }
  .lx-sheet-head { flex-direction: column; }
  .lx-clip-controls { flex-wrap: wrap; }
  .lx-range { order: 5; flex-basis: 100%; }
  .lx-foot-note { flex-basis: 100%; }
  .lx-panel-pop { right: 12px; }
  .lx-toasts { top: calc(var(--lab-bar-h, 0px) + 8px); bottom: auto; }

  /* touch targets on phones */
  .lx-btn, .lx-chip, .lx-seg-btn, .lx-select-sm, .lx-search, .lx-input, .lx-icon-btn, .lx-menu-btn, .lx-speed, .lx-settings-nav a { min-height: 44px; }
  .lx-icon-btn, .lx-menu-btn { width: 44px; height: 44px; }
  .lx-switch { width: 52px; height: 32px; }
  .lx-switch-knob { width: 26px; height: 26px; }
  .lx-switch.is-on .lx-switch-knob { transform: translateX(20px); }
  #root header.sticky button, #root header.sticky a[data-testid="link-home"] { min-height: 44px; min-width: 44px; display: inline-grid; place-items: center; }
  #root header.sticky .lx-profile { display: inline-flex; padding: 0 6px; }
  #root header.sticky a.inline-flex { min-height: 44px; }
  .lx-btn { min-width: 44px; }
  .lx-search input { align-self: stretch; }
  .lx-input, .lx-search input { font-size: 16px; }
  #root main button.grid.h-9.w-9 { min-width: 44px; }
  #root main input[data-testid="input-chat"] { min-height: 44px; font-size: 16px; }
  #root main button:not(.lx-roster-row):not(.lx-line-chip), #root main a.inline-flex, #root main [role="tablist"] button { min-height: 44px; }
  #root main label.cursor-pointer { min-height: 44px; }
  #root main input[type="range"] { height: 44px; }
  #root a[data-testid="link-all-games"], #root a[data-testid="link-coach-note"], #root a[data-testid^="feature-cta-"] { display: inline-flex; align-items: center; min-height: 44px; }
  #root main button.lx-added, #root main [data-testid="button-goalie-add-drill"] { min-height: 44px; }

  /* dashboard: recent games rows fit a phone */
  #root a[data-testid^="row-game-"] { grid-template-columns: 56px minmax(0, 1fr) auto !important; gap: 4px 12px !important; padding: 12px 14px !important; }
  #root a[data-testid^="row-game-"] > div:first-child { width: 56px !important; height: 44px !important; grid-row: span 2; }
  #root a[data-testid^="row-game-"] > :nth-child(3) { grid-column: 3; grid-row: 1; justify-self: end; }
  #root a[data-testid^="row-game-"] > :nth-child(4) { grid-column: 3; grid-row: 2; justify-self: end; }
  #root a[data-testid^="row-game-"] > svg { display: none; }
  /* game report: insight rows put the button under the text */
  #root ul.divide-y > li.flex.items-start { flex-wrap: wrap; padding-left: 16px; padding-right: 16px; }
  #root ul.divide-y > li.flex.items-start > button { margin-left: 44px; }
  #root ul.divide-y > li.flex.items-start > div.min-w-0 { flex-basis: calc(100% - 44px); }
}
@media (max-width: 380px) {
  .lx-kpis { gap: 8px; }
  .lx-kpi { padding: 12px 14px; }
  .lx-film-stats b { font-size: 18px; }
}
@media (min-width: 1700px) {
  .lx-main { padding-top: 34px; }
}
