/* 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 {background:#d5004f;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:30px;background:#f4f4f5;color:#263039;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:#e9eaec;color:#263039;font-size:27px;cursor:pointer}
.booking-sheet-body {min-height:0;overflow:auto;padding:0 24px 16px}
#booking-content {display:grid;gap:14px}
.booking-time-card,.booking-waiting-card {border-radius:24px;background:#fff;padding:20px}
.booking-card-top,.booking-crew-size,.booking-waiting-card {display:flex;align-items:center;gap:12px}
.booking-card-top {justify-content:space-between;gap:12px;margin-bottom:14px}
.booking-calendar {display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:#fff0f5;color:#d5004f}
.booking-calendar svg,.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-muted,.booking-waiting-card p {color:#616b76;font-size:13px}
.booking-time {display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin:2px 0 14px}
.booking-time strong {font-size:clamp(36px,7vw,58px);font-variant-numeric:tabular-nums;letter-spacing:-.045em;line-height:1.05}
.booking-time span {color:#616b76}
.booking-crew-size {padding-top:13px;margin-bottom:8px;border-top:1px solid #eceef0}
.booking-waiting-card {align-items:flex-start;border-radius:18px;padding:16px}
.booking-waiting-card>svg {color:#d5004f}
.booking-waiting-card p {margin-top:4px}
.booking-sheet-footer {display:grid;gap:7px;padding:15px 24px;background:#fff;border-top:1px solid #e8e9eb}
.booking-primary,.booking-cancel {min-height:47px;border:0;border-radius:15px;font:inherit;font-weight:650;cursor:pointer}
.booking-primary {background:#d5004f;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 #d5004f;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. */
.schedule-occupancy {display:none}
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:var(--crew-blue)}
.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,#home-view) .schedule-occupancy {display:block;position:absolute;top:var(--scheduled-card-inset);right:var(--scheduled-card-inset);padding:5px 10px;border-radius:999px;background:#e9f2ee;color:#376858;font-size:12px;font-weight:650;font-variant-numeric:tabular-nums}
:is(#schedule-view,#home-view) .schedule-occupancy[data-level="last"] {background:#fbf0e2;color:#8b5319}
:is(#schedule-view,#home-view) .schedule-occupancy[data-level="full"] {background:#fae8eb;color:#a33044}
: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:#c7243c;color:#fff}
.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:#d5004f;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:220px;padding:28px;border-radius:26px;box-shadow:none;gap:24px}
#home-view .crew-entry-public h3 {font-size:30px;font-weight:650;letter-spacing:-.035em}
#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:flex;align-items:center;gap:8px}
#home-view .crew-entry-size svg {width:15px;height:15px}
.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:#d5004f}
#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}
  #home-view .crew-entry {min-height:190px}
}
@media(max-width:540px) {
  #home-view .crew-entry {padding:22px;min-height:0}
  #home-view .crew-entry-public h3 {font-size:25px}
  #home-view .crew-entry-bottom {align-items:flex-start}
}

/* 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:#fff0f5;color:#c70049}
.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:#fff0f5;color:#c7375d}
.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-voice{display: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-voice{
  grid-column:2;grid-row:1;display:flex;flex-direction:column;
  justify-content:center;gap:2px;height:48px;border-radius:999px;
  border:1px solid #ddcffa;background:#ede4ff;
  box-shadow:0 3px 12px #64449c1a,inset 0 1px 0 #ffffffa6;
  opacity:0;visibility:hidden;transition:opacity .2s ease
}
.in-live-session #live-call .is-playing #live-moderator-voice{opacity:1;visibility:visible}
.in-live-session #live-call #live-moderator-voice>span{color:#5d3e89;font-size:11px}
.in-live-session #live-call #live-moderator-wave{width:calc(100% - 40px);height:20px;stroke:#6a429d}
.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}
#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}
}
@media(prefers-reduced-motion:reduce){
  .in-live-session #live-call #live-moderator-voice{transition:none}
}

/* 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; }
}

/* Account entry pages share a centered brand and form without the application shell. */
body[data-account-loading] > :is(.app-sidebar,.topbar,.app-tabbar,.page-title,main),
body:is([data-app-page="login"],[data-app-page="register"],[data-app-page="verify-account"],[data-app-page="forgot-password"],[data-app-page="account-link"]) > :is(.app-sidebar,.topbar,.app-tabbar,.page-title) {
  display:none!important;
}
body:not(.app-immersive):is([data-app-page="login"],[data-app-page="register"],[data-app-page="verify-account"],[data-app-page="forgot-password"],[data-app-page="account-link"]) > main {
  width:auto; max-width:none; margin:0; padding:clamp(32px,8vh,90px) 18px 48px;
}
.auth-brand {display:flex;align-items:center;justify-content:center;gap:9px;margin:0 0 22px;font:600 18px "Avenir Next",system-ui,sans-serif;color:var(--crew-ink)}
.auth-brand img {object-fit:contain;transform:rotate(-15deg)}
.auth-verification-actions {display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px}
