.app-page {
  background: var(--canvas);
}
.app-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 6px;
  color: #586158;
  font-size: 13px;
  text-decoration: none;
}
.app-nav a:hover {
  background: #edf0ec;
}
.app-nav a span {
  width: 18px;
  text-align: center;
  font-size: 18px;
  color: var(--muted);
}
.sidebar-footer button {
  display: block;
  margin-top: 12px;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: 11px;
}
.shopping-add {
  margin-top: 20px;
}
.shopping-add textarea {
  width: 100%;
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: var(--paper);
}
.shopping-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}
.shopping-dialog {
  width: min(480px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 28px;
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}
.shopping-dialog::backdrop {
  background: #17352266;
}
.shopping-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.shopping-dialog h2 {
  font-size: 26px;
}
.shopping-dialog > p,
.shopping-footnote {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
}
.shopping-dialog-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 25px;
  min-width: 44px;
  min-height: 44px;
}
.shopping-dialog-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.shopping-filters {
  display: flex;
  gap: clamp(8px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.shopping-filters button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}
.shopping-filters button[aria-selected="true"] {
  color: var(--brand);
  border-bottom-color: var(--brand);
}
.shopping-filters b {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--brand-soft);
  font-size: 10px;
  font-weight: 400;
}
.goal-branch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.goal-branch-button {
  min-height: 38px;
  max-width: 100%;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.goal-branch-button:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.goal-branch-button[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
  font-weight: 600;
}
.goal-branch-button[aria-pressed="true"]:hover {
  background: var(--brand-hover);
}
.shopping-item > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.shopping-item [data-personal-delete] {
  display: block;
  margin-top: 12px;
}
#shopping-undo:not(:empty) {
  margin-bottom: 20px;
}
.profile-layout .account-page {
  padding: 0;
}
@media (max-width: 800px) {
  .app-layout .sidebar-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 12px 0 0;
    margin-top: 12px;
  }
  .app-layout .sidebar-footer button {
    margin: 0;
  }
  .app-layout .sidebar-footer p:not([role="status"]) {
    display: none;
  }
  .app-nav a {
    min-width: 0;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 6px;
    gap: 6px;
    background: white;
    border: 1px solid var(--line);
    font-size: 10px;
    min-height: 44px;
  }
  .app-nav a span {
    font-size: 16px;
    width: 16px;
  }
}
.app-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 42px;
  padding-block: 38px 70px;
  min-height: 75vh;
}
.app-sidebar {
  min-width: 0;
  position: sticky;
  top: 108px;
  align-self: start;
}
.sidebar-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--muted);
  padding: 0 14px;
  margin-bottom: 16px;
}
.app-nav {
  display: grid;
  gap: 5px;
}
.app-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #586158;
  font-size: 13px;
  text-align: left;
}
.app-nav button span {
  width: 18px;
  text-align: center;
  font-size: 18px;
  color: var(--muted);
}
.app-nav button:hover {
  background: #edf0ec;
}
.app-nav button[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}
.app-nav button[aria-current="page"] span {
  color: var(--brand);
}
.sidebar-footer {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding: 22px 14px;
}
.sidebar-footer a {
  font-size: 11px;
  text-decoration: none;
}
.sidebar-footer p {
  margin-top: 25px;
  font-size: 11px;
  color: #929992;
  line-height: 1.9;
}
.app-main {
  min-width: 0;
}
.app-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  margin-bottom: 28px;
}
.app-heading h1 {
  font-size: 36px;
  font-weight: 400;
}
.app-heading p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  max-width: 620px;
}
.access-label {
  white-space: nowrap;
  margin-top: 6px;
}
.welcome-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: #edf3ec;
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 34px;
}
.welcome-panel > div {
  padding: 30px;
}
.welcome-panel h2 {
  font-size: 30px;
}
.welcome-panel p {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 22px;
}
.welcome-panel img {
  width: 100%;
  height: 100%;
  min-height: 245px;
  object-fit: cover;
}
.app-section {
  margin-top: 35px;
}
.app-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.app-section-head h2 {
  font-size: 25px;
  font-weight: 400;
}
.app-section-head a {
  font-size: 11px;
}
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.path-card {
  display: block;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition:
    border 0.15s,
    transform 0.15s;
}
.path-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}
.path-card img {
  width: 100%;
  height: 155px;
  object-fit: cover;
}
.path-card > div {
  padding: 19px;
}
.path-card .eyebrow {
  font-size: 9px;
  margin-bottom: 10px;
  letter-spacing: 1.2px;
}
.path-card h3 {
  font-size: 22px;
}
.path-card p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 11px;
  line-height: 1.8;
}
.path-card .path-arrow {
  display: block;
  margin-top: 18px;
  color: var(--brand);
  font-size: 17px;
}
.full-route {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  text-decoration: none;
  color: var(--ink);
  gap: 20px;
}
.full-route h3 {
  font-size: 21px;
}
.full-route p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.full-route > span {
  font-size: 22px;
  color: var(--brand);
}
.continue-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 25px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  align-items: center;
}
.continue-card img {
  width: 140px;
  height: 120px;
  object-fit: cover;
  border-radius: 5px;
}
.continue-card h3 {
  font-size: 23px;
  margin: 7px 0 16px;
}
.progress-line {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 11px;
  margin-top: 24px;
}
.progress-line progress {
  appearance: none;
  flex: 1;
  height: 5px;
  border: 0;
  max-width: 280px;
  background: #e3e8e3;
  border-radius: 10px;
  overflow: hidden;
}
.progress-line progress::-webkit-progress-bar {
  background: #e3e8e3;
}
.progress-line progress::-webkit-progress-value {
  background: var(--brand);
  border-radius: 10px;
}
.library-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  margin-bottom: 22px;
}
.single-search {
  grid-template-columns: minmax(0, 1fr);
}
.catalog-back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 12px;
}
.collection-note {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
  max-width: 660px;
}
#tasks {
  scroll-margin-top: 100px;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.course-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overflow: hidden;
}
.course-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--ink);
  text-decoration: none;
}
.course-card:hover {
  border-color: var(--brand);
}
.course-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.course-card > a > div {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.course-card .eyebrow {
  font-size: 10px;
  margin-bottom: 12px;
}
.course-card h2 {
  font-size: 27px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.course-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.course-card-progress {
  margin-top: 16px;
}
.course-card-action {
  margin-top: auto;
  padding-top: 20px;
  color: var(--brand);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.course-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: var(--brand-soft);
  border: 1px solid #d6e6d7;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 26px;
}
.course-summary > div {
  min-width: 0;
  flex: 1;
}
.course-summary p {
  font-size: 13px;
}
.course-summary .btn {
  flex-shrink: 0;
}
.course-progress {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
}
.course-progress progress {
  display: block;
  width: 100%;
  max-width: 300px;
  height: 6px;
  margin-top: 10px;
  accent-color: var(--brand);
}
.program-heading {
  font-size: 25px;
  font-weight: 400;
  margin: 28px 0 20px;
}
.course-module {
  margin-top: 28px;
}
.course-module h3 {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 16px;
}
.course-lessons {
  display: grid;
  gap: 10px;
}
.course-lesson {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 32px;
  align-items: start;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
}
.course-lesson > div {
  min-width: 0;
}
.lesson-number {
  color: var(--brand);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.6;
}
.course-lesson .lesson-title {
  display: inline-block;
  margin-top: 5px;
  font-size: 22px;
}
.course-lesson p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
  line-height: 1.8;
}
.lesson-card p.course-label {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 10px;
}
.course-lesson.is-complete {
  border-left: 3px solid var(--brand);
}
.search-field {
  position: relative;
}
.search-field input,
.library-tools select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  background: white;
  color: var(--ink);
}
.search-field input {
  padding-left: 40px;
}
.search-field span {
  position: absolute;
  left: 15px;
  top: 11px;
  color: var(--muted);
  font-size: 18px;
}
.catalog-meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 15px;
}
.lesson-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.lesson-card {
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 34px;
  gap: 20px;
  align-items: center;
}
.lesson-thumbnail {
  width: 100px;
  height: 95px;
  object-fit: cover;
  border-radius: 5px;
}
.lesson-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 7px;
}
.lesson-title {
  color: var(--ink);
  font-family: var(--heading-font);
  font-size: 20px;
  text-decoration: none;
  line-height: 1.35;
  display: block;
}
.lesson-title:hover {
  color: var(--brand);
}
.lesson-card p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.save-button {
  width: 34px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  align-self: start;
}
.save-button[aria-pressed="true"] {
  color: var(--brand);
}
.complete-dot {
  font-size: 11px;
  color: var(--brand);
}
.guest-note {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin-bottom: 26px;
}
.guest-note h3 {
  font-size: 21px;
}
.guest-note p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.guest-note .btn {
  white-space: nowrap;
}
.shopping-grid {
  display: grid;
  gap: 12px;
}
.shopping-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 15px;
}
.shopping-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  margin-top: 4px;
}
.shopping-item h3 {
  font-size: 20px;
}
.shopping-item p,
.shopping-item a {
  font-size: 11px;
  margin-top: 7px;
}
.shopping-item a {
  display: inline-block;
}
.shopping-item label {
  display: block;
  cursor: pointer;
}
.shopping-item.checked h3 {
  text-decoration: line-through;
  color: var(--muted);
}
.help-card {
  max-width: 650px;
  background: white;
  border: 1px solid var(--line);
  padding: 34px;
  border-radius: 8px;
}
.help-card h2 {
  font-size: 28px;
}
.help-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 16px 0;
}
.help-card ol {
  font-size: 13px;
  color: var(--muted);
  padding-left: 20px;
  margin-bottom: 24px;
}
.help-card li {
  margin: 10px 0;
}
.inline-message {
  font-size: 12px;
  color: var(--muted);
  margin-top: 15px;
}
@media (max-width: 1000px) {
  .app-layout {
    gap: 26px;
    grid-template-columns: 175px minmax(0, 1fr);
  }
  .path-grid {
    gap: 12px;
  }
  .path-card > div {
    padding: 15px;
  }
  .path-card h3 {
    font-size: 20px;
  }
  .path-card img {
    height: 130px;
  }
  .welcome-panel > div {
    padding: 26px;
  }
}
@media (max-width: 800px) {
  .app-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-block: 20px 45px;
  }
  .app-sidebar {
    position: static;
  }
  .sidebar-label,
  .sidebar-footer {
    display: none;
  }
  .app-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .app-nav button {
    min-width: 0;
    flex-wrap: wrap;
    background: white;
    border: 1px solid var(--line);
    font-size: 10px;
    justify-content: center;
    padding: 10px 6px;
    gap: 6px;
    min-height: 44px;
  }
  .app-nav button span {
    font-size: 16px;
    width: 16px;
  }
  .app-heading {
    display: block;
    margin-bottom: 24px;
  }
  .app-heading h1 {
    font-size: 30px;
  }
  .access-label {
    display: inline-flex;
    margin-top: 14px;
  }
  .path-grid {
    grid-template-columns: 1fr;
  }
  .path-card img {
    height: auto;
    min-height: 0;
    max-height: 280px;
    aspect-ratio: 16 / 10;
  }
  .path-card > div {
    padding: 19px;
  }
  .path-card h3 {
    font-size: 23px;
  }
  .path-card p {
    margin-top: 8px;
  }
  .path-card .path-arrow {
    margin-top: 12px;
  }
  .welcome-panel {
    grid-template-columns: 1fr;
    margin-bottom: 28px;
  }
  .welcome-panel > div {
    padding: 25px;
  }
  .welcome-panel h2 {
    font-size: 29px;
  }
  .welcome-panel img {
    height: 150px;
    min-height: 0;
  }
  .app-section-head h2 {
    font-size: 24px;
  }
  .app-section-head a {
    font-size: 10px;
  }
  .continue-card {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 16px;
    padding: 15px;
  }
  .continue-card img {
    width: 90px;
    height: 120px;
  }
  .continue-card h3 {
    font-size: 20px;
  }
  .progress-line {
    font-size: 10px;
    gap: 10px;
  }
  .library-tools {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .library-tools input,
  .library-tools select {
    font-size: 16px;
  }
  .lesson-card {
    grid-template-columns: 68px minmax(0, 1fr) 26px;
    gap: 12px;
    padding: 14px;
  }
  .lesson-thumbnail {
    width: 68px;
    height: 90px;
  }
  .lesson-title {
    font-size: 18px;
  }
  .lesson-meta {
    font-size: 9px;
    gap: 5px;
  }
  .lesson-card p {
    font-size: 10px;
  }
  .save-button {
    width: 26px;
    height: 34px;
    font-size: 23px;
  }
  .lesson-meta .badge {
    font-size: 9px;
    padding: 3px 6px;
  }
  .guest-note {
    display: block;
    padding: 20px;
  }
  .guest-note .btn {
    margin-top: 14px;
  }
  .help-card {
    padding: 25px;
  }
  .full-route {
    padding: 20px;
  }
  .full-route h3 {
    font-size: 22px;
  }
}
@media (max-width: 480px) {
  .app-nav button {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 5px;
    min-height: 64px;
  }
  .app-nav button span {
    line-height: 1;
    height: 18px;
  }
  .lesson-card {
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 12px;
    padding: 18px;
  }
  .lesson-card > a {
    grid-column: 1;
    grid-row: 1;
  }
  .lesson-card > div {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
  }
  .lesson-card > .save-button {
    grid-column: 2;
    grid-row: 1;
    width: 36px;
    height: 40px;
  }
  .lesson-thumbnail {
    width: 100px;
    height: 72px;
  }
  .lesson-title {
    font-size: 20px;
    overflow-wrap: anywhere;
  }
  .lesson-meta {
    font-size: 10px;
  }
  .lesson-card p {
    font-size: 12px;
  }
  .path-card > div {
    padding: 18px;
    min-width: 0;
  }
  .path-card h3 {
    font-size: 21px;
  }
  .app-section-head {
    flex-wrap: wrap;
    gap: 12px;
  }
  .app-section-head .btn {
    flex-shrink: 0;
  }
}
@media (max-width: 800px) {
  .course-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .course-card img {
    height: 175px;
  }
  .course-summary {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 18px;
  }
  .course-summary .btn {
    align-self: flex-start;
  }
  .course-summary .course-progress progress {
    max-width: none;
  }
}
@media (max-width: 480px) {
  .course-card > a > div {
    padding: 20px;
  }
  .course-card h2 {
    font-size: 26px;
  }
  .course-lesson {
    grid-template-columns: 26px minmax(0, 1fr) 28px;
    padding: 16px 12px;
    gap: 10px;
  }
  .course-lesson .lesson-title {
    font-size: 20px;
    overflow-wrap: anywhere;
  }
  .course-lesson p {
    font-size: 12px;
  }
  .course-lesson .save-button {
    width: 28px;
    height: 36px;
  }
  .lesson-number {
    font-size: 18px;
  }
}
