/* Field Ops — FSP coach mode */

body.rcs-fo-teach-mode {
  background: var(--rcs-bg, #0b1220);
}

.fo-teach {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 16px 48px;
  box-sizing: border-box;
  min-height: 100vh;
  color: var(--rcs-text, #f9fafb);
}

.fo-teach__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}

.fo-teach__top-meta {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 0 6px;
}

/* Containing block so absolute meta stays in the header (not viewport center). */
.fo-teach__top--fixed {
  position: relative;
}

/* Dead-center phase/step on the topper (not in the gap between BACK and chip). */
.fo-teach__top--fixed .fo-teach__top-meta {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  flex: 0 1 auto;
  width: max-content;
  max-width: calc(100% - 132px);
  z-index: 1;
  pointer-events: none;
  padding: 0;
}

.fo-teach .rcs-back-btn,
.fo-teach__top--fixed .rcs-back-btn {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  align-self: center;
  width: fit-content;
  max-width: 100%;
  padding-left: 10px;
  padding-right: 10px;
}

.fo-teach__top--fixed .fo-teach-status-chip {
  position: relative;
  z-index: 2;
  margin-left: auto;
}

.fo-teach__top-phase,
.fo-teach__top-step {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--rcs-status, #22c55e);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fo-teach__top-step {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  opacity: 0.92;
}

.fo-teach-status-chip--spacer {
  visibility: hidden;
  pointer-events: none;
  box-shadow: none;
  background: transparent !important;
}

.fo-teach__top--fixed .fo-teach-status-chip {
  flex: 0 0 auto;
  margin-top: 0;
  align-self: center;
}

/* Fixed top back: phone + app only (desktop keeps in-flow header). */
@media (max-width: 899px) {
  .fo-teach__top--fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 6px 10px;
    box-sizing: border-box;
    background: var(--rcs-bg, #0b1220);
    border-bottom: 1px solid var(--rcs-border, rgba(148, 163, 184, 0.22));
  }

  [data-theme="light"] .fo-teach__top--fixed {
    background: var(--rcs-bg, #f8fafc);
  }

  .fo-teach:has(> .fo-teach__top--fixed) {
    padding-top: 58px;
  }
}

html.rcs-client-app .fo-teach__top--fixed,
body.rcs-footer-embed .fo-teach__top--fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 10px;
  box-sizing: border-box;
  background: var(--rcs-bg, #0b1220);
  border-bottom: 1px solid var(--rcs-border, rgba(148, 163, 184, 0.22));
}

html.rcs-client-app .fo-teach:has(> .fo-teach__top--fixed),
body.rcs-footer-embed .fo-teach:has(> .fo-teach__top--fixed) {
  padding-top: 58px;
}

[data-theme="light"] html.rcs-client-app .fo-teach__top--fixed,
[data-theme="light"] body.rcs-footer-embed .fo-teach__top--fixed {
  background: var(--rcs-bg, #f8fafc);
}

/* Instruction mobile reader: always fixed back (any width in app). */
body.rcs-ci-mobile-reader .fo-teach__top--fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  margin: 0;
  padding: 6px 10px;
  gap: 8px;
  background: var(--rcs-bg, #0b1220);
  border-bottom: 1px solid var(--rcs-border, rgba(148, 163, 184, 0.22));
}

[data-theme="light"] body.rcs-ci-mobile-reader .fo-teach__top--fixed {
  background: var(--rcs-bg, #f8fafc);
}

body.rcs-ci-mobile-reader .fo-teach:has(> .fo-teach__top--fixed) {
  padding-top: 58px;
}

.fo-teach__top-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rcs-muted, #94a3b8);
  text-align: center;
}

.fo-teach__lead {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rcs-text, #f9fafb);
}

.fo-teach__student {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--rcs-text, #f9fafb);
}

.fo-teach__plan-name,
.fo-teach__progress {
  margin: 0 0 12px;
  color: var(--rcs-muted, #94a3b8);
  font-weight: 600;
}

.fo-handbook-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 4px;
}

.fo-handbook-toolbar .fo-teach__progress {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.fo-handbook-toc-open {
  flex: 0 0 auto;
  white-space: nowrap;
}

.fo-handbook-toc__title {
  margin: 4px 0 18px;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--rcs-text, #f9fafb);
}

.fo-handbook-toc {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0 0 24px;
}

.fo-handbook-toc__group {
  margin: 0;
  padding: 0;
}

.fo-handbook-toc__phase {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rcs-status, #22c55e);
}

.fo-handbook-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fo-handbook-toc__item {
  margin: 0;
  padding: 0;
}

.fo-handbook-toc__btn {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 16px 18px;
  text-align: left;
  border-radius: 12px;
  border: 1px solid var(--rcs-border, rgba(148, 163, 184, 0.35));
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  font: inherit;
  cursor: pointer;
  box-sizing: border-box;
}

[data-theme="light"] .fo-handbook-toc__btn {
  background: #fff;
}

.fo-handbook-toc__btn:hover,
.fo-handbook-toc__btn:focus-visible {
  border-color: var(--rcs-status, #22c55e);
  outline: none;
}

.fo-handbook-toc__btn.is-current {
  border-color: var(--rcs-status, #22c55e);
  box-shadow: inset 0 0 0 1px var(--rcs-status, #22c55e);
}

.fo-handbook-toc__n {
  flex: 0 0 auto;
  min-width: 2.4em;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--rcs-muted, #94a3b8);
  line-height: 1.45;
}

.fo-handbook-toc__label {
  flex: 1;
  min-width: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--rcs-text, #f9fafb);
}

.fo-teach-pick {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fo-teach-pick__btn {
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  text-align: left;
  border-radius: 12px;
  border: 1px solid var(--rcs-border, rgba(148, 163, 184, 0.35));
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  font: inherit;
  cursor: pointer;
  box-sizing: border-box;
}

[data-theme="light"] .fo-teach-pick__btn {
  background: #fff;
}

.fo-teach-pick__btn:hover,
.fo-teach-pick__btn:focus-visible {
  border-color: var(--rcs-status, #22c55e);
  outline: none;
}

.fo-teach-pick__name {
  display: block;
  font-weight: 800;
  color: var(--rcs-text, #f9fafb);
}

.fo-teach-pick__meta {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--rcs-muted, #94a3b8);
}

.fo-teach-plans {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.fo-teach-plans__btn {
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--rcs-border, rgba(148, 163, 184, 0.35));
  background: transparent;
  color: var(--rcs-text, #f9fafb);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.fo-teach-plans__btn.is-active {
  border-color: var(--rcs-status, #22c55e);
  box-shadow: inset 0 0 0 1px var(--rcs-status, #22c55e);
}

.fo-teach-rule,
.fo-teach .ca-pro-sep {
  margin: 20px 0;
  border: 0;
  border-top: var(--rcs-sep-w, 1px) solid var(--rcs-status, #22c55e);
}

.fo-teach-rule--instr {
  margin-top: 22px;
}

.fo-teach__instr-status {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text, #f9fafb);
}

.fo-teach-instr-pick {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
}

.fo-teach-instr-pick__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #94a3b8);
}

.fo-teach-instr-pick select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border, #334155);
  background: var(--panel, #111827);
  color: var(--text, #f9fafb);
  font-size: 1rem;
}

.fo-teach-instr-scope {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 8px;
}

.fo-teach-instr-scope .rcs-btn,
.fo-teach-instr-clear {
  width: 100%;
}

.fo-teach,
.fo-teach-stage {
  touch-action: pan-x pan-y pinch-zoom;
}

.fo-teach-stage {
  padding: 4px 0 24px;
}

.fo-teach-nav {
  display: flex;
  gap: 10px;
  margin: 0 0 16px;
}

.fo-teach-nav .rcs-btn {
  flex: 1;
}

/* Desktop: in-flow Prev/Next. Dock is for phone / app only. */
.fo-teach-nav--dock {
  display: none;
}

.fo-teach-step__topper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 6px;
}

.fo-teach-step__h {
  margin: 0 0 6px;
  flex: 1 1 auto;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--rcs-text, #f9fafb);
}

.fo-teach-nav__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin: 0 0 8px;
}

.fo-teach-nav__count {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--rcs-muted, #94a3b8);
}

.fo-teach-nav__btns {
  display: flex;
  gap: 10px;
  width: 100%;
}

.fo-teach-nav__btns .rcs-btn {
  flex: 1;
}

.fo-teach-status-chip {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin-top: 4px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
}

.fo-teach-status-chip.is-done {
  color: #fff;
  background: linear-gradient(180deg, #34d399, #16a34a);
}

.fo-teach-status-chip.is-open {
  color: #fff;
  background: linear-gradient(180deg, #f87171, #dc2626);
}

.fo-teach-step__sec {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rcs-status, #22c55e);
}

.fo-teach-step__body {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.5;
  white-space: pre-wrap;
  color: var(--rcs-text, #f9fafb);
}

.fo-teach-step__body.rcs-syl-body {
  white-space: normal;
}

.fo-teach-ack-zone {
  margin: 0;
}

.fo-teach-ack-zone > .fo-teach-rule {
  margin-top: 28px;
  margin-bottom: 28px;
}

.fo-teach-ack {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
}

.fo-teach-ack--dual {
  flex-direction: row;
}

.fo-teach-ack__state {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rcs-muted);
}

.fo-teach-ack__btn {
  flex: 1 1 140px;
  min-height: 52px;
  min-width: 0;
  width: auto;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
}

.fo-teach-ack__btn:not(.is-done):not(.is-open) {
  border: 1px solid var(--rcs-border, rgba(148, 163, 184, 0.45));
  background: color-mix(in srgb, var(--rcs-panel, #111827) 88%, #64748b);
  color: var(--rcs-muted, #94a3b8);
}

.fo-teach-ack__btn.is-done {
  border: 0;
  background: linear-gradient(180deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
}

.fo-teach-ack__btn.is-status {
  cursor: default;
  pointer-events: none;
}

.fo-teach-ack__btn.is-status.is-open {
  border: 1px solid color-mix(in srgb, #ef4444 55%, transparent);
  background: linear-gradient(180deg, #f87171, #dc2626);
  color: #fff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.28);
}

.fo-teach-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}

.fo-teach-star {
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--rcs-border, rgba(148, 163, 184, 0.35));
  background: rgba(255, 255, 255, 0.03);
  color: var(--rcs-muted, #94a3b8);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .fo-teach-star {
  background: #fff;
}

.fo-teach-star.is-on {
  color: #f59e0b;
  border-color: color-mix(in srgb, #f59e0b 55%, transparent);
  background: color-mix(in srgb, #f59e0b 18%, transparent);
}

.fo-teach-stars__hint {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: var(--rcs-muted, #94a3b8);
}

.fo-teach-grade-hint {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--rcs-muted, #94a3b8);
}

.fo-teach-notes__h {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rcs-muted, #94a3b8);
}

.fo-teach-notes__compose {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 14px;
}

.fo-teach-notes__compose .rcs-btn {
  align-self: flex-start;
  width: auto;
  min-width: 0;
}

.fo-teach-notes__input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--rcs-border, rgba(148, 163, 184, 0.35));
  background: rgba(255, 255, 255, 0.03);
  color: var(--rcs-text, #f9fafb);
  font: inherit;
  resize: vertical;
  min-height: 88px;
}

[data-theme="light"] .fo-teach-notes__input {
  background: #fff;
}

.fo-teach-notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fo-teach-notes__item {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  border-left: var(--rcs-sep-w, 1px) solid var(--rcs-status, #22c55e);
  background: rgba(255, 255, 255, 0.03);
  color: var(--rcs-text, #f9fafb);
}

[data-theme="light"] .fo-teach-notes__item {
  background: #f8fafc;
}

.fo-teach-notes__meta {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rcs-muted, #94a3b8);
}

.fo-teach-notes__body {
  white-space: pre-wrap;
  line-height: 1.4;
  color: var(--rcs-text, #f9fafb);
}

span.fo-teach-star {
  cursor: default;
}

.rcs-fo-fsp-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 4px;
  padding: 0;
  border: 0;
}

/* Match .rcs-fo-weather-split geometry; green stroke = training family */
.rcs-fo-fsp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid var(--rcs-status, #22c55e);
  background: var(--rcs-panel, rgba(255, 255, 255, 0.06));
  overflow: hidden;
}

.rcs-fo-fsp-split--solo {
  grid-template-columns: 1fr;
}

.rcs-fo-fsp-split__half {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 12px 8px;
  border: 0;
  border-right: 1px solid var(--rcs-border, rgba(255, 255, 255, 0.08));
  border-radius: 0;
  background: transparent;
  color: var(--rcs-text, #f8fafc);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.rcs-fo-fsp-split__half:last-child {
  border-right: none;
}

.rcs-fo-fsp-split__half:hover {
  background: rgba(255, 255, 255, 0.06);
}

.rcs-fo-fsp-split__half:focus-visible {
  outline: 2px solid var(--rcs-status, #22c55e);
  outline-offset: -2px;
  z-index: 1;
}

[data-theme="light"] .rcs-fo-fsp-split__half:hover {
  background: var(--rcs-hover, rgba(15, 23, 42, 0.06));
}

@media (max-width: 640px) {
  .rcs-fo-fsp-split {
    min-height: 44px;
  }

  .rcs-fo-fsp-split__half {
    font-size: 14px;
    padding: 8px 6px;
  }
}

.rcs-fo-exam-view__name {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--rcs-text, #f9fafb);
}

.rcs-fo-exam-view__intro {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: var(--rcs-sep-w, 1px) solid var(--rcs-status, #22c55e);
}

.rcs-fo-exam-view__item {
  margin: 0 0 16px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--rcs-border, rgba(148, 163, 184, 0.25));
}

.rcs-fo-exam-view__item:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.rcs-fo-exam-view__item-title {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--rcs-status, #22c55e);
}

.rcs-fo-exam-view__body,
.rcs-fo-exam-view__intro {
  touch-action: pan-x pan-y pinch-zoom;
}

/* Phone + app: hide MFD, dock Prev/Next in that strip */
@media (max-width: 899px) {
  body.rcs-fo-teach-mode .rcs-footer-page,
  body.rcs-fo-teach-mode .rcs-footer-page--member {
    display: none !important;
  }

  body.rcs-fo-teach-mode.rcs-footer-member,
  body.rcs-fo-teach-mode.rcs-footer-embed {
    padding-bottom: 0 !important;
  }

  body.rcs-fo-teach-mode {
    --rcs-fo-footer-clearance: 0px;
  }

  .fo-teach {
    max-width: none;
    width: 100%;
    margin: 0;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    border: 0;
  }

  .fo-teach:has(.fo-teach-nav--dock) {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }

  .fo-teach-nav--inline {
    display: none;
  }

  .fo-teach-nav--dock {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    left: 0;
    right: 0;
    transform: none;
    bottom: 0;
    z-index: 45;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 6px 10px 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
    gap: 0;
    background: var(--rcs-bg, #0b1220);
    border-top: 1px solid var(--rcs-border, rgba(148, 163, 184, 0.35));
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
    border-radius: 0;
  }

  .fo-teach-nav--dock .fo-teach-nav__btns {
    padding-bottom: 6px;
  }

  .fo-teach-nav--dock .fo-teach-status-chip {
    width: 26px;
    height: 26px;
    margin-top: 0;
    font-size: 0.85rem;
  }

  [data-theme="light"] .fo-teach-nav--dock {
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
  }
}

/* App webview (any width): same dock / no MFD as phone */
html.rcs-client-app body.rcs-fo-teach-mode .rcs-footer-page,
html.rcs-client-app body.rcs-fo-teach-mode .rcs-footer-page--member,
body.rcs-footer-embed.rcs-fo-teach-mode .rcs-footer-page,
body.rcs-footer-embed.rcs-fo-teach-mode .rcs-footer-page--member {
  display: none !important;
}

html.rcs-client-app body.rcs-fo-teach-mode,
body.rcs-footer-embed.rcs-fo-teach-mode {
  --rcs-fo-footer-clearance: 0px;
  padding-bottom: 0 !important;
}

html.rcs-client-app .fo-teach:has(.fo-teach-nav--dock),
body.rcs-footer-embed .fo-teach:has(.fo-teach-nav--dock) {
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
}

html.rcs-client-app .fo-teach-nav--inline,
body.rcs-footer-embed .fo-teach-nav--inline {
  display: none;
}

html.rcs-client-app .fo-teach-nav--dock,
body.rcs-footer-embed .fo-teach-nav--dock {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: fixed;
  left: 0;
  right: 0;
  transform: none;
  bottom: 0;
  z-index: 45;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 6px 10px 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
  gap: 0;
  background: var(--rcs-bg, #0b1220);
  border-top: 1px solid var(--rcs-border, rgba(148, 163, 184, 0.35));
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
  border-radius: 0;
}

html.rcs-client-app .fo-teach-nav--dock .fo-teach-nav__btns,
body.rcs-footer-embed .fo-teach-nav--dock .fo-teach-nav__btns {
  padding-bottom: 6px;
}

/* App WebView often already clears the system nav — don't double-pad under buttons. */
html.rcs-client-app .fo-teach-nav--dock,
body.rcs-footer-embed .fo-teach-nav--dock {
  padding-bottom: 0;
}

@media (min-width: 900px) {
  .fo-teach {
    padding-top: 24px;
  }

  .fo-teach-step__h {
    font-size: 1.85rem;
  }

  /* Wide desktop browser (not app): keep MFD + in-flow nav */
  html:not(.rcs-client-app) body.rcs-field-ops-page:not(.rcs-footer-embed) .fo-teach-nav--dock {
    display: none !important;
  }

  html:not(.rcs-client-app) body.rcs-field-ops-page:not(.rcs-footer-embed) .fo-teach-nav--inline {
    display: flex;
  }
}
