  body { background: var(--mist); }
  .phone { max-width: 430px; min-height: 100vh; margin: 0 auto; background: var(--mist); position: relative; padding-bottom: 84px; }

  /* header: the one dark band, carries the logo and greeting */
  .hello { background: var(--ink); color: #fff; padding: 18px 20px 26px; border-radius: 0 0 var(--r-sheet) var(--r-sheet); }
  .hello-top { display: flex; align-items: center; justify-content: space-between; }
  .brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: var(--fs-sm); color: #fff; text-decoration: none; }
  .brand img { width: 26px; height: auto; }
  .ndot { position: absolute; top: 4px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--lime, #d7ef3b); }
  .nrow .when { width: 92px; flex: none; font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.3; }
  .sw { width: 44px; height: 26px; border-radius: 999px; border: 0; background: var(--line-2); position: relative; flex: none; cursor: pointer; }
  .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
  .sw[aria-checked="true"] { background: var(--fairway); } .sw[aria-checked="true"]::after { left: 21px; }
  .how { font-size: var(--fs-xs); color: var(--ink-3); margin-top: 2px; }
  .me { width: 34px; height: 34px; border-radius: 50%; background: #3a3536; color: #fff; display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 700; border: 0; }
  .hello h1 { margin: 22px 0 2px; font-size: var(--fs-2xl); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
  .hello p { margin: 0; color: #bdb8b6; font-size: var(--fs-md); }

  .pagehead { padding: 18px 20px 6px; display: flex; align-items: center; gap: 10px; }
  .pagehead h1 { margin: 0; font-size: var(--fs-xl); font-weight: 700; }
  .back { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--paper); display: grid; place-items: center; cursor: pointer; }

  .section { padding: 0 16px; margin-top: 22px; }
  .section > h2 { font-size: var(--fs-lg); margin: 0 4px 10px; font-weight: 700; }
  .card { background: var(--paper); border-radius: var(--r-card); padding: 16px; }
  .card + .card { margin-top: 10px; }

  /* next lesson: date block + details */
  .next { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; margin-top: -14px; box-shadow: var(--shadow-lift); }
  .datebox { border-radius: 12px; background: var(--lime); text-align: center; padding: 8px 0 9px; line-height: 1.1; }
  .datebox .db-dow { font-size: var(--fs-xs); font-weight: 600; }
  .datebox .db-day { font-size: var(--fs-2xl); font-weight: 700; }
  .datebox .db-mon { font-size: var(--fs-xs); }
  .next h3 { margin: 2px 0 2px; font-size: var(--fs-lg); }
  .next .actions { grid-column: 1 / -1; display: flex; gap: 8px; }
  .next .actions .btn { flex: 1; }

  .pkg-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
  .pkg-head h3 { margin: 0; font-size: var(--fs-lg); }
  .pkg-meta { font-size: var(--fs-sm); color: var(--ink-2); margin: 2px 0 14px; }
  .counts { display: flex; gap: 18px; margin: 14px 0 4px; font-size: var(--fs-sm); color: var(--ink-2); }
  .counts b { display: block; font-size: var(--fs-xl); color: var(--ink); line-height: 1.1; }

  .row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--paper); border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; cursor: pointer; }
  .list { border-radius: var(--r-card); overflow: hidden; }
  .list .row:last-child { border-bottom: 0; }
  .row .grow { flex: 1; min-width: 0; }
  .row .title { font-weight: 600; }
  .row .sub { font-size: var(--fs-sm); color: var(--ink-2); }
  .price { text-align: right; font-weight: 700; white-space: nowrap; }
  .price small { display: block; font-weight: 400; font-size: var(--fs-xs); color: var(--ink-3); }

  /* steps: the booking flow really is a sequence */
  .steps { display: flex; gap: 6px; padding: 4px 20px 0; }
  .steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--line-2); }
  .steps span.on { background: var(--fairway); }
  .steplabel { padding: 8px 20px 0; font-size: var(--fs-sm); color: var(--ink-2); }

  .choice { display: flex; gap: 12px; align-items: start; padding: 16px; border-radius: var(--r-card); background: var(--paper); border: 2px solid transparent; cursor: pointer; width: 100%; text-align: left; }
  .choice + .choice { margin-top: 10px; }
  .choice[aria-checked="true"] { border-color: var(--fairway); }
  .choice[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
  .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; margin-top: 1px; display: grid; place-items: center; }
  .choice[aria-checked="true"] .radio { border-color: var(--fairway); }
  .choice[aria-checked="true"] .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--fairway); }

  .coach { display: flex; align-items: center; gap: 12px; }
  .week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
  .day { border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 8px 0; text-align: center; cursor: pointer; line-height: 1.15; }
  .day .d1 { font-size: var(--fs-xs); color: var(--ink-2); }
  .day .d2 { font-size: var(--fs-lg); font-weight: 700; margin: 2px 0; }
  .day .d3 { font-size: 11px; color: var(--fairway); font-weight: 600; }
  .day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
  .day[aria-pressed="true"] .d1, .day[aria-pressed="true"] .d3 { color: var(--lime); }
  .day:disabled { background: transparent; cursor: not-allowed; }
  .day:disabled .d2 { color: var(--ink-3); }
  .day:disabled .d3 { color: var(--ink-3); font-weight: 400; }
  .slotgroup { margin-top: 18px; }
  .slotgroup h3 { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); margin: 0 4px 8px; }
  .slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .slot { min-height: 44px; border-radius: var(--r-ctl); border: 1px solid var(--line-2); background: var(--paper); font-weight: 600; cursor: pointer; }
  .slot[aria-pressed="true"] { background: var(--fairway); border-color: var(--fairway); color: #fff; }

  .sticky { position: fixed; left: 50%; transform: translateX(-50%); bottom: 72px; width: min(430px, 100%); padding: 12px 16px; background: linear-gradient(to top, var(--mist) 70%, transparent); }

  .summary dl { display: grid; grid-template-columns: 96px 1fr; gap: 10px 12px; margin: 0; }
  .summary dt { color: var(--ink-2); font-size: var(--fs-sm); padding-top: 1px; }
  .summary dd { margin: 0; font-weight: 600; }
  .note { font-size: var(--fs-sm); color: var(--ink-2); background: var(--paper); border-radius: var(--r-card); padding: 14px 16px; margin-top: 10px; }

  .done-hero { text-align: center; padding: 48px 24px 10px; }
  .tick { width: 72px; height: 72px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; margin: 0 auto 18px; animation: pop .35s ease-out; }
  @keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
  .done-hero h1 { margin: 0 0 6px; font-size: var(--fs-2xl); }

  .seg { display: flex; background: #e6e7e1; border-radius: 999px; padding: 4px; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .seg button { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 8px 12px; font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; cursor: pointer; color: var(--ink-2); }
  .seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
  .seg.dark { background: #3a3536; }
  .seg.dark button { color: #cfcac8; }
  .seg.dark button[aria-pressed="true"] { background: #fff; color: var(--ink); }
  .pill-note { display: inline-block; margin-top: 3px; font-size: 11px; font-weight: 600; color: var(--t-trial); background: var(--t-trial-bg); border-radius: 6px; padding: 1px 6px; }

  .sheet-bg { position: fixed; inset: 0; background: rgba(35,31,32,.45); display: none; z-index: 30; }
  .sheet { position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 100%); width: min(430px, 100%); background: var(--paper); border-radius: var(--r-sheet) var(--r-sheet) 0 0; padding: 10px 20px 28px; z-index: 31; transition: transform .25s ease-out; max-height: 88vh; overflow: auto; }
  .sheet.open { transform: translate(-50%, 0); }
  .sheet-bg.open { display: block; }
  .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 0 auto 16px; }
  .sheet h2 { margin: 0 0 4px; font-size: var(--fs-xl); }
  .sheet ul { padding-left: 18px; margin: 12px 0 18px; color: var(--ink-2); }
  .sheet li { margin: 4px 0; }

  .tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(430px, 100%); height: 72px; background: var(--paper); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); z-index: 20; }
  .tab { display: grid; justify-items: center; align-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--ink-3); text-decoration: none; }
  .tab svg { width: 24px; height: 24px; }
  .tab[aria-current="page"] { color: var(--ink); }
  .tab[aria-current="page"] svg { color: var(--fairway); }

  .install { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; }
  .install .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--ink); display: grid; place-items: center; }
  .install .ico img { width: 28px; }
  .install h3 { margin: 0; font-size: var(--fs-md); }
  .install p { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--ink-2); }
  .install .acts { grid-column: 1 / -1; display: flex; gap: 8px; }
  .install .acts .btn { flex: 1; }
  .howto { counter-reset: s; list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 10px; }
  .howto li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; color: var(--ink); }
  .howto li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-weight: 700; font-size: var(--fs-sm); }
  .howto svg { width: 18px; height: 18px; vertical-align: -3px; }
  .switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .switch .tg { width: 48px; height: 28px; border-radius: 999px; background: var(--line-2); border: 0; position: relative; cursor: pointer; flex: none; }
  .switch .tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; }
  .switch .tg[aria-checked="true"] { background: var(--fairway); }
  .switch .tg[aria-checked="true"]::after { transform: translateX(20px); }
  .weeks { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
  .weeks button { min-width: 44px; min-height: 36px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); font-weight: 600; cursor: pointer; }
  .weeks button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
  .dates { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: var(--fs-sm); }
  .dates li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--mist); }
  .dates .ok { color: var(--fairway); font-weight: 600; } .dates .no { color: var(--expired); font-weight: 600; }
  .past .row .when { width: 72px; flex: none; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.25; }
  .mark { font-size: var(--fs-xs); font-weight: 600; }
  .mark.ok { color: var(--fairway); }
  .mark.miss { color: var(--expired); }
  .form { display: grid; gap: 14px; background: var(--paper); border-radius: var(--r-card); padding: 18px 16px; }
  .form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .form .dob { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; }
  .form .radios { display: flex; gap: 18px; font-size: var(--fs-md); }
  .form .radios label, .form .consent { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; color: var(--ink); }
  .gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border-radius: 999px;
    background: #fff; border: 1px solid #747775; color: #1f1f1f; font-weight: 600; text-decoration: none; }
  .gbtn:focus-visible { outline: 3px solid var(--fairway-soft); outline-offset: 2px; }
  .or { display: flex; align-items: center; gap: 12px; margin: 16px 4px; color: var(--ink-3); font-size: var(--fs-sm); }
  .or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
  .gacct { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--mist); font-size: var(--fs-sm); }
  .form input[type=radio], .form input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--fairway); flex: none; margin: 1px 0 0; }

/* ---- added for the live app (not in the design preview) ---- */
.toast { position: fixed; left: 50%; bottom: 88px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 60; transition: transform .2s ease-out, opacity .2s; max-width: 92vw; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.err { background: var(--expired); }
.loading { padding: 60px 20px; text-align: center; color: var(--ink-3); }
.empty { padding: 18px 16px; color: var(--ink-2); font-size: var(--fs-sm); background: var(--paper); border-radius: var(--r-card); }
.weeknav { display: flex; justify-content: space-between; align-items: center; margin: 0 4px 10px; }
.weeknav button { border: 1px solid var(--line-2); background: var(--paper); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: var(--fs-sm); cursor: pointer; }
.weeknav button:disabled { opacity: .4; cursor: not-allowed; }
.devbar { position: fixed; top: 0; right: 0; z-index: 80; background: #fff3c4; border: 1px solid #e0c56b; border-radius: 0 0 0 10px; padding: 4px 8px; font-size: 12px; }
.devbar select { font-size: 12px; }
.coachpick { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; }
.coachpick img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.coachpick .avatar { width: 56px; height: 56px; font-size: var(--fs-lg); }
.sharerow { display: grid; grid-template-columns: 1fr 92px; gap: 8px; margin-bottom: 8px; }
.sharerow .full { grid-column: 1 / -1; }
.signin { padding: 24px 16px; }
.signin .brandrow { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 18px; }
.signin .brandrow img { width: 30px; }
  .sharewith { font-size: var(--fs-sm); color: var(--ink-2); margin-top: 10px; line-height: 1.5; }
.gslot { display: flex; justify-content: center; min-height: 44px; }   /* Google draws its button here */

/* ------------------------------------------------------------------------------------------------------------
   Wide screens (PC, 2026-11-01): the same screens, laid out for a desktop. Below 960px nothing here applies, so the
   phone layout above stays exactly as it is. Navigation moves from the bottom bar to a top bar.
   ------------------------------------------------------------------------------------------------------------ */
  /* package terms before paying (2026-11-01) */
  dialog.terms { border: 0; border-radius: var(--r-sheet); padding: 22px 20px 18px; width: min(460px, calc(100vw - 32px)); max-height: 88vh; overflow: auto; background: var(--paper); color: var(--ink); }
  dialog.terms::backdrop { background: rgba(20, 18, 18, .45); }
  dialog.terms h2 { margin: 0 0 10px; font-size: var(--fs-lg); }
  dialog.terms ol { margin: 0 0 14px; padding-left: 20px; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.5; }
  dialog.terms li + li { margin-top: 8px; }
  dialog.terms .agree { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); font-weight: 600; background: var(--mist); border-radius: 12px; padding: 12px; cursor: pointer; }
  dialog.terms .agree input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--fairway); }
  dialog.terms .actions { display: flex; gap: 8px; margin-top: 14px; }
  dialog.terms .actions .btn { flex: 1; }

@media (max-width: 959.98px) { .wide-only { display: none !important; } }
@media (min-width: 960px) {
  .phone { max-width: 1000px; padding: 76px 32px 48px; }
  /* 'add to home screen' is a phone thing: not on a PC */
  .section:has(> .install), .install, [data-act="install"] { display: none !important; }
  .tabbar { top: 0; bottom: auto; left: 0; transform: none; width: 100%; height: 60px; border-top: 0; border-bottom: 1px solid var(--line);
    display: flex; justify-content: center; gap: 4px; padding: 0 24px; }
  .tabbar[hidden] { display: none; }   /* signed out: no menu, as on the phone */
  .tab { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); padding: 0 18px; border-radius: 999px; margin: 10px 0; }
  .tab svg { width: 20px; height: 20px; }
  .tab:hover { background: var(--mist); color: var(--ink); }
  .tab[aria-current="page"] { background: var(--mist); }
  .toast { bottom: 28px; }
  .sheet { width: min(560px, 100%); }
  .sticky { bottom: 0; width: min(720px, 100%); }   /* no bottom bar on a PC */
  .hello { border-radius: var(--r-sheet); padding: 20px 28px 24px; }
  .hello h1 { margin-top: 14px; }
  .section { padding: 0; }
  .pagehead { padding: 8px 0 6px; }

  /* screens that read as one column stay one column, centred and not too wide */
  #view[data-route="book"], #view[data-route="signin"], #view[data-route="signup"], #view[data-route="alerts"],
  #view[data-route="settings"], #view[data-route="account"] { max-width: 720px; margin: 0 auto; }

  /* home: greeting across the top; next lesson and package on the left (wider), 'more' on the right */
  /* two columns that each stack on their own and end on the same line: the last card in each fills the rest */
  #view[data-route="home"] { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: 24px; align-items: stretch; }
  #view[data-route="home"] > .hello, #view[data-route="home"] > .devbar { grid-column: 1 / -1; }
  #view[data-route="home"] .maincol, #view[data-route="home"] .sidecol { display: flex; flex-direction: column; }
  #view[data-route="home"] .maincol > .section:last-child, #view[data-route="home"] .sidecol > .section:last-child { flex: 1; display: flex; flex-direction: column; }
  #view[data-route="home"] .maincol > .section:last-child > .card, #view[data-route="home"] .maincol > .section:last-child > .empty { flex: 1; }
  #view[data-route="home"] .sidecol > .section:last-child > .list { flex: 1; background: var(--paper); }
  #view[data-route="home"] .next { margin-top: 0; }
  .minical { padding: 14px 16px 12px; }
  .mc-dow, .mc-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: 4px; }
  .mc-dow span { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; padding-bottom: 4px; }
  .mc-days > * { display: grid; place-items: center; height: 34px; border-radius: 10px; font-size: var(--fs-sm); color: var(--ink-2); text-decoration: none; }
  .mc-days .today { box-shadow: inset 0 0 0 1.5px var(--line-2); }
  .mc-days .has { background: var(--mist); color: var(--ink); font-weight: 700; }
  .mc-days .nx { background: var(--lime); color: var(--ink); font-weight: 700; }
  .mc-days a:hover { box-shadow: inset 0 0 0 1.5px var(--fairway); }
  .mc-key { display: flex; gap: 16px; margin-top: 10px; font-size: var(--fs-xs); color: var(--ink-3); }
  .mc-key .k { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
  .mc-key .k.nx { background: var(--lime); } .mc-key .k.has { background: var(--mist); box-shadow: inset 0 0 0 1px var(--line-2); }

  /* my lessons: lessons (coming up, past) on the left, packages on the right */
  #view[data-route="lessons"] { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; align-items: start; grid-auto-flow: row dense; }
  #view[data-route="lessons"] > .pagehead, #view[data-route="lessons"] > .devbar, #view[data-route="lessons"] > .pagehead + .section { grid-column: 1 / -1; }
  #view[data-route="lessons"] > .section { grid-column: 1; }
  #view[data-route="lessons"] > .section:has(> article.card, > .empty) { grid-column: 2; grid-row: span 3; }

  /* lessons and prices: the price list becomes cards in three columns */
  #view[data-route="prices"] { max-width: 1000px; margin: 0 auto; }
  #view[data-route="prices"] .list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; border-radius: 0; overflow: visible; }
  #view[data-route="prices"] .list .row { background: var(--paper); border-radius: var(--r-card); border-bottom: 0 !important; align-items: flex-start; }
  #view[data-route="prices"] .seg { max-width: 520px; }
}
