/* Shared visual rhythm for the scheduled journey. */
#home-view .crew-entry-grid {grid-template-columns:minmax(0,2.7fr) minmax(240px,1fr);gap:20px}
#home-view .crew-entry {display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;gap:24px;min-height:210px;padding:26px;background:#fff;color:#263039}
#home-view .crew-entry-top,#home-view .crew-entry-bottom {display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
#home-view .crew-entry-bottom {align-items:center}
#home-view .crew-entry-top>svg {flex:none;width:24px;height:24px;color:#ff0060}
#home-view .crew-entry-private .crew-entry-top>svg {color:#717983}
#home-view .crew-entry-public h3 {font-size:clamp(24px,3vw,34px);line-height:1.13;letter-spacing:-.045em}
#home-view .crew-entry-private h3 {font-size:23px}
#home-view .crew-entry p {font-size:14px;color:#5f6873}
.crew-entry-size {font-size:13px;color:#5f6873}
.crew-entry-action {display:flex;align-items:center;justify-content:space-between;gap:18px;border-radius:999px;padding:12px 17px;background:#eee;color:#263039;font-weight:650;white-space:nowrap}
.crew-entry-public .crew-entry-action {margin-inline-start:auto;background:var(--crew-blue);color:#fff}
.crew-entry-private .crew-entry-action {width:100%}
.crew-entry-action svg {width:16px;height:16px}
#home-view .crew-schedule-heading {margin-top:30px}
#home-view .schedule-more svg {order:-1;color:#263039;background:#eee}

#booking-view[open] {display:flex;flex-direction:column;position:fixed;inset:0;margin:auto;width:min(580px,calc(100% - 28px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:32px;background:var(--surface);color:var(--ink);box-shadow:0 20px 70px #0003;overflow:hidden}
#booking-view::backdrop {background:#16171c5c}
body:has(#booking-view[open]) {overflow:hidden}
.booking-sheet-header {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px 14px}
.booking-sheet-header h2 {margin:0;font-size:25px;letter-spacing:-.035em}
#booking-close {display:grid;place-items:center;flex:none;width:44px;height:44px;border:0;border-radius:50%;background:var(--inner);color:var(--ink);font-size:27px;cursor:pointer}
.booking-sheet-body {min-height:0;overflow:auto;padding:0 24px 16px}
#booking-content {display:grid;gap:16px}
.booking-card-top,.booking-crew-size,.booking-waiting-card {display:flex;align-items:center;gap:12px}
.booking-card-top {justify-content:space-between;align-items:flex-start;flex-wrap:wrap}
.booking-waiting-card>svg,.booking-crew-size svg {width:22px;height:22px;flex:none}
.booking-availability {background:#f2f3f4;color:#39434d;padding:6px 12px;border-radius:999px;font-size:13px;font-weight:650}
.booking-availability.is-reserved {background:#e7f4ec;color:#225339}
#booking-day,.booking-muted,.booking-waiting-card p,#booking-status {margin:0}
#booking-day,.booking-muted,.booking-waiting-card p {color:var(--secondary);font-size:13px}
.booking-time {display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin:4px 0 0}
.booking-time strong {font-size:clamp(36px,7vw,58px);font-variant-numeric:tabular-nums;letter-spacing:-.045em;line-height:1.05}
.booking-crew-size {align-items:flex-start;padding-top:14px;border-top:1px solid #eceef0}
.booking-waiting-card {align-items:flex-start}
.booking-crew-size svg,.booking-waiting-card>svg {color:var(--crew-blue)}
.booking-waiting-card p {margin-top:4px}
.booking-sheet-footer {display:grid;gap:7px;padding:0 24px 20px}
.booking-primary,.booking-cancel {min-height:47px;border:0;border-radius:15px;font:inherit;font-weight:650;cursor:pointer}
.booking-primary {background:var(--crew-blue);color:#fff}
.booking-primary:disabled {background:#ebecef;color:#545e68;cursor:default}
.booking-cancel {background:none;color:#a91a34}
.booking-sheet button:focus-visible {outline:3px solid var(--crew-blue);outline-offset:3px}

@media(max-width:850px) {
  #home-view .crew-entry-grid {grid-template-columns:1fr}
  #home-view .crew-entry {min-height:0}
}
@media(max-width:420px) {
  .booking-sheet-header,.booking-sheet-body,.booking-sheet-footer {padding-inline:16px}
  #home-view .crew-entry-bottom {align-items:flex-start;flex-direction:column}
}

/* The full calendar follows the native iPad page, including its navigation. */
body:is([data-app-page="home"],[data-app-page="schedule"]) {background:#f4f4f4;color:#263039}
body:is([data-app-page="home"],[data-app-page="schedule"])>.app-sidebar,
body:is([data-app-page="home"],[data-app-page="schedule"])>.topbar,
body:is([data-app-page="home"],[data-app-page="schedule"])>.app-tabbar {display:none!important}
body:is([data-app-page="home"],[data-app-page="schedule"])>main {margin:0;padding:0 30px 96px;width:auto;max-width:none}
body:is([data-app-page="home"],[data-app-page="schedule"])>main>:is(#home-view,#schedule-view) {width:100%;max-width:none;margin:0;padding:0}
.schedule-toolbar {display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:76px;gap:16px;position:sticky;top:0;z-index:8;background:#f4f4f4}
.schedule-toolbar h1 {margin:0;text-align:center;font-size:17px;line-height:1.2;font-weight:650;letter-spacing:-.015em}
.schedule-toolbar svg,.schedule-tabbar svg {width:20px;height:20px}
.schedule-back {display:inline-flex;align-items:center;justify-self:start;gap:6px;min-height:44px;padding:0 14px;border:1px solid #dedfe1;border-radius:999px;color:#263039;text-decoration:none;background:#f7f7f7}
.schedule-back svg {width:15px;height:15px;transform:rotate(180deg)}
.schedule-toolbar-actions {display:flex;align-items:center;justify-content:flex-end;gap:12px}
.schedule-utc {display:flex;gap:9px;align-items:center;white-space:nowrap}
.schedule-utc span {color:#616b76;font-size:11px;letter-spacing:.11em}
.schedule-utc time {font-family:ui-monospace,monospace;font-size:14px;font-variant-numeric:tabular-nums}
.schedule-notifications {position:relative;flex:none;margin:0;padding:0;border:0}
.schedule-notifications summary {display:grid;place-items:center;width:38px;height:44px;margin:0;padding:0;cursor:pointer;list-style:none}
.schedule-notifications summary::-webkit-details-marker {display:none}
.schedule-notifications>div {position:absolute;right:0;top:100%;min-width:208px;padding:16px;border:1px solid #e5e6e8;border-radius:18px;background:#fff;box-shadow:0 8px 26px #0001}
.schedule-notifications p {margin:4px 0 0;color:#616b76;font-size:13px}
.schedule-notifications.has-crew-invites summary::after {content:"";position:absolute;top:9px;right:8px;width:8px;height:8px;border-radius:50%;background:#d9233f}
.schedule-notifications p>span {display:block;padding:8px 0}
.schedule-notifications div>button {margin-top:8px;font-size:13px;color:var(--crew-blue)}
.schedule-horizon {margin:13px 0 19px;color:#646f7b;font-size:15px}
:is(#schedule-view #schedule-grid,#home-view #tables-grid) {--scheduled-card-inset:clamp(20px,2vw,26px);--scheduled-card-height:240px;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
body:not(.app-immersive) :is(#schedule-view #schedule-grid,#home-view #tables-grid)>.table-card {padding:var(--scheduled-card-inset);min-height:var(--scheduled-card-height);border-radius:26px;box-shadow:none;gap:0}
:is(#schedule-view #schedule-grid,#home-view #tables-grid) .table-card>.table-meta {padding-right:53px}
:is(#schedule-view #schedule-grid,#home-view #tables-grid) .table-card .crew-slot-hour {display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;font-family:ui-rounded,-apple-system,sans-serif;font-size:31px;font-weight:700;letter-spacing:-.035em;color:#263039}
:is(#schedule-view #schedule-grid,#home-view #tables-grid) .table-card .crew-slot-hour small {display:inline;margin:0;font:500 12px/1.3 -apple-system,BlinkMacSystemFont,sans-serif;letter-spacing:0;color:#646f7b}
:is(#schedule-view #schedule-grid,#home-view #tables-grid) .table-card .crew-slot-date {margin-top:7px;font-size:12px;color:#646f7b}
:is(#schedule-view #schedule-grid,#home-view #tables-grid) .table-card>.seat-summary {display:none}
:is(#schedule-view #schedule-grid,#home-view #tables-grid) .table-card>.seats {justify-content:space-around;gap:5px;margin:20px 0;min-height:26px}
:is(#schedule-view #schedule-grid,#home-view #tables-grid) .table-card .seat {flex:0 1 34px;max-width:34px;background:#f4f4f4;color:#66737e}
:is(#schedule-view #schedule-grid,#home-view #tables-grid) .table-card .seat.taken {background:#e9f2ee;color:#376858}
:is(#schedule-view #schedule-grid,#home-view #tables-grid) .table-card .seat svg {width:12px;height:12px}
:is(#schedule-view #schedule-grid,#home-view #tables-grid) .table-card>.table-button {margin-top:auto;min-height:46px;padding:10px 18px;border-radius:16px;background:#ededee;color:#263039;font-size:14px;font-weight:650}
:is(#schedule-view #schedule-grid,#home-view #tables-grid) .table-card>.table-button.schedule-reserved {background:transparent;color:#c7243c;border:1px solid currentColor}
.schedule-reservation-countdown {margin-inline-start:auto;font-size:.875em;font-variant-numeric:tabular-nums;text-align:end}
.table-button.schedule-reserved>svg {color:currentColor}
:is(#schedule-view #schedule-grid,#home-view #tables-grid) .table-card>.table-button:disabled {opacity:.55}
.schedule-tabbar {position:fixed;z-index:12;bottom:max(14px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;gap:2px;padding:4px;border:1px solid #dedfe1;border-radius:999px;background:#fffffff0;box-shadow:0 2px 10px #00000008;backdrop-filter:blur(18px)}
.schedule-tabbar a {width:83px;height:52px;border-radius:999px;display:grid;place-items:center;color:#15171a}
.schedule-tabbar a[aria-current] {color:var(--crew-blue);background:#eee}
.schedule-tabbar svg {width:24px;height:24px}
@media(max-width:850px) {
  :is(#schedule-view #schedule-grid,#home-view #tables-grid) {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:540px) {
  body:is([data-app-page="home"],[data-app-page="schedule"])>main {padding-inline:16px}
  .schedule-toolbar {gap:7px;min-height:64px}
  .schedule-utc {display:none}
  :is(#schedule-view #schedule-grid,#home-view #tables-grid) {grid-template-columns:1fr}
}

/* Home uses the same shell and scheduled cards as the complete calendar. */
#home-view .crew-entry-grid {grid-template-columns:minmax(440px,1fr) 300px;gap:20px;margin:24px 0 0}
#home-view .crew-entry {min-height:176px;padding:24px;border-radius:26px;box-shadow:none;gap:14px}
#home-view .crew-entry-public {flex-direction:column;align-items:stretch;justify-content:space-between}
#home-view .public-crew-intro {display:flex;align-items:flex-start;justify-content:space-between;gap:16px;min-width:0}
#home-view .public-crew-footer {display:flex;flex-wrap:wrap;align-items:center;gap:10px}
#home-view .public-crew-icon {display:grid;place-items:center;flex:none;color:var(--crew-blue)}
#home-view .public-crew-icon svg {width:23px;height:23px}
#home-view .crew-entry-public h3 {font-size:23px;font-weight:650;letter-spacing:-.025em}
#home-view .crew-entry-public .public-crew-intro p {margin:8px 0 0;max-width:46ch}
#home-view .crew-entry-public .crew-entry-action {flex:none;border-radius:999px}
#home-view .crew-entry-private h3 {display:flex;align-items:center;gap:10px;font-size:20px;font-weight:650}
#home-view .crew-entry-private h3 svg {width:17px;height:17px;color:#646f7b}
#home-view .crew-entry-private .crew-entry-action {border-radius:16px}
#home-view .crew-entry p {margin-top:10px}
#home-view .crew-entry-action {min-height:48px;padding:10px 18px;font-size:15px}
#home-view .crew-entry-size {display:inline-flex;align-items:center;gap:6px;color:var(--crew-muted);font-size:12px;font-weight:500}
#home-view .crew-entry-size svg {width:13px;height:13px}
.home-brand {display:inline-flex;align-items:center;justify-self:start;gap:9px;color:#263039;font-weight:650;text-decoration:none;white-space:nowrap}
.home-brand svg {width:20px;height:20px;color:var(--crew-blue)}
#home-view .crew-schedule-heading {margin:30px 0 18px}
#home-view .crew-schedule-heading h2 {margin:0;font-size:23px;letter-spacing:-.025em}
#home-view .crew-schedule-meta .schedule-note {display:none}
#home-view .crew-schedule-meta {height:0;margin:0;padding:0}
#home-view #tables-grid>.table-card {display:flex}
#home-view #tables-grid>.schedule-more {min-height:var(--scheduled-card-height);gap:16px;border-radius:26px;box-shadow:none;color:#263039}
#home-view #tables-grid>.schedule-more svg {width:20px;height:20px;padding:14px}
#home-view #tables-grid>.schedule-more strong {font-size:20px;font-weight:650}
@media(max-width:850px) {
  #home-view .crew-entry-grid {grid-template-columns:1fr}
}
@media(max-width:540px) {
  #home-view .crew-entry {padding:22px;min-height:0}
  #home-view .crew-entry-public {flex-direction:column;align-items:stretch;gap:18px}
  #home-view .crew-entry-bottom {align-items:flex-start}
}
@media (max-width:850px), (max-height:910px) {
  #home-view .crew-entry-grid {margin-top:12px}
  #home-view .crew-entry {min-height:0;padding:18px;gap:12px}
  #home-view .crew-schedule-heading {margin:18px 0 12px}
}

/* Session history and review share the native full-width shell. */
body:is([data-app-page="sessions"],[data-app-page="transcript"]){background:#f4f4f4;color:#263039}
body:is([data-app-page="sessions"],[data-app-page="transcript"])>.app-sidebar,
body:is([data-app-page="sessions"],[data-app-page="transcript"])>.topbar,
body:is([data-app-page="sessions"],[data-app-page="transcript"])>.app-tabbar{display:none!important}
body[data-app-page="sessions"]>main,body[data-app-page="transcript"]>main{margin:0;padding:0 30px 96px;width:auto;max-width:none}
body[data-app-page="sessions"]>main>#sessions-view,body[data-app-page="transcript"]>main>#transcript-view{width:100%;max-width:none;margin:0;padding:0}
#sessions-view .schedule-toolbar h1{grid-column:2}
#sessions-view .schedule-toolbar-actions{grid-column:3}
#session-history{display:grid;gap:28px;padding-top:14px;font-family:-apple-system,BlinkMacSystemFont,system-ui,sans-serif}
#session-history h2{font-size:22px;line-height:1.2;font-weight:650;letter-spacing:-.02em;margin:0 0 12px}
#session-history h3{margin:0;font-size:17px;line-height:1.2;font-weight:650}
.session-history-card{display:flex;align-items:center;gap:16px;padding:10px 20px;border-radius:24px;background:#fff;min-width:0}
.session-history-card p,.past-session-card p{margin:5px 0 0;color:#64717e;font-size:15px;line-height:1.3}
.session-history-card>.session-history-action{margin-inline-start:auto}
.session-history-icon{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:14px;background:#f4f4f4;color:#64717e}
.session-history-icon svg,.session-history-action svg{width:18px;height:18px}
.past-session-list{background:#fff;border-radius:20px}
.past-session-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;min-height:58px;padding:9px 16px;color:inherit;text-decoration:none;overflow-wrap:anywhere}
.past-session-card+.past-session-card{border-top:1px solid #eee}
.past-session-card:hover{color:inherit;background:#fafafa;border-radius:inherit}
.past-session-card:focus-visible{outline:2px solid #263039;outline-offset:-2px}
#session-history .past-session-card:not(.is-latest) h3{font-size:15px}
.past-session-card:not(.is-latest) p{font-size:13px;margin-top:3px}
.past-session-card small{display:block;margin-top:4px;color:#64717e;font-size:13px}
.past-session-card .session-history-icon{width:32px;height:32px;border-radius:10px}
.past-session-action{display:inline-flex;align-items:center;gap:8px;color:#64717e}
.past-session-action svg{width:16px;height:16px}
.past-session-card.is-latest{min-height:112px;padding:20px;background:#fff;border-radius:24px;gap:16px}
.is-latest .session-history-icon{width:48px;height:48px;border-radius:14px;background:var(--crew-blue-soft);color:var(--crew-blue)}
.is-latest .past-session-action{padding:10px 14px;border-radius:14px;background:#ededee;color:#263039;font-size:14px;font-weight:650}
.session-history-empty{margin:0;color:#64717e;font-size:15px}
#session-history #past-title{font-size:19px}
@media(max-width:540px){
 .past-session-card.is-latest{grid-template-columns:auto minmax(0,1fr)}
 .is-latest .past-session-action{grid-column:2;justify-self:start}
}
.session-history-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:16px}
.session-history-day+.session-history-day{margin-top:16px}
#session-history .session-history-date{margin-bottom:8px;color:#64717e;font-size:15px;font-weight:600}
#active-session-list{display:grid;gap:10px}
.session-history-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:8px 18px;border:0;border-radius:16px;background:#ededee;color:#263039;font:inherit;font-size:15px;font-weight:650;text-decoration:none;cursor:pointer}
.upcoming-reservation{position:relative;min-height:156px;align-items:flex-start;flex-direction:column}
.upcoming-reservation.is-featured{min-height:140px;align-items:center;flex-direction:row;padding:24px}
.upcoming-reservation.is-featured+.session-history-grid{margin-top:12px}
.upcoming-time,.upcoming-entry{min-width:0}
.upcoming-entry{margin-right:48px}
.upcoming-reservation.is-featured .upcoming-entry{margin-left:auto}
.upcoming-hours{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.upcoming-hours strong,.upcoming-countdown{font-family:ui-rounded,-apple-system,sans-serif;font-size:27px;font-variant-numeric:tabular-nums}
.is-featured .upcoming-hours strong,.is-featured .upcoming-countdown{font-size:32px}
.upcoming-hours span{color:#646f7b;font-size:12px}
.upcoming-time .next-session-label{font-weight:650;color:#263039}
.reservation-options{position:absolute;top:16px;right:16px;margin:0;padding:0;border:0}
.reservation-options summary{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#ededee;list-style:none;cursor:pointer}
.reservation-options summary::-webkit-details-marker{display:none}
.reservation-options button{position:absolute;z-index:2;right:0;top:calc(100% + 4px);white-space:nowrap;color:#aa1c35;background:#fff;box-shadow:0 5px 22px #0002}
#transcript-view{font-family:-apple-system,BlinkMacSystemFont,system-ui,sans-serif}
#transcript-view>.schedule-toolbar{min-height:60px}
#transcript-view>.debrief-reader-heading{padding:0;margin:28px 0 24px;gap:20px}
#transcript-view .debrief-reader-heading h2{font-family:ui-rounded,-apple-system,system-ui,sans-serif;font-size:clamp(26px,4vw,34px);font-weight:650;line-height:1.16;letter-spacing:-.025em;color:#263039;margin:0}
#transcript-view #transcript-session-label{font-size:15px;margin-top:10px}
#transcript-session-label:empty{display:none}
#transcript-view .debrief-refresh{display:grid;place-items:center;flex:none;width:46px;min-height:44px;padding:0;border-radius:16px;background:#ededee;color:#263039}
#transcript-view .debrief-refresh svg{width:19px;height:19px}
#transcript-view .debrief-objective{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:36px;background:#fff;border-radius:24px;padding:24px;margin-bottom:24px}
.debrief-objective h3{margin:0 0 12px;font-size:17px;font-weight:650}
.debrief-objective p{margin:0;font-size:16px;line-height:1.55}
.debrief-objective ul{margin:0;padding:0;list-style:none;display:grid;gap:12px}
.debrief-objective li{display:flex;align-items:flex-start;gap:8px;font-size:15px}
.debrief-symbol{display:inline-grid;place-items:center;flex:none}
.debrief-symbol svg{width:16px;height:16px}
#transcript-view .debrief-sections{position:static;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;width:min(100%,520px);margin:0 0 24px;padding:3px;background:#e6e6e8;border:0;border-radius:9px}
#transcript-view .debrief-sections button[role=tab]{min-height:29px;padding:4px;border-radius:7px;box-shadow:none;font-size:13px;line-height:1.2}
#transcript-view .debrief-sections button[aria-selected=true]{background:#fff;color:#263039;box-shadow:0 1px 3px #0002}
#transcript-view .ai-report-panel{display:grid;gap:16px;padding:0;margin:0;border:0}
#transcript-view .ai-report-panel :is(h3,p){margin-top:0}
#transcript-view .ai-report-panel>details{margin:0}
#transcript-view .debrief-skills{display:block;padding:16px;border-radius:24px}
.debrief-skill-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.debrief-skill-button{display:grid;justify-items:center;gap:7px;min-width:0;padding:6px 2px;border:0;border-radius:16px;background:transparent;color:#263039;font:inherit;font-size:12px;overflow-wrap:anywhere;cursor:pointer}
.debrief-skill-button[aria-expanded=true]{background:#f4f4f4}
.debrief-skill-ring{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:conic-gradient(var(--skill-color) var(--skill-percent),color-mix(in srgb,var(--skill-color) 23%,white) 0)}
.debrief-skill-ring.is-unscored{background:#e9e9eb}
.debrief-skill-ring>span{display:grid;place-content:center;justify-items:center;gap:2px;width:54px;height:54px;border-radius:50%;background:#fff;font-size:17px;font-variant-numeric:tabular-nums}
.debrief-skill-ring .debrief-symbol{color:var(--skill-color)}
.debrief-skill-detail{margin-top:16px;background:#f4f4f4;border-radius:16px;padding:16px}
#transcript-view .debrief-skill-detail h3{font-size:17px;margin:0 0 8px}
#transcript-view .debrief-dashboard{grid-template-columns:270px minmax(0,1fr);align-items:start;gap:14px;margin:0}
.debrief-dashboard-sidebar{display:grid;gap:14px;min-width:0}
#transcript-view .debrief-dashboard .debrief-takeaways{display:grid;grid-template-columns:1fr;gap:12px;margin:0}
#transcript-view .debrief-feedback-section[data-feedback-kind]{padding:16px;border-radius:22px}
#transcript-view .debrief-takeaway-heading .debrief-detail-icon{width:30px;height:30px;border-radius:9px}
#transcript-view .debrief-feedback-section .debrief-takeaway-heading h3{font-size:17px}
#transcript-view .debrief-feedback-section .ai-comment{padding:0}
#transcript-view .debrief-takeaway-body .ai-comment+.ai-comment{border:0;margin-top:12px}
#transcript-view .ai-comment>p,#transcript-view .debrief-feedback-section .ai-comment>p:first-of-type{max-width:none;line-height:1.45;color:#263039;margin:0 0 6px}
#transcript-view .ai-report-panel .ai-review-indicator{display:none}
#transcript-view .ai-comment details summary{display:flex;align-items:center;justify-content:space-between;min-height:32px;color:#263039;font-size:15px}
#transcript-view .ai-comment details summary::-webkit-details-marker{display:none}
#transcript-view .ai-comment details summary::after{content:'›';font-size:22px}
#transcript-view .ai-comment details[open] summary::after{transform:rotate(90deg)}
#transcript-view .debrief-score-card{padding:24px;min-height:246px}
#transcript-view .debrief-score-card h3,#transcript-view .debrief-speaking-card h3{font-size:17px!important;margin:0}
#transcript-view .debrief-score-card p,#transcript-view .debrief-speaking-card p{margin:0;font-size:15px;color:var(--review-muted)}
#transcript-view .debrief-score-ring{width:min(190px,100%);height:auto;aspect-ratio:1}
#transcript-view .debrief-score-ring.is-unscored{background:#e9e9eb}
#transcript-view .debrief-score-ring>span{width:88%;height:88%}
.debrief-speaking-card{display:grid;gap:14px;padding:20px;background:#fff;border-radius:24px}
.debrief-speaking-ring{display:grid;place-items:center;width:144px;height:144px;border-radius:50%;margin:auto}
.debrief-speaking-ring::before{content:'';width:73%;height:73%;border-radius:50%;background:#fff}
.debrief-speaking-card ul{margin:0;padding:0;display:grid;gap:8px;list-style:none}
.debrief-speaking-card li{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;font-size:15px}
.debrief-speaking-dot{width:9px;height:9px;border-radius:50%}
#transcript-view .debrief-individual-summary,#transcript-view .debrief-outcome,#transcript-view .debrief-narrative{padding:24px;border-radius:26px;background:#fff;margin:0}
#transcript-view .debrief-individual-summary{padding:28px;border-radius:28px;border:1px solid #ecb9ca;box-shadow:none}
.debrief-summary-heading{display:flex;align-items:center;gap:14px;margin-bottom:18px}
.debrief-summary-heading .debrief-symbol{width:46px;height:46px;border-radius:15px;background:var(--crew-jade-soft);color:var(--crew-jade-ink)}
.debrief-summary-heading .debrief-symbol svg{width:23px;height:23px}
#transcript-view .debrief-summary-heading h3{font-family:ui-rounded,-apple-system,system-ui,sans-serif;font-size:22px;letter-spacing:-.025em;color:#263039;margin:0}
#transcript-view .debrief-individual-summary>.ai-comment{padding:0}
#transcript-view .debrief-individual-summary>.ai-comment>p{font-size:17px;line-height:1.55}
#transcript-view :is(.debrief-outcome,.debrief-narrative:not(.debrief-individual-summary)) h3{font-size:20px;margin:0 0 12px}
#transcript-view #debrief-followup-panel{margin-top:16px}
#transcript-view :is(.ai-report-panel,.aligned-turn-row,.debrief-conversation){scroll-margin-top:76px}
@media(max-width:760px){
  #transcript-view .debrief-dashboard{grid-template-columns:minmax(0,1fr)}
  #transcript-view .debrief-objective{grid-auto-flow:row;gap:22px}
  .debrief-skill-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:540px){
  body[data-app-page="sessions"]>main,body[data-app-page="transcript"]>main{padding-inline:16px}
  .session-history-card{flex-wrap:wrap}
  .upcoming-reservation.is-featured{align-items:flex-start;flex-direction:column}
  .upcoming-reservation.is-featured .upcoming-entry{margin-left:0}
}

#transcript-view .debrief-conversation{padding:0;background:transparent;border:0;box-shadow:none;margin:0}
#transcript-view .debrief-conversation>.debrief-section-heading{display:none}
#transcript-view .debrief-transcript-notes{margin:0 0 16px}
#transcript-view .aligned-turn-row{--turn-accent:#a3aab0;position:relative;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px 20px;padding:0 0 20px;border:0}
#transcript-view .aligned-turn-row[data-review=positive]{--turn-accent:#328858}
#transcript-view .aligned-turn-row[data-review=mixed]{--turn-accent:#a77619}
#transcript-view .aligned-turn-row[data-review=needs_development]{--turn-accent:#bb3950}
#transcript-view .aligned-turn-row:has(+.aligned-turn-row)::before{content:'';position:absolute;width:2px;left:22px;top:23px;bottom:-23px;background:#d3d5d8}
.debrief-speech{display:grid;position:relative;grid-template-columns:46px minmax(0,1fr);gap:18px;align-items:start}
.debrief-speaker-icon{display:grid;place-items:center;width:46px;height:46px;border:3px solid var(--turn-accent);border-radius:50%;background:#fff;color:#64717e}
.debrief-speaker-icon svg{width:20px;height:20px}
#transcript-view .debrief-speech .transcript-part{padding:20px;margin:0;border:1px solid var(--turn-accent);border-radius:24px;background:#fff;box-shadow:none}
#transcript-view .aligned-turn-row :is(.ai-turn-review,.overlap-observation){grid-column:2;margin:0;padding:20px;border-radius:24px;background:#fff}
#transcript-view .ai-turn-review{grid-row:1}
@media(max-width:760px){
  #transcript-view .aligned-turn-row{grid-template-columns:minmax(0,1fr)}
  #transcript-view .aligned-turn-row :is(.ai-turn-review,.overlap-observation){grid-column:1;grid-row:auto;margin-left:64px}
}

#room-preflight-toolbar{min-height:60px}
#room-preflight-toolbar h1{grid-column:2}
#room-preflight-toolbar .schedule-toolbar-actions{grid-column:3}

/* All crew types share the iPad camera preview and bottom controls. */
.preflight-preview-you,.preflight-join-arrow,#live-preview-speaker{display:none!important}
body.crew-preflight{background:#f4f4f4;color:#263039}
body.crew-preflight>:is(.topbar,#page-title){display:none!important}
body.crew-preflight>main:has(>#live-room-view){margin:0;padding:0 30px;width:auto;max-width:none}
body.crew-preflight>main>#live-room-view{width:100%;max-width:none;margin:0}
body.crew-preflight #live-lobby:not([hidden]){display:flex;flex-direction:column;max-width:none;min-height:calc(100dvh - 60px);padding:0 0 16px;margin:0}
body.crew-preflight #live-lobby>.debrief-back,
body.crew-preflight #live-lobby #live-schedule,
body.crew-preflight #live-lobby .live-lobby-heading h2{display:none}
body.crew-preflight #live-lobby .live-lobby-heading{margin:0;text-align:center}
body.crew-preflight #live-lobby #live-lobby-status{margin:0;color:#64717e;font-size:13px}
body.crew-preflight #live-lobby .live-lobby-grid{display:grid;flex:1;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-rows:minmax(min-content,1fr) repeat(6,auto);grid-template-areas:"camera camera camera" "clock clock clock" "status status status" "retry retry retry" "consent consent consent" "selectors selectors selectors" "crew media join";gap:0 16px;align-items:center}
body.crew-preflight #live-lobby :is(.live-preview-column,.live-setup-column){display:contents}
body.crew-preflight #live-lobby .live-device-preview{grid-area:camera;justify-self:center;width:min(100%,1080px,calc(clamp(180px,100dvh - 246px,630px) * 16 / 9));max-width:none;aspect-ratio:16/9;margin:16px auto;border-radius:30px;background:#191919}
body.crew-preflight #live-lobby :is(.live-device-preview video,#live-preview-label){background:#191919;border-radius:inherit}
body.crew-preflight #live-lobby .live-device-preview video{object-fit:cover}
body.crew-preflight #live-lobby #live-preview-label>span{display:none}
body.crew-preflight #live-lobby #live-preview-label svg{width:48px;height:48px;color:#a2a2a2}
body.crew-preflight .preflight-preview-you{display:block!important;position:absolute;bottom:16px;left:18px;color:#fff;font-size:14px}
#preflight-schedule:not([hidden]){grid-area:clock;display:flex;justify-content:center;align-items:center;gap:10px;margin-bottom:10px;color:#64717e;font-size:15px}
#preflight-schedule strong{color:#263039;font-variant-numeric:tabular-nums}
body.crew-preflight-early #live-lobby :is(.live-recording-notice,.live-device-actions,#live-device-status){display:none}
body.crew-preflight #live-device-status{grid-area:status;margin:0 0 8px}
body.crew-preflight .live-device-actions{grid-area:retry;justify-self:center;margin-bottom:8px}
body.crew-preflight .live-device-selectors{grid-area:selectors}
body.crew-preflight #live-lobby .live-recording-notice{grid-area:consent;justify-self:center;width:min(100%,760px);margin:0 0 12px;text-align:center}
body.crew-preflight #live-lobby .live-lobby-details{padding:0;border:0}
body.crew-preflight #live-lobby .live-lobby-details[open] p{text-align:start}
body.crew-preflight #live-lobby .live-preview-controls{grid-area:media;position:static;gap:14px}
body.crew-preflight #live-lobby .live-preview-controls button{width:56px;height:56px;border:1px solid #dedfe1;color:#263039;box-shadow:0 2px 8px #0001}
body.crew-preflight #live-lobby #live-preview-speaker{display:grid!important}
body.crew-preflight #preflight-crew-occupancy:not([hidden]){grid-area:crew;display:flex;align-items:center;gap:10px;font-size:14px;font-weight:650}
.crew-occupancy-members{display:flex;padding-left:6px}
.crew-occupancy-members>span{display:grid;place-items:center;width:34px;height:34px;margin-left:-6px;border:1px solid #e1e2e4;border-radius:50%;background:#fafafa;color:#68737e}
.crew-occupancy-members svg{width:14px;height:14px;color:#939ba3}
body.crew-preflight #live-lobby .live-entry-actions{grid-area:join;justify-self:end}
body.crew-preflight #live-lobby #live-enter{display:flex;align-items:center;justify-content:center;gap:12px;width:auto;min-width:140px;min-height:56px;padding:0 20px;border:1px solid #d7dbe0;border-radius:999px;background:#fff;color:#263039;font-size:16px;font-weight:650}
body.crew-preflight #live-lobby #live-enter:enabled:hover{background:#e9eaec}
body.crew-preflight #live-lobby #live-enter:disabled{background:#ffffff70;color:#68737e}
body.crew-preflight #live-lobby #live-enter:focus-visible{outline:3px solid var(--crew-blue);outline-offset:3px}
body.crew-preflight .preflight-join-arrow{display:block!important;width:16px;height:16px}
@media(max-width:700px){
 body.crew-preflight>main:has(>#live-room-view){padding-inline:16px}
 body.crew-preflight #live-lobby .live-lobby-grid{grid-template-columns:1fr 1fr;grid-template-rows:minmax(min-content,1fr) repeat(7,auto);grid-template-areas:"camera camera" "clock clock" "status status" "retry retry" "consent consent" "selectors selectors" "media media" "crew join"}
 body.crew-preflight #live-lobby .live-preview-controls{margin-bottom:12px}
 body.crew-preflight #live-lobby .live-preview-controls button{width:46px;height:46px}
 body.crew-preflight #live-lobby #live-enter{min-width:100px;min-height:48px}
 .crew-occupancy-members>span{width:22px;height:22px}
}

/* Introductions use the public crew gallery and dock for every room. */
.crew-waiting-header{display:none}
body.crew-waiting{background:#f4f4f4}
body.crew-waiting>:is(.topbar,#page-title){display:none!important}
body.crew-waiting #live-call{top:0;left:30px;right:30px;max-width:none}
body.crew-waiting .crew-waiting-header{display:grid;place-items:center;min-height:60px;flex:none}
.crew-waiting-header h2{margin:0;font-size:17px;font-weight:650}
body.crew-waiting #live-call .live-session-layout{flex:1;min-height:0;margin:18px 0}
body.crew-waiting #live-call .live-participants-panel{display:block}
body.crew-waiting #live-call .live-video-grid{display:grid;grid-template-columns:repeat(var(--waiting-columns,2),minmax(0,1fr));width:100%;align-content:stretch;align-items:stretch;overflow:auto}
body.crew-waiting #live-call .live-video-tile{width:100%;height:100%;min-height:100px;aspect-ratio:auto;margin:0;border-radius:22px;background:#1f1f1f}
body.crew-waiting #live-call .live-video-tile video{object-fit:cover}
body.crew-waiting .live-moderator-row{min-height:0;margin:0;padding:0;border:0;background:none;box-shadow:none}
body.crew-waiting .live-moderator-row .live-waiting-clock:not([hidden]){position:absolute;top:0;right:0;min-height:60px;display:flex;flex-direction:row;align-items:center;gap:8px;color:#263039}
body.crew-waiting .live-moderator-row .live-waiting-clock strong{font-size:15px;color:inherit;font-variant-numeric:tabular-nums}
body.crew-waiting .live-moderator-row .live-waiting-clock>span{font-size:13px;color:inherit}
body.crew-waiting .live-moderator-row .live-announcement{display:none}
body.crew-waiting .live-session-footer{position:relative;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);min-height:60px;margin:0 0 6px}
body.crew-waiting .live-session-footer>.live-controls{grid-column:2;display:flex;gap:14px;background:none;border:0;padding:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
body.crew-waiting .live-controls .live-media-controls{display:flex;gap:14px}
body.crew-waiting .live-controls :is(#live-mic,#live-camera,#live-speaker){width:54px;height:54px;border-radius:50%}
body.crew-waiting #waiting-crew-occupancy:not([hidden]){display:flex;grid-column:1;grid-row:1;align-items:center;gap:10px;font-weight:650}
body.crew-waiting #live-leave{position:absolute;right:0;bottom:3px;display:flex;justify-content:center;align-items:center;gap:8px;border-radius:999px;width:120px;height:54px}
body.crew-waiting #live-leave .sr-only{position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;clip-path:none}
@media(max-width:700px){
 body.crew-waiting #live-call{left:16px;right:16px}
 body.crew-waiting .crew-waiting-header{justify-items:start}
 body.crew-waiting #live-call .live-video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.crew-waiting .live-session-footer{grid-template-columns:1fr auto;row-gap:10px}
 body.crew-waiting .live-session-footer>.live-controls{grid-column:1/-1;grid-row:1}
 body.crew-waiting #waiting-crew-occupancy:not([hidden]){grid-row:2;min-height:48px}
 body.crew-waiting #live-leave{bottom:0;width:90px;height:48px}
}

#live-lobby #live-recording-join-copy{margin:0;color:#64717e;font-size:13px;line-height:1.45}

/* Keep the gallery steady as the recruiter starts and stops speaking. */
.in-live-session #live-call{--recruiter-width:148px}
.in-live-session.crew-waiting #live-call{--recruiter-width:190px}
.in-live-session #live-call .live-moderator-row:not([hidden]){
  grid-template-columns:minmax(0,1fr) var(--recruiter-width) minmax(0,1fr);
  height:48px;min-height:48px;margin:0 0 14px;padding:0;gap:8px;
  border:0;background:none;box-shadow:none;color:#263039
}
.in-live-session #live-call .live-moderator-row[hidden]{display:none!important}
.in-live-session #live-call .live-moderator-row .live-waiting-clock:not([hidden]){
  position:static;display:flex;flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:6px;
  min-height:0;color:#263039
}
.in-live-session #live-call .live-waiting-clock strong{font-size:14px;color:inherit}
.in-live-session #live-call .live-waiting-clock>span{font-size:12px;color:inherit}
.in-live-session #live-call #live-moderator-controls{grid-column:3;grid-row:1;display:flex;align-items:center;justify-content:end;gap:8px;text-align:right}
#live-solution-vote {
  padding: 9px 14px;
  border: 1px solid #c7dbf7;
  border-radius: 14px;
  background: #e8f1ff;
  color: #164879;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
#live-solution-vote[aria-pressed="true"] {
  border-color: #bbdfd0;
  background: #e5f5ed;
  color: #20644b;
}
#waiting-invite-status{color:#64717e;font-size:13px}
#waiting-invite{padding:7px 12px;border:0;border-radius:12px;background:#fff;font-size:13px;font-weight:650;cursor:pointer}
#waiting-invite-dialog form{display:grid;gap:10px}
#waiting-invite-dialog input{width:100%}
#waiting-invite-error:empty{display:none}
@media(max-width:540px){
  .in-live-session.crew-waiting #live-call{--recruiter-width:160px}
  body.crew-waiting .live-controls :is(#live-mic,#live-camera,#live-speaker){width:44px;height:44px}
  #waiting-invite-status{font-size:11px}
}

/* Crew selection uses the same full-width navigation as the iPad. */
body[data-app-page="crew"] {
  --crew-choice-ink: #142c40;
  --crew-choice-muted: #516b83;
  --crew-choice-blue: #146bce;
  --crew-choice-surface: #f1f6fa;
  background: var(--crew-choice-surface);
  color: var(--crew-choice-ink);
}
body[data-app-page="crew"] > :is(.app-sidebar, .topbar, .app-tabbar) { display: none !important; }
body[data-app-page="crew"] > main { width: auto; max-width: none; margin: 0; padding: 0 30px 96px; }
body[data-app-page="crew"] > main > #crew-view { width: 100%; max-width: none; margin: 0; padding: 0; }
#crew-view .schedule-toolbar { min-height: 60px; background: var(--crew-choice-surface); }
#crew-view .schedule-back { background: transparent; color: inherit; }
#crew-view .schedule-toolbar-actions details { border: 0; }
#crew-view .crew-choice-description { margin: 12px 0 24px; color: var(--crew-choice-muted); font-size: 15px; line-height: 1.5; }
#crew-view .crew-size-card { color: var(--crew-choice-ink); min-height: 242px; }
#crew-view .crew-size-number,
#crew-view .crew-size-card[aria-pressed=true] .crew-size-number { color: var(--crew-choice-ink); }
#crew-view .crew-size-heading > .crew-size-caption,
#crew-view .crew-size-card[aria-pressed=true] .crew-size-heading > .crew-size-caption { color: var(--crew-choice-muted); }
#crew-view .crew-size-icon { background: transparent; color: #3382df; }
#crew-view .crew-size-seats > span { background: #eaf0f7; }
#crew-view .crew-size-seats > .matched { background: #3382df; }
#crew-view .crew-size-action,
#crew-view .crew-size-card[aria-pressed=true] .crew-size-action { background: #eff5fa; color: var(--crew-choice-ink); }
#crew-view .crew-size-card:hover .crew-size-action { background: #e3edf7; }
#crew-view .crew-code-entry { padding: 0; border: 0; }
#crew-view .crew-code-entry summary { margin: 0; }
#crew-view .crew-code-entry summary svg:first-child { color: var(--crew-choice-blue); }
#crew-view .schedule-tabbar a[aria-current] { color: var(--crew-choice-blue); background: #e4e9f0; }
@media (max-width: 540px) {
  body[data-app-page="crew"] > main { padding-inline: 16px; }
}

.schedule-notifications>div {
  z-index: 30;
  top: calc(100% + 8px);
  width: min(350px, calc(100vw - 32px));
  min-width: 0;
  padding: 16px;
  color: var(--crew-ink);
  box-shadow: 0 12px 36px #18283c20;
}
.schedule-notifications>div>strong {display:block;margin-bottom:10px;font-size:16px}
.schedule-notifications .notification-list {max-height:min(290px,45dvh);overflow:auto;margin:0}
.schedule-notifications .notification-list>span {padding:0}
.schedule-notifications .notification-list a {
  display:block;margin-bottom:6px;padding:11px 12px;border-radius:10px;
  background:var(--crew-blue-soft);color:var(--crew-ink);line-height:1.4;
  font-weight:600;overflow-wrap:anywhere;
}
.schedule-notifications .notification-list a:hover {background:var(--crew-control)}
.schedule-notifications .notification-preferences {
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid var(--crew-control);
  font-size:13px;color:var(--crew-muted);
}
.schedule-notifications .notification-preferences button {
  border:0;border-radius:9px;background:var(--crew-blue-soft);
  color:var(--crew-blue);padding:7px 11px;min-height:36px;font-weight:650;
}
.schedule-notifications .notification-preferences [role="status"] {flex-basis:100%;font-size:12px}
.schedule-notifications .notification-preferences [role="status"]:empty {display:none}

body:has(:is(#login-view,#register-view,#forgot-password-view):not([hidden])) :is(.header-utc,.schedule-utc,.schedule-notifications) {display:none}
#signup-email-dialog {width:min(440px,calc(100% - 32px));padding:24px;border:0;border-radius:22px;color:var(--crew-ink)}
#signup-email-dialog::backdrop {background:#18283c66}
#signup-email-dialog .auth-form {display:grid;gap:12px;margin:0}
#signup-email-dialog label {display:grid;gap:6px}
#signup-email-dialog input {font:inherit;padding:10px 12px;border:1px solid var(--line);border-radius:10px}
#signup-email-status:empty {display:none}

:is(#login-view,#register-view):not([hidden]) {
  position:relative;
  display:grid;
  align-items:center;
  min-height:max(0px,calc(100dvh - 150px));
  padding-block:60px;
}
:is(#login-view,#register-view) .auth-card {position:relative}
:is(#login-view,#register-view) .auth-brand {
  position:absolute;
  left:0;
  bottom:100%;
  width:100%;
  margin-bottom:16px;
  text-align:center;
  color:var(--crew-ink);
  font:600 22px "Avenir Next",system-ui,sans-serif;
}
:is(#login-view,#register-view) .auth-brand span {position:relative}
:is(#login-view,#register-view) .auth-brand img {
  position:absolute;right:calc(100% + 10px);top:50%;
  transform:translateY(-50%) rotate(-25deg);object-fit:contain;
}

#live-in-person-check:not([hidden]) {
  grid-area: camera;
  justify-self: center;
  width: min(100%, 540px);
  box-sizing: border-box;
  padding: 24px;
  margin: 16px auto;
  border-radius: 24px;
  background: var(--surface, white);
}
#live-in-person-check h3 { margin-top: 0; }
#live-in-person-check .session-action { margin: 0 8px 8px 0; }
#live-audio-test-status:empty { display: none; }
body.crew-audio-only :is(.live-device-preview, #live-preview-camera, #live-camera) {
  display: none !important;
}

.exercise-cover-strip {
  display: flex;
  width: 100%;
  height: 84px;
  gap: 2px;
  overflow: hidden;
  border-radius: 12px;
  background: #eef0f2;
}
.exercise-cover-strip img {
  width: 0;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  object-fit: cover;
}
#booking-exercise h3 { margin: 0 0 12px; font-size: 19px; }
#booking-exercise > p { margin: 0 0 16px; }
#booking-exercise .exercise-cover-strip { max-width: 560px; aspect-ratio: 3 / 2; height: auto; border-radius: 20px; }

.real-exercise-label {
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 6px;
}

body:not(.app-immersive) :is(#schedule-view #schedule-grid,#home-view #tables-grid) > .table-card:has(.schedule-booking-row) {
  padding: 12px;
  min-height: 196px;
  gap: 8px;
}
.table-card > .exercise-cover-strip {
  flex: 0 0 58px;
  height: 58px;
  margin-bottom: 0;
  background: transparent;
}
.table-card > .real-exercise-label {
  display: none;
}
.schedule-people-row,
.schedule-booking-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.schedule-booking-row { min-height: 64px; }
.schedule-people-row { min-height: 34px; }
.crew-home .schedule-people-row .seats {
  display: flex;
  flex: 1;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
  margin: 0;
}
:is(#schedule-view #schedule-grid,#home-view #tables-grid) .schedule-people-row .seat {
  flex: 0 1 34px;
  width: 34px;
  max-width: 34px;
}
:is(#schedule-view #schedule-grid,#home-view #tables-grid) .schedule-people-row .seat-required { position: relative; }
:is(#schedule-view #schedule-grid,#home-view #tables-grid) .schedule-people-row .seat-required::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid #cf3846;
  border-radius: inherit;
  pointer-events: none;
}
:is(#schedule-view #schedule-grid,#home-view #tables-grid) .schedule-people-row .seat svg {
  width: 15px;
  height: 15px;
}
.crew-home .schedule-booking-row .table-meta {
  padding: 0;
  margin: 0;
  min-width: 0;
  flex: 1;
}
.crew-home .schedule-booking-row .table-meta > span:first-child {
  display: block;
}
.crew-home .schedule-booking-row .table-meta > span:last-child,
.crew-home .schedule-booking-row .table-meta svg {
  display: none;
}
:is(#schedule-view #schedule-grid,#home-view #tables-grid) .schedule-booking-row .crew-slot-hour {
  font-size: 28px;
  gap: 2px 5px;
}
:is(#schedule-view #schedule-grid,#home-view #tables-grid) .schedule-booking-row .crew-slot-date {
  margin-top: 2px;
}
.crew-home .schedule-booking-row .table-button {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 8px 10px;
  min-height: 36px;
  border-radius: 12px;
  background: #ededee;
  color: #263039;
  font-size: 12px;
}
.crew-home .schedule-booking-row .table-button.schedule-reserved {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 6px;
  white-space: nowrap;
  background: transparent;
  color: #c7243c;
  border: 1px solid currentColor;
}
.crew-home .schedule-booking-row .table-button.schedule-reserved > svg {
  display: block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

body:not(.app-immersive) #home-view #tables-grid > .table-card:has(.schedule-booking-row) {
  min-height: 186px;
  padding: 0 12px 14px;
  overflow: hidden;
}
#home-view #tables-grid > .table-card > .exercise-cover-strip {
  width: calc(100% + 24px);
  max-width: none;
  margin-inline: -12px;
  border-radius: 0;
}
#home-view #tables-grid .schedule-booking-row .table-button:not(.schedule-reserved) {
  background: #eaf0f7;
  color: #172a40;
}
#home-view #tables-grid .schedule-booking-row .table-button:not(.schedule-reserved) > svg {
  display: none;
}
#home-view #tables-grid .schedule-people-row .seat.vacant {
  background: #f0f5fa;
  color: #526b83;
}
#home-view #tables-grid > .schedule-more { min-height: 186px; }


body[data-app-page="crew"] > main > #crew-view:not([hidden]) {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 96px);
}
#crew-view > :not(.crew-map-scroll) { flex-shrink: 0; }
#crew-view > .crew-map-scroll {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 24px;
  padding: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
:is(#crew-view,#ai-picker) .crew-exercise-map-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
}
:is(#crew-view,#ai-picker) .crew-exercise-map-grid button {
  grid-template-rows: auto 1fr;
  min-width: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
  border-radius: 20px;
}
:is(#crew-view,#ai-picker) .crew-exercise-map-grid button[aria-pressed="true"] { border-color: #0064d9; }
:is(#crew-view,#ai-picker) .crew-exercise-map-cover {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: #eaf0f7;
}
:is(#crew-view,#ai-picker) .crew-exercise-map-grid strong {
  align-self: center;
  min-height: 3.9em;
  display: flex;
  align-items: center;
  padding: 8px 11px;
  font-size: 14px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
:is(#crew-view,#ai-picker) .crew-exercise-map-grid small { padding: 0 11px 8px; }
.crew-exercise-check, .crew-exercise-placeholder { display: none; }
:is(#crew-view,#ai-picker) [aria-pressed="true"] .crew-exercise-check {
  position: absolute;
  inset: 9px 9px auto auto;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #0064d9;
  color: white;
  font: 700 14px/1 system-ui, sans-serif;
  box-shadow: 0 0 0 6px #18232cbb;
}
:is(#crew-view,#ai-picker) .crew-exercise-placeholder {
  position: relative;
  display: block;
  width: 34px;
  height: 27px;
  color: #526b83;
}
:is(#crew-view,#ai-picker) .crew-exercise-placeholder::before,
:is(#crew-view,#ai-picker) .crew-exercise-placeholder::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 4px;
  background: #eaf0f7;
}
:is(#crew-view,#ai-picker) .crew-exercise-placeholder::after { right: 0; bottom: 0; }
@media (max-width: 720px), (max-height: 650px) {
  #crew-view .crew-size-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  #crew-view .crew-size-card { min-height: 0; padding: 10px; border-radius: 14px; }
  #crew-view .crew-size-heading { flex-wrap: wrap; gap: 4px; }
  #crew-view .crew-size-number { font-size: 28px; }
  #crew-view .crew-size-icon { display: none; }
  #crew-view .crew-size-action { padding: 6px; }
  #crew-view .crew-choice-description { margin: 6px 0 12px; }
}

#home-training-path {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--crew-control);
  color: var(--crew-ink);
  font-size: .875rem;
  font-weight: 700;
  white-space: nowrap;
}

.table-card > .real-exercise-label.free-exercise-title { display: block; align-self: start; }
.schedule-booking-row .table-button.schedule-free { position: relative; overflow: visible; }
.schedule-free-mark {
  position: absolute;
  top: -13px;
  left: -6px;
  color: #ba2036;
  font: 700 20px/1 "Bradley Hand", "Segoe Print", cursive;
  -webkit-text-stroke: .45px currentColor;
  transform: rotate(-10deg);
  pointer-events: none;
}
.schedule-assessment-mark {
  top: auto;
  bottom: calc(100% - 4px);
  font-size: 20px;
  line-height: 1.05;
  white-space: pre;
  text-align: center;
}
[data-theme="dark"] .schedule-free-mark { color: #ff7f8d; }
.free-exercise-label { color: #155c42; background: #dff4e9; border-radius: 12px; padding: .4rem .7rem; }
.trial-feedback { width: min(28rem, calc(100% - 2rem)); border: 0; border-radius: 24px; padding: 1.5rem; background: Canvas; color: CanvasText; }
.trial-feedback::backdrop { background: rgb(0 0 0 / .45); }
.trial-feedback form { display: grid; gap: 1rem; }
.trial-feedback :is(h2,p) { margin: 0; }
.trial-feedback fieldset { display: flex; flex-wrap: wrap; gap: 1rem; border: 0; padding: 0; }
.trial-feedback legend { margin-bottom: .5rem; }
.trial-feedback textarea { display: block; width: 100%; margin-top: .4rem; }
.trial-feedback-actions { display: flex; gap: .75rem; justify-content: flex-end; }

.notification-list .notification-unread { font-weight: 700; }

.table-card > .exercise-cover-strip { position: relative; }
.scheduled-exercise-title {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 6px 12px;
  background: color-mix(in srgb, var(--crew-surface, #fff) 94%, transparent);
  color: var(--crew-ink, #172a40);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* Give the section title its own breathing room and keep help beside it. */
#home .crew-schedule-heading { margin-top: 18px; margin-bottom: 24px; }
.scheduled-title { display: flex; align-items: center; gap: 10px; }
.scheduled-title h2 { margin: 0; }
.schedule-toolbar .scheduled-title { gap: 2px; }
.scheduled-info-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--secondary); cursor: pointer; }
.scheduled-info-button svg { width: 22px; height: 22px; }
.scheduled-info-button:hover { background: var(--inner); }
.scheduled-info-dialog { box-sizing: border-box; width: min(620px,calc(100vw - 40px)); max-height: 85dvh; border: 0; border-radius: 30px; padding: 30px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 100px #0004; }
.scheduled-info-dialog::backdrop { background: #08142488; backdrop-filter: blur(8px); }
.scheduled-info-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.scheduled-info-header h2 { margin: 0; font-size: 24px; }
.scheduled-info-header button { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border: 0; border-radius: 50%; background: var(--inner); color: inherit; font-size: 26px; cursor: pointer; }
.scheduled-info-dialog section + section { margin-top: 26px; }
.scheduled-info-dialog h3 { margin: 0 0 10px; font-size: 18px; }
.scheduled-info-dialog p { margin: 0 0 10px; color: var(--secondary); font-size: 15px; line-height: 1.65; }
.scheduled-info-dialog .scheduled-free-heading { color: #ef4c53; }

/* One full-card cover and one continuous surface fade behind all session details. */
:is(#schedule-view #schedule-grid,#home-view #tables-grid) > .table-card:has(.schedule-booking-row) {
  isolation: isolate;
  overflow: hidden;
  background: var(--surface, #fff);
}
:is(#schedule-view #schedule-grid,#home-view #tables-grid) > .table-card:has(.schedule-booking-row)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom,
    transparent 0%,
    color-mix(in srgb, var(--surface, #fff) 82%, transparent) 23%,
    color-mix(in srgb, var(--surface, #fff) 72%, transparent) 58%,
    var(--surface, #fff) 100%);
}
:is(#schedule-view #schedule-grid,#home-view #tables-grid) > .table-card > .exercise-cover-strip {
  position: static;
  flex: 0 0 auto;
  height: auto;
  min-height: 58px;
  align-items: flex-end;
  overflow: visible;
  background: transparent;
}
:is(#schedule-view #schedule-grid,#home-view #tables-grid) > .table-card > .exercise-cover-strip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  object-fit: cover;
}
:is(#schedule-view #schedule-grid,#home-view #tables-grid) .scheduled-exercise-title {
  position: relative;
  inset: auto;
  flex: 0 1 auto;
  min-width: 0;
  padding: 5px 9px;
  background: transparent;
  color: var(--crew-ink, #172a40);
  font-weight: 700;
}
#home-view #tables-grid .scheduled-exercise-title {
  margin-inline: 12px;
}
