.user-center-page {
  --uc-panel: var(--panel);
  --uc-muted: var(--muted);
  --uc-border: var(--line);
}
.nav-actions .signed-in-account {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: inherit;
  border: 1px solid var(--line);
}
[data-theme='dark'] .user-center-page {
  --uc-panel: #020303;
  --uc-muted: #a0a0aa;
  --uc-border: #2b2c30;
}
.user-center-wrap {
  min-height: calc(100vh - 72px);
  padding: 120px 20px 75px;
}
.user-center {
  max-width: 642px;
  margin: 0 auto;
}
.uc-panel {
  background: var(--uc-panel);
  border: 1px solid var(--uc-border);
  border-radius: 15px;
}
.uc-profile {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 128px;
}
.uc-avatar {
  width: 86px;
  height: 86px;
  flex-shrink: 0;
  border: 2px solid var(--text);
  border-radius: 50%;
  overflow: hidden;
  padding: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #334658, #091823);
  color: #fff;
  font-size: 32px;
  font-weight: 700;
}
.uc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.uc-identity {
  flex: 1;
  min-width: 0;
}
.uc-identity h1 {
  font-size: 23px;
  line-height: 1.25;
  margin: 0;
  overflow-wrap: anywhere;
}
.uc-identity p {
  color: var(--uc-muted);
  font-size: 14px;
  margin: 2px 0 12px;
}
.uc-level {
  display: flex;
  align-items: center;
  gap: 10px;
}
.level-badge {
  font-size: 12px;
  white-space: nowrap;
  padding: 4px 11px;
  border-radius: 30px;
  color: white;
  background: linear-gradient(105deg, #6e86ff, #8237f8);
  box-shadow: 0 4px 10px #633cf133;
  font-weight: 700;
}
.level-track {
  height: 8px;
  background: #272a2e;
  border-radius: 20px;
  max-width: 200px;
  flex: 1;
  min-width: 35px;
  overflow: hidden;
}
.level-track i {
  display: block;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, #7685ff, #903bff);
}
.uc-level small {
  font-size: 12px;
  color: var(--uc-muted);
  white-space: nowrap;
}
.uc-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.uc-stats > div {
  text-align: center;
  border-radius: 12px;
  padding: 10px 4px;
  min-height: 72px;
}
.uc-stats strong {
  display: block;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 800;
}
.uc-stats span {
  font-size: 12px;
  color: var(--uc-muted);
}
.streak-stat strong {
  color: #ff7b00;
}
.uc-themes {
  padding: 18px 20px 20px;
}
.uc-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.user-center h2 {
  font-size: 16px;
  margin: 0;
  line-height: 1.5;
}
.uc-section-title > small,
.uc-section-title > a,
.uc-section-title > button {
  font-size: 12px;
  color: var(--uc-muted);
}
.theme-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.theme-option {
  text-align: left;
  position: relative;
  min-width: 0;
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--uc-border);
  border-radius: 16px;
}
.theme-option.selected {
  border-color: #5c8eff;
  box-shadow: 0 0 0 2px #5c8eff30;
}
.theme-option > strong {
  display: block;
  font-size: 14px;
  margin-top: 7px;
}
.theme-option > small {
  font-size: 12px;
  color: var(--uc-muted);
}
.theme-check {
  position: absolute;
  right: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #5b8fff;
  color: #fff;
  font-size: 16px;
}
.theme-preview {
  height: 95px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  pointer-events: none;
}
.classic-preview {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 8px 5px 0;
  isolation: isolate;
}
.classic-preview > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.classic-preview > strong {
  font-size: 12px;
  text-shadow: 0 2px 6px #000;
}
.preview-search {
  height: 10px;
  width: 62%;
  margin: 5px auto;
  border-radius: 15px;
  background: #fff;
  border: 1px solid #a6a8b330;
}
.preview-stats {
  display: inline-block;
  background: #101116e0;
  border-radius: 5px;
  font-size: 7px;
  padding: 3px 8px;
}
.preview-links {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #f7f7fc;
  display: flex;
  gap: 6px;
  padding: 7px 8px;
}
.preview-links i {
  height: 9px;
  flex: 1;
  border-radius: 3px;
  background: #6d71f139;
}
.preview-links i:nth-child(2) {
  background: #3ac1c939;
}
.preview-links i:nth-child(3) {
  background: #ce4deb39;
}
.preview-links i:nth-child(4) {
  background: #efbe5539;
}
.modular-preview {
  background: #f7f8fc;
  color: #5b6093;
  padding: 4px 8px;
}
.preview-nav {
  font-size: 5px;
  white-space: nowrap;
  background: #fff;
  padding: 2px;
}
.modular-preview > .preview-search {
  height: 6px;
  margin: 4px 0;
  width: 62%;
}
.preview-layout {
  display: grid;
  grid-template-columns: 1fr 60px;
  gap: 7px;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.preview-grid i {
  height: 24px;
  background: linear-gradient(140deg, #ac729c, #373b61);
  border-bottom: 8px solid #fff;
  border-radius: 3px;
}
.preview-grid i:nth-child(2n) {
  background: linear-gradient(140deg, #376a78, #91ba86);
}
.preview-layout aside i {
  display: block;
  height: 19px;
  border-radius: 5px;
  margin-bottom: 4px;
  background: linear-gradient(110deg, #554ef9, #cf56ee);
}
.preview-layout aside i:nth-child(2) {
  background: linear-gradient(110deg, #1daf93, #469aff);
}
.preview-layout aside i:nth-child(3) {
  background: #fff;
  height: 22px;
}
.uc-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px;
}
.uc-left,
.uc-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.uc-favorites,
.uc-notifications,
.uc-checkin,
.uc-account {
  padding: 18px 20px;
}
.uc-empty {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 110px;
  color: var(--uc-muted);
  font-size: 13px;
  text-align: center;
}
.uc-empty a:hover {
  text-decoration: underline;
}
.uc-checkin h2 {
  margin-bottom: 16px;
}
.uc-checkin-card {
  border: 1px solid #ffffff12;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 12px 18px #06938122;
  background: #0b0b0d;
  color: #f7f7f8;
}
.checkin-art {
  height: 143px;
  background: radial-gradient(ellipse 90% 45% at 50% 0, #424247 0, transparent 90%), #050506;
  display: grid;
  place-items: center;
}
.checkin-art span {
  font-size: 22px;
  filter: drop-shadow(0 0 14px #ffcf2460);
}
.checkin-body {
  padding: 12px 13px;
}
.checkin-heading {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  gap: 8px;
  white-space: nowrap;
}
.checkin-body p {
  font-size: 16px;
  margin: 16px 0;
}
.checkin-body p strong {
  font-size: 36px;
  line-height: 1;
}
.checkin-body p small {
  font-size: 12px;
}
.checkin-body button {
  width: 100%;
  background: #fff;
  color: #1a837b;
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
}
.checkin-body button:disabled {
  color: #868f90;
  background: #dedee2;
  cursor: default;
}
.uc-points-note {
  display: block;
  text-align: center;
  font-size: 10px;
  color: var(--uc-muted);
  margin-top: 9px;
}
.uc-favorite-list {
  margin-top: 6px;
}
.uc-favorite {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  border-bottom: 1px solid var(--uc-border);
}
.uc-favorite:last-child {
  border-bottom: 0;
}
.uc-favorite > a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.uc-favorite img {
  width: 70px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
}
.uc-favorite span {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uc-favorite small {
  display: block;
  color: var(--uc-muted);
  font-size: 10px;
}
.uc-favorite button {
  font-size: 19px;
  color: var(--uc-muted);
  padding: 4px;
}
.notification-list {
  max-height: 400px;
  overflow: auto;
}
.notification {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--uc-border);
}
.notification p {
  font-size: 12px;
  margin: 0 0 3px;
  overflow-wrap: anywhere;
}
.notification small {
  font-size: 10px;
  color: var(--uc-muted);
}
.notification.unread p:before {
  content: '';
  display: inline-block;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  background: #6084ff;
  margin-right: 6px;
}
.uc-account dl {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px 8px;
  font-size: 12px;
  margin: 20px 0;
}
.uc-account dt {
  color: var(--uc-muted);
}
.uc-account dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.uc-account-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.uc-account-actions button,
.uc-account-actions a {
  font-size: 12px;
  color: var(--uc-muted);
  border: 1px solid var(--uc-border);
  border-radius: 8px;
  padding: 6px 10px;
}
.uc-account-actions button:hover {
  color: var(--text);
}
.uc-logged-out {
  max-width: 642px;
  margin: 0 auto;
  text-align: center;
  padding: 50px 20px;
}
.uc-logged-out p {
  color: var(--uc-muted);
  margin-bottom: 25px;
}
.uc-logged-out h1 {
  font-size: 24px;
}
.user-center-page #footer {
  background: var(--uc-panel);
}
.user-center-page .nav-actions > button.signed-in-account {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--uc-border);
  padding: 0;
  font-size: 19px;
}
.user-center-page .topbar {
  height: 72px;
  background: var(--uc-panel);
}
@media (max-width: 700px) {
  .user-center-wrap {
    padding-top: 45px;
  }
  .uc-profile {
    padding: 18px 15px;
    gap: 13px;
  }
  .uc-avatar {
    width: 65px;
    height: 65px;
  }
  .uc-identity h1 {
    font-size: 20px;
  }
  .uc-identity p {
    font-size: 11px;
  }
  .uc-level {
    flex-wrap: wrap;
    gap: 6px;
  }
  .uc-level small {
    font-size: 10px;
  }
  .level-badge {
    font-size: 10px;
    padding: 3px 7px;
  }
  .level-track {
    min-width: 40px;
  }
  .uc-stats {
    gap: 6px;
    margin: 15px 0;
  }
  .uc-stats strong {
    font-size: 21px;
  }
  .uc-stats span {
    font-size: 10px;
  }
  .uc-themes {
    padding: 15px;
  }
  .theme-options {
    gap: 10px;
  }
  .theme-option {
    padding: 7px;
    border-radius: 12px;
  }
  .theme-option > small {
    font-size: 10px;
  }
  .theme-preview {
    height: 80px;
  }
  .uc-columns {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .uc-left,
  .uc-right {
    gap: 15px;
  }
  .uc-checkin-card {
    max-width: 330px;
    margin: 0 auto;
  }
  .uc-empty {
    min-height: 95px;
  }
  .uc-checkin,
  .uc-favorites,
  .uc-notifications,
  .uc-account {
    padding: 17px;
  }
}

@media (max-width: 400px) {
  .topbar {
    gap: 10px;
    padding-inline: 12px;
  }
  .nav-actions > .primary {
    white-space: nowrap;
    flex-shrink: 0;
  }
}
