/* Dashboard workspace shell. Legacy pages retain their established shell. */
.pead-app-body.pead-learning-layout {
  --learn-canvas: #f6f9fb;
  --learn-surface: #ffffff;
  --learn-ink: #21293b;
  --learn-muted: #6c6a80;
  --learn-primary: #476ee6;
  --learn-teal: #207f78;
  --learn-coral: #dc775f;
  --learn-amber: #b8832c;
  --learn-lavender: #e8ebff;
  --learn-mint: #e4f3ed;
  --learn-peach: #fff0e7;
  --learn-border: #e7e9f1;
  --learn-sidebar-width: 224px;
  --learn-font: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--learn-canvas);
  color: var(--learn-ink);
  font-family: var(--learn-font);
  font-size: 15px;
  line-height: 1.5;
  color-scheme: light;
}
.pead-learning-layout *, .pead-learning-layout *::before, .pead-learning-layout *::after { box-sizing: border-box; }
.pead-learning-layout h1, .pead-learning-layout h2, .pead-learning-layout h3, .pead-learning-layout h4 { font-family: var(--learn-font); }
.pead-learning-layout .learning-dashboard { margin-left: var(--learn-sidebar-width); }
.pead-learning-layout > .flash-container { margin-left: var(--learn-sidebar-width); }
.learning-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.learning-skip-link { position: fixed; z-index: 1500; left: calc(var(--learn-sidebar-width) + 20px); top: 12px; padding: .75rem 1rem; border-radius: 9px; background: var(--learn-ink); color: #fff; text-decoration: none; transform: translateY(-150%); }
.learning-skip-link:focus { transform: none; }
.learning-sidebar {
  position: fixed; z-index: 1200; inset: 0 auto 0 0; width: var(--learn-sidebar-width);
  display: flex; flex-direction: column; overflow-y: auto; background: #fff;
  border-right: 1px solid var(--learn-border); padding: 30px 18px 16px;
  color: var(--learn-ink); font-family: var(--learn-font);
}
.learning-sidebar-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.learning-brand { display: flex; align-items: center; gap: 10px; color: var(--learn-ink); text-decoration: none; min-width: 0; }
.learning-brand-copy { min-width: 0; }
.learning-brand strong { font-size: 20px; font-weight: 700; letter-spacing: -.5px; display: block; line-height: 1.15; }
.learning-brand strong > span { display: block; color: var(--learn-primary); }
.learning-brand small { display: block; font-size: 11px; color: var(--learn-muted); margin-top: 5px; letter-spacing: .02em; }
.learning-brand-symbol { display: grid; grid-template-columns: repeat(2,13px); gap: 3px; transform: rotate(-8deg); flex-shrink: 0; }
.learning-brand-symbol i { width: 13px; height: 13px; border-radius: 4px; background: var(--learn-primary); }
.learning-brand-symbol i:nth-child(2) { background: #8ea3f6; border-radius: 7px 7px 3px 3px; }
.learning-brand-symbol i:nth-child(3) { background: #edac94; border-radius: 3px 3px 7px 7px; }
.learning-brand-symbol i:nth-child(4) { background: #6da99c; }
.learning-sidebar-course { display: flex; align-items: center; gap: 9px; padding: 14px 10px; border: 1px solid var(--learn-border); border-radius: 12px; margin: 30px 0 28px; font-weight: 600; font-size: 13px; line-height: 1.4; }
.learning-sidebar-course small { display: block; color: var(--learn-muted); font-size: 11px; font-weight: 400; margin-top: 3px; }
.learning-course-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--learn-teal); box-shadow: 0 0 0 5px #e9f4ef; margin: 0 4px; flex-shrink: 0; }
.learning-nav-label { color: #757286; font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; padding: 0 12px; margin: 0 0 10px; }
.learning-nav-label-account { margin-top: 25px; }
.learning-navigation ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.learning-navigation li { padding: 0; margin: 0; list-style: none; }
.learning-navigation a { display: flex; align-items: center; gap: 12px; min-height: 45px; padding: 11px 13px; border-radius: 10px; font-size: 14px; font-weight: 500; color: #68667b; text-decoration: none; transition: background .18s,color .18s; }
.learning-navigation a > svg { color: #797f9b; flex-shrink: 0; stroke-width: 1.65; }
.learning-navigation a:hover { color: var(--learn-primary); background: #f5f7ff; }
.learning-navigation a[aria-current="page"] { background: var(--learn-lavender); color: #375ac9; font-weight: 700; }
.learning-navigation a[aria-current="page"] > svg { color: #476ee6; }
.learning-active-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-left: auto; }
.learning-sidebar-bottom { margin-top: auto; padding-top: 32px; }
.learning-study-note { position: relative; padding: 18px 14px 15px; background: #f8f4ef; border-radius: 14px; overflow: hidden; }
.learning-note-visual { display: inline-flex; align-items: center; justify-content: center; position: relative; width: 42px; height: 42px; color: #b96750; margin-bottom: 10px; }
.learning-note-visual::before { content: ''; width: 38px; height: 38px; position: absolute; background: #f1dfd4; border-radius: 50%; left: -5px; bottom: -1px; }
.learning-note-visual > svg { position: relative; transform: rotate(-9deg); }
.learning-note-visual > span { position: absolute; width: 6px; height: 6px; border-radius: 2px; background: #d09b53; right: -7px; top: 2px; transform: rotate(18deg); }
.learning-study-note p { color: #776456; font-size: 12px; line-height: 1.65; }
.learning-study-note strong { color: #5e4f45; font-weight: 600; }
.learning-study-note a { display: inline-flex; align-items: center; justify-content: space-between; gap: 6px; color: #754e36; font-weight: 600; font-size: 11px; min-height: 44px; width: 100%; text-decoration: none; margin-top: 3px; }
.learning-study-note a:hover { text-decoration: underline; }
.learning-account-strip { display: flex; align-items: center; gap: 3px; border-top: 1px solid var(--learn-border); padding-top: 16px; margin-top: 24px; }
.learning-sidebar-account { display: flex; align-items: center; gap: 8px; text-decoration: none; min-width: 0; flex: 1; color: var(--learn-ink); }
.learning-sidebar-account-copy { min-width: 0; }
.learning-sidebar-account-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }
.learning-sidebar-account-copy small { display: block; color: var(--learn-muted); font-size: 11px; line-height: 1.5; margin-top: 2px; }
.learning-account-strip form { display: flex; margin: 0; }
.learning-icon-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: #777188; cursor: pointer; font: inherit; }
.learning-icon-button:hover { color: var(--learn-primary); background: var(--learn-lavender); }
.learning-logout { width: 44px; color: #8b7a8d; }
.learning-menu-close, .learning-menu-toggle { display: none; }
.learning-topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; padding: 20px 36px; margin-left: var(--learn-sidebar-width); background: rgba(255,255,255,.84); border-bottom: 1px solid var(--learn-border); font-family: var(--learn-font); }
.learning-topbar-location { display: flex; align-items: center; gap: 8px; }
.learning-breadcrumb { display: flex; align-items: center; gap: 11px; font-size: 12px; white-space: nowrap; color: #636783; }
.learning-breadcrumb > span[aria-hidden] { color: #c1c2d8; }
.learning-breadcrumb strong { color: #484c66; font-weight: 500; }
.learning-search { display: flex; align-items: center; position: relative; max-width: 330px; min-width: 160px; width: 35%; min-height: 43px; border: 1px solid #e9e9f4; border-radius: 11px; background: #f7f7fb; }
.learning-search:focus-within { border-color: #9aacf4; box-shadow: 0 0 0 3px #e8ebff; }
.learning-search-icon { display: flex; align-items: center; justify-content: center; color: #82849d; width: 40px; flex-shrink: 0; }
.learning-search input { display: block; min-width: 0; width: 100%; height: 42px; padding: 0 10px 0 0; background: transparent; border: 0; outline: 0; box-shadow: none; font-family: inherit; font-size: 14px; color: var(--learn-ink); }
.learning-search input::placeholder { color: #756e84; }
.learning-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.learning-search .learning-search-clear { width: 44px; height: 44px; margin-right: 3px; }
.learning-search .learning-search-clear[hidden] { display: none; }
.learning-search-help { position: absolute; top: calc(100% + 4px); left: 12px; color: #575b7e; font-size: 11px; line-height: 1.3; white-space: nowrap; }
.learning-profile { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--learn-ink); min-width: 44px; min-height: 44px; }
.learning-profile-copy { min-width: 0; text-align: right; }
.learning-profile-copy strong { display: block; max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }
.learning-profile-copy small { display: block; font-size: 11px; color: var(--learn-muted); margin-top: 3px; }
.learning-avatar { display: inline-flex; align-items: center; justify-content: center; width: 39px; height: 39px; border-radius: 13px; background: #f2d8c8; border: 3px solid #fff; box-shadow: 0 0 0 1px #f1e8e3; color: #7e4d34; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.learning-avatar-small { width: 33px; height: 33px; border: 0; border-radius: 11px; font-size: 12px; box-shadow: none; }
.learning-sidebar-overlay { position: fixed; z-index: 1250; inset: 0; background: rgba(22, 26, 50,.38); border: 0; cursor: pointer; backdrop-filter: blur(3px); }
.learning-sidebar-overlay[hidden] { display: none; }
.pead-learning-layout :is(a,button,input):focus-visible { outline: 3px solid #6782ea; outline-offset: 3px; }
.pead-learning-layout .learning-search input:focus-visible { outline: 0; }
@media (max-width: 1099px) {
  .pead-learning-layout .learning-dashboard, .pead-learning-layout > .flash-container, .learning-topbar { margin-left: 0; }
  .learning-sidebar { z-index: 1300; width: min(290px, calc(100vw - 44px)); transform: translateX(-105%); transition: transform .22s ease; box-shadow: 15px 0 50px rgba(21, 26, 58,.12); padding-top: 24px; visibility: hidden; }
  .learning-drawer-open .learning-sidebar { transform: translateX(0); visibility: visible; }
  .learning-drawer-open { overflow: hidden; }
  .learning-menu-close, .learning-menu-toggle { display: inline-flex; }
  .learning-menu-close { width: 44px; }
  .learning-topbar { padding: 16px 28px; min-height: 80px; gap: 16px; }
  .learning-search { width: 40%; max-width: 360px; }
  .learning-skip-link { left: 16px; }
}
@media (max-width: 700px) {
  .learning-topbar { padding: 12px 20px; flex-wrap: wrap; gap: 10px; }
  .learning-topbar-location { flex: 1; }
  .learning-breadcrumb { font-size: 11px; gap: 8px; }
  .learning-profile-copy { display: none; }
  .learning-profile { min-height: 44px; padding-left: 6px; }
  .learning-search { order: 3; width: 100%; max-width: none; }
  .learning-search input { font-size: 14px; }
}
@media (max-width: 380px) { .learning-topbar { padding: 10px 16px; } }
@media (prefers-reduced-motion: reduce) { .learning-sidebar, .learning-navigation a { transition: none; } }
@media print { .learning-sidebar, .learning-topbar, .learning-sidebar-overlay, .learning-skip-link { display: none !important; } .pead-learning-layout .learning-dashboard { margin-left: 0; } }
