.course-overview {
  padding-top: 26px;
  display: grid;
  gap: 12px;
}

.course-line {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 18px;
}

.course-line .course-info {
  flex: 1;
}

.course-line small {
  display: block;
  margin-top: 7px;
}

.course-overview {
  padding-top: 27px;
  display: block;
  max-width: 980px;
}

.course-directory-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.course-directory-heading small {
  font-size: 11px;
}

.course-table {
  border: 1px solid #e8e8e8;
  border-radius: 17px;
  overflow: hidden;
  background: var(--color-surface);
}

.course-table-head,
.course-line {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(170px, 1fr) 108px;
  align-items: center;
  column-gap: 25px;
}

.course-table-head {
  padding: 12px 20px;
  background: #fafafa;
  border-bottom: 1px solid #ececec;
  color: #858585;
  font-size: 11px;
}

.course-table-head span:last-child {
  text-align: right;
}

.course-line {
  padding: 19px 20px;
  min-height: 91px;
  margin: 0;
  border-bottom: 1px solid #efefef;
  transition: background var(--motion-press);
}

.course-line:last-child {
  border-bottom: 0;
}

.course-line:hover {
  background: #fcfcfc;
}

.course-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.course-identity h3 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.course-line small {
  font-size: 11px;
  margin-top: 5px;
  color: #858585;
  line-height: 1.4;
}

.course-next {
  min-width: 0;
  font-size: 12px;
  line-height: 1.5;
}

.course-next small {
  display: block;
}

.course-next .mobile-label {
  display: none;
}

.course-line > .btn {
  justify-self: end;
  min-width: 98px;
  height: 28px;
  font-size: 11px;
}

.course-emoji-trigger {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  border: 1px solid transparent;
  background: var(--color-surface-soft);
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 23px;
  line-height: 1;
}

.course-emoji-trigger:hover {
  background: var(--color-line);
  border-color: #ddd;
  box-shadow: 0 1px 2px #00000009;
}

.course-emoji-trigger:active {
  background: #e4e4e4;
}

.course-emoji-note {
  font-size: 11px;
  color: #8a8a8a;
  margin: 13px 2px 0;
}

#emoji-picker {
  width: min(306px, calc(100% - 32px));
  border-radius: 17px;
}

#emoji-picker .dialog-header {
  padding: 12px 16px;
  color: #555;
  font-size: 12px;
}

#emoji-picker .dialog-header .btn {
  height: 25px;
  font-size: 11px;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  padding: 15px;
}

.emoji-option {
  height: 39px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: white;
  font-size: 23px;
  line-height: 1;
}

.emoji-option:hover {
  background: #f3f3f3;
}

.emoji-option[aria-pressed="true"] {
  background: #eaf4ff;
  border-color: #bad9f9;
}

@media (max-width: 1050px) {
  .course-table-head,
  .course-line {
    grid-template-columns: minmax(145px, 1fr) minmax(120px, 1fr) 96px;
    column-gap: 16px;
  }
  .course-line {
    padding: 18px 16px;
  }
  .course-table-head {
    padding: 12px 16px;
  }
  .course-identity {
    gap: 10px;
  }
  .course-identity h3 {
    font-size: 12px;
  }
  .course-line > .btn {
    min-width: 92px;
  }
}

@media (max-width: 760px) {
  .course-table-head {
    display: none;
  }
  .course-line {
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 10px 12px;
    padding: 17px 15px;
  }
  .course-identity {
    grid-column: 1;
    grid-row: 1;
  }
  .course-next {
    grid-column: 1;
    grid-row: 2;
    padding-left: 49px;
    font-size: 11px;
  }
  .course-line > .btn {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .course-next .mobile-label {
    display: block;
    font-size: 10px;
    color: #999;
    margin-bottom: 3px;
  }
  .course-next small {
    font-size: 10px;
  }
  .course-identity h3 {
    font-size: 12px;
  }
  .course-identity .course-emoji-trigger {
    width: 35px;
    height: 35px;
    flex-basis: 35px;
    font-size: 21px;
  }
  .course-identity small {
    font-size: 10px;
  }
  .course-emoji-note {
    line-height: 1.6;
  }
}

.course-page .week,
.course-page .month-head {
  display: none;
}

.course-page .workspace {
  padding-top: 27px;
}

.course-page #topics-heading {
  font-size: 14px;
}

@media (max-width: 900px) {
  #course-context,
  #today-context {
    grid-column: 1;
  }
  #course-context {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
  }
}

@media (max-width: 640px) {
  #today-context,
  #course-context {
    display: none;
  }
}

.course-page .study-main {
  padding-top: 17px;
}

#course-editor {
  width: min(420px, calc(100% - 24px));
}

#course-editor .dialog-body {
  padding: 8px 24px 24px;
}

@media (max-width: 640px) {
  #course-editor input,
  #course-editor select {
    font-size: 16px;
  }
}

/* Context aligns beside the page introduction with room at the outer edge. */
@media (min-width: 901px) {
  .context-layout #today-context,
  .context-layout #course-context {
    grid-column: 2;
    grid-row: 1 / span 2;
    padding-top: 30px;
  }
  .context-layout:not(.course-page) .content {
    grid-template-columns: minmax(0, 1fr) 280px;
    padding-right: 64px;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .context-layout:not(.course-page) .content {
    grid-template-columns: minmax(0, 1fr) 235px;
    padding-right: 32px;
    column-gap: 28px;
  }
}

@media (min-width: 1101px) {
  .context-layout:not(.course-page) .hero-copy {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 25px;
    align-items: start;
  }
  .context-layout:not(.course-page) .hero-copy h1,
  .context-layout:not(.course-page) .hero-copy > .date,
  .context-layout:not(.course-page) .hero-copy > #page-description {
    grid-column: 1;
  }
  .context-layout:not(.course-page) .welcome-details {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin-top: 8px;
    flex-direction: column;
    gap: 16px;
    min-width: 165px;
  }
  .context-layout:not(.course-page) .welcome-details > div {
    border-left: 0;
    padding-left: 0;
  }
  .context-layout:not(.course-page) .hero-copy > #page-description {
    margin-top: 11px;
  }
}

@media (min-width: 1101px) {
  .context-layout:not(.course-page) .hero-copy {
    display: block;
  }
  .context-layout:not(.course-page) .welcome-details {
    display: flex;
    flex-direction: row;
    gap: 8px;
    min-width: 0;
    margin-top: 16px;
  }
}

#course-setup {
  padding: 24px 48px 60px;
  min-height: 750px;
}

.setup-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #999;
  font-size: 11px;
  margin-bottom: 30px;
}

.setup-layout {
  display: grid;
  grid-template-columns: minmax(0, 620px) 220px;
  gap: 65px;
  max-width: 960px;
  margin: auto;
}

.setup-heading h1 {
  font-size: 25px;
  margin-bottom: 8px;
}

.setup-heading p {
  color: #888;
  font-size: 12px;
}

.setup-steps {
  display: flex;
  gap: 0;
  margin: 27px 0 20px;
}

.setup-step {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  color: #aaa;
  font-size: 11px;
}

.setup-step b {
  display: grid;
  place-items: center;
  border: 1px solid #e5e5e5;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  font-size: 10px;
}

.setup-step.active {
  color: #333;
  font-weight: 600;
}

.setup-step.active b {
  background: var(--color-action);
  border-color: var(--color-action);
  color: var(--color-surface);
}

.setup-step.done b {
  background: #ecf7bf;
  border-color: #ecf7bf;
  color: #405214;
}

.setup-card {
  border: 1px solid #e7e7e7;
  border-radius: 20px;
  padding: 26px;
  background: white;
  box-shadow: 0 3px 12px #00000004;
}

.setup-card h2 {
  font-size: 16px;
  margin: 0 0 6px;
}

.setup-card .support {
  margin-top: 0;
  margin-bottom: 23px;
  line-height: 1.6;
}

.setup-card .setting-field {
  font-size: 12px;
}

.setup-card input[type="text"] {
  width: 100%;
  font-size: 13px;
}

.setup-emojis {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
  margin-top: 9px;
}

.setup-emoji {
  height: 37px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #fafafa;
  font-size: 21px;
  cursor: pointer;
}

.setup-emoji[aria-pressed="true"] {
  border-color: #333;
  background: #f0f0f0;
}

.setup-emoji:focus-visible {
  outline: 2px solid #86baff;
}

.setup-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

.setup-preview {
  padding-top: 70px;
}

.setup-preview-emoji {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: #f6f6f6;
  border-radius: 14px;
  font-size: 31px;
  margin-bottom: 17px;
}

.setup-preview h2 {
  font-size: 15px;
  overflow-wrap: anywhere;
  margin-bottom: 6px;
}

.setup-preview p {
  font-size: 11px;
  color: #999;
  line-height: 1.7;
}

.setup-preview .detail-line {
  margin-top: 14px;
}

.setup-drop {
  border: 1px dashed #cfcfcf;
  border-radius: 14px;
  padding: 28px 15px;
  text-align: center;
  background: #fafafa;
  cursor: pointer;
  position: relative;
}

.setup-drop.dragging {
  background: #f0f6ff;
  border-color: #77a4d5;
}

.setup-drop .detail-icon {
  width: 25px;
  height: 25px;
  margin: 0 auto 12px;
}

.setup-drop strong {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
}

.setup-drop small {
  font-size: 10px;
  color: #999;
}

.setup-drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.setup-file {
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #eee;
  padding: 13px 0;
  font-size: 11px;
}

.setup-file > span {
  flex: 1;
  overflow-wrap: anywhere;
}

.setup-file small {
  display: block;
  color: #999;
  margin-top: 3px;
}

.setup-file button {
  background: none;
  border: 0;
  color: #999;
  cursor: pointer;
  padding: 6px;
}

.setup-error {
  font-size: 11px;
  color: #b23;
  margin-top: 12px;
}

.setup-plan-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.setup-plan-fields .setting-field:last-child {
  grid-column: 1/-1;
}

.course-directory-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

@media (max-width: 900px) {
  .setup-layout {
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 620px;
  }
  .setup-preview {
    display: none;
  }
}

@media (max-width: 640px) {
  #course-setup {
    padding: 18px 20px 35px;
    min-height: 0;
  }
  .setup-top {
    margin-bottom: 22px;
  }
  .setup-heading h1 {
    font-size: 23px;
  }
  .setup-card {
    padding: 20px;
    border-radius: 17px;
  }
  .setup-emojis {
    grid-template-columns: repeat(6, 1fr);
  }
  .setup-plan-fields {
    grid-template-columns: 1fr;
  }
  .setup-card input,
  .setup-card select {
    font-size: 16px;
  }
  .setup-steps {
    margin-top: 23px;
  }
  .course-directory-actions {
    gap: 8px;
  }
  .course-directory-actions small {
    display: none;
  }
}

.setup-step b .detail-icon {
  width: 11px;
  height: 11px;
  color: inherit;
}

.setup-card .setting-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  border-bottom: 0;
  padding: 0;
  margin: 20px 0 0;
}

.setup-card .support + .setting-field {
  margin-top: 0;
}

.setup-card .setting-field input,
.setup-card .setting-field select {
  min-width: 0;
  max-width: none;
}

.setup-card .setup-emojis {
  margin-top: 0;
}

.setup-footer #setup-next {
  margin-left: auto;
}

.setup-preview {
  padding-top: 100px;
}

.course-line .course-emoji-trigger {
  text-decoration: none;
  color: inherit;
}

.course-line .btn {
  justify-self: end;
}

@scope (body[data-design]) {
  .subtle-link,
  .back-link,
  .course-section-return {
    text-decoration: none;
    color: var(--color-muted);
  }
  .setup-step {
    padding: 0;
    background: none;
    border: 0;
    text-align: left;
  }
  .setup-card {
    margin-top: 20px;
    line-height: 1.6;
  }
  .setup-card .field:first-child {
    margin-top: 0;
  }
  .setup-card h2 {
    font-size: 16px;
  }
  .setup-card > .support {
    margin: 8px 0 18px;
  }
  .course-form-details {
    display: grid;
    gap: 4px;
  }
  .course-form-heading {
    margin: 24px 0;
  }
  .course-setup-actions {
    margin-top: 20px;
  }
  .course-setup-actions input[type="submit"] {
    margin-left: auto;
  }
  .course-emoji-picker {
    padding: 12px;
    border: 1px solid var(--color-line);
    border-radius: 14px;
    background: white;
    box-shadow: 0 6px 18px #0001;
  }
  .course-emoji-options {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
  }
  .course-emoji-options button {
    border: 0;
    background: var(--color-surface-soft);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    font-size: 21px;
  }
  .course-emoji-options button[aria-pressed="true"] {
    outline: 1px solid var(--color-text);
  }
  .course-page .course-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .course-page .course-title-row .detail-mark.course-overview-emoji {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    margin: 0;
    border: 1px solid #eee;
    border-radius: 12px;
    background: var(--color-surface-soft);
    font-size: 24px;
    cursor: pointer;
    flex: 0 0 auto;
  }
  .course-page .course-title-row h1 {
    margin: 0;
  }
  .course-context-files {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .course-context-files > li {
    padding: 8px 0;
  }
  .course-context-file {
    display: flex;
    align-items: baseline;
    gap: 12px;
    color: #646464;
    text-decoration: none;
  }
  .course-context-file-name {
    display: -webkit-box;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }
  .course-context-file-type {
    flex: 0 0 auto;
    font-size: 8px;
    font-weight: 400;
    color: #aaa;
  }
  .course-context-file:hover .course-context-file-name {
    color: #292929;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .course-context-file:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 4px;
    border-radius: 3px;
  }
  .course-context-file-status {
    display: block;
    margin-top: 3px;
    font-size: 9px;
    color: #999;
  }
  .course-context-materials .subtle-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 10px;
  }
  .course-page .hero {
    min-height: 0;
    padding: 8px 0 20px;
    border-bottom: 0;
  }
  .course-page .workspace {
    padding-top: 12px;
  }
  .course-page .study-main {
    margin-top: 0;
  }
  @media (min-width: 901px) {
    .course-page.context-layout .content {
      grid-template-rows: auto auto;
      row-gap: 12px;
    }
  }
  .course-page .course-emoji-picker {
    position: fixed;
    inset: auto;
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    margin: 0;
    padding: 12px;
  }
  /* Course overview panels use the same quiet, compact surfaces as the app shell. */
  .course-page .study-main {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    overflow: visible;
  }
  .course-study-plan {
    overflow: hidden;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    background: var(--color-surface);
    box-shadow: 0 2px 8px #00000005;
  }
  .course-study-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px 14px;
  }
  .course-section-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #929292;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.09em;
  }
  .course-study-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #777;
    font-size: 10px;
    white-space: nowrap;
  }
  .course-study-summary span + span {
    border-left: 1px solid #e7e7e7;
    padding-left: 8px;
  }
  .course-study-progress {
    padding: 0 20px 15px;
  }
  .course-study-progress-copy {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #828282;
    font-size: 10px;
    margin-bottom: 7px;
  }
  .course-study-progress-track {
    height: 4px;
    overflow: hidden;
    border-radius: 99px;
    background: #efefef;
  }
  .course-study-progress-track > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #b8d943;
    transition: width 180ms ease;
  }
  .course-study-plan .study-card {
    border: 0;
    border-top: 1px solid #eee;
    border-radius: 0;
    padding: 0 20px;
    box-shadow: none;
  }
  .course-study-plan .topic-row {
    gap: 13px;
    min-height: 74px;
    padding: 12px 0;
    border-color: #eee;
  }
  .course-study-plan .topic-number {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid #ececec;
    border-radius: 9px;
    background: #f7f7f7;
    color: #767676;
    font-size: 10px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }
  .course-study-plan .topic-copy h3 {
    margin: 0;
    color: #292929;
    font-size: 12px;
    font-weight: 550;
    line-height: 1.45;
  }
  .course-study-plan .topic-details {
    margin-top: 5px;
    color: #8b8b8b;
    font-size: 10px;
  }
  .course-study-plan .topic-details summary {
    width: max-content;
    max-width: 100%;
    text-underline-offset: 2px;
  }
  .course-study-plan .topic-time {
    min-width: 58px;
    color: #555;
    font-size: 10px;
  }
  .course-study-plan .topic-time small {
    margin-top: 3px;
    font-size: 9px;
  }
  .course-study-plan .topic-row form {
    margin-left: 4px;
  }
  .course-study-plan .topic-row .btn {
    height: 29px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    color: #454545;
    font-size: 10px;
  }
  .course-study-plan .topic-row .btn:hover {
    background: #f5f5f5;
  }
  .course-study-plan .topic-row:last-child {
    padding-bottom: 12px;
  }
  .course-page .study-main > .support {
    margin: 0;
    padding: 12px 2px 0;
    text-align: right;
    font-size: 10px;
  }
  .course-page .study-main > .support .subtle-link {
    margin-top: 0;
    color: #777;
  }
  @media (max-width: 760px) {
    .course-study-header {
      align-items: flex-start;
      flex-direction: column;
      gap: 9px;
    }
    .course-study-summary {
      white-space: normal;
    }
    .course-study-progress {
      padding-bottom: 13px;
    }
    .course-study-plan .study-card {
      padding-inline: 14px;
    }
    .course-study-plan .topic-row {
      gap: 9px;
      flex-wrap: nowrap;
    }
    .course-study-plan .topic-copy {
      min-width: 0;
    }
    .course-study-plan .topic-row form {
      margin-left: 0;
    }
    .course-study-plan .topic-row .btn {
      height: 31px;
      padding-inline: 8px;
    }
  }
  @media (max-width: 520px) {
    .course-study-header {
      padding: 15px 14px 12px;
    }
    .course-study-progress {
      padding-inline: 14px;
    }
    .course-study-plan .topic-number {
      flex-basis: 28px;
      width: 28px;
      height: 28px;
    }
    .course-study-plan .topic-time {
      min-width: 42px;
    }
    .course-study-plan .topic-row .btn {
      max-width: 76px;
      white-space: normal;
      line-height: 1.2;
    }
  }
  .course-meeting-providers {
    display: flex;
    gap: 12px;
    color: var(--color-muted);
    font-size: 11px;
  }
  .course-meeting-providers > span {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .course-meeting-providers svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
  .course-format-field,
  .study-days-picker,
  .study-time-budget {
    border: 0;
    padding: 0;
    margin: 18px 0;
  }
  .course-format-field legend,
  .study-days-picker legend,
  .study-time-budget legend {
    margin-bottom: 12px;
    font-size: 12px;
  }
  .course-format-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .course-format-option {
    position: relative;
    cursor: pointer;
  }
  .course-format-option > span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
  }
  .course-format-option small {
    display: block;
    margin-top: 3px;
    font-size: 10px;
  }
  .course-format-option strong {
    font-size: 12px;
    font-weight: 500;
  }
  .course-format-check {
    display: none;
  }
  .course-format-option:has(input:checked) > span {
    border-color: var(--color-text);
    background: var(--color-surface-soft);
  }
  .course-format-option input,
  .study-day-option input,
  .study-pace-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
  }
  .course-format-option:has(input:focus-visible) > span,
  .study-day-option:has(input:focus-visible) > span,
  .study-pace-option:has(input:focus-visible) > span {
    outline: 2px solid var(--color-focus);
    outline-offset: 3px;
  }
  .course-clock {
    display: none;
  }
  .course-time-entry > span {
    font-size: 11px;
    color: var(--color-muted);
  }
  @media (max-width: 640px) {
    .course-format-options {
      gap: 8px;
    }
    .course-format-option > span {
      padding: 10px;
      gap: 7px;
    }
  }
}

#course-editor {
  width: min(760px, calc(100% - 28px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border-color: #e5e5e5;
  border-radius: 18px;
}

#course-editor .dialog-header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--color-surface);
  padding: 14px 20px;
  color: #333;
}

#course-editor .dialog-header h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

#course-editor .dialog-header .icon-button {
  width: 30px;
  height: 30px;
  font-size: 20px;
  color: #666;
}

#course-editor .dialog-body {
  padding: 14px 20px 20px;
}

#course-editor .course-form-heading {
  display: none;
}

#course-editor .course-form-columns.setup-card {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#course-editor .course-form-schedule.setup-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  column-gap: 24px;
  margin: 15px 0 0;
  padding: 15px 0 0;
  border: 0;
  border-top: 1px solid #eee;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#course-editor .course-form-details {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 14px 18px;
}

#course-editor .course-name-field {
  grid-column: 1;
}

#course-editor .course-form-details > .field:nth-child(2) {
  grid-column: 2;
}

#course-editor .course-language-picker {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

#course-editor .course-language-picker legend {
  margin: 0 0 7px;
  padding: 0;
  font-size: 12px;
}

#course-editor .course-language-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

#course-editor .course-language-option {
  position: relative;
  cursor: pointer;
}

#course-editor .course-language-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

#course-editor .course-language-option span {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  font-size: 12px;
  transition:
  background 0.16s,
  border-color 0.16s;
}

#course-editor .course-language-option:has(input:checked) span {
  border-color: var(--color-text);
  background: var(--color-surface-soft);
}

#course-editor .course-language-option:has(input:focus-visible) span {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

#course-editor .course-time-entry input[type="text"] {
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #333;
  font: inherit;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

#course-editor .course-time-entry input[type="text"]:focus {
  outline: 0;
  box-shadow: none;
}

#course-editor .course-form-details .course-format-field,
#course-editor .course-form-details .course-meeting-field {
  grid-column: 1/-1;
}

#course-editor .course-form-details .course-format-field {
  display: block;
  margin: 0;
}

#course-editor .course-form-details .course-format-field > legend {
  float: none;
  width: auto;
  margin: 0 0 7px;
  padding: 0;
}

#course-editor .course-form-details .course-format-options {
  margin: 0;
}

#course-editor .course-form-details .course-meeting-settings {
  display: grid;
  grid-column: 1/-1;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

#course-editor
.course-form-details
.course-meeting-settings
.course-format-field {
  grid-column: 1;
  min-width: 0;
}

#course-editor
.course-form-details
.course-meeting-settings
.course-meeting-field {
  display: block;
  grid-column: 2;
  min-width: 0;
  margin: 0;
}

.course-meeting-field[aria-hidden="true"] {
  visibility: hidden;
}

@media (max-width: 640px) {
  #course-editor .course-form-details .course-meeting-settings {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  #course-editor
  .course-form-details
  .course-meeting-settings
  .course-meeting-field {
    grid-column: 1;
  }
}

.course-meeting-field .course-meeting-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.course-meeting-field .course-meeting-label label {
  margin: 0;
}

.course-meeting-field .course-meeting-label > span {
  font-size: 10px;
  color: #999;
  font-weight: 400;
}

#course-editor .course-meeting-field input[type="url"] {
  display: block;
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e2e5e8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px #00000003;
  font-size: 12px;
}

#course-editor .course-meeting-field input[type="url"]::placeholder {
  color: #a2a7ac;
  font-weight: 400;
}

#course-editor .course-meeting-field input[type="url"]:focus {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.course-meeting-field .course-meeting-providers {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
  color: #81868a;
  font-size: 10px;
  line-height: 1.4;
}

.course-meeting-field .course-meeting-providers > span {
  gap: 5px;
}

.course-meeting-field .course-meeting-providers svg {
  width: 14px;
  height: 14px;
}

.course-meeting-field .course-meeting-providers .course-meeting-supported {
  color: #a0a4a8;
  font-size: 9px;
}

#course-editor .course-form-schedule > h2 {
  grid-column: 1/-1;
}

#course-editor .course-class-days,
#course-editor .course-class-time {
  grid-column: 1;
}

#course-editor .course-form-schedule .course-class-time {
  grid-column: 2;
  margin-top: 0;
}

#course-editor .course-class-days {
  margin: 0;
}

#course-editor .course-class-days > legend {
  margin-bottom: 7px;
}

#course-editor .course-class-days > .field-note,
#course-editor .course-class-time .field-note {
  font-size: 10px;
  line-height: 1.4;
}

#course-editor .course-form-schedule h2 {
  font-size: 13px;
}

#course-editor .course-setup-actions {
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

#course-editor .course-setup-actions .btn {
  min-height: 34px;
}

#course-editor .course-format-option > span {
  min-height: 64px;
  padding: 10px;
}

#course-editor .course-class-time {
  margin-top: 0;
}

@media (max-width: 640px) {
  #course-editor {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
  }
  #course-editor .dialog-header {
    padding: 11px 15px;
  }
  #course-editor .dialog-body {
    padding: 10px 15px 15px;
  }
  #course-editor .course-form-details,
  #course-editor .course-form-schedule.setup-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  #course-editor .course-name-field,
  #course-editor .course-form-details > .field:nth-child(2),
  #course-editor .course-form-details .course-format-field,
  #course-editor .course-form-details .course-meeting-field,
  #course-editor .course-form-schedule > h2,
  #course-editor .course-class-days,
  #course-editor .course-form-schedule .course-class-time {
    grid-column: 1;
  }
  #course-editor .course-format-options {
    gap: 7px;
  }
  #course-editor .course-format-option > span {
    gap: 6px;
    padding: 8px;
  }
  #course-editor .course-format-option svg {
    width: 20px;
    height: 20px;
  }
}

@media (min-width: 901px) {
  .course-page #course-context {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    position: static;
    margin-top: 0;
    padding-top: 0;
  }
}

/* A focused next lesson, followed by connected checkpoints. */
.course-journey .journey-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 22px 16px;
}

.course-journey .journey-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.course-journey .journey-header p {
  margin: 7px 0 0;
  color: #777;
  font-size: 11px;
  line-height: 1.5;
}

.course-journey .journey-progress-count {
  flex-shrink: 0;
  color: #999;
  font-size: 15px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.course-journey .journey-progress-count strong {
  color: #333;
  font-size: 24px;
  font-weight: 600;
}

.course-journey .journey-progress-count > span {
  display: block;
  margin-top: 3px;
  font-size: 9px;
}

.course-journey .journey-progress {
  display: flex;
  gap: 4px;
  height: 5px;
  margin: 0 22px 24px;
  overflow: hidden;
  border-radius: 3px;
}

.course-journey .journey-progress > span {
  flex: 1;
  min-width: 0;
  border-radius: 2px;
  background: #ededed;
}

.course-journey .journey-progress > span.is-completed {
  background: var(--color-action);
}

.course-journey .journey-progress > span.is-next {
  background: #999;
}

.course-journey .journey-path {
  padding: 0 22px 8px;
}

.course-journey .journey-step {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 18px;
}

.course-journey .journey-step:before {
  content: "";
  position: absolute;
  top: 36px;
  bottom: -2px;
  left: 15px;
  width: 2px;
  background: var(--color-line);
}

.course-journey
.journey-step:not([hidden]):not(:has(~ .journey-step:not([hidden]))):before {
  display: none;
}

.course-journey .journey-checkpoint {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-top: 15px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: white;
  color: var(--color-muted);
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.course-journey .is-next > .journey-checkpoint {
  border-color: #bdbdbd;
  background: var(--color-surface);
  color: var(--color-text);
}

.course-journey .is-completed > .journey-checkpoint {
  border-color: #ddd;
  background: var(--color-surface-soft);
  color: var(--color-muted);
}

.course-journey .journey-lesson {
  min-width: 0;
  padding: 14px 0 16px;
  border-bottom: 1px solid #eee;
}

.course-journey .journey-step.is-next .journey-lesson {
  padding: 18px;
  border: 1px solid #e5e5e5;
  border-radius: 13px;
  background: var(--color-surface-soft);
}

.course-journey .journey-lesson-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--color-muted);
  font-size: 10px;
}

.course-journey .journey-next-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text);
  font-weight: 600;
}

.course-journey .journey-next-label:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-action);
}

.course-journey .journey-lesson-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.course-journey .journey-lesson-copy {
  min-width: 0;
  max-width: 70ch;
}

.course-journey .journey-lesson h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.course-journey .is-next .journey-lesson h3 {
  max-width: 55ch;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
}

.course-journey .journey-preview {
  margin: 8px 0 0;
  max-width: 65ch;
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.65;
}

.course-journey .journey-lesson-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--color-muted);
  font-size: 10px;
}

.course-journey .journey-lesson-meta > span + span {
  margin-left: 6px;
}

.course-journey .is-next .journey-lesson-meta {
  color: var(--color-muted);
}

.course-journey .journey-lesson-body > form {
  flex-shrink: 0;
}

.course-journey .journey-start {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
}

.course-journey .is-next .journey-start {
  min-height: 36px;
  background: var(--color-action);
  color: white;
  box-shadow: var(--shadow-button-primary);
}

.course-journey .is-next .journey-start:hover {
  background: var(--color-action-hover);
}

.course-journey .journey-lesson-details {
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 10px;
  line-height: 1.6;
}

.course-journey .journey-lesson-details > summary {
  width: fit-content;
  cursor: pointer;
}

.course-journey .journey-details-content {
  padding: 12px 0 0;
  color: #666;
  overflow-wrap: anywhere;
}

.course-journey .journey-details-content p {
  margin: 0 0 10px;
}

.course-journey .journey-details-content ul {
  padding-left: 18px;
  margin: 0 0 10px;
}

.course-journey .journey-details-content a {
  color: inherit;
  text-underline-offset: 3px;
}

.course-journey .journey-details-content form {
  display: inline-block;
  margin-left: 12px;
}

.course-journey .journey-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 22px;
  border-top: 1px solid #eee;
  color: #929292;
  font-size: 10px;
}

.course-journey .journey-toggle {
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-muted);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  text-underline-offset: 3px;
}

.course-journey .journey-toggle:hover {
  text-decoration: underline;
}

.course-journey :is(button, summary, a):focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
}

.course-journey {
  scroll-margin-top: 75px;
}

.course-class-time .course-time-control {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #e3e6e9;
  border-radius: 12px;
  background: #fafbfc;
  box-shadow: none;
}

.course-class-time .course-time-control:focus-within {
  border-color: #8cabbf;
  box-shadow: 0 0 0 3px #6689a014;
}

.course-class-time .course-clock {
  display: block;
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border: 1px solid #bac8d2;
  border-radius: 50%;
  background:
  repeating-conic-gradient(
  from -1deg,
  #acbbc6 0deg 2deg,
  transparent 2deg 30deg
  ),
  white;
  box-shadow: inset 0 0 0 3px white;
}

.course-class-time .course-clock:before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: white;
}

.course-class-time .course-clock:after {
  content: "";
  position: absolute;
  z-index: 2;
  top: calc(50% - 2.5px);
  left: calc(50% - 2.5px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #617d91;
}

.course-class-time .course-clock span {
  position: absolute;
  z-index: 1;
  bottom: 50%;
  left: calc(50% - 1px);
  width: 2px;
  border-radius: 2px;
  background: #617d91;
  transform-origin: 50% 100%;
  transition:
  transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
  opacity 160ms;
}

.course-class-time .course-clock-hour {
  height: 12px;
  transform: rotate(var(--hour-angle, 0deg));
}

.course-class-time .course-clock-minute {
  height: 17px;
  transform: rotate(var(--minute-angle, 0deg));
}

.course-class-time .course-clock.is-unset span {
  opacity: 0.25;
}

.course-class-time .course-time-entry {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.course-class-time .course-time-entry > span {
  font-size: 9px;
  color: #8a949d;
}

.course-class-time .course-time-stepper {
  display: grid;
  flex: 0 0 auto;
  gap: 2px;
}

.course-class-time .course-time-stepper button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #7c8b96;
  cursor: pointer;
}

.course-class-time .course-time-stepper button:hover {
  background: #eaf0f4;
  color: #405c70;
}

.course-class-time .course-time-stepper-down {
  transform: rotate(180deg);
}

.course-class-time .course-time-stepper button:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.course-class-time .course-timezone {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #929ba2;
}

@media (prefers-reduced-motion: reduce) {
  .course-class-time .course-clock span {
    transition: none;
  }
}

.courses-directory-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 24px;
}

.courses-directory-header > .hero-copy {
  width: auto;
  min-width: 0;
}

.courses-directory-header > .btn {
  flex-shrink: 0;
  margin-left: auto;
}

.courses-directory-header .welcome-details {
  margin-top: 16px;
}

@media (max-width: 640px) {
  .courses-directory-header {
    flex-wrap: wrap;
  }
}

.courses-directory > .course-overview {
  padding-top: 0;
  max-width: none;
  width: 100%;
}

.courses-directory .welcome-details {
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .course-journey .journey-header {
    padding: 18px 14px 14px;
    gap: 12px;
  }
  .course-journey .journey-header p {
    font-size: 10px;
  }
  .course-journey .journey-progress {
    margin: 0 14px 18px;
  }
  .course-journey .journey-path {
    padding-inline: 14px;
  }
  .course-journey .journey-step {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px;
  }
  .course-journey .journey-step:before {
    left: 12px;
  }
  .course-journey .journey-checkpoint {
    width: 26px;
    height: 26px;
    font-size: 9px;
  }
  .course-journey .journey-step.is-next .journey-lesson {
    padding: 14px;
  }
  .course-journey .journey-lesson-body {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .course-journey .is-next .journey-lesson h3 {
    font-size: 15px;
  }
  .course-journey .is-next .journey-lesson-body > form,
  .course-journey .is-next .journey-start {
    width: 100%;
  }
  .course-journey .journey-progress-count > span {
    max-width: 70px;
    font-size: 9px;
  }
  .course-journey .journey-footer {
    padding: 14px;
    font-size: 10px;
  }
}

.courses-directory .course-directory-heading {
  gap: 12px;
  flex-wrap: wrap;
}

/* Daily study */
/* First value, source checks, and the second-course decision share the app's visual language. */
@scope (body[data-design]) {
  .second-course-copy > p:not(.study-eyebrow) {
    max-width: 48ch;
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-muted);
  }
  .second-course-copy strong {
    color: var(--color-text);
    font-weight: 500;
  }
  .second-course-benefits {
    display: grid;
    gap: 24px;
    list-style: none;
    margin: 34px 0 0;
    padding: 0;
  }
  .second-course-benefits li {
    display: flex;
    align-items: start;
    gap: 14px;
  }
  .second-course-benefits svg {
    flex-shrink: 0;
    margin-top: 2px;
  }
  .second-course-benefits strong,
  .second-course-benefits small {
    display: block;
  }
  .second-course-benefits strong {
    font-size: 13px;
    margin-bottom: 5px;
  }
  .second-course-benefits small {
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.6;
  }
  .second-course-choice {
    padding: 28px;
    border: 1px solid #d5dfb5;
    border-radius: 18px;
    background: #f7faed;
  }
  .second-course-label {
    font-size: 12px;
    font-weight: 500;
  }
  .second-course-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 16px;
    font-size: 48px;
    font-weight: 500;
    letter-spacing: -2px;
    line-height: 1;
  }
  .second-course-price span {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: normal;
    color: var(--color-muted);
  }
  .second-course-choice > p:not(.second-course-price) {
    margin: 0 0 26px;
    font-size: 13px;
    line-height: 1.7;
  }
  .second-course-choice .btn {
    width: 100%;
    min-height: 44px;
    white-space: normal;
    text-align: center;
  }
  .second-course-choice > small {
    display: block;
    margin-top: 13px;
    font-size: 10px;
    line-height: 1.7;
    color: #606751;
  }
  .second-course-stay {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #d5dfb5;
  }
  .second-course-stay a {
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .second-course-stay p {
    margin: 8px 0 0;
    font-size: 11px;
    color: var(--color-muted);
  }
  @media (max-width: 700px) {
    .second-course-choice {
      padding: 24px;
    }
  }
}
