body {
  min-height: 100vh;
  background: #fbfaf7;
  color: #46323b;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

/* X-1 Beimoer UI foundation. Existing pages migrate to these classes by batch. */
.x1-primary-page {
  box-sizing: border-box;
  min-height: 100vh;
  padding-bottom: calc(calc(156 * var(--rpx)) + env(safe-area-inset-bottom));
  background: #fbfaf7;
}

.x1-content-shell {
  box-sizing: border-box;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.x1-brand-kicker {
  color: #1e61ae;
  font-size: calc(24 * var(--rpx));
  font-weight: 700;
  line-height: 1.4;
}

.x1-brand-accent {
  background: #eac327;
}

.x1-display-title {
  color: #46323b;
  font-size: calc(42 * var(--rpx));
  font-weight: 800;
  line-height: 1.35;
}

.x1-body-copy {
  color: #6b6870;
  font-size: calc(26 * var(--rpx));
  line-height: 1.7;
}

.x1-surface {
  box-sizing: border-box;
  border: calc(2 * var(--rpx)) solid #e5e2e4;
  border-radius: calc(16 * var(--rpx));
  background: #ffffff;
  box-shadow: 0 calc(8 * var(--rpx)) calc(24 * var(--rpx)) rgba(70, 50, 59, 0.07);
}

.x1-button-primary,
.x1-button-secondary {
  box-sizing: border-box;
  min-height: calc(88 * var(--rpx));
  margin: 0;
  padding: 0 calc(28 * var(--rpx));
  border-radius: calc(12 * var(--rpx));
  font-size: calc(28 * var(--rpx));
  font-weight: 700;
  line-height: calc(88 * var(--rpx));
}

.x1-button-primary {
  color: #ffffff;
  background: #1e61ae;
}

.x1-button-secondary {
  color: #1e61ae;
  background: #eef5fc;
}

.x1-button-primary::after,
.x1-button-secondary::after {
  border: 0;
}

.x1-muted-label {
  color: #8a8790;
  font-size: calc(23 * var(--rpx));
  line-height: 1.5;
}

@media (max-width: 360px) {
  .x1-display-title {
    font-size: calc(38 * var(--rpx));
  }

  .x1-button-primary,
  .x1-button-secondary {
    min-height: calc(84 * var(--rpx));
    padding: 0 calc(20 * var(--rpx));
    font-size: calc(26 * var(--rpx));
    line-height: calc(84 * var(--rpx));
  }
}

.container {
  padding: calc(28 * var(--rpx));
}

.page-header {
  margin-bottom: calc(24 * var(--rpx));
}

.page-title,
.title {
  font-size: calc(38 * var(--rpx));
  font-weight: 800;
  color: #102a43;
  line-height: 1.35;
}

.page-subtitle,
.subtitle {
  margin-top: calc(10 * var(--rpx));
  color: #627d98;
  font-size: calc(26 * var(--rpx));
  line-height: 1.75;
}

.hero-card,
.card {
  margin-bottom: calc(24 * var(--rpx));
  padding: calc(30 * var(--rpx));
  border-radius: calc(20 * var(--rpx));
  background: #ffffff;
  box-shadow: 0 calc(8 * var(--rpx)) calc(24 * var(--rpx)) rgba(15, 23, 42, 0.06);
}

.hero-card {
  background: linear-gradient(180deg, #eef6ff 0%, #ffffff 76%);
}

.card-title {
  font-size: calc(32 * var(--rpx));
  font-weight: 800;
  color: #102a43;
  line-height: 1.45;
}

.card-summary {
  margin-top: calc(12 * var(--rpx));
  color: #52657a;
  font-size: calc(26 * var(--rpx));
  line-height: 1.75;
}

.section-title {
  margin: calc(30 * var(--rpx)) 0 calc(16 * var(--rpx));
  font-size: calc(30 * var(--rpx));
  font-weight: 800;
  color: #243b53;
}

.mini-title {
  margin-top: calc(22 * var(--rpx));
  font-size: calc(26 * var(--rpx));
}

.section-block {
  margin-top: calc(24 * var(--rpx));
}

.section-text {
  color: #334e68;
  font-size: calc(27 * var(--rpx));
  line-height: 1.95;
}

.highlight-text,
.guide-text {
  margin-top: calc(18 * var(--rpx));
  padding: calc(18 * var(--rpx)) calc(20 * var(--rpx));
  border-radius: calc(16 * var(--rpx));
  background: #f0f7ff;
  color: #1f4f8f;
  font-size: calc(26 * var(--rpx));
  line-height: 1.7;
}

.meta {
  margin-top: calc(14 * var(--rpx));
  color: #829ab1;
  font-size: calc(24 * var(--rpx));
  line-height: 1.6;
}

.teacher-box {
  display: grid;
  gap: calc(14 * var(--rpx));
  margin-top: calc(26 * var(--rpx));
  padding: calc(22 * var(--rpx));
  border-radius: calc(18 * var(--rpx));
  background: rgba(255, 255, 255, 0.78);
}

.teacher-value {
  display: block;
  margin-top: calc(6 * var(--rpx));
  color: #102a43;
  font-size: calc(30 * var(--rpx));
  font-weight: 800;
}

.info-grid {
  display: flex;
  flex-direction: column;
  gap: calc(14 * var(--rpx));
  margin-top: calc(20 * var(--rpx));
}

.compact-info {
  padding: calc(18 * var(--rpx)) 0 0;
}

.info-row {
  display: flex;
  gap: calc(14 * var(--rpx));
  color: #334e68;
  font-size: calc(26 * var(--rpx));
  line-height: 1.6;
}

.info-label {
  flex: 0 0 calc(144 * var(--rpx));
  color: #829ab1;
}

.info-value {
  flex: 1;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: calc(12 * var(--rpx));
  margin-top: calc(16 * var(--rpx));
}

.tag {
  padding: calc(8 * var(--rpx)) calc(16 * var(--rpx));
  border-radius: calc(999 * var(--rpx));
  background: #e6f0ff;
  color: #1d4ed8;
  font-size: calc(24 * var(--rpx));
  line-height: 1.4;
}

.soft-tag,
.success-tag {
  background: #ecfdf3;
  color: #26734d;
}

.feature-tags {
  margin-top: calc(20 * var(--rpx));
}

.button-row,
.action-grid {
  display: flex;
  gap: calc(16 * var(--rpx));
  margin-top: calc(26 * var(--rpx));
}

.action-grid {
  display: grid;
  grid-template-columns: minmax(0, calc(640 * var(--rpx)));
  justify-content: center;
  gap: calc(18 * var(--rpx));
}

.primary-button,
.secondary-button {
  flex: 1;
  min-height: calc(88 * var(--rpx));
  border-radius: calc(16 * var(--rpx));
  font-size: calc(28 * var(--rpx));
  line-height: calc(88 * var(--rpx));
}

.primary-button {
  color: #ffffff;
  background: #2563eb;
}

.secondary-button {
  color: #1d4ed8;
  background: #dbeafe;
}

.full-button,
.action-grid .primary-button {
  display: flex;
  flex: 0 1 calc(640 * var(--rpx));
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  max-width: calc(640 * var(--rpx));
  min-width: calc(360 * var(--rpx));
  min-height: calc(88 * var(--rpx));
  padding: 0 calc(32 * var(--rpx));
  line-height: 1.4;
  white-space: nowrap;
}

.full-button {
  margin: calc(24 * var(--rpx)) auto 0;
}

.action-grid .primary-button {
  margin: 0 auto;
}

.home-products-action {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: calc(24 * var(--rpx));
}

.home-products-button {
  display: flex;
  flex: 0 1 calc(640 * var(--rpx));
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  max-width: calc(640 * var(--rpx));
  min-width: calc(360 * var(--rpx));
  min-height: calc(88 * var(--rpx));
  margin: 0 auto;
  padding: 0 calc(32 * var(--rpx));
  line-height: 1.4;
  white-space: nowrap;
}

.card-button {
  width: 100%;
  margin-top: calc(24 * var(--rpx));
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(16 * var(--rpx));
  margin-bottom: calc(24 * var(--rpx));
}

.quick-card {
  padding: calc(26 * var(--rpx));
  border-radius: calc(18 * var(--rpx));
  background: #ffffff;
  color: #1d4ed8;
  box-shadow: 0 calc(8 * var(--rpx)) calc(24 * var(--rpx)) rgba(15, 23, 42, 0.05);
}

.quick-title {
  font-size: calc(29 * var(--rpx));
  font-weight: 800;
}

.quick-desc {
  margin-top: calc(8 * var(--rpx));
  color: #627d98;
  font-size: calc(23 * var(--rpx));
  line-height: 1.5;
}

.lesson-line {
  margin-bottom: calc(8 * var(--rpx));
  color: #1d4ed8;
  font-size: calc(24 * var(--rpx));
  font-weight: 800;
}

.card-link {
  margin-top: calc(22 * var(--rpx));
  color: #1d4ed8;
  font-size: calc(26 * var(--rpx));
  font-weight: 800;
}

.bullet-list,
.question-list,
.step-list {
  display: flex;
  flex-direction: column;
  gap: calc(12 * var(--rpx));
  margin-top: calc(12 * var(--rpx));
}

.bullet-item {
  position: relative;
  padding-left: calc(28 * var(--rpx));
  color: #334e68;
  font-size: calc(27 * var(--rpx));
  line-height: 1.85;
}

.bullet-item::before {
  position: absolute;
  left: 0;
  top: calc(18 * var(--rpx));
  width: calc(10 * var(--rpx));
  height: calc(10 * var(--rpx));
  border-radius: 50%;
  background: #2563eb;
  content: "";
}

.question-item,
.step-item {
  display: flex;
  gap: calc(14 * var(--rpx));
  padding: calc(18 * var(--rpx));
  border-radius: calc(16 * var(--rpx));
  background: #f8fafc;
  color: #334e68;
  font-size: calc(27 * var(--rpx));
  line-height: 1.75;
}

.step-item span {
  flex: 0 0 calc(38 * var(--rpx));
  height: calc(38 * var(--rpx));
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  font-size: calc(23 * var(--rpx));
  line-height: calc(38 * var(--rpx));
  text-align: center;
}

.flow-block {
  margin-top: calc(18 * var(--rpx));
  padding: calc(20 * var(--rpx));
  border-radius: calc(16 * var(--rpx));
  background: #f8fafc;
}

.flow-title {
  display: block;
  margin-bottom: calc(8 * var(--rpx));
  color: #102a43;
  font-size: calc(27 * var(--rpx));
  font-weight: 800;
}

.link-box {
  margin-top: calc(18 * var(--rpx));
  padding: calc(20 * var(--rpx));
  border-radius: calc(14 * var(--rpx));
  background: #f0f4f8;
  color: #334e68;
  font-size: calc(25 * var(--rpx));
  line-height: 1.7;
  word-break: break-all;
}

.link-box-strong {
  border: calc(2 * var(--rpx)) solid #bfdbfe;
  background: #eff6ff;
}

.courseware-tip,
.local-tip,
.link-label {
  margin-top: calc(16 * var(--rpx));
  color: #334e68;
  font-size: calc(26 * var(--rpx));
  line-height: 1.75;
}

.local-tip {
  padding: calc(16 * var(--rpx));
  border-radius: calc(14 * var(--rpx));
  background: #fff7ed;
  color: #9a3412;
}

.muted-tip {
  background: #f8fafc;
  color: #64748b;
}

.empty,
.error,
.loading {
  margin-top: calc(36 * var(--rpx));
  padding: calc(64 * var(--rpx)) calc(28 * var(--rpx));
  border-radius: calc(18 * var(--rpx));
  background: #ffffff;
  color: #829ab1;
  font-size: calc(28 * var(--rpx));
  line-height: 1.6;
  text-align: center;
}

.error {
  color: #b42318;
  background: #fff4f2;
}
.state-title {
  display: block;
  color: #102a43;
  font-size: calc(30 * var(--rpx));
  font-weight: 800;
  line-height: 1.5;
}

.state-desc {
  display: block;
  margin-top: calc(12 * var(--rpx));
  color: #627d98;
  font-size: calc(25 * var(--rpx));
  line-height: 1.7;
}

.error .state-title {
  color: #b42318;
}

.state-actions {
  display: flex;
  justify-content: center;
  gap: calc(16 * var(--rpx));
  margin-top: calc(26 * var(--rpx));
}

.state-button {
  min-width: calc(200 * var(--rpx));
  min-height: calc(76 * var(--rpx));
  border-radius: calc(14 * var(--rpx));
  color: #ffffff;
  background: #2563eb;
  font-size: calc(26 * var(--rpx));
  line-height: calc(76 * var(--rpx));
}

.state-button.secondary {
  color: #1d4ed8;
  background: #dbeafe;
}

.demo-notice {
  margin: 0 0 calc(22 * var(--rpx));
  padding: calc(18 * var(--rpx)) calc(22 * var(--rpx));
  border-radius: calc(16 * var(--rpx));
  background: #fff7ed;
  color: #9a3412;
  font-size: calc(24 * var(--rpx));
  line-height: 1.7;
}

.ability-note {
  margin-top: calc(16 * var(--rpx));
  padding: calc(16 * var(--rpx)) calc(18 * var(--rpx));
  border-radius: calc(14 * var(--rpx));
  background: #f8fafc;
  color: #64748b;
  font-size: calc(24 * var(--rpx));
  line-height: 1.7;
}

.favorite-status-note {
  box-sizing: border-box;
  width: 100%;
  margin-top: calc(22 * var(--rpx));
  text-align: center;
  word-break: normal;
}

.link-ready-text {
  text-align: center;
  word-break: normal;
}

.back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: calc(18 * var(--rpx));
  color: #1d4ed8;
  font-size: calc(26 * var(--rpx));
  font-weight: 700;
}

.disabled-button {
  color: #829ab1;
  background: #e5eaf0;
}

@media (min-width: 720px) {
  .container {
    max-width: calc(880 * var(--rpx));
    margin: 0 auto;
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.quick-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  min-height: calc(64 * var(--rpx));
  margin-top: calc(18 * var(--rpx));
  padding: 0 calc(20 * var(--rpx));
  border-radius: calc(14 * var(--rpx));
  background: #e8f1ff;
  color: #1d4ed8;
  font-size: calc(25 * var(--rpx));
  font-weight: 800;
  line-height: 1.4;
}

.card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  min-height: calc(76 * var(--rpx));
  margin-top: calc(24 * var(--rpx));
  padding: 0 calc(24 * var(--rpx));
  border-radius: calc(16 * var(--rpx));
  background: #e8f1ff;
  color: #1d4ed8;
  font-size: calc(27 * var(--rpx));
  font-weight: 800;
  line-height: 1.4;
}

.card-action-arrow {
  flex: 0 0 auto;
  margin-left: calc(16 * var(--rpx));
  font-size: calc(32 * var(--rpx));
  line-height: 1;
}

.primary-button,
.secondary-button,
.state-button,
.home-products-button,
.card-action,
.quick-action {
  box-sizing: border-box;
  word-break: keep-all;
}

.course-action-row {
  justify-content: flex-start;
  margin-top: calc(24 * var(--rpx));
}

.resource-card .card-summary {
  margin-top: calc(10 * var(--rpx));
}

.feedback-form {
  display: flex;
  flex-direction: column;
}
.filter-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-bottom: calc(24 * var(--rpx));
  padding: calc(24 * var(--rpx));
  border-radius: calc(20 * var(--rpx));
  background: #ffffff;
  box-shadow: 0 calc(8 * var(--rpx)) calc(24 * var(--rpx)) rgba(15, 23, 42, 0.05);
}

.home-filter-card {
  margin-top: calc(4 * var(--rpx));
}

.filter-title {
  margin-bottom: calc(18 * var(--rpx));
  color: #102a43;
  font-size: calc(30 * var(--rpx));
  font-weight: 800;
  line-height: 1.4;
}

.search-stack {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  gap: calc(16 * var(--rpx));
}

.filter-search-input,
.search-input {
  box-sizing: border-box;
  width: 100%;
  min-height: calc(84 * var(--rpx));
  padding: 0 calc(24 * var(--rpx));
  border: calc(2 * var(--rpx)) solid #cbd5e1;
  border-radius: calc(16 * var(--rpx));
  background: #f8fafc;
  color: #102a43;
  font-size: calc(28 * var(--rpx));
  line-height: calc(84 * var(--rpx));
}

.search-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
  gap: calc(16 * var(--rpx));
}

.search-button,
.clear-button,
.filter-chip {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: calc(72 * var(--rpx));
  margin: 0;
  padding: 0 calc(8 * var(--rpx));
  border-radius: calc(16 * var(--rpx));
  font-size: calc(24 * var(--rpx));
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow: visible;
}

.search-button {
  color: #ffffff;
  background: #2563eb;
}

.clear-button {
  color: #1d4ed8;
  background: #dbeafe;
  border: calc(2 * var(--rpx)) solid #bfdbfe;
}

.filter-section {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin-top: calc(24 * var(--rpx));
}

.filter-label {
  margin-bottom: calc(12 * var(--rpx));
  color: #334e68;
  font-size: calc(25 * var(--rpx));
  font-weight: 800;
}

.filter-grid {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: calc(14 * var(--rpx));
}

.resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.filter-chip {
  color: #334e68;
  background: #f8fafc;
  border: calc(2 * var(--rpx)) solid #cbd5e1;
  box-shadow: 0 calc(2 * var(--rpx)) calc(6 * var(--rpx)) rgba(15, 23, 42, 0.04);
}

.filter-chip.active {
  color: #ffffff;
  background: #1d4ed8;
  border-color: #1e40af;
  box-shadow: 0 calc(4 * var(--rpx)) calc(10 * var(--rpx)) rgba(29, 78, 216, 0.24);
  font-weight: 800;
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  min-width: 0;
  margin-top: calc(20 * var(--rpx));
}

.filter-actions .clear-button {
  width: auto;
  min-width: calc(220 * var(--rpx));
  padding: 0 calc(24 * var(--rpx));
}

button.filter-chip::after,
button.search-button::after,
button.clear-button::after {
  border: 0;
}

.package-loading {
  margin-top: calc(12 * var(--rpx));
}


.resource-status-row {
  margin-top: calc(18 * var(--rpx));
}

.resource-status-tag {
  border: calc(1 * var(--rpx)) solid #9dd8b8;
}

.resource-empty-text {
  display: block;
  margin-top: calc(18 * var(--rpx));
  color: #6b7c8f;
  font-size: calc(24 * var(--rpx));
  line-height: 1.5;
}

.resource-unavailable-text {
  display: block;
  margin-top: calc(8 * var(--rpx));
  color: #6b7c8f;
  font-size: calc(24 * var(--rpx));
  line-height: 1.5;
}

/* Task X multi-device foundation. Max-width only affects wide viewports. */
.x2a-products-page,
.x2b-product-detail-page,
.x2b-courses-page,
.x2c-page,
.x3a-page,
.courseware-open-page,
.gameplay-page,
.gameplay-video-page,
.x4a-favorites-page,
.recent-page,
.feedback-page {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin-right: auto;
  margin-left: auto;
}

.x2a-products-page,
.x2b-product-detail-page,
.x2b-courses-page,
.courseware-open-page,
.gameplay-video-page,
.x4a-favorites-page,
.recent-page {
  max-width: 960px;
}

.x2c-page,
.x3a-page,
.gameplay-page {
  max-width: 760px;
}

.feedback-page {
  max-width: 720px;
}

body .x2b-product-detail-page,
body .x2b-courses-page,
body .x2c-page,
body .x3a-page,
body .courseware-open-page,
body .feedback-page {
  padding-bottom: calc(calc(156 * var(--rpx)) + env(safe-area-inset-bottom));
}

@media (min-width:10000px) {
  body .x1-primary-page {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  body .x2b-product-detail-page,
  body .x2b-courses-page,
  body .x2c-page,
  body .x3a-page,
  body .courseware-open-page,
  body .feedback-page {
    padding-bottom: calc(48px + env(safe-area-inset-bottom));
  }

  body .x2a-state__illustration,
  body .x4a-favorite-empty-image,
  body .recent-state__illustration,
  body .feedback-empty__image {
    max-width: 280px;
    max-height: 280px;
  }
}

.home-custom-navigation__safe-mask,.home-custom-navigation__bar,.me-custom-navigation__safe-mask,.me-custom-navigation__bar{left:50%;right:auto;width:min(100%,562.5px);transform:translateX(-50%)}
.controlled-image {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: calc(22 * var(--rpx));
  overflow: hidden;
  border: calc(2 * var(--rpx)) solid #d9e2ec;
  border-radius: calc(12 * var(--rpx));
  background: #eef2f6;
}

.controlled-image--detail,
.controlled-image--home-recent,
.controlled-image--home-product {
  aspect-ratio: 4 / 3;
}

.controlled-image--home-recent,
.controlled-image--home-product {
  height: 100%;
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
}

.controlled-image__media {
  display: block;
  width: 100%;
  height: 100%;
}

.controlled-image__state {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: calc(16 * var(--rpx));
  color: #6b6870;
  font-size: calc(23 * var(--rpx));
  line-height: 1.45;
  text-align: center;
}

.controlled-image__state--retry {
  color: #1e61ae;
  font-weight: 700;
}

.home-custom-navigation__safe-mask,.home-custom-navigation__bar,.me-custom-navigation__safe-mask,.me-custom-navigation__bar{left:50%;right:auto;width:min(100%,562.5px);transform:translateX(-50%)}
.page-state {
  box-sizing: border-box;
  width: 100%;
  padding: calc(44 * var(--rpx)) calc(30 * var(--rpx));
  border: calc(2 * var(--rpx)) solid #e5e2e4;
  border-radius: calc(16 * var(--rpx));
  background: #ffffff;
  text-align: center;
}

.page-state--danger {
  border-color: #f0c9c5;
  background: #fff8f7;
}

.page-state--warning {
  border-color: #edd5ae;
  background: #fffaf2;
}

.page-state--info {
  border-color: #c9ddf2;
  background: #f7fbff;
}

.page-state__title,
.page-state__description {
  display: block;
}

.page-state__title {
  color: #46323b;
  font-size: calc(30 * var(--rpx));
  font-weight: 800;
  line-height: 1.45;
}

.page-state--danger .page-state__title {
  color: #b42318;
}

.page-state__description {
  margin-top: calc(12 * var(--rpx));
  color: #6b6870;
  font-size: calc(25 * var(--rpx));
  line-height: 1.7;
}

.page-state__actions {
  margin-top: calc(24 * var(--rpx));
}

.page-state__actions:empty {
  display: none;
}

.page-state__skeleton {
  display: flex;
  flex-direction: column;
  gap: calc(14 * var(--rpx));
  margin-bottom: calc(24 * var(--rpx));
}

.page-state__skeleton-line {
  width: 100%;
  height: calc(22 * var(--rpx));
  border-radius: calc(999 * var(--rpx));
  background: #f0edef;
  animation: page-state-pulse 1.25s ease-in-out infinite alternate;
}

.page-state__skeleton-line--short {
  width: 38%;
  margin: 0 auto;
  background: #dbe9f6;
}

.page-state__skeleton-line--medium {
  width: 68%;
  margin: 0 auto;
}

@keyframes page-state-pulse {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

.home-custom-navigation__safe-mask,.home-custom-navigation__bar,.me-custom-navigation__safe-mask,.me-custom-navigation__bar{left:50%;right:auto;width:min(100%,562.5px);transform:translateX(-50%)}
.bottom-navigation {
  position: fixed;
  z-index: 80;
  right: 0;
  bottom: 0;
  left: 0;
  box-sizing: border-box;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: calc(2 * var(--rpx)) solid #f0edef;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 calc(-6 * var(--rpx)) calc(18 * var(--rpx)) rgba(70, 50, 59, 0.06);
}

.bottom-navigation__inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  box-sizing: border-box;
  width: 100%;
  max-width: 720px;
  min-height: calc(108 * var(--rpx));
  margin: 0 auto;
  padding: calc(10 * var(--rpx)) calc(16 * var(--rpx)) calc(8 * var(--rpx));
}

.bottom-navigation__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0;
  min-height: calc(86 * var(--rpx));
  margin: 0;
  padding: calc(4 * var(--rpx)) calc(2 * var(--rpx));
  border-radius: calc(12 * var(--rpx));
  color: #7d8798;
  background: transparent;
  font-weight: 600;
  line-height: 1.2;
}

.bottom-navigation__item::after {
  border: 0;
}

.bottom-navigation__item.is-active {
  color: #46323b;
  background: transparent;
}

.bottom-navigation__icon {
  display: block;
  width: calc(42 * var(--rpx));
  height: calc(42 * var(--rpx));
}

.bottom-navigation__label {
  margin-top: calc(4 * var(--rpx));
  font-size: calc(22 * var(--rpx));
  line-height: 1.3;
  white-space: nowrap;
}

.bottom-navigation__item.is-active .bottom-navigation__label {
  color: #46323b;
  font-weight: 800;
}

.bottom-navigation__item:active .bottom-navigation__icon {
  transform: scale(0.94);
}

@media (max-width: 360px) {
  .bottom-navigation__inner {
    padding-right: calc(8 * var(--rpx));
    padding-left: calc(8 * var(--rpx));
  }

  .bottom-navigation__item {
    min-height: calc(82 * var(--rpx));
  }

  .bottom-navigation__label {
    font-size: calc(21 * var(--rpx));
  }
}

/* X-1 R4 width correction */
:host {
  display: block;
  width: 100%;
  min-width: 0;
}

.bottom-navigation {
  right: 0;
  left: 0;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  overflow: hidden;
}

.bottom-navigation__inner {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  box-sizing: border-box;
  width: 100%;
  max-width: 720px;
  min-width: 0;
  overflow: hidden;
}

.bottom-navigation__item {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

@media (min-width:10000px) {
  .bottom-navigation__inner {
    min-height: 72px;
    padding: 6px 16px 4px;
  }

  .bottom-navigation__item {
    min-height: 62px;
    padding: 2px;
    border-radius: 8px;
  }

  .bottom-navigation__icon {
    width: 28px;
    height: 28px;
  }

  .bottom-navigation__label {
    margin-top: 2px;
    font-size: 14px;
  }
}

/* TASK-X-MULTI-DEVICE-02: keep the SE tab targets comfortable without
   changing the 390px iPhone 12/13 baseline. */
@media (max-width: 360px) {
  .bottom-navigation__item {
    min-height: calc(92 * var(--rpx));
  }

  .bottom-navigation__label {
    font-size: calc(22 * var(--rpx));
  }
}

.home-custom-navigation__safe-mask,.home-custom-navigation__bar,.me-custom-navigation__safe-mask,.me-custom-navigation__bar{left:50%;right:auto;width:min(100%,562.5px);transform:translateX(-50%)}
.page-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(16 * var(--rpx));
  margin: 0 0 calc(22 * var(--rpx));
}

.nav-button {
  box-sizing: border-box;
  min-width: 0;
  min-height: calc(72 * var(--rpx));
  padding: 0 calc(24 * var(--rpx));
  border-radius: calc(999 * var(--rpx));
  font-size: calc(25 * var(--rpx));
  font-weight: 700;
  line-height: calc(72 * var(--rpx));
  white-space: nowrap;
}

.nav-button-secondary {
  flex: 1;
  color: #1d4ed8;
  background: #e8f1ff;
}

.nav-button-primary {
  flex: 0 0 auto;
  color: #ffffff;
  background: #2563eb;
}

.nav-button-hover {
  opacity: 0.82;
}

.home-custom-navigation__safe-mask,.home-custom-navigation__bar,.me-custom-navigation__safe-mask,.me-custom-navigation__bar{left:50%;right:auto;width:min(100%,562.5px);transform:translateX(-50%)}