/* ---- pearl.css ---- */
/* Approved Collective mobile direction: pearl surfaces, blue actions, real film. */
html[data-design="pearl"] {
  --ink: #1d1d1f; --muted: #686b73; --paper: #f5f5f7; --line: #e5e6ea;
  --green: #192f50; --gold: #966323; --gold-light: #faf0dc; --danger: #ac343d;
  --accent: #1046ab; --accent-deep: #0d3889; --accent-soft: #eef3fc;
  --pearl-surface: linear-gradient(155deg, #fff, #fdfdfe);
  --pearl-shadow: 0 1px 2px #20263203, 0 12px 32px -24px #20263228;
  --pearl-action: linear-gradient(#195ccc, #1046ab);
  /* Solid surfaces (dark.css redefines each one, so text and background always flip together). */
  --surface: #fff; --surface-glass: #ffffffb5; --surface-tint: #f4f7fc; --surface-sunken: #eceef1; --surface-selected: #fff;
  --line-strong: #d6dbe4; --ink-soft: #3d4250; --muted-on-tint: #565a62;
  background: var(--paper); color-scheme: light;
}
html[data-design="pearl"] body { background: linear-gradient(180deg, #fafafb, #f5f5f7 480px); background-attachment: fixed; color: var(--ink); font: 16px/1.55 var(--app-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif); -webkit-font-smoothing: antialiased; }
html[data-design="pearl"] :is(.shell,.motion-app,.motion-auth) { --motion-ink: var(--ink); --motion-muted: var(--muted); --motion-line: #e2e7ef; --motion-blue: var(--accent); --motion-paper: transparent; font-family: var(--app-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif); background: transparent; color: var(--ink); }
html[data-design="pearl"] :is(h1,h2,h3) { color: var(--ink); font-weight: 600; }
html[data-design="pearl"] h1 { font-size: clamp(36px,4vw,44px); letter-spacing: -.04em; line-height: 1.12; }
html[data-design="pearl"] h2 { font-size: 25px; letter-spacing: -.035em; line-height: 1.22; }
html[data-design="pearl"] h3 { letter-spacing: -.02em; }
html[data-design="pearl"] :is(button,a,summary,input,select,textarea):focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
html[data-design="pearl"] button { min-height: 44px; }
html[data-design="pearl"] :is(.eyebrow,.motion-eyebrow) { color: var(--accent); font-size: 12px; font-weight: 650; letter-spacing: .085em; }
html[data-design="pearl"] .shell { padding: 0; display: block; }
html[data-design="pearl"] .shell .sidebar { position: sticky; top: 0; z-index: 60; grid-template-columns: 1fr auto 1fr; width: 100%; height: 80px; max-width: none; margin: 0; padding: 12px max(28px,calc((100vw - 1200px)/2)); border: 0; border-radius: 0; border-bottom: 1px solid #e2e7efbd; background: #fafafbd9; box-shadow: 0 1px 0 #fff; backdrop-filter: blur(22px); }
html[data-design="pearl"] .shell .brand { gap: 10px; letter-spacing: 0; }
html[data-design="pearl"] :is(.shell .brand img,.motion-brand img) { width: 40px; height: 40px; object-fit: contain; padding: 0; border: 0; border-radius: 0; background: none; filter: none; box-shadow: none; object-fit: contain; }
html[data-design="pearl"] :is(.brand-wordmark,.motion-brand span) { font-size: 20px; font-weight: 650; color: #142137; letter-spacing: -.04em; }
html[data-design="pearl"] .shell .nav { position: static; display: flex; flex-direction: row; width: auto; margin: 0; padding: 4px; gap: 5px; border: 1px solid #e8e9ed; border-radius: 16px; background: #eceef180; box-shadow: none; transform: none; }
html[data-design="pearl"] .shell .nav button { display: flex; align-items: center; gap: 8px; min-width: 86px; min-height: 44px; padding: 10px 13px; border: 1px solid transparent; border-radius: 13px; color: #647188; font-size: 13px; font-weight: 550; background: transparent; box-shadow: none; }
html[data-design="pearl"] .shell .nav .nav-icon { display: inline-flex; }
html[data-design="pearl"] .shell .nav button.active { background: var(--pearl-surface); color: var(--accent); border-color: #fff; box-shadow: 0 2px 5px #2636520c; }
html[data-design="pearl"] .shell .nav button:hover { color: var(--accent); }
html[data-design="pearl"] .account-menu { justify-self: end; margin: 0; }
html[data-design="pearl"] .tools-menu > summary { display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; background: transparent; border: 0; border-radius: 50%; }
html[data-design="pearl"] .account-avatar { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; background: linear-gradient(150deg,#3b4654,#101822); box-shadow: inset 0 1px 1px #ffffff33,0 2px 6px #12203b13; color: #fff; font-size: 18px; font-weight: 450; }
html[data-design="pearl"] .tools-popover { width: 256px; max-height: calc(100dvh - 150px); overflow-y: auto; border-radius: 19px; background: #fffffff5; backdrop-filter: blur(24px); box-shadow: 0 16px 44px #152c4c26; border: 1px solid #e3e8f0; }
html[data-design="pearl"] .tools-popover button { font-size: 14px; }
html[data-design="pearl"] .shell .main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 34px 34px 80px; }
html[data-design="pearl"] .data-shell .main { max-width: 1440px; }
html[data-design="pearl"] .data-shell .topbar { margin: 0 0 24px; border: 0; }
html[data-design="pearl"] :is(.journey-home,.session-page,.coach-overview) { max-width: 850px; margin-inline: auto; }
html[data-design="pearl"] .pearl-home { max-width: 1100px; }
html[data-design="pearl"] :is(.journey-heading,.page-heading,.motion-page-heading) { margin-bottom: 25px; }
html[data-design="pearl"] :is(.journey-heading p,.page-heading p,.motion-page-heading p) { font-size: 16px; color: var(--muted); line-height: 1.55; }
html[data-design="pearl"] .pearl-greeting { margin: 0 0 7px; font-size: 16px; }
/* A single surface language across the learning, video, coach and staff tools. */
html[data-design="pearl"] :is(.card,.today-task,.session-surface,.coach-queue,.coaching-card,.coaching-booking,.coaching-profile,.coaching-request,.coaching-management-body>section,.coaching-today-card,.motion-viewer,.motion-library-empty,.motion-capture-guide,.motion-processing,.motion-failed,.motion-clip,.wb-card,.wb-panel,.knowledge-card,.knowledge-panel,.position-card,.benchmark-card,.bm-card,.mi-card,.mi-panel) { border: 1px solid var(--line); border-radius: 20px; background: var(--pearl-surface); box-shadow: var(--pearl-shadow); color: var(--ink); }
html[data-design="pearl"] :is(.today-task,.session-surface) { padding: 26px; }
html[data-design="pearl"] :is(.today-task h2,.session-surface h2) { font-size: 25px; }
html[data-design="pearl"] :is(.task-description,.session-surface>p,.coaching-page p,.motion-page-heading p) { font-size: 15px; line-height: 1.6; }
html[data-design="pearl"] :is(.btn,.motion-primary,.coaching-button,.wb-primary,.knowledge-primary,.positions-primary,.benchmark-primary) { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 52px; padding: 13px 20px; border: 1px solid var(--accent); border-radius: 14px; color: #fff; background: var(--pearl-action); box-shadow: inset 0 1px 0 #ffffff24,0 3px 8px #1046ab18; font-size: 15px; font-weight: 550; text-decoration: none; }
html[data-design="pearl"] :is(.btn,.motion-primary,.coaching-button):hover { background: var(--pearl-action); color: #fff; }
html[data-design="pearl"] :is(.btn.secondary,.btn.outline,.coaching-button.secondary,.coaching-secondary) { background: #fff; border-color: #e0e3e9; color: var(--accent); box-shadow: inset 0 1px 0 #fff,0 2px 4px #24426704; }
html[data-design="pearl"] :is(.text-btn,.motion-text,.coaching-text,.btn.text-btn) { background: transparent; box-shadow: none; border: 0; color: var(--accent); border-radius: 8px; font-size: 14px; min-height: 44px; }
html[data-design="pearl"] .btn.full { width: 100%; }
html[data-design="pearl"] .btn svg { flex: 0 0 20px; }
html[data-design="pearl"] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),textarea,select) { border: 1px solid #d3dce8; border-radius: 12px; background: #f5f7faa8; box-shadow: inset 0 2px 4px #12213b04,0 1px 0 #fff; color: var(--ink); font-size: 16px; min-height: 46px; }
html[data-design="pearl"] :is(input[type=checkbox],input[type=radio],input[type=range],progress) { accent-color: var(--accent); }
html[data-design="pearl"] .field>span { font-size: 14px; color: #43536a; }
html[data-design="pearl"] .badge { background: #edf3fc; color: #315e96; border: 0; border-radius: 8px; }
html[data-design="pearl"] .badge.gold { background: #fcf2e1; color: #855d26; }
html[data-design="pearl"] :is(.quiet-note,.session-footnote) { color: #68778a; font-size: 12px; }
html[data-design="pearl"] .pearl-home-layout { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 26px; align-items: start; }
.pearl-feature,.pearl-welcome { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--pearl-surface); box-shadow: var(--pearl-shadow); }
.pearl-feature>.eyebrow,.pearl-welcome>.eyebrow { display: inline-block; margin-bottom: 10px; color: var(--accent); }
.pearl-feature>p,.pearl-welcome>p { margin-top: 8px; margin-bottom: 19px; font-size: 15px; color: var(--muted); }
.pearl-film-unit { width: fit-content; max-width: 100%; margin: 24px auto 0; }
.pearl-film-cover { position: relative; display: block; width: 100%; max-width: 100%; overflow: hidden; padding: 0; border: 0; border-radius: 16px; background: #e6ebf1; margin: 0 0 12px; box-shadow: inset 0 2px 6px #1b2b481a; }
.pearl-film-cover img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(58svh, 520px); object-fit: contain; }
.pearl-film-cover:has(.pearl-no-poster) { width: 100%; min-height: 180px; }
.pearl-play { position: absolute; inset: 0; width: 52px; height: 52px; margin: auto; display: grid; place-items: center; border: 1px solid #ffffffcc; border-radius: 50%; background: #16243b60; backdrop-filter: blur(7px); color: #fff; box-shadow: 0 3px 10px #13213530; }
.pearl-play svg { width: 23px; height: 23px; fill: currentColor; stroke-width: 1px; }
.pearl-duration { position: absolute; bottom: 11px; right: 10px; background: #152036bf; border-radius: 7px; padding: 3px 7px; color: #fff; font-size: 12px; }
html[data-design="pearl"] .pearl-film-unit>.btn { display: flex; justify-content: space-between; width: 100%; }
html[data-design="pearl"] .pearl-home-next .today-task { padding: 28px; }
html[data-design="pearl"] .pearl-home-next .today-task>h2 { font-size: 24px; }
html[data-design="pearl"] .pearl-home-next .today-task .btn { margin-top: 19px; }
.pearl-goal { margin-top: 15px; font-size: 14px; }
.pearl-goal summary { min-height: 44px; padding: 10px 0; color: var(--accent); }
.pearl-goal p { color: var(--muted); }
.pearl-progress { margin: 30px 4px; }
.pearl-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
html[data-design="pearl"] .pearl-section-heading h2 { font-size: 20px; }
.pearl-section-heading>span { color: var(--muted); font-size: 12px; }
html[data-design="pearl"] .journey-path { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 0; padding: 0; margin: 0; gap: 12px; }
html[data-design="pearl"] .journey-path li { display: flex; flex-direction: column; align-items: flex-start; color: var(--muted); text-align: left; font-size: 12px; padding: 0; position: relative; gap: 7px; line-height: 1.35; }
html[data-design="pearl"] .journey-path li::before { display: none; }
html[data-design="pearl"] .journey-path li:not(:last-child)::after { content: ''; position: absolute; height: 2px; background: #d6e0ed; top: 12px; left: 27px; width: calc(100% - 13px); }
html[data-design="pearl"] .journey-path li>span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #ccd7e5; background: #e7edf5; color: #586d8a; font-size: 12px; margin: 0; }
html[data-design="pearl"] .journey-path li.current>span { background: var(--pearl-action); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 3px #dceaff; }
html[data-design="pearl"] .journey-path li.complete>span { background: #4daf6b; color: #fff; border-color: #4daf6b; }
.pearl-add-row { display: flex; align-items: center; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: var(--pearl-surface); box-shadow: var(--pearl-shadow); margin-top: 24px; }
.pearl-add-row>svg { flex-shrink: 0; color: var(--accent); }
.pearl-add-row>div { flex: 1; min-width: 0; }
.pearl-add-row strong,.pearl-add-row span { display: block; }
.pearl-add-row strong { font-weight: 550; font-size: 14px; }
.pearl-add-row span { font-size: 12px; color: var(--muted); margin-top: 3px; }
html[data-design="pearl"] .pearl-add-row .btn { min-height: 44px; padding: 8px 12px; font-size: 13px; border-radius: 10px; flex-shrink: 0; }
.pearl-feedback-link { display: flex; align-items: center; gap: 12px; width: 100%; margin: 8px 0; padding: 15px 8px; color: var(--accent); background: transparent; font-size: 14px; }
.pearl-feedback-link span { flex: 1; text-align: left; }
.pearl-recent { margin-top: 38px; }
.pearl-recent:empty { display: none; }
.pearl-recent-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.pearl-recent-clip { display: block; padding: 10px; text-align: left; background: var(--pearl-surface); border: 1px solid #e4e9f1; border-radius: 17px; color: var(--ink); box-shadow: var(--pearl-shadow); min-width: 0; }
.pearl-recent-clip img { display: block; width: auto; max-width: 100%; height: auto; max-height: 220px; margin: 0 auto; object-fit: contain; border-radius: 10px; }
.pearl-recent-clip strong { display: block; font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }
.pearl-recent-clip>span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
/* Review and library keep the actual footage intact. */
html[data-design="pearl"] .motion-embedded .motion-main { padding: 0; max-width: none; }
html[data-design="pearl"] .motion-library { gap: 19px; grid-template-columns: repeat(3,minmax(0,1fr)); }
html[data-design="pearl"] .motion-clip { padding: 10px 10px 15px; overflow: hidden; text-align: left; }
html[data-design="pearl"] .motion-thumbnail { border: 1px solid #dfe6ef; border-radius: 12px; aspect-ratio: 4/3; background: #e7edf5; }
html[data-design="pearl"] .motion-clip :is(h2,h3) { font-size: 17px; margin: 13px 5px 3px; line-height: 1.35; }
html[data-design="pearl"] .motion-clip>p { font-size: 13px; margin: 0 5px; }
html[data-design="pearl"] .motion-clip-status { background: #f8fbf2ef; color: #315643; border: 1px solid #ffffff90; font-size: 12px; border-radius: 7px; }
.pearl-library-label { display: flex; align-items: center; justify-content: space-between; margin: 27px 0 17px; }
html[data-design="pearl"] .pearl-library-label { font-size: 21px; }
.pearl-library-label>span { font-size: 13px; font-weight: 450; color: var(--muted); }
.pearl-source-library { margin-bottom: 32px; }
.pearl-source-placeholder,.pearl-no-poster { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; width: 100%; height: 100%; background: linear-gradient(140deg,#e8eef6,#cbd8e9); color: #395675; font-size: 14px; }
.pearl-source-placeholder svg { width: 34px; height: 34px; }
.pearl-source-viewer { overflow: hidden; }
.pearl-source-viewer video { width: 100%; display: block; max-height: 62dvh; background: #111d2e; }
.pearl-source-note { max-width: 720px; padding: 24px 4px; }
.pearl-source-note p { margin-top: 10px; color: var(--muted); }
html[data-design="pearl"] .video-frame { border-radius: 15px; border: 1px solid #d9e2ef; overflow: hidden; }
html[data-design="pearl"] .session-surface .video-frame { margin: -10px -10px 0; }
html[data-design="pearl"] .playback-tools { padding: 15px 0; }
html[data-design="pearl"] .motion-viewer { border-radius: 20px; overflow: hidden; }
html[data-design="pearl"] .motion-viewer-toolbar { background: #f9fbfd; color: #475f7d; border-color: #e1e7ef; }
html[data-design="pearl"] .motion-upload-layout { gap: 28px; }
html[data-design="pearl"] .motion-drop { border: 1px solid #d4ddeb; border-radius: 20px; background: linear-gradient(145deg,#edf2f8,#fff); box-shadow: inset 0 2px 5px #24395307; }
html[data-design="pearl"] .motion-upload-symbol { background: #e1eaf6; color: #284e80; border-radius: 15px; box-shadow: inset 0 1px 0 #fff; }
html[data-design="pearl"] .motion-capture-guide { padding: 25px; }
html[data-design="pearl"] .motion-library-empty { padding: 32px; }
html[data-design="pearl"] .motion-page-heading p { margin-top: 10px; }
html[data-design="pearl"] .motion-auth-header { min-height: 88px; }
html[data-design="pearl"] .motion-auth-layout { min-height: calc(100dvh - 88px); padding-top: 25px; }
html[data-design="pearl"] .motion-auth-intro h1 { color: #142137; font-size: clamp(50px,6vw,78px); }
html[data-design="pearl"] .motion-auth-intro h1 span { color: #375c89; }
html[data-design="pearl"] .motion-auth-form { padding: 30px; background: var(--pearl-surface); border: 1px solid #e4eaf2; border-radius: 25px; box-shadow: var(--pearl-shadow); max-width: 420px; }
html[data-design="pearl"] .motion-auth-form>p { font-size: 14px; }
html[data-design="pearl"] :is(.coaching-management,.journey-detail,.quiet-note) summary { min-height: 44px; }
html[data-design="pearl"] .context-nav { display: flex; overflow-x: auto; padding: 5px; background: #edf1f6; border-radius: 14px; gap: 5px; margin-bottom: 25px; }
html[data-design="pearl"] .context-nav button { flex-shrink: 0; border-radius: 10px; color: #5b6c82; font-size: 13px; }
html[data-design="pearl"] .context-nav button[aria-current] { background: #fff; color: var(--accent); box-shadow: 0 2px 4px #142a4410; }
html[data-design="pearl"] .cycle-selector { max-width: 400px; margin-bottom: 25px; }
@media (min-width: 801px) { html[data-design="pearl"] .view-home .cycle-selector { margin-left: auto; max-width: 280px; } }
@media (max-width: 800px) {
  html[data-design="pearl"] .shell .sidebar { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; height: 72px; top: 0; backdrop-filter: none; -webkit-backdrop-filter: none; filter: none; transform: none; background: #f8fafd; }
  html[data-design="pearl"] .shell .brand { gap: 9px; }
  html[data-design="pearl"] .shell .brand img { width: 36px; height: 36px; }
  html[data-design="pearl"] .shell .brand-wordmark { font-size: 20px; }
  html[data-design="pearl"] .shell .nav { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: 100%; max-width: none; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: stretch; padding: 8px 12px max(10px,env(safe-area-inset-bottom)); margin: 0; border: 0; border-top: 1px solid #dfe5ee; border-radius: 0; background: #f9fbfdf2; box-shadow: 0 -2px 14px #16345305; backdrop-filter: blur(22px); transform: none; z-index: 65; }
  html[data-design="pearl"] .shell .nav button { flex-direction: column; justify-content: center; gap: 4px; min-width: 0; min-height: 51px; padding: 5px 2px; font-size: 12px; line-height: 1.2; border: 0; background: transparent; color: #5b6a80; box-shadow: none; border-radius: 10px; }
  html[data-design="pearl"] .shell .nav button.active { color: var(--accent); background: #eaf0f833; box-shadow: none; border: 0; font-weight: 650; }
  html[data-design="pearl"] .shell .nav .nav-icon svg { height: 21px; width: 21px; }
  html[data-design="pearl"] .shell .nav button.active .nav-icon svg { stroke-width: 2; }
  html[data-design="pearl"] .shell .main { padding: 25px 20px calc(100px + env(safe-area-inset-bottom)); }
  html[data-design="pearl"] h1 { font-size: 34px; }
  html[data-design="pearl"] .journey-heading h1 { font-size: 34px; }
  html[data-design="pearl"] .journey-heading { margin-bottom: 22px; }
  html[data-design="pearl"] .pearl-home-layout { grid-template-columns: 1fr; gap: 21px; }
  .pearl-feature,.pearl-welcome { padding: 19px; border-radius: 20px; }
  html[data-design="pearl"] .pearl-feature h2 { font-size: 24px; }
  .pearl-feature>p { font-size: 14px; margin-bottom: 15px; }
  .pearl-film-unit { margin-top: 20px; }
  .pearl-feature>.eyebrow { font-size: 12px; }
  .pearl-progress { margin: 30px 4px; }
  .pearl-recent-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .pearl-recent-clip:last-child:nth-child(odd) { grid-column: 1/-1; display: grid; grid-template-columns: 100px 1fr; column-gap: 14px; align-items: center; }
  .pearl-recent-clip:last-child:nth-child(odd) img { grid-row: span 2; margin: 0; }
  .pearl-recent-clip:last-child:nth-child(odd) strong { align-self: end; }
  .pearl-recent-clip:last-child:nth-child(odd)>span { align-self: start; }
  html[data-design="pearl"] .motion-library { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  html[data-design="pearl"] .motion-clip :is(h2,h3) { font-size: 14px; }
  html[data-design="pearl"] .motion-clip>p { font-size: 12px; }
  html[data-design="pearl"] .motion-clip-status { font-size: 9px; }
  html[data-design="pearl"] .motion-page-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  html[data-design="pearl"] .motion-page-heading>.motion-primary { min-height: 44px; font-size: 14px; padding: 10px 17px; }
  html[data-design="pearl"] .motion-upload-layout { grid-template-columns: 1fr; gap: 23px; }
  html[data-design="pearl"] :is(.session-surface,.today-task) { padding: 20px; }
  html[data-design="pearl"] :is(.session-surface,.today-task) h2 { font-size: 24px; }
  html[data-design="pearl"] .session-surface .video-frame { margin: -8px -8px 0; border-radius: 13px; }
  html[data-design="pearl"] .motion-auth-header { padding: 16px 22px; min-height: 74px; }
  html[data-design="pearl"] .motion-auth-layout { display: flex; flex-direction: column; gap: 27px; padding: 18px 20px 40px; }
  html[data-design="pearl"] .motion-auth-intro { align-self: stretch; padding: 0; }
  html[data-design="pearl"] .motion-auth-intro h1 { font-size: 43px; margin: 13px 0; }
  html[data-design="pearl"] .motion-auth-intro h1 br { display: none; }
  html[data-design="pearl"] .motion-auth-intro>p { font-size: 15px; line-height: 1.5; }
  html[data-design="pearl"] .motion-auth-foot { display: none; }
  html[data-design="pearl"] .motion-auth-form { padding: 24px; max-width: none; }
  html[data-design="pearl"] .coaching-today-card { flex-direction: column; align-items: flex-start; }
  html[data-design="pearl"] .cycle-selector { margin-bottom: 20px; }
  html[data-design="pearl"] .tools-popover { top: calc(100% + 10px); }
}
@media(max-width:360px) {
  html[data-design="pearl"] .shell .main { padding-inline: 14px; }
  html[data-design="pearl"] .shell .sidebar { padding-inline: 16px; }
  .pearl-feature,.pearl-welcome { padding: 16px; }
  .pearl-add-row { padding: 13px; gap: 9px; }
  .pearl-add-row>svg { display: none; }
  html[data-design="pearl"] .pearl-add-row .btn { padding: 8px; }
}
@media(prefers-reduced-motion:reduce) { html[data-design="pearl"] *,html[data-design="pearl"] *::before,html[data-design="pearl"] *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
/* Override older form-specific rules with the same shared action treatment. */
html[data-design="pearl"] #app .shell :is(.btn,.motion-primary,.coaching-button,.bm-button,.kn-button,.ps-button) {
  border-radius: 14px; border: 1px solid var(--accent); color: #fff; background: var(--pearl-action);
  box-shadow: inset 0 1px 0 #ffffff24,0 3px 8px #1046ab18;
}
html[data-design="pearl"] #app .shell :is(.btn.outline,.btn.secondary,.coaching-button.secondary,.bm-button.secondary,.bm-button.bm-button-secondary,.kn-button.kn-secondary,.ps-button.ps-secondary,.ps-button.secondary) { background: #fff; border-color: #e0e3e9; color: var(--accent); box-shadow: inset 0 1px 0 #fff; }
html[data-design="pearl"] #app .shell :is(.btn.text-btn,.bm-text-button) { background: transparent; box-shadow: none; border: 0; color: var(--accent); }
html[data-design="pearl"] :is(.kn-card,.kn-teaching-card,.ps-surface,.bm-surface,.bm-drill-card,.dataset-card,.source-card,.import-card,.metric-card,.insights-panel) { border: 1px solid #e3e9f2; border-radius: 20px; background: var(--pearl-surface); box-shadow: var(--pearl-shadow); }
html[data-design="pearl"] :is(.knowledge,.positions-workspace,.benchmarks-workspace) { --kn-ink: #142137; --kn-muted: #5a6579; --kn-blue: var(--accent); --ps-ink: #142137; --ps-muted: #5a6579; --ps-blue: var(--accent); }

/* Route focus remains announced, without a border around a noninteractive heading. */
html[data-design="pearl"] .main h1[tabindex="-1"]:focus { outline: none; }
html[data-design="pearl"] .journey-heading h1 { font-weight: 650; }
html[data-design="pearl"] .pearl-home-next .today-task .eyebrow { margin-bottom: 12px; }
html[data-design="pearl"] .pearl-home-next .today-task h2 { line-height: 1.18; }
html[data-design="pearl"] .pearl-home-next .task-description { margin-top: 12px; }
html[data-design="pearl"] .journey-path li.current { color: var(--accent); }
html[data-design="pearl"] .pearl-feature>.eyebrow { color: var(--accent); }
@media(max-width:800px) { html[data-design="pearl"] .pearl-home-next .today-task { padding: 22px; } }
/* Phone-safe room rows: long emails wrap, headings wrap, a date never runs into its link. */
.row .grow{min-width:0}.row .grow p{overflow-wrap:anywhere}
.section-heading{flex-wrap:wrap;gap:6px 16px}
.row .grow .muted-line{display:block}
/* Grouped More menu; account actions stay pinned at the bottom of the scrolling popover. */
.tools-group+.tools-group,.tools-account{border-top:1px solid #e4e9f1;margin-top:4px;padding-top:4px}
.tools-heading{padding:8px 12px 2px;font-size:11px;font-weight:650;letter-spacing:.06em;text-transform:uppercase;color:#5f6b7a}
html[data-design="pearl"] .tools-popover .tools-account{position:sticky;bottom:-10px;margin-bottom:-10px;padding-bottom:10px;background:#fff}

/* ---- IA shell (IA-SPEC 2.1): one header, one nav, one sticky primary. No black bar. ---- */
html[data-design="pearl"] .ia-shell { min-height: 100dvh; padding: 0; display: block; }
.ia-header { position: sticky; top: 0; z-index: 60; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 8px; min-height: 60px; padding: max(8px, env(safe-area-inset-top)) 12px 8px 16px; background: #f9fafb; border-bottom: 1px solid #e7e9ee; }
/* No backdrop-filter on the header at phone widths: it would become the containing block of the fixed bottom bar. */
.ia-logo { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
html[data-design="pearl"] .ia-logo img { display: block; width: 32px; height: 32px; object-fit: contain; }
.ia-title-wrap { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ia-title { overflow: hidden; font-size: 17px; font-weight: 650; letter-spacing: -.02em; white-space: nowrap; text-overflow: ellipsis; color: var(--ink); }
.ia-actions { display: flex; align-items: center; gap: 2px; }
:is(.ia-bell,.ia-jump,.ia-more) { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 6px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font: inherit; text-decoration: none; cursor: pointer; }
.ia-bell[hidden] { display: none; }
.ia-bell-dot { display: none; position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px #fff; }
.ia-bell.has-new .ia-bell-dot { display: block; }
html[data-design="pearl"] .ia-more .account-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px #d4e0f5; font-size: 13px; font-weight: 700; }
.ia-more-label { color: var(--accent); font-size: 13px; font-weight: 650; }
.ia-more-name, .ia-jump-field, html[data-design="pearl"] #app .ia-shell .ia-film-btn { display: none; }
/* Bottom bar: labels always shown, each tab at least 64 px tall and wide (5 fit at 320). */
.ia-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(64px, 1fr); padding: 0 0 env(safe-area-inset-bottom); background: #fbfbfc; border-top: 1px solid #e3e6ec; } /* solid: no backdrop-filter (round 1 b4) */
.ia-tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 64px; min-height: 64px; padding: 6px 2px; color: #5b687b; font-size: 12px; font-weight: 550; line-height: 1.2; text-decoration: none; }
.ia-tab .nav-icon { display: inline-flex; }
.ia-tab .nav-icon svg { width: 22px; height: 22px; }
.ia-tab.active { color: var(--accent); font-weight: 700; }
.ia-tab.active::before { content: ""; position: absolute; top: 0; left: 26%; right: 26%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.ia-tab.ia-film { color: var(--accent); }
.ia-tab.ia-film .nav-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-top: -20px; border-radius: 50%; background: var(--pearl-action); color: #fff; box-shadow: 0 6px 14px #1046ab3d, 0 0 0 4px #fbfbfc; }
.ia-tab.ia-film.active::before { display: none; }
.ia-tab .num { position: absolute; top: 6px; left: calc(50% + 6px); display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
html[data-design="pearl"] .ia-shell .main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 20px 16px calc(64px + 28px + env(safe-area-inset-bottom)); }
html[data-design="pearl"] .ia-shell.ia-chromeless .ia-nav, html[data-design="pearl"] .ia-shell.ia-chromeless .ia-header { display: none; }
html[data-design="pearl"] .ia-shell .main .ia-topbar { display: block; height: auto; min-height: 0; margin: 0; padding: 0; border: 0; background: none; position: static; }
.ia-topbar:empty { display: none; }
.ia-mode-chip { display: inline-flex; align-items: center; min-height: 28px; margin: 0 0 14px; padding: 3px 12px; border: 1px solid #cfdaeb; border-radius: 999px; background: #fff; color: var(--accent); font-size: 12px; font-weight: 650; }
/* The shell's sticky primary slot only (#ia-primary). Screen modules use .ia-primary for their own in-page buttons. */
#ia-primary.ia-primary { position: fixed; left: 16px; right: 16px; bottom: calc(64px + 12px + env(safe-area-inset-bottom)); z-index: 65; }
#ia-primary.ia-primary[hidden] { display: none; }
#ia-primary.ia-primary .ui-btn { width: 100%; box-shadow: 0 8px 20px #1046ab30; }
html[data-design="pearl"] .ia-shell:has(#ia-primary:not([hidden])) .main { padding-bottom: calc(64px + 28px + 64px + env(safe-area-inset-bottom)); }
.ia-state-host { padding: 12px 0; }
/* More: full-height sheet at 390 (one scroller, no inner trap), popover at 1440. */
html.ia-more-open { overflow: hidden; }
.ia-more-panel { position: fixed; inset: 0; z-index: 120; overflow-y: auto; padding: max(8px, env(safe-area-inset-top)) 16px 0; background: #fff; color: var(--ink); }
.ia-more-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.ia-more-head .tools-identity { margin: 0; padding: 0; font-size: 17px; font-weight: 650; line-height: 1.3; }
/* More's group headings and name are real headings (h2) styled as before: small caps label, the person's name. */
html[data-design="pearl"] .ia-more-panel h2.tools-heading { margin: 0; padding: 8px 12px 2px; font-size: 12px; font-weight: 650; letter-spacing: .06em; line-height: 1.4; text-transform: uppercase; color: #5f6b7a; }
html[data-design="pearl"] .ia-more-head h2.tools-identity { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: 0; line-height: 1.3; }
.ia-more-close { min-width: 44px; min-height: 44px; border: 0; border-radius: 50%; background: #f1f3f7; color: var(--ink); font-size: 15px; cursor: pointer; }
.ia-viewing { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 4px 0 14px; }
.ia-viewing-label { width: 100%; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.ia-chip { min-height: 44px; padding: 8px 16px; border: 1px solid #dde2ea; border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.ia-chip.selected { border: 2px solid var(--accent); color: var(--accent); font-weight: 650; }
.ia-more-panel :is(a[data-menu],[data-action=logout]) { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 10px 12px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: inherit; font-size: 16px; text-align: left; text-decoration: none; cursor: pointer; }
.ia-more-panel :is(a[data-menu],[data-action=logout]):hover { background: #f3f6fb; color: var(--accent); }
.ia-more-panel .tools-group, .ia-more-panel .tools-account { margin-top: 4px; padding-top: 4px; border-top: 1px solid #e8ebf0; }
/* Get help and Sign out stay reachable without scrolling; the panel is the only scroller. */
.ia-more-panel .tools-account { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; padding-bottom: max(12px, env(safe-area-inset-bottom)); background: #fff; }
.ia-more-panel .tools-account > * { width: auto; flex: 1 1 auto; }
.ia-more-panel.has-more-below .tools-account { box-shadow: 0 -18px 18px -6px #ffffffe6; }
.ia-jump-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-height: 48px; padding: 12px 8px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.ia-jump-row:hover, .ia-jump-row:focus-visible { background: #f3f6fb; color: var(--accent); }
.ia-jump-row small { color: var(--muted); }
@media (min-width: 1024px) {
  .ia-header { grid-template-columns: auto auto minmax(0,1fr); gap: 24px; min-height: 68px; padding: 10px 32px; background: #f9fafbf0; -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
  .ia-title-wrap { display: none; }
  .ia-nav { position: static; display: flex; gap: 2px; padding: 0; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .ia-tab { flex-direction: row; gap: 8px; min-width: 0; min-height: 44px; padding: 8px 14px; border-radius: 10px; font-size: 15px; }
  .ia-tab:hover { color: var(--accent); background: #f1f4f9; }
  .ia-tab .nav-icon, .ia-tab.ia-film { display: none; }
  .ia-tab.active::before { top: auto; bottom: -13px; left: 14px; right: 14px; height: 3px; border-radius: 3px 3px 0 0; }
  .ia-tab .num { position: static; }
  .ia-actions { justify-self: end; gap: 8px; order: 2; }
  .ia-nav { order: 1; } /* the header's actions come before the nav in the DOM; at 1440 the tabs still sit beside the logo */
  html[data-design="pearl"] #app .ia-shell .ia-film-btn { display: inline-flex; min-height: 44px; padding: 8px 16px; font-size: 14px; }
  .ia-jump { min-width: 230px; justify-content: flex-start; padding: 0 12px; border: 1px solid #dde2ea; background: #fff; color: var(--muted); }
  .ia-jump-field { display: inline-flex; flex: 1; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
  .ia-jump kbd { padding: 1px 6px; border: 1px solid #e0e3e9; border-radius: 6px; font: inherit; font-size: 12px; }
  .ia-more-label { display: none; }
  .ia-more-name { display: inline; color: var(--ink); font-size: 14px; font-weight: 600; }
  html[data-design="pearl"] .ia-shell .main { padding: 32px 32px 64px; }
  #ia-primary.ia-primary { position: static; max-width: 1180px; margin: 0 auto; padding: 0 32px 40px; }
  #ia-primary.ia-primary .ui-btn { width: auto; }
  html.ia-more-open { overflow: auto; }
  .ia-more-panel { inset: auto; top: 64px; right: 24px; width: 320px; max-height: 80vh; padding: 6px 12px 0; border: 1px solid #e5e8ee; border-radius: 18px; box-shadow: 0 18px 48px #1a264029; }
}
/* Pearl sign-in, sign-up and recovery (DM12 auth fold). */
.pearl-auth { min-height: 100dvh; padding: 0 16px 40px; }
.pearl-auth-main { display: block; }
.glink-arrival { display: grid; gap: 6px; margin: 18px 0 4px; }
html[data-design="pearl"] .glink-arrival .btn.full { width: 100%; min-height: 52px; }
.glink-arrival .text-btn { min-height: 48px; justify-content: center; text-align: center; }
.pearl-auth-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1080px; min-height: 68px; margin: 0 auto; }
.pearl-auth-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #142137; text-decoration: none; font-size: 19px; font-weight: 650; letter-spacing: -.03em; }
html[data-design="pearl"] .pearl-auth-brand img { width: 32px; height: 32px; object-fit: contain; }
.pearl-auth-card { max-width: 440px; margin: 24px auto 0; padding: 26px 22px; border: 1px solid #e4e8ef; border-radius: 24px; background: var(--pearl-surface); box-shadow: var(--pearl-shadow); }
html[data-design="pearl"] .pearl-auth-card h1 { margin: 6px 0 6px; font-size: 32px; }
.pearl-auth-sub { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.pearl-auth-card form { display: grid; gap: 12px; }
.pearl-auth-card form[hidden], .pearl-auth-links[hidden], .pearl-auth-note[hidden] { display: none; }
html[data-design="pearl"] .pearl-auth-card .btn.full { width: 100%; min-height: 50px; margin-top: 4px; }
.pearl-auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 12px; }
html[data-design="pearl"] .pearl-auth-links .text-btn { min-height: 44px; padding: 8px 2px; }
.pearl-auth-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.pearl-auth .glink-auth-note { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); color: #23426f; font-size: 14px; }
.pearl-auth .family-status:empty, .pearl-auth .family-error:empty { display: none; }
@media (min-width: 1024px) { .pearl-auth-card { margin-top: 8vh; padding: 34px 32px; } }
/* Dark appearance for the shell only (dark.css stays with the accounts feature). */
html[data-theme="dark"] .ia-header { background: #14171cf0; border-bottom-color: #262a33; }
html[data-theme="dark"] .ia-nav { background: #14171c; border-top-color: #262a33; }
html[data-theme="dark"] .ia-more-panel, html[data-theme="dark"] .ia-more-panel .tools-account, html[data-theme="dark"] .ui-sheet, html[data-theme="dark"] .ui-sheet-head { background: #181b21; color: var(--ink); }
html[data-theme="dark"] .ia-tab.ia-film .nav-icon { box-shadow: 0 6px 14px #0006, 0 0 0 4px #14171c; }
html[data-theme="dark"] :is(.ia-chip,.ia-mode-chip,.ia-jump) { background: #1d2128; border-color: #323844; }
html[data-design="pearl"] .ia-more-panel :is(a,button):focus-visible, html[data-design="pearl"] .ia-jump-row:focus-visible { outline-offset: -3px; }
html[data-design="pearl"] .ia-more-head .tools-identity { color: var(--ink); }
html[data-design="pearl"] .pearl-auth-links .text-btn { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--accent); }
.pearl-auth #login-error:empty { display: none; }
/* All tools (#tools): the full grouped tool list as cards; the More menu keeps the everyday ones. */
.tools-all{border-top:1px solid #e4e9f1;margin-top:4px;padding-top:4px}
.tools-popover .tools-all button{font-weight:650;color:#1d4ed8}
.all-tools-page .all-tools-filter{max-width:420px;margin:14px 0 6px}
.all-tools{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;margin-top:12px}
.all-tools .tools-group{border:1px solid #e4e9f1;border-radius:16px;background:#fff;padding:6px;margin:0}
.all-tools .tools-group+.tools-group{border-top:1px solid #e4e9f1;margin-top:0;padding-top:6px}
.all-tools button{display:block;width:100%;min-height:44px;padding:10px 12px;border-radius:10px;background:transparent;color:#34465e;font-size:15px;text-align:left}
.all-tools button:hover,.all-tools button:focus-visible{background:#f0f5fd}
html[data-theme="dark"] .all-tools .tools-group{background:#1a1d23;border-color:#2b303a}
html[data-theme="dark"] .all-tools button{color:var(--ink)}
html[data-theme="dark"] .all-tools button:hover{background:#252a33}
.all-tools a{display:flex;flex-direction:column;justify-content:center;min-height:44px;padding:10px 12px;border-radius:10px;color:#34465e;font-size:15px;text-decoration:none}
.all-tools a small{color:var(--muted);font-size:12px}
.all-tools a:hover,.all-tools a:focus-visible{background:#f0f5fd;color:var(--accent)}
.all-tools a[hidden]{display:none}
html[data-theme="dark"] .all-tools a{color:var(--ink)}

/* IA-SPEC 12.1/12.2: build-claim and "Experimental" labels are hidden in the IA shell except on
   Service › Health (operations) and Knowledge › Tools (source-tools). The sentences that explain
   an estimate stay visible; only the label words go. */
.ia-shell:not(.view-operations):not(.view-source-tools) :is(.claim-strip, .claim-badge.claim-demonstrated, .mr-experimental > span:first-child, .bm-validation-note > span:first-child) { display: none !important; }
/* ui-kit tabs and state cards in dark mode (contrast ≥ 4.5:1) */
html[data-theme="dark"] .ui-tabs { background: #1d2128; }
html[data-theme="dark"] .ui-tab { color: #c3ccd9; }
html[data-theme="dark"] .ui-tab.active { background: #2a303a; color: #9cc0ff; box-shadow: none; }
h1.ia-title { margin: 0; line-height: inherit; }

/* Upload progress (rep-upload.js): one line, then a thin bar in the one blue. Indeterminate while the last save runs. */
progress.upload-bar { display: block; width: 100%; height: 8px; margin: 8px 0 2px; border: 0; border-radius: 999px; background: #e8ecf2; color: var(--accent, #1046ab); overflow: hidden; -webkit-appearance: none; appearance: none; }
progress.upload-bar::-webkit-progress-bar { background: #e8ecf2; border-radius: 999px; }
progress.upload-bar::-webkit-progress-value { background: var(--accent, #1046ab); border-radius: 999px; transition: width .3s ease; }
progress.upload-bar::-moz-progress-bar { background: var(--accent, #1046ab); border-radius: 999px; }
progress.upload-bar:indeterminate { background: linear-gradient(90deg, #e8ecf2 0 30%, var(--accent, #1046ab) 30% 55%, #e8ecf2 55%) 0 0 / 200% 100%; animation: upload-finishing 1.4s linear infinite; }
progress.upload-bar:indeterminate::-webkit-progress-bar { background: transparent; }
[data-connection="lost"] progress.upload-bar::-webkit-progress-value, [data-connection="waiting"] progress.upload-bar::-webkit-progress-value { background: #b54708; }
@keyframes upload-finishing { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { progress.upload-bar:indeterminate { animation: none; } }
html[data-theme="dark"] progress.upload-bar, html[data-theme="dark"] progress.upload-bar::-webkit-progress-bar { background: #262b34; }
/* The toast sits above the bottom tab bar wherever the bar is fixed (below 1024 px), never over it. */
@media (max-width: 1023px) { body:has(.ia-shell:not(.ia-chromeless) .ia-nav) #toast { bottom: calc(64px + 16px + env(safe-area-inset-bottom, 0px)); } }
/* A screen heading promoted to the page h1 on wide screens keeps its section-heading size (r1 b5) */
html[data-design="pearl"] h1[data-promoted-title], h1[data-promoted-title] { margin: 0 0 6px; font-size: 28px; line-height: 1.2; letter-spacing: -.02em; font-weight: 650; }
/* The bar's screen name stays bar-sized when it is the page's h1 (a legacy screen on a phone), r1 b5 */
html[data-design="pearl"] h1.ia-title { font-size: 17px; font-weight: 650; letter-spacing: -.02em; line-height: inherit; }

/* ---- ui-kit.css ---- */
/* Collective shared UI kit (IA-SPEC 10). Pearl tokens only: soft white, system sans, one deep blue. */
.ui-page-header { margin: 0 0 20px; }
.ui-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-decoration: none; font-size: 14px; }
.ui-eyebrow { margin: 0 0 6px; color: var(--accent); font-size: 11px; font-weight: 650; letter-spacing: .085em; text-transform: uppercase; }
.ui-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ui-title-row h1 { margin: 0; overflow-wrap: anywhere; }
.ui-sub { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.ui-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ui-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft, #eef3fc); color: #315e96; font-size: 12px; font-weight: 550; }
.ui-chip-draft { background: #fcf2e1; color: #855d26; }
.ui-header-primary { margin-top: 14px; }
.ui-muted { color: var(--muted); font-size: 13px; }

.ui-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 11px 20px; border: 1px solid var(--accent); border-radius: 14px; background: var(--pearl-action, var(--accent)); color: #fff; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.ui-btn[disabled] { opacity: .5; cursor: not-allowed; }
.ui-btn.outline { background: var(--surface, #fff); color: var(--accent); border-color: var(--line-strong, #d9dee7); }
.ui-btn.outline.danger { color: var(--danger, #ac343d); border-color: #e9c9cc; }
.ui-link { min-height: 44px; padding: 8px 4px; border: 0; background: none; color: var(--accent); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Tab strips stay on one row and scroll sideways (never wrap into a second row). */
.ui-tabs { display: flex; flex-wrap: nowrap; gap: 6px; margin: 0 0 22px; padding: 4px; border-radius: 14px; background: #edf1f6; max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ui-tabs::-webkit-scrollbar { display: none; }
.ui-tabs > .ui-tab { flex: none; scroll-snap-align: start; }
/* Edge fade where more tabs are off-screen (set by fitTabStrip in ui-kit.js). */
[data-tab-fade="end"] { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
[data-tab-fade="start"] { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); }
[data-tab-fade="start end"] { -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
.ui-tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 8px 14px; border-radius: 11px; color: #4f5f75; font-size: 14px; font-weight: 550; text-decoration: none; white-space: nowrap; }
.ui-tab.active { background: #fff; color: var(--accent); box-shadow: 0 2px 4px #142a4410; }
.ui-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; }

.ui-card { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--pearl-surface, #fff); box-shadow: var(--pearl-shadow); }
.ui-lesson-card h2 { margin: 0 0 8px; }
.ui-lesson-card .ui-btn { margin-top: 14px; width: 100%; }

.ui-status-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.ui-status-strip .current { color: var(--ink); font-weight: 700; }
.ui-status-strip .done { color: #2f6a45; }

.ui-rep-card { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--pearl-surface, #fff); color: var(--ink); text-decoration: none; min-height: 56px; }
.ui-rep-poster { display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: #e6ebf1; width: 96px; max-height: 120px; aspect-ratio: 16 / 9; contain: layout paint; }
.ui-rep-poster img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ui-rep-noposter { padding: 22px; color: #395675; }
.ui-rep-body { display: grid; gap: 4px; min-width: 0; }
.ui-rep-body strong { overflow-wrap: anywhere; }
.ui-pill { justify-self: start; padding: 2px 9px; border-radius: 999px; background: #edf3fc; color: #315e96; font-size: 12px; font-weight: 600; }
.ui-pill[data-status="refilm"] { background: #fcf2e1; color: #855d26; }
.ui-next { font-size: 13px; color: var(--ink); }

.ui-loop { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.ui-loop-step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 8px 0; color: var(--muted); }
.ui-loop-step.done { color: #2f6a45; }
.ui-loop-step.current { color: var(--ink); }
.ui-loop-step.current .ui-btn { margin-top: 10px; }
.ui-loop-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #ccd7e5; font-size: 12px; }
.ui-loop-step.current .ui-loop-mark { background: var(--pearl-action, var(--accent)); color: #fff; border-color: var(--accent); }

.ui-inbox-item { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: center; min-height: 56px; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.ui-inbox-main { display: grid; gap: 2px; min-width: 0; }
.ui-inbox-main strong { overflow-wrap: anywhere; font-weight: 600; }
.ui-inbox-meta { display: grid; justify-items: end; font-size: 12px; color: var(--muted); text-align: right; }
.ui-dot, .ui-dot-space { width: 9px; height: 9px; border-radius: 50%; }
.ui-dot { background: var(--accent); }

.ui-decision-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; }
.ui-reason { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--muted); }
.ui-check-group summary { min-height: 44px; padding: 10px 0; cursor: pointer; }

.ui-state { max-width: 520px; margin: 24px auto; padding: 28px 24px; text-align: center; border: 1px solid var(--line); border-radius: 22px; background: var(--pearl-surface, #fff); box-shadow: var(--pearl-shadow); }
.ui-state h2, html[data-design="pearl"] .ui-state h1.ui-state-title { margin: 0 0 8px; font-size: 22px; letter-spacing: -.01em; line-height: 1.25; }
.ui-state p { margin: 0 0 18px; color: var(--muted); }

.ui-danger { margin-top: 28px; padding: 18px; border: 1px solid #ecd3d5; border-radius: 18px; background: #fffafa; }
.ui-danger h2 { margin: 0 0 10px; font-size: 17px; }
.ui-danger-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid #f1e1e2; }

.ui-paged { display: grid; gap: 8px; }
.ui-more { justify-self: start; }

.ui-sheet-backdrop { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; background: #121a2a40; }
.ui-sheet { width: 100%; max-height: 92dvh; overflow-y: auto; padding: 0 20px max(20px, env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 -12px 40px #1a26401f; }
.ui-sheet-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 8px; background: #fff; }
.ui-sheet-head h2 { margin: 0; font-size: 19px; }
.ui-sheet-close { min-width: 44px; min-height: 44px; border: 0; border-radius: 50%; background: #f1f3f7; font-size: 16px; cursor: pointer; }
.ui-sheet-foot { padding-top: 14px; }
.ui-sheet-foot .ui-btn { width: 100%; }
@media (min-width: 801px) {
  .ui-sheet-backdrop { align-items: center; }
  .ui-sheet { width: min(560px, 92vw); border-radius: 22px; padding-bottom: 22px; }
}

.ui-sparkline { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.ui-sparkline svg { display: block; max-width: 100%; height: auto; }
.ui-title-row [data-shell-title] { margin: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.ui-title-row [data-shell-title][hidden] { display: none; }

/* ---- learner.css ---- */
/* Learner accessibility, response modes, practice setup and My record · Pearl:
   soft white surfaces, system sans, one deep-blue motif. */
.skip-link{position:fixed;left:16px;top:12px;z-index:200;padding:12px 18px;border-radius:12px;background:#fff;color:var(--accent,#1046ab);font-weight:650;box-shadow:0 8px 24px #152c4c33;text-decoration:none}
.skip-link:not(:focus){width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;box-shadow:none}
.skip-link:focus,.skip-link:focus-visible{outline:3px solid var(--accent,#1046ab);outline-offset:3px}
main:focus{outline:none}

/* Replay, speed and captions on every player */
.playback-tools{flex-wrap:wrap;row-gap:10px}
.playback-tools>.learner-cc{margin-right:auto;min-width:52px}
.learner-playback{display:flex;align-items:center;gap:12px;padding:12px 0 4px}
.learner-playback button{background:#eff4fc;color:#24508f;border:0;border-radius:10px;min-height:44px;padding:10px 16px;font-size:14px;font-weight:550}
.learner-playback label{display:flex;align-items:center;gap:8px;font-size:14px;color:#4f5c70}
.learner-playback select{min-height:44px;padding:8px;font-size:16px;width:86px;border:1px solid #dfe3ea;border-radius:10px;background:#fff}
.playback-tools .learner-cc{background:#fff;color:#24508f;border:1px solid #d6dfec;border-radius:10px;min-height:44px;padding:10px 16px;font-size:14px;font-weight:550}
.playback-tools .learner-cc[aria-pressed=true]{background:var(--accent,#1046ab);border-color:var(--accent,#1046ab);color:#fff}

/* Transcript toggle and live caption */
.learner-transcript{margin-top:12px;border-top:1px solid var(--line,#e5e6ea);padding-top:4px}
.learner-transcript>summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:44px;cursor:pointer;font-weight:600}
.learner-tag{display:inline-block;padding:2px 9px;border-radius:999px;background:#f3f5f8;color:#555e6c;font-size:12px;font-weight:550;letter-spacing:0}
.learner-transcript-label{font-size:13px;color:var(--muted,#686b73)}
.learner-transcript-cues{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:8px}
.learner-transcript-cues li{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:baseline;line-height:1.5}
.learner-seek{min-height:44px;min-width:56px;padding:6px 10px;border:1px solid #dfe5ef;border-radius:9px;background:#fff;color:var(--accent,#1046ab);font-variant-numeric:tabular-nums;font-size:13px}
.learner-live-caption{min-height:0;margin:8px 0 0;padding:0;font-size:16px;line-height:1.5;color:var(--ink,#1d1d1f)}
.learner-live-caption.on{padding:10px 14px;border-radius:12px;background:#111827;color:#fff}

/* Response modes */
.learner-modes{border:0;margin:16px 0 8px;padding:0;min-width:0}
.learner-modes legend{font-weight:600;margin-bottom:10px;padding:0}
.learner-mode-options{display:flex;flex-wrap:wrap;gap:8px}
.learner-mode{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 14px;border:1px solid #dfe3ea;border-radius:12px;background:#fff;cursor:pointer}
.learner-mode:has(input:checked){border-color:var(--accent,#1046ab);background:var(--accent-soft,#eef3fc);color:var(--accent-deep,#0d3889)}
.learner-mode input{width:18px;height:18px;margin:0;accent-color:var(--accent,#1046ab)}
.learner-mode-panel{margin-top:14px}
.learner-record-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.learner-record-btn{min-height:44px;padding:10px 18px;border:1px solid var(--accent,#1046ab);border-radius:12px;background:#fff;color:var(--accent,#1046ab);font-weight:600;font-size:15px}
.learner-file{display:grid;gap:6px;font-size:14px;color:#4f5c70}
.learner-file input{max-width:100%;min-height:44px}
.learner-response-media{margin:10px 0}
.learner-response-media :is(audio,video),[data-learner-preview] audio,[data-learner-video-preview] video,.learner-step :is(audio,video){display:block;width:100%;max-width:520px;margin:8px 0;border-radius:12px}
.learner-step video,[data-learner-video-preview] video,.learner-response-media video{background:#0b0d12}

/* Messages and waiting states */
.learner-message{display:grid;gap:4px;margin-top:14px;scroll-margin:96px;padding:14px 16px;border-radius:14px;border:1px solid #f0d3d5;background:#fff7f7;color:#5e1d22}
.learner-message strong{font-size:15px}
.learner-message p{margin:0;font-size:14px;line-height:1.5;color:#6b2e33}
.learner-message .learner-message-action{justify-self:start;margin-top:4px;padding:0}
.learner-wait{display:grid;gap:6px;margin:16px 0;padding:16px 18px;border-radius:16px;background:var(--accent-soft,#eef3fc);color:var(--ink,#1d1d1f)}
.learner-wait p{margin:0;color:#3e4a5d;line-height:1.5}
.learner-wait .btn{justify-self:start;min-height:44px}
.learner-offline{position:sticky;top:0;z-index:120;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 14px;padding:8px 16px;background:#1d1d1f;color:#fff;font-size:14px}
.learner-offline .text-btn{color:#bcd2ff;min-height:44px}

/* Practice setup, partner report and setup check */
.learner-setup{margin:18px 0;padding:18px 20px;border-radius:18px;border:1px solid #dfe6f2;background:#f8fafd}
.learner-setup h3{margin:6px 0 10px;font-size:19px}
.learner-setup.awaiting{background:#fff;border-style:dashed}
.learner-setup.awaiting p{margin:0;color:var(--muted,#686b73);line-height:1.55}
.learner-setup-list{display:grid;gap:10px;margin:0}
.learner-setup-list div{display:grid;gap:1px}
.learner-setup-list dt{font-size:13px;color:var(--muted,#686b73)}
.learner-setup-list dd{margin:0;line-height:1.5;overflow-wrap:anywhere}
.learner-partner,.learner-check{margin:18px 0;padding:16px 18px;border:1px solid #e3e7ee;border-radius:16px;min-width:0}
.learner-partner>legend,.learner-check>legend{padding:0 6px;font-weight:600}
.learner-radio-row{display:flex;flex-wrap:wrap;gap:8px;border:0;margin:12px 0 0;padding:0;min-width:0}
.learner-radio-row legend{width:100%;margin-bottom:8px;padding:0;font-size:14px;color:#3e4a5d}
.learner-radio-row label,.learner-check>label:not(.field){display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:6px 12px;border:1px solid #e0e4eb;border-radius:11px;background:#fff;cursor:pointer}
.learner-radio-row input,.learner-check input[type=radio]{width:18px;height:18px;margin:0;accent-color:var(--accent,#1046ab)}
.learner-check>label:not(.field){margin:0 8px 8px 0}
.learner-compare{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:20px;margin:16px 0;padding:16px 0 0;border-top:1px solid var(--line,#e5e6ea)}
.learner-compare h3{font-size:16px;margin:0 0 10px}
.learner-compare .learner-check-latest{grid-column:1/-1;margin:0;padding:10px 14px;border-radius:12px;background:#f6f7f9}
.learner-partner-later form{display:grid;gap:8px}

/* Cue recognition */
.learner-cue{margin-top:20px}
.learner-cue h2{margin:6px 0 6px}
.learner-key{margin:12px 0;padding:10px 14px;border-radius:12px;background:#f6f7f9;font-size:14px;line-height:1.5}
.learner-history{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:12px}
.learner-history li{padding:12px 14px;border:1px solid #e7eaf0;border-radius:14px;background:#fff}
.learner-history p{margin:4px 0}
.learner-record-link{display:flex;align-items:center;width:fit-content;min-height:44px;margin-top:6px;color:var(--accent,#1046ab);font-size:14px;font-weight:550;text-decoration:none}

/* My record */
.learner-page{padding-bottom:40px}
.learner-notice{margin:0 0 22px;padding:14px 16px;border-radius:14px;background:var(--accent-soft,#eef3fc);color:#24324a;line-height:1.55;font-size:15px}
.learner-dimensions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:10px;margin-bottom:30px}
.learner-dimension{padding:16px 18px;border:1px solid #e3e7ee;border-radius:18px;background:var(--pearl-surface,#fff);box-shadow:var(--pearl-shadow,none);min-width:0}
.learner-dimension h3{margin:0 0 4px;font-size:17px}
.learner-dimension p{margin:4px 0;overflow-wrap:anywhere}
.learner-latest{font-size:15px}
.learner-cycle{margin:0 0 12px;border:1px solid #e3e7ee;border-radius:18px;background:#fff;overflow:hidden}
.learner-cycle>summary{display:grid;gap:3px;padding:16px 18px;min-height:44px;cursor:pointer;list-style-position:outside}
.learner-cycle-title{font-weight:600;font-size:16px;overflow-wrap:anywhere}
.learner-steps{list-style:none;margin:0;padding:0 18px 12px;display:grid;gap:0}
.learner-step{display:grid;grid-template-columns:minmax(110px,170px) 1fr;gap:14px;padding:14px 0;border-top:1px solid #eef0f4}
.learner-step-label{font-size:13px;font-weight:600;color:var(--accent,#1046ab);letter-spacing:.01em}
.learner-step p{margin:3px 0;line-height:1.5;overflow-wrap:anywhere}
.learner-criteria{margin:6px 0;padding-left:18px}
.learner-cycle>p{margin:0;padding:0 18px 14px}
.learner-download{margin-top:22px}
@media (max-width:640px){
  .learner-step{grid-template-columns:1fr;gap:4px}
  .learner-playback{gap:8px}
  .learner-cycle>summary,.learner-steps{padding-inline:14px}
}

/* PL-08 contrast: Pearl's quiet greys darkened just enough for WCAG AA text. */
html[data-design="pearl"] .journey-path li>span{color:#4c5f7b}
html[data-design="pearl"] :is(.quiet-note,.session-footnote){color:#5b697c}
html[data-design="pearl"] .session-header>span{color:#5a6678}
html[data-design="pearl"] .source-caption{color:#5d6879}
html[data-design="pearl"] .response-evidence time{color:#5c6a80}
html[data-design="pearl"] .kd-steps li.is-awaiting p{color:#5f6676}
html[data-design="pearl"] :is(video,audio):is(:focus,:focus-within){outline:3px solid var(--accent,#1046ab);outline-offset:3px}
/* PL-08 focus not obscured: keyboard focus scrolls clear of the sticky header and,
   on phones, the fixed tab bar. */
html[data-design="pearl"]{scroll-padding-top:96px}
@media (max-width:800px){html[data-design="pearl"]{scroll-padding-top:88px;scroll-padding-bottom:calc(84px + env(safe-area-inset-bottom))}}
html[data-design="pearl"] .pearl-list-heading{margin:0 0 12px;font-size:19px}
/* A field hidden by the app stays hidden even where .field sets its own display. */
.field[hidden]{display:none}
.learner-compare a.text-btn{text-decoration:none}

/* Lesson stages (overnight round 1, b2): the answer options as one group, an empty answer said at its field,
   and the one line after the reveal. */
.choice-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.answer-missing { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: #fff4f2; color: #9f2a1c; font-size: 15px; font-weight: 600; line-height: 1.4; }
html[data-theme="dark"] .answer-missing { background: #3a1c18; color: #ffb4a8; }
.you-said { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft, #eef3fc); color: var(--ink, #1d1d1f); line-height: 1.45; }

/* ---- review-run.css ---- */
/* Review run bar (A2), next-step rule (A8) and drill pause (A14). Pearl: soft white, deep blue, system sans. */
.rr-start { margin-top: 14px; gap: 10px; }
.rr-start-row { display: flex; justify-content: flex-end; margin: 0 0 14px; }
/* Above a page's own heading the run button is a quiet toolbar action (like Refresh), so the page keeps one filled primary. */
html[data-design="pearl"] .rr-start-row .rr-start { margin-top: 0; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line, #e5e6ea); background: var(--pearl-surface, #fff); background-image: none; color: var(--accent, #1046ab); box-shadow: none; font-size: 14px; }
@media (max-width: 620px) { .rr-start-row { justify-content: flex-start; margin: 4px 0 6px; } }
.rr-bar { position: sticky; top: 88px; z-index: 40; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid #dfe6f1; border-radius: 16px; background: #fffffff5; backdrop-filter: blur(16px); box-shadow: 0 10px 28px -20px #1046ab55; }
.rr-bar.slim { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; }
/* Away from the item (Inbox, a rep): a compact secondary chip, never a second banner. */
.rr-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 12px; }
.rr-mini-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border: 1px solid #d6e0ef; border-radius: 999px; background: #f4f7fc; color: #1f3f73; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.rr-mini-chip:hover { border-color: #b9c9e3; }
.rr-mini-exit { min-height: 36px; font-size: 13.5px; }
html[data-theme="dark"] .rr-mini-chip { border-color: #34405a; background: #1b2232; color: #c9dafb; }
.rr-bar.done { position: static; background: var(--accent-soft, #eef3fc); }
.rr-bar.done p { margin: 0; }
.rr-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.rr-count { display: grid; line-height: 1.15; }
.rr-count .eyebrow { font-size: 10px; }
.rr-count strong { font-size: 19px; letter-spacing: -.03em; color: var(--ink, #1d1d1f); white-space: nowrap; }
.rr-exit { min-height: 44px; padding: 0 6px; }
.rr-item { display: grid; min-width: 0; line-height: 1.25; }
.rr-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr-item span { color: var(--muted, #686b73); font-size: 13.5px; }
.rr-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.rr-chips:empty { display: none; }
.rr-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 9px; border-radius: 999px; background: #eef3fc; color: #24497f; font-size: 12.5px; font-weight: 600; }
.rr-chip.warn { background: #fcf2e1; color: #855d26; }
.rr-note { margin: 0; font-size: 13px; color: var(--muted, #686b73); }
.rr-actions { display: flex; gap: 8px; }
.rr-actions .btn { flex: 1; min-height: 44px; padding-block: 6px; }
.rr-aside { display: grid; gap: 10px; padding-top: 6px; border-top: 1px solid #edf0f5; }
.rr-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.rr-reason { min-height: 36px; padding: 6px 11px; border: 1px solid #dbe3ef; border-radius: 999px; background: #fff; color: #24497f; font-size: 13px; }
.rr-aside-actions { display: flex; gap: 10px; align-items: center; }
.rr-timing { margin: 6px 0 12px; }
@media (max-width: 800px) {
  /* On a phone the bar stays at the top of the item instead of covering the form. */
  .rr-bar { position: static; margin-bottom: 14px; }
  .rr-bar.slim { grid-template-columns: 1fr; }
}

/* Next-step rule */
.nsr-ticks-group { display: grid; gap: 10px; margin: 6px 0 14px; padding: 14px; border: 1px solid #e3e8f0; border-radius: 14px; background: #fafbfd; }
.nsr-heading { margin: 0; font-weight: 600; }
.nsr-ticks { margin: 0; padding: 0; border: 0; }
.nsr-ticks legend { margin-bottom: 6px; font-size: 14px; color: #43536a; }
.nsr-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.nsr-chip { position: relative; display: inline-flex; }
.nsr-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.nsr-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 15px; border: 1px solid #d3dce8; border-radius: 999px; background: #fff; font-size: 14.5px; }
.nsr-chip input:checked + span { border-color: var(--accent, #1046ab); background: var(--accent-soft, #eef3fc); color: var(--accent-deep, #0d3889); font-weight: 600; }
.nsr-chip input:focus-visible + span { outline: 3px solid var(--accent, #1046ab); outline-offset: 2px; }
.nsr-panel { margin: -4px 0 14px; }
.nsr-badge { display: inline-block; margin: 0 0 4px; padding: 4px 10px; border-radius: 8px; background: #edf3fc; color: #24497f; font-size: 13px; font-weight: 600; }
.nsr-badge.differs { background: #fcf2e1; color: #855d26; }
.nsr-because { margin: 0 0 8px; }
.nsr-table { font-size: 13.5px; }
.nsr-table ol { margin: 6px 0; padding-left: 20px; }

/* Drill pause */
.dp-control { margin: 10px 0; }
.dp-control summary { color: var(--danger, #ac343d); font-weight: 600; min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.dp-control fieldset { border: 0; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.dp-control legend { font-size: 14px; margin-bottom: 6px; }
.dp-reason { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 6px 10px; border: 1px solid #e3e8f0; border-radius: 12px; background: #fff; }
.dp-banner { margin: 10px 0 16px; padding: 16px; border: 1px solid #efc9cc; border-left: 4px solid var(--danger, #ac343d); border-radius: 14px; background: #fff7f7; }
.dp-banner .eyebrow { color: var(--danger, #ac343d); }
.dp-banner h3 { margin: 4px 0; }
.dp-banner p { margin: 4px 0; }
.dp-resume { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; padding: 0; list-style: none; }
.dp-resume li { padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid #ecd9db; font-size: 13px; }
.dp-banner .btn { margin: 4px 8px 4px 0; }
.dp-resumed { padding: 10px 12px; border-radius: 12px; background: #eef7f0; }

/* Pearl dark: the run bar on the item's own screen (light glass would carry light text). */
html[data-theme="dark"] .rr-bar { border-color: #2b303a; background: #1a1d23f5; box-shadow: none; }
html[data-theme="dark"] .rr-bar.done { background: #1b2840; }
html[data-theme="dark"] .rr-count strong { color: var(--ink); }
html[data-theme="dark"] .rr-chip { background: #1b2840; color: #c9dafb; }
html[data-theme="dark"] .rr-chip.warn { background: #3a2f1d; color: #f4d193; }
html[data-theme="dark"] :is(.rr-note, .rr-item span) { color: var(--muted); }
html[data-theme="dark"] .rr-aside { border-top-color: #2b303a; }
html[data-theme="dark"] .rr-reason { border-color: #34405a; background: #1a1d23; color: #c9dafb; }

/* ---- send-steps.css ---- */
/* Four-step send (A5) and film-study controls (A11). Pearl: soft white, deep blue, system sans. */
.send-steps { display: grid; gap: 16px; }
.ss-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.ss-progress li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted, #686b73); text-align: center; }
.ss-progress li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #d3dce8; background: #fff; font-weight: 600; font-size: 13px; }
.ss-progress li.current { color: var(--accent, #1046ab); font-weight: 650; }
.ss-progress li.current span { border-color: var(--accent, #1046ab); background: var(--accent, #1046ab); color: #fff; }
.ss-progress li.done span { border-color: #b9cbe8; background: var(--accent-soft, #eef3fc); color: var(--accent, #1046ab); }
.ss-panel { position: relative; display: grid; gap: 12px; padding: 22px; border: 1px solid #e8ebf0; border-radius: 20px; background: var(--pearl-surface, #fff); box-shadow: var(--pearl-shadow, none); }
.ss-panel[hidden] { display: none; }
.ss-panel h2 { margin: 0; font-size: 24px; }
.ss-panel h2:focus { outline: none; }
.ss-panel > p { margin: 0; }
.ss-panel .session-surface { padding: 0; border: 0; box-shadow: none; background: transparent; }
.ss-form { display: grid; gap: 16px; }
.ss-record { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; margin-top: 4px; font-size: 16.5px; }
.ss-record-dot { width: 12px; height: 12px; border-radius: 50%; background: #ff5a4a; box-shadow: 0 0 0 3px #ffffff40; }
.ss-or { position: relative; margin: 4px 0 0; text-align: center; } /* the hidden file input sits here, so focus order follows the page */
.ss-choose { display: inline-block; padding: 10px 4px; color: var(--accent, #1046ab); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ss-file:focus-visible + .ss-choose { outline: 3px solid var(--accent, #1046ab); border-radius: 8px; }
.ss-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ss-tile { display: grid; gap: 4px; align-content: center; min-height: 112px; padding: 16px; border: 1px solid #d3dce8; border-radius: 18px; background: #fff; cursor: pointer; text-align: center; }
.ss-tile strong { font-size: 17px; color: var(--accent-deep, #0d3889); }
.ss-tile span { font-size: 13px; color: var(--muted, #686b73); }
.ss-tile:first-child { background: var(--accent-soft, #eef3fc); border-color: #b9cbe8; }
.ss-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.ss-tile:focus-within, .ss-file:focus-visible + * { outline: 3px solid var(--accent, #1046ab); }
.ss-chosen { margin: 0; color: var(--ink, #1d1d1f); }
.ss-preview video { display: block; width: 100%; max-height: 52vh; border-radius: 14px; background: #0b1220; object-fit: contain; }
.ss-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ss-facts li { padding: 5px 11px; border-radius: 999px; background: #f1f4f9; font-size: 13.5px; }
.ss-advice { margin: 0; font-size: 14px; }
.ss-again { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; color: var(--accent, #1046ab); cursor: pointer; }
.ss-group { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; }
.ss-group legend, .ss-partner summary { font-weight: 600; margin-bottom: 6px; }
.ss-partner { padding: 12px 14px; border: 1px solid #e3e8f0; border-radius: 14px; background: #fafbfd; }
.ss-partner fieldset { border: 0; margin: 10px 0 0; padding: 0; }
.ss-partner legend { font-size: 14.5px; }
.ss-sub { margin: 10px 0 6px; font-size: 14.5px; font-weight: 600; }
.ss-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ss-chip { position: relative; display: inline-flex; }
.ss-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.ss-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 15px; border: 1px solid #d3dce8; border-radius: 999px; background: #fff; font-size: 14.5px; }
.ss-chip input:checked + span { border-color: var(--accent, #1046ab); background: var(--accent-soft, #eef3fc); color: var(--accent-deep, #0d3889); font-weight: 600; }
.ss-chip input:focus-visible + span { outline: 3px solid var(--accent, #1046ab); outline-offset: 2px; }
.ss-source { flex-basis: 100%; margin: 0; }
.ss-consent-on { margin: 0; font-weight: 600; color: #1e5a33; }
.ss-actions { position: sticky; bottom: 12px; z-index: 30; display: flex; flex-direction: row-reverse; align-items: center; gap: 10px; padding: 10px; border: 1px solid #e3e8f0; border-radius: 18px; background: #fffffff0; backdrop-filter: blur(14px); box-shadow: 0 10px 30px -20px #1046ab66; }
.ss-actions .ss-primary { flex: 1; min-height: 52px; font-size: 16.5px; }
.ss-actions .ss-primary:disabled { opacity: .45; }
.ss-actions .ss-back { min-width: 72px; }
@media (max-width: 800px) {
  .ss-actions { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .ss-panel { padding: 18px; }
}

/* Film study */
.fs-host { position: relative; }
.fs-badge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 3px 9px; border-radius: 8px; background: #1d1d1fcc; color: #fff; font-size: 12.5px; font-weight: 650; pointer-events: none; }
.fs-badge.zoom { top: auto; bottom: 10px; }
.fs-badge.inline { position: static; align-self: center; }
.fs-badge[hidden] { display: none; }
.fs-group { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.fs-group[hidden] { display: none; }
.fs-group:not([hidden]) { flex-basis: 100%; }
.fs-theater .fs-group[hidden] { display: inline-flex; }
.fs-theater .fs-more { display: none; }
.fs-btn { min-height: 44px; padding: 6px 12px; border: 1px solid #d9e1ec; border-radius: 12px; background: #fff; color: var(--accent, #1046ab); font-size: 13.5px; }
.fs-btn.on, .fs-btn[aria-pressed="true"] { background: var(--accent-soft, #eef3fc); border-color: var(--accent, #1046ab); font-weight: 650; }
.learner-playback { flex-wrap: wrap; }
.fs-theater { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); background: #05080d; }
.fs-theater > :first-child { flex: 1 1 auto; min-height: 0; width: 100%; max-width: none; margin: 0 !important; aspect-ratio: auto !important; border: 0; border-radius: 0; background: #05080d; }
.fs-theater video { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.fs-theater .playback-tools { justify-content: center; color: #fff; }
.fs-theater .playback-tools select { color: var(--ink, #1d1d1f); }
@media (orientation: landscape) and (max-height: 520px) {
  .fs-theater { justify-content: flex-start; }
  .fs-theater .playback-tools { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px; background: #05080dcc; overflow-x: auto; flex-wrap: nowrap; }
  .fs-theater .fs-group { flex-wrap: nowrap; }
}

/* Step 1 on a phone: the coach's setup and the drill, tight enough to read in one go. */
html[data-design="pearl"] .ss-panel :is(.assigned-drill, .learner-setup, .drill-next) { margin: 0; padding: 14px 0 0; border: 0; border-top: 1px solid #edf0f5; border-radius: 0; box-shadow: none; background: transparent; }
.ss-panel .assigned-drill h2 { font-size: 20px; margin: 4px 0; }
.ss-panel .learner-setup h3 { margin: 4px 0; font-size: 17px; }
.ss-panel .learner-setup p { margin: 4px 0; font-size: 14px; }
.ss-panel .drill-steps { margin: 6px 0; padding-left: 20px; }
.ss-panel .drill-steps li { margin: 4px 0; font-size: 15px; line-height: 1.45; }
.ss-panel .drill-focus { margin: 8px 0; padding: 10px 12px; }
.ss-panel .drill-focus h3, .ss-panel .drill-instructions-title { margin: 0 0 4px; font-size: 15px; }
.ss-panel .assigned-drill details { margin: 4px 0; }
.ss-panel .assigned-drill details > summary { min-height: 44px; display: flex; align-items: center; }
.ss-panel .session-footnote { margin: 6px 0 0; }
/* A status toast never blocks the thumb-zone button underneath it. */
body:has([data-ss]) #toast { pointer-events: none; }
/* Focused controls never sit under the thumb-zone bar; the preview shows its focus. */
html[data-design="pearl"]:has([data-ss]) { scroll-padding-bottom: 110px; }
@media (max-width: 800px) { html[data-design="pearl"]:has([data-ss]) { scroll-padding-bottom: calc(176px + env(safe-area-inset-bottom)); } }
.ss-preview video:focus-visible { outline: 3px solid var(--accent, #1046ab); outline-offset: 3px; }

/* A missing answer on the Send step: inline, in the app's own words and colours (no browser popup). */
.ss-error { margin: 0; padding: 10px 12px; border-radius: 12px; background: #fff4f2; color: #9f2a1c; font-size: 15px; font-weight: 600; line-height: 1.4; }
.ss-invalid .ss-chip span, .ss-invalid .check { box-shadow: 0 0 0 1px #d4503e; border-radius: 12px; }
html[data-theme="dark"] .ss-error { background: #3a1c18; color: #ffb4a8; }
/* One control row on a phone: Replay, CC, the speed menu (named by its own label for screen readers) and More. */
.playback-tools { column-gap: 8px; }
@media (max-width: 480px) {
  .playback-tools:has(.fs-more) label { font-size: 0; gap: 0; }
  .playback-tools:has(.fs-more) label select { font-size: 16px; width: 76px; }
  .playback-tools:has(.fs-more) > button { padding-left: 14px; padding-right: 14px; }
}
.ss-actions [hidden] { display: none !important; }
.ss-panel .cap-film:has(.cap-film-note:empty) { display: none; }

/* ---- planning.css ---- */
/* Practice planning · Pearl: soft white surfaces, system sans, one deep-blue motif. */
.pl-page{max-width:980px;margin:0 auto;padding-bottom:56px;color:var(--ink,#1d1d1f);font-family:var(--app-font,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif);--pl-blue:var(--accent,#1046ab);--pl-line:var(--line,#e5e6ea);--pl-muted:var(--muted,#686b73);overflow-wrap:anywhere}
.pl-heading{margin:0 0 24px}.pl-heading h1{margin:0 0 10px;font-size:clamp(32px,4vw,42px);line-height:1.12;letter-spacing:-.04em}.pl-heading p{margin:0;color:var(--pl-muted)}
.pl-eyebrow{margin:0 0 10px;font-size:11px;font-weight:650;letter-spacing:.1em;color:var(--pl-blue)}
.pl-page h2{font-size:22px;letter-spacing:-.03em;margin:0}.pl-page h3{font-size:18px;letter-spacing:-.02em;margin:0 0 8px;line-height:1.3}.pl-page h4{font-size:15px;margin:18px 0 8px}
.pl-muted{color:var(--pl-muted);font-size:14px;line-height:1.55}
.pl-tabs{display:flex;gap:6px;padding:4px;margin:0 0 26px;border:1px solid var(--pl-line);border-radius:14px;background:var(--surface-sunken,#eceef180);width:fit-content;max-width:100%;box-sizing:border-box;overflow-x:auto;scrollbar-width:none}
.pl-tabs::-webkit-scrollbar{display:none}.pl-tabs button{min-height:44px;padding:9px 18px;border:0;border-radius:10px;background:transparent;color:var(--pl-muted);font:inherit;font-size:14px;white-space:nowrap;cursor:pointer}
.pl-tabs button[aria-current=page]{background:var(--surface-selected,#fff);color:var(--pl-blue);box-shadow:0 2px 4px #2636520a}
.pl-section{display:grid;gap:16px}.pl-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.pl-card{padding:24px;border:1px solid #2030501a;border-radius:22px;background:var(--pearl-surface,#fff);box-shadow:var(--pearl-shadow,0 8px 30px #1e283c06)}
.pl-page summary{cursor:pointer;min-height:44px;padding:10px 0;box-sizing:border-box;font-weight:600;color:var(--pl-blue)}.pl-more{display:grid;gap:14px}.pl-more>summary{padding:10px 4px}.pl-more[open]>summary{margin-bottom:12px}
.pl-button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:11px 20px;border:1px solid transparent;border-radius:12px;background:var(--pearl-action,var(--pl-blue));color:#fff;font:inherit;font-weight:600;text-decoration:none;cursor:pointer;box-sizing:border-box}
.pl-button.secondary{background:#fff;border-color:#d5dce9;color:var(--pl-blue)}.pl-button:disabled{opacity:.55;cursor:default}
.pl-link{min-height:44px;padding:0;border:0;background:none;color:var(--pl-blue);font:inherit;font-weight:600;cursor:pointer;justify-self:start;text-align:left}
.pl-links a,.pl-marker,.pl-row{color:inherit}.pl-links a{color:var(--pl-blue);font-weight:600}
.pl-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.pl-notice{margin:0;padding:12px 16px;border-left:3px solid var(--pl-blue);background:var(--accent-soft,#eef3fc);border-radius:0 12px 12px 0;line-height:1.5}
.pl-pill{display:inline-block;padding:4px 10px;border-radius:999px;background:#f0f3f8;color:var(--pl-blue);font-size:12px;font-weight:600;white-space:nowrap}
.pl-pill.blue{background:var(--accent-soft,#eef3fc)}.pl-pill.muted{color:var(--pl-muted)}.pl-pill.amber{background:var(--gold-light,#faf0dc);color:var(--gold,#966323)}
.pl-empty{padding:28px;border:1px dashed #d6dbe5;border-radius:20px;text-align:center}.pl-empty p{color:var(--pl-muted);margin:6px 0 0}
.pl-list{display:grid;border:1px solid var(--pl-line);border-radius:20px;background:#fff;overflow:hidden}
.pl-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;min-height:44px;border-bottom:1px solid #eef0f3;text-decoration:none}.pl-row:last-child{border-bottom:0}
.pl-row>span:first-child{display:grid;gap:3px}.pl-row>span:first-child span{color:var(--pl-muted);font-size:14px}.pl-row:hover strong{color:var(--pl-blue)}
.pl-form{display:grid;gap:16px}.pl-field{display:grid;gap:7px;align-content:start;font-size:14px;font-weight:550}.pl-field small{color:var(--pl-muted);font-weight:400}
.pl-field :is(input,select,textarea){width:100%;min-height:46px;padding:11px 14px;box-sizing:border-box;border:1px solid #d7dce5;border-radius:12px;background:#fff;font:inherit;color:inherit}.pl-field textarea{min-height:90px;resize:vertical}
.pl-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}
.pl-period{display:grid;gap:12px;margin:0;padding:16px;border:1px solid var(--pl-line);border-radius:16px}.pl-period legend{padding:0 6px;font-weight:600;font-size:14px}
.pl-checks{display:grid;gap:8px;margin:0;padding:0;border:0}.pl-checks legend{font-weight:550;font-size:14px;margin-bottom:8px}.pl-checks label,.pl-check{display:flex;gap:10px;align-items:center;min-height:44px;padding:0 12px;border:1px solid #dce2ed;border-radius:12px;font-size:14px}
.pl-check{padding:10px 12px;align-items:flex-start}.pl-checks input,.pl-check input{width:18px;height:18px;accent-color:var(--pl-blue);flex:none}
.pl-preview{padding:16px;border-radius:16px;background:#f6f8fb}.pl-preview ul{margin:0;padding-left:20px;line-height:1.7}
.pl-plan-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.pl-plan-head h2{font-size:28px}
.pl-contact{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0;font-size:14px;color:var(--pl-muted)}
.pl-timeline{display:grid;gap:14px}.pl-drill-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:8px}
.pl-time{font-size:13px;font-weight:650;color:var(--pl-blue);letter-spacing:.01em}
.pl-paused{opacity:.75}.pl-facts{display:grid;gap:10px;margin:14px 0}.pl-facts div{display:grid;grid-template-columns:110px 1fr;gap:10px}.pl-facts dt{color:var(--pl-muted);font-size:14px}.pl-facts dd{margin:0;line-height:1.5}
.pl-terms{font-size:14px;color:var(--pl-muted)}
.pl-diagram{margin:12px 0}.pl-diagram img{width:100%;max-width:420px;border:1px solid var(--pl-line);border-radius:12px;background:#fff}.pl-diagram figcaption{font-size:13px;color:var(--pl-muted);margin-top:6px}
.pl-stations{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}.pl-station{display:grid;gap:4px;padding:12px 14px;border-radius:14px;background:#f6f8fb}.pl-station span{font-size:14px;color:var(--pl-muted)}
.pl-board{display:grid;gap:14px}.pl-board-row{padding:18px;border:1px solid var(--pl-line);border-radius:18px;background:#fff}.pl-board-row h4{margin:0 0 10px;font-size:17px}
.pl-board-cell+.pl-board-cell{margin-top:14px;padding-top:14px;border-top:1px solid #eef0f3}.pl-board-lesson{display:block;font-size:13px;color:var(--pl-muted);margin-bottom:8px}
.pl-markers{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.pl-marker{display:grid;gap:2px;padding:10px 12px;min-height:44px;box-sizing:border-box;border:1px solid #e3e7ee;border-radius:12px;text-decoration:none;background:#fbfcfd}
.pl-marker span{font-size:12px;color:var(--pl-muted)}.pl-marker strong{font-size:14px;font-weight:600}.pl-marker.done{border-color:#c9d8f3;background:var(--accent-soft,#eef3fc)}.pl-marker.done strong{color:var(--pl-blue)}
.pl-crit{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.pl-chip{font-size:11px;padding:2px 7px;border-radius:999px;background:#eef0f3;color:var(--ink,#1d1d1f)}.pl-chip.met{background:var(--accent-soft,#eef3fc);color:var(--pl-blue)}
.pl-ladder{display:grid;gap:12px;padding:20px;border:1px solid #2030501a;border-radius:20px;background:var(--pearl-surface,#fff);box-shadow:var(--pearl-shadow,none)}
.pl-ladder-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.pl-ladder-head .pl-eyebrow{margin:0}
.pl-rungs{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.pl-rungs li{display:grid;gap:3px;padding:12px 14px;border:1px solid #e3e7ee;border-radius:14px;color:var(--pl-muted)}
.pl-rungs li.current{border-color:var(--pl-blue);background:var(--accent-soft,#eef3fc);color:var(--ink,#1d1d1f);box-shadow:inset 3px 0 0 var(--pl-blue)}
.pl-rung-name{font-weight:650;color:var(--ink,#1d1d1f)}.pl-rungs li.current .pl-rung-name{color:var(--pl-blue)}
.pl-decided{margin:0;font-size:14px;line-height:1.5}.pl-ladder-move{display:grid;gap:10px}
.pl-ladder-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.pl-events{display:grid;gap:0;margin:0;padding:0;list-style:none;border:1px solid var(--pl-line);border-radius:18px;background:#fff;overflow:hidden}
.pl-events li{display:grid;gap:2px;padding:14px 18px;border-bottom:1px solid #eef0f3}.pl-events li:last-child{border-bottom:0}.pl-events span{color:var(--pl-muted);font-size:14px}.pl-events small{color:var(--pl-muted)}
.pl-task p{font-size:20px;line-height:1.5;margin:0}
.pl-board-title{margin-top:10px}
/* Install sheet: one page, room-level content only. */
.pl-sheet{max-width:1100px;margin:0 auto;padding-bottom:40px;color:#111;font-family:var(--app-font,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif)}
.pl-sheet-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin:18px 0 12px}.pl-sheet-head h1{margin:0;font-size:28px;letter-spacing:-.03em}.pl-sheet-head p{margin:4px 0 0}
.pl-sheet-contact{display:grid;gap:2px;padding:10px 14px;border:2px solid #111;border-radius:10px;font-size:13px;max-width:260px}
.pl-sheet-table{width:100%;border-collapse:collapse;font-size:12.5px;line-height:1.4}.pl-sheet-table th,.pl-sheet-table td{border:1px solid #9aa1ac;padding:7px 8px;vertical-align:top;text-align:left}
.pl-sheet-table th{background:#f1f3f6;font-size:11px;letter-spacing:.04em;text-transform:uppercase}
.pl-qr{width:118px;text-align:center}.pl-qr svg{width:104px;height:104px;display:block;margin:0 auto 4px}.pl-qr small{font-size:10px}
.pl-sheet-diagram{display:block;max-width:180px;margin-top:6px;border:1px solid #ccc}
.pl-sheet-foot{margin-top:12px;font-size:11px;color:#555}
@media (max-width:760px){.pl-sheet-table thead{display:none}.pl-sheet-table,.pl-sheet-table tbody,.pl-sheet-table tr,.pl-sheet-table td{display:block;width:auto}.pl-sheet-table tr{border:1px solid #9aa1ac;border-radius:12px;margin-bottom:12px;overflow:hidden}.pl-sheet-table td{border:0;border-bottom:1px solid #e3e6eb}.pl-sheet-table td[data-label]::before{content:attr(data-label);display:block;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#555;margin-bottom:2px}.pl-qr{width:auto}.pl-sheet-head{flex-direction:column}}
@media (max-width:640px){.pl-pair{grid-template-columns:1fr}.pl-card{padding:20px 16px;border-radius:18px}.pl-facts div{grid-template-columns:1fr;gap:2px}.pl-section-head .pl-button{width:100%}.pl-actions .pl-button{flex:1 1 auto}.pl-plan-head h2{font-size:24px}.pl-tabs{width:100%}.pl-tabs button{padding:9px 13px}}
@media print{
  body.pl-printing :is(.sidebar,.topbar,.context-nav,.skip-link,#toast,.pl-no-print){display:none!important}
  body.pl-printing,body.pl-printing .shell,body.pl-printing .main{background:#fff!important;padding:0!important;margin:0!important;max-width:none!important}
  body.pl-printing .pl-sheet{max-width:none;padding:0}.pl-sheet-table tr{break-inside:avoid}
  @page{size:landscape;margin:12mm}
}
/* A player sees the rung they are on in full; the other rungs are named on one line. */
.pl-ladder:not(:has(form)) .pl-rungs li:not(.current){display:none}
.pl-other-rungs{margin:0;font-size:14px;color:var(--pl-muted)}
.assigned-drill .pl-ladder{padding:8px 14px;gap:4px}
.assigned-drill .pl-ladder-head{gap:6px 10px}.assigned-drill .pl-ladder-head .pl-pill{font-size:11px;padding:2px 8px;white-space:normal}
.assigned-drill .pl-rungs li{padding:8px 12px}
.assigned-drill .pl-ladder-head .pl-eyebrow{font-size:11px;letter-spacing:.04em}

/* ---- accounts.css ---- */
/* Accounts: Face ID sign-in, Appearance, Roster import, Leave or delete. Pearl surfaces, one deep-blue action. */
.acct-shell{max-width:820px;margin:0 auto;padding:32px 0 72px;color:var(--ink,#1d1d1f)}
.acct-head{margin-bottom:26px}.acct-head h1{margin:10px 0 12px}.acct-head p:last-child{color:var(--muted,#686b73);font-size:16px;margin:0;max-width:62ch}
.acct-card{padding:24px;border:1px solid var(--line,#e5e6ea);border-radius:20px;background:var(--pearl-surface,#fff);box-shadow:var(--pearl-shadow,0 12px 32px -24px #20263228);margin:0 0 20px;list-style:none}
.acct-card h2{font-size:22px;margin:0 0 12px}.acct-card h3{font-size:17px;margin:18px 0 6px}
.acct-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.acct-card-head h2{margin:0}
.acct-card-head span>small,.acct-list small,.acct-roster small,.acct-links small,.acct-option small,.acct-switch small{display:block;color:var(--muted,#686b73);font-size:13.5px;line-height:1.45;margin-top:2px}
.acct-muted{color:var(--muted,#686b73);font-size:14px;line-height:1.5}
.acct-note{padding:12px 14px;border-radius:12px;background:var(--accent-soft,#eef3fc);color:var(--ink,#1d1d1f);font-size:14.5px;line-height:1.5;margin:0 0 14px}
.acct-error{color:var(--danger,#ac343d);margin:0 0 14px}
.acct-check{display:flex;gap:12px;align-items:flex-start;margin:14px 0;font-size:15px;line-height:1.45}.acct-check input{width:22px;height:22px;flex:0 0 22px;margin-top:1px}
.acct-list,.acct-roster,.acct-links,.acct-requests,.acct-queue,.acct-chips{list-style:none;margin:0;padding:0}
.acct-list li,.acct-links li,.acct-requests>li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--line,#e5e6ea)}
.acct-list li:first-child,.acct-links li:first-child,.acct-requests>li:first-child{border-top:0}
.acct-requests>li{display:block}
.acct-options{border:0;margin:0 0 6px;padding:0;display:grid;gap:10px}
.acct-option,.acct-switch{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid var(--line,#e5e6ea);border-radius:14px;cursor:pointer}
.acct-option:has(input:checked){border-color:var(--accent,#1046ab);background:var(--accent-soft,#eef3fc)}
.acct-option input,.acct-switch input{width:22px;height:22px;flex:0 0 22px;margin-top:1px}
.acct-preview{display:grid;gap:8px;justify-items:start;padding:20px;border:1px dashed var(--line,#e5e6ea);border-radius:18px}
.acct-details{margin:12px 0}.acct-details>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--accent,#1046ab);font-weight:550}
.acct-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}.acct-stats div{padding:12px;border-radius:12px;background:var(--accent-soft,#eef3fc)}
.acct-stats dt{font-size:12px;color:var(--muted,#686b73)}.acct-stats dd{margin:2px 0 0;font-size:22px;font-weight:600}
.acct-seat{margin:6px 0 10px;font-size:14.5px;line-height:1.5}.acct-seat.short{color:var(--danger,#ac343d)}
.acct-chips{display:flex;flex-wrap:wrap;gap:6px}.acct-chips li{padding:6px 10px;border-radius:10px;background:var(--accent-soft,#eef3fc);font-size:13px}
.acct-mapping{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px 14px}
.acct-roster{margin:16px 0}
.acct-roster-row{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:6px 14px;align-items:start;padding:14px 0;border-top:1px solid var(--line,#e5e6ea)}
.acct-roster-row:first-child{border-top:0}
.acct-roster-row.needs .acct-row-main strong{color:var(--ink,#1d1d1f)}
.acct-row-main strong{display:flex;align-items:center;gap:8px}
.acct-jersey{display:inline-grid;place-items:center;min-width:30px;height:26px;padding:0 6px;border-radius:8px;background:var(--accent-soft,#eef3fc);color:var(--accent,#1046ab);font-size:13px;font-weight:650}
.acct-age{display:grid;gap:4px;font-size:12px;color:var(--muted,#686b73)}.acct-age select{min-height:44px;font-size:14px}
.acct-invite{grid-column:1/-1;margin:0;font-size:14px;color:var(--muted,#686b73)}
.acct-problems,.acct-warnings{grid-column:1/-1;margin:0;padding-left:18px;font-size:14px;line-height:1.45}
.acct-problems{color:var(--danger,#ac343d)}.acct-warnings{color:var(--gold,#966323)}
.acct-links li{flex-wrap:wrap}.acct-links li>span{flex:1 1 240px;min-width:0}.acct-links input{flex:1 1 220px;min-width:0;font-size:13px}
.acct-apply{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px}.acct-apply .field{flex:1 1 200px;margin:0}
.acct-steps{list-style:none;margin:0;padding:0;counter-reset:step}
.acct-steps>li{position:relative;padding:4px 0 18px 44px;counter-increment:step}
.acct-steps>li::before{content:counter(step);position:absolute;left:0;top:0;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--accent-soft,#eef3fc);color:var(--accent,#1046ab);font-weight:650;font-size:14px}
.acct-steps>li.done::before{content:"✓";background:var(--pearl-action,#1046ab);color:#fff}
.acct-steps>li.locked{opacity:.55}
.acct-steps>li>strong{display:block;font-size:17px;margin-bottom:4px}.acct-steps>li>span{display:block;color:var(--muted,#686b73);font-size:14.5px;margin-bottom:10px}
.acct-hash{display:grid;gap:4px;font-size:13px}.acct-hash span{color:var(--muted,#686b73)}.acct-hash code{word-break:break-all;font-size:12.5px;padding:8px 10px;border-radius:10px;background:var(--accent-soft,#eef3fc)}
.acct-queue{display:grid;gap:0}
.acct-queue blockquote{margin:8px 0;padding:8px 12px;border-left:3px solid var(--line,#e5e6ea);color:var(--muted,#686b73)}
.acct-child-pick{max-width:320px;margin-bottom:16px}
.acct-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.acct-passkey-signin{width:100%;margin-top:6px;min-height:48px;font-weight:550}
.acct-offer{position:fixed;left:16px;right:16px;bottom:calc(88px + env(safe-area-inset-bottom));z-index:55;max-width:420px;margin:0 auto;padding:20px;border-radius:20px;border:1px solid var(--line,#e5e6ea);background:var(--pearl-surface,#fff);background-color:var(--paper,#f5f5f7);box-shadow:0 18px 50px #12203b33;color:var(--ink,#1d1d1f)}
.acct-offer h2{font-size:20px;margin:0 0 6px}.acct-offer p{margin:0 0 6px;color:var(--muted,#686b73);font-size:14.5px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (max-width:640px){
  .acct-shell{padding:18px 0 96px}
  .acct-card{padding:18px;border-radius:18px}
  .acct-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .acct-roster-row{grid-template-columns:minmax(0,1fr)}
  .acct-list li{flex-wrap:wrap}
}
