[hidden] { display: none !important; }

.ui-icon {
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

.course-card footer .ui-icon-check { color: #9b7912; }
.course-card footer .ui-icon-external { color: #343430; }
.admin > aside footer > a .ui-icon-external { color: #f4c542; float: right; width: 15px; height: 15px; }
.toast .ui-icon-check { color: #f4c542; width: 16px; height: 16px; }

.site-footer {
  color: #9b9b94;
  background: #11110f;
  border-top: 1px solid #292925;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 62px;
  padding: 13px 24px;
  font-size: 10px;
  line-height: 1.6;
  display: flex;
  box-sizing: border-box;
}

.site-footer-links {
  align-items: center;
  gap: 18px;
  display: flex;
}

.site-footer a {
  color: #bdbdb6;
  text-decoration: none;
  transition: color .18s ease;
}

.site-footer a:hover {
  color: #f4c542;
}

.home-page {
  padding-top: 26px;
}

.home-page .welcome {
  border: 1px solid #242422;
  border-radius: 14px;
  align-items: center;
  gap: 30px;
  min-height: 0;
  padding: 22px 26px;
}

.home-page .welcome-copy {
  min-width: 0;
}

.home-page .welcome-copy .eyebrow {
  font-size: 9px;
}

.home-page .welcome-copy h1 {
  letter-spacing: -.035em;
  margin: 7px 0 5px;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.2;
}

.home-page .welcome-copy p {
  max-width: 680px;
  font-size: 11px;
  line-height: 1.6;
}

.home-page .progress-card {
  width: 155px;
}

.home-page .progress-card b {
  font-size: 34px;
}

.home-page .progress-card span {
  font-size: 14px;
}

.home-page .progress-card i {
  margin-top: 9px;
}

.home-page .section-head {
  margin-top: 34px;
}

.home-page .section-head h2 {
  margin-top: 0;
}

.captcha-row {
  grid-template-columns: 1fr 132px;
  gap: 9px;
  display: grid;
}

.captcha-row > button {
  background: #f4c542;
  border: 0;
  border-radius: 9px;
  height: 48px;
  padding: 2px;
  overflow: hidden;
}

.captcha-row img {
  width: 100%;
  height: 44px;
  display: block;
}

.course-card.completed {
  border-color: #d8a914;
  box-shadow: inset 0 3px 0 #f4c542;
}

.course-card.completed > header i {
  color: #594300;
  background: #f4c542;
}

.course-card .unlock-time {
  color: #6d570b;
  background: #f6edc7;
  border-radius: 7px;
  width: fit-content;
  margin-top: 14px;
  padding: 7px 9px;
  font-size: 10px;
}

.course-learning-top {
  gap: 26px;
}

.course-learning-top .back-link {
  flex: none;
}

.course-context {
  flex: 1;
  min-width: 0;
}

.course-context h1 {
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  font-size: 16px;
  font-weight: 560;
  overflow: hidden;
}

.player,
.video-layout {
  min-height: calc(100vh - 72px);
}

.video-stage video {
  max-height: calc(100vh - 72px);
}

.video-stage video.live-view-only {
  pointer-events: none;
  user-select: none;
}

.video-player-shell {
  align-self: stretch;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  width: 100%;
  display: flex;
}

.replay-video-frame {
  flex: 1;
  min-height: 0;
  width: 100%;
  place-items: center;
  position: relative;
  display: grid;
  overflow: hidden;
}

.replay-video-frame video {
  object-fit: contain;
  width: 100%;
}

.video-player-shell.has-replay-controls .replay-video-frame video {
  max-height: calc(100vh - 130px);
}

.replay-controls {
  color: #d7d7d1;
  background: #151513;
  border-top: 1px solid #292926;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-height: 58px;
  padding: 9px 16px;
  display: flex;
}

.replay-next {
  color: #11110f;
  background: #f4c542;
  border: 1px solid #f4c542;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 38px;
  padding: 0 13px;
  display: flex;
  min-width: 106px;
  font-size: 10px;
  font-weight: 750;
}

.replay-controls > label {
  color: #8d8d86;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  display: flex;
}

.replay-controls select {
  color: #e8e8e2;
  background: #22221f;
  border: 1px solid #3a3a36;
  border-radius: 8px;
  height: 38px;
  padding: 0 28px 0 10px;
  font-size: 10px;
}

.replay-next:hover:not(:disabled) {
  background: #ffda59;
  border-color: #ffda59;
}

.replay-next svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 15px;
  height: 15px;
}

.live-start-button {
  z-index: 4;
  color: #11110f;
  background: #f4c542;
  border: 0;
  border-radius: 10px;
  padding: 13px 20px;
  font-size: 12px;
  font-weight: 750;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 36px rgb(0 0 0 / 35%);
}

.live-lock-notice {
  z-index: 2;
  color: #fff;
  background: rgb(0 0 0 / 68%);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 10px;
  position: absolute;
  top: 20px;
  right: 22px;
  pointer-events: none;
}

.outline-button:disabled {
  color: #aaa;
  background: #1e1e1c;
  border-color: #333;
  opacity: 1;
}

.section-nav {
  flex-direction: column;
  overflow: hidden;
  display: flex;
}

.section-nav > header {
  flex: none;
}

#section-buttons {
  flex: 1;
  min-height: 0;
  padding-right: 4px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

#section-buttons::-webkit-scrollbar { width: 6px; }
#section-buttons::-webkit-scrollbar-track { background: transparent; }
#section-buttons::-webkit-scrollbar-thumb { background: #cacac3; border-radius: 6px; }

#section-buttons > button {
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #dcdcd5;
  align-items: center;
  gap: 15px;
  width: 100%;
  min-height: 72px;
  padding: 12px 10px;
  display: flex;
}

#section-buttons > button > i {
  color: #999;
  width: 33px;
  font-size: 11px;
  font-style: normal;
}

#section-buttons > button > span {
  flex: 1;
  gap: 5px;
  display: grid;
}

#section-buttons > button b { font-size: 13px; font-weight: 620; }
#section-buttons > button small { color: #8c8c85; font-size: 10px; }
#section-buttons > button em { color: transparent; font-style: normal; }

#section-buttons > button.active {
  color: #fff;
  background: #111;
  border-color: #111;
  border-radius: 11px;
}

#section-buttons > button.active i,
#section-buttons > button.active em { color: #f4c542; }
#section-buttons > button.active small { color: #888; }

.project {
  max-width: none;
  padding: 10px max(10px, 2vw) 0;
}

.submission-form.simple {
  background: transparent;
  border-radius: 0;
  justify-content: flex-end;
  gap: 0;
  margin: 0;
  padding: 0;
  display: flex;
}

.submission-form.simple .primary {
  width: 132px;
  min-height: 38px;
  padding: 0 13px;
  font-size: 11px;
}

.project-submit-top {
  background: #efefe9;
  border: 1px solid #30302d;
  border-radius: 10px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  padding: 8px 10px 8px 14px;
  display: flex;
}

.project-submit-top > div {
  align-items: baseline;
  gap: 8px;
  display: flex;
}

.project-submit-top small {
  color: #8a6a08;
  font-size: 9px;
}

.project-submit-top b {
  color: #11110f;
  font-size: 12px;
  font-weight: 620;
}

.project-submit-top .submission-form {
  position: relative;
}

.project-submit-button.guide-active {
  animation: submitButtonPulse 1s ease-in-out infinite;
  box-shadow: 0 0 0 7px rgb(17 17 15 / 13%);
}

.practice-page {
  background: #fff;
  border: 0;
  width: 100%;
  height: calc(100vh - 149px);
  min-height: 560px;
  display: block;
}

.submit-guide-hand {
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 4px 5px rgb(0 0 0 / 28%));
  font-size: 34px;
  position: absolute;
  right: 62px;
  bottom: -42px;
  transform: translateY(12px) rotate(-8deg);
}

.submit-guide-hand.show {
  opacity: 1;
  animation: submitGuideHand 1s ease-in-out infinite;
}

@keyframes submitGuideHand {
  0%, 100% { transform: translateY(12px) rotate(-8deg); }
  50% { transform: translateY(0) rotate(-8deg); }
}

@keyframes submitButtonPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}

.completion-modal {
  z-index: 100;
  background: rgb(0 0 0 / 78%);
  backdrop-filter: blur(8px);
  place-items: center;
  padding: 24px;
  position: fixed;
  inset: 0;
  display: grid;
}

.completion-modal > section {
  color: #171714;
  text-align: center;
  background: #f7f7f3;
  border: 1px solid #deded7;
  border-radius: 20px;
  width: min(440px, 100%);
  padding: 42px 38px 34px;
  box-shadow: 0 28px 90px rgb(0 0 0 / 45%);
}

.completion-mark {
  color: #11110f;
  background: #f4c542;
  border-radius: 50%;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  font-size: 28px;
  font-weight: 800;
  display: grid;
}

.completion-mark .ui-icon {
  stroke-width: 2.2;
  width: 28px;
  height: 28px;
}

.completion-modal small {
  color: #9b7912;
  letter-spacing: .16em;
  font-size: 9px;
  font-weight: 800;
}

.completion-modal h2 {
  letter-spacing: -.04em;
  margin: 10px 0;
  font-size: 30px;
  font-weight: 580;
}

.completion-modal p {
  color: #777770;
  margin: 0 0 28px;
  font-size: 13px;
  line-height: 1.7;
}

.settings-editor {
  max-width: 860px;
}

.setting-card {
  background: #fff;
  border: 1px solid #deded7;
  border-radius: 14px;
  margin-top: 16px;
  padding: 24px;
}

.setting-card > div:first-child {
  margin-bottom: 18px;
}

.setting-card h3 {
  margin: 0 0 7px;
  font-size: 17px;
}

.setting-card p {
  color: #777770;
  max-width: 660px;
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}

.setting-card .switch-label {
  width: fit-content;
}

.setting-card > label:not(.switch-label) {
  max-width: 360px;
}

.setting-hint {
  color: #92928b;
  font-size: 10px;
}

.page-setting-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.page-setting-grid > label, .page-image-field { display: grid; gap: 7px; color: #55554f; font-size: 11px; font-weight: 700; }
.page-setting-grid input, .page-setting-grid textarea { width: 100%; border: 1px solid #d8d8d1; border-radius: 8px; background: #fafaf7; padding: 10px 11px; font: inherit; }
.page-setting-grid textarea { min-height: 76px; resize: vertical; }
.page-image-field > div { display: flex; gap: 8px; }
.page-image-field > div > input { min-width: 0; flex: 1; }
.page-upload-button { display: grid; place-items: center; min-width: 82px; border-radius: 8px; color: #fff; background: #252522; cursor: pointer; }
.page-image-field > img { width: 100%; max-height: 180px; border-radius: 9px; background: #eee; object-fit: contain; }
.purchase-image-settings { grid-column: 1 / -1; display: grid; gap: 12px; }
#purchase-image-list { display: grid; gap: 10px; }
.purchase-image-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 9px; border: 1px solid #e2e2dc; border-radius: 10px; background: #fff; padding: 10px; }
.purchase-image-order { color: #77776f; font-size: 11px; font-weight: 700; text-align: center; }
.purchase-image-row > input { min-width: 0; }
.purchase-image-actions { display: flex; gap: 5px; }
.purchase-image-actions button, .purchase-image-add { border: 1px solid #d8d8d1; border-radius: 7px; background: #fff; color: #42423e; padding: 8px 10px; font-size: 11px; font-weight: 700; }
.purchase-image-actions button:hover, .purchase-image-add:hover { border-color: #0071e3; color: #0071e3; }
.purchase-image-actions button:disabled { opacity: .35; cursor: default; }
.purchase-image-add { justify-self: start; background: #f3f8ff; border-color: #bedcff; color: #0066cc; }

.section-insert {
  color: #8c8c85;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 28px;
  margin: -9px 0;
  display: flex;
  position: relative;
}

.section-insert::before,
.section-insert::after {
  content: '';
  background: #deded7;
  flex: 1;
  height: 1px;
}

.section-insert span {
  font-size: 8px;
  white-space: nowrap;
}

.section-insert button {
  color: #765c0c;
  background: #f7f1d5;
  border: 1px solid #e2cf77;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
  opacity: .72;
  transition: opacity .18s, background .18s, border-color .18s;
}

.section-insert:hover button,
.section-insert button:focus-visible {
  opacity: 1;
}

.section-insert button:hover {
  color: #11110f;
  background: #f4c542;
  border-color: #f4c542;
}

.resource-work {
  width: min(920px, calc(100% - 68px));
  margin: 30px auto 70px;
}

.resource-uploader,
.resource-library,
.resource-result {
  background: #fff;
  border: 1px solid #d9d9d2;
  border-radius: 14px;
}

.resource-uploader {
  grid-template-columns: minmax(230px, .72fr) minmax(360px, 1.28fr);
  gap: 28px;
  padding: 26px;
  display: grid;
}

.resource-heading small,
.resource-library > header small {
  color: #9b7912;
  letter-spacing: .15em;
  font-size: 9px;
  font-weight: 800;
}

.resource-heading h2,
.resource-library > header h2 {
  letter-spacing: -.03em;
  margin: 8px 0;
  font-size: 24px;
  font-weight: 580;
}

.resource-heading p {
  color: #7d7d76;
  margin: 0;
  font-size: 11px;
  line-height: 1.8;
}

#resource-upload-form {
  min-width: 0;
}

.resource-dropzone {
  color: #696963;
  text-align: center;
  background: #f6f6f2;
  border: 1px dashed #c7c7bf;
  border-radius: 12px;
  place-items: center;
  min-height: 160px;
  padding: 24px;
  display: grid;
  transition: border-color .18s, background .18s;
}

.resource-dropzone:hover {
  background: #fbf8e9;
  border-color: #bc9419;
}

.resource-dropzone svg {
  fill: none;
  stroke: #9b7912;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 32px;
  height: 32px;
  margin-bottom: 11px;
}

.resource-dropzone b {
  color: #292925;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.resource-dropzone span {
  color: #92928b;
  margin-top: 5px;
  font-size: 9px;
}

.resource-upload-progress {
  background: #e8e8e2;
  border-radius: 4px;
  height: 5px;
  margin-top: 13px;
  position: relative;
}

.resource-upload-progress i {
  background: #f4c542;
  border-radius: inherit;
  width: 0;
  height: 100%;
  display: block;
  transition: width .15s;
}

.resource-upload-progress span {
  color: #777770;
  font-size: 9px;
  position: absolute;
  top: 9px;
  right: 0;
}

.resource-upload-button {
  color: #fff;
  background: #11110f;
  border: 0;
  border-radius: 9px;
  width: 100%;
  height: 44px;
  margin-top: 24px;
  font-size: 11px;
  font-weight: 750;
}

.resource-upload-button:hover:not(:disabled) {
  background: #292925;
}

.resource-result {
  align-items: center;
  gap: 15px;
  margin-top: 14px;
  padding: 16px 18px;
  display: flex;
}

.resource-success {
  color: #11110f;
  background: #f4c542;
  border-radius: 50%;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  display: grid;
}

.resource-result > div {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.resource-result small {
  color: #7f7f78;
  font-size: 8px;
}

.resource-result b {
  font-size: 12px;
}

.resource-result a {
  color: #7b600d;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  text-decoration: underline;
  overflow: hidden;
}

.resource-result button,
.resource-list button,
.resource-list a {
  color: #33332f;
  background: #f3f3ef;
  border: 1px solid #d8d8d1;
  border-radius: 8px;
  flex: none;
  padding: 8px 11px;
  font-size: 9px;
}

.resource-result > button {
  margin-left: auto;
}

.resource-library {
  margin-top: 14px;
  overflow: hidden;
}

.resource-library > header {
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 14px;
  display: flex;
}

.resource-library > header h2 {
  margin-bottom: 0;
  font-size: 20px;
}

.resource-library > header > b {
  color: #11110f;
  background: #f4c542;
  border-radius: 20px;
  min-width: 28px;
  padding: 6px 9px;
  font-size: 10px;
  text-align: center;
}

.resource-list article {
  border-top: 1px solid #e7e7e1;
  align-items: center;
  gap: 12px;
  min-height: 67px;
  padding: 11px 22px;
  display: flex;
}

.resource-type {
  color: #765c0c;
  background: #f5e9b5;
  border-radius: 7px;
  flex: none;
  min-width: 42px;
  padding: 7px 8px;
  font-size: 8px;
  font-weight: 750;
  text-align: center;
}

.resource-list article > div {
  gap: 4px;
  min-width: 0;
  margin-right: auto;
  display: grid;
}

.resource-list article > div b {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  overflow: hidden;
}

.resource-list article > div small {
  color: #92928b;
  font-size: 8px;
}

.resource-list a:hover,
.resource-list button:hover,
.resource-result button:hover {
  background: #f4c542;
  border-color: #f4c542;
}

.h5-project-work {
  padding: 30px 34px 70px;
}

.h5-project-list,
.h5-project-detail,
.h5-detail-top {
  background: #fff;
  border: 1px solid #d9d9d2;
  border-radius: 14px;
}

.h5-project-list > header {
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px;
  display: flex;
}

.h5-project-list > header small,
.h5-detail-top small {
  color: #9b7912;
  letter-spacing: .15em;
  font-size: 9px;
  font-weight: 800;
}

.h5-project-list h2,
.h5-detail-top h2 {
  letter-spacing: -.035em;
  margin: 7px 0 5px;
  font-size: 25px;
  font-weight: 580;
}

.h5-project-list > header p {
  color: #83837c;
  margin: 0;
  font-size: 10px;
}

#h5-create,
.h5-publish-button {
  color: #11110f;
  background: #f4c542;
  border: 0;
  border-radius: 9px;
  min-height: 42px;
  padding: 0 17px;
  font-size: 10px;
  font-weight: 750;
}

.h5-table-wrap {
  border-top: 1px solid #e3e3dd;
  overflow-x: auto;
}

.h5-table-wrap table {
  border-collapse: collapse;
  width: 100%;
  min-width: 940px;
  font-size: 10px;
}

.h5-table-wrap th {
  color: #7c7c76;
  background: #f4f4f0;
  padding: 13px 14px;
  font-size: 9px;
  font-weight: 650;
  text-align: left;
}

.h5-table-wrap td {
  border-top: 1px solid #e8e8e2;
  padding: 16px 14px;
  vertical-align: middle;
}

.h5-table-wrap tbody tr:hover {
  background: #fbfbf8;
}

.h5-table-wrap code {
  color: #5e5e58;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.h5-id,
.h5-actions button,
.h5-actions a {
  color: #765c0c;
  background: transparent;
  border: 0;
  padding: 3px;
  font-size: 9px;
  white-space: nowrap;
}

.h5-id {
  color: #a07800;
  font-weight: 750;
}

.h5-actions {
  align-items: center;
  gap: 6px;
  display: flex;
}

.h5-actions .danger {
  color: #b23b32;
}

.h5-empty {
  color: #888881;
  text-align: center;
  border-top: 1px solid #e3e3dd;
  padding: 74px 20px;
}

.h5-empty b {
  color: #454540;
  font-size: 13px;
}

.h5-empty p {
  margin: 7px 0 0;
  font-size: 10px;
}

.h5-detail-top {
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  padding: 20px 24px;
  display: flex;
}

#h5-back {
  color: #686861;
  background: transparent;
  border: 0;
  margin: 0 0 9px;
  padding: 0;
  font-size: 9px;
}

.h5-published,
.h5-draft {
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 9px;
  font-weight: 750;
}

.h5-published {
  color: #376829;
  background: #e9f5df;
}

.h5-draft {
  color: #75600e;
  background: #f6edc7;
}

.h5-project-detail {
  padding: 12px 30px 34px;
}

.h5-project-detail > section {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 0;
}

.h5-project-detail > section + section {
  border-top: 1px solid #e1e1db;
}

.h5-project-detail section > header h3 {
  margin: 0 0 21px;
  font-size: 14px;
  font-weight: 650;
}

.h5-fields {
  gap: 14px;
  display: grid;
}

.h5-fields label,
.h5-address,
.h5-file-row {
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 0;
  display: grid;
}

.h5-fields label > span,
.h5-address > span,
.h5-file-row > span {
  color: #363632;
  font-size: 10px;
  font-weight: 650;
  text-align: right;
}

.h5-fields input {
  color: #242421;
  background: #fff;
  border: 1px solid #d2d2cb;
  border-radius: 8px;
  width: 100%;
  height: 43px;
  padding: 0 13px;
  font-size: 11px;
}

.h5-fields input:disabled,
.h5-fields input:read-only {
  color: #8d8d86;
  background: #f4f4f0;
}

.h5-address {
  grid-template-columns: 110px minmax(0, 1fr) auto;
  min-height: 42px;
}

.h5-address a {
  color: #6c5610;
  overflow-wrap: anywhere;
  font-size: 10px;
}

.h5-address button {
  color: #71590d;
  background: transparent;
  border: 0;
  font-size: 9px;
}

.h5-file-row {
  grid-template-columns: 110px minmax(0, 1fr);
}

.h5-file-row > span em {
  color: #c73d34;
  font-style: normal;
}

.h5-file-row > label {
  background: #fafaf7;
  border: 1px dashed #c7c7bf;
  border-radius: 9px;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  margin: 0;
  padding: 12px 14px;
  display: flex;
}

.h5-file-row svg {
  fill: none;
  stroke: #90700e;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  width: 20px;
  height: 20px;
}

.h5-file-row b {
  overflow-wrap: anywhere;
  font-size: 10px;
}

.h5-file-row small {
  color: #8d8d86;
  grid-column: 2;
  font-size: 9px;
  line-height: 1.6;
}

.h5-publish-progress {
  background: #e8e8e2;
  border-radius: 5px;
  width: calc(100% - 124px);
  height: 5px;
  margin: 22px 0 0 124px;
  position: relative;
}

.h5-publish-progress i {
  background: #f4c542;
  border-radius: inherit;
  width: 0;
  height: 100%;
  display: block;
}

.h5-publish-progress span {
  color: #85857e;
  font-size: 8px;
  position: absolute;
  top: 9px;
  right: 0;
}

.h5-publish-button {
  width: calc(100% - 124px);
  margin: 28px 0 0 124px;
}

.h5-versions article {
  border-top: 1px solid #e7e7e1;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 0;
  display: flex;
}

.h5-versions article > span {
  color: #777770;
  background: #ecece7;
  border-radius: 5px;
  padding: 5px 7px;
  font-size: 8px;
}

.h5-versions article > span.current {
  color: #3b702d;
  background: #e6f3dc;
}

.h5-versions article > div {
  gap: 3px;
  min-width: 0;
  margin-right: auto;
  display: grid;
}

.h5-versions article b {
  overflow-wrap: anywhere;
  font-size: 10px;
}

.h5-versions article small {
  color: #909089;
  font-size: 8px;
}

.h5-versions article button,
.h5-versions article a {
  color: #735b0e;
  background: transparent;
  border: 0;
  padding: 5px;
  font-size: 9px;
  white-space: nowrap;
}

.progress-loading,
.progress-empty {
  color: #8b8b85;
  text-align: center;
  padding: 64px 20px;
  font-size: 12px;
}

.progress-work {
  padding: 30px 34px 70px;
}

.progress-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.progress-summary article {
  background: #fff;
  border: 1px solid #d9d9d2;
  border-radius: 13px;
  min-height: 118px;
  padding: 19px 20px;
  display: grid;
}

.progress-summary small {
  color: #8c8c86;
  font-size: 9px;
}

.progress-summary b {
  letter-spacing: -.04em;
  margin-top: 7px;
  font-size: 31px;
  font-weight: 540;
}

.progress-summary span {
  color: #8c8c86;
  align-self: end;
  font-size: 10px;
}

.cohort-progress {
  background: #fff;
  border: 1px solid #d9d9d2;
  border-radius: 13px;
  margin-top: 18px;
  overflow: hidden;
}

.cohort-progress-heading {
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  display: flex;
}

.cohort-progress-heading > div {
  gap: 4px;
  display: grid;
}

.cohort-progress-heading small {
  color: #9b7912;
  font-size: 8px;
  letter-spacing: .12em;
}

.cohort-progress-heading h2 {
  margin: 0;
  font-size: 15px;
}

.cohort-progress-heading p {
  color: #888881;
  margin: 0;
  font-size: 9px;
}

.cohort-progress-heading button {
  color: #292925;
  background: #f4c542;
  border: 0;
  border-radius: 8px;
  flex: none;
  height: 35px;
  padding: 0 13px;
  font-size: 9px;
  font-weight: 750;
}

.cohort-progress-table {
  border-top: 1px solid #e0e0da;
  overflow-x: auto;
}

.cohort-progress-table table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1260px;
  width: 100%;
  font-size: 9px;
  text-align: center;
}

.cohort-progress-table th,
.cohort-progress-table td {
  border-right: 1px solid #e7e7e1;
  border-bottom: 1px solid #e7e7e1;
  height: 42px;
  padding: 6px 9px;
}

.cohort-progress-table thead th {
  color: #777770;
  background: #f1f1ed;
  font-weight: 650;
  white-space: nowrap;
}

.cohort-progress-table thead tr:first-child th:nth-child(n+3) {
  color: #695100;
  background: #f7edbe;
}

.cohort-progress-table tbody th {
  background: #fafaf7;
  min-width: 120px;
  text-align: left;
  font-size: 10px;
  position: sticky;
  left: 0;
  z-index: 1;
}

.cohort-progress-table td b {
  font-size: 12px;
}

.cohort-progress-table td small {
  color: #999991;
  margin-left: 4px;
  font-size: 8px;
}

.cohort-progress-table td.not-configured {
  color: #b3b3ac;
  background: #fafaf8;
}

.cohort-progress-table tr:last-child th,
.cohort-progress-table tr:last-child td {
  border-bottom: 0;
}

.progress-filters {
  background: #e4e4df;
  border: 1px solid #d3d3cd;
  border-radius: 12px;
  grid-template-columns: minmax(130px, .8fr) minmax(180px, 1.25fr) minmax(130px, .8fr) minmax(180px, 1.25fr) auto;
  align-items: end;
  gap: 10px;
  margin: 18px 0 12px;
  padding: 13px;
  display: grid;
}

.progress-filters label {
  color: #696963;
  gap: 6px;
  font-size: 9px;
  display: grid;
}

.progress-filters select,
.progress-filters input {
  color: #292925;
  background: #fff;
  border: 1px solid #cecec7;
  border-radius: 8px;
  width: 100%;
  height: 39px;
  padding: 0 10px;
  font-size: 10px;
}

.progress-filters > button {
  color: #111;
  background: #f4c542;
  border: 0;
  border-radius: 8px;
  height: 39px;
  padding: 0 14px;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.progress-list {
  background: #fff;
  border: 1px solid #d9d9d2;
  border-radius: 13px;
  overflow: hidden;
}

.progress-list > header,
.progress-student > summary {
  grid-template-columns: minmax(190px, 1.8fr) minmax(105px, 1fr) 85px 85px minmax(145px, 1.2fr) 84px;
  align-items: center;
  gap: 12px;
  display: grid;
}

.progress-list > header {
  color: #8b8b85;
  background: #f1f1ed;
  min-height: 43px;
  padding: 0 18px;
  font-size: 9px;
}

.progress-student {
  border-top: 1px solid #e5e5df;
}

.progress-student:first-of-type {
  border-top: 0;
}

.progress-student > summary {
  cursor: pointer;
  list-style: none;
  min-height: 70px;
  padding: 10px 18px;
  font-size: 10px;
}

.progress-student > summary::-webkit-details-marker {
  display: none;
}

.progress-student > summary:hover {
  background: #fafaf7;
}

.progress-student > summary > span > b {
  font-size: 13px;
}

.progress-person {
  align-items: center;
  gap: 11px;
  display: flex;
}

.progress-person > i {
  color: #111;
  background: #f4c542;
  border-radius: 50%;
  flex: none;
  place-items: center;
  width: 35px;
  height: 35px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  display: grid;
}

.progress-person > b {
  gap: 4px;
  display: grid;
}

.progress-person small {
  color: #92928b;
  font-size: 9px;
  font-weight: 400;
}

.progress-student summary > em,
.progress-course-list article > header > span {
  border-radius: 20px;
  padding: 5px 8px;
  font-size: 8px;
  font-style: normal;
  text-align: center;
}

.progress-student summary > em.completed,
.progress-course-list article > header > span.completed {
  color: #5e4900;
  background: #f2df84;
}

.progress-student summary > em.in-progress,
.progress-course-list article > header > span.in-progress {
  color: #245f52;
  background: #dcece7;
}

.progress-student summary > em.not-started,
.progress-course-list article > header > span.not-started {
  color: #777;
  background: #e7e7e1;
}

.progress-course-list {
  background: #f2f2ee;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 18px 18px 64px;
  display: grid;
}

.progress-course-list > article {
  background: #fff;
  border: 1px solid #dcdcd6;
  border-radius: 11px;
  padding: 17px;
}

.progress-course-list article > header {
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  display: flex;
}

.progress-course-list article > header div {
  gap: 4px;
  display: grid;
}

.progress-course-list article > header small {
  color: #9b7912;
  font-size: 8px;
}

.progress-course-list article > header b {
  font-size: 12px;
}

.progress-bar {
  background: #e7e7e1;
  height: 2px;
  margin: 18px 0 14px;
  position: relative;
}

.progress-bar > i {
  background: #f4c542;
  width: var(--value);
  height: 100%;
  display: block;
}

.progress-bar > span {
  color: #888;
  font-size: 8px;
  position: absolute;
  top: -13px;
  right: 0;
}

.progress-sections {
  gap: 7px;
  display: grid;
}

.progress-sections > div {
  background: #f5f5f1;
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 10px;
  display: flex;
}

.progress-sections > div > i {
  color: #999;
  border: 1px solid #d2d2cc;
  border-radius: 50%;
  flex: none;
  place-items: center;
  width: 25px;
  height: 25px;
  font-size: 8px;
  font-style: normal;
  display: grid;
}

.progress-sections > div.completed > i {
  color: #111;
  background: #f4c542;
  border-color: #f4c542;
  font-weight: 800;
}

.progress-sections > div > span {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.progress-sections b {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  overflow: hidden;
}

.progress-sections small {
  color: #92928b;
  font-size: 8px;
}

@media (width <= 1050px) {
  .resource-uploader { grid-template-columns: 1fr; }
  .h5-project-work { padding: 24px 20px 60px; }
  .progress-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .progress-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .progress-filters > button { width: 120px; }
  .progress-list > header,
  .progress-student > summary { grid-template-columns: minmax(180px, 1.6fr) minmax(100px, 1fr) 80px 80px 76px; }
  .progress-list > header span:nth-child(5),
  .progress-student > summary > span:nth-child(5) { display: none; }
  .progress-course-list { grid-template-columns: 1fr; }
}

.order-work { padding: 32px 34px 70px; }
.order-panel { overflow: hidden; border: 1px solid #e9e5dc; border-radius: 18px; background: #fff; }
.order-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 26px; border-bottom: 1px solid #ece8df; }
.order-panel > header small { color: #ef6f43; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.order-panel > header h2 { margin: 5px 0; font-size: 23px; }
.order-panel > header p { margin: 0; color: #88847b; font-size: 12px; }
.order-channel-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 26px; color: #655f55; font-size: 12px; }
.order-channel-bar select { margin-left: 8px; padding: 7px 10px; border: 1px solid #ddd8ce; border-radius: 8px; background: #fff; }
.channel-links { display: grid; gap: 8px; }
.channel-links > div { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.channel-links code { overflow-wrap: anywhere; margin-right: auto; }
.channel-links button { border: 1px solid #ddd8ce; border-radius: 8px; background: #fff; padding: 7px 10px; cursor: pointer; }
#orders-refresh { border: 1px solid #ddd8ce; border-radius: 9px; background: #fff; padding: 9px 15px; }
.order-table-wrap { overflow-x: auto; }
.order-table-wrap table { width: 100%; min-width: 1120px; border-collapse: collapse; }
.order-table-wrap th { padding: 12px 14px; background: #f8f7f3; color: #77736a; font-size: 11px; text-align: left; }
.order-table-wrap td { padding: 15px 14px; border-top: 1px solid #efede7; color: #45423c; font-size: 12px; vertical-align: top; }
.order-table-wrap td b, .order-table-wrap td small, .order-table-wrap td code { display: block; }
.order-table-wrap td small { margin-top: 4px; color: #8d887f; font-size: 10px; }
.order-table-wrap td code { max-width: 210px; margin-top: 6px; overflow: hidden; color: #99948a; font-size: 9px; text-overflow: ellipsis; }
.order-table-wrap td strong { color: #e05231; font-size: 14px; }
.order-status { display: inline-flex; border-radius: 99px; background: #f0eee9; padding: 5px 9px; font-size: 10px; font-weight: 800; }
.order-status.status-paid, .order-status.status-success { background: #e7f7ed; color: #168149; }
.order-status.status-processing { background: #fff3d9; color: #a66a0c; }
.order-status.status-failed { background: #ffe9e4; color: #bd482f; }
.order-status.status-refunded { background: #e9eef5; color: #536579; }
.order-refund { border: 1px solid #efb9a8; border-radius: 8px; background: #fff5f1; color: #c84f2e; padding: 7px 10px; font-size: 11px; font-weight: 700; }

@media (width <= 620px) {
  .order-work { padding: 18px 14px 55px; }
  .order-panel > header { flex-direction: column; padding: 18px; }
  #orders-refresh { width: 100%; }
  .page-setting-grid { grid-template-columns: 1fr; }
  .purchase-image-row { grid-template-columns: 48px minmax(0, 1fr); }
  .purchase-image-actions { grid-column: 2; }
  .site-footer { flex-direction: column; gap: 4px; min-height: 88px; padding: 13px 16px; text-align: center; }
  .site-footer-links { flex-wrap: wrap; justify-content: center; gap: 3px 14px; }
  .home-page { padding-top: 15px; }
  .home-page .welcome { align-items: stretch; flex-direction: row; gap: 14px; padding: 17px 16px; }
  .home-page .welcome-copy { flex: 1; }
  .home-page .welcome-copy h1 { font-size: 20px; }
  .home-page .welcome-copy p { display: none; }
  .home-page .progress-card { width: 88px; }
  .home-page .progress-card b { font-size: 28px; }
  .home-page .progress-card span { font-size: 11px; }
  .home-page .section-head { margin-top: 28px; }
  .progress-work { padding: 18px 14px 55px; }
  .resource-work { width: auto; margin: 18px 14px 55px; }
  .resource-uploader { gap: 20px; padding: 18px; }
  .resource-result { align-items: flex-start; flex-wrap: wrap; }
  .resource-result > div { width: calc(100% - 52px); }
  .resource-result > button { width: 100%; margin-left: 0; }
  .resource-list article { flex-wrap: wrap; padding: 12px 15px; }
  .resource-list article > div { width: calc(100% - 56px); }
  .resource-list a,
  .resource-list button { flex: 1; text-align: center; }
  .section-insert { height: 38px; margin: -8px 0; }
  .section-insert span { display: none; }
  .section-insert button { padding: 7px 9px; opacity: 1; }
  .h5-project-work { padding: 18px 14px 55px; }
  .h5-project-list > header { align-items: stretch; flex-direction: column; padding: 18px; }
  #h5-create { width: 100%; }
  .h5-detail-top { padding: 16px 18px; }
  .h5-project-detail { padding: 8px 18px 28px; }
  .h5-fields label,
  .h5-address,
  .h5-file-row { grid-template-columns: 1fr; gap: 7px; }
  .h5-fields label > span,
  .h5-address > span,
  .h5-file-row > span { text-align: left; }
  .h5-address { grid-template-columns: 1fr auto; }
  .h5-address > span { grid-column: 1 / -1; }
  .h5-file-row small { grid-column: 1; }
  .h5-publish-progress,
  .h5-publish-button { width: 100%; margin-left: 0; }
  .h5-versions article { align-items: flex-start; flex-wrap: wrap; }
  .h5-versions article > div { width: calc(100% - 62px); }
  .progress-summary { gap: 8px; }
  .progress-summary article { min-height: 100px; padding: 15px; }
  .progress-summary b { font-size: 26px; }
  .cohort-progress-heading { align-items: flex-start; flex-direction: column; padding: 15px; }
  .cohort-progress-heading button { width: 100%; }
  .cohort-progress-table table { min-width: 1160px; }
  .progress-filters { grid-template-columns: 1fr; }
  .progress-filters > button { width: 100%; }
  .progress-list > header { display: none; }
  .progress-student > summary { grid-template-columns: minmax(150px, 1fr) 76px 68px; gap: 8px; padding: 10px 12px; }
  .progress-student > summary > span:nth-child(2),
  .progress-student > summary > span:nth-child(4),
  .progress-student > summary > span:nth-child(5) { display: none; }
  .progress-course-list { padding: 10px; }
  .video-player-shell.has-replay-controls .replay-video-frame video { max-height: calc(100vh - 186px); }
  .replay-controls { gap: 7px; padding: 8px; }
  .replay-controls > label > span { display: none; }
  .replay-controls select { padding-left: 8px; padding-right: 20px; }
  .replay-next { min-width: 88px; padding: 0 9px; }
  .course-learning-top { gap: 12px; padding: 0 14px; }
  .course-learning-top .back-link { width: 28px; font-size: 0; }
  .course-learning-top .back-link::before { content: '←'; font-size: 18px; }
  .course-context h1 { font-size: 14px; }
  .submission-form.simple .primary { width: 116px; }
  .project-submit-top { gap: 10px; padding-left: 11px; }
  .project-submit-top > div { align-items: flex-start; gap: 1px; flex-direction: column; }
  .project-submit-top .submission-form { flex: none; }
  .practice-page { height: calc(100vh - 137px); min-height: 480px; }
  .submit-guide-hand { right: 50%; transform: translate(50%, 12px) rotate(-8deg); }
  .submit-guide-hand.show { animation-name: submitGuideHandMobile; }
  .completion-modal > section { padding: 36px 24px 28px; }
}

@keyframes submitGuideHandMobile {
  0%, 100% { transform: translate(50%, 12px) rotate(-8deg); }
  50% { transform: translate(50%, 0) rotate(-8deg); }
}
