.slm-card-embed {
  container-type: inline-size;
  container-name: slm-cards;
}

@container slm-cards (max-width: 900px) {
  .slm-card-embed .slm-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container slm-cards (max-width: 620px) {
  .slm-card-embed .slm-course-grid {
    grid-template-columns: 1fr;
  }
}

/* 1.14.43: bring the account dashboard into the course-card design system.
   Scoped to the dashboard; catalog cards and lesson screens retain their styles. */
.slm-app.slm-unified-dashboard{
  --slm-hub-ink:var(--cu-ink,var(--slm-ink));
  --slm-hub-muted:var(--cu-muted,var(--slm-muted));
  --slm-hub-line:var(--cu-line,var(--slm-line));
  --slm-hub-soft:var(--cu-cream,var(--slm-soft));
  --slm-hub-radius:var(--slm-radius,22px);
  container-type:inline-size;container-name:slm-dashboard;
  padding:clamp(20px,3vw,36px) 0 40px;
  color:var(--slm-hub-ink);
}
.slm-app.slm-unified-dashboard.slm-preset-open-pivot{--slm-hub-radius:8px}
.slm-app.slm-unified-dashboard.slm-preset-open-pivot{--slm-hub-radius:16px}
.slm-app.slm-unified-dashboard .slm-dashboard-head{
  position:relative;align-items:center;margin:0 0 38px;
  padding:clamp(24px,4vw,42px);border:1px solid var(--slm-hub-line);
  border-radius:var(--slm-hub-radius);background:var(--slm-hub-soft);
  box-shadow:0 7px 26px rgba(15,36,58,.04);
}
.slm-app.slm-unified-dashboard .slm-dashboard-head>div{min-width:0;max-width:760px}
.slm-app.slm-unified-dashboard .slm-dashboard-head h2{
  margin:7px 0 12px;font-size:clamp(30px,4vw,44px);line-height:1.15;
  color:var(--slm-hub-ink);overflow-wrap:anywhere;
}
.slm-app.slm-unified-dashboard .slm-dashboard-head p{
  margin:0;color:var(--slm-hub-muted);font-size:16px;line-height:1.65;
}
.slm-app.slm-unified-dashboard .slm-dashboard-section{
  margin:0;padding:0 0 40px;border:0;scroll-margin-top:100px;
}
.slm-app.slm-unified-dashboard .slm-dashboard-section+.slm-dashboard-section{
  border-top:1px solid var(--slm-hub-line);padding-top:36px;
}
.slm-app.slm-unified-dashboard .slm-dashboard-section-head{
  display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px;
}
.slm-app.slm-unified-dashboard .slm-dashboard-section-head>div{min-width:0}
.slm-app.slm-unified-dashboard .slm-dashboard-section-head h3{
  margin:0 0 8px;font-size:clamp(25px,3vw,32px);line-height:1.2;
  letter-spacing:-.025em;color:var(--slm-hub-ink);
}
.slm-app.slm-unified-dashboard .slm-dashboard-section-head p{
  margin:0;color:var(--slm-hub-muted);font-size:14px;line-height:1.6;
}
.slm-app.slm-unified-dashboard .slm-dashboard-section-head>strong{
  flex:0 0 auto;display:grid;place-items:center;min-width:44px;height:44px;padding:0 12px;
  border:1px solid var(--slm-hub-line);border-radius:50%;font-size:14px;
  background:var(--slm-hub-soft)!important;color:var(--slm-hub-ink)!important;
}
.slm-app.slm-unified-dashboard .slm-course-grid{align-items:stretch;gap:26px}
.slm-app.slm-unified-dashboard .slm-course-card{min-width:0}
.slm-app.slm-unified-dashboard .slm-dashboard-note{
  display:flex;align-items:flex-start;gap:18px;padding:28px;
  border:1px solid var(--slm-hub-line);border-radius:var(--slm-hub-radius);
  background:#fff;box-shadow:0 7px 26px rgba(15,36,58,.04);
}
.slm-app.slm-unified-dashboard .slm-dashboard-note>span{
  display:grid;place-items:center;flex:0 0 44px;height:44px;
  border-radius:12px;background:var(--slm-hub-soft);color:var(--slm-hub-ink);font-size:23px;
}
.slm-app.slm-unified-dashboard .slm-dashboard-note h4{margin:0 0 7px;font-size:19px;line-height:1.35;color:var(--slm-hub-ink)}
.slm-app.slm-unified-dashboard .slm-dashboard-note p{margin:0;color:var(--slm-hub-muted);font-size:14px;line-height:1.7}
.slm-app.slm-unified-dashboard .slm-notes-library{display:grid;gap:24px}
.slm-app.slm-unified-dashboard .slm-notes-course-card{
  min-width:0;border:1px solid var(--slm-hub-line);border-radius:var(--slm-hub-radius);
  background:#fff;box-shadow:0 7px 26px rgba(15,36,58,.04);
}
.slm-app.slm-unified-dashboard .slm-notes-course-head{
  padding:24px;gap:20px;background:#fff;border-bottom:1px solid var(--slm-hub-line);
}
.slm-app.slm-unified-dashboard .slm-notes-course-head>div{min-width:0}
.slm-app.slm-unified-dashboard .slm-notes-course-head h4{
  font-size:22px;line-height:1.3;letter-spacing:-.02em;color:var(--slm-hub-ink);overflow-wrap:anywhere;
}
.slm-app.slm-unified-dashboard .slm-notes-course-head small{color:var(--slm-hub-muted);font-size:13px;margin-top:7px}
.slm-app.slm-unified-dashboard .slm-notes-export-btn{
  display:inline-flex;align-items:center;justify-content:center;min-height:46px;
  padding:12px 17px;border-radius:var(--slm-button-radius,12px);
  background:var(--slm-button,var(--slm-brand));font-size:13px;line-height:1.3;text-align:center;
}
.slm-app.slm-unified-dashboard .slm-notes-export-btn:hover{filter:brightness(.92)}
.slm-app.slm-unified-dashboard .slm-notes-entries{padding:4px 24px 10px}
.slm-app.slm-unified-dashboard .slm-notes-entry{border-color:var(--slm-hub-line)}
.slm-app.slm-unified-dashboard .slm-notes-entry summary{min-height:56px;color:var(--slm-hub-ink);line-height:1.5}
.slm-app.slm-unified-dashboard .slm-notes-entry summary span{min-width:0;overflow-wrap:anywhere}
.slm-app.slm-unified-dashboard .slm-notes-entry summary b{flex-shrink:0}
.slm-app.slm-unified-dashboard .slm-notes-entry p{
  padding:18px;background:var(--slm-hub-soft);color:var(--slm-hub-ink);
  font-size:14px;line-height:1.75;overflow-wrap:anywhere;
}
.slm-app.slm-unified-dashboard :is(a,button,summary):focus-visible{
  outline:3px solid var(--slm-brand);outline-offset:4px;
}
/* Viewport fallbacks also support browsers without container queries. */
@media(max-width:900px){
  .slm-app.slm-unified-dashboard .slm-course-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
}
@media(max-width:620px){
  .slm-app.slm-unified-dashboard .slm-course-grid{grid-template-columns:1fr}
  .slm-app.slm-unified-dashboard .slm-dashboard-head{margin-bottom:28px}
  .slm-app.slm-unified-dashboard .slm-dashboard-section{padding-bottom:30px}
  .slm-app.slm-unified-dashboard .slm-dashboard-section+.slm-dashboard-section{padding-top:28px}
  .slm-app.slm-unified-dashboard .slm-notes-course-head{flex-direction:column;align-items:stretch;padding:20px}
  .slm-app.slm-unified-dashboard .slm-notes-export-btn{width:100%}
}

@container slm-dashboard (max-width:900px){
  .slm-app.slm-unified-dashboard .slm-course-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
}
@container slm-dashboard (max-width:620px){
  .slm-app.slm-unified-dashboard .slm-course-grid{grid-template-columns:1fr}
  .slm-app.slm-unified-dashboard .slm-dashboard-section-head{gap:14px;align-items:flex-start}
  .slm-app.slm-unified-dashboard .slm-dashboard-section-head>strong{min-width:36px;height:36px;font-size:12px}
  .slm-app.slm-unified-dashboard .slm-notes-course-head{flex-direction:column;align-items:stretch;padding:20px}
  .slm-app.slm-unified-dashboard .slm-notes-export-btn{width:100%}
  .slm-app.slm-unified-dashboard .slm-notes-entries{padding:4px 18px 10px}
  .slm-app.slm-unified-dashboard .slm-dashboard-note{padding:22px;gap:14px}
}
