/* v37.13.0 additions use the existing portal design tokens and component language. */
#portal #portalBrandLogo{width:34px!important;height:34px!important;max-width:34px!important;max-height:34px!important;flex:0 0 34px!important;object-fit:contain!important}
#portal #portalBrandLogo:not(.hidden)~span:last-child{display:flex!important;min-width:0;flex-direction:column;line-height:1.12}
#portal #portalBrandLogo:not(.hidden)~span:last-child strong,#portal #portalBrandLogo:not(.hidden)~span:last-child small{display:block;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#portal .portal-brand:has(#portalBrandLogo:not(.hidden)){justify-content:flex-start!important;align-items:center!important;gap:9px!important;min-height:48px!important;padding:2px 8px 12px!important}
.learning-summary-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:10px;margin:0 0 18px}.learning-summary-strip>div{background:var(--surface,#fff);border:1px solid var(--border,#dfe7e2);border-radius:12px;padding:14px;display:grid;gap:3px}.learning-summary-strip b{font-size:1.35rem;color:var(--primary,#315f4a)}.learning-summary-strip span{font-size:.78rem;color:var(--muted,#66756d)}
.learning-goal-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(310px,1fr));gap:14px}.learning-goal-card{margin:0;display:flex;flex-direction:column;gap:12px}.learning-goal-card header,.learning-goal-card footer,.learning-context-tabs,.story-response-list article header,.community-post-list article header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.learning-goal-card h3{margin:3px 0 0}.learning-goal-card>p,.learning-outcome p{white-space:pre-wrap;margin:0}.learning-goal-meta{display:flex;gap:8px;flex-wrap:wrap}.learning-goal-meta span{background:var(--surface-soft,#f3f7f4);border-radius:999px;padding:5px 9px;font-size:.76rem;color:var(--muted,#66756d)}.learning-outcome{border-left:3px solid var(--primary,#315f4a);padding:8px 12px;background:var(--surface-soft,#f5f8f6);border-radius:0 8px 8px 0}.learning-goal-card footer{margin-top:auto}
.ll-learning-modal .modal-card.wide{width:min(960px,calc(100vw - 28px));max-height:92vh;overflow:auto}.ll-learning-modal .modern-form{margin-top:14px}.learning-context-tabs{justify-content:flex-start;overflow:auto;border-bottom:1px solid var(--border,#dfe7e2);margin:16px 0}.learning-context-tabs button{border:0;background:transparent;padding:10px 12px;white-space:nowrap;color:var(--muted,#66756d);font-weight:700}.learning-context-tabs button.active{color:var(--primary,#315f4a);box-shadow:inset 0 -2px var(--primary,#315f4a)}
.story-response-list,.goal-link-list,.story-relation-list,.conversation-list,.community-post-list{display:grid;gap:10px}.story-response-list article,.goal-link-list article,.story-relation-list article,.community-post-list article{border:1px solid var(--border,#dfe7e2);border-radius:10px;padding:12px;background:var(--surface,#fff)}.story-response-list article p,.community-post-list article p{white-space:pre-wrap}.story-response-list article header{align-items:center}.story-response-list article header small{color:var(--muted,#66756d)}.goal-link-list article{display:flex;align-items:center;justify-content:space-between;gap:12px}.goal-link-list article>div{display:grid}.goal-link-list small{color:var(--muted,#66756d)}.story-relation-list article{display:grid;gap:4px}.compact-form{margin-top:14px;padding-top:14px;border-top:1px solid var(--border,#dfe7e2)}
.story-extended-media{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.story-extended-media figure{margin:0;border:1px solid var(--border,#dfe7e2);border-radius:10px;overflow:hidden;background:var(--surface-soft,#f4f7f5)}.story-extended-media img,.story-extended-media video{display:block;width:100%;max-height:360px;object-fit:contain}.story-extended-media audio{width:calc(100% - 20px);margin:20px 10px}.story-extended-media figcaption{padding:8px 10px;font-size:.8rem;color:var(--muted,#66756d)}
.ai-learning-result{margin-top:16px;border-top:1px solid var(--border,#dfe7e2);padding-top:14px}.ai-learning-result textarea{width:100%}.learning-ai-admin-controls .choice-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.communications-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.communications-grid>.panel{margin:0}.community-post-list article.priority-urgent{border-left:4px solid #b42318}.community-post-list article.priority-important{border-left:4px solid #b7791f}.community-post-list article.read{opacity:.86}.community-post-list .text-btn{margin-top:8px}.conversation-list button{width:100%;border:1px solid var(--border,#dfe7e2);border-radius:10px;background:var(--surface,#fff);padding:12px;text-align:left;display:flex;justify-content:space-between;gap:10px;color:inherit}.conversation-list button:hover{border-color:var(--primary,#315f4a);background:var(--surface-soft,#f4f8f5)}.conversation-list button>div{display:grid;gap:3px;min-width:0}.conversation-list small,.conversation-list span{color:var(--muted,#66756d);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation-messages{display:grid;gap:9px;max-height:50vh;overflow:auto;padding:8px 2px}.conversation-messages article{max-width:78%;border-radius:12px 12px 12px 3px;padding:10px 12px;background:var(--surface-soft,#eef4f0)}.conversation-messages article.mine{margin-left:auto;border-radius:12px 12px 3px 12px;background:color-mix(in srgb,var(--primary,#315f4a) 12%,white)}.conversation-messages p{white-space:pre-wrap;margin:4px 0}.conversation-messages small{display:block;color:var(--muted,#66756d);font-size:.72rem}
.needs-attention td{background:#fff8e8}.settings-note{margin-top:12px}.mini-status.normal{background:#edf3ef;color:#315f4a}.mini-status.important{background:#fff1c7;color:#7a4f00}.mini-status.urgent{background:#fee4e2;color:#9b1c1c}
.learning-report-stack{display:grid;gap:16px}.learning-report-stack>.panel,.learning-report-grid>.panel{margin:0}.learning-report-grid .data-table{min-width:0}.create-follow-up-story{margin:4px 0 8px}.learning-journey-action{white-space:nowrap}
@media(max-width:780px){.communications-grid{grid-template-columns:1fr}.learning-goal-list{grid-template-columns:1fr}.workspace-head .actions{width:100%;justify-content:flex-start;flex-wrap:wrap}.ll-learning-modal .modal-card.wide{width:calc(100vw - 16px)}.learning-context-tabs{margin-inline:-4px}.story-extended-media{grid-template-columns:1fr}.goal-link-list article{align-items:flex-start;flex-direction:column}.conversation-messages article{max-width:90%}}
