/* Quiet reading surfaces; colour remains in the illustrated activity and feedback. */
.app-shell .main-shell{background:#fff}.app-shell .app-content{background:linear-gradient(160deg,#fff 65%,#f6f9ff);min-height:calc(100vh - 125px)}.app-shell .app-topbar{background:#fff;border-bottom:1px solid #ecebf2}.app-shell .demo-banner{background:#f5f7fc;color:#43536d}.digital-course .dc-panel,.methods-course .mc-panel,.learning-compass .lc-panel{background:#fff;box-shadow:0 8px 32px #233d5a08}.dc-first-step{padding:16px 20px;margin:18px 0;border-radius:16px;background:#f0f8f4;border-left:4px solid #4d917e}.dc-first-step p{margin:7px 0 0;font-size:1.05em;line-height:1.65}.student-nav-group{border-top:1px solid #ebe7f1;margin-top:8px;padding-top:5px}.student-nav-group summary{padding:12px 10px;cursor:pointer;font-size:13px;font-weight:700;color:#504369;min-height:44px;line-height:20px}.student-nav-group summary:focus-visible{outline:3px solid #8064cb;outline-offset:2px;border-radius:8px}.student-nav-group[open] summary{color:#46327e}.student-nav-group .nav-item{margin-left:6px}.user-tools{flex-wrap:wrap}.app-topbar{height:auto;min-height:84px;padding-block:13px}.breadcrumbs{min-width:0}.user-info{max-width:180px}.user-info strong{overflow-wrap:anywhere}
@media(max-width:700px){.app-topbar{min-height:69px;padding-block:10px}.app-shell .app-content{background:#fff}.dc-first-step{padding:14px}.user-tools .academy-install-button{min-width:42px;min-height:42px}}

/* Readable navigation for the authenticated learning and teaching spaces. */
.app-shell .sidebar {
  background: linear-gradient(180deg, #f4f2ff 0, #fff 240px);
  padding-inline: 16px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.app-shell .sidebar > a,
.app-shell .sidebar .workspace-chip,
.app-shell .sidebar .side-nav,
.app-shell .sidebar .sidebar-bottom { flex-shrink: 0; }
.app-shell .sidebar .workspace-chip {
  margin-bottom: 24px;
  padding: 14px 12px;
  background: #eaf7f4;
  border-color: #b9ddd2;
  color: #315a53;
  font-size: max(12px, .75rem);
}
.app-shell .sidebar .workspace-chip > div { min-width: 0; overflow-wrap: anywhere; }
.app-shell .sidebar .workspace-chip strong { font-size: max(14px, .875rem); color: #23483f; }
.app-shell .sidebar .nav-label {
  margin: 0 10px 12px;
  font-size: max(12px, .75rem);
  line-height: 1.5;
  letter-spacing: .06em;
  color: #5c4b78;
}
.app-shell .sidebar .side-nav { min-width: 0; gap: 6px; }
.app-shell .sidebar .nav-item,
.app-shell .sidebar .logout {
  min-width: 0;
  min-height: 48px;
  padding: 11px 10px;
  gap: 10px;
  border: 2px solid transparent;
  border-radius: 13px;
  font-size: max(16px, 1rem);
  font-weight: 650;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  color: #453852;
}
.app-shell .sidebar .nav-item > svg,
.app-shell .sidebar .logout > svg,
.app-shell .sidebar .workspace-chip > svg { flex: 0 0 20px; width: 20px; height: 20px; }
.app-shell .sidebar .nav-item:hover,
.app-shell .sidebar .logout:hover { background: #f1edf9; color: #49316f; }
.app-shell .sidebar .nav-item.active,
.app-shell .sidebar .nav-item[aria-current="page"] {
  background: #e9e0ff;
  border-color: #8e6ac4;
  color: #422068;
  font-weight: 750;
  box-shadow: inset 4px 0 #7043aa;
}
.app-shell .sidebar .nav-count {
  flex: 0 0 auto;
  width: auto;
  min-width: 24px;
  height: 24px;
  padding-inline: 5px;
  font-size: max(12px, .75rem);
  color: #49316f;
}
.app-shell .sidebar .student-nav-group {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #ddd3ef;
  min-width: 0;
}
.app-shell .sidebar .student-nav-group summary {
  min-height: 48px;
  padding: 12px 10px;
  border-radius: 12px;
  font-size: max(16px, 1rem);
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
  color: #385675;
}
.app-shell .sidebar .student-nav-group summary:hover,
.app-shell .sidebar .student-nav-group[open] summary { background: #edf4fc; color: #284a70; }
.app-shell .sidebar .student-nav-group .nav-item { margin: 5px 0 0 6px; }
.app-shell .sidebar .sidebar-note { padding: 14px; background: #fff6df; border: 1px solid #ecdaab; }
.app-shell .sidebar .sidebar-note .eyebrow { font-size: max(12px, .75rem); color: #70551f; }
.app-shell .sidebar .sidebar-note p { font-size: max(14px, .875rem); color: #625439; line-height: 1.6; }
.app-shell .sidebar .logout { margin-top: 8px; }
.app-shell .sidebar :is(a, button, summary):focus-visible,
.app-shell .mobile-menu:focus-visible { outline: 3px solid #155b9b; outline-offset: 2px; }
.app-shell .mobile-menu { min-width: 48px; min-height: 48px; }

@media (min-width: 701px) {
  .app-shell { grid-template-columns: clamp(228px, 19vw, 280px) minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .app-shell .sidebar {
    width: min(320px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    height: 100svh;
    height: 100dvh;
    padding: 22px 14px max(24px, env(safe-area-inset-bottom));
    overscroll-behavior-y: contain;
  }
}
.app-shell[data-reduced-motion="true"] .sidebar,
:root[data-reduced-motion="true"] .app-shell .sidebar,
:root[data-support-motion="reduced"] .app-shell .sidebar,
:root[data-study-motion="reduced"] .app-shell .sidebar { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .app-shell .sidebar { transition: none; }
}
@media (forced-colors: active) {
  .app-shell .sidebar,
  .app-shell .sidebar :is(.workspace-chip, .sidebar-note, .nav-item, .logout, summary) { background: Canvas; color: CanvasText; }
  .app-shell .sidebar .nav-item.active,
  .app-shell .sidebar .nav-item[aria-current="page"] { border-color: Highlight; box-shadow: none; }
  .app-shell .sidebar :is(a, button, summary):focus-visible,
  .app-shell .mobile-menu:focus-visible { outline-color: Highlight; }
}
