/* MPH: the family app and the coach app. Phone first: app bar, bottom tabs, sheets, 44px taps, 16px inputs. */
html.app, html.app body { background: var(--cream); }
.app-bar { position: sticky; top: 0; z-index: 40; background: var(--ink); color: #fff; border-bottom: 3px solid var(--ox); padding-top: env(safe-area-inset-top); }
.app-bar .in { display: flex; align-items: center; gap: 12px; min-height: 56px; max-width: 980px; margin: 0 auto; padding: 0 16px; }
.app-bar .mark b { font-size: 20px; } .app-bar .mark small { font-size: 7px; }
.app-bar h1 { flex: 1; margin: 0; font: 700 12px/1 var(--f-label); letter-spacing: .22em; text-transform: uppercase; color: var(--parchment); text-align: right; }
.app-bar .site-link { color: var(--parchment); font: 700 11px var(--f-label); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; padding: 14px 0; }
.test-ribbon { background: #f3d36b; color: #2a2108; font: 700 12px/1.45 var(--f-label); letter-spacing: .04em; padding: 8px 16px; text-align: center; }
.tabs { display: flex; gap: 4px; max-width: 980px; margin: 0 auto; padding: 14px 16px 0; }
.tabs a { flex: 1; text-align: center; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font: 700 12px var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-on-cream); border-bottom: 3px solid transparent; }
.tabs a.now { color: var(--ink); border-color: var(--ox); }
.tabs svg { width: 20px; height: 20px; }
main.app-main { max-width: 980px; margin: 0 auto; padding: 18px 16px 120px; }
@media (max-width: 699px) {
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--ink); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-top: 3px solid var(--ox); max-width: none; }
  .tabs a { flex-direction: column; gap: 4px; color: var(--muted-on-navy); font-size: 10px; letter-spacing: .12em; border: 0; min-height: 52px; }
  .tabs a.now { color: #fff; }
  .tabs a.now svg { color: #F2545F; }
  main.app-main { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
}
.lead { font: 400 15px/1.5 var(--f-body); color: var(--muted-on-cream); margin: 0 0 18px; }
.eyebrow { font: 700 11px/1.2 var(--f-label); letter-spacing: .22em; text-transform: uppercase; color: var(--ox); margin: 0 0 8px; }
.h { font: 900 clamp(30px, 8vw, 46px)/.95 var(--f-head); text-transform: uppercase; margin: 0 0 10px; color: var(--ink); }
.card { background: #f7f2e6; border: 1px solid var(--parchment); border-top: 3px solid var(--ink); padding: 18px; margin: 0 0 14px; }
.card.navy { background: var(--ink); color: #fff; border-color: var(--ink); border-top-color: var(--ox); }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted-on-cream); } .small { font-size: 13px; }
.pill { display: inline-block; font: 700 10px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; padding: 5px 8px; border: 1px solid currentColor; }
.pill.sample { color: #7a5c00; background: #fbecb5; border-color: #e3c25c; }
.pill.ok { color: #1f5a2c; } .pill.warn { color: var(--ox); } .pill.off { color: #6b6357; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 0 -16px 14px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.chips button { flex: none; min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); background: transparent; font: 700 12px var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.chips button.now { background: var(--ink); color: #fff; }
.list { border-top: 2px solid var(--ink); }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--parchment); min-height: 60px; }
.item .when { font: 700 15px/1.3 var(--f-body); }
.item .sub { font: 400 13px/1.4 var(--f-label); color: var(--muted-on-cream); }
.item.off { opacity: .5; }
.tick { width: 28px; height: 28px; flex: none; border: 2px solid var(--ink); display: grid; place-items: center; background: #fff; }
.tick.on { background: var(--ox); border-color: var(--ox); color: #fff; }
.tick svg { width: 18px; height: 18px; }
button.item { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--parchment); font: inherit; color: inherit; cursor: pointer; }
.price { font: 700 15px var(--f-label); white-space: nowrap; }
label.f { display: block; margin: 0 0 12px; font: 700 11px/1.2 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-on-cream); }
label.f input, label.f select, label.f textarea { display: block; width: 100%; margin-top: 6px; min-height: 48px; padding: 10px 12px; font: 400 16px var(--f-body); color: var(--ink); background: #fff; border: 1px solid var(--tan); border-radius: 0; }
label.f textarea { min-height: 96px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-small { min-height: 44px; padding: 0 14px; font-size: 11px; }
.err { background: #f6dede; border-left: 4px solid var(--ox); padding: 10px 12px; color: #4a0a14; margin: 0 0 12px; font-size: 14px; }
.okmsg { background: #e1efdf; border-left: 4px solid #2e6b39; padding: 10px 12px; color: #173d1e; margin: 0 0 12px; font-size: 14px; }
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; background: var(--cream); border-top: 2px solid var(--ink); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.cartbar .in { max-width: 980px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
@media (max-width: 699px) { .cartbar { bottom: calc(70px + env(safe-area-inset-bottom)); padding-bottom: 10px; } }
.sheet-back { position: fixed; inset: 0; z-index: 60; background: rgba(10, 18, 32, .55); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--cream); width: 100%; max-width: 620px; max-height: 88vh; overflow: auto; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); border-top: 4px solid var(--ox); }
@media (min-width: 700px) { .sheet-back { align-items: center; } .sheet { max-height: 84vh; } }
.sheet h2 { font: 900 28px/1 var(--f-head); text-transform: uppercase; margin: 0 0 12px; }
.sheet .acts { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.sheet .acts .btn { flex: 1; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 70; background: var(--ink); color: #fff; padding: 12px 18px; font: 700 13px var(--f-label); max-width: calc(100% - 32px); }
.door { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 800px) { .door { grid-template-columns: 1.1fr .9fr; } }
.door img { max-width: 320px; margin: 0 auto; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 18px; }
.steps li { counter-increment: s; position: relative; padding: 0 0 12px 44px; font-size: 15px; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; font: 700 14px var(--f-label); color: var(--ox); border: 2px solid var(--ox); width: 32px; height: 26px; display: grid; place-items: center; }
.stat { font: 900 34px/1 var(--f-head); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.daygroup { font: 700 12px/1 var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--ox); margin: 22px 0 6px; }
.bar { height: 6px; background: var(--parchment); margin-top: 6px; } .bar i { display: block; height: 100%; background: var(--ox); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; } table.t th, table.t td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--parchment); vertical-align: top; }
table.t th { font: 700 10px var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-on-cream); }
.scroll-x { overflow-x: auto; }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.days label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 1px solid var(--tan); background: #fff; font: 700 12px var(--f-label); }
.hidden { display: none !important; }
.viewas { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; background: var(--ox); color: #fff; padding: 10px 16px; font: 400 14px/1.4 var(--f-body); }
.gear-img { width: 120px; height: 120px; object-fit: cover; flex: none; border: 1px solid var(--parchment); background: #fff; }
@media (max-width: 420px) { .gear-img { width: 92px; height: 92px; } }

/* A skater's own divisions: a dot on the chip (2026-11-06) */
.chips button.mine::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ox); margin-right: 8px; vertical-align: middle; }
.chips button.mine.now::before { background: #F2545F; }

/* Toasts sit at the top, never over a sheet's buttons or the cart (bake-off fix 2026-11-06) */
.toast { bottom: auto; top: calc(12px + env(safe-area-inset-top)); pointer-events: none; }
.sheet:focus { outline: none; }
.item.off-full { opacity: .85; }
.receipt .item { min-height: 52px; }
.announce-bar { background: var(--ox); color: #fff; text-align: center; font: 700 13px/1.4 var(--f-label); letter-spacing: .06em; padding: 10px 16px; }
.announce-bar a { color: #fff; }

/* ---- MPH phone app layer: back button, no signal, pull to refresh, sample strip, the walkthrough, the first screen ---- */
.app-bar .mark { display: flex; flex-direction: column; text-decoration: none; color: #fff; }
.app-bar .mark b { font: 800 24px/1 var(--f-mark); letter-spacing: .04em; border-bottom: 3px solid var(--ox); padding-bottom: 2px; align-self: flex-start; }
.app-bar .mark small { font: 600 8px/1 var(--f-label); letter-spacing: .22em; margin-top: 4px; color: var(--parchment); }
.app-back { display: grid; place-items: center; width: 44px; height: 44px; margin-left: -10px; background: none; border: 0; color: #fff; cursor: pointer; }
.app-back[hidden] { display: none; }
.app-back svg { width: 24px; height: 24px; }
.offbar { background: #f3d36b; color: #2a2108; font: 600 13px/1.4 var(--f-label); padding: 8px 16px; text-align: center; }
.offbar[hidden] { display: none; }
.pull { height: 0; overflow: hidden; display: grid; place-items: center; font: 600 13px var(--f-label); color: var(--muted-on-cream); transition: height .15s; }
.sample-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--navy); color: #fff; padding: 6px 16px; font: 600 13px/1.3 var(--f-label); }
.sample-strip .btn { min-height: 44px; }
.purpose { font: 400 15px/1.45 var(--f-body); color: var(--muted-on-cream); margin: -2px 0 14px; }
.rink { display: inline-flex; align-items: center; gap: 4px; font: 600 13px/1.4 var(--f-label); color: var(--ink); }
.rink svg { width: 14px; height: 14px; color: var(--ox); flex: none; }
.card { background: #fff; border-color: var(--cream-2); }
.door { display: block; max-width: 620px; }
.door .h .ox { color: var(--ox); }
.who-h { font: 800 26px/1 var(--f-head); text-transform: uppercase; margin: 0 0 8px; }
.who p { margin: 0 0 14px; }
.card.navy.who p { color: var(--parchment); }
.who .try { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--cream-2); }
.first-steps .steps { margin-bottom: 14px; }
.tour { position: fixed; z-index: 80; left: 12px; right: 12px; top: calc(66px + env(safe-area-inset-top)); max-width: 460px; margin: 0 auto; background: var(--navy); color: #fff; border-top: 4px solid var(--ox); padding: 14px 16px; box-shadow: 0 12px 30px -10px rgba(10, 22, 48, .55); }
.tour small { font: 600 11px var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--parchment); }
.tour strong { display: block; font: 800 22px/1.05 var(--f-head); text-transform: uppercase; margin: 4px 0 6px; }
.tour p { margin: 0 0 10px; font: 400 15px/1.45 var(--f-body); }
.tour div { display: flex; gap: 8px; flex-wrap: wrap; }
.tour .btn { min-height: 44px; }
.tour .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.tour-on { outline: 3px solid var(--ox); outline-offset: 3px; }
@media (min-width: 700px) { .tour { top: auto; bottom: 24px; left: auto; right: 24px; } }
.about { padding: 32px var(--gutter) 64px; max-width: 760px; }
.about .plain { padding-left: 18px; margin: 0 0 14px; }
.about .plain li { margin-bottom: 8px; }
.about-foot { text-align: center; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); font: 600 12px var(--f-label); color: var(--muted-on-cream); }
.about-foot a { text-decoration: none; display: inline-block; min-width: 44px; min-height: 44px; line-height: 44px; }

/* video permission (2026-11-18) */
label.vid-ok { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; padding: 12px; border: 1px solid var(--tan); background: #fff; font: 400 15px/1.45 var(--f-body); color: var(--ink); cursor: pointer; }
label.vid-ok input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent, #B0263F); }

/* mph-rinks-2026-11-25 */
.rink { flex-wrap: wrap; }
.rink-addr { font-weight: 500; opacity: .78; }
.rink-addr::before { content: '· '; }
.rink-dir { font-weight: 700; color: var(--ox); text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; padding: 6px 0; }
.item .rink-addr { flex-basis: 100%; padding-left: 18px; }
.item .rink-addr::before { content: none; }
