* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html { scroll-padding-top: calc(var(--bar-h, 4.5rem) + .5rem); scroll-padding-bottom: calc(var(--ab-h, 0px) + .5rem); }
@supports (-webkit-touch-callout: none) {
  html { font: -apple-system-body; }
}
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-synthesis-weight: none;
  font-feature-settings: 'cv11' 1, 'ss03' 1;
  font-variant-numeric: tabular-nums;
  overscroll-behavior-y: none;
}
h1,h2,h3,h4 { margin: 0; font-weight: 600; letter-spacing: -.025em; }
b { font-weight: 700; }
.noscript-h1 { margin: 0 0 .5rem; font-size: var(--fs-title); letter-spacing: -.03em; color: var(--ink); }
.noscript-lede { margin: 0 0 .9rem; }
.noscript-note { margin: 0; }
.today-h1 { font-size: var(--fs-large); letter-spacing: -.042em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; border: 0; background: none; cursor: pointer; }
summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; }
:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-ring-offset); border-radius: var(--r-xs); }
[data-noring]:focus-visible { outline: none; }
::selection { background: var(--accent-soft); }


.press { transition: transform var(--t-tap) var(--ease), background var(--t-fast) var(--ease),
                     border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
                     box-shadow var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease); }
.press:active { transform: scale(.965); }
.i { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.i svg { display: block; }
.gm-x .i svg, .gm-nav .i svg { width: 1.15em; height: 1.15em; }
.btn .i svg { width: 1.02em; height: 1.02em; }

.bar {
  position: sticky; top: 0; z-index: var(--z-bar);
  display: flex; align-items: center; gap: .8rem;
  padding: .6rem clamp(.85rem, 2.6vw, 1.5rem);
  padding-top: calc(.6rem + env(safe-area-inset-top));
}
.bar::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(var(--bg), var(--bg));
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  mask-image: linear-gradient(to bottom, black 0%, black 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 75%, transparent 100%);
}
.spacer { flex: 1; }

.seg { display: inline-flex; padding: 2px; gap: 2px; background: var(--seg-track); border-radius: var(--r-seg); }
.seg button { min-height: 2rem; padding: .36rem 1rem; border-radius: 7px; font-size: var(--fs-secondary);
  font-weight: 500; color: var(--ink); position: relative; }
.seg button::after { content: ''; position: absolute; left: 0; right: 0; top: 50%;
  height: 48px; transform: translateY(-50%); z-index: 1; }
@media (hover: hover) { .seg button:not(.on):not([aria-selected="true"]):hover { background: color-mix(in srgb, var(--ink) 6%, transparent); } }
.seg button.on, .seg button[aria-selected="true"] {
  background: var(--seg-on); color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 600;
}
.seg.wide { display: flex; width: 100%; padding: 2px; }
.seg.wide button { flex: 1; padding: .36rem .3rem; font-size: var(--fs-secondary); }
#viewSeg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  max-width: 100%; margin-top: 1rem; margin-bottom: .625rem; }
#viewSeg button { min-width: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .55rem 1.05rem; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--surface); font-size: var(--fs-secondary); font-weight: 600; white-space: nowrap;
}
@media (hover: hover) { .btn:hover { background: var(--surface-2); border-color: var(--muted); } }
.btn.primary { background: var(--tint); border-color: transparent; color: var(--tint-ink); box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 6px 16px -8px rgba(0,0,0,.24); }
@media (hover: hover) { .btn.primary:hover { background: var(--tint-2); } }
.btn.ghost { background: none; border-color: transparent; color: var(--ink-2); }
@media (hover: hover) { .btn.ghost:hover { background: var(--surface-2); } }
.btn.danger { background: var(--err); border-color: transparent; color: var(--on-err); }
@media (hover: hover) { .btn.danger:hover { background: color-mix(in srgb, var(--err) 86%, #000); } }
.btn.ghost.danger { background: none; color: var(--err); border-color: color-mix(in srgb, var(--err) 40%, transparent); }
@media (hover: hover) { .btn.ghost.danger:hover { background: color-mix(in srgb, var(--err) 10%, transparent); } }
.btn.icon { padding: .5rem; width: 2.2rem; }
.btn.sm { padding: .34rem .72rem; font-size: var(--fs-footnote); }

#backBtn { width: 48px; height: 48px; padding: 0; border: 0; background: none; }
@media (hover: hover) {
  #backBtn:hover { background: none; }
  #backBtn:hover .i { background: var(--chip-hover); }
}
@media (hover: hover) {
  #agClose:hover .i, #frClose:hover .i, .gm-x:hover .i { background: var(--chip-hover); }
}

#settingsBtn { width: 48px; height: 48px; }
@media (hover: hover) {
  #settingsBtn:hover { background: none; }
  #settingsBtn:hover .i { background: var(--chip-hover); }
}
#shareBtn { width: 48px; height: 48px; }
@media (hover: hover) {
  #shareBtn:hover .i { background: var(--chip-hover); }
}
#teamAdd { width: 48px; height: 48px; }
@media (hover: hover) {
  #teamAdd:hover { background: none; }
  #teamAdd:hover .i { background: var(--chip-hover); }
}
#backBtn .i, #shareBtn .i, #settingsBtn .i, #teamAdd .i, #teamBtn,
#agClose .i, #frClose .i, .gm-x .i {
  background: color-mix(in srgb, var(--chip) 72%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
}
#backBtn .i, #shareBtn .i, #settingsBtn .i, #teamAdd .i,
#agClose .i, #frClose .i, .gm-x .i {
  width: 2.25rem; height: 2.25rem; border-radius: var(--r-full);
}
#teamBtn { border-radius: var(--r-full); }
#seasonExport { min-height: 48px; }

.wrap { max-width: 1340px; margin: 0 auto; padding: clamp(1rem, 2.2vw, 1.8rem) clamp(.85rem, 2.6vw, 1.5rem) 4rem; }

.block { margin-bottom: clamp(1.15rem, 2vw, 1.75rem); }
.block-hd { display: flex; align-items: baseline; gap: .7rem; margin-bottom: .75rem; }
#summary { font-size: var(--fs-footnote); color: var(--muted); }
.s-rot > .block-hd { margin-bottom: 0; }
#dayhint { font-size: var(--fs-footnote); color: var(--muted); }
#regen { min-height: 48px; }
.cols { display: grid; gap: clamp(1.1rem, 2vw, 1.8rem); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) {
  .cols { grid-template-columns: minmax(0, 1fr) 396px; }
  .col-side { position: sticky; top: 4.9rem; }
}
@media screen and (max-width: 1099px) {
  .cols { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .col-main, .col-side { display: contents; }
  .s-rot   { order: 0; }
  .s-thisgame { order: 1; }
  #tabledetails { order: 2; margin-bottom: .9rem; }
  .s-thisgame + .pgrp { order: 3; }
  .gm-start { order: 4; }
}

.bar-today, .bar-back { display: flex; align-items: center; gap: .8rem; flex: 1; min-width: 0; }
.bar-today[hidden], .bar-back[hidden] { display: none; }
.bar-title {
  position: absolute; inset: 0 calc(var(--bar-side, 3.25rem) + .5rem);
  margin: auto 0; height: max-content;
  pointer-events: none; z-index: 1; text-align: center;
  font-size: var(--fs-body); font-weight: 700; letter-spacing: -.03em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  opacity: 0; transition: opacity var(--t-fast) var(--ease);
}
.bar.title-in .bar-title { opacity: 1; }

.teambtn { display: inline-flex; align-items: center; gap: .35rem; min-height: 48px; min-width: 48px;
  padding: .2rem .3rem; border-radius: var(--r-sm); border: 0;
  background: none; max-width: 100%; }
.teambtn-chev svg { transform: rotate(90deg); }
.teambtn-chev { color: var(--muted); }
@media (hover: hover) { .teambtn:hover { background: var(--surface-2); } }
#teamBtnLabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.teammenu { position: fixed; margin: 0;
  padding: .4rem; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow-lg);
  min-width: min(14rem, calc(100vw - 1.7rem));
  max-width: min(22rem, calc(100vw - 1.7rem)); }
.teammenu:popover-open { display: flex; flex-direction: column; gap: .1rem; }
.teammenu-item { display: flex; align-items: center; gap: .6rem; min-height: 48px;
  width: 100%; padding: .3rem .7rem; border-radius: var(--r-sm); border: 0; background: none;
  font: inherit; font-size: var(--fs-secondary); text-align: left; color: var(--ink); }
@media (hover: hover) { .teammenu-item:hover { background: var(--surface-2); } }
.teammenu-check { width: 1.1em; flex: none; color: var(--accent); font-weight: 700; }
.teammenu-nm { min-width: 0; overflow-wrap: break-word; }
.teammenu-add { color: var(--muted); font-weight: 600; border-top: 1px solid var(--line); margin-top: .2rem; padding-top: .5rem; }

.today-games { display: flex; flex-direction: column; gap: 1.5rem; margin: 1.1rem 0; }
.day-group { display: flex; flex-direction: column; gap: .75rem; }
.day-heading { font-size: var(--fs-footnote); color: var(--muted); font-weight: 700; }
.today-game { display: flex; flex-direction: column; align-items: stretch; gap: .3rem;
  width: 100%; min-height: 48px; padding: 1rem 1.125rem; border-radius: var(--r-lg);
  border: 0; background: var(--surface); font: inherit; text-align: left; }
@media (hover: hover) { .today-game:hover { background: var(--surface-2); } }

.pass-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.pass-when { font-size: var(--fs-secondary); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.pass-status { display: flex; align-items: center; gap: .4rem; font-size: var(--fs-footnote);
  font-weight: 600; color: var(--muted); }
.pass-status::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; flex: none; }
.pass-status.ok::before { background: var(--ok); }
.pass-status.warn::before { background: var(--warn); }
.pass-status.now::before { background: var(--accent); }
.pass-status.done::before { background: var(--info); }

.pass-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--fs-large); font-weight: 700; letter-spacing: -.03em; }

.pass-rot { display: flex; flex-direction: column; gap: 3px; margin: .1rem 0; }
.pass-rot .pass-row { height: 4px; border-radius: 1px; }

.pass-summary { overflow: hidden; white-space: normal;
  color: var(--muted); font-size: var(--fs-secondary); }

.today-entry::after { content: '\203a'; color: var(--muted); font-size: var(--fs-headline);
  flex: none; margin-left: .1rem; }

.today-acts { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.6rem; }
.today-entry.noarrow::after { content: none; }

.today-entry { display: flex; align-items: center; gap: .2rem .9rem; flex-wrap: wrap;
  width: 100%; min-height: 48px; padding: .8rem .95rem; margin-bottom: .6rem;
  border-radius: var(--r-sm); border: 0; background: var(--surface);
  font: inherit; text-align: left; }
@media (hover: hover) { .today-entry:hover { background: var(--surface-2); } }
.today-entry-lab { font-size: var(--fs-body); font-weight: 700; letter-spacing: -.01em; }
.today-entry-sub { color: var(--muted); font-size: var(--fs-secondary); flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bal-steps { display: flex; gap: 3px; touch-action: pan-y; }
.bal-step { width: 30px; min-height: 48px; display: grid; place-items: end center;
  border-radius: var(--r-sm); position: relative; padding-bottom: var(--sp-3); }
.bal-step::after { content: ''; width: 100%; border-radius: 3px;
  background: var(--line); height: var(--bar);
  transition: background var(--t) var(--ease), transform var(--t) var(--ease); }
.bal-step:nth-child(1) { --bar: 6px; }
.bal-step:nth-child(2) { --bar: 11px; }
.bal-step:nth-child(3) { --bar: 16px; }
.bal-step:nth-child(4) { --bar: 22px; }
.bal-step:nth-child(5) { --bar: 28px; }
.bal-step.fill::after { background: var(--c); }
.bal-step.on::after { transform: scaleX(1.06); }
@media (hover: hover) { .bal-step:hover:not(.fill)::after { background: color-mix(in srgb, var(--c) 45%, var(--line-2)); } }

.bal-lv { font-size: var(--fs-footnote); color: var(--muted); width: 5.2rem; text-align: right;
  font-variant-numeric: tabular-nums; }
.prow-level { padding-top: .6rem; padding-bottom: .6rem; }
.prow-level .bal-meter { flex: 1; min-width: 0; display: grid; row-gap: .05rem; }
.prow-level .bal-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: .25rem; }
.prow-level .bal-step { width: auto; padding-bottom: 10px; }
.prow-level .bal-step::after { max-width: 3.2rem; margin: 0 auto; }
.prow-level .bal-lv { width: auto; justify-self: end; }

@media screen {
  html { overflow-x: clip; }
}

.dayhead { margin-bottom: clamp(1rem, 2vw, 1.5rem); min-width: 0; }
.dayhead .game-h1, .dayhead .season-h1, .dayhead .team-h1 {
  margin: 0; font-size: var(--fs-large); font-weight: 700; letter-spacing: -.025em;
  color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dayhead .game-sub, .dayhead .season-sub, .dayhead .team-sub {
  margin: .1rem 0 0; font-size: var(--fs-secondary); color: var(--muted);
  display: flex; align-items: center; flex-wrap: wrap; gap: .375rem;
}
.dayhead .game-sub .pass-status { font-size: inherit; }

@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

.plr {
  --c: var(--muted);
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .34rem .82rem .34rem .34rem; border-radius: var(--r-full);
  border: 1px solid var(--line-2); background: var(--surface);
  font-size: var(--fs-secondary); font-weight: 500; user-select: none;
}
@media (hover: hover) { .plr:hover { border-color: var(--c); } }
.plr { max-width: 100%; }
.plr .nm { min-width: 0; max-width: 15ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plr .av {
  width: 1.7rem; height: 1.7rem; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: var(--fs-footnote); font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
  background: color-mix(in srgb, var(--c) 18%, transparent); color: color-mix(in srgb, var(--c) var(--av-ink), #000);
  box-shadow: inset 0 0 0 var(--av-ring) var(--c);
  transition: none;
}
.plr.on { border-color: color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 7%, var(--surface)); }
.plr.on .av { background: var(--c); color: #1A1A1A; }
.plr.off { opacity: .45; }
.plr.off .nm { text-decoration: line-through; }
.plr:active .av { transform: scale(.88); }

.tl { --lab: 9.5rem; --tot: 2rem; --edge-l: .5rem; --edge-r: .4rem; container-type: inline-size; }
.tl:not(.even) { --tot: 5.2rem; }
.tl-head { display: grid; grid-template-columns: 1fr; gap: .6rem; align-items: end; margin-bottom: 0;
  padding: 0 calc(1px + var(--edge-r)) 0 calc(3px + var(--edge-l)); }
.tl-head > div:first-child, .tl-head > div:last-child { display: none; }
.tl-periods { position: relative; height: 1.1rem; }
.tl-periods span {
  position: absolute; top: 0; font-size: var(--fs-footnote); font-weight: 500;
  color: var(--muted); transform: translateX(.3rem);
}
.tl-row {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "lab tot" "trk trk";
  gap: .6rem; row-gap: .22rem; align-items: center;
  padding: .3rem var(--edge-r) .4rem var(--edge-l); border-radius: var(--r-xs);
  border: solid transparent; border-width: 0 1px 0 3px;
  transition: opacity var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.tl-lab { grid-area: lab; display: flex; align-items: center; gap: .4rem; min-width: 0; }
.tl-lab .dot { width: .58rem; height: .58rem; border-radius: 50%; background: var(--c); flex: none; }
.tl-lab .nm { font-size: var(--fs-secondary); font-weight: 500; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-name {
  display: flex; align-items: center; gap: .4rem; width: 100%;
  background: none; border: 0; padding: 0; margin: 0; color: inherit; font: inherit;
  text-align: left; cursor: pointer; min-height: 48px;
}
.tl-track {
  grid-area: trk; position: relative; height: 1.5rem; border-radius: var(--r-xs);
  background: var(--track); overflow: hidden;
}
@container (min-width: 20em) {
  .tl-head, .tl-row { --lab: 6.5rem; }
  .tl-head { grid-template-columns: var(--lab) 1fr var(--tot); }
  .tl-head > div:first-child, .tl-head > div:last-child { display: block; }
  .tl-row {
    grid-template-columns: var(--lab) 1fr var(--tot); grid-template-areas: "lab trk tot";
    row-gap: 0; padding: 0 var(--edge-r) 0 var(--edge-l); --row-pitch: 2.25rem; min-height: var(--row-pitch);
  }
  .tl-lab { align-self: stretch; align-items: stretch; }
  .tl-name { min-height: var(--row-pitch); }
  .tl-track { height: 1rem; }
}
@container (min-width: 34em) {
  .tl-head, .tl-row { --lab: 9.5rem; }
}
.tl-blk {
  position: absolute; top: 0; bottom: 0; border-radius: var(--r-2xs);
  background: var(--c);
  transform-origin: 0 50%;
}
.tl-div { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--track); z-index: 1; }
.tl-now {
  position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; z-index: 2;
  background: var(--accent); box-shadow: 0 0 0 1px var(--surface);
}
.tl-row:first-child .tl-now::before {
  content: ''; position: absolute; left: 50%; top: 0;
  width: .42rem; height: .42rem; border-radius: 50%;
  background: var(--accent); transform: translate(-50%, -35%);
}
.tl-tot { grid-area: tot; text-align: right; font-size: var(--fs-footnote); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.tl-tot.hi { color: var(--accent); } .tl-tot.lo { color: var(--info); }
.tl-tot .ex { display: inline-block; width: 3.2rem; margin-left: .3rem; text-align: left;
  font-size: var(--fs-footnote); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.tl.even .tl-tot .ex { width: 0; margin-left: 0; }
.tl-body { position: relative; }
.tl-skel { animation: skel-pulse 1.5s var(--ease) infinite; pointer-events: none; }
.tl-skel .dot, .tl-skel .nm, .tl-skel .tl-tot { background: var(--line); border-radius: var(--r-2xs); }
.tl-skel .nm { height: 1.29rem; width: 4.2rem; }
.tl-skel .tl-tot { height: 1.29rem; width: 1.5rem; margin-left: auto; }
.tl-skel .tl-track { background-image: linear-gradient(90deg,
    var(--line) 0 26%, transparent 26% 40%, var(--line) 40% 68%, transparent 68% 84%, var(--line) 84% 100%); }
.tl-skel .tl-row:nth-child(3n+2) .tl-track { background-image: linear-gradient(90deg,
    transparent 0 14%, var(--line) 14% 46%, transparent 46% 62%, var(--line) 62% 90%, transparent 90% 100%); }
.tl-skel .tl-row:nth-child(3n+3) .tl-track { background-image: linear-gradient(90deg,
    var(--line) 0 18%, transparent 18% 34%, var(--line) 34% 56%, transparent 56% 76%, var(--line) 76% 96%, transparent 96% 100%); }
@keyframes skel-pulse { 0%, 100% { opacity: .6 } 50% { opacity: .95 } }
@media (hover: hover) { .tl:hover .tl-row:not(:hover) { opacity: .45; } }
@media (hover: hover) { .tl-row:hover { background: var(--surface-2); } }

.tl-row.pin {
  background: var(--surface-2); border-left-color: var(--c); border-right-color: var(--line-2);
  border-radius: var(--r-sm) var(--r-sm) 0 0; box-shadow: inset 0 1px 0 var(--line-2);
}
.tl.pinned .tl-row:not(.pin) { opacity: .38 !important; }
@media (hover: hover) { .tl.pinned:hover .tl-row:not(:hover):not(.pin) { opacity: .38 !important; } }

.tld {
  margin: 0 0 .55rem; padding: .85rem .95rem; display: flow-root;
  border: solid var(--line-2); border-width: 0 1px 1px 3px; border-left-color: var(--c, var(--accent));
  border-radius: 0 0 var(--r-sm) var(--r-sm); background: var(--surface-2);
}
.tl.pinned .tld { opacity: 1; }
.tld-x { float: right; width: 48px; height: 48px; margin: -.55rem -.65rem 0 .3rem; border-radius: var(--r-full);
  color: var(--muted); font-size: var(--fs-body); display: grid; place-items: center; }
@media (hover: hover) { .tld-x:hover { background: var(--surface-3); color: var(--ink); } }
.tld-facts { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.tld-f .k { font-size: var(--fs-footnote); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.tld-f .v { font-size: var(--fs-body); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: .1rem; }
.tld-lab { font-size: var(--fs-footnote); text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
  font-weight: 600; margin: .95rem 0 .4rem; }
.tld-when { display: flex; flex-wrap: wrap; gap: .3rem; }
.tld-slot { font-size: var(--fs-footnote); font-variant-numeric: tabular-nums; padding: .2rem .55rem;
  border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }

.alert {
  display: flex; gap: .6rem; padding: .68rem .85rem; border-radius: var(--r-sm);
  font-size: var(--fs-secondary); margin-bottom: .45rem; animation: alertIn var(--t) var(--ease) both;
}
@keyframes alertIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.alert .ico { font-weight: 700; flex: none; }
.alert > span { min-width: 0; overflow-wrap: break-word; }
.alert.error { background: var(--err-soft); color: var(--err); }
.alert.warn  { background: var(--warn-soft); color: var(--warn); }
.alert.info  { background: var(--info-soft); color: var(--info); }
.alert:empty { display: none; }
.alert.recover-alert { margin-bottom: 1.1rem; }
#storagewarn:not(:empty) { padding: .6rem clamp(.85rem, 2.6vw, 1.5rem) 0; }

.f { display: block; font-size: var(--fs-footnote); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin-bottom: .35rem; }
#view-games .f { text-transform: none; letter-spacing: normal; }
input[type=text], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%; padding: .58rem .72rem; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); -webkit-appearance: none;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
:where(:root)[data-theme="dark"] input, :where(:root)[data-theme="dark"] select, :where(:root)[data-theme="dark"] textarea { background: var(--surface-2); }
@media (hover: hover) { input:hover, select:hover, textarea:hover { border-color: var(--muted); } }
#view-games input[type=text], #view-games input[type=date], #view-games input[type=time], #view-games select {
  min-height: 48px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
input::placeholder { color: var(--muted); }
textarea { min-height: 8rem; resize: vertical; }
#pasteText { resize: none; }
select {
  appearance: none; cursor: pointer; padding-right: 2rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 53%, calc(100% - 10px) 53%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.row { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(8.125rem, 1fr)); }
.row .wide { grid-column: span 2; }
@media (max-width: 620px) { .row .wide { grid-column: 1 / -1; } }

.s-thisgame .row + .row { margin-top: .9rem; }
.s-thisgame .note { margin-top: .35rem; margin-bottom: 0; }
.s-thisgame { margin-bottom: .9rem; }

.chips { display: flex; flex-wrap: wrap; gap: .38rem; }
.chip {
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
  border-radius: var(--r-full); padding: .42rem .85rem; font-size: var(--fs-secondary); font-weight: 500; white-space: nowrap;
}
@media (hover: hover) { .chip:hover { border-color: var(--muted); color: var(--ink); } }
.chip.sel { background: var(--tint); border-color: transparent; color: var(--tint-ink); font-weight: 600; }

input[type=checkbox].box { appearance: none; width: 1.15rem; height: 1.15rem; border: 1.5px solid var(--line-2);
  border-radius: var(--r-xs); cursor: pointer; vertical-align: middle;
  transition: none; }
input[type=checkbox].box:checked { background: var(--tint); border-color: var(--tint); transform: scale(1.06); }
input[type=checkbox].box:checked::after { content: '✓'; color: var(--tint-ink); font-size: var(--fs-footnote); font-weight: 700; display: grid; place-items: center; height: 100%; }

.budget { display: flex; align-items: baseline; gap: .5rem; margin: .1rem 0 .7rem; }
.budget .b-k { font-size: var(--fs-footnote); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.budget .b-v { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700; font-size: var(--fs-secondary); transition: color var(--t-fast) var(--ease); }
.budget .b-v.over { color: var(--err); } .budget .b-v.under { color: var(--warn); } .budget .b-v.exact { color: var(--ok); }
.meter { position: relative; display: flex; height: .42rem; border-radius: var(--r-full);
  background: var(--pc-track); overflow: hidden; margin-bottom: .5rem; }
.meter i { display: block; height: 100%; background: var(--ink-2); transition: width var(--t) var(--ease), background var(--t) var(--ease); }
.meter b { display: block; height: 100%; background: var(--err); transition: width var(--t) var(--ease); }
.meter.exact i { background: var(--ok); }
.meter.under i { background: var(--warn); }
.meter.over i { background: var(--err); }
.budget-msg { font-size: var(--fs-footnote); margin: 0 0 .55rem; color: var(--muted); transition: color var(--t-fast) var(--ease); }
.budget-msg.under { color: var(--warn); } .budget-msg.over { color: var(--err); } .budget-msg.exact { color: var(--ok); }
.srow { --c: var(--accent); display: grid; grid-template-columns: 4.6rem 1fr 4.1rem 2rem; gap: .55rem; align-items: center; padding: .12rem 0; }
.srow .nm { display: flex; align-items: center; gap: .38rem; font-weight: 600; font-size: var(--fs-footnote); letter-spacing: -.015em; overflow: hidden; }
.srow .nm .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--c); flex: none; }
.srow .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; font-size: var(--fs-secondary); }
.srow .v small { color: var(--muted); font-weight: 500; font-size: var(--fs-footnote); }
.srow.locked .v { color: var(--accent); }
.srow .v .act { display: block; margin-top: .02rem; font-size: var(--fs-footnote); font-weight: 600;
                line-height: 1.1; letter-spacing: -.01em; white-space: nowrap; color: var(--warn); }
.lockbtn { padding: .3rem; border-radius: var(--r-xs); color: var(--muted); font-size: var(--fs-secondary); line-height: 1; opacity: .38; }
@media (hover: hover) { .lockbtn:hover { opacity: 1; background: var(--surface-2); } }
.srow.locked .lockbtn { opacity: 1; }
input[type=range] { --fill: 0%; -webkit-appearance: none; appearance: none; width: 100%; background: none; margin: 0; padding: .5rem 0; cursor: grab; touch-action: pan-y; }
input[type=range]:active { cursor: grabbing; }
input[type=range]::-webkit-slider-runnable-track { height: .5rem; border-radius: var(--r-full);
  background: linear-gradient(to right, var(--c) var(--fill), var(--pc-track) var(--fill)); }
input[type=range]::-moz-range-track { height: .5rem; border-radius: var(--r-full);
  background: linear-gradient(to right, var(--c) var(--fill), var(--pc-track) var(--fill)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 1.35rem; height: 1.35rem;
  margin-top: -.43rem; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--line-2); box-shadow: var(--shadow-sm);
  transition: transform var(--t-tap) var(--ease), border-color var(--t-fast) var(--ease); }
input[type=range]::-moz-range-thumb { width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--line-2); box-shadow: var(--shadow-sm); }
@media (hover: hover) { input[type=range]:hover::-webkit-slider-thumb { border-color: var(--c); } }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.16); border-color: var(--c); }
input[type=range]:disabled { opacity: .5; }

.pickhd { display: flex; align-items: baseline; gap: .5rem; margin: .9rem 0 .45rem; }
.pickhd .t { font-size: var(--fs-footnote); color: var(--muted); font-weight: 600; }
.pickhd .c { margin-left: auto; font-size: var(--fs-footnote); color: var(--muted); font-variant-numeric: tabular-nums; }
.pick { display: flex; flex-wrap: wrap; gap: .42rem; }
.pick .plr:disabled { opacity: .32; cursor: not-allowed; }
.pick .plr.off { opacity: .62; }
.pick .plr.off .nm { text-decoration: none; }

.seasonadj { margin-top: .5rem; padding-left: .65rem; border-left: 2px solid var(--line-2); }
.seasonadj .note { margin: .25rem 0; }
.adjlist { list-style: none; margin: .4rem 0 .25rem; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.adjlist li { font-size: var(--fs-footnote); line-height: 1.4; color: var(--muted); }
.adjlist b { font-weight: 600; color: var(--ink-2); }
.adjlist .act { font-style: normal; font-weight: 600; color: var(--warn); }

.stage.blank { min-height: 5.4in; align-items: center; }
.stage-empty { text-align: center; max-width: 26ch; color: var(--muted); }
.stage-empty .se-ico { font-size: var(--fs-sentence); opacity: .35; margin-bottom: .5rem; }
.stage-empty .se-t { font-size: var(--fs-body); font-weight: 600; color: var(--ink-2); margin-bottom: .25rem; }
.stage-empty .se-s { font-size: var(--fs-footnote); line-height: 1.45; }
.btn:disabled { opacity: .45; cursor: default; }
@media (hover: hover) { .btn:disabled:hover { background: var(--surface); border-color: var(--line-2); } }
@media (hover: hover) { .btn.primary:disabled:hover { background: var(--tint); border-color: transparent; } }

details.dz { margin-bottom: .6rem; }
details.dz > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: .55rem;
  padding: .85rem .95rem; border-radius: var(--r-sm); background: var(--surface);
  min-height: 48px; font-size: var(--fs-body); color: var(--ink); font-weight: 600;
  transition: background var(--t-fast) var(--ease);
}
@media (hover: hover) { details.dz > summary:hover { background: var(--surface-2); } }
details.dz > summary::-webkit-details-marker { display: none; }
details.dz > summary::after { content: '›'; margin-left: auto; font-size: var(--fs-secondary); line-height: 1; display: inline-block;
  color: var(--muted); transition: transform var(--t) var(--ease); }
details.dz[open] > summary::after { transform: rotate(90deg); }
details.dz .dz-bd { padding-bottom: 1.1rem; animation: rise var(--t) var(--ease) both; }
@keyframes rise { from { opacity: var(--fade-from, 0); transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media screen { #plan { overflow-x: auto; -webkit-overflow-scrolling: touch; } }
table.grid { width: 100%; border-collapse: collapse; font-size: var(--fs-secondary); }
table.grid th { text-align: left; font-size: var(--fs-footnote); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: .35rem .45rem; font-weight: 600; }
table.grid td { padding: .44rem .45rem; border-top: 1px solid var(--line); vertical-align: baseline; }
table.grid tr { transition: background var(--t-fast) var(--ease); }
@media (hover: hover) { table.grid tbody tr:hover td, table.grid tr:hover td { background: var(--surface-2); } }
tr.period-break td { border-top: 1.5px solid var(--line-2); }
td.per { font-weight: 700; color: var(--muted); font-size: var(--fs-footnote); }
td.clk { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: var(--fs-footnote); }
td.floor { font-weight: 600; letter-spacing: -.014em; }
td.in { color: var(--ok); font-size: var(--fs-footnote); } td.out { color: var(--err); font-size: var(--fs-footnote); }
td.sit { color: var(--muted); font-size: var(--fs-footnote); }
.empty { text-align: center; padding: 2.4rem 1rem; color: var(--muted); font-size: var(--fs-secondary); }
.empty > div + div { margin-top: .2rem; }
.empty > .btn { margin-top: .9rem; }
.note { color: var(--muted); font-size: var(--fs-footnote); margin-top: .75rem; }

.paste-repeats { display: flex; flex-direction: column; gap: .5rem; margin-top: .5rem; }
.paste-repeat {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap;
  padding: .5rem .7rem; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--warn);
  font-size: var(--fs-secondary);
}
.paste-repeat .btn { min-height: 48px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.barrow { display: grid; grid-template-columns: var(--barrow-cols); align-items: center; gap: .6rem; }
.barrow .track, .barrow .trk, .barrow .sn-track { height: var(--barrow-track-h); border-radius: var(--r-full); background: var(--barrow-track); overflow: hidden; }
.barrow .v, .barrow .sn-min { text-align: right; font-variant-numeric: tabular-nums; }

.mrow, .dayrow { --barrow-cols: 4.8rem 1fr 2.6rem; --barrow-track-h: .62rem; --barrow-track: var(--pc-track); padding: .24rem 0; }
#daytotals .dayrow { padding: .24rem 1rem; }
#daytotals .legend, #daytotals > .note { padding-left: 1rem; padding-right: 1rem; }
.mrow .nm { font-weight: 600; font-size: var(--fs-footnote); letter-spacing: -.01em; }
.mrow .track i { display: block; height: 100%; border-radius: inherit; background: var(--accent); opacity: .58; transition: width var(--t-slow) var(--ease); }
.mrow.heavy .track i { opacity: 1; }
.mrow.light .track i { opacity: .34; }
.mrow .v { font-weight: 600; font-size: var(--fs-footnote); }

.dayrow { --c: var(--accent); }
.dayrow .nm { display: flex; align-items: center; gap: .38rem; font-weight: 600; font-size: var(--fs-footnote); }
.dayrow .nm .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--c); flex: none; }
.dayrow .trk { display: flex; gap: 2px; }
.dayrow .trk i { display: block; height: 100%; background: var(--c); transition: width var(--t-slow) var(--ease); }
.dayrow .trk i:nth-child(2) { opacity: .66; } .dayrow .trk i:nth-child(3) { opacity: .42; } .dayrow .trk i:nth-child(4) { opacity: .28; }
.dayrow .v { font-weight: 600; font-size: var(--fs-footnote); }
#daytotals .dayrow .nm { font-weight: 500; font-size: var(--fs-secondary); }
#daytotals .dayrow .v { font-weight: 400; color: var(--muted); }
.legend { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: .7rem; font-size: var(--fs-footnote); color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: .3rem; }
.legend i { width: .58rem; height: .58rem; border-radius: 50%; background: var(--ink-2); }
.legend span:nth-child(2) i { opacity: .66; } .legend span:nth-child(3) i { opacity: .42; } .legend span:nth-child(4) i { opacity: .28; }

.rrow { --c: var(--muted); animation: rowIn var(--t-fast) var(--ease) both; flex-wrap: wrap; }
.rrow .prow-t { min-width: auto; max-width: 100%; overflow-wrap: break-word; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.rrow .av, .who-row .av { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-footnote); font-weight: 700;
  flex: none;
  background: color-mix(in srgb, var(--c) 18%, transparent); color: color-mix(in srgb, var(--c) var(--av-ink), #000);
  box-shadow: inset 0 0 0 var(--av-ring) var(--c); font-variant-numeric: tabular-nums; }
.who-row .prow-t { overflow-wrap: anywhere; }
.rrow-edit { padding-left: .25rem; padding-top: 0; padding-bottom: 0; }
.rord { display: flex; align-items: center; flex: none; }
.obtn { width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: var(--r-xs); color: var(--muted); line-height: 1; }
@media (hover: hover) { .obtn:hover:not(:disabled) { color: var(--ink); background: var(--surface-2); } }
.obtn:disabled { opacity: .22; cursor: default; }

.rrow-edit .rord, .rrow-edit .av { touch-action: none; cursor: grab; }
.rrow.drag .rord, .rrow.drag .av { cursor: grabbing; }
#rosterlist.dragging { user-select: none; -webkit-user-select: none; }
#rosterlist.dragging .rrow { animation: none; transition: transform var(--t-fast) var(--ease); }
#rosterlist.dragging .rrow.drag { transition: none; position: relative; z-index: 5;
  box-shadow: var(--shadow-lg); border-radius: var(--r-sm); background: var(--surface); }
#rosterlist.no-anim .rrow { animation: none !important; }
#rosterlist.dragging .rrow.drag + .rrow::before { opacity: 0; }

.team-empty { text-align: center; padding: 2.4rem 1rem 1rem; }
.team-empty-t { font-size: var(--fs-title); font-weight: 700; margin: 0 0 .35rem; }
.team-empty-s { font-size: var(--fs-secondary); color: var(--muted); margin: 0 auto; max-width: 34ch; }
.team-empty-acts { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1.2rem; }
.team-empty-acts .btn { min-height: 48px; }

.roster-empty { text-align: center; padding: 3rem 1rem; border: 1px dashed var(--line-2); border-radius: var(--r); }
.roster-empty .se-ico { font-size: var(--fs-large); margin-bottom: .6rem; opacity: .8; }
.roster-empty .se-t { font-size: var(--fs-body); font-weight: 700; margin-bottom: .3rem; }
.roster-empty .se-s { font-size: var(--fs-secondary); color: var(--muted); }
.roster-empty .re-acts { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1.1rem; }
.roster-empty .re-acts .btn { min-height: 48px; }

.gm {
  position: fixed; inset: 0; z-index: var(--z-gm); display: flex; flex-direction: column;
  background: var(--bg);
  padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
  animation: gmIn var(--t) var(--ease);
}
@keyframes gmIn { from { opacity: 0; transform: scale(.965); } to { opacity: 1; transform: none; } }
.gm-bar { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; }
.gm-x { width: 48px; height: 48px; padding: 0; border: 0; background: none; color: var(--ink-2);
        font-size: var(--fs-headline); display: grid; place-items: center; }
.gm-title { flex: 1; display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.gm-title > span:first-child { font-size: var(--fs-headline); font-weight: 600; color: var(--ink); }
.gm-clock { font-size: var(--fs-footnote); font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }

.gm-moved { margin: 0; padding: .5rem .9rem; font-size: var(--fs-footnote); line-height: 1.35;
  color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); }

.gm-body { flex: 1; overflow-y: auto; padding: 1rem .9rem 9.5rem; -webkit-overflow-scrolling: touch;
  touch-action: pan-y; will-change: transform; }
body.gm-swiping { user-select: none; -webkit-user-select: none; }
.gm-sec { margin-bottom: 1.15rem; }
#gmBenchSec { margin-top: 1.15rem; }
.gm-lab { font-size: var(--fs-footnote); color: var(--muted); margin-bottom: .55rem; }
h3.gm-lab { margin-top: 0; font-weight: inherit; }

.gm-floor { display: flex; flex-direction: column; gap: .45rem; }
.gm-allon { margin-top: .6rem; font-size: var(--fs-secondary); color: var(--muted); text-align: center; }
.gm-p {
  --c: var(--muted);
  display: flex; align-items: center; gap: .75rem; width: 100%;
  padding: .62rem .8rem; border-radius: var(--r); border: 1px solid transparent;
  background: var(--surface); text-align: left;
}
.gm-p .av { width: 2.3rem; height: 2.3rem; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: var(--fs-footnote); font-weight: 700; font-variant-numeric: tabular-nums;
  background: var(--c); color: #1A1A1A; }
.gm-p .nm { flex: 1; min-width: 0; font-size: var(--fs-title); font-weight: 600; letter-spacing: -.026em;
  line-height: 1.15; overflow-wrap: anywhere; }
.gm-p.fresh .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-p .mn { font-size: var(--fs-secondary); font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 700;
  white-space: nowrap; }
.gm-p .mn .proj, .gm-b .mn .proj { color: var(--muted); font-weight: 500; }
.gm-p.picked { box-shadow: inset 0 0 0 2px var(--tint); }

.gm-bench { display: flex; flex-direction: column; gap: 0; }
.gm-b {
  --c: var(--muted);
  display: flex; align-items: center; gap: .6rem; width: 100%;
  padding: .5rem .3rem; text-align: left;
  border: 0; border-radius: 0; background: none;
  box-shadow: inset 0 -1px 0 var(--line);
  font-size: var(--fs-headline); font-weight: 600; letter-spacing: -.026em;
}
.gm-b:last-child { box-shadow: none; }
.gm-b .av { width: 1.85rem; height: 1.85rem; border-radius: 50%; display: grid; place-items: center;
  font-size: var(--fs-footnote); font-weight: 700; background: var(--c); color: #1A1A1A; }
.gm-b .mn { flex: none; font-size: var(--fs-body); color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 400; }
.gm-b .nm { flex: 1; min-width: 0; font-weight: 400; overflow-wrap: anywhere; }
.gm.swapping .gm-floor .gm-p:not(.picked) { opacity: .4; }

.gm-lab.rowed .btn { min-height: 48px; }
.gm-lab.rowed { display: flex; align-items: center; gap: .6rem .6rem; flex-wrap: wrap; }

.gm-next { border: 0; border-radius: var(--r); padding: .8rem .95rem; background: var(--sheet); }
.gm-next-hd { font-size: var(--fs-footnote); font-weight: 600; color: var(--ink); margin-bottom: .5rem; }
h3.gm-next-hd { margin-top: 0; }
.gm-next-none { font-size: var(--fs-secondary); color: var(--muted); }
.gm-next-cols { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.gm-next-col { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.gm-next-lb { font-size: var(--fs-footnote); color: var(--muted); margin-bottom: .1rem; }
.gm-next-col .nm { font-size: var(--fs-body); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.gm-next-col.off .nm { color: var(--muted); font-weight: 500; }
.gm-next-col.on .nm { color: var(--ink); font-weight: 600; }

.gm-p .mn .tag { display: inline-block; margin-left: .4rem; padding: .1rem .42rem; border-radius: var(--r-full);
  font-size: var(--fs-footnote); font-weight: 700; vertical-align: middle; }
.gm-p .mn .tag.in { background: var(--ok-soft); color: var(--ok); }

.gm-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; padding: .8rem .9rem 1rem; }
.gm-foot::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(var(--bg), var(--bg));
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  mask-image: linear-gradient(to top, black 0%, black 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 0%, black 75%, transparent 100%);
}
.gm-nav { flex: none; width: 3.2rem; height: 3.2rem; border-radius: var(--r-full); background: var(--surface);
  border: 1px solid var(--line-2); font-size: var(--fs-sentence); color: var(--ink); display: grid; place-items: center; }
@media (hover: hover) { .gm-nav:hover { background: var(--surface-2); } }
.gm-nav:disabled { opacity: .35; }
.gm-nav.next { background: var(--tint); border-color: transparent; color: var(--tint-ink); }
@media (hover: hover) { .gm-nav.next:hover { background: var(--tint-2); } }
#gmFinish { width: auto; padding: 0 1.1rem; font-size: var(--fs-secondary); font-weight: 600; white-space: nowrap;
  background: var(--surface); border-color: var(--line-2); color: var(--ink); }
@media (hover: hover) { #gmFinish:hover { background: var(--surface-2); } }
.gm-exit { display: none; width: auto; padding: 0 .85rem; font-size: var(--fs-secondary); font-weight: 600;
  letter-spacing: -.01em; color: var(--muted); }
@media (hover: hover) { .gm-exit:hover { background: var(--surface-2); color: var(--ink); } }
.gm-dots { flex: 1; min-width: 0; overflow: hidden; padding-inline: 3px; margin-inline: -3px;
  display: flex; gap: 0; justify-content: center; flex-wrap: nowrap; }
.gm-dot { flex: 1 1 0; min-width: 0; max-width: 2.1rem; height: 44px; display: grid; place-items: center; }
.gm-dot::before { content: ''; width: .55rem; height: .55rem; border-radius: 50%; background: var(--line-2);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.gm-dot.done::before { background: var(--muted); }
.gm-dot.now::before { background: var(--accent); transform: scale(1.5); }
.gm-dot.edge:not(.now)::before { opacity: .4; transform: scale(.75); }

.gm-cta { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; margin-top: .85rem; }
.gm-cta.recover-cta { margin-top: 1.4rem; }
#sheetCard .gm-cta { flex-wrap: nowrap; padding: 0 1rem; }
#sheetCard .gm-cta .btn { flex: 1; min-width: 0; }
@container (max-width: 16em) {
  #sheetCard .gm-cta { flex-wrap: wrap; }
  #sheetCard .gm-cta .btn { flex: 1 0 100%; }
}
#shareCard { border-color: transparent; }
.gm-start { display: flex; margin-top: .85rem; }

@media (orientation: portrait) and (max-height: 700px) {
  .gm-body { padding-top: .65rem; }
  .gm-sec { margin-bottom: .8rem; }
  .gm-lab { margin-bottom: .35rem; }
  .gm-floor { gap: .3rem; }
  .gm-p { padding: .45rem .8rem; }
}

@media (orientation: landscape) and (max-height: 560px) {
  .gm-bar { padding: .35rem .9rem; }
  .gm-clock { font-size: var(--fs-body); }
  .gm-body {
    display: grid; align-content: start;
    grid-template-columns: 1fr 1fr; column-gap: 1.1rem;
    grid-template-areas: "floor next" "floor bench";
    padding: .7rem .9rem .8rem;
  }
  .gm-body > .gm-sec:first-child { grid-area: floor; }
  .gm-body > .gm-next { grid-area: next; }
  #gmBenchSec { grid-area: bench; margin-top: .9rem; }
  .gm-sec { margin-bottom: 0; }
  .gm-lab { margin-bottom: .35rem; }
  .gm-floor { gap: .35rem; }
  .gm-p { padding: .32rem .7rem; gap: .6rem; }
  .gm-p .av { width: 2rem; height: 2rem; }
  .gm-next { padding: .6rem .8rem; }
  .gm-foot { padding: .45rem .9rem .55rem; }
  .gm-nav { height: 2.8rem; }
}

.side-box { border: 1px solid var(--line); border-radius: var(--r); padding: .95rem; background: var(--surface); }
.side-hd { font-size: var(--fs-footnote); text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
  font-weight: 700; margin-bottom: .75rem; }
h2.side-hd { margin-top: 0; }
#view-games .side-hd { text-transform: none; letter-spacing: normal; }

.pastein { margin-top: .1rem; }
.pastein .linkish { font-size: var(--fs-footnote); font-weight: 500; color: var(--muted); }
.pastein .linkish:focus-visible { color: var(--accent); }
@media (hover: hover) { .pastein .linkish:hover { color: var(--accent); } }
.pastebox { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; margin: .1rem 0 .3rem; }
.pastebox textarea { width: 100%; min-height: 4.6rem; max-height: 40vh; overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-footnote); line-height: 1.45; }

.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-actionbar);
  display: none; gap: .5rem; align-items: center;
  padding: .6rem 1rem;
  padding-bottom: calc(.6rem + env(safe-area-max-inset-bottom, env(safe-area-inset-bottom)));
  animation: abIn var(--t) var(--ease);
}
@keyframes abIn { from { transform: translateY(100%); } to { transform: none; } }
.actionbar::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(var(--bg), var(--bg));
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  mask-image: linear-gradient(to top, black 0%, black 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 0%, black 75%, transparent 100%);
}
@media (max-width: 839px) { .actionbar:not([hidden]) { display: flex; } }
#resumeBar:not([hidden]) { display: flex; }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .bar::before, .actionbar::before, .gm-foot::before {
    background: var(--bg); mask-image: none; -webkit-mask-image: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  #backBtn .i, #shareBtn .i, #settingsBtn .i, #teamAdd .i, #teamBtn,
  #agClose .i, #frClose .i, .gm-x .i {
    background: var(--chip); backdrop-filter: none; -webkit-backdrop-filter: none;
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bar::before, .actionbar::before, .gm-foot::before { background: var(--bg); mask-image: none; -webkit-mask-image: none; }
  #backBtn .i, #shareBtn .i, #settingsBtn .i, #teamAdd .i, #teamBtn,
  #agClose .i, #frClose .i, .gm-x .i { background: var(--chip); }
}
.ab-main {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 54px; border-radius: var(--r); background: var(--tint); color: var(--tint-ink);
  font-size: var(--fs-body); font-weight: 600; letter-spacing: -.01em;
  box-shadow: 0 1px 2px rgba(0,0,0,.14);
}
.ab-main:disabled { opacity: .45; box-shadow: none; }
#resumeBtn { text-align: center; padding-block: .5rem; }
#resumeBtn .ab-lab { min-width: 0; }
@media (max-width: 839px) {
  .wrap { padding-bottom: 6.5rem; }
  body:has(#actionbar[hidden]):has(#resumeBar[hidden]) .wrap { padding-bottom: 2rem; }
  body:has(#resumeBar:not([hidden])) .wrap { padding-bottom: max(6.5rem, calc(var(--ab-h, 0px) + 1.5rem)); }
}

.toasts {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-toasts);
  display: flex; flex-direction: column-reverse; align-items: center; gap: .5rem;
  padding: 0 1rem;
  padding-bottom: calc(.9rem + env(safe-area-inset-bottom));
  pointer-events: none;
}
.toasts.lifted { padding-bottom: calc(var(--toast-lift, 0px) + .6rem); }
.toast {
  pointer-events: auto; width: min(28rem, 100%);
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  padding: .5rem .5rem .5rem 1rem;
  border-radius: var(--r); background: var(--ink); color: var(--bg);
  box-shadow: var(--shadow-lg);
  animation: toastIn var(--t) var(--ease) both;
}
.toast.out { animation: toastOut var(--t-fast) var(--ease) both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(120%) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(40%) scale(.98); } }
.toast .tmsg { flex: 1 1 12rem; min-width: 0; font-size: var(--fs-secondary); font-weight: 500; letter-spacing: -.005em; }
.toast .tacts { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center;
  gap: .6rem; max-width: 100%; flex: none; margin-left: auto; }
.toast .tundo {
  flex: none; min-height: 48px; padding: 0 .95rem; border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--bg) 24%, transparent); color: var(--bg);
  font-size: var(--fs-secondary); font-weight: 700; letter-spacing: -.005em;
}
@media (hover: hover) { .toast .tundo:hover { background: color-mix(in srgb, var(--bg) 36%, transparent); } }
.toast .tx {
  flex: none; width: 40px; min-height: 48px; display: grid; place-items: center;
  color: color-mix(in srgb, var(--bg) 65%, transparent); border-radius: var(--r-sm);
}
@media (hover: hover) { .toast .tx:hover { color: var(--bg); } }
.toast .tx svg { width: 1.05rem; height: 1.05rem; }
.tip-toast { flex-wrap: wrap; padding: .85rem .5rem .6rem 1rem; }
.tip-toast .tmsg { flex: 1 1 100%; font-weight: 500; line-height: 1.45; }
.tip-toast .tip-lead { font-weight: 700; }
.tip-toast .tundo { display: inline-flex; align-items: center; margin-left: auto;
  text-decoration: none; }
.install-how { display: block; margin-top: .55rem; padding-top: .5rem;
  border-top: 1px solid color-mix(in srgb, var(--bg) 22%, transparent); }
.install-share { vertical-align: -.24em; margin: 0 .08em; }
.install-toast .tx { margin-left: auto; }
@media (pointer: coarse), screen and (max-width: 620px) {
  .toast .tx { width: 44px; }
}

.keyswrap { position: fixed; inset: 0; height: 100dvh; z-index: var(--z-modal);
  display: grid; place-items: center;
  padding: clamp(.7rem, 3vw, 1.5rem);
  padding-top: calc(clamp(.7rem, 3vw, 1.5rem) + env(safe-area-inset-top));
  padding-bottom: calc(clamp(.7rem, 3vw, 1.5rem) + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px);
  animation: viewIn var(--t) var(--ease); }
.keysbox { width: min(24rem, 92vw); overflow-y: auto; background: var(--surface);
  max-height: 92vh; max-height: min(92dvh, 100%);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0 1.2rem 1.1rem;
  box-shadow: var(--shadow-lg); }
.keys-hd { position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; gap: .6rem;
  margin: 0 -1.2rem .35rem; padding: 1.2rem 1.2rem .5rem;
  background: var(--surface); }
.keys-t { font-size: var(--fs-headline); font-weight: 700; letter-spacing: -.024em; }
h2.keys-t { margin: 0; }
.confirmbox { width: min(22rem, 92vw); }
.confirmbox .note { margin: .1rem 0 1.15rem; line-height: 1.5; }
.confirm-acts { display: flex; gap: .5rem; }
.confirm-acts .btn { flex: 1; min-height: 48px; justify-content: center; }
.keys-hd .keys-t { flex: 1; text-align: left; }
.keys-list { margin: .7rem 0 0; }
.keys-row { display: flex; align-items: center; gap: .8rem; padding: .5rem 0;
  border-top: 1px solid var(--line); }
.keys-row:first-child { border-top: 0; }
.keys-row dt { display: flex; gap: .3rem; flex: 0 0 4.6rem; }
.keys-row dd { margin: 0; font-size: var(--fs-secondary); color: var(--ink-2); }
kbd { display: inline-grid; place-items: center; min-width: 1.7rem; height: 1.7rem; padding: 0 .4rem;
  font: 600 var(--fs-footnote)/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line-2);
  border-bottom-width: 2px; border-radius: var(--r-sm); }
.keys-note { margin: .9rem 0 0; font-size: var(--fs-footnote); }
.keys-hint { display: none; align-items: center; gap: .35rem;
  background: none; border: 0; padding: .4rem .3rem; cursor: pointer;
  color: var(--muted); font: inherit; font-size: var(--fs-footnote); }
@media (hover: hover) { .keys-hint:hover { color: var(--ink-2); } }
.keys-hint kbd { min-width: 1.35rem; height: 1.35rem; font-size: var(--fs-footnote); }
@media (hover: hover) and (pointer: fine) and (min-width: 760px) { .keys-hint { display: inline-flex; } }

.helpbox { width: min(30rem, 94vw); text-align: left; }
.help-lede { margin: .2rem 0 0; font-size: var(--fs-body); line-height: 1.5; color: var(--ink-2); }
.help-h { margin: 1.35rem 0 .4rem; font-size: var(--fs-footnote); font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent); }
.help-p { margin: 0; font-size: var(--fs-secondary); line-height: 1.55; color: var(--ink-2); }
.help-dl { margin: 0; font-size: var(--fs-secondary); line-height: 1.55; }
.help-dl dt { font-weight: 600; color: var(--ink); margin-top: .7rem; }
.help-dl dt:first-child { margin-top: 0; }
.help-p + .help-dl { margin-top: .7rem; }
.help-dl dd { margin: .1rem 0 0; color: var(--ink-2); }
.help-p b, .help-dl b { color: var(--ink); font-weight: 600; }
.help-tour { width: 100%; justify-content: center; margin-top: 1.5rem; }

.color-swatch { display: inline-block; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--tint); box-shadow: inset 0 0 0 1px var(--line-2); flex: none; }
.color-opt[data-color="graphite"] .color-swatch { background: var(--ink); }

.colorbox { width: min(22rem, 92vw); text-align: left; }
.color-opts { display: flex; flex-direction: column; gap: .3rem; margin-top: .5rem; }
.color-opt { display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 48px;
  padding: .5rem .8rem; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: none; font: inherit; font-size: var(--fs-body); color: var(--ink); text-align: left; }
.color-opt.on { background: var(--tint-soft); border-color: var(--tint-line); font-weight: 600; }
@media (hover: hover) { .color-opt:hover { border-color: var(--line-2); } }

.tour { position: fixed; inset: 0; z-index: var(--z-tour); animation: viewIn var(--t) var(--ease); }
.tour-hole { position: absolute; border-radius: var(--r);
  box-shadow: 0 0 0 max(120vw, 120vh) color-mix(in srgb, #080808 66%, transparent),
              0 0 0 2px var(--accent); pointer-events: none; }
.tour-box { position: absolute; width: min(21rem, calc(100vw - 1.5rem));
  max-height: calc(100% - 20px); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 1rem 1.05rem .95rem; }
.tour-step { font-size: var(--fs-footnote); font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent); flex: none; }
.tour-t { font-size: var(--fs-headline); font-weight: 700; letter-spacing: -.024em; margin: .2rem 0 .35rem; flex: none; }
.tour-bd { font-size: var(--fs-secondary); line-height: 1.5; color: var(--ink-2);
  min-height: 0; overflow-y: auto; }
.tour-bd p { margin: 0; }
.tour-bd .tour-l { display: block; margin-top: .3rem; }
.tour-bd .tour-l:first-child { margin-top: 0; }
.tour-bd b { color: var(--ink); font-weight: 600; }
.tour-acts { display: flex; align-items: center; gap: .5rem; margin-top: 1.05rem; flex: none; }
.tour-acts .btn { min-height: 48px; }
.tour-acts #tourNext { min-width: 5.6rem; justify-content: center; }
.tour-dots { display: flex; gap: .32rem; margin: 0 auto; }
.tour-dots i { width: .42rem; height: .42rem; border-radius: var(--r-full); background: var(--line-2); }
.tour-dots i.on { background: var(--accent); }

@media (max-width: 620px) { .wrap { padding-left: 1rem; padding-right: 1rem; } }

html[data-boot="welcome"] #view-today,
html[data-boot="welcome"] .bar { display: none !important; }
html[data-boot="welcome"] #view-welcome[hidden] { display: flex !important; }
html[data-boot="games"] #view-today,
html[data-boot="team"] #view-today,
html[data-boot="season"] #view-today,
html[data-boot="settings"] #view-today { display: none !important; }
html[data-boot="games"] #view-games[hidden] { display: block !important; }
html[data-boot="team"] #view-team[hidden],
html[data-boot="season"] #view-season[hidden],
html[data-boot="settings"] #view-settings[hidden] { display: block !important; }
html[data-boot="games"] #barToday,
html[data-boot="team"] #barToday,
html[data-boot="season"] #barToday,
html[data-boot="settings"] #barToday { display: none !important; }
html[data-boot="games"] #barBack[hidden],
html[data-boot="team"] #barBack[hidden],
html[data-boot="season"] #barBack[hidden],
html[data-boot="settings"] #barBack[hidden] { display: flex !important; }

@media screen and (min-width: 840px) {
  :root { --rail: 360px; }
  html:not([data-view="welcome"]) #view-today,
  html:not([data-view="welcome"]) #view-today[hidden] {
    display: block !important;
    position: fixed; inset: var(--bar-h, 4.5rem) auto 0 0;
    width: var(--rail); max-width: var(--rail); margin: 0;
    overflow-y: auto; overscroll-behavior: contain;
    border-right: 1px solid var(--line);
    padding-bottom: calc(var(--ab-h, 0px) + 1.5rem);
  }
  #view-games, #view-team, #view-season, #view-settings {
    margin-left: var(--rail);
  }
  html:not([data-view="welcome"]) #storagewarn {
    margin-left: var(--rail);
  }
  html[data-view="today"]:not(.no-games) #view-games[hidden] { display: block !important; }
  #resumeBar { left: 0; right: auto; width: var(--rail); }
}
.welcome { min-height: calc(100vh - 4rem); min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(clamp(1rem, 4vw, 3rem) + env(safe-area-inset-top)) clamp(.85rem, 3vw, 1.5rem)
           calc(1.25rem + env(safe-area-inset-bottom)); }
@media (max-width: 600px) {
  .welcome { padding-left: 1rem; padding-right: 1rem; }
}
.wel-in { width: 100%; max-width: 30rem; text-align: center;
  flex: 1 1 auto; display: flex; flex-direction: column; }
.wel-hero { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.wel-h .hl { color: var(--tint); }
.wel-landing { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.wel-lockup { display: flex; align-items: center; justify-content: center; gap: .55rem;
  margin: 0 0 .22rem; font-size: var(--fs-title); font-weight: 700; letter-spacing: -.022em; }
.wel-mark { display: inline-grid; place-items: center;
  animation: welMark 700ms var(--ease) both; }
.wel-mark svg { width: 36px; height: 36px; }
@keyframes welMark { from { opacity: var(--fade-from, 0); transform: scale(.6) rotate(-25deg); } to { opacity: 1; transform: none; } }
.wel-h { font-size: var(--fs-large); letter-spacing: -.04em; font-weight: 700;
  line-height: 1.1; text-wrap: balance;
  margin: 0 0 .55rem;
  animation: rise var(--t-slow) var(--ease) both; animation-delay: 80ms; }

.wel-stage { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
  margin-top: .45rem;
  animation: rise var(--t-slow) var(--ease) both; animation-delay: 190ms; }
.wel-show { --pan-dur: 7s; flex: 1 1 auto; position: relative; margin-top: .5rem;
  min-height: 12rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.wel-pane { position: absolute; inset: 0; display: flex; flex-direction: column;
  padding: .55rem .75rem .5rem; text-align: left; }
.wel-pane[hidden] { display: none; }
.wel-pane-shot { padding: 0; }
.wel-pane-shot::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2.4rem; pointer-events: none;
  background: linear-gradient(to top, var(--shotbg), transparent); }
#welPanePaper { --shotbg: #FFFFFF; }
#welPaneScreen { --shotbg: #F4F4F6; }
.wel-shot { display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% var(--pan-0, 0%); }
#welPaneScreen .wel-shot { --pan-0: 12%; }

.wel-bench { padding: .7rem .7rem .8rem; display: flex; flex-direction: column; gap: .65rem; }
.wel-bench-hd { margin: 0; font-size: var(--fs-footnote); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); }
.wel-bench .gm-floor { gap: .38rem; }
.wel-bench .gm-p { padding: .48rem .6rem; gap: .55rem; }
.wel-bench .gm-p .av { width: 1.9rem; height: 1.9rem; font-size: var(--fs-footnote); }
.wel-bench .gm-p .nm { font-size: var(--fs-secondary); }
.wel-bench .gm-next { padding: .55rem .7rem; }
.wel-bench-sec { display: flex; flex-direction: column; gap: .38rem; }
.wel-bench .gm-bench { gap: .38rem; }
.wel-bench .gm-b { padding: .34rem .6rem .34rem .34rem; }
.wel-bench .gm-b .av { width: 1.6rem; height: 1.6rem; font-size: var(--fs-footnote); }

.wel-pane-draw { padding: 0; overflow: hidden; }
.wel-pane-draw.pan .wel-bench { animation: drawPan var(--pan-dur) var(--ease) 700ms forwards; }
@keyframes drawPan {
  from { transform: none; }
  to { transform: translateY(var(--pan-px, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .wel-pane-draw.pan .wel-bench { animation: none; }
}

.wel-pane-shot.pan .wel-shot { animation: shotPan var(--pan-dur) var(--ease) 700ms forwards; }
#welPanePaper.pan .wel-shot { --pan-1: 82%; }
#welPaneScreen.pan .wel-shot { --pan-1: 78%; }
@keyframes shotPan {
  from { object-position: 50% var(--pan-0, 0%); }
  to { object-position: 50% var(--pan-1); }
}
@media (prefers-reduced-motion: reduce) {
  .wel-pane-shot.pan .wel-shot { animation: none; }
}

#welPanePlan { --nmw: min(4.2rem, 30vw); }
.wel-qs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
  flex: none; margin: 0 0 .2rem calc(8px + var(--nmw) + .7rem);
  font-size: var(--fs-footnote); font-weight: 600; letter-spacing: .08em;
  color: var(--muted); text-transform: uppercase; }
.wel-rows { flex: 1 1 auto; min-height: 0; display: grid;
  grid-template-rows: repeat(10, minmax(0, 1fr)); }
.wel-row { display: grid; grid-template-columns: 8px var(--nmw) minmax(0, 1fr) min(1.6rem, 13vw);
  align-items: center; gap: .35rem; min-height: 0;
  --pc: oklch(var(--pc-l) var(--pc-c) var(--h)); }
.wel-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pc); }
.wel-nm { font-size: var(--fs-footnote); font-weight: 600; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wel-track { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px;
  height: 11px; align-self: center; }
.wel-c { background: var(--pc-track); border-radius: 3px; }
.wel-c.on { background: var(--pc); transform-origin: left center; }
.wel-c.qgap { margin-right: 3px; }
.wel-min { font-size: var(--fs-footnote); font-weight: 700; text-align: right; color: var(--ink);
  font-variant-numeric: tabular-nums; }
.wel-c.on { animation: welGrow 380ms var(--ease) var(--d) backwards; }
@media (prefers-reduced-motion: reduce) { .wel-c.on { animation: none; } }
@keyframes welGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.wel-cap { flex: none; display: flex; align-items: center; justify-content: space-between;
  gap: .6rem; margin: .45rem 0 0; text-align: left; min-height: 3.6em;
  color: var(--muted); font-size: var(--fs-footnote); line-height: 1.4; }
.wel-shuf { flex: none; padding: .3rem .6rem; min-height: 34px; font-size: var(--fs-footnote); gap: .3rem; }
.wel-shuf .i { width: 14px; height: 14px; }
.wel-shuf[hidden] { display: none; }

.wel-stage .seg.wide { flex: none; }

.wel-doors { flex: none; margin-top: .7rem; }

@media (max-height: 700px) {
  .welcome { padding-top: .6rem; }
  .wel-lockup { margin-bottom: .45rem; }
  .wel-h { font-size: var(--fs-sentence); margin-bottom: .5rem; }
  .wel-stage { margin-top: .6rem; }
  .wel-show { min-height: 10rem; }
  .wel-doors { margin-top: .6rem; }
  .wel-go { margin-top: .5rem; }
  .wel-foot { margin-top: .5rem; }
}
.wel-about { display: inline-flex; align-items: center; min-height: 48px; padding: 0 .55rem; }
.wel-go { width: 100%; margin-top: .62rem; padding: .82rem 1rem; font-size: var(--fs-body); }
.wel-start { margin-top: .34rem; }
.wel-foot { text-align: center; margin-top: .62rem; }
.wel-tail { flex: none; margin-top: .9rem; padding-top: .75rem;
  border-top: 1px solid var(--line); text-align: center; }
.wel-tail-row { display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 0 1.15rem; margin: 0; }
.wel-tail-row .wel-about,
.wel-tail-row .linkish { color: var(--muted); font-size: var(--fs-footnote); font-weight: 500;
  padding: 0; border-bottom: 0;
  text-decoration: underline; text-decoration-color: var(--line-2);
  text-underline-offset: 3px; }
.wel-tail-row .wel-about:focus-visible,
.wel-tail-row .linkish:focus-visible { color: var(--accent); text-decoration-color: var(--accent-line); }
@media (hover: hover) {
  .wel-tail-row .wel-about:hover,
  .wel-tail-row .linkish:hover { color: var(--accent); text-decoration-color: var(--accent-line); }
}
.wel-tail .pastebox { max-width: 24rem; margin: .5rem auto 0; align-items: center; }
.linkish { background: none; border: 0; border-bottom: 1px solid transparent; cursor: pointer;
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 .25rem;
  font: inherit; font-weight: 600; color: var(--accent); }
.linkish:focus-visible { border-bottom-color: var(--accent-line); }
@media (hover: hover) { .linkish:hover { border-bottom-color: var(--accent-line); } }

.phrase { color: var(--phrase); text-decoration: underline;
  text-decoration-color: var(--phrase-line); text-decoration-thickness: 2px;
  background: none; border: 0; font: inherit; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: flex-start; text-align: left;
  min-height: 1.38em; min-width: 48px; padding: 0 .3em; margin: 0 -.3em; vertical-align: baseline; }

.sentence { margin: 0 0 .2rem; font-size: var(--fs-sentence); font-weight: 600;
  letter-spacing: -.022em; line-height: 1.38em; color: var(--muted);
  text-underline-offset: .2em; text-decoration-skip-ink: none; }
.sentence:last-of-type { margin-bottom: 1rem; }

dialog.bsheet {
  position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: 100%;
  border: 0; border-radius: var(--r-sheet) var(--r-sheet) 0 0; padding: 0;
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-lg), 0 80px 0 0 var(--surface);
  overflow: hidden;
}
dialog.bsheet.grouped { background: var(--sheet); box-shadow: var(--shadow-lg), 0 80px 0 0 var(--sheet); }
dialog.bsheet.grouped .bsheet-body { padding: 0 0 1rem; }
dialog.bsheet.grouped .bsheet-body > .note { padding: .45rem 2rem 0; margin: 0; }
#sheetCard .bsheet-body { padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  container-type: inline-size; }
dialog.bsheet.grouped .bsheet-status { background: var(--sheet); }
dialog.bsheet[open] { display: flex; flex-direction: column; }
dialog.bsheet.bsheet-half { height: 50vh; height: 50dvh; }
dialog.bsheet.full { height: 92vh; height: 92dvh; }
dialog.bsheet:not(.full):has(.bsheet-toasts .toast) {
  height: auto; min-height: 50vh; min-height: 50dvh;
  max-height: 92vh; max-height: 92dvh;
}
dialog.bsheet:has(.bsheet-toasts .toast) .bsheet-body { flex-basis: 0; min-height: 0; }
dialog.bsheet::backdrop { background: color-mix(in srgb, #000 32%, transparent);
  opacity: var(--scrim, 1); }
@media (prefers-reduced-motion: no-preference) {
  dialog.bsheet { transition: transform var(--t) var(--ease); }
  dialog.bsheet[open] { @starting-style { transform: translateY(100%); } }
  dialog.bsheet::backdrop { transition: opacity var(--t) var(--ease); }
}
dialog.bsheet.dragging, dialog.bsheet.dragging::backdrop { transition: none; }
dialog.bsheet.dragging { will-change: transform; }
dialog.bsheet.closing { transform: translateY(100%); --scrim: 0; }

@media screen and (min-width: 600px) {
  dialog.bsheet {
    inset: 0; margin: auto;
    width: min(560px, calc(100% - 2rem)); max-width: 560px;
    height: auto; max-height: min(92vh, 92dvh);
    border-radius: var(--r-sheet);
    box-shadow: var(--shadow-lg);
  }
  dialog.bsheet.bsheet-half, dialog.bsheet.full { height: auto; }
  dialog.bsheet.grouped { box-shadow: var(--shadow-lg); }
  .bsheet-handle { display: none; }
  @media (prefers-reduced-motion: no-preference) {
    dialog.bsheet { transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
    dialog.bsheet[open] { @starting-style { transform: none; opacity: 0; } }
    dialog.bsheet.closing { transform: none; opacity: 0; }
  }
}

dialog.flow {
  position: fixed; inset: 0; margin: 0; width: 100%; max-width: 100%;
  height: 100%; max-height: 100%;
  border: 0; border-radius: 0; padding: 0;
  background: var(--bg); color: var(--ink);
}
dialog.flow[open] { display: flex; flex-direction: column; }
dialog.flow::backdrop { background: var(--bg); }
@media (prefers-reduced-motion: no-preference) {
  dialog.flow { transition: transform var(--t) var(--ease); }
  dialog.flow[open] { @starting-style { transform: translateY(100%); } }
}
dialog.flow.closing { transform: translateY(100%); }

.flow-bar { flex: none; padding: calc(.35rem + env(safe-area-inset-top)) 10px 0; }
.flow-bar-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .3rem; }
.flow-t { min-width: 0; overflow-wrap: normal;
  text-align: center; font-size: var(--fs-headline); font-weight: 600; }
.flow-step { white-space: nowrap; font-size: var(--fs-secondary); color: var(--muted);
  font-variant-numeric: tabular-nums; padding-right: .4rem; }

@media (max-width: 14em) {
  .flow-bar-row { grid-template-columns: auto 1fr; }
  .flow-bar-row .bsheet-close { grid-area: 1 / 1; }
  .flow-step { grid-area: 1 / 2; justify-self: end; padding-right: 0; }
  .flow-t { grid-area: 2 / 1 / 3 / -1; }
}
.flow-prog { display: flex; gap: .3rem; padding: .4rem .4rem .2rem; }
.flow-prog i { flex: 1; height: 4px; border-radius: var(--r-full); background: var(--line);
  transition: background var(--t-fast) var(--ease); }
.flow-prog i.on { background: var(--tint); }

.flow-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: .6rem 0 1rem; }
.flow-body > div > * { margin-left: 1rem; margin-right: 1rem; }
.flow-q { font-size: var(--fs-flow); font-weight: 700; line-height: 1.2;
  margin-top: .2rem; margin-bottom: 1.1rem; }
.flow-q:focus { outline: none; }

.flow-f { display: block; margin-bottom: .85rem; }
dialog.flow .f { text-transform: none; letter-spacing: normal; }

.flow-card { display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem .75rem; width: calc(100% - 2rem); min-height: 48px;
  text-align: left; font: inherit; color: inherit; cursor: pointer;
  margin-top: 1.2rem; padding: .85rem .9rem; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); }
.flow-card-text { flex: 1 1 12rem; min-width: 0; }
.flow-card-t { font-size: var(--fs-body); font-weight: 600; margin: 0; }
.flow-card-s { font-size: var(--fs-secondary); color: var(--muted); margin: .18rem 0 0; }
.flow-card-use { color: var(--ink); font-weight: 600; }

.plr-sur { font-weight: 400; color: var(--muted); }
dialog.flow .plr { min-width: 0; }
dialog.flow .plr .nm { display: block; min-width: 0; }
dialog.flow .plr .plr-first, dialog.flow .plr .plr-sur { display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
dialog.flow .plr.off { background: none; border-color: var(--line-2); }
dialog.flow .plr.off .av { opacity: .55; }
dialog.flow .plr.on { border-color: transparent; box-shadow: none; }
.flow-count { margin-top: .7rem; font-size: var(--fs-secondary); color: var(--muted);
  font-variant-numeric: tabular-nums; }
.flow-note { margin-top: .3rem; font-size: var(--fs-footnote); color: var(--muted); }

.flow-opts { display: grid; gap: .5rem; margin-bottom: .4rem; }
.opt { display: grid; grid-template-columns: 22px 1fr; column-gap: .75rem; row-gap: .15rem;
  align-items: start; width: 100%; min-height: 48px; text-align: left;
  padding: .75rem .9rem; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--surface); font: inherit; color: var(--ink); }
.opt[aria-checked="true"] { border-color: var(--tint); box-shadow: inset 0 0 0 2.5px var(--tint); }
.opt::before { content: ''; grid-row: 1 / span 2; width: 22px; height: 22px;
  margin-top: .1rem; box-sizing: border-box; border-radius: 50%; border: 1.5px solid var(--line-2); }
.opt[aria-checked="true"]::before { border-color: var(--tint); background: var(--tint);
  box-shadow: inset 0 0 0 4px var(--surface); }
.opt-t { font-size: var(--fs-body); font-weight: 600; }
.opt-d { font-size: var(--fs-secondary); color: var(--muted); }

.flow-foot { flex: none; display: flex; flex-wrap: wrap; align-items: stretch;
  gap: .5rem; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); }
.flow-foot .btn { min-height: 48px; white-space: nowrap; }
.flow-foot .btn.primary { flex: 1 1 9rem; }
.flow-ask { padding-bottom: calc(1.1rem + env(safe-area-inset-bottom)); }

dialog.flow .pgrp { margin-top: 0; margin-bottom: 0; }
.fr-f { margin-top: 1rem; }

.fr-cta { margin-top: 1rem; flex-wrap: nowrap; }
.fr-cta .btn { flex: 1; min-width: 0; min-height: 48px; }

@media screen and (min-width: 840px) {
  .flow-bar-row, .flow-prog, .flow-body > *, .flow-foot {
    max-width: 34rem; margin-inline: auto; width: 100%;
  }
}

.bsheet-hd { position: relative; display: flex; flex-direction: column;
  padding: 0 .9rem .7rem; flex: none; touch-action: none;
  container-type: inline-size; }
.bsheet-handle { position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 5rem; height: 48px; z-index: 1;
  background: none; border: 0; padding: 0; cursor: grab; touch-action: none; }
.bsheet-handle::before { content: ''; position: absolute; top: .375rem; left: 50%;
  transform: translateX(-50%); width: 2.25rem; height: 5px;
  border-radius: var(--r-full); background: color-mix(in srgb, var(--muted) 60%, transparent); }
.bsheet-handle:focus-visible { outline: none; }
.bsheet-handle:focus-visible::before { outline: var(--focus-ring); outline-offset: var(--focus-ring-offset); border-radius: var(--r-xs); }
.bsheet-hd-row { display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; column-gap: .5rem; padding-top: 1rem; min-height: 3.125rem; }
.bsheet-hd-row h2 { grid-column: 2; margin: 0; text-align: center;
  font-size: var(--fs-headline); font-weight: 600; letter-spacing: -.02em;
  white-space: normal; overflow-wrap: break-word; }
.bsheet-hd-row h2:focus { outline: none; }
@container (max-width: 16em) {
  .bsheet-hd-row:has(.planAddRule:not([hidden])) {
    grid-template-columns: auto 1fr auto;
    row-gap: .3rem;
  }
  .bsheet-hd-row:has(.planAddRule:not([hidden])) h2 {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
.bsheet-hd-l { grid-column: 1; display: flex; align-items: center; justify-content: flex-start; min-height: 48px; }
.bsheet-hd-r { grid-column: 3; display: flex; align-items: center; justify-content: flex-end; gap: .1rem; min-height: 48px; }
.bsheet-close { display: inline-flex; align-items: center;
  justify-content: center; width: 3rem; height: 3rem; border: 0;
  border-radius: var(--r-full); background: none; font: inherit;
  font-size: var(--fs-headline); color: var(--ink-2); }
@media (hover: hover) { .bsheet-close:hover { background: var(--surface-2); } }
.backBtn { display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0; border: 0; background: none; }
.backBtn .i { display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: var(--r-full); background: var(--surface-2); }
@media (hover: hover) { .backBtn:hover .i { background: var(--surface-3); } }
.planAddRule { border: 0; background: none; font: inherit; font-weight: 600;
  font-size: var(--fs-headline); color: var(--ink); padding: 0 .3rem; min-height: 48px;
  white-space: nowrap; }
.planAddRule:disabled { opacity: .35; }

.bsheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 0 1.1rem 1rem; }
.bsheet-status { margin: 0; flex: none; font-size: var(--fs-footnote);
  color: var(--muted); background: var(--surface); border-top: 1px solid var(--line);
  padding: .6rem 1.1rem calc(.6rem + env(safe-area-inset-bottom)); }

.bsheet-toasts { flex: none; padding: 0 1.1rem .5rem; }

.bsheet-cta { display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem 1rem 0; }
.bsheet-cta .btn { width: 100%; min-height: 48px; white-space: normal; }
.bsheet-ask-t { margin: 0 0 .2rem; font-size: var(--fs-secondary);
  color: var(--muted); text-align: center; }

#stratseg, #shareSeg { width: auto; margin: .5rem 1rem 0; }
.pgrp { margin: 1.1rem 1rem 0; background: var(--surface); border-radius: var(--r-sm); overflow: hidden; }
.pgrp-h + .pgrp { margin-top: 0; }
.pgrp-h { padding: 1.5rem 2rem .45rem; font-size: var(--fs-footnote); color: var(--muted); }
.pgrp-f { padding: .45rem 2rem 0; font-size: var(--fs-footnote);
  color: var(--muted); line-height: 1.35; }
#view-season .pgrp { margin-left: 0; margin-right: 0; }
#rosterlist, #teamActions .pgrp { margin-left: 0; margin-right: 0; }
#view-settings .pgrp, .col-side .pgrp { margin-left: 0; margin-right: 0; }
#view-settings .pgrp-h, #view-settings .pgrp-f { padding-left: 1rem; padding-right: 1rem; }

.prow { display: flex; align-items: center; gap: .75rem; width: 100%;
  min-height: 48px; padding: .8125rem 1rem; line-height: 1.375;
  border: 0; background: none; font: inherit;
  font-size: var(--fs-body); color: var(--ink); text-align: left; }
.prow + .prow { position: relative; }
.prow + .prow::before { content: ''; position: absolute; top: 0; left: 1rem; right: 0;
  height: 1px; background: var(--line); }
.prow-t { flex: 1; min-width: 0; }
.prow-v { flex: 0 1 auto; min-width: 0; text-align: right; color: var(--muted); }
.prow-chev { flex: none; color: var(--muted); }
#sheetCard .pgrp .prow-select { flex: 0 1 auto; min-width: 0; width: auto; text-align: right;
  color: var(--muted); font: inherit; font-size: var(--fs-body);
  background: none; border: 0; padding: 0; margin: 0; min-height: 0;
  appearance: none; -webkit-appearance: none; cursor: pointer; }
#sheetCard .pgrp .prow-select:focus-visible { outline: 2px solid var(--tint); outline-offset: 2px; }
#sheetCard .pgrp .prow { flex-wrap: wrap; row-gap: 1rem; }
#sheetCard .pgrp .prow-t { flex-basis: auto; }
#sheetCard .pgrp .prow-ctl { display: flex; align-items: center; gap: .75rem; min-width: 0; margin-left: auto; }
.prow-toggle { flex-wrap: wrap; row-gap: 1rem; }
.prow-toggle > .prow-t { flex-basis: auto; }
.prow-toggle > input[switch] { margin-left: auto; }
#sheetCard .pgrp .prow-select { text-overflow: ellipsis; }
@container (max-width: 12em) {
  #sheetCard .pgrp .prow-chev { display: none; }
  #sheetCard .pgrp .prow-ctl { width: 100%; }
  #sheetCard .pgrp .prow-select { flex: 1; }
}
@media (hover: hover) { button.prow:hover { background: var(--surface-2); } }
.pgrp .prow-in { flex: 1 1 auto; min-width: 0; width: auto; text-align: right;
  font: inherit; font-size: var(--fs-body); color: var(--ink);
  background: none; border: 0; border-radius: 0; padding: 0; margin: 0; min-height: 0; }
.pgrp .prow-in::placeholder { color: var(--muted); }
.pgrp .prow-in:focus-visible { outline: 2px solid var(--tint); outline-offset: 2px; }
.pgrp .prow-in-num { font-variant-numeric: tabular-nums; }
#sheetPlayer .pgrp .prow, #sheetAddPlayer .pgrp .prow { flex-wrap: wrap; }
#sheetPlayer .pgrp .prow-t, #sheetAddPlayer .pgrp .prow-t { flex-basis: auto; }
#view-settings .pgrp .prow { flex-wrap: wrap; }
#view-settings .pgrp .prow-t { flex-basis: auto; }
#seasonDefSeg button { flex: 1 1 auto; }
.pgrp .prow-in.dupe { color: var(--warn); background: var(--warn-soft);
  box-shadow: inset 0 0 0 1px var(--warn); border-radius: var(--r-xs); font-weight: 600; }
.prow-center { justify-content: center; text-align: center; }
.prow-danger { color: var(--err); font-weight: 600; }
.prow-icon { color: var(--muted); }
.prow.add-rule .prow-t { color: inherit; }

.pident { --c: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: .875rem; padding: .75rem 1rem 1.25rem; }
.pident-av { flex: none; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  display: grid; place-items: center; font-size: var(--fs-title); font-weight: 700;
  background: color-mix(in srgb, var(--c) 18%, transparent); color: color-mix(in srgb, var(--c) var(--av-ink), #000);
  box-shadow: inset 0 0 0 var(--av-ring) var(--c); font-variant-numeric: tabular-nums; }
.pident-t { flex: 1 1 12ch; min-width: 0; }
.pident-name { font-size: var(--fs-sentence); font-weight: 700; overflow-wrap: break-word; }
.pident-level { font-size: var(--fs-secondary); color: var(--muted); }

.plan-rule-sentence { margin: 1.125rem 1.5rem 0; font-size: var(--fs-title);
  font-weight: 600; letter-spacing: -.01em; overflow-wrap: break-word; }

.prow-shape { align-items: flex-start; padding-top: .6rem; padding-bottom: .6rem; }
.prow-shape-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.prow-sub { font-size: var(--fs-secondary); color: var(--muted); }
.prow-check { flex: none; color: var(--ink); font-weight: 700; }

.plan-kinds { padding: 1rem 1rem 0; }
.plan-kinds .chip { white-space: normal; text-align: center; }
dialog.bsheet.grouped .chip { border-color: transparent; min-height: 48px; display: inline-flex; align-items: center; }
.pstep-row { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .8rem; padding-block: 0; }
.pstep-row .prow-t { flex-basis: auto; }
.pstep-tail { display: flex; align-items: center; gap: .8rem; margin-left: auto; min-width: 0; }
.pstep-val { flex: none; width: 1.75rem; text-align: right;
  font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.pstep { display: flex; align-items: center; justify-content: center;
  width: 5.5rem; height: 2rem; min-width: 0; border-radius: var(--r-seg); background: var(--seg-track); overflow: visible; }
.pstep-btn { display: flex; align-items: center; justify-content: center;
  width: 3rem; min-width: 48px; min-height: 48px;
  border: 0; background: none; font: inherit; font-size: var(--fs-headline);
  font-weight: 700; color: var(--ink); }
.pstep-btn:disabled { opacity: .35; }
.pstep-btn + .pstep-btn { border-left: 1px solid var(--line); }

input[switch] { appearance: none; flex: none; width: 3.1875rem; height: 3rem;
  margin-block: -.8125rem; background: none; position: relative; margin-inline: 0; cursor: pointer; }
input[switch]::before { content: ''; position: absolute; top: 50%; left: 0;
  transform: translateY(-50%); width: 100%; height: 1.9375rem; border-radius: var(--r-full);
  background: var(--switch-track-off); transition: background var(--t-fast) var(--ease); }
input[switch]::after { content: ''; position: absolute; top: 50%; left: .125rem;
  transform: translateY(-50%); width: 1.6875rem; height: 1.6875rem; border-radius: 50%; background: #fff;
  box-shadow: var(--shadow-sm); transition: none; }
input[switch]:checked::before { background: var(--tint); }
input[switch]:checked::after { transform: translateY(-50%) translateX(1.25rem); background: var(--tint-ink); }
input[switch]:disabled { opacity: .4; cursor: default; }

.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
  gap: .625rem; margin: 0 1rem; }
.plr { position: relative; flex-direction: column; align-items: flex-start;
  justify-content: flex-start; gap: .3rem; min-height: 4.375rem; padding: .75rem;
  border-radius: var(--r); border: 1px solid transparent; background: var(--surface);
  text-align: left; }
.plr .av { display: block; width: auto; height: auto; border-radius: 0; box-shadow: none;
  font-variant-numeric: normal; letter-spacing: normal;
  font-size: var(--fs-secondary); font-weight: 700; color: var(--c); background: none; }
.plr .nm { min-width: 0; max-width: 100%; overflow: visible; text-overflow: clip;
  white-space: normal; font-size: var(--fs-body); font-weight: 600; color: var(--ink);
  overflow-wrap: break-word; }
.plr.on { border-color: var(--tint); box-shadow: inset 0 0 0 2.5px var(--tint); background: var(--surface); }
.plr.on .av { background: none; color: var(--c); }
.plr-check { position: absolute; top: .5rem; right: .5rem; color: var(--ink);
  font-weight: 700; font-size: var(--fs-secondary); }
.pick .plr:disabled { opacity: .4; }
.pick .plr.off { opacity: 1; }
.pickhd { margin: 1.1rem 1rem .5rem; }

#sheetPlanBody { position: relative; overflow-x: hidden; overflow-y: auto; }
#planMain, #planSub { min-height: 100%; padding-bottom: 1rem; }
@media (prefers-reduced-motion: no-preference) {
  .pane-in { animation: planPaneIn var(--t) var(--ease) both; }
  @keyframes planPaneIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
}

.sheetempty { margin: 0; padding: 1.6rem .2rem; color: var(--muted);
  font-size: var(--fs-secondary); text-align: center; }

.gmq { display: flex; width: 100%; max-width: 100%; min-width: 0; }
.gmq > .btn { min-width: 0; width: 100%; }

@media (max-width: 839px) {
  .gm-start { display: none; }
}

.view { animation: viewIn var(--t) var(--ease); }
@keyframes viewIn { from { opacity: var(--fade-from, 0); transform: translateY(7px); } to { opacity: 1; transform: none; } }
@property --fade-from { syntax: '<number>'; inherits: false; initial-value: 0; }
.first-screen[data-view="welcome"] :is(#view-welcome, .wel-mark, .wel-h, .wel-stage),
.first-screen[data-view="today"] #view-today { --fade-from: 1; }

@media (max-width: 620px) {
  .bar { gap: .4rem; padding-left: .7rem; padding-right: .7rem;
         flex-wrap: wrap; row-gap: .3rem; justify-content: flex-end; }
  .bar-today { flex-wrap: wrap; row-gap: .3rem; justify-content: flex-end; }
  .seg button { padding: .36rem .72rem; font-size: var(--fs-footnote); }
  .btn { padding: .55rem .8rem; }
  .btn.icon { width: 2rem; padding: .45rem; }
}

@media (max-width: 385px) {
  .bar { gap: .28rem; padding-left: .5rem; padding-right: .5rem; }
}

@media (max-width: 19em) {
  .bar { gap: .28rem; padding-left: .5rem; padding-right: .5rem; }
  .wel-go { white-space: normal; }
  .wel-cap { flex-wrap: wrap; }
  .wel-qs { display: none; }
  .wel-row { grid-template-columns: 8px minmax(0, 1fr) auto;
    grid-template-areas: "dot nm min" "track track track";
    column-gap: .35rem; row-gap: 3px; line-height: 1.2; }
  .wel-dot { grid-area: dot; }
  .wel-nm { grid-area: nm; }
  .wel-min { grid-area: min; }
  .wel-track { grid-area: track; }
  .wel-rows { row-gap: .2rem; }
  .wel-show { min-height: calc(10 * (var(--fs-footnote) * 1.2 + 3px + 11px)
    + 9 * .2rem + 1.05rem + 2px); }
  .seg.wide { flex-wrap: wrap; }
  .seg.wide button { flex: 1 0 40%; }

  .seg { flex-wrap: wrap; justify-content: center; }

  #viewSeg { display: grid; grid-auto-flow: row; }

  .block-hd { flex-wrap: wrap; }
  .gm-cta .btn, .gm-start .btn { white-space: normal; text-align: center; }

  details.dz > summary { flex-wrap: wrap; }

  .wel-in { min-width: 0; }
  .wel-h { font-size: min(var(--fs-large), 15vw); }

  #view-settings .minwrap { flex: 0 1 auto; flex-wrap: wrap; }

  #removeGame { white-space: normal; }

  .dayrow { grid-template-columns: minmax(0, 1fr) min(2.6rem, 20vw); row-gap: .2rem; }
  .dayrow .nm { grid-column: 1 / -1; min-width: 0; }
  .dayrow .nm span:last-child { min-width: 0; overflow-wrap: break-word; }

  .sn-list .sn-row { grid-template-columns: 1fr auto; row-gap: .2rem; }
  .sn-list .sn-name { grid-column: 1 / -1; }

  .sn-body .sn-row { grid-template-columns: 1fr auto; row-gap: .2rem; }
  .sn-body .sn-name { grid-column: 1 / -1; }

  .sn-game > summary {
    display: grid; grid-template-columns: 1fr auto; row-gap: .15rem; column-gap: .5rem;
  }
  .sn-game > summary .sn-gt { grid-column: 1 / -1; }

  .tl-tot .ex { display: block; width: auto; margin-left: 0; text-align: right; }

  .keyswrap { padding-left: .2rem; padding-right: .2rem; }
  .keysbox, .helpbox, .colorbox, .confirmbox { width: 100%;
    padding-left: .5rem; padding-right: .5rem; }
  .keys-hd { margin-left: -.5rem; margin-right: -.5rem;
    padding-left: .5rem; padding-right: .5rem; }
  .help-tour { white-space: normal; text-align: center; }
  .confirm-acts { flex-wrap: wrap; }
  .confirm-acts .btn { flex: 1 0 100%; }
  .keys-row { flex-wrap: wrap; row-gap: .2rem; }

  .tour-acts { flex-wrap: wrap; justify-content: flex-end; row-gap: .4rem; }

  .row { grid-template-columns: repeat(auto-fit, minmax(min(8.125rem, 40vw), 1fr)); }

  #abBench .i { display: none; }
  .actionbar { gap: .3rem; padding-left: .5rem; padding-right: .5rem; }

  .today-game { padding-left: .75rem; padding-right: .75rem; }
  .pass-top { flex-wrap: wrap; }
  .pass-when { white-space: nowrap; }
  .pass-title { white-space: normal; font-size: var(--fs-headline); }

  #frFill { white-space: normal; }
  .fr-cta { flex-wrap: wrap; }
  .fr-cta .btn { flex: 1 0 100%; }

  .gm-p, .gm-b {
    display: grid; grid-template-columns: 1fr; row-gap: .15rem;
  }
  .gm-p .av, .gm-b .av { justify-self: start; }
  .gm-body, .gm-p, .gm-bar, .gm-foot { padding-left: .5rem; padding-right: .5rem; }
  .gm-next-cols { grid-template-columns: 1fr; }

  #agClose .i, #frClose .i, .gm-x .i { width: 48px; height: 48px; }

  .who-row { gap: .15rem; padding-left: .1rem; padding-right: .1rem; }
  .who-row .av { width: 1.4rem; height: 1.4rem; }

  #planLineups .prow { flex-wrap: wrap; }
  #planLineups .prow-t { flex-basis: 100%; }
  #planLineups .prow-v { flex: 1 1 0; }
}

@media (orientation: landscape) and (max-height: 560px) {
  .bar { padding-top: calc(.3rem + env(safe-area-inset-top)); padding-bottom: .3rem; }
  .dayhead { margin-bottom: .7rem; }
  .dayhead .game-h1 { font-size: var(--fs-sentence); }
  .actionbar { padding-top: .35rem; padding-bottom: calc(.35rem + env(safe-area-max-inset-bottom, env(safe-area-inset-bottom))); }
  .ab-main { min-height: 48px; }
  .wrap { padding-bottom: 3.6rem; }
  body:has(#resumeBar:not([hidden])) .wrap { padding-bottom: max(3.6rem, calc(var(--ab-h, 0px) + 1.5rem)); }
}

@media (pointer: coarse), screen and (max-width: 620px) {
  .btn, .plr, .chip { min-height: 48px; }
  .btn.icon { min-width: 48px; }
  .lockbtn { min-width: 48px; min-height: 48px; }
  .srow { grid-template-columns: 4.6rem 1fr 4.1rem 48px; }
  .tld-x, .gm-x, .bsheet-close { min-width: 48px; min-height: 48px; }
  .gm-b, .gm-p { min-height: 48px; }
  .gm-exit { display: grid; }
  input[type="text"], input[type="number"], select { min-height: 48px; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .seg button.on, .seg button[aria-selected="true"],
  .plr.on,
  .opt[aria-checked="true"],
  .chip.sel,
  .gm-p.picked,
  .color-opt.on {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
  .tour-dots i.on, .flow-prog i.on, .gm-dot.now::before {
    outline: 1px solid Highlight;
  }
  input[switch]::before, input[switch]::after {
    border: 1px solid CanvasText;
  }
  .tl-blk {
    border: 1px solid CanvasText;
  }
}


.sn-empty { margin: 0; }
#daySection { margin-bottom: 0; }
.sn-row { --barrow-cols: minmax(0, 9rem) 1fr 3rem; --barrow-track-h: .4rem; --barrow-track: var(--line-2);
  padding: .5rem .1rem; border-bottom: 1px solid var(--line); }
.sn-name { min-width: 0; }
.sn-nm { display: block; font-size: var(--fs-body); font-weight: 500; overflow-wrap: break-word; }
.sn-nm.gone { color: var(--muted); font-style: italic; }
.sn-track { position: relative; }
.sn-fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; }
.sn-min { font-weight: 600; font-size: var(--fs-body); }
.sn-list .sn-row { --barrow-track-h: .5rem; --barrow-track: var(--track);
  min-height: 1.875rem; padding: 0 1rem; border-bottom: 0; }
.sn-list .sn-nm { font-size: var(--fs-secondary); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-list .sn-min { font-size: var(--fs-footnote); font-weight: 400; color: var(--muted); }
.sn-h { margin: 1rem 0 .35rem; font-size: var(--fs-footnote); font-weight: 700;
  color: var(--muted); }
.sn-day { padding: 1.1rem 0 .4rem 1rem; font-size: var(--fs-footnote); color: var(--muted); }
.sn-day:first-child { padding-top: .8rem; }
.sn-day:not(:first-child), .sn-game + .sn-game { position: relative; }
.sn-day:not(:first-child)::before, .sn-game + .sn-game::before {
  content: ''; position: absolute; top: 0; left: 1rem; right: 0; height: 1px; background: var(--line); }
.sn-game > summary.prow { cursor: pointer; list-style: none; }
.sn-game > summary::-webkit-details-marker { display: none; }
.sn-gt { overflow-wrap: break-word; font-weight: 600; }
.sn-gm { color: var(--muted); font-size: var(--fs-footnote); }
.sn-body { padding: .1rem 1rem .8rem; }
.sn-body .sn-row:last-of-type { border-bottom: 0; }

.minwrap { flex: none; align-self: flex-start; display: flex; align-items: center; gap: .4rem; }
.minwrap > span { color: var(--muted); font-size: var(--fs-secondary); }
#view-settings input.minmins { flex: none; width: 4.25rem; min-height: 48px; text-align: center;
  font-variant-numeric: tabular-nums; }

#view-settings a.prow { text-decoration: none; }

.handoff-qr { width: min(100%, 20rem); aspect-ratio: 1; margin: 1rem auto 0; box-sizing: border-box;
  padding: 1rem; background: #fff;
  border-radius: .5rem; }
.handoff-qr svg { display: block; width: 100%; height: 100%; }
ul.handoff-names { list-style: none; margin: 0; padding: .25rem 2rem 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem;
  font-size: var(--fs-footnote); color: var(--muted); }
.handoff-names li { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
