/* Trial features inherit their host's components, colors and typography. */
.wb *, .coach-sheet * { box-sizing: border-box; min-width: 0; }
.wb .cx-call.is-waiting { opacity: 1; }
.wb [hidden], .coach-sheet [hidden] { display: none; }
.wb-subtitle, .wb-muted, .wb-sync, .wb-limits { color: var(--text-2); }
.wb-subtitle { margin: 10px 0 0; font-size: .95rem; }
.wb-task { margin: 0 6px 12px; color: var(--text-2); }
.wb-gather .cx-step-h { margin-bottom: 16px; }
.wb-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
.wb-tabs .btn { flex: 1 1 6rem; border-color: transparent; min-height: 44px; padding: 10px 8px; }
.wb .wb-tabs .btn[aria-selected=true],
.wb .wb-tabs .btn[aria-selected=true]:is(:hover,:focus-visible) { background: var(--text); color: var(--bg); border-color: var(--text); }
.wb-view { padding: 20px; }
.wb-kicker { margin: 0 0 8px; color: var(--text-2); font-size: .875rem; font-weight: 600; }
.wb-nameplate { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 16px 20px; margin: 16px 0; background: var(--surface-2); }
.wb-plate-brand { font: 600 .875rem/1.4 var(--font); }
.wb-plate-brand small { display: block; color: var(--text-2); font-weight: 400; font-size: .75rem; }
.wb-nameplate dl { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px 20px; margin: 16px 0; align-items: baseline; }
.wb-nameplate dt { color: var(--text-2); font-size: .875rem; }
.wb-nameplate dd { font: 600 clamp(1.25rem,2.6vw,1.7rem)/1.4 var(--mono); margin: 0; overflow-wrap: anywhere; }
.wb-nameplate p { border-top: 1px solid var(--line); padding-top: 10px; font-size: .75rem; color: var(--text-2); margin: 0; }
.wb-ref-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin-bottom: 20px; }
.wb-ref-table caption { text-align: left; font-weight: 600; margin: 12px 0; }
.wb-ref-table th, .wb-ref-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
.wb-ref-table thead { color: var(--text-2); font-size: .875rem; }
.wb-identity { padding: 10px 12px; background: var(--surface-2); border-radius: var(--radius); font: 600 .9rem/1.5 var(--mono); }
.wb-other { border-top: 1px solid var(--line); padding: 0 20px; }
.wb-other .cx-step { margin-top: 12px; }
.wb summary, .coach-sheet summary { cursor: pointer; min-height: 44px; padding: 12px 0; font-weight: 600; }
.wb-scope { margin-top: 16px; }
.wb-sidebar { position: sticky; top: 92px; padding: 20px; font-size: .95rem; max-height: calc(100dvh - 110px); overflow-y: auto; }
.wb-sidebar h2 { font: 600 1.12rem/1.3 var(--font); margin: 0 0 12px; }
.wb-context { margin-bottom: 24px; }
.wb-session-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.wb-time-compact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.wb-time-compact > span { font: 600 1rem/1.4 var(--mono); }
.wb-session-controls .wb-toolbar { margin: 0; }
.wb-next { color: var(--text); font-weight: 600; margin: 16px 0; }
.wb-return { display: grid; gap: 6px; padding: 12px; background: var(--surface-2); border-radius: var(--radius); margin: 16px 0; }
.wb-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.wb-button { min-height: 44px; white-space: normal; }
.wb-announcement { flex-basis: 100%; font-size: .875rem; color: var(--text-2); }
.wb-announcement:empty { display: none; }
.wb-evidence, .wb-help { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; }
.wb-sidebar > .wb-evidence { border: 0; padding-top: 0; margin-top: 0; }
.wb-findings { padding-left: 20px; }
.wb-findings li { margin: 12px 0; }
.wb-findings p { margin: 4px 0; color: var(--text-2); font-size: .9rem; }
.wb-help textarea { display: block; width: 100%; min-height: 100px; margin: 12px 0; }
.wb-help .btn { margin: 4px 0; }
.wb-attachments { padding: 12px; background: var(--surface-2); border-radius: var(--radius); font-size: .875rem; }
.wb-sync, .wb-limits { font-size: .875rem; margin-top: 24px; }
.wb :is(button,a,summary), .coach-sheet :is(button,a,summary) { overflow-wrap: anywhere; }
.wb :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Layout only: Crewline owns its headers, cards, type and controls. */
.coach-sheet { width: 100%; grid-column: 1/-1; }
.coach-sheet .coach-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: 16px; align-items: start; }
.coach-sheet .coach-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.coach-sheet .coach-form label.grow { flex: 1 1 12rem; }
.coach-sheet .coach-form input[type=number] { width: 7rem; }
.coach-sheet :is(input,select,textarea) { max-width: 100%; }
.coach-sheet .coach-state { color: var(--cs-text-2); font-size: .875rem; }
.coach-sheet .coach-time { font: 700 1.875rem/1.3 var(--cs-font); margin: 12px 0; font-variant-numeric: tabular-nums; }
.coach-sheet progress { width: 100%; accent-color: var(--crew); height: 10px; }
.coach-sheet .coach-work { list-style: none; padding: 0; margin: 0; }
.coach-sheet .coach-work li { padding: 14px 0; border-bottom: 1px solid var(--cs-sep-2); }
.coach-sheet .coach-work b, .coach-sheet .coach-work small { display: block; }
.coach-sheet .coach-work small { color: var(--cs-text-2); margin: 6px 0; }
.coach-sheet .coach-help-item { background: var(--cw-fill); border-radius: var(--cw-r-sm); padding: 16px; margin: 16px 0; }
.coach-sheet textarea { width: 100%; min-height: 90px; }
.coach-sheet .coach-links { display: flex; gap: 10px 18px; flex-wrap: wrap; }
.coach-sheet .coach-history { padding-left: 22px; font-size: .875rem; }
.coach-sheet .coach-note { background: var(--cw-fill); border-radius: var(--cw-r-sm); padding: 12px; font-size: .875rem; }
.coach-sheet .coach-message { white-space: pre-wrap; }
.coach-sheet table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.coach-sheet th, .coach-sheet td { text-align: left; border-bottom: 1px solid var(--cs-sep-2); padding: 10px 6px; vertical-align: top; overflow-wrap: anywhere; }
.coach-sheet caption { text-align: left; margin-bottom: 10px; }
.coach-sheet .btn { min-height: 44px; white-space: normal; }
.coach-entry { display: grid; gap: 8px; padding: 20px; margin: 16px 0; }
.coach-sheet h1 { overflow-wrap: anywhere; }
.cl-appwrap.cl-tab-coaching .cw-seg { flex-wrap: wrap; width: fit-content; }
.cl-appwrap.cl-tab-coaching .cw-seg a { flex: 1 1 auto; white-space: normal; min-height: 44px; padding: 10px 14px; }
.cw-hm .coverage { display: block; font-size: .65rem; font-weight: 500; white-space: nowrap; }
.cw-bar .cw-bar-k small { white-space: normal; }
.cw-hm-wrap + .readiness-note { font-size: .875rem; }

@media (max-width: 899px) {
  .wb-sidebar { position: static; max-height: none; margin-top: 24px; overflow: visible; }
  .coach-sheet .coach-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 760px) {
  .wb .cx-wo { padding: 18px 16px; }
  .wb .wo-unit { grid-template-columns: 1fr; gap: 2px; }
  .wb .wo-unit dd { margin-bottom: 10px; }
  .wb-view, .wb-sidebar { padding: 16px; }
  .wb-nameplate { padding: 12px; }
  .wb-nameplate dl { gap: 8px 12px; }
  .wb-other { padding: 0 16px; }
  .coach-sheet .coach-form label, .coach-sheet .coach-form button { width: 100%; }
  .cl-tab-coaching .cw-seg { display: flex; flex-wrap: wrap; }
  .cl-tab-coaching .cw-seg a { flex: 1 1 5rem; white-space: normal; }
  body:has(.wb) .nav { display: flex; justify-content: flex-start; overflow-x: auto; overflow-y: hidden; gap: 0; max-width: 100%; }
  body:has(.wb) .nav > a { flex: 1 0 4rem; min-width: 4rem; white-space: normal; }
  body:has(.wb) .nav-label { white-space: normal; overflow-wrap: normal; }
  body:has(.wb) .acct-btn { height: auto; min-height: 44px; white-space: normal; }
  body:has(.wb) .foot-cols, body:has(.coach-sheet) .foot-cols { grid-template-columns: minmax(0,1fr); }
  body:has(.wb) .foot :is(a,p,b,span), body:has(.coach-sheet) .foot :is(a,p,b,span) { overflow-wrap: anywhere; min-width: 0; }
}
body:has(.wb) .topbar-inner, body:has(.wb) .topbar-tools,
body:has(.coach-sheet) .topbar-inner, body:has(.coach-sheet) .topbar-tools { flex-wrap: wrap; min-width: 0; max-width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .wb *, .coach-sheet * { animation: none!important; scroll-behavior: auto!important; transition: none!important; }
}
