/* #359: body-only styles. Shared shell and existing qualification picker unchanged. */
#ta-learning-pilot, .ta-pilot-entry {
  color: var(--qr-text);
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.65;
}
#ta-learning-pilot *, .ta-pilot-entry * { box-sizing: border-box; }
#ta-learning-pilot[hidden] { display: none !important; }
#learn-dashboard[data-ta-pilot-open],
#learn-dashboard[data-ta-pilot-open] .qr-center,
#ta-learning-pilot { background: var(--qr-bg); }
#learn-dashboard[data-ta-pilot-open] .qr-center > :not(#ta-learning-pilot),
#learn-dashboard[data-ta-pilot-open] .qr-side { display: none !important; }
.ta-pilot-entry {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--qr-brand);
  border-radius: 14px;
  background: color-mix(in srgb, var(--qr-brand) 9%, var(--qr-surface));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.ta-pilot-entry > div { min-width: 0; flex: 1; }
#ta-learning-pilot h2 { margin: 18px 0 12px; font-size: 1.6rem; line-height: 1.45; }
#ta-learning-pilot h3, .ta-pilot-entry h3 { margin: 10px 0; font-size: 1.15rem; line-height: 1.65; }
#ta-learning-pilot p, .ta-pilot-entry p { margin: 10px 0; }
#ta-learning-pilot .ta-secondary, .ta-pilot-entry .ta-secondary {
  color: var(--qr-text-2); font-size: .9rem;
}
#ta-learning-pilot .ta-eyebrow, .ta-pilot-entry .ta-eyebrow {
  color: var(--qr-text); font-size: .9rem; font-weight: 700;
}
#ta-learning-pilot .ta-button, .ta-pilot-entry .ta-button {
  min-height: 46px;
  max-width: 100%;
  padding: 10px 18px;
  border: 1px solid var(--qr-border-strong);
  border-radius: 10px;
  background: var(--qr-surface-2);
  color: var(--qr-text);
  font: inherit;
  cursor: pointer;
  white-space: normal;
}
#ta-learning-pilot .ta-primary, .ta-pilot-entry .ta-primary {
  color: #fff;
  background: color-mix(in srgb, var(--qr-brand-deep) 70%, #000);
  border-color: transparent;
  font-weight: 700;
}
#ta-learning-pilot button:disabled { cursor: not-allowed; opacity: .55; }
#ta-learning-pilot .ta-question:focus, #ta-learning-pilot .ta-result-heading:focus { outline: none; }
#ta-learning-pilot button:focus-visible, .ta-pilot-entry button:focus-visible,
#ta-learning-pilot select:focus-visible, #ta-learning-pilot input:focus-visible,
#ta-learning-pilot summary:focus-visible {
  outline: 3px solid var(--qr-brand); outline-offset: 3px;
}
#ta-learning-pilot button:not(:disabled):hover, .ta-pilot-entry button:hover { border-color: var(--qr-brand); }
#ta-learning-pilot .ta-panel, #ta-learning-pilot .ta-case,
#ta-learning-pilot .ta-feedback, #ta-learning-pilot .ta-hint {
  border: 1px solid var(--qr-border-strong);
  background: var(--qr-surface);
  border-radius: 14px;
  padding: 20px;
  margin: 18px 0;
}
#ta-learning-pilot .ta-case summary { cursor: pointer; font-weight: 700; min-height: 32px; }
#ta-learning-pilot .ta-notice {
  border-left: 3px solid var(--qr-brand);
  padding: 8px 16px; margin: 20px 0; color: var(--qr-text-2);
}
#ta-learning-pilot .ta-actions, #ta-learning-pilot .ta-topics {
  display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 18px 0; list-style: none;
}
#ta-learning-pilot .ta-topics li { padding: 4px 12px; border: 1px solid var(--qr-border-strong); border-radius: 8px; }
#ta-learning-pilot [aria-pressed="true"] { border-color: var(--qr-brand); box-shadow: inset 0 -3px var(--qr-brand); font-weight: 700; }
#ta-learning-pilot .ta-phases { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 18px 0; }
#ta-learning-pilot .ta-phases li { flex: 1 1 140px; padding: 8px 12px; border-radius: 8px; background: var(--qr-surface-2); font-size: .9rem; }
#ta-learning-pilot .ta-phases [aria-current="step"] { border-bottom: 3px solid var(--qr-brand); font-weight: 700; }
#ta-learning-pilot .ta-options { display: grid; gap: 10px; margin: 18px 0; }
#ta-learning-pilot .ta-option, #ta-learning-pilot .ta-rule {
  display: flex; align-items: center; gap: 12px; min-height: 48px;
  padding: 12px 16px; border: 1px solid var(--qr-border-strong); border-radius: 10px;
  background: var(--qr-surface-2);
}
#ta-learning-pilot .ta-option { cursor: pointer; }
#ta-learning-pilot .ta-option:has(input:checked) { border-color: var(--qr-brand); box-shadow: inset 3px 0 var(--qr-brand); }
#ta-learning-pilot input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--qr-brand-deep); }
#ta-learning-pilot .ta-rule { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, 180px); }
#ta-learning-pilot select { min-width: 0; width: 100%; min-height: 46px; padding: 8px; font: inherit; background: var(--qr-surface); color: var(--qr-text); border: 1px solid var(--qr-border-strong); border-radius: 8px; }
#ta-learning-pilot .ta-feedback { border-left: 4px solid var(--qr-brand); }
#ta-learning-pilot .ta-leave-dialog {
  max-width: min(460px, calc(100% - 32px)); padding: 24px; margin: auto;
  border: 1px solid var(--qr-border-strong); border-radius: 16px;
  background: var(--qr-surface); color: var(--qr-text); font: inherit;
}
#ta-learning-pilot .ta-leave-dialog::backdrop { background: rgba(0, 0, 0, .65); }
@media (max-width: 560px) {
  .ta-pilot-entry { flex-direction: column; align-items: stretch; padding: 18px; }
  #ta-learning-pilot h2 { font-size: 1.3rem; }
  #ta-learning-pilot .ta-rule { grid-template-columns: minmax(0, 1fr); }
  #ta-learning-pilot .ta-actions { flex-direction: column; }
  #ta-learning-pilot .ta-actions button, .ta-pilot-entry button { width: 100%; }
  #ta-learning-pilot .ta-panel, #ta-learning-pilot .ta-case { padding: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  #ta-learning-pilot button, .ta-pilot-entry button { transition: border-color .15s, background .15s; }
}
