/* Tool-local styles for Word Check-in. app.css is still loaded as the shared base during migration. */

.word-checkin-topbar {
  background: linear-gradient(90deg, #2f7cf6 0%, #5b8cff 52%, #8a6dff 100%);
}

body.word-checkin-page.word-checkin-pk-page .word-pk-game-layout,
body.word-checkin-page.word-checkin-ranking-page .ranking-layout {
  position: relative;
  z-index: 1;
  margin-top: 0;
}

body.word-checkin-page.word-checkin-pk-page .python-skeleton-shell,
body.word-checkin-page.word-checkin-ranking-page .python-skeleton-shell {
  width: auto;
  max-width: var(--word-checkin-shell-width, 1240px);
  margin-left: auto;
  margin-right: auto;
}

.word-pk-mobile-drawer-trigger,
.word-pk-mobile-drawer-head {
  display: none;
}

@media (max-width: 900px) {
  body.word-checkin-page.word-checkin-mobile-drawer-open {
    overflow: hidden;
  }

  body.word-checkin-page.word-checkin-mobile-drawer-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 130;
    background: rgba(12, 22, 48, 0.42);
    backdrop-filter: blur(6px);
  }

  body.word-checkin-page.word-checkin-pk-page .word-pk-game-layout,
  body.word-checkin-page.word-checkin-ranking-page .ranking-layout {
    display: block;
    height: calc(100dvh - 96px);
    min-height: 0;
    overflow: hidden;
  }

  body.word-checkin-page.word-checkin-pk-page .word-pk-game-main,
  body.word-checkin-page.word-checkin-ranking-page .ranking-main {
    height: 100%;
    min-height: 0;
  }

  body.word-checkin-page.word-checkin-pk-page .word-pk-match-stage,
  body.word-checkin-page.word-checkin-pk-page .word-pk-arena,
  body.word-checkin-page.word-checkin-ranking-page .ranking-king-lobby,
  body.word-checkin-page.word-checkin-ranking-page .ranking-battle-arena {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  .word-pk-mobile-drawer-trigger {
    position: fixed;
    top: calc(14px + env(safe-area-inset-top));
    right: 14px;
    bottom: auto;
    z-index: 96;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    color: #fff;
    background: rgba(24, 45, 92, 0.92);
    box-shadow: 0 12px 28px rgba(24, 45, 92, 0.24);
    font-size: 13px;
    font-weight: 1000;
    backdrop-filter: blur(12px);
  }

  body.word-checkin-page.word-checkin-mobile-drawer-open .word-pk-mobile-drawer-trigger {
    opacity: 0;
    pointer-events: none;
  }

  body.word-checkin-page [data-mobile-drawer] {
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 140;
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    width: auto !important;
    height: min(76vh, 660px) !important;
    max-height: calc(100vh - 28px) !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border: 1px solid rgba(126, 168, 220, 0.2);
    border-radius: 26px 26px 0 0;
    background: rgba(247, 251, 255, 0.98);
    box-shadow: 0 -24px 54px rgba(12, 22, 48, 0.22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 24px));
    transition: transform 0.24s ease, opacity 0.24s ease;
  }

  body.word-checkin-page [data-mobile-drawer].is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.word-checkin-page .word-pk-mobile-drawer-head {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 2px 0;
  }

  body.word-checkin-page .word-pk-mobile-drawer-head strong {
    color: #1d2b46;
    font-size: 18px;
    font-weight: 1000;
  }

  body.word-checkin-page .word-pk-mobile-drawer-head button {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #4e5969;
    background: rgba(232, 240, 250, 0.92);
    font-size: 22px;
    font-weight: 900;
  }

  body.word-checkin-page [data-mobile-drawer] > section {
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible !important;
    -webkit-overflow-scrolling: touch;
  }
}

.word-checkin-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.word-checkin-dashboard {
  align-items: stretch;
}

body.word-checkin-page.is-test-view .word-checkin-dashboard {
  grid-template-columns: minmax(0, 1fr);
}

body.word-checkin-page.is-test-view .word-checkin-map-card {
  min-height: min(760px, calc(100vh - 150px));
}

body.word-checkin-page.is-test-view .word-checkin-test-map-stage {
  min-height: min(680px, calc(100vh - 240px));
}

.word-checkin-map-card {
  gap: 18px;
}

.word-checkin-today-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.word-checkin-today-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.word-checkin-today-title span,
.word-card-next-actions strong {
  color: #4080e0;
  font-size: 12px;
  font-weight: 900;
}

.word-checkin-today-title strong {
  overflow: hidden;
  color: #1d2129;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.word-checkin-today-main small {
  color: #4e5969;
  font-size: 13px;
  font-weight: 800;
}

.word-checkin-today-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(64, 128, 224, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #4080e0;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(64, 128, 224, 0.08);
}

.word-checkin-today-action:disabled {
  border-color: rgba(134, 144, 156, 0.18);
  background: rgba(247, 249, 252, 0.95);
  color: #86909c;
  box-shadow: none;
  cursor: not-allowed;
}

.word-checkin-challenge-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.word-checkin-challenge-chip {
  display: grid;
  gap: 3px;
  min-height: 50px;
  padding: 9px 11px;
  border: 1px solid rgba(64, 128, 224, 0.12);
  border-radius: 12px;
  background: rgba(248, 251, 255, 0.82);
  color: #1d2129;
  text-decoration: none;
}

.word-checkin-challenge-chip.is-ready {
  color: #4080e0;
}

.word-checkin-challenge-chip.is-disabled {
  color: #86909c;
}

.word-checkin-challenge-chip strong {
  font-size: 14px;
  font-weight: 900;
}

.word-checkin-challenge-chip span {
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.word-checkin-today-checklist {
  display: grid;
  gap: 8px;
}

.word-checkin-today-check-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 50px;
  padding: 9px 10px;
  border: 1px solid rgba(64, 128, 224, 0.12);
  border-radius: 12px;
  background: rgba(248, 251, 255, 0.82);
  color: #1d2129;
  text-decoration: none;
}

.word-checkin-today-check-item.is-disabled {
  color: #86909c;
}

.word-checkin-today-check-item.is-done {
  border-color: rgba(34, 135, 91, 0.18);
  background: rgba(242, 255, 249, 0.82);
}

.word-checkin-today-check-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #edf4ff;
  color: #4080e0;
  font-size: 13px;
  font-weight: 900;
}

.word-checkin-today-check-item.is-done .word-checkin-today-check-mark {
  background: #22a06b;
  color: #fff;
}

.word-checkin-today-check-item strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.word-checkin-today-check-item small {
  display: block;
  overflow: hidden;
  color: #59718f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.word-checkin-mobile-today-modal {
  display: none;
}

.word-checkin-stat-user {
  display: none;
}

.word-checkin-heading strong {
  max-width: 360px;
  text-align: right;
  line-height: 1.5;
}

.word-checkin-map-stage {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04)),
    url("/tools/word-checkin/static/map.png") center / cover no-repeat,
    linear-gradient(180deg, #bdeeff 0%, #dff7ff 48%, #c9f2d2 49%, #8ddf97 100%);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.68);
}

.word-checkin-map-sky {
  position: absolute;
  inset: 0;
  display: none;
  background:
    radial-gradient(circle at 14% 78%, rgba(255, 221, 88, 0.8) 0 7%, transparent 8%),
    radial-gradient(circle at 88% 70%, rgba(64, 128, 224, 0.16) 0 14%, transparent 15%),
    radial-gradient(circle at 42% 42%, rgba(255, 255, 255, 0.42) 0 12%, transparent 13%);
}

.word-checkin-map-path {
  position: absolute;
  inset: 18% 8% 15%;
  display: none;
  border-bottom: 16px dashed rgba(255, 255, 255, 0.92);
  border-radius: 45% 48% 40% 52%;
  transform: rotate(-7deg);
  filter: drop-shadow(0 12px 0 rgba(70, 142, 85, 0.16));
}

.word-checkin-map-node {
  z-index: 4;
  text-decoration: none;
}

.word-checkin-map-node.is-available {
  background: transparent;
  box-shadow: none;
  border-width: 0;
}

.word-checkin-map-node.is-available > span {
  width: 100%;
  height: 100%;
  background: transparent;
  color: #fff;
}

.word-checkin-map-node .word-checkin-map-node-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
}

.word-checkin-map-node .word-checkin-map-node-play {
  display: block;
  width: 100%;
  height: 100%;
  margin-left: 0;
  border: none;
  background: url("icons/map-node-start.png") center / contain no-repeat;
}

.word-checkin-map-node .word-checkin-map-node-check {
  display: none;
  font-size: 34px;
  line-height: 1;
}

.word-checkin-map-node.is-complete {
  background: rgba(211, 250, 229, 0.96);
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.2);
}

.word-checkin-map-node.is-complete > span {
  background: #49d393;
  color: #fff;
}

.word-checkin-map-node.is-complete .word-checkin-map-node-play {
  display: none;
}

.word-checkin-map-node.is-complete .word-checkin-map-node-check {
  display: block;
}

.word-checkin-map-node.is-upcoming {
  background: transparent;
  box-shadow: none;
  border-width: 0;
}

.word-checkin-map-node.is-upcoming > span {
  width: 100%;
  height: 100%;
  background: transparent;
  color: #fff;
  font-size: 13px;
}

.word-checkin-map-node.is-upcoming .word-checkin-map-node-play {
  opacity: 0.58;
  filter: grayscale(0.15);
}

.word-checkin-map-copy {
  max-width: min(370px, calc(100% - 48px));
}

.word-checkin-map-tip {
  z-index: 5;
}

.word-checkin-test-back {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 8;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #24506d;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(36, 80, 109, 0.14);
  backdrop-filter: blur(10px);
}

.word-checkin-test-rail {
  display: none;
  align-items: center;
  gap: 10px;
}

.word-checkin-test-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd166, #ff90e8);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(29, 33, 41, 0.12);
}

.word-checkin-test-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.word-checkin-test-coin-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #d99300;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(255, 177, 36, 0.16);
}

.word-checkin-test-coin-pill img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.word-checkin-test-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 32px;
  color: #24506d;
  text-align: center;
}

.word-checkin-test-empty strong {
  font-size: 24px;
  font-weight: 900;
}

.word-test-modal {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 120;
  padding: 24px;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.word-test-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.word-test-modal-panel {
  position: relative;
  display: grid;
  width: min(900px, 90vw);
  max-height: min(760px, 88vh);
  overflow: hidden;
  padding: 0;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 20px;
  background: #051626;
  box-shadow: 0 24px 70px rgba(4, 22, 38, 0.45);
}

.word-test-modal .python-sublevel-panel {
  position: relative;
  min-height: min(68vh, 560px);
}

.word-test-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 22, 38, 0.72);
  backdrop-filter: blur(6px);
}

.word-test-lock-overlay.is-hidden {
  display: none;
}

.word-test-lock-card {
  display: grid;
  gap: 10px;
  max-width: 320px;
  padding: 28px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  text-align: center;
  box-shadow: 0 18px 40px rgba(4, 22, 38, 0.28);
}

.word-test-lock-card strong {
  color: #1d2129;
  font-size: 22px;
  font-weight: 900;
}

.word-test-lock-card span {
  color: #4e5969;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.word-test-header {
  position: absolute;
  top: 14px;
  left: 54px;
  right: 54px;
  z-index: 2;
  color: #fff;
  text-align: center;
  pointer-events: none;
}

.word-test-header p,
.word-test-header h1 {
  margin: 0;
}

.word-test-header p {
  display: none;
}

.word-test-header h1 {
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 34px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.52);
}

.word-test-panel {
  min-height: 360px;
  padding: 0;
  background: transparent;
}

.word-test-video,
.word-test-frame {
  width: 100%;
  min-height: 0;
  height: min(68vh, 560px);
  border: 0;
  border-radius: 0;
  background: #000;
}

.word-test-frame {
  background: #fff;
}

.word-test-link-actions {
  position: absolute;
  right: 58px;
  bottom: 14px;
  left: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(5, 22, 38, 0.82);
  color: #e5f2ff;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.word-test-link-actions.is-hidden {
  display: none;
}

.word-test-link-actions a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff8c7;
  color: #123047;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.22);
}

.word-test-modal.is-game .word-test-modal-panel,
.word-test-modal.is-video .word-test-modal-panel {
  width: min(860px, 86vw);
}

.word-test-modal .word-card-modal-close {
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 0;
  background: #fff8c7;
  color: #123047;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.22);
}

.word-test-modal.is-game .word-test-modal-description,
.word-test-modal.is-video .word-test-modal-description {
  display: none;
}

.word-test-modal.is-game .word-test-frame,
.word-test-modal.is-video .word-test-video {
  display: block;
  width: 100%;
  min-height: 0;
  height: min(68vh, 560px);
  border: 0;
  border-radius: 0;
  background: #000;
}

.word-test-ide {
  display: grid;
  gap: 12px;
  padding: 0;
  color: #e5f2ff;
}

.word-test-modal.is-ide .word-test-modal-panel {
  width: min(1120px, 94vw);
  max-height: min(780px, 92vh);
}

.word-test-modal.is-ide .word-test-modal-description {
  display: none;
}

.word-test-modal.is-ide .word-test-header {
  display: none;
}

.word-test-ide-shell {
  min-height: min(700px, 82vh);
  border-radius: 17px;
  overflow: hidden;
}

.word-test-ide-shell .python-practice-workspace {
  min-height: 0;
}

.word-test-ide-shell .python-ide-editor-panel,
.word-test-ide-shell .python-practice-output-panel {
  min-height: 0;
}

.word-test-modal .python-practice-dialog {
  z-index: 150;
}

.word-test-ide[hidden] {
  display: none;
}

.word-test-ide pre {
  overflow: auto;
  min-height: 160px;
  padding: 14px;
  border: 3px solid #000;
  border-radius: 12px;
  background: #111827;
  color: #e5e7eb;
  white-space: pre-wrap;
}

.word-test-placeholder,
.word-test-modal-description {
  margin: 0 0 14px;
  color: #dbeafe;
  font-weight: 800;
  line-height: 1.7;
}

.word-test-placeholder {
  padding: 74px 28px 28px;
}

.word-checkin-card-board {
  align-content: start;
  gap: 20px;
  min-height: 520px;
  background:
    radial-gradient(circle at 8% 6%, rgba(255, 255, 255, 0.78) 0 62px, transparent 63px),
    linear-gradient(180deg, rgba(236, 249, 255, 0.94) 0%, rgba(246, 252, 255, 0.92) 100%);
}

@media (max-width: 760px) {
  body.word-checkin-page:not(.is-test-view) .word-checkin-card-board {
    min-height: 0;
    height: fit-content;
  }

  body.word-checkin-page:not(.is-test-view) .word-checkin-course-card {
    grid-template-rows: 100px 80px;
    min-height: 180px;
    height: 180px;
    max-height: 180px;
  }

  body.word-checkin-page:not(.is-test-view) .word-checkin-course-cover {
    height: 100px;
    min-height: 100px;
  }

  body.word-checkin-page:not(.is-test-view) .word-checkin-course-body {
    display: flex;
    flex-direction: column;
    height: 80px;
    grid-template-rows: none;
  }
}

.word-checkin-course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 14px;
}

.word-checkin-course-card {
  display: grid;
  grid-template-rows: 188px 1fr;
  overflow: hidden;
  min-height: 332px;
  border: 1px solid rgba(64, 128, 224, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: #1d2129;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(64, 128, 224, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.word-checkin-course-card[href]:hover {
  box-shadow: 0 18px 38px rgba(64, 128, 224, 0.18);
  transform: translateY(-3px);
}

.word-checkin-course-card.is-locked,
.word-checkin-course-card.is-upcoming {
  background: rgba(255, 255, 255, 0.72);
  color: #4e5969;
  box-shadow: none;
}

.word-checkin-course-cover {
  box-sizing: border-box;
  display: block;
  position: relative;
  overflow: hidden;
  min-height: 0;
  height: 188px;
  aspect-ratio: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.12)),
    url("/tools/word-checkin/static/map.png") center / cover no-repeat,
    linear-gradient(135deg, #bdeeff 0%, #ffef9a 52%, #8adf91 100%);
}

.word-checkin-course-cover.has-image {
  display: grid;
  place-items: center;
  padding: 8px;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.9) 0 42px, transparent 43px),
    linear-gradient(135deg, #eef9ff 0%, #f8fbff 100%);
}

.word-checkin-course-cover.has-image > img {
  display: block;
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: contain;
}

.word-checkin-course-card:nth-child(2n) .word-checkin-course-cover {
  background-position: 64% center;
}

.word-checkin-course-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, transparent 72%);
}

.word-checkin-course-cover.has-image::before {
  border-radius: 10px;
}

.word-checkin-course-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(29, 33, 41, 0.14);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.word-checkin-course-badge.is-complete {
  color: #22875b;
}

.word-checkin-course-badge.is-start {
  color: #2f6bff;
}

.word-checkin-course-badge-icon {
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  max-width: 16px;
  max-height: 16px;
  object-fit: contain;
}

.word-checkin-course-card.is-locked .word-checkin-course-cover,
.word-checkin-course-card.is-upcoming .word-checkin-course-cover {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.72) 0 42px, transparent 43px),
    linear-gradient(135deg, #f2f5f9 0%, #edf1f7 100%);
}

.word-checkin-course-card.is-locked .word-checkin-course-cover.has-image {
  padding: 8px;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.9) 0 42px, transparent 43px),
    linear-gradient(135deg, #eef9ff 0%, #f8fbff 100%);
}

.word-checkin-course-cover.is-mystery span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  background: #fff;
  color: #4080e0;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(64, 128, 224, 0.12);
}

.word-checkin-course-body {
  display: grid;
  align-content: start;
  grid-template-rows: auto 20px auto auto;
  gap: 6px;
  padding: 16px 14px 14px;
}

.word-checkin-course-body strong {
  overflow: hidden;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.word-checkin-course-body small {
  overflow: hidden;
  color: #4e5969;
  font-size: 13px;
  font-weight: 800;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.word-checkin-course-body em {
  overflow: hidden;
  color: #59718f;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.word-checkin-course-card.is-upcoming .word-checkin-course-body em {
  color: #d97706;
}

.word-checkin-course-card.is-locked .word-checkin-course-body em {
  color: #86909c;
}

.word-card-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.word-card-next-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #2f7cf6;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.word-card-next-actions a:nth-child(3) {
  background: #22a06b;
}

.word-checkin-course-progress {
  display: block;
  height: 10px;
  overflow: hidden;
  margin-top: 2px;
  border-radius: 999px;
  background: rgba(64, 128, 224, 0.12);
}

.word-checkin-course-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4dd392, #ffdf70);
}

@media (max-width: 1080px) {
  .word-checkin-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.word-checkin-side-panel {
  grid-template-rows: auto auto;
  align-content: start;
  height: fit-content;
}

body.word-checkin-mine-page .word-checkin-side-panel,
body.word-checkin-mine-page .python-learning-side-panel.word-checkin-side-panel {
  grid-template-rows: auto auto !important;
  align-content: start;
  align-items: start;
  height: auto;
}

body.word-checkin-mine-page .word-checkin-stat-card,
body.word-checkin-mine-page .word-checkin-next-card {
  align-self: start;
  height: fit-content;
  min-height: 0;
}

body.word-checkin-mine-page .word-checkin-side-stats div {
  min-height: 88px;
}

body.word-checkin-mine-page .word-checkin-mine-logout-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 4px 0 12px;
}

body.word-checkin-mine-page .word-checkin-mine-logout-button.is-secondary {
  border-color: rgba(59, 130, 246, 0.22);
  color: #2563eb;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

body.word-checkin-mine-page .word-checkin-mine-logout-button.is-secondary:hover {
  background: #eff6ff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12);
}

body.word-checkin-mine-page .word-checkin-mine-logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 86, 86, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #d9363e;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(217, 54, 62, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

body.word-checkin-mine-page .word-checkin-mine-logout-button:hover {
  background: #fff5f5;
  box-shadow: 0 14px 28px rgba(217, 54, 62, 0.14);
  transform: translateY(-1px);
}

body.word-checkin-mine-page .word-checkin-feature-list {
  max-height: none;
  overflow: visible;
}

body.word-checkin-mine-page .word-checkin-next-card .word-checkin-feature-list.is-scrollable {
  max-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  scrollbar-width: none;
}

body.word-checkin-mine-page .word-checkin-next-card .word-checkin-feature-list.is-scrollable::-webkit-scrollbar {
  display: none;
}

body.word-checkin-mine-page .word-checkin-mine-task-card.is-dual-action {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 10px;
  align-items: start;
}

body.word-checkin-mine-page .word-checkin-mine-task-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.word-checkin-mine-page .word-checkin-mine-task-actions.is-single {
  grid-template-columns: minmax(0, 1fr);
}

body.word-checkin-mine-page .word-checkin-mine-task-actions .word-checkin-mine-task-action {
  display: grid;
  min-height: 34px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #7eb6e6 0%, #5b9bd5 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(91, 155, 213, 0.22);
}

body.word-checkin-mine-page .word-checkin-mine-task-actions .word-checkin-mine-task-action.is-secondary {
  background: rgba(126, 182, 230, 0.18);
  color: #4a86b8;
  box-shadow: none;
}

@keyframes word-checkin-mine-action-shimmer {
  0%,
  68% {
    transform: translateX(-130%) skewX(-18deg);
  }

  100% {
    transform: translateX(130%) skewX(-18deg);
  }
}

body.word-checkin-mine-page .word-checkin-mine-task-card.is-secondary-action .word-checkin-mine-task-action,
body.word-checkin-mine-page .word-checkin-mine-task-card.is-dual-action .word-checkin-mine-task-action:not(.is-secondary) {
  position: relative;
  overflow: hidden;
}

body.word-checkin-mine-page .word-checkin-mine-task-card.is-secondary-action .word-checkin-mine-task-action::after,
body.word-checkin-mine-page .word-checkin-mine-task-card.is-dual-action .word-checkin-mine-task-action:not(.is-secondary)::after {
  content: "";
  position: absolute;
  top: -45%;
  bottom: -45%;
  left: 0;
  width: 42%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 34%,
    rgba(255, 255, 255, 0.48) 50%,
    rgba(255, 255, 255, 0.1) 66%,
    transparent 100%
  );
  animation: word-checkin-mine-action-shimmer 2.8s ease-in-out infinite;
  pointer-events: none;
}

body.word-checkin-mine-page .word-checkin-mine-task-card.is-secondary-action .word-checkin-mine-task-action::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 34%,
    rgba(255, 255, 255, 0.68) 50%,
    rgba(255, 255, 255, 0.22) 66%,
    transparent 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  body.word-checkin-mine-page .word-checkin-mine-task-card.is-secondary-action .word-checkin-mine-task-action::after,
  body.word-checkin-mine-page .word-checkin-mine-task-card.is-dual-action .word-checkin-mine-task-action:not(.is-secondary)::after {
    animation: none;
  }
}

body.word-checkin-mine-page .word-checkin-mine-task-reward {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.word-checkin-mine-page .word-checkin-mine-task-reward-coin {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  object-fit: contain;
}

.word-checkin-stat-card {
  align-content: start;
  position: relative;
  overflow: visible;
  z-index: 8;
}

.python-side-card-title.word-checkin-stat-card-title,
.word-checkin-stat-card-title {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.word-checkin-stat-card-title > div:not(.word-checkin-stat-card-actions) {
  display: grid;
  gap: 6px;
}

.word-checkin-stat-card-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  flex: none;
}

.word-checkin-stat-card-actions .word-checkin-notif-button,
.word-checkin-stat-card-actions .word-checkin-rank-button {
  flex: none;
}

.word-checkin-rank-button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff5d6 0%, #ffd166 100%);
  color: #1d2129;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(29, 33, 41, 0.12);
  cursor: pointer;
}

.word-checkin-rank-popover {
  position: absolute;
  top: 26px;
  right: 22px;
  left: 22px;
  z-index: 20;
  display: grid;
  gap: 12px;
  max-height: min(620px, calc(100vh - 140px));
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(47, 124, 246, 0.18);
  border-radius: 22px;
  background: rgba(245, 249, 255, 0.98);
  box-shadow: 0 24px 70px rgba(29, 33, 41, 0.22);
  backdrop-filter: blur(12px);
}

.word-checkin-rank-popover[hidden] {
  display: none;
}

.word-checkin-rank-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(29, 33, 41, 0.08);
  color: #4e5969;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.word-checkin-rank-head,
.word-checkin-rank-row {
  display: grid;
  align-items: center;
}

.word-checkin-rank-head {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-right: 34px;
  color: #1d2129;
}

.word-checkin-rank-head strong {
  font-size: 16px;
  font-weight: 900;
}

.word-checkin-rank-head span {
  color: #86909c;
  font-size: 12px;
  font-weight: 900;
}

.word-checkin-rank-list {
  display: grid;
  gap: 8px;
}

.word-checkin-rank-row {
  grid-template-columns: 24px 38px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 52px;
  padding: 8px 10px;
  border-radius: 14px;
  background: #fff;
}

.word-checkin-rank-row.is-current {
  box-shadow: inset 0 0 0 2px rgba(47, 124, 246, 0.22);
}

.word-checkin-rank-number {
  color: #86909c;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.word-checkin-rank-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #eef6ff;
  color: #2f7cf6;
  font-weight: 900;
}

.word-checkin-rank-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.word-checkin-rank-row strong,
.word-checkin-rank-coins {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.word-checkin-rank-row strong {
  color: #1d2129;
  font-size: 14px;
  font-weight: 900;
}

.word-checkin-rank-coins {
  color: #d97706;
  font-size: 13px;
  font-weight: 900;
}

.word-checkin-rank-more {
  display: grid;
  gap: 10px;
}

.word-checkin-rank-more summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 12px;
  background: rgba(47, 124, 246, 0.12);
  color: #2f7cf6;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.word-checkin-rank-more summary::-webkit-details-marker {
  display: none;
}

.word-checkin-rank-more .word-checkin-rank-list {
  margin-top: 10px;
}

.word-checkin-side-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.word-checkin-side-stats div {
  min-height: 116px;
}

.word-checkin-side-stats strong {
  color: #2f7cf6;
  font-size: 40px;
}

.word-checkin-feature-list {
  display: grid;
  gap: 10px;
}

.word-checkin-feature-list div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(64, 128, 224, 0.08);
}

.word-checkin-feature-list em {
  width: max-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(64, 128, 224, 0.12);
  color: #4080e0;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.word-checkin-feature-list strong {
  color: #1d2129;
  font-size: 15px;
  font-weight: 900;
}

.word-checkin-feature-list span {
  color: #4e5969;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.word-checkin-recent-toggle {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  border: 0;
  border-radius: 14px;
  background: rgba(64, 128, 224, 0.1);
  color: #4080e0;
  font: 900 13px/1 "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", sans-serif;
  cursor: pointer;
}

.word-checkin-recent-toggle:hover {
  background: rgba(64, 128, 224, 0.16);
}

.word-checkin-admin-node-list,
.word-checkin-admin-word-list {
  display: grid;
  gap: 16px;
}

.word-checkin-admin-node-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.word-checkin-admin-meta-card {
  margin-bottom: 18px;
}

.word-checkin-admin-has-sidebar {
  position: relative;
}

.word-checkin-admin-sidebar {
  position: absolute;
  top: 96px;
  left: 22px;
  z-index: 5;
  display: grid;
  width: 168px;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(64, 128, 224, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(64, 128, 224, 0.12);
  backdrop-filter: blur(10px);
}

.word-checkin-admin-sidebar a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  color: #4e5969;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.word-checkin-extension-folder-stage {
  position: relative;
  padding-top: 8px;
}

.word-checkin-extension-pack-settings-btn {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #4b5563;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.word-checkin-extension-pack-settings-btn:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
}

.word-checkin-extension-pack-settings-btn svg {
  width: 20px;
  height: 20px;
}

.word-checkin-admin-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}

.word-checkin-admin-drawer.is-open {
  display: block;
}

.word-checkin-admin-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.34);
  cursor: pointer;
}

.word-checkin-admin-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: min(440px, 92vw);
  height: 100%;
  flex-direction: column;
  border-left: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: -18px 0 42px rgba(15, 23, 42, 0.18);
}

.word-checkin-admin-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid #eef2f7;
}

.word-checkin-admin-drawer-header h2 {
  margin: 0;
  font-size: 20px;
}

.word-checkin-admin-drawer-header p {
  margin: 6px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.word-checkin-admin-drawer-close {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #667085;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.word-checkin-admin-drawer-close:hover {
  background: #f8fafc;
  color: #172033;
}

.word-checkin-admin-drawer-body {
  display: grid;
  flex: 1 1 auto;
  gap: 18px;
  padding: 18px 22px 24px;
  overflow-y: auto;
}

.word-checkin-admin-drawer-section {
  display: grid;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eef2f7;
}

.word-checkin-admin-drawer-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.word-checkin-admin-drawer-section h3 {
  margin: 0;
  font-size: 16px;
}

.word-checkin-admin-drawer-section p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.word-checkin-admin-drawer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

body.word-checkin-admin-drawer-open {
  overflow: hidden;
}

.word-checkin-admin-cohort-table-wrap {
  overflow-x: auto;
}

.word-checkin-admin-cohort-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.word-checkin-admin-cohort-table th,
.word-checkin-admin-cohort-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: middle;
}

.word-checkin-admin-cohort-table th {
  color: #4b5563;
  font-weight: 600;
  background: #f8fafc;
}

.word-checkin-admin-cohort-table input[type="date"] {
  min-width: 150px;
}

.word-checkin-launch-check-card {
  border-color: #dbeafe;
}

.word-checkin-launch-check-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.word-checkin-launch-check-badge.is-ok {
  color: #047857;
  background: #d1fae5;
}

.word-checkin-launch-check-badge.is-warning {
  color: #92400e;
  background: #fef3c7;
}

.word-checkin-launch-check-badge.is-error {
  color: #b91c1c;
  background: #fee2e2;
}

.word-checkin-launch-check-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.word-checkin-launch-check-summary span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  color: #4b5563;
  background: #ffffff;
  font-size: 13px;
}

.word-checkin-launch-check-summary strong {
  color: #111827;
  font-size: 17px;
}

.word-checkin-launch-check-list {
  display: grid;
  gap: 10px;
}

.word-checkin-launch-check-item {
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-left-width: 4px;
  border-radius: 10px;
  background: #ffffff;
}

.word-checkin-launch-check-item.is-ok {
  border-left-color: #10b981;
}

.word-checkin-launch-check-item.is-warning {
  border-left-color: #f59e0b;
}

.word-checkin-launch-check-item.is-error {
  border-left-color: #ef4444;
}

.word-checkin-launch-check-item strong {
  display: block;
  margin-bottom: 4px;
  color: #111827;
  font-size: 14px;
}

.word-checkin-launch-check-item p {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.55;
}

.word-checkin-pk-scope-admin-card {
  margin-top: 18px;
}

.word-checkin-pk-scope-cohort-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
}

.word-checkin-pk-scope-cohort-head h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.word-checkin-pk-scope-cohort-head p {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.55;
}

.word-checkin-pk-scope-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #374151;
  font-size: 13px;
}

.word-checkin-pk-scope-summary strong {
  color: #111827;
  font-size: 16px;
}

.word-checkin-pk-scope-table code.word-checkin-pk-scope-code {
  display: inline-block;
  max-width: 220px;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.word-checkin-pk-scope-warn {
  display: block;
  margin-top: 4px;
  color: #b45309;
}

.word-checkin-pk-scope-table small {
  display: block;
  margin-top: 4px;
  color: #6b7280;
}

.word-checkin-pk-scope-trigger {
  white-space: nowrap;
  padding: 6px 12px;
  font-size: 13px;
}

.word-checkin-pk-scope-options {
  display: grid;
  gap: 10px;
}

.word-checkin-pk-scope-options .python-admin-check {
  align-items: flex-start;
}

.word-checkin-pk-scope-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.word-checkin-pk-scope-modal[hidden] {
  display: none !important;
}

.word-checkin-pk-scope-modal-open {
  overflow: hidden;
}

.word-checkin-pk-scope-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}

.word-checkin-pk-scope-modal__dialog {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  max-height: min(80vh, 560px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.word-checkin-pk-scope-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid #eef2f7;
}

.word-checkin-pk-scope-modal__header strong {
  display: block;
  font-size: 16px;
  color: #111827;
}

.word-checkin-pk-scope-modal__header p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #6b7280;
}

.word-checkin-pk-scope-modal__close {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.word-checkin-pk-scope-modal__body {
  padding: 16px 20px;
  overflow: auto;
}

.word-checkin-pk-scope-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid #eef2f7;
}

.word-checkin-admin-pk-week-table select {
  min-width: 108px;
}

.word-checkin-admin-option-row--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.word-checkin-admin-ranking-session-table input[type="text"],
.word-checkin-admin-ranking-session-table input[type="date"],
.word-checkin-admin-ranking-session-table select {
  width: 100%;
  min-width: 120px;
}

.python-admin-text-button {
  border: 0;
  background: transparent;
  color: #e74c3c;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.python-admin-text-button:hover {
  text-decoration: underline;
}

.word-checkin-ranking-session-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.word-checkin-ranking-session-status.is-upcoming {
  background: #eef4ff;
  color: #2f6fed;
}

.word-checkin-ranking-session-status.is-active {
  background: #e8f8ef;
  color: #1f9d55;
}

.word-checkin-ranking-session-status.is-ended {
  background: #f3f4f6;
  color: #6b7280;
}

.word-checkin-ranking-session-status.is-incomplete {
  background: #fff4e5;
  color: #c27803;
}

.word-checkin-pk-week-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.word-checkin-pk-week-status.is-locked {
  background: #eef4ff;
  color: #2f6fed;
}

.word-checkin-pk-week-status.is-pool {
  background: #f3f4f6;
  color: #6b7280;
}

.word-checkin-pk-week-status.is-active-prefs {
  background: #e8f8ef;
  color: #1f9d55;
}

.word-checkin-pk-week-status.is-incomplete {
  background: #fff4e5;
  color: #c27803;
}

.word-checkin-pk-week-status.is-disabled {
  background: #fce8e8;
  color: #c0392b;
}

.word-checkin-admin-sidebar a.is-active,
.word-checkin-admin-sidebar a:hover {
  background: linear-gradient(135deg, #2f7cf6, #5b8cff);
  color: #fff;
  box-shadow: 0 10px 22px rgba(64, 128, 224, 0.22);
}

.word-checkin-admin-has-sidebar > .python-admin-toast,
.word-checkin-admin-has-sidebar > .python-admin-card,
.word-checkin-admin-has-sidebar > .python-admin-folder-board,
.word-checkin-admin-content {
  margin-left: 210px;
}

.word-checkin-admin-page .python-admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.word-checkin-admin-page .python-admin-card-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
}

.word-checkin-admin-page .python-admin-card-actions .python-admin-secondary-button {
  display: inline-flex;
  width: auto;
  min-width: 116px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.word-checkin-admin-folder-cover {
  overflow: hidden;
}

.word-checkin-admin-folder-download {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(64, 128, 224, 0.16);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.94);
  color: #4080e0;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.word-checkin-admin-folder-cover img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.word-checkin-admin-node-card.is-locked {
  background: #fbfcfe;
}

.word-checkin-admin-node-card.is-locked .word-checkin-admin-section {
  opacity: 0.56;
}

.word-checkin-admin-section {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #e5e6eb;
  border-radius: 16px;
  background: #f7f8fa;
}

.word-checkin-admin-section-head {
  display: block;
}

.word-checkin-admin-section-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.word-checkin-admin-section-head h3 {
  margin: 0;
  color: #1d2129;
  font-size: 18px;
  font-weight: 900;
}

.word-checkin-admin-section p {
  margin: 0;
  color: #86909c;
  font-size: 13px;
  font-weight: 700;
}

.word-checkin-admin-template-hint {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.word-checkin-admin-card-image-field small {
  display: block;
  margin-top: 6px;
  color: #86909c;
  font-size: 12px;
  font-weight: 700;
}

.word-checkin-admin-option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.word-checkin-admin-subcard {
  padding: 0;
  border: 0;
  background: transparent;
}

.word-checkin-admin-game-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 12px;
  align-items: start;
}

.word-checkin-admin-game-panel {
  display: grid;
  gap: 12px;
}

.word-checkin-admin-word-list {
  margin-top: 16px;
}

.word-checkin-admin-word-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid #e5e6eb;
  border-radius: 16px;
  background: #fff;
}

.word-checkin-admin-word-row-fields {
  display: grid;
  gap: 12px;
  align-items: start;
  min-width: 0;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) minmax(180px, 1.15fr) minmax(180px, 1.15fr) auto;
}

.word-checkin-admin-node-card.is-template-neo .word-checkin-admin-word-row-fields {
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) minmax(180px, 1.15fr) minmax(180px, 1.15fr) auto;
}

.word-checkin-admin-node-card.is-template-brutal .word-checkin-admin-word-row-fields {
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) minmax(220px, 1.2fr) auto;
}

.word-checkin-admin-node-card.is-template-bean .word-checkin-admin-word-row-fields {
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) minmax(220px, 1.2fr) auto;
}

.word-checkin-admin-field {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
  margin: 0;
}

.word-checkin-admin-word-row-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  padding-bottom: 2px;
}

.word-checkin-admin-field > span:first-child {
  min-height: 18px;
  color: #4e5969;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.word-checkin-admin-field input[type="text"],
.word-checkin-admin-field input:not([type="checkbox"]):not([type="file"]):not([type="hidden"]) {
  width: 100%;
  min-width: 0;
}

.word-checkin-admin-node-grid.word-checkin-admin-subcard {
  align-items: start;
}

.word-checkin-admin-node-grid.word-checkin-admin-subcard > label {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}

@media (max-width: 1080px) {
  .word-checkin-admin-node-card.is-template-neo .word-checkin-admin-word-row-fields,
  .word-checkin-admin-node-card.is-template-brutal .word-checkin-admin-word-row-fields,
  .word-checkin-admin-node-card.is-template-bean .word-checkin-admin-word-row-fields,
  .word-checkin-admin-game-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .word-checkin-admin-node-card.is-template-neo .word-checkin-admin-word-row-actions,
  .word-checkin-admin-node-card.is-template-brutal .word-checkin-admin-word-row-actions,
  .word-checkin-admin-node-card.is-template-bean .word-checkin-admin-word-row-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .word-checkin-admin-node-card.is-template-neo .word-checkin-admin-word-row-fields,
  .word-checkin-admin-node-card.is-template-brutal .word-checkin-admin-word-row-fields,
  .word-checkin-admin-node-card.is-template-bean .word-checkin-admin-word-row-fields,
  .word-checkin-admin-game-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.word-checkin-admin-audio-control {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid rgba(29, 33, 41, 0.1);
  border-radius: 12px;
  background: #fff;
  color: #1d2129;
  cursor: pointer;
}

.word-checkin-admin-image-control {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid rgba(29, 33, 41, 0.1);
  border-radius: 12px;
  background: #fff;
  color: #1d2129;
  cursor: pointer;
}

.word-checkin-admin-audio-control input[type="file"],
.word-checkin-admin-image-control input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100%;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.word-checkin-admin-audio-control input[type="file"]:disabled,
.word-checkin-admin-image-control input[type="file"]:disabled {
  cursor: not-allowed;
}

.word-checkin-admin-audio-control,
.word-checkin-admin-image-control {
  width: 100%;
  min-width: 0;
}

.word-checkin-admin-audio-button {
  margin-right: 10px;
  padding: 4px 10px;
  border: 1px solid rgba(29, 33, 41, 0.3);
  border-radius: 6px;
  background: #f7f8fa;
  color: #1d2129;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.word-checkin-admin-audio-name {
  overflow: hidden;
  color: #4e5969;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.word-checkin-admin-card-image-preview {
  width: 100%;
  max-width: 120px;
  max-height: 96px;
  margin-top: 8px;
  border-radius: 12px;
  object-fit: cover;
}

.python-admin-danger-button {
  border-color: rgba(220, 38, 38, 0.24);
  background: #fff5f5;
  color: #dc2626;
}

.python-admin-danger-confirm-button {
  background: #dc2626;
  color: #fff;
}

.word-checkin-admin-delete-dialog {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 80;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.word-checkin-admin-delete-dialog.is-open {
  opacity: 1;
  pointer-events: auto;
}

.word-checkin-admin-delete-panel {
  display: grid;
  width: min(420px, 100%);
  gap: 14px;
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
  transform: translateY(8px) scale(0.98);
  transition: transform 0.18s ease;
}

.word-checkin-admin-delete-dialog.is-open .word-checkin-admin-delete-panel {
  transform: translateY(0) scale(1);
}

.word-checkin-admin-delete-panel h3,
.word-checkin-admin-delete-panel p {
  margin: 0;
}

.word-checkin-admin-delete-panel p {
  color: #4e5969;
  line-height: 1.7;
}

.word-checkin-admin-delete-panel form {
  display: grid;
  gap: 12px;
}

.word-checkin-admin-delete-panel form label {
  display: grid;
  gap: 6px;
}

.word-checkin-admin-delete-panel form label span {
  color: #5f6b7c;
  font-size: 13px;
  font-weight: 800;
}

.word-checkin-admin-delete-panel form input,
.word-checkin-admin-delete-panel form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(64, 128, 224, 0.18);
  border-radius: 10px;
  font: inherit;
}

.word-checkin-admin-delete-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.word-checkin-admin-word-row textarea {
  min-height: 94px;
  resize: vertical;
}

.word-checkin-admin-coordinate-stage {
  cursor: crosshair;
}

.word-checkin-admin-preview-stage {
  min-height: 460px;
}

.word-card-page {
  min-height: 100vh;
  color: #000;
  background-color: #93c5fd;
  background-image: radial-gradient(#000 1px, transparent 1px);
  background-size: 20px 20px;
}

.word-card-shell {
  display: grid;
  gap: 20px;
  width: min(1000px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.word-card-page .neo-box {
  border: 3px solid #000;
  border-radius: 12px;
  background: #fff;
  box-shadow: 4px 4px 0 #000;
}

.word-card-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  background: #ffdc58 !important;
}

.word-card-header h1,
.word-card-header p {
  margin: 0;
}

.word-card-header h1 {
  margin-top: 8px;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.word-card-back {
  display: inline-flex;
  margin-bottom: 10px;
  color: #000;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.word-card-count {
  display: grid;
  place-items: center;
  min-width: 96px;
  border: 3px solid #000;
  border-radius: 12px;
  background: #4ade80;
}

.word-card-count strong {
  font-size: 36px;
  line-height: 1;
}

.word-card-tabs {
  display: flex;
  gap: 10px;
  padding: 10px;
}

.word-card-tabs button,
.word-card-actions button,
.word-card-word button,
.word-card-pronunciation-item button,
.word-card-options button,
.word-card-primary {
  min-height: 44px;
  padding: 10px 16px;
  border: 3px solid #000;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 #000;
}

.word-card-tabs button.is-active,
.word-card-primary {
  background: #ff90e8;
}

.word-card-panel {
  padding: 22px;
}

.word-card-section-title h2,
.word-card-game-head h2,
.word-card-preview h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 900;
}

.word-card-section-title p,
.word-card-game-head p,
.word-card-preview p {
  margin: 0;
  font-weight: 700;
}

.word-card-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

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

.word-card-word div {
  display: grid;
  gap: 4px;
}

.word-card-word small,
.word-card-preview span {
  font-weight: 900;
  color: #2f7cf6;
}

.word-card-word strong {
  font-size: 30px;
  font-weight: 900;
}

.word-card-word span {
  font-weight: 800;
}

.word-card-preview {
  display: grid;
  gap: 14px;
}

.word-card-pronunciation-summary {
  display: inline-grid;
  width: fit-content;
  min-width: 140px;
  padding: 14px 18px;
  border: 3px solid #000;
  border-radius: 14px;
  background: #c084fc;
  text-align: center;
  box-shadow: 4px 4px 0 #000;
}

.word-card-pronunciation-summary strong {
  font-size: 42px;
  line-height: 1;
}

.word-card-pronunciation-summary span {
  color: #000;
}

.word-card-pronunciation-spectrum {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 12px;
  overflow: hidden;
  border: 3px solid #000;
  border-radius: 16px;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 209, 102, 0.35) 0 38px, transparent 39px),
    linear-gradient(180deg, #fff, #dff6ff);
  box-shadow: 4px 4px 0 #000;
}

.word-card-pronunciation-spectrum canvas {
  width: 100%;
  height: 112px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.word-card-pronunciation-spectrum small {
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.word-card-pronunciation-spectrum.is-listening {
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 209, 102, 0.42) 0 38px, transparent 39px),
    linear-gradient(180deg, #f8fdff, #ccfbf1);
}

.word-card-pronunciation-spectrum.is-listening small::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #06d6a0;
  box-shadow: 0 0 0 5px rgba(6, 214, 160, 0.16);
  vertical-align: middle;
}

.word-card-pronunciation-spectrum-bars {
  display: flex;
  height: 42px;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 0 6px;
}

.word-card-pronunciation-spectrum-bars span {
  width: 6px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #06d6a0, #118ab2 55%, #5a67d8);
  opacity: 0.36;
  transition: height 0.08s ease, opacity 0.08s ease;
}

.word-card-pronunciation-list {
  display: grid;
  gap: 12px;
}

.word-card-pronunciation-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.word-card-pronunciation-item.is-passed {
  background: #dcfce7;
}

.word-card-pronunciation-item div {
  display: grid;
  gap: 4px;
}

.word-card-pronunciation-item strong {
  font-size: 28px;
  font-weight: 900;
}

.word-card-pronunciation-item span,
.word-card-pronunciation-item em {
  font-weight: 900;
}

.word-card-pronunciation-item em,
.word-card-pronunciation-rating {
  width: fit-content;
  min-width: 34px;
  padding: 4px 10px;
  border: 2px solid #000;
  border-radius: 999px;
  background: #fff7ad;
  font-style: normal;
  text-align: center;
}

.word-card-pronunciation-summary strong[data-rating="S"],
.word-card-pronunciation-rating.is-rating-s {
  background: #ffd166;
  color: #7c2d12;
}

.word-card-pronunciation-summary strong[data-rating="A"],
.word-card-pronunciation-rating.is-rating-a {
  background: #86efac;
  color: #14532d;
}

.word-card-pronunciation-summary strong[data-rating="B"],
.word-card-pronunciation-rating.is-rating-b {
  background: #93c5fd;
  color: #1e3a8a;
}

.word-card-pronunciation-summary strong[data-rating="C"],
.word-card-pronunciation-rating.is-rating-c {
  background: #fca5a5;
  color: #7f1d1d;
}

.word-card-pronunciation-item > div:last-child {
  grid-auto-flow: column;
}

.word-card-game-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.word-card-game-score {
  display: grid;
  min-width: 110px;
  padding: 12px;
  border: 3px solid #000;
  border-radius: 10px;
  background: #c084fc;
  text-align: center;
}

.word-card-game-score strong {
  font-size: 32px;
}

.word-card-question {
  margin: 22px 0;
  padding: 24px;
  border: 3px dashed #000;
  border-radius: 14px;
  background: #fffdf5;
  font-size: clamp(32px, 8vw, 70px);
  font-weight: 900;
  text-align: center;
}

.word-card-question.has-image {
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.word-card-question.has-image img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.word-card-question.has-spelling-default {
  padding: 0;
  overflow: hidden;
  background: #8fc4f4;
}

.word-card-spelling-default {
  display: grid;
  min-height: 220px;
  align-content: center;
  justify-items: center;
  gap: 24px;
  padding: 36px 24px;
  background-position: center;
  background-size: cover;
}

.word-card-spelling-default strong {
  color: #0f172a;
  font-size: clamp(42px, 10vw, 78px);
  font-weight: 900;
  letter-spacing: 0.24em;
  word-spacing: 0.24em;
  text-shadow: 0 3px 0 rgba(255, 255, 255, 0.78);
}

.word-card-spelling-default span {
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.72);
}

.word-card-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.word-card-options.is-spelling-options button {
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  word-spacing: 0.22em;
}

.word-card-options button.is-correct {
  background: #4ade80;
}

.word-card-options button.is-wrong {
  background: #f87171;
}

.word-card-options button:disabled,
.word-card-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.word-card-result {
  display: grid;
  grid-column: 1 / -1;
  gap: 16px;
  padding: 22px;
  border: 3px solid #000;
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 220, 88, 0.52) 0 54px, transparent 55px),
    linear-gradient(135deg, #dcfce7 0%, #ecfeff 56%, #fef3c7 100%);
  box-shadow: 6px 6px 0 #000;
  font-weight: 900;
}

.word-card-result-title {
  display: grid;
  gap: 6px;
  text-align: center;
}

.word-card-result-title strong {
  color: #14532d;
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.1;
}

.word-card-result-title span {
  color: #334155;
  font-size: 15px;
}

.word-card-result-reward {
  display: grid;
  justify-self: center;
  min-width: 210px;
  gap: 8px;
  padding: 14px 22px 12px;
  border: 3px solid #000;
  border-radius: 18px;
  background: #ffdc58;
  text-align: center;
  box-shadow: 4px 4px 0 #000;
}

.word-card-result-reward-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.word-card-result-reward-main img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  filter: drop-shadow(0 4px 0 rgba(124, 45, 18, 0.22));
}

.word-card-result-reward-main strong {
  color: #7c2d12;
  font-size: clamp(42px, 9vw, 64px);
  font-weight: 900;
  line-height: 0.95;
}

.word-card-result-reward em {
  color: #475569;
  font-size: 13px;
  font-style: normal;
}

.word-card-result-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.word-card-result-stat {
  display: grid;
  gap: 4px;
  align-content: center;
  justify-items: center;
  min-height: 98px;
  padding: 12px;
  border: 2px solid #000;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.word-card-result-stat small {
  color: #64748b;
  font-size: 13px;
}

.word-card-result-stat strong {
  color: #0f172a;
  font-size: 20px;
}

.word-card-feedback {
  margin: 18px 0;
  font-weight: 900;
}

.word-card-actions {
  display: flex;
  gap: 12px;
}

.word-card-modal-open {
  overflow: hidden;
}

.word-card-modal {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 120;
  padding: 24px;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.word-card-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.word-card-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(8px);
}

.word-card-modal-panel {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(1000px, 96vw);
  max-height: min(820px, 92vh);
  overflow: auto;
  padding: 22px;
  border: 4px solid #000;
  border-radius: 24px;
  background-color: #93c5fd;
  background-image: radial-gradient(#000 1px, transparent 1px);
  background-size: 20px 20px;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.78);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.18s ease;
}

.word-card-modal.is-open .word-card-modal-panel {
  transform: translateY(0) scale(1);
}

.word-card-modal .neo-box {
  border: 3px solid #000;
  border-radius: 12px;
  background: #fff;
  box-shadow: 4px 4px 0 #000;
}

.word-card-modal .word-card-header {
  margin-right: 44px;
}

.word-card-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 3px solid #000;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 3px 3px 0 #000;
  cursor: pointer;
}

.word-checkin-admin-pk-node-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.word-checkin-admin-pk-node-list .python-admin-check {
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(78, 94, 135, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.word-checkin-admin-pk-node-list small {
  display: block;
  margin-top: 4px;
  color: #6f7890;
}

body.word-checkin-profile-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 224, 125, 0.22) 0 120px, transparent 121px),
    radial-gradient(circle at 88% 8%, rgba(157, 232, 255, 0.28) 0 160px, transparent 161px),
    linear-gradient(180deg, #edf7ff 0%, #f8fffb 100%);
}

body.word-checkin-profile-page .app-shell.python-profile-shell {
  width: min(920px, calc(100vw - 32px));
  margin: 24px auto 40px;
  padding: 28px 28px 40px;
}

body.word-checkin-profile-page .python-skeleton-topbar {
  margin-bottom: 18px;
}

body.word-checkin-profile-page .python-skeleton-topbar .tool-tile-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff7c7, #d9f8e6);
  box-shadow: 0 12px 24px rgba(78, 171, 216, 0.16);
}

body.word-checkin-profile-page .python-skeleton-topbar .tool-tile-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

body.word-checkin-profile-page .brand h1 {
  margin: 0;
  color: #1d4260;
  font-size: 28px;
  font-weight: 900;
}

body.word-checkin-profile-page .brand p {
  margin: 4px 0 0;
  color: #6f7890;
  font-size: 14px;
}

body.word-checkin-profile-page .python-skeleton-topbar .nav-link {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #2f6bff;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(78, 171, 216, 0.12);
}

body.word-checkin-profile-page .python-profile-region-picker select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(78, 171, 216, 0.22);
  border-radius: 14px;
  outline: 0;
  background: #fff;
  color: #1d2129;
  font: 700 14px/1.4 "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.word-checkin-profile-page .python-profile-region-picker select:focus {
  border-color: #4080e0;
  box-shadow: 0 0 0 4px rgba(64, 128, 224, 0.12);
}

.word-checkin-mine-dashboard {
  display: none;
}

body.word-checkin-mine-page .word-checkin-mine-dashboard {
  display: grid;
  gap: 18px;
}

body.word-checkin-settings-page .word-checkin-settings-mobile-head {
  display: none;
}

.word-checkin-extension-board {
  gap: 18px;
  padding: 22px;
}

.word-checkin-extension-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 4px;
  align-items: center;
}

.word-checkin-extension-heading-icon {
  display: grid;
  grid-row: 1;
  grid-column: 1;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8fff1, #d9f8e6);
  color: #1f9d62;
  font-size: 18px;
  font-weight: 900;
}

.word-checkin-extension-heading-title {
  grid-row: 1;
  grid-column: 2;
  color: #1d2129;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
}

.word-checkin-extension-heading-subtitle {
  grid-row: 2;
  grid-column: 1 / -1;
  max-width: none;
  color: #4e5969;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.5;
  text-align: left;
}

.word-checkin-extension-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.word-checkin-extension-card {
  display: grid;
  overflow: hidden;
  min-height: 248px;
  border-radius: 16px;
  background: #fff;
  color: #1d2129;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(64, 128, 224, 0.1);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.word-checkin-extension-card.is-ready:hover {
  box-shadow: 0 14px 30px rgba(64, 128, 224, 0.16);
  transform: translateY(-2px);
}

.word-checkin-extension-card.is-locked {
  filter: grayscale(0.08);
}

button.word-checkin-extension-card {
  width: 100%;
  border: 0;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

button.word-checkin-extension-card.is-locked:active {
  transform: scale(0.985);
}

.word-checkin-extension-toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 120;
  max-width: min(92vw, 360px);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(29, 33, 41, 0.88);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 12px 28px rgba(29, 33, 41, 0.18);
}

.word-checkin-extension-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.word-checkin-extension-banner {
  display: grid;
  align-content: end;
  min-height: 148px;
  padding: 16px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
}

.word-checkin-extension-banner.is-locked:not([style]) {
  background: linear-gradient(135deg, #edf2f7 0%, #f8fafc 100%);
  color: #98a2b3;
}

.word-checkin-extension-banner.is-locked[style] {
  color: #fff;
}

.word-checkin-extension-banner strong {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.word-checkin-extension-body {
  display: grid;
  gap: 12px;
  padding: 14px 14px 16px;
}

.word-checkin-extension-body > strong {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.word-checkin-extension-prices {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.word-checkin-extension-price-current {
  color: #4080e0;
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
}

.word-checkin-extension-price-original {
  color: #c0c4cc;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: line-through;
}

.word-checkin-extension-status.is-purchased {
  color: #1f9d62;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
}

.word-checkin-extension-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.word-checkin-extension-tag {
  padding: 4px 10px;
  border: 1px solid rgba(31, 157, 98, 0.22);
  border-radius: 999px;
  background: #eefbf3;
  color: #1f9d62;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.word-checkin-extension-tag.is-locked {
  border-color: rgba(152, 162, 179, 0.22);
  background: #f5f7fa;
  color: #98a2b3;
}

.word-checkin-extension-footer small {
  color: #86909c;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.word-checkin-extension-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 36px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  text-align: center;
}

.word-checkin-extension-empty strong {
  font-size: 18px;
}

.word-checkin-extension-empty span {
  color: #6f7890;
  font-size: 14px;
}

@media (min-width: 761px) {
  body.word-checkin-page.is-test-index-view .word-checkin-dashboard {
    grid-template-columns: minmax(0, 1fr);
  }

  .word-checkin-extension-board {
    height: fit-content;
    align-content: start;
  }

  .word-checkin-extension-card {
    min-height: 0;
  }

  .word-checkin-extension-banner {
    aspect-ratio: 900 / 435;
    min-height: 0;
    background-size: contain;
    background-position: center center;
    background-color: #eef4fc;
  }
}

@media (max-width: 900px) {
  .word-checkin-extension-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) {
  .word-checkin-extension-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

.python-admin-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.python-admin-field > span {
  color: #5f6b7c;
  font-size: 13px;
  font-weight: 800;
}

.python-admin-field input,
.python-admin-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(64, 128, 224, 0.18);
  border-radius: 12px;
  font: inherit;
}

.python-admin-help {
  margin: 0;
  color: #7d8aa0;
  font-size: 13px;
  line-height: 1.5;
}

.python-admin-inline-error {
  margin: 0;
  color: #d94841;
  font-weight: 700;
}

.python-admin-error-list {
  margin: 0;
  padding-left: 18px;
  color: #7d4b47;
  font-size: 13px;
  line-height: 1.6;
}

.word-checkin-admin-moments-list {
  display: grid;
  gap: 14px;
}

.word-checkin-admin-moment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(83, 104, 146, 0.14);
  border-radius: 12px;
  background: #fff;
}

.word-checkin-admin-moment-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.word-checkin-admin-moment-meta,
.word-checkin-admin-moment-stats,
.word-checkin-admin-moment-images {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #7d8aa0;
  font-size: 12px;
}

.word-checkin-admin-moment-meta strong {
  color: #25324d;
  font-size: 14px;
}

.word-checkin-admin-moment-text {
  margin: 0;
  color: #25324d;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.word-checkin-admin-moment-images a {
  color: #4080e0;
  font-weight: 700;
  text-decoration: none;
}

.word-checkin-admin-moment-comments {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(83, 104, 146, 0.12);
}

.word-checkin-admin-moment-comment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7f9fe;
}

.word-checkin-admin-moment-comment p {
  margin: 0;
  color: #42526e;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}

.word-checkin-admin-page .python-admin-secondary-button.is-danger,
.word-checkin-admin-page .python-admin-link-button.is-danger {
  color: #d94841;
}

.word-checkin-admin-page .python-admin-secondary-button.is-danger:hover {
  background: #fff1f0;
}

.word-checkin-admin-page .python-admin-link-button {
  border: 0;
  background: transparent;
  color: #4080e0;
  font: 700 13px/1 "PingFang SC", "Microsoft YaHei", sans-serif;
  cursor: pointer;
}

.python-login-password-field {
  position: relative;
}

.python-login-password-field input {
  padding-right: 48px;
}

.python-login-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #718096;
  cursor: pointer;
  transform: translateY(-50%);
}

.python-login-password-toggle:hover,
.python-login-password-toggle.is-visible {
  background: rgba(47, 124, 246, 0.1);
  color: #2f7cf6;
}

.python-login-password-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 720px) {
  .word-checkin-admin-moment,
  .word-checkin-admin-moment-comment {
    grid-template-columns: 1fr;
  }
}

.word-checkin-cohort-tier-actions {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.word-checkin-admin-tier-popover {
  position: relative;
}

.word-checkin-admin-tier-trigger {
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.word-checkin-admin-tier-popover > summary::-webkit-details-marker {
  display: none;
}

.word-checkin-admin-tier-popover[open] .word-checkin-admin-tier-popover-body {
  display: grid;
}

.word-checkin-admin-tier-popover-body {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: none;
  width: min(420px, 78vw);
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(126, 168, 220, 0.24);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(54, 86, 145, 0.16);
}

.word-checkin-admin-tier-body {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}

.word-checkin-admin-tier-distribution,
.word-checkin-admin-tier-attention {
  display: grid;
  gap: 8px;
}

.word-checkin-admin-tier-dist-row,
.word-checkin-admin-tier-attention-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(245, 248, 255, 0.96);
}

.word-checkin-admin-tier-attention h3 {
  margin: 0;
  color: #1d4260;
  font-size: 14px;
}

.word-checkin-admin-tier-attention-row small {
  display: block;
  color: #7a879c;
  font-size: 11px;
}

.word-checkin-admin-tier-attention-row span {
  color: #d97757;
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.word-checkin-admin-tier-empty {
  margin: 0;
  color: #6f8098;
  font-size: 13px;
}

@media (max-width: 900px) {
  .word-checkin-admin-tier-body {
    grid-template-columns: 1fr;
  }
}

/* Desktop / Pad: slightly inset the main content card from viewport edges. */
@media (min-width: 761px) {
  body.word-checkin-page {
    --word-checkin-shell-width: 1240px;
  }

  body.word-checkin-page .python-skeleton-shell {
    max-width: var(--word-checkin-shell-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 28px;
    padding-right: 28px;
  }

  body.word-checkin-page .python-learning-topbar {
    width: min(calc(100vw - 64px), var(--word-checkin-shell-width));
    padding-left: max(22px, 28px);
    padding-right: max(22px, 28px);
  }
}

/* Pad only (761px-1366px): scale desktop layout to fit. Mobile <=760 and desktop >=1367 unchanged. */
@media (min-width: 761px) and (max-width: 1366px) {
  body.word-checkin-page {
    overflow-x: hidden;
  }

  body.word-checkin-page .python-skeleton-shell {
    --word-checkin-pad-scale: clamp(0.56, calc((100vw - 48px) / var(--word-checkin-shell-width)), 0.999);
    width: var(--word-checkin-shell-width);
    max-width: var(--word-checkin-shell-width);
    margin-left: auto;
    margin-right: auto;
    zoom: var(--word-checkin-pad-scale);
  }

  body.word-checkin-page .python-learning-topbar,
  body.word-checkin-page .python-skeleton-hero {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
  }

  body.word-checkin-page .python-learning-topbar {
    width: 100% !important;
    margin: 0 0 26px !important;
    transform: none !important;
  }

  body.word-checkin-page .python-learning-nav {
    justify-content: center !important;
    width: auto !important;
    overflow: visible !important;
  }

  body.word-checkin-page .python-learning-actions {
    width: auto !important;
    justify-content: flex-end !important;
  }

  body.word-checkin-page .python-learning-profile span:last-child {
    display: inline !important;
  }

  body.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .python-learning-dashboard,
  body.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-dashboard {
    grid-template-columns: minmax(0, 2.4fr) minmax(280px, 0.82fr) !important;
  }

  body.word-checkin-page.is-test-view .word-checkin-dashboard,
  body.word-checkin-page.is-test-index-view .word-checkin-dashboard {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.word-checkin-page.is-test-index-view .word-checkin-extension-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
  }

  body.word-checkin-page .word-checkin-course-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.word-checkin-page .python-skeleton-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@supports not (zoom: 1) {
  @media (min-width: 761px) and (max-width: 1366px) {
    body.word-checkin-page .python-skeleton-shell {
      transform: scale(var(--word-checkin-pad-scale, 1));
      transform-origin: top center;
    }
  }
}

.word-card-external-page {
  min-height: 100dvh;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.92), rgba(240, 246, 255, 0.96)),
    linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
}

.word-card-external-shell {
  width: min(560px, calc(100% - 28px));
  margin: 0 auto;
  padding:
    max(18px, env(safe-area-inset-top))
    0
    max(24px, env(safe-area-inset-bottom));
}

.word-card-external-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.word-card-external-back {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #4e5969;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(15, 35, 70, 0.08);
  text-decoration: none;
  font-size: 20px;
  font-weight: 900;
}

.word-card-external-head-copy p {
  margin: 0 0 4px;
  color: #86909c;
  font-size: 13px;
  font-weight: 700;
}

.word-card-external-head-copy h1 {
  margin: 0;
  color: #1d2129;
  font-size: clamp(24px, 6vw, 30px);
  font-weight: 1000;
  line-height: 1.25;
}

.word-card-external-panel {
  display: grid;
  gap: 14px;
  padding: 22px 18px;
  border: 1px solid rgba(126, 168, 220, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(12, 22, 48, 0.08);
}

.word-card-external-badge {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  color: #245bdb;
  background: rgba(36, 91, 219, 0.1);
  font-size: 12px;
  font-weight: 900;
}

.word-card-external-lead {
  margin: 0;
  color: #4e5969;
  font-size: 15px;
  line-height: 1.65;
}

.word-card-external-practice,
.word-card-external-complete {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}

.word-card-external-practice {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
}

.word-card-external-complete {
  color: #1d2129;
  background: rgba(232, 240, 250, 0.96);
}

.word-card-external-complete:disabled {
  opacity: 0.72;
  cursor: default;
}

.word-card-external-note {
  margin: 0;
  color: #00b42a;
  font-size: 14px;
  font-weight: 700;
}

.word-card-external-note.is-error {
  color: #f53f3f;
}

.word-card-external-page.is-preview .word-card-external-back {
  visibility: hidden;
  pointer-events: none;
}
