:root {
  --blue: #1267ff;
  --deep: #052b64;
  --cyan: #5ed6ff;
  --mint: #22c55e;
  --ink: #17243a;
  --muted: #738196;
  --line: #e2edf8;
  --soft: #f3f8ff;
  --card: #fff;
  --shadow: 0 14px 34px rgba(20, 65, 126, .10);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #eef3f8;
  font-family: "HarmonyOS Sans SC", "MiSans", "Alibaba PuHuiTi 3.0", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: #eef3f8;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

svg {
  display: block;
  flex: 0 0 auto;
  max-width: 100%;
  max-height: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.app {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 14px 92px;
  background:
    radial-gradient(circle at 86% 0%, rgba(94, 214, 255, .22), transparent 138px),
    linear-gradient(180deg, #f8fbff 0%, #eef5fb 44%, #f7f9fc 100%);
  overflow: hidden;
}

.account-hero {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 18px;
  border: 1px solid rgba(223, 235, 248, .72);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 18%, rgba(94, 214, 255, .32), transparent 96px),
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(235, 246, 255, .92));
  box-shadow: var(--shadow);
  isolation: isolate;
}

.account-hero::after {
  position: absolute;
  right: -32px;
  bottom: -44px;
  z-index: -1;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 32px solid rgba(18, 103, 255, .06);
  content: "";
}

.hero-tools {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}

.tool-btn {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, .76);
  color: #6f7f95;
  box-shadow: 0 8px 18px rgba(28, 76, 130, .08);
}

.tool-btn svg {
  width: 20px;
  height: 20px;
}

.user-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  max-width: 100%;
}

.avatar {
  position: relative;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  border: 4px solid rgba(255, 255, 255, .92);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 25%, rgba(255, 255, 255, .9), transparent 18px),
    linear-gradient(135deg, #1267ff, #5ed6ff);
  color: #fff;
  box-shadow: 0 12px 26px rgba(18, 103, 255, .18);
}

.avatar svg {
  width: 34px;
  height: 34px;
}

.user-name {
  min-width: 0;
}

.user-login-trigger {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.user-name strong {
  display: block;
  overflow: hidden;
  color: var(--deep);
  font-size: 21px;
  line-height: 1.2;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-name span {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.login-btn {
  display: inline-flex;
  grid-column: 2;
  align-items: center;
  justify-content: center;
  justify-self: start;
  height: 36px;
  margin-top: 9px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1267ff, #0f4dd8);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(18, 103, 255, .22);
}

body[data-account-page="learning"] .user-row {
  grid-template-columns: 58px minmax(0, 1fr) auto;
}

body[data-account-page="learning"] .login-btn {
  grid-column: auto;
  justify-self: end;
  margin-top: 0;
  white-space: nowrap;
}

body[data-account-page="mine"] .user-row {
  grid-template-columns: 68px minmax(0, 1fr);
}

.hero-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 16px;
}

.summary-item {
  min-width: 0;
  padding: 10px 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
  text-align: center;
}

.summary-item strong {
  display: block;
  color: var(--deep);
  font-size: 22px;
  line-height: 1;
  font-weight: 950;
}

.summary-item span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.section-card {
  overflow: hidden;
  max-width: 100%;
  margin-top: 12px;
  padding: 15px;
  border: 1px solid rgba(223, 235, 248, .86);
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}

.empty-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 338px;
}

.empty-card .section-head {
  margin-bottom: 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin-bottom: 12px;
}

.section-head h2 {
  min-width: 0;
  color: var(--deep);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 950;
}

.section-head a {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-panel {
  display: grid;
  gap: 12px;
}

.progress-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.progress-row.is-primary {
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f5fbff, #eef7ff);
}

.progress-icon,
.entry-icon,
.order-icon {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .92), transparent 30%),
    linear-gradient(145deg, #f8fcff, #dff4ff);
  color: var(--blue);
}

.progress-icon {
  width: 42px;
  height: 42px;
}

.progress-icon svg,
.entry-icon svg,
.order-icon svg {
  width: 23px;
  height: 23px;
}

.progress-copy strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-copy span {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eaf4ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.tabs {
  display: flex;
  gap: 10px;
  max-width: 100%;
  overflow-x: auto;
  margin-top: 12px;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  color: #68788d;
  font-size: 14px;
  font-weight: 850;
}

.tab.active {
  background: #eaf4ff;
  color: var(--blue);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 230px;
  padding: 22px 10px 10px;
  color: #99a6b8;
  text-align: center;
}

.empty-card .empty-state {
  min-height: 0;
  padding: 0 10px 8px;
}

.empty-state > div {
  display: grid;
  justify-items: center;
}

.empty-card .empty-state > div {
  align-self: center;
  transform: translateY(-2px);
}

.empty-illus {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 0 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(210, 237, 250, .75), rgba(238, 248, 254, .35));
}

.empty-illus::before {
  position: absolute;
  left: 27px;
  top: 54px;
  width: 78px;
  height: 48px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 8px 24px rgba(121, 167, 196, .12);
  content: "";
}

.empty-illus::after {
  position: absolute;
  left: 54px;
  top: 74px;
  width: 26px;
  height: 4px;
  border-radius: 999px;
  background: #d5e0e8;
  box-shadow: 0 12px 0 #d5e0e8, 0 24px 0 #d5e0e8;
  content: "";
}

.empty-state strong {
  display: block;
  color: var(--deep);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 950;
}

.empty-state p {
  max-width: 260px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.record-list {
  display: none;
  width: min(100%, 340px);
  margin-top: 14px;
  text-align: left;
}

.is-login .record-list {
  display: grid;
  gap: 8px;
}

.is-login .empty-card {
  min-height: 360px;
}

.record-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f3f8ff;
  color: var(--ink);
}

.record-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #e5f2ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.record-main {
  overflow: hidden;
  color: var(--deep);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-time {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.record-placeholder {
  padding: 14px;
  border-radius: 12px;
  background: #f5f9ff;
  color: #7c8aa0;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
}

.entry-item {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  color: var(--deep);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.entry-item span,
.order-item span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-icon {
  width: 48px;
  height: 48px;
}

.list-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  color: var(--ink);
}

.list-row + .list-row {
  border-top: 1px solid var(--line);
}

.list-main strong {
  display: block;
  color: var(--deep);
  font-size: 15px;
  font-weight: 950;
}

.list-main span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.chev {
  color: #b3c0cf;
  font-size: 24px;
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
}

.order-item {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
  color: #68788d;
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
}

.order-icon {
  width: 38px;
  height: 38px;
}

.footer-links {
  margin: 34px 0 12px;
  color: #858f9d;
  font-size: 14px;
  text-align: center;
}

.footer-links a + a::before {
  content: "|";
  margin: 0 8px;
  color: #c9d2de;
}

.float-contact {
  position: fixed;
  right: max(14px, calc((100vw - 480px) / 2 + 14px));
  bottom: 112px;
  z-index: 24;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  box-shadow: 0 14px 30px rgba(18, 103, 255, .22);
}

.float-contact svg {
  width: 28px;
  height: 28px;
}

.float-contact.is-peek {
  transform: scale(.96);
  opacity: .82;
  box-shadow: 0 8px 20px rgba(16, 50, 91, .13);
}

.float-label {
  position: fixed;
  right: max(14px, calc((100vw - 480px) / 2 + 14px));
  bottom: 88px;
  z-index: 23;
  width: 54px;
  color: #7d8897;
  font-size: 12px;
  line-height: 1;
  text-align: center;
}

.float-label.is-peek {
  opacity: 0;
  transform: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(5, 20, 42, .48);
}

.contact-modal.open {
  display: flex;
}

.contact-card {
  width: min(100%, 320px);
  padding: 22px 20px 20px;
  border-radius: 14px;
  background: #fff;
  text-align: center;
  box-shadow: 0 22px 60px rgba(4, 20, 46, .22);
}

.contact-card h2 {
  color: var(--deep);
  font-size: 19px;
  line-height: 1.3;
  font-weight: 950;
}

.contact-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.contact-card img {
  display: block;
  width: min(220px, 72vw);
  height: min(220px, 72vw);
  margin: 18px auto 12px;
  border-radius: 8px;
}

.close-btn {
  width: 100%;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1267ff, #0f4dd8);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 560;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 18px calc(18px + var(--keyboard-inset, 0px));
  background: rgba(5, 20, 42, .48);
  transition: padding-bottom .22s ease;
}

.auth-modal.open {
  display: flex;
}

.auth-panel {
  position: relative;
  width: min(100%, 430px);
  max-height: min(82vh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 18px 18px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 86% 0%, rgba(94, 214, 255, .20), transparent 120px),
    #fff;
  box-shadow: 0 24px 70px rgba(5, 28, 68, .26);
  -webkit-overflow-scrolling: touch;
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #edf5ff;
  color: #6a788d;
  font-size: 22px;
  line-height: 1;
}

.auth-panel h2 {
  margin: 0;
  color: var(--deep);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 950;
}

.auth-subtitle,
.auth-tips {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 16px;
  padding: 4px;
  border-radius: 999px;
  background: #edf5ff;
}

.auth-tabs button {
  height: 34px;
  border-radius: 999px;
  background: transparent;
  color: #607083;
  font-size: 12px;
  font-weight: 900;
}

.auth-tabs button.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 8px 20px rgba(18, 103, 255, .12);
}

.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.auth-form label {
  display: grid;
  gap: 7px;
}

.auth-form label span {
  color: var(--deep);
  font-size: 13px;
  font-weight: 900;
}

.auth-form input {
  width: 100%;
  height: 44px;
  border: 1px solid #d9e8f6;
  border-radius: 12px;
  padding: 0 12px;
  outline: 0;
  background: #f8fbff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.auth-form input:focus {
  border-color: rgba(18, 103, 255, .56);
  box-shadow: 0 0 0 3px rgba(18, 103, 255, .10);
}

.auth-password-hint {
  margin-top: -2px;
  color: #6b7c91;
  font-size: 12px;
  line-height: 1.45;
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 8px;
}

.auth-code-btn {
  height: 44px;
  border-radius: 12px;
  background: #eaf4ff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.auth-extra-row {
  display: none;
  justify-content: flex-end;
  margin-top: -4px;
}

.auth-link-btn {
  padding: 0;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.auth-submit {
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1267ff, #0f4dd8);
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 14px 26px rgba(18, 103, 255, .24);
}

.auth-password-field {
  display: none !important;
}

body[data-auth-mode="password"] .auth-code-field {
  display: none !important;
}

body[data-auth-mode="password"] .auth-password-field,
body[data-auth-mode="register"] .auth-password-field,
body[data-auth-mode="reset"] .auth-password-field {
  display: grid !important;
}

body[data-auth-mode="register"] .auth-code-field,
body[data-auth-mode="reset"] .auth-code-field {
  display: grid !important;
}

body[data-auth-mode="password"] .auth-extra-row {
  display: flex;
}

.auth-toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 580;
  max-width: calc(100vw - 40px);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(5, 43, 100, .92);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.auth-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100vw, 480px);
  max-width: 480px;
  height: calc(66px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateX(-50%);
  border-top: 1px solid #edf1f6;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(16px);
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  gap: 3px;
  color: #313a47;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
}

.nav-item svg {
  width: 25px;
  height: 25px;
}

.nav-item.active {
  color: var(--blue);
  font-weight: 800;
}

.settings-top {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.back-btn {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, .9);
  color: var(--deep);
  box-shadow: 0 8px 20px rgba(20, 65, 126, .08);
}

.back-btn svg {
  width: 24px;
  height: 24px;
}

.settings-top h1 {
  color: var(--deep);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 950;
}

.settings-top p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.settings-profile {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.settings-avatar {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #1267ff, #5ed6ff);
  color: #fff;
}

.settings-avatar svg {
  width: 30px;
  height: 30px;
}

.settings-avatar img,
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.settings-avatar.large {
  width: 68px;
  height: 68px;
}

.avatar-profile-form {
  padding: 16px;
}

.avatar-edit-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.avatar-upload-button {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.avatar-upload-button em {
  font-style: normal;
}

.avatar-edit-row label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.avatar-edit-row input {
  width: 100%;
  height: 42px;
  border: 1px solid #d9e8f6;
  border-radius: 12px;
  padding: 0 12px;
  outline: 0;
  color: var(--ink);
}

.settings-save-profile {
  width: 100%;
  height: 42px;
  margin-top: 14px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 950;
}

.settings-profile strong {
  display: block;
  overflow: hidden;
  color: var(--deep);
  font-size: 18px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-profile span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.settings-login {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eaf4ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.settings-list {
  display: grid;
}

.settings-row,
.settings-action,
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  width: 100%;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.settings-list > :first-child {
  border-top: 0;
}

.settings-row span,
.settings-action span,
.switch-row strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.settings-row strong,
.settings-action strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.language-row select {
  max-width: 142px;
  height: 34px;
  border: 1px solid #d9e8f6;
  border-radius: 10px;
  padding: 0 10px;
  outline: 0;
  background: #f8fbff;
  color: var(--deep);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}

.settings-helper {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.switch-row span {
  display: grid;
  gap: 3px;
}

.switch-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.switch-row input {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
  appearance: none;
  border-radius: 999px;
  background: #d7e3ef;
  outline: 0;
  transition: background .18s ease;
}

.switch-row input::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(31, 61, 91, .18);
  transition: transform .18s ease;
  content: "";
}

.switch-row input:checked {
  background: var(--blue);
}

.switch-row input:checked::after {
  transform: translateX(20px);
}

.profile-form,
.password-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.profile-form label,
.password-form label {
  display: grid;
  gap: 7px;
}

.profile-form label > span,
.password-form label > span {
  color: var(--deep);
  font-size: 13px;
  font-weight: 900;
}

.profile-form input,
.password-form input {
  width: 100%;
  height: 44px;
  border: 1px solid #d9e8f6;
  border-radius: 12px;
  padding: 0 12px;
  outline: 0;
  background: #f8fbff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.logout-btn {
  width: 100%;
  height: 46px;
  margin-top: 12px;
  border-radius: 999px;
  background: #fff;
  color: #ef4444;
  font-size: 15px;
  font-weight: 950;
  box-shadow: var(--shadow);
}

.logout-btn:disabled,
.profile-form :disabled,
.password-form :disabled {
  opacity: .48;
  cursor: not-allowed;
}

.settings-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(5, 20, 42, .48);
}

.settings-modal.open {
  display: flex;
}

.settings-modal-card {
  width: min(100%, 320px);
  padding: 22px 20px 20px;
  border-radius: 14px;
  background: #fff;
  text-align: center;
  box-shadow: 0 22px 60px rgba(4, 20, 46, .22);
}

.settings-modal-card h2 {
  color: var(--deep);
  font-size: 19px;
  font-weight: 950;
}

.settings-modal-card p {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 360px) {
  .app {
    padding-right: 12px;
    padding-left: 12px;
  }

  .account-hero {
    padding: 16px;
  }

  .entry-grid {
    gap: 6px;
  }

  .entry-icon {
    width: 44px;
    height: 44px;
  }

  .summary-item strong {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .account-hero,
  .section-card,
  .auth-panel,
  .settings-modal-card {
    animation: soft-enter .38s ease both;
  }

  .entry-item,
  .list-row,
  .tool-btn,
  .login-btn,
  .nav-item,
  .float-contact,
  .auth-submit,
  .close-btn {
    transition: transform .22s ease, box-shadow .22s ease, opacity .22s ease;
  }

  .entry-item:active,
  .list-row:active,
  .tool-btn:active,
  .login-btn:active,
  .nav-item:active,
  .auth-submit:active,
  .close-btn:active {
    transform: scale(.98);
  }

  @keyframes soft-enter {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.app-learning,
.app-mine {
  background: #f6f8fb;
}

.learning-dashboard-hero {
  padding: 16px;
  color: #fff;
  border: 0;
  background:
    radial-gradient(circle at 86% 18%, rgba(94, 214, 255, .35), transparent 110px),
    linear-gradient(135deg, #07326d 0%, #1267ff 58%, #1ec4d8 100%);
  box-shadow: 0 16px 34px rgba(12, 72, 163, .18);
}

.learning-dashboard-hero::after {
  border-color: rgba(255, 255, 255, .1);
}

.dashboard-kicker {
  width: fit-content;
  margin-bottom: 13px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .88);
  font-size: 12px;
  font-weight: 900;
}

body[data-account-page="learning"] .dashboard-user-row {
  grid-template-columns: 56px minmax(0, 1fr) auto;
}

.dashboard-avatar {
  width: 56px;
  height: 56px;
  border-color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .18);
  color: #fff;
  box-shadow: none;
}

.learning-dashboard-hero .user-name strong,
.learning-dashboard-hero .progress-copy strong {
  color: #fff;
}

.learning-dashboard-hero .user-name span,
.learning-dashboard-hero .progress-copy span {
  color: rgba(255, 255, 255, .76);
}

.learning-dashboard-hero .login-btn {
  background: rgba(255, 255, 255, .96);
  color: var(--blue);
  box-shadow: 0 12px 24px rgba(0, 24, 68, .16);
}

.dashboard-progress {
  margin-top: 16px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .12);
}

.learning-progress-track {
  position: relative;
  height: 7px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
}

.learning-progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  transition: width .28s ease;
}

.dashboard-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-summary .summary-item {
  background: rgba(255, 255, 255, .14);
}

.dashboard-summary .summary-item strong,
.dashboard-summary .summary-item span {
  color: #fff;
}

.dashboard-summary .summary-item strong {
  font-size: 20px;
}

.section-note {
  color: #95a3b6;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.continue-card {
  padding: 14px;
}

.continue-main {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 70px;
  padding: 11px;
  border-radius: 14px;
  background: #f3f8ff;
}

.continue-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #1267ff, #12bdd6);
  color: #fff;
}

.continue-icon svg {
  width: 25px;
  height: 25px;
}

.learning-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.learning-stat-card {
  min-width: 0;
  padding: 12px 8px;
  border-radius: 14px;
  background: #f6f9fd;
  text-align: center;
}

.learning-stat-card span {
  display: block;
  overflow: hidden;
  color: #748398;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.learning-stat-card strong {
  display: block;
  margin-top: 8px;
  color: var(--deep);
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
}

.learning-stat-card em {
  display: block;
  margin-top: 4px;
  color: #98a6b8;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.mini-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 8px;
  height: 96px;
  margin-top: 14px;
  padding: 12px 10px 10px;
  border-radius: 14px;
  background:
    repeating-linear-gradient(180deg, rgba(206, 219, 235, .42) 0 1px, transparent 1px 24px),
    #fbfdff;
}

.mini-chart span {
  display: block;
  height: var(--h, 18%);
  min-height: 12px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #18bfd6, #1267ff);
}

.records-card .dashboard-record-list {
  display: none;
  width: 100%;
  margin-top: 0;
}

.is-login .records-card .dashboard-record-list {
  display: grid;
  gap: 8px;
}

.is-login .records-card .dashboard-empty {
  display: none;
}

.dashboard-empty {
  min-height: 218px;
}

.mine-account-hero {
  padding: 16px;
  border-radius: 18px;
  background: #fff;
}

.mine-account-hero .hero-tools {
  position: absolute;
  top: 14px;
  right: 14px;
  margin: 0;
}

.mine-user-row {
  padding-right: 42px;
}

.account-status-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 15px;
}

.account-status-strip div {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 13px;
  background: #f5f9ff;
}

.account-status-strip span {
  display: block;
  color: #8390a2;
  font-size: 12px;
  font-weight: 800;
}

.account-status-strip strong {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--deep);
  font-size: 14px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mine-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding: 14px 8px;
  border: 1px solid rgba(223, 235, 248, .86);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mine-quick-actions a,
.mine-quick-actions button {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0;
  background: transparent;
  color: var(--deep);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.mine-list-card {
  padding: 0 15px;
}

.mine-list-card .section-head {
  margin: 0;
  padding: 15px 0 2px;
}

.mine-list-card .list-row {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 58px;
  width: 100%;
  padding: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.mine-list-card .section-head + .list-row {
  border-top: 0;
}

.mine-list-card button.list-row {
  font: inherit;
}

@media (max-width: 360px) {
  body[data-account-page="learning"] .dashboard-user-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  body[data-account-page="learning"] .dashboard-user-row .login-btn {
    grid-column: 2;
    justify-self: start;
    margin-top: 8px;
  }

  .dashboard-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mine-quick-actions {
    gap: 4px;
  }
}

.mini-learning {
  padding: 0 20px 92px;
  background: #fff;
}

.learning-simple-hero {
  margin: 0 -20px;
  padding: 68px 28px 54px;
  background:
    radial-gradient(circle at 95% 0%, rgba(83, 139, 224, .22), transparent 170px),
    linear-gradient(135deg, #f3f8ff 0%, #fff 70%);
}

.learning-profile {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.learning-avatar,
.mine-avatar {
  width: 72px;
  height: 72px;
  border: 3px solid #fff;
  background: linear-gradient(135deg, #dbe8f7, #6f8fb7);
  color: #fff;
  box-shadow: 0 8px 20px rgba(45, 73, 112, .10);
}

.learning-simple-hero .user-name strong {
  color: #30343b;
  font-size: 24px;
  font-weight: 800;
}

.report-btn {
  min-width: 112px;
  height: 42px;
  margin-right: -28px;
  padding: 0 20px;
  border-radius: 999px 0 0 999px;
  background: #5c86cd;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.week-link {
  display: inline-flex;
  margin-top: 36px;
  color: #6f7279;
  font-size: 18px;
  font-weight: 500;
}

.joined-line {
  margin-top: 13px;
  color: #6f7279;
  font-size: 18px;
  line-height: 1.5;
}

.simple-tabs {
  display: flex;
  gap: 36px;
  margin-top: 42px;
  border: 0;
}

.simple-tabs button {
  position: relative;
  padding: 0 0 14px;
  background: transparent;
  color: #757981;
  font-size: 20px;
  font-weight: 600;
}

.simple-tabs button.active {
  color: #222831;
  font-weight: 850;
}

.simple-tabs button.active::after {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
  transform: translateX(-50%);
  content: "";
}

.learning-pane {
  display: none;
  margin-top: 28px;
}

.learning-pane.active {
  display: block;
}

.lesson-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  min-width: 82px;
  padding: 0 18px;
  border-radius: 999px;
  background: #eef5ff;
  color: #4e82de;
  font-size: 16px;
  font-weight: 800;
}

.simple-record-list {
  display: grid;
  width: 100%;
  margin-top: 34px;
  gap: 0;
}

.simple-record-list .record-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 13px;
  min-height: 96px;
  padding: 0 0 22px;
  border-radius: 0;
  border-bottom: 1px solid #edf0f4;
  background: transparent;
}

.simple-record-cover {
  position: relative;
  width: 140px;
  height: 82px;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(135deg, #63b5f8, #4e6fe4);
  background-size: cover;
  background-position: center;
}

.simple-record-cover::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 30%, rgba(255, 255, 255, .28), transparent 34px),
    linear-gradient(135deg, rgba(255, 255, 255, .16), transparent 58%);
  content: "";
}

.simple-record-cover em {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(25, 47, 91, .62);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.simple-record-main {
  min-width: 0;
}

.simple-record-main strong {
  display: block;
  color: #30343b;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
}

.simple-record-progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin-top: 34px;
  color: #9aa0aa;
  font-size: 15px;
}

.simple-record-progress i {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6edf8;
}

.simple-record-progress i::after {
  display: block;
  width: var(--p, 0%);
  height: 100%;
  border-radius: inherit;
  background: #377cf5;
  content: "";
}

.no-more {
  margin: 25px 0 0;
  color: #a4a8af;
  font-size: 18px;
  text-align: center;
}

.simple-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 20px;
  color: #30343b;
  font-size: 20px;
}

.title-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #5a91f5;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .32);
}

.simple-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.simple-stat-grid div {
  padding: 22px 18px;
  border-radius: 4px;
  background: #f7f7f8;
}

.simple-stat-grid span,
.today-stat span {
  display: block;
  color: #777d87;
  font-size: 16px;
}

.simple-stat-grid strong,
.today-stat strong {
  display: inline-block;
  margin-top: 20px;
  color: #2b3038;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.simple-stat-grid em,
.today-stat em {
  margin-left: 7px;
  color: #858b94;
  font-size: 16px;
  font-style: normal;
}

.period-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 162px;
  padding: 3px;
  border-radius: 999px;
  background: #f3f4f6;
}

.period-switch button {
  height: 28px;
  border-radius: 999px;
  background: transparent;
  color: #777d87;
  font-size: 15px;
}

.period-switch button.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 2px 8px rgba(30, 64, 120, .08);
}

.today-stat {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.simple-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 10px;
  height: 150px;
  margin-top: 20px;
  border-bottom: 1px solid #dde2ea;
  background:
    repeating-linear-gradient(180deg, transparent 0 48px, #e3e6eb 49px 50px);
}

.simple-chart span {
  justify-self: center;
  width: 2px;
  height: var(--h);
  min-height: 10px;
  background: #2f7df6;
}

.chart-labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-top: 8px;
  color: #7d838c;
  font-size: 12px;
  text-align: center;
}

.chart-labels span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.learning-report-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.learning-report-modal.open {
  display: flex;
}

.learning-report-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .62);
}

.learning-report-card {
  position: relative;
  z-index: 1;
  width: min(86vw, 390px);
  overflow: hidden;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .28);
}

.report-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

.report-poster {
  min-height: 520px;
  padding: 42px 28px 36px;
  background:
    radial-gradient(circle at 80% 36%, rgba(255, 255, 255, .2), transparent 120px),
    linear-gradient(135deg, #8bb6ed 0%, #5f85cd 58%, #6f92d6 100%);
  color: #fff;
}

.report-quote {
  max-width: 290px;
  color: rgba(255, 255, 255, .9);
  font-size: 19px;
  line-height: 1.7;
  font-weight: 500;
}

.report-user-card {
  position: relative;
  margin-top: 170px;
  padding: 48px 24px 28px;
  border-radius: 16px;
  background: #fff;
  color: #30343b;
}

.report-avatar {
  position: absolute;
  left: 24px;
  top: -36px;
  width: 72px;
  height: 72px;
}

.report-user-card h2 {
  color: #30343b;
  font-size: 22px;
  font-weight: 900;
}

.report-lines {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #eef0f4;
}

.report-lines p {
  color: #707780;
  font-size: 18px;
  line-height: 2.1;
}

.report-lines strong {
  color: #30343b;
  font-size: 28px;
}

.report-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.report-metric-grid span {
  display: grid;
  gap: 4px;
  padding: 12px 10px;
  border-radius: 14px;
  background: #f5f8fd;
  text-align: center;
}

.report-metric-grid b {
  color: #2563eb;
  font-size: 24px;
  line-height: 1;
}

.report-metric-grid em {
  color: #778293;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.report-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 16px;
  align-items: center;
  padding: 22px 28px;
  background: #fff;
}

.report-footer strong {
  display: block;
  color: #30343b;
  font-size: 18px;
  font-weight: 900;
}

.report-footer span {
  display: block;
  margin-top: 8px;
  color: #707780;
  font-size: 15px;
}

.report-footer img {
  width: 78px;
  height: 78px;
  border-radius: 4px;
}

.report-hint {
  padding: 0 20px 18px;
  color: #fff;
  background: rgba(0, 0, 0, .62);
  font-size: 16px;
  text-align: center;
}

.mini-mine {
  padding: 0 10px 92px;
  background: #f6f6f6;
}

.bind-tip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0 -10px;
  min-height: 60px;
  padding: 0 20px;
  background: #fff7eb;
  color: #373b42;
  font-size: 16px;
}

.bind-tip button {
  min-width: 64px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: #42b849;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.mine-simple-hero {
  position: relative;
  margin: 0 -10px;
  padding: 86px 20px 20px;
  background:
    radial-gradient(circle at 18% 18%, rgba(241, 212, 169, .26), transparent 95px),
    linear-gradient(135deg, #fff9ee 0%, #fff 76%);
}

.mine-tools {
  position: absolute;
  right: 20px;
  top: 28px;
  display: flex;
  gap: 22px;
}

.mine-tools a {
  color: #8d8d8d;
}

.mine-tools svg {
  width: 29px;
  height: 29px;
}

.mine-profile-button {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 0;
  background: transparent;
  text-align: left;
}

.mine-profile-button .user-name strong {
  color: #30343b;
  font-size: 22px;
  font-weight: 800;
}

.profile-refresh {
  color: #8d8d8d;
  font-size: 24px;
}

.mine-stat-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 36px;
  padding: 24px 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 54, 88, .04);
  text-align: center;
}

.mine-stat-card strong {
  display: block;
  color: #30343b;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.mine-stat-card span {
  display: block;
  margin-top: 10px;
  color: #6f747c;
  font-size: 16px;
}

.mine-learning-row {
  display: grid;
  grid-template-columns: 34px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  margin-top: 10px;
  padding: 0 18px;
  border-radius: 10px;
  background: #fff;
}

.mine-row-icon {
  color: #2d3644;
}

.mine-row-icon svg {
  width: 28px;
  height: 28px;
}

.mine-learning-row strong {
  color: #30343b;
  font-size: 19px;
  font-weight: 850;
  white-space: nowrap;
}

.mine-learning-row span:not(.mine-row-icon) {
  overflow: hidden;
  color: #6d737c;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mine-learning-row em {
  color: var(--blue);
  font-style: normal;
}

.mine-learning-row b,
.mine-menu b {
  color: #c5c8ce;
  font-size: 31px;
  font-weight: 300;
}

.mine-menu {
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.mine-menu a,
.mine-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  width: 100%;
  padding: 0 18px 0 22px;
  border-top: 1px solid #f0f0f0;
  background: transparent;
  color: #30343b;
  font-size: 18px;
  text-align: left;
}

.mine-menu > :first-child {
  border-top: 0;
}

@media (max-width: 360px) {
  .learning-profile {
    grid-template-columns: 66px minmax(0, 1fr);
  }

  .report-btn {
    grid-column: 2;
    justify-self: start;
    margin: 10px 0 0;
    border-radius: 999px;
  }

  .simple-record-list .record-row {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .simple-record-cover {
    width: 118px;
    height: 72px;
  }

  .mine-learning-row {
    grid-template-columns: 30px auto minmax(0, 1fr) auto;
  }
}

/* 2026-06-12 account refresh: clean, high-texture mobile account surfaces. */
.mini-learning,
.mini-mine,
.settings-page {
  color: #111827;
  background:
    radial-gradient(circle at 90% -4%, rgba(123, 179, 255, .18), transparent 170px),
    linear-gradient(180deg, #f7f9fc 0%, #f4f6f9 100%);
}

.learning-simple-hero {
  margin: 0 -20px;
  padding: 58px 24px 36px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(239, 246, 255, .86)),
    radial-gradient(circle at 86% 12%, rgba(18, 103, 255, .16), transparent 120px);
}

.learning-profile {
  grid-template-columns: 64px minmax(0, 1fr) auto;
}

.learning-avatar,
.mine-avatar {
  width: 60px;
  height: 60px;
  border-width: 2px;
  box-shadow: 0 12px 30px rgba(31, 58, 98, .10);
}

.learning-simple-hero .user-name strong,
.mine-profile-button .user-name strong {
  color: #1f2937;
  font-size: 21px;
  letter-spacing: 0;
}

.report-btn {
  min-width: 92px;
  height: 36px;
  margin-right: 0;
  padding: 0 15px;
  border-radius: 999px;
  background: #1f2937;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 12px 24px rgba(17, 24, 39, .16);
}

.week-link,
.joined-line {
  margin-top: 22px;
  color: #6b7280;
  font-size: 15px;
}

.joined-line {
  margin-top: 8px;
}

.simple-tabs {
  gap: 30px;
  margin-top: 26px;
}

.simple-tabs button {
  font-size: 17px;
}

.lesson-filter {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(210, 220, 232, .72);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(31, 58, 98, .06);
}

.lesson-filter select {
  border: 0;
  outline: 0;
  background: transparent;
  color: #1f2937;
  font: inherit;
  font-weight: 850;
}

.simple-record-list {
  margin-top: 22px;
}

.simple-record-list .record-row {
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  min-height: 88px;
  padding-bottom: 18px;
}

.simple-record-cover {
  width: 116px;
  height: 72px;
  border-radius: 12px;
}

.simple-record-main strong {
  font-size: 15px;
  line-height: 1.42;
}

.simple-record-progress {
  margin-top: 18px;
  font-size: 12px;
}

.learning-summary-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 10px;
}

.learning-summary-card {
  min-width: 0;
  padding: 14px 12px;
  border: 1px solid rgba(229, 234, 241, .9);
  border-radius: 18px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 12px 28px rgba(31, 58, 98, .06);
}

.learning-summary-card.primary {
  background: linear-gradient(145deg, #111827, #263449);
  color: #fff;
}

.learning-summary-card span {
  display: block;
  overflow: hidden;
  color: #7a8493;
  font-size: 12px;
  white-space: nowrap;
}

.learning-summary-card.primary span,
.learning-summary-card.primary em {
  color: rgba(255, 255, 255, .72);
}

.learning-summary-card strong {
  display: inline-block;
  margin-top: 12px;
  color: #111827;
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
}

.learning-summary-card.primary strong {
  color: #fff;
}

.learning-summary-card em {
  margin-left: 4px;
  color: #8d96a5;
  font-size: 12px;
  font-style: normal;
}

.learning-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.learning-breakdown span {
  min-width: 0;
  padding: 10px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .76);
  text-align: center;
}

.learning-breakdown b,
.learning-breakdown em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.learning-breakdown b {
  color: #1f2937;
  font-size: 13px;
}

.learning-breakdown em {
  margin-top: 5px;
  color: #7b8492;
  font-size: 11px;
  font-style: normal;
}

.today-stat {
  gap: 12px;
  margin-top: 20px;
}

.today-focus-card {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(225, 232, 241, .9);
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 20%, rgba(18, 103, 255, .12), transparent 88px),
    rgba(255, 255, 255, .86);
  box-shadow: 0 12px 30px rgba(31, 58, 98, .06);
}

.today-focus-card span {
  color: #758195;
  font-size: 12px;
  font-weight: 850;
}

.today-focus-card strong {
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
}

.today-focus-card em {
  color: #7b8492;
  font-size: 12px;
  line-height: 1.5;
  font-style: normal;
}

.today-stat div {
  min-width: 0;
  padding: 14px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .80);
}

.today-stat span {
  font-size: 12px;
}

.today-stat strong {
  margin-top: 11px;
  font-size: 25px;
}

.learning-trend-card {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(225, 232, 241, .9);
  border-radius: 20px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 12px 30px rgba(31, 58, 98, .06);
}

.learning-line-chart {
  display: block;
  width: 100%;
  height: 132px;
}

.learning-line-chart [data-chart-area] {
  fill: rgba(18, 103, 255, .10);
}

.learning-line-chart [data-chart-line] {
  fill: none;
  stroke: #1267ff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.learning-line-chart circle {
  fill: #fff;
  stroke: #1267ff;
  stroke-width: 3;
}

.chart-labels {
  margin-top: 0;
}

.learning-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  margin-top: 14px;
}

.learning-calendar button {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 44px;
  padding: 7px 3px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .62);
  color: #8b95a5;
}

.learning-calendar button.has-data {
  background: #eaf3ff;
  color: #1267ff;
}

.learning-calendar button.today {
  box-shadow: inset 0 0 0 1px rgba(18, 103, 255, .36);
}

.learning-calendar span,
.learning-calendar em {
  overflow: hidden;
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.learning-report-card {
  width: min(90vw, 380px);
  border-radius: 28px;
}

.report-poster {
  min-height: 438px;
  padding: 32px 24px;
  background:
    radial-gradient(circle at 86% 22%, rgba(255, 255, 255, .20), transparent 120px),
    linear-gradient(145deg, #101827 0%, #2b5d99 100%);
}

.report-quote {
  font-size: 17px;
}

.report-user-card {
  margin-top: 116px;
  border-radius: 22px;
}

.report-footer {
  grid-template-columns: minmax(0, 1fr) 86px;
  padding: 18px 24px 22px;
}

.report-footer img {
  width: 86px;
  height: 86px;
}

.mini-mine {
  padding: 0 14px 92px;
}

.mine-simple-hero {
  margin: 0 -14px;
  padding: 70px 20px 20px;
  background:
    radial-gradient(circle at 84% 10%, rgba(18, 103, 255, .10), transparent 130px),
    linear-gradient(180deg, #fbfcfe, #f4f6f9);
}

.mine-tools {
  top: 20px;
}

.mine-stat-card,
.mine-learning-row,
.mine-favorites-card,
.settings-profile,
.settings-group-card {
  border: 1px solid rgba(229, 234, 241, .9);
  border-radius: 20px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 14px 34px rgba(31, 58, 98, .06);
}

.mine-stat-card {
  margin-top: 28px;
}

.mine-stat-card strong {
  font-size: 24px;
}

.mine-stat-card span {
  font-size: 13px;
}

.mine-learning-row {
  min-height: 64px;
  margin-top: 12px;
}

.mine-learning-row strong {
  font-size: 16px;
}

.mine-learning-row span:not(.mine-row-icon) {
  font-size: 13px;
}

.mine-favorites-card {
  margin-top: 12px;
  padding: 16px;
}

.mine-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.mine-section-head strong {
  color: #1f2937;
  font-size: 16px;
}

.mine-section-head span,
.mine-empty-line {
  color: #8b95a5;
  font-size: 12px;
}

.mine-favorite-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  border-top: 1px solid #eef2f6;
}

.mine-favorite-row:first-child {
  border-top: 0;
}

.mine-favorite-row span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #edf5ff;
  color: #1267ff;
  font-size: 11px;
  font-weight: 850;
}

.mine-favorite-row strong {
  overflow: hidden;
  color: #1f2937;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mine-favorite-row em {
  color: #c1c7d0;
  font-size: 22px;
  font-style: normal;
}

.settings-page {
  padding: 14px 16px 96px;
}

.settings-top {
  margin-bottom: 16px;
}

.settings-top h1 {
  font-size: 24px;
}

.settings-top p {
  color: #7b8492;
}

.settings-profile {
  padding: 14px;
}

.settings-group-title {
  margin: 20px 2px 8px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 850;
}

.settings-group-card {
  margin-top: 0;
  padding: 4px 16px;
}

.settings-group-card .profile-form {
  padding: 12px 0;
  border: 0;
}

.settings-group-card .auth-submit {
  height: 38px;
  font-size: 13px;
}

.settings-row,
.settings-action,
.switch-row {
  min-height: 52px;
  border-top-color: #eef2f6;
}

.settings-row:first-child,
.settings-action:first-child,
.switch-row:first-child {
  border-top: 0;
}

.settings-list-page {
  padding-left: 0;
  padding-right: 0;
  background: #f5f5f6;
}

.settings-top.compact {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  min-height: 54px;
  margin: 0;
  padding: 8px 16px;
}

.settings-top.compact h1 {
  grid-column: 2;
  margin: 0;
  color: #1f2937;
  font-size: 19px;
  text-align: center;
}

.settings-user-row,
.settings-plain-group {
  margin-top: 10px;
  background: #fff;
}

.settings-user-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 16px 20px;
  color: #111827;
}

.settings-user-row strong {
  overflow: hidden;
  font-size: 20px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-user-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.settings-user-copy em {
  overflow: hidden;
  color: #8b96a8;
  font-size: 13px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-user-row b,
.settings-action b {
  color: #9ca3af;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.settings-plain-group {
  padding: 0 20px;
}

.settings-plain-group .settings-row,
.settings-plain-group .settings-action {
  min-height: 58px;
  padding: 0;
  border-top: 1px solid #eeeeef;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.settings-plain-group > :first-child {
  border-top: 0;
}

.settings-plain-group .settings-row span,
.settings-plain-group .settings-action span {
  color: #1f2937;
  font-size: 17px;
  font-weight: 500;
}

.settings-plain-group .settings-row strong,
.settings-plain-group .settings-action strong {
  margin-left: auto;
  color: #8b95a5;
  font-size: 15px;
  font-weight: 500;
}

.profile-page {
  min-height: 100vh;
  background: #f5f5f6;
}

.profile-edit-card {
  display: grid;
  gap: 20px;
  margin-top: 10px;
  padding: 22px 20px 28px;
  background: #fff;
}

.profile-avatar-button {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  background: transparent;
  color: #1f6bff;
  font-size: 13px;
  font-weight: 800;
}

.profile-avatar-ring {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(18, 103, 255, .16), rgba(94, 214, 255, .10));
  box-shadow: inset 0 0 0 1px rgba(18, 103, 255, .12);
}

.profile-avatar-button .settings-avatar.large {
  width: 76px;
  height: 76px;
}

.profile-avatar-button strong,
.profile-avatar-button em {
  display: block;
  font-style: normal;
}

.profile-avatar-button em {
  max-width: 260px;
  color: #8b96a8;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}

.profile-field {
  display: grid;
  gap: 8px;
}

.profile-field span {
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.profile-field input {
  width: 100%;
  height: 48px;
  border: 1px solid #dfe7f2;
  border-radius: 13px;
  padding: 0 14px;
  outline: 0;
  background: #f8fbff;
  color: #111827;
  font-size: 16px;
  font-weight: 700;
}

.profile-field input:focus {
  border-color: rgba(18, 103, 255, .56);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(18, 103, 255, .10);
}

.profile-save-button {
  height: 48px;
  border-radius: 13px;
  background: #1267ff;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(18, 103, 255, .20);
}

.profile-edit-card .settings-save-profile {
  height: 48px;
  margin-top: 0;
  border-radius: 13px;
  font-size: 16px;
  box-shadow: 0 12px 24px rgba(18, 103, 255, .20);
}

.settings-plain-group .language-row select {
  max-width: 138px;
  border: 0;
  background: transparent;
  color: #8b95a5;
  font-size: 15px;
  text-align: right;
}

.settings-logout-text {
  display: block;
  width: 100%;
  min-height: 58px;
  margin-top: 22px;
  background: #fff;
  color: #ef4444;
  font-size: 17px;
  font-weight: 500;
  text-align: center;
}

.danger-group .danger-row span {
  color: #ef4444;
}

.account-danger-card {
  display: grid;
  gap: 14px;
}

.account-danger-card h2 {
  color: #111827;
  font-size: 18px;
}

.account-danger-card p,
.settings-helper {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.65;
}

.confirm-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #374151;
  font-size: 14px;
  line-height: 1.5;
}

.danger-submit {
  background: #fee2e2;
  color: #dc2626;
}

.danger-submit:not(:disabled) {
  background: #ef4444;
  color: #fff;
}

.chart-detail {
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(18, 103, 255, .12);
  border-radius: 12px;
  background: rgba(238, 246, 255, .72);
  color: #405066;
  font-size: 12px;
  line-height: 1.45;
}

.learning-line-chart [data-chart-point] {
  cursor: pointer;
  outline: none;
}

.learning-line-chart .chart-hit {
  fill: transparent;
  stroke: transparent;
  stroke-width: 0;
}

.learning-line-chart [data-chart-point]:focus circle:not(.chart-hit),
.learning-line-chart [data-chart-point]:hover circle:not(.chart-hit) {
  fill: #1267ff;
  stroke: #fff;
}

.calendar-card {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(229, 234, 241, .9);
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 12px 30px rgba(31, 58, 98, .05);
}

.calendar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.calendar-month-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.calendar-month-control button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(238, 246, 255, .92);
  color: #1267ff;
  font-size: 22px;
  line-height: 1;
}

.calendar-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(248, 250, 252, .82);
  color: #6b7280;
  font-size: 12px;
}

.calendar-picker input {
  border: 0;
  background: transparent;
  color: #1f2937;
  font: inherit;
  font-weight: 800;
}

.calendar-head strong {
  color: #1f2937;
  font-size: 16px;
}

.calendar-head span {
  max-width: 54%;
  color: #7b8492;
  font-size: 11px;
  line-height: 1.45;
  text-align: right;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.learning-calendar {
  margin-top: 8px;
}

.learning-calendar .calendar-empty {
  min-height: 44px;
}

.learning-calendar button {
  border: 1px solid transparent;
}

.learning-calendar button:active {
  transform: scale(.98);
}

.learning-calendar button.has-data {
  border-color: rgba(18, 103, 255, .12);
}

.learning-calendar button.today {
  background: #1267ff;
  color: #fff;
  box-shadow: 0 8px 18px rgba(18, 103, 255, .22);
}

html[data-theme="dark"],
html[data-theme="dark"] body {
  background: #07111f;
  color: #e9f1fb;
}

html[data-theme="dark"] .app,
html[data-theme="dark"] .mini-learning,
html[data-theme="dark"] .mini-mine,
html[data-theme="dark"] .settings-page,
html[data-theme="dark"] .profile-page {
  background:
    radial-gradient(circle at 82% 0%, rgba(56, 139, 255, .18), transparent 190px),
    linear-gradient(180deg, #0b1524 0%, #07111f 52%, #08101c 100%);
  color: #e9f1fb;
}

html[data-theme="dark"] .learning-simple-hero,
html[data-theme="dark"] .mine-simple-hero,
html[data-theme="dark"] .settings-list-page {
  background:
    radial-gradient(circle at 78% 10%, rgba(56, 139, 255, .20), transparent 150px),
    linear-gradient(180deg, #101d2f, #0a1423);
}

html[data-theme="dark"] .user-name strong,
html[data-theme="dark"] .settings-top h1,
html[data-theme="dark"] .simple-section-title strong,
html[data-theme="dark"] .mine-section-head strong,
html[data-theme="dark"] .calendar-head strong,
html[data-theme="dark"] .learning-breakdown b,
html[data-theme="dark"] .simple-record-main strong,
html[data-theme="dark"] .mine-favorite-row strong,
html[data-theme="dark"] .settings-profile strong,
html[data-theme="dark"] .settings-row span,
html[data-theme="dark"] .settings-action span,
html[data-theme="dark"] .switch-row strong,
html[data-theme="dark"] .settings-user-row strong,
html[data-theme="dark"] .profile-field span,
html[data-theme="dark"] .account-danger-card h2,
html[data-theme="dark"] .confirm-line {
  color: #f2f7ff;
}

html[data-theme="dark"] .joined-line,
html[data-theme="dark"] .week-link,
html[data-theme="dark"] .settings-top p,
html[data-theme="dark"] .mine-section-head span,
html[data-theme="dark"] .mine-empty-line,
html[data-theme="dark"] .calendar-head span,
html[data-theme="dark"] .chart-labels,
html[data-theme="dark"] .learning-breakdown em,
html[data-theme="dark"] .settings-profile span,
html[data-theme="dark"] .switch-row em,
html[data-theme="dark"] .settings-row strong,
html[data-theme="dark"] .settings-action strong,
html[data-theme="dark"] .settings-user-copy em,
html[data-theme="dark"] .profile-avatar-button em,
html[data-theme="dark"] .settings-helper,
html[data-theme="dark"] .account-danger-card p {
  color: #a9b8ca;
}

html[data-theme="dark"] .simple-tabs,
html[data-theme="dark"] .period-switch,
html[data-theme="dark"] .lesson-filter,
html[data-theme="dark"] .learning-summary-card,
html[data-theme="dark"] .today-stat > div,
html[data-theme="dark"] .today-focus-card,
html[data-theme="dark"] .learning-trend-card,
html[data-theme="dark"] .calendar-card,
html[data-theme="dark"] .mine-stat-card,
html[data-theme="dark"] .mine-learning-row,
html[data-theme="dark"] .mine-favorites-card,
html[data-theme="dark"] .settings-profile,
html[data-theme="dark"] .settings-group-card,
html[data-theme="dark"] .settings-user-row,
html[data-theme="dark"] .settings-plain-group,
html[data-theme="dark"] .profile-edit-card,
html[data-theme="dark"] .account-danger-card,
html[data-theme="dark"] .settings-modal-card,
html[data-theme="dark"] .contact-card {
  border-color: rgba(127, 158, 196, .22);
  background: rgba(15, 27, 45, .78);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .simple-tabs button,
html[data-theme="dark"] .period-switch button,
html[data-theme="dark"] .lesson-filter select,
html[data-theme="dark"] .language-row select,
html[data-theme="dark"] .profile-form input,
html[data-theme="dark"] .profile-field input,
html[data-theme="dark"] .auth-form input,
html[data-theme="dark"] .password-form input,
html[data-theme="dark"] .calendar-picker,
html[data-theme="dark"] .calendar-picker input {
  border-color: rgba(127, 158, 196, .22);
  background: rgba(9, 18, 32, .82);
  color: #e9f1fb;
}

html[data-theme="dark"] .simple-tabs button.active,
html[data-theme="dark"] .period-switch button.active,
html[data-theme="dark"] .report-btn,
html[data-theme="dark"] .settings-login,
html[data-theme="dark"] .auth-submit {
  background: #2f7df6;
  color: #fff;
}

html[data-theme="dark"] .learning-breakdown span,
html[data-theme="dark"] .chart-detail,
html[data-theme="dark"] .learning-calendar button {
  border-color: rgba(127, 158, 196, .18);
  background: rgba(22, 39, 64, .76);
  color: #cbd8e8;
}

html[data-theme="dark"] .learning-calendar button.has-data {
  background: rgba(47, 125, 246, .18);
  color: #8cb9ff;
}

html[data-theme="dark"] .learning-calendar button.today {
  background: #2f7df6;
  color: #fff;
}

html[data-theme="dark"] .learning-line-chart [data-chart-area] {
  fill: rgba(47, 125, 246, .16);
}

html[data-theme="dark"] .learning-line-chart [data-chart-line] {
  stroke: #62a2ff;
}

html[data-theme="dark"] .learning-line-chart circle:not(.chart-hit) {
  fill: #101d2f;
  stroke: #62a2ff;
}

html[data-theme="dark"] .settings-row,
html[data-theme="dark"] .settings-action,
html[data-theme="dark"] .switch-row,
html[data-theme="dark"] .mine-favorite-row,
html[data-theme="dark"] .settings-plain-group .settings-row,
html[data-theme="dark"] .settings-plain-group .settings-action {
  border-top-color: rgba(127, 158, 196, .16);
}

html[data-theme="dark"] .settings-top.compact h1 {
  color: #f2f7ff;
}

html[data-theme="dark"] .settings-logout-text {
  background: rgba(15, 27, 45, .86);
  color: #ff8c8c;
}

html[data-theme="dark"] .calendar-month-control button {
  background: rgba(47, 125, 246, .18);
  color: #8cb9ff;
}

html[data-theme="dark"] .simple-tabs {
  gap: 0;
  padding: 4px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
}

html[data-theme="dark"] .simple-tabs button {
  flex: 1;
  padding: 10px 8px 12px;
  border-radius: 14px;
  color: #d5e2f4;
  font-size: 17px;
}

html[data-theme="dark"] .simple-tabs button.active {
  background: rgba(47, 125, 246, .26);
  color: #fff;
}

html[data-theme="dark"] .simple-tabs button.active::after {
  bottom: 4px;
}

html[data-theme="dark"] .learning-summary-card,
html[data-theme="dark"] .today-stat > div,
html[data-theme="dark"] .learning-trend-card,
html[data-theme="dark"] .calendar-card,
html[data-theme="dark"] .mine-stat-card,
html[data-theme="dark"] .mine-learning-row,
html[data-theme="dark"] .mine-favorites-card {
  border-color: rgba(148, 163, 184, .28);
  background: rgba(14, 28, 48, .86);
  box-shadow: none;
}

html[data-theme="dark"] .learning-summary-card strong,
html[data-theme="dark"] .today-stat strong,
html[data-theme="dark"] .today-focus-card strong,
html[data-theme="dark"] .mine-stat-card strong,
html[data-theme="dark"] .mine-learning-row strong,
html[data-theme="dark"] .mine-learning-row em {
  color: #fff;
}

html[data-theme="dark"] .learning-summary-card span,
html[data-theme="dark"] .learning-summary-card em,
html[data-theme="dark"] .today-stat span,
html[data-theme="dark"] .today-stat em,
html[data-theme="dark"] .today-focus-card span,
html[data-theme="dark"] .today-focus-card em,
html[data-theme="dark"] .simple-record-progress,
html[data-theme="dark"] .mine-stat-card span,
html[data-theme="dark"] .mine-learning-row span {
  color: #b9c8dc;
}

html[data-theme="dark"] .learning-summary-card.primary {
  background: linear-gradient(145deg, #1d4ed8, #0e7490);
}

html[data-theme="dark"] .lesson-filter {
  background: rgba(47, 125, 246, .18);
  color: #d7e8ff;
}

html[data-theme="dark"] .danger-submit:not(:disabled) {
  background: #ef4444;
  color: #fff;
}

html[data-theme="dark"] .bottom-nav {
  border-color: rgba(127, 158, 196, .20);
  background: rgba(8, 16, 28, .94);
}

html[data-theme="dark"] .bottom-nav .nav-item {
  color: #8ea0b8;
}

html[data-theme="dark"] .bottom-nav .nav-item.active {
  color: #62a2ff;
}

html[data-theme="dark"] .auth-modal {
  background: rgba(1, 6, 14, .72);
}

html[data-theme="dark"] .auth-panel {
  border: 1px solid rgba(127, 158, 196, .24);
  background:
    radial-gradient(circle at 86% 0%, rgba(74, 144, 255, .18), transparent 130px),
    rgba(13, 24, 41, .98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .48);
}

html[data-theme="dark"] .auth-panel h2,
html[data-theme="dark"] .auth-form label span {
  color: #f2f7ff;
}

html[data-theme="dark"] .auth-subtitle,
html[data-theme="dark"] .auth-tips,
html[data-theme="dark"] .auth-password-hint {
  color: #a9b8ca;
}

html[data-theme="dark"] .auth-tabs {
  background: rgba(255, 255, 255, .06);
}

html[data-theme="dark"] .auth-tabs button {
  color: #b9c8dc;
}

html[data-theme="dark"] .auth-tabs button.active,
html[data-theme="dark"] .auth-close,
html[data-theme="dark"] .auth-code-btn {
  background: rgba(47, 125, 246, .18);
  color: #8cb9ff;
  box-shadow: none;
}

html[data-theme="dark"] .auth-form input {
  border-color: rgba(127, 158, 196, .22);
  background: rgba(9, 18, 32, .86);
  color: #eef6ff;
}

html[data-theme="dark"] .auth-form input::placeholder {
  color: #72849d;
}

html[data-theme="dark"] .auth-form input:focus {
  border-color: rgba(98, 162, 255, .72);
  box-shadow: 0 0 0 3px rgba(98, 162, 255, .16);
}

/* 2026-06-23: compact, shareable study report with live profile data. */
.learning-report-card {
  width: min(88vw, 360px);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(8, 28, 62, .24);
}

.report-poster {
  display: grid;
  min-height: 360px;
  padding: 28px 22px 22px;
  background:
    linear-gradient(180deg, rgba(4, 18, 45, .18), rgba(4, 18, 45, .58)),
    url("assets/banner-home-main.webp") center / cover no-repeat;
}

.report-quote {
  justify-self: center;
  max-width: 280px;
  color: rgba(255, 255, 255, .94);
  font-size: 15px;
  line-height: 1.58;
  font-weight: 800;
  text-align: center;
}

.report-user-card {
  align-self: end;
  margin-top: 64px;
  padding: 50px 18px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 38px rgba(8, 28, 62, .18);
  text-align: center;
}

.report-avatar {
  left: 50%;
  top: -36px;
  width: 72px;
  height: 72px;
  transform: translateX(-50%);
}

.report-user-card h2 {
  color: #12213a;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 950;
}

.report-lines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #edf1f6;
}

.report-lines p {
  display: grid;
  gap: 4px;
  color: #6b7584;
  font-size: 12px;
  line-height: 1.35;
}

.report-lines strong {
  color: #1267ff;
  font-size: 28px;
  line-height: 1;
}

.report-metric-grid {
  gap: 8px;
  margin-top: 12px;
}

.report-metric-grid span {
  padding: 10px 8px;
  border-radius: 16px;
  background: #f3f7fc;
}

.report-footer {
  grid-template-columns: minmax(0, 1fr) 76px;
  padding: 16px 20px 18px;
}

.report-footer strong {
  font-size: 16px;
}

.report-footer span {
  margin-top: 6px;
  font-size: 13px;
}

.report-footer img {
  width: 76px;
  height: 76px;
  border-radius: 10px;
}

.report-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  color: rgba(255, 255, 255, .9);
  background: rgba(11, 21, 36, .82);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

html[data-theme="dark"] .learning-report-card {
  background: #101b2b;
  box-shadow: 0 26px 76px rgba(0, 0, 0, .44);
}

html[data-theme="dark"] .report-user-card {
  background: rgba(13, 24, 41, .94);
}

html[data-theme="dark"] .report-user-card h2,
html[data-theme="dark"] .report-lines strong,
html[data-theme="dark"] .report-footer strong {
  color: #f2f7ff;
}

html[data-theme="dark"] .report-lines,
html[data-theme="dark"] .report-metric-grid span {
  border-color: rgba(127, 158, 196, .18);
}

html[data-theme="dark"] .report-metric-grid span {
  background: rgba(255, 255, 255, .07);
}

html[data-theme="dark"] .report-lines p,
html[data-theme="dark"] .report-footer span {
  color: #a9b8ca;
}

@media not all {
  :root {
    --blue: #62a2ff;
    --deep: #eef6ff;
    --ink: #dce8f6;
    --muted: #9eb0c5;
    --line: rgba(136, 164, 196, .24);
    --soft: #101b2b;
    --card: #172235;
    --shadow: 0 14px 34px rgba(0, 0, 0, .28);
  }

  html,
  body {
    background: #0e1624;
  }

  .app {
    background:
      radial-gradient(circle at 86% 0%, rgba(98, 162, 255, .18), transparent 138px),
      linear-gradient(180deg, #101827 0%, #0e1624 56%, #111827 100%);
  }

  .account-hero,
  .section-card,
  .auth-panel,
  .settings-modal-card,
  .contact-card {
    border-color: rgba(136, 164, 196, .24);
    background: #172235;
    box-shadow: var(--shadow);
  }

  .tool-btn,
  .back-btn,
  .settings-login,
  .auth-code-btn,
  .language-row select,
  .profile-form input,
  .password-form input,
  .auth-form input {
    border-color: rgba(136, 164, 196, .28);
    background: #101b2b;
    color: var(--ink);
  }

  .bottom-nav {
    border-color: rgba(136, 164, 196, .2);
    background: rgba(16, 24, 39, .94);
  }

  .settings-row,
  .settings-action,
  .switch-row,
  .password-form,
  .profile-form {
    border-color: var(--line);
  }

  .settings-modal {
    background: rgba(2, 6, 14, .66);
  }
}
