/* SHEET PANEL (Mallory 2026-11-21): every bottom sheet is one of these, so its corners, padding, width and
   fill come from the design system in one place. .glass is Scott's frosted look (the Menu, replaceSheetBox);
   without it the sheet is solid white. A sheet sets only its own max-height / scrolling. */
.sheet-panel{background:var(--c-surface);border-radius:var(--r-sheet) var(--r-sheet) 0 0;padding:var(--sheet-pad-top) var(--sheet-pad-x) var(--sheet-pad-bottom);width:100%;max-width:var(--sheet-max-w)}
.sheet-panel.glass{--c-line:var(--c-line-glass)}
/* A sheet with a text field makes room for the keyboard itself, sliding with it (fitKeyboardSheet, 2026-11-26): its
   own surface reaches down behind the keyboard and Safari's pill and ✓ bar. */
.kb-sheet>.sheet-panel{transition:padding-bottom var(--kb-t),max-height var(--kb-t),height var(--kb-t)}
.kb-sheet.kb-on>.sheet-panel{padding-bottom:calc(var(--sheet-pad-bottom) + var(--kb))!important;max-height:calc(100% - 12px)!important}
.kb-sheet.kb-on>.skn-box{height:calc(100% - 12px)}
.sheet-panel.glass{background:color-mix(in srgb,var(--c-surface) 84%,transparent);-webkit-backdrop-filter:blur(28px) saturate(1.5);backdrop-filter:blur(28px) saturate(1.5)}
/* SHEET MENU */
.sheet-bg{display:none;position:fixed;inset:0;background:var(--c-backdrop);z-index:80;align-items:flex-end;justify-content:center}
.sheet-bg.on{display:flex}
.sheet{
  /* The in-game menu outgrew the screen (Mallory, 2026-11-05): never taller than the screen, scroll inside */
  max-height:calc(100vh - env(safe-area-inset-top) - 12px);max-height:calc(100dvh - env(safe-area-inset-top) - 12px);overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
/* Issue 051: the handle and title are the drag area (taller than 44px, reaching the sheet's top edge);
   touch-action:none so the browser doesn't scroll or refresh while the coach drags. */
.sheet-grab{margin:calc(-1 * var(--sheet-pad-top)) calc(-1 * var(--sheet-pad-x)) 0;padding:var(--sheet-pad-top) var(--sheet-pad-x) 0;min-height:48px;box-sizing:border-box;touch-action:none;cursor:grab;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.sheet-title{font-size:var(--fs-sm);font-weight:var(--fw-bold);color:var(--c-text-2);text-transform:uppercase;letter-spacing:var(--ls-caps);text-align:center;margin-bottom:12px}
/* Notes sheet (issue 061): pinned near the top so the phone keyboard never covers it; Cancel / Save bar. */
.note-bg{display:none;position:fixed;inset:0;background:var(--c-backdrop);z-index:110;align-items:flex-start;justify-content:center;padding-top:calc(env(safe-area-inset-top) + 12px)}
.note-bg.on{display:flex}
.note-bg::after{content:"";position:absolute;left:0;right:0;top:100%;height:100vh;background:var(--c-backdrop);pointer-events:none}
.note-sheet{background:var(--c-surface);border-radius:var(--r-sheet);width:calc(100% - 16px);max-width:520px;padding:4px 10px 14px;box-sizing:border-box}
.note-bar{display:flex;align-items:center;min-height:52px}
.note-bar-btn{min-width:72px;min-height:var(--tap-min);background:none;border:none;font-size:var(--fs-base);font-weight:var(--fw-semibold);color:var(--c-primary);font-family:inherit;cursor:pointer;padding:0 6px;text-align:left;-webkit-tap-highlight-color:transparent}
.note-bar-btn.note-save{text-align:right;font-weight:var(--fw-bold)}
.note-title{flex:1;text-align:center;font-size:var(--fs-base);font-weight:var(--fw-bold);color:var(--c-text)}
.note-sub{font-size:var(--fs-sm);color:var(--c-text-3);text-align:center;margin:0 6px 10px;line-height:1.4}
.note-text{width:100%;min-height:160px;padding:12px 14px;border:1.5px solid var(--c-line-strong);border-radius:var(--r-lg);font-size:var(--fs-input);font-family:inherit;color:var(--c-text);line-height:1.4;resize:none;outline:none;display:block;box-sizing:border-box}
.note-text:focus{border-color:var(--c-primary)}
.tag-pref{display:inline-block;font-size:var(--fs-xs);font-weight:var(--fw-bold);color:var(--c-danger);background:var(--c-danger-soft);border:1.5px solid var(--c-danger-line);border-radius:var(--r-pill);padding:.5px 5.5px;margin-top:3px;align-self:flex-start;white-space:nowrap}
.pos-badge.pb-pref{background:var(--c-danger)}
.pos-badge.pb-want{background:var(--c-ok)}
.prefs-any{font-size:var(--fs-xs);font-weight:var(--fw-regular);color:var(--c-text-3)}
.prefs-note{font-size:var(--fs-xs);color:var(--c-text-3);line-height:1.45;margin:0 2px 10px}
/* Privacy note (2026-11-14): section headings and paragraphs in its sheet; the Account sheet's link. */
.privacy-h{font-size:var(--fs-xs);font-weight:var(--fw-bold);color:var(--c-text-2);text-transform:uppercase;letter-spacing:var(--ls-caps);margin:16px 0 4px}
.privacy-p{display:block;font-size:var(--fs-sm);color:var(--c-text);line-height:1.5}
a.privacy-p{color:var(--c-primary);font-weight:var(--fw-bold);padding:10px 0;min-height:var(--tap-min);box-sizing:border-box}
.privacy-link{background:none;border:none;padding:12px 4px;margin:-12px -4px;min-height:var(--tap-min);font-family:inherit;font-size:var(--fs-xs);font-weight:var(--fw-bold);color:var(--c-primary);cursor:pointer}
.acct-tabs{margin:4px 0 12px} /* Account sheet: Sign in | Create account, the app's segSlider (Mallory 2026-11-28) */
.acct-fld{position:relative;margin:0 0 10px}.acct-fld .modal-input{margin:0;padding-right:64px}
.acct-fld .modal-input.acct-bad{border-color:var(--c-danger)}
.acct-show{position:absolute;right:4px;top:50%;transform:translateY(-50%);min-height:var(--tap-min);padding:0 10px;border:none;background:none;font-family:inherit;font-size:var(--fs-sm);font-weight:var(--fw-bold);color:var(--c-primary);cursor:pointer}
.acct-known{display:flex;align-items:center;gap:8px;background:var(--c-surface-4);border-radius:var(--r-lg);padding:4px 4px 4px 14px;margin:0 0 10px;min-height:var(--tap-min)}
.acct-known b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--fs-base);font-weight:var(--fw-semibold)}
.acct-link{background:none;border:none;font-family:inherit;font-size:var(--fs-sm);font-weight:var(--fw-bold);color:var(--c-primary);min-height:var(--tap-min);padding:0 10px;cursor:pointer;flex:none}
.acct-forgot{display:block;margin:2px auto 4px}
.acct-err{font-size:var(--fs-sm);color:var(--c-danger);margin:-4px 2px 10px}.acct-err:empty{display:none}
.acct-hint{font-size:var(--fs-sm);color:var(--c-text-3);margin:-4px 2px 10px}.acct-hint.ok{color:var(--c-ok)}.acct-hint.ok::before{content:"✓ "}
.acct-status{display:flex;align-items:center;gap:8px;font-size:var(--fs-md);font-weight:var(--fw-semibold);color:var(--c-ok);margin:2px 0 10px}
.acct-status::before{content:"";width:8px;height:8px;border-radius:var(--r-pill);background:currentColor;flex:none}.acct-status.wait{color:var(--c-warn)}
.btn.acct-busy{display:flex;align-items:center;justify-content:center}
.acct-spin{width:18px;height:18px;box-sizing:border-box;border-radius:var(--r-pill);border:2.5px solid var(--c-on-color-faint);border-top-color:var(--c-on-color);animation:acct-spin 600ms linear infinite}
.b-outline .acct-spin{border-color:var(--c-line-strong);border-top-color:var(--c-text)}
@keyframes acct-spin{to{transform:rotate(360deg)}}
.acct-shake{animation:acct-shake 320ms cubic-bezier(.36,.07,.19,.97)}
@keyframes acct-shake{20%{transform:translateX(-6px)}40%{transform:translateX(5px)}60%{transform:translateX(-3px)}80%{transform:translateX(2px)}}
.sheet-panel.acct-resize{box-sizing:border-box;overflow:hidden!important;transition:height 300ms cubic-bezier(.32,.72,0,1)} /* the sheet's height when its content changes (Mallory 2026-11-28) */
@media (prefers-reduced-motion:reduce){.acct-shake{animation:none}.sheet-panel.acct-resize{transition:none}}
.tag-pref.tag-want{color:var(--c-ok);background:var(--c-ok-soft);border-color:var(--c-ok-line)}
/* Thumbs up / down: Player Preferences and the Coach Notes skill rows share this style; keep them in sync
   (Mallory, 2026-11-15: the 2px outline of the note sheet's buttons, the colors and icons of preferences). */
.pref-note{font-size:var(--fs-md);color:var(--c-text-2);margin-bottom:6px}
.pref-row{display:flex;align-items:center;gap:8px;padding:6px 2px;border-bottom:1px solid var(--c-line);min-height:50px}
.pref-l{flex:1;font-size:var(--fs-lg);font-weight:var(--fw-semibold);line-height:1.2;color:var(--c-text)}
.th2{width:52px;height:40px;border-radius:var(--r-pill);display:flex;align-items:center;justify-content:center;padding:0;flex:none;border:0;background:var(--c-surface);box-shadow:inset 0 0 0 1.5px var(--c-line-strong);color:var(--c-text-2);cursor:pointer}
.th2 .ico{width:22px;height:22px}
.th2.up.on{background:var(--c-thumb-up);color:var(--c-on-thumb-up);box-shadow:none} /* picked: the note thumbs' look */
.th2.dn.on{background:var(--c-thumb-down-soft);color:var(--c-thumb-down);box-shadow:none;border:var(--thumb-down-border)}
.th2:disabled{opacity:.35;cursor:default}
.thumb{width:44px;height:44px;border-radius:var(--r-md);border:2px solid var(--c-line-strong);background:var(--c-surface);font-size:var(--fs-2xl);line-height:1;flex-shrink:0;cursor:pointer;padding:0;filter:grayscale(1);opacity:.45;-webkit-tap-highlight-color:transparent}
.thumb.on{filter:none;opacity:1}
.thumb:disabled{opacity:.15;cursor:default}
/* 095 step 6: Coach Notes card on a saved game's summary */
/* Scott's "Coach Notes card on the Game Summary" (canvas, 2026-11-12), built 2026-11-16 */
.cn-sec{font-size:var(--fs-xs);font-weight:var(--fw-bold);color:var(--c-text-2);text-transform:uppercase;letter-spacing:var(--ls-caps);margin:14px 0 6px}
.cn-top{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:var(--fs-sm);color:var(--c-text);padding:3px 0}
.cn-top b{font-weight:var(--fw-bold);white-space:nowrap}
.cn-top .cn-skill{flex:1;min-width:0} /* the thumb circle, then the skill, then the players (Mallory 2026-11-24) */
.cn-row .ps-tc{flex:none}
.cn-row{display:flex;align-items:center;gap:8px;min-height:var(--tap-min);border-top:1px solid var(--c-line);cursor:pointer;-webkit-tap-highlight-color:transparent}
.cn-row.none{cursor:default}
.cn-name{flex:1;min-width:0;font-size:var(--fs-md);font-weight:var(--fw-bold);color:var(--c-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cn-row.none .cn-name{color:var(--c-text-3)}
.cn-nonote{font-size:var(--fs-xs);font-weight:var(--fw-semibold);color:var(--c-text-3)}
.sk-faults{display:flex;flex-wrap:wrap;gap:6px;padding:6px 0 10px 4px} /* 👎 details (095 library v2) */
.sk-fault{min-height:var(--tap-min);padding:6px 12px;border-radius:var(--r-pill);border:1.5px solid var(--c-warn-line);background:var(--c-surface);color:var(--c-text-2);font:inherit;font-size:var(--fs-sm);font-weight:var(--fw-semibold);cursor:pointer}
.sk-fault.on{background:var(--c-warn-soft);color:var(--c-warn);border-color:var(--c-warn)}
.sk-fault.good{border-color:var(--c-ok-line)} /* 👍 choices (library v3, log 114) */
.sk-fault.good.on{background:var(--c-ok-soft);color:var(--c-ok);border-color:var(--c-ok)}
.sk-sec{position:sticky;top:0;z-index:1;margin:10px calc(-1 * var(--sheet-pad-x)) 0;padding:7px var(--sheet-pad-x);background:var(--c-section-band);font-size:var(--fs-sm);font-weight:var(--fw-bold);color:var(--c-text-2);text-transform:uppercase;letter-spacing:var(--ls-caps)} /* Errors / Mistakes sections: a sand band across the sheet that stays at the top of the list while its section scrolls, so it stands out from the "counts as" lines (Mallory 2026-11-28, option B) */
.skn-rows>.sk-secbox:first-child>.sk-sec{margin-top:6px} /* .sk-secbox: one section, so its header pins only within it */
.sk-via{display:block;font-size:var(--fs-xs);font-weight:var(--fw-regular);color:var(--c-text-3);margin-top:2px} /* "counts as: …", "matched …" under a skill */
.ps-link{cursor:pointer;-webkit-tap-highlight-color:transparent}.ps-link:active td{background:var(--c-surface-2)} /* player season page (095) */
#ps-body .sum-card{margin-left:0;margin-right:0}
#s-player-season #ps-body,#s-history-detail #history-detail-body{padding-top:6px}#ps-body>.sum-card:first-child,#history-detail-body>.sum-card:first-child{margin-top:0} /* the first card 6px under the top bar, as on Home (Mallory 2026-11-22) */
.ps-row{padding:10px 0;border-top:1px solid var(--c-line)}.sum-lbl+.ps-row{border-top:none;padding-top:2px}
.ps-line{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ps-skill{font-size:var(--fs-md);font-weight:var(--fw-bold);color:var(--c-text);min-width:0}
.ps-right{font-size:var(--fs-sm);font-weight:var(--fw-bold);color:var(--c-text-2);white-space:nowrap;flex-shrink:0;display:inline-flex;align-items:center;gap:10px}
/* the player season page's thumbs (Mallory 2026-11-24): Season Stats' circles, small, with the count */
.ps-tc{display:inline-flex;align-items:center;gap:5px;font-size:var(--fs-md);font-weight:var(--fw-bold);color:var(--c-text)}
.xn-view{width:100%;margin:8px 0 2px} /* Season Stats peek: View Owen's Season (Mallory 2026-11-24) */
.ps-tc-n{min-width:2ch;text-align:right;font-variant-numeric:tabular-nums} /* circles line up whether the count is 1 or 15 */
.xi.xi-sm{width:24px;height:24px}.xi.xi-sm .ico{width:14px;height:14px}.xi.xi-sm.n,.xi.xi-xs.n{border-width:1.5px}
.xi.xi-xs{width:20px;height:20px}.xi.xi-xs .ico{width:12px;height:12px} /* thumbCircle sizes: md 32 (default .xi), sm 24, xs 20 */
.ps-dots{display:flex;flex-wrap:wrap;gap:3px 8px;margin-top:6px}.ps-game{display:inline-flex;gap:3px}
.ps-dot{width:10px;height:10px;border-radius:var(--r-round)}.ps-dot.g{background:var(--c-ok)}.ps-dot.n{background:var(--c-warn)}
.ps-detail{font-size:var(--fs-sm);color:var(--c-text-3);margin-top:3px}
.ps-coming{font-size:var(--fs-xs);font-weight:var(--fw-bold);color:var(--c-ok);background:var(--c-ok-soft);border:1.5px solid var(--c-ok-line);border-radius:var(--r-pill);padding:.5px 6.5px;margin-left:6px;white-space:nowrap}
.ps-empty{font-size:var(--fs-sm);color:var(--c-text-3);line-height:1.45}
.ps-more-bar{display:flex;justify-content:flex-end;height:20px;margin-bottom:-6px}
.ps-more{display:inline-flex;align-items:center;justify-content:flex-end;gap:3px;min-width:44px;min-height:var(--tap-min);margin:-12px -10px -12px 0;padding:0 10px;border:none;background:none;color:var(--c-text-3);font:inherit;font-size:var(--fs-xs);font-weight:var(--fw-bold);letter-spacing:0;text-transform:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ps-chev{transition:transform .15s}.ps-more.open .ps-chev{transform:rotate(180deg)}
.sm-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px} /* Notes Summary (108) */
.sm-info{font-size:var(--fs-sm);color:var(--c-text-3);line-height:1.4;margin-bottom:8px}
.sm-text{font-size:var(--fs-sm);color:var(--c-text);line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.sm-cov{font-size:var(--fs-xs);color:var(--c-text-3);margin-top:10px}
.sm-new{font-size:var(--fs-sm);font-weight:var(--fw-bold);color:var(--c-warn);margin-top:4px}
.sm-btns{display:flex;gap:8px;margin-top:12px}
.sm-btns .btn{flex:1 1 0;min-width:0;margin:0;padding:0 4px;min-height:var(--tap-min);font-size:var(--fs-xs)}
.cn-chev{color:var(--c-line-strong);font-size:var(--fs-xl);width:14px;text-align:center}
.cn-detail{padding:0 0 10px 4px}
.cn-line{font-size:var(--fs-sm);color:var(--c-text);line-height:1.4;display:flex;align-items:center;gap:8px;padding:3px 0}
.cn-line .cn-skill{flex:1;min-width:0}
.cn-n{color:var(--c-text-3);font-weight:var(--fw-bold)}
.note-body{font-size:var(--fs-sm);color:var(--c-text);line-height:1.5;white-space:pre-wrap;word-wrap:break-word}

/* MODALS */
.modal-bg{display:none;position:fixed;inset:0;background:var(--c-backdrop);z-index:100;align-items:flex-end;justify-content:center}
.modal-bg.on{display:flex}
.modal{max-height:82vh;overflow-y:auto} /* the look: .sheet-panel */
.modal h3{font-size:var(--fs-3xl);font-weight:var(--fw-bold);color:var(--c-text);margin-bottom:4px;line-height:var(--lh-head);letter-spacing:var(--ls-head)}
.modal .ms{font-size:var(--fs-md);color:var(--c-text-2);margin-bottom:14px;line-height:1.45}
/* Subtitles of the sheets built in code (replace, return, late, injury picker...): a little room above the first row (Mallory, 2026-11-06). */
div.ms{margin-bottom:8px}
/* 106 (Mallory, 2026-11-14): every sheet's rows look like the game screen's rows: full width (the sheet's 16px
   padding cancelled), white, a line under each; the first row after anything that isn't a row gets a line above. */
.p-opt{display:flex;align-items:center;gap:10px;padding:8px var(--sheet-pad-x);background:var(--c-surface);border-bottom:1px solid var(--c-line);margin:0 calc(-1 * var(--sheet-pad-x));cursor:pointer;min-height:52px;-webkit-tap-highlight-color:transparent}
:not(.p-opt)+.p-opt{border-top:1px solid var(--c-line)}
.sec-hdr+.p-opt{border-top:none}.p-opt.has-notes{flex-wrap:wrap;row-gap:2px}.p-opt-notes{flex:0 0 100%;box-sizing:border-box;padding-bottom:4px} /* warnings: a full-width line under the row (2026-11-24) */.p-opt.two{align-items:flex-start} /* optNameLine: a two-line row's items on the name's line */
.p-opt:active{background:var(--c-surface-2)}
.p-opt.cur{background:var(--c-primary-soft)}
.p-opt .row-meta{margin-top:2px}
.p-opt.pill-in>.row-meta{flex:none;margin:0 0 0 auto;padding-left:4px;flex-wrap:nowrap} /* on the name's line, right against the counts */
.p-opt .tag-pref{margin-top:0}
.p-opt-note{font-size:var(--fs-xs);font-weight:var(--fw-bold);color:var(--c-warn)}
.p-opt-note.pc-no{color:var(--c-danger)} #pitch-count-entry .pc-over{color:var(--c-warn);font-weight:var(--fw-bold)} .cand-mid .pc-note{display:block} /* 112 step 4: may not pitch / catch today */ /* a warning that stays when the action line is hidden ("Played C already") */

.p-opt-body{display:flex;flex-direction:column;flex:1;min-width:0;gap:2px}
.p-opt-name{font-size:var(--fs-md);font-weight:var(--fw-bold);color:var(--c-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.p-opt.cur .p-opt-name{color:var(--c-primary)}
/* Replace sheet: a player already moved in this replacement, greyed and not tappable (issue 045) */
.p-opt.locked{opacity:.5;cursor:default;pointer-events:none}
.p-opt-action{font-size:var(--fs-xs);font-weight:var(--fw-regular);color:var(--c-text-3)}
/* 106: a bench row is grey like the game screen's Bench rows, its number square white (set inline in sheetOption) */
.pb-bench{background:var(--c-bench)}
/* 075: the "How many outs?" buttons, rounded squares in one centered row */
.outs-row{display:flex;justify-content:center;gap:16px;margin:20px 0 4px}
.outs-row.four{gap:10px;margin-top:8px} /* the end-of-half sheet's 0-3 (Scott) */
.eh-lbl{font-size:var(--fs-base);font-weight:var(--fw-bold);text-align:center;margin:6px 0 0}
.eh-last{text-align:center;margin:16px 0 0} /* End game or Extra inning (log 121) */
.lost-first{display:inline-block;font-size:var(--fs-xs);font-weight:var(--fw-bold);color:var(--c-infield-text);background:var(--c-infield-soft);border:1.5px solid var(--c-infield-line);border-radius:var(--r-pill);padding:.5px 5.5px;margin-top:3px;align-self:flex-start;white-space:nowrap} /* Who batted last: the 3rd batter up, the first who could have batted last (Mallory 2026-11-27) */
.sh-foot{padding:10px 0 4px}.sh-foot .btn{gap:8px}.sh-foot .b-primary .ico{width:20px;height:20px}
.outs-note{text-align:center;font-size:var(--fs-md);color:var(--c-text-2);margin:12px 0 16px;line-height:1.35}
.outs-btn{width:76px;height:76px;border-radius:var(--r-lg);border:2px solid var(--c-jersey-line);background:var(--c-surface);color:var(--c-text);font-size:var(--fs-display);font-weight:var(--fw-bold);font-family:inherit;cursor:pointer}
.outs-btn.on{background:var(--c-ink);border-color:var(--c-ink);color:var(--c-on-color)}
.outs-btn:disabled{border-color:var(--c-disabled-bg);color:var(--c-text-disabled);background:var(--c-disabled-bg);cursor:default} /* no fade: the boxes stood out too little (Mallory 2026-11-21) */
.pp{font-size:var(--fs-xs);color:var(--c-text-3);background:var(--c-surface-3);border:1.5px solid var(--c-line);border-radius:var(--r-pill);padding:.5px 5.5px;margin-left:2px}

/* TOAST */
/* Check-mark toast (Mallory, 2026-11-12): a square in the middle of the screen, slightly see-through,
   fading and scaling in and out over 0.2s each way. */
@keyframes toastIn{from{opacity:0;transform:translate(-50%,-50%) scale(.9)}}
@keyframes toastOut{to{opacity:0;transform:translate(-50%,-50%) scale(.9)}}
.toast{position:fixed;top:80px;left:50%;transform:translateX(-50%);padding:10px 22px;border-radius:var(--r-xl);font-size:var(--fs-sm);font-weight:var(--fw-bold);z-index:400;white-space:nowrap;pointer-events:none;color:var(--c-on-color);background:var(--c-toast)}

/* WALKTHROUGH */
/* Any sheet up: the page underneath doesn't scroll (Mallory, 2026-11-10; syncSheetLock) */
html.sheet-open{overflow:hidden;overscroll-behavior:none} /* the page only: overflow on body too made body its own scroll box, so a pinned card (the At bat card) let go and jumped up behind any sheet (Mallory 2026-11-22) */
/* iPhone Safari (26+) colors its status bar from the solid fixed element at the top edge (the white
   header) and doesn't re-check it when that element's color changes, so the bar stayed white over a
   sheet. A NEW solid element there is picked up (tested in the iOS 27.2 simulator, Mallory 2026-11-10):
   syncSheetLock adds #sheet-tint, a 12px strip in the dimmed header's own grey (white under the
   backdrop), when a sheet opens and removes it when the last one closes. It lies over the header's
   top padding, so it can't be seen. Help cards (.walk-bg, .6 dim) get a darker grey. */
#sheet-tint{position:fixed;top:0;left:0;right:0;height:12px;clip-path:inset(0 0 calc(12px - max(5px,min(12px,env(safe-area-inset-top,0px)))) 0);z-index:600;background:var(--c-statusbar-dim);pointer-events:none}
#sheet-tint.dark{background:var(--c-statusbar-dim-dark)}
#sheet-clear{position:fixed;top:0;left:0;right:0;height:12px;clip-path:inset(0 0 calc(12px - max(5px,min(12px,env(safe-area-inset-top,0px)))) 0);z-index:600;background:var(--c-page);pointer-events:none} /* after the last sheet closes: the bar back to the header's color (syncSheetLock) */
/* Both strips are 12px (Safari needs that: 5px left the bar white on Mallory's phone, 2026-11-24) but draw only
   within the status bar's inset, or the top 5px where there's none (regular Safari, a desktop browser): a 12px
   strip there lay over the top of the menu button and outs control, a flash after closing a sheet. The headers'
   buttons start 6px down. Safari reads the element's own background, so the clip doesn't change the bar. */
/* Safari needs the strip fully grey from its first frame, but the dim fades in over 0.1s, so for that
   moment the strip showed as a grey bar over the white header. A white cover (a pseudo-element, which
   Safari ignores for the bar color) fades away over the same 0.1s, so on screen the strip goes white to
   grey exactly like the header beside it. */
@keyframes sheetCoverOut{from{background-color:var(--c-page)}to{background-color:var(--c-page-clear)}} /* 110: the header is the page color */
#sheet-tint::after{content:"";position:absolute;inset:0;background:var(--c-surface-clear);animation:sheetCoverOut .1s linear} /* background-color like the backdrop's fade (opacity ran ahead of it) */
/* Safari fades the status bar color evenly over 0.1s (6 frames), starting the same frame (measured on a
   phone recording, Mallory 2026-11-10), so the dimming fades the same way: a backdrop fades in when it appears, and when the last sheet closes
   #sheet-fade (the same dim, untouchable) fades out instead of the page brightening at once. It starts
   5px down: Safari reads the top 4px, and a fading layer there held the bar grey until it was gone. */
@keyframes sheetDimIn{from{background-color:var(--c-backdrop-clear)}}
@keyframes sheetDimOut{to{opacity:0}}
.js-backdrop,.sheet-bg.on,.modal-bg.on,.note-bg.on,.walk-bg{animation:sheetDimIn .1s linear}
/* One sheet replacing another (Mallory, 2026-11-12): the grey stays put behind them, no fade-in again
   (syncSheetLock adds .no-dim to the new backdrop, .no-cover to a new strip). */
.no-dim{animation:none!important}
#sheet-tint.no-cover::after{animation:none}
#sheet-fade{position:fixed;top:5px;left:0;right:0;bottom:0;z-index:590;background:var(--c-backdrop);pointer-events:none;animation:sheetDimOut .1s linear .025s both}
/* .025s: Safari's status bar starts its fade about 1.5 frames after the page's first frame (Mallory's phone recording,
   2026-11-24: the page ran ~2 frames ahead, a light band under a still-grey bar over the outs and menu button). */
#sheet-fade.dark{background:var(--c-backdrop-dark)}
/* …and the header's top 5px, which #sheet-fade leaves clear, fades with it from inside the header (Safari
   reads a fixed element's own background, not its positioned children, so the bar still sees white). */
.sheet-fade-top{position:absolute;top:0;left:0;right:0;height:5px;background:var(--c-backdrop);pointer-events:none;animation:sheetDimOut .1s linear .025s both}
.sheet-fade-top.dark{background:var(--c-backdrop-dark)}
.walk-bg{position:fixed;inset:0;background:var(--c-backdrop-dark);z-index:500;display:flex;align-items:flex-end;justify-content:center}
.walk-card{} /* the look: .sheet-panel */
.walk-body{font-size:var(--fs-md);color:var(--c-text-2);line-height:1.5;margin:4px 0 16px}
/* Add to Home Screen steps (log 120) */
.a2h-step{display:flex;align-items:flex-start;gap:12px;padding:14px 0;border-bottom:1px solid var(--c-line)}
.a2h-step:last-of-type{border-bottom:none}
.a2h-n{flex:none;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:var(--r-round);background:var(--c-primary);color:var(--c-on-color);font-size:var(--fs-sm);font-weight:var(--fw-bold)}
.a2h-t{font-size:var(--fs-md);color:var(--c-text);line-height:1.4;padding-top:3px}
.a2h-t .ico{width:18px;height:18px;vertical-align:-3px;color:var(--c-primary)}
.a2h-t small{display:block;margin-top:2px;font-size:var(--fs-sm);color:var(--c-text-2)}
#fc-loaded-sheets{} /* last line: this file arrived whole (log 116; checked in gameday_app.html) */
