:root {
  --page-bg: #f5f5f5;
  --surface: #ffffff;
  --text: #1f2329;
  --muted: #626a77;
  --border: #e8e8e8;
  --green: #31b367;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--page-bg);
  color: var(--text);
  font-family: LarkHackSafariFont, LarkEmojiFont, LarkChineseQuote, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Tahoma, "PingFang SC", "Microsoft Yahei", Arial, "Hiragino Sans GB", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: #fff;
}

.home-root,
.home-body {
  min-height: 100%;
  overscroll-behavior-y: none;
}

.home-body {
  min-height: 100vh;
  min-height: 100dvh;
}

.home-page-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

body.comment-viewport-locked {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font-family: inherit;
}

.page-shell {
  position: relative;
  width: 100%;
  max-width: 760px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--surface);
  padding-bottom: 32px;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 16px;
  border-bottom: 1px solid rgb(232 232 232 / 70%);
  background: rgb(255 255 255 / 78%);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  /* box-shadow: 0 8px 24px rgb(31 35 41 / 6%); */
}

.course-detail-page .top-nav {
  padding: 0 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1f2329;
  font-size: 20px;
  font-weight: 700;
}

.brand-logo {
  display: block;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
}

.top-nav .brand-logo {
  display: none;
}

.brand-word-image {
  display: block;
  width: auto;
  height: 22px;
  flex: 0 0 auto;
  object-fit: contain;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-actions form {
  margin: 0;
  margin-left: 8px;
}

.language-toggle {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 34px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}

.language-toggle form {
  margin: 0;
}

.language-toggle button {
  height: 28px;
  padding: 0 13px;
  border-radius: 15px;
  color: #59606b;
  background: transparent;
  font-size: 14px;
  font-weight: 400;
}

.language-toggle .active {
  color: #fff;
  background: #1f2329;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #1f2329;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  overflow: hidden;
  outline: 0;
  box-shadow: none;
}

.avatar img,
.avatar .default-avatar-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-actions .avatar {
  margin-left: 3px;
}

.nav-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  color: #1f2329;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.nav-icon-button:hover,
.nav-icon-button:active,
.nav-icon-button:focus {
  color: #1f2329;
  background: transparent;
  outline: 0;
  box-shadow: none;
}

.nav-icon-button svg {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
}

.nav-notification-button {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -7px;
  right: -10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 10px;
  color: #fff;
  background: #f54a45;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.login-link,
.manager-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 13px;
  border-radius: 17px;
  color: #fff;
  background: #1f2329;
  font-size: 14px;
  font-weight: 400;
}

.login-link {
  margin-left: 6px;
}

.auth-shell {
  background: #f7f8fa;
}

.auth-panel {
  margin: 48px 20px 0;
  padding: 24px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.auth-panel h1 {
  margin: 0 0 10px;
  font-size: 24px;
}

.auth-panel p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  color: #4f5866;
  font-size: 14px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: 0;
  color: var(--text);
  background: #fff;
  font: inherit;
}

.auth-form input:focus {
  border-color: #1f2329;
}

.auth-form .primary-button {
  margin-top: 8px;
}

.phone-login-shell {
  min-height: 100dvh;
  padding-bottom: 0;
  background: #fff;
}

.phone-login-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 14px;
  background: #fff;
}

.phone-login-back {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 28px;
  height: 28px;
  color: #1f2329;
  font-size: 22px;
}

.phone-login-back svg {
  width: 1em;
  height: 1em;
}

.phone-login-content {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 56px);
  padding: 94px 18px 42px;
}

.phone-login-content h1 {
  margin: 0;
  color: #1f2329;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.35;
}

.phone-login-content > p {
  margin: 6px 0 0;
  color: #646a73;
  font-size: 15px;
  line-height: 1.5;
}

.phone-login-form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  margin-top: 28px;
}

.login-password-form {
  display: flex;
  flex-direction: column;
  margin-top: 28px;
}

.login-password-form .phone-login-next {
  margin-top: 28px;
}

.login-password-confirm-field {
  margin-top: 12px;
}

.login-code-alternate-form {
  display: flex;
  justify-content: center;
  margin-top: 72px;
}

.login-code-alternate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 172px;
  height: 52px;
  gap: 8px;
  padding: 0 22px;
  border: 1px solid #d9d9d9;
  border-radius: 26px;
  color: #1f2329;
  background: #fff;
  font-size: 17px;
  font-weight: 400;
}

.login-code-alternate-button svg {
  width: 22px;
  height: 22px;
  /* color: #3977e8; */
}

.login-code-alternate-button:active {
  background: #f7f8fa;
}

.phone-number-field {
  display: flex;
  align-items: center;
  width: 100%;
  height: 58px;
  padding: 0 13px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
}

.phone-number-field:focus-within {
  border-color: #1f2329;
}

.phone-country-code {
  flex: 0 0 auto;
  color: #1f2329;
  font-size: 18px;
  line-height: 1;
}

.phone-field-divider {
  width: 1px;
  height: 24px;
  margin: 0 18px 0 14px;
  background: #d9d9d9;
}

.phone-number-field input {
  min-width: 0;
  flex: 1 1 auto;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  color: #1f2329;
  background: transparent;
  font-size: 17px;
}

.phone-number-field input::placeholder {
  color: #b2b2b2;
}

.phone-login-next {
  width: 100%;
  height: 56px;
  margin-top: auto;
  border-radius: 6px;
  color: #fff;
  background: #1f2329;
  font-size: 18px;
  font-weight: 400;
  transition: background 0.16s ease;
}

.phone-login-next:disabled {
  cursor: default;
  background: #cdd1d6;
}

.verification-step {
  padding-top: 74px;
}

.verification-code-form {
  margin-top: 26px;
}

.verification-code-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.verification-code-input {
  width: min(13.4vw, 58px);
  height: min(13.4vw, 58px);
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid #d9d9d9;
  border-radius: 7px;
  outline: 0;
  color: #1f2329;
  background: #fff;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
  caret-color: #1f2329;
}

.verification-code-input:focus {
  border-color: #1f2329;
}

.verification-code-divider {
  width: 14px;
  height: 2px;
  flex: 0 0 auto;
  border-radius: 1px;
  background: #1f2329;
}

.flash-message {
  position: fixed;
  left: 50%;
  bottom: 34%;
  z-index: 80;
  max-width: min(78vw, 320px);
  padding: 10px 18px;
  border-radius: 999px;
  color: #fff;
  background: rgb(0 0 0 / 88%);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  text-align: center;
  transform: translate(-50%, 0);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.flash-message.hiding {
  opacity: 0;
  transform: translate(-50%, 8px);
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: 34%;
  z-index: 80;
  max-width: min(78vw, 320px);
  padding: 10px 18px;
  border-radius: 999px;
  color: #fff;
  background: rgb(0 0 0 / 88%);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.app-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hero-carousel {
  margin: 12px 12px 22px;
}

.hero-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  border-radius: 14px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.hero-track::-webkit-scrollbar {
  display: none;
}

.hero-card {
  display: block;
  flex: 0 0 100%;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  color: inherit;
  background: #f6f6f7;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  text-decoration: none;
  transform: translateZ(0);
}

.hero-media {
  position: relative;
  display: block;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 200px;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.hero-duration {
  position: absolute;
  right: 16px;
  bottom: 12px;
  padding: 0 6px;
  border-radius: 3px;
  color: #fff;
  background: rgb(31 35 41 / 68%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
}

.hero-text {
  min-width: 0;
  flex: 1 1 auto;
}

.hero-content h1 {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0 0 7px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}

.hero-title-text {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-tag,
.unpublished-tag,
.category-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  flex: 0 0 auto;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.featured-tag {
  color: rgb(6, 112, 98);
  background: rgba(51, 214, 192, 0.2);
}

.unpublished-tag {
  color: #c25705;
  background: rgba(255, 129, 26, 0.15);
}

.category-tag {
  color: #52545a;
  background: #e9eaea;
}

.hero-description {
  margin: 0;
  overflow: hidden;
  color: #646a73;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-meta {
  margin-top: 10px;
}

.learn-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid #1f2329;
  border-radius: 21px;
  color: #1f2329;
  font-size: 16px;
  font-weight: 400;
  background: #fff;
}

.learn-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-top: 8px;
}

.hero-dot {
  width: 14px;
  height: 4px;
  border-radius: 999px;
  background: #dfe0e3;
  transition: background 0.2s ease, width 0.2s ease;
}

.hero-dot.active {
  width: 12px;
  background: #1f2329;
}

.room-section {
  padding: 0 12px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title-row h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.section-title-row a {
  color: #161a22;
  font-size: 16px;
}

.section-title-row span {
  font-size: 28px;
  line-height: 0;
  vertical-align: -2px;
}

.room-tabs {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  margin: 14px 0;
  margin-bottom: 4px;
  padding-right: 12px;
  touch-action: pan-x;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.room-tabs::-webkit-scrollbar {
  display: none;
}

.room-tabs button {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 13px;
  border-radius: 21px;
  color: #91919a;
  background: transparent;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.34s cubic-bezier(0.22, 1, 0.36, 1), background 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.room-tabs button.active {
  color: #1f2329;
  background: #f6f6f7;
  font-weight: 500;
}

.room-swipe-area {
  touch-action: pan-x pan-y;
}

.room-tab-viewport {
  width: calc(100% + 24px);
  margin-right: -12px;
  margin-left: -12px;
  overflow: hidden;
  transition: height 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.room-tab-content {
  display: flex;
  align-items: flex-start;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.room-panel {
  display: block;
  min-width: 0;
  flex: 0 0 100%;
  padding: 0 12px;
}

.room-panel.active {
  display: block;
}

.course-list {
  display: grid;
}

.infinite-scroll-sentinel {
  display: grid;
  height: 1px;
  place-items: center;
}

.infinite-scroll-sentinel.loading {
  height: 34px;
}

.infinite-scroll-sentinel.loading::after {
  width: 16px;
  height: 16px;
  border: 1.5px solid #dfe0e3;
  border-top-color: #646a73;
  border-radius: 50%;
  content: "";
  animation: infinite-scroll-spin 0.7s linear infinite;
}

@keyframes infinite-scroll-spin {
  to {
    transform: rotate(360deg);
  }
}

.course-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 14px;
  padding: 18px 0;
  border-bottom: .7px solid rgb(232 232 232 / 75%);
}

.course-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 0;
  width: min(100vw, 760px);
  background: transparent;
  pointer-events: none;
  transform: translateX(-50%);
}

.course-card > * {
  position: relative;
  z-index: 1;
}

.course-card.long-pressing::before,
.course-card.is-opening::before {
  background: #f6f6f7;
}

.course-card.just-published-highlight::before {
  background: #fffcf3;
  opacity: 1;
  transition: opacity 0.38s ease;
}

.course-card.just-published-highlight.fading::before {
  opacity: 0;
}

.course-list:has(.course-list-end) .course-card:nth-last-child(2) {
  border-bottom: 0;
}

.course-list:has(.infinite-scroll-sentinel) .course-card:nth-last-child(3) {
  border-bottom: 0;
}

.course-list-end {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 0 10px;
  color: #00000059;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
}

.course-list-end[hidden] {
  display: none;
}

.course-list-end::before,
.course-list-end::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background: rgb(232 232 232 / 75%);
}

.course-copy {
  min-width: 0;
}

.course-copy h3 {
  margin: 0 0 8px;
  overflow: hidden;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-copy p {
  margin: 0 0 12px;
  overflow: hidden;
  color: #646a73;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-footer {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  color: #00000059;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}

.course-category-meta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  margin-left: 10px;
  color: #ce9a35;
  font-size: inherit;
  font-weight: inherit;
}

.course-category-meta svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.publisher-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin-right: 6px;
  overflow: hidden;
  border-radius: 50%;
  background: transparent;
}

.publisher-avatar img,
.publisher-avatar .default-avatar-icon {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.publisher-avatar .default-avatar-icon {
  transform: scale(1.045);
}

.publisher-identity {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.publisher-identity-link,
.publisher-avatar-link {
  cursor: pointer;
}

.publisher-identity-link:focus-visible,
.publisher-avatar-link:focus-visible {
  outline: 2px solid #1c5bed;
  outline-offset: 2px;
}

.publisher-name {
  overflow: hidden;
  max-width: 72px;
  color: #00000059;
  text-overflow: ellipsis;
}

.course-footer-divider {
  width: 1px;
  height: 12px;
  flex: 0 0 1px;
  margin: 0 10px;
  background: #dfe0e3;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 4px;
  color: var(--green);
  background: #dff5e8;
  font-weight: 700;
}

.pin-tag {
  color: #b45309;
  background: #fef3c7;
}

.date {
  color: #00000059;
}

.course-thumb {
  position: relative;
  width: 100px;
  height: 86.7px;
  overflow: hidden;
  border-radius: 8px;
}

.course-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-duration {
  position: absolute;
  right: 6px;
  bottom: 6px;
  height: 22px;
  padding: 0 6px;
  border-radius: 3px;
  color: #fff;
  background: rgb(31 35 41 / 68%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 400;
  line-height: 22px;
}

.empty-state {
  padding: 38px 0;
  color: #7c8491;
  text-align: center;
  font-size: 15px;
}

.room-panel .empty-state {
  display: flex;
  min-height: 280px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}

.room-panel .empty-state::before {
  content: "";
  display: block;
  width: min(36vw, 132px);
  aspect-ratio: 1;
  background: url("./暂无内容.png") center / contain no-repeat;
}

.profile-share-empty {
  gap: 16px;
}

.profile-share-empty-button {
  max-width: 100%;
  padding: 9px 20px;
  overflow: hidden;
  border: 1px solid rgb(31 35 41 / 10%);
  border-radius: 21px;
  color: #1f2329;
  background: #fff;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.admin-panel,
.detail-content {
  margin: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
}

.admin-panel {
  padding: 18px 16px;
}

.admin-panel h1,
.detail-content h1 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.admin-panel p,
.detail-content p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.admin-form {
  display: grid;
  gap: 12px;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: #4f5866;
  font-size: 14px;
  font-weight: 700;
}

.category-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.category-field legend {
  width: 100%;
  margin-bottom: 7px;
  color: #4f5866;
  font-size: 14px;
  font-weight: 700;
}

.category-field label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1f2329;
  font-size: 14px;
  font-weight: 400;
}

.category-field input {
  accent-color: #1f2329;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: 0;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-weight: 400;
}

.admin-form textarea {
  resize: vertical;
}

.admin-form .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfbfb;
}

.admin-form .checkbox-label input {
  width: 16px;
  height: 16px;
  padding: 0;
  accent-color: #1f2329;
}

.admin-form .checkbox-label span {
  color: #303642;
  font-size: 14px;
  font-weight: 700;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 22px;
  font-weight: 800;
}

.primary-button {
  color: #fff;
  background: #1f2329;
}

.secondary-button {
  margin-top: 10px;
  border: 1px solid #1f2329;
  color: #1f2329;
  background: #fff;
}

.home-add-button {
  --home-add-size: 52px;
  position: fixed;
  right: 18px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--home-add-size);
  height: var(--home-add-size);
  padding: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 8px 18px rgb(28 91 237 / 24%), 0 2px 6px rgb(31 35 41 / 12%);
  -webkit-tap-highlight-color: transparent;
}

.home-add-button svg {
  display: block;
  width: var(--home-add-size);
  height: var(--home-add-size);
  flex: 0 0 auto;
  border-radius: 50%;
}

.home-add-button:focus {
  outline: 0;
  box-shadow: 0 8px 18px rgb(28 91 237 / 24%), 0 2px 6px rgb(31 35 41 / 12%);
}

.home-add-button:active {
  transform: scale(0.96);
}

.course-create-root {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  background: #fff;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

.course-create-body {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  background: #fff;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}

.course-create-page {
  width: 100%;
  max-width: 760px;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 56px 20px 112px;
  background: #fff;
  overflow-x: hidden;
  overflow-x: clip;
}

.course-create-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  width: auto;
  max-width: 760px;
  min-height: 56px;
  margin: 0 auto;
  padding: 0 14px;
  border-bottom: 0;
  background: #fff;
}

.course-create-nav h1 {
  margin: 0;
  color: #202429;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.course-create-back {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 28px;
  height: 28px;
  color: #202429;
  font-size: 22px;
  -webkit-tap-highlight-color: transparent;
}

.course-create-back:focus {
  outline: 0;
}

.course-create-back svg {
  width: 1em;
  height: 1em;
}

.course-create-form {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-top: 20px;
}

.course-create-notice {
  margin: 0 -20px;
}

.course-create-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  text-align: left;
}

.course-create-field {
  display: grid;
  gap: 7px;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  margin: 0 0 20px;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid #e2e4e5;
  text-align: left;
}

.course-create-editor {
  width: 100%;
  min-height: clamp(320px, 48vh, 430px);
  margin: 0;
  padding: 0 0 20px;
  text-align: left;
}

.course-cover-picker {
  position: relative;
  display: inline-flex;
  width: 92px;
  height: 92px;
  margin-bottom: 24px;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
  color: #c9c9c9;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.course-cover-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.course-cover-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #c9c9c9;
}

.course-cover-plus svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.course-cover-picker.has-image .course-cover-plus {
  display: none;
}

.course-create-title,
.course-create-description,
.course-create-document {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
}

.course-create-title span,
.course-create-description span,
.course-create-document span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.course-create-title input,
.course-create-description textarea,
.course-create-document input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: #1f2329;
  background: transparent;
  font: inherit;
  font-weight: 400;
  text-align: left;
}

.course-create-title input {
  height: 36px;
  font-size: 18px;
  font-weight: 500;
  line-height: 36px;
}

.course-create-description textarea {
  min-height: 88px;
  margin-top: 2px;
  resize: none;
  font-size: 18px;
  line-height: 1.55;
}

.course-create-document input {
  height: 36px;
  margin-top: 6px;
  font-size: 18px;
  line-height: 36px;
}

.course-create-title input::placeholder,
.course-create-description textarea::placeholder,
.course-create-document input::placeholder {
  color: #c9c9c9;
  font-weight: 400;
}

.course-create-title input::placeholder {
  font-size: 18px;
  font-weight: 500;
}

.course-create-description textarea::placeholder {
  font-size: 18px;
}

.course-create-document input::placeholder {
  font-size: 18px;
}

.course-create-field.field-last {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.course-create-field > span,
.course-create-field legend {
  margin: 0;
  padding: 0;
  color: #1f2329;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.course-create-field input,
.course-create-field textarea {
  display: block;
  width: 100%;
  min-height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: #1f2329;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
}

.course-create-field textarea {
  resize: none;
}

.course-create-field input::placeholder,
.course-create-field textarea::placeholder {
  color: #b2b2b2;
  font-size: 16px;
  font-weight: 400;
}

.course-create-field input[type="file"] {
  color: #646a73;
  font-size: 14px;
}

.course-create-category {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0 0 14px;
  padding: 0 0 18px;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
}

.course-create-category legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.course-create-category-options {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 10px 8px;
  justify-content: flex-start;
}

.course-create-category-options label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #3f4248;
  background: #f5f5f5;
  font-size: 16px;
  font-weight: 400;
  text-align: left;
}

.course-create-category-options label span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 30px;
}

.course-create-category-options label svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.course-create-category-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.course-create-category-options input:checked + span {
  font-weight: 400;
}

.course-create-category-options label:has(input:checked) {
  color: #fff;
  background: #1f2329;
}

.course-create-minutes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
  min-height: 34px;
  margin-bottom: 22px;
  padding-bottom: 0;
  border-bottom: 0;
  color: #1f2329;
  background: transparent;
  text-align: left;
}

.course-create-minutes > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 18px;
  line-height: 1.4;
}

.course-create-minutes > span svg {
  flex: 0 0 auto;
  color: #646A73;
}

.course-create-minutes-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex: 0 0 auto;
  height: 34px;
  min-height: 34px;
  padding: 0;
  color: #1f2329;
  background: transparent;
  font-size: 18px;
  line-height: 34px;
  text-align: right;
}

.course-create-minutes-trigger svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #b2b2b2;
}

[data-course-minutes-hidden] {
  display: none;
}

.course-create-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 12;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 20px calc(25px + env(safe-area-inset-bottom));
  background: #fff;
}

.course-create-submit {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border-radius: 8px;
  color: #fff;
  background: #1f2329;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  transition: background 0.16s ease;
}

.course-create-submit.is-disabled {
  color: #c4c7cc;
  background: #f2f3f5;
}

.course-create-submit:active {
  opacity: 0.82;
  transform: scale(0.99);
}

.course-create-submit.is-disabled:active {
  opacity: 1;
  transform: none;
}

.admin-list {
  padding-bottom: 24px;
}

.admin-course-card {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.pinned-course {
  padding-left: 10px;
  border-left: 3px solid #f59e0b;
  background: #fffaf0;
}

.admin-actions,
.inline-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-actions form,
.inline-admin-actions form {
  margin: 0;
}

.admin-actions button,
.inline-admin-actions button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 17px;
  color: #1f2329;
  background: #eef1f5;
  font-size: 13px;
  font-weight: 700;
}

.admin-actions .danger-button,
.inline-admin-actions .danger-button {
  color: #d92d20;
  background: #fff0ee;
}

.admin-page {
  padding-top: 56px;
  padding-bottom: 40px;
}

.admin-nav {
  padding: 0 14px;
}

.admin-nav-searching {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
}

.admin-nav-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: 28px;
  height: 28px;
  color: #202429;
  font-size: 22px;
  -webkit-tap-highlight-color: transparent;
}

.admin-nav-search:focus {
  outline: 0;
}

.admin-nav-search svg {
  width: 1em;
  height: 1em;
}

.admin-nav-search-form {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 44px;
  padding: 0 12px 0 8px;
  border: .5px solid rgb(31 35 41 / 8%);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 18px rgb(31 35 41 / 5%);
}

.admin-nav-search-form input {
  height: 100%;
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  outline: 0;
  color: #1f2329;
  background: transparent;
  font-size: 16px;
  line-height: 22px;
}

.admin-module {
  margin: 12px 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  padding: 0;
}

.admin-module h1 {
  margin: 0 0 14px;
  color: #1f2329;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
}

.admin-module p {
  color: #646a73;
  font-size: 14px;
  font-weight: 400;
}

.admin-readonly-note {
  color: #00000059;
  font-size: 14px;
  line-height: 1.5;
}

.profile-page {
  padding-top: 56px;
  padding-bottom: 40px;
  background: #fff;
}

.profile-nav {
  padding: 0 14px;
}

.profile-hero {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 14px;
  padding: 18px 12px 12px;
  color: #1f2329;
  background: transparent;
  text-align: left;
}

.profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 50%;
  overflow: hidden;
  background: #e7e7ec;
  line-height: 1;
}

.profile-avatar img,
.profile-avatar .default-avatar-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-identity {
  min-width: 0;
  flex: 1 1 auto;
}

.profile-identity h2 {
  margin: 0 0 6px;
  overflow: hidden;
  color: #1f2329;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-identity p {
  margin: 0;
  color: #00000059;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.profile-level {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #2b49ff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.profile-level-expert {
  color: #8a6900;
}

.profile-level-star {
  color: #785bf6;
}

.profile-level-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.profile-details-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  color: #646a73;
  font-size: 18px;
}

.profile-details-arrow svg {
  width: 1em;
  height: 1em;
}

.profile-avatar-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.profile-detail-row {
  justify-content: space-between;
  text-decoration: none;
}

.profile-detail-value {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  color: #646a73;
}

.profile-detail-avatar {
  display: inline-flex;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border-radius: 50%;
  background: #e7e7ec;
}

.profile-detail-avatar img,
.profile-detail-avatar .default-avatar-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-detail-nickname {
  overflow: hidden;
  max-width: 180px;
  color: #646a73;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-detail-achievement {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  color: #646a73;
  white-space: nowrap;
}

.profile-detail-achievement-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.profile-detail-row .profile-detail-value > svg {
  width: 18px;
  height: 18px;
  color: #b2b2b2;
}

.profile-history-card {
  text-decoration: none;
}

.profile-history-page .admin-list {
  padding-top: 10px;
}

.profile-tabs-section {
  padding: 0 12px 28px;
}

.achievement-page {
  min-height: 100vh;
  padding-top: 56px;
  padding-bottom: calc(36px + env(safe-area-inset-bottom));
  background: #fff;
}

.achievement-nav {
  padding: 0 14px;
}

.achievement-hero {
  display: flex;
  min-height: 248px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 28px;
  /* border-bottom: 1px solid #f1f1f1; */
  background: #f7f8fa;
  text-align: center;
}

.achievement-hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #fff;
  /* box-shadow: 0 8px 24px rgb(31 35 41 / 8%); */
  perspective: 320px;
}

.achievement-hero-gem {
  width: 64px;
  height: 64px;
  animation: achievementGemBreath 2.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
  transform: translateY(4px);
  will-change: transform, filter;
}

@keyframes achievementGemBreath {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgb(51 112 255 / 0%));
    transform: translateY(4px) scale(1);
  }

  50% {
    filter: drop-shadow(0 8px 14px rgb(51 112 255 / 22%));
    transform: translateY(4px) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .achievement-hero-gem {
    animation: none;
  }
}

.achievement-hero p,
.achievement-hero span {
  margin: 0;
  color: #646a73;
  font-size: 16px;
  line-height: 1.5;
}

.achievement-hero h2 {
  margin: 4px 0 6px;
  color: #1f2329;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.achievement-progress,
.achievement-levels {
  padding: 24px 16px 0;
}

.achievement-progress > h2,
.achievement-levels > h2 {
  margin: 0 0 14px;
  color: #1f2329;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.achievement-stat-grid {
  display: grid;
  overflow: hidden;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #f1f1f1;
  border-radius: 12px;
}

.achievement-stat-grid > div {
  display: flex;
  min-height: 84px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
}

.achievement-stat-grid > div:nth-child(odd) {
  border-right: 1px solid #f1f1f1;
}

.achievement-stat-grid > div:nth-child(n + 3) {
  border-top: 1px solid #f1f1f1;
}

.achievement-stat-grid strong {
  color: #1f2329;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

.achievement-stat-grid span {
  margin-top: 4px;
  color: #646a73;
  font-size: 14px;
  line-height: 1.4;
}

.achievement-level-list {
  display: grid;
  gap: 10px;
}

.achievement-level-item {
  display: flex;
  align-items: center;
  min-height: 88px;
  gap: 14px;
  padding: 6px 12px;
  border: 1px solid #e8e9eb;
  border-radius: 12px;
  background: #fff;
}

.achievement-level-item.current {
  border-color: #547CDA;
  background: #f7f8fa;
}

.achievement-level-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
}

.achievement-icon {
  width: 44px;
  height: 44px;
}

.achievement-level-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.achievement-level-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.achievement-level-heading h3 {
  margin: 0;
  color: #1f2329;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.achievement-level-heading span {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 4px;
  color: #1A1E6B;
  background: #DEE0F8;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.achievement-level-copy p {
  margin: 4px 0 0;
  color: #646a73;
  font-size: 14px;
  line-height: 1.5;
}

.achievement-activity-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  padding: 12px;
  border-radius: 8px;
  color: #646a73;
  background: #f7f8fa;
  font-size: 14px;
  line-height: 1.55;
}

.achievement-activity-note svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.notifications-page {
  padding-top: 56px;
  padding-bottom: 40px;
}

.notifications-nav {
  padding: 0 14px;
}

.notifications-tabs-section {
  padding: 0 12px 28px;
}

.notifications-tabs {
  position: sticky;
  top: 56px;
  z-index: 5;
  display: flex;
  gap: 8px;
  width: calc(100% + 24px);
  max-width: none;
  margin: 0 -12px 4px;
  padding: 8px 12px;
  background: #fff;
}

.notifications-tabs button {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 13px;
  border-radius: 21px;
  color: #91919a;
  background: transparent;
  font-size: 16px;
  font-weight: 400;
}

.notifications-tabs button.active {
  color: #1f2329;
  background: #f6f6f7;
  font-weight: 500;
}

.notification-tab-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 10px;
  color: #fff;
  background: #f54a45;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.notification-list,
.notification-comment-list {
  padding-bottom: 24px;
}

.notification-card {
  align-items: center;
  color: inherit;
}

.notification-card.unread {
  background: #fffcf3;
}

.notification-list .notification-card.unread {
  width: calc(100% + 24px);
  margin-right: -12px;
  margin-left: -12px;
  padding-right: 12px;
  padding-left: 12px;
}

.notification-actor {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  margin: 0 0 8px;
  color: #1f2329;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.notification-actor .publisher-avatar {
  margin-right: 6px;
}

.notification-action {
  overflow: hidden;
  color: #646a73;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-comment-main {
  min-width: 0;
}

.notification-list:not(.notification-comment-list) .course-thumb {
  width: 56px;
  height: 42px;
  justify-self: end;
  border-radius: 4px;
}

.notification-list:not(.notification-comment-list) .notification-card {
  grid-template-columns: minmax(0, 1fr) 58px;
}

.notification-comment-list .course-thumb {
  height: 64px;
}

.profile-tabs {
  position: sticky;
  top: 56px;
  z-index: 5;
  width: calc(100% + 24px);
  max-width: none;
  margin: 10px -12px 4px;
  padding: 8px 12px;
  background: #fff;
}

.profile-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
}

.profile-tabs svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.profile-comment-list {
  display: grid;
}

.profile-comment-card {
  display: block;
  color: inherit;
}

.profile-tabs-section .course-list .course-copy h3 {
  display: flex;
  align-items: center;
  min-width: 0;
}

.profile-tabs-section .course-list .course-copy h3 > span:first-child {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-tabs-section .course-list .course-category-meta {
  margin-left: 0;
}

.profile-tabs-section [data-profile-action-type="liked"] .course-category-meta {
  margin-left: 10px;
}

.profile-share-stats {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  margin-left: 10px;
  padding-left: 10px;
  color: #00000059;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
}

.profile-share-stats::before {
  position: absolute;
  left: 0;
  width: 1px;
  height: 12px;
  flex: 0 0 1px;
  background: #dfe0e3;
  content: "";
}

.profile-share-stats > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.profile-share-stats svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

[data-profile-action-item] {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

[data-owned-share-item] {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

[data-owned-share-item] img {
  -webkit-user-drag: none;
  user-select: none;
}

[data-owned-share-item].long-pressing {
  background: #f6f6f7;
}

[data-profile-action-item].long-pressing {
  background: #f6f6f7;
}

.profile-comment-list:has(.course-list-end) .profile-comment-card:nth-last-child(2) {
  border-bottom: 0;
}

.profile-comment-list:has(.infinite-scroll-sentinel) .profile-comment-card:nth-last-child(3) {
  border-bottom: 0;
}

.profile-comment-main {
  padding-bottom: 12px;
}

.profile-comment-content {
  margin: 0 0 8px;
  color: #1f2329;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

.profile-comment-time {
  color: #00000059;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.profile-comment-course {
  display: grid;
  grid-template-columns: 1fr 86px;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f6f6f7;
}

.profile-comment-course .course-copy h3 {
  font-size: 18px;
  line-height: 1.35;
}

.profile-comment-course .course-copy p {
  margin-bottom: 10px;
  font-size: 16px;
}

.profile-comment-course .course-footer {
  font-size: 14px;
}

.profile-comment-course .course-thumb {
  width: 86px;
}

.admin-account-list {
  display: flex;
  gap: 4px;
  margin-top: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.admin-account-list::-webkit-scrollbar {
  display: none;
}

.admin-account-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 64px;
  flex: 0 0 64px;
  color: #1f2329;
  font-size: 12px;
  text-align: center;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

.admin-account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: #3370ff;
  font-size: 14px;
}

.admin-account-super .admin-account-avatar {
  background: #1f2329;
}

.admin-account-avatar img,
.admin-account-avatar .default-avatar-icon {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.admin-account-avatar .default-avatar-icon {
  transform: scale(1.045);
}

.admin-account-add {
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
}

.admin-account-add .admin-account-avatar {
  background: transparent;
}

.admin-account-add svg {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.admin-account-name {
  overflow: hidden;
  width: 64px;
  color: #00000059;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-account-add .admin-account-name {
  width: 72px;
}

.admin-section-title {
  align-items: flex-start;
  margin-bottom: 4px;
}

.admin-section-title h2 {
  margin: 0;
  color: #1f2329;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
}

.admin-section-title p {
  margin: 4px 0 0;
  color: #00000059;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.admin-manage-card {
  position: relative;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.admin-manage-card,
.admin-manage-card * {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.admin-manage-card.long-pressing {
  background: #f6f6f7;
}

.admin-manage-card.pinned-course {
  width: calc(100% + 24px);
  margin-right: -12px;
  margin-left: -12px;
  padding-right: 12px;
  padding-left: 12px;
  border-bottom: 0;
  border-left: 0;
  background: #fffcf3;
}

.admin-manage-card.pinned-course::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  z-index: 2;
  height: .7px;
  background: rgb(232 232 232 / 75%);
  pointer-events: none;
}

.course-list:has(.course-list-end) .admin-manage-card.pinned-course:nth-last-child(2)::after {
  display: none;
}

.course-list:has(.infinite-scroll-sentinel) .admin-manage-card.pinned-course:nth-last-child(3)::after {
  display: none;
}

.admin-manage-card .course-copy h3 {
  display: flex;
  align-items: center;
  min-width: 0;
}

.admin-manage-card .course-copy h3 > span:first-child {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-manage-card .course-category-meta {
  color: #ce9a35;
}

.admin-action-sheet form {
  margin: 0;
}

.admin-action-sheet .owner-share-edit-group > form:not([hidden]) {
  border-top: 0;
}

.admin-action-sheet .owner-share-edit-group > form:not([hidden]) > .comment-action-row {
  border-top: 1px solid rgb(223 224 227 / 40%);
}

.admin-add-sheet {
  padding-top: 12px;
  padding-bottom: max(16px, calc(16px + env(safe-area-inset-bottom)));
  background: #f6f6f4;
}

.admin-add-sheet::after {
  content: "";
  position: absolute;
  top: calc(100% - 1px);
  right: 0;
  left: 0;
  height: 100vh;
  background: #f6f6f4;
}

.admin-search-page {
  padding: 56px 0 40px;
  background: #fff;
}

.admin-search-bar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: 760px;
  min-height: 56px;
  margin: 0 auto;
  padding: 0 14px;
  background: #fff;
}

.admin-search-field {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 44px;
  padding: 0 12px 0 8px;
  border: .5px solid rgb(31 35 41 / 8%);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 18px rgb(31 35 41 / 5%);
}

.admin-search-field input {
  height: 100%;
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  outline: 0;
  color: #1f2329;
  background: transparent;
  font-size: 16px;
  line-height: 22px;
}

.admin-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  padding: 0;
  color: #646a73;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}

.admin-search-clear {
  color: #b2b2b2;
}

.admin-search-clear svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.admin-search-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  flex: 0 0 auto;
  padding: 0 0 0 10px;
  color: #17191E;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.admin-search-clear + .admin-search-action {
  position: relative;
  margin-left: 4px;
  padding-left: 0;
}

.admin-search-clear + .admin-search-action::before {
  content: "";
  width: 1px;
  height: 14px;
  margin-right: 8px;
  background: rgb(31 35 41 / 12%);
}

.admin-search-suggestions {
  padding: 0 18px 0;
}

.admin-search-suggestions h2 {
  margin: 8px 0 12px;
  color: #1f2329;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.admin-search-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-search-chip-row a {
  max-width: 100%;
  padding: 7px 12px;
  overflow: hidden;
  border: 1px solid rgb(31 35 41 / 10%);
  border-radius: 18px;
  color: #1f2329;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-search-guess-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
}

.admin-search-guess-grid a {
  overflow: hidden;
  color: #1f2329;
  font-size: 15px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-search-results {
  padding-top: 0;
}

.public-search-results-page .admin-list {
  padding-top: 10px;
}

.public-search-empty-wrap {
  min-height: calc(100vh - 120px);
  overflow: visible;
  padding: 0;
}

.search-history-empty-wrap {
  width: 100%;
  min-height: 280px;
}

.detail-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 398 / 200;
  object-fit: cover;
}

.detail-content {
  padding: 18px 16px 20px;
}

.detail-content .tag {
  margin-bottom: 12px;
}

.detail-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: #5f6874;
  font-size: 14px;
}

.detail-content .primary-button,
.detail-content .secondary-button {
  width: 100%;
}

.inline-admin-actions {
  margin: 0 20px 28px;
}

.inline-admin-actions form,
.inline-admin-actions button {
  flex: 1;
}

html.reader-page,
.reader-body {
  overflow: hidden;
  background: #fff;
}

.reader-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  background: #fff;
}

.reader-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 14px;
  /* border-bottom: 1px solid #dfe0e3; */
  background: #fff;
  z-index: 2;
}

.reader-back {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  justify-self: start;
  min-width: 0;
  min-height: 34px;
  padding: 0;
  color: #1f2329;
  background: transparent;
  font-size: 18px;
  font-weight: 400;
  white-space: nowrap;
}

.reader-back span {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.reader-back svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.reader-language-toggle {
  height: 32px;
}

.reader-language-toggle button {
  height: 26px;
  padding: 0 10px;
  font-size: 16px;
  font-weight: 400;
}

.reader-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.reader-action-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 34px;
  height: 34px;
  padding: 0 2px;
  color: #1f2329;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.reader-action-button:hover,
.reader-action-button:active,
.reader-action-button:focus {
  color: #1f2329;
  background: transparent;
  outline: 0;
  box-shadow: none;
}

.reader-action-button svg {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
}

.reader-action-button.liked svg {
  color: #fe3055;
}

.reader-action-button span {
  color: #1f2329;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.reader-action-button .reader-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  font-size: 22px;
  line-height: 1;
}

.reader-action-button.like-celebrating .reader-action-icon {
  animation: like-icon-pop 0.46s cubic-bezier(0.2, 1.35, 0.4, 1);
}

.like-confetti {
  position: absolute;
  top: 50%;
  left: 13px;
  z-index: 3;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.like-confetti i {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 8px;
  border-radius: 1px;
  opacity: 0;
  animation: like-confetti-burst 0.68s cubic-bezier(0.16, 0.8, 0.3, 1) var(--confetti-delay) both;
}

@keyframes like-icon-pop {
  0% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.34) rotate(-8deg);
  }

  72% {
    transform: scale(0.92) rotate(3deg);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes like-confetti-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) rotate(0);
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform:
      translate(
        calc(-50% + var(--confetti-x)),
        calc(-50% + var(--confetti-y))
      )
      scale(0.9)
      rotate(var(--confetti-rotate));
  }
}

@media (prefers-reduced-motion: reduce) {
  .reader-action-button.like-celebrating .reader-action-icon {
    animation: none;
  }

  .like-confetti {
    display: none;
  }
}

.reader-frame-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #f5f6f8;
}

.lark-document-notice {
  flex: 0 0 auto;
  padding: 10px 16px;
  color: #1f2329;
  background: #f8f8f6;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.reader-document-wrap {
  padding: 16px;
  overflow: auto;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.lark-document-card {
  display: block;
  width: 100%;
  padding: 16px;
  border: 1px solid #D1D3D6;
  border-radius: 12px;
  color: #1f2329;
  background: #fff;
  text-decoration: none;
  transition: background 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.lark-document-card:hover,
.lark-document-card:active,
.lark-document-card:focus-visible {
  background: #f3f3f5;
}

.lark-document-card:focus,
.lark-document-card:active {
  outline: 0;
  box-shadow: none;
}

.lark-document-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #1f2329;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

.lark-document-title svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.lark-document-title span {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lark-document-divider {
  height: 1px;
  margin: 14px 0;
  background: #DEDEDF;
}

.lark-document-description {
  margin: 0 0 10px;
  color: #1f2329;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.lark-document-time {
  display: block;
  color: #646A73;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.reader-frame {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  z-index: 1;
}

.reader-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 24px;
  color: #59606b;
  text-align: center;
  background: #f7f8fa;
}

.reader-fallback p {
  margin: 0;
  font-size: 14px;
}

.reader-fallback a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 19px;
  color: #fff;
  background: #1f2329;
  font-size: 14px;
  font-weight: 800;
}

.comment-drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  justify-content: flex-end;
  height: 100dvh;
  pointer-events: none;
  visibility: hidden;
  background: rgb(31 35 41 / 0%);
  transition: background 0.24s ease, visibility 0.24s ease;
}

.comment-drawer.open {
  pointer-events: auto;
  visibility: visible;
  background: rgb(31 35 41 / 20%);
}

body.comment-drawer-clear-backdrop .comment-drawer.open {
  background: transparent;
}

.comment-drawer-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(360px, 86vw);
  height: 100dvh;
  overflow: hidden;
  background: #fff;
  box-shadow: -12px 0 32px rgb(31 35 41 / 14%);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.comment-drawer.open .comment-drawer-panel {
  transform: translateX(0);
}

.comment-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}

.comment-drawer-header h2 {
  margin: 0;
  color: #1f2329;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

.comment-close-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #1f2329;
  background: transparent;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.comment-close-button svg {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
}

.comment-list {
  --comment-list-padding-x: 16px;
  --comment-list-padding-top: 14px;
  --comment-form-rest-height: 72px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding:
    var(--comment-list-padding-top)
    var(--comment-list-padding-x)
    calc(14px + var(--comment-form-rest-height) + env(safe-area-inset-bottom));
  scroll-padding-bottom: calc(14px + var(--comment-form-rest-height) + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}

.comment-item {
  position: relative;
  padding: 12px 0;
  border-bottom: 1px solid rgb(232 232 232 / 50%);
  border-radius: 0;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
}

.comment-item:first-child {
  padding-top: 0;
}

.comment-item:last-child {
  border-bottom: 0;
}

.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: #a2a2a2;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.comment-author {
  display: flex;
  align-items: center;
  min-width: 0;
}

.comment-meta .comment-author-name {
  overflow: hidden;
  min-width: 0;
  color: #a2a2a2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-meta time {
  flex: 0 0 auto;
}

.comment-item p,
.comment-list .comment-empty {
  margin: 0;
  color: #1f2329;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.comment-list .comment-empty {
  display: flex;
  min-height: 280px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  color: #7c8491;
  font-size: 15px;
}

.comment-list .comment-empty::before {
  content: "";
  display: block;
  width: min(36vw, 132px);
  aspect-ratio: 1;
  background: url("./暂无内容.png") center / contain no-repeat;
}

.comment-item.long-pressing {
  z-index: 0;
}

.comment-item.long-pressing::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * var(--comment-list-padding-x));
  z-index: -1;
  background: #f3f3f5;
}

.comment-item:first-child.long-pressing::before {
  top: calc(-1 * var(--comment-list-padding-top));
}

.comment-input-mask {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgb(0 0 0 / 30%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.comment-input-mask[aria-hidden="true"] {
  visibility: hidden;
}

body.comment-input-active .comment-input-mask {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.comment-form {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 41;
  display: grid;
  gap: 0;
  width: min(360px, 86vw);
  padding: 12px 16px 16px;
  border-top: 0;
  background: #fff;
  pointer-events: none;
  transform: translateY(100%);
  transition: gap 0.28s cubic-bezier(0.22, 1, 0.36, 1), bottom 0.18s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), width 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

body.comment-drawer-active .comment-form {
  pointer-events: auto;
  transform: translateY(0);
}

body.comment-input-active .comment-form {
  right: 0;
  bottom: var(--comment-keyboard-inset, 0px);
  left: 0;
  width: 100vw;
  background: #fff;
  box-shadow: none;
}

body.comment-input-active .comment-form::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: max(var(--comment-keyboard-inset, 0px), env(safe-area-inset-bottom));
  background: #fff;
  pointer-events: none;
}

.comment-form textarea {
  width: 100%;
  height: 44px;
  resize: none;
  padding: 11px 16px;
  border: 0;
  border-radius: 18px;
  outline: 0;
  color: #1f2329;
  background: #f3f3f5;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  transition: height 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-radius 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.comment-form:focus-within {
  gap: 10px;
}

.comment-form:focus-within textarea {
  height: 64px;
  border-radius: 18px;
}

.comment-form button {
  justify-self: end;
  min-width: 72px;
  max-height: 0;
  height: 34px;
  overflow: hidden;
  padding: 0 14px;
  border-radius: 17px;
  color: #fff;
  background: #1f2329;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: max-height 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.comment-form button:disabled {
  color: #b8bcc4;
  background: #f3f3f5;
  cursor: default;
}

.comment-form:focus-within button {
  max-height: 34px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.comment-action-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgb(0 0 0 / 46%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.comment-action-mask[aria-hidden="true"] {
  visibility: hidden;
}

.comment-action-sheet {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 61;
  width: 100vw;
  max-width: none;
  padding: 8px 18px calc(16px + env(safe-area-inset-bottom));
  border-radius: 14px 14px 0 0;
  background: #f6f6f4;
  transform: translateY(100%);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

body.comment-action-active .comment-action-mask {
  opacity: 1;
  pointer-events: auto;
}

body.comment-action-active .comment-action-sheet[aria-hidden="false"] {
  transform: translateY(0);
}

.comment-action-handle {
  width: 36px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #d8d8d8;
}

.comment-action-group {
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}

.comment-action-group + .comment-action-group {
  margin-top: 14px;
}

.comment-action-row {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 52px;
  gap: 14px;
  padding: 0 16px;
  color: #1f2329;
  background: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  text-align: left;
}

.comment-action-row.is-disabled,
.comment-action-row:disabled {
  color: #b2b2b2;
}

.language-action-form {
  margin: 0;
}

.comment-action-group > :not([hidden]) ~ :not([hidden]) {
  border-top: 1px solid rgb(223 224 227 / 40%);
}

.comment-action-row.active {
  font-weight: 500;
}

.comment-action-row svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.comment-action-row.danger {
  color: #fe3055;
}

.comment-action-row.danger.is-disabled {
  color: #b2b2b2;
}

.profile-logout-action {
  color: #f54e48;
}

.profile-nickname-action-sheet {
  padding-top: 12px;
}

.profile-nickname-sheet-form {
  display: flex;
  flex-direction: column;
  padding: 8px 16px 16px;
  border-radius: 10px;
  background: #fff;
}

.profile-nickname-sheet-form h2 {
  margin: 4px 0 20px;
  color: #1f2329;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.profile-nickname-sheet-form input {
  width: 100%;
  height: 52px;
  padding: 0 12px;
  border: 1px solid #e3e4e6;
  border-radius: 8px;
  outline: 0;
  color: #1f2329;
  background: #fff;
  font-size: 16px;
}

.profile-nickname-sheet-form input:focus {
  border-color: #1f2329;
}

.profile-nickname-sheet-form button {
  width: 100%;
  height: 50px;
  margin-top: 16px;
  border-radius: 8px;
  color: #fff;
  background: #1f2329;
  font-size: 16px;
  font-weight: 500;
}

.profile-nickname-sheet-form button:disabled {
  color: #c4c7cc;
  background: #f2f3f5;
}

@media (min-width: 441px) {
  body {
    padding: 0;
  }

  .page-shell {
    min-height: 100vh;
  }
}

@media (max-width: 360px) {
  .top-nav {
    padding: 10px 14px;
  }

  .course-detail-page .top-nav {
    padding: 10px 18px;
  }

  .nav-actions {
    gap: 7px;
  }

  .language-toggle button {
    padding: 0 9px;
  }

  .course-card {
    grid-template-columns: 1fr 86px;
    gap: 10px;
  }

  .course-card img {
    width: 86px;
  }

  .reader-nav {
    gap: 7px;
    padding: 0 14px;
  }

  .reader-back {
    font-size: 18px;
  }
}
