/* A single reading column shared by the chapter navigation, content and tools. */
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson {
  --hb-reading-width: 100%;
  --hb-lesson-pad: 0px;
  width: calc(100% - 48px) !important;
  max-width: 1040px !important;
  margin-inline: auto !important;
  padding: 28px 0 calc(var(--lesson-tools-space) + 16px) !important;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson .lesson-layout {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson .lesson-card {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content {
  --hb-reading-width: 100%;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 32px !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson .lesson-card > .tabs.is-stuck {
  background: #fff !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson .lesson-layout > .lesson-tools[data-open="true"] {
  left: max(24px, calc((100% - 1040px) / 2));
  right: max(24px, calc((100% - 1040px) / 2));
  width: auto;
  padding-inline: 12px;
  border-inline: 1px solid #e4e8ef;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson .lesson-layout > .lesson-tools[data-open="false"] {
  left: max(12px, env(safe-area-inset-left, 0px));
  right: auto;
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  display: flex;
  gap: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson .lesson-tools[data-open="false"] .lesson-tools-toggle {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px !important;
  padding: 0;
  background: transparent;
  color: #405781;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson .lesson-tools[data-open="false"] .lesson-tools-toggle > .icon {
  width: 25px;
  height: 25px;
  stroke-width: 1.8;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson .chapter-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding-top: 26px;
  margin-top: 30px;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson .chapter-actions {
  width: 100%;
  margin-left: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  gap: 10px;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson .chapter-actions > .btn:not(.secondary) {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson .chapter-actions > .btn.secondary {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson .chapter-actions .btn {
  min-height: 44px !important;
  padding: 11px 22px !important;
  border-radius: 5px !important;
  box-shadow: none;
  font-size: 13px !important;
  transition: none !important;
  transform: none !important;
}
@media (max-width: 767px) {
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson .chapter-actions {
    grid-template-columns: minmax(0, 1fr);
  }
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson .chapter-actions > .btn:not(.secondary) {
    grid-column: 1;
  }
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson .chapter-actions > .btn.secondary {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
  }
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson {
    width: 100% !important;
    max-width: none !important;
    padding-top: 22px !important;
    background: #fff;
  }
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson :is(.lesson-title, .lesson-overview, .lesson-review-notice, .footer) {
    margin-inline: 16px !important;
  }
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson .lesson-title {
    width: auto !important;
    gap: 18px;
    margin-bottom: 24px;
  }
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson .lesson-card {
    border: 0;
    background: transparent;
  }
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content {
    padding: 24px 16px !important;
  }
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson .lesson-layout > .lesson-tools[data-open="true"] {
    left: 0;
    right: 0;
    padding-inline: max(8px, env(safe-area-inset-left, 0px)) max(8px, env(safe-area-inset-right, 0px));
    border-inline: 0;
  }
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson .lesson-layout > .lesson-tools[data-open="false"] {
    left: max(12px, env(safe-area-inset-left, 0px));
  }
}
