.module-help-button {
  position: relative;
  font-weight: 800;
  color: #185f54;
}

.module-help-button::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d99a43;
  box-shadow: 0 0 0 3px #fff;
}

.module-help-button:hover,
.module-help-button:focus-visible {
  color: #fff;
  background: #185f54;
  border-color: #185f54;
  transform: translateY(-1px);
}

.module-guide-modal {
  width: min(1080px, calc(100vw - 48px));
  height: min(760px, calc(100vh - 48px));
  max-width: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce5df;
  border-radius: 24px;
  background: #f8faf8;
  box-shadow: 0 26px 80px rgba(24, 53, 47, .24);
}

.module-guide-modal > .modal-head,
.module-guide-modal > #modalClose {
  display: none;
}

.module-guide-modal > #modalContent {
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.module-guide-shell {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.module-guide-index {
  min-height: 0;
  padding: 28px 18px 22px;
  overflow: auto;
  color: #eaf4ef;
  background: #123f38;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.3) transparent;
}

.module-guide-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.module-guide-brand > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #123f38;
  background: #dbece4;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
}

.module-guide-brand small,
.module-guide-heading small,
.module-guide-intro > span,
.module-guide-steps > div > span,
.module-guide-example > span {
  display: block;
  margin-bottom: 4px;
  color: #2b796c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
}

.module-guide-brand small { color: #a7c9bd; }
.module-guide-brand strong { display: block; font-size: 16px; }
.module-guide-index > p { margin: 17px 4px 24px; color: #b8d0c8; font-size: 13px; line-height: 1.55; }
.module-guide-index nav section + section { margin-top: 20px; }
.module-guide-index nav h3 { margin: 0 8px 7px; color: #89b4a7; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

.module-guide-index nav button {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  color: #dcebe6;
  background: transparent;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.module-guide-index nav button span { width: 20px; color: #a5cdc1; text-align: center; }
.module-guide-index nav button:hover { color: #fff; background: rgba(255,255,255,.08); transform: translateX(2px); }
.module-guide-index nav button.active { color: #123f38; background: #edf5f1; font-weight: 800; box-shadow: 0 7px 18px rgba(4,24,20,.15); }
.module-guide-index nav button.active span { color: #197467; }

.module-guide-lesson {
  min-width: 0;
  min-height: 0;
  padding: 30px 36px 26px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #94aaa2 transparent;
  background: #fbfcfa;
}
.module-guide-lesson::-webkit-scrollbar { width: 9px; }
.module-guide-lesson::-webkit-scrollbar-track { background: transparent; }
.module-guide-lesson::-webkit-scrollbar-thumb { border: 2px solid #fbfcfa; border-radius: 10px; background: #94aaa2; }

.module-guide-lesson > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.module-guide-heading { display: flex; align-items: center; gap: 14px; }
.module-guide-heading > span {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 16px;
  color: #14695d;
  background: #e6f2ed;
  font-size: 22px;
}
.module-guide-heading h2 { margin: 0; color: #182923; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(26px, 3vw, 36px); }
.module-guide-close {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #dce5df;
  border-radius: 50%;
  color: #52635d;
  background: #fff;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}
.module-guide-close:hover { color: #fff; background: #185f54; border-color: #185f54; }

.module-guide-intro {
  padding: 24px 26px;
  border: 1px solid #dbe7e1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31,66,57,.055);
}
.module-guide-intro p { max-width: 680px; margin: 7px 0 0; color: #263a33; font-size: 19px; line-height: 1.55; }

.module-guide-steps { margin-top: 28px; }
.module-guide-steps > div { margin-bottom: 13px; }
.module-guide-steps h3 { margin: 0; color: #1b3029; font-size: 20px; }
.module-guide-steps article {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 14px;
  border-bottom: 1px solid #e5ebe7;
}
.module-guide-steps article b {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  color: #176b5f;
  background: #e7f2ed;
  font-size: 13px;
}
.module-guide-steps article p { margin: 0; color: #34463f; font-size: 15px; line-height: 1.45; }

.module-guide-more {
  margin-top: 26px;
  padding: 22px 24px;
  border: 1px solid #dce6e1;
  border-radius: 18px;
  background: #fff;
}
.module-guide-more > div > span {
  display: block;
  margin-bottom: 4px;
  color: #2b796c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
}
.module-guide-more h3 { margin: 0 0 14px; color: #1b3029; font-size: 18px; }
.module-guide-more ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.module-guide-more li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: start; }
.module-guide-more li > span { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 7px; color: #176b5f; background: #e7f2ed; font-size: 11px; font-weight: 900; }
.module-guide-more li p { margin: 1px 0 0; color: #42534d; font-size: 13px; line-height: 1.45; }

.module-guide-spotlight {
  margin-top: 20px;
  padding: 22px 24px;
  border: 1px solid #c6ddd4;
  border-radius: 18px;
  background: #eef6f2;
}
.module-guide-spotlight > header { display: flex; align-items: flex-start; gap: 13px; }
.module-guide-spotlight > header > span { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: #176b5f; background: #d8ebe3; font-size: 17px; }
.module-guide-spotlight small { display: block; margin-bottom: 3px; color: #2b796c; font-size: 10px; font-weight: 800; letter-spacing: .11em; }
.module-guide-spotlight h3 { margin: 0; color: #183b33; font-size: 19px; }
.module-guide-spotlight header p { margin: 4px 0 0; color: #587069; font-size: 12px; line-height: 1.45; }
.module-guide-spotlight ul { display: grid; gap: 8px; margin: 18px 0; padding: 0; list-style: none; }
.module-guide-spotlight li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; }
.module-guide-spotlight li > span { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 7px; color: #176b5f; background: #fff; font-size: 10px; font-weight: 900; }
.module-guide-spotlight li p { margin: 1px 0 0; color: #334c45; font-size: 13px; line-height: 1.45; }
.module-guide-spotlight > a { display: inline-flex; align-items: center; gap: 9px; color: #176b5f; font-size: 12px; font-weight: 800; cursor: pointer; }
.module-guide-spotlight > a:hover { text-decoration: underline; }

.module-guide-example {
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid #eadfc9;
  border-radius: 16px;
  background: #faf6ed;
}
.module-guide-example > span { color: #9b6b2f; }
.module-guide-example p { margin: 6px 0 0; color: #503f2b; font-size: 14px; line-height: 1.55; }
.module-guide-note {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  margin-top: 14px;
  padding: 15px 17px;
  border-radius: 14px;
  color: #31554c;
  background: #edf5f1;
}
.module-guide-note > span { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #c9ded5; border-radius: 50%; font-family: Georgia, serif; font-weight: 800; }
.module-guide-note strong { display: block; margin-bottom: 3px; color: #1c4f45; font-size: 13px; }
.module-guide-note p { margin: 0; font-size: 12px; line-height: 1.5; }
.module-guide-lesson > footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; }
.module-guide-lesson > footer button { min-height: 44px; }

.assistant-guide-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.assistant-guide-heading > div > h3 { margin-bottom: 3px; }
.assistant-guide-heading > div > p { margin-top: 0; }
.assistant-guide-heading > button {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #cfe0d9;
  border-radius: 9px;
  color: #17695d;
  background: #f4f9f6;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.assistant-guide-heading > button:hover { background: #e6f2ed; }

@media (max-width: 760px) {
  .top-actions .module-help-button { display: grid; place-items: center; flex: 0 0 36px; }
  .module-guide-modal { width: calc(100vw - 16px); height: calc(100dvh - 16px); border-radius: 18px; }
  .module-guide-shell { display: flex; flex-direction: column; }
  .module-guide-index { flex: 0 0 auto; padding: 17px 16px 12px; overflow: hidden; }
  .module-guide-brand > span { width: 36px; height: 36px; border-radius: 11px; font-size: 18px; }
  .module-guide-brand strong { font-size: 14px; }
  .module-guide-index > p { display: none; }
  .module-guide-index nav { display: flex; gap: 7px; margin-top: 14px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
  .module-guide-index nav::-webkit-scrollbar { display: none; }
  .module-guide-index nav section { display: contents; }
  .module-guide-index nav section + section { margin-top: 0; }
  .module-guide-index nav h3 { display: none; }
  .module-guide-index nav button { flex: 0 0 auto; width: auto; min-height: 34px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.16); white-space: nowrap; }
  .module-guide-index nav button span { display: none; }
  .module-guide-lesson { padding: 20px 18px 18px; }
  .module-guide-lesson > header { margin-bottom: 18px; }
  .module-guide-heading > span { width: 42px; height: 42px; border-radius: 13px; }
  .module-guide-heading h2 { font-size: 27px; }
  .module-guide-intro { padding: 18px; }
  .module-guide-intro p { font-size: 16px; }
  .module-guide-steps { margin-top: 20px; }
  .module-guide-steps article { align-items: start; padding: 11px 4px; }
  .module-guide-more { margin-top: 20px; padding: 18px; }
  .module-guide-more ul { grid-template-columns: 1fr; }
  .module-guide-spotlight { padding: 18px; }
  .module-guide-example { margin-top: 17px; }
  .module-guide-lesson > footer { position: sticky; bottom: -18px; margin: 22px -18px -18px; padding: 12px 18px 16px; background: rgba(251,252,250,.95); backdrop-filter: blur(8px); }
  .module-guide-lesson > footer button { flex: 1; padding-inline: 10px; }
}
