
:root{
  --blue:#76CAE4; --blue-deep:#247f9d; --ink:#18252c; --muted:#68767e;
  --bg:#f6fafb; --line:#d8e3e7; --white:#fff; --soft:#eef7f9;
  --green:#e4f3ea; --green-ink:#2c6a50; --amber:#fff1d6; --amber-ink:#855d19;
  --danger:#8d4343; --danger-bg:#f9eded;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:Arial,Helvetica,sans-serif}
body{min-height:100vh}
button,input,select{font:inherit}
.app{max-width:560px;margin:0 auto;min-height:100vh;padding:14px 14px 88px}
.top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.brand{display:flex;align-items:center;gap:10px;min-width:0}
.brand img{width:40px;height:40px;border-radius:6px;object-fit:cover}
.brand strong{font-size:17px;letter-spacing:-.2px}
.avatar{width:36px;height:36px;border:1px solid var(--line);background:#fff;border-radius:7px;display:grid;place-items:center;font-weight:700;cursor:pointer}
.screen{display:none}.screen.active{display:block}
.card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:14px}
.hero{background:linear-gradient(135deg,#fff,#edf9fc);border:1px solid var(--line);border-radius:10px;padding:15px}
.eyebrow{text-transform:uppercase;letter-spacing:.09em;font-size:10px;font-weight:700;color:var(--muted)}
h1,h2,h3,p{margin-top:0} h2{font-size:23px;letter-spacing:-.4px;margin:5px 0} h3{font-size:15px;margin:0}
.meta{font-size:12.5px;color:var(--muted);line-height:1.45}
.section{margin-top:13px}.title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.title h2{font-size:19px;margin:0}
.stack{display:flex;flex-direction:column;gap:8px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.row{display:flex;align-items:center;justify-content:space-between;gap:11px;background:#fff;border:1px solid var(--line);border-radius:9px;padding:11px}
.row strong{display:block;font-size:14px}.row-main{min-width:0}
.badge{display:inline-flex;font-size:10px;font-weight:700;padding:4px 6px;border-radius:5px;background:var(--soft)}
.badge.green{background:var(--green);color:var(--green-ink)} .badge.amber{background:var(--amber);color:var(--amber-ink)}
.badge.danger{background:var(--danger-bg);color:var(--danger)}
.btn{border:0;background:var(--blue);color:#14333f;border-radius:7px;padding:9px 11px;font-weight:700;cursor:pointer}
.btn.secondary{background:#fff;border:1px solid var(--line)} .btn.danger{background:#fff;border:1px solid #dfcaca;color:var(--danger)}
.btn.full{width:100%}.btn.small{padding:7px 9px;font-size:12px}.btn:disabled{opacity:.45;cursor:not-allowed}
.notice,.success,.warning{padding:10px 11px;border-radius:8px;font-size:12px;line-height:1.45;margin-top:9px}
.notice{background:#f3f7f8;border:1px solid var(--line)} .success{background:var(--green);border:1px solid #c6dfd1;color:var(--green-ink)}
.warning{background:var(--amber);border:1px solid #efdcb4;color:var(--amber-ink)}
.tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:10px}
.tabs button{border:1px solid var(--line);background:#fff;border-radius:7px;padding:8px 5px;font-size:11px;font-weight:700;color:var(--muted);cursor:pointer}
.tabs button.active{background:var(--blue);border-color:var(--blue);color:#14333f}
.field{margin-top:10px}.field label{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.07em;font-weight:700;color:var(--muted);margin-bottom:4px}
.fieldbox,input{width:100%;background:#fff;border:1px solid var(--line);border-radius:7px;padding:10px;font-size:14px}
.contact{display:grid;gap:8px;margin-top:10px}.contact a{display:block;text-decoration:none;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:8px;padding:10px;font-weight:700;font-size:13px}
.contact span{display:block;color:var(--muted);font-weight:400;font-size:11px;margin-top:2px}
.bottom{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:min(560px,100%);display:grid;grid-template-columns:repeat(4,1fr);background:rgba(255,255,255,.98);border-top:1px solid var(--line);padding:7px 6px calc(7px + env(safe-area-inset-bottom));z-index:5}
.bottom button{border:0;background:transparent;color:var(--muted);font-size:10.5px;font-weight:700;padding:6px 1px;cursor:pointer}.bottom button.active{color:var(--blue-deep)}.ico{display:block;font-size:17px;margin-bottom:2px}
.login{max-width:440px;margin:8vh auto 0;padding:14px}.login-logo{display:block;width:84px;height:84px;object-fit:cover;border-radius:9px;margin:0 auto 18px}
.beta{font-size:11px;color:var(--amber-ink);background:var(--amber);border:1px solid #efdcb4;padding:8px 9px;border-radius:7px;margin-bottom:12px}
.loader{padding:20px;text-align:center;color:var(--muted)}
.link{border:0;background:transparent;padding:0;color:var(--blue-deep);font-weight:700;cursor:pointer}
hr{border:0;border-top:1px solid var(--line);margin:12px 0}
@media(max-width:420px){.row{align-items:flex-start}.row.actions-row{flex-direction:column}.grid2{grid-template-columns:1fr 1fr}}

.date-strip{display:flex;gap:7px;overflow-x:auto;padding:2px 0 8px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.date-strip::-webkit-scrollbar{display:none}
.date-chip{flex:0 0 auto;min-width:58px;border:1px solid var(--line);background:#fff;border-radius:8px;padding:8px 7px;text-align:center;cursor:pointer}
.date-chip .dow{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:700}
.date-chip .day{font-size:17px;font-weight:700;margin-top:2px}
.date-chip .mon{font-size:10px;color:var(--muted);margin-top:1px}
.date-chip.active{background:var(--blue);border-color:var(--blue)}
.date-chip.active .dow,.date-chip.active .mon{color:#25414c}
.month-break{flex:0 0 auto;display:flex;align-items:center;padding:0 3px;color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.08em}
.filterline{display:flex;justify-content:flex-end;margin:2px 0 9px}
.toggle-label{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px}
.toggle-label input{width:auto}
.selected-day-title{font-size:14px;font-weight:700;margin:2px 0 8px}

.timetable-list{gap:10px}
.timetable-card{display:grid;grid-template-columns:72px 1fr auto;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px}
.timetable-card.full{opacity:.55}
.timebox{border-right:1px solid var(--line);padding-right:10px}
.timebox .start{font-size:20px;font-weight:700;line-height:1.1}
.session-title{font-size:16px;font-weight:700;margin-bottom:4px}
.session-location{font-size:12.5px;color:var(--muted);line-height:1.35}
.session-status{font-size:11px;font-weight:700;margin-top:7px}
.session-status.available{color:var(--green-ink)}
.session-status.full{color:var(--muted)}
.book-arrow{width:42px;height:42px;border-radius:50%;border:0;background:var(--blue);color:#173641;font-size:24px;line-height:1;display:grid;place-items:center;cursor:pointer}
.book-arrow:disabled{background:#edf2f4;color:#9aa5ab}
.modalback{position:fixed;inset:0;background:rgba(24,37,44,.35);display:none;align-items:flex-end;justify-content:center;padding:10px;z-index:20}
.modalback.show{display:flex}
.modal{width:min(520px,100%);background:#fff;border-radius:14px 14px 8px 8px;padding:16px;border:1px solid var(--line)}
.modal h3{font-size:18px;margin:0 0 8px}
.modal .choice{display:block;width:100%;text-align:left;margin-top:8px}
@media(max-width:420px){
  .timetable-card{grid-template-columns:64px 1fr auto;padding:11px}
  .timebox .start{font-size:18px}
  .session-title{font-size:15px}
  .book-arrow{width:38px;height:38px}
}

html{-webkit-text-size-adjust:100%} body{font-size:16px}.app{padding:16px 16px 92px}
.home-welcome{background:#fff;border:1px solid var(--line);border-radius:10px;padding:15px}
.home-welcome h2{font-size:20px;line-height:1.25;margin:5px 0 3px}.home-primary-action{margin-top:12px}
.home-summary{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-top:10px;padding:10px 2px;font-size:13px;color:var(--muted)}
.home-summary strong{color:var(--ink)}.home-summary .summary-link{white-space:nowrap}
.compact-confirm{margin-top:9px;font-size:12.5px;line-height:1.45;color:var(--green-ink)}
.check-first{margin-top:8px;text-align:center}.check-first button{font-size:12px}
.bottom button{font-size:11px;min-height:48px}.bottom .ico{font-size:18px}.timetable-card{min-height:86px}
.modal p{font-size:13px;color:var(--muted);line-height:1.45}.modal .choice{min-height:46px}
.recording-note{background:#f3f7f8;border:1px solid var(--line);border-radius:8px;padding:10px;margin-top:10px;font-size:12px;line-height:1.45}
.queue-status{font-size:11px;font-weight:700;color:var(--green-ink);margin-top:5px}
@media(max-width:380px){.app{padding-left:12px;padding-right:12px}.brand strong{font-size:15px}.timetable-card{grid-template-columns:58px 1fr 38px;gap:9px}.session-title{font-size:14px}.session-location{font-size:12px}}

body{font-size:17px;line-height:1.45}.app{padding:28px 18px 98px}.top{margin-bottom:24px}
.brand img{width:48px;height:48px}.brand strong{font-size:19px}.avatar{width:44px;height:44px;font-size:16px}
.home-hero{padding:6px 0}.welcome-line{font-size:30px;font-weight:700;letter-spacing:-.4px;margin-bottom:24px}
.home-next-label{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:700}
.home-next-time{font-size:25px;font-weight:700;line-height:1.2;margin-top:5px}
.home-next-meta{font-size:16px;color:var(--muted);margin-top:4px}.home-primary-action{margin-top:18px}.home-primary-action .btn{font-size:17px;min-height:52px}
.home-credit-line{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:18px 0 5px;border-bottom:1px solid var(--line);font-size:15px}
.home-credit-line strong{font-size:20px}.home-available{margin-top:24px}.title h2{font-size:22px}
.btn{font-size:16px;min-height:46px}.btn.small{font-size:14px;min-height:40px}.meta{font-size:15px}.badge{font-size:12px}
.date-chip{min-width:66px;padding:10px 8px}.date-chip .dow{font-size:12px}.date-chip .day{font-size:20px}.date-chip .mon{font-size:12px}
.selected-day-title{font-size:19px;margin:8px 0 12px}.timetable-card{grid-template-columns:78px 1fr 46px;min-height:104px;padding:15px;gap:14px}
.timebox .start{font-size:24px}.session-title{font-size:19px}.session-location{font-size:15px}.session-status{font-size:13px}.book-arrow{width:46px;height:46px}
.row{padding:14px}.row strong{font-size:17px}.fieldbox,input{font-size:17px;padding:12px}.contact a{font-size:16px;padding:13px}.warning,.notice,.success,.recording-note{font-size:14px}
.bottom button{font-size:12px}.bottom .ico{font-size:19px}
@media(max-width:380px){.app{padding-left:14px;padding-right:14px}.welcome-line{font-size:27px}.home-next-time{font-size:23px}.timetable-card{grid-template-columns:68px 1fr 42px;gap:10px;padding:13px}.timebox .start{font-size:21px}.session-title{font-size:17px}.session-location{font-size:14px}}

/* V7 readability pass: deliberately generous sizing for older eyes and phone use */
html{-webkit-text-size-adjust:100%;font-size:20px}
body{font-size:20px;line-height:1.55}
.app{padding:30px 18px 110px}
.top{margin-bottom:26px}
.brand img{width:54px;height:54px}
.brand strong{font-size:21px}
.avatar{width:50px;height:50px;font-size:18px}
.beta{font-size:15px;line-height:1.45;padding:11px 12px}
.welcome-line{font-size:34px;line-height:1.15;margin-bottom:26px}
.home-next-label,.eyebrow,.field label{font-size:14px}
.home-next-time{font-size:25px;line-height:1.3;margin-top:8px}
.home-next-meta{font-size:18px;line-height:1.45;margin-top:5px}
.home-primary-action{margin-top:20px}
.home-primary-action .btn{font-size:19px;min-height:58px}
.home-credit-line{font-size:17px;line-height:1.45;padding:20px 0 8px}
.home-credit-line strong{font-size:22px}
.title h2,h2{font-size:25px}
h3{font-size:20px}
.meta{font-size:17px;line-height:1.5}
.btn{font-size:18px;min-height:52px;padding:12px 14px}
.btn.small{font-size:16px;min-height:46px;padding:10px 12px}
.link{font-size:17px}
.badge{font-size:14px;padding:5px 8px}
.notice,.success,.warning,.recording-note{font-size:16px;line-height:1.5;padding:12px 13px}
.tabs{gap:8px;margin-bottom:14px}
.tabs button{font-size:15px;min-height:50px;padding:10px 6px}
.date-chip{min-width:74px;padding:11px 9px}
.date-chip .dow{font-size:14px}.date-chip .day{font-size:23px}.date-chip .mon{font-size:14px}
.month-break{font-size:13px}
.selected-day-title{font-size:21px;margin:10px 0 14px}
.timetable-card{grid-template-columns:84px 1fr 50px;min-height:116px;padding:16px;gap:15px}
.timebox .start{font-size:25px}.session-title{font-size:20px;line-height:1.3}.session-location{font-size:17px}.session-status{font-size:15px}
.book-arrow{width:50px;height:50px;font-size:28px}
.fieldbox,input{font-size:18px;padding:14px}
.contact a{font-size:18px;padding:14px}.contact span{font-size:15px}
.modal{padding:20px}.modal h3{font-size:22px}.modal p{font-size:17px;line-height:1.5}.modal .choice{min-height:54px}
.bottom{padding-top:8px}.bottom button{font-size:14px;min-height:58px}.bottom .ico{font-size:21px}
.check-first button{font-size:16px}
.compact-confirm{font-size:16px;line-height:1.5}
.row{padding:16px}.row strong{font-size:18px}

.booking-month{margin-top:18px;padding:4px 2px 2px}
.booking-month:first-child{margin-top:0}
.booking-month h3{font-size:24px;margin:0}
.booking-card{background:#fff;border:1px solid var(--line);border-radius:11px;padding:16px;display:flex;flex-direction:column;gap:14px}
.booking-main strong{display:block;font-size:19px;line-height:1.35;margin-top:8px}
.booking-time{font-size:22px;font-weight:700;margin:2px 0 3px}
.booking-status{margin-top:10px}
.booking-action .btn{width:100%}
.credits-card{margin-top:18px}
.credit-row{margin-top:12px}.credit-row strong{font-size:18px}

@media(max-width:420px){
  html{font-size:19px}
  body{font-size:19px}
  .app{padding:24px 14px 108px}
  .brand strong{font-size:19px}
  .welcome-line{font-size:31px}
  .home-next-time{font-size:23px}
  .timetable-card{grid-template-columns:72px 1fr 46px;gap:11px;padding:14px}
  .timebox .start{font-size:22px}
  .session-title{font-size:18px}
  .session-location{font-size:16px}
  .bottom button{font-size:13px}
}

/* V8 usability pass: obvious navigation and explicit action feedback */
.home-timetable-cta{margin-top:24px}
.timetable-cta{display:flex;align-items:center;justify-content:center;gap:12px;font-size:21px;font-weight:800;min-height:64px}
.timetable-cta .cta-icon{font-size:30px;line-height:1}
.bottom{gap:5px;padding:8px 7px calc(8px + env(safe-area-inset-bottom));border-top:2px solid var(--line)}
.bottom button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:15px;font-weight:800;min-height:70px;border-radius:10px;padding:6px 2px;color:#53636b}
.bottom button.active{background:#e9f7fb;color:#0d596d;box-shadow:inset 0 0 0 2px #b7e6f1}
.bottom .ico{font-size:29px;line-height:1;margin:0;font-weight:900}
.bottom .nav-label{display:block;line-height:1.15}
.confirm-back{z-index:30}
.confirm-modal{text-align:center;max-width:400px}
.confirm-modal .confirm-icon{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;margin:0 auto 14px;background:#e7f6ec;font-size:36px;font-weight:900}
.confirm-modal h3{font-size:26px;margin:0 0 8px}
.confirm-modal p{font-size:18px;line-height:1.5;margin:0 0 18px}
.next-scheduled-note{margin-bottom:16px}
@media(max-width:420px){
  .app{padding-bottom:126px}
  .bottom button{font-size:14px;min-height:72px}
  .bottom .ico{font-size:28px}
  .timetable-cta{font-size:20px;min-height:62px}
}

/* V9 — Nuffield-inspired clarity/accessibility pass */
:root{--confirm-green:#2f7658}
body{font-size:20px}
.title h2,h2{font-size:30px;line-height:1.15}
h3{font-size:23px}.meta{font-size:18px;line-height:1.5}
.btn{font-size:20px;min-height:58px;border-radius:12px;font-weight:800}
.btn.small{font-size:18px;min-height:52px}
.home-next-label,.eyebrow,.field label{font-size:16px}.home-next-time{font-size:30px}.home-next-meta{font-size:20px}
.selected-day-title{font-size:24px}.timebox .start{font-size:27px}.session-title{font-size:23px}.session-location{font-size:18px}.session-status{font-size:17px}
.timetable-card{min-height:118px}.book-arrow{width:56px;height:56px;font-size:32px}
.booking-month h3{font-size:28px}.booking-main strong{font-size:22px}.booking-time{font-size:28px}.badge{font-size:16px}
.bottom{background:#fff;padding:10px 7px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -3px 12px rgba(24,37,44,.08)}
.bottom button{font-size:16px;min-height:82px;font-weight:700;color:#5d686e;border-radius:0}
.bottom button.active{background:transparent;color:var(--ink);box-shadow:none;font-weight:900}
.bottom .ico{font-size:34px}.bottom button.active .ico{color:var(--blue-deep)}
.app{padding-bottom:142px}
.confirm-back{align-items:center;padding:20px;background:rgba(24,37,44,.48)}
.confirm-modal{border-radius:20px;padding:30px 24px 24px;max-width:440px;box-shadow:0 16px 50px rgba(0,0,0,.2)}
.confirm-modal .confirm-icon{width:86px;height:86px;font-size:50px;margin-bottom:20px;background:#e7f6ec;color:var(--confirm-green);border:3px solid #b8ddc8}
.confirm-modal h3{font-size:34px;line-height:1.1;margin-bottom:16px;color:var(--confirm-green)}
.confirm-modal p{font-size:21px;line-height:1.5;color:var(--ink);margin-bottom:24px}
.confirm-modal .btn{font-size:22px;min-height:64px;background:var(--blue);border-radius:14px}
@media(max-width:380px){.bottom button{font-size:15px}.bottom .ico{font-size:31px}.confirm-modal h3{font-size:31px}.confirm-modal p{font-size:20px}}


/* V10 — clarity refinements from real-user testing */
.beta-bottom{margin-top:34px;margin-bottom:8px;opacity:.82}
.timetable-cta{background:#dff1e7;color:#245a45;border:2px solid #b9ddc8}
.tabs{gap:10px}
.tabs button{font-size:18px;line-height:1.2;min-height:68px;padding:12px 8px;border-radius:12px}
.tabs button.active{background:rgba(118,202,228,.22);border:2px solid #76CAE4;color:#14333f}
.date-chip.active{background:rgba(118,202,228,.18);border:2px solid #76CAE4}
.home-credit-line{display:block;border-bottom:0;padding-top:22px}
.home-credit-boxes{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-bottom:12px}
.home-credit-box{background:#fff;border:2px solid #c9dfe6;border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:3px}
.home-credit-box .credit-month{font-size:17px;font-weight:800;color:#53636b}
.home-credit-box strong{font-size:22px;line-height:1.25}
.home-credit-box.empty{background:#f4f7f8}
.home-credit-line .summary-link{font-size:18px;margin-top:2px}
.badge.released{background:#f8dddd;color:#9b2929;border:1px solid #e9bcbc}
.badge.catchup{background:#dff2f8;color:#155f77;border:1px solid #b8dfea}
.booking-status.released{font-weight:900}
@media(max-width:380px){.tabs button{font-size:17px;min-height:66px}.home-credit-boxes{grid-template-columns:1fr}}

/* V11 — Home screen only: mobile-first simplification */
.home-hero{padding-top:4px}
.welcome-line{margin-bottom:20px}
.home-next-card{background:#fff;border:2px solid #cfe2e8;border-radius:18px;padding:20px 18px;box-shadow:0 4px 14px rgba(24,37,44,.05)}
.home-next-card .home-next-label{font-size:17px;margin-bottom:6px}
.home-next-card .home-next-time{font-size:28px;line-height:1.25;margin-top:0}
.home-next-card .home-next-meta{font-size:19px;line-height:1.45;margin-top:8px;color:#53636b}
.home-primary-action{margin-top:14px}
.home-primary-action .btn{min-height:60px;font-size:20px}
#homeMessage{margin-top:14px}
.home-status-box{background:#eef8f2;border:2px solid #b9ddc8;border-radius:16px;padding:18px;font-size:18px;line-height:1.45;color:#274c3b}
.home-status-box.warning{background:#fff4e6;border-color:#efcf9e;color:#67451d}
.home-status-title{font-size:22px;font-weight:900;line-height:1.2;margin-bottom:5px;color:#203b2f}
.home-status-box.warning .home-status-title{color:#67451d}
.home-credit-line{padding:20px 0 0}
.home-catchup-card{background:#f7fbfc;border:2px solid #c9dfe6;border-radius:18px;padding:20px 18px}
.catchup-kicker{font-size:18px;font-weight:850;color:#53636b;margin-bottom:3px}
.catchup-total{font-size:44px;font-weight:900;line-height:1;color:#14333f;margin-bottom:16px}
.catchup-total.zero{font-size:32px;line-height:1.1}
.credit-month-row{padding:13px 0;border-top:1px solid #d8e7eb;display:flex;flex-direction:column;gap:3px}
.credit-month-row strong{font-size:21px;color:#14333f}
.credit-month-row span,.credit-empty-note{font-size:17px;line-height:1.4;color:#607078}
#home .beta-bottom{margin-top:28px}
@media(max-width:600px){
  #home{padding-top:2px}
  .welcome-line{font-size:31px;margin-bottom:18px}
  .home-next-card{padding:19px 17px;border-radius:16px}
  .home-next-card .home-next-time{font-size:27px}
  .home-next-card .home-next-meta{font-size:18px}
  .home-primary-action .btn{font-size:19px}
  .home-catchup-card{padding:19px 17px;border-radius:16px}
  .catchup-total{font-size:42px}
}


/* V14 — true blocking confirmation modal */
.confirm-overlay{
  position:fixed;
  inset:0;
  background:rgba(18,31,38,.48);
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:9999;
}
.confirm-overlay.open{display:flex}
.confirm-modal{
  width:min(100%,440px);
  background:#fff;
  border-radius:22px;
  padding:28px 22px 22px;
  box-shadow:0 18px 60px rgba(0,0,0,.22);
  text-align:center;
}
.confirm-tick{
  width:70px;
  height:70px;
  border-radius:50%;
  margin:0 auto 16px;
  display:grid;
  place-items:center;
  font-size:40px;
  font-weight:900;
  background:#dff1e7;
  color:#245a45;
}
.confirm-modal h2{
  margin:0 0 14px;
  font-size:30px;
  line-height:1.1;
  font-weight:900;
}
.confirm-body{
  font-size:20px;
  line-height:1.45;
  margin-bottom:22px;
}
.confirm-body strong{
  font-size:22px;
}
.confirm-done{
  min-height:58px;
  font-size:22px;
  font-weight:900;
}
body.modal-open{
  overflow:hidden;
}
@media(max-width:420px){
  .confirm-overlay{padding:14px}
  .confirm-modal{padding:24px 18px 18px;border-radius:18px}
  .confirm-modal h2{font-size:28px}
  .confirm-body{font-size:19px}
}


/* V15 — release confirmation must be acknowledged before Home updates */
body.modal-open{overflow:hidden}
#confirmModalBack.show{display:flex}
#confirmModalBack{align-items:center;justify-content:center;padding:18px;background:rgba(24,37,44,.55);z-index:9999}
#confirmModal{border-radius:20px;padding:28px 22px 22px;max-width:430px;text-align:center}
#confirmModal .confirm-icon{width:82px;height:82px;margin:0 auto 16px;border-radius:50%;display:grid;place-items:center;background:#dff1e7;color:#245a45;font-size:44px;font-weight:900}
#confirmModal h3{font-size:30px;line-height:1.1;margin:0 0 14px;font-weight:900}
#confirmModal p{font-size:20px;line-height:1.45;margin:0 0 22px}
#confirmModal p strong{font-size:22px}
#confirmModal .confirm-done-v15{font-size:22px;min-height:60px;font-weight:900}

.tabs{display:flex;overflow-x:auto;gap:12px;padding:2px 2px 10px;scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}.tabs button{flex:0 0 auto;min-width:170px;min-height:72px;font-size:21px;font-weight:900;padding:14px 18px;white-space:nowrap}.tabs button.active{background:rgba(118,202,228,.16)}.timetable-card{grid-template-columns:82px minmax(0,1fr) auto;opacity:1!important;border:1px solid #d9e2e6;border-radius:16px;box-shadow:0 5px 16px rgba(29,48,57,.11);padding:17px 15px;gap:14px;margin-bottom:13px}.timetable-card.member-booked{border:2px solid #a9d5ba;background:#f8fcf9}.session-main{min-width:0}.session-status{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:17px;font-weight:850;margin-top:9px}.session-status.available,.session-status.booked-state{color:#276245}.session-status.full{color:#8a3030}.session-status.wait-state{color:#8a641f}.status-dot{width:11px;height:11px;border-radius:50%;display:inline-block;flex:0 0 11px}.green-dot{background:#4b9b6a}.amber-dot{background:#d49a32}.red-dot{background:#c95757}.wait-count{display:inline-flex;align-items:center;gap:5px;color:#8a641f;margin-left:4px}.session-action{display:flex;align-items:center;justify-content:flex-end}.waitlist-action{border:0;border-radius:12px;background:#f1e4c8;color:#6f5017;font-size:16px;font-weight:900;padding:12px 13px;min-height:48px;line-height:1.15}.waitlist-action.leave{background:#f3f3f3;color:#555}.booked-block{background:#dff1e7;color:#245a45;border-radius:11px;padding:11px 12px;font-size:15px;font-weight:950}.date-chip.active{background:rgba(118,202,228,.12);border-color:rgba(69,160,188,.55)}@media(max-width:430px){.tabs button{font-size:20px;min-width:168px}.timetable-card{grid-template-columns:70px minmax(0,1fr);gap:10px 13px;padding:15px 13px}.session-action{grid-column:2;justify-content:flex-start}.book-arrow{width:50px;height:50px}.booked-block{font-size:16px}.timebox .start{font-size:23px}}

/* V18 Timetable: keep action on right on mobile */
@media(max-width:430px){
  .timetable-card{
    grid-template-columns:70px minmax(0,1fr) auto;
    align-items:center;
  }
  .session-action{
    grid-column:3;
    grid-row:1;
    justify-content:flex-end;
    align-self:center;
  }
  .waitlist-action{
    max-width:104px;
    padding:11px 10px;
  }
  .booked-block{
    white-space:nowrap;
  }
}

/* V19 1:1 purchase */
.one-purchase-card{box-shadow:0 5px 16px rgba(29,48,57,.11);padding:22px}.one-purchase-card h3{font-size:27px;margin:8px 0 2px}.one-price{font-size:38px;font-weight:950;margin:8px 0}.one-lead{font-size:20px;line-height:1.4}.one-important{background:#f3f7f8;border:1px solid #d6e1e5;border-radius:14px;padding:17px;font-size:18px;line-height:1.45;margin:18px 0}.one-buy{font-size:21px;min-height:60px}.one-badge{background:#e9e2f5;color:#5b4477}.one-expiry{font-size:18px;font-weight:850;margin:9px 0;color:#355b48}.one-expiry.expired{color:#9b2929}

/* V20 — lock Timetable tab navigation */
#timetableTabs{
  position:relative;
  scroll-padding-inline:12px;
  -webkit-overflow-scrolling:touch;
}
#timetableTabs button{
  font-size:21px;
  min-width:170px;
}
#timetableTabs button::after{
  font-size:18px;
}
#timetableTabs button[data-tab="group"]::after,
#timetableTabs button[data-tab="one"]::after{
  content:"  ›";
  opacity:.55;
}
#timetableTabs button[data-tab="mot"]::before{
  content:"‹  ";
  opacity:.55;
}
@media(max-width:430px){
  #timetableTabs button{
    font-size:20px;
    min-width:168px;
  }
}

/* V21 — My Bookings positive progress */
.booking-progress-card{background:#f0e9f8;border:1px solid #d8c8ea;border-radius:18px;padding:20px;margin:4px 0 20px;box-shadow:0 4px 14px rgba(67,48,88,.08)}
.progress-month{color:#654d7d;font-size:17px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.progress-number{color:#654d7d;font-size:48px;line-height:1;font-weight:950;margin:10px 0 4px}
.progress-title{color:#3f3150;font-size:22px;line-height:1.25;font-weight:900}
.progress-message{color:#5c5068;font-size:18px;line-height:1.4;margin-top:8px}

/* V22 — compact My Bookings progress card */
.booking-progress-card{padding:15px 17px;margin:2px 0 16px;border-radius:15px}
.progress-month{font-size:15px}
.progress-number{font-size:36px;margin:7px 0 2px}
.progress-title{font-size:19px}
.progress-message{font-size:16px;margin-top:5px}

/* V25 — future booking management + live shared refresh */
.manage-booking-action{
  border:0;
  border-radius:11px;
  background:#dff1e7;
  color:#245a45;
  min-height:48px;
  padding:11px 14px;
  font-size:16px;
  font-weight:900;
}
@media(max-width:430px){
  .manage-booking-action{
    min-width:82px;
  }
}

/* V26 — My Bookings consistency + slim encouragement */
#bookingProgress{display:none!important}
.booking-encouragement{
  background:#f0e9f8;
  border:1px solid #d8c8ea;
  color:#4f3d62;
  border-radius:13px;
  padding:11px 14px;
  margin:2px 0 15px;
  font-size:17px;
  line-height:1.3;
  font-weight:850;
}
.timetable-style-booking{
  border:1px solid #d9e2e6;
  border-radius:16px;
  box-shadow:0 5px 16px rgba(29,48,57,.11);
  padding:17px 15px;
  background:#fff;
}
.timetable-style-booking:not(.released):has(.booking-consistent-status.green){
  border:2px solid #a9d5ba;
  background:#f8fcf9;
}
.booking-consistent-status.green{
  background:#dff1e7;
  color:#245a45;
  font-weight:900;
}
.timetable-style-booking .booking-action .btn{
  min-height:46px;
  border-radius:11px;
  font-weight:900;
}
@media(max-width:430px){
  .booking-encouragement{font-size:16px;padding:10px 13px}
  .timetable-style-booking{padding:15px 13px}
}

/* V27 — My Bookings mirrors Timetable card hierarchy */
.my-booking-timetable-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) 150px;
  gap:16px;
  align-items:start;
  border:1px solid #d9e2e6;
  border-radius:16px;
  box-shadow:0 5px 16px rgba(29,48,57,.11);
  padding:17px 15px;
  background:#f8fcf9;
  border-color:#a9d5ba;
}
.my-booking-info{min-width:0}
.my-booked-status{
  color:#276245;
  font-size:16px;
  line-height:1.2;
  font-weight:950;
  text-transform:uppercase;
  margin-bottom:8px;
}
.my-booking-class{
  font-size:21px;
  line-height:1.2;
  font-weight:900;
  color:#26353c;
}
.my-booking-location{
  font-size:17px;
  line-height:1.3;
  color:#66757c;
  margin-top:5px;
}
.my-booking-when{
  text-align:right;
  min-width:0;
}
.my-booking-date{
  font-size:15px;
  line-height:1.25;
  font-weight:850;
  color:#596970;
  margin-bottom:3px;
}
.my-booking-time{
  font-size:27px;
  line-height:1.05;
  font-weight:950;
  color:#26353c;
}
.my-booking-action{
  margin-top:11px;
  display:flex;
  justify-content:flex-end;
}
.my-booking-action .btn{
  min-height:44px;
  font-size:15px;
  padding:9px 12px;
}
.released-booking-card{
  background:#fff8f8;
  border-color:#e6bcbc;
}
.released-booking-card .my-booked-status{color:#a33b3b}
@media(max-width:430px){
  .my-booking-timetable-card{
    grid-template-columns:minmax(0,1fr) 126px;
    gap:11px;
    padding:15px 13px;
  }
  .my-booking-class{font-size:19px}
  .my-booking-location{font-size:16px}
  .my-booking-date{font-size:14px}
  .my-booking-time{font-size:25px}
  .my-booking-action .btn{font-size:14px;padding:8px 9px}
}

/* V28 — correct My Bookings columns to match Timetable */
.my-booking-timetable-card{
  grid-template-columns:126px minmax(0,1fr);
}
.my-booking-when{
  text-align:left;
  border-right:1px solid #e1e7e9;
  padding-right:13px;
}
.my-booking-info{
  padding-left:2px;
}
.my-booking-action{
  justify-content:flex-start;
}
@media(max-width:430px){
  .my-booking-timetable-card{
    grid-template-columns:104px minmax(0,1fr);
  }
  .my-booking-when{
    padding-right:9px;
  }
}

/* V34 — positive zero catch-up state */
.consistency-card{
  padding-top:17px;
  padding-bottom:17px;
}
.consistency-message{
  font-size:20px;
  line-height:1.2;
  font-weight:950;
  color:#33464d;
}
.consistency-note{
  margin-top:5px;
  font-size:16px;
  line-height:1.3;
  color:#68777d;
  font-weight:650;
}

/* V35 — stable Catch-ups card zero state */
.catchup-total.consistency-total{
  font-size:25px;
  line-height:1.15;
  color:#33464d;
  margin-top:8px;
  margin-bottom:2px;
}

.recording-request-card{
  background:#faf7fd;
  border-color:#d8c8ea;
}
.recording-status{
  color:#654d7d;
}

/* V40 journey-test tidy-ups */
.keep-booking-choice{
  background:#dff1e7!important;
  color:#245a45!important;
  border:2px solid #a9d5ba!important;
  font-weight:950!important;
}
