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