.knowledge-learning { overflow: visible; }
.knowledge-learning .knowledge-topic { margin: 20px 0; }
.knowledge-learning .picker-trigger span { min-width: 0; white-space: normal; text-align: left; overflow-wrap: anywhere; }
.knowledge-learning .picker-list button { min-height: 44px; white-space: normal; overflow-wrap: anywhere; }
.knowledge-learning .picker-trigger:focus-visible,.knowledge-learning .picker-list button:focus-visible { outline: 3px solid #4e72ff; outline-offset: 2px; }
.knowledge-learning h2 { margin: 18px 0 12px; font-size: 22px; line-height: 1.35; }
.knowledge-learning h3 { margin: 18px 0 10px; font-size: 18px; line-height: 1.4; }
.knowledge-learning ul { padding-left: 22px; }
.knowledge-learning li { margin: 12px 0; line-height: 1.6; overflow-wrap: anywhere; }
.knowledge-learning .knowledge-source { display: block; width: fit-content; max-width: 100%; min-height: 44px; padding: 8px 0; color: var(--blue); overflow-wrap: anywhere; }
.knowledge-learning textarea { min-height: 110px; }
.knowledge-learning .knowledge-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.knowledge-learning .knowledge-actions .btn { min-height: 44px; }

/* Activity-first Learn only; preserve the approved shell and other routes. */
.activity-library h2,.activity-panel h2 { font-size: 22px; line-height: 1.4; margin: 0 0 20px; font-weight: 650; }
.activity-tiles,.activity-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.activity-tile { display: flex; flex-direction: column; gap: 12px; text-align: left; border: 1px solid var(--line,#dbe3ef); border-radius: 14px; background: white; color: var(--navy,#192742); padding: 22px; font: inherit; cursor: pointer; min-width: 0; }
.activity-tile strong { font-size: 19px; line-height: 1.45; font-weight: 650; }
.activity-tile:hover,.activity-choice:hover { border-color: #4e72ff; background: #f5f7ff; }
.activity-open { color: #3054d8; font-weight: 600; margin-top: auto; }
.activity-panel { max-width: 900px; }
.activity-panel > .helper { margin-top: 20px; }
.activity-panel p,.activity-facts li { line-height: 1.65; overflow-wrap: anywhere; }
.activity-panel fieldset { min-width: 0; padding: 0; border: 0; margin: 24px 0; }
.activity-panel legend { font-size: 18px; font-weight: 600; padding: 0 0 14px; }
.activity-choice { font: inherit; text-align: left; padding: 14px 18px; min-height: 52px; min-width: 0; border: 1px solid var(--line,#dbe3ef); border-radius: 10px; background: white; color: var(--navy,#192742); cursor: pointer; overflow-wrap: anywhere; }
.activity-choice.selected { background: #edf1ff; border: 2px solid #4e72ff; padding: 13px 17px; }
.activity-feedback { border-radius: 12px; background: #f3f6fc; padding: 16px 20px; margin: 18px 0; }
.activity-feedback p:first-child { margin-top: 0; }
.activity-feedback p:last-child { margin-bottom: 0; }
.activity-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.activity-sources { margin: 20px 0; }
.activity-sources a { display: block; color: #3054d8; min-height: 44px; padding: 10px 0; overflow-wrap: anywhere; }
.activity-library h2:focus,.activity-panel h2:focus { outline: none; }
.activity-tile:focus-visible,.activity-choice:focus-visible,.activity-panel .btn:focus-visible,.activity-panel textarea:focus-visible,.activity-sources a:focus-visible,.activity-sources summary:focus-visible,.activity-history summary:focus-visible { outline: 3px solid #4e72ff; outline-offset: 3px; }
.activity-sources summary,.activity-history summary { min-height: 44px; padding: 10px 0; cursor: pointer; }
.activity-history[open] > summary { margin-bottom: 16px; }
.activity-facts { padding-left: 22px; }
.activity-facts li { margin: 10px 0; }
.activity-saved { margin-top: 20px; }
.activity-pace { display:flex;flex-wrap:wrap;gap:8px;margin:18px 0; }
.activity-library-rest { margin-top:20px; }
.activity-library-rest summary { min-height:44px;padding:10px 0;cursor:pointer; }
.activity-library-rest[open] summary { margin-bottom:12px; }
.activity-library-rest summary:focus-visible { outline:3px solid #4e72ff;outline-offset:3px; }
/* Owner V13 correction: compact rail, no extra status band. */
@media(min-width:1000px) { .today-grid { grid-template-columns:minmax(0,1fr) minmax(290px,320px); } }
.support-card > .helper + .actions { margin-top:16px; }
@media(max-width:640px) {
  .activity-tiles,.activity-choices { grid-template-columns: minmax(0,1fr); }
  .activity-tile { padding: 18px; }
  .activity-panel h2 { font-size: 21px; }
  .activity-actions > .btn { flex: 1 1 auto; white-space: normal; }
}
