:root {
  --muted: #4a443e;
}

.easy-meta,
.card-meta,
.toc-course,
.class-card p,
.class-card .easy-meta,
.class-card .card-meta,
.footer-note{
  color: #3f3a36 !important;
}

.card-meta,
.class-card .card-meta {
  font-size: 14px !important;
  font-weight: 600;
}

.easy-meta,
.class-card .easy-meta {
  font-size: 15px !important;
  font-weight: 600;
}

a,
button,
.lesson-list a,
.class-card{
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid #ff7a59 !important;
  outline-offset: 3px;
}

.skip-link:focus {
  outline: 3px solid #ff7a59;
}

.st-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 8px;
  line-height: 1.2;
  white-space: nowrap;
}

.st-chip.is-todo {
  background: #f3eee8;
  color: #5a524c;
  border: 1px solid #e4d8cc;
}

.st-chip.is-now {
  background: #fff1e8;
  color: #c44520;
  border: 1px solid #ffc4b0;
}

.st-chip.is-extra {
  background: #eef4fb;
  color: #2a5a86;
  border: 1px solid #c5d7ea;
}

.teach-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 14px;
  padding: 10px 12px;
  background: #fff8e0;
  border: 2px solid #f0d56a;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.teach-bar-toggle {
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.teach-bar-hint {
  flex: 1 1 180px;
  color: #5a524c;
}

mark.teach-mark {
  background: #ffe566;
  color: inherit;
  padding: 0.05em 0.12em;
  border-radius: 3px;
  cursor: pointer;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

body.is-teacher mark.teach-mark:hover {
  background: #ffd83d;
}

.course-meter,
.hero-meter {
  height: 8px !important;
  background: #ffe8dc;
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0 0;
  max-width: 420px;
}

.course-meter > span,
.hero-meter > span {
  display: block;
  height: 100%;
  width: var(--p, 0%);
  background: linear-gradient(90deg, #ff9bb8, #ff7a59, #ffc85c);
  border-radius: 999px;
  transition: width 0.6s ease;
}

.hero-meter {
  margin-top: 12px;
  max-width: none;
}

.lesson-row,
.lesson-list a {
  display: grid !important;
  grid-template-columns: 96px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px !important;
  padding: 12px 10px !important;
  text-decoration: none;
  border-radius: 14px;
  cursor: pointer;
}

.lesson-row:hover,
.lesson-list a:hover {
  background: #fff6ef;
}

.lesson-row-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.lesson-row-title {
  font-weight: 800;
  color: var(--ink);
}

.lesson-go {
  color: #c44520;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.pic-easy {
  padding-top: 32px;
}

.pic-easy svg,
.lesson-body .pic svg {
  max-width: min(520px, 100%);
}

.lesson-body > .pic-hero {
  padding: 12px 14px 10px;
  margin: 8px 0 16px;
}

.lesson-body > .pic-hero svg,
.lesson-body > .pic-hero .pic-svg svg {
  max-width: min(520px, 100%) !important;
  max-height: 240px !important;
}

.pic-compare{
  max-width: min(560px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding: 8px 12px 6px !important;
}

.pic-compare svg,
.pic-compare .pic-svg svg,
.lesson-body .pic-compare svg{
  max-width: min(520px, 100%) !important;
  max-height: 180px !important;
  width: 100%;
  height: auto;
}

.pic-compare figcaption{
  font-size: 13px !important;
  font-weight: 700;
  line-height: 1.45;
}

.pic-compact {
  padding: 10px 14px !important;
}

.pic-compact svg,
.lesson-body .pic-compact svg {
  max-width: min(420px, 100%);
  max-height: 120px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: #4f4843;
  margin: 0 0 10px;
}

.crumbs a {
  color: #c44520;
  text-decoration: none;
  font-weight: 700;
}

.sidebar a {
  cursor: pointer;
}

.sidebar a:hover {
  background: #fff6ef;
}

.sidebar a .st-chip {
  margin-left: auto;
  transform: scale(0.92);
}

.class-card.is-complete,
.class-card.is-going,
.class-card.is-fresh {
  position: relative;
}

@media (max-width: 900px) {
  .wrap {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .header-top {
    gap: 8px;
  }

  .brand-promo,
.member-chip,
.header-progress{
    display: none !important;
  }

  .brand-logo {
    max-width: min(160px, 58vw);
  }

  .nav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    margin-left: auto;
  }

  .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch;
    gap: 18px !important;
  }

  .site-footer {
    font-size: 14px;
    padding: 28px 0 24px;
  }

  h1{
    letter-spacing: 0 !important;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.35;
  }

  .kicker{
    letter-spacing: 0.04em !important;
  }

  .page > .pic,
.lesson-body .pic,
.lesson-body > .pic,
.op .pic{
    display: block !important;
  }

  .lesson-row,
  .lesson-list a {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    padding: 12px 4px !important;
  }

  .lesson-go {
    display: none;
  }

  
}

.header-fav {
  flex: none;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px 8px 12px;
  border: 0;
  border-radius: 999px;
  background: #ff7a59;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 0 #e86648;
}

.header-fav .fav-star {
  font-size: 18px;
  line-height: 1;
  color: #fff;
}

.header-fav.is-on {
  background: #f0c84a;
  color: #3d342c;
  box-shadow: 0 6px 0 #d4aa2e;
}

.header-fav.is-on .fav-star {
  color: #3d342c;
}

.header-fav:active {
  transform: translateY(1px);
}

@media (max-width: 900px) {
  .header-fav {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    box-shadow: 0 4px 0 #e86648;
  }

  .header-fav-txt {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}

.fav-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 10px;
}

.fav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fffdf8;
  border: 2px solid #ffe1cf;
  border-radius: 16px;
}

.fav-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
}

.fav-item .fav-star,
.fav-off {
  color: #e2a000;
}

.fav-off {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  padding: 8px 6px;
}

.fav-empty {
  margin: 0;
  color: #5a524c;
}

.hub-courses {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.hub-course {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #f0e4d6;
  padding: 10px 0;
}

.hub-course > a:first-child {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  text-decoration: none;
  align-items: center;
  color: inherit;
  cursor: pointer;
}

.hub-course > a:first-child:hover .hub-course-name {
  color: #c44520;
}

.hub-course-name {
  font-weight: 800;
}

.hub-course .course-meter {
  grid-column: 1 / -1;
  margin: 0;
  max-width: none;
}

.hub-cert {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  color: #c44520;
  text-decoration: none;
}

.learn-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.learn-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eefaf3;
  border: 2px solid #5bb58a;
  border-radius: 999px;
  padding: 6px 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}

.invite-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid #f0e4d6;
}

.invite-list li span {
  flex: 1 1 10em;
  font-weight: 800;
}

.hub-files {
  margin: 0;
  padding-left: 1.2em;
  line-height: 1.9;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bot-shell {
  margin: 12px 0 16px;
  background: #fff8f1;
  border: 2px solid #ffe1cf;
  border-radius: 18px;
  padding: 12px;
}

.bot-log {
  max-height: 280px;
  overflow: auto;
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.bot-msg {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
}

.bot-msg span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
  color: #8a5a00;
}

.bot-msg p {
  margin: 0;
  line-height: 1.55;
}

.bot-msg.is-user {
  margin-left: auto;
  background: #ffeadf;
}

.bot-msg.is-user span {
  color: #c44520;
}

.bot-more {
  display: inline-block;
  margin-top: 8px;
  font-weight: 800;
  text-decoration: none;
}

.bot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.bot-chip {
  border: 1px solid #ffc4ad;
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.bot-pair {
  display: grid;
  gap: 18px;
}

@media (min-width: 900px) {
  .bot-pair {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.teacher-form {
  display: grid;
  gap: 6px;
}

.teacher-form label {
  font-size: 13px;
  font-weight: 800;
  margin-top: 6px;
}

.teacher-form input,
.teacher-form select,
.teacher-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid #ffe1cf;
  border-radius: 12px;
  padding: 10px;
  font: inherit;
}

.teacher-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.teacher-list li {
  padding: 10px 0;
  border-top: 1px solid #f0e4d6;
}

.teacher-list p {
  margin: 6px 0 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.bot-shell.is-direct {
  background: #eef4ff;
  border-color: #c5d6f5;
}

.bot-form textarea {
  flex: 1;
  min-width: 0;
  border: 2px solid #ffe1cf;
  border-radius: 12px;
  padding: 10px;
  font: inherit;
  resize: vertical;
}

.bot-shell.is-direct .bot-form {
  align-items: flex-end;
}

.bot-tabs {
  display: none;
}

.bot-tab {
  flex: 1;
  border: 2px solid #ffc4ad;
  background: #fff;
  border-radius: 999px;
  padding: 10px 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.bot-tab.is-on {
  background: #3d6fd8;
  border-color: #3d6fd8;
  color: #fff;
}

.bot-msg,
.bot-msg p {
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

.bot-shell,
.bot-pair,
.bot-pane,
.chat-page,
.bot-card {
  min-width: 0;
  max-width: 100%;
}

.chat-fab {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 40;
  background: #3d6fd8;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(61, 111, 216, 0.35);
}

@media (max-width: 899px) {
  .bot-tabs {
    display: flex;
    gap: 8px;
    margin: 8px 0 12px;
  }

  .bot-pair.is-ai .bot-pane.is-teacher,
  .bot-pair.is-teacher .bot-pane.is-direct {
    display: none;
  }

  .bot-pane h3 {
    display: none;
  }

  .bot-log {
    max-height: min(42dvh, 340px);
  }

  .bot-form {
    flex-direction: column;
    align-items: stretch;
  }

  .bot-form input,
  .bot-form textarea,
  .bot-form button {
    width: 100%;
  }

  .bot-msg {
    max-width: 100%;
  }

  .chat-fab {
    font-size: 14px;
    padding: 10px 14px;
  }

  body:not(.is-chat) {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .chat-page {
    padding-bottom: 24px;
  }
}

body.is-chat .chat-fab {
  display: none;
}

.bot-form {
  display: flex;
  gap: 8px;
}

.bot-form input {
  flex: 1;
  min-width: 0;
  border: 2px solid #ffe1cf;
  border-radius: 12px;
  padding: 10px;
  font: inherit;
}

.works-form textarea {
  width: 100%;
  border: 2px solid #ffe1cf;
  border-radius: 12px;
  padding: 10px;
  font: inherit;
  margin: 6px 0 10px;
}

.works-form input[type="file"] {
  display: block;
  width: 100%;
  margin: 6px 0 4px;
  font: inherit;
}

.works-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.works-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid #f0e4d6;
}

.work-shot {
  display: block;
  width: 100%;
  max-width: 280px;
}

.work-shot img {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  background: #fff8f1;
  border-radius: 12px;
  border: 1px solid #f0e4d6;
}

.work-file {
  font-weight: 800;
  text-decoration: none;
}

.cert-sheet {
  background: #fffdf9;
  border: 4px solid #ff7a59;
  border-radius: 20px;
  padding: 36px 24px;
  text-align: center;
  max-width: 520px;
  margin: 0 auto 20px;
}

.cert-kicker {
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #c44520;
}

.cert-name {
  font-size: 28px;
  font-weight: 800;
  margin: 8px 0;
}

.cert-stamp {
  font-size: 48px;
  margin: 12px 0 0;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}

.guide-sheet {
  background: #fff;
  border: 2px solid #ffe1cf;
  border-radius: 20px;
  padding: 20px 18px 24px;
  margin-top: 16px;
}

.guide-sheet h2 {
  margin: 22px 0 6px;
  font-size: 18px;
}

.guide-sheet h2:first-child {
  margin-top: 0;
}

.guide-flow {
  list-style: none;
  padding: 0;
  margin: 10px 0 8px;
  display: grid;
  gap: 8px;
}

.guide-flow a{
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #fffdf8;
  border: 2px solid #ffe8d6;
  text-decoration: none;
  color: inherit;
}

.guide-n {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ff7a59;
  color: #fff;
  font-weight: 800;
}

.guide-step-copy{
  display: grid;
  gap: 2px;
}

.guide-step-copy small{
  font-size: 13px;
  font-weight: 600;
  color: #5a524c;
}

.guide-extras {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.guide-extras ul {
  margin: 6px 0 0;
  padding-left: 1.2em;
}

.guide-help {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.guide-printbox {
  margin: 18px 0 8px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #fff8f1;
  border: 1px dashed #ffd2b8;
}

.guide-printbox summary {
  cursor: pointer;
  font-weight: 800;
}

@media (min-width: 760px) {
  

  .guide-extras {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .chat-fab,
  .header-fav,
  .skip-link,
  .guide-actions,
  .guide-printbox,
  .crumbs {
    display: none !important;
  }

  .guide-sheet{
    border-color: #ccc;
    background: #fff;
    break-inside: avoid;
  }
}

.notice-card {
  margin: 16px 0;
  padding: 16px 18px 14px;
  background: #fff8f1;
  border: 2px solid #ffd2b8;
  border-radius: 18px;
}

.notice-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.notice-list {
  margin: 0;
  padding-left: 1.2em;
  line-height: 1.7;
}

.notice-card.is-compact {
  padding: 12px 14px 10px;
}

.notice-card.is-compact .notice-list {
  font-size: 14px;
}

.notice-card a {
  font-weight: 800;
  color: #c44520;
  text-decoration: none;
}
  position: fixed;
  left: 50%;
  top: 28%;
  transform: translateX(-50%);
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ff7a59;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: 0 12px 0 #e86648;
  animation: stamp-in 0.45s ease;
}

.meter.is-pop > span,
.course-meter.is-pop > span,
.hero-meter.is-pop > span {
  animation: meter-pop 0.7s ease;
}

@keyframes meter-pop {
  from {
    width: 0;
  }
  to {
    width: var(--p, 0%);
  }
}

.pager {
  position: sticky;
  bottom: 8px;
  background: rgba(255, 253, 249, 0.94);
  padding: 10px 8px;
  border-radius: 16px;
  z-index: 5;
}

.class-card.is-locked{
  opacity: 0.72;
  filter: grayscale(0.35);
}

.class-card.is-locked .cover{
  position: relative;
}

@media (max-width: 900px) {
  html,
  body,
  body.is-home {
    font-size: 16px;
    background-attachment: scroll;
    animation: none;
  }

  .site-header {
    padding-top: env(safe-area-inset-top);
  }

  .header-top {
    min-height: 52px;
    gap: 8px;
  }

  .brand-logo {
    max-width: min(148px, 52vw) !important;
    height: 32px !important;
  }

  .chat-fab{
    display: none !important;
  }

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  .page {
    padding-top: 12px;
    padding-bottom: 28px;
  }

  .section-head {
    margin: 4px 0 10px;
  }

  .section-head h2 {
    font-size: 18px;
  }

  

  

  .site-nav {
    gap: 0;
  }

  .site-nav.open {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 4px 0 12px;
  }

  .site-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    font-size: 15px;
    font-weight: 800;
    border-bottom: 1px solid #f0e4d6;
  }

  .crumbs {
    font-size: 13px;
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .member-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .member-row input,
  .member-row button,
  .works-form textarea,
  .works-form input {
    width: 100%;
  }

  .hub-course {
    flex-wrap: wrap;
  }

  .cta-row,
  .pager {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .cta-row .btn-orange,
  .cta-row .btn-dark,
  .pager .btn-orange,
  .pager .btn-dark {
    flex: 1 1 140px;
    text-align: center;
    justify-content: center;
  }

  .footer-note {
    font-size: 12px;
    line-height: 1.5;
  }

  .site-footer {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  body:not(.is-chat) {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

.home-sec-lead {
  margin: -4px 0 16px;
  color: #5c534b;
  font-size: 15px;
  line-height: 1.7;
}

@media (min-width: 901px) {
  body.is-home .page > .home-catalog .course-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 18px;
  }

  body.is-home .class-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
  }

  body.is-home .class-card .cover{
    min-height: 76px;
    height: 76px;
  }

  body.is-home .class-card h3 {
    font-size: 16px;
    line-height: 1.35;
  }
}

